dealposbooks 5.37.1 → 5.41.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 (62) hide show
  1. package/3rdpartylicenses.txt +26 -26
  2. package/{chunk-QNSTXREL.js → chunk-2JNTUTNL.js} +1 -1
  3. package/{chunk-JDZMCMCO.js → chunk-3267XKO5.js} +1 -1
  4. package/{chunk-DFBPVWWJ.js → chunk-4IEK5V2S.js} +3 -3
  5. package/{chunk-2DAPTQ7N.js → chunk-4R64ZVCC.js} +1 -1
  6. package/{chunk-KHMIHCAB.js → chunk-4WAIBWB3.js} +1 -1
  7. package/{chunk-HSG33HWO.js → chunk-4XLWJIA4.js} +2 -2
  8. package/{chunk-KEGWYPJ2.js → chunk-4ZDV2QVO.js} +2 -2
  9. package/{chunk-LQCMUDVC.js → chunk-5PDLMIPF.js} +1 -1
  10. package/{chunk-UHUGKP5L.js → chunk-6XPCPRHF.js} +1 -1
  11. package/{chunk-RV7TVDYN.js → chunk-A25JUSCO.js} +1 -1
  12. package/chunk-AOOR6RAK.js +1 -0
  13. package/{chunk-TIL4F3YR.js → chunk-BWBNGOLL.js} +1 -1
  14. package/{chunk-WOKDHWWC.js → chunk-C4LGY75Z.js} +2 -2
  15. package/{chunk-YHRJY65N.js → chunk-CCBBIKGU.js} +1 -1
  16. package/{chunk-URTRLKMJ.js → chunk-E2R6VN7Z.js} +1 -1
  17. package/{chunk-ILRZCFZP.js → chunk-EGS6BIKL.js} +1 -1
  18. package/{chunk-T6TUPYUS.js → chunk-FOCWONCO.js} +1 -1
  19. package/{chunk-DKYLWJXD.js → chunk-HBNGOJIS.js} +1 -1
  20. package/chunk-HWZKSQ5E.js +1 -0
  21. package/{chunk-67P7OKVV.js → chunk-I4WD74I3.js} +1 -1
  22. package/{chunk-ZUBMF5VC.js → chunk-IANH6F5O.js} +1 -1
  23. package/{chunk-BIB37SKB.js → chunk-IFNPFJH5.js} +1 -1
  24. package/{chunk-FT65M3TM.js → chunk-IIS3WYGB.js} +1 -1
  25. package/{chunk-P42D576F.js → chunk-IIW75XWJ.js} +1 -1
  26. package/chunk-JGPCJCYI.js +1 -0
  27. package/{chunk-MNQQQQRE.js → chunk-JO34HDB4.js} +5 -5
  28. package/{chunk-KGGIWN5W.js → chunk-K5CHFPJQ.js} +1 -1
  29. package/{chunk-CUWNYABC.js → chunk-KUHLDSNT.js} +1 -1
  30. package/{chunk-4BMO6GHT.js → chunk-MO4YK4HT.js} +1 -1
  31. package/{chunk-A7DO5VFX.js → chunk-NM7Z2FA7.js} +1 -1
  32. package/chunk-O2725QPF.js +160 -0
  33. package/{chunk-U2OTWITI.js → chunk-OCFTAJHS.js} +1 -1
  34. package/chunk-OUIY2TC7.js +8 -0
  35. package/{chunk-3EHLCVDF.js → chunk-QC7LTJLT.js} +1 -1
  36. package/{chunk-CVOI5T6R.js → chunk-QFOKESND.js} +1 -1
  37. package/{chunk-WCM7PDH3.js → chunk-RB3MCWL5.js} +1 -1
  38. package/{chunk-43IWPYHH.js → chunk-T5LNS6MU.js} +1 -1
  39. package/chunk-TEEBLB6T.js +7 -0
  40. package/{chunk-NKXIC6W4.js → chunk-VHKZXNG3.js} +1 -1
  41. package/{chunk-L4U6CZR3.js → chunk-WDQXDERR.js} +1 -1
  42. package/{chunk-VKPPDDEW.js → chunk-WZWAFKRU.js} +1 -1
  43. package/{chunk-HDKEYJ4D.js → chunk-XOEBC23H.js} +1 -1
  44. package/chunk-XZIY7XVI.js +202 -0
  45. package/{chunk-QZRK5J6G.js → chunk-Y7NHB6MD.js} +1 -1
  46. package/{chunk-BVS6QVV7.js → chunk-YIAUCENA.js} +1 -1
  47. package/{chunk-GACHEN2E.js → chunk-YS5U5SXP.js} +1 -1
  48. package/{chunk-TXD7DO47.js → chunk-YTNI3IAH.js} +1 -1
  49. package/chunk-ZEVIDUTH.js +1 -0
  50. package/{chunk-RDLPFQ2D.js → chunk-ZW6ONWWO.js} +1 -1
  51. package/{chunk-5BTX6G5Y.js → chunk-ZXXBWTY6.js} +1 -1
  52. package/index.html +2 -2
  53. package/{main-Y4CHDO3C.js → main-ILDJZYPX.js} +1 -1
  54. package/package.json +1 -1
  55. package/chunk-AIX2GOSV.js +0 -1
  56. package/chunk-CGQEEDRE.js +0 -1
  57. package/chunk-IYMRJK4T.js +0 -1
  58. package/chunk-L3VFI54W.js +0 -7
  59. package/chunk-NMPX3YVB.js +0 -202
  60. package/chunk-Q2VDXWZJ.js +0 -1
  61. package/chunk-TTNZ3IGM.js +0 -1
  62. package/chunk-XAIS3MEH.js +0 -160
