marketplacepos 3.22.0 → 3.22.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 (167) hide show
  1. package/Marketplace/3rdpartylicenses.txt +224 -13
  2. package/Marketplace/{chunk-7NE7ZI6R.js → chunk-2DQJZ4SM.js} +3 -3
  3. package/Marketplace/chunk-2OOIDPNY.js +1 -0
  4. package/Marketplace/chunk-2UKRBTWA.js +1 -0
  5. package/Marketplace/{chunk-UX3GY5M2.js → chunk-3QG5QJ5P.js} +1 -1
  6. package/Marketplace/chunk-3Y4WD5EY.js +1 -0
  7. package/Marketplace/{chunk-LIPM3QTO.js → chunk-44YUSAMN.js} +1 -1
  8. package/Marketplace/chunk-46AOM3SM.js +149 -0
  9. package/Marketplace/chunk-4E6A74GC.js +1 -0
  10. package/Marketplace/chunk-4LFFAE2I.js +1 -0
  11. package/Marketplace/chunk-4SAJUEHO.js +1 -0
  12. package/Marketplace/chunk-4YWF6TMR.js +5 -0
  13. package/Marketplace/{chunk-GCHJ4FTF.js → chunk-5JOW2QWK.js} +1 -1
  14. package/Marketplace/chunk-6DNNP4QT.js +1 -0
  15. package/Marketplace/chunk-6L2IXOY3.js +1 -0
  16. package/Marketplace/chunk-6SF7AUOH.js +1 -0
  17. package/Marketplace/{chunk-45PCYYJD.js → chunk-6YZFSP2B.js} +1 -1
  18. package/Marketplace/chunk-75I4TWVV.js +5 -0
  19. package/Marketplace/chunk-7AFVU7XM.js +1 -0
  20. package/Marketplace/chunk-ADRVUMMW.js +1 -0
  21. package/Marketplace/chunk-B2TH5YJH.js +1142 -0
  22. package/Marketplace/chunk-BO4PPSB5.js +2 -0
  23. package/Marketplace/chunk-BQ7NR3ET.js +1 -0
  24. package/Marketplace/chunk-BSN7ZAXG.js +1 -0
  25. package/Marketplace/chunk-CCXKODFV.js +2 -0
  26. package/Marketplace/{chunk-AGKVS3IQ.js → chunk-CODNZKCM.js} +1 -1
  27. package/Marketplace/chunk-CSSLFHG7.js +1 -0
  28. package/Marketplace/chunk-DR4IU4JY.js +1 -0
  29. package/Marketplace/chunk-E5GGIVK7.js +1 -0
  30. package/Marketplace/{chunk-QFU3JTYR.js → chunk-EW5A6GIY.js} +1 -1
  31. package/Marketplace/{chunk-PCKZD4LZ.js → chunk-FGPSBTFS.js} +1 -1
  32. package/Marketplace/chunk-FKYJVN2C.js +1 -0
  33. package/Marketplace/{chunk-UOT5GPQI.js → chunk-FMV4LYKN.js} +1 -1
  34. package/Marketplace/chunk-FY3BLGYI.js +1 -0
  35. package/Marketplace/{chunk-OUJF6YWV.js → chunk-GCKSYCMI.js} +5 -11
  36. package/Marketplace/chunk-GJIFVUBA.js +1 -0
  37. package/Marketplace/chunk-GOXRLSEL.js +1 -0
  38. package/Marketplace/{chunk-C2SGQUOH.js → chunk-HCDKYABV.js} +1 -1
  39. package/Marketplace/chunk-HHYOM3XB.js +1 -0
  40. package/Marketplace/chunk-HT7RB66L.js +1 -0
  41. package/Marketplace/chunk-HUUFOAKH.js +1 -0
  42. package/Marketplace/chunk-HVVW4B4W.js +1 -0
  43. package/Marketplace/chunk-HXJF7C6Q.js +1 -0
  44. package/Marketplace/chunk-I5BQWXUB.js +8 -0
  45. package/Marketplace/chunk-IJYSJN63.js +443 -0
  46. package/Marketplace/chunk-ILVEM7H5.js +1 -0
  47. package/Marketplace/chunk-J5D7PMX5.js +2 -0
  48. package/Marketplace/chunk-JHV7PQGJ.js +1 -0
  49. package/Marketplace/chunk-JKLGOAB3.js +2 -0
  50. package/Marketplace/chunk-JP44SOP7.js +13 -0
  51. package/Marketplace/chunk-JXTGH22T.js +1 -0
  52. package/Marketplace/chunk-KNWBPJ23.js +1 -0
  53. package/Marketplace/chunk-LI6EUEGJ.js +1 -0
  54. package/Marketplace/chunk-LRU7GIXZ.js +1 -0
  55. package/Marketplace/chunk-LZXKPCX7.js +1 -0
  56. package/Marketplace/chunk-MFAJDQPX.js +1 -0
  57. package/Marketplace/chunk-MJ6RQDI4.js +1 -0
  58. package/Marketplace/{chunk-ZRW4OZGG.js → chunk-MY4B7K3R.js} +1 -1
  59. package/Marketplace/{chunk-GDA72XOJ.js → chunk-N6IHFFFZ.js} +1 -1
  60. package/Marketplace/chunk-NJKWLKN6.js +1 -0
  61. package/Marketplace/{chunk-4NXO2JYR.js → chunk-NYDPS33K.js} +1 -1
  62. package/Marketplace/chunk-OCYDG646.js +1494 -0
  63. package/Marketplace/chunk-OKR5PVTL.js +1 -0
  64. package/Marketplace/chunk-OSSJKXND.js +1 -0
  65. package/Marketplace/chunk-OTFJUSZU.js +8 -0
  66. package/Marketplace/chunk-OULUJ2IO.js +189 -0
  67. package/Marketplace/chunk-OVEJFFL6.js +2 -0
  68. package/Marketplace/chunk-P674TVHC.js +1 -0
  69. package/Marketplace/chunk-PD4CUVAW.js +1 -0
  70. package/Marketplace/chunk-POGKTX46.js +1 -0
  71. package/Marketplace/chunk-PQDPS2ID.js +7 -0
  72. package/Marketplace/chunk-QN5QWB3Z.js +1 -0
  73. package/Marketplace/chunk-QP6O4KGV.js +1 -0
  74. package/Marketplace/chunk-QW4P7RSU.js +1 -0
  75. package/Marketplace/chunk-RDHVV7FZ.js +1 -0
  76. package/Marketplace/{chunk-EYZIWEGE.js → chunk-RENQ3YZH.js} +1 -1
  77. package/Marketplace/chunk-RGGT2KKB.js +1 -0
  78. package/Marketplace/chunk-RI7RZYID.js +1 -0
  79. package/Marketplace/chunk-T32TE7CZ.js +1 -0
  80. package/Marketplace/chunk-TPGBOTD4.js +1 -0
  81. package/Marketplace/chunk-TVRKGWQB.js +1 -0
  82. package/Marketplace/chunk-UMNGKENU.js +1 -0
  83. package/Marketplace/chunk-UN2U4YFQ.js +1 -0
  84. package/Marketplace/chunk-WT6W7RAQ.js +1 -0
  85. package/Marketplace/chunk-WTR5UFZI.js +5 -0
  86. package/Marketplace/chunk-X5Q6FPWS.js +315 -0
  87. package/Marketplace/chunk-XB345KSK.js +2 -0
  88. package/Marketplace/{chunk-J7V5HHYR.js → chunk-Y2T3CEPZ.js} +1 -1
  89. package/Marketplace/chunk-YC44HHHF.js +2 -0
  90. package/Marketplace/chunk-YIB7FZAQ.js +7 -0
  91. package/Marketplace/chunk-Z6PE5TYH.js +1 -0
  92. package/Marketplace/{chunk-XSYSCEVJ.js → chunk-ZRPSM5PK.js} +1 -1
  93. package/Marketplace/index.html +4 -4
  94. package/Marketplace/main-MTZIDUMD.js +1 -0
  95. package/Marketplace/styles-BTL6DIRV.css +1 -0
  96. package/package.json +1 -1
  97. package/Marketplace/chunk-2KEQ33LI.js +0 -1
  98. package/Marketplace/chunk-2LJXM62F.js +0 -1
  99. package/Marketplace/chunk-47XYXHGL.js +0 -1
  100. package/Marketplace/chunk-4AUJZEST.js +0 -1
  101. package/Marketplace/chunk-5SIWWKAE.js +0 -1
  102. package/Marketplace/chunk-5SOVI5O5.js +0 -1
  103. package/Marketplace/chunk-633RG6PO.js +0 -15
  104. package/Marketplace/chunk-732MTT44.js +0 -1
  105. package/Marketplace/chunk-76JMXELT.js +0 -1
  106. package/Marketplace/chunk-7FSQ3UC2.js +0 -1
  107. package/Marketplace/chunk-7IIB5DLC.js +0 -2
  108. package/Marketplace/chunk-7N5WLZWW.js +0 -1
  109. package/Marketplace/chunk-AUBPDK26.js +0 -1
  110. package/Marketplace/chunk-BR6MS275.js +0 -1
  111. package/Marketplace/chunk-DAYV52M7.js +0 -9
  112. package/Marketplace/chunk-DSKMV7XY.js +0 -3
  113. package/Marketplace/chunk-EE7O2AZI.js +0 -1
  114. package/Marketplace/chunk-EJSGWKV7.js +0 -1
  115. package/Marketplace/chunk-ENIJ4MFV.js +0 -1
  116. package/Marketplace/chunk-EQIBEDOW.js +0 -1
  117. package/Marketplace/chunk-EXBAGUW2.js +0 -1
  118. package/Marketplace/chunk-F57GDDSE.js +0 -14
  119. package/Marketplace/chunk-FSOI4J4S.js +0 -1
  120. package/Marketplace/chunk-HDDGFXNT.js +0 -1
  121. package/Marketplace/chunk-HPD77AAI.js +0 -1
  122. package/Marketplace/chunk-IPSL7J32.js +0 -1
  123. package/Marketplace/chunk-IX4CXSQC.js +0 -1
  124. package/Marketplace/chunk-J5DBLKIA.js +0 -1
  125. package/Marketplace/chunk-JCKUKK6T.js +0 -1
  126. package/Marketplace/chunk-JXNW3RX5.js +0 -1
  127. package/Marketplace/chunk-KJ4SL5OX.js +0 -1
  128. package/Marketplace/chunk-KTXT25SP.js +0 -1
  129. package/Marketplace/chunk-KZ2VDCDO.js +0 -1
  130. package/Marketplace/chunk-L3JD55OC.js +0 -1
  131. package/Marketplace/chunk-LLLHVCIO.js +0 -1
  132. package/Marketplace/chunk-LQWFYVLD.js +0 -2
  133. package/Marketplace/chunk-LZVUS3GC.js +0 -3
  134. package/Marketplace/chunk-M4XSRDMC.js +0 -9
  135. package/Marketplace/chunk-MJH2IWI2.js +0 -1
  136. package/Marketplace/chunk-MTS7QNYE.js +0 -2
  137. package/Marketplace/chunk-NBSXPQ4I.js +0 -1
  138. package/Marketplace/chunk-NFEAHFS5.js +0 -1
  139. package/Marketplace/chunk-NLZCSTVO.js +0 -5
  140. package/Marketplace/chunk-NSXCPHWT.js +0 -52
  141. package/Marketplace/chunk-O4N2CCVN.js +0 -1
  142. package/Marketplace/chunk-OE7XFNYO.js +0 -1
  143. package/Marketplace/chunk-OI3SQ5ZO.js +0 -2
  144. package/Marketplace/chunk-OSRAARQQ.js +0 -1
  145. package/Marketplace/chunk-OZ7VTHZ5.js +0 -1
  146. package/Marketplace/chunk-P5VJV3CP.js +0 -2
  147. package/Marketplace/chunk-QBQUD3A5.js +0 -1
  148. package/Marketplace/chunk-QNL3BTRG.js +0 -8
  149. package/Marketplace/chunk-QNQ5QCZX.js +0 -1
  150. package/Marketplace/chunk-RQCGB4NH.js +0 -9
  151. package/Marketplace/chunk-RVEC755T.js +0 -1
  152. package/Marketplace/chunk-S66L7N22.js +0 -1
  153. package/Marketplace/chunk-SCVHFMF7.js +0 -1
  154. package/Marketplace/chunk-SF4KIL5M.js +0 -5
  155. package/Marketplace/chunk-TU4R4DL3.js +0 -1
  156. package/Marketplace/chunk-UAXJ7MHW.js +0 -1
  157. package/Marketplace/chunk-UEB6GFG5.js +0 -1
  158. package/Marketplace/chunk-UNLG5KU7.js +0 -1
  159. package/Marketplace/chunk-WYZ5MSYA.js +0 -1
  160. package/Marketplace/chunk-XNRK463Z.js +0 -1
  161. package/Marketplace/chunk-YUBBVFFI.js +0 -1
  162. package/Marketplace/chunk-ZGYDC5UC.js +0 -1
  163. package/Marketplace/chunk-ZSZQPMV2.js +0 -1
  164. package/Marketplace/main-HPUDU23P.js +0 -1
  165. package/Marketplace/media/color-3LUHUBGQ.png +0 -0
  166. package/Marketplace/media/hue-RMMBQOAC.png +0 -0
  167. package/Marketplace/styles-RZHRYK3K.css +0 -1
