1 |
- "use strict";(self.webpackChunkapp_angular=self.webpackChunkapp_angular||[]).push([[9302],{25504:(x,H,I)=>{I.d(H,{A:()=>q,B:()=>We,C:()=>p,D:()=>Ge,E:()=>k,F:()=>je,G:()=>Te,H:()=>Le,I:()=>ze,J:()=>_,K:()=>pe,L:()=>we,M:()=>Ee,N:()=>le,O:()=>se,P:()=>Y,Q:()=>G,R:()=>fe,S:()=>R,T:()=>Me,a:()=>Ie,b:()=>T,c:()=>D,d:()=>z,e:()=>S,f:()=>ee,g:()=>ve,h:()=>ue,i:()=>v,j:()=>re,k:()=>de,l:()=>ie,m:()=>ce,n:()=>ae,o:()=>ne,p:()=>te,q:()=>F,r:()=>P,s:()=>L,t:()=>ke,u:()=>me,v:()=>he,w:()=>U,x:()=>f,y:()=>Ye,z:()=>Re});var E=I(66710);const D=(e,n)=>e.month===n.month&&e.day===n.day&&e.year===n.year,v=(e,n)=>e.year<n.year||e.year===n.year&&e.month<n.month||e.year===n.year&&e.month===n.month&&null!==e.day&&e.day<n.day,T=(e,n)=>e.year>n.year||e.year===n.year&&e.month>n.month||e.year===n.year&&e.month===n.month&&null!==e.day&&e.day>n.day,U=(e,n,t)=>{const o=Array.isArray(e)?e:[e];for(const r of o)if(void 0!==n&&v(r,n)||void 0!==t&&T(r,t)){(0,E.p)(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(n)}\nMax: ${JSON.stringify(t)}\nValue: ${JSON.stringify(e)}`);break}},_=(e,n)=>{if(void 0!==n)return n;const t=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=t.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const u=t.formatToParts(new Date("5/18/2021 00:00")).find(d=>"hour"===d.type);if(!u)throw new Error("Hour value not found from DateTimeFormat");switch(u.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${n}"`)}},m=e=>"h23"===e||"h24"===e,f=(e,n)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(n)?29:28:31,p=(e,n={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,n).formatToParts(new Date)[0].type,k=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,b=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,O=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,P=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map(o=>parseInt(o,10)).filter(isFinite):[n],t},ee=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function F(e){if(Array.isArray(e)){const t=[];for(const o of e){const r=F(o);if(!r)return;t.push(r)}return t}let n=null;if(null!=e&&""!==e&&(n=O.exec(e),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=b.exec(e)),null!==n){for(let t=1;t<8;t++)n[t]=void 0!==n[t]?parseInt(n[t],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}(0,E.p)(`Unable to parse date string: ${e}. Please provide a valid ISO 8601 datetime string.`)}const Y=(e,n,t)=>n&&v(e,n)?n:t&&T(e,t)?t:e,G=e=>e>=12?"pm":"am",ne=(e,n)=>{const t=F(e);if(void 0===t)return;const{month:o,day:r,year:i,hour:u,minute:d}=t,c=i??n.year,a=o??12;return{month:a,day:r??f(a,c),year:c,hour:u??23,minute:d??59}},te=(e,n)=>{const t=F(e);if(void 0===t)return;const{month:o,day:r,year:i,hour:u,minute:d}=t;return{month:o??1,day:r??1,year:i??n.year,hour:u??0,minute:d??0}},M=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2),oe=e=>("000"+(void 0!==e?Math.abs(e):"0")).slice(-4);function L(e){if(Array.isArray(e))return e.map(t=>L(t));let n="";return void 0!==e.year?(n=oe(e.year),void 0!==e.month&&(n+="-"+M(e.month),void 0!==e.day&&(n+="-"+M(e.day),void 0!==e.hour&&(n+=`T${M(e.hour)}:${M(e.minute)}:00`)))):void 0!==e.hour&&(n=M(e.hour)+":"+M(e.minute)),n}const B=(e,n)=>void 0===n?e:"am"===n?12===e?0:e:12===e?12:e+12,re=e=>{const{dayOfWeek:n}=e;if(null==n)throw new Error("No day of week provided");return N(e,n)},ue=e=>{const{dayOfWeek:n}=e;if(null==n)throw new Error("No day of week provided");return Z(e,6-n)},ie=e=>Z(e,1),de=e=>N(e,1),ce=e=>N(e,7),ae=e=>Z(e,7),N=(e,n)=>{const{month:t,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const i={month:t,day:o,year:r};if(i.day=o-n,i.day<1&&(i.month-=1),i.month<1&&(i.month=12,i.year-=1),i.day<1){const u=f(i.month,i.year);i.day=u+i.day}return i},Z=(e,n)=>{const{month:t,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const i={month:t,day:o,year:r},u=f(t,r);return i.day=o+n,i.day>u&&(i.day-=u,i.month+=1),i.month>12&&(i.month=1,i.year+=1),i},z=e=>{const n=1===e.month?12:e.month-1,t=1===e.month?e.year-1:e.year,o=f(n,t);return{month:n,year:t,day:o<e.day?o:e.day}},S=e=>{const n=12===e.month?1:e.month+1,t=12===e.month?e.year+1:e.year,o=f(n,t);return{month:n,year:t,day:o<e.day?o:e.day}},J=(e,n)=>{const t=e.month,o=e.year+n,r=f(t,o);return{month:t,year:o,day:r<e.day?r:e.day}},se=e=>J(e,-1),le=e=>J(e,1),ye=(e,n,t)=>n?e:B(e,t),fe=(e,n)=>{const{ampm:t,hour:o}=e;let r=o;return"am"===t&&"pm"===n?r=B(r,"pm"):"pm"===t&&"am"===n&&(r=Math.abs(r-12)),r},he=(e,n,t)=>{const{month:o,day:r,year:i}=e,u=Y(Object.assign({},e),n,t),d=f(o,i);return null!==r&&d<r&&(u.day=d),void 0!==n&&D(u,n)&&void 0!==u.hour&&void 0!==n.hour&&(u.hour<n.hour?(u.hour=n.hour,u.minute=n.minute):u.hour===n.hour&&void 0!==u.minute&&void 0!==n.minute&&u.minute<n.minute&&(u.minute=n.minute)),void 0!==t&&D(e,t)&&void 0!==u.hour&&void 0!==t.hour&&(u.hour>t.hour?(u.hour=t.hour,u.minute=t.minute):u.hour===t.hour&&void 0!==u.minute&&void 0!==t.minute&&u.minute>t.minute&&(u.minute=t.minute)),u},me=(e,n,t,o,r,i)=>{const{hour:u,minute:d,day:c,month:a,year:s}=e,y=Object.assign(Object.assign({},e),{dayOfWeek:void 0});return void 0!==n&&(y.month=A(a,n)),null!==c&&void 0!==t&&(y.day=A(c,t)),void 0!==o&&(y.year=A(s,o)),void 0!==u&&void 0!==r&&(y.hour=A(u,r),y.ampm=G(y.hour)),void 0!==d&&void 0!==i&&(y.minute=A(d,i)),y},A=(e,n)=>{let t=n[0],o=Math.abs(t-e);for(let r=1;r<n.length;r++){const i=n[r],u=Math.abs(i-e);u<o&&(t=i,o=u)}return t},pe=(e,n,t)=>{const o={hour:n.hour,minute:n.minute};return void 0===o.hour||void 0===o.minute?"Invalid Time":new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric",timeZone:"UTC",hourCycle:t}).format(new Date(L(Object.assign({year:2023,day:1,month:1},o))+"Z"))},K=e=>{const n=e.toString();return n.length>1?n:`0${n}`},De=(e,n)=>{if(0===e)switch(n){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${n}"`)}return m(n)?K(e):e.toString()},ve=(e,n,t)=>{if(null===t.day)return null;const o=$(t),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return n?`Today, ${r}`:r},we=(e,n)=>{const t=$(n);return new Intl.DateTimeFormat(e,{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}).format(t)},Te=(e,n)=>{const t=$(n);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(t)},Me=(e,n)=>R(e,n,{month:"short",day:"numeric",year:"numeric"}),Ie=(e,n)=>Oe(e,n,{day:"numeric"}).find(t=>"day"===t.type).value,_e=(e,n)=>R(e,n,{year:"numeric"}),$=e=>{var n,t,o;return new Date(`${null!==(n=e.month)&&void 0!==n?n:1}/${null!==(t=e.day)&&void 0!==t?t:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},R=(e,n,t)=>{const o=$(n);return X(e,t).format(o)},Oe=(e,n,t)=>{const o=$(n);return X(e,t).formatToParts(o)},X=(e,n)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},n),{timeZone:"UTC"})),Ae=e=>{if("RelativeTimeFormat"in Intl){const n=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return n.charAt(0).toUpperCase()+n.slice(1)}return"Today"},W=e=>{const n=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-n),e},$e=W(new Date("2022T01:00")),Ce=W(new Date("2022T13:00")),Q=(e,n)=>{const t="am"===n?$e:Ce,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(t).find(r=>"dayPeriod"===r.type);return o?o.value:(e=>void 0===e?"":e.toUpperCase())(n)},Ee=e=>Array.isArray(e)?e.join(","):e,ke=()=>W(new Date).toISOString(),be=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],Fe=[0,1,2,3,4,5,6,7,8,9,10,11],Se=[0,1,2,3,4,5,6,7,8,9,10,11],He=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],Ue=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],je=(e,n,t=0)=>{const r=new Intl.DateTimeFormat(e,{weekday:"ios"===n?"short":"narrow"}),i=new Date("11/01/2020"),u=[];for(let d=t;d<t+7;d++){const c=new Date(i);c.setDate(c.getDate()+d),u.push(r.format(c))}return u},Le=(e,n,t)=>{const o=f(e,n),r=new Date(`${e}/1/${n}`).getDay(),i=r>=t?r-(t+1):6-(t-r);let u=[];for(let d=1;d<=o;d++)u.push({day:d,dayOfWeek:(i+d)%7});for(let d=0;d<=i;d++)u=[{day:null,dayOfWeek:null},...u];return u},ze=(e,n)=>{const t={month:e.month,year:e.year,day:e.day};if(void 0!==n&&(e.month!==n.month||e.year!==n.year)){const o={month:n.month,year:n.year,day:n.day};return v(o,t)?[o,t,S(e)]:[z(e),t,o]}return[z(e),t,S(e)]},Re=(e,n,t,o,r,i={month:"long"})=>{const{year:u}=n,d=[];if(void 0!==r){let c=r;void 0!==o?.month&&(c=c.filter(a=>a<=o.month)),void 0!==t?.month&&(c=c.filter(a=>a>=t.month)),c.forEach(a=>{const s=new Date(`${a}/1/${u} GMT+0000`),y=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(s);d.push({text:y,value:a})})}else{const c=o&&o.year===u?o.month:12;for(let s=t&&t.year===u?t.month:1;s<=c;s++){const y=new Date(`${s}/1/${u} GMT+0000`),h=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(y);d.push({text:h,value:s})}}return d},q=(e,n,t,o,r,i={day:"numeric"})=>{const{month:u,year:d}=n,c=[],a=f(u,d),s=null!=o?.day&&o.year===d&&o.month===u?o.day:a,y=null!=t?.day&&t.year===d&&t.month===u?t.day:1;if(void 0!==r){let h=r;h=h.filter(l=>l>=y&&l<=s),h.forEach(l=>{const g=new Date(`${u}/${l}/${d} GMT+0000`),w=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(g);c.push({text:w,value:l})})}else for(let h=y;h<=s;h++){const l=new Date(`${u}/${h}/${d} GMT+0000`),g=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(l);c.push({text:g,value:h})}return c},We=(e,n,t,o,r)=>{var i,u;let d=[];if(void 0!==r)d=r,void 0!==o?.year&&(d=d.filter(c=>c<=o.year)),void 0!==t?.year&&(d=d.filter(c=>c>=t.year));else{const{year:c}=n,a=null!==(i=o?.year)&&void 0!==i?i:c;for(let y=null!==(u=t?.year)&&void 0!==u?u:c-100;y<=a;y++)d.push(y)}return d.map(c=>({text:_e(e,{year:c,month:n.month,day:n.day}),value:c}))},V=(e,n)=>e.month===n.month&&e.year===n.year?[e]:[e,...V(S(e),n)],Ye=(e,n,t,o,r,i)=>{let u=[],d=[],c=V(t,o);return i&&(c=c.filter(({month:a})=>i.includes(a))),c.forEach(a=>{const s={month:a.month,day:null,year:a.year},y=q(e,s,t,o,r,{month:"short",day:"numeric",weekday:"short"}),h=[],l=[];y.forEach(g=>{const w=D(Object.assign(Object.assign({},s),{day:g.value}),n);l.push({text:w?Ae(e):g.text,value:`${s.year}-${s.month}-${g.value}`}),h.push({month:s.month,year:s.year,day:g.value})}),d=[...d,...h],u=[...u,...l]}),{parts:d,items:u}},Ge=(e,n,t,o,r,i,u)=>{const d=_(e,t),c=m(d),{hours:a,minutes:s,am:y,pm:h}=((e,n,t="h12",o,r,i,u)=>{const d=_(e,t),c=m(d);let a=(e=>{switch(e){case"h11":return Fe;case"h12":return Se;case"h23":return He;case"h24":return Ue;default:throw new Error(`Invalid hour cycle "${e}"`)}})(d),s=be,y=!0,h=!0;if(i&&(a=a.filter(l=>i.includes(l))),u&&(s=s.filter(l=>u.includes(l))),o)if(D(n,o)){if(void 0!==o.hour&&(a=a.filter(l=>(c?l:"pm"===n.ampm?(l+12)%24:l)>=o.hour),y=o.hour<13),void 0!==o.minute){let l=!1;void 0!==o.hour&&void 0!==n.hour&&n.hour>o.hour&&(l=!0),s=s.filter(g=>!!l||g>=o.minute)}}else v(n,o)&&(a=[],s=[],y=h=!1);return r&&(D(n,r)?(void 0!==r.hour&&(a=a.filter(l=>(c?l:"pm"===n.ampm?(l+12)%24:l)<=r.hour),h=r.hour>=12),void 0!==r.minute&&n.hour===r.hour&&(s=s.filter(l=>l<=r.minute))):T(n,r)&&(a=[],s=[],y=h=!1)),{hours:a,minutes:s,am:y,pm:h}})(e,n,d,o,r,i,u),l=a.map(C=>({text:De(C,d),value:ye(C,c,n.ampm)})),g=s.map(C=>({text:K(C),value:C})),w=[];return y&&!c&&w.push({text:Q(e,"am"),value:"am"}),h&&!c&&w.push({text:Q(e,"pm"),value:"pm"}),{minutesData:g,hoursData:l,dayPeriodData:w}}},13567:(x,H,I)=>{I.d(H,{c:()=>v,g:()=>U,h:()=>D,o:()=>_});var E=I(15861);const D=(m,f)=>null!==f.closest(m),v=(m,f)=>"string"==typeof m&&m.length>0?Object.assign({"ion-color":!0,[`ion-color-${m}`]:!0},f):f,U=m=>{const f={};return(m=>void 0!==m?(Array.isArray(m)?m:m.split(" ")).filter(p=>null!=p).map(p=>p.trim()).filter(p=>""!==p):[])(m).forEach(p=>f[p]=!0),f},j=/^[a-z][a-z0-9+\-.]*:/,_=function(){var m=(0,E.Z)(function*(f,p,k,b){if(null!=f&&"#"!==f[0]&&!j.test(f)){const O=document.querySelector("ion-router");if(O)return p?.preventDefault(),O.push(f,k,b)}return!1});return function(p,k,b,O){return m.apply(this,arguments)}}()}}]);
|