@@ -1,4 +1,4 @@
1
- import{a as re,b as Tt}from"./chunk-2DAPTQ7N.js";import{f as It}from"./chunk-5AD3KAHO.js";import"./chunk-DUEYD2IO.js";import{a as ut}from"./chunk-GACHEN2E.js";import"./chunk-KKZF4RQM.js";import{a as Oe,b as ve}from"./chunk-RNPNKSFR.js";import{d as vt,i as Ct,j as wt,k as xt}from"./chunk-BRCJWPEZ.js";import"./chunk-N5W3C4LG.js";import"./chunk-BSFKUGYO.js";import"./chunk-MASZROSE.js";import{a as nt}from"./chunk-NI4XE6XQ.js";import"./chunk-RZI2OI6V.js";import{a as Ot}from"./chunk-A7LRQMLA.js";import"./chunk-4TW5N3R5.js";import"./chunk-NTCCFR6P.js";import{a as ot}from"./chunk-W6IKDXXT.js";import"./chunk-5B3BG43K.js";import"./chunk-UVIJU7TM.js";import"./chunk-EALZUKSJ.js";import{h as yt}from"./chunk-DFBPVWWJ.js";import{a as at}from"./chunk-WNA57NZF.js";import{a as pt,b as dt}from"./chunk-MUFRLGLG.js";import{a as K,b as ht,c as ft,d as mt,e as gt,f as _t,g as bt}from"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{a as ye,p as st,r as lt,w as ct,x as rt}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{Aa as Je,D as Qe,Da as Ye,I as Ne,Ia as Ze,La as et,M as Ue,Ma as U,Na as tt,Q as We,R as le,Ua as it,X as je,_ as Xe,a as Re,e as Ke,f as Ae,l as Be,na as ce,o as He,qa as x,ra as M,sa as _e,u as ze,va as be,x as qe}from"./chunk-NHXCR55X.js";import{d as $e,e as De}from"./chunk-DOKG43W6.js";import"./chunk-RV7TVDYN.js";import"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{h as me,j as Pe,k as Q,l as Ge,m as ge,s as N}from"./chunk-VU532YE3.js";import{Ab as he,Bc as ae,Cb as m,Cc as se,Dc as q,Ec as Me,Ga as P,Jb as y,Kb as r,Nb as Fe,Ob as Y,Qc as T,Ub as d,Vb as u,Wb as F,X as de,Xb as D,Yb as R,Z as we,Zb as Z,Zc as V,_b as S,_c as fe,aa as xe,ad as G,ba as Ie,bd as Le,c as pe,ca as Te,dc as v,ec as p,gb as c,ha as k,jc as E,kc as z,lc as C,mb as ue,mc as w,oa as Se,pa as h,pc as ee,qa as f,qc as b,rc as B,sc as te,ta as Ve,uc as Ee,vc as ie,wb as H,wc as ne,xb as ke,xc as oe,za as I}from"./chunk-7IC4BZ6J.js";import{a as g,b as _}from"./chunk-YQFG5XE2.js";var kt={data:[],count:0,meta:{filter:{pagination:1,pageSize:10,rolesID:null,text:""},options:{roles:[]}},filter:{pagination:1,pageSize:10,rolesID:null,text:""}},Ce=ht(_t(kt),bt("GroupStore"),ft(t=>({first:G(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:G(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:G(()=>t.data().some(s=>s.checked)),checkedData:G(()=>t.data().filter(s=>s.checked).map(s=>s.id))})),gt(t=>{let s=k(re),e={setFilter(n){K(t,i=>_(g({},i),{filter:n}))},onRowSelect(n){K(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!0}):a);return _(g({},i),{data:o})})},onRowUnselect(n){K(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!1}):a);return _(g({},i),{data:o})})},onHeaderCheckboxToggle(n){K(t,i=>{let o=i.data.map(a=>_(g({},a),{checked:n}));return _(g({},i),{data:o})})},getGroupList:Oe(pe(de(n=>s.getGroupList(n).pipe(ve(i=>{K(t,o=>_(g({},o),{data:i.data,count:i.count}))},i=>{console.error("Error fetching group list:",i)}))))),getGroupLoader:Oe(pe(de(()=>s.getGroupLoader().pipe(ve({next:n=>{K(t,i=>_(g({},i),{meta:n,filter:n.filter})),e.getGroupList(t.filter)},error:n=>{console.error("Error fetching group loader:",n)}})))))};return e}),mt(t=>({onInit:()=>{t.getGroupLoader()}})));var Mt=t=>({$implicit:t});function Lt(t,s){t&1&&Z(0)}function Pt(t,s){if(t&1&&(D(0),m(1,Lt,1,0,"ng-container",8),R()),t&2){let e=p().$implicit,n=p();c(),r("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",q(2,Mt,e==null?null:e.option))}}function Gt(t,s){if(t&1&&(d(0,"span",9),b(1),u()),t&2){let e=p().$implicit,n=p();y("data-pc-section","text"),c(),B(n.getOptionLabelToRender(e))}}function $t(t,s){t&1&&F(0,"AngleRightIcon")}function Dt(t,s){}function Rt(t,s){t&1&&m(0,Dt,0,0,"ng-template")}function Kt(t,s){if(t&1&&(d(0,"span",10),m(1,$t,1,0,"AngleRightIcon",11)(2,Rt,1,0,null,12),u()),t&2){let e=p(2);y("data-pc-section","groupIcon"),c(),r("ngIf",!e.groupicon),c(),r("ngTemplateOutlet",e.groupicon)}}function At(t,s){if(t&1){let e=S();d(0,"p-cascadeselect-sub",13),v("onChange",function(i){h(e);let o=p(2);return f(o.onChange.emit(i))})("onFocusChange",function(i){h(e);let o=p(2);return f(o.onFocusChange.emit(i))})("onFocusEnterChange",function(i){h(e);let o=p(2);return f(o.onFocusEnterChange.emit(i))}),u()}if(t&2){let e=p().$implicit,n=p();r("role","group")("selectId",n.selectId)("focusedOptionId",n.focusedOptionId)("activeOptionPath",n.activeOptionPath)("options",n.getOptionGroupChildren(e))("optionLabel",n.optionLabel)("optionValue",n.optionValue)("level",n.level+1)("optionGroupLabel",n.optionGroupLabel)("optionGroupChildren",n.optionGroupChildren)("dirty",n.dirty)("optionTemplate",n.optionTemplate)}}function Bt(t,s){if(t&1){let e=S();d(0,"li",3)(1,"div",4),v("click",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionClick(i,o))})("mouseenter",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseEnter(i,o))})("mousemove",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseMove(i,o))}),m(2,Pt,2,4,"ng-container",5)(3,Gt,2,2,"ng-template",null,0,T)(5,Kt,3,3,"span",6),u(),m(6,At,1,12,"p-cascadeselect-sub",7),u()}if(t&2){let e=s.$implicit,n=s.index,i=ee(4),o=p();r("ngClass",o.getItemClass(e))("id",o.getOptionId(e)),y("aria-level",o.level+1)("aria-setsize",o.options.length)("data-pc-section","item")("aria-label",o.getOptionLabelToRender(e))("aria-selected",o.isOptionGroup(e)?void 0:o.isOptionSelected(e))("aria-posinset",n+1),c(),y("data-pc-section","content"),c(),r("ngIf",o.optionTemplate)("ngIfElse",i),c(3),r("ngIf",o.isOptionGroup(e)),c(),r("ngIf",o.isOptionGroup(e)&&o.isOptionActive(e))}}var Ht=["value"],zt=["option"],qt=["header"],Qt=["footer"],Nt=["triggericon"],Ut=["loadingicon"],Wt=["optiongroupicon"],jt=["clearicon"],Xt=["focusInput"],Jt=["container"],Yt=["panel"],Zt=["overlay"],ei=(t,s)=>({$implicit:t,placeholder:s}),ti=t=>({"p-cascadeselect-overlay p-component":!0,"p-cascadeselect-mobile-active":t});function ii(t,s){t&1&&Z(0)}function ni(t,s){if(t&1&&(D(0),m(1,ii,1,0,"ng-container",16),R()),t&2){let e=p();c(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",Me(2,ei,e.value,e.placeholder))}}function oi(t,s){if(t&1&&b(0),t&2){let e=p();te(" ",e.label()," ")}}function ai(t,s){if(t&1){let e=S();d(0,"TimesIcon",18),v("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),u()}t&2&&y("data-pc-section","clearicon")("aria-hidden",!0)}function si(t,s){}function li(t,s){t&1&&m(0,si,0,0,"ng-template")}function ci(t,s){if(t&1){let e=S();d(0,"span",18),v("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),m(1,li,1,0,null,19),u()}if(t&2){let e=p(2);y("data-pc-section","clearicon")("aria-hidden",!0),c(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function ri(t,s){if(t&1&&(D(0),m(1,ai,1,2,"TimesIcon",17)(2,ci,2,3,"span",17),R()),t&2){let e=p();c(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function pi(t,s){t&1&&Z(0)}function di(t,s){if(t&1&&(D(0),m(1,pi,1,0,"ng-container",19),R()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ui(t,s){if(t&1&&F(0,"span",22),t&2){let e=p(3);r("ngClass","p-cascadeselect-loading-icon pi-spin "+e.loadingIcon)}}function hi(t,s){t&1&&F(0,"span",23),t&2&&Y("p-cascadeselect-loading-icon pi pi-spinner pi-spin")}function fi(t,s){if(t&1&&(D(0),m(1,ui,1,1,"span",20)(2,hi,1,2,"span",21),R()),t&2){let e=p(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function mi(t,s){if(t&1&&(D(0),m(1,di,2,1,"ng-container",12)(2,fi,3,2,"ng-container",12),R()),t&2){let e=p();c(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function gi(t,s){t&1&&F(0,"ChevronDownIcon",26),t&2&&r("styleClass","p-cascadeselect-dropdown-icon")}function _i(t,s){}function bi(t,s){t&1&&m(0,_i,0,0,"ng-template")}function yi(t,s){if(t&1&&(d(0,"span",27),m(1,bi,1,0,null,19),u()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function Oi(t,s){if(t&1&&m(0,gi,1,1,"ChevronDownIcon",24)(1,yi,2,1,"span",25),t&2){let e=p();r("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),c(),r("ngIf",e.triggerIconTemplate||e._triggerIconTemplate)}}function vi(t,s){}function Ci(t,s){t&1&&m(0,vi,0,0,"ng-template")}function wi(t,s){}function xi(t,s){t&1&&m(0,wi,0,0,"ng-template")}function Ii(t,s){if(t&1){let e=S();d(0,"div",28,6),m(2,Ci,1,0,null,19),d(3,"div",29)(4,"p-cascadeselect-sub",30),v("onChange",function(i){h(e);let o=p();return f(o.onOptionClick(i))})("onFocusChange",function(i){h(e);let o=p();return f(o.onOptionMouseMove(i))})("onFocusEnterChange",function(i){h(e);let o=p();return f(o.onOptionMouseEnter(i))}),u()(),d(5,"span",14),b(6),u(),m(7,xi,1,0,null,19),u()}if(t&2){let e=p();Y(e.panelStyleClass),r("ngClass",q(24,ti,e.queryMatches()))("ngStyle",e.panelStyle),y("data-pc-section","panel"),c(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),y("data-pc-section","wrapper"),c(),r("options",e.processedOptions)("selectId",e.id)("focusedOptionId",e.focused?e.focusedOptionId:void 0)("activeOptionPath",e.activeOptionPath())("optionLabel",e.optionLabel)("optionValue",e.optionValue)("level",0)("optionTemplate",e.optionTemplate||e._optionTemplate)("groupicon",e.groupIconTemplate||e.groupIconTemplate)("optionGroupLabel",e.optionGroupLabel)("optionGroupChildren",e.optionGroupChildren)("optionDisabled",e.optionDisabled)("root",!0)("dirty",e.dirty)("role","tree"),c(2),te(" ",e.selectedMessageText," "),c(),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Ti=({dt:t})=>`
1
+ import{a as re,b as Tt}from"./chunk-4R64ZVCC.js";import{f as It}from"./chunk-5AD3KAHO.js";import"./chunk-DUEYD2IO.js";import{a as ut}from"./chunk-YS5U5SXP.js";import"./chunk-KKZF4RQM.js";import{a as Oe,b as ve}from"./chunk-RNPNKSFR.js";import{d as vt,i as Ct,j as wt,k as xt}from"./chunk-BRCJWPEZ.js";import"./chunk-N5W3C4LG.js";import"./chunk-BSFKUGYO.js";import"./chunk-MASZROSE.js";import{a as nt}from"./chunk-NI4XE6XQ.js";import"./chunk-RZI2OI6V.js";import{a as Ot}from"./chunk-A7LRQMLA.js";import"./chunk-4TW5N3R5.js";import"./chunk-NTCCFR6P.js";import{a as ot}from"./chunk-W6IKDXXT.js";import"./chunk-5B3BG43K.js";import"./chunk-UVIJU7TM.js";import"./chunk-EALZUKSJ.js";import{h as yt}from"./chunk-4IEK5V2S.js";import{a as at}from"./chunk-WNA57NZF.js";import{a as pt,b as dt}from"./chunk-MUFRLGLG.js";import{a as K,b as ht,c as ft,d as mt,e as gt,f as _t,g as bt}from"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{a as ye,p as st,r as lt,w as ct,x as rt}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{Aa as Je,D as Qe,Da as Ye,I as Ne,Ia as Ze,La as et,M as Ue,Ma as U,Na as tt,Q as We,R as le,Ua as it,X as je,_ as Xe,a as Re,e as Ke,f as Ae,l as Be,na as ce,o as He,qa as x,ra as M,sa as _e,u as ze,va as be,x as qe}from"./chunk-NHXCR55X.js";import{d as $e,e as De}from"./chunk-DOKG43W6.js";import"./chunk-A25JUSCO.js";import"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{h as me,j as Pe,k as Q,l as Ge,m as ge,s as N}from"./chunk-VU532YE3.js";import{Ab as he,Bc as ae,Cb as m,Cc as se,Dc as q,Ec as Me,Ga as P,Jb as y,Kb as r,Nb as Fe,Ob as Y,Qc as T,Ub as d,Vb as u,Wb as F,X as de,Xb as D,Yb as R,Z as we,Zb as Z,Zc as V,_b as S,_c as fe,aa as xe,ad as G,ba as Ie,bd as Le,c as pe,ca as Te,dc as v,ec as p,gb as c,ha as k,jc as E,kc as z,lc as C,mb as ue,mc as w,oa as Se,pa as h,pc as ee,qa as f,qc as b,rc as B,sc as te,ta as Ve,uc as Ee,vc as ie,wb as H,wc as ne,xb as ke,xc as oe,za as I}from"./chunk-7IC4BZ6J.js";import{a as g,b as _}from"./chunk-YQFG5XE2.js";var kt={data:[],count:0,meta:{filter:{pagination:1,pageSize:10,rolesID:null,text:""},options:{roles:[]}},filter:{pagination:1,pageSize:10,rolesID:null,text:""}},Ce=ht(_t(kt),bt("GroupStore"),ft(t=>({first:G(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:G(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:G(()=>t.data().some(s=>s.checked)),checkedData:G(()=>t.data().filter(s=>s.checked).map(s=>s.id))})),gt(t=>{let s=k(re),e={setFilter(n){K(t,i=>_(g({},i),{filter:n}))},onRowSelect(n){K(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!0}):a);return _(g({},i),{data:o})})},onRowUnselect(n){K(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!1}):a);return _(g({},i),{data:o})})},onHeaderCheckboxToggle(n){K(t,i=>{let o=i.data.map(a=>_(g({},a),{checked:n}));return _(g({},i),{data:o})})},getGroupList:Oe(pe(de(n=>s.getGroupList(n).pipe(ve(i=>{K(t,o=>_(g({},o),{data:i.data,count:i.count}))},i=>{console.error("Error fetching group list:",i)}))))),getGroupLoader:Oe(pe(de(()=>s.getGroupLoader().pipe(ve({next:n=>{K(t,i=>_(g({},i),{meta:n,filter:n.filter})),e.getGroupList(t.filter)},error:n=>{console.error("Error fetching group loader:",n)}})))))};return e}),mt(t=>({onInit:()=>{t.getGroupLoader()}})));var Mt=t=>({$implicit:t});function Lt(t,s){t&1&&Z(0)}function Pt(t,s){if(t&1&&(D(0),m(1,Lt,1,0,"ng-container",8),R()),t&2){let e=p().$implicit,n=p();c(),r("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",q(2,Mt,e==null?null:e.option))}}function Gt(t,s){if(t&1&&(d(0,"span",9),b(1),u()),t&2){let e=p().$implicit,n=p();y("data-pc-section","text"),c(),B(n.getOptionLabelToRender(e))}}function $t(t,s){t&1&&F(0,"AngleRightIcon")}function Dt(t,s){}function Rt(t,s){t&1&&m(0,Dt,0,0,"ng-template")}function Kt(t,s){if(t&1&&(d(0,"span",10),m(1,$t,1,0,"AngleRightIcon",11)(2,Rt,1,0,null,12),u()),t&2){let e=p(2);y("data-pc-section","groupIcon"),c(),r("ngIf",!e.groupicon),c(),r("ngTemplateOutlet",e.groupicon)}}function At(t,s){if(t&1){let e=S();d(0,"p-cascadeselect-sub",13),v("onChange",function(i){h(e);let o=p(2);return f(o.onChange.emit(i))})("onFocusChange",function(i){h(e);let o=p(2);return f(o.onFocusChange.emit(i))})("onFocusEnterChange",function(i){h(e);let o=p(2);return f(o.onFocusEnterChange.emit(i))}),u()}if(t&2){let e=p().$implicit,n=p();r("role","group")("selectId",n.selectId)("focusedOptionId",n.focusedOptionId)("activeOptionPath",n.activeOptionPath)("options",n.getOptionGroupChildren(e))("optionLabel",n.optionLabel)("optionValue",n.optionValue)("level",n.level+1)("optionGroupLabel",n.optionGroupLabel)("optionGroupChildren",n.optionGroupChildren)("dirty",n.dirty)("optionTemplate",n.optionTemplate)}}function Bt(t,s){if(t&1){let e=S();d(0,"li",3)(1,"div",4),v("click",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionClick(i,o))})("mouseenter",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseEnter(i,o))})("mousemove",function(i){let o=h(e).$implicit,a=p();return f(a.onOptionMouseMove(i,o))}),m(2,Pt,2,4,"ng-container",5)(3,Gt,2,2,"ng-template",null,0,T)(5,Kt,3,3,"span",6),u(),m(6,At,1,12,"p-cascadeselect-sub",7),u()}if(t&2){let e=s.$implicit,n=s.index,i=ee(4),o=p();r("ngClass",o.getItemClass(e))("id",o.getOptionId(e)),y("aria-level",o.level+1)("aria-setsize",o.options.length)("data-pc-section","item")("aria-label",o.getOptionLabelToRender(e))("aria-selected",o.isOptionGroup(e)?void 0:o.isOptionSelected(e))("aria-posinset",n+1),c(),y("data-pc-section","content"),c(),r("ngIf",o.optionTemplate)("ngIfElse",i),c(3),r("ngIf",o.isOptionGroup(e)),c(),r("ngIf",o.isOptionGroup(e)&&o.isOptionActive(e))}}var Ht=["value"],zt=["option"],qt=["header"],Qt=["footer"],Nt=["triggericon"],Ut=["loadingicon"],Wt=["optiongroupicon"],jt=["clearicon"],Xt=["focusInput"],Jt=["container"],Yt=["panel"],Zt=["overlay"],ei=(t,s)=>({$implicit:t,placeholder:s}),ti=t=>({"p-cascadeselect-overlay p-component":!0,"p-cascadeselect-mobile-active":t});function ii(t,s){t&1&&Z(0)}function ni(t,s){if(t&1&&(D(0),m(1,ii,1,0,"ng-container",16),R()),t&2){let e=p();c(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",Me(2,ei,e.value,e.placeholder))}}function oi(t,s){if(t&1&&b(0),t&2){let e=p();te(" ",e.label()," ")}}function ai(t,s){if(t&1){let e=S();d(0,"TimesIcon",18),v("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),u()}t&2&&y("data-pc-section","clearicon")("aria-hidden",!0)}function si(t,s){}function li(t,s){t&1&&m(0,si,0,0,"ng-template")}function ci(t,s){if(t&1){let e=S();d(0,"span",18),v("click",function(i){h(e);let o=p(2);return f(o.clear(i))}),m(1,li,1,0,null,19),u()}if(t&2){let e=p(2);y("data-pc-section","clearicon")("aria-hidden",!0),c(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function ri(t,s){if(t&1&&(D(0),m(1,ai,1,2,"TimesIcon",17)(2,ci,2,3,"span",17),R()),t&2){let e=p();c(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function pi(t,s){t&1&&Z(0)}function di(t,s){if(t&1&&(D(0),m(1,pi,1,0,"ng-container",19),R()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function ui(t,s){if(t&1&&F(0,"span",22),t&2){let e=p(3);r("ngClass","p-cascadeselect-loading-icon pi-spin "+e.loadingIcon)}}function hi(t,s){t&1&&F(0,"span",23),t&2&&Y("p-cascadeselect-loading-icon pi pi-spinner pi-spin")}function fi(t,s){if(t&1&&(D(0),m(1,ui,1,1,"span",20)(2,hi,1,2,"span",21),R()),t&2){let e=p(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function mi(t,s){if(t&1&&(D(0),m(1,di,2,1,"ng-container",12)(2,fi,3,2,"ng-container",12),R()),t&2){let e=p();c(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function gi(t,s){t&1&&F(0,"ChevronDownIcon",26),t&2&&r("styleClass","p-cascadeselect-dropdown-icon")}function _i(t,s){}function bi(t,s){t&1&&m(0,_i,0,0,"ng-template")}function yi(t,s){if(t&1&&(d(0,"span",27),m(1,bi,1,0,null,19),u()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function Oi(t,s){if(t&1&&m(0,gi,1,1,"ChevronDownIcon",24)(1,yi,2,1,"span",25),t&2){let e=p();r("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),c(),r("ngIf",e.triggerIconTemplate||e._triggerIconTemplate)}}function vi(t,s){}function Ci(t,s){t&1&&m(0,vi,0,0,"ng-template")}function wi(t,s){}function xi(t,s){t&1&&m(0,wi,0,0,"ng-template")}function Ii(t,s){if(t&1){let e=S();d(0,"div",28,6),m(2,Ci,1,0,null,19),d(3,"div",29)(4,"p-cascadeselect-sub",30),v("onChange",function(i){h(e);let o=p();return f(o.onOptionClick(i))})("onFocusChange",function(i){h(e);let o=p();return f(o.onOptionMouseMove(i))})("onFocusEnterChange",function(i){h(e);let o=p();return f(o.onOptionMouseEnter(i))}),u()(),d(5,"span",14),b(6),u(),m(7,xi,1,0,null,19),u()}if(t&2){let e=p();Y(e.panelStyleClass),r("ngClass",q(24,ti,e.queryMatches()))("ngStyle",e.panelStyle),y("data-pc-section","panel"),c(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),y("data-pc-section","wrapper"),c(),r("options",e.processedOptions)("selectId",e.id)("focusedOptionId",e.focused?e.focusedOptionId:void 0)("activeOptionPath",e.activeOptionPath())("optionLabel",e.optionLabel)("optionValue",e.optionValue)("level",0)("optionTemplate",e.optionTemplate||e._optionTemplate)("groupicon",e.groupIconTemplate||e.groupIconTemplate)("optionGroupLabel",e.optionGroupLabel)("optionGroupChildren",e.optionGroupChildren)("optionDisabled",e.optionDisabled)("root",!0)("dirty",e.dirty)("role","tree"),c(2),te(" ",e.selectedMessageText," "),c(),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Ti=({dt:t})=>`
2
2
  .p-cascadeselect {
3
3
  display: inline-flex;
4
4
  cursor: pointer;
@@ -1 +1 @@
1
- import{a as C,b as L}from"./chunk-3EHLCVDF.js";import"./chunk-VKPPDDEW.js";import{a as E,b as V}from"./chunk-CDXFHUDN.js";import"./chunk-PS4MFIBX.js";import{h as H}from"./chunk-DFBPVWWJ.js";import{b as N,c as G}from"./chunk-WNA57NZF.js";import{a as R,b as D}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{w as j,x as O}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import"./chunk-NHXCR55X.js";import"./chunk-RV7TVDYN.js";import{a as I}from"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{n as $,s as F}from"./chunk-VU532YE3.js";import{Bc as w,Cb as A,Cc as _,Kb as p,Mc as c,Nb as x,Nc as l,Qc as T,Ub as n,V as y,Vb as o,Wb as m,X as M,Z as S,_b as P,dc as h,ec as s,gb as a,h as v,ha as f,pa as g,qa as d,ra as b,s as u,sa as k,wb as B}from"./chunk-7IC4BZ6J.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=P();n(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),h("onClick",function(){g(e);let r=s();return d(r.onMigrate())}),o()()}if(i&2){let e=s();a(2),p("disabled",l(3,2,e.countInBooks$)!==0)("pTooltip",l(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),m(3,"app-migration-cards",7),c(4,"async"),b(),n(5,"svg",8),m(6,"path",9),o(),k(),m(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=s();x(_(12,q)),a(),x(_(13,q)),a(2),p("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ue=(()=>{class i{constructor(){this.migrateService=f(C),this.toastr=f(I),this.refresh$=new v(void 0),this.pageTitle="Tax Account"}ngOnInit(){let e=this.refresh$.pipe(M(()=>this.migrateService.getTaxAccountCount()),S(t=>console.log("API response:",t)),y(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrate(){this.migrateService.migrateTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-tax-account"]],features:[w([C])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(n(0,"app-main-panel",2),A(1,J,5,6,"ng-template",null,0,T)(3,K,9,14,"ng-template",null,1,T),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,$,V,E,D,R,G,N,L,O,j],encapsulation:2})}}return i})();export{ue as TaxAccountComponent};
1
+ import{a as C,b as L}from"./chunk-QC7LTJLT.js";import"./chunk-WZWAFKRU.js";import{a as E,b as V}from"./chunk-CDXFHUDN.js";import"./chunk-PS4MFIBX.js";import{h as H}from"./chunk-4IEK5V2S.js";import{b as N,c as G}from"./chunk-WNA57NZF.js";import{a as R,b as D}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{w as j,x as O}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import"./chunk-NHXCR55X.js";import"./chunk-A25JUSCO.js";import{a as I}from"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{n as $,s as F}from"./chunk-VU532YE3.js";import{Bc as w,Cb as A,Cc as _,Kb as p,Mc as c,Nb as x,Nc as l,Qc as T,Ub as n,V as y,Vb as o,Wb as m,X as M,Z as S,_b as P,dc as h,ec as s,gb as a,h as v,ha as f,pa as g,qa as d,ra as b,s as u,sa as k,wb as B}from"./chunk-7IC4BZ6J.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=P();n(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return d(r.onFormat())}),o(),n(2,"p-button",5),c(3,"async"),c(4,"async"),h("onClick",function(){g(e);let r=s();return d(r.onMigrate())}),o()()}if(i&2){let e=s();a(2),p("disabled",l(3,2,e.countInBooks$)!==0)("pTooltip",l(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),m(3,"app-migration-cards",7),c(4,"async"),b(),n(5,"svg",8),m(6,"path",9),o(),k(),m(7,"app-migration-cards",10),c(8,"async"),o()()()),i&2){let e=s();x(_(12,q)),a(),x(_(13,q)),a(2),p("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ue=(()=>{class i{constructor(){this.migrateService=f(C),this.toastr=f(I),this.refresh$=new v(void 0),this.pageTitle="Tax Account"}ngOnInit(){let e=this.refresh$.pipe(M(()=>this.migrateService.getTaxAccountCount()),S(t=>console.log("API response:",t)),y(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrate(){this.migrateService.migrateTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatTaxAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-tax-account"]],features:[w([C])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(n(0,"app-main-panel",2),A(1,J,5,6,"ng-template",null,0,T)(3,K,9,14,"ng-template",null,1,T),o()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,$,V,E,D,R,G,N,L,O,j],encapsulation:2})}}return i})();export{ue as TaxAccountComponent};
@@ -1 +1 @@
1
- import{a as b}from"./chunk-R3JWL2J6.js";import{B as I,C as g,D}from"./chunk-VU532YE3.js";import{I as u,Z as d,ba as m,ha as f,n as y,s as h}from"./chunk-7IC4BZ6J.js";import{a as o,b as c}from"./chunk-YQFG5XE2.js";var L=(()=>{class s{constructor(){this.httpClient=f(D),this.toastr=f(b)}get(t="",e,a={}){return this.httpClient.get(`${t}${e}`,a).pipe(u(this.handleError.bind(this)))}post(t="",e,a,r={observe:"response"}){return this.httpClient.post(`${t}${e}`,a,o({},r)).pipe(d(this.handleResponse.bind(this)),h(n=>n instanceof I&&Object.prototype.hasOwnProperty.call(r,"observe")&&r.observe==="response"?n.body instanceof Blob?n:n.body:n),u(this.handleError.bind(this)))}put(t="",e,a,r={}){return this.httpClient.put(`${t}${e}`,a,c(o({},r),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(n=>n.body),u(this.handleError.bind(this)))}delete(t="",e,a={}){return this.httpClient.delete(`${t}${e}`,c(o({},a),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(r=>r.body),u(this.handleError.bind(this)))}handleResponse(t){if(t instanceof I&&t.status===200&&t.body){let e;typeof t.body=="object"&&t.body!==null&&(e=t.body.message||t.body.Message),typeof e=="string"&&e.length>0&&this.toastr.success(e,"Success")}}handleError(t){let e={header:"API Error",message:"An unknown error occurred"};if(t instanceof g)switch(t.status){case 0:e.message="CORS error: Request blocked or server not responding with proper CORS headers",e.header="CORS Error";break;case 504:e.message=t.statusText||"Gateway Timeout",e.header=`API Error: ${t.status}`;break;default:e.header=`API Error: ${t.status}`,e.message=t.error&&(t.error.Message||t.error.message||t.error.error)||t.message}return t instanceof g&&(t.status>=200&&t.status<300?this.toastr.success(e.message,e.header):t.status>=400&&t.status<500?this.toastr.warning(e.message,e.header):t.status>=500&&t.status<600&&this.toastr.error(e.message,e.header)),y(()=>e)}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=m({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var p={production:!0,version:"5.37.1",changelogUrl:"https://changelog.dealpos.com/?categories=cat_O6pYAT7GI1mts",defaultTimezone:"Asia/Jakarta",intercom:{appId:"xv1oomgl"}};var l=class s{static{this.emailRegex=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/}static{this.phoneNumberRegex=/^\d+$/}static{this.GuidEmpty="00000000-0000-0000-0000-000000000000"}static{this.DecimalMinValue="-7.922816251426434e+28"}static{this.InputLockTimeSpan=500}static{this.MinDate="0001-01-01T00:00:00"}static{this.MinTime="00:00:00"}static{this.MinDecimal="-79228162514264337593543950335"}static StringFormat(i,...t){for(let e=0;e<t.length;e++)i=i.replace(`{${e}}`,t[e]);return i}static{this.isMobileDevice=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static IsNotEmpty(i){return i!=""&&!s.containsOnlySpaces(i)&&i!=s.GuidEmpty&&i!=null&&i!=null}static IsEmpty(i){return!!(i==""||s.containsOnlySpaces(i)||i==null||i==null||i==s.GuidEmpty)}static isGuid(i){let t=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi,e=!1;return i&&(e=t.test(i)),e}static containsOnlySpaces(i){return/^\s*$/.test(i)}static FilterByID(i,t){try{let e=i.filter(a=>a.ID==t);if(e.length>0)return e[0]}catch{}return null}static{this.Months=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}]}static GenerateYears(i,t,e){let a=-1;(t==null||t==null)&&(t=11),(e==null||e==null||!e)&&(a=1);let r=[];for(let n=0;n<t;n++)r.push(i+n*a);return r}static DateOnly(i){return i?new Date(new Date(i).toDateString()):new Date(new Date().toDateString())}static differentInDays(i,t){let e=t.getTime()-i.getTime();return Math.floor(e/(1e3*3600*24))}static minutesDiff(i,t){let e=(t.getTime()-i.getTime())/6e4;return Math.ceil(e)}static hoursDiff(i,t){let a=(t.getTime()-i.getTime())/(1e3*3600);return parseFloat(a.toFixed(1))}static Guid_NewGuid(){let i=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var a=(i+Math.random()*16)%16|0;return i=Math.floor(i/16),(e=="x"?a:a&3|8).toString(16)})}static parseJwt(i){var t=i.split(".")[1],e=t.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(atob(e).split("").map(function(r){return"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(a)}static numberOnly(i){let t=i.which?i.which:i.keyCode;return!(t>31&&(t<48||t>57))}static formatNumber(i){let t="",e="",a=Math.abs(i);return a>999&&a<1e6?(e="K",t=(a/1e3).toFixed(0)):a>=1e6?(e="M",t=(a/1e6).toFixed(0)):a<999&&(t=a.toString()),i<0&&(t="-"+t),t.replace(/\B(?=(\d{3})+(?!\d))/g,",")+e}static isToDay(i){if(this.IsNotEmpty(i)){i=typeof i=="string"?new Date(i):i;let t=new Date;return t.setHours(0,0,0,0),i.setHours(0,0,0,0),t.getTime()==i.getTime()}return!1}static setToLatestTime(i){let t=new Date(i);return t.setHours(23,59,59),t}static setToFirstTime(i){let t=new Date(i);return t.setHours(0,0,0),t}static compare(i,t,e){return(i<t?-1:1)*(e?1:-1)}static generateSerialasNote(i=[]){let t="";return i&&i.length>0&&(t=`[${i.map((a,r)=>`${r>0?" ":""}${a.Number}${a.Quantity>1||a.Quantity<0?"*"+a.Quantity:""}`)}]`),t}static getDatesInRange(i,t){let e=new Date(i.getTime()),a=[];for(;e<=t;)a.push(new Date(e)),e.setDate(e.getDate()+1);return a}static getDaysBefore(i,t){return new Date(i.setDate(new Date().getDate()-t))}static getRangeDate(i,t){let e=new Date;e.setMonth(i),e.setFullYear(t);let a=new Date(e.getFullYear(),e.getMonth()-1,1),r=new Date(e.getFullYear(),e.getMonth(),0);return{firstDay:a,lastDay:r}}static setDateTime(i,t){let e=new Date;t&&(e=new Date(t));let a=i.split(":");return e.setHours(parseInt(a[0])),e.setMinutes(parseInt(a[1])),e}static isMaskingField(i=""){return i.includes("?")}static generateMaskingField(i=[]){let t={};return i.forEach((e,a)=>{e=e.split(" ")?.join(""),t=c(o({},t),{[e]:!0})}),t}static checkJSApiSupported(i){let t;return i in window?t=!0:t=!1,t}static cloneObject(i){let t;return this.checkJSApiSupported("structuredClone")?t=structuredClone(i):t=JSON.parse(JSON.stringify(i)),t}static formatTitleFromDate(i,t){let e=null,a=new Date(i),r=new Date(t);return a.getDate()!=r.getDate()&&(e="d"),a.getMonth()!=r.getMonth()&&(e="d MMM"),a.getFullYear()!=r.getFullYear()&&(e="d MMM yyyy"),e}};var N=(()=>{class s{initializeIntercom(){let t=this.getFromLocalStorage();l.IsNotEmpty(t)&&window.Intercom("boot",{app_id:p.intercom.appId,name:t.name,email:t.email,created_at:t.created,user_hash:t.hash})}shutdown(){window.Intercom("shutdown"),this.clearStorage()}clearStorage(){localStorage.removeItem("INTERCOM")}updateLocalStorage(t){localStorage.setItem("INTERCOM",JSON.stringify(t))}getFromLocalStorage(){let t=localStorage.getItem("INTERCOM");return JSON.parse(t)}hideLauncher(){let t=this.getFromLocalStorage();t.hide_default_launcher=!0,window.Intercom("update",o({app_id:p.intercom.appId},t)),this.updateLocalStorage(t)}showLauncher(){let t=this.getFromLocalStorage();t.hide_default_launcher=!1,window.Intercom("update",o({app_id:p.intercom.appId},t)),this.updateLocalStorage(t)}isHideLauncher(){let t=this.getFromLocalStorage();return l.IsEmpty(t?.hide_default_launcher)?!1:t?.hide_default_launcher}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=m({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{L as a,l as b,p as c,N as d};
1
+ import{a as b}from"./chunk-R3JWL2J6.js";import{B as I,C as g,D}from"./chunk-VU532YE3.js";import{I as u,Z as d,ba as m,ha as f,n as y,s as h}from"./chunk-7IC4BZ6J.js";import{a as o,b as c}from"./chunk-YQFG5XE2.js";var L=(()=>{class s{constructor(){this.httpClient=f(D),this.toastr=f(b)}get(t="",e,a={}){return this.httpClient.get(`${t}${e}`,a).pipe(u(this.handleError.bind(this)))}post(t="",e,a,r={observe:"response"}){return this.httpClient.post(`${t}${e}`,a,o({},r)).pipe(d(this.handleResponse.bind(this)),h(n=>n instanceof I&&Object.prototype.hasOwnProperty.call(r,"observe")&&r.observe==="response"?n.body instanceof Blob?n:n.body:n),u(this.handleError.bind(this)))}put(t="",e,a,r={}){return this.httpClient.put(`${t}${e}`,a,c(o({},r),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(n=>n.body),u(this.handleError.bind(this)))}delete(t="",e,a={}){return this.httpClient.delete(`${t}${e}`,c(o({},a),{observe:"response"})).pipe(d(this.handleResponse.bind(this)),h(r=>r.body),u(this.handleError.bind(this)))}handleResponse(t){if(t instanceof I&&t.status===200&&t.body){let e;typeof t.body=="object"&&t.body!==null&&(e=t.body.message||t.body.Message),typeof e=="string"&&e.length>0&&this.toastr.success(e,"Success")}}handleError(t){let e={header:"API Error",message:"An unknown error occurred"};if(t instanceof g)switch(t.status){case 0:e.message="CORS error: Request blocked or server not responding with proper CORS headers",e.header="CORS Error";break;case 504:e.message=t.statusText||"Gateway Timeout",e.header=`API Error: ${t.status}`;break;default:e.header=`API Error: ${t.status}`,e.message=t.error&&(t.error.Message||t.error.message||t.error.error)||t.message}return t instanceof g&&(t.status>=200&&t.status<300?this.toastr.success(e.message,e.header):t.status>=400&&t.status<500?this.toastr.warning(e.message,e.header):t.status>=500&&t.status<600&&this.toastr.error(e.message,e.header)),y(()=>e)}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=m({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var p={production:!0,version:"5.41.0",changelogUrl:"https://changelog.dealpos.com/?categories=cat_O6pYAT7GI1mts",defaultTimezone:"Asia/Jakarta",intercom:{appId:"xv1oomgl"}};var l=class s{static{this.emailRegex=/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/}static{this.phoneNumberRegex=/^\d+$/}static{this.GuidEmpty="00000000-0000-0000-0000-000000000000"}static{this.DecimalMinValue="-7.922816251426434e+28"}static{this.InputLockTimeSpan=500}static{this.MinDate="0001-01-01T00:00:00"}static{this.MinTime="00:00:00"}static{this.MinDecimal="-79228162514264337593543950335"}static StringFormat(i,...t){for(let e=0;e<t.length;e++)i=i.replace(`{${e}}`,t[e]);return i}static{this.isMobileDevice=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static IsNotEmpty(i){return i!=""&&!s.containsOnlySpaces(i)&&i!=s.GuidEmpty&&i!=null&&i!=null}static IsEmpty(i){return!!(i==""||s.containsOnlySpaces(i)||i==null||i==null||i==s.GuidEmpty)}static isGuid(i){let t=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi,e=!1;return i&&(e=t.test(i)),e}static containsOnlySpaces(i){return/^\s*$/.test(i)}static FilterByID(i,t){try{let e=i.filter(a=>a.ID==t);if(e.length>0)return e[0]}catch{}return null}static{this.Months=[{ID:1,Label:"January"},{ID:2,Label:"February"},{ID:3,Label:"March"},{ID:4,Label:"April"},{ID:5,Label:"May"},{ID:6,Label:"June"},{ID:7,Label:"July"},{ID:8,Label:"August"},{ID:9,Label:"September"},{ID:10,Label:"October"},{ID:11,Label:"November"},{ID:12,Label:"December"}]}static GenerateYears(i,t,e){let a=-1;(t==null||t==null)&&(t=11),(e==null||e==null||!e)&&(a=1);let r=[];for(let n=0;n<t;n++)r.push(i+n*a);return r}static DateOnly(i){return i?new Date(new Date(i).toDateString()):new Date(new Date().toDateString())}static differentInDays(i,t){let e=t.getTime()-i.getTime();return Math.floor(e/(1e3*3600*24))}static minutesDiff(i,t){let e=(t.getTime()-i.getTime())/6e4;return Math.ceil(e)}static hoursDiff(i,t){let a=(t.getTime()-i.getTime())/(1e3*3600);return parseFloat(a.toFixed(1))}static Guid_NewGuid(){let i=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var a=(i+Math.random()*16)%16|0;return i=Math.floor(i/16),(e=="x"?a:a&3|8).toString(16)})}static parseJwt(i){var t=i.split(".")[1],e=t.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(atob(e).split("").map(function(r){return"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(a)}static numberOnly(i){let t=i.which?i.which:i.keyCode;return!(t>31&&(t<48||t>57))}static formatNumber(i){let t="",e="",a=Math.abs(i);return a>999&&a<1e6?(e="K",t=(a/1e3).toFixed(0)):a>=1e6?(e="M",t=(a/1e6).toFixed(0)):a<999&&(t=a.toString()),i<0&&(t="-"+t),t.replace(/\B(?=(\d{3})+(?!\d))/g,",")+e}static isToDay(i){if(this.IsNotEmpty(i)){i=typeof i=="string"?new Date(i):i;let t=new Date;return t.setHours(0,0,0,0),i.setHours(0,0,0,0),t.getTime()==i.getTime()}return!1}static setToLatestTime(i){let t=new Date(i);return t.setHours(23,59,59),t}static setToFirstTime(i){let t=new Date(i);return t.setHours(0,0,0),t}static compare(i,t,e){return(i<t?-1:1)*(e?1:-1)}static generateSerialasNote(i=[]){let t="";return i&&i.length>0&&(t=`[${i.map((a,r)=>`${r>0?" ":""}${a.Number}${a.Quantity>1||a.Quantity<0?"*"+a.Quantity:""}`)}]`),t}static getDatesInRange(i,t){let e=new Date(i.getTime()),a=[];for(;e<=t;)a.push(new Date(e)),e.setDate(e.getDate()+1);return a}static getDaysBefore(i,t){return new Date(i.setDate(new Date().getDate()-t))}static getRangeDate(i,t){let e=new Date;e.setMonth(i),e.setFullYear(t);let a=new Date(e.getFullYear(),e.getMonth()-1,1),r=new Date(e.getFullYear(),e.getMonth(),0);return{firstDay:a,lastDay:r}}static setDateTime(i,t){let e=new Date;t&&(e=new Date(t));let a=i.split(":");return e.setHours(parseInt(a[0])),e.setMinutes(parseInt(a[1])),e}static isMaskingField(i=""){return i.includes("?")}static generateMaskingField(i=[]){let t={};return i.forEach((e,a)=>{e=e.split(" ")?.join(""),t=c(o({},t),{[e]:!0})}),t}static checkJSApiSupported(i){let t;return i in window?t=!0:t=!1,t}static cloneObject(i){let t;return this.checkJSApiSupported("structuredClone")?t=structuredClone(i):t=JSON.parse(JSON.stringify(i)),t}static formatTitleFromDate(i,t){let e=null,a=new Date(i),r=new Date(t);return a.getDate()!=r.getDate()&&(e="d"),a.getMonth()!=r.getMonth()&&(e="d MMM"),a.getFullYear()!=r.getFullYear()&&(e="d MMM yyyy"),e}};var N=(()=>{class s{initializeIntercom(){let t=this.getFromLocalStorage();l.IsNotEmpty(t)&&window.Intercom("boot",{app_id:p.intercom.appId,name:t.name,email:t.email,created_at:t.created,user_hash:t.hash})}shutdown(){window.Intercom("shutdown"),this.clearStorage()}clearStorage(){localStorage.removeItem("INTERCOM")}updateLocalStorage(t){localStorage.setItem("INTERCOM",JSON.stringify(t))}getFromLocalStorage(){let t=localStorage.getItem("INTERCOM");return JSON.parse(t)}hideLauncher(){let t=this.getFromLocalStorage();t.hide_default_launcher=!0,window.Intercom("update",o({app_id:p.intercom.appId},t)),this.updateLocalStorage(t)}showLauncher(){let t=this.getFromLocalStorage();t.hide_default_launcher=!1,window.Intercom("update",o({app_id:p.intercom.appId},t)),this.updateLocalStorage(t)}isHideLauncher(){let t=this.getFromLocalStorage();return l.IsEmpty(t?.hide_default_launcher)?!1:t?.hide_default_launcher}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=m({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{L as a,l as b,p as c,N as d};
@@ -0,0 +1 @@
1
+ import{a as ke,b as Me}from"./chunk-4R64ZVCC.js";import{a as ve,b as be,c as xe,d as Ce,e as ye,f as Fe}from"./chunk-5AD3KAHO.js";import"./chunk-DUEYD2IO.js";import{a as ge,b as he}from"./chunk-V6VS3FMZ.js";import{a as _e}from"./chunk-XKI7WLHE.js";import{a as ce}from"./chunk-YS5U5SXP.js";import"./chunk-KKZF4RQM.js";import"./chunk-MASZROSE.js";import{a as I}from"./chunk-7CUSFSFC.js";import"./chunk-NTCCFR6P.js";import{a as re,b as ie}from"./chunk-5B3BG43K.js";import"./chunk-EALZUKSJ.js";import{h as fe}from"./chunk-4IEK5V2S.js";import{b as de,c as ue}from"./chunk-WNA57NZF.js";import{a as se,b as me}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{n as ne,o as ae,w as le,x as pe}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{b as H,c as J,e as K,f as Q,k as W,l as X,m as Y,n as Z,o as ee,u as te,x as oe}from"./chunk-NHXCR55X.js";import{b as U,d as L}from"./chunk-DOKG43W6.js";import"./chunk-A25JUSCO.js";import"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{h as $,j,k as q,s as z}from"./chunk-VU532YE3.js";import{Ab as O,Cb as f,Cc as v,Dc as b,Ga as D,Kb as a,Nb as _,Ob as y,Qb as F,Qc as T,Sb as k,Tb as M,Ub as i,Uc as B,Vb as n,Wb as g,X as G,Z as C,_b as w,dc as R,ec as d,gb as r,ha as c,pa as E,qa as N,qc as h,rc as S,sc as V,ta as A,wb as P}from"./chunk-7IC4BZ6J.js";import"./chunk-YQFG5XE2.js";var Ge=()=>({height:"calc(100vh - 70px)"}),Ee=t=>({"ng-invalid ng-dirty":t}),Se=t=>({"ps-0":t}),Te=()=>({display:"flex"});function Ne(t,l){if(t&1){let e=w();i(0,"p-button",4),R("onClick",function(){E(e);let p=d(2);return N(p.onSubmit())}),n()}}function Ae(t,l){if(t&1&&f(0,Ne,1,0,"p-button",3),t&2){let e=d();a("ngIf",e.roleService.user.edit)}}function De(t,l){if(t&1&&(i(0,"div")(1,"span",16),h(2),n()()),t&2){let e=l.$implicit;r(2),S(e)}}function Pe(t,l){if(t&1&&(i(0,"div"),f(1,De,3,1,"div",15),n()),t&2){let e=d(2);r(),a("ngForOf",e.getErrors("name"))}}function Oe(t,l){if(t&1&&(i(0,"div",25)(1,"div",26),g(2,"p-checkbox",27),i(3,"p",28),h(4),n()()()),t&2){let e=l.$implicit,o=l.$index;a("formGroupName",o)("pTooltip",e.get("description").value),r(2),_(v(6,Te)),a("binary",!0),r(2),V(" ",e.get("name").value," ")}}function we(t,l){if(t&1&&(i(0,"div",18)(1,"div",19)(2,"div",20)(3,"span",21),h(4),n()(),g(5,"p-checkbox",22),n(),i(6,"div",23)(7,"div",24),k(8,Oe,5,7,"div",25,F),n()()()),t&2){let e=l.$implicit,o=l.$index,p=d(3);a("formGroupName",o),r(4),S(e.get("groupName").value),r(),_(v(5,Te)),a("binary",!0),r(3),M(p.getRolesArray(o).controls)}}function Re(t,l){if(t&1&&(i(0,"div",17),k(1,we,10,6,"div",18,F),n()),t&2){let e=d(2);r(),M(e.rolesFormArray.controls)}}function Ve(t,l){if(t&1&&(i(0,"p-panel")(1,"div",5),g(2,"app-user-tabs"),i(3,"form",6),g(4,"input",7),f(5,Pe,2,1,"div",8),n(),i(6,"p-tabs",9)(7,"p-tablist")(8,"p-tab",9),h(9,"Permission"),n(),i(10,"p-tab",10),h(11,"Description"),n()(),i(12,"p-tabpanels",11)(13,"p-tabpanel",9)(14,"form",6),f(15,Re,3,0,"div",12),n()(),i(16,"p-tabpanel",10)(17,"div",13),g(18,"textarea",14),n()()()()()()),t&2){let e=d();_(v(13,Ge)),r(3),a("formGroup",e.form),r(),a("fluid",!0)("ngClass",b(14,Ee,e.isInvalid("name"))),r(),a("ngIf",e.isInvalid("name")),r(3),y(b(16,Se,e.router.url.includes("forms"))),r(2),y(b(18,Se,e.router.url.includes("forms"))),r(4),a("formGroup",e.form),r(),a("ngIf",e.rolesFormArray.length>0),r(2),a("formGroup",e.form)}}var gt=(()=>{class t extends _e{constructor(){super(...arguments),this.service=c(ke),this.fb=c(te),this.cdr=c(B),this.route=c(U),this.router=c(L),this.roleService=c(ce),this.form=this.fb.group({groupID:this.fb.control(""),name:this.fb.control("",[J.required]),description:this.fb.control(""),roles:this.fb.array([])}),this.groupFormMeta=D(null)}ngOnInit(){this.route.queryParamMap.pipe(G(e=>this.service.getGroupFormMeta(e.get("groupID")).pipe(I("Group form meta loaded"),C(o=>{this.groupFormMeta.set(o),this.populateForm(o)})))).subscribe()}populateForm(e){this.form.patchValue({groupID:e.form.groupID,name:e.form.name,description:e.form.description});let o=this.rolesFormArray;o.clear(),e.options.roles.forEach(p=>{let m=this.fb.array(p.roles.map(s=>this.fb.group({id:this.fb.control(s.id),name:this.fb.control(s.name),checked:this.fb.control({value:e.form.rolesID.includes(s.id),disabled:!this.roleService.user.edit}),description:this.fb.control(s.description||"")}))),u=this.fb.group({groupName:this.fb.control(p.name),groupChecked:this.fb.control(!1),roles:m}),Ie=m.controls.every(s=>s.get("checked").value);u.get("groupChecked").setValue(Ie,{emitEvent:!1}),this.roleService.user.edit?u.get("groupChecked").enable():u.get("groupChecked").disable(),u.get("groupChecked").valueChanges.subscribe(s=>{m.controls.forEach(x=>{x.get("checked").setValue(s,{emitEvent:!1})})}),m.valueChanges.subscribe(()=>{let s=m.controls.every(x=>x.get("checked").value);u.get("groupChecked").setValue(s,{emitEvent:!1})}),o.push(u)}),this.cdr.detectChanges()}get rolesFormArray(){return this.form.get("roles")}getRolesArray(e){return this.rolesFormArray.at(e).get("roles")}getSelectedRoleIDs(){let e=[];return this.rolesFormArray.controls.forEach(o=>{o.get("roles").controls.forEach(m=>{m.get("checked").value&&e.push(m.get("id").value)})}),e}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let e={groupID:this.form.get("groupID").value,name:this.form.get("name").value,rolesID:this.getSelectedRoleIDs(),description:this.form.controls.description.value};this.service.assignGroupRole(e).pipe(I("Group roles assigned successfully"),C(()=>{this.router.navigate(["/pages/users/groups"])})).subscribe(),console.log(e)}static{this.\u0275fac=(()=>{let e;return function(p){return(e||(e=A(t)))(p||t)}})()}static{this.\u0275cmp=P({type:t,selectors:[["app-group-form"]],features:[O],decls:5,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Group Form",3,"overflowScroll"],["label","Submit",3,"onClick",4,"ngIf"],["label","Submit",3,"onClick"],[1,"d-flex","flex-column","gap-3","py-2"],[1,"d-flex","flex-column","gap-2",3,"formGroup"],["type","text","pInputText","","formControlName","name","placeholder","Group Name",3,"fluid","ngClass"],[4,"ngIf"],["value","0"],["value","1"],[2,"padding-left","0"],["formArrayName","roles","class","container-fluid d-flex flex-column row-gap-3",4,"ngIf"],[3,"formGroup"],["formControlName","description","fluid","","rows","5","cols","30","pTextarea",""],[4,"ngFor","ngForOf"],[1,"text-danger"],["formArrayName","roles",1,"container-fluid","d-flex","flex-column","row-gap-3"],[1,"row","align-items-stretch",3,"formGroupName"],[1,"col-2","py-2","border-top","border-bottom","border-start","d-flex","justify-content-between",2,"background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100"],[1,"text-dark","fw-semibold","fs-2"],["size","small","formControlName","groupChecked",3,"binary"],[1,"col","p-0"],["formArrayName","roles",1,"roles-grid","h-100"],["tooltipPosition","top",1,"role-cell",3,"formGroupName","pTooltip"],[1,"py-2","d-flex","h-100","align-items-center","gap-2","px-2"],["size","small","formControlName","checked",3,"binary"],[1,"fs-2","text-dark","m-0"]],template:function(o,p){o&1&&(i(0,"app-main-panel",2),f(1,Ae,1,1,"ng-template",null,0,T)(3,Ve,19,20,"ng-template",null,1,T),n()),o&2&&a("overflowScroll",!0)},dependencies:[fe,ie,re,oe,W,H,K,Q,X,ee,Y,Z,z,$,j,q,ae,ne,Fe,ye,Ce,xe,ve,be,he,ge,pe,le,Me,me,se,ue,de],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .p-checkbox{display:flex!important}[_nghost-%COMP%] .p-tabs .p-tab{padding-left:0!important}[_nghost-%COMP%] .p-panel .p-panel-header{display:none!important}.roles-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.role-cell[_ngcontent-%COMP%]{border:1px solid #ddd;border-top:none;border-left:none;background:#fff}.roles-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(-n+4){border-top:1px solid #ddd}.roles-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(4n+1){border-left:1px solid #ddd}"],changeDetection:0})}}return t})();export{gt as GroupFormComponent};
@@ -1 +1 @@
1
- import{a as A}from"./chunk-CVOI5T6R.js";import{a as Me}from"./chunk-T4TFJFL4.js";import{b as Pe}from"./chunk-VKPPDDEW.js";import{a as oe}from"./chunk-FT65M3TM.js";import{a as Re}from"./chunk-XKI7WLHE.js";import"./chunk-KKZF4RQM.js";import{a as P,b as M}from"./chunk-RNPNKSFR.js";import{d as Je,i as De,j as ke,k as Ne}from"./chunk-BRCJWPEZ.js";import{a as Ie,b as Ae}from"./chunk-N5W3C4LG.js";import"./chunk-BSFKUGYO.js";import"./chunk-MASZROSE.js";import"./chunk-NI4XE6XQ.js";import{a as Fe,b as Ve}from"./chunk-RZI2OI6V.js";import"./chunk-A7LRQMLA.js";import"./chunk-4TW5N3R5.js";import"./chunk-NTCCFR6P.js";import"./chunk-W6IKDXXT.js";import"./chunk-5B3BG43K.js";import"./chunk-UVIJU7TM.js";import"./chunk-EALZUKSJ.js";import{g as Te,h as Ee}from"./chunk-DFBPVWWJ.js";import{b as ye,c as je}from"./chunk-WNA57NZF.js";import{a as he,b as xe}from"./chunk-MUFRLGLG.js";import{a as w,b as be,c as Se,d as Ce,e as ve,f as we}from"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{n as ce,o as fe,w as _e,x as ge}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{b as re,e as ae,f as le,k as me,l as pe,o as se,u as de,x as ue}from"./chunk-NHXCR55X.js";import"./chunk-DOKG43W6.js";import"./chunk-RV7TVDYN.js";import"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{h as Y,j as Z,k as ee,p as te,q as ie,s as ne}from"./chunk-VU532YE3.js";import{Ab as L,Bc as Q,Cb as g,Cc as $,Dc as E,Ga as D,Kb as s,Mc as I,Nc as X,Oc as R,Qc as C,Ub as a,Vb as r,Wb as b,X as J,Z as H,_b as j,ad as y,bb as B,c as F,cb as G,dc as T,ec as f,gb as m,ha as v,pa as h,qa as x,qc as p,rc as S,s as V,sc as k,uc as W,vc as K,wb as U,wc as N,xc as q}from"./chunk-7IC4BZ6J.js";import{a as d,b as c}from"./chunk-YQFG5XE2.js";var He={data:{data:[],totalCount:0},meta:{options:{outlets:[]},filter:{number:null,from:null,to:null,pageNumber:1,pageSize:20,export:!1,exportPageNumber:1,exportPageSize:1e4,outletName:""}},filter:{number:null,from:null,to:null,pageNumber:1,pageSize:20,export:!1,exportPageNumber:1,exportPageSize:1e4,outletName:""}},z=be(we(He),Se(t=>({first:y(()=>(t.filter().pageNumber-1)*t.filter().pageSize+1),end:y(()=>Math.min(t.filter().pageNumber*t.filter().pageSize,t.data().totalCount)),hasCheckedRows:y(()=>t.data().data.some(l=>l.checked)),checkedAdjustment:y(()=>t.data().data.filter(l=>l.checked).map(l=>l.id))})),ve(t=>{let l=v(A);return{updateFilter(n){w(t,i=>c(d({},i),{filter:d(d({},i.filter),n)}))},onRowSelect(n){w(t,i=>{let o=i.data.data.map(u=>u.id===n.id?c(d({},u),{checked:!0}):u);return c(d({},i),{data:c(d({},i.data),{data:o})})})},onRowUnselect(n){w(t,i=>{let o=i.data.data.map(u=>u.id===n.id?c(d({},u),{checked:!1}):u);return c(d({},i),{data:c(d({},i.data),{data:o})})})},onHeaderCheckboxToggle(n){w(t,i=>{let o=i.data.data.map(u=>c(d({},u),{checked:n}));return c(d({},i),{data:c(d({},i.data),{data:o})})})},getGJAdjustmentLoader:P(F(J(()=>l.getGJAdjustmentLoader().pipe(M({next:n=>{w(t,i=>c(d({},i),{meta:n}))},error:n=>{console.error("Error fetching adjustment loader:",n)}}))))),getAdjustmentJournal:P(F(V(n=>Object.entries(n).reduce((i,[o,u])=>(u!=null&&(i[o]=u),i),{})),J(n=>l.getAdjustmentJournal(n).pipe(V(i=>c(d({},i),{data:i.data.map(o=>c(d({},o),{checked:!1}))})),M({next:i=>{w(t,o=>c(d({},o),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),Ce(t=>({onInit:()=>{t.getGJAdjustmentLoader(),t.getAdjustmentJournal(t.filter)}})));var O=t=>({"ng-invalid ng-dirty":t}),Be=()=>({});function Ge(t,l){if(t&1){let e=j();a(0,"p-button",10),T("onClick",function(){h(e);let i=f(2);return x(i.generateAdjusmentJournal())}),r()}}function Ue(t,l){if(t&1&&g(0,Ge,1,0,"p-button",9),t&2){let e=f();s("ngIf",e.store.hasCheckedRows())}}function Le(t,l){t&1&&(a(0,"tr")(1,"th",12),b(2,"p-tableHeaderCheckbox"),r(),a(3,"th",13),p(4,"Outlet"),r(),a(5,"th",14),p(6,"Number"),r(),a(7,"th",15),p(8,"Date"),r(),a(9,"th",14),p(10,"Adjustment Qty"),r(),a(11,"th",13),p(12,"Type"),r(),a(13,"th",16),p(14,"State"),r(),a(15,"th",17),p(16,"Note"),r(),b(17,"th",18),r())}function We(t,l){if(t&1&&(a(0,"tr")(1,"td"),b(2,"p-tableCheckbox",19),r(),a(3,"td"),p(4),r(),a(5,"td")(6,"a",20),p(7),r()(),a(8,"td"),p(9),I(10,"date"),r(),a(11,"td"),p(12),I(13,"number"),r(),a(14,"td"),p(15),r(),a(16,"td"),p(17),r(),a(18,"td"),b(19,"div",21),r(),a(20,"td"),b(21,"p-button",22),r()()),t&2){let e=l.$implicit,n=f(2);m(2),s("value",e),m(2),S(e.outlet),m(2),s("href",n.authService.getTenantExternalURL()+"/menu/Adjustment/Adjustment/Archive/Info?ID="+e.id,G),m(),k(" ",e.number," "),m(2),S(R(10,12,e.date,"d MMM y")),m(3),S(X(13,15,e.quantitySUM)),m(3),S(e.type),m(2),S(e.state),m(2),s("innerHTML",e.note,B),m(2),s("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function Ke(t,l){if(t&1&&p(0),t&2){let e=f(2);W(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function qe(t,l){t&1&&(a(0,"tr")(1,"td",23)(2,"span"),p(3,"No records found."),r()()())}function Qe(t,l){if(t&1){let e=j();a(0,"p-panel")(1,"p-table",11),T("onRowSelect",function(i){h(e);let o=f();return x(o.onRowSelect(i))})("onRowUnselect",function(i){h(e);let o=f();return x(o.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){h(e);let o=f();return x(o.onHeaderCheckboxToggle(i))})("onPage",function(i){h(e);let o=f();return x(o.onPageChange(i))}),g(2,Le,18,0,"ng-template",null,3,C)(4,We,22,17,"ng-template",null,4,C)(6,Ke,1,3,"ng-template",null,5,C)(8,qe,4,0,"ng-template",null,6,C),r()()}if(t&2){let e=f();m(),s("value",e.store.data().data)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}function $e(t,l){if(t&1&&(a(0,"span",33),p(1),I(2,"truncate"),r()),t&2){let e=l.$implicit;s("pTooltip",e.name),m(),k(" ",R(2,2,e.name,30)," ")}}function Xe(t,l){if(t&1&&(a(0,"div")(1,"span",35),p(2),r()()),t&2){let e=l.$implicit;m(2),S(e)}}function Ye(t,l){if(t&1&&(a(0,"div"),g(1,Xe,3,1,"div",34),r()),t&2){let e=f(2);m(),s("ngForOf",e.getErrors("from"))}}function Ze(t,l){if(t&1&&(a(0,"div")(1,"span",35),p(2),r()()),t&2){let e=l.$implicit;m(2),S(e)}}function et(t,l){if(t&1&&(a(0,"div"),g(1,Ze,3,1,"div",34),r()),t&2){let e=f(2);m(),s("ngForOf",e.getErrors("to"))}}function tt(t,l){if(t&1&&(a(0,"div")(1,"span",35),p(2),r()()),t&2){let e=l.$implicit;m(2),S(e)}}function it(t,l){if(t&1&&(a(0,"div"),g(1,tt,3,1,"div",34),r()),t&2){let e=f(2);m(),s("ngForOf",e.getErrors("pageSize"))}}function nt(t,l){if(t&1&&(a(0,"form",24)(1,"div",25)(2,"label",26),p(3,"Outlet"),r(),a(4,"p-select",27),g(5,$e,3,5,"ng-template",null,7,C),r()(),a(7,"div",25)(8,"label",26),p(9,"From - To"),r(),a(10,"div",28),b(11,"p-datepicker",29),g(12,Ye,2,1,"div",30),b(13,"p-datepicker",31),g(14,et,2,1,"div",30),r()(),a(15,"div",25)(16,"label",26),p(17,"Page Size"),r(),b(18,"input",32),g(19,it,2,1,"div",30),r()()),t&2){let e=f();s("formGroup",e.form),m(4),s("virtualScrollItemSize",50)("options",e.store.meta().options.outlets),m(7),s("iconDisplay","input")("showIcon",!0)("ngClass",E(14,O,e.isInvalid("from"))),m(),s("ngIf",e.isInvalid("from")),m(),s("iconDisplay","input")("showIcon",!0)("ngClass",E(16,O,e.isInvalid("to"))),m(),s("ngIf",e.isInvalid("to")),m(4),s("autoNumeric",$(18,Be))("ngClass",E(19,O,e.isInvalid("pageSize"))),m(),s("ngIf",e.isInvalid("pageSize"))}}var Gt=(()=>{class t extends Re{constructor(){super(),this.store=v(z),this.generateJournalService=v(A),this.authService=v(oe),this.isDialogFilterVisible=D(!1),this.isInitDialogFilterVisible=D(!1),this.fb=v(de),this.dayjsService=v(Pe)}ngOnInit(){this.initForm()}initForm(){let{number:e,from:n,to:i,pageNumber:o,pageSize:u,export:_,exportPageNumber:ze,exportPageSize:Oe}=this.store.filter();this.form=this.fb.group({number:this.fb.control(e),outletName:this.fb.control(""),from:this.fb.control(this.dayjsService.from(n)?this.dayjsService.from(n).toDate():null),to:this.fb.control(this.dayjsService.from(i)?this.dayjsService.from(i).toDate():null),pageNumber:this.fb.control(o),pageSize:this.fb.control(u),export:this.fb.control(_),exportPageNumber:this.fb.control(ze),exportPageSize:this.fb.control(Oe)})}onSearch(e){this.store.updateFilter(c(d({},this.store.filter()),{number:e,pageNumber:1}))}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=Object.entries(this.form.getRawValue()).reduce((n,[i,o])=>{switch(i){case"from":typeof o=="object"?n[i]=this.dayjsService.from(o)?this.dayjsService.format(o):null:n[i]=o!=null?String(o):null;break;case"to":typeof o=="object"?n[i]=this.dayjsService.from(o)?this.dayjsService.format(o):null:n[i]=o!=null?String(o):null;break;default:n[i]=o===null?"":o;break}return n},{});this.store.updateFilter(e),this.isDialogFilterVisible.set(!1)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onPageChange(e){let n=e.first/e.rows;this.store.updateFilter(c(d({},this.store.filter()),{pageNumber:n+1}))}generateAdjusmentJournal(){this.generateJournalService.createAdjustmentJournal(this.store.checkedAdjustment()).pipe(H(()=>this.store.getAdjustmentJournal(this.store.filter))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=U({type:t,selectors:[["app-adjustment-journal"]],features:[Q([z]),L],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["item",""],["pageTitle","Adjustment",3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","search","isSearchableInput","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","onPage","value","paginator","rows","totalRecords","lazy"],[2,"width","1rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","11rem"],[2,"width","9rem"],[2,"width","14rem"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"innerHTML"],[3,"icon","severity","text"],["colspan","9"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["virtualScroll","","showClear","","filter","","filterBy","name","formControlName","outletName","appendTo","body","optionLabel","name","optionValue","name","placeholder","Select an Outlet",3,"virtualScrollItemSize","options"],[1,"d-flex","flex-column","gap-2"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],[4,"ngIf"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],["type","text","pInputText","","formControlName","pageSize",3,"autoNumeric","ngClass"],[3,"pTooltip"],[4,"ngFor","ngForOf"],[1,"text-danger"]],template:function(n,i){if(n&1){let o=j();a(0,"app-main-panel",8),q("isDialogFilterVisibleChange",function(_){return h(o),N(i.isDialogFilterVisible,_)||(i.isDialogFilterVisible=_),x(_)})("isInitDialogFilterVisibleChange",function(_){return h(o),N(i.isInitDialogFilterVisible,_)||(i.isInitDialogFilterVisible=_),x(_)}),T("filterConfirmed",function(){return h(o),x(i.onFilterOKEvent())})("search",function(_){return h(o),x(i.onSearch(_))}),g(1,Ue,1,1,"ng-template",null,0,C)(3,Qe,10,5,"ng-template",null,1,C)(5,nt,20,21,"ng-template",null,2,C),r()}n&2&&(s("isSearchableInput",!0)("isFilterable",!0),K("isDialogFilterVisible",i.isDialogFilterVisible)("isInitDialogFilterVisible",i.isInitDialogFilterVisible),s("scrollable",!0))},dependencies:[Ee,Ne,Je,De,ke,ne,Y,Z,ee,ie,te,xe,he,ge,_e,Ae,Ie,Ve,Fe,ue,me,re,ae,le,pe,se,fe,ce,Te,je,ye,Me],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{Gt as AdjustmentJournalComponent};
1
+ import{a as A}from"./chunk-QFOKESND.js";import{a as Me}from"./chunk-T4TFJFL4.js";import{a as oe}from"./chunk-IIS3WYGB.js";import{b as Re}from"./chunk-WZWAFKRU.js";import{a as Pe}from"./chunk-XKI7WLHE.js";import"./chunk-KKZF4RQM.js";import{a as P,b as M}from"./chunk-RNPNKSFR.js";import{d as Je,i as De,j as ke,k as Ne}from"./chunk-BRCJWPEZ.js";import{a as Ie,b as Ae}from"./chunk-N5W3C4LG.js";import"./chunk-BSFKUGYO.js";import"./chunk-MASZROSE.js";import"./chunk-NI4XE6XQ.js";import{a as Fe,b as Ve}from"./chunk-RZI2OI6V.js";import"./chunk-A7LRQMLA.js";import"./chunk-4TW5N3R5.js";import"./chunk-NTCCFR6P.js";import"./chunk-W6IKDXXT.js";import"./chunk-5B3BG43K.js";import"./chunk-UVIJU7TM.js";import"./chunk-EALZUKSJ.js";import{g as Te,h as Ee}from"./chunk-4IEK5V2S.js";import{b as ye,c as je}from"./chunk-WNA57NZF.js";import{a as he,b as xe}from"./chunk-MUFRLGLG.js";import{a as w,b as be,c as Se,d as Ce,e as ve,f as we}from"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{n as ce,o as fe,w as _e,x as ge}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{b as re,e as ae,f as le,k as me,l as pe,o as se,u as de,x as ue}from"./chunk-NHXCR55X.js";import"./chunk-DOKG43W6.js";import"./chunk-A25JUSCO.js";import"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{h as Y,j as Z,k as ee,p as te,q as ie,s as ne}from"./chunk-VU532YE3.js";import{Ab as L,Bc as Q,Cb as g,Cc as $,Dc as E,Ga as D,Kb as s,Mc as I,Nc as X,Oc as R,Qc as C,Ub as a,Vb as r,Wb as b,X as J,Z as H,_b as j,ad as y,bb as B,c as F,cb as G,dc as T,ec as f,gb as m,ha as v,pa as h,qa as x,qc as p,rc as S,s as V,sc as k,uc as W,vc as K,wb as U,wc as N,xc as q}from"./chunk-7IC4BZ6J.js";import{a as d,b as c}from"./chunk-YQFG5XE2.js";var He={data:{data:[],totalCount:0},meta:{options:{outlets:[]},filter:{number:null,from:null,to:null,pageNumber:1,pageSize:20,export:!1,exportPageNumber:1,exportPageSize:1e4,outletName:""}},filter:{number:null,from:null,to:null,pageNumber:1,pageSize:20,export:!1,exportPageNumber:1,exportPageSize:1e4,outletName:""}},z=be(we(He),Se(t=>({first:y(()=>(t.filter().pageNumber-1)*t.filter().pageSize+1),end:y(()=>Math.min(t.filter().pageNumber*t.filter().pageSize,t.data().totalCount)),hasCheckedRows:y(()=>t.data().data.some(l=>l.checked)),checkedAdjustment:y(()=>t.data().data.filter(l=>l.checked).map(l=>l.id))})),ve(t=>{let l=v(A);return{updateFilter(n){w(t,i=>c(d({},i),{filter:d(d({},i.filter),n)}))},onRowSelect(n){w(t,i=>{let o=i.data.data.map(u=>u.id===n.id?c(d({},u),{checked:!0}):u);return c(d({},i),{data:c(d({},i.data),{data:o})})})},onRowUnselect(n){w(t,i=>{let o=i.data.data.map(u=>u.id===n.id?c(d({},u),{checked:!1}):u);return c(d({},i),{data:c(d({},i.data),{data:o})})})},onHeaderCheckboxToggle(n){w(t,i=>{let o=i.data.data.map(u=>c(d({},u),{checked:n}));return c(d({},i),{data:c(d({},i.data),{data:o})})})},getGJAdjustmentLoader:P(F(J(()=>l.getGJAdjustmentLoader().pipe(M({next:n=>{w(t,i=>c(d({},i),{meta:n}))},error:n=>{console.error("Error fetching adjustment loader:",n)}}))))),getAdjustmentJournal:P(F(V(n=>Object.entries(n).reduce((i,[o,u])=>(u!=null&&(i[o]=u),i),{})),J(n=>l.getAdjustmentJournal(n).pipe(V(i=>c(d({},i),{data:i.data.map(o=>c(d({},o),{checked:!1}))})),M({next:i=>{w(t,o=>c(d({},o),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),Ce(t=>({onInit:()=>{t.getGJAdjustmentLoader(),t.getAdjustmentJournal(t.filter)}})));var O=t=>({"ng-invalid ng-dirty":t}),Be=()=>({});function Ge(t,l){if(t&1){let e=j();a(0,"p-button",10),T("onClick",function(){h(e);let i=f(2);return x(i.generateAdjusmentJournal())}),r()}}function Ue(t,l){if(t&1&&g(0,Ge,1,0,"p-button",9),t&2){let e=f();s("ngIf",e.store.hasCheckedRows())}}function Le(t,l){t&1&&(a(0,"tr")(1,"th",12),b(2,"p-tableHeaderCheckbox"),r(),a(3,"th",13),p(4,"Outlet"),r(),a(5,"th",14),p(6,"Number"),r(),a(7,"th",15),p(8,"Date"),r(),a(9,"th",14),p(10,"Adjustment Qty"),r(),a(11,"th",13),p(12,"Type"),r(),a(13,"th",16),p(14,"State"),r(),a(15,"th",17),p(16,"Note"),r(),b(17,"th",18),r())}function We(t,l){if(t&1&&(a(0,"tr")(1,"td"),b(2,"p-tableCheckbox",19),r(),a(3,"td"),p(4),r(),a(5,"td")(6,"a",20),p(7),r()(),a(8,"td"),p(9),I(10,"date"),r(),a(11,"td"),p(12),I(13,"number"),r(),a(14,"td"),p(15),r(),a(16,"td"),p(17),r(),a(18,"td"),b(19,"div",21),r(),a(20,"td"),b(21,"p-button",22),r()()),t&2){let e=l.$implicit,n=f(2);m(2),s("value",e),m(2),S(e.outlet),m(2),s("href",n.authService.getTenantExternalURL()+"/menu/Adjustment/Adjustment/Archive/Info?ID="+e.id,G),m(),k(" ",e.number," "),m(2),S(R(10,12,e.date,"d MMM y")),m(3),S(X(13,15,e.quantitySUM)),m(3),S(e.type),m(2),S(e.state),m(2),s("innerHTML",e.note,B),m(2),s("icon",e.integrated?"fa-solid fa-circle-check":"fa-solid fa-circle-xmark")("severity",e.integrated?"success":"danger")("text",!0)}}function Ke(t,l){if(t&1&&p(0),t&2){let e=f(2);W(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function qe(t,l){t&1&&(a(0,"tr")(1,"td",23)(2,"span"),p(3,"No records found."),r()()())}function Qe(t,l){if(t&1){let e=j();a(0,"p-panel")(1,"p-table",11),T("onRowSelect",function(i){h(e);let o=f();return x(o.onRowSelect(i))})("onRowUnselect",function(i){h(e);let o=f();return x(o.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){h(e);let o=f();return x(o.onHeaderCheckboxToggle(i))})("onPage",function(i){h(e);let o=f();return x(o.onPageChange(i))}),g(2,Le,18,0,"ng-template",null,3,C)(4,We,22,17,"ng-template",null,4,C)(6,Ke,1,3,"ng-template",null,5,C)(8,qe,4,0,"ng-template",null,6,C),r()()}if(t&2){let e=f();m(),s("value",e.store.data().data)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}function $e(t,l){if(t&1&&(a(0,"span",33),p(1),I(2,"truncate"),r()),t&2){let e=l.$implicit;s("pTooltip",e.name),m(),k(" ",R(2,2,e.name,30)," ")}}function Xe(t,l){if(t&1&&(a(0,"div")(1,"span",35),p(2),r()()),t&2){let e=l.$implicit;m(2),S(e)}}function Ye(t,l){if(t&1&&(a(0,"div"),g(1,Xe,3,1,"div",34),r()),t&2){let e=f(2);m(),s("ngForOf",e.getErrors("from"))}}function Ze(t,l){if(t&1&&(a(0,"div")(1,"span",35),p(2),r()()),t&2){let e=l.$implicit;m(2),S(e)}}function et(t,l){if(t&1&&(a(0,"div"),g(1,Ze,3,1,"div",34),r()),t&2){let e=f(2);m(),s("ngForOf",e.getErrors("to"))}}function tt(t,l){if(t&1&&(a(0,"div")(1,"span",35),p(2),r()()),t&2){let e=l.$implicit;m(2),S(e)}}function it(t,l){if(t&1&&(a(0,"div"),g(1,tt,3,1,"div",34),r()),t&2){let e=f(2);m(),s("ngForOf",e.getErrors("pageSize"))}}function nt(t,l){if(t&1&&(a(0,"form",24)(1,"div",25)(2,"label",26),p(3,"Outlet"),r(),a(4,"p-select",27),g(5,$e,3,5,"ng-template",null,7,C),r()(),a(7,"div",25)(8,"label",26),p(9,"From - To"),r(),a(10,"div",28),b(11,"p-datepicker",29),g(12,Ye,2,1,"div",30),b(13,"p-datepicker",31),g(14,et,2,1,"div",30),r()(),a(15,"div",25)(16,"label",26),p(17,"Page Size"),r(),b(18,"input",32),g(19,it,2,1,"div",30),r()()),t&2){let e=f();s("formGroup",e.form),m(4),s("virtualScrollItemSize",50)("options",e.store.meta().options.outlets),m(7),s("iconDisplay","input")("showIcon",!0)("ngClass",E(14,O,e.isInvalid("from"))),m(),s("ngIf",e.isInvalid("from")),m(),s("iconDisplay","input")("showIcon",!0)("ngClass",E(16,O,e.isInvalid("to"))),m(),s("ngIf",e.isInvalid("to")),m(4),s("autoNumeric",$(18,Be))("ngClass",E(19,O,e.isInvalid("pageSize"))),m(),s("ngIf",e.isInvalid("pageSize"))}}var Gt=(()=>{class t extends Pe{constructor(){super(),this.store=v(z),this.generateJournalService=v(A),this.authService=v(oe),this.isDialogFilterVisible=D(!1),this.isInitDialogFilterVisible=D(!1),this.fb=v(de),this.dayjsService=v(Re)}ngOnInit(){this.initForm()}initForm(){let{number:e,from:n,to:i,pageNumber:o,pageSize:u,export:_,exportPageNumber:ze,exportPageSize:Oe}=this.store.filter();this.form=this.fb.group({number:this.fb.control(e),outletName:this.fb.control(""),from:this.fb.control(this.dayjsService.from(n)?this.dayjsService.from(n).toDate():null),to:this.fb.control(this.dayjsService.from(i)?this.dayjsService.from(i).toDate():null),pageNumber:this.fb.control(o),pageSize:this.fb.control(u),export:this.fb.control(_),exportPageNumber:this.fb.control(ze),exportPageSize:this.fb.control(Oe)})}onSearch(e){this.store.updateFilter(c(d({},this.store.filter()),{number:e,pageNumber:1}))}onFilterOKEvent(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=Object.entries(this.form.getRawValue()).reduce((n,[i,o])=>{switch(i){case"from":typeof o=="object"?n[i]=this.dayjsService.from(o)?this.dayjsService.format(o):null:n[i]=o!=null?String(o):null;break;case"to":typeof o=="object"?n[i]=this.dayjsService.from(o)?this.dayjsService.format(o):null:n[i]=o!=null?String(o):null;break;default:n[i]=o===null?"":o;break}return n},{});this.store.updateFilter(e),this.isDialogFilterVisible.set(!1)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onPageChange(e){let n=e.first/e.rows;this.store.updateFilter(c(d({},this.store.filter()),{pageNumber:n+1}))}generateAdjusmentJournal(){this.generateJournalService.createAdjustmentJournal(this.store.checkedAdjustment()).pipe(H(()=>this.store.getAdjustmentJournal(this.store.filter))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=U({type:t,selectors:[["app-adjustment-journal"]],features:[Q([z]),L],decls:7,vars:5,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["item",""],["pageTitle","Adjustment",3,"isDialogFilterVisibleChange","isInitDialogFilterVisibleChange","filterConfirmed","search","isSearchableInput","isFilterable","isDialogFilterVisible","isInitDialogFilterVisible","scrollable"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onRowSelect","onRowUnselect","onHeaderCheckboxToggle","onPage","value","paginator","rows","totalRecords","lazy"],[2,"width","1rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","11rem"],[2,"width","9rem"],[2,"width","14rem"],[2,"width","4rem"],[3,"value"],["target","_blank",1,"link","link-primary",3,"href"],[3,"innerHTML"],[3,"icon","severity","text"],["colspan","9"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],["virtualScroll","","showClear","","filter","","filterBy","name","formControlName","outletName","appendTo","body","optionLabel","name","optionValue","name","placeholder","Select an Outlet",3,"virtualScrollItemSize","options"],[1,"d-flex","flex-column","gap-2"],["showClear","","formControlName","from","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],[4,"ngIf"],["showClear","","formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon","ngClass"],["type","text","pInputText","","formControlName","pageSize",3,"autoNumeric","ngClass"],[3,"pTooltip"],[4,"ngFor","ngForOf"],[1,"text-danger"]],template:function(n,i){if(n&1){let o=j();a(0,"app-main-panel",8),q("isDialogFilterVisibleChange",function(_){return h(o),N(i.isDialogFilterVisible,_)||(i.isDialogFilterVisible=_),x(_)})("isInitDialogFilterVisibleChange",function(_){return h(o),N(i.isInitDialogFilterVisible,_)||(i.isInitDialogFilterVisible=_),x(_)}),T("filterConfirmed",function(){return h(o),x(i.onFilterOKEvent())})("search",function(_){return h(o),x(i.onSearch(_))}),g(1,Ue,1,1,"ng-template",null,0,C)(3,Qe,10,5,"ng-template",null,1,C)(5,nt,20,21,"ng-template",null,2,C),r()}n&2&&(s("isSearchableInput",!0)("isFilterable",!0),K("isDialogFilterVisible",i.isDialogFilterVisible)("isInitDialogFilterVisible",i.isInitDialogFilterVisible),s("scrollable",!0))},dependencies:[Ee,Ne,Je,De,ke,ne,Y,Z,ee,ie,te,xe,he,ge,_e,Ae,Ie,Ve,Fe,ue,me,re,ae,le,pe,se,fe,ce,Te,je,ye,Me],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();export{Gt as AdjustmentJournalComponent};
@@ -1,4 +1,4 @@
1
- import{a as un}from"./chunk-FT65M3TM.js";import{a as qn}from"./chunk-Y52DQWVS.js";import{a as Xn}from"./chunk-GACHEN2E.js";import"./chunk-KKZF4RQM.js";import{a as Fn}from"./chunk-BSFKUGYO.js";import{a as $n}from"./chunk-MASZROSE.js";import{b as Wn}from"./chunk-RZI2OI6V.js";import"./chunk-A7LRQMLA.js";import{a as Vn}from"./chunk-NTCCFR6P.js";import{a as Dn}from"./chunk-W6IKDXXT.js";import"./chunk-UVIJU7TM.js";import"./chunk-EALZUKSJ.js";import{b as jn}from"./chunk-PS4MFIBX.js";import{b as Yn,c as Ti}from"./chunk-WNA57NZF.js";import{b as Gn}from"./chunk-MUFRLGLG.js";import{c as Mn}from"./chunk-76QGHXHT.js";import{a as et,c as An,f as ai,o as Bn,p as Rn,t as Hn,u as Si,w as Nn,x as oi}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{Da as si,G as Sn,Ia as Ln,J as Tn,Ja as kn,K as Pn,Ka as zn,La as ri,Ma as ge,P as Ie,Q as _t,R as Nt,S as En,Ua as Je,b as mn,e as fn,f as gn,h as hn,ia as On,j as vn,k as wn,ma as In,p as bn,q as yn,r as _n,s as Cn,w as ni,x as xn}from"./chunk-NHXCR55X.js";import{b as rn,d as an,e as on,f as ln,l as Ht}from"./chunk-DOKG43W6.js";import{a as cn,c as Mi}from"./chunk-RV7TVDYN.js";import{a as pn}from"./chunk-R3JWL2J6.js";import{c as dn,d as _i,f as Ci,h as xi}from"./chunk-F2X3VGZZ.js";import{H as sn,h as ct,j as ii,k as Ft,l as Bt,m as Rt,n as tn,s as we,t as Oe,z as nn}from"./chunk-VU532YE3.js";import{Aa as Wi,Ab as Ke,Bc as Ze,Ca as qi,Cb as X,Cc as Ji,Da as xe,Dc as pe,Ea as wt,Ec as Be,Fc as ti,Ga as Ee,Jb as Z,Ka as Ui,Kb as $,Mb as Ki,Mc as Dt,Nb as Qt,Nc as $t,Ob as ye,Pb as Kt,Qb as Zt,Qc as dt,Sb as Jt,Tb as ei,Ub as G,V as Xi,Vb as N,Wb as te,Xb as at,Yb as ot,Zb as Me,Zc as pt,_b as ve,_c as Vt,aa as Yi,ad as en,ba as Ye,bb as bi,ca as je,cb as qe,dc as ie,ec as H,fc as bt,gb as R,gc as lt,ha as ae,jc as fe,kc as yt,lc as ne,mb as Ue,mc as se,oa as ji,pa as U,pc as Lt,qa as Q,qc as le,rb as Ut,rc as Fe,s as wi,sc as yi,t as Gi,ta as Ae,tc as Zi,vc as kt,wb as he,wc as zt,xb as Qe,xc as At,za as We,zb as Qi}from"./chunk-7IC4BZ6J.js";import{a as me,b as It}from"./chunk-YQFG5XE2.js";var sr=["*"],rr=({dt:i})=>`
1
+ import{a as un}from"./chunk-IIS3WYGB.js";import{a as qn}from"./chunk-Y52DQWVS.js";import{a as Xn}from"./chunk-YS5U5SXP.js";import"./chunk-KKZF4RQM.js";import{a as Fn}from"./chunk-BSFKUGYO.js";import{a as $n}from"./chunk-MASZROSE.js";import{b as Wn}from"./chunk-RZI2OI6V.js";import"./chunk-A7LRQMLA.js";import{a as Vn}from"./chunk-NTCCFR6P.js";import{a as Dn}from"./chunk-W6IKDXXT.js";import"./chunk-UVIJU7TM.js";import"./chunk-EALZUKSJ.js";import{b as jn}from"./chunk-PS4MFIBX.js";import{b as Yn,c as Ti}from"./chunk-WNA57NZF.js";import{b as Gn}from"./chunk-MUFRLGLG.js";import{c as Mn}from"./chunk-76QGHXHT.js";import{a as et,c as An,f as ai,o as Bn,p as Rn,t as Hn,u as Si,w as Nn,x as oi}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{Da as si,G as Sn,Ia as Ln,J as Tn,Ja as kn,K as Pn,Ka as zn,La as ri,Ma as ge,P as Ie,Q as _t,R as Nt,S as En,Ua as Je,b as mn,e as fn,f as gn,h as hn,ia as On,j as vn,k as wn,ma as In,p as bn,q as yn,r as _n,s as Cn,w as ni,x as xn}from"./chunk-NHXCR55X.js";import{b as rn,d as an,e as on,f as ln,l as Ht}from"./chunk-DOKG43W6.js";import{a as cn,c as Mi}from"./chunk-A25JUSCO.js";import{a as pn}from"./chunk-R3JWL2J6.js";import{c as dn,d as _i,f as Ci,h as xi}from"./chunk-F2X3VGZZ.js";import{H as sn,h as ct,j as ii,k as Ft,l as Bt,m as Rt,n as tn,s as we,t as Oe,z as nn}from"./chunk-VU532YE3.js";import{Aa as Wi,Ab as Ke,Bc as Ze,Ca as qi,Cb as X,Cc as Ji,Da as xe,Dc as pe,Ea as wt,Ec as Be,Fc as ti,Ga as Ee,Jb as Z,Ka as Ui,Kb as $,Mb as Ki,Mc as Dt,Nb as Qt,Nc as $t,Ob as ye,Pb as Kt,Qb as Zt,Qc as dt,Sb as Jt,Tb as ei,Ub as G,V as Xi,Vb as N,Wb as te,Xb as at,Yb as ot,Zb as Me,Zc as pt,_b as ve,_c as Vt,aa as Yi,ad as en,ba as Ye,bb as bi,ca as je,cb as qe,dc as ie,ec as H,fc as bt,gb as R,gc as lt,ha as ae,jc as fe,kc as yt,lc as ne,mb as Ue,mc as se,oa as ji,pa as U,pc as Lt,qa as Q,qc as le,rb as Ut,rc as Fe,s as wi,sc as yi,t as Gi,ta as Ae,tc as Zi,vc as kt,wb as he,wc as zt,xb as Qe,xc as At,za as We,zb as Qi}from"./chunk-7IC4BZ6J.js";import{a as me,b as It}from"./chunk-YQFG5XE2.js";var sr=["*"],rr=({dt:i})=>`
2
2
  .p-inputgroup,
3
3
  .p-inputgroup .p-floatlabel,
4
4
  .p-inputgroup .p-iftalabel {
@@ -325,4 +325,4 @@ import{a as un}from"./chunk-FT65M3TM.js";import{a as qn}from"./chunk-Y52DQWVS.js
325
325
  ${qs(this.passedParams)?`
326
326
  <div part="scrollbar" class="swiper-scrollbar"></div>
327
327
  `:""}
328
- `),this.shadowRoot.appendChild(t),this.rendered=!0}initialize(){var e=this;if(this.swiper&&this.swiper.initialized)return;let{params:t,passedParams:n}=Bi(this);this.swiperParams=t,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new st(this.shadowRoot.querySelector(".swiper"),It(me(me({},t.virtual?{}:{observer:!0}),t),{touchEventsTarget:"container",onAny:function(s){s==="observerUpdate"&&e.calcSlideSlots();let r=t.eventsPrefix?`${t.eventsPrefix}${s.toLowerCase()}`:s.toLowerCase();for(var a=arguments.length,d=new Array(a>1?a-1:0),u=1;u<a;u++)d[u-1]=arguments[u];let c=new CustomEvent(r,{detail:d,bubbles:s!=="hashChange",cancelable:!0});e.dispatchEvent(c)}}))}connectedCallback(){this.swiper&&this.swiper.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.init===!1||this.getAttribute("init")==="false"||this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.swiper&&this.swiper.destroy&&this.swiper.destroy()}updateSwiperOnPropChange(e,t){let{params:n,passedParams:s}=Bi(this,e,t);this.passedParams=s,this.swiperParams=n,!(this.swiper&&this.swiper.params[e]===t)&&Us(me(me(me({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Tt(e)]},e==="navigation"&&s[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{}),e==="pagination"&&s[e]?{paginationEl:".swiper-pagination"}:{}),e==="scrollbar"&&s[e]?{scrollbarEl:".swiper-scrollbar"}:{}))}attributeChangedCallback(e,t,n){this.swiper&&this.swiper.initialized&&(t==="true"&&n===null&&(n=!1),this.updateSwiperOnPropChange(e,n))}static get observedAttributes(){return St.filter(t=>t.includes("_")).map(t=>t.replace(/[A-Z]/g,n=>`-${n}`).replace("_","").toLowerCase())}};St.forEach(i=>{i!=="init"&&(i=i.replace("_",""),Object.defineProperty(ui.prototype,i,{configurable:!0,get(){return(this.passedParams||{})[i]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[i]=e,this.swiper&&this.swiper.initialized&&this.updateSwiperOnPropChange(i,e)}}))});var Hi=class extends Js{constructor(){super(),this.attachShadow({mode:"open"})}render(){let e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(er(this.shadowRoot,bl),this.shadowRoot.appendChild(document.createElement("slot")),e){let t=document.createElement("div");t.classList.add("swiper-lazy-preloader"),t.part.add("preloader"),this.shadowRoot.appendChild(t)}}initialize(){this.render()}connectedCallback(){this.swiperLoopMoveDOM||this.initialize()}},tr=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",ui),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Hi))};typeof window<"u"&&(window.SwiperElementRegisterParams=i=>{St.push(...i)});function yl(i,e){if(i&1&&(G(0,"swiper-slide")(1,"div")(2,"a",1),te(3,"img",2),N()(),G(4,"a",3),le(5),N(),G(6,"p",4),le(7),N()()),i&2){let t=e.$implicit;R(2),$("href",t.href,qe),R(),$("src",t.imgSrc,qe),R(),$("href",t.href,qe),R(),Fe(t.title),R(2),Fe(t.description)}}tr();var ir=(()=>{class i{constructor(){this.elementRef=ae(wt),this.newsList=xe([]),this.colorTheme=xe()}ngOnInit(){this.applyThemeColors()}applyThemeColors(){this.elementRef.nativeElement.style.setProperty("--swiper-primary-color",this.colorTheme())}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=he({type:i,selectors:[["app-news-swiper"]],inputs:{newsList:[1,"newsList"],colorTheme:[1,"colorTheme"]},decls:3,vars:0,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false"],["target","_blank",3,"href"],[1,"border-0","rounded-1","swiper-image",3,"src"],["target","_blank",1,"h5","swiper-text",3,"href"],[1,"mb-0"]],template:function(n,s){n&1&&(G(0,"swiper-container",0),Jt(1,yl,8,5,"swiper-slide",null,Zt),N()),n&2&&(R(),ei(s.newsList()))},dependencies:[we],styles:["[_nghost-%COMP%]{--swiper-primary-color: #89b03e}[_nghost-%COMP%] swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: var(--swiper-primary-color);--swiper-pagination-color: var(--swiper-primary-color);--swiper-pagination-bottom: 0px;margin-top:30px;height:265px}[_nghost-%COMP%] img.swiper-image[_ngcontent-%COMP%]{width:252px;height:152px;margin-bottom:16px}[_nghost-%COMP%] .swiper-text[_ngcontent-%COMP%]{color:var(--swiper-primary-color);font-weight:700}[_nghost-%COMP%] h5[_ngcontent-%COMP%], [_nghost-%COMP%] .h5[_ngcontent-%COMP%]{font-size:.875rem!important}"]})}}return i})();var _l=(i,e)=>({"fa-eye":i,"fa-eye-slash":e});function Cl(i,e){if(i&1&&(G(0,"option",25),le(1),N()),i&2){let t=e.$implicit;$("value",t),R(),Fe(t)}}function xl(i,e){if(i&1){let t=ve();G(0,"div",15)(1,"h2",16),le(2),N(),G(3,"small",17),le(4),N()(),G(5,"form",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"span"),te(10,"i",22),N()(),G(11,"input",23,0),At("ngModelChange",function(s){U(t);let r=H();return zt(r.subdomain,s)||(r.subdomain=s),Q(s)}),N(),G(13,"div")(14,"select",24),At("ngModelChange",function(s){U(t);let r=H();return zt(r.domain,s)||(r.domain=s),Q(s)}),Jt(15,Cl,2,2,"option",25,Zt),N()()(),G(17,"div",26)(18,"button",27),ie("click",function(){U(t);let s=H();return Q(s.onNextState())}),le(19," Next "),N()()()()}if(i&2){let t=H();R(2),Fe(t.title()),R(2),yi(" ",t.subtitle()," "),R(7),kt("ngModel",t.subdomain),R(3),kt("ngModel",t.domain),R(),ei(t.domains())}}function Ml(i,e){i&1&&(G(0,"span",30),le(1,"to"),N())}function Sl(i,e){if(i&1){let t=ve();G(0,"h6",31)(1,"div",42),le(2),N(),G(3,"i",43),ie("click",function(){U(t);let s=H(2);return Q(s.onEditDomain())}),N()()}if(i&2){let t=H(2);R(2),Zi("(",t.subdomain(),"",t.domain(),")")}}function Tl(i,e){if(i&1){let t=ve();G(0,"div",28)(1,"h3",29)(2,"span"),le(3,"Sign in"),N(),X(4,Ml,2,0,"span",30),N(),X(5,Sl,4,2,"h6",31),N(),G(6,"form",32)(7,"div",20)(8,"div",21)(9,"span"),te(10,"i",33),N()(),G(11,"input",34,1),At("ngModelChange",function(s){U(t);let r=H();return zt(r.username,s)||(r.username=s),Q(s)}),N()(),G(13,"div",35)(14,"div",21)(15,"span"),te(16,"i",36),N()(),G(17,"input",37,2),At("ngModelChange",function(s){U(t);let r=H();return zt(r.password,s)||(r.password=s),Q(s)}),N(),G(19,"span",38)(20,"i",39),ie("click",function(){U(t);let s=H();return Q(s.onHidePassowrd())}),N()()(),G(21,"div",40)(22,"button",41),ie("click",function(){U(t);let s=H();return Q(s.onLogin())}),le(23," Log in "),N()()()}if(i&2){let t=H();R(4),Kt(t.hasSubdomainInput()?4:-1),R(),Kt(t.hasSubdomainInput()?5:-1),R(6),kt("ngModel",t.username),R(6),$("type",t.passwordVisible()?"text":"password"),kt("ngModel",t.password),R(3),$("ngClass",Be(6,_l,t.passwordVisible()===!1,t.passwordVisible()))}}var nr=(()=>{class i{constructor(){this.elementRef=ae(wt),this.toastr=ae(pn),this.changelogUrl=xe(),this.version=xe(),this.domains=xe([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.news=xe([]),this.colorTheme=xe("#1a73e8"),this.subtitle=xe("Your Subtitle Here"),this.title=xe("Your title here"),this.loginChange=qi({alias:"onLoginChange"}),this.hasSubdomainInput=xe(!0),this.loginState=Ee("FORM_DOMAIN"),this.subdomain=Ut(null),this.domain=Ut(".dealpos.app"),this.username=Ut(null),this.password=Ee(null),this.passwordVisible=Ee(!1)}ngOnInit(){document.body.classList.add("login-body"),this.applyThemeColors(),this.initLoginState()}initLoginState(){this.hasSubdomainInput()?this.loginState.set("FORM_DOMAIN"):this.loginState.set("FORM_LOGIN")}onNextState(){if(!this.subdomain()){this.toastr.error("Subdomain is required","Warning");return}this.loginState.set("FORM_LOGIN")}onEditDomain(){this.loginState.set("FORM_DOMAIN")}onHidePassowrd(){this.passwordVisible.set(!this.passwordVisible())}onLogin(){let t=this.subdomain()?.trim(),n={username:this.username(),password:this.password()};this.hasSubdomainInput()&&(n=me({domain:this.domain(),subdomain:t},n)),this.loginChange.emit(n)}applyThemeColors(){this.elementRef.nativeElement.style.setProperty("--login-primary-color",this.colorTheme())}ngOnDestroy(){document.body.classList.remove("login-body")}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=he({type:i,selectors:[["app-login-ui"]],inputs:{changelogUrl:[1,"changelogUrl"],version:[1,"version"],domains:[1,"domains"],news:[1,"news"],colorTheme:[1,"colorTheme"],subtitle:[1,"subtitle"],title:[1,"title"],hasSubdomainInput:[1,"hasSubdomainInput"],subdomain:[1,"subdomain"],domain:[1,"domain"],username:[1,"username"]},outputs:{loginChange:"onLoginChange",subdomain:"subdomainChange",domain:"domainChange",username:"usernameChange"},decls:17,vars:5,consts:[["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"text-center"],[3,"colorTheme","newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[1,"d-flex","copyright"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"me-2","mb-0"],[1,"text-secondary-emphasis","fst-italic","opacity-75",2,"font-size","11px"],[2,"margin-top","50px"],[1,"form-block"],[1,"input-group","input-group-lg"],[1,"input-group-text","border-end-0","bg-white",2,"width","52px","border-bottom-left-radius","8px","border-top-left-radius","8px"],[1,"fa-solid","fa-cloud","text-dark","input-icon"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1","fs-4","text-dark",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","rounded-start-0","domain-option",2,"height","58px","border-bottom-right-radius","8px","border-top-right-radius","8px",3,"ngModelChange","ngModel"],[3,"value"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-theme","btn-block","w-100",2,"height","44.6px","border-radius","7px",3,"click"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"fw-normal","mb-0","me-2"],[1,"ms-2"],[1,"fw-normal","mb-0","d-flex","align-items-center"],[2,"margin-top","46px"],[1,"fas","fa-user","fa-lg","text-dark","input-icon"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username","autocomplete","off",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1","text-dark",2,"height","58px",3,"ngModelChange","ngModel"],[1,"input-group","input-group-lg",2,"margin-top","16px"],[1,"fas","fa-key","fa-lg","input-icon","text-dark"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","autofocus","","name","password","autocomplete","off",1,"form-control","form-control-lg","rounded-end","border-start-0","border-end-0","ps-1","text-dark",2,"height","58px",3,"ngModelChange","type","ngModel"],[1,"input-group-text","border-start-0","rounded-end","bg-white"],[1,"input-icon","fa",3,"click","ngClass"],[1,"w-100",2,"margin-top","16px"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-theme","btn-block","w-100",3,"click"],[1,"text-theme","me-2"],["title","Edit Store Address",1,"fa-solid","fa-edit","text-theme","pointer",2,"font-size","0.875rem",3,"click"]],template:function(n,s){n&1&&(G(0,"div",3)(1,"div",4)(2,"div",5)(3,"h2",6),le(4,"New Features"),N(),te(5,"app-news-swiper",7),N(),G(6,"div",8),X(7,xl,20,4)(8,Tl,24,9),N()(),G(9,"div",9)(10,"span",10),le(11,"powered by :"),N(),te(12,"a",11),N(),G(13,"div",12)(14,"a",13),le(15),te(16,"i",14),N()()()),n&2&&(R(5),$("colorTheme",s.colorTheme())("newsList",s.news()),R(2),Kt(s.loginState()=="FORM_DOMAIN"?7:8),R(7),$("href",s.changelogUrl(),qe),R(),yi("version ",s.version(),""))},dependencies:[we,ct,ni,wn,yn,_n,mn,bn,fn,gn,Cn,vn,hn,ir],styles:["[_nghost-%COMP%]{--login-primary-color: red}[_nghost-%COMP%] .mt-0[_ngcontent-%COMP%]{margin-top:0!important}[_nghost-%COMP%] .mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}[_nghost-%COMP%] .ms-0[_ngcontent-%COMP%]{margin-left:0!important}[_nghost-%COMP%] .me-0[_ngcontent-%COMP%]{margin-right:0!important}[_nghost-%COMP%] .mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}[_nghost-%COMP%] .my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}[_nghost-%COMP%] .m-0[_ngcontent-%COMP%]{margin:0!important}[_nghost-%COMP%] .pt-0[_ngcontent-%COMP%]{padding-top:0!important}[_nghost-%COMP%] .pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}[_nghost-%COMP%] .ps-0[_ngcontent-%COMP%]{padding-left:0!important}[_nghost-%COMP%] .pe-0[_ngcontent-%COMP%]{padding-right:0!important}[_nghost-%COMP%] .px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}[_nghost-%COMP%] .py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}[_nghost-%COMP%] .p-0[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .gap-0[_ngcontent-%COMP%]{gap:0!important}[_nghost-%COMP%] .mt-1[_ngcontent-%COMP%]{margin-top:.125rem!important}[_nghost-%COMP%] .mb-1[_ngcontent-%COMP%]{margin-bottom:.125rem!important}[_nghost-%COMP%] .ms-1[_ngcontent-%COMP%]{margin-left:.125rem!important}[_nghost-%COMP%] .me-1[_ngcontent-%COMP%]{margin-right:.125rem!important}[_nghost-%COMP%] .mx-1[_ngcontent-%COMP%]{margin-left:.125rem!important;margin-right:.125rem!important}[_nghost-%COMP%] .my-1[_ngcontent-%COMP%]{margin-top:.125rem!important;margin-bottom:.125rem!important}[_nghost-%COMP%] .m-1[_ngcontent-%COMP%]{margin:.125rem!important}[_nghost-%COMP%] .pt-1[_ngcontent-%COMP%]{padding-top:.125rem!important}[_nghost-%COMP%] .pb-1[_ngcontent-%COMP%]{padding-bottom:.125rem!important}[_nghost-%COMP%] .ps-1[_ngcontent-%COMP%]{padding-left:.125rem!important}[_nghost-%COMP%] .pe-1[_ngcontent-%COMP%]{padding-right:.125rem!important}[_nghost-%COMP%] .px-1[_ngcontent-%COMP%]{padding-left:.125rem!important;padding-right:.125rem!important}[_nghost-%COMP%] .py-1[_ngcontent-%COMP%]{padding-top:.125rem!important;padding-bottom:.125rem!important}[_nghost-%COMP%] .p-1[_ngcontent-%COMP%]{padding:.125rem!important}[_nghost-%COMP%] .gap-1[_ngcontent-%COMP%]{gap:.125rem!important}[_nghost-%COMP%] .mt-2[_ngcontent-%COMP%]{margin-top:.25rem!important}[_nghost-%COMP%] .mb-2[_ngcontent-%COMP%]{margin-bottom:.25rem!important}[_nghost-%COMP%] .ms-2[_ngcontent-%COMP%]{margin-left:.25rem!important}[_nghost-%COMP%] .me-2[_ngcontent-%COMP%]{margin-right:.25rem!important}[_nghost-%COMP%] .mx-2[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}[_nghost-%COMP%] .my-2[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}[_nghost-%COMP%] .m-2[_ngcontent-%COMP%]{margin:.25rem!important}[_nghost-%COMP%] .pt-2[_ngcontent-%COMP%]{padding-top:.25rem!important}[_nghost-%COMP%] .pb-2[_ngcontent-%COMP%]{padding-bottom:.25rem!important}[_nghost-%COMP%] .ps-2[_ngcontent-%COMP%]{padding-left:.25rem!important}[_nghost-%COMP%] .pe-2[_ngcontent-%COMP%]{padding-right:.25rem!important}[_nghost-%COMP%] .px-2[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}[_nghost-%COMP%] .py-2[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}[_nghost-%COMP%] .p-2[_ngcontent-%COMP%]{padding:.25rem!important}[_nghost-%COMP%] .gap-2[_ngcontent-%COMP%]{gap:.25rem!important}[_nghost-%COMP%] .mt-3[_ngcontent-%COMP%]{margin-top:.375rem!important}[_nghost-%COMP%] .mb-3[_ngcontent-%COMP%]{margin-bottom:.375rem!important}[_nghost-%COMP%] .ms-3[_ngcontent-%COMP%]{margin-left:.375rem!important}[_nghost-%COMP%] .me-3[_ngcontent-%COMP%]{margin-right:.375rem!important}[_nghost-%COMP%] .mx-3[_ngcontent-%COMP%]{margin-left:.375rem!important;margin-right:.375rem!important}[_nghost-%COMP%] .my-3[_ngcontent-%COMP%]{margin-top:.375rem!important;margin-bottom:.375rem!important}[_nghost-%COMP%] .m-3[_ngcontent-%COMP%]{margin:.375rem!important}[_nghost-%COMP%] .pt-3[_ngcontent-%COMP%]{padding-top:.375rem!important}[_nghost-%COMP%] .pb-3[_ngcontent-%COMP%]{padding-bottom:.375rem!important}[_nghost-%COMP%] .ps-3[_ngcontent-%COMP%]{padding-left:.375rem!important}[_nghost-%COMP%] .pe-3[_ngcontent-%COMP%]{padding-right:.375rem!important}[_nghost-%COMP%] .px-3[_ngcontent-%COMP%]{padding-left:.375rem!important;padding-right:.375rem!important}[_nghost-%COMP%] .py-3[_ngcontent-%COMP%]{padding-top:.375rem!important;padding-bottom:.375rem!important}[_nghost-%COMP%] .p-3[_ngcontent-%COMP%]{padding:.375rem!important}[_nghost-%COMP%] .gap-3[_ngcontent-%COMP%]{gap:.375rem!important}[_nghost-%COMP%] .mt-4[_ngcontent-%COMP%]{margin-top:.5rem!important}[_nghost-%COMP%] .mb-4[_ngcontent-%COMP%]{margin-bottom:.5rem!important}[_nghost-%COMP%] .ms-4[_ngcontent-%COMP%]{margin-left:.5rem!important}[_nghost-%COMP%] .me-4[_ngcontent-%COMP%]{margin-right:.5rem!important}[_nghost-%COMP%] .mx-4[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}[_nghost-%COMP%] .my-4[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}[_nghost-%COMP%] .m-4[_ngcontent-%COMP%]{margin:.5rem!important}[_nghost-%COMP%] .pt-4[_ngcontent-%COMP%]{padding-top:.5rem!important}[_nghost-%COMP%] .pb-4[_ngcontent-%COMP%]{padding-bottom:.5rem!important}[_nghost-%COMP%] .ps-4[_ngcontent-%COMP%]{padding-left:.5rem!important}[_nghost-%COMP%] .pe-4[_ngcontent-%COMP%]{padding-right:.5rem!important}[_nghost-%COMP%] .px-4[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}[_nghost-%COMP%] .py-4[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}[_nghost-%COMP%] .p-4[_ngcontent-%COMP%]{padding:.5rem!important}[_nghost-%COMP%] .gap-4[_ngcontent-%COMP%]{gap:.5rem!important}[_nghost-%COMP%] .mt-5[_ngcontent-%COMP%]{margin-top:.625rem!important}[_nghost-%COMP%] .mb-5[_ngcontent-%COMP%]{margin-bottom:.625rem!important}[_nghost-%COMP%] .ms-5[_ngcontent-%COMP%]{margin-left:.625rem!important}[_nghost-%COMP%] .me-5[_ngcontent-%COMP%]{margin-right:.625rem!important}[_nghost-%COMP%] .mx-5[_ngcontent-%COMP%]{margin-left:.625rem!important;margin-right:.625rem!important}[_nghost-%COMP%] .my-5[_ngcontent-%COMP%]{margin-top:.625rem!important;margin-bottom:.625rem!important}[_nghost-%COMP%] .m-5[_ngcontent-%COMP%]{margin:.625rem!important}[_nghost-%COMP%] .pt-5[_ngcontent-%COMP%]{padding-top:.625rem!important}[_nghost-%COMP%] .pb-5[_ngcontent-%COMP%]{padding-bottom:.625rem!important}[_nghost-%COMP%] .ps-5[_ngcontent-%COMP%]{padding-left:.625rem!important}[_nghost-%COMP%] .pe-5[_ngcontent-%COMP%]{padding-right:.625rem!important}[_nghost-%COMP%] .px-5[_ngcontent-%COMP%]{padding-left:.625rem!important;padding-right:.625rem!important}[_nghost-%COMP%] .py-5[_ngcontent-%COMP%]{padding-top:.625rem!important;padding-bottom:.625rem!important}[_nghost-%COMP%] .p-5[_ngcontent-%COMP%]{padding:.625rem!important}[_nghost-%COMP%] .gap-5[_ngcontent-%COMP%]{gap:.625rem!important}[_nghost-%COMP%] .mt-6[_ngcontent-%COMP%]{margin-top:.75rem!important}[_nghost-%COMP%] .mb-6[_ngcontent-%COMP%]{margin-bottom:.75rem!important}[_nghost-%COMP%] .ms-6[_ngcontent-%COMP%]{margin-left:.75rem!important}[_nghost-%COMP%] .me-6[_ngcontent-%COMP%]{margin-right:.75rem!important}[_nghost-%COMP%] .mx-6[_ngcontent-%COMP%]{margin-left:.75rem!important;margin-right:.75rem!important}[_nghost-%COMP%] .my-6[_ngcontent-%COMP%]{margin-top:.75rem!important;margin-bottom:.75rem!important}[_nghost-%COMP%] .m-6[_ngcontent-%COMP%]{margin:.75rem!important}[_nghost-%COMP%] .pt-6[_ngcontent-%COMP%]{padding-top:.75rem!important}[_nghost-%COMP%] .pb-6[_ngcontent-%COMP%]{padding-bottom:.75rem!important}[_nghost-%COMP%] .ps-6[_ngcontent-%COMP%]{padding-left:.75rem!important}[_nghost-%COMP%] .pe-6[_ngcontent-%COMP%]{padding-right:.75rem!important}[_nghost-%COMP%] .px-6[_ngcontent-%COMP%]{padding-left:.75rem!important;padding-right:.75rem!important}[_nghost-%COMP%] .py-6[_ngcontent-%COMP%]{padding-top:.75rem!important;padding-bottom:.75rem!important}[_nghost-%COMP%] .p-6[_ngcontent-%COMP%]{padding:.75rem!important}[_nghost-%COMP%] .gap-6[_ngcontent-%COMP%]{gap:.75rem!important}[_nghost-%COMP%] .mt-7[_ngcontent-%COMP%]{margin-top:.875rem!important}[_nghost-%COMP%] .mb-7[_ngcontent-%COMP%]{margin-bottom:.875rem!important}[_nghost-%COMP%] .ms-7[_ngcontent-%COMP%]{margin-left:.875rem!important}[_nghost-%COMP%] .me-7[_ngcontent-%COMP%]{margin-right:.875rem!important}[_nghost-%COMP%] .mx-7[_ngcontent-%COMP%]{margin-left:.875rem!important;margin-right:.875rem!important}[_nghost-%COMP%] .my-7[_ngcontent-%COMP%]{margin-top:.875rem!important;margin-bottom:.875rem!important}[_nghost-%COMP%] .m-7[_ngcontent-%COMP%]{margin:.875rem!important}[_nghost-%COMP%] .pt-7[_ngcontent-%COMP%]{padding-top:.875rem!important}[_nghost-%COMP%] .pb-7[_ngcontent-%COMP%]{padding-bottom:.875rem!important}[_nghost-%COMP%] .ps-7[_ngcontent-%COMP%]{padding-left:.875rem!important}[_nghost-%COMP%] .pe-7[_ngcontent-%COMP%]{padding-right:.875rem!important}[_nghost-%COMP%] .px-7[_ngcontent-%COMP%]{padding-left:.875rem!important;padding-right:.875rem!important}[_nghost-%COMP%] .py-7[_ngcontent-%COMP%]{padding-top:.875rem!important;padding-bottom:.875rem!important}[_nghost-%COMP%] .p-7[_ngcontent-%COMP%]{padding:.875rem!important}[_nghost-%COMP%] .gap-7[_ngcontent-%COMP%]{gap:.875rem!important}[_nghost-%COMP%] .mt-8[_ngcontent-%COMP%]{margin-top:1rem!important}[_nghost-%COMP%] .mb-8[_ngcontent-%COMP%]{margin-bottom:1rem!important}[_nghost-%COMP%] .ms-8[_ngcontent-%COMP%]{margin-left:1rem!important}[_nghost-%COMP%] .me-8[_ngcontent-%COMP%]{margin-right:1rem!important}[_nghost-%COMP%] .mx-8[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}[_nghost-%COMP%] .my-8[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}[_nghost-%COMP%] .m-8[_ngcontent-%COMP%]{margin:1rem!important}[_nghost-%COMP%] .pt-8[_ngcontent-%COMP%]{padding-top:1rem!important}[_nghost-%COMP%] .pb-8[_ngcontent-%COMP%]{padding-bottom:1rem!important}[_nghost-%COMP%] .ps-8[_ngcontent-%COMP%]{padding-left:1rem!important}[_nghost-%COMP%] .pe-8[_ngcontent-%COMP%]{padding-right:1rem!important}[_nghost-%COMP%] .px-8[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}[_nghost-%COMP%] .py-8[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}[_nghost-%COMP%] .p-8[_ngcontent-%COMP%]{padding:1rem!important}[_nghost-%COMP%] .gap-8[_ngcontent-%COMP%]{gap:1rem!important}[_nghost-%COMP%] .mt-9[_ngcontent-%COMP%]{margin-top:1.125rem!important}[_nghost-%COMP%] .mb-9[_ngcontent-%COMP%]{margin-bottom:1.125rem!important}[_nghost-%COMP%] .ms-9[_ngcontent-%COMP%]{margin-left:1.125rem!important}[_nghost-%COMP%] .me-9[_ngcontent-%COMP%]{margin-right:1.125rem!important}[_nghost-%COMP%] .mx-9[_ngcontent-%COMP%]{margin-left:1.125rem!important;margin-right:1.125rem!important}[_nghost-%COMP%] .my-9[_ngcontent-%COMP%]{margin-top:1.125rem!important;margin-bottom:1.125rem!important}[_nghost-%COMP%] .m-9[_ngcontent-%COMP%]{margin:1.125rem!important}[_nghost-%COMP%] .pt-9[_ngcontent-%COMP%]{padding-top:1.125rem!important}[_nghost-%COMP%] .pb-9[_ngcontent-%COMP%]{padding-bottom:1.125rem!important}[_nghost-%COMP%] .ps-9[_ngcontent-%COMP%]{padding-left:1.125rem!important}[_nghost-%COMP%] .pe-9[_ngcontent-%COMP%]{padding-right:1.125rem!important}[_nghost-%COMP%] .px-9[_ngcontent-%COMP%]{padding-left:1.125rem!important;padding-right:1.125rem!important}[_nghost-%COMP%] .py-9[_ngcontent-%COMP%]{padding-top:1.125rem!important;padding-bottom:1.125rem!important}[_nghost-%COMP%] .p-9[_ngcontent-%COMP%]{padding:1.125rem!important}[_nghost-%COMP%] .gap-9[_ngcontent-%COMP%]{gap:1.125rem!important}[_nghost-%COMP%] .mt-10[_ngcontent-%COMP%]{margin-top:1.25rem!important}[_nghost-%COMP%] .mb-10[_ngcontent-%COMP%]{margin-bottom:1.25rem!important}[_nghost-%COMP%] .ms-10[_ngcontent-%COMP%]{margin-left:1.25rem!important}[_nghost-%COMP%] .me-10[_ngcontent-%COMP%]{margin-right:1.25rem!important}[_nghost-%COMP%] .mx-10[_ngcontent-%COMP%]{margin-left:1.25rem!important;margin-right:1.25rem!important}[_nghost-%COMP%] .my-10[_ngcontent-%COMP%]{margin-top:1.25rem!important;margin-bottom:1.25rem!important}[_nghost-%COMP%] .m-10[_ngcontent-%COMP%]{margin:1.25rem!important}[_nghost-%COMP%] .pt-10[_ngcontent-%COMP%]{padding-top:1.25rem!important}[_nghost-%COMP%] .pb-10[_ngcontent-%COMP%]{padding-bottom:1.25rem!important}[_nghost-%COMP%] .ps-10[_ngcontent-%COMP%]{padding-left:1.25rem!important}[_nghost-%COMP%] .pe-10[_ngcontent-%COMP%]{padding-right:1.25rem!important}[_nghost-%COMP%] .px-10[_ngcontent-%COMP%]{padding-left:1.25rem!important;padding-right:1.25rem!important}[_nghost-%COMP%] .py-10[_ngcontent-%COMP%]{padding-top:1.25rem!important;padding-bottom:1.25rem!important}[_nghost-%COMP%] .p-10[_ngcontent-%COMP%]{padding:1.25rem!important}[_nghost-%COMP%] .gap-10[_ngcontent-%COMP%]{gap:1.25rem!important}[_nghost-%COMP%] .mt-11[_ngcontent-%COMP%]{margin-top:1.375rem!important}[_nghost-%COMP%] .mb-11[_ngcontent-%COMP%]{margin-bottom:1.375rem!important}[_nghost-%COMP%] .ms-11[_ngcontent-%COMP%]{margin-left:1.375rem!important}[_nghost-%COMP%] .me-11[_ngcontent-%COMP%]{margin-right:1.375rem!important}[_nghost-%COMP%] .mx-11[_ngcontent-%COMP%]{margin-left:1.375rem!important;margin-right:1.375rem!important}[_nghost-%COMP%] .my-11[_ngcontent-%COMP%]{margin-top:1.375rem!important;margin-bottom:1.375rem!important}[_nghost-%COMP%] .m-11[_ngcontent-%COMP%]{margin:1.375rem!important}[_nghost-%COMP%] .pt-11[_ngcontent-%COMP%]{padding-top:1.375rem!important}[_nghost-%COMP%] .pb-11[_ngcontent-%COMP%]{padding-bottom:1.375rem!important}[_nghost-%COMP%] .ps-11[_ngcontent-%COMP%]{padding-left:1.375rem!important}[_nghost-%COMP%] .pe-11[_ngcontent-%COMP%]{padding-right:1.375rem!important}[_nghost-%COMP%] .px-11[_ngcontent-%COMP%]{padding-left:1.375rem!important;padding-right:1.375rem!important}[_nghost-%COMP%] .py-11[_ngcontent-%COMP%]{padding-top:1.375rem!important;padding-bottom:1.375rem!important}[_nghost-%COMP%] .p-11[_ngcontent-%COMP%]{padding:1.375rem!important}[_nghost-%COMP%] .gap-11[_ngcontent-%COMP%]{gap:1.375rem!important}[_nghost-%COMP%] .mt-12[_ngcontent-%COMP%]{margin-top:1.5rem!important}[_nghost-%COMP%] .mb-12[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}[_nghost-%COMP%] .ms-12[_ngcontent-%COMP%]{margin-left:1.5rem!important}[_nghost-%COMP%] .me-12[_ngcontent-%COMP%]{margin-right:1.5rem!important}[_nghost-%COMP%] .mx-12[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}[_nghost-%COMP%] .my-12[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}[_nghost-%COMP%] .m-12[_ngcontent-%COMP%]{margin:1.5rem!important}[_nghost-%COMP%] .pt-12[_ngcontent-%COMP%]{padding-top:1.5rem!important}[_nghost-%COMP%] .pb-12[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}[_nghost-%COMP%] .ps-12[_ngcontent-%COMP%]{padding-left:1.5rem!important}[_nghost-%COMP%] .pe-12[_ngcontent-%COMP%]{padding-right:1.5rem!important}[_nghost-%COMP%] .px-12[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}[_nghost-%COMP%] .py-12[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}[_nghost-%COMP%] .p-12[_ngcontent-%COMP%]{padding:1.5rem!important}[_nghost-%COMP%] .gap-12[_ngcontent-%COMP%]{gap:1.5rem!important}[_nghost-%COMP%] h1[_ngcontent-%COMP%], [_nghost-%COMP%] .h1[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:500!important}[_nghost-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .h2[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500!important}[_nghost-%COMP%] h3[_ngcontent-%COMP%], [_nghost-%COMP%] .h3[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:500!important}[_nghost-%COMP%] h4[_ngcontent-%COMP%], [_nghost-%COMP%] .h4[_ngcontent-%COMP%]{font-size:1rem;font-weight:500!important}[_nghost-%COMP%] h5[_ngcontent-%COMP%], [_nghost-%COMP%] .h5[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500!important}[_nghost-%COMP%] h6[_ngcontent-%COMP%], [_nghost-%COMP%] .h6[_ngcontent-%COMP%]{font-size:.75rem;font-weight:500!important}[_nghost-%COMP%] .login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px;min-height:370px}@media (max-width: 768px){[_nghost-%COMP%] .login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){[_nghost-%COMP%] .login-pane[_ngcontent-%COMP%]{margin-top:30px}}[_nghost-%COMP%] .login-pane[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{box-shadow:none;border-color:#dfe5ef!important}[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid var(--login-primary-color);border-right:1px solid var(--login-primary-color);border-top:1px solid var(--login-primary-color);border-radius:0 10px 10px 0}}[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:15px!important}@media (max-width: 768px){[_nghost-%COMP%] .features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){[_nghost-%COMP%] .features-pane[_ngcontent-%COMP%]{border-left:1px solid var(--login-primary-color);border-bottom:1px solid var(--login-primary-color);border-top:1px solid var(--login-primary-color);border-radius:10px 0 0 10px}}[_nghost-%COMP%] .copyright[_ngcontent-%COMP%]{position:fixed;bottom:1.25rem;left:1.25rem;margin-left:20px}[_nghost-%COMP%] .copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}[_nghost-%COMP%] .version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:fixed;margin-right:18px}@media (max-width: 768px){[_nghost-%COMP%] .copyright[_ngcontent-%COMP%], [_nghost-%COMP%] .version[_ngcontent-%COMP%]{position:static;margin-top:10px}[_nghost-%COMP%] .copyright[_ngcontent-%COMP%]{justify-content:center}}[_nghost-%COMP%] div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}[_nghost-%COMP%] button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}[_nghost-%COMP%] .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}[_nghost-%COMP%] .fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}[_nghost-%COMP%] .version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}[_nghost-%COMP%] .version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}[_nghost-%COMP%] .version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}[_nghost-%COMP%] .domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}[_nghost-%COMP%] .btn-theme[_ngcontent-%COMP%]{background-color:var(--login-primary-color)!important;color:#fff!important;font-size:14px;height:36.6px;border-radius:7px}[_nghost-%COMP%] .text-theme[_ngcontent-%COMP%]{color:var(--login-primary-color)!important}[_nghost-%COMP%] .input-icon[_ngcontent-%COMP%]{font-size:15px}"]})}}return i})();var em=(()=>{class i{constructor(){this.authService=ae(un),this.router=ae(an),this.httpService=ae(cn),this.appVersion=Mi.version,this.changelogUrl=Mi.changelogUrl,this.route=ae(rn),this.roleService=ae(Xn),this.subdomain=Ee(""),this.domain=Ee(""),this.username=Ee("")}ngOnInit(){this.initNews()}ngAfterViewInit(){this.subdomain.set(localStorage.getItem("AUTH_SUB_DOMAIN")||""),this.username.set(localStorage.getItem("AUTH_USERNAME")||""),this.domain.set(localStorage.getItem("AUTH_DOMAIN")||".dealpos.co.id")}initNews(){let t=new nn().set("fetch","children:books").set("sort","sortOrder:asc");this.news$=this.httpService.get("https://changelog.dealpos.app/","umbraco/delivery/api/v2/content",{params:t}).pipe(wi(n=>n.items.map(r=>r.properties)),Xi(1))}onLogin(t){let n={SubDomain:t.subdomain+t.domain,Username:t.username,Password:t.password};Gi([this.authService.login(n),this.route.queryParams.pipe(wi(s=>s.returnUrl||"/"))]).subscribe(s=>{let r=s[1];if(r=="/"){if(this.roleService.report.view){if(!this.roleService.coa.view){this.router.navigate(["/pages/journal/journal-entry"]);return}}else{this.router.navigate(["/pages/chart-of-account/account"]);return}this.router.navigate(["/pages/dashboard"])}else this.router.navigate([r])})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=he({type:i,selectors:[["app-login"]],decls:2,vars:8,consts:[["colorTheme","#0a8754","title","DealPOS Accounting","subtitle","Streamline Your Accounting with Ease",3,"onLoginChange","news","subdomain","domain","username","version","changelogUrl"]],template:function(n,s){n&1&&(G(0,"app-login-ui",0),Dt(1,"async"),ie("onLoginChange",function(a){return s.onLogin(a)}),N()),n&2&&$("news",$t(1,6,s.news$))("subdomain",s.subdomain())("domain",s.domain())("username",s.username())("version",s.appVersion)("changelogUrl",s.changelogUrl)},dependencies:[we,tn,Ht,Mn,qn,xn,ni,Bn,Qn,Zn,oi,ss,Wn,jn,Gn,os,nr],encapsulation:2})}}return i})();export{em as LoginComponent};
328
+ `),this.shadowRoot.appendChild(t),this.rendered=!0}initialize(){var e=this;if(this.swiper&&this.swiper.initialized)return;let{params:t,passedParams:n}=Bi(this);this.swiperParams=t,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new st(this.shadowRoot.querySelector(".swiper"),It(me(me({},t.virtual?{}:{observer:!0}),t),{touchEventsTarget:"container",onAny:function(s){s==="observerUpdate"&&e.calcSlideSlots();let r=t.eventsPrefix?`${t.eventsPrefix}${s.toLowerCase()}`:s.toLowerCase();for(var a=arguments.length,d=new Array(a>1?a-1:0),u=1;u<a;u++)d[u-1]=arguments[u];let c=new CustomEvent(r,{detail:d,bubbles:s!=="hashChange",cancelable:!0});e.dispatchEvent(c)}}))}connectedCallback(){this.swiper&&this.swiper.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.init===!1||this.getAttribute("init")==="false"||this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.swiper&&this.swiper.destroy&&this.swiper.destroy()}updateSwiperOnPropChange(e,t){let{params:n,passedParams:s}=Bi(this,e,t);this.passedParams=s,this.swiperParams=n,!(this.swiper&&this.swiper.params[e]===t)&&Us(me(me(me({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Tt(e)]},e==="navigation"&&s[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{}),e==="pagination"&&s[e]?{paginationEl:".swiper-pagination"}:{}),e==="scrollbar"&&s[e]?{scrollbarEl:".swiper-scrollbar"}:{}))}attributeChangedCallback(e,t,n){this.swiper&&this.swiper.initialized&&(t==="true"&&n===null&&(n=!1),this.updateSwiperOnPropChange(e,n))}static get observedAttributes(){return St.filter(t=>t.includes("_")).map(t=>t.replace(/[A-Z]/g,n=>`-${n}`).replace("_","").toLowerCase())}};St.forEach(i=>{i!=="init"&&(i=i.replace("_",""),Object.defineProperty(ui.prototype,i,{configurable:!0,get(){return(this.passedParams||{})[i]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[i]=e,this.swiper&&this.swiper.initialized&&this.updateSwiperOnPropChange(i,e)}}))});var Hi=class extends Js{constructor(){super(),this.attachShadow({mode:"open"})}render(){let e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(er(this.shadowRoot,bl),this.shadowRoot.appendChild(document.createElement("slot")),e){let t=document.createElement("div");t.classList.add("swiper-lazy-preloader"),t.part.add("preloader"),this.shadowRoot.appendChild(t)}}initialize(){this.render()}connectedCallback(){this.swiperLoopMoveDOM||this.initialize()}},tr=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",ui),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",Hi))};typeof window<"u"&&(window.SwiperElementRegisterParams=i=>{St.push(...i)});function yl(i,e){if(i&1&&(G(0,"swiper-slide")(1,"div")(2,"a",1),te(3,"img",2),N()(),G(4,"a",3),le(5),N(),G(6,"p",4),le(7),N()()),i&2){let t=e.$implicit;R(2),$("href",t.href,qe),R(),$("src",t.imgSrc,qe),R(),$("href",t.href,qe),R(),Fe(t.title),R(2),Fe(t.description)}}tr();var ir=(()=>{class i{constructor(){this.elementRef=ae(wt),this.newsList=xe([]),this.colorTheme=xe()}ngOnInit(){this.applyThemeColors()}applyThemeColors(){this.elementRef.nativeElement.style.setProperty("--swiper-primary-color",this.colorTheme())}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=he({type:i,selectors:[["app-news-swiper"]],inputs:{newsList:[1,"newsList"],colorTheme:[1,"colorTheme"]},decls:3,vars:0,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false"],["target","_blank",3,"href"],[1,"border-0","rounded-1","swiper-image",3,"src"],["target","_blank",1,"h5","swiper-text",3,"href"],[1,"mb-0"]],template:function(n,s){n&1&&(G(0,"swiper-container",0),Jt(1,yl,8,5,"swiper-slide",null,Zt),N()),n&2&&(R(),ei(s.newsList()))},dependencies:[we],styles:["[_nghost-%COMP%]{--swiper-primary-color: #89b03e}[_nghost-%COMP%] swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: var(--swiper-primary-color);--swiper-pagination-color: var(--swiper-primary-color);--swiper-pagination-bottom: 0px;margin-top:30px;height:265px}[_nghost-%COMP%] img.swiper-image[_ngcontent-%COMP%]{width:252px;height:152px;margin-bottom:16px}[_nghost-%COMP%] .swiper-text[_ngcontent-%COMP%]{color:var(--swiper-primary-color);font-weight:700}[_nghost-%COMP%] h5[_ngcontent-%COMP%], [_nghost-%COMP%] .h5[_ngcontent-%COMP%]{font-size:.875rem!important}"]})}}return i})();var _l=(i,e)=>({"fa-eye":i,"fa-eye-slash":e});function Cl(i,e){if(i&1&&(G(0,"option",25),le(1),N()),i&2){let t=e.$implicit;$("value",t),R(),Fe(t)}}function xl(i,e){if(i&1){let t=ve();G(0,"div",15)(1,"h2",16),le(2),N(),G(3,"small",17),le(4),N()(),G(5,"form",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"span"),te(10,"i",22),N()(),G(11,"input",23,0),At("ngModelChange",function(s){U(t);let r=H();return zt(r.subdomain,s)||(r.subdomain=s),Q(s)}),N(),G(13,"div")(14,"select",24),At("ngModelChange",function(s){U(t);let r=H();return zt(r.domain,s)||(r.domain=s),Q(s)}),Jt(15,Cl,2,2,"option",25,Zt),N()()(),G(17,"div",26)(18,"button",27),ie("click",function(){U(t);let s=H();return Q(s.onNextState())}),le(19," Next "),N()()()()}if(i&2){let t=H();R(2),Fe(t.title()),R(2),yi(" ",t.subtitle()," "),R(7),kt("ngModel",t.subdomain),R(3),kt("ngModel",t.domain),R(),ei(t.domains())}}function Ml(i,e){i&1&&(G(0,"span",30),le(1,"to"),N())}function Sl(i,e){if(i&1){let t=ve();G(0,"h6",31)(1,"div",42),le(2),N(),G(3,"i",43),ie("click",function(){U(t);let s=H(2);return Q(s.onEditDomain())}),N()()}if(i&2){let t=H(2);R(2),Zi("(",t.subdomain(),"",t.domain(),")")}}function Tl(i,e){if(i&1){let t=ve();G(0,"div",28)(1,"h3",29)(2,"span"),le(3,"Sign in"),N(),X(4,Ml,2,0,"span",30),N(),X(5,Sl,4,2,"h6",31),N(),G(6,"form",32)(7,"div",20)(8,"div",21)(9,"span"),te(10,"i",33),N()(),G(11,"input",34,1),At("ngModelChange",function(s){U(t);let r=H();return zt(r.username,s)||(r.username=s),Q(s)}),N()(),G(13,"div",35)(14,"div",21)(15,"span"),te(16,"i",36),N()(),G(17,"input",37,2),At("ngModelChange",function(s){U(t);let r=H();return zt(r.password,s)||(r.password=s),Q(s)}),N(),G(19,"span",38)(20,"i",39),ie("click",function(){U(t);let s=H();return Q(s.onHidePassowrd())}),N()()(),G(21,"div",40)(22,"button",41),ie("click",function(){U(t);let s=H();return Q(s.onLogin())}),le(23," Log in "),N()()()}if(i&2){let t=H();R(4),Kt(t.hasSubdomainInput()?4:-1),R(),Kt(t.hasSubdomainInput()?5:-1),R(6),kt("ngModel",t.username),R(6),$("type",t.passwordVisible()?"text":"password"),kt("ngModel",t.password),R(3),$("ngClass",Be(6,_l,t.passwordVisible()===!1,t.passwordVisible()))}}var nr=(()=>{class i{constructor(){this.elementRef=ae(wt),this.toastr=ae(pn),this.changelogUrl=xe(),this.version=xe(),this.domains=xe([".dealpos.co.id",".dealpos.net",".dealpos.com",".dealpos.app"]),this.news=xe([]),this.colorTheme=xe("#1a73e8"),this.subtitle=xe("Your Subtitle Here"),this.title=xe("Your title here"),this.loginChange=qi({alias:"onLoginChange"}),this.hasSubdomainInput=xe(!0),this.loginState=Ee("FORM_DOMAIN"),this.subdomain=Ut(null),this.domain=Ut(".dealpos.app"),this.username=Ut(null),this.password=Ee(null),this.passwordVisible=Ee(!1)}ngOnInit(){document.body.classList.add("login-body"),this.applyThemeColors(),this.initLoginState()}initLoginState(){this.hasSubdomainInput()?this.loginState.set("FORM_DOMAIN"):this.loginState.set("FORM_LOGIN")}onNextState(){if(!this.subdomain()){this.toastr.error("Subdomain is required","Warning");return}this.loginState.set("FORM_LOGIN")}onEditDomain(){this.loginState.set("FORM_DOMAIN")}onHidePassowrd(){this.passwordVisible.set(!this.passwordVisible())}onLogin(){let t=this.subdomain()?.trim(),n={username:this.username(),password:this.password()};this.hasSubdomainInput()&&(n=me({domain:this.domain(),subdomain:t},n)),this.loginChange.emit(n)}applyThemeColors(){this.elementRef.nativeElement.style.setProperty("--login-primary-color",this.colorTheme())}ngOnDestroy(){document.body.classList.remove("login-body")}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=he({type:i,selectors:[["app-login-ui"]],inputs:{changelogUrl:[1,"changelogUrl"],version:[1,"version"],domains:[1,"domains"],news:[1,"news"],colorTheme:[1,"colorTheme"],subtitle:[1,"subtitle"],title:[1,"title"],hasSubdomainInput:[1,"hasSubdomainInput"],subdomain:[1,"subdomain"],domain:[1,"domain"],username:[1,"username"]},outputs:{loginChange:"onLoginChange",subdomain:"subdomainChange",domain:"domainChange",username:"usernameChange"},decls:17,vars:5,consts:[["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"text-center"],[3,"colorTheme","newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[1,"d-flex","copyright"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"me-2","mb-0"],[1,"text-secondary-emphasis","fst-italic","opacity-75",2,"font-size","11px"],[2,"margin-top","50px"],[1,"form-block"],[1,"input-group","input-group-lg"],[1,"input-group-text","border-end-0","bg-white",2,"width","52px","border-bottom-left-radius","8px","border-top-left-radius","8px"],[1,"fa-solid","fa-cloud","text-dark","input-icon"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1","fs-4","text-dark",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","rounded-start-0","domain-option",2,"height","58px","border-bottom-right-radius","8px","border-top-right-radius","8px",3,"ngModelChange","ngModel"],[3,"value"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-theme","btn-block","w-100",2,"height","44.6px","border-radius","7px",3,"click"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"fw-normal","mb-0","me-2"],[1,"ms-2"],[1,"fw-normal","mb-0","d-flex","align-items-center"],[2,"margin-top","46px"],[1,"fas","fa-user","fa-lg","text-dark","input-icon"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username","autocomplete","off",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1","text-dark",2,"height","58px",3,"ngModelChange","ngModel"],[1,"input-group","input-group-lg",2,"margin-top","16px"],[1,"fas","fa-key","fa-lg","input-icon","text-dark"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","autofocus","","name","password","autocomplete","off",1,"form-control","form-control-lg","rounded-end","border-start-0","border-end-0","ps-1","text-dark",2,"height","58px",3,"ngModelChange","type","ngModel"],[1,"input-group-text","border-start-0","rounded-end","bg-white"],[1,"input-icon","fa",3,"click","ngClass"],[1,"w-100",2,"margin-top","16px"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-theme","btn-block","w-100",3,"click"],[1,"text-theme","me-2"],["title","Edit Store Address",1,"fa-solid","fa-edit","text-theme","pointer",2,"font-size","0.875rem",3,"click"]],template:function(n,s){n&1&&(G(0,"div",3)(1,"div",4)(2,"div",5)(3,"h2",6),le(4,"New Features"),N(),te(5,"app-news-swiper",7),N(),G(6,"div",8),X(7,xl,20,4)(8,Tl,24,9),N()(),G(9,"div",9)(10,"span",10),le(11,"powered by :"),N(),te(12,"a",11),N(),G(13,"div",12)(14,"a",13),le(15),te(16,"i",14),N()()()),n&2&&(R(5),$("colorTheme",s.colorTheme())("newsList",s.news()),R(2),Kt(s.loginState()=="FORM_DOMAIN"?7:8),R(7),$("href",s.changelogUrl(),qe),R(),yi("version ",s.version(),""))},dependencies:[we,ct,ni,wn,yn,_n,mn,bn,fn,gn,Cn,vn,hn,ir],styles:["[_nghost-%COMP%]{--login-primary-color: red}[_nghost-%COMP%] .mt-0[_ngcontent-%COMP%]{margin-top:0!important}[_nghost-%COMP%] .mb-0[_ngcontent-%COMP%]{margin-bottom:0!important}[_nghost-%COMP%] .ms-0[_ngcontent-%COMP%]{margin-left:0!important}[_nghost-%COMP%] .me-0[_ngcontent-%COMP%]{margin-right:0!important}[_nghost-%COMP%] .mx-0[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}[_nghost-%COMP%] .my-0[_ngcontent-%COMP%]{margin-top:0!important;margin-bottom:0!important}[_nghost-%COMP%] .m-0[_ngcontent-%COMP%]{margin:0!important}[_nghost-%COMP%] .pt-0[_ngcontent-%COMP%]{padding-top:0!important}[_nghost-%COMP%] .pb-0[_ngcontent-%COMP%]{padding-bottom:0!important}[_nghost-%COMP%] .ps-0[_ngcontent-%COMP%]{padding-left:0!important}[_nghost-%COMP%] .pe-0[_ngcontent-%COMP%]{padding-right:0!important}[_nghost-%COMP%] .px-0[_ngcontent-%COMP%]{padding-left:0!important;padding-right:0!important}[_nghost-%COMP%] .py-0[_ngcontent-%COMP%]{padding-top:0!important;padding-bottom:0!important}[_nghost-%COMP%] .p-0[_ngcontent-%COMP%]{padding:0!important}[_nghost-%COMP%] .gap-0[_ngcontent-%COMP%]{gap:0!important}[_nghost-%COMP%] .mt-1[_ngcontent-%COMP%]{margin-top:.125rem!important}[_nghost-%COMP%] .mb-1[_ngcontent-%COMP%]{margin-bottom:.125rem!important}[_nghost-%COMP%] .ms-1[_ngcontent-%COMP%]{margin-left:.125rem!important}[_nghost-%COMP%] .me-1[_ngcontent-%COMP%]{margin-right:.125rem!important}[_nghost-%COMP%] .mx-1[_ngcontent-%COMP%]{margin-left:.125rem!important;margin-right:.125rem!important}[_nghost-%COMP%] .my-1[_ngcontent-%COMP%]{margin-top:.125rem!important;margin-bottom:.125rem!important}[_nghost-%COMP%] .m-1[_ngcontent-%COMP%]{margin:.125rem!important}[_nghost-%COMP%] .pt-1[_ngcontent-%COMP%]{padding-top:.125rem!important}[_nghost-%COMP%] .pb-1[_ngcontent-%COMP%]{padding-bottom:.125rem!important}[_nghost-%COMP%] .ps-1[_ngcontent-%COMP%]{padding-left:.125rem!important}[_nghost-%COMP%] .pe-1[_ngcontent-%COMP%]{padding-right:.125rem!important}[_nghost-%COMP%] .px-1[_ngcontent-%COMP%]{padding-left:.125rem!important;padding-right:.125rem!important}[_nghost-%COMP%] .py-1[_ngcontent-%COMP%]{padding-top:.125rem!important;padding-bottom:.125rem!important}[_nghost-%COMP%] .p-1[_ngcontent-%COMP%]{padding:.125rem!important}[_nghost-%COMP%] .gap-1[_ngcontent-%COMP%]{gap:.125rem!important}[_nghost-%COMP%] .mt-2[_ngcontent-%COMP%]{margin-top:.25rem!important}[_nghost-%COMP%] .mb-2[_ngcontent-%COMP%]{margin-bottom:.25rem!important}[_nghost-%COMP%] .ms-2[_ngcontent-%COMP%]{margin-left:.25rem!important}[_nghost-%COMP%] .me-2[_ngcontent-%COMP%]{margin-right:.25rem!important}[_nghost-%COMP%] .mx-2[_ngcontent-%COMP%]{margin-left:.25rem!important;margin-right:.25rem!important}[_nghost-%COMP%] .my-2[_ngcontent-%COMP%]{margin-top:.25rem!important;margin-bottom:.25rem!important}[_nghost-%COMP%] .m-2[_ngcontent-%COMP%]{margin:.25rem!important}[_nghost-%COMP%] .pt-2[_ngcontent-%COMP%]{padding-top:.25rem!important}[_nghost-%COMP%] .pb-2[_ngcontent-%COMP%]{padding-bottom:.25rem!important}[_nghost-%COMP%] .ps-2[_ngcontent-%COMP%]{padding-left:.25rem!important}[_nghost-%COMP%] .pe-2[_ngcontent-%COMP%]{padding-right:.25rem!important}[_nghost-%COMP%] .px-2[_ngcontent-%COMP%]{padding-left:.25rem!important;padding-right:.25rem!important}[_nghost-%COMP%] .py-2[_ngcontent-%COMP%]{padding-top:.25rem!important;padding-bottom:.25rem!important}[_nghost-%COMP%] .p-2[_ngcontent-%COMP%]{padding:.25rem!important}[_nghost-%COMP%] .gap-2[_ngcontent-%COMP%]{gap:.25rem!important}[_nghost-%COMP%] .mt-3[_ngcontent-%COMP%]{margin-top:.375rem!important}[_nghost-%COMP%] .mb-3[_ngcontent-%COMP%]{margin-bottom:.375rem!important}[_nghost-%COMP%] .ms-3[_ngcontent-%COMP%]{margin-left:.375rem!important}[_nghost-%COMP%] .me-3[_ngcontent-%COMP%]{margin-right:.375rem!important}[_nghost-%COMP%] .mx-3[_ngcontent-%COMP%]{margin-left:.375rem!important;margin-right:.375rem!important}[_nghost-%COMP%] .my-3[_ngcontent-%COMP%]{margin-top:.375rem!important;margin-bottom:.375rem!important}[_nghost-%COMP%] .m-3[_ngcontent-%COMP%]{margin:.375rem!important}[_nghost-%COMP%] .pt-3[_ngcontent-%COMP%]{padding-top:.375rem!important}[_nghost-%COMP%] .pb-3[_ngcontent-%COMP%]{padding-bottom:.375rem!important}[_nghost-%COMP%] .ps-3[_ngcontent-%COMP%]{padding-left:.375rem!important}[_nghost-%COMP%] .pe-3[_ngcontent-%COMP%]{padding-right:.375rem!important}[_nghost-%COMP%] .px-3[_ngcontent-%COMP%]{padding-left:.375rem!important;padding-right:.375rem!important}[_nghost-%COMP%] .py-3[_ngcontent-%COMP%]{padding-top:.375rem!important;padding-bottom:.375rem!important}[_nghost-%COMP%] .p-3[_ngcontent-%COMP%]{padding:.375rem!important}[_nghost-%COMP%] .gap-3[_ngcontent-%COMP%]{gap:.375rem!important}[_nghost-%COMP%] .mt-4[_ngcontent-%COMP%]{margin-top:.5rem!important}[_nghost-%COMP%] .mb-4[_ngcontent-%COMP%]{margin-bottom:.5rem!important}[_nghost-%COMP%] .ms-4[_ngcontent-%COMP%]{margin-left:.5rem!important}[_nghost-%COMP%] .me-4[_ngcontent-%COMP%]{margin-right:.5rem!important}[_nghost-%COMP%] .mx-4[_ngcontent-%COMP%]{margin-left:.5rem!important;margin-right:.5rem!important}[_nghost-%COMP%] .my-4[_ngcontent-%COMP%]{margin-top:.5rem!important;margin-bottom:.5rem!important}[_nghost-%COMP%] .m-4[_ngcontent-%COMP%]{margin:.5rem!important}[_nghost-%COMP%] .pt-4[_ngcontent-%COMP%]{padding-top:.5rem!important}[_nghost-%COMP%] .pb-4[_ngcontent-%COMP%]{padding-bottom:.5rem!important}[_nghost-%COMP%] .ps-4[_ngcontent-%COMP%]{padding-left:.5rem!important}[_nghost-%COMP%] .pe-4[_ngcontent-%COMP%]{padding-right:.5rem!important}[_nghost-%COMP%] .px-4[_ngcontent-%COMP%]{padding-left:.5rem!important;padding-right:.5rem!important}[_nghost-%COMP%] .py-4[_ngcontent-%COMP%]{padding-top:.5rem!important;padding-bottom:.5rem!important}[_nghost-%COMP%] .p-4[_ngcontent-%COMP%]{padding:.5rem!important}[_nghost-%COMP%] .gap-4[_ngcontent-%COMP%]{gap:.5rem!important}[_nghost-%COMP%] .mt-5[_ngcontent-%COMP%]{margin-top:.625rem!important}[_nghost-%COMP%] .mb-5[_ngcontent-%COMP%]{margin-bottom:.625rem!important}[_nghost-%COMP%] .ms-5[_ngcontent-%COMP%]{margin-left:.625rem!important}[_nghost-%COMP%] .me-5[_ngcontent-%COMP%]{margin-right:.625rem!important}[_nghost-%COMP%] .mx-5[_ngcontent-%COMP%]{margin-left:.625rem!important;margin-right:.625rem!important}[_nghost-%COMP%] .my-5[_ngcontent-%COMP%]{margin-top:.625rem!important;margin-bottom:.625rem!important}[_nghost-%COMP%] .m-5[_ngcontent-%COMP%]{margin:.625rem!important}[_nghost-%COMP%] .pt-5[_ngcontent-%COMP%]{padding-top:.625rem!important}[_nghost-%COMP%] .pb-5[_ngcontent-%COMP%]{padding-bottom:.625rem!important}[_nghost-%COMP%] .ps-5[_ngcontent-%COMP%]{padding-left:.625rem!important}[_nghost-%COMP%] .pe-5[_ngcontent-%COMP%]{padding-right:.625rem!important}[_nghost-%COMP%] .px-5[_ngcontent-%COMP%]{padding-left:.625rem!important;padding-right:.625rem!important}[_nghost-%COMP%] .py-5[_ngcontent-%COMP%]{padding-top:.625rem!important;padding-bottom:.625rem!important}[_nghost-%COMP%] .p-5[_ngcontent-%COMP%]{padding:.625rem!important}[_nghost-%COMP%] .gap-5[_ngcontent-%COMP%]{gap:.625rem!important}[_nghost-%COMP%] .mt-6[_ngcontent-%COMP%]{margin-top:.75rem!important}[_nghost-%COMP%] .mb-6[_ngcontent-%COMP%]{margin-bottom:.75rem!important}[_nghost-%COMP%] .ms-6[_ngcontent-%COMP%]{margin-left:.75rem!important}[_nghost-%COMP%] .me-6[_ngcontent-%COMP%]{margin-right:.75rem!important}[_nghost-%COMP%] .mx-6[_ngcontent-%COMP%]{margin-left:.75rem!important;margin-right:.75rem!important}[_nghost-%COMP%] .my-6[_ngcontent-%COMP%]{margin-top:.75rem!important;margin-bottom:.75rem!important}[_nghost-%COMP%] .m-6[_ngcontent-%COMP%]{margin:.75rem!important}[_nghost-%COMP%] .pt-6[_ngcontent-%COMP%]{padding-top:.75rem!important}[_nghost-%COMP%] .pb-6[_ngcontent-%COMP%]{padding-bottom:.75rem!important}[_nghost-%COMP%] .ps-6[_ngcontent-%COMP%]{padding-left:.75rem!important}[_nghost-%COMP%] .pe-6[_ngcontent-%COMP%]{padding-right:.75rem!important}[_nghost-%COMP%] .px-6[_ngcontent-%COMP%]{padding-left:.75rem!important;padding-right:.75rem!important}[_nghost-%COMP%] .py-6[_ngcontent-%COMP%]{padding-top:.75rem!important;padding-bottom:.75rem!important}[_nghost-%COMP%] .p-6[_ngcontent-%COMP%]{padding:.75rem!important}[_nghost-%COMP%] .gap-6[_ngcontent-%COMP%]{gap:.75rem!important}[_nghost-%COMP%] .mt-7[_ngcontent-%COMP%]{margin-top:.875rem!important}[_nghost-%COMP%] .mb-7[_ngcontent-%COMP%]{margin-bottom:.875rem!important}[_nghost-%COMP%] .ms-7[_ngcontent-%COMP%]{margin-left:.875rem!important}[_nghost-%COMP%] .me-7[_ngcontent-%COMP%]{margin-right:.875rem!important}[_nghost-%COMP%] .mx-7[_ngcontent-%COMP%]{margin-left:.875rem!important;margin-right:.875rem!important}[_nghost-%COMP%] .my-7[_ngcontent-%COMP%]{margin-top:.875rem!important;margin-bottom:.875rem!important}[_nghost-%COMP%] .m-7[_ngcontent-%COMP%]{margin:.875rem!important}[_nghost-%COMP%] .pt-7[_ngcontent-%COMP%]{padding-top:.875rem!important}[_nghost-%COMP%] .pb-7[_ngcontent-%COMP%]{padding-bottom:.875rem!important}[_nghost-%COMP%] .ps-7[_ngcontent-%COMP%]{padding-left:.875rem!important}[_nghost-%COMP%] .pe-7[_ngcontent-%COMP%]{padding-right:.875rem!important}[_nghost-%COMP%] .px-7[_ngcontent-%COMP%]{padding-left:.875rem!important;padding-right:.875rem!important}[_nghost-%COMP%] .py-7[_ngcontent-%COMP%]{padding-top:.875rem!important;padding-bottom:.875rem!important}[_nghost-%COMP%] .p-7[_ngcontent-%COMP%]{padding:.875rem!important}[_nghost-%COMP%] .gap-7[_ngcontent-%COMP%]{gap:.875rem!important}[_nghost-%COMP%] .mt-8[_ngcontent-%COMP%]{margin-top:1rem!important}[_nghost-%COMP%] .mb-8[_ngcontent-%COMP%]{margin-bottom:1rem!important}[_nghost-%COMP%] .ms-8[_ngcontent-%COMP%]{margin-left:1rem!important}[_nghost-%COMP%] .me-8[_ngcontent-%COMP%]{margin-right:1rem!important}[_nghost-%COMP%] .mx-8[_ngcontent-%COMP%]{margin-left:1rem!important;margin-right:1rem!important}[_nghost-%COMP%] .my-8[_ngcontent-%COMP%]{margin-top:1rem!important;margin-bottom:1rem!important}[_nghost-%COMP%] .m-8[_ngcontent-%COMP%]{margin:1rem!important}[_nghost-%COMP%] .pt-8[_ngcontent-%COMP%]{padding-top:1rem!important}[_nghost-%COMP%] .pb-8[_ngcontent-%COMP%]{padding-bottom:1rem!important}[_nghost-%COMP%] .ps-8[_ngcontent-%COMP%]{padding-left:1rem!important}[_nghost-%COMP%] .pe-8[_ngcontent-%COMP%]{padding-right:1rem!important}[_nghost-%COMP%] .px-8[_ngcontent-%COMP%]{padding-left:1rem!important;padding-right:1rem!important}[_nghost-%COMP%] .py-8[_ngcontent-%COMP%]{padding-top:1rem!important;padding-bottom:1rem!important}[_nghost-%COMP%] .p-8[_ngcontent-%COMP%]{padding:1rem!important}[_nghost-%COMP%] .gap-8[_ngcontent-%COMP%]{gap:1rem!important}[_nghost-%COMP%] .mt-9[_ngcontent-%COMP%]{margin-top:1.125rem!important}[_nghost-%COMP%] .mb-9[_ngcontent-%COMP%]{margin-bottom:1.125rem!important}[_nghost-%COMP%] .ms-9[_ngcontent-%COMP%]{margin-left:1.125rem!important}[_nghost-%COMP%] .me-9[_ngcontent-%COMP%]{margin-right:1.125rem!important}[_nghost-%COMP%] .mx-9[_ngcontent-%COMP%]{margin-left:1.125rem!important;margin-right:1.125rem!important}[_nghost-%COMP%] .my-9[_ngcontent-%COMP%]{margin-top:1.125rem!important;margin-bottom:1.125rem!important}[_nghost-%COMP%] .m-9[_ngcontent-%COMP%]{margin:1.125rem!important}[_nghost-%COMP%] .pt-9[_ngcontent-%COMP%]{padding-top:1.125rem!important}[_nghost-%COMP%] .pb-9[_ngcontent-%COMP%]{padding-bottom:1.125rem!important}[_nghost-%COMP%] .ps-9[_ngcontent-%COMP%]{padding-left:1.125rem!important}[_nghost-%COMP%] .pe-9[_ngcontent-%COMP%]{padding-right:1.125rem!important}[_nghost-%COMP%] .px-9[_ngcontent-%COMP%]{padding-left:1.125rem!important;padding-right:1.125rem!important}[_nghost-%COMP%] .py-9[_ngcontent-%COMP%]{padding-top:1.125rem!important;padding-bottom:1.125rem!important}[_nghost-%COMP%] .p-9[_ngcontent-%COMP%]{padding:1.125rem!important}[_nghost-%COMP%] .gap-9[_ngcontent-%COMP%]{gap:1.125rem!important}[_nghost-%COMP%] .mt-10[_ngcontent-%COMP%]{margin-top:1.25rem!important}[_nghost-%COMP%] .mb-10[_ngcontent-%COMP%]{margin-bottom:1.25rem!important}[_nghost-%COMP%] .ms-10[_ngcontent-%COMP%]{margin-left:1.25rem!important}[_nghost-%COMP%] .me-10[_ngcontent-%COMP%]{margin-right:1.25rem!important}[_nghost-%COMP%] .mx-10[_ngcontent-%COMP%]{margin-left:1.25rem!important;margin-right:1.25rem!important}[_nghost-%COMP%] .my-10[_ngcontent-%COMP%]{margin-top:1.25rem!important;margin-bottom:1.25rem!important}[_nghost-%COMP%] .m-10[_ngcontent-%COMP%]{margin:1.25rem!important}[_nghost-%COMP%] .pt-10[_ngcontent-%COMP%]{padding-top:1.25rem!important}[_nghost-%COMP%] .pb-10[_ngcontent-%COMP%]{padding-bottom:1.25rem!important}[_nghost-%COMP%] .ps-10[_ngcontent-%COMP%]{padding-left:1.25rem!important}[_nghost-%COMP%] .pe-10[_ngcontent-%COMP%]{padding-right:1.25rem!important}[_nghost-%COMP%] .px-10[_ngcontent-%COMP%]{padding-left:1.25rem!important;padding-right:1.25rem!important}[_nghost-%COMP%] .py-10[_ngcontent-%COMP%]{padding-top:1.25rem!important;padding-bottom:1.25rem!important}[_nghost-%COMP%] .p-10[_ngcontent-%COMP%]{padding:1.25rem!important}[_nghost-%COMP%] .gap-10[_ngcontent-%COMP%]{gap:1.25rem!important}[_nghost-%COMP%] .mt-11[_ngcontent-%COMP%]{margin-top:1.375rem!important}[_nghost-%COMP%] .mb-11[_ngcontent-%COMP%]{margin-bottom:1.375rem!important}[_nghost-%COMP%] .ms-11[_ngcontent-%COMP%]{margin-left:1.375rem!important}[_nghost-%COMP%] .me-11[_ngcontent-%COMP%]{margin-right:1.375rem!important}[_nghost-%COMP%] .mx-11[_ngcontent-%COMP%]{margin-left:1.375rem!important;margin-right:1.375rem!important}[_nghost-%COMP%] .my-11[_ngcontent-%COMP%]{margin-top:1.375rem!important;margin-bottom:1.375rem!important}[_nghost-%COMP%] .m-11[_ngcontent-%COMP%]{margin:1.375rem!important}[_nghost-%COMP%] .pt-11[_ngcontent-%COMP%]{padding-top:1.375rem!important}[_nghost-%COMP%] .pb-11[_ngcontent-%COMP%]{padding-bottom:1.375rem!important}[_nghost-%COMP%] .ps-11[_ngcontent-%COMP%]{padding-left:1.375rem!important}[_nghost-%COMP%] .pe-11[_ngcontent-%COMP%]{padding-right:1.375rem!important}[_nghost-%COMP%] .px-11[_ngcontent-%COMP%]{padding-left:1.375rem!important;padding-right:1.375rem!important}[_nghost-%COMP%] .py-11[_ngcontent-%COMP%]{padding-top:1.375rem!important;padding-bottom:1.375rem!important}[_nghost-%COMP%] .p-11[_ngcontent-%COMP%]{padding:1.375rem!important}[_nghost-%COMP%] .gap-11[_ngcontent-%COMP%]{gap:1.375rem!important}[_nghost-%COMP%] .mt-12[_ngcontent-%COMP%]{margin-top:1.5rem!important}[_nghost-%COMP%] .mb-12[_ngcontent-%COMP%]{margin-bottom:1.5rem!important}[_nghost-%COMP%] .ms-12[_ngcontent-%COMP%]{margin-left:1.5rem!important}[_nghost-%COMP%] .me-12[_ngcontent-%COMP%]{margin-right:1.5rem!important}[_nghost-%COMP%] .mx-12[_ngcontent-%COMP%]{margin-left:1.5rem!important;margin-right:1.5rem!important}[_nghost-%COMP%] .my-12[_ngcontent-%COMP%]{margin-top:1.5rem!important;margin-bottom:1.5rem!important}[_nghost-%COMP%] .m-12[_ngcontent-%COMP%]{margin:1.5rem!important}[_nghost-%COMP%] .pt-12[_ngcontent-%COMP%]{padding-top:1.5rem!important}[_nghost-%COMP%] .pb-12[_ngcontent-%COMP%]{padding-bottom:1.5rem!important}[_nghost-%COMP%] .ps-12[_ngcontent-%COMP%]{padding-left:1.5rem!important}[_nghost-%COMP%] .pe-12[_ngcontent-%COMP%]{padding-right:1.5rem!important}[_nghost-%COMP%] .px-12[_ngcontent-%COMP%]{padding-left:1.5rem!important;padding-right:1.5rem!important}[_nghost-%COMP%] .py-12[_ngcontent-%COMP%]{padding-top:1.5rem!important;padding-bottom:1.5rem!important}[_nghost-%COMP%] .p-12[_ngcontent-%COMP%]{padding:1.5rem!important}[_nghost-%COMP%] .gap-12[_ngcontent-%COMP%]{gap:1.5rem!important}[_nghost-%COMP%] h1[_ngcontent-%COMP%], [_nghost-%COMP%] .h1[_ngcontent-%COMP%]{font-size:1.375rem;font-weight:500!important}[_nghost-%COMP%] h2[_ngcontent-%COMP%], [_nghost-%COMP%] .h2[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500!important}[_nghost-%COMP%] h3[_ngcontent-%COMP%], [_nghost-%COMP%] .h3[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:500!important}[_nghost-%COMP%] h4[_ngcontent-%COMP%], [_nghost-%COMP%] .h4[_ngcontent-%COMP%]{font-size:1rem;font-weight:500!important}[_nghost-%COMP%] h5[_ngcontent-%COMP%], [_nghost-%COMP%] .h5[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500!important}[_nghost-%COMP%] h6[_ngcontent-%COMP%], [_nghost-%COMP%] .h6[_ngcontent-%COMP%]{font-size:.75rem;font-weight:500!important}[_nghost-%COMP%] .login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px;min-height:370px}@media (max-width: 768px){[_nghost-%COMP%] .login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){[_nghost-%COMP%] .login-pane[_ngcontent-%COMP%]{margin-top:30px}}[_nghost-%COMP%] .login-pane[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{box-shadow:none;border-color:#dfe5ef!important}[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid var(--login-primary-color);border-right:1px solid var(--login-primary-color);border-top:1px solid var(--login-primary-color);border-radius:0 10px 10px 0}}[_nghost-%COMP%] .sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:15px!important}@media (max-width: 768px){[_nghost-%COMP%] .features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){[_nghost-%COMP%] .features-pane[_ngcontent-%COMP%]{border-left:1px solid var(--login-primary-color);border-bottom:1px solid var(--login-primary-color);border-top:1px solid var(--login-primary-color);border-radius:10px 0 0 10px}}[_nghost-%COMP%] .copyright[_ngcontent-%COMP%]{position:fixed;bottom:1.25rem;left:1.25rem;margin-left:20px}[_nghost-%COMP%] .copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}[_nghost-%COMP%] .version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:fixed;margin-right:18px}@media (max-width: 768px){[_nghost-%COMP%] .copyright[_ngcontent-%COMP%], [_nghost-%COMP%] .version[_ngcontent-%COMP%]{position:static;margin-top:10px}[_nghost-%COMP%] .copyright[_ngcontent-%COMP%]{justify-content:center}}[_nghost-%COMP%] div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}[_nghost-%COMP%] button.btn-social-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}[_nghost-%COMP%] .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}[_nghost-%COMP%] .fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}[_nghost-%COMP%] .version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}[_nghost-%COMP%] .version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}[_nghost-%COMP%] .version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}[_nghost-%COMP%] .domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}[_nghost-%COMP%] .btn-theme[_ngcontent-%COMP%]{background-color:var(--login-primary-color)!important;color:#fff!important;font-size:14px;height:36.6px;border-radius:7px}[_nghost-%COMP%] .text-theme[_ngcontent-%COMP%]{color:var(--login-primary-color)!important}[_nghost-%COMP%] .input-icon[_ngcontent-%COMP%]{font-size:15px}"]})}}return i})();var em=(()=>{class i{constructor(){this.authService=ae(un),this.router=ae(an),this.httpService=ae(cn),this.appVersion=Mi.version,this.changelogUrl=Mi.changelogUrl,this.route=ae(rn),this.roleService=ae(Xn),this.subdomain=Ee(""),this.domain=Ee(""),this.username=Ee("")}ngOnInit(){this.initNews()}ngAfterViewInit(){this.subdomain.set(localStorage.getItem("AUTH_SUB_DOMAIN")||""),this.username.set(localStorage.getItem("AUTH_USERNAME")||""),this.domain.set(localStorage.getItem("AUTH_DOMAIN")||".dealpos.co.id")}initNews(){let t=new nn().set("fetch","children:books").set("sort","sortOrder:asc");this.news$=this.httpService.get("https://changelog.dealpos.app/","umbraco/delivery/api/v2/content",{params:t}).pipe(wi(n=>n.items.map(r=>r.properties)),Xi(1))}onLogin(t){let n={SubDomain:t.subdomain+t.domain,Username:t.username,Password:t.password};Gi([this.authService.login(n),this.route.queryParams.pipe(wi(s=>s.returnUrl||"/"))]).subscribe(s=>{let r=s[1];if(r=="/"){if(this.roleService.report.finance){if(!this.roleService.coa.view){this.router.navigate(["/pages/journal/journal-entry"]);return}}else{this.router.navigate(["/pages/chart-of-account/account"]);return}this.router.navigate(["/pages/dashboard"])}else this.router.navigate([r])})}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=he({type:i,selectors:[["app-login"]],decls:2,vars:8,consts:[["colorTheme","#0a8754","title","DealPOS Accounting","subtitle","Streamline Your Accounting with Ease",3,"onLoginChange","news","subdomain","domain","username","version","changelogUrl"]],template:function(n,s){n&1&&(G(0,"app-login-ui",0),Dt(1,"async"),ie("onLoginChange",function(a){return s.onLogin(a)}),N()),n&2&&$("news",$t(1,6,s.news$))("subdomain",s.subdomain())("domain",s.domain())("username",s.username())("version",s.appVersion)("changelogUrl",s.changelogUrl)},dependencies:[we,tn,Ht,Mn,qn,xn,ni,Bn,Qn,Zn,oi,ss,Wn,jn,Gn,os,nr],encapsulation:2})}}return i})();export{em as LoginComponent};
@@ -1 +1 @@
1
- import{a as v,b as L}from"./chunk-3EHLCVDF.js";import"./chunk-VKPPDDEW.js";import{a as I,b as E}from"./chunk-CDXFHUDN.js";import"./chunk-PS4MFIBX.js";import{h as H}from"./chunk-DFBPVWWJ.js";import{b as N,c as G}from"./chunk-WNA57NZF.js";import{a as R,b as D}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{w as V,x as j}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import"./chunk-NHXCR55X.js";import"./chunk-RV7TVDYN.js";import{a as F}from"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{n as O,s as $}from"./chunk-VU532YE3.js";import{Bc as P,Cb as w,Cc as _,Kb as p,Mc as s,Nb as h,Nc as m,Qc as x,Ub as o,V as y,Vb as n,Wb as l,X as M,Z as b,_b as B,dc as C,ec as c,gb as a,h as T,ha as f,pa as g,qa as d,ra as S,s as u,sa as A,wb as k}from"./chunk-7IC4BZ6J.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let t=B();o(0,"div",3)(1,"p-button",4),C("onClick",function(){g(t);let r=c();return d(r.onFormatCOA())}),n(),o(2,"p-button",5),s(3,"async"),s(4,"async"),C("onClick",function(){g(t);let r=c();return d(r.onMigrateCoaAccount())}),n()()}if(i&2){let t=c();a(2),p("disabled",m(3,2,t.countInBooks$)!==0)("pTooltip",m(4,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),s(4,"async"),S(),o(5,"svg",8),l(6,"path",9),n(),A(),l(7,"app-migration-cards",10),s(8,"async"),n()()()),i&2){let t=c();h(_(12,q)),a(),h(_(13,q)),a(2),p("migrationCount",m(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),a(4),p("migrationCount",m(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var gt=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f(F),this.refresh$=new T(void 0),this.pageTitle="Chart of Account"}ngOnInit(){let t=this.refresh$.pipe(M(()=>this.migrateService.getCOACount()),b(e=>console.log("API response:",e)),y(1));this.countInPOS$=t.pipe(u(e=>Number(e.pos))),this.countInBooks$=t.pipe(u(e=>Number(e.books)))}onMigrateCoaAccount(){this.migrateService.migrateCoaAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormatCOA(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualCOA().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-chart-of-account"]],features:[P([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(e,r){e&1&&(o(0,"app-main-panel",2),w(1,J,5,6,"ng-template",null,0,x)(3,K,9,14,"ng-template",null,1,x),n()),e&2&&p("pageTitle",r.pageTitle)},dependencies:[H,$,O,L,j,V,E,I,D,R,G,N],encapsulation:2})}}return i})();export{gt as ChartOfAccountComponent};
1
+ import{a as v,b as L}from"./chunk-QC7LTJLT.js";import"./chunk-WZWAFKRU.js";import{a as I,b as E}from"./chunk-CDXFHUDN.js";import"./chunk-PS4MFIBX.js";import{h as H}from"./chunk-4IEK5V2S.js";import{b as N,c as G}from"./chunk-WNA57NZF.js";import{a as R,b as D}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{w as V,x as j}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import"./chunk-NHXCR55X.js";import"./chunk-A25JUSCO.js";import{a as F}from"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{n as O,s as $}from"./chunk-VU532YE3.js";import{Bc as P,Cb as w,Cc as _,Kb as p,Mc as s,Nb as h,Nc as m,Qc as x,Ub as o,V as y,Vb as n,Wb as l,X as M,Z as b,_b as B,dc as C,ec as c,gb as a,h as T,ha as f,pa as g,qa as d,ra as S,s as u,sa as A,wb as k}from"./chunk-7IC4BZ6J.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let t=B();o(0,"div",3)(1,"p-button",4),C("onClick",function(){g(t);let r=c();return d(r.onFormatCOA())}),n(),o(2,"p-button",5),s(3,"async"),s(4,"async"),C("onClick",function(){g(t);let r=c();return d(r.onMigrateCoaAccount())}),n()()}if(i&2){let t=c();a(2),p("disabled",m(3,2,t.countInBooks$)!==0)("pTooltip",m(4,4,t.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),l(3,"app-migration-cards",7),s(4,"async"),S(),o(5,"svg",8),l(6,"path",9),n(),A(),l(7,"app-migration-cards",10),s(8,"async"),n()()()),i&2){let t=c();h(_(12,q)),a(),h(_(13,q)),a(2),p("migrationCount",m(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),a(4),p("migrationCount",m(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var gt=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f(F),this.refresh$=new T(void 0),this.pageTitle="Chart of Account"}ngOnInit(){let t=this.refresh$.pipe(M(()=>this.migrateService.getCOACount()),b(e=>console.log("API response:",e)),y(1));this.countInPOS$=t.pipe(u(e=>Number(e.pos))),this.countInBooks$=t.pipe(u(e=>Number(e.books)))}onMigrateCoaAccount(){this.migrateService.migrateCoaAccount().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Migration Successful")})}onFormatCOA(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualCOA().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-chart-of-account"]],features:[P([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(e,r){e&1&&(o(0,"app-main-panel",2),w(1,J,5,6,"ng-template",null,0,x)(3,K,9,14,"ng-template",null,1,x),n()),e&2&&p("pageTitle",r.pageTitle)},dependencies:[H,$,O,L,j,V,E,I,D,R,G,N],encapsulation:2})}}return i})();export{gt as ChartOfAccountComponent};
@@ -1 +1 @@
1
- import{a as O,b as H}from"./chunk-3EHLCVDF.js";import"./chunk-VKPPDDEW.js";import{a as I,b as E}from"./chunk-CDXFHUDN.js";import"./chunk-PS4MFIBX.js";import{h as G}from"./chunk-DFBPVWWJ.js";import{b as D,c as N}from"./chunk-WNA57NZF.js";import{a as j,b as R}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{w as V,x as A}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import"./chunk-NHXCR55X.js";import"./chunk-RV7TVDYN.js";import{a as F}from"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{n as W,s as $}from"./chunk-VU532YE3.js";import{Bc as P,Cb as B,Cc as C,Kb as p,Mc as s,Nb as h,Nc as m,Qc as x,Ub as o,V as y,Vb as n,Wb as c,X as T,Z as S,_b as w,dc as _,ec as l,gb as a,h as v,ha as u,pa as g,qa as d,ra as b,s as f,sa as k,wb as M}from"./chunk-7IC4BZ6J.js";import"./chunk-YQFG5XE2.js";var L=()=>({height:"calc(100vh - 100px)"});function z(i,q){if(i&1){let e=w();o(0,"div",3)(1,"p-button",4),_("onClick",function(){g(e);let r=l();return d(r.onFormat())}),n(),o(2,"p-button",5),s(3,"async"),s(4,"async"),_("onClick",function(){g(e);let r=l();return d(r.migrateWriteoffOutlet())}),n()()}if(i&2){let e=l();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function J(i,q){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),s(4,"async"),b(),o(5,"svg",8),c(6,"path",9),n(),k(),c(7,"app-migration-cards",10),s(8,"async"),n()()()),i&2){let e=l();h(C(12,L)),a(),h(C(13,L)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var fe=(()=>{class i{constructor(){this.migrateService=u(O),this.toastr=u(F),this.refresh$=new v(void 0),this.pageTitle="Write-Off Outlet"}ngOnInit(){let e=this.refresh$.pipe(T(()=>this.migrateService.getWriteOffOutletAccountCount()),S(t=>console.log("API response:",t)),y(1));this.countInPOS$=e.pipe(f(t=>Number(t.pos))),this.countInBooks$=e.pipe(f(t=>Number(t.books)))}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatWriteOff().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-writeoff-outlet"]],features:[P([O])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(o(0,"app-main-panel",2),B(1,z,5,6,"ng-template",null,0,x)(3,J,9,14,"ng-template",null,1,x),n()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[G,$,W,E,I,R,j,N,D,H,A,V],encapsulation:2})}}return i})();export{fe as WriteOffOutletComponent};
1
+ import{a as O,b as H}from"./chunk-QC7LTJLT.js";import"./chunk-WZWAFKRU.js";import{a as I,b as E}from"./chunk-CDXFHUDN.js";import"./chunk-PS4MFIBX.js";import{h as G}from"./chunk-4IEK5V2S.js";import{b as D,c as N}from"./chunk-WNA57NZF.js";import{a as j,b as R}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{w as V,x as A}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import"./chunk-NHXCR55X.js";import"./chunk-A25JUSCO.js";import{a as F}from"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{n as W,s as $}from"./chunk-VU532YE3.js";import{Bc as P,Cb as B,Cc as C,Kb as p,Mc as s,Nb as h,Nc as m,Qc as x,Ub as o,V as y,Vb as n,Wb as c,X as T,Z as S,_b as w,dc as _,ec as l,gb as a,h as v,ha as u,pa as g,qa as d,ra as b,s as f,sa as k,wb as M}from"./chunk-7IC4BZ6J.js";import"./chunk-YQFG5XE2.js";var L=()=>({height:"calc(100vh - 100px)"});function z(i,q){if(i&1){let e=w();o(0,"div",3)(1,"p-button",4),_("onClick",function(){g(e);let r=l();return d(r.onFormat())}),n(),o(2,"p-button",5),s(3,"async"),s(4,"async"),_("onClick",function(){g(e);let r=l();return d(r.migrateWriteoffOutlet())}),n()()}if(i&2){let e=l();a(2),p("disabled",m(3,2,e.countInBooks$)!==0)("pTooltip",m(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function J(i,q){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),s(4,"async"),b(),o(5,"svg",8),c(6,"path",9),n(),k(),c(7,"app-migration-cards",10),s(8,"async"),n()()()),i&2){let e=l();h(C(12,L)),a(),h(C(13,L)),a(2),p("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var fe=(()=>{class i{constructor(){this.migrateService=u(O),this.toastr=u(F),this.refresh$=new v(void 0),this.pageTitle="Write-Off Outlet"}ngOnInit(){let e=this.refresh$.pipe(T(()=>this.migrateService.getWriteOffOutletAccountCount()),S(t=>console.log("API response:",t)),y(1));this.countInPOS$=e.pipe(f(t=>Number(t.pos))),this.countInBooks$=e.pipe(f(t=>Number(t.books)))}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatWriteOff().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=M({type:i,selectors:[["app-writeoff-outlet"]],features:[P([O])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(t,r){t&1&&(o(0,"app-main-panel",2),B(1,z,5,6,"ng-template",null,0,x)(3,J,9,14,"ng-template",null,1,x),n()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[G,$,W,E,I,R,j,N,D,H,A,V],encapsulation:2})}}return i})();export{fe as WriteOffOutletComponent};
@@ -1 +1 @@
1
- import{a as V,b as oe}from"./chunk-3EHLCVDF.js";import"./chunk-VKPPDDEW.js";import{a as te,b as ie}from"./chunk-N5W3C4LG.js";import"./chunk-BSFKUGYO.js";import"./chunk-MASZROSE.js";import{a as K,b as Q}from"./chunk-CDXFHUDN.js";import{a as ne,b as re}from"./chunk-4TW5N3R5.js";import"./chunk-NTCCFR6P.js";import"./chunk-W6IKDXXT.js";import{b as ee}from"./chunk-PS4MFIBX.js";import{h as $}from"./chunk-DFBPVWWJ.js";import"./chunk-WNA57NZF.js";import{a as Y,b as Z}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{w as U,x as X}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{e as G,j as H,w as q}from"./chunk-NHXCR55X.js";import"./chunk-RV7TVDYN.js";import{a as A}from"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{n as z,s as R}from"./chunk-VU532YE3.js";import{Bc as j,Cb as L,Cc as F,Ga as b,Kb as u,Mc as T,Nb as S,Nc as P,Qc as M,Ub as r,V as E,Vb as o,Wb as C,X as B,Z as W,_b as h,dc as f,ec as m,gb as s,h as J,ha as x,pa as l,qa as p,qc as _,ra as I,s as y,sa as N,vc as c,wb as O,wc as g,xc as d}from"./chunk-7IC4BZ6J.js";import{a as D}from"./chunk-YQFG5XE2.js";var ae=()=>({height:"calc(100vh - 100px)"});function le(a,v){if(a&1){let t=h();r(0,"div",4)(1,"p-button",5),f("onClick",function(){l(t);let e=m();return p(e.onFormat())}),o(),r(2,"p-button",6),f("onClick",function(){l(t);let e=m();return p(e.openMigrateDialog())}),o()()}}function pe(a,v){if(a&1){let t=h();r(0,"div",7)(1,"div",8)(2,"label",9),_(3,"From"),o(),r(4,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().From,e)||(n.filter().From=e),p(e)}),o()(),r(5,"div",8)(6,"label",9),_(7,"To"),o(),r(8,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().To,e)||(n.filter().To=e),p(e)}),o()(),r(9,"div",8)(10,"label",9),_(11,"Page Number"),o(),r(12,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageNumber,e)||(n.filter().PageNumber=e),p(e)}),o()(),r(13,"div",8)(14,"label",9),_(15,"Page Size"),o(),r(16,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageSize,e)||(n.filter().PageSize=e),p(e)}),o()()()}if(a&2){let t=m();s(4),u("showIcon",!0),c("ngModel",t.filter().From),s(4),u("showIcon",!0),c("ngModel",t.filter().To),s(4),c("ngModel",t.filter().PageNumber),s(4),c("ngModel",t.filter().PageSize)}}function me(a,v){if(a&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",12),C(3,"app-migration-cards",13),T(4,"async"),I(),r(5,"svg",14),C(6,"path",15),o(),N(),C(7,"app-migration-cards",16),T(8,"async"),o()()()),a&2){let t=m();S(F(12,ae)),s(),S(F(13,ae)),s(2),u("migrationCount",P(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),s(4),u("migrationCount",P(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var We=(()=>{class a{constructor(){this.migrateService=x(V),this.refresh$=new J(void 0),this.toastr=x(A),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:45e3,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null}ngOnInit(){let t=this.refresh$.pipe(B(()=>this.migrateService.getManualJournalCount()),E(1));this.countInPOS$=t.pipe(y(i=>Number(i.pos))),this.countInBooks$=t.pipe(y(i=>Number(i.books)))}openMigrateDialog(){this.previousFilter=D({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(W(()=>{this.isFilterDialogOpen.update(t=>!t),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275cmp=O({type:a,selectors:[["app-manual-journal"]],features:[j([V])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,e){if(i&1){let n=h();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(n),p(e.onMigrate())}),d("isDialogFilterVisibleChange",function(w){return l(n),g(e.isFilterDialogOpen,w)||(e.isFilterDialogOpen=w),p(w)}),f("filterCanceled",function(){return l(n),p(e.onFilterCanceled())}),L(1,le,3,0,"ng-template",null,0,M)(3,pe,17,6,"ng-template",null,1,M)(5,me,9,14,"ng-template",null,2,M),o()}i&2&&(u("pageTitle",e.pageTitle),c("isDialogFilterVisible",e.isFilterDialogOpen))},dependencies:[$,R,z,ee,X,U,Q,K,Z,Y,oe,ie,te,q,G,H,re,ne],encapsulation:2})}}return a})();export{We as ManualJournalComponent};
1
+ import{a as V,b as oe}from"./chunk-QC7LTJLT.js";import"./chunk-WZWAFKRU.js";import{a as te,b as ie}from"./chunk-N5W3C4LG.js";import"./chunk-BSFKUGYO.js";import"./chunk-MASZROSE.js";import{a as K,b as Q}from"./chunk-CDXFHUDN.js";import{a as ne,b as re}from"./chunk-4TW5N3R5.js";import"./chunk-NTCCFR6P.js";import"./chunk-W6IKDXXT.js";import{b as ee}from"./chunk-PS4MFIBX.js";import{h as $}from"./chunk-4IEK5V2S.js";import"./chunk-WNA57NZF.js";import{a as Y,b as Z}from"./chunk-MUFRLGLG.js";import"./chunk-B5RBLDGE.js";import"./chunk-76QGHXHT.js";import{w as U,x as X}from"./chunk-MDNCQKUT.js";import"./chunk-4V6IW37R.js";import{e as G,j as H,w as q}from"./chunk-NHXCR55X.js";import"./chunk-A25JUSCO.js";import{a as A}from"./chunk-R3JWL2J6.js";import"./chunk-F2X3VGZZ.js";import{n as z,s as R}from"./chunk-VU532YE3.js";import{Bc as j,Cb as L,Cc as F,Ga as b,Kb as u,Mc as T,Nb as S,Nc as P,Qc as M,Ub as r,V as E,Vb as o,Wb as C,X as B,Z as W,_b as h,dc as f,ec as m,gb as s,h as J,ha as x,pa as l,qa as p,qc as _,ra as I,s as y,sa as N,vc as c,wb as O,wc as g,xc as d}from"./chunk-7IC4BZ6J.js";import{a as D}from"./chunk-YQFG5XE2.js";var ae=()=>({height:"calc(100vh - 100px)"});function le(a,v){if(a&1){let t=h();r(0,"div",4)(1,"p-button",5),f("onClick",function(){l(t);let e=m();return p(e.onFormat())}),o(),r(2,"p-button",6),f("onClick",function(){l(t);let e=m();return p(e.openMigrateDialog())}),o()()}}function pe(a,v){if(a&1){let t=h();r(0,"div",7)(1,"div",8)(2,"label",9),_(3,"From"),o(),r(4,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().From,e)||(n.filter().From=e),p(e)}),o()(),r(5,"div",8)(6,"label",9),_(7,"To"),o(),r(8,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().To,e)||(n.filter().To=e),p(e)}),o()(),r(9,"div",8)(10,"label",9),_(11,"Page Number"),o(),r(12,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageNumber,e)||(n.filter().PageNumber=e),p(e)}),o()(),r(13,"div",8)(14,"label",9),_(15,"Page Size"),o(),r(16,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageSize,e)||(n.filter().PageSize=e),p(e)}),o()()()}if(a&2){let t=m();s(4),u("showIcon",!0),c("ngModel",t.filter().From),s(4),u("showIcon",!0),c("ngModel",t.filter().To),s(4),c("ngModel",t.filter().PageNumber),s(4),c("ngModel",t.filter().PageSize)}}function me(a,v){if(a&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",12),C(3,"app-migration-cards",13),T(4,"async"),I(),r(5,"svg",14),C(6,"path",15),o(),N(),C(7,"app-migration-cards",16),T(8,"async"),o()()()),a&2){let t=m();S(F(12,ae)),s(),S(F(13,ae)),s(2),u("migrationCount",P(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),s(4),u("migrationCount",P(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var We=(()=>{class a{constructor(){this.migrateService=x(V),this.refresh$=new J(void 0),this.toastr=x(A),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:45e3,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null}ngOnInit(){let t=this.refresh$.pipe(B(()=>this.migrateService.getManualJournalCount()),E(1));this.countInPOS$=t.pipe(y(i=>Number(i.pos))),this.countInBooks$=t.pipe(y(i=>Number(i.books)))}openMigrateDialog(){this.previousFilter=D({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(W(()=>{this.isFilterDialogOpen.update(t=>!t),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275cmp=O({type:a,selectors:[["app-manual-journal"]],features:[j([V])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,e){if(i&1){let n=h();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(n),p(e.onMigrate())}),d("isDialogFilterVisibleChange",function(w){return l(n),g(e.isFilterDialogOpen,w)||(e.isFilterDialogOpen=w),p(w)}),f("filterCanceled",function(){return l(n),p(e.onFilterCanceled())}),L(1,le,3,0,"ng-template",null,0,M)(3,pe,17,6,"ng-template",null,1,M)(5,me,9,14,"ng-template",null,2,M),o()}i&2&&(u("pageTitle",e.pageTitle),c("isDialogFilterVisible",e.isFilterDialogOpen))},dependencies:[$,R,z,ee,X,U,Q,K,Z,Y,oe,ie,te,q,G,H,re,ne],encapsulation:2})}}return a})();export{We as ManualJournalComponent};