marketplacepos 5.50.1 → 5.50.3
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 +26 -26
- package/Marketplace/{chunk-5C24BA5F.js → chunk-2EGTHH3W.js} +1 -1
- package/Marketplace/{chunk-3PIHLKK3.js → chunk-2FB6QJKT.js} +1 -1
- package/Marketplace/{chunk-Z6LN3X5Q.js → chunk-2KQKQSUI.js} +1 -1
- package/Marketplace/{chunk-O3QPBAV5.js → chunk-2OKZEOBU.js} +1 -1
- package/Marketplace/{chunk-2AXBEVQ7.js → chunk-2WQLSGW3.js} +1 -1
- package/Marketplace/{chunk-VH7JZJ2B.js → chunk-2Y3L7QOV.js} +1 -1
- package/Marketplace/{chunk-RZ5N5JLA.js → chunk-2ZKHC4YC.js} +1 -1
- package/Marketplace/{chunk-SIPZP62B.js → chunk-32IYUV7P.js} +1 -1
- package/Marketplace/{chunk-TKZ74HJD.js → chunk-36645CIP.js} +1 -1
- package/Marketplace/{chunk-FOKLBUX6.js → chunk-3NCMRK7E.js} +1 -1
- package/Marketplace/{chunk-RWPLFNHT.js → chunk-3PUUKJCQ.js} +1 -1
- package/Marketplace/{chunk-QMHG3QTI.js → chunk-3T5VLB63.js} +1 -1
- package/Marketplace/{chunk-KR6UNAIL.js → chunk-3WGAMHZW.js} +1 -1
- package/Marketplace/{chunk-YUPBZXLS.js → chunk-3YUIOGNI.js} +1 -1
- package/Marketplace/{chunk-G4T4VM5E.js → chunk-4GV67OQR.js} +1 -1
- package/Marketplace/chunk-53ZGHR7J.js +1 -0
- package/Marketplace/{chunk-YQZHIZHO.js → chunk-56NTLHVB.js} +1 -1
- package/Marketplace/chunk-5NWJOQN5.js +1 -0
- package/Marketplace/{chunk-YAWT3CLI.js → chunk-6F37VT6M.js} +1 -1
- package/Marketplace/{chunk-BMOMTOEW.js → chunk-6H7M43WO.js} +1 -1
- package/Marketplace/{chunk-44KIXUU2.js → chunk-6MUVEZMQ.js} +1 -1
- package/Marketplace/{chunk-IM7YH54S.js → chunk-6O446YFR.js} +1 -1
- package/Marketplace/{chunk-ZDBFIPDM.js → chunk-6Q4BDCI5.js} +1 -1
- package/Marketplace/{chunk-WAXAIL2I.js → chunk-6UM4NHOR.js} +1 -1
- package/Marketplace/{chunk-J6HA4ZHH.js → chunk-75IM3UUA.js} +1 -1
- package/Marketplace/{chunk-VP3XO25X.js → chunk-76AVMRJU.js} +1 -1
- package/Marketplace/{chunk-YMAKW4QT.js → chunk-7E4ZSLPD.js} +1 -1
- package/Marketplace/{chunk-TDMNVEUU.js → chunk-7T5DBPDP.js} +1 -1
- package/Marketplace/{chunk-IV5IPY6H.js → chunk-7VJ22OLT.js} +1 -1
- package/Marketplace/{chunk-Y3O22N4P.js → chunk-A6SP65CH.js} +1 -1
- package/Marketplace/{chunk-RN5CI3LE.js → chunk-BCK2GY66.js} +1 -1
- package/Marketplace/{chunk-DPB2343S.js → chunk-BTCNW6N3.js} +1 -1
- package/Marketplace/{chunk-ALLZQ6Y3.js → chunk-BTJN72MC.js} +1 -1
- package/Marketplace/{chunk-C2LAQOUW.js → chunk-BZWZ64N5.js} +1 -1
- package/Marketplace/{chunk-BC6LHZWP.js → chunk-C37O5TBF.js} +1 -1
- package/Marketplace/{chunk-DDFP4CNP.js → chunk-C4MTEDSW.js} +1 -1
- package/Marketplace/{chunk-6NS3D6KQ.js → chunk-C67KF7MG.js} +1 -1
- package/Marketplace/{chunk-TDP3PQDA.js → chunk-CBULW22C.js} +1 -1
- package/Marketplace/{chunk-MIGPO7BO.js → chunk-CFJAZJYY.js} +1 -1
- package/Marketplace/{chunk-6GNIJWEX.js → chunk-CGDIULPW.js} +1 -1
- package/Marketplace/chunk-CGSMHTKB.js +2 -0
- package/Marketplace/{chunk-A53NYS6S.js → chunk-CIVDQKQZ.js} +1 -1
- package/Marketplace/{chunk-B5ZK5TGW.js → chunk-CIWFLDCI.js} +1 -1
- package/Marketplace/{chunk-BAW6PICI.js → chunk-CKFHJ3IS.js} +1 -1
- package/Marketplace/{chunk-H6YNHOUQ.js → chunk-CQBHWYUO.js} +1 -1
- package/Marketplace/{chunk-V6QH3IVL.js → chunk-CUSAKJLC.js} +1 -1
- package/Marketplace/{chunk-N3E43QWK.js → chunk-CVHFVFZQ.js} +1 -1
- package/Marketplace/{chunk-MM7SAZOU.js → chunk-D6JH2KV4.js} +1 -1
- package/Marketplace/{chunk-EH3PIGLJ.js → chunk-DE3FRI5N.js} +1 -1
- package/Marketplace/{chunk-ESBL3IFN.js → chunk-DIDUSCV7.js} +1 -1
- package/Marketplace/{chunk-4KGXKQPG.js → chunk-DMENVSHH.js} +1 -1
- package/Marketplace/{chunk-52YCKO3Z.js → chunk-E7LOFZQV.js} +1 -1
- package/Marketplace/{chunk-UB62TZOI.js → chunk-ET33HPF3.js} +1 -1
- package/Marketplace/{chunk-NTU64XT4.js → chunk-EV6TBBSW.js} +1 -1
- package/Marketplace/{chunk-UMMQ62IZ.js → chunk-FBXKHJ2G.js} +1 -1
- package/Marketplace/{chunk-RHMSGY7X.js → chunk-FDVRSAF3.js} +1 -1
- package/Marketplace/{chunk-QQF5ZMGS.js → chunk-FH2KAM6J.js} +1 -1
- package/Marketplace/{chunk-MAQQQB3T.js → chunk-FMZLGD5H.js} +1 -1
- package/Marketplace/{chunk-GJC736LV.js → chunk-FO75JP2L.js} +1 -1
- package/Marketplace/{chunk-AJSJJV2I.js → chunk-FPJTI4LM.js} +1 -1
- package/Marketplace/{chunk-RFWRWMRC.js → chunk-FS3VTRY2.js} +1 -1
- package/Marketplace/{chunk-Z2XRGVGT.js → chunk-FSOZOROI.js} +1 -1
- package/Marketplace/{chunk-UMLV2ZUF.js → chunk-GLBJ4Y4T.js} +1 -1
- package/Marketplace/{chunk-YX65R6YJ.js → chunk-GLQBRY2Y.js} +1 -1
- package/Marketplace/{chunk-2NRHX6CZ.js → chunk-GNXSEYJF.js} +1 -1
- package/Marketplace/{chunk-FLNIURLD.js → chunk-GQT5IVF5.js} +1 -1
- package/Marketplace/{chunk-HGVFXR6T.js → chunk-HAZ7U3MT.js} +1 -1
- package/Marketplace/{chunk-AQVMOA6Z.js → chunk-HBWX22FY.js} +1 -1
- package/Marketplace/chunk-HHDJUCIT.js +1 -0
- package/Marketplace/{chunk-S5XYWXXP.js → chunk-HMDHDMIC.js} +1 -1
- package/Marketplace/{chunk-JYSOUJ42.js → chunk-HWMXSD34.js} +1 -1
- package/Marketplace/{chunk-OCXIDX74.js → chunk-I6YNUCDO.js} +1 -1
- package/Marketplace/{chunk-5WT456T7.js → chunk-IA7NJXJD.js} +1 -1
- package/Marketplace/{chunk-7QP3VZ6H.js → chunk-INSRQ7YT.js} +1 -1
- package/Marketplace/{chunk-TOK5EWN4.js → chunk-IQGRGC3E.js} +1 -1
- package/Marketplace/{chunk-TYQYNICX.js → chunk-IQX2CRL5.js} +1 -1
- package/Marketplace/{chunk-QMIL5QUX.js → chunk-ITY2KKS5.js} +1 -1
- package/Marketplace/{chunk-PBAFAOKJ.js → chunk-IXURR6VG.js} +1 -1
- package/Marketplace/{chunk-O4D64GHO.js → chunk-IZZY74PN.js} +1 -1
- package/Marketplace/{chunk-QJCYEP2A.js → chunk-J3XO6ZVT.js} +1 -1
- package/Marketplace/{chunk-VZ7Q4WN7.js → chunk-JEJHGIUU.js} +1 -1
- package/Marketplace/{chunk-ENYJ4KAM.js → chunk-JG7M73IA.js} +1 -1
- package/Marketplace/{chunk-KSRL7Y2J.js → chunk-JHSG3KRS.js} +1 -1
- package/Marketplace/{chunk-LUJ3SHSP.js → chunk-JKRELT7N.js} +1 -1
- package/Marketplace/{chunk-BXNDE6NQ.js → chunk-JLDXWNDU.js} +1 -1
- package/Marketplace/{chunk-RBZU7OVM.js → chunk-JMRRXRKO.js} +1 -1
- package/Marketplace/{chunk-OSGPJXJZ.js → chunk-JPWGFXZT.js} +1 -1
- package/Marketplace/{chunk-SPLGZRGH.js → chunk-JRCXHF2X.js} +1 -1
- package/Marketplace/{chunk-RXC5D64C.js → chunk-JTKEMQZT.js} +1 -1
- package/Marketplace/{chunk-NVPT5BF2.js → chunk-JU4ZP3HI.js} +1 -1
- package/Marketplace/{chunk-6C4UBIZK.js → chunk-K4Q33QIR.js} +1 -1
- package/Marketplace/{chunk-OVZRFDFO.js → chunk-KDJVMFOK.js} +1 -1
- package/Marketplace/{chunk-QOSWDELZ.js → chunk-KKQ32Z72.js} +1 -1
- package/Marketplace/{chunk-KNBXCPTA.js → chunk-KMNWLBEP.js} +1 -1
- package/Marketplace/{chunk-KTTKHI2N.js → chunk-KNE2UYQ2.js} +1 -1
- package/Marketplace/{chunk-SABMHH6B.js → chunk-KOQLZV3N.js} +1 -1
- package/Marketplace/{chunk-PN3KM4M4.js → chunk-KOUB5HRK.js} +1 -1
- package/Marketplace/{chunk-MTVUPPAN.js → chunk-L4EPB2CQ.js} +1 -1
- package/Marketplace/{chunk-SMZOSLIK.js → chunk-L6CRWJ2O.js} +1 -1
- package/Marketplace/{chunk-G3B6ETBU.js → chunk-LZHM5AMX.js} +1 -1
- package/Marketplace/{chunk-4S4BOPUV.js → chunk-M27MYADT.js} +1 -1
- package/Marketplace/{chunk-GVJLKDIO.js → chunk-MAT6VW43.js} +1 -1
- package/Marketplace/{chunk-P3XVM6DH.js → chunk-MHIYVGFS.js} +1 -1
- package/Marketplace/{chunk-M3DUXHYE.js → chunk-MORMHJFP.js} +1 -1
- package/Marketplace/{chunk-JM3NLPH4.js → chunk-MS5NHG4Z.js} +1 -1
- package/Marketplace/{chunk-GG3X4R7G.js → chunk-MSSRROS6.js} +1 -1
- package/Marketplace/{chunk-KUKTPGJ2.js → chunk-MYJZFEAZ.js} +1 -1
- package/Marketplace/{chunk-LQ3VUWFK.js → chunk-MZWP4SZF.js} +2 -2
- package/Marketplace/{chunk-TMBZ4K5S.js → chunk-N4MYHIMN.js} +1 -1
- package/Marketplace/{chunk-5UFP37GQ.js → chunk-NB2H6KA7.js} +1 -1
- package/Marketplace/{chunk-GDHNMHJZ.js → chunk-NGQFZI6A.js} +1 -1
- package/Marketplace/{chunk-YD6BNJ2B.js → chunk-NJNRUDU6.js} +1 -1
- package/Marketplace/{chunk-7R2D2JZ6.js → chunk-O3BS4AC6.js} +1 -1
- package/Marketplace/{chunk-O4U34AC7.js → chunk-OH5T7D7O.js} +1 -1
- package/Marketplace/{chunk-W33M7S2S.js → chunk-OHAT7WXU.js} +1 -1
- package/Marketplace/{chunk-IDGK6BMG.js → chunk-PCOAEOIL.js} +1 -1
- package/Marketplace/{chunk-M7TUSCXB.js → chunk-PFP5WMC3.js} +1 -1
- package/Marketplace/chunk-PHVEBMTE.js +1 -0
- package/Marketplace/{chunk-JV4F6ZYF.js → chunk-PKYMYIGB.js} +1 -1
- package/Marketplace/{chunk-YABJCAAL.js → chunk-PUSOOHGT.js} +1 -1
- package/Marketplace/{chunk-XLQGQESJ.js → chunk-PV4OJSZI.js} +1 -1
- package/Marketplace/{chunk-FFJXYPVA.js → chunk-Q44OVAQU.js} +1 -1
- package/Marketplace/{chunk-WIRBYT7F.js → chunk-QETZ5VDX.js} +1 -1
- package/Marketplace/{chunk-BYL4N2KB.js → chunk-QJASIA27.js} +1 -1
- package/Marketplace/{chunk-WIBWF333.js → chunk-QJH7APJQ.js} +1 -1
- package/Marketplace/{chunk-IIJEILDV.js → chunk-QJU2YGUH.js} +1 -1
- package/Marketplace/{chunk-GBF6A3MS.js → chunk-QWEMPIP7.js} +1 -1
- package/Marketplace/{chunk-FMXX7QB5.js → chunk-QZMWXAUJ.js} +1 -1
- package/Marketplace/{chunk-2ST3DMR6.js → chunk-R2XKB6UH.js} +1 -1
- package/Marketplace/{chunk-PWOKOWVV.js → chunk-RIIIECQH.js} +1 -1
- package/Marketplace/{chunk-24KZDZKS.js → chunk-RO7WOCSA.js} +1 -1
- package/Marketplace/{chunk-FEQXCPQI.js → chunk-RPHZK33A.js} +1 -1
- package/Marketplace/{chunk-MV2PLTWF.js → chunk-RRRPWDKB.js} +1 -1
- package/Marketplace/{chunk-OGF4VFSK.js → chunk-RZXE2MFY.js} +1 -1
- package/Marketplace/{chunk-WVA5LYVE.js → chunk-S22I47XG.js} +1 -1
- package/Marketplace/chunk-S2ZFBPPJ.js +1 -0
- package/Marketplace/{chunk-2K5AP6IZ.js → chunk-S3H2JVI7.js} +1 -1
- package/Marketplace/{chunk-BUMWMFHU.js → chunk-SNRWOTPO.js} +1 -1
- package/Marketplace/{chunk-NIJCYMZM.js → chunk-STOW2RQN.js} +1 -1
- package/Marketplace/{chunk-HORS2MKK.js → chunk-T5NCGRUA.js} +1 -1
- package/Marketplace/{chunk-JYP3Z3TV.js → chunk-TOPYLZOF.js} +1 -1
- package/Marketplace/{chunk-3HME327V.js → chunk-TQROQOXU.js} +1 -1
- package/Marketplace/{chunk-TZTW72NT.js → chunk-TUY6YGYA.js} +1 -1
- package/Marketplace/{chunk-AHMFSCTX.js → chunk-TVEI5B2O.js} +1 -1
- package/Marketplace/{chunk-R3WIWDSP.js → chunk-TYSM3R5E.js} +1 -1
- package/Marketplace/{chunk-NQLMPUSB.js → chunk-UB3ZV5NW.js} +1 -1
- package/Marketplace/{chunk-A2RTZANN.js → chunk-UDNUDL5Z.js} +1 -1
- package/Marketplace/{chunk-YNL43MLU.js → chunk-UEXWQT5J.js} +1 -1
- package/Marketplace/{chunk-UE5E7JXK.js → chunk-UMIGDHOS.js} +1 -1
- package/Marketplace/{chunk-ZRTUQNSQ.js → chunk-UMJVPGHV.js} +1 -1
- package/Marketplace/{chunk-HNDBAXI5.js → chunk-UWKDFRVX.js} +1 -1
- package/Marketplace/{chunk-4G46574H.js → chunk-VA7NXG7X.js} +1 -1
- package/Marketplace/{chunk-5QDH4ZNS.js → chunk-VBQKMNR3.js} +1 -1
- package/Marketplace/{chunk-6F62N7RZ.js → chunk-VG66LDXQ.js} +1 -1
- package/Marketplace/{chunk-MT3CWRVG.js → chunk-VVNLTDLG.js} +1 -1
- package/Marketplace/{chunk-ZGIYCORM.js → chunk-VYI7JYH5.js} +1 -1
- package/Marketplace/{chunk-X52ZT4MU.js → chunk-WAZWPRUG.js} +1 -1
- package/Marketplace/chunk-WD3ADLM3.js +1 -0
- package/Marketplace/chunk-WIRXMAIF.js +1 -0
- package/Marketplace/{chunk-IVKFEOCB.js → chunk-WTHYLNPX.js} +1 -1
- package/Marketplace/{chunk-YYV4FSYQ.js → chunk-X2CTSYKS.js} +1 -1
- package/Marketplace/{chunk-LYN2PNQK.js → chunk-X2WAAZ7G.js} +1 -1
- package/Marketplace/{chunk-2UNT2DUM.js → chunk-XCGXT3P7.js} +1 -1
- package/Marketplace/{chunk-IF7EJSQG.js → chunk-XHWASSX2.js} +1 -1
- package/Marketplace/{chunk-67LUKQJC.js → chunk-XMU7MXAM.js} +1 -1
- package/Marketplace/{chunk-7X4B2T6C.js → chunk-XTNXL2IY.js} +1 -1
- package/Marketplace/{chunk-7HRL6MHY.js → chunk-XW5PNJJ3.js} +1 -1
- package/Marketplace/{chunk-TYNQDFOT.js → chunk-XYRET5HT.js} +1 -1
- package/Marketplace/{chunk-U5DJYZUI.js → chunk-XYZI7ZXN.js} +1 -1
- package/Marketplace/{chunk-E4RY2MK5.js → chunk-YCKLOFMA.js} +1 -1
- package/Marketplace/{chunk-HJZ3XPSH.js → chunk-YDNXBOLU.js} +1 -1
- package/Marketplace/{chunk-FNOENLVR.js → chunk-YEU5TPRD.js} +1 -1
- package/Marketplace/{chunk-34ZZ4GCS.js → chunk-YLQBIIZH.js} +1 -1
- package/Marketplace/{chunk-4YKPN3RV.js → chunk-YQPAS2RI.js} +1 -1
- package/Marketplace/{chunk-LKJCOEGO.js → chunk-YZQDWPFY.js} +1 -1
- package/Marketplace/chunk-Z3PLQ27X.js +1 -0
- package/Marketplace/{chunk-OIWQSDTS.js → chunk-Z3YSNML6.js} +1 -1
- package/Marketplace/{chunk-LQPY6AYJ.js → chunk-Z4RYN6X5.js} +1 -1
- package/Marketplace/chunk-ZLJBRQ5V.js +1 -0
- package/Marketplace/{chunk-VVAEM355.js → chunk-ZM7ND6FE.js} +1 -1
- package/Marketplace/{chunk-5WQ3LCWP.js → chunk-ZZYFVEJO.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-RFMKGIMO.js → main-7TBLEURN.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-3NAMEVOB.js +0 -1
- package/Marketplace/chunk-EGLM6YK5.js +0 -1
- package/Marketplace/chunk-FTIUJUXI.js +0 -1
- package/Marketplace/chunk-JNRCB7N3.js +0 -2
- package/Marketplace/chunk-S5D64XYA.js +0 -1
- package/Marketplace/chunk-SN5AD4QE.js +0 -1
- package/Marketplace/chunk-VV4G5VL5.js +0 -1
- package/Marketplace/chunk-ZWUYPYHD.js +0 -1
- package/Marketplace/chunk-ZXP3XYSZ.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as G,b as U}from"./chunk-VG66LDXQ.js";import{a as R,b as $,d as ft,e as ut,f as ht,g as Ct,i as N,j as _t}from"./chunk-IA7NJXJD.js";import{a as L}from"./chunk-UEXWQT5J.js";import{c as Mt}from"./chunk-R2XKB6UH.js";import{a as at}from"./chunk-UDNUDL5Z.js";import{f as ot}from"./chunk-CVHFVFZQ.js";import{c as gt}from"./chunk-IZZY74PN.js";import{a as ct}from"./chunk-AGBJEXIM.js";import{b as v,c as lt}from"./chunk-UPRDDI4K.js";import{A as st,h as mt,m as pt}from"./chunk-6UM4NHOR.js";import{b as rt,e as dt}from"./chunk-D6JH2KV4.js";import{A as it,B as A,q as F}from"./chunk-CGSMHTKB.js";import{Ac as E,Hb as S,Ia as w,Jc as X,Nc as c,Oc as T,Pc as b,Rc as Z,Sc as tt,Tc as et,_b as H,ac as h,ad as V,bd as W,cc as C,dc as z,dd as nt,ec as J,fc as I,gc as D,hc as m,ic as l,id as B,jc as r,jd as j,kc as g,lb as q,mb as k,ob as d,ra as _,rc as x,tb as P,wc as u,ya as M,yc as p,za as y,zc as Q}from"./chunk-OHGMB7HJ.js";var O=(function(e){return e.Tokopedia="https://seller.tokopedia.com",e.Shoope="https://seller.shopee.co.id",e.Tiktok="https://seller-id.tiktok.com",e.WooCommerce="https://woocommerce.dealpos.app",e.Lazada="https://sellercenter.lazada.co.id",e})(O||{});var K={Success:"Success",Info:"Info",Warning:"Warning",Error:"Error"};var Tt=[[["header"]],[["content"]],[["footer"]]],vt=["header","content","footer"],Ot=(e,o)=>({bodyScrollable:e,hideScrollbar:o}),kt=(e,o,t,a)=>({"bg-success":e,"bg-warning":o,"bg-info":t,"bg-danger":a}),St=e=>({"mx-auto":e}),wt=(e,o)=>({"show-footer":e,"p-0":o});function Pt(e,o){if(e&1){let t=x();l(0,"div",7),u("click",function(){M(t);let i=p();return y(i.onBack.emit())}),l(1,"a",8),g(2,"i",9),r()()}}function It(e,o){if(e&1){let t=x();l(0,"div")(1,"a",10),u("click",function(){M(t);let i=p();return y(i.onClose.emit())}),g(2,"i",11),r()()}}function Dt(e,o){if(e&1){let t=x();l(0,"a",14),u("click",function(){M(t);let i=p(2);return y(i.onCancel.emit())}),c(1),r()}if(e&2){let t=p(2);d(),b(" ",t.config!=null&&t.config.cancelText?t.config==null?null:t.config.cancelText:"Cancel")}}function Et(e,o){if(e&1){let t=x();l(0,"button",15),u("click",function(){M(t);let i=p(2);return y(i.onOk.emit())})("keyup.F2",function(){M(t);let i=p(2);return y(i.onOk.emit())}),r()}if(e&2){let t=p(2);m("disabled",!(t.config!=null&&t.config.validated)||!t.dynamicValidated)("innerHTML",t.config!=null&&t.config.okText?t.config==null?null:t.config.okText:"Ok (F2)",q)}}function Vt(e,o){if(e&1&&(l(0,"mat-dialog-actions",6),E(1,2),h(2,Dt,2,1,"a",12),h(3,Et,1,2,"button",13),r()),e&2){let t=p();d(2),C(t.config!=null&&t.config.hideCancel?-1:2),d(),C(t.config!=null&&t.config.hideOk?-1:3)}}var Y=class{constructor(){this.title="New Modal",this.okText="Ok (F2)",this.cancelText="Cancel",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=K.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.noPadding=!1}},bt=(()=>{let o=class o{constructor(){this.dynamicValidated=!0,this.onOk=new P,this.onCancel=new P,this.onClose=new P,this.onBack=new P,this.headerType=K}ngOnInit(){this.config==null&&(this.config=new Y)}onKeyup(a){this.config?.disableKeyup||(a.code=="F2"&&this.onOk.emit("F2"),(a.code=="Enter"||a.code=="NumpadEnter")&&this.onOk.emit("Enter"))}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=S({type:o,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:vt,decls:11,vars:23,consts:[["id","modal_material",1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"keyup","ngClass"],["mat-dialog-title","",1,"d-flex","w-100","justify-content-between","modal-header","position-relative",3,"ngClass"],[1,"back-button","position-absolute","pointer","d-print-none"],[1,"d-flex","flex-row","d-print-none","align-items-center",3,"ngClass"],[1,"fw-normal"],[1,"modal-body","w-100",3,"ngClass"],[1,"w-100","py-7","border-top","d-flex","justify-content-end","d-print-none"],[1,"back-button","position-absolute","pointer","d-print-none",3,"click"],[1,"btn","back-button"],[1,"fa-solid","fa-arrow-left"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fa-solid","fa-xmark","fa-lg","text-primary"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3"],["data-cy","btn-ok",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"disabled","innerHTML"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],["data-cy","btn-ok",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"click","keyup.F2","disabled","innerHTML"]],template:function(i,n){i&1&&(Q(Tt),l(0,"div",0),u("keyup",function(f){return n.onKeyup(f)}),l(1,"div",1),h(2,Pt,3,0,"div",2),l(3,"div",3)(4,"h4",4),c(5),r(),E(6),r(),h(7,It,3,0,"div"),r(),l(8,"mat-dialog-content",5),E(9,1),r(),h(10,Vt,4,2,"mat-dialog-actions",6),r()),i&2&&(X("width",n.config==null?null:n.config.customWidth),m("ngClass",W(10,Ot,n.config==null?null:n.config.bodyScrollable,n.config==null?null:n.config.hideScrollbar)),d(),m("ngClass",nt(13,kt,n.headerType.Success==(n.config==null?null:n.config.headerType),n.headerType.Warning==(n.config==null?null:n.config.headerType),n.headerType.Info==(n.config==null?null:n.config.headerType),n.headerType.Error==(n.config==null?null:n.config.headerType))),d(),C(n.config!=null&&n.config.eMoney?2:-1),d(),m("ngClass",V(18,St,n.config==null?null:n.config.eMoney)),d(2),T(n.config==null?null:n.config.title),d(2),C(n.config!=null&&n.config.hideClose?-1:7),d(),m("ngClass",W(20,wt,!(n.config!=null&&n.config.hideFooter),n.config==null?null:n.config.noPadding)),d(2),C(n.config!=null&&n.config.hideFooter?-1:10))},dependencies:[A,F,Ct,ft,ht,ut],styles:[".mat-mdc-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-mdc-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-mdc-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:15px!important}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}@media (max-width: 576px){ .dialog-filter .modal-material{width:100%!important} .dialog-filter mat-dialog-actions{position:sticky;bottom:0;background:#fff} .dialog-filter .modal-material.d-flex.align-items-start.flex-column.position-relative.maxHeight.bodyScrollable.maxHeight.bodyScrollable .modal-body{max-height:100%!important;overflow-y:auto}}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px;overflow-y:auto}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border:1px solid #c8d3df;padding:5px 7px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]});let e=o;return e})();var Ft=e=>({"is-disabled":e});function At(e,o){if(e&1&&(l(0,"tr")(1,"td",8),c(2),r(),l(3,"td",8),c(4),r(),l(5,"td",9)(6,"p",10),c(7,"Product Not in Channel!"),r()()()),e&2){let t=p().$implicit;d(2),b(" ",t==null?null:t.Model," "),d(2),b(" ",t==null?null:t.Code," ")}}function Lt(e,o){if(e&1&&(l(0,"td",8),c(1),r()),e&2){let t=p(3).$implicit;H("rowspan",t.Channel.length),d(),b(" ",t==null?null:t.Model," ")}}function Rt(e,o){if(e&1&&(l(0,"td",8),c(1),r()),e&2){let t=p(3).$implicit;H("rowspan",t.Channel.length),d(),b(" ",t==null?null:t.Code," ")}}function $t(e,o){if(e&1){let t=x();l(0,"tr"),h(1,Lt,2,2,"td",8),h(2,Rt,2,2,"td",8),l(3,"td",8)(4,"div",11)(5,"a",12),g(6,"img",13),r(),l(7,"div",14),c(8),r()()(),l(9,"td",8),c(10),B(11,"number"),r(),l(12,"td",15),c(13),B(14,"number"),r(),l(15,"td",16)(16,"div",17)(17,"button",18),u("click",function(){let i=M(t).$implicit,n=p(2).$implicit,s=p();return y(s.onDetach(i,n))}),g(18,"i",19),l(19,"span",20),c(20,"Detach"),r()(),l(21,"a",21),g(22,"i",22),l(23,"span",20),c(24,"Edit"),r()()()()()}if(e&2){let t=o.$implicit,a=o.$index,i=p(3);d(),C(a==0?1:-1),d(),C(a==0?2:-1),d(3),m("href",t.Url,k)("title",t.Title),d(),m("src",i.getChannelLogo(t.TypeID),k),d(),m("matTooltip",(t==null||t.Name==null?null:t.Name.length)>40?t==null?null:t.Name:""),d(),b(" ",t.Name," "),d(2),T(j(11,12,t.Price)),d(3),T(j(14,14,t.Inventory)),d(8),m("href",i.getHyperlinkSellerCenter(t),k)("ngClass",V(16,Ft,t.TypeID==i.channelType.KalCare))("matTooltip",t.TypeID!=i.channelType.KalCare?"Edit this product in Seller Center, inventory changes must be done via DEALPOS":"")}}function Nt(e,o){if(e&1&&I(0,$t,25,18,"tr",null,z),e&2){let t=p().$implicit;D(t==null?null:t.Channel)}}function Ht(e,o){if(e&1&&h(0,At,8,2,"tr")(1,Nt,2,0),e&2){let t=o.$implicit;C(!t.Channel||t.Channel.length<1?0:1)}}var fe=(()=>{let o=class o{constructor(){this.data=_($),this.dialogRef=_(R),this.httpService=_(dt),this.toastr=_(rt),this.variants=w([]),this.channelType=v;let a=this.data;this.variants.set(this.data.variants),this.title=a.title}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new N,this.modalConfig.title=this.data.title,this.modalConfig.bodyScrollable=!0,this.modalConfig.hideFooter=!0,this.modalConfig.customWidth="850px"}onDetach(a,i){let n={ChannelID:a.ChannelID,ChannelItemID:a.ChannelItemID,ChannelVariationID:a.ChannelVariationID};this.httpService.post(ct.DetachVariant,[n]).subscribe(s=>{this.toastr.success(s.Message,"Success"),this.updateVariantAfterDetach(i,a.ChannelVariationID)})}updateVariantAfterDetach(a,i){this.variants.update(n=>{let s=n.findIndex(f=>f.ID===a.ID);return s!==-1&&(n[s].Channel=n[s].Channel.filter(f=>f.ChannelVariationID!==i)),[...n]})}getChannelLogo(a){return lt.getChannelLogoByTypeId(a)}getHyperlinkSellerCenter(a){let i="javascript:void(0)";switch(a.TypeID){case v.Shopee:i=`${O.Shoope}/portal/product/${a.ChannelItemID}`;break;case v.Tiktok:i=`${O.Tiktok}/product/edit/${a.ChannelItemID}`;break;case v.Tokopedia:i=`${O.Tokopedia}/edit-product/${a.ChannelItemID}`;break;case v.WooCommerce:i=`${O.WooCommerce}/wp-admin/post.php?post=${a.ChannelItemID}&action=edit`;break;case v.Lazada:i=`${O.Lazada}/apps/product/publish?productId=${a.ChannelItemID}`;break}return i}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=S({type:o,selectors:[["app-modal-variant"]],decls:27,vars:1,consts:[[3,"onClose","onCancel","config"],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"text-start","sticky-top"],[1,"d-flex","align-items-center"],["matTooltip","Variant from POS",1,"fas","fa-info-circle","ms-1"],["matTooltip","Product and Variant from each Channel",1,"fas","fa-info-circle","ms-1"],[1,"text-start","sticky-top",2,"width","0%"],[1,"text-start"],["colspan","3",1,"text-center"],[1,"my-auto"],[1,"d-flex"],["target","_blank",1,"me-1",3,"href","title"],[2,"width","20px","height","20px",3,"src"],[1,"text-ellipsis","ps-2",2,"max-width","18vw",3,"matTooltip"],[1,"text-center"],[1,"text-end"],[1,"d-flex","align-items-center","justify-content-end"],[1,"btn","btn-small","btn-light","px-4","py-2","me-3",3,"click"],[1,"fa-sharp","fa-link-slash","me-2",2,"font-size","10px"],[1,"fs-6"],["target","_blank",1,"btn","btn-small","btn-light","px-4","py-2",3,"href","ngClass","matTooltip"],[1,"fa-solid","fa-edit","me-2",2,"font-size","10px"]],template:function(i,n){i&1&&(l(0,"modal-material",0),u("onClose",function(){return n.dialogRef.close()})("onCancel",function(){return n.dialogRef.close()}),l(1,"content")(2,"table",1)(3,"thead",2)(4,"tr")(5,"th",3)(6,"div",4)(7,"span"),c(8,"VARIANT"),r(),l(9,"sup"),g(10,"i",5),r()()(),l(11,"th",3),c(12,"SKU"),r(),l(13,"th",3)(14,"div",4)(15,"span"),c(16,"PRODUCT"),r(),l(17,"sup"),g(18,"i",6),r()()(),l(19,"th",3),c(20,"PRICE"),r(),l(21,"th",7),c(22,"INVENTORY"),r(),g(23,"th",3),r()(),l(24,"tbody"),I(25,Ht,2,1,null,null,z),r()()()()),i&2&&(m("config",n.modalConfig),d(25),D(n.variants()))},dependencies:[A,F,L,gt,bt,it],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.sticky-top-thead[_ngcontent-%COMP%] th.sticky-top[_ngcontent-%COMP%]{top:0}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr.sticky-top[_ngcontent-%COMP%]{border:none!important;border-bottom:1px solid!important}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fff!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child:after{border-right:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:before{border-left:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:before{border-top:0px}a.is-disabled[_ngcontent-%COMP%]{color:gray;cursor:default}a.is-disabled[_ngcontent-%COMP%]:hover{text-decoration:none}"]});let e=o;return e})();function Wt(e,o){if(e&1&&(l(0,"mat-option",5)(1,"div"),g(2,"img",6),l(3,"span"),c(4),r()()()),e&2){let t=o.$implicit;m("value",t.ChannelID),d(2),m("src",t.logo,k),d(2),T(t.Title)}}var Le=(()=>{let o=class o{constructor(){this.dialogRef=_(R),this.channels=_($),this.channelIds=w([]),this.channelOptions=w([])}ngOnInit(){this.initModalConfig();let a=this.channels.filter((i,n,s)=>s.findIndex(f=>f.ChannelID===i.ChannelID)===n);this.channelOptions.set(a)}initModalConfig(){this.modalConfig=new N,this.modalConfig.title="Detach Product",this.modalConfig.okText="Save"}onClose(){this.dialogRef.close()}onSave(){let a=this.channels.filter(i=>this.channelIds().includes(i.ChannelID)).map(i=>({ChannelID:i.ChannelID,ChannelItemID:i.ChannelItemID}));this.dialogRef.close(a)}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=S({type:o,selectors:[["app-modal-detach-product"]],decls:9,vars:4,consts:[[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"mb-2","fw-bold"],["appearance","outline",1,"w-100"],["name","channelid","placeholder","Channel",1,"mat-select-channel",3,"ngModelChange","ngModel","multiple"],[1,"channel-option",3,"value"],[2,"width","18px","margin-right","10px",3,"src"]],template:function(i,n){i&1&&(l(0,"modal-material",0),u("onClose",function(){return n.onClose()})("onCancel",function(){return n.onClose()})("onOk",function(){return n.onSave()}),l(1,"div",1)(2,"div")(3,"label",2),c(4,"Select a Channel"),r(),l(5,"mat-form-field",3)(6,"mat-select",4),et("ngModelChange",function(f){return tt(n.channelIds,f)||(n.channelIds=f),f}),I(7,Wt,5,3,"mat-option",5,J),r()()()()()),i&2&&(m("dynamicValidated",n.channelIds().length>0)("config",n.modalConfig),d(6),Z("ngModel",n.channelIds),m("multiple",!0),d(),D(n.channelOptions()))},dependencies:[_t,at,ot,U,G,Mt,st,mt,pt,L],encapsulation:2});let e=o;return e})();export{fe as a,Le as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as P}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-C37O5TBF.js";import{b as B}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-D6JH2KV4.js";import{b as M,e as _,g as A}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{A as b,B as L,w as D,y as C,z as R}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as f,Nc as i,Oc as m,Pc as E,Z as S,ac as x,cc as g,hc as I,ic as e,id as l,jc as t,jd as c,kd as u,ob as a,ra as v,v as h}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(d,r){if(d&1&&(e(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"h5"),i(6,"General"),t()(),e(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"label"),i(12,"Created"),t(),e(13,"div")(14,"span"),i(15),l(16,"date"),t()()()(),e(17,"div",9)(18,"div",10)(19,"label"),i(20,"Duration"),t(),e(21,"div")(22,"span"),i(23),l(24,"number"),t()()()(),e(25,"div",9)(26,"div",10)(27,"label"),i(28,"Response Code"),t(),e(29,"div")(30,"span"),i(31),t()()()()()()()()(),e(32,"div",3)(33,"div",9)(34,"div",5)(35,"div",6)(36,"h5"),i(37,"Request"),t()(),e(38,"div",7)(39,"div",11)(40,"div",12)(41,"pre"),i(42),l(43,"json"),t()()()()()(),e(44,"div",9)(45,"div",5)(46,"div",6)(47,"h5"),i(48,"Response"),t()(),e(49,"div",7)(50,"div",13)(51,"div",12)(52,"pre"),i(53),l(54,"json"),t()()()()()()()()),d&2){let o=r;a(15),m(u(16,5,o==null?null:o._source["@timestamp"],"dd MMM yyyy HH:mm:ss")),a(8),E("",u(24,8,o==null?null:o.DurationInSecond,"1.1-1")," s"),a(8),m(o==null?null:o.respCode),a(11),m(c(43,11,o==null?null:o.req)),a(11),m(c(54,13,o==null?null:o.res))}}var z=(()=>{let r=class r{constructor(){this.inventoryAsyncServiceLog=v(P),this.activatedRoute=v(M)}ngOnInit(){let p=this.activatedRoute.snapshot.queryParams;this.initInventoryLog(p?.ID)}initInventoryLog(p){this.inventoryLog$=this.inventoryAsyncServiceLog.getInventoryAsyncLogDetail(p).pipe(h(n=>{let s=JSON.parse(n.hits[0]._source?.log?.response);return n.hits[0].DurationInSecond=parseInt(s.Duration)/1e3,n.hits[0].respCode=s?.StatusCode,n.hits[0].req=JSON.parse(n.hits[0]._source?.log?.request),n.hits[0].res=s,n?.hits[0]}),S(1))}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=f({type:r,selectors:[["app-inventory-async-detail"]],decls:7,vars:5,consts:[["headerTitle","Product Inventory Sync Detail",3,"hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/inventory",1,"btn","btn-secondary","btn-fill","btn-lg","me-2"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"col-sm-12"],[1,"form-group"],[1,"col-sm-12","mt-2"]],template:function(n,s){if(n&1&&(e(0,"mainpanel",0)(1,"actions")(2,"a",1),i(3,"Back"),t()(),e(4,"content"),x(5,q,55,15,"div",2),l(6,"async"),t()()),n&2){let y;I("hideSearchBox",!0)("hideSearchDropdown",!0),a(5),g((y=c(6,3,s.inventoryLog$))?5:-1,y)}},dependencies:[L,B,A,_,D,R,b,C],encapsulation:2});let d=r;return d})();export{z as InventoryAsyncDetailComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D,b as L,c as E}from"./chunk-
|
|
1
|
+
import{a as D,b as L,c as E}from"./chunk-S3H2JVI7.js";import{a as w}from"./chunk-PV4OJSZI.js";import"./chunk-A6QXXKPR.js";import{b}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-3SCX7IMW.js";import"./chunk-K4Q33QIR.js";import"./chunk-JRCXHF2X.js";import"./chunk-M27MYADT.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-R2XKB6UH.js";import"./chunk-RO7WOCSA.js";import"./chunk-3RK6DDJD.js";import"./chunk-UDNUDL5Z.js";import"./chunk-CVHFVFZQ.js";import"./chunk-ZC526ERX.js";import"./chunk-NJNRUDU6.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{c as u}from"./chunk-UPRDDI4K.js";import"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-D6JH2KV4.js";import"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{y as P}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as g,Nc as F,Rc as h,Sc as f,Tc as c,ac as T,cc as C,hc as p,ic as n,jc as l,kc as S,ob as d,ra as s,wc as v,yc as _}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function M(r,i){if(r&1&&(n(0,"div",6)(1,"div",7),S(2,"app-table-report",8),l()()),r&2){let m=_();d(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",1)}}var A=(()=>{let i=class i{constructor(){this.http=s(L),this.datePipe=s(P),this.filter=new D,this.PageTitle="Ready to Ship";let e=new Date;this.maxDate=e,this.minDate=u.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=u.formatTitleFromDate(this.filter.From,this.filter.To),a=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":a+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=g({type:i,selectors:[["app-void-invoice"]],decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(a,t){a&1&&(n(0,"mainpanel",0),v("onSubmit",function(){return t.onFilter()}),n(1,"filters")(2,"div")(3,"label",1),F(4,"From/To"),l(),n(5,"div",2)(6,"datepicker",3),c("dateChange",function(o){return f(t.filter.From,o)||(t.filter.From=o),o}),l()(),n(7,"div")(8,"datepicker",4),c("dateChange",function(o){return f(t.filter.To,o)||(t.filter.To=o),o}),l()()()(),n(9,"content")(10,"div",5),T(11,M,3,5,"div",6),l()()()),a&2&&(p("headerTitle",t.PageTitle)("hideSearchBox",!0),d(6),h("date",t.filter.From),d(2),h("date",t.filter.To),d(3),C(t.result?11:-1))},dependencies:[b,w,E],encapsulation:2});let r=i;return r})();export{A as VoidInvoiceComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as zt}from"./chunk-E7LOFZQV.js";import"./chunk-YLQBIIZH.js";import{b as Xt}from"./chunk-7T5DBPDP.js";import"./chunk-OH5T7D7O.js";import{a as Kt,b as Jt}from"./chunk-FH2KAM6J.js";import{a as Yt}from"./chunk-YKKHSYDW.js";import{a as Ht}from"./chunk-WTHYLNPX.js";import{a as ct,b as Gt,c as jt,d as mt,e as pt}from"./chunk-KNE2UYQ2.js";import"./chunk-TQROQOXU.js";import{a as Wt}from"./chunk-IQGRGC3E.js";import{d as R,e as B}from"./chunk-BZWZ64N5.js";import"./chunk-OHAT7WXU.js";import"./chunk-L4EPB2CQ.js";import"./chunk-GNXSEYJF.js";import"./chunk-DLHIDOS3.js";import"./chunk-FPJTI4LM.js";import"./chunk-STOW2RQN.js";import"./chunk-GLBJ4Y4T.js";import"./chunk-XTNXL2IY.js";import"./chunk-KOUB5HRK.js";import"./chunk-QETZ5VDX.js";import"./chunk-WIRXMAIF.js";import"./chunk-S22I47XG.js";import"./chunk-3NCMRK7E.js";import"./chunk-JLDXWNDU.js";import"./chunk-A6QXXKPR.js";import"./chunk-C4MTEDSW.js";import"./chunk-JMRRXRKO.js";import{b as Bt}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import{a as Rt}from"./chunk-UEXWQT5J.js";import{b as qt,c as Qt}from"./chunk-RPHZK33A.js";import"./chunk-3SCX7IMW.js";import"./chunk-JHSG3KRS.js";import"./chunk-K4Q33QIR.js";import"./chunk-JRCXHF2X.js";import"./chunk-M27MYADT.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-R2XKB6UH.js";import"./chunk-RO7WOCSA.js";import"./chunk-3RK6DDJD.js";import"./chunk-UDNUDL5Z.js";import"./chunk-CVHFVFZQ.js";import"./chunk-ZC526ERX.js";import"./chunk-NJNRUDU6.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-JTKEMQZT.js";import{c as $t}from"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-ZSUWHVKX.js";import"./chunk-2OKZEOBU.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-NB2H6KA7.js";import{b as Ct,c as h}from"./chunk-UPRDDI4K.js";import{A as et,B as $,c as tt,e as nt,h as L,i as W,l as st,m as Mt,n as Y,q as H,r as wt,s as X,t as Vt,u as Ut,v as Lt,z as K}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as Dt,e as Z}from"./chunk-D6JH2KV4.js";import"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{B as A,w as S}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{$ as Pt,$c as lt,Hb as x,K as At,M as Ft,Nc as f,Oa as D,Oc as at,Pc as q,Rc as Et,Sc as Nt,Tc as Ot,Z as z,_c as I,ac as C,ca as ht,cc as g,dc as w,ea as E,f as St,fc as V,gc as U,hc as d,ic as c,id as v,jc as s,jd as T,kc as _,ma as N,ob as p,ra as u,rc as j,tb as M,td as kt,ud as b,v as P,wc as F,ya as O,yc as l,za as k}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var J=(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})(J||{});var it=(function(t){return t[t.FORMAT_NORMAL=1]="FORMAT_NORMAL",t[t.FORMAT_QUANTITATIVE_WITH_UNIT=2]="FORMAT_QUANTITATIVE_WITH_UNIT",t})(it||{});var ot=(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})(ot||{});var gt=class extends st{setValue(r,i){if(r instanceof Date){let n=Math.floor(r.getTime()/1e3);super.setValue(n,i)}else super.setValue(r,i)}},bt=(()=>{let r=class r{constructor(){this.shopeeUploadService=u(ct),this.formBuilder=u(K)}getAttributes(n){return this.shopeeUploadService.getAttributes(n.channelId,n.categoryId).pipe(P(e=>this.setLabelToIndonesian(e)))}setLabelToIndonesian(n=[]){let e,a;return n=n.map(o=>(e=o?.multi_lang?.find(m=>m.language=="id"),o.attribute_value_list=o?.attribute_value_list?.map(m=>(a=m?.multi_lang?.find(y=>y.language=="id"),m.name=a?.value,m)),o.name=e?.value?e?.value:o.name,o)),n}createFormGroup(n){let e=this.formBuilder.group({}),a=[];return n.forEach(o=>{if(a=[],o.mandatory&&a.push(nt.required),o?.attribute_info?.format_type==it.FORMAT_QUANTITATIVE_WITH_UNIT&&o?.attribute_info?.input_type==J.FREE_TEXT_FILED){let m=this.formBuilder.group({unit:new st(null),value:new st(null,a)});e.addControl(JSON.stringify(o.attribute_id),m)}else o?.attribute_info?.input_type==J.FREE_TEXT_FILED&&o?.attribute_info?.input_validation_type==ot.VALIDATOR_DATE_TYPE?e.addControl(JSON.stringify(o.attribute_id),new gt(null,a)):e.addControl(JSON.stringify(o.attribute_id),this.formBuilder.control(null,a))}),e}getFilteredAttributes(n,e){let a=JSON.parse(JSON.stringify(n)),o=Object.keys(e),m=a.filter(y=>o.findIndex(ft=>parseInt(ft)==y.attribute_id||y.mandatory)!=-1);return m=this.filterSelectedAttributes(m,e),m}filterSelectedAttributes(n,e){return n.map(o=>{switch(o.attribute_info.input_type){case J.MULTI_COMBO_BOX:h.IsNotEmpty(e[o.attribute_id])?o.attribute_value_list=o.attribute_value_list.filter(m=>e[o.attribute_id]?.findIndex(y=>y==m.value_id)!=-1):o.attribute_value_list=[];break;case J.FREE_TEXT_FILED:o.attribute_info.format_type==it.FORMAT_QUANTITATIVE_WITH_UNIT?o.attribute_value_list=this.setSelectedQuantitativeAttr(e[o.attribute_id]?.value,e[o.attribute_id]?.unit):o.attribute_info.input_validation_type==ot.VALIDATOR_DATE_TYPE?o.attribute_value_list=this.setSelectedDateAttr(e[o.attribute_id]):o.attribute_value_list=this.setSelectedQuantitativeAttr(e[o.attribute_id]);break;default:o.attribute_value_list=o.attribute_value_list.filter(m=>m.value_id==e[o.attribute_id])}return o}).filter(o=>o?.attribute_value_list?.length>0)}setSelectedQuantitativeAttr(n,e){let a=[];if(h.IsNotEmpty(n)){let o={value_id:0,original_value_name:JSON.stringify(n)};h.IsNotEmpty(e)&&(o.value_unit=e),a=[o]}return a}setSelectedDateAttr(n){let e=[];return h.IsNotEmpty(n)&&(e=[{value_id:0,original_value_name:JSON.stringify(n)}]),e}};r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=N({token:r,factory:r.\u0275fac});let t=r;return t})();var yt=()=>[];function ne(t,r){t&1&&(c(0,"span",4),f(1,"*"),s())}function re(t,r){if(t&1&&_(0,"ng-select",5),t&2){let i=l().$implicit;d("multiple",!0)("formControlName",i.attribute_id)("items",i.attribute_value_list?i.attribute_value_list:lt(4,yt))("placeholder","Pilih "+(i==null?null:i.name))}}function ae(t,r){if(t&1&&_(0,"input",7),t&2){let i=l(2).$implicit;d("formControlName",i.attribute_id)("placeholder","Isi "+(i==null?null:i.name))}}function le(t,r){if(t&1&&(c(0,"option",14),f(1),s()),t&2){let i=r.$implicit;d("value",i),p(),at(i)}}function se(t,r){if(t&1&&(c(0,"div",9),_(1,"input",11),c(2,"select",12)(3,"option",13),f(4,"Unit"),s(),V(5,le,2,2,"option",14,w),s()()),t&2){let i=l(3).$implicit;d("formGroupName",i.attribute_id),p(),d("placeholder","Isi "+(i==null?null:i.name)),p(2),d("value",null),p(2),U(i==null||i.attribute_info==null?null:i.attribute_info.attribute_unit_list)}}function ce(t,r){if(t&1&&_(0,"input",10),t&2){let i=l(3).$implicit;d("formControlName",i.attribute_id)("placeholder","Isi "+(i==null?null:i.name))}}function me(t,r){if(t&1&&C(0,se,7,3,"div",9)(1,ce,1,2,"input",10),t&2){let i=l(2).$implicit,n=l(2);g((i==null||i.attribute_info==null?null:i.attribute_info.format_type)==n.formatType.FORMAT_QUANTITATIVE_WITH_UNIT?0:1)}}function pe(t,r){if(t&1&&_(0,"datepicker",8),t&2){let i=l(2).$implicit;d("formControlName",i.attribute_id)}}function de(t,r){if(t&1&&C(0,ae,1,2,"input",7)(1,me,2,1)(2,pe,1,1,"datepicker",8),t&2){let i,n=l().$implicit,e=l(2);g((i=n==null||n.attribute_info==null?null:n.attribute_info.input_validation_type)===e.validationType.VALIDATOR_STRING_TYPE?0:i===e.validationType.VALIDATOR_FLOAT_TYPE?1:i===e.validationType.VALIDATOR_DATE_TYPE?2:-1)}}function ue(t,r){if(t&1&&_(0,"ng-select",6),t&2){let i=l().$implicit;d("formControlName",i.attribute_id)("items",i.attribute_value_list?i.attribute_value_list:lt(3,yt))("placeholder","Pilih "+(i==null?null:i.name))}}function _e(t,r){if(t&1&&_(0,"ng-select",6),t&2){let i=l().$implicit;d("formControlName",i.attribute_id)("items",i.attribute_value_list?i.attribute_value_list:lt(3,yt))("placeholder","Pilih "+(i==null?null:i.name))}}function fe(t,r){if(t&1&&(c(0,"div",2)(1,"div",3),C(2,ne,2,0,"span",4),c(3,"span"),f(4),s()(),C(5,re,1,5,"ng-select",5)(6,de,3,1)(7,ue,1,4,"ng-select",6)(8,_e,1,4,"ng-select",6),s()),t&2){let i,n=r.$implicit,e=l(2);p(2),g(n.mandatory?2:-1),p(2),q(" ",n==null?null:n.name," "),p(),g((i=n==null||n.attribute_info==null?null:n.attribute_info.input_type)===e.inputType.MULTI_COMBO_BOX?5:i===e.inputType.FREE_TEXT_FILED?6:i===e.inputType.SINGLE_COMBO_BOX?7:8)}}function he(t,r){if(t&1&&(c(0,"form",0)(1,"div",1),V(2,fe,9,3,"div",2,w),s()()),t&2){let i=l();d("formGroup",i.form),p(2),U(r)}}var Zt=(()=>{let r=class r{constructor(){this.formCategoryService=u(bt),this.channelType=b(void 0),this.categoryId=b(void 0),this.channelId=b(void 0),this.channelProductUpload=b(void 0),this.attributesChanges=new M,this.inputType=J,this.formatType=it,this.validationType=ot}ngOnChanges(){let n=this.categoryId(),e=this.channelId();h.IsNotEmpty(n)&&h.IsNotEmpty(e)&&(this.attributes$=this.formCategoryService.getAttributes({categoryId:n,channelId:e,channelType:this.channelType()}).pipe(E(a=>{this.form=this.formCategoryService.createFormGroup(a),this.listenToFormChange(a)}),z(1)))}listenToFormChange(n){let e=[];this.formSubscription=this.form.valueChanges.subscribe(a=>{e=this.formCategoryService.getFilteredAttributes(n,a),this.attributesChanges.emit(e)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}};r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=x({type:r,selectors:[["shopee-attribute-form"]],inputs:{channelType:[1,"channelType"],categoryId:[1,"categoryId"],channelId:[1,"channelId"],channelProductUpload:[1,"channelProductUpload"]},outputs:{attributesChanges:"attributesChanges"},features:[I([bt]),D],decls:2,vars:3,consts:[[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(e,a){if(e&1&&(C(0,he,4,1,"form",0),v(1,"async")),e&2){let o;g((o=T(1,1,a.attributes$))?0:-1,o)}},dependencies:[A,B,R,$,Y,Ut,Lt,tt,Vt,L,W,H,X,wt,Ht,Qt,qt,S],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{--mat-icon-button-state-layer-size: 36px}"]});let t=r;return t})();var Q=(function(t){return t.TIKTOK_SHOP="TIKTOK_SHOP",t.TOKOPEDIA="TOKOPEDIA",t})(Q||{});var vt=(()=>{let r=class r{constructor(){this.httpService=u(Z),this.formBuilder=u(K),this.uploadProductService=u(pt)}getAttributes(n,e){return this.httpService.get("api/product/tiktok/GetAttributes",[{key:"ID",value:n},{key:"CategoryID",value:e}]).pipe(At(o=>this.uploadProductService.selectedProduct$.pipe(P(m=>(o=this.mappingAttributeSalesProperty(o,m),o)))))}mappingAttributeSalesProperty(n,e){let a=0;return n.filter(o=>(o.type=="SALES_PROPERTY"&&(a+=1),a>1?(a=0,!1):!0)).map(o=>(o.type=="SALES_PROPERTY"&&(o.name="Jenis Variant",o.is_multiple_selection=!1,o.is_required=this.isProductHasMoreVariant(e),o.values=[{id:"Warna",name:"Warna"},{id:"Ukuran",name:"Ukuran"}]),o))}isProductHasMoreVariant(n){let e=!1,a=[];return n.forEach(o=>{o.Variants&&a.push(o.Variants.length)}),e=a.some(o=>o>1),e}createFormGroup(n){let e=this.formBuilder.group({}),a=[];return n.forEach(o=>{a=[],o.is_required&&a.push(nt.required),e.addControl(o.id,this.formBuilder.control(null,a))}),e.addControl("listingPlatform",this.formBuilder.control([Q.TIKTOK_SHOP,Q.TOKOPEDIA],[nt.required])),e}getFilteredAttributes(n,e){let a=JSON.parse(JSON.stringify(n)),o=Object.keys(e),m=a.filter(y=>o.findIndex(ft=>parseInt(ft)==y.id)!=-1);return m=this.filterSelectedAttributes(m,e),m}filterSelectedAttributes(n,e){return n.map(o=>(h.IsNotEmpty(o.values)?o.is_multiple_selection?o.values=o.values.filter(m=>e[o.id]?.includes(m.id)):o.values=o.values.filter(m=>m.id==e[o.id]):e[o.id]&&(o.values=[{id:null,name:e[o.id]}]),o)).filter(o=>o?.values?.length>0)}};r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=N({token:r,factory:r.\u0275fac});let t=r;return t})();function Ce(t,r){t&1&&(c(0,"small",5),f(1," Platform is required "),s())}function ge(t,r){t&1&&(c(0,"span",5),f(1,"*"),s())}function be(t,r){if(t&1&&_(0,"ng-select",6),t&2){let i=l().$implicit;d("multiple",!0)("formControlName",i.id)("items",i.values)("placeholder","Pilih "+(i==null?null:i.name))}}function ye(t,r){if(t&1&&_(0,"ng-select",7),t&2){let i=l().$implicit;d("formControlName",i.id)("items",i.values)("placeholder","Pilih "+(i==null?null:i.name))}}function ve(t,r){if(t&1&&_(0,"input",8),t&2){let i=l().$implicit;d("formControlName",i.id)("placeholder",i==null?null:i.name)}}function Te(t,r){if(t&1&&(c(0,"small",5),f(1),s()),t&2){let i=l().$implicit;p(),q(" ",i==null?null:i.name," is mandatory ")}}function xe(t,r){if(t&1&&(c(0,"div",2)(1,"div",3),C(2,ge,2,0,"span",5),c(3,"span"),f(4),s()(),C(5,be,1,4,"ng-select",6)(6,ye,1,3,"ng-select",7)(7,ve,1,2,"input",8),C(8,Te,2,1,"small",5),s()),t&2){let i=r.$implicit;p(2),g(i.is_required?2:-1),p(2),q(" ",i==null?null:i.name," "),p(),g(i.is_multiple_selection?5:i.values!==null&&i.values.length>0?6:7),p(3),g(i.is_required?8:-1)}}function Ie(t,r){if(t&1&&(c(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span"),f(5," Platform Options"),s()(),_(6,"ng-select",4),C(7,Ce,2,0,"small",5),s(),V(8,xe,9,4,"div",2,w),s()()),t&2){let i,n=l();d("formGroup",n.form),p(6),d("multiple",!0)("items",n.platformOptions)("clearable",!1),p(),g(!(n.form==null||(i=n.form.get("listingPlatform").errors)==null)&&i.required?7:-1),p(),U(r)}}var te=(()=>{let r=class r{constructor(){this.tiktokAttributeFormService=u(vt),this.channelId=b(void 0),this.categoryId=b(void 0),this.platformChange=kt({alias:"onPlatformChanges"}),this.formSubscription=new St,this.attributesChanges=new M,this.platformOptions=[{label:"TikTok Shop",value:Q.TIKTOK_SHOP},{label:"Tokopedia",value:Q.TOKOPEDIA}]}ngOnChanges(){let n=this.categoryId(),e=this.channelId();h.IsNotEmpty(n)&&h.IsNotEmpty(e)&&(this.attributes$=this.tiktokAttributeFormService.getAttributes(e,n).pipe(P(a=>a.filter(o=>!(o.type=="PRODUCT_PROPERTY"&&(h.IsEmpty(o.values)||o.values?.length==0)&&o.is_customizable==!1))),E(a=>{this.form=this.tiktokAttributeFormService.createFormGroup(a),this.listenToFormChange(a)}),z(1)))}listenToFormChange(n){let e=[];this.form.valueChanges.pipe(ht(this.formSubscription)).subscribe(a=>{delete a.listingPlatform,e=this.tiktokAttributeFormService.getFilteredAttributes(n,a),this.attributesChanges.emit(e)}),this.form.get("listingPlatform").valueChanges.pipe(Pt(this.form.get("listingPlatform").value),ht(this.formSubscription)).subscribe(a=>{this.platformChange.emit(a)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}};r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=x({type:r,selectors:[["tiktok-attribute-form"]],inputs:{channelId:[1,"channelId"],categoryId:[1,"categoryId"]},outputs:{platformChange:"onPlatformChanges",attributesChanges:"attributesChanges"},features:[I([vt]),D],decls:2,vars:3,consts:[[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["formControlName","listingPlatform","bindLabel","label","bindValue","value","placeholder","Platform Options",3,"multiple","items","clearable"],[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(e,a){if(e&1&&(C(0,Ie,10,5,"form",0),v(1,"async")),e&2){let o;g((o=T(1,1,a.attributes$))?0:-1,o)}},dependencies:[A,B,R,$,Y,tt,L,W,H,X,et,S],encapsulation:2});let t=r;return t})();var Tt=(()=>{let r=class r{constructor(){this.woocommerceUploadService=u(mt)}getAttributes(n,e){return this.woocommerceUploadService.getAttributes(n,e).pipe(P(a=>a.map(o=>({key:o.name,label:o.name}))))}};r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=N({token:r,factory:r.\u0275fac});let t=r;return t})();var ee=(()=>{let r=class r{constructor(){this.wooAttributeFormService=u(Tt),this.channelId=b(),this.categoryId=b(),this.attributesChanges=new M}ngOnChanges(){h.IsNotEmpty(this.categoryId())&&h.IsNotEmpty(this.channelId())&&(this.attributes$=this.wooAttributeFormService.getAttributes(this.channelId(),this.categoryId()))}onSelectAttribute(n){this.attributesChanges.emit([n.key])}};r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=x({type:r,selectors:[["wooocommerce-attribute-form"]],inputs:{channelId:[1,"channelId"],categoryId:[1,"categoryId"]},outputs:{attributesChanges:"attributesChanges"},features:[I([Tt]),D],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(e,a){e&1&&(c(0,"div",0)(1,"div",1)(2,"div",2),f(3,"Atribut"),s(),c(4,"ng-select",3),v(5,"async"),F("change",function(m){return a.onSelectAttribute(m)}),s()()()),e&2&&(p(4),d("items",T(5,1,a.attributes$)))},dependencies:[A,et,B,R,$,S],encapsulation:2});let t=r;return t})();var xt=(()=>{let r=class r{constructor(){this.httpService=u(Z),this.formBuilder=u(K)}getAttributes(n,e){return this.httpService.get("api/product/tokopedia/GetAttributes",[{key:"ID",value:n},{key:"CategoryID",value:e}]).pipe(P(o=>o))}createFormGroup(n){let e=this.formBuilder.group({});return n.forEach(a=>{e.addControl(a.variant,this.formBuilder.control(null))}),e}convertAttributes(n={}){return Object.values(n).filter(a=>a!==null).map(a=>JSON.stringify(a))}};r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=N({token:r,factory:r.\u0275fac});let t=r;return t})();function Se(t,r){if(t&1&&(c(0,"div",2)(1,"div",3),f(2),s(),_(3,"ng-select",4),s()),t&2){let i=r.$implicit;p(2),q(" ",i==null?null:i.variant," "),p(),d("formControlName",i.variant)("items",i.values)("placeholder","Pilih "+(i==null?null:i.variant))}}function Ae(t,r){if(t&1&&(c(0,"form",0)(1,"div",1),V(2,Se,4,4,"div",2,w),s()()),t&2){let i=l();d("formGroup",i.form),p(2),U(r)}}var ie=(()=>{let r=class r{constructor(){this.tokpedAttrFormService=u(xt),this.channelId=b(void 0),this.categoryId=b(void 0),this.attributesChanges=new M}ngOnInit(){}ngOnChanges(n){let e=this.categoryId(),a=this.channelId();h.IsNotEmpty(e)&&h.IsNotEmpty(a)&&(this.attributes$=this.tokpedAttrFormService.getAttributes(a,e).pipe(E(o=>{this.form=this.tokpedAttrFormService.createFormGroup(o),this.listenToFormChange()})))}listenToFormChange(){let n=[];this.formSubscription=this.form.valueChanges.subscribe(e=>{n=this.tokpedAttrFormService.convertAttributes(e),this.attributesChanges.emit(n)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}};r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=x({type:r,selectors:[["tokopedia-attribute-form"]],inputs:{channelId:[1,"channelId"],categoryId:[1,"categoryId"]},outputs:{attributesChanges:"attributesChanges"},features:[I([xt]),D],decls:2,vars:3,consts:[[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"]],template:function(e,a){if(e&1&&(C(0,Ae,4,1,"form",0),v(1,"async")),e&2){let o;g((o=T(1,1,a.attributes$))?0:-1,o)}},dependencies:[A,B,R,$,Y,L,W,H,X,S],encapsulation:2});let t=r;return t})();var It=(()=>{let r=class r{constructor(){this.httpService=u(Z),this.formBuilder=u(K)}getAttributes(n){return this.httpService.get("api/product/shopify/GetAttributes",[{key:"ID",value:n}]).pipe(E(a=>(a.Options.StatusOptions=a.Options.Status.map(o=>({id:o,name:o})),a)))}createFormGroup(n){let e=this.formBuilder.group({});return Object.keys(n.Attribute).forEach(o=>{e.addControl(o,this.formBuilder.control(null))}),e}};r.\u0275fac=function(e){return new(e||r)},r.\u0275prov=N({token:r,factory:r.\u0275fac});let t=r;return t})();function Fe(t,r){if(t&1&&(c(0,"form",0)(1,"div",1)(2,"div",2)(3,"div",3),f(4," Brand "),s(),_(5,"input",4),s(),c(6,"div",5)(7,"div",3),f(8," Product Type "),s(),_(9,"input",6),s(),c(10,"div",5)(11,"div",3),f(12," Status "),s(),_(13,"ng-select",7),s()()()),t&2){let i=l();d("formGroup",i.form),p(13),d("items",r.Options.StatusOptions)}}var oe=(()=>{let r=class r{constructor(){this.channelId=b(void 0),this.attributesChanges=new M,this.shopifyFormService=u(It)}ngOnChanges(n){n.channelId&&(this.attributes$=this.shopifyFormService.getAttributes(this.channelId()).pipe(E(e=>{this.form=this.shopifyFormService.createFormGroup(e),this.listenToFormChange()})))}listenToFormChange(){this.formSubscription=this.form.valueChanges.pipe(Ft(500)).subscribe(n=>{this.attributesChanges.emit([n])})}ngOnDestroy(){this.formSubscription.unsubscribe()}};r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=x({type:r,selectors:[["shopify-attribute-form"]],inputs:{channelId:[1,"channelId"]},outputs:{attributesChanges:"attributesChanges"},features:[I([It]),D],decls:2,vars:3,consts:[[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(e,a){if(e&1&&(C(0,Fe,14,2,"form",0),v(1,"async")),e&2){let o;g((o=T(1,1,a.attributes$))?0:-1,o)}},dependencies:[A,$,Y,tt,L,W,H,X,B,R,S],encapsulation:2});let t=r;return t})();function Pe(t,r){if(t&1&&(c(0,"div",6),_(1,"app-product-card",9),s()),t&2){let i=r.$implicit;p(),d("productId",i==null?null:i.ID)("title",i==null?null:i.Name)("image",i==null?null:i.ThumbnailUrl)("description",(i==null||i.Variants==null?null:i.Variants.length)>1?(i==null||i.Variants==null?null:i.Variants.length)+" Variants":null)("imageForZoom",i==null?null:i.ImageUrl)("code",i==null||i.Variants[0]==null?null:i.Variants[0].Code)("showFooter",!1)}}function Ee(t,r){if(t&1){let i=j();c(0,"mat-checkbox",21),Ot("ngModelChange",function(e){O(i);let a=l().$implicit;return Nt(a.selected,e)||(a.selected=e),k(e)}),F("ngModelChange",function(){let e=O(i),a=l(),o=a.$implicit,m=a.$index,y=l();return k(y.onSelectChannel(o,m,e))}),s()}if(t&2){let i=l().$implicit;Et("ngModel",i.selected)}}function Ne(t,r){if(t&1&&(c(0,"div",18),_(1,"input",22),s()),t&2){let i=l().$implicit,n=l();d("matTooltip",i.type==n.channelType.Shopify||i.type==n.channelType.ShopifyV2?"Cannot change category, please change category in admin.shopify.com":i.type==n.channelType.Plugo?"You can change the category after the product has been uploaded to the Plugo Dashboard.":"")}}function Oe(t,r){if(t&1){let i=j();c(0,"app-channel-category-select",23),F("selectedCategory",function(e){O(i);let a=l().$index,o=l();return k(o.onCategoryChange(a,e))}),s()}if(t&2){let i=l().$implicit,n=l();d("disabled",!i.selected||i.selected&&i.type==n.channelType.Lazada)("channelId",i.id)("channelType",i.type)("categoryId",i.categoryId)}}function ke(t,r){if(t&1){let i=j();c(0,"shopee-attribute-form",27),F("attributesChanges",function(e){O(i);let a=l(2).$index,o=l();return k(o.onAttributesChange(a,e))}),s()}if(t&2){let i=l(2).$implicit;d("categoryId",i.categoryId)("channelId",i.id)("channelType",i.type)}}function De(t,r){if(t&1){let i=j();c(0,"tiktok-attribute-form",28),F("attributesChanges",function(e){O(i);let a=l(2).$index,o=l();return k(o.onAttributesChange(a,e))})("onPlatformChanges",function(e){O(i);let a=l(2).$index,o=l();return k(o.onPlatformChange(a,e))}),s()}if(t&2){let i=l(2).$implicit;d("categoryId",i.categoryId)("channelId",i.id)}}function Me(t,r){if(t&1){let i=j();c(0,"wooocommerce-attribute-form",29),F("attributesChanges",function(e){O(i);let a=l(2).$index,o=l();return k(o.onAttributesChange(a,e))}),s()}if(t&2){let i=l(2).$implicit;d("categoryId",i.categoryId)("channelId",i.id)}}function we(t,r){if(t&1){let i=j();c(0,"tokopedia-attribute-form",29),F("attributesChanges",function(e){O(i);let a=l(2).$index,o=l();return k(o.onAttributesChange(a,e))}),s()}if(t&2){let i=l(2).$implicit;d("categoryId",i.categoryId)("channelId",i.id)}}function Ve(t,r){if(t&1&&(c(0,"div",20)(1,"div",24),C(2,ke,1,3,"shopee-attribute-form",25)(3,De,1,2,"tiktok-attribute-form",26)(4,Me,1,2,"wooocommerce-attribute-form",26)(5,we,1,2,"tokopedia-attribute-form",26),s()()),t&2){let i,n=l().$implicit,e=l();p(2),g((i=n.type)===e.channelType.Shopee?2:i===e.channelType.Tiktok?3:i===e.channelType.WooCommerce?4:i===e.channelType.Tokopedia?5:-1)}}function Ue(t,r){if(t&1){let i=j();c(0,"div",20)(1,"div",24)(2,"shopify-attribute-form",30),F("attributesChanges",function(e){O(i);let a=l().$index,o=l();return k(o.onAttributesChange(a,e))}),s()()()}if(t&2){let i=l().$implicit;p(2),d("channelId",i.id)}}function Le(t,r){if(t&1&&(c(0,"div",8)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div"),C(6,Ee,1,1,"mat-checkbox",14),v(7,"async"),s(),c(8,"div"),_(9,"app-channel-logo",15),s(),c(10,"div",16)(11,"span"),f(12),s()()()(),c(13,"div",12)(14,"div",17),C(15,Ne,2,1,"div",18)(16,Oe,1,4,"app-channel-category-select",19),s()()(),C(17,Ve,6,1,"div",20)(18,Ue,3,1,"div",20),s()()),t&2){let i,n=r.$implicit,e=l();p(6),g((i=T(7,8,e.defaultCategories$))?6:-1,i),p(3),d("typeId",n.type)("showChannelName",!1),p(),d("matTooltip",n.name)("matTooltipShowDelay",2500),p(2),at(n.name),p(3),g(n.type==e.channelType.Shopify||n.type==e.channelType.Plugo||n.type==e.channelType.ShopifyV2?15:16),p(2),g(n.categoryId&&e.channelType.Lazada!=n.type&&n.selected?17:(e.channelType.Shopify==n.type||n.type==e.channelType.ShopifyV2)&&n.selected?18:-1)}}var en=(()=>{let r=class r{constructor(){this.toastr=u(Dt),this.uploadProductService=u(pt),this.selectedProducts$=this.uploadProductService.selectedProduct$,this.channelProductUploads=this.uploadProductService.channelProductUpload,this.channelType=Ct,this.defaultCategories$=this.uploadProductService.getDefaultCategory().pipe(z(1))}onCategoryChange(n,e){this.channelProductUploads.update(a=>a.map((o,m)=>(m==n&&(o.categoryId=e,o.attributes=[]),o)))}onPlatformChange(n,e){this.channelProductUploads.update(a=>a.map((o,m)=>(m==n&&(o.listing_platforms=e),o)))}onAttributesChange(n,e){this.channelProductUploads.update(a=>a.map((o,m)=>(m==n&&(o.attributes=e),o)))}tiktokPlatformChanges(n,e){this.channelProductUploads.update(a=>a.map((o,m)=>(m==n&&(o.listing_platforms=e),o)))}onSelectChannel(n,e,a){this.channelProductUploads.update(o=>o.map((m,y)=>{if(y==e&&n.selected){let _t=this.findCategoryByChannelId(n.id,a);m.categoryId=_t?.DefaultCategoryID}return y==e&&!n.selected&&(m.categoryId=null),m}))}findCategoryByChannelId(n,e){return e.find(a=>a.ID===n)}onUploadProduct(){if(this.checkTiktokPlatform()==!1){this.toastr.error("Please select at least one platform for TikTok channel","Platform is Required");return}this.uploadProductService.onUploadProduct(this.channelProductUploads())}checkTiktokPlatform(){return this.channelProductUploads().every(e=>e.type==Ct.Tiktok&&h.IsNotEmpty(e?.categoryId)?e.listing_platforms.length>0:!0)}ngOnDestroy(){this.uploadProductService.clearSelectedProduct()}};r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=x({type:r,selectors:[["app-product-upload"]],features:[I([ct,Gt,jt,mt])],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"],["color","primary",1,"example-margin",3,"ngModel"],[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","onPlatformChanges","categoryId","channelId"],[3,"attributesChanges","categoryId","channelId"],[3,"attributesChanges","channelId"]],template:function(e,a){if(e&1&&(c(0,"mainpanel",0)(1,"actions")(2,"button",1),F("click",function(){return a.onUploadProduct()}),_(3,"i",2),f(4," Upload "),s()(),c(5,"content")(6,"div",3)(7,"h3",4),f(8,"Product To Upload"),s(),c(9,"div",5),V(10,Pe,2,7,"div",6,w),v(12,"async"),s(),c(13,"h3",7),f(14,"Channel To Upload"),s(),V(15,Le,19,10,"div",8,w),s()()()),e&2){let o;d("hideSearchBox",!0)("hideSearchDropdown",!0),p(2),d("disabled",((o=a.channelProductUploads())==null?null:o.length)==0),p(8),U(T(12,3,a.selectedProducts$)),p(5),U(a.channelProductUploads())}},dependencies:[A,Xt,Bt,Jt,Kt,Yt,et,L,Mt,Rt,$t,te,ee,ie,oe,Wt,zt,Zt,S],encapsulation:2});let t=r;return t})();export{en as ProductUploadComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as re}from"./chunk-RWPLFNHT.js";import"./chunk-MT3CWRVG.js";import"./chunk-W33M7S2S.js";import"./chunk-MTVUPPAN.js";import"./chunk-2NRHX6CZ.js";import{a as ie}from"./chunk-7KG3DC5J.js";import{a as ae}from"./chunk-5WQ3LCWP.js";import{a as ne}from"./chunk-DLHIDOS3.js";import{a as oe}from"./chunk-27DIE2YS.js";import{a as te}from"./chunk-AJSJJV2I.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-BXNDE6NQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as ee}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import{a as Y}from"./chunk-YNL43MLU.js";import"./chunk-RXC5D64C.js";import{c as X}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import{c as y}from"./chunk-UPRDDI4K.js";import{A as M,h as J,m as Q}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as A}from"./chunk-MM7SAZOU.js";import{e as K}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as H,G as q,q as G,z as W}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as w,Nc as s,Oc as L,Pc as F,Qc as O,Rc as B,Sc as U,Tc as Z,Uc as j,Vc as $,Wc as z,_b as I,ac as u,ad as E,cc as g,dc as V,ec as P,fc as x,gc as b,hc as c,ic as l,id as N,jc as d,jd as R,kc as m,mb as k,ob as a,ra as v,rc as D,ud as _,wc as S,ya as h,yc as p,za as C}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ce=e=>({"border-bottom-0":e}),pe=e=>({"border-bottom":e});function se(e,o){if(e&1){let i=D();l(0,"img",15),S("click",function(n){h(i);let r=p();return C(r.onZoomImage(n))}),d()}if(e&2){let i=p();c("ngSrc",i.image)("fill",!0)}}function me(e,o){e&1&&m(0,"img",7),e&2&&c("fill",!0)}function ue(e,o){if(e&1&&(l(0,"div",10),m(1,"i",16),l(2,"span"),s(3),d()()),e&2){let i=p();a(3),L(i.code)}}function ge(e,o){if(e&1&&(l(0,"div",11),s(1),N(2,"number"),d()),e&2){let i=p();a(),F("",R(2,1,i.totalChannel())," Listing")}}function he(e,o){if(e&1&&(l(0,"div",22),s(1),N(2,"number"),d()),e&2){p();let i=z(7);a(),F(" (",R(2,1,i)," Listing) ")}}function Ce(e,o){if(e&1&&(l(0,"div",25)(1,"div",26),s(2),d(),l(3,"div")(4,"a",27),m(5,"i",28),d()()()),e&2){let i=o.$implicit,t=o.$index,n=p().$implicit;c("ngClass",E(4,pe,t!==(n==null?null:n.Variants.length)-1)),a(2),O(" ",i.ProductName," - ",i.Name," "),a(2),c("href",i.URL,k)}}function _e(e,o){if(e&1&&(l(0,"div",14)(1,"h2",17)(2,"button",18)(3,"div",19),m(4,"img",20),l(5,"span",21),s(6),d(),j(7),u(8,he,3,3,"div",22),d()()(),l(9,"div",23)(10,"div",24),x(11,Ce,6,6,"div",25,V),d()()()),e&2){let i,t=o.$implicit,n=o.$index,r=p();c("ngClass",E(11,ce,r.channels().length-1==n)),a(),c("id","heading"+n+r.id()),a(),I("data-bs-target","#collapse"+n+r.id())("aria-controls","#collapse"+n+r.id()),a(2),c("src",r.getChannelLogo(t.TypeID),k),a(),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t==null?null:t.ChannelName:""),a(),L(t==null?null:t.ChannelName),a();let T=$(t==null||t.Variants==null?null:t.Variants.length);a(),g(T>1&&((i=r.channels())==null?null:i.length)>1?8:-1),a(),c("id","collapse"+n+r.id()),I("aria-labelledby","heading"+n+r.id()),a(2),b(t==null?null:t.Variants)}}var le=(()=>{let o=class o{constructor(){this.biggerPictureService=v(ne),this.totalChannel=_(0),this.imageForZoom=_(void 0),this.title=_(void 0),this.channels=_(void 0),this.id=_(void 0)}getChannelLogo(t){return y.getChannelLogoByTypeId(t)}onZoomImage(t){this.biggerPictureService.openBiggerPicture(t,this.imageForZoom())}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=w({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",code:"code",totalChannel:[1,"totalChannel"],imageForZoom:[1,"imageForZoom"],title:[1,"title"],channels:[1,"channels"],id:[1,"id"]},decls:17,vars:4,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],[1,"description"],[1,"fs-5"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],[1,"fa","fa-barcode","me-2"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],[1,"fs-4","ms-2"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"]],template:function(n,r){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),u(6,se,1,2,"img",6)(7,me,1,1,"img",7),d()()(),l(8,"div",8)(9,"h4",9),s(10),d(),u(11,ue,4,1,"div",10),u(12,ge,3,3,"div",11),d()()(),l(13,"div",12)(14,"div",13),x(15,_e,13,13,"div",14,P),d()()()),n&2&&(a(6),g(r.image?6:7),a(4),F(" ",r.title()," "),a(),g(r.code?11:-1),a(),g(r.totalChannel()?12:-1),a(3),b(r.channels()))},dependencies:[H,G,M,Y,X,q,W],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();function fe(e,o){if(e&1&&(l(0,"div",8),m(1,"app-duplicate-product-card",11),d()),e&2){let i=o.$implicit,t=o.$index;a(),c("imageForZoom",i.ImageUrl)("title",i.Name)("code",i.Code)("id",t)("image",i.ThumbnailURL)("channels",i.Channels)("totalChannel",i.Total)}}function ve(e,o){e&1&&(l(0,"div",9),m(1,"app-empty-state"),d())}function xe(e,o){if(e&1){let i=D();l(0,"div",10)(1,"div",12)(2,"app-custom-paginator",13),S("next",function(){h(i);let n=p();return C(n.getProducts())})("previous",function(){h(i);let n=p();return C(n.getProducts())})("total",function(){h(i);let n=p();return C(n.getRowCount())}),d()()()}if(e&2){let i=p();a(2),c("filter",i.searchFilter)("totaldata",i.products==null?null:i.products.length)("paginationTotal",i.rowCount)("hasClicked",i.hasClickedRowCount)}}var qe=(()=>{let o=class o{constructor(){this.httpService=v(A),this.productService=v(te),this.searchFilter=new ie,this.products=[],this.hasClickedRowCount=!1,this.getPageLoader()}getPageLoader(){this.productService.loader().subscribe(t=>{this.searchFilter=t.Filter,this.searchFilter.PageSize=t.Filter.RowCount,this.getProducts()})}getProducts(){let t={ListChannelID:this.searchFilter.ListChannelID,RowCount:this.searchFilter.RowCount,PageNumber:this.searchFilter.PageNumber,text:this.searchFilter.text};this.httpService.post("/api/product/GetDuplicateInChannel",t).subscribe(n=>{this.products=n.Data})}onSearch(t){this.searchFilter.text=t,this.hasClickedRowCount=!1,this.getProducts()}onClearFilter(){this.searchFilter.ChannelID=y.GuidEMpty}getChannelLogo(t){return y.getChannelLogoByTypeId(t)}getRowCount(){let t={text:this.searchFilter.text,ChannelID:this.searchFilter.ChannelID};this.httpService.post("/api/product/GetDuplicateInChannelRowCount",t).subscribe(n=>{this.hasClickedRowCount=!0,this.rowCount=n.Total})}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=w({type:o,selectors:[["app-duplicate-sku"]],decls:19,vars:4,consts:[["headerTitle","Multiple Listing","textButton"," Search","description","SKU(s) which is listed more than one time (one to many)",3,"onSubmit"],["routerLink","/menu/products/status/duplicate-sku/table",1,"btn","btn-outline-secondary","btn-lg","d-flex","align-items-center","gap-2"],[1,"fa-solid","fa-table"],["container",""],[1,"mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"container-fluid"],[1,"row","mt-8","mx-1"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row","mt-2","justify-content-end"],[3,"imageForZoom","title","code","id","image","channels","totalChannel"],[1,"col-md-12"],[3,"next","previous","total","filter","totaldata","paginationTotal","hasClicked"]],template:function(n,r){n&1&&(l(0,"mainpanel",0),S("onSubmit",function(f){return r.onSearch(f)}),l(1,"actions")(2,"a",1),m(3,"i",2),l(4,"span"),s(5,"Table View"),d()()(),l(6,"filters")(7,"div",3)(8,"div")(9,"h6",4),s(10,"Channel"),d(),l(11,"app-channel-options-v2",5),Z("ngModelChange",function(f){return U(r.searchFilter.ListChannelID,f)||(r.searchFilter.ListChannelID=f),f}),d()()()(),l(12,"content")(13,"div",6)(14,"div",7),x(15,fe,2,7,"div",8,P),u(17,ve,2,0,"div",9),d(),u(18,xe,3,4,"div",10),d()()()),n&2&&(a(11),c("multiple",!0),B("ngModel",r.searchFilter.ListChannelID),a(4),b(r.products),a(2),g((r.products==null?null:r.products.length)==0?17:-1),a(),g((r.products==null?null:r.products.length)>0?18:-1))},dependencies:[ee,K,re,M,J,Q,le,oe,ae],encapsulation:2});let e=o;return e})();export{qe as DuplicateSkuComponent};
|
|
1
|
+
import{a as re}from"./chunk-3PUUKJCQ.js";import"./chunk-VVNLTDLG.js";import"./chunk-OHAT7WXU.js";import"./chunk-L4EPB2CQ.js";import"./chunk-GNXSEYJF.js";import{a as ie}from"./chunk-7KG3DC5J.js";import{a as ae}from"./chunk-ZZYFVEJO.js";import{a as ne}from"./chunk-DLHIDOS3.js";import{a as oe}from"./chunk-27DIE2YS.js";import{a as te}from"./chunk-FPJTI4LM.js";import"./chunk-JU4ZP3HI.js";import"./chunk-3T5VLB63.js";import"./chunk-STOW2RQN.js";import"./chunk-GLBJ4Y4T.js";import"./chunk-XTNXL2IY.js";import"./chunk-KOUB5HRK.js";import"./chunk-QETZ5VDX.js";import"./chunk-WIRXMAIF.js";import"./chunk-S22I47XG.js";import"./chunk-3NCMRK7E.js";import"./chunk-JLDXWNDU.js";import"./chunk-A6QXXKPR.js";import"./chunk-6Q4BDCI5.js";import"./chunk-C4MTEDSW.js";import"./chunk-JMRRXRKO.js";import{b as ee}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import{a as Y}from"./chunk-UEXWQT5J.js";import"./chunk-JTKEMQZT.js";import{c as X}from"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-2OKZEOBU.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-NB2H6KA7.js";import{c as y}from"./chunk-UPRDDI4K.js";import{A as M,h as J,m as Q}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as A}from"./chunk-D6JH2KV4.js";import{e as K}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{A as W,B as H,H as q,q as G}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as w,Nc as s,Oc as L,Pc as F,Qc as O,Rc as B,Sc as U,Tc as Z,Uc as j,Vc as $,Wc as z,_b as I,ac as u,ad as E,cc as g,dc as V,ec as P,fc as x,gc as b,hc as c,ic as l,id as N,jc as d,jd as R,kc as m,mb as k,ob as a,ra as v,rc as D,ud as _,wc as S,ya as h,yc as p,za as C}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ce=e=>({"border-bottom-0":e}),pe=e=>({"border-bottom":e});function se(e,o){if(e&1){let i=D();l(0,"img",15),S("click",function(n){h(i);let r=p();return C(r.onZoomImage(n))}),d()}if(e&2){let i=p();c("ngSrc",i.image)("fill",!0)}}function me(e,o){e&1&&m(0,"img",7),e&2&&c("fill",!0)}function ue(e,o){if(e&1&&(l(0,"div",10),m(1,"i",16),l(2,"span"),s(3),d()()),e&2){let i=p();a(3),L(i.code)}}function ge(e,o){if(e&1&&(l(0,"div",11),s(1),N(2,"number"),d()),e&2){let i=p();a(),F("",R(2,1,i.totalChannel())," Listing")}}function he(e,o){if(e&1&&(l(0,"div",22),s(1),N(2,"number"),d()),e&2){p();let i=z(7);a(),F(" (",R(2,1,i)," Listing) ")}}function Ce(e,o){if(e&1&&(l(0,"div",25)(1,"div",26),s(2),d(),l(3,"div")(4,"a",27),m(5,"i",28),d()()()),e&2){let i=o.$implicit,t=o.$index,n=p().$implicit;c("ngClass",E(4,pe,t!==(n==null?null:n.Variants.length)-1)),a(2),O(" ",i.ProductName," - ",i.Name," "),a(2),c("href",i.URL,k)}}function _e(e,o){if(e&1&&(l(0,"div",14)(1,"h2",17)(2,"button",18)(3,"div",19),m(4,"img",20),l(5,"span",21),s(6),d(),j(7),u(8,he,3,3,"div",22),d()()(),l(9,"div",23)(10,"div",24),x(11,Ce,6,6,"div",25,V),d()()()),e&2){let i,t=o.$implicit,n=o.$index,r=p();c("ngClass",E(11,ce,r.channels().length-1==n)),a(),c("id","heading"+n+r.id()),a(),I("data-bs-target","#collapse"+n+r.id())("aria-controls","#collapse"+n+r.id()),a(2),c("src",r.getChannelLogo(t.TypeID),k),a(),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t==null?null:t.ChannelName:""),a(),L(t==null?null:t.ChannelName),a();let T=$(t==null||t.Variants==null?null:t.Variants.length);a(),g(T>1&&((i=r.channels())==null?null:i.length)>1?8:-1),a(),c("id","collapse"+n+r.id()),I("aria-labelledby","heading"+n+r.id()),a(2),b(t==null?null:t.Variants)}}var le=(()=>{let o=class o{constructor(){this.biggerPictureService=v(ne),this.totalChannel=_(0),this.imageForZoom=_(void 0),this.title=_(void 0),this.channels=_(void 0),this.id=_(void 0)}getChannelLogo(t){return y.getChannelLogoByTypeId(t)}onZoomImage(t){this.biggerPictureService.openBiggerPicture(t,this.imageForZoom())}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=w({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",code:"code",totalChannel:[1,"totalChannel"],imageForZoom:[1,"imageForZoom"],title:[1,"title"],channels:[1,"channels"],id:[1,"id"]},decls:17,vars:4,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],[1,"description"],[1,"fs-5"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],[1,"fa","fa-barcode","me-2"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],[1,"fs-4","ms-2"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"]],template:function(n,r){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),u(6,se,1,2,"img",6)(7,me,1,1,"img",7),d()()(),l(8,"div",8)(9,"h4",9),s(10),d(),u(11,ue,4,1,"div",10),u(12,ge,3,3,"div",11),d()()(),l(13,"div",12)(14,"div",13),x(15,_e,13,13,"div",14,P),d()()()),n&2&&(a(6),g(r.image?6:7),a(4),F(" ",r.title()," "),a(),g(r.code?11:-1),a(),g(r.totalChannel()?12:-1),a(3),b(r.channels()))},dependencies:[H,G,M,Y,X,q,W],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();function fe(e,o){if(e&1&&(l(0,"div",8),m(1,"app-duplicate-product-card",11),d()),e&2){let i=o.$implicit,t=o.$index;a(),c("imageForZoom",i.ImageUrl)("title",i.Name)("code",i.Code)("id",t)("image",i.ThumbnailURL)("channels",i.Channels)("totalChannel",i.Total)}}function ve(e,o){e&1&&(l(0,"div",9),m(1,"app-empty-state"),d())}function xe(e,o){if(e&1){let i=D();l(0,"div",10)(1,"div",12)(2,"app-custom-paginator",13),S("next",function(){h(i);let n=p();return C(n.getProducts())})("previous",function(){h(i);let n=p();return C(n.getProducts())})("total",function(){h(i);let n=p();return C(n.getRowCount())}),d()()()}if(e&2){let i=p();a(2),c("filter",i.searchFilter)("totaldata",i.products==null?null:i.products.length)("paginationTotal",i.rowCount)("hasClicked",i.hasClickedRowCount)}}var qe=(()=>{let o=class o{constructor(){this.httpService=v(A),this.productService=v(te),this.searchFilter=new ie,this.products=[],this.hasClickedRowCount=!1,this.getPageLoader()}getPageLoader(){this.productService.loader().subscribe(t=>{this.searchFilter=t.Filter,this.searchFilter.PageSize=t.Filter.RowCount,this.getProducts()})}getProducts(){let t={ListChannelID:this.searchFilter.ListChannelID,RowCount:this.searchFilter.RowCount,PageNumber:this.searchFilter.PageNumber,text:this.searchFilter.text};this.httpService.post("/api/product/GetDuplicateInChannel",t).subscribe(n=>{this.products=n.Data})}onSearch(t){this.searchFilter.text=t,this.hasClickedRowCount=!1,this.getProducts()}onClearFilter(){this.searchFilter.ChannelID=y.GuidEMpty}getChannelLogo(t){return y.getChannelLogoByTypeId(t)}getRowCount(){let t={text:this.searchFilter.text,ChannelID:this.searchFilter.ChannelID};this.httpService.post("/api/product/GetDuplicateInChannelRowCount",t).subscribe(n=>{this.hasClickedRowCount=!0,this.rowCount=n.Total})}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=w({type:o,selectors:[["app-duplicate-sku"]],decls:19,vars:4,consts:[["headerTitle","Multiple Listing","textButton"," Search","description","SKU(s) which is listed more than one time (one to many)",3,"onSubmit"],["routerLink","/menu/products/status/duplicate-sku/table",1,"btn","btn-outline-secondary","btn-lg","d-flex","align-items-center","gap-2"],[1,"fa-solid","fa-table"],["container",""],[1,"mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"container-fluid"],[1,"row","mt-8","mx-1"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row","mt-2","justify-content-end"],[3,"imageForZoom","title","code","id","image","channels","totalChannel"],[1,"col-md-12"],[3,"next","previous","total","filter","totaldata","paginationTotal","hasClicked"]],template:function(n,r){n&1&&(l(0,"mainpanel",0),S("onSubmit",function(f){return r.onSearch(f)}),l(1,"actions")(2,"a",1),m(3,"i",2),l(4,"span"),s(5,"Table View"),d()()(),l(6,"filters")(7,"div",3)(8,"div")(9,"h6",4),s(10,"Channel"),d(),l(11,"app-channel-options-v2",5),Z("ngModelChange",function(f){return U(r.searchFilter.ListChannelID,f)||(r.searchFilter.ListChannelID=f),f}),d()()()(),l(12,"content")(13,"div",6)(14,"div",7),x(15,fe,2,7,"div",8,P),u(17,ve,2,0,"div",9),d(),u(18,xe,3,4,"div",10),d()()()),n&2&&(a(11),c("multiple",!0),B("ngModel",r.searchFilter.ListChannelID),a(4),b(r.products),a(2),g((r.products==null?null:r.products.length)==0?17:-1),a(),g((r.products==null?null:r.products.length)>0?18:-1))},dependencies:[ee,K,re,M,J,Q,le,oe,ae],encapsulation:2});let e=o;return e})();export{qe as DuplicateSkuComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as M}from"./chunk-
|
|
1
|
+
import{e as M}from"./chunk-D6JH2KV4.js";import{A as B,B as D,w as V}from"./chunk-CGSMHTKB.js";import{Hb as x,Nc as r,Oc as k,Pc as A,Qc as T,Z as y,ac as N,cc as S,id as d,jd as p,lc as a,mc as s,nc as w,ob as o,ra as E,rc as b,sc as v,td as c,ud as m,v as _,xc as C,ya as h,yc as P,za as g}from"./chunk-OHGMB7HJ.js";function R(e,i){if(e&1){let u=b();a(0,"span",9),C("click",function(){h(u);let l=P();return g(l.onShowTotal())}),a(1,"i",10),r(2,"?"),s()()}}function z(e,i){if(e&1&&(a(0,"span"),r(1),d(2,"async"),d(3,"number"),s()),e&2){let u=P();o(),k(u.rowCountApi()?p(2,1,u.rowCount$):p(3,3,u.paginationTotal()))}}var K=(()=>{let i=class i{constructor(){this.httpService=E(M),this.nextButtonAlwaysVisible=m(!1),this.filter=m(void 0),this.paginationTotal=m(void 0),this.totaldata=m(void 0),this.next=c(),this.filterChange=c(),this.previous=c(),this.total=c(),this.hasClicked=!1,this.rowCountApi=m(null),this.rowCount$=null}initRowCount(){this.rowCountApi()&&(this.hasClicked=!0,this.rowCount$=this.httpService.post(this.rowCountApi(),this.filter()).pipe(_(f=>f.Count),y(1)))}onShowTotal(){this.total.emit(),this.initRowCount()}onPreviousPage(){this.filter().PageNumber=this.filter().PageNumber-1,this.filterChange.emit(this.filter()),this.previous.emit()}onNextPage(){this.filter().PageNumber=this.filter().PageNumber+1,this.filterChange.emit(this.filter()),this.next.emit()}};i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=x({type:i,selectors:[["app-custom-paginator"]],inputs:{nextButtonAlwaysVisible:[1,"nextButtonAlwaysVisible"],filter:[1,"filter"],paginationTotal:[1,"paginationTotal"],totaldata:[1,"totaldata"],hasClicked:"hasClicked",rowCountApi:[1,"rowCountApi"]},outputs:{next:"next",filterChange:"filterChange",previous:"previous",total:"total"},decls:17,vars:12,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click","hidden"],[1,"fas","fa-arrow-left"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click","hidden"],[1,"fas","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(l,t){if(l&1){let n=b();a(0,"div",0)(1,"div",1)(2,"div",2),r(3),d(4,"number"),d(5,"number"),N(6,R,3,0,"span",3)(7,z,4,5,"span"),r(8),s()(),a(9,"div",4)(10,"a",5),C("click",function(){return h(n),g(t.onPreviousPage())}),w(11,"i",6),r(12," Prev"),s(),a(13,"a",7),d(14,"async"),C("click",function(){return h(n),g(t.onNextPage())}),w(15,"i",8),r(16," Next"),s()()()}if(l&2){let n=t.filter().PageSize!=null||t.filter().PageSize!=null?t.filter().PageSize:t.filter().RowCount;o(3),T(" Showing ",p(4,6,n*(t.filter().PageNumber-1)+1)," - ",p(5,8,n*(t.filter().PageNumber-1)+t.totaldata())," of "),o(3),S(t.hasClicked?7:6),o(2),A(" records ~ ",t.filter().PageNumber," Page "),o(2),v("hidden",t.filter().PageNumber==1),o(3),v("hidden",(n*(t.filter().PageNumber-1)+t.totaldata()==(t.rowCountApi()?p(14,10,t.rowCount$):t.paginationTotal())||t.totaldata()<n)&&!t.nextButtonAlwaysVisible())}},dependencies:[D,V,B],encapsulation:2});let e=i;return e})();export{K as a};
|