marketplacepos 5.43.0 → 5.43.2
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/Marketplace/{chunk-LHD7CYML.js → chunk-2IBGS5NP.js} +1 -1
- package/Marketplace/{chunk-IUWXRFDI.js → chunk-2N2I6BF2.js} +1 -1
- package/Marketplace/{chunk-D66XCOBY.js → chunk-2OBP7IGO.js} +1 -1
- package/Marketplace/{chunk-DMW4DWIM.js → chunk-2SCFZLQO.js} +1 -1
- package/Marketplace/chunk-2YV6WOL3.js +1 -0
- package/Marketplace/{chunk-G4OF4YLE.js → chunk-36RDOY5Y.js} +1 -1
- package/Marketplace/{chunk-MMT3VFZZ.js → chunk-37J5GG7B.js} +1 -1
- package/Marketplace/{chunk-DLSU35PZ.js → chunk-3FHLYPLG.js} +1 -1
- package/Marketplace/{chunk-PO7JVKK3.js → chunk-4CWRB5AG.js} +1 -1
- package/Marketplace/chunk-4K4ZKRRO.js +1 -0
- package/Marketplace/{chunk-SDKAJBVB.js → chunk-4MOAWEAS.js} +1 -1
- package/Marketplace/{chunk-OJWFYXZX.js → chunk-4OE3MMMX.js} +1 -1
- package/Marketplace/chunk-5C44SGF2.js +1 -0
- package/Marketplace/{chunk-CLDURV35.js → chunk-6ZS2L5PN.js} +2 -2
- package/Marketplace/{chunk-A2YNWIX6.js → chunk-7YWCBMKG.js} +1 -1
- package/Marketplace/{chunk-R22TUWCL.js → chunk-AEMYBJSZ.js} +8 -8
- package/Marketplace/{chunk-YR3PNRLA.js → chunk-AG6WVG43.js} +1 -1
- package/Marketplace/{chunk-UEWZXE4O.js → chunk-ANNMHZZT.js} +1 -1
- package/Marketplace/{chunk-6IFZ2TO6.js → chunk-AP4EF2UL.js} +1 -1
- package/Marketplace/{chunk-MKOJVMRR.js → chunk-AQ6ECUX3.js} +1 -1
- package/Marketplace/{chunk-ITTTKW6F.js → chunk-AROCRZ77.js} +1 -1
- package/Marketplace/chunk-BXOEDDVZ.js +1 -0
- package/Marketplace/{chunk-QACWANJT.js → chunk-CKPC5U5G.js} +1 -1
- package/Marketplace/{chunk-SYENQYR7.js → chunk-CNAOOCHA.js} +1 -1
- package/Marketplace/{chunk-ZAVDOMSW.js → chunk-CQP2B2TM.js} +1 -1
- package/Marketplace/{chunk-NRCXYGO3.js → chunk-CYWMBHSL.js} +1 -1
- package/Marketplace/{chunk-O55KM5KY.js → chunk-CZTCB6IN.js} +1 -1
- package/Marketplace/{chunk-UMY6NG57.js → chunk-CZVDXGFV.js} +1 -1
- package/Marketplace/{chunk-I5IZPTXZ.js → chunk-DV6CR4ON.js} +1 -1
- package/Marketplace/{chunk-KC3C62UO.js → chunk-EH44DQPL.js} +2 -2
- package/Marketplace/{chunk-2EL3WEWS.js → chunk-ETSGUVUY.js} +1 -1
- package/Marketplace/{chunk-XQGRC7V2.js → chunk-EWP765EH.js} +1 -1
- package/Marketplace/{chunk-F4HFUSVI.js → chunk-F2Z5B5F7.js} +1 -1
- package/Marketplace/{chunk-A4F37V57.js → chunk-F4H4L2MZ.js} +1 -1
- package/Marketplace/{chunk-GOS4RIF2.js → chunk-FIJNFHLO.js} +1 -1
- package/Marketplace/{chunk-AZ2FLWCK.js → chunk-FQPTE3NE.js} +2 -2
- package/Marketplace/chunk-GFZNLP7T.js +1 -0
- package/Marketplace/{chunk-X5DJBQUZ.js → chunk-GJBLRYGL.js} +1 -1
- package/Marketplace/{chunk-CFC5CQ3V.js → chunk-GOH4NFHB.js} +1 -1
- package/Marketplace/{chunk-UPYS4A4M.js → chunk-HSKNABGC.js} +1 -1
- package/Marketplace/{chunk-UBB6E4VL.js → chunk-HV6V6JHY.js} +1 -1
- package/Marketplace/{chunk-6MPSYC77.js → chunk-IUE63ICJ.js} +1 -1
- package/Marketplace/{chunk-5XI7HWS5.js → chunk-IUXKVT25.js} +1 -1
- package/Marketplace/{chunk-IR5OMZTZ.js → chunk-JBRMFKFP.js} +1 -1
- package/Marketplace/{chunk-CRZOIZUQ.js → chunk-JTOYNS32.js} +1 -1
- package/Marketplace/{chunk-OTFACGUB.js → chunk-K2AEH6J2.js} +1 -1
- package/Marketplace/{chunk-XENOOCI4.js → chunk-KM7AK6CM.js} +1 -1
- package/Marketplace/{chunk-BAYW2AHI.js → chunk-KPW2PAKY.js} +1 -1
- package/Marketplace/{chunk-6LULIB2P.js → chunk-KSJM72K6.js} +1 -1
- package/Marketplace/{chunk-K654EZ3I.js → chunk-LS372KQR.js} +1 -1
- package/Marketplace/{chunk-2DJWDXTZ.js → chunk-LUKM5MU6.js} +1 -1
- package/Marketplace/{chunk-KQQCKHF3.js → chunk-N2NHN3VW.js} +1 -1
- package/Marketplace/{chunk-3Y6LJS2H.js → chunk-NUGAU26U.js} +1 -1
- package/Marketplace/{chunk-HTQJCQ32.js → chunk-O52OUAO2.js} +1 -1
- package/Marketplace/{chunk-KR2UT3GA.js → chunk-O7ADIUFO.js} +1 -1
- package/Marketplace/{chunk-ZDYYX736.js → chunk-ODP5RBKW.js} +1 -1
- package/Marketplace/chunk-OQZUWV6H.js +1 -0
- package/Marketplace/{chunk-QUXUEWEF.js → chunk-PAUX3XL6.js} +1 -1
- package/Marketplace/chunk-PFUTB4ID.js +1 -0
- package/Marketplace/chunk-PLKN56KI.js +1 -0
- package/Marketplace/{chunk-ARZ2S6YD.js → chunk-POYJI64B.js} +1 -1
- package/Marketplace/{chunk-BCM6WRZR.js → chunk-QG5FNL4B.js} +1 -1
- package/Marketplace/{chunk-JRXB6762.js → chunk-QNVCH6O7.js} +1 -1
- package/Marketplace/{chunk-6X2OBNJQ.js → chunk-QUKSBWYY.js} +1 -1
- package/Marketplace/chunk-R54A2XXE.js +1 -0
- package/Marketplace/{chunk-NZA4BEER.js → chunk-RM6R233Y.js} +1 -1
- package/Marketplace/{chunk-RCRPQNNW.js → chunk-SCDRAKE5.js} +1 -1
- package/Marketplace/chunk-SJPCH5QW.js +1 -0
- package/Marketplace/{chunk-ZR5IXNXB.js → chunk-SLZOAGEK.js} +1 -1
- package/Marketplace/{chunk-T2IGESWD.js → chunk-SXWLDBET.js} +1 -1
- package/Marketplace/{chunk-T3Z5OMIZ.js → chunk-SZECT5VQ.js} +1 -1
- package/Marketplace/{chunk-R76V3PTN.js → chunk-TCR2MYFZ.js} +1 -1
- package/Marketplace/{chunk-PZ4PSWYM.js → chunk-TTKODGQ5.js} +1 -1
- package/Marketplace/chunk-TV4AND7E.js +1 -0
- package/Marketplace/{chunk-4PZ5Q3HI.js → chunk-U5DJKOE4.js} +1 -1
- package/Marketplace/{chunk-AGRVVEIR.js → chunk-UF26HAKV.js} +1 -1
- package/Marketplace/{chunk-6DZKFXDF.js → chunk-UO4C5CL2.js} +1 -1
- package/Marketplace/{chunk-ZIOAOUAM.js → chunk-USOWXH7U.js} +1 -1
- package/Marketplace/{chunk-PB2SJSML.js → chunk-V3NCYRCF.js} +1 -1
- package/Marketplace/{chunk-DIUEZVRG.js → chunk-VB4FJ2II.js} +1 -1
- package/Marketplace/{chunk-BQTUAYGY.js → chunk-VHALYIP4.js} +1 -1
- package/Marketplace/{chunk-GMGCY3OL.js → chunk-VHON4PKV.js} +1 -1
- package/Marketplace/{chunk-TGN4NMQY.js → chunk-W2JHOFCS.js} +1 -1
- package/Marketplace/{chunk-5QAURMZF.js → chunk-W2T2IE6B.js} +1 -1
- package/Marketplace/{chunk-NB5XHM62.js → chunk-W74FHQHW.js} +1 -1
- package/Marketplace/{chunk-YPVYJUXS.js → chunk-WBH4HJM5.js} +1 -1
- package/Marketplace/chunk-WDF2BOO6.js +1 -0
- package/Marketplace/{chunk-ALKC77XL.js → chunk-WLKXZBL7.js} +1 -1
- package/Marketplace/{chunk-LSXUXG54.js → chunk-X2RRI4VD.js} +1 -1
- package/Marketplace/{chunk-33IXC6UG.js → chunk-Y4M43RCV.js} +1 -1
- package/Marketplace/{chunk-GPC4DECX.js → chunk-YSRNSXDO.js} +1 -1
- package/Marketplace/{chunk-SMCI6XBO.js → chunk-YXWPKMEG.js} +1 -1
- package/Marketplace/chunk-ZWBIPCRI.js +1 -0
- package/Marketplace/{chunk-ABQG3LB5.js → chunk-ZYOC4667.js} +1 -1
- package/Marketplace/index.html +3 -3
- package/Marketplace/{main-OO7ZEZW4.js → main-2VAZARFN.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-24DT5FN2.js +0 -1
- package/Marketplace/chunk-6BFXOKCB.js +0 -1
- package/Marketplace/chunk-6QGSDBR7.js +0 -1
- package/Marketplace/chunk-736E275F.js +0 -1
- package/Marketplace/chunk-AVVPZ3NI.js +0 -1
- package/Marketplace/chunk-CSSG7NAJ.js +0 -1
- package/Marketplace/chunk-ECN3QRMT.js +0 -1
- package/Marketplace/chunk-SACERVTF.js +0 -1
- package/Marketplace/chunk-SNDG7727.js +0 -1
- package/Marketplace/chunk-UDIAPGRB.js +0 -1
- package/Marketplace/chunk-WXQDF2MX.js +0 -1
- package/Marketplace/chunk-ZFDUVL4I.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"marketplacepos","version":"5.43.
|
|
1
|
+
{"name":"marketplacepos","version":"5.43.2"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as we}from"./chunk-6IFZ2TO6.js";import"./chunk-UF4FKEE7.js";import"./chunk-2DJWDXTZ.js";import{b as De}from"./chunk-AGRVVEIR.js";import"./chunk-ZNDU44GH.js";import"./chunk-5XI7HWS5.js";import"./chunk-WGXUKTYP.js";import{a as Ne,b as Pe}from"./chunk-6MPSYC77.js";import{a as Fe,b as Ae}from"./chunk-KX5AWR75.js";import{a as ae,b as ke,c as Ee,d as ie,e as ne}from"./chunk-KR2UT3GA.js";import"./chunk-R76V3PTN.js";import{a as Me}from"./chunk-O55KM5KY.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-FWG4H3QG.js";import"./chunk-NZA4BEER.js";import"./chunk-JV4MMNGD.js";import"./chunk-GZXQUJKX.js";import"./chunk-ALKC77XL.js";import"./chunk-NTW6FBP5.js";import"./chunk-LR4UZ2OS.js";import"./chunk-F4GMWHYJ.js";import"./chunk-WHZ44BAL.js";import"./chunk-JOBWFOGC.js";import"./chunk-PO7JVKK3.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-SH7KN2AS.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-5DIRXS7I.js";import"./chunk-OZ7LWNOK.js";import"./chunk-VRI3CYGG.js";import"./chunk-AVEGIEYT.js";import{d as L,e as B}from"./chunk-SYENQYR7.js";import"./chunk-55OI2SUF.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-PB2SJSML.js";import{e as q}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import{b as ve,c as f}from"./chunk-PW42BQIY.js";import{m as Ie,n as Se}from"./chunk-6X2OBNJQ.js";import{A as U,c as te,e as be,h as V,i as H,m as ye,n as W,p as X,r as J,y as z,z as Q}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{r as xe,s as Te}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{g as O,j as x,n as T}from"./chunk-MTUIRWOB.js";import{$c as C,Gb as y,Gc as u,Hc as fe,Ic as Z,K as ue,Ka as M,Kc as he,Lc as ge,M as _e,Mb as h,Mc as Ce,Oa as re,Qc as v,Yb as s,Z as ee,ad as b,dc as D,ea as A,ec as $,gc as G,hc as Y,ic as l,ja as k,jc as r,kc as _,lc as N,mc as P,oc as w,pa as d,rb as p,tc as g,uc as a,v as F,xa as E,ya as I,za as S}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var le=(()=>{class i{constructor(){this.httpService=d(q),this.formBuilder=d(z),this.uploadProductService=d(ne)}getAttributes(e,t){return this.httpService.get("api/product/tiktok/GetAttributes",[{key:"ID",value:e},{key:"CategoryID",value:t}]).pipe(ue(n=>this.uploadProductService.selectedProduct$.pipe(F(c=>(n=this.mappingAttributeSalesProperty(n,c),n)))))}mappingAttributeSalesProperty(e,t){let o=0;return e.filter(n=>(n.type=="SALES_PROPERTY"&&(o+=1),o>1?(o=0,!1):!0)).map(n=>(n.type=="SALES_PROPERTY"&&(n.name="Jenis Variant",n.is_multiple_selection=!1,n.is_required=this.isProductHasMoreVariant(t),n.values=[{id:"Warna",name:"Warna"},{id:"Ukuran",name:"Ukuran"}]),n))}isProductHasMoreVariant(e){let t=!1,o=[];return e.forEach(n=>{n.Variants&&o.push(n.Variants.length)}),t=o.some(n=>n>1),t}createFormGroup(e){let t=this.formBuilder.group({}),o=[];return e.forEach(n=>{o=[],n.is_required&&o.push(be.required),t.addControl(n.id,this.formBuilder.control(null,o))}),t}getFilteredAttributes(e,t){let o=JSON.parse(JSON.stringify(e)),n=Object.keys(t),c=o.filter(j=>n.findIndex(Re=>parseInt(Re)==j.id)!=-1);return c=this.filterSelectedAttributes(c,t),c}filterSelectedAttributes(e,t){return e.map(n=>(f.IsNotEmpty(n.values)?n.is_multiple_selection?n.values=n.values.filter(c=>t[n.id]?.includes(c.id)):n.values=n.values.filter(c=>c.id==t[n.id]):t[n.id]&&(n.values=[{id:null,name:t[n.id]}]),n)).filter(n=>n?.values?.length>0)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=k({token:i,factory:i.\u0275fac})}}return i})();function We(i,m){i&1&&(l(0,"span",5),u(1,"*"),r())}function Xe(i,m){if(i&1&&_(0,"ng-select",6),i&2){let e=a().$implicit;s("multiple",!0)("formControlName",e.id)("items",e.values)("placeholder","Pilih "+(e==null?null:e.name))}}function Je(i,m){if(i&1&&_(0,"ng-select",7),i&2){let e=a().$implicit;s("formControlName",e.id)("items",e.values)("placeholder","Pilih "+(e==null?null:e.name))}}function ze(i,m){if(i&1&&_(0,"input",8),i&2){let e=a().$implicit;s("formControlName",e.id)("placeholder",e==null?null:e.name)}}function Qe(i,m){if(i&1&&(l(0,"small",5),u(1),r()),i&2){let e=a().$implicit;p(),Z(" ",e==null?null:e.name," is mandatory ")}}function qe(i,m){if(i&1&&(l(0,"div",3)(1,"div",4),h(2,We,2,0,"span",5),l(3,"span"),u(4),r()(),h(5,Xe,1,4,"ng-select",6)(6,Je,1,3,"ng-select",7)(7,ze,1,2,"input",8)(8,Qe,2,1,"small",5),r()),i&2){let e=m.$implicit;p(2),D(e.is_required?2:-1),p(2),Z(" ",e==null?null:e.name," "),p(),D(e.is_multiple_selection?5:e.values!==null&&e.values.length>0?6:7),p(3),D(e.is_required?8:-1)}}function Ze(i,m){if(i&1&&(N(0),l(1,"form",1)(2,"div",2),G(3,qe,9,4,"div",3,$),r()(),P()),i&2){let e=m.ngIf,t=a();p(),s("formGroup",t.form),p(2),Y(e)}}var Ve=(()=>{class i{constructor(){this.tiktokAttributeFormService=d(le),this.attributesChanges=new M}ngOnChanges(){f.IsNotEmpty(this.categoryId)&&f.IsNotEmpty(this.channelId)&&(this.attributes$=this.tiktokAttributeFormService.getAttributes(this.channelId,this.categoryId).pipe(F(e=>e.filter(t=>!(t.type=="PRODUCT_PROPERTY"&&(f.IsEmpty(t.values)||t.values?.length==0)&&t.is_customizable==!1))),A(e=>{this.form=this.tiktokAttributeFormService.createFormGroup(e),this.listenToFormChange(e)}),ee(1)))}listenToFormChange(e){let t=[];this.formSubscription=this.form.valueChanges.subscribe(o=>{t=this.tiktokAttributeFormService.getFilteredAttributes(e,o),this.attributesChanges.emit(t)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=y({type:i,selectors:[["tiktok-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{attributesChanges:"attributesChanges"},features:[v([le]),E],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],[1,"text-danger"],["bindLabel","name","bindValue","id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"]],template:function(t,o){t&1&&(h(0,Ze,5,1,"ng-container",0),C(1,"async")),t&2&&s("ngIf",b(1,1,o.attributes$))},dependencies:[T,O,x,B,L,U,W,te,V,H,X,J,Q],encapsulation:2})}}return i})();var se=(()=>{class i{constructor(){this.woocommerceUploadService=d(ie)}getAttributes(e,t){return this.woocommerceUploadService.getAttributes(e,t).pipe(F(o=>o.map(n=>({key:n.name,label:n.name}))))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=k({token:i,factory:i.\u0275fac})}}return i})();var Ue=(()=>{class i{constructor(){this.wooAttributeFormService=d(se),this.channelId=re(),this.categoryId=re(),this.attributesChanges=new M}ngOnChanges(){f.IsNotEmpty(this.categoryId())&&f.IsNotEmpty(this.channelId())&&(this.attributes$=this.wooAttributeFormService.getAttributes(this.channelId(),this.categoryId()))}onSelectAttribute(e){this.attributesChanges.emit([e.key])}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=y({type:i,selectors:[["wooocommerce-attribute-form"]],inputs:{channelId:[1,"channelId"],categoryId:[1,"categoryId"]},outputs:{attributesChanges:"attributesChanges"},features:[v([se]),E],decls:6,vars:3,consts:[[1,"row"],[1,"col-6"],[1,"mb-1"],["bindLabel","label","bindValue","id","placeholder","Pilih Atribut",3,"change","items"]],template:function(t,o){t&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),u(3,"Atribut"),r(),l(4,"ng-select",3),C(5,"async"),g("change",function(c){return o.onSelectAttribute(c)}),r()()()),t&2&&(p(4),s("items",b(5,1,o.attributes$)))},dependencies:[T,x,Q,B,L,U],encapsulation:2})}}return i})();var me=(()=>{class i{constructor(){this.httpService=d(q),this.formBuilder=d(z)}getAttributes(e,t){return this.httpService.get("api/product/tokopedia/GetAttributes",[{key:"ID",value:e},{key:"CategoryID",value:t}]).pipe(F(n=>n))}createFormGroup(e){let t=this.formBuilder.group({});return e.forEach(o=>{t.addControl(o.variant,this.formBuilder.control(null))}),t}convertAttributes(e={}){return Object.values(e).filter(o=>o!==null).map(o=>JSON.stringify(o))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=k({token:i,factory:i.\u0275fac})}}return i})();function Ke(i,m){if(i&1&&(l(0,"div",3)(1,"div",4),u(2),r(),_(3,"ng-select",5),r()),i&2){let e=m.$implicit;p(2),Z(" ",e==null?null:e.variant," "),p(),s("formControlName",e.variant)("items",e.values)("placeholder","Pilih "+(e==null?null:e.variant))}}function et(i,m){if(i&1&&(N(0),l(1,"form",1)(2,"div",2),G(3,Ke,4,4,"div",3,$),r()(),P()),i&2){let e=m.ngIf,t=a();p(),s("formGroup",t.form),p(2),Y(e)}}var Le=(()=>{class i{constructor(){this.tokpedAttrFormService=d(me),this.attributesChanges=new M}ngOnInit(){}ngOnChanges(e){f.IsNotEmpty(this.categoryId)&&f.IsNotEmpty(this.channelId)&&(this.attributes$=this.tokpedAttrFormService.getAttributes(this.channelId,this.categoryId).pipe(A(t=>{this.form=this.tokpedAttrFormService.createFormGroup(t),this.listenToFormChange()})))}listenToFormChange(){let e=[];this.formSubscription=this.form.valueChanges.subscribe(t=>{e=this.tokpedAttrFormService.convertAttributes(t),this.attributesChanges.emit(e)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=y({type:i,selectors:[["tokopedia-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{attributesChanges:"attributesChanges"},features:[v([me]),E],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"]],template:function(t,o){t&1&&(h(0,et,5,1,"ng-container",0),C(1,"async")),t&2&&s("ngIf",b(1,1,o.attributes$))},dependencies:[T,O,x,B,L,U,W,V,H,X,J],encapsulation:2})}}return i})();var de=(()=>{class i{constructor(){this.httpService=d(q),this.formBuilder=d(z)}getAttributes(e){return this.httpService.get("api/product/shopify/GetAttributes",[{key:"ID",value:e}]).pipe(A(o=>(o.Options.StatusOptions=o.Options.Status.map(n=>({id:n,name:n})),o)))}createFormGroup(e){let t=this.formBuilder.group({});return Object.keys(e.Attribute).forEach(n=>{t.addControl(n,this.formBuilder.control(null))}),t}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=k({token:i,factory:i.\u0275fac})}}return i})();function tt(i,m){if(i&1&&(N(0),l(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4),u(5," Brand "),r(),_(6,"input",5),r(),l(7,"div",6)(8,"div",4),u(9," Product Type "),r(),_(10,"input",7),r(),l(11,"div",6)(12,"div",4),u(13," Status "),r(),_(14,"ng-select",8),r()()(),P()),i&2){let e=m.ngIf,t=a();p(),s("formGroup",t.form),p(13),s("items",e.Options.StatusOptions)}}var Be=(()=>{class i{constructor(){this.attributesChanges=new M,this.shopifyFormService=d(de)}ngOnChanges(e){e.channelId&&(this.attributes$=this.shopifyFormService.getAttributes(this.channelId).pipe(A(t=>{this.form=this.shopifyFormService.createFormGroup(t),this.listenToFormChange()})))}listenToFormChange(){this.formSubscription=this.form.valueChanges.pipe(_e(500)).subscribe(e=>{this.attributesChanges.emit([e])})}ngOnDestroy(){this.formSubscription.unsubscribe()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=y({type:i,selectors:[["shopify-attribute-form"]],inputs:{channelId:"channelId"},outputs:{attributesChanges:"attributesChanges"},features:[v([de]),E],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["formControlName","Brand","type","text","placeholder","brand",1,"form-control"],[1,"col-6"],["formControlName","ProductType","type","text","placeholder","Product Type",1,"form-control"],["formControlName","Status","bindLabel","name","bindValue","id","placeholder","Status",3,"items"]],template:function(t,o){t&1&&(h(0,tt,15,2,"ng-container",0),C(1,"async")),t&2&&s("ngIf",b(1,1,o.attributes$))},dependencies:[T,O,x,U,W,te,V,H,X,J,B,L],encapsulation:2})}}return i})();function it(i,m){if(i&1&&(l(0,"div",6),_(1,"app-product-card",9),r()),i&2){let e=m.$implicit;p(),s("productId",e==null?null:e.ID)("title",e==null?null:e.Name)("image",e==null?null:e.ThumbnailUrl)("description",(e==null||e.Variants==null?null:e.Variants.length)>1?(e==null||e.Variants==null?null:e.Variants.length)+" Variants":null)("imageForZoom",e==null?null:e.ImageUrl)("code",e==null||e.Variants[0]==null?null:e.Variants[0].Code)("showFooter",!1)}}function nt(i,m){if(i&1){let e=w();N(0),l(1,"mat-checkbox",21),Ce("ngModelChange",function(o){I(e);let n=a().$implicit;return ge(n.selected,o)||(n.selected=o),S(o)}),g("ngModelChange",function(){let o=I(e).ngIf,n=a(),c=n.$implicit,j=n.$index,K=a();return S(K.onSelectChannel(c,j,o))}),r(),P()}if(i&2){let e=a().$implicit;p(),he("ngModel",e.selected)}}function ot(i,m){if(i&1&&(l(0,"div",18),_(1,"input",22),r()),i&2){let e=a().$implicit,t=a();s("matTooltip",e.type==t.channelType.Shopify?"Cannot change category, please change category in admin.shopify.com":e.type==t.channelType.Plugo?"You can change the category after the product has been uploaded to the Plugo Dashboard.":"")}}function rt(i,m){if(i&1){let e=w();l(0,"app-channel-category-select",23),g("selectedCategory",function(o){I(e);let n=a().$index,c=a();return S(c.onCategoryChange(n,o))}),r()}if(i&2){let e=a().$implicit,t=a();s("disabled",!e.selected||e.selected&&e.type==t.channelType.Lazada)("channelId",e.id)("channelType",e.type)("categoryId",e.categoryId)}}function at(i,m){if(i&1){let e=w();l(0,"shopee-attribute-form",27),g("attributesChanges",function(o){I(e);let n=a(2).$index,c=a();return S(c.onAttributesChange(n,o))}),r()}if(i&2){let e=a(2).$implicit;s("categoryId",e.categoryId)("channelId",e.id)("channelType",e.type)}}function lt(i,m){if(i&1){let e=w();l(0,"tiktok-attribute-form",28),g("attributesChanges",function(o){I(e);let n=a(2).$index,c=a();return S(c.onAttributesChange(n,o))}),r()}if(i&2){let e=a(2).$implicit;s("categoryId",e.categoryId)("channelId",e.id)}}function ct(i,m){if(i&1){let e=w();l(0,"wooocommerce-attribute-form",28),g("attributesChanges",function(o){I(e);let n=a(2).$index,c=a();return S(c.onAttributesChange(n,o))}),r()}if(i&2){let e=a(2).$implicit;s("categoryId",e.categoryId)("channelId",e.id)}}function pt(i,m){if(i&1){let e=w();l(0,"tokopedia-attribute-form",28),g("attributesChanges",function(o){I(e);let n=a(2).$index,c=a();return S(c.onAttributesChange(n,o))}),r()}if(i&2){let e=a(2).$implicit;s("categoryId",e.categoryId)("channelId",e.id)}}function st(i,m){if(i&1&&(l(0,"div",20)(1,"div",24),h(2,at,1,3,"shopee-attribute-form",25)(3,lt,1,2,"tiktok-attribute-form",26)(4,ct,1,2,"wooocommerce-attribute-form",26)(5,pt,1,2,"tokopedia-attribute-form",26),r()()),i&2){let e,t=a().$implicit,o=a();p(2),D((e=t.type)===o.channelType.Shopee?2:e===o.channelType.Tiktok?3:e===o.channelType.WooCommerce?4:e===o.channelType.Tokopedia?5:-1)}}function mt(i,m){if(i&1){let e=w();l(0,"div",20)(1,"div",24)(2,"shopify-attribute-form",29),g("attributesChanges",function(o){I(e);let n=a().$index,c=a();return S(c.onAttributesChange(n,o))}),r()()()}if(i&2){let e=a().$implicit;p(2),s("channelId",e.id)}}function dt(i,m){if(i&1&&(l(0,"div",8)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div"),h(6,nt,2,1,"ng-container",14),C(7,"async"),r(),l(8,"div"),_(9,"app-channel-logo",15),r(),l(10,"div",16)(11,"span"),u(12),r()()()(),l(13,"div",12)(14,"div",17),h(15,ot,2,1,"div",18)(16,rt,1,4,"app-channel-category-select",19),r()()(),h(17,st,6,1,"div",20)(18,mt,3,1,"div",20),r()()),i&2){let e=m.$implicit,t=a();p(6),s("ngIf",b(7,8,t.defaultCategories$)),p(3),s("typeId",e.type)("showChannelName",!1),p(),s("matTooltip",e.name)("matTooltipShowDelay",2500),p(2),fe(e.name),p(3),D(e.type==t.channelType.Shopify||e.type==t.channelType.Plugo?15:16),p(2),D(e.categoryId&&t.channelType.Lazada!=e.type&&e.selected?17:t.channelType.Shopify==e.type&&e.selected?18:-1)}}var Sn=(()=>{class i{constructor(){this.uploadProductService=d(ne),this.selectedProducts$=this.uploadProductService.selectedProduct$,this.channelProductUploads=this.uploadProductService.channelProductUpload,this.channelType=ve,this.defaultCategories$=this.uploadProductService.getDefaultCategory().pipe(ee(1))}onCategoryChange(e,t){this.channelProductUploads.update(o=>o.map((n,c)=>(c==e&&(n.categoryId=t,n.attributes=[]),n)))}onAttributesChange(e,t){this.channelProductUploads.update(o=>o.map((n,c)=>(c==e&&(n.attributes=t),n)))}onSelectChannel(e,t,o){this.channelProductUploads.update(n=>n.map((c,j)=>{if(j==t&&e.selected){let K=this.findCategoryByChannelId(e.id,o);c.categoryId=K?.DefaultCategoryID}return j==t&&!e.selected&&(c.categoryId=null),c}))}findCategoryByChannelId(e,t){return t.find(o=>o.ID===e)}onUploadProduct(){this.uploadProductService.onUploadProduct(this.channelProductUploads())}ngOnDestroy(){this.uploadProductService.clearSelectedProduct()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=y({type:i,selectors:[["app-product-upload"]],features:[v([ae,ke,Ee,ie])],decls:17,vars:5,consts:[["headerTitle","Upload Product To Channel",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-upload"],[1,"container-fluid","mt-6"],[1,"ps-3","mt-8","pb-5","fw-medium"],[1,"row","mb-10","ps-3"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"ps-3","mb-8","border-bottom","pb-5","fw-medium"],[1,"row","mb-6"],[3,"productId","title","image","description","imageForZoom","code","showFooter"],[1,"col-12"],[1,"row"],[1,"col-3"],[1,"d-flex","align-items-center"],[4,"ngIf"],[3,"typeId","showChannelName"],[2,"overflow","hidden","text-overflow","ellipsis","white-space","nowrap",3,"matTooltip","matTooltipShowDelay"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip"],[3,"disabled","channelId","channelType","categoryId"],[1,"row","my-3"],["color","primary",1,"example-margin",3,"ngModelChange","ngModel"],["disabled","","type","text","placeholder","Category Unavailable",1,"form-control","rounded-1",2,"height","35px"],[3,"selectedCategory","disabled","channelId","channelType","categoryId"],[1,"col-12","ps-11"],[3,"categoryId","channelId","channelType"],[3,"categoryId","channelId"],[3,"attributesChanges","categoryId","channelId","channelType"],[3,"attributesChanges","categoryId","channelId"],[3,"attributesChanges","channelId"]],template:function(t,o){if(t&1&&(l(0,"mainpanel",0)(1,"actions")(2,"button",1),g("click",function(){return o.onUploadProduct()}),_(3,"i",2),u(4," Upload "),r()(),l(5,"content")(6,"div",3)(7,"h3",4),u(8,"Product To Upload"),r(),l(9,"div",5),G(10,it,2,7,"div",6,$),C(12,"async"),r(),l(13,"h3",7),u(14,"Channel To Upload"),r(),G(15,dt,19,10,"div",8,$),r()()()),t&2){let n;s("hideSearchBox",!0)("hideSearchDropdown",!0),p(2),s("disabled",((n=o.channelProductUploads())==null?null:n.length)==0),p(8),Y(b(12,3,o.selectedProducts$)),p(5),Y(o.channelProductUploads())}},dependencies:[T,O,x,De,Se,Ie,Pe,Ne,Ae,Fe,Q,V,ye,Te,xe,Ve,Ue,Le,Be,Me,we],encapsulation:2})}}return i})();export{Sn as ProductUploadComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as se,b as ce,c as ue}from"./chunk-2BUABOHG.js";import{a as _e}from"./chunk-MKOJVMRR.js";import{a as de}from"./chunk-G4OF4YLE.js";import"./chunk-2DJWDXTZ.js";import{a as pe}from"./chunk-ABQG3LB5.js";import{a as me}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as ae}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ne}from"./chunk-PB2SJSML.js";import{e as ie}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import"./chunk-PW42BQIY.js";import{m as le,n as oe}from"./chunk-6X2OBNJQ.js";import{c as Y,h as Z,m as $,o as ee,z as te}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{s as re}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as J,k as K,m as Q,n as X}from"./chunk-MTUIRWOB.js";import{$c as w,Gb as O,Gc as a,Hc as v,Ic as k,Kc as _,Lc as f,Mb as x,Mc as g,Nc as z,Oc as j,Pc as H,Qc as R,Ra as N,Rc as U,Sc as G,Yb as c,Z as T,ac as F,ad as A,bd as q,dc as b,ec as I,gc as D,hc as B,ic as i,ja as L,jc as n,kc as S,oc as V,pa as y,pb as W,rb as o,tc as E,uc as u,v as P,ya as d,za as s}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var M=(()=>{class t{constructor(){this.httpService=y(ie)}getAllOrders(e){return this.httpService.post(ne.GetAll,e).pipe(P(m=>m.Data))}static{this.\u0275fac=function(m){return new(m||t)}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac})}}return t})();var ge=()=>[],Ce=t=>({"td-cell-hover":t});function he(t,C){if(t&1&&S(0,"variants-dropdown",25),t&2){let e=u().$implicit;c("variants",e==null?null:e.Variants)}}function Se(t,C){if(t&1&&S(0,"variant-with-image",26),t&2){let e=u().$implicit;c("variant",e==null?null:e.Variants[0])}}function ve(t,C){if(t&1&&(i(0,"span"),a(1),n()),t&2){let e=u().$implicit;o(),v(e.LogisticService==null?null:e.LogisticService.Option)}}function we(t,C){if(t&1&&(i(0,"tr")(1,"td")(2,"div",21)(3,"div",22)(4,"div"),S(5,"img",23),w(6,"channelImage"),n(),i(7,"div"),S(8,"order-link",24),n()(),i(9,"small"),a(10),w(11,"date"),n()()(),i(12,"td"),a(13),n(),i(14,"td"),x(15,he,1,1,"variants-dropdown",25)(16,Se,1,1,"variant-with-image",26),n(),i(17,"td"),a(18),w(19,"number"),n(),i(20,"td")(21,"span"),a(22),n(),x(23,ve,2,1,"span"),n()()),t&2){let e=C.$implicit;o(5),c("src",A(6,11,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),o(3),c("order",e),o(2),k(" ",q(11,13,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),o(3),v(e.Customer),o(),F(G(18,Ce,(e.Variants==null?null:e.Variants.length)>1)),o(),b((e.Variants==null?null:e.Variants.length)>1?15:16),o(3),v(A(19,16,e.Amount)),o(4),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),o(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?23:-1)}}function ye(t,C){if(t&1){let e=V();i(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),a(5,"Number"),n(),i(6,"th",18),a(7,"Customer"),n(),i(8,"th"),a(9,"Items"),n(),i(10,"th",19),a(11,"Amount"),n(),i(12,"th",19),a(13,"Shipping"),n()()(),i(14,"tbody"),D(15,we,24,20,"tr",null,I),n()(),i(17,"app-custom-paginator",20),E("next",function(){d(e);let r=u();return s(r.initAllOrders())})("previous",function(){d(e);let r=u();return s(r.initAllOrders())}),n()()}if(t&2){let e=u(),m=H(0);o(15),B(m),o(2),c("filter",e.filter())("totaldata",m==null?null:m.length)}}function xe(t,C){t&1&&(i(0,"div",14),S(1,"app-empty-state"),n())}var Xe=(()=>{class t{constructor(){this.allService=y(M),this.filter=N({PageNumber:1,PageSize:100,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.initAllOrders()}initAllOrders(){this.allOrders$=this.allService.getAllOrders(this.filter()).pipe(T(1))}static{this.\u0275fac=function(m){return new(m||t)}}static{this.\u0275cmp=O({type:t,selectors:[["app-all"]],features:[R([M])],decls:29,vars:12,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],["rowCountApi","/api/orders/allcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[3,"order"],[3,"variants"],[3,"variant"]],template:function(m,r){if(m&1){let p=V();z(0),w(1,"async"),i(2,"mainpanel",0),E("onSubmit",function(){return d(p),s(r.initAllOrders())}),g("textChange",function(l){return d(p),f(r.filter().Number,l)||(r.filter().Number=l),s(l)}),i(3,"filters")(4,"div")(5,"label",1),a(6,"From/To"),n(),i(7,"channel-select-options",2),g("ngModelChange",function(l){return d(p),f(r.filter().ListChannelID,l)||(r.filter().ListChannelID=l),s(l)}),n()(),i(8,"div",3)(9,"label",1),a(10,"From/To"),n(),i(11,"div",4)(12,"datepicker",5),g("dateChange",function(l){return d(p),f(r.filter().From,l)||(r.filter().From=l),s(l)}),n()(),i(13,"div")(14,"datepicker",6),g("dateChange",function(l){return d(p),f(r.filter().To,l)||(r.filter().To=l),s(l)}),n()()(),i(15,"div",3)(16,"label",7),a(17,"Page Number"),n(),i(18,"input",8),g("ngModelChange",function(l){return d(p),f(r.filter().PageNumber,l)||(r.filter().PageNumber=l),s(l)}),n()(),i(19,"div",3)(20,"label",7),a(21,"Page Size"),n(),i(22,"input",9),g("ngModelChange",function(l){return d(p),f(r.filter().PageSize,l)||(r.filter().PageSize=l),s(l)}),n()()(),i(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),x(27,ye,18,2,"div",13)(28,xe,2,0,"div",14),n()()()()()}if(m&2){let p=j(A(1,8,r.allOrders$)||U(11,ge));o(2),_("text",r.filter().Number),o(5),c("multiple",!0),_("ngModel",r.filter().ListChannelID),o(5),_("date",r.filter().From),o(2),_("date",r.filter().To),o(4),_("ngModel",r.filter().PageNumber),o(4),_("ngModel",r.filter().PageSize),o(5),b((p==null?null:p.length)>0?27:28)}},dependencies:[X,J,Q,K,oe,le,me,ae,te,Y,ee,Z,$,se,ce,ue,de,pe,re,_e],encapsulation:2})}}return t})();export{Xe as AllComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ge}from"./chunk-4PZ5Q3HI.js";import{a as ue,b as Ce,c as _e}from"./chunk-2BUABOHG.js";import{a as fe}from"./chunk-MKOJVMRR.js";import{a as de}from"./chunk-G4OF4YLE.js";import"./chunk-2DJWDXTZ.js";import{a as se}from"./chunk-ABQG3LB5.js";import"./chunk-6MPSYC77.js";import{a as ce}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as me}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as oe}from"./chunk-PB2SJSML.js";import{b as ie,e as ne}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import{b}from"./chunk-PW42BQIY.js";import{m as le,n as pe}from"./chunk-6X2OBNJQ.js";import{c as Y,h as Z,m as $,o as ee,z as te}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{r as re,s as ae}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as J,k as K,m as Q,n as X}from"./chunk-MTUIRWOB.js";import{$c as y,Gb as W,Gc as l,Hc as v,Ic as z,Kc as C,Lc as _,Mb as x,Mc as f,Nc as j,Oc as H,Pc as R,Qc as U,Ra as N,Sc as G,Yb as u,Z as P,ac as F,ad as E,bd as q,dc as L,ec as D,gc as O,hc as B,ic as i,ja as k,jc as t,kc as d,oc as T,pa as S,pb as I,rb as a,tc as A,uc as g,v as M,ya as c,za as s}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var V=(()=>{class n{constructor(){this.httpService=S(ne),this.shippingLabelService=S(ge),this.toastrService=S(ie)}getAwaitingCollectionOrders(e){return this.httpService.post(oe.GetAwaitingCollection,e).pipe(M(p=>p?.Data))}printShippingLabel(e){switch(e?.MarketType){case b.Shopee:this.shippingLabelService.printShippingLabelShopee(e.Number,e.ShopID);break;case b.Tiktok:this.shippingLabelService.printShippingLabelTiktok(e.Number,e.ShopID);break;case b.Tokopedia:this.shippingLabelService.printShippingLabelTokopedia(e.Number);break;case b.Lazada:this.shippingLabelService.printShippingLabelLazada(e.Number,e.ShopID);break;case b.Shopify:this.toastrService.error("Shopify not supported","Error Not supported");break}}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275prov=k({token:n,factory:n.\u0275fac})}}return n})();var we=n=>({"td-cell-hover":n});function Se(n,h){if(n&1&&d(0,"variants-dropdown",28),n&2){let e=g().$implicit;u("variants",e==null?null:e.Variants)}}function ve(n,h){if(n&1&&d(0,"variant-with-image",29),n&2){let e=g().$implicit;u("variant",e==null?null:e.Variants[0])}}function be(n,h){if(n&1&&(i(0,"span"),l(1),t()),n&2){let e=g().$implicit;a(),v(e.LogisticService==null?null:e.LogisticService.Option)}}function ye(n,h){if(n&1){let e=T();i(0,"tr")(1,"td"),l(2),t(),i(3,"td")(4,"div",24)(5,"div",25)(6,"div"),d(7,"img",26),y(8,"channelImage"),t(),i(9,"div"),d(10,"order-link",27),t()(),i(11,"small"),l(12),y(13,"date"),t()()(),i(14,"td"),l(15),t(),i(16,"td"),x(17,Se,1,1,"variants-dropdown",28)(18,ve,1,1,"variant-with-image",29),t(),i(19,"td",30),l(20),y(21,"number"),t(),i(22,"td")(23,"span"),l(24),t(),x(25,be,2,1,"span"),t(),i(26,"td",31)(27,"button",32),A("click",function(){let o=c(e).$implicit,m=g(2);return s(m.onPrintShippingLabel(o))}),d(28,"i",33),t()()()}if(n&2){let e=h.$implicit;a(2),v(e.Outlet),a(5),u("src",E(8,12,e==null?null:e.MarketType),I)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(3),u("order",e),a(2),z(" ",q(13,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(3),v(e.Customer),a(),F(G(19,we,(e.Variants==null?null:e.Variants.length)>1)),a(),L((e.Variants==null?null:e.Variants.length)>1?17:18),a(3),v(E(21,17,e.Amount)),a(4),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),L(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1)}}function xe(n,h){if(n&1){let e=T();i(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),l(5,"Outlet"),t(),i(6,"th",19),l(7,"Number"),t(),i(8,"th",19),l(9,"Customer"),t(),i(10,"th"),l(11,"Items"),t(),i(12,"th",20),l(13,"Amount"),t(),i(14,"th",21),l(15,"Shipping"),t(),d(16,"th",22),t()(),i(17,"tbody"),O(18,ye,29,21,"tr",null,D),t()(),i(20,"app-custom-paginator",23),A("next",function(){c(e);let o=g();return s(o.initAwaitingCollection())})("previous",function(){c(e);let o=g();return s(o.initAwaitingCollection())}),t()()}if(n&2){let e=g(),p=R(0);a(18),B(p),a(2),u("filter",e.filter())("totaldata",p==null?null:p.length)}}function Le(n,h){n&1&&(i(0,"div",14),d(1,"app-empty-state"),t())}var it=(()=>{class n{constructor(){this.awaitingCollectionService=S(V),this.filter=N({PageNumber:1,PageSize:100,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.initAwaitingCollection()}initAwaitingCollection(){this.awaitingCollections$=this.awaitingCollectionService.getAwaitingCollectionOrders(this.filter()).pipe(P(1))}onPrintShippingLabel(e){this.awaitingCollectionService.printShippingLabel(e)}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275cmp=W({type:n,selectors:[["app-awaiting-collection"]],features:[U([V])],decls:29,vars:11,consts:[["headerTitle","Awaiting Collection","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],[2,"width","10px"],["rowCountApi","/api/orders/awaitingcollectioncount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"text-end","td-cell-hover"],["type","button","aria-label","Print order","title","Print","matTooltip","Print shipping label",1,"btn","p-0","border-0","bg-transparent",3,"click"],[1,"fa-solid","fa-print","fs-3"]],template:function(p,o){if(p&1){let m=T();j(0),y(1,"async"),i(2,"mainpanel",0),A("onSubmit",function(){return c(m),s(o.initAwaitingCollection())}),f("textChange",function(r){return c(m),_(o.filter().Number,r)||(o.filter().Number=r),s(r)}),i(3,"filters")(4,"div")(5,"label",1),l(6,"From/To"),t(),i(7,"channel-select-options",2),f("ngModelChange",function(r){return c(m),_(o.filter().ListChannelID,r)||(o.filter().ListChannelID=r),s(r)}),t()(),i(8,"div",3)(9,"label",1),l(10,"From/To"),t(),i(11,"div",4)(12,"datepicker",5),f("dateChange",function(r){return c(m),_(o.filter().From,r)||(o.filter().From=r),s(r)}),t()(),i(13,"div")(14,"datepicker",6),f("dateChange",function(r){return c(m),_(o.filter().To,r)||(o.filter().To=r),s(r)}),t()()(),i(15,"div",3)(16,"label",7),l(17,"Page Number"),t(),i(18,"input",8),f("ngModelChange",function(r){return c(m),_(o.filter().PageNumber,r)||(o.filter().PageNumber=r),s(r)}),t()(),i(19,"div",3)(20,"label",7),l(21,"Page Size"),t(),i(22,"input",9),f("ngModelChange",function(r){return c(m),_(o.filter().PageSize,r)||(o.filter().PageSize=r),s(r)}),t()()(),i(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),x(27,xe,21,2,"div",13)(28,Le,2,0,"div",14),t()()()()()}if(p&2){let m=H(E(1,8,o.awaitingCollections$));a(2),C("text",o.filter().Number),a(5),u("multiple",!0),C("ngModel",o.filter().ListChannelID),a(5),C("date",o.filter().From),a(2),C("date",o.filter().To),a(4),C("ngModel",o.filter().PageNumber),a(4),C("ngModel",o.filter().PageSize),a(5),L((m==null?null:m.length)>0?27:28)}},dependencies:[X,J,Q,K,pe,le,ce,me,te,Y,ee,Z,$,ue,Ce,_e,de,se,ae,re,fe],encapsulation:2})}}return n})();export{it as AwaitingCollectionComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as n}from"./chunk-I5IZPTXZ.js";import"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-PB2SJSML.js";import"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import{a as s,b as l}from"./chunk-TNKPTRB3.js";import"./chunk-PW42BQIY.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{F as m,J as c}from"./chunk-MTUIRWOB.js";import{Gb as a,Yb as i,ic as p,jc as d,kc as o,rb as r}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var v=(()=>{class t{constructor(){this.tabs=[{Title:"Origin Order API",Url:"/menu/json-api/order-api"},{Title:"Origin Product API",Url:"/menu/json-api/product-api"}]}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=a({type:t,selectors:[["app-json-api"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(e,f){e&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),d()()(),o(4,"router-outlet")),e&2&&(r(3),i("Tabs",f.tabs))},dependencies:[l,s,c,m],encapsulation:2})}}return t})(),g=[{path:"",component:v,children:[{path:"",redirectTo:"order-api",pathMatch:"full"},{path:"order-api",loadComponent(){return import("./chunk-XENOOCI4.js").then(t=>t.OrderApiComponent)},canActivate:[n],data:{title:"Order API"}},{path:"product-api",loadComponent(){return import("./chunk-AVVPZ3NI.js").then(t=>t.ProductApiComponent)},canActivate:[n],data:{title:"Product API"}}]}];export{v as JsonApiComponent,g as routes};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as H}from"./chunk-ABQG3LB5.js";import"./chunk-SYENQYR7.js";import"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as j}from"./chunk-PB2SJSML.js";import{e as N}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-PW42BQIY.js";import{m as I,n as F}from"./chunk-6X2OBNJQ.js";import{c as O,h as R,m as U,z as K}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as D,l as B,n as W}from"./chunk-MTUIRWOB.js";import{$c as v,Gb as b,Gc as i,Hc as T,Kc as C,Lc as g,Mb as x,Mc as _,Nc as k,Oc as V,Pc as S,Ra as u,Yb as h,Z as y,ad as w,dc as M,ic as e,jc as t,kc as A,oc as L,pa as P,rb as a,tc as f,uc as E,ya as c,za as s}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function G(n,J){if(n&1&&(e(0,"pre",21),i(1),v(2,"json"),t()),n&2){E();let l=S(25);a(),T(w(2,1,l))}}function Y(n,J){n&1&&(e(0,"p",22),i(1," Your data will be shown here once it's available "),t())}var ae=(()=>{class n{constructor(){this.httpService=P(N),this.selectedChannel=u(null),this.sku=u(null)}initProductLog(){this.productLog$=this.httpService.post(j.GetProductApiLog,{ChannelID:this.selectedChannel(),SKU:this.sku()}).pipe(y(1))}copyToClipboard(l){if(!l)return;let p=typeof l=="string"?l:JSON.stringify(l,null,2);navigator.clipboard.writeText(p),alert("Copied to clipboard!")}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275cmp=b({type:n,selectors:[["app-product-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Product Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],["type","text","placeholder","Product Code / SKU",1,"form-control",3,"ngModelChange","ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","productLogText"],[1,"text-center","my-12","text-muted"]],template:function(p,o){if(p&1){let d=L();e(0,"mainpanel",0)(1,"actions")(2,"button",1),f("click",function(){return c(d),s(o.initProductLog())}),A(3,"i",2),i(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),i(12,"Channel"),t(),e(13,"p",8),i(14," View logs related to Product API Detail "),t()(),e(15,"div",9)(16,"channel-select-options",10),_("ngModelChange",function(r){return c(d),g(o.selectedChannel,r)||(o.selectedChannel=r),s(r)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),i(20,"Product Code / SKU"),t(),e(21,"p",8),i(22," Product SKU or Code from Channel Product "),t()(),e(23,"div",9)(24,"input",12),_("ngModelChange",function(r){return c(d),g(o.sku,r)||(o.sku=r),s(r)}),t()()()()(),k(25),v(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),i(32,"Response"),t(),e(33,"button",17),f("click",function(){c(d);let r=S(25);return s(o.copyToClipboard(r))}),i(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),x(38,G,3,3,"pre",21)(39,Y,2,0,"p",22),t()()()()()()()()()}if(p&2){h("hideSearchBox",!0)("hideSearchDropdown",!0),a(16),C("ngModel",o.selectedChannel),a(8),C("ngModel",o.sku),a();let d=V(w(26,6,o.productLog$));a(8),h("disabled",!d),a(5),M(d?38:39)}},dependencies:[W,D,B,K,O,R,U,F,I,H],encapsulation:2})}}return n})();export{ae as ProductApiComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as ce}from"./chunk-MTUIRWOB.js";import{B as Ee,Ca as p,Hb as q,Ib as l,Ka as D,Kb as u,Pa as x,Qc as c,Ra as M,Sb as we,Xb as z,_b as ue,f as be,ga as $,ia as d,ja as Fe,jd as Ie,ka as W,ma as V,od as de,p as Ae,qd as _,rd as E,tc as y,v as Me,wb as P,xa as O,xb as o}from"./chunk-JS55A2RS.js";import{a as f,b as g}from"./chunk-66YHNWRR.js";var Be=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||n)(o(P),o(x))};static \u0275dir=l({type:n})}return n})(),U=(()=>{class n extends Be{static \u0275fac=(()=>{let e;return function(r){return(e||(e=p(n)))(r||n)}})();static \u0275dir=l({type:n,features:[u]})}return n})(),A=new V(""),mt={provide:A,useExisting:d(()=>_t),multi:!0},_t=(()=>{class n extends U{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=p(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){i&1&&y("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},standalone:!1,features:[c([mt]),u]})}return n})(),vt={provide:A,useExisting:d(()=>Ue),multi:!0};function yt(){let n=ce()?ce().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var Ct=new V(""),Ue=(()=>{class n extends Be{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!yt())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||n)(o(P),o(x),o(Ct,8))};static \u0275dir=l({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&y("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[c([vt]),u]})}return n})();function pe(n){return n==null||me(n)===0}function me(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var v=new V(""),N=new V(""),Vt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Se=class{static min(t){return Dt(t)}static max(t){return bt(t)}static required(t){return He(t)}static requiredTrue(t){return At(t)}static email(t){return Mt(t)}static minLength(t){return Et(t)}static maxLength(t){return Le(t)}static pattern(t){return $e(t)}static nullValidator(t){return X()}static compose(t){return Ye(t)}static composeAsync(t){return Ke(t)}};function Dt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function bt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function He(n){return pe(n.value)?{required:!0}:null}function At(n){return n.value===!0?null:{required:!0}}function Mt(n){return pe(n.value)||Vt.test(n.value)?null:{email:!0}}function Et(n){return t=>{let e=t.value?.length??me(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function Le(n){return t=>{let e=t.value?.length??me(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function $e(n){if(!n)return X;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(pe(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function X(n){return null}function We(n){return n!=null}function qe(n){return we(n)?Ae(n):n}function ze(n){let t={};return n.forEach(e=>{t=e!=null?f(f({},t),e):t}),Object.keys(t).length===0?null:t}function Ze(n,t){return t.map(e=>e(n))}function Ft(n){return!n.validate}function Xe(n){return n.map(t=>Ft(t)?t:e=>t.validate(e))}function Ye(n){if(!n)return null;let t=n.filter(We);return t.length==0?null:function(e){return ze(Ze(e,t))}}function _e(n){return n!=null?Ye(Xe(n)):null}function Ke(n){if(!n)return null;let t=n.filter(We);return t.length==0?null:function(e){let i=Ze(e,t).map(qe);return Ee(i).pipe(Me(ze))}}function ve(n){return n!=null?Ke(Xe(n)):null}function Ne(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function Je(n){return n._rawValidators}function Qe(n){return n._rawAsyncValidators}function he(n){return n?Array.isArray(n)?n:[n]:[]}function Y(n,t){return Array.isArray(n)?n.includes(t):n===t}function Oe(n,t){let e=he(t);return he(n).forEach(r=>{Y(e,r)||e.push(r)}),e}function xe(n,t){return he(t).filter(e=>!Y(n,e))}var K=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=_e(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ve(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},h=class extends K{name;get formDirective(){return null}get path(){return null}},b=class extends K{_parent=null;name=null;valueAccessor=null},J=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},wt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},wn=g(f({},wt),{"[class.ng-submitted]":"isSubmitted"}),In=(()=>{class n extends J{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(o(b,2))};static \u0275dir=l({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&ue("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[u]})}return n})(),Sn=(()=>{class n extends J{constructor(e){super(e)}static \u0275fac=function(i){return new(i||n)(o(h,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&ue("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[u]})}return n})();var k="VALID",Z="INVALID",F="PENDING",R="DISABLED",C=class{},Q=class extends C{value;source;constructor(t,e){super(),this.value=t,this.source=e}},T=class extends C{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},j=class extends C{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},w=class extends C{status;source;constructor(t,e){super(),this.status=t,this.source=e}},ee=class extends C{source;constructor(t){super(),this.source=t}},te=class extends C{source;constructor(t){super(),this.source=t}};function ye(n){return(se(n)?n.validators:n)||null}function It(n){return Array.isArray(n)?_e(n):n||null}function Ce(n,t){return(se(t)?t.asyncValidators:n)||null}function St(n){return Array.isArray(n)?ve(n):n||null}function se(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function et(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new $(1e3,"");if(!i[e])throw new $(1001,"")}function tt(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new $(1002,"")})}var I=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return _(this.statusReactive)}set status(t){_(()=>this.statusReactive.set(t))}_status=E(()=>this.statusReactive());statusReactive=M(void 0);get valid(){return this.status===k}get invalid(){return this.status===Z}get pending(){return this.status==F}get disabled(){return this.status===R}get enabled(){return this.status!==R}errors;get pristine(){return _(this.pristineReactive)}set pristine(t){_(()=>this.pristineReactive.set(t))}_pristine=E(()=>this.pristineReactive());pristineReactive=M(!0);get dirty(){return!this.pristine}get touched(){return _(this.touchedReactive)}set touched(t){_(()=>this.touchedReactive.set(t))}_touched=E(()=>this.touchedReactive());touchedReactive=M(!1);get untouched(){return!this.touched}_events=new be;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Oe(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Oe(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(xe(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(xe(t,this._rawAsyncValidators))}hasValidator(t){return Y(this._rawValidators,t)}hasAsyncValidator(t){return Y(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(g(f({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new j(!0,i))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:i})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,i),e&&t.emitEvent!==!1&&this._events.next(new j(!1,i))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let i=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(g(f({},t),{sourceControl:i})),e&&t.emitEvent!==!1&&this._events.next(new T(!1,i))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,i),e&&t.emitEvent!==!1&&this._events.next(new T(!0,i))}markAsPending(t={}){this.status=F;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new w(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(g(f({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=R,this.errors=null,this._forEachChild(r=>{r.disable(g(f({},t),{onlySelf:!0}))}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Q(this.value,i)),this._events.next(new w(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(g(f({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=k,this._forEachChild(i=>{i.enable(g(f({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(g(f({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===k||this.status===F)&&this._runAsyncValidator(i,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Q(this.value,e)),this._events.next(new w(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(g(f({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?R:k}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=F,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let i=qe(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new w(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i)}_initObservables(){this.valueChanges=new D,this.statusChanges=new D}_calculateStatus(){return this._allControlsDisabled()?R:this.errors?Z:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F)?F:this._anyControlsHaveStatus(Z)?Z:k}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new T(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new j(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){se(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=It(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}},S=class extends I{constructor(t,e,i){super(ye(e),Ce(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){tt(this,!0,t),Object.keys(t).forEach(i=>{et(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s)}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var fe=class extends S{};var H=new V("",{providedIn:"root",factory:()=>oe}),oe="always";function ae(n,t){return[...t.path,n]}function ne(n,t,e=oe){Ve(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),Ot(n,t),Pt(n,t),xt(n,t),Nt(n,t)}function Pe(n,t,e=!0){let i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),re(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function ie(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Nt(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function Ve(n,t){let e=Je(n);t.validator!==null?n.setValidators(Ne(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=Qe(n);t.asyncValidator!==null?n.setAsyncValidators(Ne(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();ie(t._rawValidators,r),ie(t._rawAsyncValidators,r)}function re(n,t){let e=!1;if(n!==null){if(t.validator!==null){let r=Je(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,n.setValidators(s))}}if(t.asyncValidator!==null){let r=Qe(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,n.setAsyncValidators(s))}}}let i=()=>{};return ie(t._rawValidators,i),ie(t._rawAsyncValidators,i),e}function Ot(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&nt(n,t)})}function xt(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&nt(n,t),n.updateOn!=="submit"&&n.markAsTouched()})}function nt(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Pt(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function it(n,t){n==null,Ve(n,t)}function kt(n,t){return re(n,t)}function rt(n,t){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Rt(n){return Object.getPrototypeOf(n.constructor)===U}function st(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function ot(n,t){if(!t)return null;Array.isArray(t);let e,i,r;return t.forEach(s=>{s.constructor===Ue?e=s:Rt(s)?i=s:r=s}),r||i||e||null}function Gt(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}var Tt={provide:h,useExisting:d(()=>jt)},G=Promise.resolve(),jt=(()=>{class n extends h{callSetDisabledState;get submitted(){return _(this.submittedReactive)}_submitted=E(()=>this.submittedReactive());submittedReactive=M(!1);_directives=new Set;form;ngSubmit=new D;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new S({},_e(e),ve(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){G.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),ne(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){G.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){G.then(()=>{let i=this._findContainer(e.path),r=new S({});it(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){G.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){G.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),st(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new ee(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new te(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||n)(o(v,10),o(N,10),o(H,8))};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&y("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[c([Tt]),u]})}return n})();function ke(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1)}function Re(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var B=class extends I{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,i){super(ye(e),Ce(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),se(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Re(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ke(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ke(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Re(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Bt=n=>n instanceof B,Ut=(()=>{class n extends h{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ae(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return(e||(e=p(n)))(r||n)}})();static \u0275dir=l({type:n,standalone:!1,features:[u]})}return n})();var Ht={provide:b,useExisting:d(()=>Lt)},Ge=Promise.resolve(),Lt=(()=>{class n extends b{_changeDetectorRef;callSetDisabledState;control=new B;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new D;constructor(e,i,r,s,a,m){super(),this._changeDetectorRef=a,this.callSetDisabledState=m,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ot(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),rt(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ne(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){Ge.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&de(i);Ge.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ae(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(o(h,9),o(v,10),o(N,10),o(A,10),o(Ie,8),o(H,8))};static \u0275dir=l({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[c([Ht]),u,O]})}return n})();var On=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})(),$t={provide:A,useExisting:d(()=>Wt),multi:!0},Wt=(()=>{class n extends U{writeValue(e){let i=e??"";this.setProperty("value",i)}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i))}}static \u0275fac=(()=>{let e;return function(r){return(e||(e=p(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){i&1&&y("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},standalone:!1,features:[c([$t]),u]})}return n})();var at=new V("");var qt={provide:h,useExisting:d(()=>lt)},lt=(()=>{class n extends h{callSetDisabledState;get submitted(){return _(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=E(()=>this._submittedReactive());_submittedReactive=M(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new D;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(re(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return ne(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Pe(e.control||null,e,!1),Gt(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),st(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ee(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new te(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(Pe(i||null,e),Bt(r)&&(ne(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);it(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&kt(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ve(this.form,this),this._oldForm&&re(this._oldForm,this)}static \u0275fac=function(i){return new(i||n)(o(v,10),o(N,10),o(H,8))};static \u0275dir=l({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&y("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[c([qt]),u,O]})}return n})(),zt={provide:h,useExisting:d(()=>ut)},ut=(()=>{class n extends Ut{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}_checkParentType(){ct(this._parent)}static \u0275fac=function(i){return new(i||n)(o(h,13),o(v,10),o(N,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[c([zt]),u]})}return n})(),Zt={provide:h,useExisting:d(()=>dt)},dt=(()=>{class n extends h{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r)}ngOnInit(){ct(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ae(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||n)(o(h,13),o(v,10),o(N,10))};static \u0275dir=l({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[c([Zt]),u]})}return n})();function ct(n){return!(n instanceof ut)&&!(n instanceof lt)&&!(n instanceof dt)}var Xt={provide:b,useExisting:d(()=>Yt)},Yt=(()=>{class n extends b{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new D;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,s,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=ot(this,s)}ngOnChanges(e){this._added||this._setUpControl(),rt(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ae(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(i){return new(i||n)(o(h,13),o(v,10),o(N,10),o(A,10),o(at,8))};static \u0275dir=l({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[c([Xt]),u,O]})}return n})();var Kt={provide:A,useExisting:d(()=>ft),multi:!0};function ht(n,t){return n==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function Jt(n){return n.split(":")[0]}var ft=(()=>{class n extends U{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let i=this._getOptionId(e),r=ht(i,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=i=>{this.value=this._getOptionValue(i),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),e))return i;return null}_getOptionValue(e){let i=Jt(e);return this._optionMap.has(i)?this._optionMap.get(i):e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=p(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){i&1&&y("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[c([Kt]),u]})}return n})(),xn=(()=>{class n{_element;_renderer;_select;id;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(ht(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||n)(o(x),o(P),o(ft,9))};static \u0275dir=l({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return n})(),Qt={provide:A,useExisting:d(()=>gt),multi:!0};function Te(n,t){return n==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${n}: ${t}`.slice(0,50))}function en(n){return n.split(":")[0]}var gt=(()=>{class n extends U{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let i;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));i=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else i=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(e){this.onChange=i=>{let r=[],s=i.selectedOptions;if(s!==void 0){let a=s;for(let m=0;m<a.length;m++){let L=a[m],le=this._getOptionValue(L.value);r.push(le)}}else{let a=i.options;for(let m=0;m<a.length;m++){let L=a[m];if(L.selected){let le=this._getOptionValue(L.value);r.push(le)}}}this.value=r,e(r)}}_registerOption(e){let i=(this._idCounter++).toString();return this._optionMap.set(i,e),i}_getOptionId(e){for(let i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,e))return i;return null}_getOptionValue(e){let i=en(e);return this._optionMap.has(i)?this._optionMap.get(i)._value:e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=p(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){i&1&&y("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[c([Qt]),u]})}return n})(),Pn=(()=>{class n{_element;_renderer;_select;id;_value;constructor(e,i,r){this._element=e,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Te(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Te(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(i){return new(i||n)(o(x),o(P),o(gt,9))};static \u0275dir=l({type:n,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return n})();function tn(n){return typeof n=="number"?n:parseInt(n,10)}var De=(()=>{class n{_validator=X;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):X,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,features:[O]})}return n})();var nn={provide:v,useExisting:d(()=>rn),multi:!0};var rn=(()=>{class n extends De{required;inputName="required";normalizeInput=de;createValidator=e=>He;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=p(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&z("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[c([nn]),u]})}return n})();var sn={provide:v,useExisting:d(()=>on),multi:!0},on=(()=>{class n extends De{maxlength;inputName="maxlength";normalizeInput=e=>tn(e);createValidator=e=>Le(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=p(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&z("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[c([sn]),u]})}return n})(),an={provide:v,useExisting:d(()=>ln),multi:!0},ln=(()=>{class n extends De{pattern;inputName="pattern";normalizeInput=e=>e;createValidator=e=>$e(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=p(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&z("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[c([an]),u]})}return n})();var pt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=q({type:n});static \u0275inj=W({})}return n})(),ge=class extends I{constructor(t,e,i){super(ye(e),Ce(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){tt(this,!1,t),t.forEach((i,r)=>{et(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function je(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var kn=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,i=null){let r=this._reduceControls(e),s={};return je(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new S(r,s)}record(e,i=null){let r=this._reduceControls(e);return new fe(r,i)}control(e,i,r){let s={};return this.useNonNullable?(je(i)?s=i:(s.validators=i,s.asyncValidators=r),new B(e,g(f({},s),{nonNullable:!0}))):new B(e,i,r)}array(e,i,r){let s=e.map(a=>this._createControl(a));return new ge(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){if(e instanceof B)return e;if(e instanceof I)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Fe({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Rn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:H,useValue:e.callSetDisabledState??oe}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=q({type:n});static \u0275inj=W({imports:[pt]})}return n})(),Gn=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:at,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:H,useValue:e.callSetDisabledState??oe}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=q({type:n});static \u0275inj=W({imports:[pt]})}return n})();export{A as a,_t as b,Ue as c,v as d,Se as e,h as f,b as g,In as h,Sn as i,S as j,jt as k,B as l,Lt as m,On as n,Wt as o,lt as p,ut as q,Yt as r,ft as s,xn as t,Pn as u,rn as v,on as w,ln as x,kn as y,Rn as z,Gn as A};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as de,b as se,c as ce}from"./chunk-2BUABOHG.js";import{a as ue}from"./chunk-MKOJVMRR.js";import{a as me}from"./chunk-G4OF4YLE.js";import"./chunk-2DJWDXTZ.js";import{a as pe}from"./chunk-ABQG3LB5.js";import{a as le}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as ae}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ie}from"./chunk-PB2SJSML.js";import{e as te}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import"./chunk-PW42BQIY.js";import{m as re,n as oe}from"./chunk-6X2OBNJQ.js";import{c as X,h as Y,m as Z,o as $,z as ee}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{s as ne}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as q,k as J,m as K,n as Q}from"./chunk-MTUIRWOB.js";import{$c as w,Gb as W,Gc as l,Hc as v,Ic as k,Kc as h,Lc as _,Mb as x,Mc as f,Nc as z,Oc as A,Pc as j,Qc as H,Ra as O,Rc as R,Sc as U,Yb as c,ac as I,ad as E,bd as G,dc as b,ec as F,gc as D,hc as B,ic as t,ja as L,jc as i,kc as C,oc as V,pa as y,pb as N,rb as a,tc as M,uc as u,v as T,ya as m,za as d}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var P=(()=>{class n{constructor(){this.httpService=y(te)}getShippedOrders(e){return this.httpService.post(ie.GetShipped,e).pipe(T(p=>p.Data||[]))}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275prov=L({token:n,factory:n.\u0275fac})}}return n})();var _e=()=>[],fe=n=>({"td-cell-hover":n});function Se(n,S){if(n&1&&C(0,"variants-dropdown",27),n&2){let e=u().$implicit;c("variants",e==null?null:e.Variants)}}function ge(n,S){if(n&1&&C(0,"variant-with-image",28),n&2){let e=u().$implicit;c("variant",e==null?null:e.Variants[0])}}function Ce(n,S){if(n&1&&(t(0,"span"),l(1),i()),n&2){let e=u().$implicit;a(),v(e.LogisticService==null?null:e.LogisticService.Option)}}function ve(n,S){if(n&1&&(t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"div",23)(5,"div",24)(6,"div"),C(7,"img",25),w(8,"channelImage"),i(),t(9,"div"),C(10,"order-link",26),i()(),t(11,"small"),l(12),w(13,"date"),i()()(),t(14,"td"),l(15),i(),t(16,"td"),x(17,Se,1,1,"variants-dropdown",27)(18,ge,1,1,"variant-with-image",28),i(),t(19,"td",29),l(20),w(21,"number"),i(),t(22,"td")(23,"span"),l(24),i(),x(25,Ce,2,1,"span"),i()()),n&2){let e=S.$implicit;a(2),v(e.Outlet),a(5),c("src",E(8,12,e==null?null:e.MarketType),N)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(3),c("order",e),a(2),k(" ",G(13,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(3),v(e.Customer),a(),I(U(19,fe,(e.Variants==null?null:e.Variants.length)>1)),a(),b((e.Variants==null?null:e.Variants.length)>1?17:18),a(3),v(E(21,17,e.Amount)),a(4),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1)}}function we(n,S){if(n&1){let e=V();t(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),l(5,"Outlet"),i(),t(6,"th",19),l(7,"Number"),i(),t(8,"th",19),l(9,"Customer"),i(),t(10,"th"),l(11,"Items"),i(),t(12,"th",20),l(13,"Amount"),i(),t(14,"th",21),l(15,"Shipping"),i()()(),t(16,"tbody"),D(17,ve,26,21,"tr",null,F),i()(),t(19,"app-custom-paginator",22),M("next",function(){m(e);let r=u();return d(r.initShippedOrders())})("previous",function(){m(e);let r=u();return d(r.initShippedOrders())}),i()()}if(n&2){let e=u(),p=j(0);a(17),B(p),a(2),c("filter",e.filter())("totaldata",p==null?null:p.length)}}function ye(n,S){n&1&&(t(0,"div",14),C(1,"app-empty-state"),i())}var Ke=(()=>{class n{constructor(){this.shippedService=y(P),this.filter=O({PageNumber:1,PageSize:100,ListChannelID:[],From:new Date,To:new Date,Number:null})}ngOnInit(){this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.shippedService.getShippedOrders(this.filter())}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275cmp=W({type:n,selectors:[["app-shipped"]],features:[H([P])],decls:29,vars:12,consts:[["headerTitle","Shipped","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],["rowCountApi","/api/orders/shippedcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","12px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(p,r){if(p&1){let s=V();z(0),w(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return m(s),d(r.initShippedOrders())}),f("textChange",function(o){return m(s),_(r.filter().Number,o)||(r.filter().Number=o),d(o)}),t(3,"filters")(4,"div")(5,"label",1),l(6,"From/To"),i(),t(7,"channel-select-options",2),f("ngModelChange",function(o){return m(s),_(r.filter().ListChannelID,o)||(r.filter().ListChannelID=o),d(o)}),i()(),t(8,"div",3)(9,"label",1),l(10,"From/To"),i(),t(11,"div",4)(12,"datepicker",5),f("dateChange",function(o){return m(s),_(r.filter().From,o)||(r.filter().From=o),d(o)}),i()(),t(13,"div")(14,"datepicker",6),f("dateChange",function(o){return m(s),_(r.filter().To,o)||(r.filter().To=o),d(o)}),i()()(),t(15,"div",3)(16,"label",7),l(17,"Page Number"),i(),t(18,"input",8),f("ngModelChange",function(o){return m(s),_(r.filter().PageNumber,o)||(r.filter().PageNumber=o),d(o)}),i()(),t(19,"div",3)(20,"label",7),l(21,"Page Size"),i(),t(22,"input",9),f("ngModelChange",function(o){return m(s),_(r.filter().PageSize,o)||(r.filter().PageSize=o),d(o)}),i()()(),t(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),x(27,we,20,2,"div",13)(28,ye,2,0,"div",14),i()()()()()}if(p&2){let s=A(E(1,8,r.shippedOrders$)||R(11,_e));a(2),h("text",r.filter().Number),a(5),c("multiple",!0),h("ngModel",r.filter().ListChannelID),a(5),h("date",r.filter().From),a(2),h("date",r.filter().To),a(4),h("ngModel",r.filter().PageNumber),a(4),h("ngModel",r.filter().PageSize),a(5),b(s.length>0?27:28)}},dependencies:[Q,q,K,J,oe,re,le,ae,ee,X,$,Y,Z,de,se,ce,me,pe,ne,ue],encapsulation:2})}}return n})();export{Ke as ShippedComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as de,b as se,c as ce}from"./chunk-2BUABOHG.js";import{a as ue}from"./chunk-MKOJVMRR.js";import{a as pe}from"./chunk-G4OF4YLE.js";import"./chunk-2DJWDXTZ.js";import{a as me}from"./chunk-ABQG3LB5.js";import{a as ae}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as le}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ie}from"./chunk-PB2SJSML.js";import{e as te}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import"./chunk-PW42BQIY.js";import{m as oe,n as re}from"./chunk-6X2OBNJQ.js";import{c as X,h as Y,m as Z,o as $,z as ee}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{s as ne}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as q,k as J,m as K,n as Q}from"./chunk-MTUIRWOB.js";import{$c as w,Gb as I,Gc as a,Hc as v,Ic as z,Kc as C,Lc as _,Mb as x,Mc as f,Nc as A,Oc as j,Pc as H,Qc as R,Ra as N,Sc as U,Yb as c,Z as L,ac as F,ad as E,bd as G,dc as b,ec as D,gc as B,hc as k,ic as t,ja as O,jc as i,kc as S,oc as V,pa as y,pb as W,rb as l,tc as M,uc as u,v as T,ya as d,za as s}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var P=(()=>{class n{constructor(){this.httpService=y(te)}getCompletedOrders(e){return this.httpService.post(ie.GetCompleted,e).pipe(T(m=>m?.Data||[]))}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275prov=O({token:n,factory:n.\u0275fac})}}return n})();var _e=n=>({"td-cell-hover":n});function fe(n,g){if(n&1&&S(0,"variants-dropdown",27),n&2){let e=u().$implicit;c("variants",e==null?null:e.Variants)}}function ge(n,g){if(n&1&&S(0,"variant-with-image",28),n&2){let e=u().$implicit;c("variant",e==null?null:e.Variants[0])}}function he(n,g){if(n&1&&(t(0,"span"),a(1),i()),n&2){let e=u().$implicit;l(),v(e.LogisticService==null?null:e.LogisticService.Option)}}function Se(n,g){if(n&1&&(t(0,"tr")(1,"td"),a(2),i(),t(3,"td")(4,"div",23)(5,"div",24)(6,"div"),S(7,"img",25),w(8,"channelImage"),i(),t(9,"div"),S(10,"order-link",26),i()(),t(11,"small"),a(12),w(13,"date"),i()()(),t(14,"td"),a(15),i(),t(16,"td"),x(17,fe,1,1,"variants-dropdown",27)(18,ge,1,1,"variant-with-image",28),i(),t(19,"td",29),a(20),w(21,"number"),i(),t(22,"td")(23,"span"),a(24),i(),x(25,he,2,1,"span"),i()()),n&2){let e=g.$implicit;l(2),v(e.Outlet),l(5),c("src",E(8,12,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(3),c("order",e),l(2),z(" ",G(13,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),v(e.Customer),l(),F(U(19,_e,(e.Variants==null?null:e.Variants.length)>1)),l(),b((e.Variants==null?null:e.Variants.length)>1?17:18),l(3),v(E(21,17,e.Amount)),l(4),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1)}}function ve(n,g){if(n&1){let e=V();t(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),a(5,"Outlet"),i(),t(6,"th",19),a(7,"Number"),i(),t(8,"th",19),a(9,"Customer"),i(),t(10,"th"),a(11,"Items"),i(),t(12,"th",20),a(13,"Amount"),i(),t(14,"th",21),a(15,"Shipping"),i()()(),t(16,"tbody"),B(17,Se,26,21,"tr",null,D),i()(),t(19,"app-custom-paginator",22),M("next",function(){d(e);let o=u();return s(o.initCompletedOrders())})("previous",function(){d(e);let o=u();return s(o.initCompletedOrders())}),i()()}if(n&2){let e=u(),m=H(0);l(17),k(m),l(2),c("filter",e.filter())("totaldata",m==null?null:m.length)}}function we(n,g){n&1&&(t(0,"div",14),S(1,"app-empty-state"),i())}var Ke=(()=>{class n{constructor(){this.completedService=y(P),this.filter=N({PageNumber:1,PageSize:100,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.initCompletedOrders()}initCompletedOrders(){this.completedOrders$=this.completedService.getCompletedOrders(this.filter()).pipe(L(1))}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275cmp=I({type:n,selectors:[["app-completed"]],features:[R([P])],decls:29,vars:11,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],["rowCountApi","/api/orders/completedcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(m,o){if(m&1){let p=V();A(0),w(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return d(p),s(o.initCompletedOrders())}),f("textChange",function(r){return d(p),_(o.filter().Number,r)||(o.filter().Number=r),s(r)}),t(3,"filters")(4,"div")(5,"label",1),a(6,"From/To"),i(),t(7,"channel-select-options",2),f("ngModelChange",function(r){return d(p),_(o.filter().ListChannelID,r)||(o.filter().ListChannelID=r),s(r)}),i()(),t(8,"div",3)(9,"label",1),a(10,"From/To"),i(),t(11,"div",4)(12,"datepicker",5),f("dateChange",function(r){return d(p),_(o.filter().From,r)||(o.filter().From=r),s(r)}),i()(),t(13,"div")(14,"datepicker",6),f("dateChange",function(r){return d(p),_(o.filter().To,r)||(o.filter().To=r),s(r)}),i()()(),t(15,"div",3)(16,"label",7),a(17,"Page Number"),i(),t(18,"input",8),f("ngModelChange",function(r){return d(p),_(o.filter().PageNumber,r)||(o.filter().PageNumber=r),s(r)}),i()(),t(19,"div",3)(20,"label",7),a(21,"Page Size"),i(),t(22,"input",9),f("ngModelChange",function(r){return d(p),_(o.filter().PageSize,r)||(o.filter().PageSize=r),s(r)}),i()()(),t(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),x(27,ve,20,2,"div",13)(28,we,2,0,"div",14),i()()()()()}if(m&2){let p=j(E(1,8,o.completedOrders$));l(2),C("text",o.filter().Number),l(5),c("multiple",!0),C("ngModel",o.filter().ListChannelID),l(5),C("date",o.filter().From),l(2),C("date",o.filter().To),l(4),C("ngModel",o.filter().PageNumber),l(4),C("ngModel",o.filter().PageSize),l(5),b((p==null?null:p.length)>0?27:28)}},dependencies:[Q,q,K,J,re,oe,ae,le,ee,X,$,Y,Z,de,se,ce,pe,me,ne,ue],encapsulation:2})}}return n})();export{Ke as CompletedComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as le}from"./chunk-MKOJVMRR.js";import{a as oe}from"./chunk-G4OF4YLE.js";import"./chunk-2DJWDXTZ.js";import{a as re}from"./chunk-ABQG3LB5.js";import{a as ee,b as te}from"./chunk-KX5AWR75.js";import{a as ne}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as ie}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as X}from"./chunk-PB2SJSML.js";import{e as Q}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import"./chunk-PW42BQIY.js";import{m as Z,n as $}from"./chunk-6X2OBNJQ.js";import{c as G,h as U,m as q,o as J,z as K}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{s as Y}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as z,k as j,m as H,n as R}from"./chunk-MTUIRWOB.js";import{$c as S,Gb as O,Gc as m,Hc as _,Kc as c,Lc as u,Mb as W,Mc as C,Nc as k,Oc as D,Pc as F,Ra as V,Yb as g,Z as T,ad as M,bd as A,dc as I,ec as L,gc as N,hc as B,ic as e,ja as P,jc as t,kc as y,oc as v,pa as h,rb as a,tc as x,uc as w,v as E,ya as p,za as s}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var ae=(()=>{class r{constructor(){this.httpService=h(Q)}getCancelledOrders(o){return this.httpService.post(X.GetCancelled,o).pipe(E(l=>l.Data))}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275prov=P({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();function de(r,b){if(r&1&&(e(0,"tr")(1,"td"),m(2),t(),e(3,"td"),y(4,"order-link",24),t(),e(5,"td"),m(6),t(),e(7,"td"),m(8),S(9,"number"),t(),e(10,"td"),m(11),S(12,"date"),t(),e(13,"td"),y(14,"app-channel-logo",25),t()()),r&2){let o=b.$implicit;a(2),_(o.Outlet),a(2),g("order",o),a(2),_(o.Customer),a(2),_(M(9,6,o.Amount)),a(3),_(A(12,8,o.Created,"dd MMM yyyy HH:mm")),a(3),g("typeId",o==null?null:o.TypeID)}}function pe(r,b){if(r&1){let o=v();e(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),m(5,"Outlet"),t(),e(6,"th",19),m(7,"Order number"),t(),e(8,"th"),m(9,"Customer"),t(),e(10,"th",20),m(11,"Amount"),t(),e(12,"th",21),m(13," Created On "),t(),e(14,"th",22),m(15,"Channel"),t()()(),e(16,"tbody"),N(17,de,15,11,"tr",null,L),t()(),e(19,"app-custom-paginator",23),x("next",function(){p(o);let i=w();return s(i.initCancelledOrders())})("previous",function(){p(o);let i=w();return s(i.initCancelledOrders())}),t()()}if(r&2){let o=w(),l=F(0);a(17),B(l),a(2),g("filter",o.filter())("totaldata",l==null?null:l.length)("paginationTotal",l==null?null:l.length)("hasClicked",!0)("nextButtonAlwaysVisible",!0)}}function se(r,b){r&1&&(e(0,"div",14),y(1,"app-empty-state"),t())}var De=(()=>{class r{constructor(){this.cancelledService=h(ae),this.filter=V({PageNumber:1,PageSize:100,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.initCancelledOrders()}initCancelledOrders(){this.cancelledOrders$=this.cancelledService.getCancelledOrders(this.filter()).pipe(T(1))}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275cmp=O({type:r,selectors:[["app-cancelled"]],decls:29,vars:11,consts:[["headerTitle","Cancelled","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","120px"],[2,"width","220px"],[2,"width","100px"],["mat-sort-header","created",2,"width","130px"],[2,"width","130px"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked","nextButtonAlwaysVisible"],[3,"order"],[3,"typeId"]],template:function(l,i){if(l&1){let d=v();k(0),S(1,"async"),e(2,"mainpanel",0),x("onSubmit",function(){return p(d),s(i.initCancelledOrders())}),C("textChange",function(n){return p(d),u(i.filter().Number,n)||(i.filter().Number=n),s(n)}),e(3,"filters")(4,"div")(5,"label",1),m(6,"From/To"),t(),e(7,"channel-select-options",2),C("ngModelChange",function(n){return p(d),u(i.filter().ListChannelID,n)||(i.filter().ListChannelID=n),s(n)}),t()(),e(8,"div",3)(9,"label",1),m(10,"From/To"),t(),e(11,"div",4)(12,"datepicker",5),C("dateChange",function(n){return p(d),u(i.filter().From,n)||(i.filter().From=n),s(n)}),t()(),e(13,"div")(14,"datepicker",6),C("dateChange",function(n){return p(d),u(i.filter().To,n)||(i.filter().To=n),s(n)}),t()()(),e(15,"div",3)(16,"label",7),m(17,"Page Number"),t(),e(18,"input",8),C("ngModelChange",function(n){return p(d),u(i.filter().PageNumber,n)||(i.filter().PageNumber=n),s(n)}),t()(),e(19,"div",3)(20,"label",7),m(21,"Page Size"),t(),e(22,"input",9),C("ngModelChange",function(n){return p(d),u(i.filter().PageSize,n)||(i.filter().PageSize=n),s(n)}),t()()(),e(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),W(27,pe,20,5,"div",13)(28,se,2,0,"div",14),t()()()()()}if(l&2){let d=D(M(1,8,i.cancelledOrders$));a(2),c("text",i.filter().Number),a(5),g("multiple",!0),c("ngModel",i.filter().ListChannelID),a(5),c("date",i.filter().From),a(2),c("date",i.filter().To),a(4),c("ngModel",i.filter().PageNumber),a(4),c("ngModel",i.filter().PageSize),a(5),I((d==null?null:d.length)>0?27:28)}},dependencies:[R,z,H,j,$,Z,ne,ie,K,G,J,U,q,oe,re,Y,le,te,ee],encapsulation:2})}}return r})();export{De as CancelledComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as k}from"./chunk-CRZOIZUQ.js";import{a as Ve}from"./chunk-GHBGGQNM.js";import{a as Te,b as De}from"./chunk-ZNDU44GH.js";import{b as ke,c as Ee}from"./chunk-5XI7HWS5.js";import{a as be}from"./chunk-O6U5QCHJ.js";import{a as we}from"./chunk-5QAURMZF.js";import"./chunk-NZA4BEER.js";import"./chunk-JV4MMNGD.js";import"./chunk-GZXQUJKX.js";import"./chunk-ALKC77XL.js";import"./chunk-NTW6FBP5.js";import"./chunk-LR4UZ2OS.js";import"./chunk-F4GMWHYJ.js";import{a as Y}from"./chunk-5DIRXS7I.js";import"./chunk-KXS76PRS.js";import"./chunk-OZ7LWNOK.js";import"./chunk-VRI3CYGG.js";import"./chunk-AVEGIEYT.js";import{d as he,e as fe}from"./chunk-SYENQYR7.js";import{a as ue}from"./chunk-Z3ITXK3D.js";import"./chunk-PB2SJSML.js";import{b as Z}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import{c as de}from"./chunk-PW42BQIY.js";import{b as xe,c as te,d as ye,j as Se,k as Ue,m as ve,n as Me}from"./chunk-6X2OBNJQ.js";import{b as me,h as z,m as j,z as H}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import{a as _e,b as ge,c as Ce}from"./chunk-UJYSVGLV.js";import"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{H as ce,J as pe,j as $,n as q}from"./chunk-MTUIRWOB.js";import{$b as K,$c as A,G as se,Gb as B,Gc as g,Hc as Q,Ic as D,Kb as le,Kc as v,Lc as M,Mb as x,Mc as w,Nc as O,Oc as N,Pc as C,Qc as W,Ra as S,Rc as X,Sc as ee,Yb as _,Z as E,ad as F,dc as U,ea as J,ec as V,gc as P,hc as I,ic as o,jc as s,kc as L,lc as b,mc as T,oc as y,pa as f,pb as ae,q as oe,rb as a,rd as R,tc as h,uc as l,v as G,ya as c,za as p}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import{a as ne,b as re}from"./chunk-66YHNWRR.js";var ie=function(i){return i.ERROR="https://res.cloudinary.com/pos/image/upload/v1705387550/POS/Images/Cashier/globalerror.svg",i.UNAUTHORIZED="https://res.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",i.EMPTY_LIST="https://res.cloudinary.com/pos/image/upload/v1705388070/POS/Images/Cashier/globalnodata.svg",i.REMOVE="https://res.cloudinary.com/pos/image/upload/v1706156973/icons/globalerrorclear.svg",i}(ie||{});var Pe=()=>({display:"d-flex"});function Fe(i,m){if(i&1&&(o(0,"div",6),L(1,"img",9),o(2,"p",10),g(3," All users already migrated. "),s()()),i&2){let e=l();a(),_("src",e.emptyStateIcon,ae)}}function Re(i,m){if(i&1){let e=y();o(0,"div",14)(1,"p-checkBox",15),w("ngModelChange",function(t){let n=c(e).$implicit;return M(n.selected,t)||(n.selected=t),p(t)}),h("ngModelChange",function(){c(e);let t=l(2),n=C(0);return p(t.onUserCheckChange(n))}),s(),o(2,"label",16),g(3),s()()}if(i&2){let e=m.$implicit;a(),K(X(7,Pe)),_("binary",!0)("id",e.ID),v("ngModel",e.selected),a(),_("for",e.ID),a(),D(" ",e.Name," ")}}function Ge(i,m){if(i&1){let e=y();o(0,"div",11)(1,"p-checkBox",12),w("ngModelChange",function(t){c(e);let n=l();return M(n.isCheckAll,t)||(n.isCheckAll=t),p(t)}),h("ngModelChange",function(t){c(e);let n=l(),d=C(0);return p(n.onCheckAllChange(t,d))}),s(),o(2,"label",13),g(3," Check All "),s()(),P(4,Re,4,8,"div",14,V)}if(i&2){let e=l(),r=C(0);a(),K(X(4,Pe)),_("binary",!0),v("ngModel",e.isCheckAll),a(3),I(r)}}var Ie=(()=>{class i extends be{constructor(){super(),this.dialogRef=f(xe),this.data=f(te),this.userService=f(k),this.dialogData=f(te),this.toastr=f(Z),this.userGroups=R(()=>this.dialogData.userGroups||[]),this.availableUsers=R(()=>{let e=new Map;return this.dialogData.availableUsers.forEach(r=>e.set(r.ID,r)),e}),this.migrateLoader$=this.userService.getUserMigrateLoader().pipe(G(e=>e.Data),G(e=>e.filter(t=>this.availableUsers().has(t.ID)===!1)),G(e=>e.map(t=>(t.selected=!0,t))),E(1)),this.isCheckAll=S(!0),this.selectedGroup=S(null),this.emptyStateIcon=ie.EMPTY_LIST,this.config=new Se,this.config.title="Migrate Users",this.config.customWidth="600px"}ngAfterViewInit(){this.initTopPosition()}ngOnDestroy(){this.stopOverlayObserver()}onUserCheckChange(e){let r=e.every(t=>t.selected);this.isCheckAll.set(r)}onCheckAllChange(e,r){this.isCheckAll.set(e),r.forEach(t=>t.selected=e)}onClose(){this.dialogRef.close(!1)}onSubmit(e){let r=e.filter(n=>n.selected);if(r.length===0){this.toastr.error("Please select at least one user","Error");return}if(de.IsEmpty(this.selectedGroup())){this.toastr.error("Please select a user group","Error");return}let t={userIds:r.map(n=>n.ID),groupId:this.selectedGroup()};this.userService.migrateUser(t).subscribe(()=>{this.dialogRef.close(!0),this.toastr.success("Users migrated successfully","Success")})}onClickSelect(){setTimeout(()=>{this.adjustOverlayPosition()},0)}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-migrate-dialog"]],features:[W([k]),le],decls:15,vars:8,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[1,"row"],[1,"col","border-end"],[1,"modal-title","mb-8"],[1,"mt-5"],[1,"d-flex","flex-column","align-items-center","mt-5"],[1,"col"],["optionLabel","Name","optionValue","ID","placeholder","Select a Channel","filterBy","Name","appendTo","body",1,"w-100",3,"click","ngModelChange","options","filter","ngModel"],["alt","No users found",2,"width","100px","height","100px",3,"src"],[1,"text-muted","mt-4","opacity-50",2,"margin-bottom","0px"],[1,"d-flex","w-100","align-items-center","mb-4"],["id","checkBoxAll",3,"ngModelChange","binary","ngModel"],["for","checkBoxAll",1,"ms-2"],[1,"d-flex","w-100","align-items-center","mb-3","ms-10"],[3,"ngModelChange","binary","id","ngModel"],[1,"ms-2",3,"for"]],template:function(r,t){if(r&1){let n=y();O(0),A(1,"async"),o(2,"modal-material",0),h("onClose",function(){return c(n),p(t.onClose())})("onCancel",function(){return c(n),p(t.onClose())})("onOk",function(){c(n);let u=C(0);return p(t.onSubmit(u))}),o(3,"div",1)(4,"div",2)(5,"div",3)(6,"h5",4),g(7,"Users from POS"),s(),o(8,"div",5),x(9,Fe,4,1,"div",6)(10,Ge,6,5),s()(),o(11,"div",7)(12,"h5",4),g(13,"Assign Group"),s(),o(14,"p-select",8),h("click",function(){return c(n),p(t.onClickSelect())}),w("ngModelChange",function(u){return c(n),M(t.selectedGroup,u)||(t.selectedGroup=u),p(u)}),s()()()()()}if(r&2){let n=N(F(1,5,t.migrateLoader$));a(2),_("config",t.config),a(7),U((n==null?null:n.length)===0?9:10),a(5),_("options",t.userGroups())("filter",!0),v("ngModel",t.selectedGroup)}},dependencies:[q,$,Ue,H,z,j,ke,we],encapsulation:2})}}return i})();var Le=i=>({ID:i});function Be(i,m){if(i&1){let e=y();o(0,"button",13),h("click",function(){c(e);let t=l(2),n=C(0);return p(t.onDeleteUser(n==null?null:n.Filter))}),L(1,"i",14),g(2),s()}if(i&2){let e,r=l(2);a(2),D(" Delete (",(e=r.selectedUsers())==null?null:e.length,") ")}}function We(i,m){if(i&1&&(b(0),x(1,Be,3,1,"button",12),T()),i&2){let e,r=l();a(),U(((e=r.selectedUsers())==null?null:e.length)>0?1:-1)}}function $e(i,m){if(i&1){let e=y();b(0),o(1,"button",15),h("click",function(){c(e);let t=l(),n=C(0),d=C(2);return p(t.onMigrateUser(n==null||n.Options==null?null:n.Options.Groups,d==null?null:d.Data))}),g(2," Migrate "),s(),T()}}function qe(i,m){i&1&&(b(0),o(1,"a",16),g(2," Invite "),s(),T())}function ze(i,m){if(i&1){let e=y();b(0),o(1,"th",17)(2,"div",18)(3,"input",19),h("change",function(t){c(e);let n=l(),d=C(2);return p(n.onCheckAllUser(t.target.checked,d==null?null:d.Data))}),s()()(),T()}}function je(i,m){if(i&1){let e=y();o(0,"div",18)(1,"input",24),w("ngModelChange",function(t){c(e);let n=l(2).$implicit;return M(n.checked,t)||(n.checked=t),p(t)}),h("ngModelChange",function(){c(e);let t=l(3),n=C(2);return p(t.onSelectUser(n==null?null:n.Data))}),s()()}if(i&2){let e=l(2).$implicit;a(),v("ngModel",e.checked)}}function He(i,m){if(i&1&&(b(0),o(1,"td"),x(2,je,2,1,"div",18),s(),T()),i&2){let e,r=l().$implicit,t=l();a(2),U(r.Name!==((e=t.currentLoginUser())==null?null:e.username)?2:-1)}}function Ye(i,m){if(i&1&&(o(0,"a",20),g(1),s()),i&2){let e=l().$implicit;_("queryParams",ee(2,Le,e.UserID)),a(),D(" ",e.Name," ")}}function Ze(i,m){if(i&1&&(o(0,"span"),g(1),s()),i&2){let e=l().$implicit;a(),Q(e.Name)}}function Je(i,m){if(i&1&&(o(0,"a",21),g(1),s()),i&2){let e=l().$implicit;_("queryParams",ee(2,Le,e.GroupID)),a(),D(" ",e.GroupName," ")}}function Ke(i,m){if(i&1&&(o(0,"span"),g(1),s()),i&2){let e=l().$implicit;a(),Q(e.GroupName)}}function Qe(i,m){if(i&1&&L(0,"p-chip",23),i&2){let e=m.$implicit;_("label",e.Name)("image",e.Logo)("alt",e.Name)}}function Xe(i,m){if(i&1&&(o(0,"tr"),x(1,He,3,1,"ng-container",3),o(2,"td"),x(3,Ye,2,4,"a",20)(4,Ze,2,1,"span"),s(),o(5,"td"),x(6,Je,2,4,"a",21)(7,Ke,2,1,"span"),s(),o(8,"td")(9,"div",22),P(10,Qe,1,3,"p-chip",23,V),s()()()),i&2){let e=m.$implicit,r=l();a(),_("ngxPermissionsOnly",r.userDeleteRole),a(2),U(r.hasUserEditRole()?3:4),a(3),U(r.hasUserEditRole()?6:7),a(4),I(e.Channels)}}function et(i,m){if(i&1){let e=y();o(0,"app-mat-paginator-no-count",25),h("next",function(){c(e);let t=l(),n=C(0);return p(t.onNextPage(n==null?null:n.Filter))})("previous",function(){c(e);let t=l(),n=C(0);return p(t.onPrevPage(n==null?null:n.Filter))}),s()}if(i&2){l();let e=C(0),r=C(2);_("filter",e==null?null:e.Filter)("totaldata",r==null||r.Data==null?null:r.Data.length)("paginationTotal",r==null?null:r.Count)("hasClicked",!0)}}var Wt=(()=>{class i{constructor(){this.usersService=f(k),this.permissionService=f(_e),this.toastService=f(Z),this.dialog=f(ye),this.userInviteOptions=S([]),this.searchText=S(null),this.selectedGroup=S(null),this.userLoader$=this.usersService.getLoader().pipe(J(e=>{this.userInviteOptions.set(e.Options.Users),this.initUsers(e.Filter)}),E(1)),this.users$=oe({Count:0,Data:[]}),this.userAddRole=Y.UserAdd,this.userDeleteRole=Y.UserDelete,this.hasUserEditRole=S(!1),this.selectedUsers=S([]),this.currentLoginUser=R(()=>{let e=localStorage.getItem(ue.AUTHORIZATION);return e?JSON.parse(e):null}),this.permissionService.hasPermission(Y.UserEdit).then(e=>{this.hasUserEditRole.set(e)})}initUsers(e){let r=re(ne({},e),{Name:this.searchText(),GroupID:this.selectedGroup()});this.users$=this.usersService.getUsers(r).pipe(J(t=>this.filterUserInvtiteOptions(t.Data)),E(1))}filterUserInvtiteOptions(e){this.userInviteOptions.update(r=>r.filter(t=>e.findIndex(n=>n.UserID===t.ID)===-1))}onCheckAllUser(e,r){r.forEach(n=>{n.Name!==this.currentLoginUser()?.username&&(n.checked=e)});let t=r.filter(n=>n.checked);this.selectedUsers.set(t)}onSelectUser(e){let r=e.filter(t=>t.checked);this.selectedUsers.set(r)}onDeleteUser(e={PageNumber:1,PageSize:10}){let r=this.selectedUsers().map(n=>n.UserID);confirm("Are you sure you want to delete selected users?")&&this.usersService.deleteUsers(r).subscribe(()=>{this.selectedUsers.set([]),this.toastService.success("User deleted successfully","Success"),this.initUsers(e)})}onMigrateUser(e,r){this.dialog.open(Ie,{data:{userGroups:e,availableUsers:r}}).afterClosed().pipe(se(t=>t===!0)).subscribe(()=>{this.initUsers({PageNumber:1,PageSize:10})})}onNextPage(e){e.PageNumber+=1,this.initUsers(e)}onPrevPage(e){e.PageNumber-=1,this.initUsers(e)}onSuccessUpdateUser(e){e.PageNumber=1,this.initUsers(e)}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-users"]],features:[W([k])],decls:33,vars:17,consts:[["headerTitle","Users","description","Manage your users and their permissions",3,"textChange","onSubmit","text"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","Name","bindValue","ID","placeholder","Select Group",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[4,"ngxPermissionsOnly"],[1,"container-fluid"],[1,"row","mt-6"],[1,"col-12"],[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","15%"],[3,"filter","totaldata","paginationTotal","hasClicked"],[3,"onSuccessUpdateUser","groups","users"],[1,"btn","btn-danger","me-3"],[1,"btn","btn-danger","me-3",3,"click"],[1,"fa","fa-trash","me-1"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["role","button","routerLink","/menu/users/users/form",1,"btn","btn-success"],[2,"width","5px"],[1,"d-flex"],["name","selectAll","type","checkbox",3,"change"],["routerLink","/menu/users/users/info",3,"queryParams"],["routerLink","/menu/users/groups/info",3,"queryParams"],[1,"lh-base"],[1,"me-3","mb-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"label","image","alt"],["type","checkbox",3,"ngModelChange","ngModel"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(r,t){if(r&1){let n=y();O(0),A(1,"async"),O(2),A(3,"async"),o(4,"mainpanel",0),w("textChange",function(u){return c(n),M(t.searchText,u)||(t.searchText=u),p(u)}),h("onSubmit",function(){c(n);let u=C(0);return p(t.initUsers(u==null?null:u.Filter))}),o(5,"filters")(6,"div")(7,"label",1),g(8,"Group"),s(),o(9,"ng-select",2),w("ngModelChange",function(u){return c(n),M(t.selectedGroup,u)||(t.selectedGroup=u),p(u)}),s()()(),o(10,"actions"),x(11,We,2,1,"ng-container",3)(12,$e,3,0,"ng-container",3)(13,qe,3,0,"ng-container",3),s(),o(14,"content")(15,"div",4)(16,"div",5)(17,"div",6)(18,"table",7)(19,"thead",8)(20,"tr"),x(21,ze,4,0,"ng-container",3),o(22,"th",9),g(23,"Login ID"),s(),o(24,"th",9),g(25,"Group"),s(),o(26,"th"),g(27,"Channel Filter"),s()()(),o(28,"tbody"),P(29,Xe,12,3,"tr",null,V),s()(),x(31,et,1,4,"app-mat-paginator-no-count",10),s()()()()(),o(32,"invite-group",11),h("onSuccessUpdateUser",function(){c(n);let u=C(0);return p(t.onSuccessUpdateUser(u==null?null:u.Filter))}),s()}if(r&2){let n=N(F(1,11,t.userLoader$));a(2);let d=N(F(3,14,t.users$));a(2),v("text",t.searchText),a(5),_("clearable",!0)("items",n==null||n.Options==null?null:n.Options.Groups),v("ngModel",t.selectedGroup),a(2),_("ngxPermissionsOnly",t.userDeleteRole),a(),_("ngxPermissionsOnly",t.userAddRole),a(),_("ngxPermissionsOnly",t.userAddRole),a(8),_("ngxPermissionsOnly",t.userDeleteRole),a(8),I(d==null?null:d.Data),a(2),U(n?31:-1),a(),_("groups",n==null||n.Options==null?null:n.Options.Groups)("users",t.userInviteOptions())}},dependencies:[q,$,Me,ve,pe,ce,Ve,Ce,ge,fe,he,H,me,z,j,Ee,De,Te],encapsulation:2})}}return i})();export{Wt as UsersComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Ie,b as Ve,c as Re}from"./chunk-2BUABOHG.js";import{a as Ne}from"./chunk-MKOJVMRR.js";import{a as Ee}from"./chunk-G4OF4YLE.js";import"./chunk-2DJWDXTZ.js";import{a as Fe}from"./chunk-ABQG3LB5.js";import{a as Pe}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as Me}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import{c as $,d as ee,e as te}from"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as M}from"./chunk-PB2SJSML.js";import{b as ve,e as U}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import{b as y,c as H}from"./chunk-PW42BQIY.js";import{b as ie,c as ne,d as be,e as oe,f as re,g as we,h as ae,m as De,n as Oe}from"./chunk-6X2OBNJQ.js";import{c as ye,h as B,m as z,o as ke,z as V}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{r as Te,s as xe}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as Se,k as j,m as Ce,n as O}from"./chunk-MTUIRWOB.js";import{$c as x,G as pe,Gb as b,Gc as a,Hc as C,Ic as Q,Kc as k,Lc as v,Mb as E,Mc as T,Na as q,Nc as ue,Oa as J,Oc as he,Pc as ge,Qc as fe,Ra as S,Rc as _e,Sc as Y,Yb as u,Z as ce,aa as le,ac as K,ad as X,bd as I,dc as P,ec as N,gc as L,hc as A,ic as o,ja as F,jc as r,kc as w,oc as D,pa as c,pb as de,rb as p,rd as Z,tc as d,uc as h,v as W,ya as f,za as _}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import{a as G,b as me}from"./chunk-66YHNWRR.js";var Le=i=>({"text-muted":i});function qe(i,g){if(i&1){let e=D();o(0,"div",10),d("click",function(){f(e);let n=h();return _(n.onSelectDelivery("DROP_OFF"))}),o(1,"div",11),w(2,"i",12),o(3,"h3",13),a(4,"Drop off"),r()(),o(5,"p",14),a(6," You can drop off your package at the nearest shipping counter in your city. "),r()()}if(i&2){let e=h();K(Y(2,Le,e.selectedDelivery()==="PICK_UP"))}}function Je(i,g){if(i&1){let e=D();o(0,"div",10),d("click",function(){f(e);let n=h();return _(n.onSelectDelivery("PICK_UP"))}),o(1,"div",11),w(2,"i",15),o(3,"h3",13),a(4,"Pick up"),r()(),o(5,"p",14),a(6," The courier will collect the package from your address. "),r()()}if(i&2){let e=h();K(Y(2,Le,e.selectedDelivery()==="DROP_OFF"))}}var Ae=(()=>{class i{constructor(){this.data=c(ne),this.dialogRef=c(ie),this.selectedDelivery=S("DROP_OFF"),this.showPickup=S(!0),this.showDropOff=S(!0),this.initOptionsCondition()}onSelectDelivery(e){this.selectedDelivery.set(e)}initOptionsCondition(){switch(this.data.channelType){case y.Shopee:break;case y.Tiktok:this.showPickup.set(this.data.options?.Form?.information?.can_pickup),this.showDropOff.set(this.data.options?.Form?.information?.can_drop_off);break}}onConfirm(){this.dialogRef.close(this.selectedDelivery())}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-delivery-dialog"]],decls:16,vars:2,consts:[["mat-dialog-title","",1,"mt-12","mb-8"],[1,"d-flex","justify-content-between","align-items-start","lh-lg"],[1,"ms-2"],[1,"text-secondary-emphasis"],[1,"fa-solid","fa-xmark","text-muted","cursor-pointer","fs-3",3,"click"],[1,"pb-0"],[1,"d-flex","align-items-center","justify-content-center","gap-12"],["role","button",1,"delivery-option","d-flex","flex-column","align-items-center","justify-content-center","p-4","cursor-pointer",3,"class"],[1,"d-flex","justify-content-center",2,"margin-top","1.5rem"],[1,"btn","btn-success",2,"width","70px",3,"click"],["role","button",1,"delivery-option","d-flex","flex-column","align-items-center","justify-content-center","p-4","cursor-pointer",3,"click"],[1,"text-center"],[1,"fa-solid","fa-cart-shopping-fast","fa-4x"],[1,"mt-4"],[1,"text-center","mt-4","lh-sm"],[1,"fa-solid","fa-hand-holding-box","fa-4x"]],template:function(t,n){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),a(4,"Delivery Order"),r(),o(5,"div",3),a(6,"Your selected order(s) will be set to"),r()(),o(7,"div")(8,"i",4),d("click",function(){return n.onClose()}),r()()()(),o(9,"mat-dialog-content",5)(10,"div",6),E(11,qe,7,4,"div",7)(12,Je,7,4,"div",7),r(),o(13,"div",8)(14,"button",9),d("click",function(){return n.onConfirm()}),a(15," OK "),r()()()),t&2&&(p(11),P(n.showPickup()?11:-1),p(),P(n.showDropOff()?12:-1))},dependencies:[O,ae,oe,re],styles:[".delivery-option[_ngcontent-%COMP%]{width:14rem;height:12rem;border:1px solid #656565}.delivery-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.delivery-option.text-muted[_ngcontent-%COMP%]{opacity:.7;border-color:#bebebe}"]})}}return i})();function Xe(i,g){if(i&1&&(o(0,"ng-option",3),a(1),r()),i&2){let e=g.$implicit;u("value",e==null?null:e.address_id)("matTooltip",e==null?null:e.address),p(),C(e==null?null:e.address)}}function Ze(i,g){if(i&1&&(o(0,"ng-option",6)(1,"span",7),a(2),x(3,"date"),r(),o(4,"span"),a(5),r()()),i&2){let e=g.$implicit;u("value",e==null?null:e.pickup_time_id),p(2),C(I(3,3,e==null?null:e.date,"d MMMM")),p(3),C(e==null?null:e.time_text)}}var Be=(()=>{class i{constructor(){this.shippingOptions=J(),this.onFormChanges=q(),this.addressList=Z(()=>this.shippingOptions()?.response?.pickup?.address_list||[]),this.selectedShipping=S(null),this.timeOptions=S(this.convertTimestampToDate(this.addressList()[0]?.time_slot_list||[])),this.pickupTime=S(null)}onAddressChange(e){let t=this.addressList().find(n=>n.address_id===e);this.timeOptions.set(this.convertTimestampToDate(t?.time_slot_list||[])),this.pickupTime.set(null)}onValueChanges(){this.onFormChanges.emit({address_id:this.selectedShipping(),pickup_time_id:this.pickupTime()})}convertTimestampToDate(e){return e.map(t=>{let n=new Date(t.date*1e3);return me(G({},t),{date:n})})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["shopee-pickup"]],inputs:{shippingOptions:[1,"shippingOptions"]},outputs:{onFormChanges:"onFormChanges"},decls:12,vars:4,consts:[[1,"mb-6"],["for","address",1,"mb-2","text-muted"],["id","address","placeholder","Select Address to Pickup","appendTo","body",1,"shipping-timepicker",3,"ngModelChange","clearable","ngModel"],[3,"value","matTooltip"],["for","timepicker",1,"mb-2","text-muted"],["id","timepicker","placeholder","Select Date Pickup","appendTo","body",1,"shipping-timepicker",3,"ngModelChange","clearable","ngModel"],[3,"value"],[1,"me-2"]],template:function(t,n){t&1&&(o(0,"div",0)(1,"label",1),a(2,"Address"),r(),o(3,"ng-select",2),T("ngModelChange",function(s){return v(n.selectedShipping,s)||(n.selectedShipping=s),s}),d("ngModelChange",function(s){return n.onAddressChange(s),n.onValueChanges()}),L(4,Xe,2,3,"ng-option",3,N),r()(),o(6,"div",0)(7,"label",4),a(8,"Date"),r(),o(9,"ng-select",5),T("ngModelChange",function(s){return v(n.pickupTime,s)||(n.pickupTime=s),s}),d("ngModelChange",function(){return n.onValueChanges()}),L(10,Ze,6,6,"ng-option",6,N),r()()),t&2&&(p(3),u("clearable",!1),k("ngModel",n.selectedShipping),p(),A(n.addressList()),p(5),u("clearable",!1),k("ngModel",n.pickupTime),p(),A(n.timeOptions()))},dependencies:[O,j,te,ee,$,V,B,z,xe,Te],encapsulation:2})}}return i})();function $e(i,g){if(i&1&&(o(0,"ng-option",3)(1,"span",4),a(2),x(3,"date"),r(),o(4,"span"),a(5),x(6,"date"),r(),o(7,"span",5),a(8,"-"),r(),o(9,"span"),a(10),x(11,"date"),r()()),i&2){let e=g.$implicit,t=g.$index;u("value",t),p(2),C(I(3,4,e==null?null:e.start_date,"d MMMM")),p(3),C(I(6,7,e==null?null:e.start_date,"HH:mm")),p(5),C(I(11,10,e==null?null:e.end_date,"HH:mm"))}}var ze=(()=>{class i{constructor(){this.shippingOptions=J(),this.onFormChanges=q(),this.timeOptions=Z(()=>this.shippingOptions()?.Options?.pickup_slots),this.selectedTimeIndex=S(null)}onValueChanges(){let e=this.timeOptions()[this.selectedTimeIndex()];this.onFormChanges.emit({start_time:e?.start_time,end_time:e?.end_time})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["tiktok-pickup"]],inputs:{shippingOptions:[1,"shippingOptions"]},outputs:{onFormChanges:"onFormChanges"},decls:6,vars:2,consts:[[1,"mb-6"],["for","timepicker",1,"mb-2","text-muted"],["id","timepicker","placeholder","Select Time Pickup","appendTo","body",1,"shipping-timepicker",3,"ngModelChange","clearable","ngModel"],[3,"value"],[1,"me-2"],[1,"mx-1"]],template:function(t,n){t&1&&(o(0,"div",0)(1,"label",1),a(2,"Time"),r(),o(3,"ng-select",2),T("ngModelChange",function(s){return v(n.selectedTimeIndex,s)||(n.selectedTimeIndex=s),s}),d("ngModelChange",function(){return n.onValueChanges()}),L(4,$e,12,13,"ng-option",3,N),r()()),t&2&&(p(3),u("clearable",!1),k("ngModel",n.selectedTimeIndex),p(),A(n.timeOptions()))},dependencies:[O,j,te,ee,$,V,B,z],encapsulation:2})}}return i})();function et(i,g){if(i&1){let e=D();o(0,"shopee-pickup",10),d("onFormChanges",function(n){f(e);let l=h();return _(l.onFormChanges(n))}),r()}if(i&2){let e=h();u("shippingOptions",e.dialogData.shippingOptions)}}function tt(i,g){if(i&1){let e=D();o(0,"tiktok-pickup",10),d("onFormChanges",function(n){f(e);let l=h();return _(l.onFormChanges(n))}),r()}if(i&2){let e=h();u("shippingOptions",e.dialogData.shippingOptions)}}var He=(()=>{class i{constructor(){this.dialogRef=c(ie),this.dialogData=c(ne),this.shippingOptions=S(this.dialogData.shippingOptions),this.channelType=S(this.dialogData.channelType),this.order=S(this.dialogData.order),this.channelTypeEnum=y,this.pickupData=S(null)}onFormChanges(e){this.pickupData.set(e)}onClose(){this.dialogRef.close()}onSave(){let e=this.generatePickupData();this.dialogRef.close(e)}generatePickupData(){switch(this.channelType()){case y.Shopee:return{OrderNumber:this.order().Number,ShopID:this.order().ShopID,pickup:this.pickupData()};case y.Tiktok:return{handover_method:"PICKUP",PackageID:this.shippingOptions().Form?.information?.PackageID,ShopID:this.order().ShopID,pickup_slot:this.pickupData()}}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-pickup-dialog"]],decls:21,vars:2,consts:[["mat-dialog-title","",1,"mt-12","mb-6"],[1,"d-flex","justify-content-between","align-items-start","lh-lg"],[1,"lh-base","mt-6"],[1,"text-muted","fs-6"],["role","button",1,"fa-solid","fa-xmark","text-muted","cursor-pointer","fs-3",3,"click"],[2,"padding-bottom","10px"],[3,"shippingOptions"],[1,"d-flex","justify-content-end","align-items-center","w-100","pe-8","mb-4"],[1,"btn","btn-outline-secondary","me-4",2,"width","70px",3,"click"],[1,"btn","btn-success",2,"width","70px",3,"click"],[3,"onFormChanges","shippingOptions"]],template:function(t,n){if(t&1&&(o(0,"div",0)(1,"div",1)(2,"div")(3,"h3"),a(4,"Set Pickup"),r(),o(5,"div",2)(6,"div",3),a(7,"Shipping Method"),r(),o(8,"div",3),a(9),r()()(),o(10,"div")(11,"i",4),d("click",function(){return n.onClose()}),r()()()(),o(12,"mat-dialog-content",5),E(13,et,1,1,"shopee-pickup",6)(14,tt,1,1,"tiktok-pickup",6),r(),o(15,"mat-dialog-actions")(16,"div",7)(17,"button",8),d("click",function(){return n.onClose()}),a(18," Cancel "),r(),o(19,"button",9),d("click",function(){return n.onSave()}),a(20," Ok "),r()()()),t&2){let l,s;p(9),Q(" ",!((l=n.order())==null||l.LogisticService==null)&&l.LogisticService.Name?(l=n.order())==null||l.LogisticService==null?null:l.LogisticService.Name:"-"," "),p(4),P((s=n.channelType())===n.channelTypeEnum.Shopee?13:s===n.channelTypeEnum.Tiktok?14:-1)}},dependencies:[O,ae,oe,we,re,V,Be,ze],styles:['ng-select.shipping-timepicker .ng-arrow{border:none!important;width:0;height:0} ng-select.shipping-timepicker .ng-arrow-wrapper{width:28px;display:flex;align-items:center;justify-content:center} ng-select.shipping-timepicker .ng-arrow-wrapper:after{content:"\\f107";font-family:"Font Awesome 6 Pro","Font Awesome 6 Free","Font Awesome 5 Pro","Font Awesome 5 Free";font-style:normal;font-weight:400!important;font-size:16px;line-height:1;display:inline-block;color:#6b7280;pointer-events:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:auto}.label-opacity[_ngcontent-%COMP%]{opacity:.7}']})}}return i})();var se=(()=>{class i{constructor(){this.httpService=c(U)}getReadyToShipOrders(e){return this.httpService.post(M.GetToShip,e).pipe(W(t=>t?.Data))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=F({token:i,factory:i.\u0275fac})}}return i})();var Ue=(()=>{class i{constructor(){this.httpService=c(U)}getShippingOptions(e,t){return this.httpService.post(M.GetTiktokShippingOptions,{OrderNumber:e,ShopID:t}).pipe(W(n=>this.formatDatePickUpOptions(n)))}pickupOrder(e){return this.httpService.post(M.TiktokSelectShipping,e)}dropOffOrder(e,t){let n={handover_method:"DROP_OFF",PackageID:e,ShopID:t};return this.httpService.post(M.TiktokSelectShipping,n)}formatDatePickUpOptions(e){return e?.Options?.pickup_slots&&(e.Options.pickup_slots=e?.Options?.pickup_slots.map(t=>{let n=H.convertTimestampToDate(t.start_time),l=H.convertTimestampToDate(t.end_time);return t.start_date=n,t.end_date=l,t})),e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ge=(()=>{class i{constructor(){this.httpService=c(U)}getShippingOptions(e,t){return this.httpService.post(M.GetShopeeShippingOptions,{OrderNumber:e,ShopID:t})}pickupOrder(e){return this.httpService.post(M.ShopeeSelectShipping,e)}dropOffOrder(e,t){let n={OrderNumber:e,ShopID:t,dropoff:{}};return this.httpService.post(M.ShopeeSelectShipping,n)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ke=(()=>{class i{constructor(){this.shopeeShippingService=c(Ge),this.tiktokShippingService=c(Ue)}getShippingOptions(e,t,n){switch(n){case y.Shopee:return this.getShopeeShippingOptions(e,t);case y.Tiktok:return this.getTiktokShippingOptions(e,t)}}pickupOrder(e,t){switch(e.MarketType){case y.Shopee:return this.shopeeShippingService.pickupOrder(t);case y.Tiktok:return this.tiktokShippingService.pickupOrder(t)}}dropOffOrder(e,t){switch(e.MarketType){case y.Shopee:return this.shopeeShippingService.dropOffOrder(e.Number,e.ShopID);case y.Tiktok:let n=t?.Form?.information?.PackageID;return this.tiktokShippingService.dropOffOrder(n,e.ShopID)}}getShopeeShippingOptions(e,t){return this.shopeeShippingService.getShippingOptions(e,t)}getTiktokShippingOptions(e,t){return this.tiktokShippingService.getShippingOptions(e,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var it=()=>[],nt=i=>({"td-cell-hover":i});function ot(i,g){if(i&1&&w(0,"variants-dropdown",28),i&2){let e=h().$implicit;u("variants",e==null?null:e.Variants)}}function rt(i,g){if(i&1&&w(0,"variant-with-image",29),i&2){let e=h().$implicit;u("variant",e==null?null:e.Variants[0])}}function at(i,g){if(i&1&&(o(0,"span"),a(1),r()),i&2){let e=h().$implicit;p(),C(e.LogisticService==null?null:e.LogisticService.Option)}}function pt(i,g){if(i&1){let e=D();o(0,"tr")(1,"td"),a(2),r(),o(3,"td")(4,"div",24)(5,"div",25)(6,"div"),w(7,"img",26),x(8,"channelImage"),r(),o(9,"div"),w(10,"order-link",27),r()(),o(11,"small"),a(12),x(13,"date"),r()()(),o(14,"td"),a(15),r(),o(16,"td"),E(17,ot,1,1,"variants-dropdown",28)(18,rt,1,1,"variant-with-image",29),r(),o(19,"td",30),a(20),x(21,"number"),r(),o(22,"td")(23,"span"),a(24),r(),E(25,at,2,1,"span"),r(),o(26,"td",31)(27,"button",32),d("click",function(){let n=f(e).$implicit,l=h(2);return _(l.onSetFulfillment(n))}),a(28," Set Fulfillment "),r()()()}if(i&2){let e=g.$implicit;p(2),C(e.Outlet),p(5),u("src",X(8,12,e==null?null:e.MarketType),de)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),p(3),u("order",e),p(2),Q(" ",I(13,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),p(3),C(e.Customer),p(),K(Y(19,nt,(e.Variants==null?null:e.Variants.length)>1)),p(),P((e.Variants==null?null:e.Variants.length)>1?17:18),p(3),C(X(21,17,e.Amount)),p(4),C(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),p(),P(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1)}}function lt(i,g){if(i&1){let e=D();o(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),a(5,"Outlet"),r(),o(6,"th",19),a(7,"Number"),r(),o(8,"th",19),a(9,"Customer"),r(),o(10,"th"),a(11,"Items"),r(),o(12,"th",20),a(13,"Amount"),r(),o(14,"th",21),a(15,"Shipping"),r(),w(16,"th",22),r()(),o(17,"tbody"),L(18,pt,29,21,"tr",null,N),r()(),o(20,"app-custom-paginator",23),d("next",function(){f(e);let n=h();return _(n.initReadyToShip())})("previous",function(){f(e);let n=h();return _(n.initReadyToShip())}),r()()}if(i&2){let e=h(),t=ge(0);p(18),A(t),p(2),u("filter",e.filter())("totaldata",t==null?null:t.length)}}function st(i,g){i&1&&(o(0,"div",14),w(1,"app-empty-state"),r())}var Ii=(()=>{class i{constructor(){this.readyToShipService=c(se),this.dialog=c(be),this.pickupService=c(Ke),this.toastr=c(ve),this.filter=S({PageNumber:1,PageSize:100,ListChannelID:[],From:new Date,To:new Date,Number:null})}ngOnInit(){this.initReadyToShip()}initReadyToShip(){this.readyToShip$=this.readyToShipService.getReadyToShipOrders(this.filter()).pipe(ce(1))}onFilterChange(e){this.filter.update(t=>G(G({},t),e))}onSetFulfillment(e){this.pickupService.getShippingOptions(e.Number,e.ShopID,e.MarketType).pipe(le(t=>this.dialog.open(Ae,{height:"400px",width:"530px",data:{options:t,channelType:e.MarketType}}).afterClosed().pipe(pe(n=>H.IsNotEmpty(n)),W(n=>({type:n,order:e,options:t}))))).subscribe(t=>{t.type=="PICK_UP"?this.onSelectPickup(t.order,t.options):this.onSelectDropOff(t.order,t.options)})}onSelectPickup(e,t){this.dialog.open(He,{width:"530px",data:{order:e,shippingOptions:t,channelType:e.MarketType},disableClose:!0}).afterClosed().pipe(pe(n=>H.IsNotEmpty(n)),le(n=>this.pickupService.pickupOrder(e,n))).subscribe(()=>{this.toastr.success("Pickup order created successfully","Success"),this.initReadyToShip()})}onSelectDropOff(e,t){this.pickupService.dropOffOrder(e,t).subscribe(()=>{this.toastr.success("Drop-off order created successfully","Success"),this.initReadyToShip()})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-ready-to-ship"]],features:[fe([se])],decls:29,vars:12,consts:[["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],[2,"width","160px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem",3,"click"]],template:function(t,n){if(t&1){let l=D();ue(0),x(1,"async"),o(2,"mainpanel",0),d("onSubmit",function(){return f(l),_(n.initReadyToShip())}),T("textChange",function(m){return f(l),v(n.filter().Number,m)||(n.filter().Number=m),_(m)}),o(3,"filters")(4,"div")(5,"label",1),a(6,"From/To"),r(),o(7,"channel-select-options",2),T("ngModelChange",function(m){return f(l),v(n.filter().ListChannelID,m)||(n.filter().ListChannelID=m),_(m)}),r()(),o(8,"div",3)(9,"label",1),a(10,"From/To"),r(),o(11,"div",4)(12,"datepicker",5),T("dateChange",function(m){return f(l),v(n.filter().From,m)||(n.filter().From=m),_(m)}),r()(),o(13,"div")(14,"datepicker",6),T("dateChange",function(m){return f(l),v(n.filter().To,m)||(n.filter().To=m),_(m)}),r()()(),o(15,"div",3)(16,"label",7),a(17,"Page Number"),r(),o(18,"input",8),T("ngModelChange",function(m){return f(l),v(n.filter().PageNumber,m)||(n.filter().PageNumber=m),_(m)}),r()(),o(19,"div",3)(20,"label",7),a(21,"Page Size"),r(),o(22,"input",9),T("ngModelChange",function(m){return f(l),v(n.filter().PageSize,m)||(n.filter().PageSize=m),_(m)}),r()()(),o(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),E(27,lt,21,2,"div",13)(28,st,2,0,"div",14),r()()()()()}if(t&2){let l=he(X(1,8,n.readyToShip$)||_e(11,it));p(2),k("text",n.filter().Number),p(5),u("multiple",!0),k("ngModel",n.filter().ListChannelID),p(5),k("date",n.filter().From),p(2),k("date",n.filter().To),p(4),k("ngModel",n.filter().PageNumber),p(4),k("ngModel",n.filter().PageSize),p(5),P(l.length>0?27:28)}},dependencies:[O,Se,Ce,j,Oe,De,Pe,Me,V,ye,ke,B,z,Ie,Ve,Re,Ee,Fe,Ne],styles:[".actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}"]})}}return i})();export{Ii as ReadyToShipComponent};
|