marketplacepos 5.48.0 → 5.48.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/Marketplace/3rdpartylicenses.txt +26 -26
  2. package/Marketplace/{chunk-222IOSGU.js → chunk-2F4DTZCZ.js} +1 -1
  3. package/Marketplace/{chunk-3LU2SFN4.js → chunk-2IASUYTM.js} +1 -1
  4. package/Marketplace/chunk-2USFVKEX.js +1 -0
  5. package/Marketplace/chunk-36U7D4LI.js +1 -0
  6. package/Marketplace/chunk-3JYZF65T.js +1 -0
  7. package/Marketplace/chunk-3K2EKA5O.js +1 -0
  8. package/Marketplace/{chunk-ZV7EHPNJ.js → chunk-3L7Y6LG6.js} +1 -1
  9. package/Marketplace/chunk-4JDI3AL5.js +1 -0
  10. package/Marketplace/{chunk-5YBWBAQS.js → chunk-4YCSITNV.js} +1 -1
  11. package/Marketplace/{chunk-55BTWXFX.js → chunk-5BSPSA4O.js} +1 -1
  12. package/Marketplace/chunk-5CHTDUME.js +1 -0
  13. package/Marketplace/chunk-5KYN6Y7M.js +1 -0
  14. package/Marketplace/{chunk-56BH43Y7.js → chunk-5X2E3W32.js} +1 -1
  15. package/Marketplace/{chunk-WW7F6LSG.js → chunk-5X2L45XK.js} +1 -1
  16. package/Marketplace/chunk-6EORXONU.js +4 -0
  17. package/Marketplace/{chunk-34UF36YY.js → chunk-6OIMOM7S.js} +1 -1
  18. package/Marketplace/{chunk-J2BPOHP6.js → chunk-6OJQRHIZ.js} +1 -1
  19. package/Marketplace/{chunk-ZAUKG4R6.js → chunk-6PW6S7MI.js} +1 -1
  20. package/Marketplace/chunk-6XDT56RT.js +2 -0
  21. package/Marketplace/{chunk-JOKDW6WD.js → chunk-7DT7FQ2T.js} +1 -1
  22. package/Marketplace/{chunk-KKB4B7FU.js → chunk-7GY4O2UX.js} +3 -3
  23. package/Marketplace/chunk-7SB4C4PT.js +1 -0
  24. package/Marketplace/chunk-A7PUMY67.js +1 -0
  25. package/Marketplace/chunk-ADKAX3OO.js +1 -0
  26. package/Marketplace/chunk-AEVLZ7NS.js +1 -0
  27. package/Marketplace/{chunk-NECWUPZQ.js → chunk-AFIF6VRM.js} +1 -1
  28. package/Marketplace/chunk-AGBJEXIM.js +1 -0
  29. package/Marketplace/chunk-ALPG22RQ.js +1 -0
  30. package/Marketplace/{chunk-DRTRU4DB.js → chunk-B6F5PDL5.js} +1 -1
  31. package/Marketplace/{chunk-HERBJRWM.js → chunk-BXYXVBXP.js} +1 -1
  32. package/Marketplace/{chunk-KWNXPX2M.js → chunk-C6JHPCLF.js} +1 -1
  33. package/Marketplace/{chunk-B4QCGMST.js → chunk-C7N6EI73.js} +1 -1
  34. package/Marketplace/{chunk-PQEXTCFW.js → chunk-CAZ7U2IL.js} +10 -10
  35. package/Marketplace/chunk-CBU473N2.js +1 -0
  36. package/Marketplace/{chunk-UNGNRJ2B.js → chunk-CLQGGKN6.js} +1 -1
  37. package/Marketplace/chunk-CT6UFONR.js +1 -0
  38. package/Marketplace/{chunk-IO2TWJDO.js → chunk-DAUML5UD.js} +1 -1
  39. package/Marketplace/chunk-DH5CXAEM.js +1 -0
  40. package/Marketplace/chunk-DHPNXR6E.js +1 -0
  41. package/Marketplace/chunk-DTAHV4GM.js +1 -0
  42. package/Marketplace/{chunk-MQXW3UAW.js → chunk-DXYMG6QK.js} +1 -1
  43. package/Marketplace/chunk-E3EBAWLJ.js +1 -0
  44. package/Marketplace/chunk-E66QUDQF.js +1 -0
  45. package/Marketplace/chunk-E6ZWL77N.js +1 -0
  46. package/Marketplace/chunk-EDEZ3JLR.js +4 -0
  47. package/Marketplace/{chunk-OROFEDQN.js → chunk-FCEXPGTK.js} +1 -1
  48. package/Marketplace/chunk-FCFCTT5A.js +1 -0
  49. package/Marketplace/chunk-FHER4TFY.js +1 -0
  50. package/Marketplace/{chunk-VZSHSSQZ.js → chunk-FKGKMEDE.js} +1 -1
  51. package/Marketplace/chunk-FRZCC6KZ.js +1 -0
  52. package/Marketplace/chunk-GG3MDS4C.js +1 -0
  53. package/Marketplace/{chunk-ONU4O7N2.js → chunk-GPHNPV7O.js} +1 -1
  54. package/Marketplace/{chunk-J7FL3VT4.js → chunk-GURSK3ZV.js} +1 -1
  55. package/Marketplace/{chunk-N3WBRUNI.js → chunk-GVI6GJHY.js} +1 -1
  56. package/Marketplace/chunk-GX6JPDQ5.js +1 -0
  57. package/Marketplace/chunk-H7GV5SNI.js +5 -0
  58. package/Marketplace/{chunk-S32PEKW5.js → chunk-HKHNRMPT.js} +1 -1
  59. package/Marketplace/{chunk-5O33CV4F.js → chunk-I723PUUO.js} +1 -1
  60. package/Marketplace/{chunk-PGR6BEOA.js → chunk-I7C6W3RB.js} +1 -1
  61. package/Marketplace/{chunk-R6SCDZGW.js → chunk-IDH7MCR3.js} +1 -1
  62. package/Marketplace/chunk-ILW6ZFFV.js +1 -0
  63. package/Marketplace/chunk-J6BQDYXO.js +1 -0
  64. package/Marketplace/{chunk-TCWEUEBR.js → chunk-J6CZKQ53.js} +1 -1
  65. package/Marketplace/chunk-JBEKD57G.js +1 -0
  66. package/Marketplace/{chunk-G6P2UZU4.js → chunk-JW7NES7L.js} +1 -1
  67. package/Marketplace/{chunk-O4HOLA7Y.js → chunk-KSVJCX2D.js} +1 -1
  68. package/Marketplace/chunk-KVDREHOE.js +1 -0
  69. package/Marketplace/chunk-KZSTYKIP.js +1 -0
  70. package/Marketplace/{chunk-76CPUGUB.js → chunk-L76NLJD7.js} +2 -2
  71. package/Marketplace/{chunk-XBDQR2BA.js → chunk-LABF6W37.js} +1 -1
  72. package/Marketplace/{chunk-MAMCOUZ6.js → chunk-M2BYW5SR.js} +1 -1
  73. package/Marketplace/{chunk-P6TDS7UT.js → chunk-M65Z55OS.js} +1 -1
  74. package/Marketplace/chunk-MKADKY44.js +2 -0
  75. package/Marketplace/{chunk-NYJPPKGX.js → chunk-NCKPMA6Q.js} +1 -1
  76. package/Marketplace/{chunk-TDCMI7YC.js → chunk-O2YF5VGD.js} +1 -1
  77. package/Marketplace/chunk-O4EO3YBL.js +1 -0
  78. package/Marketplace/{chunk-Y6WFE3L2.js → chunk-OBF4XVU7.js} +1 -1
  79. package/Marketplace/chunk-PDCVMSLL.js +1 -0
  80. package/Marketplace/chunk-PLLHTY6O.js +15 -0
  81. package/Marketplace/chunk-PMVDQ2OP.js +1 -0
  82. package/Marketplace/chunk-PZKN5FIT.js +1 -0
  83. package/Marketplace/chunk-Q4TAOZ73.js +1 -0
  84. package/Marketplace/chunk-QCV5XC3U.js +266 -0
  85. package/Marketplace/{chunk-GV3NEJJ6.js → chunk-QFSA7CU4.js} +1 -1
  86. package/Marketplace/{chunk-XUBQATMN.js → chunk-R2XT5M5F.js} +1 -1
  87. package/Marketplace/chunk-RCBY7EIY.js +1 -0
  88. package/Marketplace/{chunk-J5BZDPXE.js → chunk-RQQWNLDZ.js} +1 -1
  89. package/Marketplace/chunk-S5R6MCNP.js +5 -0
  90. package/Marketplace/{chunk-RJFFTIAO.js → chunk-S7CKRTJV.js} +1 -1
  91. package/Marketplace/{chunk-PZB3GQWT.js → chunk-SHUYFOQI.js} +1 -1
  92. package/Marketplace/{chunk-SILAIDPV.js → chunk-STYL7ETF.js} +1 -1
  93. package/Marketplace/{chunk-E7FHMF3J.js → chunk-SZVL42NR.js} +1 -1
  94. package/Marketplace/chunk-T7HRAMHR.js +1 -0
  95. package/Marketplace/chunk-TIIGDXIJ.js +2 -0
  96. package/Marketplace/{chunk-CEXUETT6.js → chunk-TJYYRHZZ.js} +1 -1
  97. package/Marketplace/{chunk-DYQ3BWPB.js → chunk-TXOZULMZ.js} +1 -1
  98. package/Marketplace/chunk-TYQY4WPY.js +1 -0
  99. package/Marketplace/chunk-UBTALPOC.js +2 -0
  100. package/Marketplace/{chunk-6XT3JSG5.js → chunk-UCEZJNIL.js} +1 -1
  101. package/Marketplace/chunk-VWX2IX64.js +1 -0
  102. package/Marketplace/{chunk-W7YZT7CH.js → chunk-VYQD3A3M.js} +1 -1
  103. package/Marketplace/{chunk-37NOSLQL.js → chunk-WHHW4IZT.js} +1 -1
  104. package/Marketplace/{chunk-74JHI4MS.js → chunk-WNUTNP6I.js} +1 -1
  105. package/Marketplace/{chunk-DQOO5YZC.js → chunk-WRK3ZHRX.js} +1 -1
  106. package/Marketplace/chunk-X6COQADC.js +1 -0
  107. package/Marketplace/{chunk-7Y2L4CNS.js → chunk-XDBH7EGC.js} +1 -1
  108. package/Marketplace/chunk-XK4RP5MQ.js +1 -0
  109. package/Marketplace/{chunk-3I2V337G.js → chunk-XLIPGDSC.js} +1 -1
  110. package/Marketplace/chunk-Y77WYZ6Y.js +5 -0
  111. package/Marketplace/{chunk-NLSVMXR7.js → chunk-ZKIO2ZQ6.js} +1 -1
  112. package/Marketplace/chunk-ZME22WYI.js +1 -0
  113. package/Marketplace/{chunk-A7YRNCQP.js → chunk-ZTHO6JJM.js} +1 -1
  114. package/Marketplace/chunk-ZUL6ZHSW.js +1 -0
  115. package/Marketplace/{chunk-UW3UCIOY.js → chunk-ZW2TMVZP.js} +1 -1
  116. package/Marketplace/index.html +2 -2
  117. package/Marketplace/main-YJKBQ3LW.js +1 -0
  118. package/Marketplace/{styles-3SQUCHWS.css → styles-ANCVZJP7.css} +1 -1
  119. package/package.json +1 -1
  120. package/Marketplace/chunk-2FSRCK7Y.js +0 -1
  121. package/Marketplace/chunk-2LCP6ZFH.js +0 -1
  122. package/Marketplace/chunk-3YDWTOSL.js +0 -1
  123. package/Marketplace/chunk-44URQXRM.js +0 -1
  124. package/Marketplace/chunk-465DKI6M.js +0 -1
  125. package/Marketplace/chunk-46IROEMV.js +0 -2
  126. package/Marketplace/chunk-4R746B4G.js +0 -1
  127. package/Marketplace/chunk-573EEV7X.js +0 -1
  128. package/Marketplace/chunk-5S7ONNKP.js +0 -1
  129. package/Marketplace/chunk-6ZEQRKBC.js +0 -1
  130. package/Marketplace/chunk-7HVOZWYY.js +0 -1
  131. package/Marketplace/chunk-7U32FNM2.js +0 -2
  132. package/Marketplace/chunk-7VRLCSNB.js +0 -1
  133. package/Marketplace/chunk-AL5RTE5M.js +0 -1
  134. package/Marketplace/chunk-AXC6LM6T.js +0 -1
  135. package/Marketplace/chunk-BHGEKKCM.js +0 -1
  136. package/Marketplace/chunk-BLHKSSK6.js +0 -1
  137. package/Marketplace/chunk-BXOHTPGP.js +0 -1
  138. package/Marketplace/chunk-CNTLG54D.js +0 -1
  139. package/Marketplace/chunk-DLXWO2XC.js +0 -1
  140. package/Marketplace/chunk-DPQMNLFO.js +0 -1
  141. package/Marketplace/chunk-E5JZCOHZ.js +0 -1
  142. package/Marketplace/chunk-EMLE4JDW.js +0 -1
  143. package/Marketplace/chunk-FFTZPZOW.js +0 -5
  144. package/Marketplace/chunk-FHZNWINZ.js +0 -1
  145. package/Marketplace/chunk-GLMM3CVD.js +0 -1
  146. package/Marketplace/chunk-GQCDEPDY.js +0 -1
  147. package/Marketplace/chunk-GZLXMT7F.js +0 -1
  148. package/Marketplace/chunk-HG4R6CUP.js +0 -1
  149. package/Marketplace/chunk-HU7LMMZJ.js +0 -1
  150. package/Marketplace/chunk-I3IA6MAD.js +0 -1
  151. package/Marketplace/chunk-IZZQQW5G.js +0 -5
  152. package/Marketplace/chunk-JLVWTKDH.js +0 -1
  153. package/Marketplace/chunk-JUO4RKIH.js +0 -1
  154. package/Marketplace/chunk-L2GMXVN6.js +0 -1
  155. package/Marketplace/chunk-M7U5T2ZP.js +0 -1
  156. package/Marketplace/chunk-MEER4VNV.js +0 -1
  157. package/Marketplace/chunk-N26QQL77.js +0 -1
  158. package/Marketplace/chunk-NOIKC7TF.js +0 -1
  159. package/Marketplace/chunk-ODQVHQPB.js +0 -15
  160. package/Marketplace/chunk-PE7QBBA6.js +0 -1
  161. package/Marketplace/chunk-PNUEO4J2.js +0 -1
  162. package/Marketplace/chunk-PS43OK3J.js +0 -1
  163. package/Marketplace/chunk-SNSROU6N.js +0 -1
  164. package/Marketplace/chunk-SUTHLGCO.js +0 -266
  165. package/Marketplace/chunk-TUJHFVOP.js +0 -1
  166. package/Marketplace/chunk-UI5ITL7Z.js +0 -4
  167. package/Marketplace/chunk-XFIUNEOU.js +0 -1
  168. package/Marketplace/chunk-XW2CGM4G.js +0 -5
  169. package/Marketplace/chunk-YJTPDV4D.js +0 -1
  170. package/Marketplace/chunk-YKEAAH3N.js +0 -2
  171. package/Marketplace/chunk-YTUPRTC2.js +0 -1
  172. package/Marketplace/chunk-ZS465QKM.js +0 -2
  173. package/Marketplace/main-NBCLYU5Y.js +0 -1
