dealposbooks 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +77 -41
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Black.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Bold.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-ExtraBold.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-ExtraLight.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Light.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Medium.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Regular.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-SemiBold.woff2 +0 -0
- package/assets/scss/fonts/roboto-slab/RobotoSlab-Thin.woff2 +0 -0
- package/assets/scss/variables/_variables.scss +47 -32
- package/chunk-2LKTSMUI.js +197 -0
- package/{chunk-PLNF5Z47.js → chunk-2QCAOSMO.js} +3 -3
- package/{chunk-6VATP7AD.js → chunk-2XZW23PQ.js} +1 -1
- package/chunk-33RD6RQS.js +1 -0
- package/chunk-3ROVFYLI.js +189 -0
- package/chunk-3UAQZJAG.js +180 -0
- package/chunk-4Z6KFX2O.js +2 -0
- package/{chunk-ZKTMMTSB.js → chunk-6TJIZZK6.js} +1 -1
- package/chunk-7KARVIIN.js +1 -0
- package/chunk-7RH6F4PN.js +135 -0
- package/{chunk-XJB6ZB5C.js → chunk-7X454BGN.js} +2 -2
- package/{chunk-HW5TOHIY.js → chunk-A3I2VQNX.js} +2 -2
- package/{chunk-5U24N52S.js → chunk-A3MXO6MA.js} +1 -1
- package/chunk-B5ZO2I4D.js +2 -0
- package/chunk-BP2JJ6HZ.js +160 -0
- package/chunk-BWO4PVAG.js +301 -0
- package/{chunk-DFW6MEY3.js → chunk-C4WUUVLC.js} +1 -1
- package/chunk-CH2GYE5J.js +1 -0
- package/{chunk-ZZCZU47E.js → chunk-D5U6AOFB.js} +1 -1
- package/chunk-DF2QDC4T.js +1 -0
- package/chunk-DKWZOSVY.js +59 -0
- package/{chunk-CWSZS6PH.js → chunk-EE4WG35V.js} +1 -1
- package/chunk-EEJWF26F.js +1 -0
- package/{chunk-2TIQLYOU.js → chunk-F7FJPDUV.js} +1 -1
- package/chunk-FDDNZH4H.js +1633 -0
- package/chunk-FYNIFRG5.js +1 -0
- package/{chunk-G4OXNPYG.js → chunk-HKMI4ZYY.js} +3 -3
- package/chunk-HU6SF3HD.js +1 -0
- package/{chunk-72KCMRAD.js → chunk-I72ECAQH.js} +2 -2
- package/chunk-IWUDRSTJ.js +235 -0
- package/chunk-KJWN47PL.js +1 -0
- package/{chunk-TEV7GODP.js → chunk-M4ZOPGSP.js} +2 -2
- package/{chunk-USDU2OMR.js → chunk-MQJQRREL.js} +1 -1
- package/chunk-MVGPOIFT.js +1 -0
- package/chunk-OHEAUNEW.js +1 -0
- package/chunk-ONU5ICNZ.js +1 -0
- package/chunk-P4OJNULI.js +1 -0
- package/chunk-PCJXJ6O4.js +370 -0
- package/chunk-PFXPLNMA.js +1 -0
- package/{chunk-A63HKFUG.js → chunk-PQTHPF23.js} +6 -6
- package/chunk-PV6INEW2.js +1 -0
- package/chunk-QPA73UD5.js +616 -0
- package/{chunk-6YT5EOQ2.js → chunk-QUR72LET.js} +1 -1
- package/chunk-RFZOXUTS.js +1 -0
- package/chunk-RIUEIX64.js +1 -0
- package/{chunk-CJM6YIDJ.js → chunk-U2S74ZLK.js} +1 -1
- package/chunk-UPDO63XT.js +1 -0
- package/chunk-UQ3SWGEA.js +1 -0
- package/{chunk-RVDH4GNB.js → chunk-URKXDZJE.js} +2 -2
- package/{chunk-JGJNDRVZ.js → chunk-UZFJYFH2.js} +2 -2
- package/{chunk-37O3IGUE.js → chunk-WZKSD7XN.js} +2 -2
- package/chunk-X2CQD76I.js +208 -0
- package/chunk-YUFMXLRG.js +47 -0
- package/{chunk-QSMNYWAY.js → chunk-YX7446ZM.js} +1 -1
- package/chunk-Z53S4NM2.js +736 -0
- package/{chunk-JGV5HMBT.js → chunk-ZT4NOONZ.js} +1 -1
- package/index.html +3 -3
- package/main-U76NYT5G.js +1 -0
- package/package.json +1 -1
- package/{styles-PZKETPHN.css → styles-OZO2XDGZ.css} +1 -1
- package/assets/scss/fonts/Montserrat-Black.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-BlackItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Bold.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-BoldItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ExtraBold.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ExtraBoldItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ExtraLight.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ExtraLightItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Italic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Light.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-LightItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Medium.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-MediumItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Regular.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-SemiBold.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-SemiBoldItalic.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-Thin.woff2 +0 -0
- package/assets/scss/fonts/Montserrat-ThinItalic.woff2 +0 -0
- package/assets/scss/fonts/Roboto-Italic-VariableFont_wdth,wght.woff2 +0 -0
- package/assets/scss/fonts/Roboto-VariableFont_wdth,wght.woff2 +0 -0
- package/assets/scss/fonts/RobotoSlab-VariableFont_wght.woff2 +0 -0
- package/chunk-2JEYUHX6.js +0 -1
- package/chunk-36254LID.js +0 -1
- package/chunk-3O5WB452.js +0 -428
- package/chunk-4F4YTU5A.js +0 -1
- package/chunk-7BUIG2V4.js +0 -2
- package/chunk-7HQ6WSSU.js +0 -1
- package/chunk-B44UAABO.js +0 -1
- package/chunk-CDSOHE7R.js +0 -1
- package/chunk-D7GU77BZ.js +0 -1
- package/chunk-DGUB5VQV.js +0 -1
- package/chunk-DKKZGADB.js +0 -1
- package/chunk-KFF6NEEA.js +0 -1
- package/chunk-KHWYFU3R.js +0 -191
- package/chunk-KWULO2RL.js +0 -931
- package/chunk-L36U5L2E.js +0 -1
- package/chunk-LHGT7WC7.js +0 -237
- package/chunk-M3DGMI2G.js +0 -1
- package/chunk-NAZKZSVO.js +0 -1
- package/chunk-NY4Q6KXA.js +0 -180
- package/chunk-NYMK6LUH.js +0 -1
- package/chunk-OCLF4BGI.js +0 -160
- package/chunk-QAAN4NVX.js +0 -1
- package/chunk-QCF3XBU5.js +0 -1
- package/chunk-RJKIW354.js +0 -1767
- package/chunk-SWKKEI7U.js +0 -1
- package/chunk-UAPZHEQX.js +0 -1
- package/chunk-V3VYMXUU.js +0 -1
- package/chunk-VILWNFJE.js +0 -1
- package/chunk-WNZ52LDQ.js +0 -662
- package/chunk-WY5VYTM5.js +0 -1
- package/chunk-YYGEKYKY.js +0 -2
- package/chunk-ZQDTA2BC.js +0 -189
- package/main-T2PMTIHB.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ab as V,Gb as Be,Ha as U,Hb as Re,Oc as ie,Pc as re,Qc as Oe,Rc as Pe,Xc as se,ca as _e,da as be,ec as E,fa as b,fc as g,g as Se,ga as ve,ia as O,ka as M,kb as m,la as P,mb as Ie,nb as ne,qb as z,rb as k,sa as te,tb as Le,vb as Me,yb as Te,zb as B}from"./chunk-A63HKFUG.js";var Ze=null;function oe(){return Ze}function bn(e){Ze??=e}var Ne=class{};var Ce=new O(""),Fe=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>P(Je),providedIn:"platform"})}return e})(),vn=new O(""),Je=(()=>{class e extends Fe{_location;_history;_doc=P(Ce);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return oe().getBaseHref(this._doc)}onPopState(t){let n=oe().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=oe().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,r){this._history.pushState(t,n,r)}replaceState(t,n,r){this._history.replaceState(t,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ye(e,i){return e?i?e.endsWith("/")?i.startsWith("/")?e+i.slice(1):e+i:i.startsWith("/")?e+i:`${e}/${i}`:e:i}function ke(e){let i=e.match(/#|\?|$/),t=i&&i.index||e.length,n=t-(e[t-1]==="/"?1:0);return e.slice(0,n)+e.slice(t)}function I(e){return e&&e[0]!=="?"?"?"+e:e}var Q=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>P(Qe),providedIn:"root"})}return e})(),Ye=new O(""),Qe=(()=>{class e extends Q{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??P(Ce).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ye(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+I(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+I(s));this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+I(s));this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(M(Fe),M(Ye,8))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),In=(()=>{class e extends Q{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=ye(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+I(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+I(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(M(Fe),M(Ye,8))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})(),et=(()=>{class e{_subject=new Se;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=it(ke($e(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+I(n))}normalize(t){return e.stripTrailingSlash(nt(this._basePath,$e(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+I(n)),r)}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+I(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n))}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=I;static joinWithSlash=ye;static stripTrailingSlash=ke;static \u0275fac=function(n){return new(n||e)(M(Q))};static \u0275prov=b({token:e,factory:()=>tt(),providedIn:"root"})}return e})();function tt(){return new et(M(Q))}function nt(e,i){if(!e||!i.startsWith(e))return i;let t=i.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:i}function $e(e){return e.replace(/\/index.html$/,"")}function it(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var We=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(We||{});var y=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(y||{}),c=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(c||{}),w=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(w||{}),A={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function rt(e){return E(e)[g.LocaleId]}function st(e,i,t){let n=E(e),r=[n[g.DayPeriodsFormat],n[g.DayPeriodsStandalone]],s=S(r,i);return S(s,t)}function ot(e,i,t){let n=E(e),r=[n[g.DaysFormat],n[g.DaysStandalone]],s=S(r,i);return S(s,t)}function ut(e,i,t){let n=E(e),r=[n[g.MonthsFormat],n[g.MonthsStandalone]],s=S(r,i);return S(s,t)}function at(e,i){let n=E(e)[g.Eras];return S(n,i)}function j(e,i){let t=E(e);return S(t[g.DateFormat],i)}function G(e,i){let t=E(e);return S(t[g.TimeFormat],i)}function H(e,i){let n=E(e)[g.DateTimeFormat];return S(n,i)}function L(e,i){let t=E(e),n=t[g.NumberSymbols][i];if(typeof n>"u"){if(i===A.CurrencyDecimal)return t[g.NumberSymbols][A.Decimal];if(i===A.CurrencyGroup)return t[g.NumberSymbols][A.Group]}return n}function ct(e,i){return E(e)[g.NumberFormats][i]}function Ke(e){if(!e[g.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[g.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function dt(e){let i=E(e);return Ke(i),(i[g.ExtraData][2]||[]).map(n=>typeof n=="string"?ue(n):[ue(n[0]),ue(n[1])])}function lt(e,i,t){let n=E(e);Ke(n);let r=[n[g.ExtraData][0],n[g.ExtraData][1]],s=S(r,i)||[];return S(s,t)||[]}function S(e,i){for(let t=i;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function ue(e){let[i,t]=e.split(":");return{hours:+i,minutes:+t}}var ft=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Z={},ht=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function gt(e,i,t,n){let r=At(e);i=v(t,i)||i;let o=[],u;for(;i;)if(u=ht.exec(i),u){o=o.concat(u.slice(1));let f=o.pop();if(!f)break;i=f}else{o.push(i);break}let D=r.getTimezoneOffset();n&&(D=qe(n,D),r=wt(r,n,!0));let l="";return o.forEach(f=>{let a=yt(f);l+=a?a(r,t,D):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function q(e,i,t){let n=new Date(0);return n.setFullYear(e,i,t),n.setHours(0,0,0),n}function v(e,i){let t=rt(e);if(Z[t]??={},Z[t][i])return Z[t][i];let n="";switch(i){case"shortDate":n=j(e,w.Short);break;case"mediumDate":n=j(e,w.Medium);break;case"longDate":n=j(e,w.Long);break;case"fullDate":n=j(e,w.Full);break;case"shortTime":n=G(e,w.Short);break;case"mediumTime":n=G(e,w.Medium);break;case"longTime":n=G(e,w.Long);break;case"fullTime":n=G(e,w.Full);break;case"short":let r=v(e,"shortTime"),s=v(e,"shortDate");n=Y(H(e,w.Short),[r,s]);break;case"medium":let o=v(e,"mediumTime"),u=v(e,"mediumDate");n=Y(H(e,w.Medium),[o,u]);break;case"long":let D=v(e,"longTime"),l=v(e,"longDate");n=Y(H(e,w.Long),[D,l]);break;case"full":let f=v(e,"fullTime"),a=v(e,"fullDate");n=Y(H(e,w.Full),[f,a]);break}return n&&(Z[t][i]=n),n}function Y(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return i!=null&&n in i?i[n]:t})),e}function _(e,i,t="-",n,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=t));let o=String(e);for(;o.length<i;)o="0"+o;return n&&(o=o.slice(o.length-i)),s+o}function Dt(e,i){return _(e,3).substring(0,i)}function p(e,i,t=0,n=!1,r=!1){return function(s,o){let u=pt(e,s);if((t>0||u>-t)&&(u+=t),e===3)u===0&&t===-12&&(u=12);else if(e===6)return Dt(u,i);let D=L(o,A.MinusSign);return _(u,i,D,n,r)}}function pt(e,i){switch(e){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function d(e,i,t=y.Format,n=!1){return function(r,s){return mt(r,s,e,i,t,n)}}function mt(e,i,t,n,r,s){switch(t){case 2:return ut(i,r,n)[e.getMonth()];case 1:return ot(i,r,n)[e.getDay()];case 0:let o=e.getHours(),u=e.getMinutes();if(s){let l=dt(i),f=lt(i,r,n),a=l.findIndex(C=>{if(Array.isArray(C)){let[h,F]=C,N=o>=h.hours&&u>=h.minutes,T=o<F.hours||o===F.hours&&u<F.minutes;if(h.hours<F.hours){if(N&&T)return!0}else if(N||T)return!0}else if(C.hours===o&&C.minutes===u)return!0;return!1});if(a!==-1)return f[a]}return st(i,r,n)[o<12?0:1];case 3:return at(i,n)[e.getFullYear()<=0?0:1];default:let D=t;throw new Error(`unexpected translation type ${D}`)}}function W(e){return function(i,t,n){let r=-1*n,s=L(t,A.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case 0:return(r>=0?"+":"")+_(o,2,s)+_(Math.abs(r%60),2,s);case 1:return"GMT"+(r>=0?"+":"")+_(o,1,s);case 2:return"GMT"+(r>=0?"+":"")+_(o,2,s)+":"+_(Math.abs(r%60),2,s);case 3:return n===0?"Z":(r>=0?"+":"")+_(o,2,s)+":"+_(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}var Ct=0,X=4;function Ft(e){let i=q(e,Ct,1).getDay();return q(e,0,1+(i<=X?X:X+7)-i)}function Xe(e){let i=e.getDay(),t=i===0?-3:X-i;return q(e.getFullYear(),e.getMonth(),e.getDate()+t)}function ae(e,i=!1){return function(t,n){let r;if(i){let s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();r=1+Math.floor((o+s)/7)}else{let s=Xe(t),o=Ft(s.getFullYear()),u=s.getTime()-o.getTime();r=1+Math.round(u/6048e5)}return _(r,e,L(n,A.MinusSign))}}function K(e,i=!1){return function(t,n){let s=Xe(t).getFullYear();return _(s,e,L(n,A.MinusSign),i)}}var ce={};function yt(e){if(ce[e])return ce[e];let i;switch(e){case"G":case"GG":case"GGG":i=d(3,c.Abbreviated);break;case"GGGG":i=d(3,c.Wide);break;case"GGGGG":i=d(3,c.Narrow);break;case"y":i=p(0,1,0,!1,!0);break;case"yy":i=p(0,2,0,!0,!0);break;case"yyy":i=p(0,3,0,!1,!0);break;case"yyyy":i=p(0,4,0,!1,!0);break;case"Y":i=K(1);break;case"YY":i=K(2,!0);break;case"YYY":i=K(3);break;case"YYYY":i=K(4);break;case"M":case"L":i=p(1,1,1);break;case"MM":case"LL":i=p(1,2,1);break;case"MMM":i=d(2,c.Abbreviated);break;case"MMMM":i=d(2,c.Wide);break;case"MMMMM":i=d(2,c.Narrow);break;case"LLL":i=d(2,c.Abbreviated,y.Standalone);break;case"LLLL":i=d(2,c.Wide,y.Standalone);break;case"LLLLL":i=d(2,c.Narrow,y.Standalone);break;case"w":i=ae(1);break;case"ww":i=ae(2);break;case"W":i=ae(1,!0);break;case"d":i=p(2,1);break;case"dd":i=p(2,2);break;case"c":case"cc":i=p(7,1);break;case"ccc":i=d(1,c.Abbreviated,y.Standalone);break;case"cccc":i=d(1,c.Wide,y.Standalone);break;case"ccccc":i=d(1,c.Narrow,y.Standalone);break;case"cccccc":i=d(1,c.Short,y.Standalone);break;case"E":case"EE":case"EEE":i=d(1,c.Abbreviated);break;case"EEEE":i=d(1,c.Wide);break;case"EEEEE":i=d(1,c.Narrow);break;case"EEEEEE":i=d(1,c.Short);break;case"a":case"aa":case"aaa":i=d(0,c.Abbreviated);break;case"aaaa":i=d(0,c.Wide);break;case"aaaaa":i=d(0,c.Narrow);break;case"b":case"bb":case"bbb":i=d(0,c.Abbreviated,y.Standalone,!0);break;case"bbbb":i=d(0,c.Wide,y.Standalone,!0);break;case"bbbbb":i=d(0,c.Narrow,y.Standalone,!0);break;case"B":case"BB":case"BBB":i=d(0,c.Abbreviated,y.Format,!0);break;case"BBBB":i=d(0,c.Wide,y.Format,!0);break;case"BBBBB":i=d(0,c.Narrow,y.Format,!0);break;case"h":i=p(3,1,-12);break;case"hh":i=p(3,2,-12);break;case"H":i=p(3,1);break;case"HH":i=p(3,2);break;case"m":i=p(4,1);break;case"mm":i=p(4,2);break;case"s":i=p(5,1);break;case"ss":i=p(5,2);break;case"S":i=p(6,1);break;case"SS":i=p(6,2);break;case"SSS":i=p(6,3);break;case"Z":case"ZZ":case"ZZZ":i=W(0);break;case"ZZZZZ":i=W(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=W(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=W(2);break;default:return null}return ce[e]=i,i}function qe(e,i){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?i:t}function Et(e,i){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+i),e}function wt(e,i,t){let n=t?-1:1,r=e.getTimezoneOffset(),s=qe(i,r);return Et(e,n*(s-r))}function At(e){if(xe(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[r,s=1,o=1]=e.split("-").map(u=>+u);return q(r,s-1,o)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(ft))return St(n)}let i=new Date(e);if(!xe(i))throw new Error(`Unable to convert "${e}" into a date`);return i}function St(e){let i=new Date(0),t=0,n=0,r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-t,u=Number(e[5]||0)-n,D=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(i,o,u,D,l),i}function xe(e){return e instanceof Date&&!isNaN(e.valueOf())}var _t=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ue=22,J=".",$="0",bt=";",vt=",",de="#";function It(e,i,t,n,r,s,o=!1){let u="",D=!1;if(!isFinite(e))u=L(t,A.Infinity);else{let l=Bt(e);o&&(l=Tt(l));let f=i.minInt,a=i.minFrac,C=i.maxFrac;if(s){let R=s.match(_t);if(R===null)throw new Error(`${s} is not a valid digit info`);let we=R[1],ee=R[3],Ae=R[5];we!=null&&(f=le(we)),ee!=null&&(a=le(ee)),Ae!=null?C=le(Ae):ee!=null&&a>C&&(C=a)}Rt(l,a,C);let h=l.digits,F=l.integerLen,N=l.exponent,T=[];for(D=h.every(R=>!R);F<f;F++)h.unshift(0);for(;F<0;F++)h.unshift(0);F>0?T=h.splice(F,h.length):(T=h,h=[0]);let x=[];for(h.length>=i.lgSize&&x.unshift(h.splice(-i.lgSize,h.length).join(""));h.length>i.gSize;)x.unshift(h.splice(-i.gSize,h.length).join(""));h.length&&x.unshift(h.join("")),u=x.join(L(t,n)),T.length&&(u+=L(t,r)+T.join("")),N&&(u+=L(t,A.Exponential)+"+"+N)}return e<0&&!D?u=i.negPre+u+i.negSuf:u=i.posPre+u+i.posSuf,u}function Lt(e,i,t){let n=ct(i,We.Decimal),r=Mt(n,L(i,A.MinusSign));return It(e,r,i,A.Group,A.Decimal,t)}function Mt(e,i="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(bt),r=n[0],s=n[1],o=r.indexOf(J)!==-1?r.split(J):[r.substring(0,r.lastIndexOf($)+1),r.substring(r.lastIndexOf($)+1)],u=o[0],D=o[1]||"";t.posPre=u.substring(0,u.indexOf(de));for(let f=0;f<D.length;f++){let a=D.charAt(f);a===$?t.minFrac=t.maxFrac=f+1:a===de?t.maxFrac=f+1:t.posSuf+=a}let l=u.split(vt);if(t.gSize=l[1]?l[1].length:0,t.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,s){let f=r.length-t.posPre.length-t.posSuf.length,a=s.indexOf(de);t.negPre=s.substring(0,a).replace(/'/g,""),t.negSuf=s.slice(a+f).replace(/'/g,"")}else t.negPre=i+t.posPre,t.negSuf=t.posSuf;return t}function Tt(e){if(e.digits[0]===0)return e;let i=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(i===0?e.digits.push(0,0):i===1&&e.digits.push(0),e.integerLen+=2),e}function Bt(e){let i=Math.abs(e)+"",t=0,n,r,s,o,u;for((r=i.indexOf(J))>-1&&(i=i.replace(J,"")),(s=i.search(/e/i))>0?(r<0&&(r=s),r+=+i.slice(s+1),i=i.substring(0,s)):r<0&&(r=i.length),s=0;i.charAt(s)===$;s++);if(s===(u=i.length))n=[0],r=1;else{for(u--;i.charAt(u)===$;)u--;for(r-=s,n=[],o=0;s<=u;s++,o++)n[o]=Number(i.charAt(s))}return r>Ue&&(n=n.splice(0,Ue-1),t=r-1,r=1),{digits:n,exponent:t,integerLen:r}}function Rt(e,i,t){if(i>t)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${t}).`);let n=e.digits,r=n.length-e.integerLen,s=Math.min(Math.max(i,r),t),o=s+e.integerLen,u=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(let a=o;a<n.length;a++)n[a]=0}else{r=Math.max(0,r),e.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let a=1;a<o;a++)n[a]=0}if(u>=5)if(o-1<0){for(let a=0;a>o;a--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let D=s!==0,l=i+e.integerLen,f=n.reduceRight(function(a,C,h,F){return C=C+a,F[h]=C<10?C:C-10,D&&(F[h]===0&&h>=l?F.pop():D=!1),C>=10?1:0},0);f&&(n.unshift(f),e.integerLen++)}function le(e){let i=parseInt(e);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+e);return i}function Ln(e,i){i=encodeURIComponent(i);for(let t of e.split(";")){let n=t.indexOf("="),[r,s]=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)];if(r.trim()===i)return decodeURIComponent(s)}return null}var fe=/\s+/,ze=[],Mn=(()=>{class e{_ngEl;_renderer;initialClasses=ze;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(fe):ze}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(fe):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let r=this.stateMap.get(t);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],r=t[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(fe).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||e)(m(U),m(z))};static \u0275dir=B({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),Tn=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(t){this._viewContainerRef=t}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0||t.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Me(this.ngComponentOutletNgModule,Ve(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Ve(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[n,r]of this._inputsUsed)r?(t.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(t.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||e)(m(k))};static \u0275dir=B({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[te]})}return e})();function Ve(e){return e.get(Le).injector}var he=class{$implicit;ngForOf;index;count;constructor(i,t,n,r){this.$implicit=i,this.ngForOf=t,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Bn=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((r,s,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new he(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(s===null?void 0:s);else if(s!==null){let u=n.get(s);n.move(u,o),je(u,r)}});for(let r=0,s=n.length;r<s;r++){let u=n.get(r).context;u.index=r,u.count=s,u.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{let s=n.get(r.currentIndex);je(s,r)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(m(k),m(ne),m(Oe))};static \u0275dir=B({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function je(e,i){e.context.$implicit=i.item}var Rn=(()=>{class e{_viewContainer;_context=new ge;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ge("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ge("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(m(k),m(ne))};static \u0275dir=B({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),ge=class{$implicit=null;ngIf=null};function Ge(e,i){if(!!!(!i||i.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${be(i)}'.`)}var On=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[r,s]=t.split("."),o=r.indexOf("-")===-1?void 0:Ie.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(m(U),m(Pe),m(z))};static \u0275dir=B({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Pn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(m(k))};static \u0275dir=B({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[te]})}return e})();function Ee(e,i){return new _e(2100,!1)}var De=class{createSubscription(i,t){return se(()=>i.subscribe({next:t,error:n=>{throw n}}))}dispose(i){se(()=>i.unsubscribe())}},pe=class{createSubscription(i,t){return i.then(t,n=>{throw n})}dispose(i){}},Ot=new pe,Pt=new De,Nn=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(Be(t))return Ot;if(Re(t))return Pt;throw Ee(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||e)(m(re,16))};static \u0275pipe=V({name:"async",type:e,pure:!1})}return e})();var Nt="mediumDate",kt=new O(""),$t=new O(""),kn=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,r){this.locale=t,this.defaultTimezone=n,this.defaultOptions=r}transform(t,n,r,s){if(t==null||t===""||t!==t)return null;try{let o=n??this.defaultOptions?.dateFormat??Nt,u=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return gt(t,o,s||this.locale,u)}catch(o){throw Ee(e,o.message)}}static \u0275fac=function(n){return new(n||e)(m(ie,16),m(kt,24),m($t,24))};static \u0275pipe=V({name:"date",type:e,pure:!0})}return e})();var $n=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!xt(t))return null;r||=this._locale;try{let s=Ut(t);return Lt(s,r,n)}catch(s){throw Ee(e,s.message)}}static \u0275fac=function(n){return new(n||e)(m(ie,16))};static \u0275pipe=V({name:"number",type:e,pure:!0})}return e})();function xt(e){return!(e==null||e===""||e!==e)}function Ut(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var xn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Te({type:e});static \u0275inj=ve({})}return e})(),zt="browser",Vt="server";function Un(e){return e===zt}function zn(e){return e===Vt}var Vn=(()=>{class e{static \u0275prov=b({token:e,providedIn:"root",factory:()=>new me(P(Ce),window)})}return e})(),me=class{document;window;offset=()=>[0,0];constructor(i,t){this.document=i,this.window=t}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let t=jt(this.document,i);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let t=i.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}};function jt(e,i){let t=e.getElementById(i)||e.getElementsByName(i)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var He=class{};export{oe as a,bn as b,Ne as c,Ce as d,vn as e,Q as f,Qe as g,In as h,et as i,Ln as j,Mn as k,Tn as l,Bn as m,Rn as n,On as o,Pn as p,Nn as q,kn as r,$n as s,xn as t,zt as u,Un as v,zn as w,Vn as x,He as y};
|
|
1
|
+
import{Ab as B,Bb as V,Hb as Be,Ia as U,Ib as Re,Pc as ie,Qc as re,Rc as Oe,Sc as Pe,Yc as se,da as _e,ea as be,fc as E,g as Se,ga as b,gc as g,ha as ve,ja as O,la as M,lb as m,ma as P,nb as Ie,ob as ne,rb as z,sb as k,ta as te,ub as Le,wb as Me,zb as Te}from"./chunk-PQTHPF23.js";var Ze=null;function oe(){return Ze}function bn(e){Ze??=e}var Ne=class{};var Ce=new O(""),Fe=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>P(Je),providedIn:"platform"})}return e})(),vn=new O(""),Je=(()=>{class e extends Fe{_location;_history;_doc=P(Ce);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return oe().getBaseHref(this._doc)}onPopState(t){let n=oe().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=oe().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,r){this._history.pushState(t,n,r)}replaceState(t,n,r){this._history.replaceState(t,n,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ye(e,i){return e?i?e.endsWith("/")?i.startsWith("/")?e+i.slice(1):e+i:i.startsWith("/")?e+i:`${e}/${i}`:e:i}function ke(e){let i=e.match(/#|\?|$/),t=i&&i.index||e.length,n=t-(e[t-1]==="/"?1:0);return e.slice(0,n)+e.slice(t)}function I(e){return e&&e[0]!=="?"?"?"+e:e}var Q=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=b({token:e,factory:()=>P(Qe),providedIn:"root"})}return e})(),Ye=new O(""),Qe=(()=>{class e extends Q{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??P(Ce).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ye(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+I(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${n}${r}`:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+I(s));this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+I(s));this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(M(Fe),M(Ye,8))};static \u0275prov=b({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),In=(()=>{class e extends Q{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=ye(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,r,s){let o=this.prepareExternalUrl(r+I(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,n,o)}replaceState(t,n,r,s){let o=this.prepareExternalUrl(r+I(s));o.length==0&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,n,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(M(Fe),M(Ye,8))};static \u0275prov=b({token:e,factory:e.\u0275fac})}return e})(),et=(()=>{class e{_subject=new Se;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=it(ke($e(n))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+I(n))}normalize(t){return e.stripTrailingSlash(nt(this._basePath,$e(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",r=null){this._locationStrategy.pushState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+I(n)),r)}replaceState(t,n="",r=null){this._locationStrategy.replaceState(r,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+I(n)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(r=>r(t,n))}subscribe(t,n,r){return this._subject.subscribe({next:t,error:n??void 0,complete:r??void 0})}static normalizeQueryParams=I;static joinWithSlash=ye;static stripTrailingSlash=ke;static \u0275fac=function(n){return new(n||e)(M(Q))};static \u0275prov=b({token:e,factory:()=>tt(),providedIn:"root"})}return e})();function tt(){return new et(M(Q))}function nt(e,i){if(!e||!i.startsWith(e))return i;let t=i.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:i}function $e(e){return e.replace(/\/index.html$/,"")}function it(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var We=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(We||{});var y=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(y||{}),c=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(c||{}),w=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(w||{}),A={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function rt(e){return E(e)[g.LocaleId]}function st(e,i,t){let n=E(e),r=[n[g.DayPeriodsFormat],n[g.DayPeriodsStandalone]],s=S(r,i);return S(s,t)}function ot(e,i,t){let n=E(e),r=[n[g.DaysFormat],n[g.DaysStandalone]],s=S(r,i);return S(s,t)}function ut(e,i,t){let n=E(e),r=[n[g.MonthsFormat],n[g.MonthsStandalone]],s=S(r,i);return S(s,t)}function at(e,i){let n=E(e)[g.Eras];return S(n,i)}function j(e,i){let t=E(e);return S(t[g.DateFormat],i)}function G(e,i){let t=E(e);return S(t[g.TimeFormat],i)}function H(e,i){let n=E(e)[g.DateTimeFormat];return S(n,i)}function L(e,i){let t=E(e),n=t[g.NumberSymbols][i];if(typeof n>"u"){if(i===A.CurrencyDecimal)return t[g.NumberSymbols][A.Decimal];if(i===A.CurrencyGroup)return t[g.NumberSymbols][A.Group]}return n}function ct(e,i){return E(e)[g.NumberFormats][i]}function Ke(e){if(!e[g.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[g.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function dt(e){let i=E(e);return Ke(i),(i[g.ExtraData][2]||[]).map(n=>typeof n=="string"?ue(n):[ue(n[0]),ue(n[1])])}function lt(e,i,t){let n=E(e);Ke(n);let r=[n[g.ExtraData][0],n[g.ExtraData][1]],s=S(r,i)||[];return S(s,t)||[]}function S(e,i){for(let t=i;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function ue(e){let[i,t]=e.split(":");return{hours:+i,minutes:+t}}var ft=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Z={},ht=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function gt(e,i,t,n){let r=At(e);i=v(t,i)||i;let o=[],u;for(;i;)if(u=ht.exec(i),u){o=o.concat(u.slice(1));let f=o.pop();if(!f)break;i=f}else{o.push(i);break}let D=r.getTimezoneOffset();n&&(D=qe(n,D),r=wt(r,n,!0));let l="";return o.forEach(f=>{let a=yt(f);l+=a?a(r,t,D):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function q(e,i,t){let n=new Date(0);return n.setFullYear(e,i,t),n.setHours(0,0,0),n}function v(e,i){let t=rt(e);if(Z[t]??={},Z[t][i])return Z[t][i];let n="";switch(i){case"shortDate":n=j(e,w.Short);break;case"mediumDate":n=j(e,w.Medium);break;case"longDate":n=j(e,w.Long);break;case"fullDate":n=j(e,w.Full);break;case"shortTime":n=G(e,w.Short);break;case"mediumTime":n=G(e,w.Medium);break;case"longTime":n=G(e,w.Long);break;case"fullTime":n=G(e,w.Full);break;case"short":let r=v(e,"shortTime"),s=v(e,"shortDate");n=Y(H(e,w.Short),[r,s]);break;case"medium":let o=v(e,"mediumTime"),u=v(e,"mediumDate");n=Y(H(e,w.Medium),[o,u]);break;case"long":let D=v(e,"longTime"),l=v(e,"longDate");n=Y(H(e,w.Long),[D,l]);break;case"full":let f=v(e,"fullTime"),a=v(e,"fullDate");n=Y(H(e,w.Full),[f,a]);break}return n&&(Z[t][i]=n),n}function Y(e,i){return i&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return i!=null&&n in i?i[n]:t})),e}function _(e,i,t="-",n,r){let s="";(e<0||r&&e<=0)&&(r?e=-e+1:(e=-e,s=t));let o=String(e);for(;o.length<i;)o="0"+o;return n&&(o=o.slice(o.length-i)),s+o}function Dt(e,i){return _(e,3).substring(0,i)}function p(e,i,t=0,n=!1,r=!1){return function(s,o){let u=pt(e,s);if((t>0||u>-t)&&(u+=t),e===3)u===0&&t===-12&&(u=12);else if(e===6)return Dt(u,i);let D=L(o,A.MinusSign);return _(u,i,D,n,r)}}function pt(e,i){switch(e){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}function d(e,i,t=y.Format,n=!1){return function(r,s){return mt(r,s,e,i,t,n)}}function mt(e,i,t,n,r,s){switch(t){case 2:return ut(i,r,n)[e.getMonth()];case 1:return ot(i,r,n)[e.getDay()];case 0:let o=e.getHours(),u=e.getMinutes();if(s){let l=dt(i),f=lt(i,r,n),a=l.findIndex(C=>{if(Array.isArray(C)){let[h,F]=C,N=o>=h.hours&&u>=h.minutes,T=o<F.hours||o===F.hours&&u<F.minutes;if(h.hours<F.hours){if(N&&T)return!0}else if(N||T)return!0}else if(C.hours===o&&C.minutes===u)return!0;return!1});if(a!==-1)return f[a]}return st(i,r,n)[o<12?0:1];case 3:return at(i,n)[e.getFullYear()<=0?0:1];default:let D=t;throw new Error(`unexpected translation type ${D}`)}}function W(e){return function(i,t,n){let r=-1*n,s=L(t,A.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case 0:return(r>=0?"+":"")+_(o,2,s)+_(Math.abs(r%60),2,s);case 1:return"GMT"+(r>=0?"+":"")+_(o,1,s);case 2:return"GMT"+(r>=0?"+":"")+_(o,2,s)+":"+_(Math.abs(r%60),2,s);case 3:return n===0?"Z":(r>=0?"+":"")+_(o,2,s)+":"+_(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${e}"`)}}}var Ct=0,X=4;function Ft(e){let i=q(e,Ct,1).getDay();return q(e,0,1+(i<=X?X:X+7)-i)}function Xe(e){let i=e.getDay(),t=i===0?-3:X-i;return q(e.getFullYear(),e.getMonth(),e.getDate()+t)}function ae(e,i=!1){return function(t,n){let r;if(i){let s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();r=1+Math.floor((o+s)/7)}else{let s=Xe(t),o=Ft(s.getFullYear()),u=s.getTime()-o.getTime();r=1+Math.round(u/6048e5)}return _(r,e,L(n,A.MinusSign))}}function K(e,i=!1){return function(t,n){let s=Xe(t).getFullYear();return _(s,e,L(n,A.MinusSign),i)}}var ce={};function yt(e){if(ce[e])return ce[e];let i;switch(e){case"G":case"GG":case"GGG":i=d(3,c.Abbreviated);break;case"GGGG":i=d(3,c.Wide);break;case"GGGGG":i=d(3,c.Narrow);break;case"y":i=p(0,1,0,!1,!0);break;case"yy":i=p(0,2,0,!0,!0);break;case"yyy":i=p(0,3,0,!1,!0);break;case"yyyy":i=p(0,4,0,!1,!0);break;case"Y":i=K(1);break;case"YY":i=K(2,!0);break;case"YYY":i=K(3);break;case"YYYY":i=K(4);break;case"M":case"L":i=p(1,1,1);break;case"MM":case"LL":i=p(1,2,1);break;case"MMM":i=d(2,c.Abbreviated);break;case"MMMM":i=d(2,c.Wide);break;case"MMMMM":i=d(2,c.Narrow);break;case"LLL":i=d(2,c.Abbreviated,y.Standalone);break;case"LLLL":i=d(2,c.Wide,y.Standalone);break;case"LLLLL":i=d(2,c.Narrow,y.Standalone);break;case"w":i=ae(1);break;case"ww":i=ae(2);break;case"W":i=ae(1,!0);break;case"d":i=p(2,1);break;case"dd":i=p(2,2);break;case"c":case"cc":i=p(7,1);break;case"ccc":i=d(1,c.Abbreviated,y.Standalone);break;case"cccc":i=d(1,c.Wide,y.Standalone);break;case"ccccc":i=d(1,c.Narrow,y.Standalone);break;case"cccccc":i=d(1,c.Short,y.Standalone);break;case"E":case"EE":case"EEE":i=d(1,c.Abbreviated);break;case"EEEE":i=d(1,c.Wide);break;case"EEEEE":i=d(1,c.Narrow);break;case"EEEEEE":i=d(1,c.Short);break;case"a":case"aa":case"aaa":i=d(0,c.Abbreviated);break;case"aaaa":i=d(0,c.Wide);break;case"aaaaa":i=d(0,c.Narrow);break;case"b":case"bb":case"bbb":i=d(0,c.Abbreviated,y.Standalone,!0);break;case"bbbb":i=d(0,c.Wide,y.Standalone,!0);break;case"bbbbb":i=d(0,c.Narrow,y.Standalone,!0);break;case"B":case"BB":case"BBB":i=d(0,c.Abbreviated,y.Format,!0);break;case"BBBB":i=d(0,c.Wide,y.Format,!0);break;case"BBBBB":i=d(0,c.Narrow,y.Format,!0);break;case"h":i=p(3,1,-12);break;case"hh":i=p(3,2,-12);break;case"H":i=p(3,1);break;case"HH":i=p(3,2);break;case"m":i=p(4,1);break;case"mm":i=p(4,2);break;case"s":i=p(5,1);break;case"ss":i=p(5,2);break;case"S":i=p(6,1);break;case"SS":i=p(6,2);break;case"SSS":i=p(6,3);break;case"Z":case"ZZ":case"ZZZ":i=W(0);break;case"ZZZZZ":i=W(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=W(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=W(2);break;default:return null}return ce[e]=i,i}function qe(e,i){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?i:t}function Et(e,i){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+i),e}function wt(e,i,t){let n=t?-1:1,r=e.getTimezoneOffset(),s=qe(i,r);return Et(e,n*(s-r))}function At(e){if(xe(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[r,s=1,o=1]=e.split("-").map(u=>+u);return q(r,s-1,o)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(ft))return St(n)}let i=new Date(e);if(!xe(i))throw new Error(`Unable to convert "${e}" into a date`);return i}function St(e){let i=new Date(0),t=0,n=0,r=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),r.call(i,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-t,u=Number(e[5]||0)-n,D=Number(e[6]||0),l=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(i,o,u,D,l),i}function xe(e){return e instanceof Date&&!isNaN(e.valueOf())}var _t=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ue=22,J=".",$="0",bt=";",vt=",",de="#";function It(e,i,t,n,r,s,o=!1){let u="",D=!1;if(!isFinite(e))u=L(t,A.Infinity);else{let l=Bt(e);o&&(l=Tt(l));let f=i.minInt,a=i.minFrac,C=i.maxFrac;if(s){let R=s.match(_t);if(R===null)throw new Error(`${s} is not a valid digit info`);let we=R[1],ee=R[3],Ae=R[5];we!=null&&(f=le(we)),ee!=null&&(a=le(ee)),Ae!=null?C=le(Ae):ee!=null&&a>C&&(C=a)}Rt(l,a,C);let h=l.digits,F=l.integerLen,N=l.exponent,T=[];for(D=h.every(R=>!R);F<f;F++)h.unshift(0);for(;F<0;F++)h.unshift(0);F>0?T=h.splice(F,h.length):(T=h,h=[0]);let x=[];for(h.length>=i.lgSize&&x.unshift(h.splice(-i.lgSize,h.length).join(""));h.length>i.gSize;)x.unshift(h.splice(-i.gSize,h.length).join(""));h.length&&x.unshift(h.join("")),u=x.join(L(t,n)),T.length&&(u+=L(t,r)+T.join("")),N&&(u+=L(t,A.Exponential)+"+"+N)}return e<0&&!D?u=i.negPre+u+i.negSuf:u=i.posPre+u+i.posSuf,u}function Lt(e,i,t){let n=ct(i,We.Decimal),r=Mt(n,L(i,A.MinusSign));return It(e,r,i,A.Group,A.Decimal,t)}function Mt(e,i="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(bt),r=n[0],s=n[1],o=r.indexOf(J)!==-1?r.split(J):[r.substring(0,r.lastIndexOf($)+1),r.substring(r.lastIndexOf($)+1)],u=o[0],D=o[1]||"";t.posPre=u.substring(0,u.indexOf(de));for(let f=0;f<D.length;f++){let a=D.charAt(f);a===$?t.minFrac=t.maxFrac=f+1:a===de?t.maxFrac=f+1:t.posSuf+=a}let l=u.split(vt);if(t.gSize=l[1]?l[1].length:0,t.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,s){let f=r.length-t.posPre.length-t.posSuf.length,a=s.indexOf(de);t.negPre=s.substring(0,a).replace(/'/g,""),t.negSuf=s.slice(a+f).replace(/'/g,"")}else t.negPre=i+t.posPre,t.negSuf=t.posSuf;return t}function Tt(e){if(e.digits[0]===0)return e;let i=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(i===0?e.digits.push(0,0):i===1&&e.digits.push(0),e.integerLen+=2),e}function Bt(e){let i=Math.abs(e)+"",t=0,n,r,s,o,u;for((r=i.indexOf(J))>-1&&(i=i.replace(J,"")),(s=i.search(/e/i))>0?(r<0&&(r=s),r+=+i.slice(s+1),i=i.substring(0,s)):r<0&&(r=i.length),s=0;i.charAt(s)===$;s++);if(s===(u=i.length))n=[0],r=1;else{for(u--;i.charAt(u)===$;)u--;for(r-=s,n=[],o=0;s<=u;s++,o++)n[o]=Number(i.charAt(s))}return r>Ue&&(n=n.splice(0,Ue-1),t=r-1,r=1),{digits:n,exponent:t,integerLen:r}}function Rt(e,i,t){if(i>t)throw new Error(`The minimum number of digits after fraction (${i}) is higher than the maximum (${t}).`);let n=e.digits,r=n.length-e.integerLen,s=Math.min(Math.max(i,r),t),o=s+e.integerLen,u=n[o];if(o>0){n.splice(Math.max(e.integerLen,o));for(let a=o;a<n.length;a++)n[a]=0}else{r=Math.max(0,r),e.integerLen=1,n.length=Math.max(1,o=s+1),n[0]=0;for(let a=1;a<o;a++)n[a]=0}if(u>=5)if(o-1<0){for(let a=0;a>o;a--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[o-1]++;for(;r<Math.max(0,s);r++)n.push(0);let D=s!==0,l=i+e.integerLen,f=n.reduceRight(function(a,C,h,F){return C=C+a,F[h]=C<10?C:C-10,D&&(F[h]===0&&h>=l?F.pop():D=!1),C>=10?1:0},0);f&&(n.unshift(f),e.integerLen++)}function le(e){let i=parseInt(e);if(isNaN(i))throw new Error("Invalid integer literal when parsing "+e);return i}function Ln(e,i){i=encodeURIComponent(i);for(let t of e.split(";")){let n=t.indexOf("="),[r,s]=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)];if(r.trim()===i)return decodeURIComponent(s)}return null}var fe=/\s+/,ze=[],Mn=(()=>{class e{_ngEl;_renderer;initialClasses=ze;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(fe):ze}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(fe):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let r=this.stateMap.get(t);r!==void 0?(r.enabled!==n&&(r.changed=!0,r.enabled=n),r.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],r=t[1];r.changed?(this._toggleClass(n,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),r.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(fe).forEach(r=>{n?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(n){return new(n||e)(m(U),m(z))};static \u0275dir=B({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),Tn=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(t){this._viewContainerRef=t}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0||t.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Me(this.ngComponentOutletNgModule,Ve(n)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Ve(n)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:n,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[n,r]of this._inputsUsed)r?(t.setInput(n,this.ngComponentOutletInputs[n]),this._inputsUsed.set(n,!1)):(t.setInput(n,void 0),this._inputsUsed.delete(n))}static \u0275fac=function(n){return new(n||e)(m(k))};static \u0275dir=B({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[te]})}return e})();function Ve(e){return e.get(Le).injector}var he=class{$implicit;ngForOf;index;count;constructor(i,t,n,r){this.$implicit=i,this.ngForOf=t,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Bn=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,r){this._viewContainer=t,this._template=n,this._differs=r}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((r,s,o)=>{if(r.previousIndex==null)n.createEmbeddedView(this._template,new he(r.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)n.remove(s===null?void 0:s);else if(s!==null){let u=n.get(s);n.move(u,o),je(u,r)}});for(let r=0,s=n.length;r<s;r++){let u=n.get(r).context;u.index=r,u.count=s,u.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{let s=n.get(r.currentIndex);je(s,r)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(m(k),m(ne),m(Oe))};static \u0275dir=B({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function je(e,i){e.context.$implicit=i.item}var Rn=(()=>{class e{_viewContainer;_context=new ge;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Ge("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Ge("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(m(k),m(ne))};static \u0275dir=B({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),ge=class{$implicit=null;ngIf=null};function Ge(e,i){if(!!!(!i||i.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${be(i)}'.`)}var On=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[r,s]=t.split("."),o=r.indexOf("-")===-1?void 0:Ie.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${n}${s}`:n,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(m(U),m(Pe),m(z))};static \u0275dir=B({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Pn=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,r):!1,get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(m(k))};static \u0275dir=B({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[te]})}return e})();function Ee(e,i){return new _e(2100,!1)}var De=class{createSubscription(i,t){return se(()=>i.subscribe({next:t,error:n=>{throw n}}))}dispose(i){se(()=>i.unsubscribe())}},pe=class{createSubscription(i,t){return i.then(t,n=>{throw n})}dispose(i){}},Ot=new pe,Pt=new De,Nn=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n))}_selectStrategy(t){if(Be(t))return Ot;if(Re(t))return Pt;throw Ee(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||e)(m(re,16))};static \u0275pipe=V({name:"async",type:e,pure:!1})}return e})();var Nt="mediumDate",kt=new O(""),$t=new O(""),kn=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,r){this.locale=t,this.defaultTimezone=n,this.defaultOptions=r}transform(t,n,r,s){if(t==null||t===""||t!==t)return null;try{let o=n??this.defaultOptions?.dateFormat??Nt,u=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return gt(t,o,s||this.locale,u)}catch(o){throw Ee(e,o.message)}}static \u0275fac=function(n){return new(n||e)(m(ie,16),m(kt,24),m($t,24))};static \u0275pipe=V({name:"date",type:e,pure:!0})}return e})();var $n=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,r){if(!xt(t))return null;r||=this._locale;try{let s=Ut(t);return Lt(s,r,n)}catch(s){throw Ee(e,s.message)}}static \u0275fac=function(n){return new(n||e)(m(ie,16))};static \u0275pipe=V({name:"number",type:e,pure:!0})}return e})();function xt(e){return!(e==null||e===""||e!==e)}function Ut(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var xn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Te({type:e});static \u0275inj=ve({})}return e})(),zt="browser",Vt="server";function Un(e){return e===zt}function zn(e){return e===Vt}var Vn=(()=>{class e{static \u0275prov=b({token:e,providedIn:"root",factory:()=>new me(P(Ce),window)})}return e})(),me=class{document;window;offset=()=>[0,0];constructor(i,t){this.document=i,this.window=t}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i){this.window.scrollTo(i[0],i[1])}scrollToAnchor(i){let t=jt(this.document,i);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(i){this.window.history.scrollRestoration=i}scrollToElement(i){let t=i.getBoundingClientRect(),n=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}};function jt(e,i){let t=e.getElementById(i)||e.getElementsByName(i)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=n.currentNode;for(;r;){let s=r.shadowRoot;if(s){let o=s.getElementById(i)||s.querySelector(`[name="${i}"]`);if(o)return o}r=n.nextNode()}}return null}var He=class{};export{oe as a,bn as b,Ne as c,Ce as d,vn as e,Q as f,Qe as g,In as h,et as i,Ln as j,Mn as k,Tn as l,Bn as m,Rn as n,On as o,Pn as p,Nn as q,kn as r,$n as s,xn as t,zt as u,Un as v,zn as w,Vn as x,He as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as q}from"./chunk-33RD6RQS.js";import{a as L,b as $}from"./chunk-M4ZOPGSP.js";import"./chunk-U2S74ZLK.js";import{f as F,h as H,i as K,j as z}from"./chunk-FDDNZH4H.js";import"./chunk-PCJXJ6O4.js";import"./chunk-7RH6F4PN.js";import"./chunk-DKWZOSVY.js";import{g as O}from"./chunk-3UAQZJAG.js";import"./chunk-Z53S4NM2.js";import"./chunk-YX7446ZM.js";import"./chunk-2LKTSMUI.js";import"./chunk-3ROVFYLI.js";import"./chunk-P4OJNULI.js";import"./chunk-S35HUXPS.js";import"./chunk-7X454BGN.js";import{n as N,r as V,s as A,t as G}from"./chunk-C4WUUVLC.js";import{$b as S,Fb as b,Jc as f,Kc as j,La as C,Lc as J,Mc as w,Ob as c,Xc as P,Zb as t,Zc as B,_b as n,aa as T,ac as I,bc as E,dc as y,hc as _,ic as x,kb as l,ma as M,qc as o,rc as p,t as D,ua as g,va as v,yb as R,zc as k}from"./chunk-PQTHPF23.js";import{a as d,b as u}from"./chunk-EQDQRRRY.js";var te=()=>({"min-width":"50rem"});function ne(r,h){if(r&1){let e=y();t(0,"button",7),_("click",function(){g(e);let a=x();return v(a.onGenerateJournal())}),o(1," Generate Journal "),n()}}function ie(r,h){r&1&&(t(0,"tr")(1,"th",9),S(2,"p-tableHeaderCheckbox"),n(),t(3,"th"),o(4,"Outlet"),n(),t(5,"th"),o(6,"Number"),n(),t(7,"th"),o(8,"Customer"),n(),t(9,"th"),o(10,"Date"),n(),t(11,"th"),o(12,"Due"),n(),t(13,"th"),o(14,"Amount"),n(),t(15,"th"),o(16,"Payment"),n(),t(17,"th"),o(18,"Delivery"),n()())}function ae(r,h){if(r&1&&(t(0,"tr")(1,"td"),S(2,"p-tableCheckbox",10),n(),t(3,"td"),o(4),n(),t(5,"td"),o(6),n(),t(7,"td"),o(8),n(),t(9,"td"),o(10),f(11,"date"),n(),t(12,"td"),o(13),f(14,"date"),n(),t(15,"td"),o(16),f(17,"number"),n(),t(18,"td"),S(19,"p-chip",11),n(),t(20,"td"),S(21,"p-chip",11),n()()),r&2){let e=h.$implicit;l(2),c("value",e),l(2),p(e.outlet),l(2),p(e.number),l(2),p(e.customer),l(2),p(J(11,9,e.date,"d MMM y hh:mm")),l(3),p(J(14,12,e.due,"d MMM y")),l(3),p(j(17,15,e.amount)),l(3),c("label",e.payment),l(2),c("label",e.delivery)}}function oe(r,h){if(r&1){let e=y();t(0,"p-table",8),_("onRowSelect",function(a){g(e);let m=x();return v(m.onRowSelect(a))}),b(1,ie,19,0,"ng-template",null,0,w)(3,ae,22,17,"ng-template",null,1,w),n()}if(r&2){let e=x();c("value",e.journalInvoice().data)("tableStyle",k(2,te))}}var X=(()=>{class r{constructor(){this.generateJournalService=M(q),this.journalInvoice=C(null),this.pageData=C({PageNumber:1,PageSize:10,Number:""}),this.selectedRows=P(()=>this.journalInvoice()&&Array.isArray(this.journalInvoice().data)?this.journalInvoice().data.filter(e=>e.checked):[]),B(()=>{let e=this.pageData();if(e){let i=Object.entries(e).reduce((a,[m,s])=>(m==="Number"&&typeof s=="string"&&s.length===0?delete a[m]:a[m]=s,a),{});this.getJournalInvoice(i)}})}getJournalInvoice(e){this.generateJournalService.getJournalInvoice(e).pipe(D(i=>u(d({},i),{data:i.data.map(a=>u(d({},a),{checked:!1}))})),T(i=>this.journalInvoice.set(i))).subscribe()}onRowSelect(e){console.log("onRowSelect",e);let i=this.journalInvoice().data.slice().map(a=>a.id===e.data.id?u(d({},a),{checked:!0}):u(d({},a),{checked:!1}));this.journalInvoice.update(a=>u(d({},a),{data:i}))}ngOnInit(){console.log("ngOnInit")}onGenerateJournal(){let e=this.journalInvoice().data.filter(i=>i.checked).map(i=>i.id);this.generateJournalService.generateJournalInvoice(e).subscribe()}onSearch(e){this.pageData.update(i=>u(d({},i),{Number:e}))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=R({type:r,selectors:[["app-customer-invoice"]],decls:5,vars:3,consts:[["header",""],["body",""],["pageTitle","Customer Invoice",3,"searchEmitted","isSearchableInput"],["ngProjectAs","action-button",5,["action-button"]],["type","button","class","btn btn-success rounded",3,"click",4,"ngIf"],["ngProjectAs","content",5,["content"]],["dataKey","id",3,"value","tableStyle","onRowSelect",4,"ngIf"],["type","button",1,"btn","btn-success","rounded",3,"click"],["dataKey","id",3,"onRowSelect","value","tableStyle"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(i,a){i&1&&(t(0,"app-main-panel",2),_("searchEmitted",function(s){return a.onSearch(s)}),I(1,3),b(2,ne,2,0,"button",4),E(),I(3,5),b(4,oe,5,3,"p-table",6),E(),n()),i&2&&(c("isSearchableInput",!0),l(2),c("ngIf",a.selectedRows().length),l(2),c("ngIf",a.journalInvoice()))},dependencies:[O,z,F,H,K,G,N,A,V,$,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return r})();var re=()=>({"min-width":"50rem"});function le(r,h){if(r&1){let e=y();t(0,"button",7),_("click",function(){g(e);let a=x();return v(a.onGenerateJournal())}),o(1," Generate Journal "),n()}}function pe(r,h){r&1&&(t(0,"tr")(1,"th",9),S(2,"p-tableHeaderCheckbox"),n(),t(3,"th"),o(4,"Outlet"),n(),t(5,"th"),o(6,"Number"),n(),t(7,"th"),o(8,"Customer"),n(),t(9,"th"),o(10,"Date"),n(),t(11,"th"),o(12,"Due"),n(),t(13,"th"),o(14,"Amount"),n(),t(15,"th"),o(16,"Payment"),n(),t(17,"th"),o(18,"Delivery"),n()())}function me(r,h){if(r&1&&(t(0,"tr")(1,"td"),S(2,"p-tableCheckbox",10),n(),t(3,"td"),o(4),n(),t(5,"td"),o(6),n(),t(7,"td"),o(8),n(),t(9,"td"),o(10),f(11,"date"),n(),t(12,"td"),o(13),f(14,"date"),n(),t(15,"td"),o(16),f(17,"number"),n(),t(18,"td"),S(19,"p-chip",11),n(),t(20,"td"),S(21,"p-chip",11),n()()),r&2){let e=h.$implicit;l(2),c("value",e),l(2),p(e.outlet),l(2),p(e.number),l(2),p(e.customer),l(2),p(J(11,9,e.date,"d MMM y hh:mm")),l(3),p(J(14,12,e.due,"d MMM y")),l(3),p(j(17,15,e.amount)),l(3),c("label",e.payment),l(2),c("label",e.delivery)}}function ce(r,h){if(r&1){let e=y();t(0,"p-table",8),_("onRowSelect",function(a){g(e);let m=x();return v(m.onRowSelect(a))}),b(1,pe,19,0,"ng-template",null,0,w)(3,me,22,17,"ng-template",null,1,w),n()}if(r&2){let e=x();c("value",e.journalInvoice().data)("tableStyle",k(2,re))}}var Y=(()=>{class r{constructor(){this.generateJournalService=M(q),this.journalInvoice=C(null),this.pageData=C({PageNumber:1,PageSize:10,Number:""}),this.selectedRows=P(()=>this.journalInvoice()&&Array.isArray(this.journalInvoice().data)?this.journalInvoice().data.filter(e=>e.checked):[]),B(()=>{let e=this.pageData();if(e){let i=Object.entries(e).reduce((a,[m,s])=>(m==="Number"&&typeof s=="string"&&s.length===0?delete a[m]:a[m]=s,a),{});this.getJournalInvoice(i)}})}getJournalInvoice(e){this.generateJournalService.getJournalSupplierBill(e).pipe(D(i=>u(d({},i),{data:i.data.map(a=>u(d({},a),{checked:!1}))})),T(i=>this.journalInvoice.set(i))).subscribe()}onRowSelect(e){console.log("onRowSelect",e);let i=this.journalInvoice().data.slice().map(a=>a.id===e.data.id?u(d({},a),{checked:!0}):u(d({},a),{checked:!1}));this.journalInvoice.update(a=>u(d({},a),{data:i}))}onGenerateJournal(){let e=this.journalInvoice().data.filter(i=>i.checked).map(i=>i.id);this.generateJournalService.generateJournalSupplierBill(e).subscribe()}onSearch(e){this.pageData.update(i=>u(d({},i),{Number:e}))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=R({type:r,selectors:[["app-journal-supplier-bill"]],decls:5,vars:3,consts:[["header",""],["body",""],["pageTitle","Supplier Bill",3,"searchEmitted","isSearchableInput"],["ngProjectAs","action-button",5,["action-button"]],["type","button","class","btn btn-success rounded",3,"click",4,"ngIf"],["ngProjectAs","content",5,["content"]],["dataKey","id",3,"value","tableStyle","onRowSelect",4,"ngIf"],["type","button",1,"btn","btn-success","rounded",3,"click"],["dataKey","id",3,"onRowSelect","value","tableStyle"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(i,a){i&1&&(t(0,"app-main-panel",2),_("searchEmitted",function(s){return a.onSearch(s)}),I(1,3),b(2,le,2,0,"button",4),E(),I(3,5),b(4,ce,5,3,"p-table",6),E(),n()),i&2&&(c("isSearchableInput",!0),l(2),c("ngIf",a.selectedRows().length),l(2),c("ngIf",a.journalInvoice()))},dependencies:[O,z,F,H,K,G,N,A,V,$,L],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return r})();var de=()=>({"min-width":"50rem"});function ue(r,h){if(r&1){let e=y();t(0,"button",7),_("click",function(){g(e);let a=x();return v(a.onGenerateJournal())}),o(1," Generate Journal "),n()}}function se(r,h){r&1&&(t(0,"tr")(1,"th",9),S(2,"p-tableHeaderCheckbox"),n(),t(3,"th"),o(4,"Number"),n(),t(5,"th"),o(6,"Open"),n(),t(7,"th"),o(8,"Close"),n(),t(9,"th"),o(10,"Cashier"),n(),t(11,"th"),o(12,"Sales + Tax"),n(),t(13,"th"),o(14,"Invoices"),n(),t(15,"th"),o(16,"Outlet"),n(),t(17,"th"),o(18,"Register"),n(),t(19,"th"),o(20,"Visitors"),n()())}function he(r,h){if(r&1&&(t(0,"tr")(1,"td"),S(2,"p-tableCheckbox",10),n(),t(3,"td"),o(4),n(),t(5,"td"),o(6),f(7,"date"),n(),t(8,"td"),o(9),f(10,"date"),n(),t(11,"td"),o(12),n(),t(13,"td"),o(14),f(15,"number"),n(),t(16,"td"),o(17),f(18,"number"),n(),t(19,"td"),o(20),n(),t(21,"td"),o(22),n(),t(23,"td"),o(24),f(25,"number"),n()()),r&2){let e=h.$implicit;l(2),c("value",e),l(2),p(e.number),l(2),p(J(7,10,e.open,"dd MMM y hh:mm")),l(3),p(J(10,13,e.close,"dd MMM y hh:mm")),l(3),p(e.cashier),l(2),p(j(15,16,e.salesNTax)),l(3),p(j(18,18,e.totalInvoice)),l(3),p(e.outlet),l(2),p(e.register),l(2),p(j(25,20,e.visitors))}}function fe(r,h){if(r&1){let e=y();t(0,"p-table",8),_("onRowSelect",function(a){g(e);let m=x();return v(m.onRowSelect(a))}),b(1,se,21,0,"ng-template",null,0,w)(3,he,26,22,"ng-template",null,1,w),n()}if(r&2){let e=x();c("value",e.journalInvoice().data)("tableStyle",k(2,de))}}var Z=(()=>{class r{constructor(){this.generateJournalService=M(q),this.journalInvoice=C(null),this.pageData=C({PageNumber:1,PageSize:10,Number:""}),this.selectedRows=P(()=>this.journalInvoice()&&Array.isArray(this.journalInvoice().data)?this.journalInvoice().data.filter(e=>e.checked):[]),B(()=>{let e=this.pageData();if(e){let i=Object.entries(e).reduce((a,[m,s])=>(m==="Number"&&typeof s=="string"&&s.length===0?delete a[m]:a[m]=s,a),{});this.getJournalInvoice(i)}})}getJournalInvoice(e){this.generateJournalService.getJournalShift(e).pipe(D(i=>u(d({},i),{data:i.data.map(a=>u(d({},a),{checked:!1}))})),T(i=>this.journalInvoice.set(i))).subscribe()}onRowSelect(e){console.log("onRowSelect",e);let i=this.journalInvoice().data.slice().map(a=>a.id===e.data.id?u(d({},a),{checked:!0}):u(d({},a),{checked:!1}));this.journalInvoice.update(a=>u(d({},a),{data:i}))}onGenerateJournal(){let e=this.journalInvoice().data.filter(i=>i.checked).map(i=>i.id);this.generateJournalService.generateJournalSupplierBill(e).subscribe()}onSearch(e){this.pageData.update(i=>u(d({},i),{Number:e}))}static{this.\u0275fac=function(i){return new(i||r)}}static{this.\u0275cmp=R({type:r,selectors:[["app-journal-shift"]],decls:5,vars:3,consts:[["header",""],["body",""],["pageTitle","Shift Journal",3,"searchEmitted","isSearchableInput"],["ngProjectAs","action-button",5,["action-button"]],["type","button","class","btn btn-success rounded",3,"click",4,"ngIf"],["ngProjectAs","content",5,["content"]],["dataKey","id",3,"value","tableStyle","onRowSelect",4,"ngIf"],["type","button",1,"btn","btn-success","rounded",3,"click"],["dataKey","id",3,"onRowSelect","value","tableStyle"],[2,"width","4rem"],[3,"value"]],template:function(i,a){i&1&&(t(0,"app-main-panel",2),_("searchEmitted",function(s){return a.onSearch(s)}),I(1,3),b(2,ue,2,0,"button",4),E(),I(3,5),b(4,fe,5,3,"p-table",6),E(),n()),i&2&&(c("isSearchableInput",!0),l(2),c("ngIf",a.selectedRows().length),l(2),c("ngIf",a.journalInvoice()))},dependencies:[O,z,F,H,K,G,N,A,V,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return r})();var Ye=[{path:"invoice",component:X},{path:"supplier-bill",component:Y},{path:"shift",component:Z},{path:"ar-collection",loadComponent:()=>import("./chunk-RIUEIX64.js").then(r=>r.ARJournalComponent)},{path:"ap-collection",loadComponent:()=>import("./chunk-UQ3SWGEA.js").then(r=>r.ApJournalComponent)},{path:"adjustment",loadComponent:()=>import("./chunk-EEJWF26F.js").then(r=>r.AdjustmentJournalComponent)}];export{Ye as generateJournalRoutes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ha as o,ja as r,zb as a}from"./chunk-PQTHPF23.js";var p=/[&<>"']/g,ke=RegExp(p.source);function m(){return new l}var l=class{constructor(){this._selected=[]}get value(){return this._selected}select(e,t,i){if(e.selected=!0,(!e.children||!t&&i)&&this._selected.push(e),t)if(e.parent){let n=e.parent.children.length,u=e.parent.children.filter(c=>c.selected).length;e.parent.selected=n===u}else e.children&&(this._setChildrenSelectedState(e.children,!0),this._removeChildren(e),i&&this._activeChildren(e)?this._selected=[...this._selected.filter(n=>n.parent!==e),e]:this._selected=[...this._selected,...e.children.filter(n=>!n.disabled)])}unselect(e,t){if(this._selected=this._selected.filter(i=>i!==e),e.selected=!1,t)if(e.parent&&e.parent.selected){let i=e.parent.children;this._removeParent(e.parent),this._removeChildren(e.parent),this._selected.push(...i.filter(n=>n!==e&&!n.disabled)),e.parent.selected=!1}else e.children&&(this._setChildrenSelectedState(e.children,!1),this._removeChildren(e))}clear(e){this._selected=e?this._selected.filter(t=>t.disabled):[]}_setChildrenSelectedState(e,t){for(let i of e)i.disabled||(i.selected=t)}_removeChildren(e){this._selected=[...this._selected.filter(t=>t.parent!==e),...e.children.filter(t=>t.parent===e&&t.disabled&&t.selected)]}_removeParent(e){this._selected=this._selected.filter(t=>t!==e)}_activeChildren(e){return e.children.every(t=>!t.disabled||t.selected)}};var g=new r("ng-select-selection-model");var Le=(()=>{class s{static{this.\u0275fac=function(i){return new(i||s)}}static{this.\u0275mod=a({type:s})}static{this.\u0275inj=o({providers:[{provide:g,useValue:m}]})}}return s})();export{Le as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as m}from"./chunk-P4OJNULI.js";import{o as g}from"./chunk-7X454BGN.js";import{aa as s,ga as l,ma as c}from"./chunk-PQTHPF23.js";var a=class extends Error{};a.prototype.name="InvalidTokenError";function T(o){return decodeURIComponent(atob(o).replace(/(.)/g,(r,t)=>{let e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e}))}function p(o){let r=o.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return T(r)}catch{return atob(r)}}function u(o,r){if(typeof o!="string")throw new a("Invalid token specified: must be a string");r||(r={});let t=r.header===!0?0:1,e=o.split(".")[t];if(typeof e!="string")throw new a(`Invalid token specified: missing part #${t+1}`);let n;try{n=p(e)}catch(i){throw new a(`Invalid token specified: invalid base64 for part #${t+1} (${i.message})`)}try{return JSON.parse(n)}catch(i){throw new a(`Invalid token specified: invalid json for part #${t+1} (${i.message})`)}}var E=(()=>{class o{constructor(){this.httpService=c(m),this.router=c(g),this.autoLogout()}login(t){return this.httpService.post("","api/Authentication/login",t).pipe(s(e=>{let n=t.SubDomain;localStorage.setItem("AUTH_TOKEN",e.access_token),localStorage.setItem("AUTH_POS_TOKEN",e.pos.access_token),localStorage.setItem("AUTH_TOKEN_TYPE",e.token_type),localStorage.setItem("AUTH_EXPIRES_AT",e.expiredAt),localStorage.setItem("AUTH_DOMAIN",n.substring(n.indexOf("."))),localStorage.setItem("AUTH_SUB_DOMAIN",t.SubDomain.split(".")[0]),localStorage.setItem("AUTH_USERNAME",t.Username),this.storeTenantId(e.access_token),this.autoLogout()}))}isAuthenticated(){return!!localStorage.getItem("AUTH_TOKEN")}getToken(){return localStorage.getItem("AUTH_TOKEN")}getTokenType(){return localStorage.getItem("AUTH_TOKEN_TYPE")}isTokenExpired(){let t=localStorage.getItem("AUTH_EXPIRES_AT");return t?new Date(t).getTime()<Date.now():!0}autoLogout(){clearTimeout(this.logoutTimer);let t=localStorage.getItem("AUTH_EXPIRES_AT");if(!t)return;let e=new Date(t).getTime()-Date.now();e>0?this.logoutTimer=setTimeout(()=>this.logout(),e):this.logout()}getTenantExternalURL(){let t=localStorage.getItem("AUTH_SUB_DOMAIN")||"",e=localStorage.getItem("AUTH_DOMAIN")||"";return t&&e?`https://${t}${e}`:""}getTanantToken(){return localStorage.getItem("AUTH_POS_TOKEN")}logout(){localStorage.removeItem("AUTH_TOKEN"),localStorage.removeItem("AUTH_TOKEN_TYPE"),localStorage.removeItem("AUTH_EXPIRES_AT"),clearTimeout(this.logoutTimer),this.router.navigate(["/authentication/login"])}getFullDomain(){let t=localStorage.getItem("AUTH_SUB_DOMAIN"),e=localStorage.getItem("AUTH_DOMAIN");return!t||!e?(console.error("Subdomain or domain is missing in local storage."),null):`${t}${e}`}storeTenantId(t){let e=u(t);e&&localStorage.setItem("AC_TENANT",e.TID)}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=l({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{E as a};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import{h as Ft,n as B,o as Ot}from"./chunk-2LKTSMUI.js";import{$ as A,Ga as Vt,Ha as U,N as bt,Pa as Lt,S as k,ba as it,fa as xt,ya as Et}from"./chunk-3ROVFYLI.js";import{k as wt,m as St,n as It,o as vt,p as Tt,t as zt,v as et}from"./chunk-C4WUUVLC.js";import{$b as v,Ac as $,Bc as q,Cb as V,Cc as yt,Da as K,Ea as ht,Fb as y,Mc as Z,Nb as w,Ob as m,Sb as O,Zb as S,_b as I,ac as P,bc as D,cc as Q,dc as pt,ga as st,ha as ot,hc as ut,ic as C,jc as _t,kb as _,kc as gt,lb as dt,lc as N,ma as lt,mc as tt,nc as M,oc as R,pc as j,ta as rt,ua as at,va as ct,wa as F,xa as x,yb as E,yc as ft,zb as mt,zc as Ct}from"./chunk-PQTHPF23.js";import{a as J,b as Y}from"./chunk-EQDQRRRY.js";var ue=(()=>{class i extends B{static \u0275fac=(()=>{let t;return function(n){return(t||(t=x(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["BlankIcon"]],features:[V],decls:2,vars:0,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(e,n){e&1&&(F(),S(0,"svg",0),v(1,"rect",1),I())},encapsulation:2})}return i})();var fe=(()=>{class i extends B{static \u0275fac=(()=>{let t;return function(n){return(t||(t=x(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["CheckIcon"]],features:[V],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z","fill","currentColor"]],template:function(e,n){e&1&&(F(),S(0,"svg",0),v(1,"path",1),I()),e&2&&(O(n.getClassNames()),w("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var we=(()=>{class i extends B{static \u0275fac=(()=>{let t;return function(n){return(t||(t=x(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["MinusIcon"]],features:[V],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z","fill","currentColor"]],template:function(e,n){e&1&&(F(),S(0,"svg",0),v(1,"path",1),I()),e&2&&(O(n.getClassNames()),w("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role))},encapsulation:2})}return i})();var Te=(()=>{class i extends B{pathId;ngOnInit(){this.pathId="url(#"+Et()+")"}static \u0275fac=(()=>{let t;return function(n){return(t||(t=x(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["SearchIcon"]],features:[V],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M2.67602 11.0265C3.6661 11.688 4.83011 12.0411 6.02086 12.0411C6.81149 12.0411 7.59438 11.8854 8.32483 11.5828C8.87005 11.357 9.37808 11.0526 9.83317 10.6803L12.9769 13.8241C13.0323 13.8801 13.0983 13.9245 13.171 13.9548C13.2438 13.985 13.3219 14.0003 13.4007 14C13.4795 14.0003 13.5575 13.985 13.6303 13.9548C13.7031 13.9245 13.7691 13.8801 13.8244 13.8241C13.9367 13.7116 13.9998 13.5592 13.9998 13.4003C13.9998 13.2414 13.9367 13.089 13.8244 12.9765L10.6807 9.8328C11.053 9.37773 11.3573 8.86972 11.5831 8.32452C11.8857 7.59408 12.0414 6.81119 12.0414 6.02056C12.0414 4.8298 11.6883 3.66579 11.0268 2.67572C10.3652 1.68564 9.42494 0.913972 8.32483 0.45829C7.22472 0.00260857 6.01418 -0.116618 4.84631 0.115686C3.67844 0.34799 2.60568 0.921393 1.76369 1.76338C0.921698 2.60537 0.348296 3.67813 0.115991 4.84601C-0.116313 6.01388 0.00291375 7.22441 0.458595 8.32452C0.914277 9.42464 1.68595 10.3649 2.67602 11.0265ZM3.35565 2.0158C4.14456 1.48867 5.07206 1.20731 6.02086 1.20731C7.29317 1.20731 8.51338 1.71274 9.41304 2.6124C10.3127 3.51206 10.8181 4.73226 10.8181 6.00457C10.8181 6.95337 10.5368 7.88088 10.0096 8.66978C9.48251 9.45868 8.73328 10.0736 7.85669 10.4367C6.98011 10.7997 6.01554 10.8947 5.08496 10.7096C4.15439 10.5245 3.2996 10.0676 2.62869 9.39674C1.95778 8.72583 1.50089 7.87104 1.31579 6.94046C1.13068 6.00989 1.22568 5.04532 1.58878 4.16874C1.95187 3.29215 2.56675 2.54292 3.35565 2.0158Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(e,n){e&1&&(F(),S(0,"svg",0)(1,"g"),v(2,"path",1),I(),S(3,"defs")(4,"clipPath",2),v(5,"rect",3),I()()()),e&2&&(O(n.getClassNames()),w("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),_(),w("clip-path",n.pathId),_(3),m("id",n.pathId))},encapsulation:2})}return i})();var Pt=["content"],Rt=["item"],Bt=["loader"],Ht=["loadericon"],Wt=["element"],kt=["*"],At=(i,c,t)=>({"p-virtualscroller":!0,"p-virtualscroller-inline":i,"p-virtualscroller-both p-both-scroll":c,"p-virtualscroller-horizontal p-horizontal-scroll":t}),nt=(i,c)=>({$implicit:i,options:c}),Qt=i=>({"p-virtualscroller-loading ":i}),Nt=i=>({"p-virtualscroller-loader-mask":i}),$t=i=>({numCols:i}),Mt=i=>({options:i}),jt=()=>({styleClass:"p-virtualscroller-loading-icon"}),qt=(i,c)=>({rows:i,columns:c});function Zt(i,c){i&1&&Q(0)}function Gt(i,c){if(i&1&&(P(0),y(1,Zt,1,0,"ng-container",10),D()),i&2){let t=C(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",q(2,nt,t.loadedItems,t.getContentOptions()))}}function Jt(i,c){i&1&&Q(0)}function Kt(i,c){if(i&1&&(P(0),y(1,Jt,1,0,"ng-container",10),D()),i&2){let t=c.$implicit,e=c.index,n=C(3);_(),m("ngTemplateOutlet",n.itemTemplate||n._itemTemplate)("ngTemplateOutletContext",q(2,nt,t,n.getOptions(e)))}}function Ut(i,c){if(i&1&&(S(0,"div",11,3),y(2,Kt,2,5,"ng-container",12),I()),i&2){let t=C(2);m("ngClass",$(5,Qt,t.d_loading))("ngStyle",t.contentStyle),w("data-pc-section","content"),_(2),m("ngForOf",t.loadedItems)("ngForTrackBy",t._trackBy)}}function Xt(i,c){if(i&1&&v(0,"div",13),i&2){let t=C(2);m("ngStyle",t.spacerStyle),w("data-pc-section","spacer")}}function Yt(i,c){i&1&&Q(0)}function te(i,c){if(i&1&&(P(0),y(1,Yt,1,0,"ng-container",10),D()),i&2){let t=c.index,e=C(4);_(),m("ngTemplateOutlet",e.loaderTemplate||e._loaderTemplate)("ngTemplateOutletContext",$(4,Mt,e.getLoaderOptions(t,e.both&&$(2,$t,e.numItemsInViewport.cols))))}}function ee(i,c){if(i&1&&(P(0),y(1,te,2,6,"ng-container",15),D()),i&2){let t=C(3);_(),m("ngForOf",t.loaderArr)}}function ie(i,c){i&1&&Q(0)}function ne(i,c){if(i&1&&(P(0),y(1,ie,1,0,"ng-container",10),D()),i&2){let t=C(4);_(),m("ngTemplateOutlet",t.loaderIconTemplate||t._loaderIconTemplate)("ngTemplateOutletContext",$(3,Mt,Ct(2,jt)))}}function se(i,c){i&1&&v(0,"SpinnerIcon",16),i&2&&(m("styleClass","p-virtualscroller-loading-icon pi-spin"),w("data-pc-section","loadingIcon"))}function oe(i,c){if(i&1&&y(0,ne,2,5,"ng-container",6)(1,se,1,2,"ng-template",null,5,Z),i&2){let t=j(2),e=C(3);m("ngIf",e.loaderIconTemplate||e._loaderIconTemplate)("ngIfElse",t)}}function le(i,c){if(i&1&&(S(0,"div",14),y(1,ee,2,1,"ng-container",6)(2,oe,3,2,"ng-template",null,4,Z),I()),i&2){let t=j(3),e=C(2);m("ngClass",$(4,Nt,!e.loaderTemplate)),w("data-pc-section","loader"),_(),m("ngIf",e.loaderTemplate||e._loaderTemplate)("ngIfElse",t)}}function re(i,c){if(i&1){let t=pt();P(0),S(1,"div",7,1),ut("scroll",function(n){at(t);let s=C();return ct(s.onContainerScroll(n))}),y(3,Gt,2,5,"ng-container",6)(4,Ut,3,7,"ng-template",null,2,Z)(6,Xt,1,2,"div",8)(7,le,4,6,"div",9),I(),D()}if(i&2){let t=j(5),e=C();_(),O(e._styleClass),m("ngStyle",e._style)("ngClass",yt(12,At,e.inline,e.both,e.horizontal)),w("id",e._id)("tabindex",e.tabindex)("data-pc-name","scroller")("data-pc-section","root"),_(2),m("ngIf",e.contentTemplate||e._contentTemplate)("ngIfElse",t),_(3),m("ngIf",e._showSpacer),_(),m("ngIf",!e.loaderDisabled&&e._showLoader&&e.d_loading)}}function ae(i,c){i&1&&Q(0)}function ce(i,c){if(i&1&&(P(0),y(1,ae,1,0,"ng-container",10),D()),i&2){let t=C(2);_(),m("ngTemplateOutlet",t.contentTemplate||t._contentTemplate)("ngTemplateOutletContext",q(5,nt,t.items,q(2,qt,t._items,t.loadedColumns)))}}function he(i,c){if(i&1&&(gt(0),y(1,ce,2,8,"ng-container",17)),i&2){let t=C();_(),m("ngIf",t.contentTemplate||t._contentTemplate)}}var de=({dt:i})=>`
|
|
2
|
+
.p-virtualscroller {
|
|
3
|
+
position: relative;
|
|
4
|
+
overflow: auto;
|
|
5
|
+
contain: strict;
|
|
6
|
+
transform: translateZ(0);
|
|
7
|
+
will-change: scroll-position;
|
|
8
|
+
outline: 0 none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.p-virtualscroller-content {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
left: 0;
|
|
15
|
+
min-height: 100%;
|
|
16
|
+
min-width: 100%;
|
|
17
|
+
will-change: transform;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.p-virtualscroller-spacer {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
height: 1px;
|
|
25
|
+
width: 1px;
|
|
26
|
+
transform-origin: 0 0;
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.p-virtualscroller-loader {
|
|
31
|
+
position: sticky;
|
|
32
|
+
top: 0;
|
|
33
|
+
left: 0;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: 100%;
|
|
36
|
+
background: ${i("virtualscroller.loader.mask.background")};
|
|
37
|
+
color: ${i("virtualscroller.loader.mask.color")};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.p-virtualscroller-loader-mask {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.p-virtualscroller-loading-icon {
|
|
47
|
+
font-size: ${i("virtualscroller.loader.icon.size")};
|
|
48
|
+
width: ${i("virtualscroller.loader.icon.size")};
|
|
49
|
+
height: ${i("virtualscroller.loader.icon.size")};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.p-virtualscroller-horizontal > .p-virtualscroller-content {
|
|
53
|
+
display: flex;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.p-virtualscroller-inline .p-virtualscroller-content {
|
|
57
|
+
position: static;
|
|
58
|
+
}
|
|
59
|
+
`,Dt=(()=>{class i extends Lt{name="virtualscroller";theme=de;static \u0275fac=(()=>{let t;return function(n){return(t||(t=x(i)))(n||i)}})();static \u0275prov=st({token:i,factory:i.\u0275fac})}return i})();var me=(()=>{class i extends Ft{zone;get id(){return this._id}set id(t){this._id=t}get style(){return this._style}set style(t){this._style=t}get styleClass(){return this._styleClass}set styleClass(t){this._styleClass=t}get tabindex(){return this._tabindex}set tabindex(t){this._tabindex=t}get items(){return this._items}set items(t){this._items=t}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=t}get scrollHeight(){return this._scrollHeight}set scrollHeight(t){this._scrollHeight=t}get scrollWidth(){return this._scrollWidth}set scrollWidth(t){this._scrollWidth=t}get orientation(){return this._orientation}set orientation(t){this._orientation=t}get step(){return this._step}set step(t){this._step=t}get delay(){return this._delay}set delay(t){this._delay=t}get resizeDelay(){return this._resizeDelay}set resizeDelay(t){this._resizeDelay=t}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=t}get inline(){return this._inline}set inline(t){this._inline=t}get lazy(){return this._lazy}set lazy(t){this._lazy=t}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(t){this._loaderDisabled=t}get columns(){return this._columns}set columns(t){this._columns=t}get showSpacer(){return this._showSpacer}set showSpacer(t){this._showSpacer=t}get showLoader(){return this._showLoader}set showLoader(t){this._showLoader=t}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(t){this._numToleratedItems=t}get loading(){return this._loading}set loading(t){this._loading=t}get autoSize(){return this._autoSize}set autoSize(t){this._autoSize=t}get trackBy(){return this._trackBy}set trackBy(t){this._trackBy=t}get options(){return this._options}set options(t){this._options=t,t&&typeof t=="object"&&Object.entries(t).forEach(([e,n])=>this[`_${e}`]!==n&&(this[`_${e}`]=n))}onLazyLoad=new K;onScroll=new K;onScrollIndexChange=new K;elementViewChild;contentViewChild;_id;_style;_styleClass;_tabindex=0;_items;_itemSize=0;_scrollHeight;_scrollWidth;_orientation="vertical";_step=0;_delay=0;_resizeDelay=10;_appendOnly=!1;_inline=!1;_lazy=!1;_disabled=!1;_loaderDisabled=!1;_columns;_showSpacer=!0;_showLoader=!1;_numToleratedItems;_loading;_autoSize=!1;_trackBy;_options;d_loading=!1;d_numToleratedItems;contentEl;contentTemplate;itemTemplate;loaderTemplate;loaderIconTemplate;templates;_contentTemplate;_itemTemplate;_loaderTemplate;_loaderIconTemplate;first=0;last=0;page=0;isRangeChanged=!1;numItemsInViewport=0;lastScrollPos=0;lazyLoadState={};loaderArr=[];spacerStyle={};contentStyle={};scrollTimeout;resizeTimeout;initialized=!1;windowResizeListener;defaultWidth;defaultHeight;defaultContentWidth;defaultContentHeight;get vertical(){return this._orientation==="vertical"}get horizontal(){return this._orientation==="horizontal"}get both(){return this._orientation==="both"}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(t=>this._columns?t:t.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}_componentStyle=lt(Dt);constructor(t){super(),this.zone=t}ngOnInit(){super.ngOnInit(),this.setInitialState()}ngOnChanges(t){super.ngOnChanges(t);let e=!1;if(t.loading){let{previousValue:n,currentValue:s}=t.loading;this.lazy&&n!==s&&s!==this.d_loading&&(this.d_loading=s,e=!0)}if(t.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),t.numToleratedItems){let{previousValue:n,currentValue:s}=t.numToleratedItems;n!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(t.options){let{previousValue:n,currentValue:s}=t.options;this.lazy&&n?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,e=!0),n?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!e&&(t.items?.previousValue?.length!==t.items?.currentValue?.length||t.itemSize||t.scrollHeight||t.scrollWidth)&&(this.init(),this.calculateAutoSize())}ngAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"content":this._contentTemplate=t.template;break;case"item":this._itemTemplate=t.template;break;case"loader":this._loaderTemplate=t.template;break;case"loadericon":this._loaderIconTemplate=t.template;break;default:this._itemTemplate=t.template;break}})}ngAfterViewInit(){super.ngAfterViewInit(),Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1,super.ngOnDestroy()}viewInit(){et(this.platformId)&&!this.initialized&&it(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=A(this.elementViewChild?.nativeElement),this.defaultHeight=k(this.elementViewChild?.nativeElement),this.defaultContentWidth=A(this.contentEl),this.defaultContentHeight=k(this.contentEl),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(t){this.contentEl=t||this.contentViewChild?.nativeElement||bt(this.elementViewChild?.nativeElement,".p-virtualscroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(t){return Math.floor(((t??this.first)+this.d_numToleratedItems*4)/(this._step||1))}isPageChanged(t){return this._step?this.page!==this.getPageByFirst(t??this.first):!0}scrollTo(t){this.elementViewChild?.nativeElement?.scrollTo(t)}scrollToIndex(t,e="auto"){if(this.both?t.every(s=>s>-1):t>-1){let s=this.first,{scrollTop:o=0,scrollLeft:l=0}=this.elementViewChild?.nativeElement,{numToleratedItems:u}=this.calculateNumItems(),p=this.getContentPosition(),h=this.itemSize,z=(a=0,d)=>a<=d?0:a,g=(a,d,T)=>a*d+T,b=(a=0,d=0)=>this.scrollTo({left:a,top:d,behavior:e}),f=this.both?{rows:0,cols:0}:0,H=!1,r=!1;this.both?(f={rows:z(t[0],u[0]),cols:z(t[1],u[1])},b(g(f.cols,h[1],p.left),g(f.rows,h[0],p.top)),r=this.lastScrollPos.top!==o||this.lastScrollPos.left!==l,H=f.rows!==s.rows||f.cols!==s.cols):(f=z(t,u),this.horizontal?b(g(f,h,p.left),o):b(l,g(f,h,p.top)),r=this.lastScrollPos!==(this.horizontal?l:o),H=f!==s),this.isRangeChanged=H,r&&(this.first=f)}}scrollInView(t,e,n="auto"){if(e){let{first:s,viewport:o}=this.getRenderedRange(),l=(h=0,z=0)=>this.scrollTo({left:h,top:z,behavior:n}),u=e==="to-start",p=e==="to-end";if(u){if(this.both)o.first.rows-s.rows>t[0]?l(o.first.cols*this._itemSize[1],(o.first.rows-1)*this._itemSize[0]):o.first.cols-s.cols>t[1]&&l((o.first.cols-1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.first-s>t){let h=(o.first-1)*this._itemSize;this.horizontal?l(h,0):l(0,h)}}else if(p){if(this.both)o.last.rows-s.rows<=t[0]+1?l(o.first.cols*this._itemSize[1],(o.first.rows+1)*this._itemSize[0]):o.last.cols-s.cols<=t[1]+1&&l((o.first.cols+1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.last-s<=t+1){let h=(o.first+1)*this._itemSize;this.horizontal?l(h,0):l(0,h)}}}else this.scrollToIndex(t,n)}getRenderedRange(){let t=(s,o)=>o||s?Math.floor(s/(o||s)):0,e=this.first,n=0;if(this.elementViewChild?.nativeElement){let{scrollTop:s,scrollLeft:o}=this.elementViewChild.nativeElement;if(this.both)e={rows:t(s,this._itemSize[0]),cols:t(o,this._itemSize[1])},n={rows:e.rows+this.numItemsInViewport.rows,cols:e.cols+this.numItemsInViewport.cols};else{let l=this.horizontal?o:s;e=t(l,this._itemSize),n=e+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:e,last:n}}}calculateNumItems(){let t=this.getContentPosition(),e=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-t.left:0)||0,n=(this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-t.top:0)||0,s=(p,h)=>h||p?Math.ceil(p/(h||p)):0,o=p=>Math.ceil(p/2),l=this.both?{rows:s(n,this._itemSize[0]),cols:s(e,this._itemSize[1])}:s(this.horizontal?e:n,this._itemSize),u=this.d_numToleratedItems||(this.both?[o(l.rows),o(l.cols)]:o(l));return{numItemsInViewport:l,numToleratedItems:u}}calculateOptions(){let{numItemsInViewport:t,numToleratedItems:e}=this.calculateNumItems(),n=(l,u,p,h=!1)=>this.getLast(l+u+(l<p?2:3)*p,h),s=this.first,o=this.both?{rows:n(this.first.rows,t.rows,e[0]),cols:n(this.first.cols,t.cols,e[1],!0)}:n(this.first,t,e);this.last=o,this.numItemsInViewport=t,this.d_numToleratedItems=e,this.showLoader&&(this.loaderArr=this.both?Array.from({length:t.rows}).map(()=>Array.from({length:t.cols})):Array.from({length:t})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";let[t,e]=[A(this.contentEl),k(this.contentEl)];t!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),e!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");let[n,s]=[A(this.elementViewChild.nativeElement),k(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=n<this.defaultWidth?n+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=s<this.defaultHeight?s+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}getLast(t=0,e=!1){return this._items?Math.min(e?(this._columns||this._items[0]).length:this._items.length,t):0}getContentPosition(){if(this.contentEl){let t=getComputedStyle(this.contentEl),e=parseFloat(t.paddingLeft)+Math.max(parseFloat(t.left)||0,0),n=parseFloat(t.paddingRight)+Math.max(parseFloat(t.right)||0,0),s=parseFloat(t.paddingTop)+Math.max(parseFloat(t.top)||0,0),o=parseFloat(t.paddingBottom)+Math.max(parseFloat(t.bottom)||0,0);return{left:e,right:n,top:s,bottom:o,x:e+n,y:s+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){let t=this.elementViewChild.nativeElement.parentElement.parentElement,e=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||t.offsetWidth}px`,n=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||t.offsetHeight}px`,s=(o,l)=>this.elementViewChild.nativeElement.style[o]=l;this.both||this.horizontal?(s("height",n),s("width",e)):s("height",n)}}setSpacerSize(){if(this._items){let t=this.getContentPosition(),e=(n,s,o,l=0)=>this.spacerStyle=Y(J({},this.spacerStyle),{[`${n}`]:(s||[]).length*o+l+"px"});this.both?(e("height",this._items,this._itemSize[0],t.y),e("width",this._columns||this._items[1],this._itemSize[1],t.x)):this.horizontal?e("width",this._columns||this._items,this._itemSize,t.x):e("height",this._items,this._itemSize,t.y)}}setContentPosition(t){if(this.contentEl&&!this._appendOnly){let e=t?t.first:this.first,n=(o,l)=>o*l,s=(o=0,l=0)=>this.contentStyle=Y(J({},this.contentStyle),{transform:`translate3d(${o}px, ${l}px, 0)`});if(this.both)s(n(e.cols,this._itemSize[1]),n(e.rows,this._itemSize[0]));else{let o=n(e,this._itemSize);this.horizontal?s(o,0):s(0,o)}}}onScrollPositionChange(t){let e=t.target,n=this.getContentPosition(),s=(r,a)=>r?r>a?r-a:r:0,o=(r,a)=>a||r?Math.floor(r/(a||r)):0,l=(r,a,d,T,L,W)=>r<=L?L:W?d-T-L:a+L-1,u=(r,a,d,T,L,W,G)=>r<=W?0:Math.max(0,G?r<a?d:r-W:r>a?d:r-2*W),p=(r,a,d,T,L,W=!1)=>{let G=a+T+2*L;return r>=L&&(G+=L+1),this.getLast(G,W)},h=s(e.scrollTop,n.top),z=s(e.scrollLeft,n.left),g=this.both?{rows:0,cols:0}:0,b=this.last,f=!1,H=this.lastScrollPos;if(this.both){let r=this.lastScrollPos.top<=h,a=this.lastScrollPos.left<=z;if(!this._appendOnly||this._appendOnly&&(r||a)){let d={rows:o(h,this._itemSize[0]),cols:o(z,this._itemSize[1])},T={rows:l(d.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:l(d.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],a)};g={rows:u(d.rows,T.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],r),cols:u(d.cols,T.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],a)},b={rows:p(d.rows,g.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:p(d.cols,g.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=g.rows!==this.first.rows||b.rows!==this.last.rows||g.cols!==this.first.cols||b.cols!==this.last.cols||this.isRangeChanged,H={top:h,left:z}}}else{let r=this.horizontal?z:h,a=this.lastScrollPos<=r;if(!this._appendOnly||this._appendOnly&&a){let d=o(r,this._itemSize),T=l(d,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,a);g=u(d,T,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,a),b=p(d,g,this.last,this.numItemsInViewport,this.d_numToleratedItems),f=g!==this.first||b!==this.last||this.isRangeChanged,H=r}}return{first:g,last:b,isRangeChanged:f,scrollPos:H}}onScrollChange(t){let{first:e,last:n,isRangeChanged:s,scrollPos:o}=this.onScrollPositionChange(t);if(s){let l={first:e,last:n};if(this.setContentPosition(l),this.first=e,this.last=n,this.lastScrollPos=o,this.handleEvents("onScrollIndexChange",l),this._lazy&&this.isPageChanged(e)){let u={first:this._step?Math.min(this.getPageByFirst(e)*this._step,this.items.length-this._step):e,last:Math.min(this._step?(this.getPageByFirst(e)+1)*this._step:n,this.items.length)};(this.lazyLoadState.first!==u.first||this.lazyLoadState.last!==u.last)&&this.handleEvents("onLazyLoad",u),this.lazyLoadState=u}}}onContainerScroll(t){if(this.handleEvents("onScroll",{originalEvent:t}),this._delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){let{isRangeChanged:e}=this.onScrollPositionChange(t);(e||(this._step?this.isPageChanged():!1))&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(t),this.d_loading&&this.showLoader&&(!this._lazy||this._loading===void 0)&&(this.d_loading=!1,this.page=this.getPageByFirst()),this.cd.detectChanges()},this._delay)}else!this.d_loading&&this.onScrollChange(t)}bindResizeListener(){et(this.platformId)&&(this.windowResizeListener||this.zone.runOutsideAngular(()=>{let t=this.document.defaultView,e=xt()?"orientationchange":"resize";this.windowResizeListener=this.renderer.listen(t,e,this.onWindowResize.bind(this))}))}unbindResizeListener(){this.windowResizeListener&&(this.windowResizeListener(),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(it(this.elementViewChild?.nativeElement)){let[t,e]=[A(this.elementViewChild?.nativeElement),k(this.elementViewChild?.nativeElement)],[n,s]=[t!==this.defaultWidth,e!==this.defaultHeight];(this.both?n||s:this.horizontal?n:this.vertical?s:!1)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=t,this.defaultHeight=e,this.defaultContentWidth=A(this.contentEl),this.defaultContentHeight=k(this.contentEl),this.init()})}},this._resizeDelay)}handleEvents(t,e){return this.options&&this.options[t]?this.options[t](e):this[t].emit(e)}getContentOptions(){return{contentStyleClass:`p-virtualscroller-content ${this.d_loading?"p-virtualscroller-loading":""}`,items:this.loadedItems,getItemOptions:t=>this.getOptions(t),loading:this.d_loading,getLoaderOptions:(t,e)=>this.getLoaderOptions(t,e),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(t){let e=(this._items||[]).length,n=this.both?this.first.rows+t:this.first+t;return{index:n,count:e,first:n===0,last:n===e-1,even:n%2===0,odd:n%2!==0}}getLoaderOptions(t,e){let n=this.loaderArr.length;return J({index:t,count:n,first:t===0,last:t===n-1,even:t%2===0,odd:t%2!==0},e)}static \u0275fac=function(e){return new(e||i)(dt(ht))};static \u0275cmp=E({type:i,selectors:[["p-scroller"],["p-virtualscroller"],["p-virtual-scroller"],["p-virtualScroller"]],contentQueries:function(e,n,s){if(e&1&&(N(s,Pt,4),N(s,Rt,4),N(s,Bt,4),N(s,Ht,4),N(s,Vt,4)),e&2){let o;M(o=R())&&(n.contentTemplate=o.first),M(o=R())&&(n.itemTemplate=o.first),M(o=R())&&(n.loaderTemplate=o.first),M(o=R())&&(n.loaderIconTemplate=o.first),M(o=R())&&(n.templates=o)}},viewQuery:function(e,n){if(e&1&&(tt(Wt,5),tt(Pt,5)),e&2){let s;M(s=R())&&(n.elementViewChild=s.first),M(s=R())&&(n.contentViewChild=s.first)}},inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[ft([Dt]),V,rt],ngContentSelectors:kt,decls:3,vars:2,consts:[["disabledContainer",""],["element",""],["buildInContent",""],["content",""],["buildInLoader",""],["buildInLoaderIcon",""],[4,"ngIf","ngIfElse"],[3,"scroll","ngStyle","ngClass"],["class","p-virtualscroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-virtualscroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-virtualscroller-content",3,"ngClass","ngStyle"],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-virtualscroller-spacer",3,"ngStyle"],[1,"p-virtualscroller-loader",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"styleClass"],[4,"ngIf"]],template:function(e,n){if(e&1&&(_t(),y(0,re,8,16,"ng-container",6)(1,he,2,1,"ng-template",null,0,Z)),e&2){let s=j(2);m("ngIf",!n._disabled)("ngIfElse",s)}},dependencies:[zt,wt,St,It,Tt,vt,Ot,U],encapsulation:2})}return i})(),$e=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=mt({type:i});static \u0275inj=ot({imports:[me,U,U]})}return i})();export{ue as a,fe as b,we as c,Te as d,me as e,$e as f};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as z}from"./chunk-2LKTSMUI.js";import{Pa as $,d as m,i as y}from"./chunk-3ROVFYLI.js";import{Ab as f,Cb as g,Da as c,Eb as h,Qb as x,Vc as o,ga as l,ha as s,hc as v,lb as r,ma as d,xa as u,yc as b,zb as p}from"./chunk-PQTHPF23.js";var E=({dt:e})=>`
|
|
2
2
|
.p-textarea {
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
font-feature-settings: inherit;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as B}from"./chunk-33RD6RQS.js";import{a as V}from"./chunk-OHEAUNEW.js";import{f as N,h as U,i as H,j as O}from"./chunk-FDDNZH4H.js";import"./chunk-PCJXJ6O4.js";import"./chunk-7RH6F4PN.js";import"./chunk-DKWZOSVY.js";import{g as M}from"./chunk-3UAQZJAG.js";import"./chunk-Z53S4NM2.js";import"./chunk-YX7446ZM.js";import"./chunk-2LKTSMUI.js";import"./chunk-3ROVFYLI.js";import"./chunk-P4OJNULI.js";import"./chunk-S35HUXPS.js";import"./chunk-7X454BGN.js";import{n as T,r as k,s as z,t as L}from"./chunk-C4WUUVLC.js";import{$b as f,Fb as h,Jc as J,Kc as A,La as x,Lc as I,Mc as j,Ob as b,Xc as D,Zb as n,Zc as P,_b as a,aa as E,ac as S,bc as C,dc as w,hc as y,ic as u,kb as m,ma as R,qc as l,rc as s,ua as p,va as _,yb as v}from"./chunk-PQTHPF23.js";import{a as c,b as d}from"./chunk-EQDQRRRY.js";function G(r,g){if(r&1){let e=w();n(0,"button",7),y("click",function(){p(e);let t=u();return _(t.onCreateJournal())}),l(1," Generate Journal "),a()}}function K(r,g){r&1&&(n(0,"tr")(1,"th",9),f(2,"p-tableHeaderCheckbox"),a(),n(3,"th"),l(4,"Outlet"),a(),n(5,"th"),l(6,"Number"),a(),n(7,"th"),l(8,"Date"),a(),n(9,"th"),l(10,"Adjustment Qty"),a(),n(11,"th"),l(12,"Type"),a(),n(13,"th"),l(14,"State"),a(),n(15,"th"),l(16,"Note"),a()())}function q(r,g){if(r&1&&(n(0,"tr")(1,"td"),f(2,"p-tableCheckbox",10),a(),n(3,"td"),l(4),a(),n(5,"td"),l(6),a(),n(7,"td"),l(8),J(9,"date"),a(),n(10,"td"),l(11),J(12,"number"),a(),n(13,"td"),l(14),a(),n(15,"td"),l(16),a(),n(17,"td"),l(18),a()()),r&2){let e=g.$implicit;m(2),b("value",e),m(2),s(e.outlet),m(2),s(e.number),m(2),s(I(9,8,e.date,"d MMM y")),m(3),s(A(12,11,e.quantitySUM)),m(3),s(e.type),m(2),s(e.state),m(2),s(e.note)}}function F(r,g){if(r&1){let e=w();n(0,"p-table",8),y("onLazyLoad",function(t){p(e);let i=u();return _(i.onLazyLoad(t))})("onRowSelect",function(t){p(e);let i=u();return _(i.onRowSelect(t))})("onRowUnselect",function(t){p(e);let i=u();return _(i.onRowUnselect(t))}),h(1,K,17,0,"ng-template",null,0,j)(3,q,19,13,"ng-template",null,1,j),a()}if(r&2){let e=u();b("value",e.adjustmentJournal().data)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("paginator",!0)("rows",e.pageData().PageSize)("totalRecords",e.adjustmentJournal().totalCount)("lazy",!0)}}var le=(()=>{class r{constructor(){this.generateJournalService=R(B),this.adjustmentJournal=x(null),this.pageData=x({PageNumber:1,PageSize:10}),this.selectedItems=D(()=>this.adjustmentJournal()?.data.filter(e=>e.checked)||[]),P(()=>{this.pageData()&&this.fetchAdjustmentJournal()})}fetchAdjustmentJournal(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getAdjustmentJournal(e).pipe(E(o=>{this.adjustmentJournal.update(t=>d(c({},t),{data:o.data.map(i=>d(c({},i),{checked:!1})),totalCount:+o.totalCount}))}),V("AR Collection")).subscribe()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let o=e.data;this.adjustmentJournal.update(t=>d(c({},t),{data:t.data.map(i=>i.id===o.id?d(c({},i),{checked:!0}):i)}))}onRowUnselect(e){let o=e.data;this.adjustmentJournal.update(t=>d(c({},t),{Data:t.data.map(i=>i.id===o.ID?d(c({},i),{checked:!i.checked}):i)}))}onCreateJournal(){let o=this.selectedItems().map(t=>t.id);this.generateJournalService.createAdjustmentJournal(o).subscribe(t=>{console.log("Journal created successfully:",t)})}static{this.\u0275fac=function(o){return new(o||r)}}static{this.\u0275cmp=v({type:r,selectors:[["app-adjustment-journal"]],decls:5,vars:2,consts:[["header",""],["body",""],["pageTitle","Adjustment"],["ngProjectAs","action-button",5,["action-button"]],["class","btn btn-primary rounded",3,"click",4,"ngIf"],["ngProjectAs","content",5,["content"]],["dataKey","id",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy","onLazyLoad","onRowSelect","onRowUnselect",4,"ngIf"],[1,"btn","btn-primary","rounded",3,"click"],["dataKey","id",3,"onLazyLoad","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"]],template:function(o,t){o&1&&(n(0,"app-main-panel",2),S(1,3),h(2,G,2,0,"button",4),C(),S(3,5),h(4,F,5,7,"p-table",6),C(),a()),o&2&&(m(2),b("ngIf",t.selectedItems()&&t.selectedItems().length>0),m(2),b("ngIf",t.adjustmentJournal()))},dependencies:[M,O,N,U,H,L,T,z,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return r})();export{le as AdjustmentJournalComponent};
|