marketplacepos 5.43.13 → 5.44.1
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/3rdpartylicenses.txt +41 -41
- package/Marketplace/{chunk-YSJSAVBS.js → chunk-2ODVHD2K.js} +1 -1
- package/Marketplace/{chunk-PXYBLGMN.js → chunk-2SCXTEPT.js} +1 -1
- package/Marketplace/{chunk-NEYMDA6P.js → chunk-2XV6YOOU.js} +1 -1
- package/Marketplace/{chunk-DRHWRRQV.js → chunk-35XX6SQT.js} +1 -1
- package/Marketplace/{chunk-5BSS4CVK.js → chunk-3OIE7ARG.js} +1 -1
- package/Marketplace/chunk-3ONIF6WO.js +1 -0
- package/Marketplace/chunk-4JS5MYC3.js +1 -0
- package/Marketplace/{chunk-ZUEJZI4O.js → chunk-4KKT6FMN.js} +1 -1
- package/Marketplace/{chunk-CRUPQQ56.js → chunk-4WI2DOJ7.js} +1 -1
- package/Marketplace/{chunk-Z7LBV3BO.js → chunk-57UYCHCW.js} +1 -1
- package/Marketplace/{chunk-G2YN5S5X.js → chunk-5JQJRPL3.js} +1 -1
- package/Marketplace/chunk-5TKBTQTA.js +2 -0
- package/Marketplace/{chunk-2IDDYNBR.js → chunk-6BIM4KEI.js} +1 -1
- package/Marketplace/{chunk-LROLRGKE.js → chunk-6INFVQEU.js} +11 -11
- package/Marketplace/{chunk-ALSCWTAY.js → chunk-6IYLH3EV.js} +1 -1
- package/Marketplace/{chunk-722SRHLY.js → chunk-6RKA4STM.js} +1 -1
- package/Marketplace/{chunk-XBUZ27V4.js → chunk-6ZVBRMK4.js} +1 -1
- package/Marketplace/{chunk-QWHPQWPM.js → chunk-77JJJNRM.js} +1 -1
- package/Marketplace/chunk-7PSP3KRN.js +1 -0
- package/Marketplace/{chunk-E6U3KRK7.js → chunk-7T2AVFH5.js} +1 -1
- package/Marketplace/{chunk-SRVGUGY2.js → chunk-AO46RPZ4.js} +1 -1
- package/Marketplace/chunk-B5BDARIM.js +1 -0
- package/Marketplace/{chunk-6FY74YFQ.js → chunk-B5V5KFQU.js} +1 -1
- package/Marketplace/{chunk-6BAZYVHI.js → chunk-BOGJ2QV5.js} +2 -2
- package/Marketplace/{chunk-WIAQQWWF.js → chunk-BU5LUO3S.js} +1 -1
- package/Marketplace/{chunk-YD5TUVFF.js → chunk-C5JZPXEW.js} +1 -1
- package/Marketplace/{chunk-3B2PNJWF.js → chunk-CCWNSX4Y.js} +1 -1
- package/Marketplace/{chunk-6W6DKFRE.js → chunk-CIAZIJGR.js} +3 -3
- package/Marketplace/{chunk-N3P55TG2.js → chunk-CSP6M3TO.js} +1 -1
- package/Marketplace/{chunk-J2KWRDVH.js → chunk-CUB2QFUO.js} +1 -1
- package/Marketplace/{chunk-WPW3D4MQ.js → chunk-D6URDVES.js} +1 -1
- package/Marketplace/{chunk-C3HL4S2R.js → chunk-DAVYBR3Z.js} +1 -1
- package/Marketplace/chunk-DHOJLUJI.js +1 -0
- package/Marketplace/{chunk-O5LFGGB2.js → chunk-DL66NZ2A.js} +1 -1
- package/Marketplace/{chunk-CUEO37N7.js → chunk-DRTTCT2P.js} +1 -1
- package/Marketplace/chunk-E2SXYIML.js +2 -0
- package/Marketplace/{chunk-L7K5HOBY.js → chunk-E4KNET2R.js} +1 -1
- package/Marketplace/{chunk-7ZXNQAAU.js → chunk-E4Z7OR75.js} +2 -2
- package/Marketplace/{chunk-2GSWEJRP.js → chunk-E66C2WAS.js} +1 -1
- package/Marketplace/{chunk-EZY2ATQQ.js → chunk-EGFBMQKW.js} +1 -1
- package/Marketplace/{chunk-AG2REZBE.js → chunk-EJG33GYS.js} +8 -8
- package/Marketplace/{chunk-B73M3AMU.js → chunk-EQIFZBRG.js} +1 -1
- package/Marketplace/{chunk-AJJSLBE3.js → chunk-ETOKAGEB.js} +2 -2
- package/Marketplace/{chunk-624I4PEE.js → chunk-EWYAB244.js} +1 -1
- package/Marketplace/{chunk-LOBNKJGT.js → chunk-F63CEOOT.js} +1 -1
- package/Marketplace/{chunk-TCS2Y6CC.js → chunk-F7QBIR6G.js} +1 -1
- package/Marketplace/chunk-G6VH553U.js +1 -0
- package/Marketplace/{chunk-7UHCDGAA.js → chunk-G7R7LUW4.js} +1 -1
- package/Marketplace/{chunk-2EOAYJGX.js → chunk-GCDQNJQN.js} +1 -1
- package/Marketplace/{chunk-G47XGOST.js → chunk-GIRXMYNI.js} +1 -1
- package/Marketplace/chunk-HFKZOM4I.js +1 -0
- package/Marketplace/chunk-I6VSPSNT.js +1 -0
- package/Marketplace/{chunk-YCH6HHU3.js → chunk-IHNN4Q2N.js} +3 -3
- package/Marketplace/{chunk-H3J5OAIG.js → chunk-IIZDEGGW.js} +2 -2
- package/Marketplace/{chunk-J7AN3ZQL.js → chunk-IM4DS3UA.js} +1 -1
- package/Marketplace/{chunk-7PN4XLNE.js → chunk-IMK2JGZA.js} +1 -1
- package/Marketplace/chunk-J5OHT4GM.js +1 -0
- package/Marketplace/{chunk-GH57P6KF.js → chunk-JPYSXZZO.js} +1 -1
- package/Marketplace/{chunk-6G5WVJGA.js → chunk-JUL73DOX.js} +1 -1
- package/Marketplace/{chunk-MHCAI6KP.js → chunk-K5GEJ2GZ.js} +1 -1
- package/Marketplace/{chunk-2TRFYYCP.js → chunk-K5VFEHP7.js} +1 -1
- package/Marketplace/chunk-K77RTNG2.js +1 -0
- package/Marketplace/{chunk-3TDK2RMH.js → chunk-K7ZFPSOU.js} +1 -1
- package/Marketplace/{chunk-7SVF5UPT.js → chunk-KALG6D6L.js} +1 -1
- package/Marketplace/chunk-KAQL5LN5.js +1 -0
- package/Marketplace/{chunk-OPXWL5G6.js → chunk-KIIVJXDR.js} +1 -1
- package/Marketplace/{chunk-5HO2IJ47.js → chunk-KMJM6UVY.js} +1 -1
- package/Marketplace/{chunk-G2CMMGM2.js → chunk-KWX3WSCT.js} +1 -1
- package/Marketplace/{chunk-M5JQ7BGW.js → chunk-L3FX4O3H.js} +6 -6
- package/Marketplace/{chunk-CROPN4YC.js → chunk-LDHQNVI5.js} +1 -1
- package/Marketplace/{chunk-3BT5DR3X.js → chunk-MH4SJTQX.js} +1 -1
- package/Marketplace/chunk-MS3ZBCON.js +157 -0
- package/Marketplace/chunk-MSQ7Z3W2.js +1 -0
- package/Marketplace/{chunk-U7TVLBC5.js → chunk-NOP5P5R5.js} +1 -1
- package/Marketplace/chunk-NXI7PMGL.js +1 -0
- package/Marketplace/{chunk-EOZ2J2CF.js → chunk-NZUPRMOX.js} +1 -1
- package/Marketplace/chunk-OA5PCIIS.js +1 -0
- package/Marketplace/{chunk-RZU7PSKG.js → chunk-OPFENZ3W.js} +1 -1
- package/Marketplace/chunk-OPYO4NH2.js +5 -0
- package/Marketplace/{chunk-MMVLDCF6.js → chunk-OTDC2LYA.js} +1 -1
- package/Marketplace/{chunk-3NMM37H7.js → chunk-P7NATRFC.js} +1 -1
- package/Marketplace/{chunk-JDIBETL5.js → chunk-PNITO7BE.js} +1 -1
- package/Marketplace/{chunk-WHG5PPSE.js → chunk-QIALMLQK.js} +1 -1
- package/Marketplace/{chunk-PFB7XEYZ.js → chunk-QJJ2WFVX.js} +1 -1
- package/Marketplace/{chunk-4JKDNUTX.js → chunk-RZZKFTCX.js} +1 -1
- package/Marketplace/{chunk-WS4A4RPE.js → chunk-SBZNADRN.js} +1 -1
- package/Marketplace/{chunk-GMVNN57A.js → chunk-SDVWA7KM.js} +1 -1
- package/Marketplace/{chunk-IVHM5DMM.js → chunk-SJU6ZU2K.js} +1 -1
- package/Marketplace/{chunk-VKMFDXJJ.js → chunk-SLI26GUH.js} +1 -1
- package/Marketplace/{chunk-JILE74BG.js → chunk-UBXKO4QI.js} +1 -1
- package/Marketplace/{chunk-CLER2MX6.js → chunk-UGVEAL7H.js} +3 -3
- package/Marketplace/{chunk-2OVYEC6Q.js → chunk-V2SXQQLG.js} +1 -1
- package/Marketplace/{chunk-POR3OF22.js → chunk-VWNEJWLI.js} +1 -1
- package/Marketplace/{chunk-E6XWD6WX.js → chunk-W6FZQ6XT.js} +1 -1
- package/Marketplace/{chunk-2YFZS6SG.js → chunk-WHDFRUFN.js} +1 -1
- package/Marketplace/chunk-WMYSG6O7.js +1 -0
- package/Marketplace/chunk-WVQIS27J.js +1 -0
- package/Marketplace/chunk-XHYJOIC5.js +3 -0
- package/Marketplace/chunk-XMIUIAY2.js +1 -0
- package/Marketplace/chunk-Y42GRQNF.js +1 -0
- package/Marketplace/chunk-YERZ6W22.js +1 -0
- package/Marketplace/{chunk-BFU7VKO3.js → chunk-YM4TJJMM.js} +1 -1
- package/Marketplace/{chunk-CIIO2CJ6.js → chunk-YPWHTELF.js} +1 -1
- package/Marketplace/{chunk-6NHTTVBK.js → chunk-YXGO35YT.js} +1 -1
- package/Marketplace/{chunk-OLCFJJOD.js → chunk-YZLHRAEO.js} +1 -1
- package/Marketplace/{chunk-DYWTLXMP.js → chunk-Z5GRNGHJ.js} +1 -1
- package/Marketplace/{chunk-QQXVBN22.js → chunk-Z5OLAUH6.js} +1 -1
- package/Marketplace/{chunk-L64EL5OU.js → chunk-ZQ5EGXEB.js} +2 -2
- package/Marketplace/chunk-ZXQNMGQG.js +1 -0
- package/Marketplace/index.html +3 -3
- package/Marketplace/{main-2SUNMEPM.js → main-AS37EDUH.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-4B4NNOKK.js +0 -1
- package/Marketplace/chunk-56IX4GTG.js +0 -1
- package/Marketplace/chunk-67N4UGA5.js +0 -2
- package/Marketplace/chunk-7AQ244V7.js +0 -5
- package/Marketplace/chunk-DRMAONR7.js +0 -1
- package/Marketplace/chunk-GSZJGR7K.js +0 -2
- package/Marketplace/chunk-GVL2YXE5.js +0 -1
- package/Marketplace/chunk-HLOBDI4F.js +0 -2
- package/Marketplace/chunk-I7FTVK26.js +0 -1
- package/Marketplace/chunk-IRLIWSK5.js +0 -1
- package/Marketplace/chunk-MY5ZX6JG.js +0 -1
- package/Marketplace/chunk-OOCYP2XG.js +0 -1
- package/Marketplace/chunk-Q3MVAL6O.js +0 -1
- package/Marketplace/chunk-QINGXOOA.js +0 -1
- package/Marketplace/chunk-SMUCMLEE.js +0 -1
- package/Marketplace/chunk-UG7VRDLB.js +0 -3
- package/Marketplace/chunk-V2RVHNCX.js +0 -1
- package/Marketplace/chunk-ZWBTWIGY.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-AJL3CYNX.js";import{a as h}from"./chunk-
|
|
1
|
+
import{a as b}from"./chunk-AJL3CYNX.js";import{a as h}from"./chunk-GCDQNJQN.js";import{a as m}from"./chunk-WHDFRUFN.js";import"./chunk-PE5AFID4.js";import{c as M}from"./chunk-K5GEJ2GZ.js";import{b as O}from"./chunk-B5V5KFQU.js";import"./chunk-E4Z7OR75.js";import{a}from"./chunk-KWX3WSCT.js";import{a as P}from"./chunk-CCWNSX4Y.js";import"./chunk-PNITO7BE.js";import"./chunk-E4KNET2R.js";import"./chunk-3LRWABHB.js";import"./chunk-74IXJYWO.js";import"./chunk-GIRXMYNI.js";import"./chunk-SYUFPF3D.js";import"./chunk-SDUUFQUI.js";import"./chunk-5OHRA4AS.js";import"./chunk-IL5JIRWJ.js";import"./chunk-MH4SJTQX.js";import"./chunk-CUB2QFUO.js";import"./chunk-KALG6D6L.js";import"./chunk-UMP6ZMEJ.js";import"./chunk-CMTBBXR5.js";import{a as C}from"./chunk-D6URDVES.js";import"./chunk-XHYJOIC5.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-AEOSNAHH.js";import"./chunk-TGMCGROM.js";import"./chunk-KMJM6UVY.js";import"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{e as g}from"./chunk-5JVEEL2T.js";import"./chunk-PW42BQIY.js";import{n as f}from"./chunk-UGVEAL7H.js";import{A as u}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-SWQXSJ7O.js";import{s}from"./chunk-IHNN4Q2N.js";import"./chunk-EQIFZBRG.js";import{F as l,J as i,n as r}from"./chunk-M2FCTYGU.js";import{Gb as d,Hb as e,ka as n,kc as c}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var _=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=d({type:t,selectors:[["app-products"]],standalone:!1,decls:1,vars:0,template:function(o,v){o&1&&c(0,"router-outlet")},dependencies:[l],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]})}}return t})();var y=[{path:"",component:_,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",loadChildren:()=>import("./chunk-WMYSG6O7.js").then(t=>t.StatusModule),canActivate:[a,m]},{path:"download",loadChildren:()=>import("./chunk-SBZNADRN.js").then(t=>t.DownloadModule),canActivate:[a,m]},{path:"upload",loadComponent:()=>import("./chunk-7T2AVFH5.js").then(t=>t.ProductUploadComponent),data:{title:"Upload Product"},canActivate:[a,m]}]}],w=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=e({type:t})}static{this.\u0275inj=n({imports:[r,i.forChild(y)]})}}return t})();var X=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=e({type:t})}static{this.\u0275inj=n({imports:[r,u,i,w,s,f,g,O,C,M,P,h,b]})}}return t})();export{X as ProductModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as j}from"./chunk-
|
|
1
|
+
import{a as j}from"./chunk-YM4TJJMM.js";import{b as _,e as D}from"./chunk-JXSBFTQM.js";import{b as d,c as y}from"./chunk-PW42BQIY.js";import{b as M,d as P,f as x,g as L}from"./chunk-UGVEAL7H.js";import{h as v,m as w}from"./chunk-6QYD6NIJ.js";import{G as h,Gb as k,Gc as p,Kc as S,Lc as C,Mc as T,aa as u,ic as o,ja as b,jc as r,oa as c,rb as g,tc as m,v as s,xb as f}from"./chunk-B7KTCPKC.js";var I=(()=>{class a{constructor(i){this.dialogRef=i,this.tandaiSudahDicetak=!1}onCancel(){this.dialogRef.close()}onPrint(){this.dialogRef.close(this.tandaiSudahDicetak?1:0)}static{this.\u0275fac=function(t){return new(t||a)(f(M))}}static{this.\u0275cmp=k({type:a,selectors:[["app-print-tokopedia"]],standalone:!1,decls:17,vars:1,consts:[[1,"container-fluid"],[1,"text-center","mb-4","fw-bold","mt-6"],[1,"row"],[1,"col-12"],[1,"fs-5"],[1,"d-flex","align-items-center","text-center","justify-content-center","mb-8"],[1,"me-2",3,"ngModelChange","ngModel"],[1,"fs-5","pt-1"],[1,"d-flex","align-items-center","justify-content-center"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"click"]],template:function(t,e){t&1&&(o(0,"div",0)(1,"h2",1),p(2,"Cetak label pesanan"),r(),o(3,"mat-dialog-content")(4,"div",2)(5,"div",3)(6,"p",4),p(7,"Kamu akan mencetak label yang berisi detail pesanan"),r(),o(8,"div",5)(9,"mat-checkbox",6),T("ngModelChange",function(l){return C(e.tandaiSudahDicetak,l)||(e.tandaiSudahDicetak=l),l}),r(),o(10,"span",7),p(11,'Pesanan telah ditandai sebagai "Sudah Dicetak"'),r()()()()(),o(12,"mat-dialog-actions",8)(13,"button",9),m("click",function(){return e.onCancel()}),p(14,"Cancel"),r(),o(15,"button",10),m("click",function(){return e.onPrint()}),p(16,"Cetak Pesanan"),r()()()),t&2&&(g(9),S("ngModel",e.tandaiSudahDicetak))},dependencies:[v,w,j,L,x],encapsulation:2})}}return a})();var G=(()=>{class a{constructor(i,t,e){this.http=i,this.toastr=t,this.dialog=e}getTokopediaShippingLabel(i){return this.http.post("/api/v1/Shippinglabel/Tokopedia/Multiple",{Orders:i}).pipe(s(t=>(t=t.map(e=>(e.ChannelType=d.Tokopedia,e)),t)))}getTiktokShippingLabel(i){return this.http.post("/api/v1/Shippinglabel/TIktok/Multiple",{Orders:i}).pipe(s(t=>(t=t.map(e=>(e.ChannelType=d.Tiktok,e)),t)))}getShopeeShippingLabel(i){return this.http.post("/api/v1/Shippinglabel/shopee/Multiple",{Orders:i}).pipe(s(t=>(t=t.map(e=>(e.ChannelType=d.Shopee,e)),t)))}getLazadaShippingLabel(i){return this.http.post("/api/v1/Shippinglabel/lazada/Multiple",{Orders:i}).pipe(s(t=>(t=t.map(e=>(e.ChannelType=d.Lazada,e)),t)))}printShippingLabelTokopedia(i){let t={OrderNumber:i,Printed:!0};this.dialog.open(I).afterClosed().pipe(h(e=>e!==void 0),u(e=>(t.Printed=e,this.http.post("api/v1/Shippinglabel/Tokopedia",t)))).subscribe(e=>{let n=window.open("about:blank","_blank");n.document.write(e.File),n.document.close()})}printShippingLabelTiktok(i,t){let e={ShopID:t,OrderNumber:i};this.http.post("api/v1/Shippinglabel/Tiktok",e).subscribe(n=>{n.data!=null?window.open(n.data.doc_url,"_blank"):this.toastr.error("Cannot Print the Shipping Label,The invoice Number is not set to Pickup","Cannot Print")})}printShippingLabelShopee(i,t){let e={ShopID:t,OrderNumber:i};this.http.post("api/v1/Shippinglabel/shopee/DownloadShipping",e).subscribe(n=>{var l=Uint8Array.from(atob(n.File),N=>N.charCodeAt(0)),O=new Blob([l],{type:"octet/stream"});y.openDownloadFile(O,`${i}.pdf`)})}printShippingLabelLazada(i,t){let e={ShopID:t,OrderNumber:i};this.http.post("api/v1/Shippinglabel/Lazada/DownloadShipping",e).subscribe(n=>{n.result.data!=null?window.open(n.result.data.pdf_url,"_blank"):this.toastr.error(n.message,"Cannot Print")})}static{this.\u0275fac=function(t){return new(t||a)(c(D),c(_),c(P))}}static{this.\u0275prov=b({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();export{G as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D}from"./chunk-
|
|
1
|
+
import{a as D}from"./chunk-RZZKFTCX.js";import{a as fe}from"./chunk-NS46QSCM.js";import"./chunk-SM3P57SO.js";import{a as U}from"./chunk-UMP6ZMEJ.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import{a as re}from"./chunk-Z3ITXK3D.js";import{a as pe}from"./chunk-ACIMXBIC.js";import"./chunk-KMJM6UVY.js";import{b as ae}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{c as oe}from"./chunk-PW42BQIY.js";import{m as me,n as ue}from"./chunk-UGVEAL7H.js";import{A as ie}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{b as le,c as se}from"./chunk-SWQXSJ7O.js";import{r as de,s as ce}from"./chunk-IHNN4Q2N.js";import"./chunk-EQIFZBRG.js";import{E as Y,G as ee,H as te,J as ne,d as K,g as Q,j as W,m as X,n as P}from"./chunk-M2FCTYGU.js";import{$c as _,Gb as x,Gc as s,Hc as h,Ic as z,Jb as L,Mb as m,Nc as q,Oc as $,Pc as C,Qc as j,Sc as I,Tc as J,Yb as p,Z as V,aa as w,ac as S,ad as y,dc as T,ec as k,gc as A,hc as H,ic as a,jc as l,kc as u,lc as g,mc as v,ob as F,oc as B,pa as b,rb as r,rd as Z,tc as G,uc as c,v as M,ya as N,za as R}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as E,b as O}from"./chunk-66YHNWRR.js";var ge=(()=>{class t{transform(e){return typeof e=="number"&&(e=e.toString()),e!=null?e.replace(/\n/g,"<br />"):e}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275pipe=L({name:"newlines",type:t,pure:!0})}}return t})();var Ce=t=>({disabled:t}),_e=(t,d)=>({labelFilledInput:t,labelEmptyInput:d});function ye(t,d){if(t&1&&(a(0,"p"),s(1),_(2,"number"),l()),t&2){let e=c();r(),h(e.inputValueType()==="number"?y(2,1,e.inputValue):e.inputValue)}}function xe(t,d){if(t&1&&(u(0,"p",3),_(1,"newlines")),t&2){let e=c();p("innerHTML",y(1,1,e.inputValue),F)}}function Ie(t,d){if(t&1&&(g(0),s(1),v()),t&2){let e=c();r(),z(" ",e.labelValue," ")}}var ve=(()=>{class t{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=pe.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(o,n){o&1&&(a(0,"div",0),m(1,ye,3,3,"p",1)(2,xe,2,3,"p",2),a(3,"label"),m(4,Ie,2,1,"ng-container",1),l()()),o&2&&(S(n.class),p("ngClass",I(9,Ce,n.disabled))("matTooltip",n.tooltip),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="input"),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),r(),S(J(11,_e,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),r(),p("ngIf",n.labelVisible))},dependencies:[P,K,Q,X,ge,ce,de],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})}}return t})();var Pe=t=>({ID:t});function Me(t,d){if(t&1){let e=B();a(0,"button",24),G("click",function(){N(e);let n=c(2),i=C(0);return R(n.onDeleteUser(i==null||i.selectedUser==null?null:i.selectedUser.ID))}),u(1,"i",25),s(2," Delete "),l()}}function Se(t,d){if(t&1&&(g(0),m(1,Me,3,0,"button",23),v()),t&2){let e,o=c(),n=C(0);r(),T((n==null||n.selectedUser==null?null:n.selectedUser.Name)!==((e=o.currentLoginUser())==null?null:e.username)?1:-1)}}function Te(t,d){if(t&1&&(g(0),a(1,"a",26),u(2,"i",27),s(3," Edit "),l(),v()),t&2){c();let e=C(0);r(),p("queryParams",I(1,Pe,e==null||e.selectedUser==null?null:e.selectedUser.ID))}}function Ue(t,d){t&1&&(a(0,"div",20),s(1," All channels assigned to this user "),l())}function De(t,d){if(t&1&&u(0,"p-chip",28),t&2){let e=d.$implicit;p("label",e.Name)("image",e.logo)("alt",e.Name)}}function Ee(t,d){if(t&1&&A(0,De,1,3,"p-chip",28,k),t&2){c();let e=C(0);H(e==null?null:e.selectedChannels)}}var ot=(()=>{class t{constructor(){this.userService=b(D),this.activatedRoute=b(Y),this.toastService=b(ae),this.router=b(ee),this.userLoader$=this.activatedRoute.queryParams.pipe(w(e=>{let o=e.ID||null;return this.userService.getUserFormLoader(o).pipe(V(1),M(n=>(n.Options.Channels=oe.assignChannelLogo(n.Options.Channels),n)))}),M(e=>{let o=e.Options.Users.find(f=>f.ID===e.Form?.ID),n=e.Options.Groups.find(f=>f.ID===e.Form?.GroupID),i=e.Options.Channels.filter(f=>e.UserChannels?.includes(f.ID));return O(E({},e),{selectedUser:o||null,selectedGroup:n||null,selectedChannels:i||[],DownloadOrderDaysRange:e.Form?.DownloadOrderDaysRange||"0"})})),this.userEditRole=U.UserEdit,this.userDeleteRole=U.UserDelete,this.currentLoginUser=Z(()=>{let e=localStorage.getItem(re.AUTHORIZATION);return e?JSON.parse(e):null})}onDeleteUser(e){confirm("Are you sure you want to delete this user?")&&this.userService.deleteUsers([e]).subscribe({next:()=>{this.router.navigate(["/menu/users/users"]),this.toastService.success("User deleted successfully","Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-user-info"]],features:[j([D])],decls:50,vars:12,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5","bg-light-gray"],[1,"row","mt-8"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body","mt-8","pb-4"],[1,"row"],[1,"col-6"],[1,"info-label-group"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","channel-tab","data-bs-toggle","tab","data-bs-target","#channel-tab-pane","type","button","role","tab","aria-controls","channel-tab-pane","aria-selected","true",1,"nav-link","active"],["id","restriction-tab","data-bs-toggle","tab","data-bs-target","#restriction-tab-pane","type","button","role","tab","aria-controls","restriction-tab-pane","aria-selected","false",1,"nav-link"],[1,"card","rounded-0","border-top-0"],[1,"card-body","pb-4"],["id","myTabContent",1,"tab-content"],["id","channel-tab-pane","role","tabpanel","aria-labelledby","channel-tab","tabindex","0",1,"tab-pane","fade","show","active"],[1,"text-center","fs-5","opacity-50"],["id","restriction-tab-pane","role","tabpanel","aria-labelledby","restriction-tab-pane","tabindex","1",1,"tab-pane","fade"],["tooltip","How many days of past orders this user can download.","labelValue","Download Order Days Range","inputType","input",3,"inputValue"],[1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/users/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[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"]],template:function(o,n){if(o&1&&(q(0),_(1,"async"),a(2,"mainpanel",0)(3,"actions")(4,"div",1),m(5,Se,2,1,"ng-container",2)(6,Te,4,3,"ng-container",2),l()(),a(7,"content")(8,"div",3)(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"h3"),s(14,"User Information"),l()(),a(15,"div",8)(16,"div",9)(17,"div",10)(18,"div",11)(19,"label"),s(20,"Selected User"),l(),a(21,"div")(22,"span"),s(23),l()()()(),a(24,"div",10)(25,"div",11)(26,"label"),s(27,"Selected Group"),l(),a(28,"div")(29,"span"),s(30),l()()()()()()()()(),a(31,"div",9)(32,"div",5)(33,"ul",12)(34,"li",13)(35,"button",14),s(36," Channels Filter "),l()(),a(37,"li",13)(38,"button",15),s(39," Restriction "),l()()(),a(40,"div",16)(41,"div",17)(42,"div",18)(43,"div",19),m(44,Ue,2,0,"div",20)(45,Ee,2,0),l(),a(46,"div",21)(47,"div",9)(48,"div",10),u(49,"lib-info-page-input",22),l()()()()()()()()()()()),o&2){let i=$(y(1,9,n.userLoader$));r(2),p("headerTitle",(i==null||i.selectedUser==null?null:i.selectedUser.Name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),r(3),p("ngxPermissionsOnly",n.userDeleteRole),r(),p("ngxPermissionsOnly",n.userEditRole),r(17),h(i==null||i.selectedUser==null?null:i.selectedUser.Name),r(7),h(i==null||i.selectedGroup==null?null:i.selectedGroup.Name),r(14),T((i==null||i.selectedChannels==null?null:i.selectedChannels.length)===0?44:45),r(5),p("inputValue",i==null?null:i.DownloadOrderDaysRange)}},dependencies:[P,W,ue,me,ie,ne,te,fe,se,le,ve],styles:[".nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:focus, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:focus{background-color:#fff!important;border-color:#dee2e6 #dee2e6 #fff}"]})}}return t})();export{ot as UserInfoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as ie,c as le}from"./chunk-PW42BQIY.js";import{b as ae,e as re}from"./chunk-JXSBFTQM.js";import{b as M,c as W,i as me,j as _,k as S}from"./chunk-CLER2MX6.js";import{c as T,e as K,h as R,i as Z,j as x,l as N,m as k,n as $,q as ee,s as te,w as ne,y as oe}from"./chunk-6QYD6NIJ.js";import{d as F,f as Q,g as X}from"./chunk-M2FCTYGU.js";import{Fc as A,Gb as y,Gc as r,Hc as P,Ic as Y,Kc as b,Lc as w,Mb as f,Mc as D,Sc as U,Tc as J,Yb as p,dc as h,ic as i,jc as l,kc as V,oc as I,pb as z,rb as a,tc as v,uc as L,xb as C,ya as c,za as g}from"./chunk-B7KTCPKC.js";function pe(t,u){if(t&1&&(i(0,"tr")(1,"td")(2,"a",11),V(3,"img",12),i(4,"span"),r(5),l()()(),i(6,"td"),r(7),l(),i(8,"td"),r(9),l()()),t&2){let n=u.$implicit;a(2),p("href","/menu/channel/marketplace/view?ID="+n.Key.ID,z),a(),p("src",n.Logo,z),a(2),P(n.Key.Name),a(2),P(n.Value.Out),a(2),P(n.Value.Tg)}}var We=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o,this.generateChannelName(),this.channels=this.setChannelLogo(o.channels)}ngOnInit(){this.modalConfig=new _,this.modalConfig.title="Channel - New Order Configuration is not Unique!",this.modalConfig.headerType=me.Warning,this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="500px",this.modalConfig.bodyScrollable=!0,this.modalConfig.hideClose=!0}setChannelLogo(n){return n.map(o=>(o.Logo=le.getChannelLogoByTypeId(o.Key.TypeID),o))}generateChannelName(){this.channelNames="";let n=this.data.channels;n.forEach((o,e)=>{this.channelNames+=`${o.Key} ${e!=n.length-1?" + ":""}`})}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-channel-warning"]],standalone:!1,decls:24,vars:2,consts:[[3,"onCancel","onClose","config"],["content","",1,"pt-2","px-4"],[1,"row"],[1,"col-12"],[1,"lh-base","fs-5"],[1,"mb-4"],[1,"table","table-bordered"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"fs-5","mt-4"],["href","https://support.dealpos.com/en/articles/8281096-setup-multiple-channel-marketplace-to-one-warehouse-outlet","target","_blank"],["target","_blank",3,"href"],[1,"me-3",2,"width","24px",3,"src"]],template:function(o,e){o&1&&(i(0,"modal-material",0),v("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),i(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),r(5,"When your order configuration is not unique, your Dashboard Sales Report will be invalid. You can use either Outlet or Order Tag to differentiate Channel Order. "),l(),i(6,"h5",5),r(7,"Your duplicate Channels are"),l(),i(8,"table",6)(9,"thead")(10,"tr",7)(11,"th"),r(12,"Channel"),l(),i(13,"th"),r(14,"Outlet"),l(),i(15,"th"),r(16,"Tag"),l()()(),i(17,"tbody"),f(18,pe,10,5,"tr",8),l()(),i(19,"p",9),r(20," Please refer to this "),i(21,"a",10),r(22,"article"),l(),r(23," for more information "),l()()()()()),o&2&&(p("config",e.modalConfig),a(18),p("ngForOf",e.channels))},dependencies:[Q,S],encapsulation:2})}}return t})();var Ke=(()=>{class t{constructor(n,o,e){this.dialogRef=n,this.httpService=o,this.toastr=e,this.modalConfig=new _,this.modalConfig.title="Write Off Reason"}onSubmit(){let n={Name:this.reason};this.subscription=this.httpService.post("/api/channel/AddWriteoffOption",n).subscribe(o=>{this.toastr.success(o.Message,"Success"),this.dialogRef.close(n)})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(re),C(ae))}}static{this.\u0275cmp=y({type:t,selectors:[["app-dialog-writeOff-reason"]],standalone:!1,decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","writeOffReason","placeholder","Write Off Reason","name","writeOffReason",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(o,e){if(o&1){let m=I();i(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.reason,s)||(e.reason=s),g(s)}),l(),i(5,"label",5),r(6,"Reason"),l()()()()}o&2&&(p("dynamicValidated",e.reason)("config",e.modalConfig),a(3),b("ngModel",e.reason))},dependencies:[T,R,k,S],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]})}}return t})();var ue=t=>({invalid:t});function fe(t,u){t&1&&(i(0,"small"),r(1," URL is required "),l())}function ce(t,u){if(t&1&&(i(0,"div",13),f(1,fe,2,0,"small",14),l()),t&2){L();let n=A(10);a(),p("ngIf",n.errors.required)}}function ge(t,u){t&1&&(i(0,"small"),r(1," Email is required "),l())}function Ce(t,u){t&1&&(i(0,"small"),r(1," Email is not valid "),l())}function he(t,u){if(t&1&&(i(0,"div",13),f(1,ge,2,0,"small",14)(2,Ce,2,0,"small",14),l()),t&2){L();let n=A(16);a(),p("ngIf",n.errors.required),a(),p("ngIf",n.errors.pattern)}}var Be=(()=>{class t{constructor(n){this.dialogRef=n}ngOnInit(){this.formData={URL:"",Email:""},this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title="Fill data for Customer Support"}onSubmit(n){n!="Enter"&&this.dialogRef.close(this.formData)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M))}}static{this.\u0275cmp=y({type:t,selectors:[["app-contact-support"]],standalone:!1,decls:18,vars:9,consts:[["url","ngModel"],["email","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"mx-4"],["for","customerURL"],[1,"input-group","mb-2"],[1,"input-group-prepend"],["id","tokopediaUrl",1,"border-start-0","rounded-start","input-group-text","pointer-default","bg-light",2,"height","58px",3,"ngClass"],["required","","type","text","id","customerURL","name","customerURL","title","customerURL",1,"form-control","border-start-0","customerUrl",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],["for","customerEmail"],["required","","type","text","id","customerEmail","name","customerEmail","title","customerEmail","pattern","\\b[\\w\\.-]+@[\\w\\.-]+\\.\\w{2,4}\\b",1,"form-control",3,"ngModelChange","ngModel"],[1,"text-danger"],[4,"ngIf"]],template:function(o,e){if(o&1){let m=I();i(0,"modal-material",2),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(s){return c(m),g(e.onSubmit(s))}),i(1,"div",3)(2,"div",4)(3,"label",5),r(4,"Tokopedia URL"),l(),i(5,"div",6)(6,"div",7)(7,"span",8),r(8,"https://tokopedia.com/"),l()(),i(9,"input",9,0),D("ngModelChange",function(s){return c(m),w(e.formData.URL,s)||(e.formData.URL=s),g(s)}),l()(),f(11,ce,2,1,"div",10),i(12,"label",11),r(13,"Requester's Email"),l(),i(14,"div",6)(15,"input",12,1),D("ngModelChange",function(s){return c(m),w(e.formData.Email,s)||(e.formData.Email=s),g(s)}),l()(),f(17,he,3,2,"div",10),l()()()}if(o&2){let m=A(10),d=A(16);p("dynamicValidated",!m.invalid&&!d.invalid)("config",e.modalConfig),a(7),p("ngClass",U(7,ue,m.invalid&&(m.dirty||m.touched))),a(2),b("ngModel",e.formData.URL),a(2),p("ngIf",m.invalid&&(m.dirty||m.touched)),a(4),b("ngModel",e.formData.Email),a(2),p("ngIf",d.invalid&&(d.dirty||d.touched))}},dependencies:[F,X,T,R,ne,oe,k,S],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.input-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-radius:.25rem!important;border-color:#c8d3df}.input-group[_ngcontent-%COMP%] > input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#fb404b}.input-group[_ngcontent-%COMP%] > input.customerUrl[_ngcontent-%COMP%]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.invalid[_ngcontent-%COMP%]{border-color:#fb404b}.pointer-default[_ngcontent-%COMP%]{cursor:default}"]})}}return t})();var Je=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data?.title,this.modalConfig.okText="SAVE"}onSubmit(){this.dialogRef.close(this.shopID)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-dialog-tokopedia"]],standalone:!1,decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","shopid","placeholder","Shop ID","name","ShopID","data-toggle","tooltip","title","Channel Name",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(o,e){if(o&1){let m=I();i(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.shopID,s)||(e.shopID=s),g(s)}),l(),i(5,"label",5),r(6,"Shop ID"),l()()()()}o&2&&(p("dynamicValidated",e.shopID)("config",e.modalConfig),a(3),b("ngModel",e.shopID))},dependencies:[T,R,k,S],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]})}}return t})();var _e=t=>({"input-group":t}),ye=(t,u)=>({"is-invalid":t,"input-shopify rounded-start":u}),se=t=>({"is-invalid":t});function ve(t,u){t&1&&(i(0,"label",3),r(1,"Shopify URL"),l())}function Me(t,u){t&1&&(i(0,"label",3),r(1,"URL"),l())}function Se(t,u){t&1&&(i(0,"span",6),r(1,"myshopify.com"),l())}function Te(t,u){if(t&1&&(i(0,"div"),r(1),l()),t&2){let n=L(2);a(),Y("",n.data==null?null:n.data.title," url is required")}}function Re(t,u){if(t&1&&(i(0,"div",7),f(1,Te,2,1,"div"),l()),t&2){let n,o=L();a(),h(!(o.formGroup==null||(n=o.formGroup.get("URL"))==null)&&n.getError("required")?1:-1)}}function be(t,u){t&1&&r(0," API Key ")}function we(t,u){t&1&&r(0," Consumer Key ")}function De(t,u){t&1&&(r(0," ("),i(1,"a",11),r(2,"help center article"),l(),r(3,") "))}function Ee(t,u){t&1&&(i(0,"div",7),r(1,"API Key is required"),l())}function Oe(t,u){t&1&&r(0," Admin API Access Token ")}function Ge(t,u){t&1&&r(0," Consumer Secret ")}function Ve(t,u){t&1&&(i(0,"div",7),r(1,"Consumer Secret is required"),l())}var et=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o,this.modalConfig=new _,this.urlCtrl=new N(null),this.channelType=ie}ngOnInit(){this.initModalConfig(),this.initFormGroup()}initFormGroup(){let n=[K.required];this.formGroup=new x({URL:new N(null,n),ConsumerKey:new N(null,[K.required]),ConsumerSecret:new N(null,[K.required])})}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data.title,this.modalConfig.okText="SAVE"}onClose(){this.dialogRef.close()}onSubmit(){this.formGroup.markAllAsTouched();let n=this.formGroup?.get("URL")?.getError("pattern"),o=this.formGroup?.get("ConsumerKey")?.valid,e=this.formGroup?.get("ConsumerSecret")?.valid;if(this.formGroup?.valid||n&&o&&e){let d=this.formGroup.value;d=this.trimShopifyUrl(d),this.dialogRef.close(d)}}trimShopifyUrl(n){if(this.data?.channelType==this.channelType.Shopify){let o=n.URL?.trim()||"";o=o.replace(/^https?:\/\//,""),o.includes(".myshopify.com")||(o=`${o}.myshopify.com`),n.URL=o}return n}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-register-channel"]],standalone:!1,decls:23,vars:27,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],["for","shopid",1,"form-label","fw-bold","mb-2"],[1,"mb-8","has-validation",3,"ngClass"],["type","text","id","shopid","name","URL","title","URL","formControlName","URL",1,"form-control","form-input","rounded",3,"placeholder","ngClass"],["id","basic-addon2",1,"input-group-text","rounded-end","form-input","text-secondary"],[1,"invalid-feedback"],[1,"mb-8","has-validation"],["type","text","id","ConsumerKey","name","ConsumerKey","title","ConsumerKey","formControlName","ConsumerKey",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["type","text","id","ConsumerSecret","name","ConsumerSecret","title","ConsumerSecret","formControlName","ConsumerSecret",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["target","_blank","href","https://support.dealpos.com/en/articles/9525716-shopify-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"]],template:function(o,e){if(o&1&&(i(0,"modal-material",0),v("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),i(1,"div",1)(2,"form",2),f(3,ve,2,0,"label",3),i(4,"div",4),f(5,Me,2,0,"label",3),V(6,"input",5),f(7,Se,2,0,"span",6)(8,Re,2,1,"div",7),l(),i(9,"div",8)(10,"label",3)(11,"span"),f(12,be,1,0)(13,we,1,0),l(),f(14,De,4,0),l(),V(15,"input",9),f(16,Ee,2,0,"div",7),l(),i(17,"div",8)(18,"label",3),f(19,Oe,1,0)(20,Ge,1,0),l(),V(21,"input",10),f(22,Ve,2,0,"div",7),l()()()()),o&2){let m,d,s,E,O,G;p("config",e.modalConfig),a(2),p("formGroup",e.formGroup),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?3:-1),a(),p("ngClass",U(18,_e,(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)!=e.channelType.Shopify?5:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[ex: brand.myshopify.com]":"https://mydomain.com/")("ngClass",J(20,ye,(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.invalid)&&((e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.dirty)||(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.touched)),(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?7:-1),a(),h(!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.invalid&&(!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.dirty||!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.touched)?8:-1),a(4),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?12:13),a(2),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?14:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[Create an app and copy the API Key]":"[Create an app and copy the Consumer Key]")("ngClass",U(23,se,(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.invalid)&&((e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.dirty)||(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.touched)))),a(),h(!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.getError("required")&&(!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.dirty||!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.touched)?16:-1),a(3),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?19:20),a(2),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[shpat***************************]":"cs_***************")("ngClass",U(25,se,(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.invalid)&&((e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.dirty)||(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.touched)))),a(),h(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.getError("required")&&(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.dirty||!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.touched)?22:-1)}},dependencies:[F,$,T,R,Z,S,ee,te],styles:[".input-shopify[_ngcontent-%COMP%]{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.form-input[_ngcontent-%COMP%]{min-height:3.625rem}"]})}}return t})();export{We as a,Ke as b,Be as c,Je as d,et as e};
|
|
1
|
+
import{b as ae,e as re}from"./chunk-JXSBFTQM.js";import{b as ie,c as le}from"./chunk-PW42BQIY.js";import{b as M,c as W,i as me,j as _,k as S}from"./chunk-UGVEAL7H.js";import{c as T,e as K,h as R,i as Z,j as x,l as N,m as k,n as $,q as ee,s as te,w as ne,y as oe}from"./chunk-6QYD6NIJ.js";import{d as F,f as Q,g as X}from"./chunk-M2FCTYGU.js";import{Fc as A,Gb as y,Gc as r,Hc as P,Ic as Y,Kc as b,Lc as w,Mb as f,Mc as D,Sc as U,Tc as J,Yb as p,dc as h,ic as i,jc as l,kc as V,oc as I,pb as z,rb as a,tc as v,uc as L,xb as C,ya as c,za as g}from"./chunk-B7KTCPKC.js";function pe(t,u){if(t&1&&(i(0,"tr")(1,"td")(2,"a",11),V(3,"img",12),i(4,"span"),r(5),l()()(),i(6,"td"),r(7),l(),i(8,"td"),r(9),l()()),t&2){let n=u.$implicit;a(2),p("href","/menu/channel/marketplace/view?ID="+n.Key.ID,z),a(),p("src",n.Logo,z),a(2),P(n.Key.Name),a(2),P(n.Value.Out),a(2),P(n.Value.Tg)}}var We=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o,this.generateChannelName(),this.channels=this.setChannelLogo(o.channels)}ngOnInit(){this.modalConfig=new _,this.modalConfig.title="Channel - New Order Configuration is not Unique!",this.modalConfig.headerType=me.Warning,this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="500px",this.modalConfig.bodyScrollable=!0,this.modalConfig.hideClose=!0}setChannelLogo(n){return n.map(o=>(o.Logo=le.getChannelLogoByTypeId(o.Key.TypeID),o))}generateChannelName(){this.channelNames="";let n=this.data.channels;n.forEach((o,e)=>{this.channelNames+=`${o.Key} ${e!=n.length-1?" + ":""}`})}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-channel-warning"]],standalone:!1,decls:24,vars:2,consts:[[3,"onCancel","onClose","config"],["content","",1,"pt-2","px-4"],[1,"row"],[1,"col-12"],[1,"lh-base","fs-5"],[1,"mb-4"],[1,"table","table-bordered"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"fs-5","mt-4"],["href","https://support.dealpos.com/en/articles/8281096-setup-multiple-channel-marketplace-to-one-warehouse-outlet","target","_blank"],["target","_blank",3,"href"],[1,"me-3",2,"width","24px",3,"src"]],template:function(o,e){o&1&&(i(0,"modal-material",0),v("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),i(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),r(5,"When your order configuration is not unique, your Dashboard Sales Report will be invalid. You can use either Outlet or Order Tag to differentiate Channel Order. "),l(),i(6,"h5",5),r(7,"Your duplicate Channels are"),l(),i(8,"table",6)(9,"thead")(10,"tr",7)(11,"th"),r(12,"Channel"),l(),i(13,"th"),r(14,"Outlet"),l(),i(15,"th"),r(16,"Tag"),l()()(),i(17,"tbody"),f(18,pe,10,5,"tr",8),l()(),i(19,"p",9),r(20," Please refer to this "),i(21,"a",10),r(22,"article"),l(),r(23," for more information "),l()()()()()),o&2&&(p("config",e.modalConfig),a(18),p("ngForOf",e.channels))},dependencies:[Q,S],encapsulation:2})}}return t})();var Ke=(()=>{class t{constructor(n,o,e){this.dialogRef=n,this.httpService=o,this.toastr=e,this.modalConfig=new _,this.modalConfig.title="Write Off Reason"}onSubmit(){let n={Name:this.reason};this.subscription=this.httpService.post("/api/channel/AddWriteoffOption",n).subscribe(o=>{this.toastr.success(o.Message,"Success"),this.dialogRef.close(n)})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(re),C(ae))}}static{this.\u0275cmp=y({type:t,selectors:[["app-dialog-writeOff-reason"]],standalone:!1,decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","writeOffReason","placeholder","Write Off Reason","name","writeOffReason",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(o,e){if(o&1){let m=I();i(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.reason,s)||(e.reason=s),g(s)}),l(),i(5,"label",5),r(6,"Reason"),l()()()()}o&2&&(p("dynamicValidated",e.reason)("config",e.modalConfig),a(3),b("ngModel",e.reason))},dependencies:[T,R,k,S],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]})}}return t})();var ue=t=>({invalid:t});function fe(t,u){t&1&&(i(0,"small"),r(1," URL is required "),l())}function ce(t,u){if(t&1&&(i(0,"div",13),f(1,fe,2,0,"small",14),l()),t&2){L();let n=A(10);a(),p("ngIf",n.errors.required)}}function ge(t,u){t&1&&(i(0,"small"),r(1," Email is required "),l())}function Ce(t,u){t&1&&(i(0,"small"),r(1," Email is not valid "),l())}function he(t,u){if(t&1&&(i(0,"div",13),f(1,ge,2,0,"small",14)(2,Ce,2,0,"small",14),l()),t&2){L();let n=A(16);a(),p("ngIf",n.errors.required),a(),p("ngIf",n.errors.pattern)}}var Be=(()=>{class t{constructor(n){this.dialogRef=n}ngOnInit(){this.formData={URL:"",Email:""},this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title="Fill data for Customer Support"}onSubmit(n){n!="Enter"&&this.dialogRef.close(this.formData)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M))}}static{this.\u0275cmp=y({type:t,selectors:[["app-contact-support"]],standalone:!1,decls:18,vars:9,consts:[["url","ngModel"],["email","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"mx-4"],["for","customerURL"],[1,"input-group","mb-2"],[1,"input-group-prepend"],["id","tokopediaUrl",1,"border-start-0","rounded-start","input-group-text","pointer-default","bg-light",2,"height","58px",3,"ngClass"],["required","","type","text","id","customerURL","name","customerURL","title","customerURL",1,"form-control","border-start-0","customerUrl",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],["for","customerEmail"],["required","","type","text","id","customerEmail","name","customerEmail","title","customerEmail","pattern","\\b[\\w\\.-]+@[\\w\\.-]+\\.\\w{2,4}\\b",1,"form-control",3,"ngModelChange","ngModel"],[1,"text-danger"],[4,"ngIf"]],template:function(o,e){if(o&1){let m=I();i(0,"modal-material",2),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(s){return c(m),g(e.onSubmit(s))}),i(1,"div",3)(2,"div",4)(3,"label",5),r(4,"Tokopedia URL"),l(),i(5,"div",6)(6,"div",7)(7,"span",8),r(8,"https://tokopedia.com/"),l()(),i(9,"input",9,0),D("ngModelChange",function(s){return c(m),w(e.formData.URL,s)||(e.formData.URL=s),g(s)}),l()(),f(11,ce,2,1,"div",10),i(12,"label",11),r(13,"Requester's Email"),l(),i(14,"div",6)(15,"input",12,1),D("ngModelChange",function(s){return c(m),w(e.formData.Email,s)||(e.formData.Email=s),g(s)}),l()(),f(17,he,3,2,"div",10),l()()()}if(o&2){let m=A(10),d=A(16);p("dynamicValidated",!m.invalid&&!d.invalid)("config",e.modalConfig),a(7),p("ngClass",U(7,ue,m.invalid&&(m.dirty||m.touched))),a(2),b("ngModel",e.formData.URL),a(2),p("ngIf",m.invalid&&(m.dirty||m.touched)),a(4),b("ngModel",e.formData.Email),a(2),p("ngIf",d.invalid&&(d.dirty||d.touched))}},dependencies:[F,X,T,R,ne,oe,k,S],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.input-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-radius:.25rem!important;border-color:#c8d3df}.input-group[_ngcontent-%COMP%] > input.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#fb404b}.input-group[_ngcontent-%COMP%] > input.customerUrl[_ngcontent-%COMP%]{border-top-left-radius:0!important;border-bottom-left-radius:0!important}.invalid[_ngcontent-%COMP%]{border-color:#fb404b}.pointer-default[_ngcontent-%COMP%]{cursor:default}"]})}}return t})();var Je=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data?.title,this.modalConfig.okText="SAVE"}onSubmit(){this.dialogRef.close(this.shopID)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-dialog-tokopedia"]],standalone:!1,decls:7,vars:3,consts:[["name","ngModel"],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group"],["type","text","id","shopid","placeholder","Shop ID","name","ShopID","data-toggle","tooltip","title","Channel Name",1,"form-control",3,"ngModelChange","ngModel"],["for","shopid"]],template:function(o,e){if(o&1){let m=I();i(0,"modal-material",1),v("onClose",function(){return c(m),g(e.onClose())})("onCancel",function(){return c(m),g(e.onClose())})("onOk",function(){return c(m),g(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),D("ngModelChange",function(s){return c(m),w(e.shopID,s)||(e.shopID=s),g(s)}),l(),i(5,"label",5),r(6,"Shop ID"),l()()()()}o&2&&(p("dynamicValidated",e.shopID)("config",e.modalConfig),a(3),b("ngModel",e.shopID))},dependencies:[T,R,k,S],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]})}}return t})();var _e=t=>({"input-group":t}),ye=(t,u)=>({"is-invalid":t,"input-shopify rounded-start":u}),se=t=>({"is-invalid":t});function ve(t,u){t&1&&(i(0,"label",3),r(1,"Shopify URL"),l())}function Me(t,u){t&1&&(i(0,"label",3),r(1,"URL"),l())}function Se(t,u){t&1&&(i(0,"span",6),r(1,"myshopify.com"),l())}function Te(t,u){if(t&1&&(i(0,"div"),r(1),l()),t&2){let n=L(2);a(),Y("",n.data==null?null:n.data.title," url is required")}}function Re(t,u){if(t&1&&(i(0,"div",7),f(1,Te,2,1,"div"),l()),t&2){let n,o=L();a(),h(!(o.formGroup==null||(n=o.formGroup.get("URL"))==null)&&n.getError("required")?1:-1)}}function be(t,u){t&1&&r(0," API Key ")}function we(t,u){t&1&&r(0," Consumer Key ")}function De(t,u){t&1&&(r(0," ("),i(1,"a",11),r(2,"help center article"),l(),r(3,") "))}function Ee(t,u){t&1&&(i(0,"div",7),r(1,"API Key is required"),l())}function Oe(t,u){t&1&&r(0," Admin API Access Token ")}function Ge(t,u){t&1&&r(0," Consumer Secret ")}function Ve(t,u){t&1&&(i(0,"div",7),r(1,"Consumer Secret is required"),l())}var et=(()=>{class t{constructor(n,o){this.dialogRef=n,this.data=o,this.modalConfig=new _,this.urlCtrl=new N(null),this.channelType=ie}ngOnInit(){this.initModalConfig(),this.initFormGroup()}initFormGroup(){let n=[K.required];this.formGroup=new x({URL:new N(null,n),ConsumerKey:new N(null,[K.required]),ConsumerSecret:new N(null,[K.required])})}initModalConfig(){this.modalConfig=new _,this.modalConfig.title=this.data.title,this.modalConfig.okText="SAVE"}onClose(){this.dialogRef.close()}onSubmit(){this.formGroup.markAllAsTouched();let n=this.formGroup?.get("URL")?.getError("pattern"),o=this.formGroup?.get("ConsumerKey")?.valid,e=this.formGroup?.get("ConsumerSecret")?.valid;if(this.formGroup?.valid||n&&o&&e){let d=this.formGroup.value;d=this.trimShopifyUrl(d),this.dialogRef.close(d)}}trimShopifyUrl(n){if(this.data?.channelType==this.channelType.Shopify){let o=n.URL?.trim()||"";o=o.replace(/^https?:\/\//,""),o.includes(".myshopify.com")||(o=`${o}.myshopify.com`),n.URL=o}return n}static{this.\u0275fac=function(o){return new(o||t)(C(M),C(W))}}static{this.\u0275cmp=y({type:t,selectors:[["app-modal-register-channel"]],standalone:!1,decls:23,vars:27,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[3,"formGroup"],["for","shopid",1,"form-label","fw-bold","mb-2"],[1,"mb-8","has-validation",3,"ngClass"],["type","text","id","shopid","name","URL","title","URL","formControlName","URL",1,"form-control","form-input","rounded",3,"placeholder","ngClass"],["id","basic-addon2",1,"input-group-text","rounded-end","form-input","text-secondary"],[1,"invalid-feedback"],[1,"mb-8","has-validation"],["type","text","id","ConsumerKey","name","ConsumerKey","title","ConsumerKey","formControlName","ConsumerKey",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["type","text","id","ConsumerSecret","name","ConsumerSecret","title","ConsumerSecret","formControlName","ConsumerSecret",1,"form-control","rounded","form-input",3,"placeholder","ngClass"],["target","_blank","href","https://support.dealpos.com/en/articles/9525716-shopify-authorization-at-dealpos-apps",1,"button","text-primary","fw-bold"]],template:function(o,e){if(o&1&&(i(0,"modal-material",0),v("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),i(1,"div",1)(2,"form",2),f(3,ve,2,0,"label",3),i(4,"div",4),f(5,Me,2,0,"label",3),V(6,"input",5),f(7,Se,2,0,"span",6)(8,Re,2,1,"div",7),l(),i(9,"div",8)(10,"label",3)(11,"span"),f(12,be,1,0)(13,we,1,0),l(),f(14,De,4,0),l(),V(15,"input",9),f(16,Ee,2,0,"div",7),l(),i(17,"div",8)(18,"label",3),f(19,Oe,1,0)(20,Ge,1,0),l(),V(21,"input",10),f(22,Ve,2,0,"div",7),l()()()()),o&2){let m,d,s,E,O,G;p("config",e.modalConfig),a(2),p("formGroup",e.formGroup),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?3:-1),a(),p("ngClass",U(18,_e,(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)!=e.channelType.Shopify?5:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[ex: brand.myshopify.com]":"https://mydomain.com/")("ngClass",J(20,ye,(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.invalid)&&((e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.dirty)||(e.formGroup==null||(m=e.formGroup.get("URL"))==null?null:m.touched)),(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),a(),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?7:-1),a(),h(!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.invalid&&(!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.dirty||!(e.formGroup==null||(d=e.formGroup.get("URL"))==null)&&d.touched)?8:-1),a(4),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?12:13),a(2),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?14:-1),a(),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[Create an app and copy the API Key]":"[Create an app and copy the Consumer Key]")("ngClass",U(23,se,(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.invalid)&&((e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.dirty)||(e.formGroup==null||(s=e.formGroup.get("ConsumerKey"))==null?null:s.touched)))),a(),h(!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.getError("required")&&(!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.dirty||!(e.formGroup==null||(E=e.formGroup.get("ConsumerKey"))==null)&&E.touched)?16:-1),a(3),h((e.data==null?null:e.data.channelType)==e.channelType.Shopify?19:20),a(2),p("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[shpat***************************]":"cs_***************")("ngClass",U(25,se,(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.invalid)&&((e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.dirty)||(e.formGroup==null||(O=e.formGroup.get("ConsumerSecret"))==null?null:O.touched)))),a(),h(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.getError("required")&&(!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.dirty||!(e.formGroup==null||(G=e.formGroup.get("ConsumerSecret"))==null)&&G.touched)?22:-1)}},dependencies:[F,$,T,R,Z,S,ee,te],styles:[".input-shopify[_ngcontent-%COMP%]{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.form-input[_ngcontent-%COMP%]{min-height:3.625rem}"]})}}return t})();export{We as a,Ke as b,Be as c,Je as d,et as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as me,b as de,c as se}from"./chunk-V5BKQSAT.js";import{a as ue,b as T}from"./chunk-K77RTNG2.js";import{a as pe}from"./chunk-2ODVHD2K.js";import{a as ae}from"./chunk-EPVCMYCI.js";import"./chunk-DL66NZ2A.js";import"./chunk-L3FX4O3H.js";import"./chunk-PNITO7BE.js";import"./chunk-E4KNET2R.js";import"./chunk-74IXJYWO.js";import"./chunk-GIRXMYNI.js";import"./chunk-IIZDEGGW.js";import"./chunk-AQTXFEBA.js";import"./chunk-SDUUFQUI.js";import"./chunk-5OHRA4AS.js";import"./chunk-IL5JIRWJ.js";import"./chunk-MH4SJTQX.js";import"./chunk-3RK6DDJD.js";import"./chunk-CUB2QFUO.js";import"./chunk-KALG6D6L.js";import"./chunk-CMTBBXR5.js";import{a as le}from"./chunk-NOP5P5R5.js";import{a as oe}from"./chunk-D6URDVES.js";import"./chunk-XHYJOIC5.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-AEOSNAHH.js";import"./chunk-TGMCGROM.js";import"./chunk-KMJM6UVY.js";import"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import"./chunk-5JVEEL2T.js";import"./chunk-PW42BQIY.js";import{m as ne,n as re}from"./chunk-UGVEAL7H.js";import{A as ee,c as X,h as Y,m as Z,o as $}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-SWQXSJ7O.js";import{r as te,s as ie}from"./chunk-IHNN4Q2N.js";import"./chunk-EQIFZBRG.js";import{j as G,k as J,m as K,n as Q}from"./chunk-M2FCTYGU.js";import{$c as w,Gb as W,Gc as l,Hc as v,Ic as b,Kc as h,Lc as f,Mb as y,Mc as g,Nc as z,Oc as A,Pc as R,Qc as H,Ra as N,Rc as j,Sc as U,Yb as u,ac as I,ad as E,bd as q,dc as x,ec as D,gc as B,hc as k,ic as t,jc as i,kc as c,oc as V,pa as O,pb as F,rb as a,tc as M,uc as _,ya as m,za as d}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as P,b as L}from"./chunk-66YHNWRR.js";var ce=()=>[],_e=r=>({"td-cell-hover":r});function he(r,S){if(r&1&&c(0,"variants-dropdown",29),r&2){let e=_().$implicit;u("variants",e==null?null:e.Variants)}}function fe(r,S){if(r&1&&c(0,"variant-with-image",30),r&2){let e=_().$implicit;u("variant",e==null?null:e.Variants[0])}}function ge(r,S){if(r&1&&(t(0,"span"),l(1),i()),r&2){let e=_().$implicit;a(),b("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Se(r,S){if(r&1&&(t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"div",25)(5,"div",26)(6,"div"),c(7,"img",27),w(8,"channelImage"),i(),t(9,"div"),c(10,"order-link",28),i()(),t(11,"small"),l(12),w(13,"date"),i()()(),t(14,"td"),l(15),i(),t(16,"td"),y(17,he,1,1,"variants-dropdown",29)(18,fe,1,1,"variant-with-image",30),i(),t(19,"td",31),l(20),w(21,"number"),i(),t(22,"td")(23,"div",25)(24,"div",26)(25,"span"),l(26),i(),y(27,ge,2,1,"span"),i(),t(28,"small"),l(29),i()()()()),r&2){let e=S.$implicit;a(2),v(e.Outlet),a(5),u("src",E(8,13,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(3),u("order",e),a(2),b(" ",q(13,15,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(3),v(e.Customer),a(),I(U(20,_e,(e.Variants==null?null:e.Variants.length)>1)),a(),x((e.Variants==null?null:e.Variants.length)>1?17:18),a(3),v(E(21,18,e.Amount)),a(6),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),x(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?27:-1),a(2),b(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function Ce(r,S){if(r&1){let e=V();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Outlet"),i(),t(6,"th",21),l(7,"Number"),i(),t(8,"th",21),l(9,"Customer"),i(),t(10,"th"),l(11,"Items"),i(),t(12,"th",22),l(13,"Amount"),i(),t(14,"th",23),l(15,"Shipping"),i()()(),t(16,"tbody"),B(17,Se,30,22,"tr",null,D),i()(),t(19,"app-custom-paginator",24),M("next",function(){m(e);let n=_();return d(n.initShippedOrders())})("previous",function(){m(e);let n=_();return d(n.initShippedOrders())}),i()()}if(r&2){let e=_(),p=R(0);a(17),k(p),a(2),u("filter",e.filter())("totaldata",p==null?null:p.length)}}function ve(r,S){r&1&&(t(0,"div",16),c(1,"app-empty-state"),i())}var He=(()=>{class r{constructor(){this.orderService=O(T),this.filter=N({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){let e=this.orderService.getOrderDefaultValue();this.filter.update(p=>L(P({},p),{From:e})),this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.orderService.getShippedOrders(this.filter())}static{this.\u0275fac=function(p){return new(p||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-shipped"]],features:[H([T])],decls:34,vars:12,consts:[["headerTitle","Shipped","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[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,n){if(p&1){let s=V();z(0),w(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return m(s),d(n.initShippedOrders())}),g("textChange",function(o){return m(s),f(n.filter().Number,o)||(n.filter().Number=o),d(o)}),t(3,"actions")(4,"a",1),c(5,"i",2),t(6,"span"),l(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),l(11,"From/To"),i(),t(12,"channel-select-options",4),g("ngModelChange",function(o){return m(s),f(n.filter().ListChannelID,o)||(n.filter().ListChannelID=o),d(o)}),i()(),t(13,"div",5)(14,"label",3),l(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),g("dateChange",function(o){return m(s),f(n.filter().From,o)||(n.filter().From=o),d(o)}),i()(),t(18,"div")(19,"datepicker",8),g("dateChange",function(o){return m(s),f(n.filter().To,o)||(n.filter().To=o),d(o)}),i()()(),t(20,"div",5)(21,"label",9),l(22,"Page Number"),i(),t(23,"input",10),g("ngModelChange",function(o){return m(s),f(n.filter().PageNumber,o)||(n.filter().PageNumber=o),d(o)}),i()(),t(24,"div",5)(25,"label",9),l(26,"Page Size"),i(),t(27,"input",11),g("ngModelChange",function(o){return m(s),f(n.filter().PageSize,o)||(n.filter().PageSize=o),d(o)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,Ce,20,2,"div",15)(33,ve,2,0,"div",16),i()()()()()}if(p&2){let s=A(E(1,8,n.shippedOrders$)||j(11,ce));a(2),h("text",n.filter().Number),a(10),u("multiple",!0),h("ngModel",n.filter().ListChannelID),a(5),h("date",n.filter().From),a(2),h("date",n.filter().To),a(4),h("ngModel",n.filter().PageNumber),a(4),h("ngModel",n.filter().PageSize),a(5),x(s.length>0?32:33)}},dependencies:[Q,G,K,J,re,ne,ae,oe,ee,X,$,Y,Z,me,de,se,pe,le,ie,te,ue],encapsulation:2})}}return r})();export{He as ShippedComponent};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as Ft}from"./chunk-PFB7XEYZ.js";import"./chunk-UEPQYAWE.js";import{a as St}from"./chunk-O5LFGGB2.js";import{a as be,b as ut,c as _t,d as ye,e as ve}from"./chunk-2TRFYYCP.js";import{a as st,b as he,c as mt,d as ge,f as gt,g as Ct,h as Te,i as bt,o as re}from"./chunk-M5JQ7BGW.js";import{b as vt}from"./chunk-7UHCDGAA.js";import{a as ft}from"./chunk-3B2PNJWF.js";import"./chunk-JDIBETL5.js";import{b as ht,d as xe}from"./chunk-L7K5HOBY.js";import{a as Tt,b as It}from"./chunk-BFU7VKO3.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import{b as xt}from"./chunk-OC2FBL33.js";import"./chunk-NS46QSCM.js";import"./chunk-LOBNKJGT.js";import{a as yt}from"./chunk-M5XGP4SG.js";import{a as dt,b as Ce}from"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-SYUFPF3D.js";import"./chunk-5OHRA4AS.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import"./chunk-3BT5DR3X.js";import"./chunk-DRHWRRQV.js";import"./chunk-EH6HWI3G.js";import"./chunk-E3ROEHBW.js";import"./chunk-OLOIQI4D.js";import"./chunk-IA6KOBDJ.js";import"./chunk-RECNBAEB.js";import"./chunk-SN4AOGQK.js";import"./chunk-SB7NWPDS.js";import"./chunk-AYPY47VM.js";import"./chunk-SM3P57SO.js";import"./chunk-3RK6DDJD.js";import{a as fe}from"./chunk-J2KWRDVH.js";import{a as lt,b as ct,f as pt}from"./chunk-7SVF5UPT.js";import"./chunk-UMP6ZMEJ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import{a as rt,b as at}from"./chunk-M7NQID2Z.js";import"./chunk-CMTBBXR5.js";import"./chunk-UG7VRDLB.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-5HO2IJ47.js";import{d as Y,e as j}from"./chunk-5JVEEL2T.js";import{b as et,c as h}from"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import"./chunk-DRMAONR7.js";import"./chunk-AEOSNAHH.js";import{e as oe}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as nt,n as ot}from"./chunk-CLER2MX6.js";import{A as ne,B as G,a as Je,c as ie,e as ue,h as $,i as W,l as _e,m as ze,n as X,q as J,r as Qe,s as z,t as qe,u as Ze,v as Ke,z as Q}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as tt,s as it}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{g as F,j as A,n as x}from"./chunk-M2FCTYGU.js";import{$c as T,Fc as me,Gb as v,Gc as f,Hb as se,Hc as te,Ic as Z,K as Be,Ka as P,Kc as je,Lc as He,M as Re,Mb as _,Mc as We,Oa as ke,Qc as S,Rc as de,Xb as Ge,Yb as c,Z as ee,Zb as Ee,ad as I,ca as $e,dc as k,ea as U,ec as L,f as Ue,g as Le,gc as B,hc as R,ic as p,ja as D,jc as r,jd as Xe,ka as pe,kc as d,lc as w,mc as O,oc as E,pa as u,rb as m,tc as y,uc as a,v as V,xa as N,xb as H,xc as Ye,ya as C,za as b}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var q=function(t){return t[t.SINGLE_DROP_DOWN=1]="SINGLE_DROP_DOWN",t[t.SINGLE_COMBO_BOX=2]="SINGLE_COMBO_BOX",t[t.FREE_TEXT_FILED=3]="FREE_TEXT_FILED",t[t.MULTI_DROP_DOWN=4]="MULTI_DROP_DOWN",t[t.MULTI_COMBO_BOX=5]="MULTI_COMBO_BOX",t}(q||{});var ae=function(t){return t[t.FORMAT_NORMAL=1]="FORMAT_NORMAL",t[t.FORMAT_QUANTITATIVE_WITH_UNIT=2]="FORMAT_QUANTITATIVE_WITH_UNIT",t}(ae||{});var le=function(t){return t[t.VALIDATOR_NO_VALIDATE_TYPE=0]="VALIDATOR_NO_VALIDATE_TYPE",t[t.VALIDATOR_INT_TYPE=1]="VALIDATOR_INT_TYPE",t[t.VALIDATOR_STRING_TYPE=2]="VALIDATOR_STRING_TYPE",t[t.VALIDATOR_FLOAT_TYPE=3]="VALIDATOR_FLOAT_TYPE",t[t.VALIDATOR_DATE_TYPE=4]="VALIDATOR_DATE_TYPE",t}(le||{});var Me=class extends _e{setValue(s,e){if(s instanceof Date){let i=Math.floor(s.getTime()/1e3);super.setValue(i,e)}else super.setValue(s,e)}},De=(()=>{class t{constructor(){this.shopeeUploadService=u(be),this.formBuilder=u(Q)}getAttributes(e){return this.shopeeUploadService.getAttributes(e.channelId,e.categoryId).pipe(V(i=>this.setLabelToIndonesian(i)))}setLabelToIndonesian(e=[]){let i,o;return e=e.map(n=>(i=n?.multi_lang?.find(l=>l.language=="id"),n.attribute_value_list=n?.attribute_value_list?.map(l=>(o=l?.multi_lang?.find(g=>g.language=="id"),l.name=o?.value,l)),n.name=i?.value?i?.value:n.name,n)),e}createFormGroup(e){let i=this.formBuilder.group({}),o=[];return e.forEach(n=>{if(o=[],n.mandatory&&o.push(ue.required),n?.attribute_info?.format_type==ae.FORMAT_QUANTITATIVE_WITH_UNIT&&n?.attribute_info?.input_type==q.FREE_TEXT_FILED){let l=this.formBuilder.group({unit:new _e(null),value:new _e(null,o)});i.addControl(JSON.stringify(n.attribute_id),l)}else n?.attribute_info?.input_type==q.FREE_TEXT_FILED&&n?.attribute_info?.input_validation_type==le.VALIDATOR_DATE_TYPE?i.addControl(JSON.stringify(n.attribute_id),new Me(null,o)):i.addControl(JSON.stringify(n.attribute_id),this.formBuilder.control(null,o))}),i}getFilteredAttributes(e,i){let o=JSON.parse(JSON.stringify(e)),n=Object.keys(i),l=o.filter(g=>n.findIndex(Ae=>parseInt(Ae)==g.attribute_id||g.mandatory)!=-1);return l=this.filterSelectedAttributes(l,i),l}filterSelectedAttributes(e,i){return e.map(n=>{switch(n.attribute_info.input_type){case q.MULTI_COMBO_BOX:h.IsNotEmpty(i[n.attribute_id])?n.attribute_value_list=n.attribute_value_list.filter(l=>i[n.attribute_id]?.findIndex(g=>g==l.value_id)!=-1):n.attribute_value_list=[];break;case q.FREE_TEXT_FILED:n.attribute_info.format_type==ae.FORMAT_QUANTITATIVE_WITH_UNIT?n.attribute_value_list=this.setSelectedQuantitativeAttr(i[n.attribute_id]?.value,i[n.attribute_id]?.unit):n.attribute_info.input_validation_type==le.VALIDATOR_DATE_TYPE?n.attribute_value_list=this.setSelectedDateAttr(i[n.attribute_id]):n.attribute_value_list=this.setSelectedQuantitativeAttr(i[n.attribute_id]);break;default:n.attribute_value_list=n.attribute_value_list.filter(l=>l.value_id==i[n.attribute_id])}return n}).filter(n=>n?.attribute_value_list?.length>0)}setSelectedQuantitativeAttr(e,i){let o=[];if(h.IsNotEmpty(e)){let n={value_id:0,original_value_name:JSON.stringify(e)};h.IsNotEmpty(i)&&(n.value_unit=i),o=[n]}return o}setSelectedDateAttr(e){let i=[];return h.IsNotEmpty(e)&&(i=[{value_id:0,original_value_name:JSON.stringify(e)}]),i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();var Ie=(()=>{class t{constructor(){this._calendarHeaderConfig=new Le({hideBtnClear:!1,hideBtnToday:!1}),this.calendarConfig=this._calendarHeaderConfig.value}setHeaderConfig(e){this._calendarHeaderConfig.next(e)}getHeaderConfig$(){return this._calendarHeaderConfig.asObservable()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Lt=["class","component ts"];function Bt(t,s){if(t&1){let e=E();p(0,"button",3),y("click",function(){C(e);let o=a(2);return b(o.todayClicked())}),d(1,"i",4),r()}}function Rt(t,s){if(t&1){let e=E();p(0,"button",5),y("click",function(){C(e);let o=a(2);return b(o.clearClicked())}),d(1,"i",6),r()}}function $t(t,s){if(t&1&&(w(0),_(1,Bt,2,0,"button",1)(2,Rt,2,0,"button",2),O()),t&2){let e=s.ngIf;m(),c("ngIf",!e.hideBtnToday),m(),c("ngIf",!e.hideBtnClear)}}var kt=(()=>{class t{constructor(e,i,o,n,l){this._datePicker=e,this._calendar=i,this._dateAdapter=o,this.calendarService=n,this._destroyed=new Ue,i.stateChanges.pipe($e(this._destroyed)).subscribe(g=>l.markForCheck()),this.calendarConfig$=this.calendarService.getHeaderConfig$()}todayClicked(){this._calendar.activeDate=this._dateAdapter.today(),this._datePicker.select(this._dateAdapter.today()),this._datePicker.close()}clearClicked(){this._datePicker.select(null),this._datePicker.close()}ngOnChanges(e){this._calendar.ngOnChanges(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}static{this.\u0275fac=function(i){return new(i||t)(H(Te),H(Ct),H(he),H(Ie),H(Xe))}}static{this.\u0275cmp=v({type:t,selectors:[["POS-DatepickerHeader",8,"component","ts"]],standalone:!1,features:[N],attrs:Lt,decls:3,vars:3,consts:[[4,"ngIf"],["mat-icon-button","","title","Today",3,"click",4,"ngIf"],["mat-icon-button","","title","Clear",3,"click",4,"ngIf"],["mat-icon-button","","title","Today",3,"click"],[1,"far","fa-clock",2,"font-size","18px"],["mat-icon-button","","title","Clear",3,"click"],[1,"far","fa-xmark-circle",2,"font-size","18px"]],template:function(i,o){i&1&&(p(0,"mat-calendar-header"),_(1,$t,3,2,"ng-container",0),T(2,"async"),r()),i&2&&(m(),c("ngIf",I(2,1,o.calendarConfig$)))},dependencies:[F,ht,gt,A],encapsulation:2})}}return t})(),Et=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=se({type:t})}static{this.\u0275inj=pe({providers:[re],imports:[x,xe,ge,re,fe,Ce]})}}return t})();function Gt(t,s){if(t&1&&(p(0,"mat-label",7)(1,"span"),f(2),r()()),t&2){let e=a();c("show",e.placeholder),m(2),te(e.placeholder)}}var Yt={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"dddd, D MMMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"dddd, D MMMM YYYY",monthYearA11yLabel:"MMMM YYYY"}},Mt=(()=>{class t{set hidelClearBtn(e){this.calendarService.setHeaderConfig({hideBtnClear:e,hideBtnToday:this.calendarService.calendarConfig.hideBtnToday})}change(e){let i=null;e&&(i=e.toDate(),i.setHours(0,0,0,0)),this.onChange(i),this.dateChange.emit(i)}constructor(e){this.calendarService=e,this.headerComponent=kt,this.appearance="outline",this.isFloatingLabel=!0,this.disabled=!1,this.readOnly=!1,this.dateChange=new P,this.minDate=h.MinDate,this.onChange=i=>{},this.displayToggle=!0}writeValue(e){this.date=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){this.disabled=e}onOpenDatepicker(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="inside")}}onCloseDatepicker(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="outside")}}ngOnDestroy(){this.calendarService.setHeaderConfig({hideBtnClear:!1,hideBtnToday:!1})}static{this.\u0275fac=function(i){return new(i||t)(H(Ie))}}static{this.\u0275cmp=v({type:t,selectors:[["datepicker"]],inputs:{data_cy:"data_cy",placeholder:"placeholder",displayToggle:"displayToggle",appearance:"appearance",width:"width",isFloatingLabel:"isFloatingLabel",date:"date",disabled:"disabled",readOnly:"readOnly",minDateValidation:"minDateValidation",maxDateValidation:"maxDateValidation",hidelClearBtn:"hidelClearBtn"},outputs:{dateChange:"dateChange"},standalone:!1,features:[S([{provide:he,useClass:St,deps:[st]},{provide:mt,useValue:Yt},{provide:Je,multi:!0,useExisting:t}])],decls:7,vars:16,consts:[["picker1",""],[1,"datepicker",3,"disabled","appearance"],[3,"show",4,"ngIf"],["matInput","",3,"dateChange","click","matDatepicker","min","max","placeholder","value","disabled","readonly"],["matSuffix","","aria-hidden","true",1,"datepicker-toggle-icon",3,"click"],[1,"fa-regular","fa-angle-down"],[3,"opened","closed","calendarHeaderComponent"],[3,"show"]],template:function(i,o){if(i&1){let n=E();p(0,"mat-form-field",1),_(1,Gt,3,2,"mat-label",2),p(2,"input",3),y("dateChange",function(g){return C(n),b(o.change(g.value))})("click",function(){C(n);let g=me(6);return b(g.open())}),r(),p(3,"span",4),y("click",function(){C(n);let g=me(6);return b(g.open())}),d(4,"i",5),r(),p(5,"mat-datepicker",6,0),y("opened",function(){return C(n),b(o.onOpenDatepicker())})("closed",function(){return C(n),b(o.onCloseDatepicker())}),r()()}if(i&2){let n=me(6);Ee("width",o.width||100,"%"),c("disabled",o.disabled)("appearance",o.appearance),m(),c("ngIf",o.isFloatingLabel&&o.placeholder),m(),Ye("placeholder",o.placeholder||""),c("matDatepicker",n)("min",o.minDateValidation)("max",o.maxDateValidation)("value",o.date==o.minDate?null:o.date)("disabled",o.disabled)("readonly",o.readOnly),Ge("data-cy",o.data_cy),m(),Ee("display",o.displayToggle?"unset":"none"),m(2),c("calendarHeaderComponent",o.headerComponent)}},dependencies:[F,Te,bt,pt,lt,ct,dt],styles:[`.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline{background-color:#e9ecef!important;opacity:1!important}.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline input{color:#00000061!important}.datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:3px;padding-top:18px;padding-bottom:13px}.datepicker .mat-mdc-icon-button.mat-mdc-button-base{padding:0}.datepicker .mat-mdc-form-field-subscript-wrapper{display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{padding:0!important}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important;font-size:16px;color:#9da2a6}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:23px!important;font-size:.875rem;color:#ccc}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}.datepicker .datepicker-toggle-icon{width:28px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin-right:6px}.datepicker .datepicker-toggle-icon i{font-family:"Font Awesome 6 Pro","Font Awesome 6 Free","Font Awesome 5 Pro","Font Awesome 5 Free";font-weight:400;font-size:16px;line-height:1;color:#6b7280}
|
|
1
|
+
import{b as Ft}from"./chunk-QJJ2WFVX.js";import"./chunk-UEPQYAWE.js";import{a as St}from"./chunk-DL66NZ2A.js";import{a as be,b as ut,c as _t,d as ye,e as ve}from"./chunk-K5VFEHP7.js";import"./chunk-35XX6SQT.js";import{a as st,b as he,c as mt,d as ge,f as gt,g as Ct,h as Te,i as bt,o as re}from"./chunk-L3FX4O3H.js";import{b as vt}from"./chunk-G7R7LUW4.js";import{a as ft}from"./chunk-CCWNSX4Y.js";import"./chunk-PNITO7BE.js";import{b as ht,d as xe}from"./chunk-E4KNET2R.js";import{a as Tt,b as It}from"./chunk-YM4TJJMM.js";import"./chunk-74IXJYWO.js";import"./chunk-GIRXMYNI.js";import{b as xt}from"./chunk-OC2FBL33.js";import"./chunk-NS46QSCM.js";import"./chunk-EH6HWI3G.js";import"./chunk-E3ROEHBW.js";import"./chunk-OLOIQI4D.js";import"./chunk-RECNBAEB.js";import"./chunk-IA6KOBDJ.js";import{a as yt}from"./chunk-M5XGP4SG.js";import"./chunk-SN4AOGQK.js";import"./chunk-SB7NWPDS.js";import"./chunk-AYPY47VM.js";import"./chunk-SM3P57SO.js";import"./chunk-F63CEOOT.js";import{a as dt,b as Ce}from"./chunk-IIZDEGGW.js";import"./chunk-AQTXFEBA.js";import"./chunk-SYUFPF3D.js";import"./chunk-SDUUFQUI.js";import"./chunk-5OHRA4AS.js";import"./chunk-IL5JIRWJ.js";import"./chunk-MH4SJTQX.js";import"./chunk-3RK6DDJD.js";import{a as fe}from"./chunk-CUB2QFUO.js";import{a as lt,b as ct,f as pt}from"./chunk-KALG6D6L.js";import"./chunk-UMP6ZMEJ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import{a as rt,b as at}from"./chunk-M7NQID2Z.js";import"./chunk-CMTBBXR5.js";import"./chunk-J5OHT4GM.js";import"./chunk-XHYJOIC5.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-AEOSNAHH.js";import"./chunk-TGMCGROM.js";import"./chunk-KMJM6UVY.js";import{e as oe}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{d as Y,e as j}from"./chunk-5JVEEL2T.js";import{b as et,c as h}from"./chunk-PW42BQIY.js";import{m as nt,n as ot}from"./chunk-UGVEAL7H.js";import{A as ne,B as G,a as Je,c as ie,e as ue,h as $,i as W,l as _e,m as ze,n as X,q as J,r as Qe,s as z,t as qe,u as Ze,v as Ke,z as Q}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-SWQXSJ7O.js";import{r as tt,s as it}from"./chunk-IHNN4Q2N.js";import"./chunk-EQIFZBRG.js";import{g as F,j as A,n as x}from"./chunk-M2FCTYGU.js";import{$c as T,Fc as me,Gb as v,Gc as f,Hb as se,Hc as te,Ic as Z,K as Be,Ka as P,Kc as je,Lc as He,M as Re,Mb as _,Mc as We,Oa as ke,Qc as S,Rc as de,Xb as Ge,Yb as c,Z as ee,Zb as Ee,ad as I,ca as $e,dc as k,ea as U,ec as L,f as Ue,g as Le,gc as B,hc as R,ic as p,ja as D,jc as r,jd as Xe,ka as pe,kc as d,lc as w,mc as O,oc as E,pa as u,rb as m,tc as y,uc as a,v as V,xa as N,xb as H,xc as Ye,ya as C,za as b}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var q=function(t){return t[t.SINGLE_DROP_DOWN=1]="SINGLE_DROP_DOWN",t[t.SINGLE_COMBO_BOX=2]="SINGLE_COMBO_BOX",t[t.FREE_TEXT_FILED=3]="FREE_TEXT_FILED",t[t.MULTI_DROP_DOWN=4]="MULTI_DROP_DOWN",t[t.MULTI_COMBO_BOX=5]="MULTI_COMBO_BOX",t}(q||{});var ae=function(t){return t[t.FORMAT_NORMAL=1]="FORMAT_NORMAL",t[t.FORMAT_QUANTITATIVE_WITH_UNIT=2]="FORMAT_QUANTITATIVE_WITH_UNIT",t}(ae||{});var le=function(t){return t[t.VALIDATOR_NO_VALIDATE_TYPE=0]="VALIDATOR_NO_VALIDATE_TYPE",t[t.VALIDATOR_INT_TYPE=1]="VALIDATOR_INT_TYPE",t[t.VALIDATOR_STRING_TYPE=2]="VALIDATOR_STRING_TYPE",t[t.VALIDATOR_FLOAT_TYPE=3]="VALIDATOR_FLOAT_TYPE",t[t.VALIDATOR_DATE_TYPE=4]="VALIDATOR_DATE_TYPE",t}(le||{});var Me=class extends _e{setValue(s,e){if(s instanceof Date){let i=Math.floor(s.getTime()/1e3);super.setValue(i,e)}else super.setValue(s,e)}},De=(()=>{class t{constructor(){this.shopeeUploadService=u(be),this.formBuilder=u(Q)}getAttributes(e){return this.shopeeUploadService.getAttributes(e.channelId,e.categoryId).pipe(V(i=>this.setLabelToIndonesian(i)))}setLabelToIndonesian(e=[]){let i,o;return e=e.map(n=>(i=n?.multi_lang?.find(l=>l.language=="id"),n.attribute_value_list=n?.attribute_value_list?.map(l=>(o=l?.multi_lang?.find(g=>g.language=="id"),l.name=o?.value,l)),n.name=i?.value?i?.value:n.name,n)),e}createFormGroup(e){let i=this.formBuilder.group({}),o=[];return e.forEach(n=>{if(o=[],n.mandatory&&o.push(ue.required),n?.attribute_info?.format_type==ae.FORMAT_QUANTITATIVE_WITH_UNIT&&n?.attribute_info?.input_type==q.FREE_TEXT_FILED){let l=this.formBuilder.group({unit:new _e(null),value:new _e(null,o)});i.addControl(JSON.stringify(n.attribute_id),l)}else n?.attribute_info?.input_type==q.FREE_TEXT_FILED&&n?.attribute_info?.input_validation_type==le.VALIDATOR_DATE_TYPE?i.addControl(JSON.stringify(n.attribute_id),new Me(null,o)):i.addControl(JSON.stringify(n.attribute_id),this.formBuilder.control(null,o))}),i}getFilteredAttributes(e,i){let o=JSON.parse(JSON.stringify(e)),n=Object.keys(i),l=o.filter(g=>n.findIndex(Ae=>parseInt(Ae)==g.attribute_id||g.mandatory)!=-1);return l=this.filterSelectedAttributes(l,i),l}filterSelectedAttributes(e,i){return e.map(n=>{switch(n.attribute_info.input_type){case q.MULTI_COMBO_BOX:h.IsNotEmpty(i[n.attribute_id])?n.attribute_value_list=n.attribute_value_list.filter(l=>i[n.attribute_id]?.findIndex(g=>g==l.value_id)!=-1):n.attribute_value_list=[];break;case q.FREE_TEXT_FILED:n.attribute_info.format_type==ae.FORMAT_QUANTITATIVE_WITH_UNIT?n.attribute_value_list=this.setSelectedQuantitativeAttr(i[n.attribute_id]?.value,i[n.attribute_id]?.unit):n.attribute_info.input_validation_type==le.VALIDATOR_DATE_TYPE?n.attribute_value_list=this.setSelectedDateAttr(i[n.attribute_id]):n.attribute_value_list=this.setSelectedQuantitativeAttr(i[n.attribute_id]);break;default:n.attribute_value_list=n.attribute_value_list.filter(l=>l.value_id==i[n.attribute_id])}return n}).filter(n=>n?.attribute_value_list?.length>0)}setSelectedQuantitativeAttr(e,i){let o=[];if(h.IsNotEmpty(e)){let n={value_id:0,original_value_name:JSON.stringify(e)};h.IsNotEmpty(i)&&(n.value_unit=i),o=[n]}return o}setSelectedDateAttr(e){let i=[];return h.IsNotEmpty(e)&&(i=[{value_id:0,original_value_name:JSON.stringify(e)}]),i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();var Ie=(()=>{class t{constructor(){this._calendarHeaderConfig=new Le({hideBtnClear:!1,hideBtnToday:!1}),this.calendarConfig=this._calendarHeaderConfig.value}setHeaderConfig(e){this._calendarHeaderConfig.next(e)}getHeaderConfig$(){return this._calendarHeaderConfig.asObservable()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Lt=["class","component ts"];function Bt(t,s){if(t&1){let e=E();p(0,"button",3),y("click",function(){C(e);let o=a(2);return b(o.todayClicked())}),d(1,"i",4),r()}}function Rt(t,s){if(t&1){let e=E();p(0,"button",5),y("click",function(){C(e);let o=a(2);return b(o.clearClicked())}),d(1,"i",6),r()}}function $t(t,s){if(t&1&&(w(0),_(1,Bt,2,0,"button",1)(2,Rt,2,0,"button",2),O()),t&2){let e=s.ngIf;m(),c("ngIf",!e.hideBtnToday),m(),c("ngIf",!e.hideBtnClear)}}var kt=(()=>{class t{constructor(e,i,o,n,l){this._datePicker=e,this._calendar=i,this._dateAdapter=o,this.calendarService=n,this._destroyed=new Ue,i.stateChanges.pipe($e(this._destroyed)).subscribe(g=>l.markForCheck()),this.calendarConfig$=this.calendarService.getHeaderConfig$()}todayClicked(){this._calendar.activeDate=this._dateAdapter.today(),this._datePicker.select(this._dateAdapter.today()),this._datePicker.close()}clearClicked(){this._datePicker.select(null),this._datePicker.close()}ngOnChanges(e){this._calendar.ngOnChanges(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}static{this.\u0275fac=function(i){return new(i||t)(H(Te),H(Ct),H(he),H(Ie),H(Xe))}}static{this.\u0275cmp=v({type:t,selectors:[["POS-DatepickerHeader",8,"component","ts"]],standalone:!1,features:[N],attrs:Lt,decls:3,vars:3,consts:[[4,"ngIf"],["mat-icon-button","","title","Today",3,"click",4,"ngIf"],["mat-icon-button","","title","Clear",3,"click",4,"ngIf"],["mat-icon-button","","title","Today",3,"click"],[1,"far","fa-clock",2,"font-size","18px"],["mat-icon-button","","title","Clear",3,"click"],[1,"far","fa-xmark-circle",2,"font-size","18px"]],template:function(i,o){i&1&&(p(0,"mat-calendar-header"),_(1,$t,3,2,"ng-container",0),T(2,"async"),r()),i&2&&(m(),c("ngIf",I(2,1,o.calendarConfig$)))},dependencies:[F,ht,gt,A],encapsulation:2})}}return t})(),Et=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=se({type:t})}static{this.\u0275inj=pe({providers:[re],imports:[x,xe,ge,re,fe,Ce]})}}return t})();function Gt(t,s){if(t&1&&(p(0,"mat-label",7)(1,"span"),f(2),r()()),t&2){let e=a();c("show",e.placeholder),m(2),te(e.placeholder)}}var Yt={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"dddd, D MMMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"dddd, D MMMM YYYY",monthYearA11yLabel:"MMMM YYYY"}},Mt=(()=>{class t{set hidelClearBtn(e){this.calendarService.setHeaderConfig({hideBtnClear:e,hideBtnToday:this.calendarService.calendarConfig.hideBtnToday})}change(e){let i=null;e&&(i=e.toDate(),i.setHours(0,0,0,0)),this.onChange(i),this.dateChange.emit(i)}constructor(e){this.calendarService=e,this.headerComponent=kt,this.appearance="outline",this.isFloatingLabel=!0,this.disabled=!1,this.readOnly=!1,this.dateChange=new P,this.minDate=h.MinDate,this.onChange=i=>{},this.displayToggle=!0}writeValue(e){this.date=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){this.disabled=e}onOpenDatepicker(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="inside")}}onCloseDatepicker(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="outside")}}ngOnDestroy(){this.calendarService.setHeaderConfig({hideBtnClear:!1,hideBtnToday:!1})}static{this.\u0275fac=function(i){return new(i||t)(H(Ie))}}static{this.\u0275cmp=v({type:t,selectors:[["datepicker"]],inputs:{data_cy:"data_cy",placeholder:"placeholder",displayToggle:"displayToggle",appearance:"appearance",width:"width",isFloatingLabel:"isFloatingLabel",date:"date",disabled:"disabled",readOnly:"readOnly",minDateValidation:"minDateValidation",maxDateValidation:"maxDateValidation",hidelClearBtn:"hidelClearBtn"},outputs:{dateChange:"dateChange"},standalone:!1,features:[S([{provide:he,useClass:St,deps:[st]},{provide:mt,useValue:Yt},{provide:Je,multi:!0,useExisting:t}])],decls:7,vars:16,consts:[["picker1",""],[1,"datepicker",3,"disabled","appearance"],[3,"show",4,"ngIf"],["matInput","",3,"dateChange","click","matDatepicker","min","max","placeholder","value","disabled","readonly"],["matSuffix","","aria-hidden","true",1,"datepicker-toggle-icon",3,"click"],[1,"fa-regular","fa-angle-down"],[3,"opened","closed","calendarHeaderComponent"],[3,"show"]],template:function(i,o){if(i&1){let n=E();p(0,"mat-form-field",1),_(1,Gt,3,2,"mat-label",2),p(2,"input",3),y("dateChange",function(g){return C(n),b(o.change(g.value))})("click",function(){C(n);let g=me(6);return b(g.open())}),r(),p(3,"span",4),y("click",function(){C(n);let g=me(6);return b(g.open())}),d(4,"i",5),r(),p(5,"mat-datepicker",6,0),y("opened",function(){return C(n),b(o.onOpenDatepicker())})("closed",function(){return C(n),b(o.onCloseDatepicker())}),r()()}if(i&2){let n=me(6);Ee("width",o.width||100,"%"),c("disabled",o.disabled)("appearance",o.appearance),m(),c("ngIf",o.isFloatingLabel&&o.placeholder),m(),Ye("placeholder",o.placeholder||""),c("matDatepicker",n)("min",o.minDateValidation)("max",o.maxDateValidation)("value",o.date==o.minDate?null:o.date)("disabled",o.disabled)("readonly",o.readOnly),Ge("data-cy",o.data_cy),m(),Ee("display",o.displayToggle?"unset":"none"),m(2),c("calendarHeaderComponent",o.headerComponent)}},dependencies:[F,Te,bt,pt,lt,ct,dt],styles:[`.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline{background-color:#e9ecef!important;opacity:1!important}.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline input{color:#00000061!important}.datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:3px;padding-top:18px;padding-bottom:13px}.datepicker .mat-mdc-icon-button.mat-mdc-button-base{padding:0}.datepicker .mat-mdc-form-field-subscript-wrapper{display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{padding:0!important}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important;font-size:16px;color:#9da2a6}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:23px!important;font-size:.875rem;color:#ccc}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}.datepicker .datepicker-toggle-icon{width:28px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin-right:6px}.datepicker .datepicker-toggle-icon i{font-family:"Font Awesome 6 Pro","Font Awesome 6 Free","Font Awesome 5 Pro","Font Awesome 5 Free";font-weight:400;font-size:16px;line-height:1;color:#6b7280}
|
|
2
2
|
`],encapsulation:2})}}return t})(),Dt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=se({type:t})}static{this.\u0275inj=pe({providers:[re],imports:[x,xe,ge,re,fe,Ce,Et,vt]})}}return t})();var Ne=()=>[];function Ht(t,s){t&1&&(p(0,"span",5),f(1,"*"),r())}function Wt(t,s){if(t&1&&d(0,"ng-select",6),t&2){let e=a().$implicit;c("multiple",!0)("formControlName",e.attribute_id)("items",e.attribute_value_list?e.attribute_value_list:de(4,Ne))("placeholder","Pilih "+(e==null?null:e.name))}}function Xt(t,s){if(t&1&&d(0,"input",8),t&2){let e=a(2).$implicit;c("formControlName",e.attribute_id)("placeholder","Isi "+(e==null?null:e.name))}}function Jt(t,s){if(t&1&&(p(0,"option",15),f(1),r()),t&2){let e=s.$implicit;c("value",e),m(),te(e)}}function zt(t,s){if(t&1&&(p(0,"div",10),d(1,"input",12),p(2,"select",13)(3,"option",14),f(4,"Unit"),r(),B(5,Jt,2,2,"option",15,L),r()()),t&2){let e=a(3).$implicit;c("formGroupName",e.attribute_id),m(),c("placeholder","Isi "+(e==null?null:e.name)),m(2),c("value",null),m(2),R(e==null||e.attribute_info==null?null:e.attribute_info.attribute_unit_list)}}function Qt(t,s){if(t&1&&d(0,"input",11),t&2){let e=a(3).$implicit;c("formControlName",e.attribute_id)("placeholder","Isi "+(e==null?null:e.name))}}function qt(t,s){if(t&1&&_(0,zt,7,3,"div",10)(1,Qt,1,2,"input",11),t&2){let e=a(2).$implicit,i=a(2);k((e==null||e.attribute_info==null?null:e.attribute_info.format_type)==i.formatType.FORMAT_QUANTITATIVE_WITH_UNIT?0:1)}}function Zt(t,s){if(t&1&&d(0,"datepicker",9),t&2){let e=a(2).$implicit;c("formControlName",e.attribute_id)}}function Kt(t,s){if(t&1&&_(0,Xt,1,2,"input",8)(1,qt,2,1)(2,Zt,1,1,"datepicker",9),t&2){let e,i=a().$implicit,o=a(2);k((e=i==null||i.attribute_info==null?null:i.attribute_info.input_validation_type)===o.validationType.VALIDATOR_STRING_TYPE?0:e===o.validationType.VALIDATOR_FLOAT_TYPE?1:e===o.validationType.VALIDATOR_DATE_TYPE?2:-1)}}function ei(t,s){if(t&1&&d(0,"ng-select",7),t&2){let e=a().$implicit;c("formControlName",e.attribute_id)("items",e.attribute_value_list?e.attribute_value_list:de(3,Ne))("placeholder","Pilih "+(e==null?null:e.name))}}function ti(t,s){if(t&1&&d(0,"ng-select",7),t&2){let e=a().$implicit;c("formControlName",e.attribute_id)("items",e.attribute_value_list?e.attribute_value_list:de(3,Ne))("placeholder","Pilih "+(e==null?null:e.name))}}function ii(t,s){if(t&1&&(p(0,"div",3)(1,"div",4),_(2,Ht,2,0,"span",5),p(3,"span"),f(4),r()(),_(5,Wt,1,5,"ng-select",6)(6,Kt,3,1)(7,ei,1,4,"ng-select",7)(8,ti,1,4,"ng-select",7),r()),t&2){let e,i=s.$implicit,o=a(2);m(2),k(i.mandatory?2:-1),m(2),Z(" ",i==null?null:i.name," "),m(),k((e=i==null||i.attribute_info==null?null:i.attribute_info.input_type)===o.inputType.MULTI_COMBO_BOX?5:e===o.inputType.FREE_TEXT_FILED?6:e===o.inputType.SINGLE_COMBO_BOX?7:8)}}function ni(t,s){if(t&1&&(w(0),p(1,"form",1)(2,"div",2),B(3,ii,9,3,"div",3,L),r()(),O()),t&2){let e=s.ngIf,i=a();m(),c("formGroup",i.form),m(2),R(e)}}var Nt=(()=>{class t{constructor(){this.formCategoryService=u(De),this.attributesChanges=new P,this.inputType=q,this.formatType=ae,this.validationType=le}ngOnChanges(){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.formCategoryService.getAttributes({categoryId:this.categoryId,channelId:this.channelId,channelType:this.channelType}).pipe(U(e=>{this.form=this.formCategoryService.createFormGroup(e),this.listenToFormChange(e)}),ee(1)))}listenToFormChange(e){let i=[];this.formSubscription=this.form.valueChanges.subscribe(o=>{i=this.formCategoryService.getFilteredAttributes(e,o),this.attributesChanges.emit(i)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["shopee-attribute-form"]],inputs:{channelType:"channelType",categoryId:"categoryId",channelId:"channelId",channelProductUpload:"channelProductUpload"},outputs:{attributesChanges:"attributesChanges"},features:[S([De]),N],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","value_id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","value_id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"],[1,"attribute-datepicker",3,"formControlName"],[1,"d-flex","align-items-center",3,"formGroupName"],["type","text","autoNum","",1,"form-control",3,"formControlName","placeholder"],["formControlName","value","type","text","autoNum","",1,"form-control","me-1",2,"width","200px",3,"placeholder"],["name","unit","id","unit","formControlName","unit",1,"form-control"],["disabled","","selected","",3,"value"],[3,"value"]],template:function(i,o){i&1&&(_(0,ni,5,1,"ng-container",0),T(1,"async")),i&2&&c("ngIf",I(1,1,o.attributes$))},dependencies:[x,F,A,j,Y,G,X,Ze,Ke,ie,qe,$,W,J,z,Qe,yt,Dt,Mt],styles:["input[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{height:36px;border-radius:4px} datepicker.attribute-datepicker>mat-form-field.mat-mdc-form-field>.mat-mdc-text-field-wrapper{height:36px} datepicker.attribute-datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:11px!important;padding-bottom:11px!important;height:36px;min-height:36px!important} datepicker.attribute-datepicker mat-datepicker-toggle>button.mat-mdc-icon-button.mat-mdc-button-base{--mdc-icon-button-state-layer-size: 36px}"]})}}return t})();var Pe=(()=>{class t{constructor(){this.httpService=u(oe),this.formBuilder=u(Q),this.uploadProductService=u(ve)}getAttributes(e,i){return this.httpService.get("api/product/tiktok/GetAttributes",[{key:"ID",value:e},{key:"CategoryID",value:i}]).pipe(Be(n=>this.uploadProductService.selectedProduct$.pipe(V(l=>(n=this.mappingAttributeSalesProperty(n,l),n)))))}mappingAttributeSalesProperty(e,i){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(i),n.values=[{id:"Warna",name:"Warna"},{id:"Ukuran",name:"Ukuran"}]),n))}isProductHasMoreVariant(e){let i=!1,o=[];return e.forEach(n=>{n.Variants&&o.push(n.Variants.length)}),i=o.some(n=>n>1),i}createFormGroup(e){let i=this.formBuilder.group({}),o=[];return e.forEach(n=>{o=[],n.is_required&&o.push(ue.required),i.addControl(n.id,this.formBuilder.control(null,o))}),i}getFilteredAttributes(e,i){let o=JSON.parse(JSON.stringify(e)),n=Object.keys(i),l=o.filter(g=>n.findIndex(Ae=>parseInt(Ae)==g.id)!=-1);return l=this.filterSelectedAttributes(l,i),l}filterSelectedAttributes(e,i){return e.map(n=>(h.IsNotEmpty(n.values)?n.is_multiple_selection?n.values=n.values.filter(l=>i[n.id]?.includes(l.id)):n.values=n.values.filter(l=>l.id==i[n.id]):i[n.id]&&(n.values=[{id:null,name:i[n.id]}]),n)).filter(n=>n?.values?.length>0)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();function oi(t,s){t&1&&(p(0,"span",5),f(1,"*"),r())}function ri(t,s){if(t&1&&d(0,"ng-select",6),t&2){let e=a().$implicit;c("multiple",!0)("formControlName",e.id)("items",e.values)("placeholder","Pilih "+(e==null?null:e.name))}}function ai(t,s){if(t&1&&d(0,"ng-select",7),t&2){let e=a().$implicit;c("formControlName",e.id)("items",e.values)("placeholder","Pilih "+(e==null?null:e.name))}}function li(t,s){if(t&1&&d(0,"input",8),t&2){let e=a().$implicit;c("formControlName",e.id)("placeholder",e==null?null:e.name)}}function ci(t,s){if(t&1&&(p(0,"small",5),f(1),r()),t&2){let e=a().$implicit;m(),Z(" ",e==null?null:e.name," is mandatory ")}}function pi(t,s){if(t&1&&(p(0,"div",3)(1,"div",4),_(2,oi,2,0,"span",5),p(3,"span"),f(4),r()(),_(5,ri,1,4,"ng-select",6)(6,ai,1,3,"ng-select",7)(7,li,1,2,"input",8)(8,ci,2,1,"small",5),r()),t&2){let e=s.$implicit;m(2),k(e.is_required?2:-1),m(2),Z(" ",e==null?null:e.name," "),m(),k(e.is_multiple_selection?5:e.values!==null&&e.values.length>0?6:7),m(3),k(e.is_required?8:-1)}}function si(t,s){if(t&1&&(w(0),p(1,"form",1)(2,"div",2),B(3,pi,9,4,"div",3,L),r()(),O()),t&2){let e=s.ngIf,i=a();m(),c("formGroup",i.form),m(2),R(e)}}var Pt=(()=>{class t{constructor(){this.tiktokAttributeFormService=u(Pe),this.attributesChanges=new P}ngOnChanges(){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.tiktokAttributeFormService.getAttributes(this.channelId,this.categoryId).pipe(V(e=>e.filter(i=>!(i.type=="PRODUCT_PROPERTY"&&(h.IsEmpty(i.values)||i.values?.length==0)&&i.is_customizable==!1))),U(e=>{this.form=this.tiktokAttributeFormService.createFormGroup(e),this.listenToFormChange(e)}),ee(1)))}listenToFormChange(e){let i=[];this.formSubscription=this.form.valueChanges.subscribe(o=>{i=this.tiktokAttributeFormService.getFilteredAttributes(e,o),this.attributesChanges.emit(i)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["tiktok-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{attributesChanges:"attributesChanges"},features:[S([Pe]),N],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(i,o){i&1&&(_(0,si,5,1,"ng-container",0),T(1,"async")),i&2&&c("ngIf",I(1,1,o.attributes$))},dependencies:[x,F,A,j,Y,G,X,ie,$,W,J,z,ne],encapsulation:2})}}return t})();var we=(()=>{class t{constructor(){this.woocommerceUploadService=u(ye)}getAttributes(e,i){return this.woocommerceUploadService.getAttributes(e,i).pipe(V(o=>o.map(n=>({key:n.name,label:n.name}))))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();var wt=(()=>{class t{constructor(){this.wooAttributeFormService=u(we),this.channelId=ke(),this.categoryId=ke(),this.attributesChanges=new P}ngOnChanges(){h.IsNotEmpty(this.categoryId())&&h.IsNotEmpty(this.channelId())&&(this.attributes$=this.wooAttributeFormService.getAttributes(this.channelId(),this.categoryId()))}onSelectAttribute(e){this.attributesChanges.emit([e.key])}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["wooocommerce-attribute-form"]],inputs:{channelId:[1,"channelId"],categoryId:[1,"categoryId"]},outputs:{attributesChanges:"attributesChanges"},features:[S([we]),N],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(i,o){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),f(3,"Atribut"),r(),p(4,"ng-select",3),T(5,"async"),y("change",function(l){return o.onSelectAttribute(l)}),r()()()),i&2&&(m(4),c("items",I(5,1,o.attributes$)))},dependencies:[x,A,ne,j,Y,G],encapsulation:2})}}return t})();var Oe=(()=>{class t{constructor(){this.httpService=u(oe),this.formBuilder=u(Q)}getAttributes(e,i){return this.httpService.get("api/product/tokopedia/GetAttributes",[{key:"ID",value:e},{key:"CategoryID",value:i}]).pipe(V(n=>n))}createFormGroup(e){let i=this.formBuilder.group({});return e.forEach(o=>{i.addControl(o.variant,this.formBuilder.control(null))}),i}convertAttributes(e={}){return Object.values(e).filter(o=>o!==null).map(o=>JSON.stringify(o))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();function mi(t,s){if(t&1&&(p(0,"div",3)(1,"div",4),f(2),r(),d(3,"ng-select",5),r()),t&2){let e=s.$implicit;m(2),Z(" ",e==null?null:e.variant," "),m(),c("formControlName",e.variant)("items",e.values)("placeholder","Pilih "+(e==null?null:e.variant))}}function di(t,s){if(t&1&&(w(0),p(1,"form",1)(2,"div",2),B(3,mi,4,4,"div",3,L),r()(),O()),t&2){let e=s.ngIf,i=a();m(),c("formGroup",i.form),m(2),R(e)}}var Ot=(()=>{class t{constructor(){this.tokpedAttrFormService=u(Oe),this.attributesChanges=new P}ngOnInit(){}ngOnChanges(e){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.tokpedAttrFormService.getAttributes(this.channelId,this.categoryId).pipe(U(i=>{this.form=this.tokpedAttrFormService.createFormGroup(i),this.listenToFormChange()})))}listenToFormChange(){let e=[];this.formSubscription=this.form.valueChanges.subscribe(i=>{e=this.tokpedAttrFormService.convertAttributes(i),this.attributesChanges.emit(e)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["tokopedia-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{attributesChanges:"attributesChanges"},features:[S([Oe]),N],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(i,o){i&1&&(_(0,di,5,1,"ng-container",0),T(1,"async")),i&2&&c("ngIf",I(1,1,o.attributes$))},dependencies:[x,F,A,j,Y,G,X,$,W,J,z],encapsulation:2})}}return t})();var Ve=(()=>{class t{constructor(){this.httpService=u(oe),this.formBuilder=u(Q)}getAttributes(e){return this.httpService.get("api/product/shopify/GetAttributes",[{key:"ID",value:e}]).pipe(U(o=>(o.Options.StatusOptions=o.Options.Status.map(n=>({id:n,name:n})),o)))}createFormGroup(e){let i=this.formBuilder.group({});return Object.keys(e.Attribute).forEach(n=>{i.addControl(n,this.formBuilder.control(null))}),i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac})}}return t})();function ui(t,s){if(t&1&&(w(0),p(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4),f(5," Brand "),r(),d(6,"input",5),r(),p(7,"div",6)(8,"div",4),f(9," Product Type "),r(),d(10,"input",7),r(),p(11,"div",6)(12,"div",4),f(13," Status "),r(),d(14,"ng-select",8),r()()(),O()),t&2){let e=s.ngIf,i=a();m(),c("formGroup",i.form),m(13),c("items",e.Options.StatusOptions)}}var Vt=(()=>{class t{constructor(){this.attributesChanges=new P,this.shopifyFormService=u(Ve)}ngOnChanges(e){e.channelId&&(this.attributes$=this.shopifyFormService.getAttributes(this.channelId).pipe(U(i=>{this.form=this.shopifyFormService.createFormGroup(i),this.listenToFormChange()})))}listenToFormChange(){this.formSubscription=this.form.valueChanges.pipe(Re(500)).subscribe(e=>{this.attributesChanges.emit([e])})}ngOnDestroy(){this.formSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["shopify-attribute-form"]],inputs:{channelId:"channelId"},outputs:{attributesChanges:"attributesChanges"},features:[S([Ve]),N],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(i,o){i&1&&(_(0,ui,15,2,"ng-container",0),T(1,"async")),i&2&&c("ngIf",I(1,1,o.attributes$))},dependencies:[x,F,A,G,X,ie,$,W,J,z,j,Y],encapsulation:2})}}return t})();function _i(t,s){if(t&1&&(p(0,"div",6),d(1,"app-product-card",9),r()),t&2){let e=s.$implicit;m(),c("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 fi(t,s){if(t&1){let e=E();w(0),p(1,"mat-checkbox",21),We("ngModelChange",function(o){C(e);let n=a().$implicit;return He(n.selected,o)||(n.selected=o),b(o)}),y("ngModelChange",function(){let o=C(e).ngIf,n=a(),l=n.$implicit,g=n.$index,ce=a();return b(ce.onSelectChannel(l,g,o))}),r(),O()}if(t&2){let e=a().$implicit;m(),je("ngModel",e.selected)}}function hi(t,s){if(t&1&&(p(0,"div",18),d(1,"input",22),r()),t&2){let e=a().$implicit,i=a();c("matTooltip",e.type==i.channelType.Shopify?"Cannot change category, please change category in admin.shopify.com":e.type==i.channelType.Plugo?"You can change the category after the product has been uploaded to the Plugo Dashboard.":"")}}function gi(t,s){if(t&1){let e=E();p(0,"app-channel-category-select",23),y("selectedCategory",function(o){C(e);let n=a().$index,l=a();return b(l.onCategoryChange(n,o))}),r()}if(t&2){let e=a().$implicit,i=a();c("disabled",!e.selected||e.selected&&e.type==i.channelType.Lazada)("channelId",e.id)("channelType",e.type)("categoryId",e.categoryId)}}function Ci(t,s){if(t&1){let e=E();p(0,"shopee-attribute-form",27),y("attributesChanges",function(o){C(e);let n=a(2).$index,l=a();return b(l.onAttributesChange(n,o))}),r()}if(t&2){let e=a(2).$implicit;c("categoryId",e.categoryId)("channelId",e.id)("channelType",e.type)}}function bi(t,s){if(t&1){let e=E();p(0,"tiktok-attribute-form",28),y("attributesChanges",function(o){C(e);let n=a(2).$index,l=a();return b(l.onAttributesChange(n,o))}),r()}if(t&2){let e=a(2).$implicit;c("categoryId",e.categoryId)("channelId",e.id)}}function yi(t,s){if(t&1){let e=E();p(0,"wooocommerce-attribute-form",28),y("attributesChanges",function(o){C(e);let n=a(2).$index,l=a();return b(l.onAttributesChange(n,o))}),r()}if(t&2){let e=a(2).$implicit;c("categoryId",e.categoryId)("channelId",e.id)}}function vi(t,s){if(t&1){let e=E();p(0,"tokopedia-attribute-form",28),y("attributesChanges",function(o){C(e);let n=a(2).$index,l=a();return b(l.onAttributesChange(n,o))}),r()}if(t&2){let e=a(2).$implicit;c("categoryId",e.categoryId)("channelId",e.id)}}function xi(t,s){if(t&1&&(p(0,"div",20)(1,"div",24),_(2,Ci,1,3,"shopee-attribute-form",25)(3,bi,1,2,"tiktok-attribute-form",26)(4,yi,1,2,"wooocommerce-attribute-form",26)(5,vi,1,2,"tokopedia-attribute-form",26),r()()),t&2){let e,i=a().$implicit,o=a();m(2),k((e=i.type)===o.channelType.Shopee?2:e===o.channelType.Tiktok?3:e===o.channelType.WooCommerce?4:e===o.channelType.Tokopedia?5:-1)}}function Ti(t,s){if(t&1){let e=E();p(0,"div",20)(1,"div",24)(2,"shopify-attribute-form",29),y("attributesChanges",function(o){C(e);let n=a().$index,l=a();return b(l.onAttributesChange(n,o))}),r()()()}if(t&2){let e=a().$implicit;m(2),c("channelId",e.id)}}function Ii(t,s){if(t&1&&(p(0,"div",8)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div"),_(6,fi,2,1,"ng-container",14),T(7,"async"),r(),p(8,"div"),d(9,"app-channel-logo",15),r(),p(10,"div",16)(11,"span"),f(12),r()()()(),p(13,"div",12)(14,"div",17),_(15,hi,2,1,"div",18)(16,gi,1,4,"app-channel-category-select",19),r()()(),_(17,xi,6,1,"div",20)(18,Ti,3,1,"div",20),r()()),t&2){let e=s.$implicit,i=a();m(6),c("ngIf",I(7,8,i.defaultCategories$)),m(3),c("typeId",e.type)("showChannelName",!1),m(),c("matTooltip",e.name)("matTooltipShowDelay",2500),m(2),te(e.name),m(3),k(e.type==i.channelType.Shopify||e.type==i.channelType.Plugo?15:16),m(2),k(e.categoryId&&i.channelType.Lazada!=e.type&&e.selected?17:i.channelType.Shopify==e.type&&e.selected?18:-1)}}var br=(()=>{class t{constructor(){this.uploadProductService=u(ve),this.selectedProducts$=this.uploadProductService.selectedProduct$,this.channelProductUploads=this.uploadProductService.channelProductUpload,this.channelType=et,this.defaultCategories$=this.uploadProductService.getDefaultCategory().pipe(ee(1))}onCategoryChange(e,i){this.channelProductUploads.update(o=>o.map((n,l)=>(l==e&&(n.categoryId=i,n.attributes=[]),n)))}onAttributesChange(e,i){this.channelProductUploads.update(o=>o.map((n,l)=>(l==e&&(n.attributes=i),n)))}onSelectChannel(e,i,o){this.channelProductUploads.update(n=>n.map((l,g)=>{if(g==i&&e.selected){let ce=this.findCategoryByChannelId(e.id,o);l.categoryId=ce?.DefaultCategoryID}return g==i&&!e.selected&&(l.categoryId=null),l}))}findCategoryByChannelId(e,i){return i.find(o=>o.ID===e)}onUploadProduct(){this.uploadProductService.onUploadProduct(this.channelProductUploads())}ngOnDestroy(){this.uploadProductService.clearSelectedProduct()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=v({type:t,selectors:[["app-product-upload"]],features:[S([be,ut,_t,ye])],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(i,o){if(i&1&&(p(0,"mainpanel",0)(1,"actions")(2,"button",1),y("click",function(){return o.onUploadProduct()}),d(3,"i",2),f(4," Upload "),r()(),p(5,"content")(6,"div",3)(7,"h3",4),f(8,"Product To Upload"),r(),p(9,"div",5),B(10,_i,2,7,"div",6,L),T(12,"async"),r(),p(13,"h3",7),f(14,"Channel To Upload"),r(),B(15,Ii,19,10,"div",8,L),r()()()),i&2){let n;c("hideSearchBox",!0)("hideSearchDropdown",!0),m(2),c("disabled",((n=o.channelProductUploads())==null?null:n.length)==0),m(8),R(I(12,3,o.selectedProducts$)),m(5),R(o.channelProductUploads())}},dependencies:[x,F,A,xt,ot,nt,It,Tt,at,rt,ne,$,ze,it,tt,Pt,wt,Ot,Vt,ft,Ft,Nt],encapsulation:2})}}return t})();export{br as ProductUploadComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as V}from"./chunk-5KS4WK6H.js";import{a as j,b as q}from"./chunk-OC2FBL33.js";import{ia as $}from"./chunk-LZCEM2PC.js";import{b as s,c as a}from"./chunk-PW42BQIY.js";import{A as D,a as I,h as R,m as A}from"./chunk-6QYD6NIJ.js";import{a as F}from"./chunk-ATZ475FN.js";import{r as U,s as W}from"./chunk-IHNN4Q2N.js";import{j as O,n as z}from"./chunk-M2FCTYGU.js";import{$c as E,Ga as _,Gb as w,Gc as y,Ic as M,Ka as T,Kc as v,Lc as L,Mb as g,Mc as P,Oa as h,Qc as B,Ra as c,Yb as d,Z as b,ad as x,dc as k,ia as S,ic as u,jc as r,pa as m,rb as p,tc as f,uc as N,v as C}from"./chunk-B7KTCPKC.js";function J(n,G){if(n&1&&(u(0,"div",4),y(1),r()),n&2){let e=N();p(),M(" ",e.selectedCategoryLabel()," ")}}function K(n,G){n&1&&(u(0,"label",3),y(1,"Channel"),r())}var he=(()=>{class n{constructor(){this.multiwarehousTreeService=m(V),this.destroyRef=m(_),this.selectedCategoryLabel=c("Select a Channel"),this.disabled=c(!1),this.selectedNode=c(null),this.multiple=h(!1),this.floatingLabel=h(!1),this.onChannelChange=new T,this.channels$=this.multiwarehousTreeService.getChannelTree$().pipe(C(e=>e.map(t=>{t.children=t.children.map(i=>(i.icon="fa-solid fa-warehouse",i));let o=this.getChannelType(t.typeid);return t.icon=`custom-icon-${o}`,t.expandedIcon=null,t.collapsedIcon=null,t.styleClass=`custom-icon-${o}`,t.logo=a.getChannelLogoByTypeId(t.typeId),t})),b(1)),this.htmlBody=document.querySelector("body"),this.onChange=e=>{},this.onTouched=()=>{}}getChannelType(e){switch(e){case s.Tokopedia:return"tokopedia";case s.Shopee:return"shopee";case s.Lazada:return"lazada";case s.Shopify:return"shopify";case s.WooCommerce:return"woocommerce";case s.Tiktok:return"tiktok";case s.Plugo:return"plugo"}}initSelectedNode(e){this.channels$.pipe(F(this.destroyRef)).subscribe(t=>{if(this.multiple()){let o=[];for(let i of e){let l=a.searchByIdWithParentDFS(t,i),H=Object.assign({},l);o.push(H)}this.selectedNode.set(o),this.emitMultipleNodes()}else{let o=a.searchByIdWithParentDFS(t,e),i=Object.assign({},o);this.selectedNode.set(i),this.emitSingleNode(i)}})}onNodeSelect(e){let t=Object.assign({},e.node);this.multiple()?this.emitMultipleNodes():this.emitSingleNode(t)}emitMultipleNodes(){let e=Object.assign([],this.selectedNode()),t=e.map(o=>o.id);this.onChange(t),this.onChannelChange.emit(e),this.generateLabel()}emitSingleNode(e){this.onChange(e.id),this.onChannelChange.emit(e),this.generateLabel()}onNodeUnSelect(e){if(this.multiple()){let t=e.node;this.selectedNode.update(o=>o.filter(i=>i.id!==t.id)),this.emitMultipleNodes(),this.generateLabel()}}generateLabel(){let e="Select a Channel";if(this.multiple()){e="";for(let t of this.selectedNode())e+=a.getLabelPathTree(t)+", ";this.selectedCategoryLabel.set(e)}else{let t=this.selectedNode();t?(e=a.getLabelPathTree(t),this.selectedCategoryLabel.set(e)):this.selectedCategoryLabel.set(e)}}onClear(){this.onChange(null)}onClick(){let e=this.getBodyTop(),t=document.querySelector(".p-overlay.p-component"),o=e+t.getBoundingClientRect().top,i=t.getAttribute("style")||"";t.setAttribute("style",`${i} top: ${o+e}px;`)}getBodyTop(){return this.htmlBody.getBoundingClientRect().top*-1}writeValue(e){a.IsNotEmpty(e)&&this.initSelectedNode(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=w({type:n,selectors:[["multiwarehouse-tree-select"]],inputs:{multiple:[1,"multiple"],floatingLabel:[1,"floatingLabel"]},outputs:{onChannelChange:"onChannelChange"},features:[B([{provide:I,useExisting:S(()=>n),multi:!0}])],decls:5,vars:9,consts:[["matTooltipPosition","above",1,"p-float-label",3,"matTooltip"],["appendTo","body","containerStyleClass","w-100","id","selectChannel",1,"multiwarehouse-select",3,"click","onNodeSelect","ngModelChange","onClear","onNodeUnselect","filter","filterInputAutoFocus","options","ngModel","selectionMode"],["pTemplate","value","type","default"],["for","selectChannel"],["matTooltipPosition","above"]],template:function(t,o){t&1&&(u(0,"span",0)(1,"p-treeSelect",1),E(2,"async"),f("click",function(){return o.onClick()})("onNodeSelect",function(l){return o.onNodeSelect(l)}),P("ngModelChange",function(l){return L(o.selectedNode,l)||(o.selectedNode=l),l}),f("onClear",function(){return o.onClear()})("onNodeUnselect",function(l){return o.onNodeUnSelect(l)}),g(3,J,2,1,"ng-template",2),r(),g(4,K,2,0,"label",3),r()),t&2&&(d("matTooltip",o.selectedCategoryLabel()),p(),d("filter",!0)("filterInputAutoFocus",!0)("options",x(2,7,o.channels$)),v("ngModel",o.selectedNode),d("selectionMode",o.multiple()?"multiple":"single"),p(3),k(o.floatingLabel()?4:-1))},dependencies:[z,O,q,j,$,D,R,A,W,U],styles:["[_nghost-%COMP%] .p-treeselect{width:100%;display:inline-flex;border:1px solid #ced4da;font-size:.875rem!important} .p-element .p-icon-wrapper{width:14px} .p-float-label .multiwarehouse-select.p-treeselect{padding:7px!important;min-height:.6rem!important} .custom-icon-tokopedia.p-tree-node-icon, .custom-icon-shopee.p-tree-node-icon, .custom-icon-woocommerce.p-tree-node-icon, .custom-icon-lazada.p-tree-node-icon, .custom-icon-tiktok.p-tree-node-icon, .custom-icon-shopify.p-tree-node-icon, .custom-icon-plugo.p-tree-node-icon{background-size:contain;background-repeat:no-repeat;width:20px;height:20px;display:inline-block} .custom-icon-tokopedia.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png)} .custom-icon-woocommerce.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp)} .custom-icon-shopee.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png)} .custom-icon-tiktok.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png)} .custom-icon-lazada.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1680681836/icons/marketplace_icons/Lazadanew.png)} .custom-icon-shopify.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1707987435/icons/marketplace_icons/shopify.png)} .custom-icon-plugo.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1739236419/icons/marketplace_icons/plugo.ico)} .custom-icon-shopee .fa-warehouse.p-tree-node-icon, .custom-icon-tiktok .fa-warehouse.p-tree-node-icon, .custom-icon-tokopedia .fa-warehouse.p-tree-node-icon, .custom-icon-lazada .fa-warehouse.p-tree-node-icon, .custom-icon-shopify .fa-warehouse.p-tree-node-icon, .custom-icon-woocommerce .fa-warehouse.p-tree-node-icon, .custom-icon-plugo .fa-warehouse.p-tree-node-icon{background-image:none!important;display:inline-block!important}"]})}}return n})();export{he as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ae,b as M}from"./chunk-K77RTNG2.js";import{a as oe}from"./chunk-2ODVHD2K.js";import{a as re}from"./chunk-EPVCMYCI.js";import"./chunk-DL66NZ2A.js";import"./chunk-L3FX4O3H.js";import"./chunk-PNITO7BE.js";import"./chunk-E4KNET2R.js";import"./chunk-74IXJYWO.js";import"./chunk-GIRXMYNI.js";import"./chunk-IIZDEGGW.js";import"./chunk-AQTXFEBA.js";import"./chunk-SDUUFQUI.js";import"./chunk-5OHRA4AS.js";import"./chunk-IL5JIRWJ.js";import"./chunk-MH4SJTQX.js";import"./chunk-3RK6DDJD.js";import"./chunk-CUB2QFUO.js";import"./chunk-KALG6D6L.js";import{a as te,b as ie}from"./chunk-M7NQID2Z.js";import"./chunk-CMTBBXR5.js";import{a as le}from"./chunk-NOP5P5R5.js";import{a as ne}from"./chunk-D6URDVES.js";import"./chunk-XHYJOIC5.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-AEOSNAHH.js";import"./chunk-TGMCGROM.js";import"./chunk-KMJM6UVY.js";import"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import"./chunk-5JVEEL2T.js";import"./chunk-PW42BQIY.js";import{m as $,n as ee}from"./chunk-UGVEAL7H.js";import{A as X,c as J,h as K,m as Q,o as U}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-SWQXSJ7O.js";import{r as Y,s as Z}from"./chunk-IHNN4Q2N.js";import"./chunk-EQIFZBRG.js";import{j as R,k as j,m as q,n as G}from"./chunk-M2FCTYGU.js";import{$c as w,Gb as W,Gc as o,Hc as h,Kc as c,Lc as u,Mb as L,Mc as C,Nc as I,Oc as k,Pc as A,Qc as z,Ra as O,Yb as g,Z as P,ad as x,bd as H,dc as N,ec as D,gc as F,hc as B,ic as e,jc as t,kc as _,oc as b,pa as V,rb as l,tc as v,uc as y,ya as p,za as s}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as E,b as T}from"./chunk-66YHNWRR.js";function me(m,S){if(m&1&&(e(0,"tr")(1,"td"),o(2),t(),e(3,"td"),_(4,"order-link",26),t(),e(5,"td"),o(6),t(),e(7,"td"),o(8),w(9,"number"),t(),e(10,"td"),o(11),w(12,"date"),t(),e(13,"td"),_(14,"app-channel-logo",27),t()()),m&2){let r=S.$implicit;l(2),h(r.Outlet),l(2),g("order",r),l(2),h(r.Customer),l(2),h(x(9,6,r.Amount)),l(3),h(H(12,8,r.Created,"dd MMM yyyy HH:mm")),l(3),g("typeId",r==null?null:r.TypeID)}}function de(m,S){if(m&1){let r=b();e(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),o(5,"Outlet"),t(),e(6,"th",21),o(7,"Order number"),t(),e(8,"th"),o(9,"Customer"),t(),e(10,"th",22),o(11,"Amount"),t(),e(12,"th",23),o(13," Created On "),t(),e(14,"th",24),o(15,"Channel"),t()()(),e(16,"tbody"),F(17,me,15,11,"tr",null,D),t()(),e(19,"app-custom-paginator",25),v("next",function(){p(r);let i=y();return s(i.initCancelledOrders())})("previous",function(){p(r);let i=y();return s(i.initCancelledOrders())}),t()()}if(m&2){let r=y(),a=A(0);l(17),B(a),l(2),g("filter",r.filter())("totaldata",a==null?null:a.length)("paginationTotal",a==null?null:a.length)("hasClicked",!0)("nextButtonAlwaysVisible",!0)}}function pe(m,S){m&1&&(e(0,"div",16),_(1,"app-empty-state"),t())}var Le=(()=>{class m{constructor(){this.orderService=V(M),this.filter=O({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){let r=this.orderService.getOrderDefaultValue();this.filter.update(a=>T(E({},a),{From:r})),this.initCancelledOrders()}initCancelledOrders(){this.cancelledOrders$=this.orderService.getCancelledOrders(this.filter()).pipe(P(1))}static{this.\u0275fac=function(a){return new(a||m)}}static{this.\u0275cmp=W({type:m,selectors:[["app-cancelled"]],features:[z([M])],decls:34,vars:11,consts:[["headerTitle","Cancelled","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[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(a,i){if(a&1){let d=b();I(0),w(1,"async"),e(2,"mainpanel",0),v("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,"actions")(4,"a",1),_(5,"i",2),e(6,"span"),o(7,"Order Fulfillment Display"),t()()(),e(8,"filters")(9,"div")(10,"label",3),o(11,"From/To"),t(),e(12,"channel-select-options",4),C("ngModelChange",function(n){return p(d),u(i.filter().ListChannelID,n)||(i.filter().ListChannelID=n),s(n)}),t()(),e(13,"div",5)(14,"label",3),o(15,"From/To"),t(),e(16,"div",6)(17,"datepicker",7),C("dateChange",function(n){return p(d),u(i.filter().From,n)||(i.filter().From=n),s(n)}),t()(),e(18,"div")(19,"datepicker",8),C("dateChange",function(n){return p(d),u(i.filter().To,n)||(i.filter().To=n),s(n)}),t()()(),e(20,"div",5)(21,"label",9),o(22,"Page Number"),t(),e(23,"input",10),C("ngModelChange",function(n){return p(d),u(i.filter().PageNumber,n)||(i.filter().PageNumber=n),s(n)}),t()(),e(24,"div",5)(25,"label",9),o(26,"Page Size"),t(),e(27,"input",11),C("ngModelChange",function(n){return p(d),u(i.filter().PageSize,n)||(i.filter().PageSize=n),s(n)}),t()()(),e(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),L(32,de,20,5,"div",15)(33,pe,2,0,"div",16),t()()()()()}if(a&2){let d=k(x(1,8,i.cancelledOrders$));l(2),c("text",i.filter().Number),l(10),g("multiple",!0),c("ngModel",i.filter().ListChannelID),l(5),c("date",i.filter().From),l(2),c("date",i.filter().To),l(4),c("ngModel",i.filter().PageNumber),l(4),c("ngModel",i.filter().PageSize),l(5),N((d==null?null:d.length)>0?32:33)}},dependencies:[G,R,q,j,ee,$,re,ne,X,J,U,K,Q,oe,le,Z,Y,ae,ie,te],encapsulation:2})}}return m})();export{Le as CancelledComponent};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as K,b as Q}from"./chunk-7ZXNQAAU.js";import{c as J}from"./chunk-JDIBETL5.js";import{b as W,d as X}from"./chunk-L7K5HOBY.js";import{f as q}from"./chunk-7SVF5UPT.js";import{r as Y,s as Z}from"./chunk-YCH6HHU3.js";import{v as H}from"./chunk-B73M3AMU.js";import{Aa as h,Ba as F,Fc as j,Gb as E,Gc as x,Hb as R,Hc as $,Ic as y,Ka as A,Mb as f,Xb as m,Yb as p,dc as c,f as M,fc as N,gc as V,h as D,hc as G,ic as n,ja as O,jc as r,jd as U,ka as w,kc as v,ma as L,oc as z,od as I,pa as u,pd as P,qa as k,ra as B,rb as o,tc as d,uc as l,ya as _,za as b}from"./chunk-B7KTCPKC.js";function tt(i,g){if(i&1&&(n(0,"mat-option",17),x(1),r()),i&2){let t=g.$implicit;p("value",t),o(),y(" ",t," ")}}function et(i,g){if(i&1){let t=z();n(0,"mat-form-field",14)(1,"mat-select",16,0),d("selectionChange",function(e){_(t);let s=l(2);return b(s._changePageSize(e.value))}),V(3,tt,2,2,"mat-option",17,N),r(),n(5,"div",18),d("click",function(){_(t);let e=j(2);return b(e.open())}),r()()}if(i&2){let t=l(2);p("appearance",t._formFieldAppearance)("color",t.color),o(),p("value",t.pageSize)("disabled",t.disabled)("aria-labelledby",t._pageSizeLabelId)("panelClass",t.selectConfig.panelClass||"")("disableOptionCentering",t.selectConfig.disableOptionCentering),o(2),G(t._displayedPageSizeOptions)}}function it(i,g){if(i&1&&(n(0,"div",15),x(1),r()),i&2){let t=l(2);o(),$(t.pageSize)}}function at(i,g){if(i&1&&(n(0,"div",3)(1,"div",13),x(2),r(),f(3,et,6,7,"mat-form-field",14)(4,it,2,1,"div",15),r()),i&2){let t=l();o(),m("id",t._pageSizeLabelId),o(),y(" ",t._intl.itemsPerPageLabel," "),o(),c(t._displayedPageSizeOptions.length>1?3:-1),o(),c(t._displayedPageSizeOptions.length<=1?4:-1)}}function nt(i,g){if(i&1){let t=z();n(0,"button",19),d("click",function(){_(t);let e=l();return b(e._buttonClicked(0,e._previousButtonsDisabled()))}),h(),n(1,"svg",8),v(2,"path",20),r()()}if(i&2){let t=l();p("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("disabled",t._previousButtonsDisabled())("tabindex",t._previousButtonsDisabled()?-1:null),m("aria-label",t._intl.firstPageLabel)}}function ot(i,g){if(i&1){let t=z();n(0,"button",21),d("click",function(){_(t);let e=l();return b(e._buttonClicked(e.getNumberOfPages()-1,e._nextButtonsDisabled()))}),h(),n(1,"svg",8),v(2,"path",22),r()()}if(i&2){let t=l();p("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("disabled",t._nextButtonsDisabled())("tabindex",t._nextButtonsDisabled()?-1:null),m("aria-label",t._intl.lastPageLabel)}}var T=(()=>{class i{changes=new M;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(t,a,e)=>{if(e==0||a==0)return`0 of ${e}`;e=Math.max(e,0);let s=t*a,S=s<e?Math.min(s+a,e):s+a;return`${s+1} \u2013 ${S} of ${e}`};static \u0275fac=function(a){return new(a||i)};static \u0275prov=O({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function rt(i){return i||new T}var st={provide:T,deps:[[new k,new B,T]],useFactory:rt},lt=50;var pt=new L("MAT_PAGINATOR_DEFAULT_OPTIONS"),dt=(()=>{class i{_intl=u(T);_changeDetectorRef=u(U);_formFieldAppearance;_pageSizeLabelId=u(H).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new D(1);color;get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(a=>P(a,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new A;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let t=this._intl,a=u(pt,{optional:!0});if(this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),a){let{pageSize:e,pageSizeOptions:s,hidePageSize:S,showFirstLastButtons:C}=a;e!=null&&(this._pageSize=e),s!=null&&(this._pageSizeOptions=s),S!=null&&(this.hidePageSize=S),C!=null&&(this.showFirstLastButtons=C)}this._formFieldAppearance=a?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndex<t&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){let a=this.pageIndex*this.pageSize,e=this.pageIndex;this.pageIndex=Math.floor(a/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:lt),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,a)=>t-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(t){let a=this.pageIndex;t!==a&&(this.pageIndex=t,this._emitPageEvent(a))}_buttonClicked(t,a){a||this._navigate(t)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=E({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",P],length:[2,"length","length",P],pageSize:[2,"pageSize","pageSize",P],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",I],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",I],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",I]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,e){a&1&&(n(0,"div",1)(1,"div",2),f(2,at,5,4,"div",3),n(3,"div",4)(4,"div",5),x(5),r(),f(6,nt,3,5,"button",6),n(7,"button",7),d("click",function(){return e._buttonClicked(e.pageIndex-1,e._previousButtonsDisabled())}),h(),n(8,"svg",8),v(9,"path",9),r()(),F(),n(10,"button",10),d("click",function(){return e._buttonClicked(e.pageIndex+1,e._nextButtonsDisabled())}),h(),n(11,"svg",8),v(12,"path",11),r()(),f(13,ot,3,5,"button",12),r()()()),a&2&&(o(2),c(e.hidePageSize?-1:2),o(3),y(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),o(),c(e.showFirstLastButtons?6:-1),o(),p("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),m("aria-label",e._intl.previousPageLabel),o(3),p("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),m("aria-label",e._intl.nextPageLabel),o(3),c(e.showFirstLastButtons?13:-1))},dependencies:[q,K,J,W,Y],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}
|
|
1
|
+
import{a as K,b as Q}from"./chunk-E4Z7OR75.js";import{c as J}from"./chunk-PNITO7BE.js";import{b as W,d as X}from"./chunk-E4KNET2R.js";import{f as q}from"./chunk-KALG6D6L.js";import{r as Y,s as Z}from"./chunk-IHNN4Q2N.js";import{C as H}from"./chunk-EQIFZBRG.js";import{Aa as h,Ba as F,Fc as j,Gb as E,Gc as x,Hb as R,Hc as $,Ic as y,Ka as A,Mb as f,Xb as m,Yb as p,dc as c,f as M,fc as N,gc as V,h as D,hc as G,ic as n,ja as O,jc as r,jd as U,ka as w,kc as v,ma as L,oc as z,od as I,pa as u,pd as P,qa as k,ra as B,rb as o,tc as d,uc as l,ya as _,za as b}from"./chunk-B7KTCPKC.js";function tt(i,g){if(i&1&&(n(0,"mat-option",17),x(1),r()),i&2){let t=g.$implicit;p("value",t),o(),y(" ",t," ")}}function et(i,g){if(i&1){let t=z();n(0,"mat-form-field",14)(1,"mat-select",16,0),d("selectionChange",function(e){_(t);let s=l(2);return b(s._changePageSize(e.value))}),V(3,tt,2,2,"mat-option",17,N),r(),n(5,"div",18),d("click",function(){_(t);let e=j(2);return b(e.open())}),r()()}if(i&2){let t=l(2);p("appearance",t._formFieldAppearance)("color",t.color),o(),p("value",t.pageSize)("disabled",t.disabled)("aria-labelledby",t._pageSizeLabelId)("panelClass",t.selectConfig.panelClass||"")("disableOptionCentering",t.selectConfig.disableOptionCentering),o(2),G(t._displayedPageSizeOptions)}}function it(i,g){if(i&1&&(n(0,"div",15),x(1),r()),i&2){let t=l(2);o(),$(t.pageSize)}}function at(i,g){if(i&1&&(n(0,"div",3)(1,"div",13),x(2),r(),f(3,et,6,7,"mat-form-field",14)(4,it,2,1,"div",15),r()),i&2){let t=l();o(),m("id",t._pageSizeLabelId),o(),y(" ",t._intl.itemsPerPageLabel," "),o(),c(t._displayedPageSizeOptions.length>1?3:-1),o(),c(t._displayedPageSizeOptions.length<=1?4:-1)}}function nt(i,g){if(i&1){let t=z();n(0,"button",19),d("click",function(){_(t);let e=l();return b(e._buttonClicked(0,e._previousButtonsDisabled()))}),h(),n(1,"svg",8),v(2,"path",20),r()()}if(i&2){let t=l();p("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("disabled",t._previousButtonsDisabled())("tabindex",t._previousButtonsDisabled()?-1:null),m("aria-label",t._intl.firstPageLabel)}}function ot(i,g){if(i&1){let t=z();n(0,"button",21),d("click",function(){_(t);let e=l();return b(e._buttonClicked(e.getNumberOfPages()-1,e._nextButtonsDisabled()))}),h(),n(1,"svg",8),v(2,"path",22),r()()}if(i&2){let t=l();p("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("disabled",t._nextButtonsDisabled())("tabindex",t._nextButtonsDisabled()?-1:null),m("aria-label",t._intl.lastPageLabel)}}var T=(()=>{class i{changes=new M;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(t,a,e)=>{if(e==0||a==0)return`0 of ${e}`;e=Math.max(e,0);let s=t*a,S=s<e?Math.min(s+a,e):s+a;return`${s+1} \u2013 ${S} of ${e}`};static \u0275fac=function(a){return new(a||i)};static \u0275prov=O({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function rt(i){return i||new T}var st={provide:T,deps:[[new k,new B,T]],useFactory:rt},lt=50;var pt=new L("MAT_PAGINATOR_DEFAULT_OPTIONS"),dt=(()=>{class i{_intl=u(T);_changeDetectorRef=u(U);_formFieldAppearance;_pageSizeLabelId=u(H).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new D(1);color;get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(a=>P(a,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new A;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let t=this._intl,a=u(pt,{optional:!0});if(this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),a){let{pageSize:e,pageSizeOptions:s,hidePageSize:S,showFirstLastButtons:C}=a;e!=null&&(this._pageSize=e),s!=null&&(this._pageSizeOptions=s),S!=null&&(this.hidePageSize=S),C!=null&&(this.showFirstLastButtons=C)}this._formFieldAppearance=a?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndex<t&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){let a=this.pageIndex*this.pageSize,e=this.pageIndex;this.pageIndex=Math.floor(a/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:lt),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,a)=>t-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(t){let a=this.pageIndex;t!==a&&(this.pageIndex=t,this._emitPageEvent(a))}_buttonClicked(t,a){a||this._navigate(t)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=E({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",P],length:[2,"length","length",P],pageSize:[2,"pageSize","pageSize",P],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",I],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",I],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",I]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,e){a&1&&(n(0,"div",1)(1,"div",2),f(2,at,5,4,"div",3),n(3,"div",4)(4,"div",5),x(5),r(),f(6,nt,3,5,"button",6),n(7,"button",7),d("click",function(){return e._buttonClicked(e.pageIndex-1,e._previousButtonsDisabled())}),h(),n(8,"svg",8),v(9,"path",9),r()(),F(),n(10,"button",10),d("click",function(){return e._buttonClicked(e.pageIndex+1,e._nextButtonsDisabled())}),h(),n(11,"svg",8),v(12,"path",11),r()(),f(13,ot,3,5,"button",12),r()()()),a&2&&(o(2),c(e.hidePageSize?-1:2),o(3),y(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),o(),c(e.showFirstLastButtons?6:-1),o(),p("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),m("aria-label",e._intl.previousPageLabel),o(3),p("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),m("aria-label",e._intl.nextPageLabel),o(3),c(e.showFirstLastButtons?13:-1))},dependencies:[q,K,J,W,Y],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return i})(),Mt=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=R({type:i});static \u0275inj=w({providers:[st],imports:[X,Q,Z,dt]})}return i})();export{dt as a,Mt as b};
|