dealposbooks 1.0.9 → 1.9.0

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.
Files changed (131) hide show
  1. package/3rdpartylicenses.txt +147 -147
  2. package/assets/images/background/timeout.svg +2614 -0
  3. package/assets/scss/components/_forms.scss +5 -3
  4. package/assets/scss/layouts/_customizer.scss +11 -6
  5. package/assets/scss/layouts/_sidebar.scss +15 -12
  6. package/assets/scss/style.scss +21 -20
  7. package/assets/scss/variables/_variables.scss +39 -12
  8. package/chunk-26X2X35R.js +1 -0
  9. package/chunk-2VF35PRV.js +7 -0
  10. package/chunk-34EMCCL5.js +210 -0
  11. package/chunk-35EULUGT.js +193 -0
  12. package/{chunk-WTRMIJHX.js → chunk-3TRGIHUH.js} +1 -1
  13. package/chunk-6TRUWOKK.js +1 -0
  14. package/chunk-7FE3ZTH3.js +7 -0
  15. package/chunk-7V4AFAU5.js +1 -0
  16. package/{chunk-4ANSU2AT.js → chunk-AKZM2DMY.js} +2 -2
  17. package/{chunk-TJSPXPO6.js → chunk-AVL6C3VX.js} +1 -1
  18. package/{chunk-E6EWXQXJ.js → chunk-BTZS5NIZ.js} +1 -1
  19. package/chunk-CAI423H5.js +1 -0
  20. package/{chunk-LCATVZKP.js → chunk-CEMQLY34.js} +1 -1
  21. package/chunk-CMHZLZ4E.js +1 -0
  22. package/chunk-DDBPJDR6.js +1 -0
  23. package/chunk-DWTUKOMR.js +348 -0
  24. package/chunk-DXCBV3NP.js +1 -0
  25. package/{chunk-AH4LZWJY.js → chunk-DYZT7UKM.js} +1 -1
  26. package/chunk-E2RBYY7Q.js +1 -0
  27. package/chunk-E2VJWAI2.js +1 -0
  28. package/chunk-EBTC6B2W.js +2 -0
  29. package/chunk-EHULZLLD.js +300 -0
  30. package/chunk-EQDQRRRY.js +1 -0
  31. package/chunk-ESKS6LNH.js +246 -0
  32. package/{chunk-S35HUXPS.js → chunk-F2X3VGZZ.js} +1 -1
  33. package/chunk-F6SXKAYF.js +67 -0
  34. package/chunk-G4MYTCDD.js +1 -0
  35. package/{chunk-2ODJIB2A.js → chunk-G63G4UQZ.js} +2 -2
  36. package/{chunk-MNPBLC23.js → chunk-G7MS6UI4.js} +1 -1
  37. package/chunk-GGZEY27B.js +1 -0
  38. package/{chunk-KFHCGO62.js → chunk-GHZLR44M.js} +1 -1
  39. package/chunk-HBVENULS.js +1 -0
  40. package/{chunk-O7OAT4UO.js → chunk-HZ7WPLLK.js} +1 -1
  41. package/{chunk-ZNN2E36Y.js → chunk-HZLUYZB3.js} +1 -1
  42. package/chunk-I7T4W6G2.js +47 -0
  43. package/{chunk-PG4QL7N2.js → chunk-IF72X7RS.js} +1 -1
  44. package/chunk-JXI4NDYT.js +1 -0
  45. package/chunk-KFKLJQ2D.js +1 -0
  46. package/chunk-KLKIGY44.js +1 -0
  47. package/{chunk-2RWUYFYR.js → chunk-KO5IN2G2.js} +1 -1
  48. package/chunk-L2BS7BTV.js +1 -0
  49. package/chunk-LUH5EEUM.js +1 -0
  50. package/chunk-MEKP6D5H.js +1 -0
  51. package/chunk-MQ5Y727W.js +1 -0
  52. package/{chunk-HG23WDL5.js → chunk-MS3UTNX6.js} +14 -14
  53. package/chunk-NWVWD4IE.js +1 -0
  54. package/chunk-NXCLB2JQ.js +1 -0
  55. package/chunk-ON4N4CPO.js +51 -0
  56. package/chunk-OVJSBJBH.js +197 -0
  57. package/{chunk-NTDTN5DF.js → chunk-PATWAZNE.js} +1 -1
  58. package/chunk-PBI352JR.js +1 -0
  59. package/chunk-PKK7JSPR.js +1 -0
  60. package/chunk-PKPPDJWT.js +301 -0
  61. package/chunk-PMLVFBAT.js +1 -0
  62. package/{chunk-E6QGADC5.js → chunk-Q4Y2IGA6.js} +2 -2
  63. package/chunk-QBJKUIXK.js +627 -0
  64. package/chunk-R3FUAON5.js +1 -0
  65. package/{chunk-JFAO2CIB.js → chunk-RNU2O7NF.js} +1 -1
  66. package/{chunk-G52TDPSD.js → chunk-ROX6NFMK.js} +2 -2
  67. package/chunk-S64TQVWK.js +1 -0
  68. package/chunk-SJTXIIX5.js +1 -0
  69. package/chunk-TDHD3ZTF.js +1 -0
  70. package/{chunk-QJ2XA575.js → chunk-TL6UHPBU.js} +1 -1
  71. package/chunk-UFS2HLAY.js +1 -0
  72. package/chunk-UIM6GQ63.js +1 -0
  73. package/chunk-UM7MB5JU.js +1 -0
  74. package/chunk-UNNEEFI2.js +1 -0
  75. package/{chunk-Z4SGDPGH.js → chunk-USO7UKRV.js} +4 -4
  76. package/chunk-VVC3QQUI.js +1 -0
  77. package/{chunk-52HZNWBM.js → chunk-VYTUB2DV.js} +2 -2
  78. package/{chunk-WCQQSWYQ.js → chunk-YF4S6CQO.js} +20 -112
  79. package/chunk-YILEWAVV.js +1 -0
  80. package/chunk-YNI2HWIV.js +180 -0
  81. package/index.html +6 -3
  82. package/main-YPUVQR54.js +1 -0
  83. package/package.json +1 -1
  84. package/polyfills-OYTHSGNX.js +2 -0
  85. package/styles-JMIKZHNX.css +1 -0
  86. package/chunk-25PFXJAK.js +0 -2
  87. package/chunk-3GWDCNXX.js +0 -397
  88. package/chunk-63UNI6LK.js +0 -256
  89. package/chunk-7LG2CFYI.js +0 -1
  90. package/chunk-AKBPKNCH.js +0 -1
  91. package/chunk-AOB6BRGQ.js +0 -1
  92. package/chunk-ATVC2UCR.js +0 -47
  93. package/chunk-AWY6AD76.js +0 -1
  94. package/chunk-B4JAAGJX.js +0 -1
  95. package/chunk-BGKS3L73.js +0 -246
  96. package/chunk-C66O26ZI.js +0 -67
  97. package/chunk-C6Q5SG76.js +0 -1
  98. package/chunk-DOKYUX3G.js +0 -1
  99. package/chunk-EN5MVYJQ.js +0 -180
  100. package/chunk-EP22HTZC.js +0 -300
  101. package/chunk-FJ7O4K2Y.js +0 -1
  102. package/chunk-FVXLQNAC.js +0 -193
  103. package/chunk-GCTIPWTU.js +0 -1
  104. package/chunk-GMTXOQ6X.js +0 -1
  105. package/chunk-GRTIJ77T.js +0 -1
  106. package/chunk-I4HDCL3W.js +0 -1
  107. package/chunk-I7MT7OUB.js +0 -1
  108. package/chunk-ISXV3FIH.js +0 -1
  109. package/chunk-JQNCWTZN.js +0 -1
  110. package/chunk-JT2WCR5Q.js +0 -1
  111. package/chunk-JXNLXEJT.js +0 -1
  112. package/chunk-K36WQVFR.js +0 -1
  113. package/chunk-LJMMN36O.js +0 -1
  114. package/chunk-NQ24E7JY.js +0 -1
  115. package/chunk-OHVHLILJ.js +0 -1
  116. package/chunk-OJWZH7AB.js +0 -301
  117. package/chunk-PNAWRNGD.js +0 -197
  118. package/chunk-RJYIKNTI.js +0 -1
  119. package/chunk-RR5AUWZO.js +0 -1
  120. package/chunk-RSHFIZV3.js +0 -7
  121. package/chunk-SQKLMC5H.js +0 -231
  122. package/chunk-T3ZCO6EC.js +0 -1
  123. package/chunk-T7R7C3RX.js +0 -1
  124. package/chunk-TNXHYK2R.js +0 -7
  125. package/chunk-TTG6XQNP.js +0 -1
  126. package/chunk-UC2RR4WT.js +0 -210
  127. package/chunk-UOFRXQI7.js +0 -1
  128. package/chunk-UVBFYB2X.js +0 -51
  129. package/main-F2OQVLJM.js +0 -1
  130. package/polyfills-EQXJKH7W.js +0 -2
  131. package/styles-GUJHQHWA.css +0 -1