@@ -0,0 +1,5 @@
1
+ import{a as Qe,b as j,c as Je}from"./chunk-YC44HHHF.js";import"./chunk-B2TH5YJH.js";import{a as Ye,b as Ge,c as Ue,e as je,f as Ke,g as He}from"./chunk-TPGBOTD4.js";import"./chunk-4LFFAE2I.js";import"./chunk-46AOM3SM.js";import"./chunk-OULUJ2IO.js";import{f as Le,g as Be,h as Ae,i as $e,j as ze}from"./chunk-FGPSBTFS.js";import{a as Re}from"./chunk-YIB7FZAQ.js";import"./chunk-ADRVUMMW.js";import{a as ke,b as Ne,c as We}from"./chunk-UMNGKENU.js";import"./chunk-FMV4LYKN.js";import"./chunk-HCDKYABV.js";import{c as Ee,d as Pe,e as Ie}from"./chunk-CCXKODFV.js";import{g as te,i as ie}from"./chunk-2DQJZ4SM.js";import{b as Te,e as be}from"./chunk-4SAJUEHO.js";import"./chunk-KCDL7SWP.js";import{m as Fe,n as Oe}from"./chunk-BO4PPSB5.js";import{t as Me,u as Ve}from"./chunk-HUUFOAKH.js";import"./chunk-E5GGIVK7.js";import{c as ve,h as ye,m as xe,y as De}from"./chunk-BSN7ZAXG.js";import{b as ee,c as D}from"./chunk-6SF7AUOH.js";import{p as Se,r as Ce}from"./chunk-OVEJFFL6.js";import{$b as S,Cd as k,Da as c,Ea as u,Eb as w,Gb as m,Gc as L,Hc as U,Ic as we,Jc as J,Ma as N,Nb as E,Pa as H,Sb as r,Tb as a,Ub as C,Vb as W,Wb as R,Yb as x,Z as Y,aa as se,bc as h,ea as G,ec as me,fc as ce,fd as q,gb as de,hc as ue,ic as he,ja as pe,jb as l,jc as fe,m as le,mc as b,nc as p,oc as F,pa as y,pc as v,rc as P,sc as I,sd as B,ta as V,tc as M,uc as Q,ud as A,v as K,vc as O,vd as $,xb as g,xc as _e,yc as ge,yd as X,zd as Z}from"./chunk-PQDPS2ID.js";import{a as re,b as oe}from"./chunk-GNOSNGXM.js";var et=e=>({"over-due":e});function tt(e,o){if(e&1&&(r(0,"tr",8)(1,"td"),p(2),a(),r(3,"td"),p(4),a(),r(5,"td"),p(6),a(),r(7,"td"),p(8),a()()),e&2){let s=o.$implicit,t=o.index;m("ngClass",_e(5,et,s.Exception)),l(2),F(t+1),l(2),F(s.Number),l(2),F(s.Status),l(2),F(s.Exception)}}function it(e,o){if(e&1&&(W(0),w(1,tt,9,7,"tr",7),R()),e&2){let s,t=h();l(),m("ngForOf",(s=t.downloadResult())==null?null:s.Body)}}function nt(e,o){e&1&&(r(0,"tr",9)(1,"td",10)(2,"div",11),C(3,"i",12),a(),r(4,"h4",13),p(5," There is no order to processed "),a()()())}var qe=(()=>{let o=class o{constructor(){this.downloadResult=N()}ngOnInit(){}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=V({type:o,selectors:[["complete-step"]],inputs:{downloadResult:[1,"downloadResult"]},standalone:!0,features:[O],decls:16,vars:2,consts:[["EMPTY_DOWNLOAD",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"table"],[1,"thead-light"],["width","1%"],[4,"ngIf","ngIfElse"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1&&(r(0,"div",1)(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr"),C(5,"th",5),r(6,"th"),p(7,"Order Number"),a(),r(8,"th"),p(9,"Status"),a(),r(10,"th"),p(11,"Exception"),a()()(),r(12,"tbody"),w(13,it,2,1,"ng-container",6)(14,nt,6,0,"ng-template",null,0,J),a()()()()),n&2){let d,f=b(15);l(13),m("ngIf",((d=i.downloadResult())==null||d.Body==null?null:d.Body.length)>0)("ngIfElse",f)}},dependencies:[k,B,A,$]});let e=o;return e})();var z=(()=>{let o=class o{constructor(){this.httpService=y(be),this.toastr=y(Te),this.datePipe=y(Z)}gerChannelDetailById(t){return this.httpService.post(te.GetChannelDetail,{ID:t})}getOrderPreview(t){return this.httpService.post(te.GetOrderPreviewV2,t)}getDownloadOrder(t){return this.httpService.post(te.GetDownloadOrderV2,t)}onPreviewOrder(t){return this.validateDatePreview(t)?this.getOrderPreview(t).pipe(G(n=>{n.Data?.length===0&&this.toastrEmptyPreview(t)})):le}toastrEmptyPreview(t){let n=this.datePipe.transform(t.From,"dd MMM yyyy"),i=this.datePipe.transform(t.To,"dd MMM yyyy"),d=t.TimeFrom?t.TimeFrom:"",f=t.TimeTo?t.TimeTo:"";this.toastr.info(`There is no orders from ${n} ${d} to ${i} ${f}!`,"No Orders!")}validateDatePreview(t){let n=!0;return t.downloadType==!0?D.getDaysDiff(t?.From,t?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),n=!1):D.getDaysDiff(t?.From,t?.To)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Warning"),n=!1),n}getDateTitle(t,n){let i=D.formatTitleFromDate(new Date(t),new Date(n)),d=this.datePipe.transform(t,i),f=this.datePipe.transform(n,"dd MMM yyyy");return`${i==null?"":d+"-"} ${f}`}};o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=pe({token:o,factory:o.\u0275fac});let e=o;return e})();function at(e,o){if(e&1&&(r(0,"ng-option",13),C(1,"img",14),p(2),a()),e&2){let s=o.$implicit;m("value",s.ID),l(),m("src",s==null?null:s.Img,de),l(),v("",s.Name," ")}}function rt(e,o){if(e&1){let s=x();r(0,"div",8)(1,"div",4)(2,"h5"),p(3,"Type"),a(),r(4,"p",5),p(5,"Select Type want to download"),a()(),r(6,"div",4)(7,"div",15)(8,"div")(9,"mat-radio-group",16),M("ngModelChange",function(n){c(s);let i=h();return I(i.downloadType,n)||(i.downloadType=n),u(n)}),S("ngModelChange",function(){c(s);let n=h();return u(n.onDownloadTypeChange())}),r(10,"mat-radio-button",17),p(11," Orders "),a(),r(12,"mat-radio-button",18),p(13," Disbursement "),a()()()(),r(14,"div",19)(15,"div",20),C(16,"i",21),a(),r(17,"p",22),p(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),a()()()()}if(e&2){let s=h();l(9),P("ngModel",s.downloadType),l(),m("value",!1),l(2),m("value",!0)}}function ot(e,o){e&1&&(r(0,"p",5),p(1," Select Disbursement date "),r(2,"span",23),p(3,"(payment date / order complete date)"),a(),p(4," of the channel you want to download (Max 1 Week). "),a())}function lt(e,o){e&1&&(r(0,"p",5),p(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),a())}function st(e,o){if(e&1){let s=x();r(0,"div",12)(1,"app-timepicker",24),M("timeChange",function(n){c(s);let i=h();return I(i.startTime,n)||(i.startTime=n),u(n)}),S("timeChange",function(){c(s);let n=h();return u(n.onStartTimeChange())}),a(),r(2,"span",25),p(3,"-"),a(),r(4,"app-timepicker",24),M("timeChange",function(n){c(s);let i=h();return I(i.endTime,n)||(i.endTime=n),u(n)}),S("timeChange",function(){c(s);let n=h();return u(n.onEndTimeChange())}),a()()}if(e&2){let s=h();l(),P("time",s.startTime),l(3),P("time",s.endTime)}}var Xe=(()=>{let o=class o{constructor(){this.reset=N(!1),this.authService=y(ie),this.downloadService=y(z),this.downloadType=g(!1),this.selectedChannelId=g(null),this.channelOptions=g(this.authService.getChannels()),this.channelType=ee,this.selectedChannel=g(null),this.showTimePicker=g(!1),this.startDate=g(null),this.endDate=g(null),this.startTime=g("00:00"),this.endTime=g("23:59"),this.filterData=new H,q(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0})}resetFilter(){this.selectedChannelId.update(()=>null),this.startDate.update(()=>null),this.endDate.update(()=>null),this.startTime.update(()=>null),this.endTime.update(()=>null),this.downloadType.update(()=>!1),this.selectedChannel.update(()=>null),this.showTimePicker.update(()=>!1),this.channelDetail$=null}onSelectChannel(){this.selectedChannel.update(()=>this.channelOptions().find(t=>t.ID===this.selectedChannelId())),this.selectedChannel()?this.channelDetail$=this.downloadService.gerChannelDetailById(this.selectedChannelId()).pipe(K(t=>t?.Model),Y(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let t=1;this.startDate()&&this.endDate()&&(t=D.getDaysDiff(this.startDate(),this.endDate())),this.showTimePicker.update(()=>t==0),this.emitFilterData()}onDownloadTypeChange(){this.emitFilterData()}onStartTimeChange(){this.emitFilterData()}onEndTimeChange(){this.emitFilterData()}emitFilterData(){this.filterData.emit({channelId:this.selectedChannelId(),startDate:this.startDate(),endDate:this.endDate(),downloadType:this.downloadType(),startTime:this.startTime(),endTime:this.endTime()})}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=V({type:o,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange"},standalone:!0,features:[Q([z]),O],decls:27,vars:11,consts:[["picker",""],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[1,"col-12"],[1,"row"],[1,"col-6"],[1,"text-muted"],["appendTo","body","placeholder","Select Channel",3,"ngModelChange","clearable","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"row","mt-6"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"mt-8"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type",2,"margin-bottom","0px"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download from Create sales order until create logistics status",1,"me-5",3,"value"],["matTooltip","Download only Payment and write off",1,"me-5",3,"value"],[1,"d-flex","border","mb-4","pt-6","px-6","mt-3",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],[1,"fw-bold"],[3,"timeChange","time"],[1,"mx-4"]],template:function(n,i){if(n&1){let d=x();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),p(5,"Select a Channel"),a(),r(6,"p",5),p(7,"Select Channel want to download order"),a()(),r(8,"div",4)(9,"ng-select",6),M("ngModelChange",function(_){return c(d),I(i.selectedChannelId,_)||(i.selectedChannelId=_),u(_)}),S("ngModelChange",function(){return c(d),u(i.onSelectChannel())}),w(10,at,3,3,"ng-option",7),a()()(),w(11,rt,19,3,"div",8),L(12,"async"),r(13,"div",8)(14,"div",4)(15,"h5"),p(16,"Date Range"),a(),w(17,ot,5,0,"p",5)(18,lt,2,0,"p",5),a(),r(19,"div",4)(20,"div",2)(21,"mat-date-range-input",9)(22,"input",10),M("ngModelChange",function(_){return c(d),I(i.startDate,_)||(i.startDate=_),u(_)}),S("click",function(){c(d);let _=b(25);return u(_.open())}),a(),r(23,"input",11),M("ngModelChange",function(_){return c(d),I(i.endDate,_)||(i.endDate=_),u(_)}),S("click",function(){c(d);let _=b(25);return u(_.open())})("ngModelChange",function(){return c(d),u(i.onFilterDateChange())}),a()(),C(24,"mat-date-range-picker",null,0),a(),w(26,st,5,2,"div",12),a()()()()}if(n&2){let d,f,_=b(25);l(9),m("clearable",!1),P("ngModel",i.selectedChannelId),l(),m("ngForOf",i.channelOptions()),l(),E((d=U(12,9,i.channelDetail$))!=null&&d.ServiceFeeWriteOff&&((d=i.selectedChannel())==null?null:d.TypeID)==i.channelType.Tokopedia?11:-1),l(6),E(i.downloadType()&&((f=i.selectedChannel())==null?null:f.TypeID)==i.channelType.Tokopedia?17:18),l(4),m("rangePicker",_),l(),P("ngModel",i.startDate),l(),P("ngModel",i.endDate),l(3),E(i.showTimePicker()?26:-1)}},dependencies:[k,A,X,Ie,Pe,Ee,We,ke,Ne,De,ve,ye,xe,Je,$e,Ae,ze,Le,Be],styles:[".vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.mt-1rem[_ngcontent-%COMP%]{margin-top:1rem}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}.form-label-group.radio.download-type[_ngcontent-%COMP%]{height:45.5938px!important;border-radius:.375rem!important}"]});let e=o;return e})();var T=function(e){return e.ALL="all",e.SYNC="sync",e.WRONG="wrong",e.UNSYNC="unsync",e}(T||{});var pt=(e,o)=>({"over-due-today":e,"over-due":o});function dt(e,o){if(e&1&&(r(0,"th",21),p(1),a()),e&2){let s=h();l(),v(" ",s.selectedChannel()?"Created Date":"Last Status Update"," ")}}function mt(e,o){if(e&1&&(r(0,"td"),p(1),L(2,"date"),a()),e&2){let s=h().$implicit;l(),v(" ",we(2,1,s.Date,"dd MMM yyyy HH:mm:ss")," ")}}function ct(e,o){if(e&1&&(r(0,"span"),p(1),a()),e&2){let s=h().$implicit;l(),v(" ",s.ActionString," ")}}function ut(e,o){if(e&1&&(r(0,"li"),p(1),a()),e&2){let s=o.$implicit;l(),v(" ",s," ")}}function ht(e,o){if(e&1&&(r(0,"ul",27),w(1,ut,2,1,"li",22),a()),e&2){let s=h().$implicit;l(),m("ngForOf",s.ActionString)}}function ft(e,o){if(e&1&&(r(0,"span",28),C(1,"i",29),a()),e&2){let s=h().$implicit;ce("title","Delivery : ",s.DeliveryState,`
2
+ Payment : `,s.PaymentState,"")}}function _t(e,o){if(e&1&&(r(0,"tr")(1,"td"),p(2),a(),r(3,"td"),p(4),a(),w(5,mt,3,4,"td",23),r(6,"td")(7,"span"),p(8),a(),p(9),a(),r(10,"td",24)(11,"span"),p(12),a(),p(13),a(),r(14,"td"),w(15,ct,2,1,"span",23)(16,ht,2,1,"ul",25),a(),r(17,"td"),w(18,ft,2,3,"span",26),a()()),e&2){let s,t=o.$implicit,n=o.index,i=h(2);l(2),F(n+1),l(2),F(t.Number),l(),m("ngIf",((s=i.selectedChannel())==null?null:s.TypeID)!=i.channelType.Shopee&&((s=i.selectedChannel())==null?null:s.TypeID)!==i.channelType.Tiktok),l(3),v("",t.ChannelStatus," - "),l(),v("",t.ChannelStatusDescription," "),l(),m("ngClass",ge(12,pt,(t==null?null:t.Action)==i.actionPreviewOrder.Update,(t==null?null:t.Action)==i.actionPreviewOrder.New))("matTooltip",t.POSStatus==91||t.POSStatusDescription=="Conflict"?"There is a missed status at POS, usually fulfillment has not been recorded but the payment has been recorded":""),l(2),v("",t.POSStatus," - "),l(),v("",t.POSStatusDescription," "),l(2),m("ngIf",t.ActionString.length==1),l(),m("ngIf",t.ActionString.length>1),l(2),m("ngIf",t.ChannelStatus!=99&&t.POSStatus!=99)}}function gt(e,o){if(e&1&&(W(0),w(1,_t,19,15,"tr",22),R()),e&2){let s=h();l(),m("ngForOf",s.displayPreviewData())}}function wt(e,o){e&1&&(r(0,"tr",30)(1,"td",31)(2,"div",32),C(3,"i",33),a(),r(4,"h4",34),p(5," There is no order to processed "),a()()())}var Ze=(()=>{let o=class o{constructor(){this.orderPreview=N(),this.selectedChannel=N(),this.channelType=ee,this.allData=g(0),this.syncData=g(0),this.wrongData=g(0),this.unsyncData=g(0),this.pillStatus=g(T.ALL),this.actionPreviewOrder=j,this.previewStatus=T,this.displayPreviewData=g([]),this.exportOrders=new H,q(()=>{this.orderPreview()&&(this.filterPreviewData(T.ALL),this.initLengthStatusData())},{allowSignalWrites:!0})}filterPreviewData(t){this.pillStatus.update(()=>t),this.displayPreviewData.update(()=>this.filterDataByStatus(t))}initLengthStatusData(){this.wrongData.update(()=>this.filterDataByStatus(T.WRONG).length),this.syncData.update(()=>this.filterDataByStatus(T.SYNC).length),this.allData.update(()=>this.orderPreview().length),this.unsyncData.update(()=>this.filterDataByStatus(T.UNSYNC).length)}filterDataByStatus(t){let n=[];switch(t){case T.ALL:n=this.orderPreview();break;case T.SYNC:n=this.orderPreview().filter(i=>i.Action==j.DoNothing);break;case T.WRONG:n=this.orderPreview().filter(i=>i.Action==j.Update);break;case T.UNSYNC:n=this.orderPreview().filter(i=>i.Action==j.New);break}return n}onExportOrders(){this.exportOrders.emit()}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=V({type:o,selectors:[["preview-step"]],inputs:{orderPreview:[1,"orderPreview"],selectedChannel:[1,"selectedChannel"]},outputs:{exportOrders:"onExportOrders"},standalone:!0,features:[O],decls:41,vars:11,consts:[["EMPTY",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"row","mx-1","mb-5"],[1,"col-12","d-flex","justify-content-between","align-items-end",2,"padding-left","0px","padding-right","0px"],[1,"nav","nav-pills"],[1,"nav-item","me-3"],[1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],[1,"nav-item","mx-3"],["matTooltip","All Invoice which is already available in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices that have different status between marketplace and POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices which is not exist in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"table"],[1,"thead-light"],["width","1%"],["width","25%"],["width","15%",4,"ngIf"],["width","10%"],[4,"ngIf","ngIfElse"],["width","15%"],[4,"ngFor","ngForOf"],[4,"ngIf"],["matTooltipClass","custom-width-tooltip",3,"ngClass","matTooltip"],["class","ps-5",4,"ngIf"],[3,"title",4,"ngIf"],[1,"ps-5"],[3,"title"],[1,"fas","fa-info-circle","ms-2"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1){let d=x();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"ul",5)(6,"li",6)(7,"button",7),S("click",function(){return c(d),u(i.filterPreviewData(i.previewStatus.ALL))}),p(8),a()(),r(9,"li",8)(10,"button",9),S("click",function(){return c(d),u(i.filterPreviewData(i.previewStatus.SYNC))}),p(11),a()(),r(12,"li",8)(13,"button",10),S("click",function(){return c(d),u(i.filterPreviewData(i.previewStatus.WRONG))}),p(14),a()(),r(15,"li",8)(16,"button",11),S("click",function(){return c(d),u(i.filterPreviewData(i.previewStatus.UNSYNC))}),p(17),a()()()(),r(18,"div")(19,"button",12),S("click",function(){return c(d),u(i.onExportOrders())}),C(20,"i",13),r(21,"span"),p(22,"Export"),a()()()()(),r(23,"table",14)(24,"thead",15)(25,"tr"),C(26,"th",16),r(27,"th",17),p(28,"Number"),a(),w(29,dt,2,1,"th",18),r(30,"th",19),p(31,"Channel Status"),a(),r(32,"th",19),p(33,"POS Status"),a(),r(34,"th"),p(35,"Action"),a(),C(36,"th",16),a()(),r(37,"tbody"),w(38,gt,2,1,"ng-container",20)(39,wt,6,0,"ng-template",null,0,J),a()()()()}if(n&2){let d,f,_=b(40);l(7),m("ngClass",i.pillStatus()=="all"?"btn-secondary text-white":"btn-outline-dark"),l(),v(" All (",i.allData(),") "),l(2),m("ngClass",i.pillStatus()=="sync"?"btn-success":"btn-outline-success"),l(),v(" Existing (",i.syncData(),") "),l(2),m("ngClass",i.pillStatus()=="wrong"?"btn-warning text-white":"btn-outline-warning"),l(),v(" Wrong Status (",i.wrongData(),") "),l(2),m("ngClass",i.pillStatus()=="unsync"?"btn-danger":"btn-outline-danger"),l(),v(" Missing (",i.unsyncData(),") "),l(12),m("ngIf",((d=i.selectedChannel())==null?null:d.TypeID)!=i.channelType.Shopee&&((d=i.selectedChannel())==null?null:d.TypeID)!==i.channelType.Tiktok),l(9),m("ngIf",((f=i.displayPreviewData())==null?null:f.length)>0)("ngIfElse",_)}},dependencies:[k,B,A,$,Z,Ve,Me]});let e=o;return e})();var St=["stepper"];function Ct(e,o){e&1&&(r(0,"a",2),p(1," Download V1 "),a())}function vt(e,o){if(e&1){let s=x();r(0,"div",3)(1,"button",20),S("click",function(){c(s);let n=h();return u(n.onStepperBack())}),p(2," Back "),a(),r(3,"button",21),S("click",function(){c(s);let n=h();return u(n.onNextStep())}),p(4," Next "),a()()}if(e&2){let s=h();l(3),m("disabled",s.disabledNextFilter())}}function yt(e,o){if(e&1){let s=x();r(0,"button",22),S("click",function(){c(s);let n=h();return u(n.onNextStep())}),p(1," Next "),a()}if(e&2){let s=h();m("disabled",s.disabledNextFilter())}}function xt(e,o){if(e&1){let s=x();r(0,"button",23),S("click",function(){c(s);let n=h();return u(n.onNewDownload())}),C(1,"i",24),p(2," New "),a()}}function Dt(e,o){e&1&&(C(0,"i",25),r(1,"span"),p(2,"Filter"),a())}function Tt(e,o){e&1&&(C(0,"i",26),r(1,"span"),p(2,"Preview"),a())}function bt(e,o){if(e&1){let s=x();W(0),r(1,"preview-step",27),S("onExportOrders",function(){c(s);let n=h();return u(n.onExportOrders())}),a(),R()}if(e&2){let s=o.ngIf;l(),m("orderPreview",s)}}function Et(e,o){e&1&&(C(0,"i",28),r(1,"span"),p(2,"Finish"),a())}function Pt(e,o){if(e&1&&(W(0),C(1,"complete-step",29),R()),e&2){let s=o.ngIf;l(),m("downloadResult",s)}}function It(e,o){e&1&&(r(0,"h6"),p(1,"1"),a())}function Mt(e,o){e&1&&(r(0,"h6"),p(1,"2"),a())}function Vt(e,o){e&1&&(r(0,"h6"),p(1,"3"),a())}var Yi=(()=>{let o=class o{constructor(){this.downloadService=y(z),this.orderService=y(Qe),this.productService=y(Re),this.authService=y(ie),this.stepperSelectedIndex=g(0),this.disabledNextFilter=g(!0),this.isResetFilter=g(!1),this.pageTitle=g("Download to POS"),this.cacheKey=g(D.GuidEMpty)}onFilterChange(t){this.filter=t,this.validateDisabledNext()}validateDisabledNext(){this.disabledNextFilter.update(()=>D.IsEmpty(this.filter?.channelId)||!D.isValidDate(this.filter.startDate)||!D.isValidDate(this.filter.endDate))}onNextStep(){switch(this.stepper.selectedIndex){case 0:this.onPreview();let t=this.productService.findChannelById(this.filter.channelId,this.authService.getChannels());this.setPageTitle(`Preview ${t?.Name}`);break;case 1:this.onDownload(),this.setPageTitle("Download");break}}onStepperNext(){this.stepper.selected.completed=!0,this.stepper.next()}onPreview(){let t={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,IsDisbursement:this.filter.downloadType};D.IsNotEmpty(this.filter.startTime)&&(t=oe(re({},t),{TimeFrom:this.filter.startTime+":00",TimeTo:this.filter.endTime+":00"})),this.orderPreview$=this.downloadService.onPreviewOrder(t).pipe(G(n=>{n.Data?.length>0&&(this.cacheKey.update(()=>n.CacheKey),this.onStepperNext())}),K(n=>n.Data),Y(1))}onExportOrders(){let t={ID:this.filter.channelId,From:this.filter.startDate?JSON.stringify(this.filter.startDate):null,To:this.filter.endDate?JSON.stringify(this.filter.endDate):null},n=`Orders ${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)}`;this.orderService.exportOrders(t,n).subscribe()}onDownload(){let t={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,ListPreview:[],IsDisbursement:this.filter.downloadType,CacheKey:this.cacheKey()};this.downloadPreview$=this.orderPreview$.pipe(se(n=>(t.ListPreview=n,this.downloadService.getDownloadOrder(t))),G(()=>{this.onStepperNext()}),Y(1))}setPageTitle(t){this.pageTitle.update(()=>`
3
+ ${t} (${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)})
4
+ `)}onStepperBack(){this.stepper.previous(),this.pageTitle.update(()=>"Download to POS")}onNewDownload(){this.isResetFilter.update(()=>!0),this.stepper.reset(),this.stepperSelectedIndex.update(()=>0),this.orderPreview$=null,this.downloadPreview$=null,this.pageTitle.update(()=>"Download to POS")}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=V({type:o,selectors:[["app-download-v2"]],viewQuery:function(n,i){if(n&1&&ue(St,5),n&2){let d;he(d=fe())&&(i.stepper=d.first)}},standalone:!0,features:[Q([z,{provide:Ye,useValue:{displayDefaultIndicatorType:!1}}]),O],decls:27,vars:21,consts:[["stepper",""],[3,"hideSearchBox","hideSearchDropdown","headerTitle","description"],["routerLink","/menu/Order/Download/V1",1,"btn","btn-outline-secondary","btn-fill","me-3"],[1,"btn-group","me-3"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"disabled"],[1,"btn","btn-outline-secondary","btn-fill"],[1,"container-fluid","pt-5","mt-5"],[1,"row"],[1,"col-12"],[1,"d-flex","justify-content-center"],["linear","",1,"w-100","stepper-download",3,"selectedIndexChange","ngClass","selectedIndex"],["state","filter",3,"completed","editable"],["matStepLabel",""],[1,"w-100",3,"onFilterChange","reset"],["state","preview",3,"editable","completed"],[4,"ngIf"],["state","finish"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","bg-success","text-white",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"click","disabled"],[1,"btn","btn-outline-secondary","btn-fill",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],[1,"fa-solid","fa-filter","me-3"],[1,"fa-solid","fa-file","me-3"],[3,"onExportOrders","orderPreview"],[1,"fa-solid","fa-flag","me-3"],[3,"downloadResult"]],template:function(n,i){if(n&1){let d=x();r(0,"mainpanel",1)(1,"actions"),w(2,Ct,2,0,"a",2)(3,vt,5,1,"div",3)(4,yt,2,1,"button",4)(5,xt,3,0,"button",5),a(),r(6,"content")(7,"div",6)(8,"div",7)(9,"div",8)(10,"div",9)(11,"mat-stepper",10,0),M("selectedIndexChange",function(_){return c(d),I(i.stepperSelectedIndex,_)||(i.stepperSelectedIndex=_),u(_)}),r(13,"mat-step",11),w(14,Dt,3,0,"ng-template",12),r(15,"filter-step",13),S("onFilterChange",function(_){return c(d),u(i.onFilterChange(_))}),a()(),r(16,"mat-step",14),w(17,Tt,3,0,"ng-template",12)(18,bt,2,1,"ng-container",15),L(19,"async"),a(),r(20,"mat-step",16),w(21,Et,3,0,"ng-template",12)(22,Pt,2,1,"ng-container",15),L(23,"async"),a(),w(24,It,2,0,"ng-template",17)(25,Mt,2,0,"ng-template",18)(26,Vt,2,0,"ng-template",19),a()()()()()()()}if(n&2){let d=b(12);m("hideSearchBox",!0)("hideSearchDropdown",!0)("headerTitle",i.pageTitle())("description",i.pageTitle()),l(2),E(i.stepperSelectedIndex()==0?2:-1),l(),E(i.stepperSelectedIndex()==1?3:-1),l(),E(i.stepperSelectedIndex()==0?4:-1),l(),E(i.stepperSelectedIndex()==2?5:-1),l(6),me("ngClass","last-edited-step-"+d.selectedIndex),P("selectedIndex",i.stepperSelectedIndex),l(2),m("completed",!1)("editable",i.stepperSelectedIndex()!=2),l(2),m("reset",i.isResetFilter()),l(),m("editable",i.stepperSelectedIndex()!=2)("completed",!1),l(2),m("ngIf",U(19,17,i.orderPreview$)),l(4),m("ngIf",U(23,19,i.downloadPreview$))}},dependencies:[k,B,$,X,qe,Xe,Ze,He,je,Ge,Ke,Ue,Oe,Fe,Ce,Se],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.vertical-radio{display:flex;flex-direction:column;margin:15px 0}.mt-1rem{margin-top:1rem}.dateRange{padding-top:.8rem;padding-bottom:.8rem}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container>div.mat-horizontal-stepper-content:nth-child(1){display:flex;justify-content:left}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container{margin-top:30px}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container>mat-step-header.mat-horizontal-stepper-header{pointer-events:none!important}.form-label-group.radio.download-type{height:45.5938px!important;border-radius:.375rem!important}
5
+ `],encapsulation:2});let e=o;return e})();export{Yi as DownloadV2Component};
@@ -0,0 +1 @@
1
+ import{g as r}from"./chunk-2DQJZ4SM.js";import{b as l,e as C}from"./chunk-4SAJUEHO.js";import{b as o,c}from"./chunk-6SF7AUOH.js";import{ea as s,ja as u,oa as h,v as p}from"./chunk-PQDPS2ID.js";var y=(()=>{let n=class n{constructor(t,e){this.httpService=t,this.toastr=e}saveChannel(t){return this.httpService.post("/api/Channel/SubmitChannel",t)}getLastSync(t){return this.httpService.get(`${r.ChannelGetLastSyncByID}/?ID=${t}`)}getChannel(t){return this.httpService.post(r.GetChannel,t)}getChannelLoader(){return this.httpService.get(r.GetChannelLoader)}testShopID(t){return this.httpService.post(r.TestShopID,t).pipe(s(e=>{this.showTostrSuccessTestShopID(e)}))}updateChannelIndex(t){return this.httpService.post(r.UpdateChannelIndex,t)}deleteChannel(t){return this.httpService.post(r.DeleteChannel,t)}mapChannelImage(t){return t.map(e=>(e.img=c.getChannelLogoByTypeId(e.TypeID),e))}showTostrSuccessTestShopID(t){let e="";for(var i in t)e+=i+" : "+t[i]+"<br/>";this.toastr.success(e,"Success",{enableHtml:!0,closeButton:!0,positionClass:"toast-bottom-right"})}getRegisterByOutletName(t){return this.httpService.post(r.GetRegisterByOutletName,{Outlet:t})}getChannelRowCount(t){return this.httpService.post(r.GetChannelRowCount,t).pipe(p(e=>e.Count))}getChannelWarehouse(t){return this.httpService.get(`${r.GetChannelWarehouse}/?ChannelID=${t}`)}unSynchronizedWarehouse(t){return this.httpService.delete(`${r.UnSynchronizedWarehouse}?ID=${t}`)}authorizedChannel(t){let e=this.getApiAuthorize(t);return this.httpService.post(`/api/${e}`,null).pipe(s(i=>{window.open(i.Url,"_blank")}))}getApiAuthorize(t){let e;switch(t){case o.Shopee:e="ChannelAuthorization/ShopeeV2_URL";break;case o.Tiktok:e="ChannelAuthorization/Tiktok_URL";break;case o.Lazada:e="ChannelAuthorization/Lazada_URL";break}return e}};n.\u0275fac=function(e){return new(e||n)(h(C),h(l))},n.\u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"});let a=n;return a})();export{y as a};
@@ -0,0 +1 @@
1
+ import{c as U,d as Z,g as C}from"./chunk-HCDKYABV.js";import{K as w,L as z,Q as q,a as _,e as I,h as p,i as M,j as V}from"./chunk-E5GGIVK7.js";import{e as j,g as P,k as O,p as B}from"./chunk-BSN7ZAXG.js";import{$b as b,Ca as F,Fb as k,Ib as L,Na as x,Zb as N,f as c,ja as T,ka as u,kb as r,m as S,ma as A,oa as y,sb as f,ua as m,uc as D,va as E}from"./chunk-PQDPS2ID.js";var $=V({passive:!0}),K=(()=>{let i=class i{constructor(e,t){this._platform=e,this._ngZone=t,this._monitoredElements=new Map}monitor(e){if(!this._platform.isBrowser)return S;let t=I(e),s=this._monitoredElements.get(t);if(s)return s.subject;let o=new c,a="cdk-text-field-autofilled",d=l=>{l.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!0}))):l.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>o.next({target:l.target,isAutofilled:!1})))};return this._ngZone.runOutsideAngular(()=>{t.addEventListener("animationstart",d,$),t.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(t,{subject:o,unlisten:()=>{t.removeEventListener("animationstart",d,$)}}),o}stopMonitoring(e){let t=I(e),s=this._monitoredElements.get(t);s&&(s.unlisten(),s.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}};i.\u0275fac=function(t){return new(t||i)(y(p),y(f))},i.\u0275prov=T({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})();var W=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({});let n=i;return n})();var ee=new A("MAT_INPUT_VALUE_ACCESSOR"),te=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ie=0,we=(()=>{let i=class i{get disabled(){return this._disabled}set disabled(e){this._disabled=_(e),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(e){this._id=e||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(j.required)??!1}set required(e){this._required=_(e)}get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&M().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get value(){return this._inputValueAccessor.value}set value(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=_(e)}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(e,t,s,o,a,d,l,Y,G,H){this._elementRef=e,this._platform=t,this.ngControl=s,this._autofillMonitor=Y,this._formField=H,this._uid=`mat-input-${ie++}`,this.focused=!1,this.stateChanges=new c,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(v=>M().has(v)),this._iOSKeyupListener=v=>{let h=v.target;!h.value&&h.selectionStart===0&&h.selectionEnd===0&&(h.setSelectionRange(1,1),h.setSelectionRange(0,0))};let g=this._elementRef.nativeElement,R=g.nodeName.toLowerCase();this._inputValueAccessor=l||g,this._previousNativeValue=this.value,this.id=this.id,t.IOS&&G.runOutsideAngular(()=>{e.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._errorStateTracker=new z(d,s,a,o,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=R==="select",this._isTextarea=R==="textarea",this._isInFormField=!!H,this._isNativeSelect&&(this.controlType=g.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){e!==this.focused&&(this.focused=e,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){te.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused||!this.empty}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}};i.\u0275fac=function(t){return new(t||i)(r(x),r(p),r(P,10),r(O,8),r(B,8),r(q),r(ee,10),r(K),r(f),r(Z,8))},i.\u0275dir=E({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(t,s){t&1&&b("focus",function(){return s._focusChanged(!0)})("blur",function(){return s._focusChanged(!1)})("input",function(){return s._onInput()}),t&2&&(N("id",s.id)("disabled",s.disabled)("required",s.required),k("name",s.name||null)("readonly",s.readonly&&!s._isNativeSelect||null)("aria-invalid",s.empty&&s.required?null:s.errorState)("aria-required",s.required)("id",s.id),L("mat-input-server",s._isServer)("mat-mdc-form-field-textarea-control",s._isInFormField&&s._isTextarea)("mat-mdc-form-field-input-control",s._isInFormField)("mdc-text-field__input",s._isInFormField)("mat-mdc-native-select-inline",s._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],standalone:!0,features:[D([{provide:U,useExisting:i}]),F]});let n=i;return n})(),Ce=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=m({type:i}),i.\u0275inj=u({imports:[w,C,C,W,w]});let n=i;return n})();export{ee as a,we as b,Ce as c};