dealpos 25.41.3 → 25.41.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{chunk-MWQQC4XE.js → chunk-24QKQISF.js} +1 -1
- package/browser/{chunk-BWWKUWPU.js → chunk-2BNZCUNP.js} +1 -1
- package/browser/{chunk-XU5SOTZS.js → chunk-2EXFDYJN.js} +1 -1
- package/browser/{chunk-ZEYY4NI2.js → chunk-2J7JBH5Q.js} +1 -1
- package/browser/{chunk-G6ZQA47T.js → chunk-2MVRUWW3.js} +1 -1
- package/browser/{chunk-5FMYOBKP.js → chunk-2QXPXRI6.js} +1 -1
- package/browser/{chunk-ILF7FISN.js → chunk-2U6W2RNU.js} +1 -1
- package/browser/{chunk-3HGQ6VA3.js → chunk-2XAVDG2R.js} +1 -1
- package/browser/{chunk-3C6ELYCG.js → chunk-36CZUBXB.js} +1 -1
- package/browser/{chunk-CEWIZH2D.js → chunk-3D3ELK7I.js} +1 -1
- package/browser/{chunk-XUVY2IO6.js → chunk-3FE73ETM.js} +1 -1
- package/browser/{chunk-MSKOV2RA.js → chunk-3ITPIAO7.js} +1 -1
- package/browser/{chunk-HV6ZFQAQ.js → chunk-3UUHT4HG.js} +1 -1
- package/browser/{chunk-HUMRIGHZ.js → chunk-46WFGTJC.js} +1 -1
- package/browser/{chunk-GPCFKZB6.js → chunk-4XFE7DMP.js} +2 -2
- package/browser/{chunk-ZEDVQYXH.js → chunk-4XFOSHBI.js} +1 -1
- package/browser/{chunk-N5QWMN2M.js → chunk-5POWTQ67.js} +1 -1
- package/browser/{chunk-L2PLXSAS.js → chunk-5YBGDA3S.js} +1 -1
- package/browser/{chunk-X44SOZNW.js → chunk-62VDXLDP.js} +1 -1
- package/browser/{chunk-5BY3OQNX.js → chunk-66BLMMOK.js} +1 -1
- package/browser/{chunk-KZTKYVZF.js → chunk-6JJK75CC.js} +1 -1
- package/browser/{chunk-VV7L7X33.js → chunk-74QSXJ42.js} +1 -1
- package/browser/{chunk-PZRVUFEQ.js → chunk-757ORJKN.js} +2 -2
- package/browser/{chunk-45BASVRZ.js → chunk-7G4UPOQP.js} +1 -1
- package/browser/{chunk-BAORXMVG.js → chunk-A5XBD65B.js} +1 -1
- package/browser/{chunk-EUZWX7OP.js → chunk-A6ZPTR67.js} +1 -1
- package/browser/{chunk-EV7CDK2S.js → chunk-AC24RKU6.js} +1 -1
- package/browser/{chunk-J3C5CJEH.js → chunk-AJHV3SOU.js} +1 -1
- package/browser/{chunk-SFCQJQF3.js → chunk-ATAC2AND.js} +1 -1
- package/browser/{chunk-SMW5YQZJ.js → chunk-BH4ZE4CF.js} +1 -1
- package/browser/{chunk-BAXQFKT2.js → chunk-BYEI3PJ6.js} +1 -1
- package/browser/{chunk-DNLMIUJF.js → chunk-C3WNOC5F.js} +1 -1
- package/browser/{chunk-ET53BRO2.js → chunk-CIR6MTD4.js} +1 -1
- package/browser/{chunk-NKHFNNJE.js → chunk-CKRE4XBG.js} +2 -2
- package/browser/{chunk-NHP3HQCR.js → chunk-D32G7TJK.js} +1 -1
- package/browser/{chunk-B73NC3X2.js → chunk-DAMKEWK6.js} +1 -1
- package/browser/{chunk-EPBMDUPY.js → chunk-DF2W7YLH.js} +1 -1
- package/browser/{chunk-4DT4J5SA.js → chunk-DMK6CUHM.js} +1 -1
- package/browser/{chunk-7USMFPWJ.js → chunk-DVOCY3CZ.js} +1 -1
- package/browser/{chunk-4E2C3JC6.js → chunk-E3SP7B7S.js} +1 -1
- package/browser/{chunk-2E4PNSTT.js → chunk-EDZXH4US.js} +1 -1
- package/browser/{chunk-DINWVJP7.js → chunk-EGOF4SFE.js} +1 -1
- package/browser/{chunk-MACI2QKN.js → chunk-EGRPFCSJ.js} +2 -2
- package/browser/{chunk-AMNMXSBW.js → chunk-EKOCQO55.js} +1 -1
- package/browser/{chunk-YQEL63SF.js → chunk-ESHN7M3P.js} +1 -1
- package/browser/{chunk-ZUQOVN3G.js → chunk-FKYQUS5M.js} +1 -1
- package/browser/{chunk-Q6WPU7FA.js → chunk-GBAAG52Z.js} +1 -1
- package/browser/{chunk-UESUOHI6.js → chunk-GLQBFUNO.js} +1 -1
- package/browser/{chunk-FUQBPPS7.js → chunk-GVGUEGZI.js} +1 -1
- package/browser/{chunk-HKHEVZ4F.js → chunk-HS3NKKBN.js} +1 -1
- package/browser/chunk-I3O4QZ4X.js +1 -0
- package/browser/{chunk-M3WKPJ2B.js → chunk-I4I6FJDX.js} +1 -1
- package/browser/{chunk-LCACDZMC.js → chunk-INWN4VE6.js} +1 -1
- package/browser/{chunk-T4K6XLBG.js → chunk-JJ4V6TS4.js} +1 -1
- package/browser/{chunk-24OZA3GF.js → chunk-K4P3FNHD.js} +1 -1
- package/browser/{chunk-V7USIKBO.js → chunk-K5AWJ3PF.js} +1 -1
- package/browser/{chunk-JVR63RQB.js → chunk-K6YXV6DF.js} +1 -1
- package/browser/{chunk-6ZRIMZHA.js → chunk-KEUOT5UT.js} +1 -1
- package/browser/{chunk-UCIQAWIS.js → chunk-KHIJN7MP.js} +14 -14
- package/browser/{chunk-SWF5BE5P.js → chunk-KMO6SBV2.js} +1 -1
- package/browser/{chunk-6YPVUOD7.js → chunk-KST6UNFB.js} +1 -1
- package/browser/{chunk-NPTTEU4B.js → chunk-LE5ZGH7A.js} +1 -1
- package/browser/{chunk-5DDIIEIO.js → chunk-LFRP6C5Y.js} +1 -1
- package/browser/{chunk-ABSSU2NG.js → chunk-LIVWB266.js} +1 -1
- package/browser/{chunk-PJHIUSNN.js → chunk-LJW6HW5T.js} +1 -1
- package/browser/{chunk-7KSMBMSW.js → chunk-LX2RVE4Q.js} +1 -1
- package/browser/{chunk-O3EERFQN.js → chunk-MEMBBEAI.js} +1 -1
- package/browser/{chunk-OGM24Q2D.js → chunk-MPJPWARV.js} +1 -1
- package/browser/{chunk-IVUIJMPR.js → chunk-NOEPKA4W.js} +1 -1
- package/browser/{chunk-6CJCT6YT.js → chunk-NRDJEOWR.js} +1 -1
- package/browser/{chunk-C5J6BILV.js → chunk-NTIVPZGS.js} +2 -2
- package/browser/{chunk-LDYXX7R3.js → chunk-NVGKWF2G.js} +1 -1
- package/browser/{chunk-5YEXNQCT.js → chunk-NXN7NE47.js} +1 -1
- package/browser/{chunk-UZFW2WNI.js → chunk-O5RZTQKV.js} +1 -1
- package/browser/{chunk-Z7LRKY4R.js → chunk-OGI634A2.js} +1 -1
- package/browser/{chunk-YHDEAPG3.js → chunk-OINGZOF4.js} +1 -1
- package/browser/{chunk-WRHYTFLY.js → chunk-OK4CL2M4.js} +1 -1
- package/browser/{chunk-R5IO2SN4.js → chunk-P6TNAQ2F.js} +1 -1
- package/browser/{chunk-3VQLYVVB.js → chunk-PRGXQYOR.js} +1 -1
- package/browser/{chunk-2DQBDX5E.js → chunk-QKCOYSSN.js} +1 -1
- package/browser/{chunk-2F5STFEV.js → chunk-QTXCHVAR.js} +1 -1
- package/browser/{chunk-Y3CUYCSX.js → chunk-RB6SQ4EV.js} +1 -1
- package/browser/{chunk-MVI65ECT.js → chunk-RNILXGHZ.js} +1 -1
- package/browser/{chunk-GAZ6XT73.js → chunk-RTIMT7MB.js} +1 -1
- package/browser/{chunk-CSAGSFL3.js → chunk-S32IOJJR.js} +1 -1
- package/browser/{chunk-4VQWWUZQ.js → chunk-SETNDGZG.js} +1 -1
- package/browser/{chunk-W2NHEKCW.js → chunk-SGIO47PC.js} +1 -1
- package/browser/{chunk-3XIXVYS4.js → chunk-SW2DBPIJ.js} +1 -1
- package/browser/{chunk-5TV4QYNO.js → chunk-T6L7V6VB.js} +1 -1
- package/browser/{chunk-YYR3XEAQ.js → chunk-T7EVNQJZ.js} +1 -1
- package/browser/{chunk-BJQ54S6Z.js → chunk-T7JKTLRY.js} +2 -2
- package/browser/{chunk-EPYFG6SH.js → chunk-T7UL42MO.js} +1 -1
- package/browser/{chunk-JJK4XCMN.js → chunk-TBQRBWDN.js} +1 -1
- package/browser/{chunk-DOTR5PYR.js → chunk-TDFRMUQQ.js} +1 -1
- package/browser/{chunk-WIB47ZGF.js → chunk-TDG64PZU.js} +1 -1
- package/browser/{chunk-S4FLFLTR.js → chunk-TU4DJ5OY.js} +1 -1
- package/browser/{chunk-ZKO7GVNO.js → chunk-TXL4UCFA.js} +1 -1
- package/browser/{chunk-GA554R72.js → chunk-U4QA2337.js} +1 -1
- package/browser/{chunk-BYDCQMR7.js → chunk-UEKHGOJL.js} +1 -1
- package/browser/{chunk-BT6BH634.js → chunk-ULF57NM6.js} +1 -1
- package/browser/{chunk-RDWRQIJV.js → chunk-UMLR3NXV.js} +1 -1
- package/browser/{chunk-KLNPXOJ5.js → chunk-UNFJ7644.js} +1 -1
- package/browser/{chunk-3XMWVJ2L.js → chunk-V5O3E5XQ.js} +1 -1
- package/browser/{chunk-WA5AGHFF.js → chunk-V7RYZJVN.js} +1 -1
- package/browser/{chunk-7KXMZBQB.js → chunk-V7XF5OHI.js} +1 -1
- package/browser/{chunk-4CRQAT4Y.js → chunk-VF6HKAFR.js} +1 -1
- package/browser/chunk-VKT5PPFS.js +1 -0
- package/browser/{chunk-6ZEEVCRE.js → chunk-W6BB4ADK.js} +1 -1
- package/browser/{chunk-AD5C5J25.js → chunk-WIRVWYB3.js} +1 -1
- package/browser/{chunk-6WKUSM4P.js → chunk-WS5EBPC2.js} +1 -1
- package/browser/{chunk-LOMNHHBV.js → chunk-WUBF7SHA.js} +1 -1
- package/browser/{chunk-JSMI5ZR4.js → chunk-WVFDCBPZ.js} +2 -2
- package/browser/{chunk-EHW56RWW.js → chunk-XAZ4U5H6.js} +2 -2
- package/browser/{chunk-PVWFJKSW.js → chunk-XR7Q6MPP.js} +2 -2
- package/browser/{chunk-YMA57E2M.js → chunk-Y2V6RDWT.js} +2 -2
- package/browser/{chunk-6LQ6DVZN.js → chunk-Y726HBE5.js} +1 -1
- package/browser/{chunk-Z2U7HIL5.js → chunk-YG2JH54R.js} +1 -1
- package/browser/{chunk-GYJUMROD.js → chunk-YK6QAFHR.js} +1 -1
- package/browser/{chunk-QTEEAYLA.js → chunk-YUZ32SM6.js} +1 -1
- package/browser/chunk-YWZWCZZB.js +1 -0
- package/browser/{chunk-VFFCV3EX.js → chunk-YXVAJ7AI.js} +1 -1
- package/browser/{chunk-SN3DTCGO.js → chunk-YYZIKSOW.js} +1 -1
- package/browser/{chunk-3CCLSY4U.js → chunk-Z3VGSV3R.js} +1 -1
- package/browser/{chunk-XXCIMR5I.js → chunk-Z3VZQOTA.js} +1 -1
- package/browser/{chunk-YAO3JFMU.js → chunk-ZEWGIKVI.js} +1 -1
- package/browser/chunk-ZFQRWOU2.js +1 -0
- package/browser/{chunk-WEAIMPRM.js → chunk-ZJDIZNTX.js} +1 -1
- package/browser/{chunk-4SOJX57D.js → chunk-ZJMIEPWF.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/{main-JSZQET37.js → main-YLCIT32A.js} +2 -2
- package/package.json +1 -1
- package/browser/chunk-6MYRWSZC.js +0 -1
- package/browser/chunk-ITQTUFNF.js +0 -1
- package/browser/chunk-JQ5JMDRA.js +0 -1
- package/browser/chunk-Q3AG7LWW.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as Q}from"./chunk-
|
|
1
|
+
import{b as Q}from"./chunk-5YBGDA3S.js";import"./chunk-2EXFDYJN.js";import{d as ce,e as se}from"./chunk-OGI634A2.js";import"./chunk-YYZIKSOW.js";import"./chunk-3RK6DDJD.js";import"./chunk-7UFQPOGN.js";import"./chunk-QTXCHVAR.js";import"./chunk-DWOLAWQN.js";import"./chunk-RB6SQ4EV.js";import"./chunk-T2PXIPKB.js";import"./chunk-QMCAG2HX.js";import{a as le,b as me}from"./chunk-NHTMJTLV.js";import{b as te}from"./chunk-2U6W2RNU.js";import{a as X}from"./chunk-U4QA2337.js";import"./chunk-YUZ32SM6.js";import{a as ne}from"./chunk-NDM2ODJP.js";import{d as re,e as pe}from"./chunk-ATAC2AND.js";import"./chunk-OK4CL2M4.js";import"./chunk-VF6HKAFR.js";import"./chunk-UAI7BPPY.js";import"./chunk-6IW4MVP2.js";import{b as ie}from"./chunk-Y726HBE5.js";import"./chunk-OI2RWAOV.js";import"./chunk-7LXPGNYF.js";import"./chunk-CN5SHMHF.js";import"./chunk-3M5M2T4L.js";import"./chunk-7G4UPOQP.js";import"./chunk-XOQ4SW2R.js";import{G as ae,N as oe}from"./chunk-ZJMIEPWF.js";import{d as $,e as ee}from"./chunk-3GV7FUAX.js";import{g as Z}from"./chunk-6BL2JKZG.js";import"./chunk-REQUYIUO.js";import"./chunk-T2PMKO3M.js";import"./chunk-2FWFPV5I.js";import"./chunk-OE7PM4Y4.js";import{F as U,h as q,o as K}from"./chunk-CB33ZMNF.js";import"./chunk-OINGZOF4.js";import"./chunk-I4I6FJDX.js";import{d as z}from"./chunk-TYBAV5LT.js";import"./chunk-QKCOYSSN.js";import{$a as p,Bc as v,Eb as V,Fc as O,Gb as L,Hb as A,Ib as n,Jb as i,Kb as F,Kc as j,Lb as y,Mb as h,Ob as D,Qb as I,Rb as m,Rd as R,Td as H,Vd as J,Yd as Y,Zc as B,db as C,ec as l,fc as x,jc as _,jd as N,kb as E,kc as d,lc as u,na as w,ob as P,qb as f,qc as W,rc as k,va as s,vb as c,wa as g,wd as G,zc as b}from"./chunk-DJOHANFC.js";import{a as T,b as M}from"./chunk-7DCB7DB2.js";var de=()=>["/menu/Contacts/Contact/Customers/Info"],ue=o=>({ID:o});function Se(o,S){if(o&1){let e=D();n(0,"button",9),I("click",function(){s(e);let t=m(2);return g(t.openExportModal())}),F(1,"i",10),l(2," Export "),i()}}function Ce(o,S){if(o&1){let e=D();n(0,"div")(1,"div",11)(2,"h6"),l(3,"Status"),i(),n(4,"ng-select",12),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.contactState,t)||(a.contactState=t),g(t)}),i(),n(5,"h6"),l(6,"Outlet Sign Up"),i(),n(7,"ng-select",13),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.CreatorEntityID,t)||(a.pageData.Filter.CreatorEntityID=t),g(t)}),i(),n(8,"h6"),l(9,"Group"),i(),n(10,"ng-select",14),u("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.GroupID,t)||(a.pageData.Filter.GroupID=t),g(t)}),i(),n(11,"h6"),l(12,"Join Date Range"),i(),n(13,"div")(14,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.From,t)||(a.pageData.Filter.From=t),g(t)}),i()(),n(15,"div",16)(16,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.To,t)||(a.pageData.Filter.To=t),g(t)}),i()(),n(17,"h6"),l(18,"Sign In Date Range"),i(),n(19,"div")(20,"datepicker",15),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignFrom,t)||(a.pageData.Filter.SignFrom=t),g(t)}),i()(),n(21,"div",16)(22,"datepicker",17),u("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignTo,t)||(a.pageData.Filter.SignTo=t),g(t)}),i()()()()}if(o&2){let e=m(2);p(4),_("ngModel",e.contactState),c("items",e.pageData.Options.ContactStates)("clearable",!1),p(3),_("ngModel",e.pageData.Filter.CreatorEntityID),c("items",e.pageData.Options.Entities),p(3),_("ngModel",e.pageData.Filter.GroupID),c("items",e.pageData.Options.Groups),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.From),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.To),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignFrom),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignTo)}}function xe(o,S){if(o&1&&(n(0,"tr")(1,"th")(2,"a",28),l(3),i()(),n(4,"td"),l(5),i(),n(6,"td"),l(7),i(),n(8,"td"),l(9),i(),n(10,"td"),l(11),b(12,"IsMinDate"),i(),n(13,"td"),l(14),b(15,"IsMinDate"),i()()),o&2){let e=S.$implicit;p(2),c("routerLink",W(14,de))("queryParams",k(15,ue,e.ID)),p(),x(e.Name),p(2),x(e.Code),p(2),x(e.Mobile),p(2),x(e.Email),p(2),x(v(12,8,e.JoinDate,"dd MMM yyyy")),p(3),x(v(15,11,e.AppLastSignIn,"dd MMM yyyy HH:mm"))}}function fe(o,S){if(o&1){let e=D();n(0,"div",29)(1,"POS-complex-pagination",30),I("jumpToPage",function(){s(e);let t=m(3);return g(t.getListData())})("previousPage",function(){s(e);let t=m(3);return g(t.getListData())})("nextPage",function(){s(e);let t=m(3);return g(t.getListData())}),i()()}if(o&2){let e=m(3);p(),c("total",e.data.Data.length)("pageData",e.pageData)}}function De(o,S){if(o&1&&(y(0,18),n(1,"div",19)(2,"div",20)(3,"table",21)(4,"thead",22)(5,"tr",23)(6,"th"),l(7,"Name"),i(),n(8,"th",24),l(9,"Code"),i(),n(10,"th",24),l(11,"Mobile"),i(),n(12,"th",25),l(13,"Email"),i(),n(14,"th",26),l(15,"Join Date"),i(),n(16,"th",24),l(17,"Last Sign In"),i()()(),n(18,"tbody"),L(19,xe,16,17,"tr",null,V),i()()(),f(21,fe,2,2,"div",27),i(),h()),o&2){let e=m(2);p(19),A(e.data.Data),p(2),c("ngIf",e.pageData.Filter)}}function ye(o,S){if(o&1){let e=D();n(0,"mainpanel-cmp",2),u("textChange",function(t){s(e);let a=m();return d(a.pageData.Filter.Text,t)||(a.pageData.Filter.Text=t),g(t)}),I("onSubmit",function(){s(e);let t=m();return g(t.searchFromPageOne())}),u("filterChange",function(t){s(e);let a=m();return d(a.pageData.Filter,t)||(a.pageData.Filter=t),g(t)}),y(1,3),n(2,"a",4),F(3,"i",5),l(4,"Get Your Brand Loyalty App "),i(),f(5,Se,3,0,"button",6),h(),y(6,7),f(7,Ce,23,15,"ng-template",null,0,O),h(),f(9,De,22,1,"ng-container",8),i()}if(o&2){let e=m();c("pageData",e.menuData),_("text",e.pageData.Filter.Text),c("isFilterOnDropdown",!1),_("filter",e.pageData.Filter),p(5),c("ngIf",e.role.global.Export),p(4),c("ngIf",e.data&&e.data.Data)}}var ge=class o extends X{constructor(e,r,t,a,_e,he){super(e,r,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",_e);this.httpService=r;this.csvConverter=t;this.matDialog=a;this.role=he}cdr=w(j);title=w(G);contactState;ngOnInit(){let e=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(e.BrandName+" POS | App Sign In")}postInit(e){this.menuData.H="App Sign In",this.cdr.markForCheck()}preInitList(){this.contactState=this.pageData.Filter.ContactStateID,this.pageData.Options.ContactStates=[{Key:0,Value:"All"},...this.pageData.Options.ContactStates],this.pageData.Filter=M(T({},this.pageData.Filter),{SignFrom:this.pageData.Filter.SignFrom?this.pageData.Filter.SignFrom:"0001-01-01T00:00:00",SignTo:this.pageData.Filter.SignTo?this.pageData.Filter.SignTo:"0001-01-01T00:00:00"})}openExportModal(){this.matDialog.open(te,{data:{title:"Loyalty App Last Sign In",exportTypes:[{ID:"ContactExport/LoyaltyLastSignIn",Value:"Default",FileName:"LoyaltyAppLastSignIn"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preGetList(){this.pageData.Filter.ContactStateID=this.contactState==0?null:this.contactState}static \u0275fac=function(r){return new(r||o)(C(ie),C(Y),C(ne),C(Z),C(J),C(z))};static \u0275cmp=E({type:o,selectors:[["pos-app-sign-in"]],features:[P],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["target","_blank","href","https://www.dealpos.co.id/tour/customer-loyalty-program",1,"btn","btn-outline-secondary"],[1,"fa-solid","fa-mobile","me-1"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"],4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose Status",3,"ngModelChange","ngModel","items","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Outlet...",3,"ngModelChange","ngModel","items"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","150px"],[2,"width","200px"],[2,"width","100px"],["class","mt-2",4,"ngIf"],[1,"fw-normal",3,"routerLink","queryParams"],[1,"mt-2"],["api","Contact/CustomerAppSignInCount",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(r,t){r&1&&f(0,ye,10,6,"mainpanel-cmp",1),r&2&&c("ngIf",t.pageData.Filter)},dependencies:[pe,re,se,ce,N,B,U,q,K,H,R,Q,ee,$,me,le,oe,ae],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{ge as AppSignInComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ee,b as te,c as ie}from"./chunk-
|
|
1
|
+
import{a as ee,b as te,c as ie}from"./chunk-VF6HKAFR.js";import{a as le,c as ge}from"./chunk-CN5SHMHF.js";import{u as pe,v as se,w as me}from"./chunk-7G4UPOQP.js";import{b as Y,c as Z}from"./chunk-XOQ4SW2R.js";import{a as ae,d as re}from"./chunk-3GV7FUAX.js";import{e as oe,f as ne}from"./chunk-6BL2JKZG.js";import{F as Q,c as $,h as q,o as K}from"./chunk-CB33ZMNF.js";import{$a as r,Ac as E,Ib as l,Jb as p,Kb as u,Lb as b,Mb as M,Ob as T,Qb as C,Rb as g,Y as L,Yc as z,Yd as S,Zc as B,aa as P,cd as G,d as F,db as _,ec as m,fa as O,fc as I,gc as X,gd as W,hc as H,ja as V,jc as R,jd as U,kb as k,kc as N,lc as D,ma as J,qb as x,t as y,va as f,vb as s,wa as h,zb as j,zc as v}from"./chunk-DJOHANFC.js";import{a as c,b as d}from"./chunk-7DCB7DB2.js";var w=class o{constructor(t){this.http=t}exportCSV(t,e){let i=d(c({},e),{Export:!0});this.downloadFile(t,i)}exportCustom(t,e,i){let a=d(c({},e),{Export:!0,FormatType:i});this.downloadFile(t,a)}exportCSVIds(t,e){this.downloadFile(t,e)}exportXlsx(t,e){let i=d(c({},e),{FormatType:1});this.downloadFile(t,i)}downloadFile(t,e){this.http.postFile(`/api/${t}`,e).subscribe(i=>{let a=window.URL.createObjectURL(i.file),n=document.createElement("a");n.download=this.getFilenameFromContentDisposition(i.title),n.href=a,n.click(),URL.revokeObjectURL(a),n.remove()})}getFilenameFromContentDisposition(t){let i=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(t);return i!=null&&i[1]?i[1].replace(/['"]/g,""):""}exportJSON(t,e,i){this.http.post(`/api/${t}`,i).subscribe(a=>{var n=JSON.stringify(a,null," ");this.downloadJSON(n,e+".json")})}downloadJSON(t,e){var i=new Blob([t],{type:"data:application/json;charset=utf-8"}),a=document.createElement("a");a.setAttribute("href",window.URL.createObjectURL(i)),a.setAttribute("download",e),document.body.appendChild(a),a.click(),document.body.removeChild(a)}static \u0275fac=function(e){return new(e||o)(J(S))};static \u0275prov=V({token:o,factory:o.\u0275fac,providedIn:"root"})};function fe(o,t){if(o&1&&(l(0,"div",15),m(1),p()),o&2){let e=t.item;s("matTooltip",e.Tooltip),r(),X(" ",e.Value," ")}}function he(o,t){if(o&1){let e=T();b(0),l(1,"div",11),m(2," Columns "),p(),l(3,"div",12)(4,"ng-select",13),D("ngModelChange",function(a){f(e);let n=g();return N(n.exportType,a)||(n.exportType=a),h(a)}),C("change",function(a){f(e);let n=g();return h(n.onChangeExportType(a))}),x(5,fe,2,2,"ng-template",14),p()(),M()}if(o&2){let e=g();r(4),s("items",e.exportTypes),R("ngModel",e.exportType)}}function _e(o,t){o&1&&(l(0,"mat-button-toggle",16),u(1,"i",17),m(2,"CSV"),p())}function Ce(o,t){o&1&&(l(0,"mat-button-toggle",18),u(1,"i",19),m(2,"XLSX"),p())}function ye(o,t){if(o&1&&(l(0,"mat-button-toggle",21),u(1,"i",22),m(2),p()),o&2){let e=g().$implicit;s("value",e.value),r(),j(e.icon),r(),I(e.label)}}function be(o,t){if(o&1&&(b(0),x(1,ye,3,4,"mat-button-toggle",20),M()),o&2){let e=g();r(),s("ngIf",e.allowTxtOption()||e.isTextOnly())}}function Me(o,t){o&1&&(l(0,"mat-button-toggle",23),u(1,"i",24),m(2,"JSON"),p())}function Te(o,t){if(o&1){let e=T();l(0,"i",32),C("click",function(){f(e);let a=g(3);return h(a.onGetAllDataLength())}),p()}}function ve(o,t){if(o&1&&(l(0,"span"),m(1,"of "),x(2,Te,1,0,"i",30),l(3,"span",31),m(4),v(5,"async"),p(),m(6," page(s)"),p()),o&2){let e=g(2);r(2),s("ngIf",!e.calledApiCount),r(2),I(e.calledApiCount?E(5,2,e.allDataLength$):"")}}function Ee(o,t){if(o&1){let e=T();b(0),l(1,"div",4),m(2," Page "),p(),l(3,"div",25)(4,"input",26),C("ngModelChange",function(a){f(e);let n=g();return h(n.pageNumber=a)}),p(),x(5,ve,7,4,"span",3),p(),l(6,"div",27)(7,"div",28),u(8,"i",29),m(9),v(10,"number"),v(11,"number"),p()(),M()}if(o&2){let e=g();r(4),s("ngModel",e.pageNumber),r(),s("ngIf",e.getAllDataLengthAPI),r(4),H(" Exporting data from ",E(10,4,e.displayedMinRangeRow)," - ",e.exportFormat=="JSON"?"1,000":E(11,6,e.displayedMaxRangeRow)," ")}}var ce=class o{constructor(t,e,i,a){this.data=t;this.dialogRef=e;this.exportHandler=a;this.config.title=`Export ${t.title}`,this.config.hideCancel=!0,this.config.customWidth="450px",this.exportTypes=t.exportTypes,this.exportType=this.exportTypes[0].ID,this.filterExport=t.filterExport,this.pagination=t.pagination,this.getAllDataLengthAPI=t.getAllDataLengthAPI,this.extraExportTypesOptions=t.extraExportTypesOptions,this.allDataLength$=this.onGetAllDataLength$.pipe(y(()=>this.exportTypes.find(n=>n.ID==this.exportType)?.Count??this.getAllDataLengthAPI),P(n=>i.post("/API/"+n,this.filterExport)),y(n=>typeof n=="number"?n:n.Count),O(n=>{n<this.displayedMaxRangeRow&&this.setMinMaxRangeDisplayedRow(n),this.calledApiCount=!0}),y(n=>{let A=this.exportFormat=="JSON"?1e3:this.pageSize;return Math.floor(n/A)+(n%A>0?1:0)}),L(1),O(console.log)),this.allDataLength$.subscribe()}pageNumber=1;pageSize=1e4;config=new pe;exportTypes=[];exportType;exportFormat="CSV";_onGetAllDataLength=new F;onGetAllDataLength$=this._onGetAllDataLength.asObservable();allDataLength$;calledApiCount=!1;filterExport;displayedMaxRangeRow=this.pageSize;displayedMinRangeRow=this.pageNumber;pagination;getAllDataLengthAPI="";extraExportTypesOptions=[];onOk(){this.filterExport=d(c({},this.filterExport),{Export:!0}),this.pagination&&(this.filterExport=d(c({},this.filterExport),{ExportPageNumber:this.pageNumber,ExportRowCount:this.pageSize})),this.exportFormat=="CSV"?this.exportHandler.exportCSV(this.exportType,this.filterExport):this.exportFormat=="XLSX"?this.exportHandler.exportXlsx(this.exportType,this.filterExport):this.exportFormat=="JSON"?this.exportHandler.exportJSON(this.data.JSONAPI,this.data.JSONFileName,d(c({},this.filterExport),{ExportRowCount:1e3})):this.exportHandler.exportCustom(this.exportType,this.filterExport,2),this.dialogRef.close()}onGetAllDataLength(){this._onGetAllDataLength.next()}onChangePageNumber(){this.setDisplayedMinMaxRangeRow()}setMinMaxRangeDisplayedRow(t){for(;this.displayedMaxRangeRow>t&&this.pageNumber>1;)this.pageNumber-=1,this.setDisplayedMinMaxRangeRow();this.displayedMaxRangeRow=t}setDisplayedMinMaxRangeRow(){this.displayedMinRangeRow=this.pageNumber*this.pageSize-this.pageSize+1,this.displayedMaxRangeRow=this.pageNumber*this.pageSize}isTextOnly(){return this.exportTypes.find(t=>t.ID==this.exportType)?.TxtOnly}isExludeJsonType(){return this.exportTypes.find(t=>t.ID==this.exportType)?.ExcludeJsonType}allowTxtOption(){return this.exportTypes.find(t=>t.ID==this.exportType)?.AllowTxtOption}onChangeExportType(t){this.calledApiCount=!1,this.displayedMaxRangeRow=this.pageSize,this.displayedMinRangeRow=this.pageNumber,this.isTextOnly()?this.exportFormat="TXT":this.exportFormat="CSV"}static \u0275fac=function(e){return new(e||o)(_(ne),_(oe),_(S),_(w))};static \u0275cmp=k({type:o,selectors:[["POS-modal-complex-export"]],decls:14,vars:8,consts:[[3,"onCancel","onClose","onOk","config"],[1,"container-fluid"],[1,"row"],[4,"ngIf"],[1,"col-3","fw-bold","mt-8",2,"display","flex","align-items","center"],[1,"col-9","mt-8"],[3,"ngModelChange","ngModel"],["value","CSV",4,"ngIf"],["value","XLSX",4,"ngIf"],[4,"ngFor","ngForOf"],["value","JSON",4,"ngIf"],[1,"col-3","fw-bold",2,"display","flex","align-items","center"],[1,"col-9"],["appendTo","body","bindLabel","Value","bindValue","ID",3,"ngModelChange","change","items","ngModel"],["ng-option-tmp",""],["matTooltipPosition","right",3,"matTooltip"],["value","CSV"],[1,"fa-solid","fa-file-csv","me-3","mb-1"],["value","XLSX"],[1,"fa-solid","fa-file-excel","me-3","mb-1"],[3,"value",4,"ngIf"],[3,"value"],[1,"me-3","mb-1"],["value","JSON"],[1,"fa-solid","fa-brackets-curly","me-3","mb-1"],[1,"col-9","mt-8",2,"display","flex","align-items","center","column-gap","10px"],["type","text","autoNum","","name","pageNumber","id","pageNumber",1,"form-control","text-center",2,"width","50px",3,"ngModelChange","ngModel"],[1,"col-12","mt-8"],[1,"p-3",2,"background-color","#add8e6","border-radius","4px"],[1,"fa-solid","fa-circle-exclamation","mx-3"],["class","fa-solid fa-circle-question mx-3",3,"click",4,"ngIf"],[1,"fw-bold"],[1,"fa-solid","fa-circle-question","mx-3",3,"click"]],template:function(e,i){e&1&&(l(0,"modal-material",0),C("onCancel",function(){return i.dialogRef.close()})("onClose",function(){return i.dialogRef.close()})("onOk",function(){return i.onOk()}),l(1,"content")(2,"div",1)(3,"div",2),x(4,he,6,2,"ng-container",3),l(5,"div",4),m(6," Format "),p(),l(7,"div",5)(8,"mat-button-toggle-group",6),D("ngModelChange",function(n){return N(i.exportFormat,n)||(i.exportFormat=n),n}),x(9,_e,3,0,"mat-button-toggle",7)(10,Ce,3,0,"mat-button-toggle",8)(11,be,2,1,"ng-container",9)(12,Me,3,0,"mat-button-toggle",10),p()(),x(13,Ee,12,8,"ng-container",3),p()()()()),e&2&&(s("config",i.config),r(4),s("ngIf",i.exportTypes.length>1),r(4),R("ngModel",i.exportFormat),r(),s("ngIf",!i.isTextOnly()),r(),s("ngIf",!i.isTextOnly()),r(),s("ngForOf",i.extraExportTypesOptions),r(),s("ngIf",i.data.JSONAPI&&!i.isTextOnly()&&!i.isExludeJsonType()),r(),s("ngIf",i.pagination))},dependencies:[me,se,re,Q,$,q,K,U,z,B,G,W,le,ge,ie,ee,te,Z,Y,ae],styles:[".general[_ngcontent-%COMP%], .page[_ngcontent-%COMP%]{border:1px solid #dcdcdc;border-radius:3px;padding:10px 8px;position:relative}.general[_ngcontent-%COMP%]{margin-bottom:15px}.floating-title[_ngcontent-%COMP%]{position:absolute;top:-10.5px;background:#fff;color:gray;font-size:14px}.select-header[_ngcontent-%COMP%]{line-height:36px}.input-header[_ngcontent-%COMP%]{line-height:36.6px}.form-control[_ngcontent-%COMP%]{height:max-content!important;padding:.375rem .75rem!important}"]})};export{w as a,ce as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Ce}from"./chunk-3C6ELYCG.js";import{a as Me}from"./chunk-QWZ5AM3L.js";import{a as Pe}from"./chunk-QTEEAYLA.js";import{a as ve}from"./chunk-7LXPGNYF.js";import{b as be,c as Se}from"./chunk-XOQ4SW2R.js";import{a as ue}from"./chunk-GHC4BCCW.js";import"./chunk-GIKR6Y2K.js";import"./chunk-REQUYIUO.js";import{F as he,b as de,h as me,o as fe}from"./chunk-CB33ZMNF.js";import{a as T,c as h}from"./chunk-YHDEAPG3.js";import{a as ge}from"./chunk-M3WKPJ2B.js";import{a as M,d as I}from"./chunk-TYBAV5LT.js";import{a as ce}from"./chunk-2DQBDX5E.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-DJOHANFC.js";import"./chunk-7DCB7DB2.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(h),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=R=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(h);menu=_e;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof oe),H(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var U=class e{reportService=l(Pe);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-NKHFNNJE.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-C5J6BILV.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-YMA57E2M.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-YQEL63SF.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-6ZRIMZHA.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-YAO3JFMU.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-T4K6XLBG.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-PZRVUFEQ.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-5YEXNQCT.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-UCIQAWIS.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-MACI2QKN.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-PVWFJKSW.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-JSMI5ZR4.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-MVI65ECT.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-MWQQC4XE.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-EHW56RWW.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-GPCFKZB6.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-6YPVUOD7.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-LCACDZMC.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-EV7CDK2S.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-ZUQOVN3G.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-HKHEVZ4F.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-BJQ54S6Z.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-2E4PNSTT.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-G6ZQA47T.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-4DT4J5SA.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-SWF5BE5P.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
|
|
1
|
+
import{a as Ce}from"./chunk-36CZUBXB.js";import{a as Me}from"./chunk-QWZ5AM3L.js";import{a as Pe}from"./chunk-YUZ32SM6.js";import{a as ve}from"./chunk-7LXPGNYF.js";import{b as be,c as Se}from"./chunk-XOQ4SW2R.js";import{a as ue}from"./chunk-GHC4BCCW.js";import"./chunk-GIKR6Y2K.js";import"./chunk-REQUYIUO.js";import{F as he,b as de,h as me,o as fe}from"./chunk-CB33ZMNF.js";import{a as T,c as h}from"./chunk-OINGZOF4.js";import{a as ge}from"./chunk-I4I6FJDX.js";import{a as M,d as I}from"./chunk-TYBAV5LT.js";import{a as ce}from"./chunk-QKCOYSSN.js";import{$ as H,$a as c,Bc as te,E,Ib as o,Jb as s,Kb as p,Nd as oe,Pd as ae,Qb as C,Qd as b,Rb as Q,Rd as se,Sd as le,Td as B,Vb as Z,Vd as pe,Wa as J,Wc as ie,Yc as ne,d as G,da as D,db as v,ec as m,fc as V,gc as $,ja as d,jd as re,ka as y,kb as q,lb as x,ma as _,na as l,qb as j,rc as K,sc as X,ub as Y,vb as f,xb as W,zb as F,zc as ee}from"./chunk-DJOHANFC.js";import"./chunk-7DCB7DB2.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(h),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=R=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(pe))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var _e=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(h);menu=_e;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(h);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=Oe.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Ue=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",35),p(1,"i",36),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;f("routerLink",t==null?null:t.U),c(),F((t==null?null:t.I)+" me-2"),c(2),V(t==null?null:t.T)}}function Re(e,i){if(e&1&&(o(0,"li",37,0)(2,"a",38),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Q();f("routerLinkActiveOptions",n.isActiveMatchOptions),Y("data-cy",t==null?null:t.T),c(2),f("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",K(7,Ue,t==null?null:t.U)),c(),F(t==null?null:t.I),c(2),V(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,R,z){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;R.initFilteredMenu(),z.initFilteredMenu(),this.leftSidebarMenu=R.filteredMenu,this.topMenu=z.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(xe=>this.isNavOpen=xe),this.destroy$=new G,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=ce.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof oe),H(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(ve),v(ue),v(w),v(b),v(h),v(ge),v(k),v(A))};static \u0275cmp=q({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:52,vars:19,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions",4,"ngFor","ngForOf"],["id","full-container",1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ee(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),j(13,Ne,4,4,"a",11),o(14,"a",12)(15,"div",13)(16,"div"),p(17,"i",14),o(18,"span"),m(19,"Chat Support"),s()(),o(20,"div",15),C("click",function(a){return a.stopPropagation()}),o(21,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(22,"label",17),s()()(),o(23,"a",18),C("click",function(){return n.logout()}),p(24,"i",19),o(25,"span"),m(26,"Log Out"),s()(),p(27,"div",20),o(28,"div",21),m(29," Links "),s(),o(30,"a",22),p(31,"i",23),o(32,"span"),m(33,"What's New"),p(34,"i",24),s()(),o(35,"a",25),p(36,"i",26),o(37,"span"),m(38,"Help Center"),s()(),o(39,"a",27),p(40,"i",28),o(41,"span"),m(42,"App Store"),s()(),o(43,"a",29),p(44,"i",30),o(45,"span"),m(46,"Company Blog"),s()()()()(),o(47,"div",31)(48,"ul",32),j(49,Re,6,9,"li",33),s()()(),o(50,"div",34),p(51,"router-outlet"),s()()),t&2&&(W("nav-open",n.isNavOpen),c(),f("ngClass",n.toggleSideMenu?"collapses":""),c(2),f("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),f("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),$(" ",te(8,13,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),$("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),f("ngForOf",n.topMenu),c(8),f("ngModel",!n.isHideIntercomLauncher),c(9),Z("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion,"",J),c(19),f("ngForOf",n.leftSidebarMenu),c(),f("ngClass",X(16,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[be,ae,se,le,de,me,fe,ie,ne,Me],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}}.full-container[_ngcontent-%COMP%]{padding-top:0!important}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function Ee(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(h),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=Ee(i),u.navigate(["/"]),!1):e.path=="Dashboard"?De():!0};function De(){let e=l(b),i=l(h),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var L=class e{paymentStorageService=l(Ce);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var U=class e{reportService=l(Pe);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var je=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-CKRE4XBG.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-NTIVPZGS.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[U]},{path:"Sell",loadChildren:()=>import("./chunk-Y2V6RDWT.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-ESHN7M3P.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-KEUOT5UT.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-ZEWGIKVI.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-JJ4V6TS4.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-757ORJKN.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-NXN7NE47.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-KHIJN7MP.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-EGRPFCSJ.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-XR7Q6MPP.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-WVFDCBPZ.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-RNILXGHZ.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-24QKQISF.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-XAZ4U5H6.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-4XFE7DMP.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-KST6UNFB.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-INWN4VE6.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-AC24RKU6.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-FKYQUS5M.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[L]},{path:"Promotion",loadChildren:()=>import("./chunk-HS3NKKBN.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-T7JKTLRY.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-EDZXH4US.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-2MVRUWW3.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-DMK6CUHM.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-KMO6SBV2.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],N=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[B.forChild(je),B]})};var ye=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Se,N,he,re]})};export{ye as MenuMasterModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as c}from"./chunk-
|
|
1
|
+
import{b as c}from"./chunk-OINGZOF4.js";import{ja as r,na as s}from"./chunk-DJOHANFC.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as $,e as ee}from"./chunk-
|
|
1
|
+
import{d as $,e as ee}from"./chunk-3UUHT4HG.js";import{a as z}from"./chunk-GZAARWM2.js";import"./chunk-QMCAG2HX.js";import{f as te}from"./chunk-74QSXJ42.js";import{a as oe,b as ne}from"./chunk-NHTMJTLV.js";import{a as H,b as G,c as A}from"./chunk-V5O3E5XQ.js";import{c as ie}from"./chunk-BH4ZE4CF.js";import{b as Q}from"./chunk-2U6W2RNU.js";import{a as q}from"./chunk-U4QA2337.js";import"./chunk-YUZ32SM6.js";import"./chunk-NW73SHIZ.js";import{d as Y,e as Z}from"./chunk-ATAC2AND.js";import"./chunk-BYEI3PJ6.js";import"./chunk-OMVUFMMZ.js";import"./chunk-HPLAMF75.js";import"./chunk-OK4CL2M4.js";import"./chunk-T6MTT57B.js";import"./chunk-VF6HKAFR.js";import"./chunk-4L5G4WC4.js";import"./chunk-3NJFM55L.js";import"./chunk-2LFFOWKW.js";import"./chunk-OQCGVZVB.js";import"./chunk-UAI7BPPY.js";import"./chunk-6IW4MVP2.js";import{b as K}from"./chunk-Y726HBE5.js";import"./chunk-OI2RWAOV.js";import"./chunk-7LXPGNYF.js";import"./chunk-CN5SHMHF.js";import"./chunk-3M5M2T4L.js";import"./chunk-7G4UPOQP.js";import"./chunk-XOQ4SW2R.js";import{N as X,g as U}from"./chunk-ZJMIEPWF.js";import"./chunk-GHC4BCCW.js";import"./chunk-GIKR6Y2K.js";import"./chunk-3GV7FUAX.js";import{g as J}from"./chunk-6BL2JKZG.js";import"./chunk-REQUYIUO.js";import"./chunk-QCBXPOJL.js";import"./chunk-T2PMKO3M.js";import"./chunk-2FWFPV5I.js";import"./chunk-OE7PM4Y4.js";import{F as W,h as B,o as R}from"./chunk-CB33ZMNF.js";import"./chunk-OINGZOF4.js";import"./chunk-I4I6FJDX.js";import{d as k}from"./chunk-TYBAV5LT.js";import"./chunk-QKCOYSSN.js";import{$a as p,Ac as P,Bc as T,Eb as b,Fc as V,Gb as M,Hb as O,Ib as i,Jb as o,Kb as v,Ob as _,Qb as S,Rb as m,Yd as j,Zc as F,db as u,ec as l,fc as h,gc as w,jc as x,jd as N,kb as E,kc as C,lc as y,ob as I,qb as f,va as c,vb as d,wa as s,zc as D}from"./chunk-DJOHANFC.js";import"./chunk-7DCB7DB2.js";function re(r,g){if(r&1){let e=_();i(0,"button",5),S("click",function(){c(e);let t=m();return s(t.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function le(r,g){if(r&1){let e=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),y("ngModelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Outlet,t)||(a.pageData.Filter.Outlet=t),s(t)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),y("selectedCategoryIDChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Category,t)||(a.pageData.Filter.Category=t),s(t)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),y("modelChange",function(t){c(e);let a=m();return C(a.pageData.Filter.Discontinued,t)||(a.pageData.Filter.Discontinued=t),s(t)}),o()}if(r&2){let e=m();p(2),d("accessType",2),x("ngModel",e.pageData.Filter.Outlet),p(3),x("selectedCategoryID",e.pageData.Filter.Category),d("showClear",!0),p(3),d("options",e.pageData==null||e.pageData.Options==null?null:e.pageData.Options.Discontinued),x("model",e.pageData.Filter.Discontinued)}}function pe(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",20),l(6),D(7,"quantityFraction"),o()()),r&2){let e=g.$implicit;p(2),h(e.EntityName),p(2),h(e.Name),p(2),w(" ",P(7,3,e.Inventory)," ")}}function me(r,g){if(r&1){let e=_();i(0,"div",10)(1,"div",11)(2,"table",12),S("matSortChange",function(t){c(e);let a=m();return s(a.onSortData(t))}),i(3,"thead",13)(4,"tr",14)(5,"th",15),l(6,"Outlet"),o(),i(7,"th",16),l(8,"Storage Location"),o(),i(9,"th",17),l(10," On Hand "),o()()(),i(11,"tbody"),M(12,pe,8,5,"tr",null,b),o(),i(14,"tfoot")(15,"tr",18),v(16,"td",19),i(17,"td",19),l(18,"Total :"),o(),i(19,"td",20),l(20),D(21,"sum"),D(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",21),S("jumpToPage",function(){c(e);let t=m();return s(t.getListData())})("previousPage",function(){c(e);let t=m();return s(t.getListData())})("nextPage",function(){c(e);let t=m();return s(t.getListData())}),o()()()}if(r&2){let e=m();p(12),O(e.data.Data),p(8),w(" ",P(22,6,T(21,3,e.data.Data,"Inventory"))," "),p(3),d("total",e.data.Data==null?null:e.data.Data.length)("pageData",e.pageData)}}var ae=class r extends q{constructor(e,n,t,a){super(e,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=t;this.roleService=a}datasource;postInit(e){this.datasource=JSON.parse(JSON.stringify(e.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(e){let n=this.data.Data?.slice();if(!e.active||e.direction===""){this.data.Data=this.datasource;return}let t=e.direction==="asc";this.data.Data=n.sort((a,L)=>this.compare(a[e.active],L[e.active],t))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(k))};static \u0275cmp=E({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],["class","btn btn-outline-secondary me-3",3,"click",4,"ngIf"],["class","container-fluid mt-3",4,"ngIf"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"container-fluid","mt-3"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,t){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),s(t.searchFromPageOne())}),i(1,"actions")(2,"div",2),f(3,re,3,0,"button",3),o()(),i(4,"filters"),f(5,le,9,6,"ng-template",null,0,V),o(),i(7,"content"),f(8,me,24,8,"div",4),o()()}n&2&&(d("pageData",t.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),d("ngIf",t.roleService.global.Export),p(5),d("ngIf",t.data))},dependencies:[N,F,Z,Y,z,X,U,ee,$,te,ie,W,B,R,ne,oe,A,H,G],encapsulation:2})};export{ae as StorageLocationComponent};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as Ge,b as Ue}from"./chunk-M7EO4UVO.js";import{a as j}from"./chunk-T2PXIPKB.js";import{a as $e,e as je,f as qe}from"./chunk-45BASVRZ.js";import{B as Le,F as He,G as Ne,N as Qe,R as Ve,S as Be,d as Te,ea as ae,g as ze,l as Oe,n as Re,o as Ae,y as Fe,z as Pe}from"./chunk-REQUYIUO.js";import{f as ke}from"./chunk-CB33ZMNF.js";import{$ as S,$a as s,$b as h,Ab as Me,Db as _,Fa as M,Fb as Q,Fc as Ee,Ga as ye,Gb as V,Hb as B,Ib as d,Jb as c,Ka as z,Kb as X,Kc as $,Ma as be,Mc as T,Na as O,Nb as I,Nc as we,Ob as De,Qa as xe,Qb as ee,Rb as p,Sb as A,Tb as F,Yb as v,Zb as P,_b as m,a as de,aa as he,ab as D,bd as re,cb as Ce,d as L,da as y,dc as te,ec as x,fb as Se,fc as C,ja as ue,ka as H,kb as E,la as fe,lb as N,mb as b,na as l,o as ce,ob as R,pa as _e,pc as ie,qa as ve,qb as f,sc as ne,t as me,ua as ge,ub as w,va as W,vb as u,wa as Y,wb as Ie,xb as k,za as Z,zb as J}from"./chunk-DJOHANFC.js";var Xe=["*"];function et(i,a){i&1&&F(0)}var oe=(()=>{class i{_elementRef=l(z);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return i})(),se=(()=>{class i{template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepLabel",""]]})}return i})();var g={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},tt=new fe("STEPPER_GLOBAL_OPTIONS"),q=(()=>{class i{_stepperOptions;_stepper=l(G);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new M;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=l(tt,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["cdk-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,se,5),v(r,ke,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(t,n){if(t&1&&P(D,7),t&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ge],ngContentSelectors:Xe,decls:1,vars:0,template:function(t,n){t&1&&(A(),f(0,et,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return i})(),G=(()=>{class i{_dir=l(He,{optional:!0});_changeDetectorRef=l($);_elementRef=l(z);_destroyed=new L;_keyManager;_steps;steps=new O;_stepHeader;_sortedHeaders=new O;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new M;selectedIndexChange=new M;_groupId=l(Fe).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),y(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),y(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,n)=>t._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Le(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ce()).pipe(S(this._layoutDirection()),y(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let t of e)t._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=g.NUMBER){let n=this.steps.toArray()[e],r=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?g.ERROR:!e.completed||t?g.NUMBER:e.editable?g.EDIT:g.DONE}_getGuidelineLogic(e,t,n=g.NUMBER){return e._showError()&&e.hasError&&!t?g.ERROR:e.completed&&!t?g.DONE:e.completed&&t?n:e.editable&&t?g.EDIT:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Pe(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!t&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let n=t.stepControl;return(n?n.invalid||n.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Te();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,q,5),v(r,oe,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",T],selectedIndex:[2,"selectedIndex","selectedIndex",we],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return i})();var Ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({imports:[Ne]})}return i})();function it(i,a){if(i&1&&I(0,2),i&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function nt(i,a){if(i&1&&(d(0,"span",7),x(1),c()),i&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function rt(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.completedLabel)}}function at(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ot(i,a){if(i&1&&(f(0,rt,2,1,"span",8)(1,at,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),i&2){let e=p(2);_(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function st(i,a){if(i&1&&f(0,nt,2,1,"span",7)(1,ot,4,2),i&2){let e,t=p();_((e=t.state)==="number"?0:1)}}function lt(i,a){i&1&&(d(0,"div",4),I(1,9),c()),i&2&&(s(),u("ngTemplateOutlet",a.template))}function pt(i,a){if(i&1&&(d(0,"div",4),x(1),c()),i&2){let e=p();s(),C(e.label)}}function dt(i,a){if(i&1&&(d(0,"div",5),x(1),c()),i&2){let e=p();s(),C(e._intl.optionalLabel)}}function ct(i,a){if(i&1&&(d(0,"div",6),x(1),c()),i&2){let e=p();s(),C(e.errorMessage)}}var We=["*"];function mt(i,a){}function ht(i,a){if(i&1&&(F(0),f(1,mt,0,0,"ng-template",0)),i&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var ut=["animatedContainer"],Ye=(i,a)=>({step:i,i:a});function ft(i,a){i&1&&F(0)}function _t(i,a){i&1&&X(0,"div",7)}function vt(i,a){if(i&1&&(I(0,6),f(1,_t,1,0,"div",7)),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count;p(2);let o=te(4);u("ngTemplateOutlet",o)("ngTemplateOutletContext",ne(3,Ye,e,t)),s(),_(n!==r-1?1:-1)}}function gt(i,a){if(i&1&&(d(0,"div",8,1),I(2,9),c()),i&2){let e=a.$implicit,t=a.$index,n=p(2);J("mat-horizontal-stepper-content-"+n._getAnimationDirection(t)),u("id",n._getStepContentId(t)),w("aria-labelledby",n._getStepLabelId(t))("inert",n.selectedIndex===t?null:""),s(2),u("ngTemplateOutlet",e.content)}}function yt(i,a){if(i&1&&(d(0,"div",2)(1,"div",3),V(2,vt,2,6,null,null,Q),c(),d(4,"div",4),V(5,gt,3,6,"div",5,Q),c()()),i&2){let e=p();s(2),B(e.steps),s(3),B(e.steps)}}function bt(i,a){if(i&1&&(d(0,"div",10),I(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),I(6,9),c()()()()),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count,o=p(2),K=te(4);s(),u("ngTemplateOutlet",K)("ngTemplateOutletContext",ne(10,Ye,e,t)),s(),k("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===t),w("inert",o.selectedIndex===t?null:""),s(2),u("id",o._getStepContentId(t)),w("aria-labelledby",o._getStepLabelId(t)),s(2),u("ngTemplateOutlet",e.content)}}function xt(i,a){if(i&1&&V(0,bt,7,13,"div",10,Q),i&2){let e=p();B(e.steps)}}function Ct(i,a){if(i&1){let e=De();d(0,"mat-step-header",14),ee("click",function(){let n=W(e).step;return Y(n.select())})("keydown",function(n){W(e);let r=p();return Y(r._onKeydown(n))}),c()}if(i&2){let e=a.step,t=a.i,n=p();k("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),u("tabIndex",n._getFocusIndex()===t?0:-1)("id",n._getStepLabelId(t))("index",t)("state",n._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",n.selectedIndex===t)("active",n._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(t,e))("color",e.color||n.color),w("aria-posinset",t+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(t))("aria-selected",n.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(t,e)?null:!0)}}var le=(()=>{class i extends se{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matStepLabel",""]],features:[R]})}return i})(),U=(()=>{class i{changes=new L;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||i)};static \u0275prov=ue({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function St(i){return i||new U}var It={provide:U,deps:[[new _e,new ve,U]],useFactory:St},pe=(()=>{class i extends oe{_intl=l(U);_focusMonitor=l(Oe);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Re);e.load($e),e.load(Ae);let t=l($);this._intlSubscription=this._intl.changes.subscribe(()=>t.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof le?null:this.label}_templateLabel(){return this.label instanceof le?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,n){t&2&&J("mat-"+(n.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[R],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(X(0,"div",0),d(1,"div")(2,"div",1),f(3,it,1,2,"ng-container",2)(4,st,2,1),c()(),d(5,"div",3),f(6,lt,2,1,"div",4)(7,pt,2,1,"div",4)(8,dt,2,1,"div",5)(9,ct,2,1,"div",6),c()),t&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),Me("mat-step-icon-state-",n.state," mat-step-icon"),k("mat-step-icon-selected",n.selected),s(2),_(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),k("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),_((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),_(n.optional&&n.state!="error"?8:-1),s(),_(n.state==="error"?9:-1)}},dependencies:[je,re,Ge],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
1
|
+
import{a as Ge,b as Ue}from"./chunk-M7EO4UVO.js";import{a as j}from"./chunk-T2PXIPKB.js";import{a as $e,e as je,f as qe}from"./chunk-7G4UPOQP.js";import{B as Le,F as He,G as Ne,N as Qe,R as Ve,S as Be,d as Te,ea as ae,g as ze,l as Oe,n as Re,o as Ae,y as Fe,z as Pe}from"./chunk-REQUYIUO.js";import{f as ke}from"./chunk-CB33ZMNF.js";import{$ as S,$a as s,$b as h,Ab as Me,Db as _,Fa as M,Fb as Q,Fc as Ee,Ga as ye,Gb as V,Hb as B,Ib as d,Jb as c,Ka as z,Kb as X,Kc as $,Ma as be,Mc as T,Na as O,Nb as I,Nc as we,Ob as De,Qa as xe,Qb as ee,Rb as p,Sb as A,Tb as F,Yb as v,Zb as P,_b as m,a as de,aa as he,ab as D,bd as re,cb as Ce,d as L,da as y,dc as te,ec as x,fb as Se,fc as C,ja as ue,ka as H,kb as E,la as fe,lb as N,mb as b,na as l,o as ce,ob as R,pa as _e,pc as ie,qa as ve,qb as f,sc as ne,t as me,ua as ge,ub as w,va as W,vb as u,wa as Y,wb as Ie,xb as k,za as Z,zb as J}from"./chunk-DJOHANFC.js";var Xe=["*"];function et(i,a){i&1&&F(0)}var oe=(()=>{class i{_elementRef=l(z);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return i})(),se=(()=>{class i{template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepLabel",""]]})}return i})();var g={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},tt=new fe("STEPPER_GLOBAL_OPTIONS"),q=(()=>{class i{_stepperOptions;_stepper=l(G);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new M;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=l(tt,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["cdk-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,se,5),v(r,ke,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(t,n){if(t&1&&P(D,7),t&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ge],ngContentSelectors:Xe,decls:1,vars:0,template:function(t,n){t&1&&(A(),f(0,et,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return i})(),G=(()=>{class i{_dir=l(He,{optional:!0});_changeDetectorRef=l($);_elementRef=l(z);_destroyed=new L;_keyManager;_steps;steps=new O;_stepHeader;_sortedHeaders=new O;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new M;selectedIndexChange=new M;_groupId=l(Fe).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),y(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),y(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,n)=>t._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Le(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ce()).pipe(S(this._layoutDirection()),y(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let t of e)t._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=g.NUMBER){let n=this.steps.toArray()[e],r=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?g.ERROR:!e.completed||t?g.NUMBER:e.editable?g.EDIT:g.DONE}_getGuidelineLogic(e,t,n=g.NUMBER){return e._showError()&&e.hasError&&!t?g.ERROR:e.completed&&!t?g.DONE:e.completed&&t?n:e.editable&&t?g.EDIT:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Pe(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!t&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let n=t.stepControl;return(n?n.invalid||n.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Te();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,q,5),v(r,oe,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",T],selectedIndex:[2,"selectedIndex","selectedIndex",we],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return i})();var Ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({imports:[Ne]})}return i})();function it(i,a){if(i&1&&I(0,2),i&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function nt(i,a){if(i&1&&(d(0,"span",7),x(1),c()),i&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function rt(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.completedLabel)}}function at(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ot(i,a){if(i&1&&(f(0,rt,2,1,"span",8)(1,at,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),i&2){let e=p(2);_(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function st(i,a){if(i&1&&f(0,nt,2,1,"span",7)(1,ot,4,2),i&2){let e,t=p();_((e=t.state)==="number"?0:1)}}function lt(i,a){i&1&&(d(0,"div",4),I(1,9),c()),i&2&&(s(),u("ngTemplateOutlet",a.template))}function pt(i,a){if(i&1&&(d(0,"div",4),x(1),c()),i&2){let e=p();s(),C(e.label)}}function dt(i,a){if(i&1&&(d(0,"div",5),x(1),c()),i&2){let e=p();s(),C(e._intl.optionalLabel)}}function ct(i,a){if(i&1&&(d(0,"div",6),x(1),c()),i&2){let e=p();s(),C(e.errorMessage)}}var We=["*"];function mt(i,a){}function ht(i,a){if(i&1&&(F(0),f(1,mt,0,0,"ng-template",0)),i&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var ut=["animatedContainer"],Ye=(i,a)=>({step:i,i:a});function ft(i,a){i&1&&F(0)}function _t(i,a){i&1&&X(0,"div",7)}function vt(i,a){if(i&1&&(I(0,6),f(1,_t,1,0,"div",7)),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count;p(2);let o=te(4);u("ngTemplateOutlet",o)("ngTemplateOutletContext",ne(3,Ye,e,t)),s(),_(n!==r-1?1:-1)}}function gt(i,a){if(i&1&&(d(0,"div",8,1),I(2,9),c()),i&2){let e=a.$implicit,t=a.$index,n=p(2);J("mat-horizontal-stepper-content-"+n._getAnimationDirection(t)),u("id",n._getStepContentId(t)),w("aria-labelledby",n._getStepLabelId(t))("inert",n.selectedIndex===t?null:""),s(2),u("ngTemplateOutlet",e.content)}}function yt(i,a){if(i&1&&(d(0,"div",2)(1,"div",3),V(2,vt,2,6,null,null,Q),c(),d(4,"div",4),V(5,gt,3,6,"div",5,Q),c()()),i&2){let e=p();s(2),B(e.steps),s(3),B(e.steps)}}function bt(i,a){if(i&1&&(d(0,"div",10),I(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),I(6,9),c()()()()),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count,o=p(2),K=te(4);s(),u("ngTemplateOutlet",K)("ngTemplateOutletContext",ne(10,Ye,e,t)),s(),k("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===t),w("inert",o.selectedIndex===t?null:""),s(2),u("id",o._getStepContentId(t)),w("aria-labelledby",o._getStepLabelId(t)),s(2),u("ngTemplateOutlet",e.content)}}function xt(i,a){if(i&1&&V(0,bt,7,13,"div",10,Q),i&2){let e=p();B(e.steps)}}function Ct(i,a){if(i&1){let e=De();d(0,"mat-step-header",14),ee("click",function(){let n=W(e).step;return Y(n.select())})("keydown",function(n){W(e);let r=p();return Y(r._onKeydown(n))}),c()}if(i&2){let e=a.step,t=a.i,n=p();k("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),u("tabIndex",n._getFocusIndex()===t?0:-1)("id",n._getStepLabelId(t))("index",t)("state",n._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",n.selectedIndex===t)("active",n._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(t,e))("color",e.color||n.color),w("aria-posinset",t+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(t))("aria-selected",n.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(t,e)?null:!0)}}var le=(()=>{class i extends se{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matStepLabel",""]],features:[R]})}return i})(),U=(()=>{class i{changes=new L;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||i)};static \u0275prov=ue({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function St(i){return i||new U}var It={provide:U,deps:[[new _e,new ve,U]],useFactory:St},pe=(()=>{class i extends oe{_intl=l(U);_focusMonitor=l(Oe);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Re);e.load($e),e.load(Ae);let t=l($);this._intlSubscription=this._intl.changes.subscribe(()=>t.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof le?null:this.label}_templateLabel(){return this.label instanceof le?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,n){t&2&&J("mat-"+(n.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[R],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(X(0,"div",0),d(1,"div")(2,"div",1),f(3,it,1,2,"ng-container",2)(4,st,2,1),c()(),d(5,"div",3),f(6,lt,2,1,"div",4)(7,pt,2,1,"div",4)(8,dt,2,1,"div",5)(9,ct,2,1,"div",6),c()),t&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),Me("mat-step-icon-state-",n.state," mat-step-icon"),k("mat-step-icon-selected",n.selected),s(2),_(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),k("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),_((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),_(n.optional&&n.state!="error"?8:-1),s(),_(n.state==="error"?9:-1)}},dependencies:[je,re,Ge],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return i})(),Mt=(()=>{class i{templateRef=l(D);name;constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return i})(),Dt=(()=>{class i{_template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepContent",""]]})}return i})(),Et=(()=>{class i extends q{_errorStateMatcher=l(j,{skipSelf:!0});_viewContainerRef=l(Se);_isSelected=de.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(he(()=>this._stepper.selectionChange.pipe(me(e=>e.selectedStep===this),S(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Qe(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){let n=this._errorStateMatcher.isErrorState(e,t),r=!!(e&&e.invalid&&this.interacted);return n||r}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["mat-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,le,5),v(r,Dt,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._lazyContent=o.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ie([{provide:j,useExisting:i},{provide:q,useExisting:i}]),R],ngContentSelectors:We,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,n){t&1&&(A(),f(0,ht,2,1,"ng-template"))},dependencies:[Ve],encapsulation:2,changeDetection:0})}return i})(),wt=(()=>{class i extends G{_ngZone=l(ye);_renderer=l(Ce);_animationsModule=l(xe,{optional:!0});_cleanupTransition;_isAnimating=be(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new O;_icons;animationDone=new M;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!l(ze).isBrowser;constructor(){super();let t=l(z).nativeElement.nodeName.toLowerCase();this.orientation=t==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(y(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(y(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsModule!=="NoopAnimations"&&setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(S(null),y(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this._animationsModule==="NoopAnimations"?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let t=e.target;if(!t)return;let n=this.orientation==="horizontal"&&e.propertyName==="transform"&&t.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&t.classList.contains("mat-vertical-content-container-active");(n||r)&&this._animatedContainers.find(K=>K.nativeElement===t)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,Et,5),v(r,Mt,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._icons=o)}},viewQuery:function(t,n){if(t&1&&(P(pe,5),P(ut,5)),t&2){let r;m(r=h())&&(n._stepHeader=r),m(r=h())&&(n._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(t,n){t&2&&(w("aria-orientation",n.orientation),Ie("--mat-stepper-animation-duration",n._getAnimationDuration()),k("mat-stepper-horizontal",n.orientation==="horizontal")("mat-stepper-vertical",n.orientation==="vertical")("mat-stepper-label-position-end",n.orientation==="horizontal"&&n.labelPosition=="end")("mat-stepper-label-position-bottom",n.orientation==="horizontal"&&n.labelPosition=="bottom")("mat-stepper-header-position-bottom",n.headerPosition==="bottom")("mat-stepper-animating",n._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ie([{provide:G,useExisting:i}]),R],ngContentSelectors:We,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,n){if(t&1&&(A(),f(0,ft,1,0)(1,yt,7,0,"div",2)(2,xt,2,0)(3,Ct,1,23,"ng-template",null,0,Ee)),t&2){let r;_(n._isServer?0:-1),s(),_((r=n.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[re,pe],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}return i})();var Di=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({providers:[It,j],imports:[ae,Be,Ke,Ue,qe,wt,pe,ae]})}return i})();export{Ke as a,le as b,Mt as c,Dt as d,Et as e,wt as f,Di as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ne,b as oe}from"./chunk-
|
|
1
|
+
import{a as ne,b as oe}from"./chunk-5YBGDA3S.js";import"./chunk-2EXFDYJN.js";import{a as Z}from"./chunk-OHZN3Z7O.js";import"./chunk-7UFQPOGN.js";import"./chunk-RB6SQ4EV.js";import"./chunk-T2PXIPKB.js";import{d as me,e as ue}from"./chunk-ATAC2AND.js";import"./chunk-OK4CL2M4.js";import"./chunk-UAI7BPPY.js";import"./chunk-6IW4MVP2.js";import{a as re,b as le}from"./chunk-Y726HBE5.js";import"./chunk-OI2RWAOV.js";import"./chunk-7LXPGNYF.js";import"./chunk-7G4UPOQP.js";import"./chunk-XOQ4SW2R.js";import{O as N}from"./chunk-ZJMIEPWF.js";import{d as ae,e as pe}from"./chunk-3GV7FUAX.js";import{a as ie}from"./chunk-6BL2JKZG.js";import"./chunk-REQUYIUO.js";import"./chunk-T2PMKO3M.js";import"./chunk-2FWFPV5I.js";import"./chunk-OE7PM4Y4.js";import{F as Y,c as K,h as Q,o as X}from"./chunk-CB33ZMNF.js";import"./chunk-OINGZOF4.js";import"./chunk-I4I6FJDX.js";import{a as h,d as te}from"./chunk-TYBAV5LT.js";import"./chunk-QKCOYSSN.js";import{$a as p,Ac as y,Bc as T,Fc as V,Ib as o,Jb as r,Kb as F,Ma as v,Ob as I,Od as j,Qb as w,Rb as u,Rd as z,Td as J,Va as R,Y as C,Yc as k,Yd as ee,Zc as W,cd as $,db as D,ec as m,ed as A,fa as H,fc as f,jc as G,jd as q,kb as L,kc as M,lc as P,mc as E,na as b,ob as U,qb as g,qc as B,rc as O,va as d,vb as l,wa as _,zc as c}from"./chunk-DJOHANFC.js";import{a as x,b as S}from"./chunk-7DCB7DB2.js";var ce=()=>["/menu/Users/User/Groups/Info"],de=i=>({ID:i});function _e(i,s){if(i&1){let e=I();o(0,"div",9)(1,"h6"),m(2,"Group"),r(),o(3,"ng-select",10),P("ngModelChange",function(t){d(e);let a=u(2);return M(a.filter().GroupID,t)||(a.filter().GroupID=t),_(t)}),r(),o(4,"h6"),m(5,"Row Count"),r(),o(6,"input",11),P("ngModelChange",function(t){d(e);let a=u(2);return M(a.filter().RowCount,t)||(a.filter().RowCount=t),_(t)}),r()()}if(i&2){let e=u(2);p(3),l("items",e.options().Groups),G("ngModel",e.filter().GroupID),p(3),l("max",1e4),G("ngModel",e.filter().RowCount)}}function ge(i,s){if(i&1&&(o(0,"a",16),m(1),r()),i&2){let e=u().$implicit;l("routerLink",B(3,ce))("queryParams",O(4,de,e._source==null||e._source.Log==null?null:e._source.Log.id)),p(),f(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function fe(i,s){if(i&1&&(o(0,"span"),m(1),r()),i&2){let e=u().$implicit;p(),f(e._source==null||e._source.Log==null?null:e._source.Log.name)}}function ye(i,s){if(i&1&&(o(0,"tr",12)(1,"td"),g(2,ge,2,6,"a",13)(3,fe,2,1,"span",14),r(),o(4,"td"),m(5),c(6,"date"),r(),o(7,"td"),m(8),r(),F(9,"td",15),c(10,"newlines"),r()),i&2){let e=s.$implicit,n=u(2);p(2),l("ngIf",n.role.users.Edit),p(),l("ngIf",!n.role.users.Edit),p(2),f(T(6,5,e._source["@timestamp"],"dd MMM yyyy HH:mm")),p(3),f(e._source==null||e._source.Log==null?null:e._source.Log.creator),p(),l("innerHtml",y(10,8,e._source==null||e._source.Log==null?null:e._source.Log.note),R)}}function he(i,s){if(i&1){let e=I();o(0,"mainpanel-cmp",2),w("onSubmit",function(){d(e);let t=u();return _(t.initData())}),o(1,"filters"),g(2,_e,7,4,"ng-template",null,0,V),r(),o(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr")(10,"th"),m(11,"Group"),r(),o(12,"th"),m(13,"Modified"),r(),o(14,"th"),m(15,"Modify By"),r(),o(16,"th"),m(17,"Note"),r()()(),o(18,"tbody"),g(19,ye,11,10,"tr",7),c(20,"async"),r()(),o(21,"div"),E(22),c(23,"async"),o(24,"mat-paginator",8),w("page",function(t){d(e);let a=u();return _(a.onPaginationChange(t))}),r()()()()()()}if(i&2){let e,n,t=u();l("pageData",t.menuData)("isFilterOnDropdown",!1)("hideSearchBox",!0),p(19),l("ngForOf",(e=y(20,7,t.data$))==null||e.Data==null?null:e.Data.hits);let a=(n=y(23,9,t.data$))==null||n.Data==null||n.Data.hits==null?null:n.Data.hits.length;p(5),l("length",a)("pageSize",t.filter().RowCount)("pageIndex",t.filter().PageNumber==0?0:t.filter().PageNumber-1)}}var se=class i extends re{constructor(e,n){super(e);this.role=n;this.menuData$.pipe(ie()).subscribe();let t=this.routeSnapshot.snapshot?.queryParams?.ID;h.IsNotEmpty(t)&&(this.filter.update(a=>S(x({},a),{GroupID:t})),this.initData())}httpService=b(ee);routeSnapshot=b(j);filter=v({PageNumber:1,RowCount:20,GroupID:h.GuidEmpty});options=v({Groups:[]});loader$=this.httpService.get(N.GroupHistoryLoader).pipe(H(e=>{this.options.set(e.Options),this.initData()}),C(1));data$;initData(){let e=h.IsNotEmpty(this.filter().GroupID)?this.filter().GroupID:h.GuidEmpty;this.data$=this.httpService.get(N.GroupHistoryData,[{key:"PageNumber",value:this.filter().PageNumber},{key:"RowCount",value:this.filter().RowCount},{key:"GroupID",value:e}]).pipe(C(1))}onPaginationChange(e){this.filter.update(n=>S(x({},n),{PageNumber:e.pageIndex+1})),this.initData()}static \u0275fac=function(n){return new(n||i)(D(le),D(te))};static \u0275cmp=L({type:i,selectors:[["app-group-update-history"]],features:[U],decls:3,vars:3,consts:[["pageFilterTemplate",""],["searchBoxPlaceholder","Search Note...",3,"pageData","isFilterOnDropdown","hideSearchBox","onSubmit",4,"ngIf"],["searchBoxPlaceholder","Search Note...",3,"onSubmit","pageData","isFilterOnDropdown","hideSearchBox"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],["class","border-bottom",4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Name","bindValue","ID","placeholder","Choose a group","appendTo","body",3,"ngModelChange","items","ngModel"],["type","text","autoNum","",1,"input-left","w-100","form-control","input-filter",3,"ngModelChange","max","ngModel"],[1,"border-bottom"],[3,"routerLink","queryParams",4,"ngIf"],[4,"ngIf"],[3,"innerHtml"],[3,"routerLink","queryParams"]],template:function(n,t){if(n&1&&(E(0),c(1,"async"),g(2,he,25,11,"mainpanel-cmp",1)),n&2){let a=y(1,1,t.loader$);p(2),l("ngIf",a)}},dependencies:[q,k,W,$,A,ue,me,oe,ne,J,z,Y,K,Q,X,pe,ae,Z],encapsulation:2})};export{se as GroupUpdateHistoryComponent};
|