@@ -1 +0,0 @@
1
- import{b as me,e as de}from"./chunk-OXWPYJNB.js";import{b as ae,c as re}from"./chunk-BLHKSSK6.js";import{b as M,c as P,i as se,j as y,k as T}from"./chunk-UI5ITL7Z.js";import{c as b,e as j,h as w,i as $,j as ee,l as F,m as N,n as te,q as ne,s as oe,w as ie,y as le}from"./chunk-L3W6SG2T.js";import{c as q,e as Z,f as x}from"./chunk-LNJUGHOX.js";import{$b as h,$c as A,Gb as v,Hc as W,Mb as R,Mc as m,Nc as K,Oc as Q,Qc as E,Rc as D,Sc as G,ad as X,bc as _,gc as u,hc as i,ic as l,jc as L,lb as Y,nb as r,qc as U,vc as S,xa as c,xc as k,ya as C,zb as g}from"./chunk-ZYJ6LAJ3.js";function fe(t,n){if(t&1&&(i(0,"tr")(1,"td")(2,"a",11),L(3,"img",12),i(4,"span"),m(5),l()()(),i(6,"td"),m(7),l(),i(8,"td"),m(9),l()()),t&2){let f=n.$implicit;r(2),u("href","/menu/channel/marketplace/view?ID="+f.Key.ID,Y),r(),u("src",f.Logo,Y),r(2),K(f.Key.Name),r(2),K(f.Value.Out),r(2),K(f.Value.Tg)}}var Pe=(()=>{let n=class n{constructor(a,o){this.dialogRef=a,this.data=o,this.generateChannelName(),this.channels=this.setChannelLogo(o.channels)}ngOnInit(){this.modalConfig=new y,this.modalConfig.title="Channel - New Order Configuration is not Unique!",this.modalConfig.headerType=se.Warning,this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="500px",this.modalConfig.bodyScrollable=!0,this.modalConfig.hideClose=!0}setChannelLogo(a){return a.map(o=>(o.Logo=re.getChannelLogoByTypeId(o.Key.TypeID),o))}generateChannelName(){this.channelNames="";let a=this.data.channels;a.forEach((o,e)=>{this.channelNames+=`${o.Key} ${e!=a.length-1?" + ":""}`})}onClose(){this.dialogRef.close()}};n.\u0275fac=function(o){return new(o||n)(g(M),g(P))},n.\u0275cmp=v({type:n,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),S("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),i(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),m(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),m(7,"Your duplicate Channels are"),l(),i(8,"table",6)(9,"thead")(10,"tr",7)(11,"th"),m(12,"Channel"),l(),i(13,"th"),m(14,"Outlet"),l(),i(15,"th"),m(16,"Tag"),l()()(),i(17,"tbody"),R(18,fe,10,5,"tr",8),l()(),i(19,"p",9),m(20," Please refer to this "),i(21,"a",10),m(22,"article"),l(),m(23," for more information "),l()()()()()),o&2&&(u("config",e.modalConfig),r(18),u("ngForOf",e.channels))},dependencies:[Z,T],encapsulation:2});let t=n;return t})();var je=(()=>{let n=class n{constructor(a,o,e){this.dialogRef=a,this.httpService=o,this.toastr=e,this.modalConfig=new y,this.modalConfig.title="Write Off Reason"}onSubmit(){let a={Name:this.reason};this.subscription=this.httpService.post("/api/channel/AddWriteoffOption",a).subscribe(o=>{this.toastr.success(o.Message,"Success"),this.dialogRef.close(a)})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.subscription.unsubscribe()}};n.\u0275fac=function(o){return new(o||n)(g(M),g(de),g(me))},n.\u0275cmp=v({type:n,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 d=U();i(0,"modal-material",1),S("onClose",function(){return c(d),C(e.onClose())})("onCancel",function(){return c(d),C(e.onClose())})("onOk",function(){return c(d),C(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),G("ngModelChange",function(p){return c(d),D(e.reason,p)||(e.reason=p),C(p)}),l(),i(5,"label",5),m(6,"Reason"),l()()()()}o&2&&(u("dynamicValidated",e.reason)("config",e.modalConfig),r(3),E("ngModel",e.reason))},dependencies:[b,w,N,T],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}"]});let t=n;return t})();var ce=t=>({invalid:t});function Ce(t,n){t&1&&(i(0,"small"),m(1," URL is required "),l())}function ge(t,n){if(t&1&&(i(0,"div",13),R(1,Ce,2,0,"small",14),l()),t&2){k();let f=W(10);r(),u("ngIf",f.errors.required)}}function he(t,n){t&1&&(i(0,"small"),m(1," Email is required "),l())}function _e(t,n){t&1&&(i(0,"small"),m(1," Email is not valid "),l())}function ye(t,n){if(t&1&&(i(0,"div",13),R(1,he,2,0,"small",14)(2,_e,2,0,"small",14),l()),t&2){k();let f=W(16);r(),u("ngIf",f.errors.required),r(),u("ngIf",f.errors.pattern)}}var He=(()=>{let n=class n{constructor(a){this.dialogRef=a}ngOnInit(){this.formData={URL:"",Email:""},this.initModalConfig()}initModalConfig(){this.modalConfig=new y,this.modalConfig.title="Fill data for Customer Support"}onSubmit(a){a!="Enter"&&this.dialogRef.close(this.formData)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(o){return new(o||n)(g(M))},n.\u0275cmp=v({type:n,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 d=U();i(0,"modal-material",2),S("onClose",function(){return c(d),C(e.onClose())})("onCancel",function(){return c(d),C(e.onClose())})("onOk",function(p){return c(d),C(e.onSubmit(p))}),i(1,"div",3)(2,"div",4)(3,"label",5),m(4,"Tokopedia URL"),l(),i(5,"div",6)(6,"div",7)(7,"span",8),m(8,"https://tokopedia.com/"),l()(),i(9,"input",9,0),G("ngModelChange",function(p){return c(d),D(e.formData.URL,p)||(e.formData.URL=p),C(p)}),l()(),R(11,ge,2,1,"div",10),i(12,"label",11),m(13,"Requester's Email"),l(),i(14,"div",6)(15,"input",12,1),G("ngModelChange",function(p){return c(d),D(e.formData.Email,p)||(e.formData.Email=p),C(p)}),l()(),R(17,ye,3,2,"div",10),l()()()}if(o&2){let d=W(10),s=W(16);u("dynamicValidated",!d.invalid&&!s.invalid)("config",e.modalConfig),r(7),u("ngClass",A(7,ce,d.invalid&&(d.dirty||d.touched))),r(2),E("ngModel",e.formData.URL),r(2),u("ngIf",d.invalid&&(d.dirty||d.touched)),r(4),E("ngModel",e.formData.Email),r(2),u("ngIf",s.invalid&&(s.dirty||s.touched))}},dependencies:[q,x,b,w,ie,le,N,T],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}"]});let t=n;return t})();var Xe=(()=>{let n=class n{constructor(a,o){this.dialogRef=a,this.data=o}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new y,this.modalConfig.title=this.data?.title,this.modalConfig.okText="SAVE"}onSubmit(){this.dialogRef.close(this.shopID)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(o){return new(o||n)(g(M),g(P))},n.\u0275cmp=v({type:n,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 d=U();i(0,"modal-material",1),S("onClose",function(){return c(d),C(e.onClose())})("onCancel",function(){return c(d),C(e.onClose())})("onOk",function(){return c(d),C(e.onSubmit())}),i(1,"div",2)(2,"div",3)(3,"input",4,0),G("ngModelChange",function(p){return c(d),D(e.shopID,p)||(e.shopID=p),C(p)}),l(),i(5,"label",5),m(6,"Shop ID"),l()()()()}o&2&&(u("dynamicValidated",e.shopID)("config",e.modalConfig),r(3),E("ngModel",e.shopID))},dependencies:[b,w,N,T],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}"]});let t=n;return t})();var ve=t=>({"input-group":t}),Se=(t,n)=>({"is-invalid":t,"input-shopify rounded-start":n}),ue=t=>({"is-invalid":t});function Me(t,n){t&1&&(i(0,"label",3),m(1,"Shopify URL"),l())}function Te(t,n){t&1&&(i(0,"label",3),m(1,"URL"),l())}function be(t,n){t&1&&(i(0,"span",6),m(1,"myshopify.com"),l())}function we(t,n){if(t&1&&(i(0,"div"),m(1),l()),t&2){let f=k(2);r(),Q("",f.data==null?null:f.data.title," url is required")}}function Re(t,n){if(t&1&&(i(0,"div",7),h(1,we,2,1,"div"),l()),t&2){let f,a=k();r(),_(!(a.formGroup==null||(f=a.formGroup.get("URL"))==null)&&f.getError("required")?1:-1)}}function Ee(t,n){t&1&&m(0," API Key ")}function De(t,n){t&1&&m(0," Consumer Key ")}function Ge(t,n){t&1&&(m(0," ("),i(1,"a",11),m(2,"help center article"),l(),m(3,") "))}function Oe(t,n){t&1&&(i(0,"div",7),m(1,"API Key is required"),l())}function Ve(t,n){t&1&&m(0," Admin API Access Token ")}function Ie(t,n){t&1&&m(0," Consumer Secret ")}function Le(t,n){t&1&&(i(0,"div",7),m(1,"Consumer Secret is required"),l())}var nt=(()=>{let n=class n{constructor(a,o){this.dialogRef=a,this.data=o,this.modalConfig=new y,this.urlCtrl=new F(null),this.channelType=ae}ngOnInit(){this.initModalConfig(),this.initFormGroup()}initFormGroup(){let a=[j.required];this.formGroup=new ee({URL:new F(null,a),ConsumerKey:new F(null,[j.required]),ConsumerSecret:new F(null,[j.required])})}initModalConfig(){this.modalConfig=new y,this.modalConfig.title=this.data.title,this.modalConfig.okText="SAVE"}onClose(){this.dialogRef.close()}onSubmit(){this.formGroup.markAllAsTouched();let a=this.formGroup?.get("URL")?.getError("pattern"),o=this.formGroup?.get("ConsumerKey")?.valid,e=this.formGroup?.get("ConsumerSecret")?.valid;if(this.formGroup?.valid||a&&o&&e){let s=this.formGroup.value;s=this.trimShopifyUrl(s),this.dialogRef.close(s)}}trimShopifyUrl(a){if(this.data?.channelType==this.channelType.Shopify){let o=a.URL?.trim()||"";o=o.replace(/^https?:\/\//,""),o.includes(".myshopify.com")||(o=`${o}.myshopify.com`),a.URL=o}return a}};n.\u0275fac=function(o){return new(o||n)(g(M),g(P))},n.\u0275cmp=v({type:n,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),S("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()})("onOk",function(){return e.onSubmit()}),i(1,"div",1)(2,"form",2),h(3,Me,2,0,"label",3),i(4,"div",4),h(5,Te,2,0,"label",3),L(6,"input",5),h(7,be,2,0,"span",6),h(8,Re,2,1,"div",7),l(),i(9,"div",8)(10,"label",3)(11,"span"),h(12,Ee,1,0)(13,De,1,0),l(),h(14,Ge,4,0),l(),L(15,"input",9),h(16,Oe,2,0,"div",7),l(),i(17,"div",8)(18,"label",3),h(19,Ve,1,0)(20,Ie,1,0),l(),L(21,"input",10),h(22,Le,2,0,"div",7),l()()()()),o&2){let d,s,p,O,V,I;u("config",e.modalConfig),r(2),u("formGroup",e.formGroup),r(),_((e.data==null?null:e.data.channelType)==e.channelType.Shopify?3:-1),r(),u("ngClass",A(18,ve,(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),r(),_((e.data==null?null:e.data.channelType)!=e.channelType.Shopify?5:-1),r(),u("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[ex: brand.myshopify.com]":"https://mydomain.com/")("ngClass",X(20,Se,(e.formGroup==null||(d=e.formGroup.get("URL"))==null?null:d.invalid)&&((e.formGroup==null||(d=e.formGroup.get("URL"))==null?null:d.dirty)||(e.formGroup==null||(d=e.formGroup.get("URL"))==null?null:d.touched)),(e.data==null?null:e.data.channelType)==e.channelType.Shopify)),r(),_((e.data==null?null:e.data.channelType)==e.channelType.Shopify?7:-1),r(),_(!(e.formGroup==null||(s=e.formGroup.get("URL"))==null)&&s.invalid&&(!(e.formGroup==null||(s=e.formGroup.get("URL"))==null)&&s.dirty||!(e.formGroup==null||(s=e.formGroup.get("URL"))==null)&&s.touched)?8:-1),r(4),_((e.data==null?null:e.data.channelType)==e.channelType.Shopify?12:13),r(2),_((e.data==null?null:e.data.channelType)==e.channelType.Shopify?14:-1),r(),u("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",A(23,ue,(e.formGroup==null||(p=e.formGroup.get("ConsumerKey"))==null?null:p.invalid)&&((e.formGroup==null||(p=e.formGroup.get("ConsumerKey"))==null?null:p.dirty)||(e.formGroup==null||(p=e.formGroup.get("ConsumerKey"))==null?null:p.touched)))),r(),_(!(e.formGroup==null||(O=e.formGroup.get("ConsumerKey"))==null)&&O.getError("required")&&(!(e.formGroup==null||(O=e.formGroup.get("ConsumerKey"))==null)&&O.dirty||!(e.formGroup==null||(O=e.formGroup.get("ConsumerKey"))==null)&&O.touched)?16:-1),r(3),_((e.data==null?null:e.data.channelType)==e.channelType.Shopify?19:20),r(2),u("placeholder",(e.data==null?null:e.data.channelType)==e.channelType.Shopify?"[shpat***************************]":"cs_***************")("ngClass",A(25,ue,(e.formGroup==null||(V=e.formGroup.get("ConsumerSecret"))==null?null:V.invalid)&&((e.formGroup==null||(V=e.formGroup.get("ConsumerSecret"))==null?null:V.dirty)||(e.formGroup==null||(V=e.formGroup.get("ConsumerSecret"))==null?null:V.touched)))),r(),_(!(e.formGroup==null||(I=e.formGroup.get("ConsumerSecret"))==null)&&I.getError("required")&&(!(e.formGroup==null||(I=e.formGroup.get("ConsumerSecret"))==null)&&I.dirty||!(e.formGroup==null||(I=e.formGroup.get("ConsumerSecret"))==null)&&I.touched)?22:-1)}},dependencies:[q,te,b,w,$,T,ne,oe],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}"]});let t=n;return t})();export{Pe as a,je as b,He as c,Xe as d,nt as e};