@@ -0,0 +1 @@
1
+ import{v as N}from"./chunk-SJTXIIX5.js";import{Ea as K,Fa as g,Ja as A,Tc as S,Uc as m,Vc as E,ba as y,ea as T,ha as h,va as $}from"./chunk-2VF35PRV.js";import{a as c,b as u}from"./chunk-EQDQRRRY.js";function _(t){let e=S(()=>t());return H(e)?new Proxy(t,{get(n,o){return o in e?(K(n[o])||Object.defineProperty(n,o,{value:m(()=>n()[o]),configurable:!0}),_(n[o])):n[o]}}):t}var X=[WeakSet,WeakMap,Promise,Date,Error,RegExp,ArrayBuffer,DataView,Function];function H(t){if(t===null||typeof t!="object"||J(t))return!1;let e=Object.getPrototypeOf(t);if(e===Object.prototype)return!0;for(;e&&e!==Object.prototype;){if(X.includes(e.constructor))return!1;e=Object.getPrototypeOf(e)}return e===Object.prototype}function J(t){return typeof t?.[Symbol.iterator]=="function"}var q=new WeakMap,d=Symbol("STATE_SOURCE");function I(t,...e){t[d].update(n=>e.reduce((o,r)=>c(c({},o),typeof r=="function"?r(o):r),n)),Q(t)}function j(t){return t[d]()}function G(t){return q.get(t[d])||[]}function Q(t){let e=G(t);for(let n of e){let o=S(()=>j(t));n(o)}}function C(...t){let e=[...t],n=typeof e[0]=="function"?{}:e.shift(),o=e;return(()=>{class a{constructor(){let s=o.reduce((p,V)=>V(p),Y()),{stateSignals:l,props:f,methods:w,hooks:W}=s,O=c(c(c({},l),f),w);this[d]=s[d];for(let p of Reflect.ownKeys(O))this[p]=O[p];let{onInit:x,onDestroy:P}=W;x&&x(),P&&h($).onDestroy(P)}static \u0275fac=function(l){return new(l||a)};static \u0275prov=y({token:a,factory:a.\u0275fac,providedIn:n.providedIn||null})}return a})()}function Y(){return{[d]:g({}),stateSignals:{},props:{},methods:{},hooks:{}}}function k(t,...e){let n=typeof t=="function"?[t,...e]:e;return o=>n.reduce((r,a)=>a(r),o)}function R(t){return e=>{let n=t(c(c(c({[d]:e[d]},e.stateSignals),e.props),e.methods));return Reflect.ownKeys(n),u(c({},e),{props:c(c({},e.props),n)})}}function Z(t){return R(t)}function F(t){return e=>{let n=c(c(c({[d]:e[d]},e.stateSignals),e.props),e.methods),o=typeof t=="function"?t(n):t,r=a=>{let i=o[a],s=e.hooks[a];return i?()=>{s&&s(),i(n)}:s};return u(c({},e),{hooks:{onInit:r("onInit"),onDestroy:r("onDestroy")}})}}function v(t){return e=>{let n=t(c(c(c({[d]:e[d]},e.stateSignals),e.props),e.methods));return Reflect.ownKeys(n),u(c({},e),{methods:c(c({},e.methods),n)})}}function b(t){return e=>{let n=typeof t=="function"?t():t,o=Reflect.ownKeys(n);e[d].update(a=>c(c({},a),n));let r=o.reduce((a,i)=>{let s=m(()=>e[d]()[i]);return u(c({},a),{[i]:_(s)})},{});return u(c({},e),{stateSignals:c(c({},e.stateSignals),r)})}}var D=new Set;function ee(t){if(t==null)throw new Error("");return t}var z={send:()=>{}},U=(()=>{class t{#e={};#n=N(h(A));#o=[];#t={};#c=1;#i=this.#n&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__.connect({name:"NgRx SignalStore"}):z;constructor(){if(!this.#n)return;!!window.__REDUX_DEVTOOLS_EXTENSION__||console.info("NgRx Toolkit/DevTools: Redux DevTools Extension is not available.")}ngOnDestroy(){D.clear()}syncToDevTools(n){let o=Object.entries(n).reduce((i,[s,l])=>{let{options:f,name:w}=this.#e[s];return i[w]=f.map(l),i},{});this.#t=c(c({},this.#t),o);let r=Array.from(D),a=r.length?r.join(", "):"Store Update";D.clear(),this.#i.send({type:a},this.#t)}getNextId(){return String(this.#c++)}addStore(n,o,r,a){let i=o,s=Object.values(this.#e).map(f=>f.name);if(s.includes(i)&&!a.indexNames)throw new Error(`An instance of the store ${i} already exists. Enable automatic indexing via withDevTools('${i}', { indexNames: true }), or rename it upon instantiation.`);for(let f=1;s.includes(i);f++)i=`${o}-${f}`;this.#e[n]={name:i,options:a};let l=a.tracker;this.#o.includes(l)||this.#o.push(l),l.onChange(f=>this.syncToDevTools(f)),l.track(n,r)}removeStore(n){let o=this.#e[n].name;this.#e=Object.entries(this.#e).reduce((r,[a,i])=>(a!==n&&(r[a]=i),r),{}),this.#t=Object.entries(this.#t).reduce((r,[a,i])=>(a!==o&&(r[o]=i),r),{});for(let r of this.#o)r.removeStore(n)}renameStore(n,o){let r=Object.values(this.#e).map(i=>i.name),a=ee(Object.keys(this.#e).find(i=>this.#e[i].name===n));if(r.includes(o))throw new Error(`NgRx Toolkit/DevTools: cannot rename from ${n} to ${o}. ${o} is already assigned to another SignalStore instance.`);this.#e=Object.entries(this.#e).reduce((i,[s,l])=>(l.name===n?i[s]=u(c({},l),{name:o}):i[s]=l,i),{}),this.#t=Object.entries(this.#t).reduce((i,[s,l])=>(s!==n&&(i[s]=l),i),{}),this.#o.forEach(i=>i.notifyRenamedStore(a))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),te=(()=>{class t{#e=g({});get stores(){return this.#e()}#n;#o=E(()=>{if(this.#n===void 0)throw new Error("no callback function defined");let n=this.#e(),o=Object.entries(n).reduce((r,[a,i])=>u(c({},r),{[a]:j(i)}),{});this.#n(o)});track(n,o){this.#e.update(r=>u(c({},r),{[n]:o}))}onChange(n){this.#n=n}removeStore(n){this.#e.update(o=>Object.entries(o).reduce((r,[a,i])=>(a!==n&&(r[a]=i),r),{}))}notifyRenamedStore(n){this.#e()[n]&&this.#e.update(o=>c({},o))}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),ne="___renameDevtoolsName",M="___uniqueDevtoolsId",me=new T("Array contain existing names for the signal stores",{factory:()=>[],providedIn:"root"});function L(t,...e){return k(v(()=>{let n=h(U),o=n.getNextId();return{[ne]:r=>{n.renameStore(t,r)},[M]:()=>o}}),F(n=>{let o=h(U),r=String(n[M]());return{onInit(){let a=String(n[M]()),i={indexNames:!e.some(s=>s.indexNames===!1),map:e.find(s=>s.map)?.map??(s=>s),tracker:h(e.find(s=>s.tracker)?.tracker||te)};o.addStore(a,t,n,i)},onDestroy(){o.removeStore(r)}}}))}var ve=Symbol("DEVTOOLS_FEATURE");var be=k(b({}));var oe={themeOptions:{theme:"light",dir:"ltr",layout:"vertical",sidebartype:"full",boxed:"boxed",colorTheme:"Blue_Theme",cardType:"shadow"}},je=C({providedIn:"root"},b(oe),L("LayoutThemeStore"),v(t=>({updateSidebarType(){I(t,e=>{switch(e.themeOptions.sidebartype){case"full":return u(c({},e),{themeOptions:u(c({},e.themeOptions),{sidebartype:"mini-sidebar"})});case"mini-sidebar":return u(c({},e),{themeOptions:u(c({},e.themeOptions),{sidebartype:"full"})});default:return e}})}})));export{I as a,C as b,Z as c,F as d,v as e,b as f,L as g,je as h};
@@ -0,0 +1 @@
1
+ import"./chunk-EQDQRRRY.js";var o=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-PMLVFBAT.js").then(t=>t.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-UFS2HLAY.js").then(t=>t.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-CAI423H5.js").then(t=>t.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-NWVWD4IE.js").then(t=>t.PaymentAccountComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-7V4AFAU5.js").then(t=>t.ExpenseAccountComponent)}];export{o as MIGRATE_ROUTES};
@@ -0,0 +1,348 @@
1
+ import{a as Ie}from"./chunk-GHZLR44M.js";import{b as Te}from"./chunk-AVL6C3VX.js";import{a as xe}from"./chunk-USO7UKRV.js";import{m as P,n as Q}from"./chunk-OVJSBJBH.js";import{a as S}from"./chunk-26X2X35R.js";import{P as Ce,Q as ye,ca as I,ga as ve,ka as we,la as v,ta as L}from"./chunk-35EULUGT.js";import{c as J,d as K,f as z,g as ge,h as B,j as be,l as _e}from"./chunk-F2X3VGZZ.js";import{j as U,l as ue,m as de,n as fe,o as he,s as M}from"./chunk-SJTXIIX5.js";import{Ib as l,Jb as s,Lb as oe,Mb as ae,Nb as y,Ob as $,Rc as Z,Sc as O,Tb as p,Ub as m,Vb as u,Wb as ie,Xb as ne,Yb as q,Zb as F,ba as D,ca as N,cc as V,dc as c,ec as se,fb as r,fc as re,ha as w,hc as A,ic as R,jc as T,kc as x,lb as te,mc as G,nc as le,oc as ce,pa as _,qa as C,ra as E,sa as d,tb as f,ub as H,uc as k,wc as X,xb as h,xc as pe,ya as Y,za as ee,zb as g,zc as me}from"./chunk-2VF35PRV.js";var Se=["*"],De=({dt:e})=>`
2
+ .p-floatlabel {
3
+ display: block;
4
+ position: relative;
5
+ }
6
+
7
+ .p-floatlabel label {
8
+ position: absolute;
9
+ pointer-events: none;
10
+ top: 50%;
11
+ transform: translateY(-50%);
12
+ transition-property: all;
13
+ transition-timing-function: ease;
14
+ line-height: 1;
15
+ font-weight: ${e("floatlabel.font.weight")};
16
+ inset-inline-start: ${e("floatlabel.position.x")};
17
+ color: ${e("floatlabel.color")};
18
+ transition-duration: ${e("floatlabel.transition.duration")};
19
+ }
20
+
21
+ .p-floatlabel:has(.p-textarea) label {
22
+ top: ${e("floatlabel.position.y")};
23
+ transform: translateY(0);
24
+ }
25
+
26
+ .p-floatlabel:has(.p-inputicon:first-child) label {
27
+ inset-inline-start: calc((${e("form.field.padding.x")} * 2) + ${e("icon.size")});
28
+ }
29
+
30
+ .p-floatlabel:has(.ng-invalid.ng-dirty) label {
31
+ color: ${e("floatlabel.invalid.color")};
32
+ }
33
+
34
+ .p-floatlabel:has(input:focus) label,
35
+ .p-floatlabel:has(input.p-filled) label,
36
+ .p-floatlabel:has(input:-webkit-autofill) label,
37
+ .p-floatlabel:has(textarea:focus) label,
38
+ .p-floatlabel:has(textarea.p-filled) label,
39
+ .p-floatlabel:has(.p-inputwrapper-focus) label,
40
+ .p-floatlabel:has(.p-inputwrapper-filled) label {
41
+ top: ${e("floatlabel.over.active.top")};
42
+ transform: translateY(0);
43
+ font-size: ${e("floatlabel.active.font.size")};
44
+ font-weight: ${e("floatlabel.label.active.font.weight")};
45
+ }
46
+
47
+ .p-floatlabel:has(input.p-filled) label,
48
+ .p-floatlabel:has(textarea.p-filled) label,
49
+ .p-floatlabel:has(.p-inputwrapper-filled) label {
50
+ color: ${e("floatlabel.active.color")};
51
+ }
52
+
53
+ .p-floatlabel:has(input:focus) label,
54
+ .p-floatlabel:has(input:-webkit-autofill) label,
55
+ .p-floatlabel:has(textarea:focus) label,
56
+ .p-floatlabel:has(.p-inputwrapper-focus) label {
57
+ color: ${e("floatlabel.focus.color")};
58
+ }
59
+
60
+ .p-floatlabel-in .p-inputtext,
61
+ .p-floatlabel-in .p-textarea,
62
+ .p-floatlabel-in .p-select-label,
63
+ .p-floatlabel-in .p-multiselect-label-container,
64
+ .p-floatlabel-in .p-autocomplete-input-multiple,
65
+ .p-floatlabel-in .p-cascadeselect-label,
66
+ .p-floatlabel-in .p-treeselect-label {
67
+ padding-top: ${e("floatlabel.in.input.padding.top")};
68
+ }
69
+
70
+ .p-floatlabel-in:has(input:focus) label,
71
+ .p-floatlabel-in:has(input.p-filled) label,
72
+ .p-floatlabel-in:has(input:-webkit-autofill) label,
73
+ .p-floatlabel-in:has(textarea:focus) label,
74
+ .p-floatlabel-in:has(textarea.p-filled) label,
75
+ .p-floatlabel-in:has(.p-inputwrapper-focus) label,
76
+ .p-floatlabel-in:has(.p-inputwrapper-filled) label {
77
+ top: ${e("floatlabel.in.active.top")};
78
+ }
79
+
80
+ .p-floatlabel-on:has(input:focus) label,
81
+ .p-floatlabel-on:has(input.p-filled) label,
82
+ .p-floatlabel-on:has(input:-webkit-autofill) label,
83
+ .p-floatlabel-on:has(textarea:focus) label,
84
+ .p-floatlabel-on:has(textarea.p-filled) label,
85
+ .p-floatlabel-on:has(.p-inputwrapper-focus) label,
86
+ .p-floatlabel-on:has(.p-inputwrapper-filled) label {
87
+ top: 0;
88
+ transform: translateY(-50%);
89
+ border-radius: ${e("floatlabel.on.border.radius")};
90
+ background: ${e("floatlabel.on.active.background")};
91
+ padding: ${e("floatlabel.on.active.padding")};
92
+ }
93
+ `,Ee={root:({instance:e,props:i})=>["p-floatlabel",{"p-floatlabel-over":i.variant==="over","p-floatlabel-on":i.variant==="on","p-floatlabel-in":i.variant==="in"}]},$e=(()=>{class e extends L{name="floatlabel";theme=De;classes=Ee;static \u0275fac=(()=>{let t;return function(o){return(t||(t=d(e)))(o||e)}})();static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();var Fe=(()=>{class e extends S{_componentStyle=w($e);variant="over";static \u0275fac=(()=>{let t;return function(o){return(t||(t=d(e)))(o||e)}})();static \u0275cmp=f({type:e,selectors:[["p-floatlabel"],["p-floatLabel"],["p-float-label"]],hostVars:8,hostBindings:function(a,o){a&2&&oe("p-floatlabel",!0)("p-floatlabel-over",o.variant==="over")("p-floatlabel-on",o.variant==="on")("p-floatlabel-in",o.variant==="in")},inputs:{variant:"variant"},features:[k([$e]),h],ngContentSelectors:Se,decls:1,vars:0,template:function(a,o){a&1&&(se(),re(0))},dependencies:[M,v],encapsulation:2,changeDetection:0})}return e})(),_t=(()=>{class e{static \u0275fac=function(a){return new(a||e)};static \u0275mod=H({type:e});static \u0275inj=N({imports:[Fe,v,v]})}return e})();var ke=(()=>{class e extends Q{pathId;ngOnInit(){this.pathId="url(#"+I()+")"}static \u0275fac=(()=>{let t;return function(o){return(t||(t=d(e)))(o||e)}})();static \u0275cmp=f({type:e,selectors:[["ExclamationTriangleIcon"]],features:[h],decls:8,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M13.4018 13.1893H0.598161C0.49329 13.189 0.390283 13.1615 0.299143 13.1097C0.208003 13.0578 0.131826 12.9832 0.0780112 12.8932C0.0268539 12.8015 0 12.6982 0 12.5931C0 12.4881 0.0268539 12.3848 0.0780112 12.293L6.47985 1.08982C6.53679 1.00399 6.61408 0.933574 6.70484 0.884867C6.7956 0.836159 6.897 0.810669 7 0.810669C7.103 0.810669 7.2044 0.836159 7.29516 0.884867C7.38592 0.933574 7.46321 1.00399 7.52015 1.08982L13.922 12.293C13.9731 12.3848 14 12.4881 14 12.5931C14 12.6982 13.9731 12.8015 13.922 12.8932C13.8682 12.9832 13.792 13.0578 13.7009 13.1097C13.6097 13.1615 13.5067 13.189 13.4018 13.1893ZM1.63046 11.989H12.3695L7 2.59425L1.63046 11.989Z","fill","currentColor"],["d","M6.99996 8.78801C6.84143 8.78594 6.68997 8.72204 6.57787 8.60993C6.46576 8.49782 6.40186 8.34637 6.39979 8.18784V5.38703C6.39979 5.22786 6.46302 5.0752 6.57557 4.96265C6.68813 4.85009 6.84078 4.78686 6.99996 4.78686C7.15914 4.78686 7.31179 4.85009 7.42435 4.96265C7.5369 5.0752 7.60013 5.22786 7.60013 5.38703V8.18784C7.59806 8.34637 7.53416 8.49782 7.42205 8.60993C7.30995 8.72204 7.15849 8.78594 6.99996 8.78801Z","fill","currentColor"],["d","M6.99996 11.1887C6.84143 11.1866 6.68997 11.1227 6.57787 11.0106C6.46576 10.8985 6.40186 10.7471 6.39979 10.5885V10.1884C6.39979 10.0292 6.46302 9.87658 6.57557 9.76403C6.68813 9.65147 6.84078 9.58824 6.99996 9.58824C7.15914 9.58824 7.31179 9.65147 7.42435 9.76403C7.5369 9.87658 7.60013 10.0292 7.60013 10.1884V10.5885C7.59806 10.7471 7.53416 10.8985 7.42205 11.0106C7.30995 11.1227 7.15849 11.1866 6.99996 11.1887Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(a,o){a&1&&(E(),p(0,"svg",0)(1,"g"),u(2,"path",1)(3,"path",2)(4,"path",3),m(),p(5,"defs")(6,"clipPath",4),u(7,"rect",5),m()()()),a&2&&(y(o.getClassNames()),l("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),r(),l("clip-path",o.pathId),r(5),s("id",o.pathId))},encapsulation:2})}return e})();var Oe=(()=>{class e extends Q{pathId;ngOnInit(){this.pathId="url(#"+I()+")"}static \u0275fac=(()=>{let t;return function(o){return(t||(t=d(e)))(o||e)}})();static \u0275cmp=f({type:e,selectors:[["InfoCircleIcon"]],features:[h],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","M3.11101 12.8203C4.26215 13.5895 5.61553 14 7 14C8.85652 14 10.637 13.2625 11.9497 11.9497C13.2625 10.637 14 8.85652 14 7C14 5.61553 13.5895 4.26215 12.8203 3.11101C12.0511 1.95987 10.9579 1.06266 9.67879 0.532846C8.3997 0.00303296 6.99224 -0.13559 5.63437 0.134506C4.2765 0.404603 3.02922 1.07129 2.05026 2.05026C1.07129 3.02922 0.404603 4.2765 0.134506 5.63437C-0.13559 6.99224 0.00303296 8.3997 0.532846 9.67879C1.06266 10.9579 1.95987 12.0511 3.11101 12.8203ZM3.75918 2.14976C4.71846 1.50879 5.84628 1.16667 7 1.16667C8.5471 1.16667 10.0308 1.78125 11.1248 2.87521C12.2188 3.96918 12.8333 5.45291 12.8333 7C12.8333 8.15373 12.4912 9.28154 11.8502 10.2408C11.2093 11.2001 10.2982 11.9478 9.23232 12.3893C8.16642 12.8308 6.99353 12.9463 5.86198 12.7212C4.73042 12.4962 3.69102 11.9406 2.87521 11.1248C2.05941 10.309 1.50384 9.26958 1.27876 8.13803C1.05367 7.00647 1.16919 5.83358 1.61071 4.76768C2.05222 3.70178 2.79989 2.79074 3.75918 2.14976ZM7.00002 4.8611C6.84594 4.85908 6.69873 4.79698 6.58977 4.68801C6.48081 4.57905 6.4187 4.43185 6.41669 4.27776V3.88888C6.41669 3.73417 6.47815 3.58579 6.58754 3.4764C6.69694 3.367 6.84531 3.30554 7.00002 3.30554C7.15473 3.30554 7.3031 3.367 7.4125 3.4764C7.52189 3.58579 7.58335 3.73417 7.58335 3.88888V4.27776C7.58134 4.43185 7.51923 4.57905 7.41027 4.68801C7.30131 4.79698 7.1541 4.85908 7.00002 4.8611ZM7.00002 10.6945C6.84594 10.6925 6.69873 10.6304 6.58977 10.5214C6.48081 10.4124 6.4187 10.2652 6.41669 10.1111V6.22225C6.41669 6.06754 6.47815 5.91917 6.58754 5.80977C6.69694 5.70037 6.84531 5.63892 7.00002 5.63892C7.15473 5.63892 7.3031 5.70037 7.4125 5.80977C7.52189 5.91917 7.58335 6.06754 7.58335 6.22225V10.1111C7.58134 10.2652 7.51923 10.4124 7.41027 10.5214C7.30131 10.6304 7.1541 10.6925 7.00002 10.6945Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(a,o){a&1&&(E(),p(0,"svg",0)(1,"g"),u(2,"path",1),m(),p(3,"defs")(4,"clipPath",2),u(5,"rect",3),m()()()),a&2&&(y(o.getClassNames()),l("aria-label",o.ariaLabel)("aria-hidden",o.ariaHidden)("role",o.role),r(),l("clip-path",o.pathId),r(3),s("id",o.pathId))},encapsulation:2})}return e})();var Me=["container"],Ve=(e,i,t,a)=>({showTransformParams:e,hideTransformParams:i,showTransitionParams:t,hideTransitionParams:a}),Ae=e=>({value:"visible",params:e}),Ze=(e,i)=>({$implicit:e,closeFn:i}),ze=e=>({$implicit:e});function Be(e,i){e&1&&q(0)}function Le(e,i){if(e&1&&g(0,Be,1,0,"ng-container",3),e&2){let t=c();s("ngTemplateOutlet",t.headlessTemplate)("ngTemplateOutletContext",pe(2,Ze,t.message,t.onCloseIconClick))}}function Pe(e,i){if(e&1&&u(0,"span",4),e&2){let t=c(3);s("ngClass",t.cx("messageIcon"))}}function Qe(e,i){e&1&&u(0,"CheckIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function je(e,i){e&1&&u(0,"InfoCircleIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function Ne(e,i){e&1&&u(0,"TimesCircleIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function Ye(e,i){e&1&&u(0,"ExclamationTriangleIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function He(e,i){e&1&&u(0,"InfoCircleIcon"),e&2&&l("aria-hidden",!0)("data-pc-section","icon")}function qe(e,i){if(e&1&&(p(0,"span",4),g(1,Qe,1,2,"CheckIcon")(2,je,1,2,"InfoCircleIcon")(3,Ne,1,2,"TimesCircleIcon")(4,Ye,1,2,"ExclamationTriangleIcon")(5,He,1,2,"InfoCircleIcon"),m()),e&2){let t,a=c(3);s("ngClass",a.cx("messageIcon")),l("aria-hidden",!0)("data-pc-section","icon"),r(),$((t=a.message.severity)==="success"?1:t==="info"?2:t==="error"?3:t==="warn"?4:5)}}function Re(e,i){if(e&1&&(ie(0),g(1,Pe,1,1,"span",6)(2,qe,6,4,"span",6),p(3,"div",4)(4,"div",4),G(5),m(),p(6,"div",4),G(7),m()(),ne()),e&2){let t=c(2);r(),s("ngIf",t.message.icon),r(),s("ngIf",!t.message.icon),r(),s("ngClass",t.cx("messageText")),l("data-pc-section","text"),r(),s("ngClass",t.cx("summary")),l("data-pc-section","summary"),r(),ce(" ",t.message.summary," "),r(),s("ngClass",t.cx("detail")),l("data-pc-section","detail"),r(),le(t.message.detail)}}function Ge(e,i){e&1&&q(0)}function Xe(e,i){if(e&1&&u(0,"span",4),e&2){let t=c(4);s("ngClass",t.cx("closeIcon"))}}function Ue(e,i){if(e&1&&g(0,Xe,1,1,"span",6),e&2){let t=c(3);s("ngIf",t.message.closeIcon)}}function Je(e,i){if(e&1&&u(0,"TimesIcon",4),e&2){let t=c(3);s("ngClass",t.cx("closeIcon")),l("aria-hidden",!0)("data-pc-section","closeicon")}}function Ke(e,i){if(e&1){let t=F();p(0,"div")(1,"button",7),V("click",function(o){_(t);let n=c(2);return C(n.onCloseIconClick(o))})("keydown.enter",function(o){_(t);let n=c(2);return C(n.onCloseIconClick(o))}),g(2,Ue,1,1,"span",4)(3,Je,1,3,"TimesIcon",4),m()()}if(e&2){let t=c(2);r(),s("ariaLabel",t.closeAriaLabel),l("class",t.cx("closeButton"))("data-pc-section","closebutton"),r(),$(t.message.closeIcon?2:3)}}function We(e,i){if(e&1&&(p(0,"div",4),g(1,Re,8,10,"ng-container",5)(2,Ge,1,0,"ng-container",3)(3,Ke,4,4,"div"),m()),e&2){let t=c();y(t.message==null?null:t.message.contentStyleClass),s("ngClass",t.cx("messageContent")),l("data-pc-section","content"),r(),s("ngIf",!t.template),r(),s("ngTemplateOutlet",t.template)("ngTemplateOutletContext",X(8,ze,t.message)),r(),$((t.message==null?null:t.message.closable)!==!1?3:-1)}}var et=["message"],tt=["headless"];function ot(e,i){if(e&1){let t=F();p(0,"p-toastItem",3),V("onClose",function(o){_(t);let n=c();return C(n.onMessageClose(o))})("@toastAnimation.start",function(o){_(t);let n=c();return C(n.onAnimationStart(o))})("@toastAnimation.done",function(o){_(t);let n=c();return C(n.onAnimationEnd(o))}),m()}if(e&2){let t=i.$implicit,a=i.index,o=c();s("message",t)("index",a)("life",o.life)("template",o.template||o._template)("headlessTemplate",o.headlessTemplate||o._headlessTemplate)("@toastAnimation",void 0)("showTransformOptions",o.showTransformOptions)("hideTransformOptions",o.hideTransformOptions)("showTransitionOptions",o.showTransitionOptions)("hideTransitionOptions",o.hideTransitionOptions)}}var at=({dt:e})=>`
94
+ .p-toast {
95
+ width: ${e("toast.width")};
96
+ white-space: pre-line;
97
+ word-break: break-word;
98
+ }
99
+
100
+ .p-toast-message {
101
+ margin: 0 0 1rem 0;
102
+ }
103
+
104
+ .p-toast-message-icon {
105
+ flex-shrink: 0;
106
+ font-size: ${e("toast.icon.size")};
107
+ width: ${e("toast.icon.size")};
108
+ height: ${e("toast.icon.size")};
109
+ }
110
+
111
+ .p-toast-message-content {
112
+ display: flex;
113
+ align-items: flex-start;
114
+ padding: ${e("toast.content.padding")};
115
+ gap: ${e("toast.content.gap")};
116
+ }
117
+
118
+ .p-toast-message-text {
119
+ flex: 1 1 auto;
120
+ display: flex;
121
+ flex-direction: column;
122
+ gap: ${e("toast.text.gap")};
123
+ }
124
+
125
+ .p-toast-summary {
126
+ font-weight: ${e("toast.summary.font.weight")};
127
+ font-size: ${e("toast.summary.font.size")};
128
+ }
129
+
130
+ .p-toast-detail {
131
+ font-weight: ${e("toast.detail.font.weight")};
132
+ font-size: ${e("toast.detail.font.size")};
133
+ }
134
+
135
+ .p-toast-close-button {
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: center;
139
+ overflow: hidden;
140
+ position: relative;
141
+ cursor: pointer;
142
+ background: transparent;
143
+ transition: background ${e("toast.transition.duration")}, color ${e("toast.transition.duration")}, outline-color ${e("toast.transition.duration")}, box-shadow ${e("toast.transition.duration")};
144
+ outline-color: transparent;
145
+ color: inherit;
146
+ width: ${e("toast.close.button.width")};
147
+ height: ${e("toast.close.button.height")};
148
+ border-radius: ${e("toast.close.button.border.radius")};
149
+ margin: -25% 0 0 0;
150
+ right: -25%;
151
+ padding: 0;
152
+ border: none;
153
+ user-select: none;
154
+ }
155
+
156
+ .p-toast-close-button:dir(rtl) {
157
+ margin: -25% 0 0 auto;
158
+ left: -25%;
159
+ right: auto;
160
+ }
161
+
162
+ .p-toast-message-info,
163
+ .p-toast-message-success,
164
+ .p-toast-message-warn,
165
+ .p-toast-message-error,
166
+ .p-toast-message-secondary,
167
+ .p-toast-message-contrast {
168
+ border-width: ${e("toast.border.width")};
169
+ border-style: solid;
170
+ backdrop-filter: blur(${e("toast.blur")});
171
+ border-radius: ${e("toast.border.radius")};
172
+ }
173
+
174
+ .p-toast-close-icon {
175
+ font-size: ${e("toast.close.icon.size")};
176
+ width: ${e("toast.close.icon.size")};
177
+ height: ${e("toast.close.icon.size")};
178
+ }
179
+
180
+ .p-toast-close-button:focus-visible {
181
+ outline-width: ${e("focus.ring.width")};
182
+ outline-style: ${e("focus.ring.style")};
183
+ outline-offset: ${e("focus.ring.offset")};
184
+ }
185
+
186
+ .p-toast-message-info {
187
+ background: ${e("toast.info.background")};
188
+ border-color: ${e("toast.info.border.color")};
189
+ color: ${e("toast.info.color")};
190
+ box-shadow: ${e("toast.info.shadow")};
191
+ }
192
+
193
+ .p-toast-message-info .p-toast-detail {
194
+ color: ${e("toast.info.detail.color")};
195
+ }
196
+
197
+ .p-toast-message-info .p-toast-close-button:focus-visible {
198
+ outline-color: ${e("toast.info.close.button.focus.ring.color")};
199
+ box-shadow: ${e("toast.info.close.button.focus.ring.shadow")};
200
+ }
201
+
202
+ .p-toast-message-info .p-toast-close-button:hover {
203
+ background: ${e("toast.info.close.button.hover.background")};
204
+ }
205
+
206
+ .p-toast-message-success {
207
+ background: ${e("toast.success.background")};
208
+ border-color: ${e("toast.success.border.color")};
209
+ color: ${e("toast.success.color")};
210
+ box-shadow: ${e("toast.success.shadow")};
211
+ }
212
+
213
+ .p-toast-message-success .p-toast-detail {
214
+ color: ${e("toast.success.detail.color")};
215
+ }
216
+
217
+ .p-toast-message-success .p-toast-close-button:focus-visible {
218
+ outline-color: ${e("toast.success.close.button.focus.ring.color")};
219
+ box-shadow: ${e("toast.success.close.button.focus.ring.shadow")};
220
+ }
221
+
222
+ .p-toast-message-success .p-toast-close-button:hover {
223
+ background: ${e("toast.success.close.button.hover.background")};
224
+ }
225
+
226
+ .p-toast-message-warn {
227
+ background: ${e("toast.warn.background")};
228
+ border-color: ${e("toast.warn.border.color")};
229
+ color: ${e("toast.warn.color")};
230
+ box-shadow: ${e("toast.warn.shadow")};
231
+ }
232
+
233
+ .p-toast-message-warn .p-toast-detail {
234
+ color: ${e("toast.warn.detail.color")};
235
+ }
236
+
237
+ .p-toast-message-warn .p-toast-close-button:focus-visible {
238
+ outline-color: ${e("toast.warn.close.button.focus.ring.color")};
239
+ box-shadow: ${e("toast.warn.close.button.focus.ring.shadow")};
240
+ }
241
+
242
+ .p-toast-message-warn .p-toast-close-button:hover {
243
+ background: ${e("toast.warn.close.button.hover.background")};
244
+ }
245
+
246
+ .p-toast-message-error {
247
+ background: ${e("toast.error.background")};
248
+ border-color: ${e("toast.error.border.color")};
249
+ color: ${e("toast.error.color")};
250
+ box-shadow: ${e("toast.error.shadow")};
251
+ }
252
+
253
+ .p-toast-message-error .p-toast-detail {
254
+ color: ${e("toast.error.detail.color")};
255
+ }
256
+
257
+ .p-toast-message-error .p-toast-close-button:focus-visible {
258
+ outline-color: ${e("toast.error.close.button.focus.ring.color")};
259
+ box-shadow: ${e("toast.error.close.button.focus.ring.shadow")};
260
+ }
261
+
262
+ .p-toast-message-error .p-toast-close-button:hover {
263
+ background: ${e("toast.error.close.button.hover.background")};
264
+ }
265
+
266
+ .p-toast-message-secondary {
267
+ background: ${e("toast.secondary.background")};
268
+ border-color: ${e("toast.secondary.border.color")};
269
+ color: ${e("toast.secondary.color")};
270
+ box-shadow: ${e("toast.secondary.shadow")};
271
+ }
272
+
273
+ .p-toast-message-secondary .p-toast-detail {
274
+ color: ${e("toast.secondary.detail.color")};
275
+ }
276
+
277
+ .p-toast-message-secondary .p-toast-close-button:focus-visible {
278
+ outline-color: ${e("toast.secondary.close.button.focus.ring.color")};
279
+ box-shadow: ${e("toast.secondary.close.button.focus.ring.shadow")};
280
+ }
281
+
282
+ .p-toast-message-secondary .p-toast-close-button:hover {
283
+ background: ${e("toast.secondary.close.button.hover.background")};
284
+ }
285
+
286
+ .p-toast-message-contrast {
287
+ background: ${e("toast.contrast.background")};
288
+ border-color: ${e("toast.contrast.border.color")};
289
+ color: ${e("toast.contrast.color")};
290
+ box-shadow: ${e("toast.contrast.shadow")};
291
+ }
292
+
293
+ .p-toast-message-contrast .p-toast-detail {
294
+ color: ${e("toast.contrast.detail.color")};
295
+ }
296
+
297
+ .p-toast-message-contrast .p-toast-close-button:focus-visible {
298
+ outline-color: ${e("toast.contrast.close.button.focus.ring.color")};
299
+ box-shadow: ${e("toast.contrast.close.button.focus.ring.shadow")};
300
+ }
301
+
302
+ .p-toast-message-contrast .p-toast-close-button:hover {
303
+ background: ${e("toast.contrast.close.button.hover.background")};
304
+ }
305
+
306
+ .p-toast-top-center {
307
+ transform: translateX(-50%);
308
+ }
309
+
310
+ .p-toast-bottom-center {
311
+ transform: translateX(-50%);
312
+ }
313
+
314
+ .p-toast-center {
315
+ min-width: 20vw;
316
+ transform: translate(-50%, -50%);
317
+ }
318
+
319
+ .p-toast-message-enter-from {
320
+ opacity: 0;
321
+ transform: translateY(50%);
322
+ }
323
+
324
+ .p-toast-message-leave-from {
325
+ max-height: 1000px;
326
+ }
327
+
328
+ .p-toast .p-toast-message.p-toast-message-leave-to {
329
+ max-height: 0;
330
+ opacity: 0;
331
+ margin-bottom: 0;
332
+ overflow: hidden;
333
+ }
334
+
335
+ .p-toast-message-enter-active {
336
+ transition: transform 0.3s, opacity 0.3s;
337
+ }
338
+
339
+ .p-toast-message-leave-active {
340
+ transition: max-height 0.45s cubic-bezier(0, 1, 0, 1), opacity 0.3s, margin-bottom 0.3s;
341
+ }
342
+ `,it={root:({instance:e})=>{let{_position:i}=e;return{position:"fixed",top:i==="top-right"||i==="top-left"||i==="top-center"?"20px":i==="center"?"50%":null,right:(i==="top-right"||i==="bottom-right")&&"20px",bottom:(i==="bottom-left"||i==="bottom-right"||i==="bottom-center")&&"20px",left:i==="top-left"||i==="bottom-left"?"20px":i==="center"||i==="top-center"||i==="bottom-center"?"50%":null}}},nt={root:({instance:e})=>({"p-toast p-component":!0,[`p-toast-${e._position}`]:!!e._position}),message:({instance:e})=>({"p-toast-message":!0,"p-toast-message-info":e.message.severity==="info"||e.message.severity===void 0,"p-toast-message-warn":e.message.severity==="warn","p-toast-message-error":e.message.severity==="error","p-toast-message-success":e.message.severity==="success","p-toast-message-secondary":e.message.severity==="secondary","p-toast-message-contrast":e.message.severity==="contrast"}),messageContent:"p-toast-message-content",messageIcon:({instance:e})=>({"p-toast-message-icon":!0,[`pi ${e.message.icon}`]:!!e.message.icon}),messageText:"p-toast-message-text",summary:"p-toast-summary",detail:"p-toast-detail",closeButton:"p-toast-close-button",closeIcon:({instance:e})=>({"p-toast-close-icon":!0,[`pi ${e.message.closeIcon}`]:!!e.message.closeIcon})},j=(()=>{class e extends L{name="toast";theme=at;classes=nt;inlineStyles=it;static \u0275fac=(()=>{let t;return function(o){return(t||(t=d(e)))(o||e)}})();static \u0275prov=D({token:e,factory:e.\u0275fac})}return e})();var st=(()=>{class e extends S{zone;message;index;life;template;headlessTemplate;showTransformOptions;hideTransformOptions;showTransitionOptions;hideTransitionOptions;onClose=new Y;containerViewChild;_componentStyle=w(j);timeout;constructor(t){super(),this.zone=t}ngAfterViewInit(){super.ngAfterViewInit(),this.initTimeout()}initTimeout(){this.message?.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message?.life||this.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick=t=>{this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),t.preventDefault()};get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}ngOnDestroy(){this.clearTimeout(),super.ngOnDestroy()}static \u0275fac=function(a){return new(a||e)(te(ee))};static \u0275cmp=f({type:e,selectors:[["p-toastItem"]],viewQuery:function(a,o){if(a&1&&R(Me,5),a&2){let n;T(n=x())&&(o.containerViewChild=n.first)}},inputs:{message:"message",index:[2,"index","index",O],life:[2,"life","life",O],template:"template",headlessTemplate:"headlessTemplate",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},features:[k([j]),h],decls:4,vars:15,consts:[["container",""],["role","alert","aria-live","assertive","aria-atomic","true",3,"mouseenter","mouseleave","ngClass"],[3,"ngClass","class"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],[4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","button","autofocus","",3,"click","keydown.enter","ariaLabel"]],template:function(a,o){if(a&1){let n=F();p(0,"div",1,0),V("mouseenter",function(){return _(n),C(o.onMouseEnter())})("mouseleave",function(){return _(n),C(o.onMouseLeave())}),g(2,Le,1,5,"ng-container")(3,We,4,10,"div",2),m()}a&2&&(y(o.message==null?null:o.message.styleClass),s("ngClass",o.cx("message"))("@messageState",X(13,Ae,me(8,Ve,o.showTransformOptions,o.hideTransformOptions,o.showTransitionOptions,o.hideTransitionOptions))),l("id",o.message==null?null:o.message.id)("data-pc-name","toast")("data-pc-section","root"),r(2),$(o.headlessTemplate?2:3))},dependencies:[M,U,de,he,Te,ke,Oe,xe,Ie,v],encapsulation:2,data:{animation:[J("messageState",[ge("visible",z({transform:"translateY(0)",opacity:1})),B("void => *",[z({transform:"{{showTransformParams}}",opacity:0}),K("{{showTransitionParams}}")]),B("* => void",[K("{{hideTransitionParams}}",z({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0})}return e})(),qt=(()=>{class e extends S{key;autoZIndex=!0;baseZIndex=0;life=3e3;style;styleClass;get position(){return this._position}set position(t){this._position=t,this.cd.markForCheck()}preventOpenDuplicates=!1;preventDuplicates=!1;showTransformOptions="translateY(100%)";hideTransformOptions="translateY(-100%)";showTransitionOptions="300ms ease-out";hideTransitionOptions="250ms ease-in";breakpoints;onClose=new Y;template;headlessTemplate;containerViewChild;messageSubscription;clearSubscription;messages;messagesArchieve;_position="top-right";messageService=w(ve);_componentStyle=w(j);styleElement;id=I("pn_id_");templates;ngOnInit(){super.ngOnInit(),this.messageSubscription=this.messageService.messageObserver.subscribe(t=>{if(t)if(Array.isArray(t)){let a=t.filter(o=>this.canAdd(o));this.add(a)}else this.canAdd(t)&&this.add([t])}),this.clearSubscription=this.messageService.clearObserver.subscribe(t=>{t?this.key===t&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}_template;_headlessTemplate;ngAfterContentInit(){this.templates?.forEach(t=>{switch(t.getType()){case"message":this._template=t.template;break;case"headless":this._headlessTemplate=t.template;break;default:this._template=t.template;break}})}ngAfterViewInit(){super.ngAfterViewInit(),this.breakpoints&&this.createStyle()}add(t){this.messages=this.messages?[...this.messages,...t]:[...t],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...t]:[...t]),this.cd.markForCheck()}canAdd(t){let a=this.key===t.key;return a&&this.preventOpenDuplicates&&(a=!this.containsMessage(this.messages,t)),a&&this.preventDuplicates&&(a=!this.containsMessage(this.messagesArchieve,t)),a}containsMessage(t,a){return t?t.find(o=>o.summary===a.summary&&o.detail==a.detail&&o.severity===a.severity)!=null:!1}onMessageClose(t){this.messages?.splice(t.index,1),this.onClose.emit({message:t.message}),this.cd.detectChanges()}onAnimationStart(t){t.fromState==="void"&&(this.renderer.setAttribute(this.containerViewChild?.nativeElement,this.id,""),this.autoZIndex&&this.containerViewChild?.nativeElement.style.zIndex===""&&P.set("modal",this.containerViewChild?.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(t){t.toState==="void"&&this.autoZIndex&&ye(this.messages)&&P.clear(this.containerViewChild?.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let t="";for(let a in this.breakpoints){let o="";for(let n in this.breakpoints[a])o+=n+":"+this.breakpoints[a][n]+" !important;";t+=`
343
+ @media screen and (max-width: ${a}) {
344
+ .p-toast[${this.id}] {
345
+ ${o}
346
+ }
347
+ }
348
+ `}this.renderer.setProperty(this.styleElement,"innerHTML",t),Ce(this.styleElement,"nonce",this.config?.csp()?.nonce)}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&P.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle(),super.ngOnDestroy()}static \u0275fac=(()=>{let t;return function(o){return(t||(t=d(e)))(o||e)}})();static \u0275cmp=f({type:e,selectors:[["p-toast"]],contentQueries:function(a,o,n){if(a&1&&(A(n,et,5),A(n,tt,5),A(n,we,4)),a&2){let b;T(b=x())&&(o.template=b.first),T(b=x())&&(o.headlessTemplate=b.first),T(b=x())&&(o.templates=b)}},viewQuery:function(a,o){if(a&1&&R(Me,5),a&2){let n;T(n=x())&&(o.containerViewChild=n.first)}},inputs:{key:"key",autoZIndex:[2,"autoZIndex","autoZIndex",Z],baseZIndex:[2,"baseZIndex","baseZIndex",O],life:[2,"life","life",O],style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:[2,"preventOpenDuplicates","preventOpenDuplicates",Z],preventDuplicates:[2,"preventDuplicates","preventDuplicates",Z],showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},features:[k([j]),h],decls:3,vars:7,consts:[["container",""],[3,"ngClass","ngStyle"],[3,"message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"onClose","message","index","life","template","headlessTemplate","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions"]],template:function(a,o){a&1&&(p(0,"div",1,0),g(2,ot,1,10,"p-toastItem",2),m()),a&2&&(ae(o.style),y(o.styleClass),s("ngClass",o.cx("root"))("ngStyle",o.sx("root")),r(2),s("ngForOf",o.messages))},dependencies:[M,U,ue,fe,st,v],encapsulation:2,data:{animation:[J("toastAnimation",[B(":enter, :leave",[_e("@*",be())])])]},changeDetection:0})}return e})();export{Fe as a,_t as b,qt as c};
@@ -0,0 +1 @@
1
+ import{a as Ve,b as Ge,c as je}from"./chunk-DWTUKOMR.js";import{a as Ue,b as qe,c as We,d as ze,e as He,f as Ke}from"./chunk-CEMQLY34.js";import{a as $e,b as Le}from"./chunk-VYTUB2DV.js";import{a as Q,b as X}from"./chunk-I7T4W6G2.js";import"./chunk-GHZLR44M.js";import{a as Ae}from"./chunk-MEKP6D5H.js";import{c as Ie,d as Fe}from"./chunk-F6SXKAYF.js";import{b as Me,c as we,d as Be,e as Ne,f as Pe,g as Oe,h as ke,l as Re}from"./chunk-MS3UTNX6.js";import{g as De,h as Je}from"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import"./chunk-AVL6C3VX.js";import{a as H,b as K}from"./chunk-G7MS6UI4.js";import{g as J}from"./chunk-YNI2HWIV.js";import{f as W,g as z}from"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import{t as q,u as D}from"./chunk-OVJSBJBH.js";import{b as O,c as ie,e as N,f as ve,i as G,k as xe,l as he,m as Ce,o as j,r as $,t as L,u as U}from"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import{ga as oe,ka as Te}from"./chunk-35EULUGT.js";import{d as be,k as Se}from"./chunk-LUH5EEUM.js";import{a as ye,d as Ee}from"./chunk-YILEWAVV.js";import"./chunk-F2X3VGZZ.js";import"./chunk-EBTC6B2W.js";import{j as ge,m as fe,r as _e,s as B}from"./chunk-SJTXIIX5.js";import{Fa as S,Fc as te,Gc as ne,Ic as d,Jb as p,Mb as pe,Ob as Z,Pb as y,Rb as E,Sb as T,Tb as i,Ub as n,Uc as R,Vb as m,Z as V,Zb as M,ba as le,cc as w,dc as u,fb as a,ha as _,lb as me,mc as o,nc as v,pa as C,qa as b,rc as ce,sc as ue,tb as A,tc as se,uc as de,vc as ee,wc as k,zb as f}from"./chunk-2VF35PRV.js";import{a as I,b as F}from"./chunk-EQDQRRRY.js";var P=(()=>{class t{#e=_(Ee);fetchLoaderConfiguration(){return this.#e.get("","api/SetupLoader/Load")}updateAccountingIntegrationConfiguration(e){return this.#e.post(void 0,"/api/setup/SubmitConfig",e)}fetchOpeningBalanceFormConfiguration(){return this.#e.get("","/api/setup/OpeningBalance/Form")}fetchAPICredential(){let e=localStorage.getItem("AUTH_SUB_DOMAIN");if(!e)throw new Error("Domain not found in local storage");return this.#e.get("","/API/AccountConfig",{POSDomain:e})}formatJournal(e){return this.#e.post("","/api/setup/formatdata/clearjournal",{domain:e})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=le({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Qe=t=>({"active-state":t}),Xe=t=>({"text-white":t});function at(t,l){if(t&1){let e=M();i(0,"div",4)(1,"a",5),o(2,"Cancel"),n(),i(3,"p-button",6),w("click",function(){C(e);let c=u();return b(c.updateAccountingIntegration())}),n()()}}function lt(t,l){if(t&1&&(i(0,"p-tab",9),o(1),n()),t&2){let e=l.$implicit,r=l.$index;p("value",r),a(),v(e)}}function mt(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," End Of Shift "),n()()),t&2){let e=u(4);p("ngClass",k(2,Qe,e.form.controls.posIntegration.value.createJournalTriggers===0)),a(),p("ngClass",k(4,Xe,e.form.controls.posIntegration.value.createJournalTriggers===0))}}function pt(t,l){if(t&1&&(i(0,"div",39)(1,"h3",40),o(2," Every "),n()()),t&2){let e=u(4);p("ngClass",k(2,Qe,e.form.controls.posIntegration.value.createJournalTriggers===1)),a(),p("ngClass",k(4,Xe,e.form.controls.posIntegration.value.createJournalTriggers===1))}}function ct(t,l){if(t&1&&f(0,mt,3,6,"div",39)(1,pt,3,6,"div",39),t&2){let e,r=u().$implicit;Z((e=r.key)===0?0:e===1?1:-1)}}function ut(t,l){t&1&&(i(0,"h4"),o(1,"Suitable for Cash Sales (Retail & FnB)"),n(),i(2,"p"),o(3," One Journal is generated for all transaction happening within a register open - close period "),n())}function st(t,l){t&1&&(i(0,"h4"),o(1,"Every"),n(),i(2,"p"),o(3," Suitable for Credit Sales (Wholesale) Journal is generated for each transaction "),n())}function dt(t,l){if(t&1){let e=M();i(0,"div",13),m(1,"p-radiobutton",37),i(2,"p-card",38),w("click",function(){C(e);let c=u(2);return b(c.changeJournalType())}),f(3,ct,2,1,"ng-template",null,2,d)(5,ut,4,0)(6,st,4,0),n()()}if(t&2){let e,r=l.$implicit;a(),p("inputId",r.value)("value",r.key),a(4),Z((e=r.key)===0?5:e===1?6:-1)}}function gt(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",41),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function ft(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",43),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function _t(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",44),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function vt(t,l){if(t&1&&(i(0,"div",31),m(1,"p-radiobutton",45),i(2,"label",42),o(3),n()()),t&2){let e=l.$implicit;a(),p("value",e.key)("inputId",e.value),a(),p("for",e.value),a(),v(e.value)}}function xt(t,l){if(t&1&&(i(0,"div",7)(1,"p-tabs",8)(2,"p-tablist"),E(3,lt,2,2,"p-tab",9,y),n(),i(5,"p-tabpanels")(6,"p-tabpanel",9)(7,"h4"),o(8,"Integration with POS"),n(),i(9,"p"),o(10,"Generate Journal"),n(),i(11,"div",10)(12,"div",11)(13,"div",12),E(14,dt,7,3,"div",13,y),n()()(),m(16,"hr"),i(17,"div",14)(18,"h3"),o(19,"Journal Generate"),n(),i(20,"p"),o(21,"Configure generate transaction"),n(),i(22,"div",12)(23,"div",15)(24,"div",16)(25,"div",15)(26,"div",17)(27,"label",18),o(28,"Generate EOD Expense Journal"),n(),m(29,"p-toggleswitch",19),n()(),m(30,"div",15),i(31,"div",15)(32,"div",17)(33,"label",18),o(34,"Generate Outlet Delivery Journal"),n(),m(35,"p-toggleswitch",20),n()(),m(36,"div",15),i(37,"div",15)(38,"div",17)(39,"label",18),o(40,"Generate Payment Discount Journal On Payment"),n(),m(41,"p-toggleswitch",21),n()()()()()()(),i(42,"p-tabpanel",22)(43,"div",23)(44,"h3"),o(45,"Accounting Numbering"),n(),i(46,"p"),o(47,"Configure numbering format and rule for your accounting"),n(),i(48,"div",12)(49,"div",15)(50,"div",16)(51,"div",15)(52,"div",17)(53,"label",24),o(54,"Digit"),n(),m(55,"p-inputnumber",25),n()(),m(56,"div",15),i(57,"div",15)(58,"div",17)(59,"label",26),o(60,"Seed"),n(),m(61,"p-inputnumber",27),n()(),i(62,"div",15)(63,"div",17)(64,"label",28),o(65,"Last Number"),n(),m(66,"p-inputnumber",29),n()(),i(67,"div",15)(68,"div",17)(69,"label",18),o(70,"Reset Every"),n(),i(71,"div",30),E(72,gt,4,4,"div",31,y),n()()(),i(74,"div",15)(75,"div",17)(76,"label",18),o(77,"Format"),n(),m(78,"p-select",32),n()()()()()()(),i(79,"p-tabpanel",33)(80,"div",23)(81,"h3"),o(82,"Report"),n(),i(83,"p"),o(84,"Configure report behavior"),n(),i(85,"div",12)(86,"div",15)(87,"div",16)(88,"div",15)(89,"div",17)(90,"label",18),o(91,"Audit Journal Transaction"),n(),i(92,"div",30),E(93,ft,4,4,"div",31,y),n()()(),m(95,"div",15),i(96,"div",15)(97,"div",17)(98,"label",18),o(99,"Accounting For Treatment"),n(),i(100,"div",30),E(101,_t,4,4,"div",31,y),n()()(),m(103,"div",15),i(104,"div",15)(105,"div",17)(106,"label",18),o(107,"Configure Report Access Control in COA"),n(),i(108,"div",30),E(109,vt,4,4,"div",31,y),n()()()()()()()(),i(111,"p-tabpanel",34)(112,"div",23)(113,"h3"),o(114,"Note"),n(),i(115,"p"),o(116,"Configure show note"),n(),i(117,"div",12)(118,"div",15)(119,"div",16)(120,"div",15)(121,"div",17)(122,"label",18),o(123,"Note Required On Journal"),n(),m(124,"p-toggleswitch",35),n()(),m(125,"div",15),i(126,"div",15)(127,"div",17)(128,"label",18),o(129,"Trial Balance Footer Visible"),n(),m(130,"p-toggleswitch",36),n()(),m(131,"div",15),n()()()()()()()()),t&2){let e,r,c,s,h,g,x=u();a(),p("value",0)("formGroup",x.form),a(2),T(x.tabs()),a(3),p("value",0),a(8),T((e=x.accountingIntegration())==null||e.options==null?null:e.options.journalType),a(28),p("value",1),a(30),T((r=x.accountingIntegration())==null||r.options==null?null:r.options.resetPeriods),a(6),p("options",(c=x.accountingIntegration())==null||c.options==null?null:c.options.monthlyResetPeriodFormat),a(),p("value",2),a(14),T((s=x.accountingIntegration())==null||s.options==null?null:s.options.auditType),a(8),T((h=x.accountingIntegration())==null||h.options==null?null:h.options.generatePrepaidJournal),a(8),T((g=x.accountingIntegration())==null||g.options==null?null:g.options.entityAccess),a(2),p("value",3)}}var Ye=(()=>{class t{constructor(){this.accountingSetupService=_(P),this.fb=_($).nonNullable,this.tabs=S(["Pos","Numbering","Report","Note"]),this.journalType=S(0),this.accountingIntegration=S(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({posIntegration:this.createPosIntegrationGroup(),number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup(),note:this.createNoteGroup()})}createPosIntegrationGroup(){return this.fb.group({createJournalTriggers:this.fb.control(0)})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control("")})}createNoteGroup(){return this.fb.group({noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}changeJournalType(){let e=this.journalType()===0?1:0;this.journalType.set(e),this.accountingIntegration.update(r=>F(I({},r),{form:F(I({},r.form),{posIntegration:F(I({},r.form.posIntegration),{createJournalTriggers:e})})})),this.form.controls.posIntegration.patchValue({createJournalTriggers:e})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(V(e=>{this.accountingIntegration.set(e);let r=e.form.posIntegration.createJournalTriggers;this.journalType.set(r),this.form.get("posIntegration.createJournalTriggers")?.setValue(r),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"overflow-y-auto"],[3,"value","formGroup"],[3,"value"],["formGroupName","posIntegration",1,"row"],[1,"col-8"],[1,"row"],[1,"col"],["formGroupName","journalGenerate",1,"px-3"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for",""],["formControlName","eodExpenseJournal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formGroupName","number",3,"value"],[1,"px-3"],["for","digit"],["inputId","digit","formControlName","digit"],["for","seed"],["inputId","seed","formControlName","seed"],["for","lastNumber"],["inputId","lastNumber","formControlName","lastNumber"],[1,"d-flex","flex-column","gap-2"],[1,"d-flex","align-items-center","gap-2"],["formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],["formGroupName","report",3,"value"],["formGroupName","note",3,"value"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["styleClass","d-none","name","createJournalTriggers","formControlName","createJournalTriggers",3,"inputId","value"],["styleClass","h-100",3,"click"],[1,"d-flex","justify-content-center","inactive-state","text-white","py-2",3,"ngClass"],[1,"m-0",3,"ngClass"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"ml-2","m-0",3,"for"],["name","accountingAuditType","formControlName","accountingAuditType",3,"value","inputId"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"],["name","accountingEntityAccess","formControlName","accountingEntityAccess",3,"value","inputId"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,at,4,0,"ng-template",null,0,d)(3,xt,132,7,"ng-template",null,1,d),n())},dependencies:[B,ge,Ke,He,ze,We,Ue,qe,J,K,H,Oe,Pe,U,N,ve,he,j,Ce,D,Je,De,Le,$e,Se,be,z,W,Ne,Be],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:#5680e9}"],changeDetection:0})}}return t})();var ht=()=>({width:"100%",height:"calc(100vh - 300px)"}),Ct=()=>[];function bt(t,l){t&1&&(i(0,"div"),m(1,"p-button",5),n())}function St(t,l){t&1&&(i(0,"tr")(1,"th"),o(2,"Account Name"),n(),i(3,"th",17),o(4,"Debit"),n(),i(5,"th",17),o(6,"Credit"),n()())}function yt(t,l){if(t&1){let e=M();i(0,"tr")(1,"td"),o(2),n(),i(3,"td")(4,"input",18),w("ngModelChange",function(c){let s=C(e).rowIndex,h=u(2).$index,g=u(2);return b(g.dfsfsd(c,h,s,"debitAmount"))}),n()(),i(5,"td")(6,"input",18),w("ngModelChange",function(c){let s=C(e).rowIndex,h=u(2).$index,g=u(2);return b(g.dfsfsd(c,h,s,"creditAmount"))}),n()()()}if(t&2){let e=l.$implicit;a(2),v(e.accountName),a(2),p("ngModel",e.debitAmount),a(2),p("ngModel",e.creditAmount)}}function Et(t,l){if(t&1&&(i(0,"p-table",14),f(1,St,7,0,"ng-template",15)(2,yt,7,3,"ng-template",16),n()),t&2){let e=u().$implicit;p("value",e.items)}}function Tt(t,l){if(t&1&&(i(0,"div",7)(1,"div",8)(2,"div",12)(3,"h4"),o(4),n()(),i(5,"div"),f(6,Et,3,1,"p-table",13),n()()()),t&2){let e=l.$implicit;a(4),v(e.name),a(2),p("ngIf",e.items.length)}}function It(t,l){if(t&1&&(i(0,"tr")(1,"td")(2,"p",19),o(3,"Total"),n()(),i(4,"td",17)(5,"p",19),o(6),te(7,"number"),n()(),i(8,"td",17)(9,"p",19),o(10),te(11,"number"),n()()()),t&2){let e=u(2);a(6),v(ne(7,2,e.subTotalDebit())),a(4),v(ne(11,4,e.subTotalCredit()))}}function Ft(t,l){if(t&1&&(i(0,"p-card",6)(1,"div",7)(2,"div",8),m(3,"p-datepicker",9),n()()(),m(4,"br"),i(5,"p-card")(6,"p-scroll-panel")(7,"div",10),E(8,Tt,7,2,"div",7,y),n()(),i(10,"p-table",11),f(11,It,12,6,"ng-template",null,2,d),n()()),t&2){let e=u();a(3),p("ngModel",e.date()),a(3),pe(ee(4,ht)),a(2),T(e.nonEmptyForms()),a(2),p("value",ee(5,Ct))}}var Ze=(()=>{class t{constructor(){this.accSetupService=_(P),this.openingBalanceForm=S(null),this.date=S(new Date),this.messageService=_(oe),this.subTotalDebit=R(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.debitAmount,0),0):0),this.subTotalCredit=R(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.reduce((c,s)=>c+s.creditAmount,0),0):0),this.totalItemsCount=R(()=>this.openingBalanceForm()?this.openingBalanceForm().form.reduce((e,r)=>e+r.items.length,0):0),this.nonEmptyForms=R(()=>{let e=["Asset","Liability","Equity","Revenue","Expense"];return this.openingBalanceForm()?this.openingBalanceForm().form.filter(r=>r.items.length>0||e.includes(r.name)):[]})}ngOnInit(){this.loadFormData(),setInterval(()=>{this.subTotalCredit()!==this.subTotalDebit()&&this.messageService.add({severity:"warn",summary:"Mismatch Detected",detail:`The total Debit and Credit amounts are not balanced. Difference: ${this.subTotalCredit()-this.subTotalDebit()}`})},1e3)}loadFormData(){this.accSetupService.fetchOpeningBalanceFormConfiguration().pipe(Ae("response"),V(e=>{this.openingBalanceForm.set(e)})).subscribe()}dfsfsd(e,r,c,s){let h=this.openingBalanceForm().form.map((g,x)=>x===r?F(I({},g),{items:g.items.map((ae,nt)=>nt===c?F(I({},ae),{[s]:e}):ae)}):g).filter(g=>g!==null);this.openingBalanceForm.update(g=>F(I({},g),{form:h})),console.log(this.openingBalanceForm())}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-acc-opening-balance-form"]],features:[de([oe])],decls:6,vars:0,consts:[["actionButton",""],["content",""],["footer",""],["pageTitle","Opening Balance Form"],["preventOpenDuplicates",""],["label","Submit"],["header","Opening Balance Date"],[1,"row"],[1,"col"],[3,"ngModel"],[1,"d-flex","flex-column","gap-4"],[3,"value"],[1,"mb-2"],["dataKey","id","stripedRows","",3,"value",4,"ngIf"],["dataKey","id","stripedRows","",3,"value"],["pTemplate","header"],["pTemplate","body"],[2,"width","200px"],["type","number",1,"form-control",3,"ngModelChange","ngModel"],[1,"fw-semibold","fs-5"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,bt,2,0,"ng-template",null,0,d)(3,Ft,13,6,"ng-template",null,1,d),n(),m(5,"p-toast",4))},dependencies:[J,K,H,Te,B,fe,_e,we,Me,Re,ke,Fe,Ie,L,O,xe,N,G,D,je,z,W],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();function wt(t,l){t&1&&(i(0,"button",4),o(1,"Save"),n())}function Bt(t,l){t&1&&(i(0,"div",8)(1,"h3",12),o(2,"Account"),n(),i(3,"small",13),o(4,"Configure Client ID and Client Secret"),n()())}function Nt(t,l){t&1&&(i(0,"div",5)(1,"p-panel"),f(2,Bt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),o(8,"Client ID"),n(),m(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),o(13,"Client Secret"),n(),m(14,"input",11),n()()()()())}var et=(()=>{class t{constructor(e){this.fb=e,this.setupService=_(P)}ngOnInit(){this.initForm()}initForm(){this.setupService.fetchAPICredential().subscribe(e=>{this.credentialForm=this.fb.group({clientId:[e.clientID,ie.required],clientSecret:[e.clientSecret,ie.required]})})}get clientIdControl(){return this.credentialForm.get("clientId")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.value;console.log("Saving credentials:",e)}static{this.\u0275fac=function(r){return new(r||t)(me($))}}static{this.\u0275cmp=A({type:t,selectors:[["app-api-credential"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[1,"btn","btn-primary","rounded"],[1,"d-flex","flex-column","row-gap-4"],[1,"row"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientIdControl"],["type","text","pInputText",""],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,wt,2,0,"ng-template",null,0,d)(3,Nt,15,0,"ng-template",null,1,d),n())},dependencies:[B,U,O,N,j,D,q,X,Q,J],encapsulation:2})}}return t})();function Dt(t,l){if(t&1){let e=M();i(0,"button",4),w("click",function(){C(e);let c=u();return b(c.onFormatJournal())}),o(1," Format "),n()}}function Jt(t,l){t&1&&(i(0,"div",12)(1,"h3",13),o(2,"Journal Configuration"),n(),i(3,"small",14),o(4," Enter your account information to format journal entries "),n()())}function Pt(t,l){if(t&1){let e=M();i(0,"div",5)(1,"p-panel"),f(2,Jt,5,0,"ng-template",null,2,d),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),se("ngModelChange",function(c){C(e);let s=u();return ue(s.subdomain,c)||(s.subdomain=c),b(c)}),n(),i(8,"label",10),o(9,"Subdomain"),n()(),i(10,"small",11),o(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();a(7),ce("ngModel",e.subdomain)}}var tt=(()=>{class t{constructor(){this.setupService=_(P),this.subdomain=S(""),this.toastrService=_(ye)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-primary","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"d-flex","flex-column"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(r,c){r&1&&(i(0,"app-main-panel",3),f(1,Dt,2,0,"ng-template",null,0,d)(3,Pt,12,1,"ng-template",null,1,d),n())},dependencies:[B,L,O,N,G,D,q,J,X,Q,Ge,Ve],encapsulation:2})}}return t})();var ai=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"accounting-integration",component:Ye},{path:"opening-balance-form",component:Ze},{path:"api-crendetial",component:et},{path:"format-journal",component:tt}]}];export{ai as ACCOUNTING_SETUP_ROUTES};
@@ -1 +1 @@
1
- import{d as o}from"./chunk-T3ZCO6EC.js";import{ca as r,ia as i}from"./chunk-RSHFIZV3.js";var c=(()=>{class n{constructor(){this.httpService=i(o)}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=r({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{c as a};
1
+ import{d as o}from"./chunk-YILEWAVV.js";import{ba as r,ha as i}from"./chunk-2VF35PRV.js";var c=(()=>{class n{constructor(){this.httpService=i(o)}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=r({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();export{c as a};
@@ -0,0 +1 @@
1
+ import{b as oe}from"./chunk-SJTXIIX5.js";import{$ as w,Bb as Me,Da as te,Fa as C,Ib as Ae,Lb as ie,Mc as we,Rc as re,Tc as f,Uc as V,Vc as Ee,aa as g,ba as Q,ca as P,cc as T,ea as _,g as _e,ha as R,i as ve,kb as ne,l as ye,lb as s,na as De,oa as E,s as Ce,sa as F,ua as ee,ub as j,uc as p,va as be,vb as l,xb as d,y as Ve,ya as y}from"./chunk-2VF35PRV.js";import{a as u,b as h}from"./chunk-EQDQRRRY.js";var je=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(s(ne),s(te))};static \u0275dir=l({type:n})}return n})(),Te=(()=>{class n extends je{static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(n)))(r||n)}})();static \u0275dir=l({type:n,features:[d]})}return n})(),Z=new _("");var dt={provide:Z,useExisting:g(()=>Ge),multi:!0};function ct(){let n=oe()?oe().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var ht=new _(""),Ge=(()=>{class n extends je{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!ct())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(s(ne),s(te),s(ht,8))};static \u0275dir=l({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&T("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[p([dt]),d]})}return n})();function he(n){return n==null||fe(n)===0}function fe(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var A=new _(""),k=new _(""),ft=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Fe=class{static min(t){return gt(t)}static max(t){return pt(t)}static required(t){return Ue(t)}static requiredTrue(t){return mt(t)}static email(t){return _t(t)}static minLength(t){return vt(t)}static maxLength(t){return yt(t)}static pattern(t){return Ct(t)}static nullValidator(t){return U()}static compose(t){return qe(t)}static composeAsync(t){return Ze(t)}};function gt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function pt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function Ue(n){return he(n.value)?{required:!0}:null}function mt(n){return n.value===!0?null:{required:!0}}function _t(n){return he(n.value)||ft.test(n.value)?null:{email:!0}}function vt(n){return t=>{let e=t.value?.length??fe(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function yt(n){return t=>{let e=t.value?.length??fe(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function Ct(n){if(!n)return U;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(he(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function U(n){return null}function Be(n){return n!=null}function He(n){return Me(n)?ye(n):n}function Le(n){let t={};return n.forEach(e=>{t=e!=null?u(u({},t),e):t}),Object.keys(t).length===0?null:t}function $e(n,t){return t.map(e=>e(n))}function Vt(n){return!n.validate}function We(n){return n.map(t=>Vt(t)?t:e=>t.validate(e))}function qe(n){if(!n)return null;let t=n.filter(Be);return t.length==0?null:function(e){return Le($e(e,t))}}function ze(n){return n!=null?qe(We(n)):null}function Ze(n){if(!n)return null;let t=n.filter(Be);return t.length==0?null:function(e){let i=$e(e,t).map(He);return Ve(i).pipe(Ce(Le))}}function Xe(n){return n!=null?Ze(We(n)):null}function Se(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Ye(n){return n._rawValidators}function Ke(n){return n._rawAsyncValidators}function se(n){return n?Array.isArray(n)?n:[n]:[]}function B(n,t){return Array.isArray(n)?n.includes(t):n===t}function Ie(n,t){let e=se(t);return se(n).forEach(r=>{B(e,r)||e.push(r)}),e}function Oe(n,t){return se(t).filter(e=>!B(n,e))}var H=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=ze(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Xe(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},c=class extends H{name;get formDirective(){return null}get path(){return null}},v=class extends H{_parent=null;name=null;valueAccessor=null},L=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Dt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},gn=h(u({},Dt),{"[class.ng-submitted]":"isSubmitted"}),pn=(()=>{class n extends L{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(s(v,2))};static \u0275dir=l({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&ie("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[d]})}return n})(),mn=(()=>{class n extends L{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(s(c,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&ie("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[d]})}return n})();var S="VALID",G="INVALID",D="PENDING",I="DISABLED",m=class{},$=class extends m{value;source;constructor(t,e){super(),this.value=t,this.source=e}},O=class extends m{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},N=class extends m{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},b=class extends m{status;source;constructor(t,e){super(),this.status=t,this.source=e}},ae=class extends m{source;constructor(t){super(),this.source=t}},le=class extends m{source;constructor(t){super(),this.source=t}};function ge(n){return(X(n)?n.validators:n)||null}function bt(n){return Array.isArray(n)?ze(n):n||null}function pe(n,t){return(X(t)?t.asyncValidators:n)||null}function Mt(n){return Array.isArray(n)?Xe(n):n||null}function X(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Je(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new w(1e3,"");if(!i[e])throw new w(1001,"")}function Qe(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new w(1002,"")})}var M=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return f(this.statusReactive)}set status(t){f(()=>this.statusReactive.set(t))}_status=V(()=>this.statusReactive());statusReactive=C(void 0);get valid(){return this.status===S}get invalid(){return this.status===G}get pending(){return this.status==D}get disabled(){return this.status===I}get enabled(){return this.status!==I}errors;get pristine(){return f(this.pristineReactive)}set pristine(t){f(()=>this.pristineReactive.set(t))}_pristine=V(()=>this.pristineReactive());pristineReactive=C(!0);get dirty(){return!this.pristine}get touched(){return f(this.touchedReactive)}set touched(t){f(()=>this.touchedReactive.set(t))}_touched=V(()=>this.touchedReactive());touchedReactive=C(!1);get untouched(){return!this.touched}_events=new _e;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Ie(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Ie(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Oe(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Oe(t,this._rawAsyncValidators))}hasValidator(t){return B(this._rawValidators,t)}hasAsyncValidator(t){return B(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(h(u({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new N(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new N(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(h(u({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new O(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new O(!0,i))}markAsPending(t={}){this.status=D;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new b(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(h(u({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=I,this.errors=null,this._forEachChild(r=>{r.disable(h(u({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $(this.value,i)),this._events.next(new b(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(h(u({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=S,this._forEachChild(i=>{i.enable(h(u({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(h(u({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===S||this.status===D)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new $(this.value,e)),this._events.next(new b(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(h(u({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?I:S}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=D,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=He(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new b(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new y,this.statusChanges=new y}_calculateStatus(){return this._allControlsDisabled()?I:this.errors?G:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(D)?D:this._anyControlsHaveStatus(G)?G:S}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new O(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new N(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){X(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=bt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Mt(this._rawAsyncValidators)}},W=class extends M{constructor(t,e,i){super(ge(e),pe(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Qe(this,!0,t),Object.keys(t).forEach(i=>{Je(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ue=class extends W{};var Y=new _("",{providedIn:"root",factory:()=>K}),K="always";function J(n,t){return[...t.path,n]}function de(n,t,e=K){me(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),wt(n,t),Ft(n,t),Et(n,t),At(n,t)}function Ne(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),z(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function q(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function At(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function me(n,t){let e=Ye(n);t.validator!==null?n.setValidators(Se(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=Ke(n);t.asyncValidator!==null?n.setAsyncValidators(Se(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();q(t._rawValidators,r),q(t._rawAsyncValidators,r)}function z(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=Ye(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(t.asyncValidator!==null){let r=Ke(n);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}let i=()=>{};return q(t._rawValidators,i),q(t._rawAsyncValidators,i),e}function wt(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&et(n,t)})}function Et(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&et(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function et(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Ft(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function St(n,t){n==null,me(n,t)}function It(n,t){return z(n,t)}function tt(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Ot(n){return Object.getPrototypeOf(n.constructor)===Te}function Nt(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function nt(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(o=>{o.constructor===Ge?e=o:Ot(o)?i=o:r=o}),r||i||e||null}function xt(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function xe(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function ke(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var x=class extends M{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(ge(e),pe(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),X(e)&&(e.nonNullable||e.initialValueIsDefault)&&(ke(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){xe(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){xe(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){ke(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var kt=n=>n instanceof x,Pt=(()=>{class n extends c{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return J(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(n)))(r||n)}})();static \u0275dir=l({type:n,standalone:!1,features:[d]})}return n})();var Rt={provide:v,useExisting:g(()=>jt)},Pe=Promise.resolve(),jt=(()=>{class n extends v{_changeDetectorRef;callSetDisabledState;control=new x;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new y;constructor(e,i,r,o,a,ut){super(),this._changeDetectorRef=a,this.callSetDisabledState=ut,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nt(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),tt(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){de(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Pe.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&re(i);Pe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?J(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(s(c,9),s(A,10),s(k,10),s(Z,10),s(we,8),s(Y,8))};static \u0275dir=l({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[p([Rt]),d,E]})}return n})();var vn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})(),Tt={provide:Z,useExisting:g(()=>Gt),multi:!0},Gt=(()=>{class n extends Te{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&T("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[p([Tt]),d]})}return n})();var it=new _("");var Ut={provide:c,useExisting:g(()=>rt)},rt=(()=>{class n extends c{callSetDisabledState;get submitted(){return f(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=V(()=>this._submittedReactive());_submittedReactive=C(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new y;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(z(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return de(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Ne(e.control||null,e,!1),xt(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),Nt(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ae(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new le(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(Ne(i||null,e),kt(r)&&(de(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);St(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&It(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){me(this.form,this),this._oldForm&&z(this._oldForm,this)}static \u0275fac=function(i){return new(i||n)(s(A,10),s(k,10),s(Y,8))};static \u0275dir=l({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&T("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[p([Ut]),d,E]})}return n})(),Bt={provide:c,useExisting:g(()=>ot)},ot=(()=>{class n extends Pt{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){at(this._parent)}static \u0275fac=function(i){return new(i||n)(s(c,13),s(A,10),s(k,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[p([Bt]),d]})}return n})(),Ht={provide:c,useExisting:g(()=>st)},st=(()=>{class n extends c{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){at(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return J(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||n)(s(c,13),s(A,10),s(k,10))};static \u0275dir=l({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[p([Ht]),d]})}return n})();function at(n){return!(n instanceof ot)&&!(n instanceof rt)&&!(n instanceof st)}var Lt={provide:v,useExisting:g(()=>$t)},$t=(()=>{class n extends v{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new y;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=nt(this,o)}ngOnChanges(e){this._added||this._setUpControl(),tt(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return J(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(s(c,13),s(A,10),s(k,10),s(Z,10),s(it,8))};static \u0275dir=l({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[p([Lt]),d,E]})}return n})();var Wt=(()=>{class n{_validator=U;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):U,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,features:[E]})}return n})();var qt={provide:A,useExisting:g(()=>zt),multi:!0};var zt=(()=>{class n extends Wt{required;inputName="required";normalizeInput=re;createValidator=e=>Ue;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=F(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&Ae("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[p([qt]),d]})}return n})();var lt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=j({type:n});static \u0275inj=P({})}return n})(),ce=class extends M{constructor(t,e,i){super(ge(e),pe(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Qe(this,!1,t),t.forEach((i,r)=>{Je(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Re(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Zt=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),o={};return Re(i)?o=i:i!==null&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new W(r,o)}record(e,i=null){let r=this._reduceControls(e);return new ue(r,i)}control(e,i,r){let o={};return this.useNonNullable?(Re(i)?o=i:(o.validators=i,o.asyncValidators=r),new x(e,h(u({},o),{nonNullable:!0}))):new x(e,i,r)}array(e,i,r){let o=e.map(a=>this._createControl(a));return new ce(o,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof x)return e;if(e instanceof M)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,o=e.length>2?e[2]:null;return this.control(i,r,o)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Q({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),yn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275prov=Q({token:n,factory:()=>R(Zt).nonNullable,providedIn:"root"})}return n})();var Cn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Y,useValue:e.callSetDisabledState??K}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=j({type:n});static \u0275inj=P({imports:[lt]})}return n})(),Vn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:it,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Y,useValue:e.callSetDisabledState??K}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=j({type:n});static \u0275inj=P({imports:[lt]})}return n})();function Xt(n,t){!t?.injector&&De(Xt);let e=t?.injector??R(ee),i=new ve(1),r=Ee(()=>{let o;try{o=n()}catch(a){f(()=>i.error(a));return}f(()=>i.next(o))},{injector:e,manualCleanup:!0});return e.get(be).onDestroy(()=>{r.destroy(),i.complete()}),i.asObservable()}export{Z as a,Ge as b,Fe as c,v as d,pn as e,mn as f,W as g,x as h,jt as i,vn as j,Gt as k,rt as l,ot as m,st as n,$t as o,zt as p,ce as q,Zt as r,yn as s,Cn as t,Vn as u,Xt as v};
@@ -0,0 +1 @@
1
+ import{a as H}from"./chunk-DYZT7UKM.js";import{a as L}from"./chunk-MEKP6D5H.js";import{h as M,j as V,k as N,l as U}from"./chunk-MS3UTNX6.js";import"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import"./chunk-AVL6C3VX.js";import{g as P}from"./chunk-YNI2HWIV.js";import"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import"./chunk-YILEWAVV.js";import"./chunk-F2X3VGZZ.js";import"./chunk-EBTC6B2W.js";import{m as k,q as I,r as z,s as D}from"./chunk-SJTXIIX5.js";import{Fa as b,Fc as J,Gc as E,Hc as A,Ic as h,Jb as f,Tb as o,Ub as i,Uc as v,Vb as C,Vc as T,Z as y,Zb as S,cc as w,dc as d,fb as s,ha as j,mc as r,nc as p,pa as _,qa as g,tb as R,zb as x}from"./chunk-2VF35PRV.js";import{a as m,b as c}from"./chunk-EQDQRRRY.js";function O(a,u){if(a&1){let e=S();o(0,"button",6),w("click",function(){_(e);let t=d(2);return g(t.onCreateJournal())}),r(1," Generate Journal "),i()}}function G(a,u){if(a&1&&x(0,O,2,0,"button",5),a&2){let e=d();f("ngIf",e.selectedItems()&&e.selectedItems().length>0)}}function K(a,u){a&1&&(o(0,"tr")(1,"th",9),C(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Outlet"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th"),r(8,"Date"),i(),o(9,"th"),r(10,"Adjustment Qty"),i(),o(11,"th"),r(12,"Type"),i(),o(13,"th"),r(14,"State"),i(),o(15,"th"),r(16,"Note"),i()())}function q(a,u){if(a&1&&(o(0,"tr")(1,"td"),C(2,"p-tableCheckbox",10),i(),o(3,"td"),r(4),i(),o(5,"td"),r(6),i(),o(7,"td"),r(8),J(9,"date"),i(),o(10,"td"),r(11),J(12,"number"),i(),o(13,"td"),r(14),i(),o(15,"td"),r(16),i(),o(17,"td"),r(18),i()()),a&2){let e=u.$implicit;s(2),f("value",e),s(2),p(e.outlet),s(2),p(e.number),s(2),p(A(9,8,e.date,"d MMM y")),s(3),p(E(12,11,e.quantitySUM)),s(3),p(e.type),s(2),p(e.state),s(2),p(e.note)}}function F(a,u){if(a&1){let e=S();o(0,"p-table",8),w("onLazyLoad",function(t){_(e);let n=d(2);return g(n.onLazyLoad(t))})("onRowSelect",function(t){_(e);let n=d(2);return g(n.onRowSelect(t))})("onRowUnselect",function(t){_(e);let n=d(2);return g(n.onRowUnselect(t))}),x(1,K,17,0,"ng-template",null,2,h)(3,q,19,13,"ng-template",null,3,h),i()}if(a&2){let e=d(2);f("value",e.adjustmentJournal().data)("scrollable",!0)("scrollHeight","calc(100vh - 200px)")("paginator",!0)("rows",e.pageData().PageSize)("totalRecords",e.adjustmentJournal().totalCount)("lazy",!0)}}function Q(a,u){if(a&1&&x(0,F,5,7,"p-table",7),a&2){let e=d();f("ngIf",e.adjustmentJournal())}}var re=(()=>{class a{constructor(){this.generateJournalService=j(H),this.adjustmentJournal=b(null),this.pageData=b({PageNumber:1,PageSize:10}),this.selectedItems=v(()=>this.adjustmentJournal()?.data.filter(e=>e.checked)||[]),T(()=>{this.pageData()&&this.fetchAdjustmentJournal()})}fetchAdjustmentJournal(){let e={PageSize:this.pageData().PageSize,PageNumber:this.pageData().PageNumber};this.generateJournalService.getAdjustmentJournal(e).pipe(y(l=>{this.adjustmentJournal.update(t=>c(m({},t),{data:l.data.map(n=>c(m({},n),{checked:!1})),totalCount:+l.totalCount}))}),L("AR Collection")).subscribe()}onLazyLoad(e){this.pageData.set({PageNumber:e.first/e.rows+1,PageSize:e.rows})}onRowSelect(e){let l=e.data;this.adjustmentJournal.update(t=>c(m({},t),{data:t.data.map(n=>n.id===l.id?c(m({},n),{checked:!0}):n)}))}onRowUnselect(e){let l=e.data;Array.isArray(l)?this.adjustmentJournal.update(t=>c(m({},t),{data:t.data.map((n,B)=>n.id===l[B].id?c(m({},n),{checked:!n.checked}):n)})):this.adjustmentJournal.update(t=>c(m({},t),{data:t.data.map(n=>n.id===l.id?c(m({},n),{checked:!n.checked}):n)}))}onCreateJournal(){let l=this.selectedItems().map(t=>t.id);this.generateJournalService.createAdjustmentJournal(l).subscribe(t=>{console.log("Journal created successfully:",t)})}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275cmp=R({type:a,selectors:[["app-adjustment-journal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["body",""],["pageTitle","Adjustment"],["class","btn btn-primary rounded",3,"click",4,"ngIf"],[1,"btn","btn-primary","rounded",3,"click"],["dataKey","id",3,"value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy","onLazyLoad","onRowSelect","onRowUnselect",4,"ngIf"],["dataKey","id",3,"onLazyLoad","onRowSelect","onRowUnselect","value","scrollable","scrollHeight","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"]],template:function(l,t){l&1&&(o(0,"app-main-panel",4),x(1,G,1,1,"ng-template",null,0,h)(3,Q,1,1,"ng-template",null,1,h),i())},dependencies:[P,U,M,V,N,D,k,z,I],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return a})();export{re as AdjustmentJournalComponent};