dealpos 26.29.2 → 26.29.4

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 (127) hide show
  1. package/browser/{chunk-IPKD2YEV.js → chunk-24JWS3OU.js} +1 -1
  2. package/browser/{chunk-QVPRUUOY.js → chunk-2CZYDFTS.js} +1 -1
  3. package/browser/{chunk-POPTNOXV.js → chunk-2DOCFM6S.js} +1 -1
  4. package/browser/{chunk-E5SZ26J6.js → chunk-2ML2LD5D.js} +1 -1
  5. package/browser/{chunk-Y4KEFYRC.js → chunk-2S5WMITP.js} +1 -1
  6. package/browser/{chunk-FI4ADJ7Y.js → chunk-2WOGKX6B.js} +1 -1
  7. package/browser/{chunk-W6JC5Y5Z.js → chunk-2Y5ZX5BN.js} +1 -1
  8. package/browser/{chunk-IZNNDLYJ.js → chunk-3477PKPD.js} +1 -1
  9. package/browser/{chunk-3RNFVRR4.js → chunk-3RKKO256.js} +1 -1
  10. package/browser/{chunk-DVO26XPI.js → chunk-3RZ2IAA6.js} +1 -1
  11. package/browser/{chunk-KM4ASOAJ.js → chunk-436TTDMO.js} +1 -1
  12. package/browser/{chunk-AEKYGTST.js → chunk-4DK5EFS5.js} +1 -1
  13. package/browser/{chunk-P4QH3MVJ.js → chunk-4DO6YSID.js} +1 -1
  14. package/browser/{chunk-PAM7CZIW.js → chunk-4UARPHU5.js} +1 -1
  15. package/browser/chunk-56EKES6R.js +1 -0
  16. package/browser/{chunk-XDRISSKA.js → chunk-5GMVZA7E.js} +1 -1
  17. package/browser/{chunk-3LUCZIFK.js → chunk-5LCGNLQF.js} +1 -1
  18. package/browser/{chunk-KT23O5RI.js → chunk-5NCPNX2G.js} +1 -1
  19. package/browser/{chunk-C6OS7OH3.js → chunk-62BJ6EFC.js} +2 -2
  20. package/browser/{chunk-PNU45TI5.js → chunk-6A74PAZ2.js} +1 -1
  21. package/browser/{chunk-RJXJJN3P.js → chunk-6EDCD473.js} +2 -2
  22. package/browser/{chunk-LT46RQOD.js → chunk-6ICWK6F4.js} +1 -1
  23. package/browser/{chunk-YMZVULF2.js → chunk-6JR3QGTQ.js} +1 -1
  24. package/browser/{chunk-F4BGBE5F.js → chunk-6NIODVZQ.js} +1 -1
  25. package/browser/{chunk-HDG6JFA7.js → chunk-7GTANUVP.js} +1 -1
  26. package/browser/{chunk-DKU772CO.js → chunk-7MSIMGBU.js} +6 -6
  27. package/browser/{chunk-JBLCOCWI.js → chunk-AD7PQ4XJ.js} +1 -1
  28. package/browser/{chunk-V2KRNWEI.js → chunk-AGH7IRKY.js} +1 -1
  29. package/browser/{chunk-4EEMSRFZ.js → chunk-ANPGLUAA.js} +1 -1
  30. package/browser/{chunk-R4M6V4LG.js → chunk-BJKJMKZL.js} +1 -1
  31. package/browser/{chunk-MLSXLYHC.js → chunk-BTNUAZLK.js} +1 -1
  32. package/browser/{chunk-JDTA6VVS.js → chunk-BVUB4ZTV.js} +1 -1
  33. package/browser/{chunk-ULFJRUXF.js → chunk-C3QPSW3X.js} +1 -1
  34. package/browser/{chunk-AKURDWYM.js → chunk-CEQJAUV2.js} +1 -1
  35. package/browser/{chunk-MSHOFBI6.js → chunk-CFE5WIY7.js} +1 -1
  36. package/browser/{chunk-A2D4ZWEL.js → chunk-CFTMRWLX.js} +1 -1
  37. package/browser/{chunk-MH5R4QUS.js → chunk-CHMDMKUC.js} +1 -1
  38. package/browser/chunk-D3DH342V.js +1 -0
  39. package/browser/{chunk-V6I4U3FF.js → chunk-DAUSQHWI.js} +1 -1
  40. package/browser/{chunk-U2BWKCOY.js → chunk-DG6KDDO4.js} +1 -1
  41. package/browser/{chunk-SY5NNN4M.js → chunk-DUAKLYOO.js} +1 -1
  42. package/browser/chunk-DVD5TO4Z.js +1 -0
  43. package/browser/{chunk-DZ3JSWN4.js → chunk-DYS7LFKR.js} +1 -1
  44. package/browser/{chunk-NPZA63IX.js → chunk-ED6D27EB.js} +1 -1
  45. package/browser/{chunk-23G4CQ4S.js → chunk-EH7XIUJQ.js} +1 -1
  46. package/browser/{chunk-E2C2JWUR.js → chunk-ESD47XNV.js} +1 -1
  47. package/browser/{chunk-WRVFMNFB.js → chunk-F56CMKC7.js} +1 -1
  48. package/browser/{chunk-CM2W4OGX.js → chunk-FBU635CZ.js} +1 -1
  49. package/browser/{chunk-DKQDZVCI.js → chunk-FGG3C2QY.js} +1 -1
  50. package/browser/{chunk-ZTJJC7LM.js → chunk-G65GM7KF.js} +1 -1
  51. package/browser/{chunk-UJTFRKD6.js → chunk-GFW7SFNF.js} +1 -1
  52. package/browser/{chunk-2KJSGRKY.js → chunk-GG2TMLCR.js} +1 -1
  53. package/browser/{chunk-7VP7BETO.js → chunk-GX7EHAS7.js} +2 -2
  54. package/browser/{chunk-KVCXTXZ7.js → chunk-GZQLKEFW.js} +1 -1
  55. package/browser/{chunk-ZPXUDL2F.js → chunk-HFLDVZQD.js} +1 -1
  56. package/browser/{chunk-5SUCEZKZ.js → chunk-HPB44HH6.js} +2 -2
  57. package/browser/{chunk-FOKGV3MG.js → chunk-I7J7WJJG.js} +1 -1
  58. package/browser/chunk-IEQFYEWN.js +1 -0
  59. package/browser/chunk-IJFQCDQY.js +1 -0
  60. package/browser/{chunk-E5HCPAGT.js → chunk-IJT4P2DG.js} +1 -1
  61. package/browser/{chunk-T66PW3DE.js → chunk-IL7BUZBK.js} +1 -1
  62. package/browser/{chunk-N6XTKEYC.js → chunk-ILMUIGZ7.js} +1 -1
  63. package/browser/{chunk-O2LNYZN3.js → chunk-ITLLUHNG.js} +1 -1
  64. package/browser/{chunk-J7K3ZGHO.js → chunk-ITTOCTTH.js} +1 -1
  65. package/browser/{chunk-HO7UAM4U.js → chunk-JBCGNK4N.js} +1 -1
  66. package/browser/{chunk-QNZPOT7X.js → chunk-JIKVOIZ4.js} +1 -1
  67. package/browser/{chunk-XWIVP66I.js → chunk-JOG6MKTF.js} +1 -1
  68. package/browser/{chunk-PH237GPH.js → chunk-JSMYLOZE.js} +1 -1
  69. package/browser/{chunk-SLRSIKY4.js → chunk-JZ7IMXND.js} +1 -1
  70. package/browser/{chunk-J4CDE4OB.js → chunk-KFVPHVPJ.js} +1 -1
  71. package/browser/{chunk-LYSCU4VY.js → chunk-KKZHNZ4H.js} +2 -2
  72. package/browser/{chunk-MCHMU65O.js → chunk-KODUGIB5.js} +1 -1
  73. package/browser/{chunk-5MKVQFXP.js → chunk-KSUX5UX5.js} +1 -1
  74. package/browser/{chunk-K6I3CJMZ.js → chunk-KYFZQI6T.js} +1 -1
  75. package/browser/{chunk-MSU6IA4E.js → chunk-M7GPH6O6.js} +1 -1
  76. package/browser/{chunk-N377QT4B.js → chunk-MCVLZT4N.js} +1 -1
  77. package/browser/{chunk-KLAUS4QD.js → chunk-MIUPQRIP.js} +1 -1
  78. package/browser/{chunk-PFYWJTG4.js → chunk-MVLFBNNY.js} +1 -1
  79. package/browser/{chunk-7DDSY4T5.js → chunk-N5HLOFGE.js} +1 -1
  80. package/browser/{chunk-AILQAY4R.js → chunk-NR36NEVX.js} +1 -1
  81. package/browser/{chunk-MGG6P7ZA.js → chunk-O7NK2ERR.js} +1 -1
  82. package/browser/{chunk-PVTBU2DG.js → chunk-OIIUONKR.js} +1 -1
  83. package/browser/{chunk-FY3XQZM2.js → chunk-OLVCS3NO.js} +1 -1
  84. package/browser/{chunk-HTDYDLGC.js → chunk-ONMLWWDC.js} +2 -2
  85. package/browser/{chunk-H5DKJDHK.js → chunk-OYQXZECU.js} +1 -1
  86. package/browser/{chunk-DKXEKVNL.js → chunk-PSTZHLUG.js} +1 -1
  87. package/browser/{chunk-Q3HNCCYY.js → chunk-PT22JJXA.js} +1 -1
  88. package/browser/{chunk-XBKQ3RG2.js → chunk-QBTRR7EK.js} +1 -1
  89. package/browser/{chunk-OEAMQ7FV.js → chunk-QID3ITOS.js} +2 -2
  90. package/browser/{chunk-NWREVTKW.js → chunk-QIJB7LJ2.js} +1 -1
  91. package/browser/{chunk-QKU2DV3E.js → chunk-QOGE6BLL.js} +1 -1
  92. package/browser/{chunk-CNLLDX33.js → chunk-QR76ZOS6.js} +1 -1
  93. package/browser/{chunk-XQBUTQIT.js → chunk-QSK7CMK7.js} +1 -1
  94. package/browser/{chunk-4TSFDXIQ.js → chunk-RWD6GTA5.js} +1 -1
  95. package/browser/{chunk-6BIYZUYK.js → chunk-SGPUWS4C.js} +1 -1
  96. package/browser/{chunk-A3TCEOIL.js → chunk-SHRC3FGG.js} +1 -1
  97. package/browser/{chunk-TDFVWBPV.js → chunk-T34FDEDZ.js} +1 -1
  98. package/browser/{chunk-KZ7JAEYC.js → chunk-T6543MNA.js} +1 -1
  99. package/browser/{chunk-DBROGHP5.js → chunk-TIUT2T4W.js} +1 -1
  100. package/browser/{chunk-RB6PG44M.js → chunk-TNR3TTAW.js} +1 -1
  101. package/browser/{chunk-CDMOG6NO.js → chunk-TU6W3V4Z.js} +1 -1
  102. package/browser/{chunk-QOEUUHI6.js → chunk-U3RAOXQS.js} +1 -1
  103. package/browser/{chunk-TSY3QHHI.js → chunk-UCSTOA2U.js} +1 -1
  104. package/browser/{chunk-2EVYKVUT.js → chunk-UFOJTSNI.js} +1 -1
  105. package/browser/{chunk-DXTSUCRV.js → chunk-UFT7O5PV.js} +1 -1
  106. package/browser/{chunk-Z4XMB4JK.js → chunk-UOHFYD6T.js} +1 -1
  107. package/browser/{chunk-X5ETGJED.js → chunk-UQXW2P2R.js} +1 -1
  108. package/browser/{chunk-BLR56WTI.js → chunk-V4EKB3GA.js} +1 -1
  109. package/browser/{chunk-WNL7MHHR.js → chunk-VEXGRCXX.js} +1 -1
  110. package/browser/{chunk-YPRM4YPL.js → chunk-VLAVHN5T.js} +1 -1
  111. package/browser/{chunk-ADHRI2ZG.js → chunk-VRL2RGWE.js} +1 -1
  112. package/browser/{chunk-SRBRN6I6.js → chunk-WGLBMKQI.js} +1 -1
  113. package/browser/{chunk-QFOKSRM2.js → chunk-WWRX5VF5.js} +1 -1
  114. package/browser/{chunk-S4263DWI.js → chunk-X4BN3WV7.js} +1 -1
  115. package/browser/{chunk-LJ3IXMQO.js → chunk-XLHPCDSC.js} +1 -1
  116. package/browser/{chunk-REHBAOAZ.js → chunk-XPPR4673.js} +1 -1
  117. package/browser/{chunk-P4SUAW7E.js → chunk-Y2UA4O46.js} +1 -1
  118. package/browser/{chunk-ZXAFHS2K.js → chunk-YRKDT6DJ.js} +2 -2
  119. package/browser/{chunk-EYNEGQWW.js → chunk-ZTVB3MHP.js} +1 -1
  120. package/browser/index.html +2 -2
  121. package/browser/{main-MTL5GQGW.js → main-G4PMSMND.js} +1 -1
  122. package/package.json +1 -1
  123. package/browser/chunk-35MMVKDX.js +0 -1
  124. package/browser/chunk-FD5DZ33A.js +0 -1
  125. package/browser/chunk-LRZNBFRR.js +0 -1
  126. package/browser/chunk-NW62DOPB.js +0 -1
  127. package/browser/chunk-VNY4S6S5.js +0 -1
@@ -1 +1 @@
1
- import{a as ae}from"./chunk-IEFU4ZWW.js";import{p as ie}from"./chunk-VQQIQFUB.js";import{b as K,c as U}from"./chunk-KMI7GZJI.js";import{a as te}from"./chunk-75C5S3PQ.js";import{a as X}from"./chunk-DBROGHP5.js";import{b as Z}from"./chunk-N5GGRFDA.js";import{g as ee}from"./chunk-FI4ADJ7Y.js";import{a as $}from"./chunk-V6I4U3FF.js";import{c as Y}from"./chunk-R2YNXAPB.js";import{h as G,o as Q}from"./chunk-POUQHZWU.js";import{b as J}from"./chunk-H3D4WR27.js";import{n as H,q as z}from"./chunk-D3E5UKKJ.js";import{Ab as g,Ac as N,Bb as r,Cb as n,Cc as h,Db as k,Ec as x,Ic as O,Kd as A,Mb as f,Nd as q,Pb as v,Ra as l,Rb as m,Ya as C,ab as b,ec as o,fb as I,fc as T,gb as W,gc as R,jc as u,kc as S,lc as y,nd as j,pa as s,qa as d,tb as L,vb as E,xb as M,xc as B,yb as V,zb as P}from"./chunk-M3O2GJ3M.js";import{a as w,b as F}from"./chunk-KMHZKFQS.js";var ne=(p,c,t,a,e,i)=>({LogisticServiceID:p,EntityID:c,From:t,To:a,StartTime:e,EndTime:i}),oe=(p,c,t)=>({From:p,To:c,LogisticsServiceID:t});function pe(p,c){if(p&1){let t=f();r(0,"button",4),v("click",function(){s(t);let e=m();return d(e.openExportModal())}),k(1,"i",5),o(2," Export "),n()}}function le(p,c){if(p&1){let t=f();r(0,"div",6)(1,"h6"),o(2,"Outlet"),n(),r(3,"outlet-selector",7),y("ngModelChange",function(e){s(t);let i=m();return S(i.pageData().Filter.EntityID,e)||(i.pageData().Filter.EntityID=e),d(e)}),n(),r(4,"h6"),o(5,"From"),n(),r(6,"datepicker",8),y("dateChange",function(e){s(t);let i=m();return S(i.pageData().Filter.From,e)||(i.pageData().Filter.From=e),d(e)}),n(),r(7,"h6"),o(8,"To"),n(),r(9,"datepicker",9),y("dateChange",function(e){s(t);let i=m();return S(i.pageData().Filter.To,e)||(i.pageData().Filter.To=e),d(e)}),n(),r(10,"h6"),o(11,"Time"),n(),r(12,"div",10)(13,"div",11)(14,"app-timepicker",12),y("timeChange",function(e){s(t);let i=m();return S(i.pageData().Filter.StartTime,e)||(i.pageData().Filter.StartTime=e),d(e)}),n()(),r(15,"div",11)(16,"app-timepicker",12),y("timeChange",function(e){s(t);let i=m();return S(i.pageData().Filter.EndTime,e)||(i.pageData().Filter.EndTime=e),d(e)}),n()()()()}if(p&2){let t,a=m();l(3),g("accessType",2),u("ngModel",a.pageData().Filter.EntityID),g("outlets",(t=a.pageData().Options)==null?null:t.Entities),l(3),u("date",a.pageData().Filter.From),l(3),u("date",a.pageData().Filter.To),l(5),g("fullWidth",!0),u("time",a.pageData().Filter.StartTime),l(2),g("fullWidth",!0),u("time",a.pageData().Filter.EndTime)}}function me(p,c){if(p&1&&(r(0,"tr")(1,"td"),o(2),n(),r(3,"td"),o(4),n(),r(5,"td",21)(6,"a",22),h(7,"date"),h(8,"date"),o(9),n()(),r(10,"td",21)(11,"a",23),h(12,"date"),h(13,"date"),o(14),n()(),r(15,"td",21),o(16),n()()),p&2){let t=c.$implicit,a=c.$index,e=m(2);l(2),T(a+1),l(2),T(t.Name),l(2),g("queryParams",N(19,ne,t.ID,e.pageData().Filter.EntityID,x(7,7,e.pageData().Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData().Filter.To,"yyyy-MM-dd"),e.pageData().Filter.StartTime,e.pageData().Filter.EndTime)),l(3),R(" ",t.Trans," "),l(2),g("queryParams",B(26,oe,x(12,13,e.pageData().Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData().Filter.To,"yyyy-MM-dd"),t.ID)),l(3),R(" ",t.Qty," "),l(2),T(t.Weight)}}function ce(p,c){if(p&1){let t=f();r(0,"content")(1,"div",13)(2,"table",14),v("matSortChange",function(e){s(t);let i=m();return d(i.sortData(e))}),r(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),n(),r(7,"th"),o(8,"Logistics Service Name"),n(),r(9,"th",17),o(10,"Trans"),n(),r(11,"th",18),o(12,"Qty"),n(),r(13,"th",19),o(14," Weight "),r(15,"small",20),o(16,"(gram)"),n()()()(),r(17,"tbody"),V(18,me,17,30,"tr",null,M),n()()()()}if(p&2){let t=m();l(18),P(t.data().Data)}}var re=class p extends X{constructor(t,a,e,i,D,_){super(t,a,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,i);this.matDialog=D;this.roleService=_}originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let a=this.data().Data.slice();if(!t.active||t.direction===""){this.data.update(i=>F(w({},i),{Data:this.originalData}));return}let e=a.sort((i,D)=>this.compare(i[t.active],D[t.active],t.direction==="asc"));this.data.update(i=>F(w({},i),{Data:e}))}openExportModal(){this.matDialog.open(Z,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,a){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData().Filter[a]=e}static \u0275fac=function(a){return new(a||p)(C($),C(z),C(H),C(A),C(Y),C(J))};static \u0275cmp=b({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[I],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(a,e){if(a&1){let i=f();r(0,"mainpanel-cmp",1),y("textChange",function(_){return s(i),S(e.pageData().Filter.Name,_)||(e.pageData().Filter.Name=_),d(_)}),v("onSubmit",function(){return e.searchFromPageOne()}),y("filterChange",function(_){return s(i),S(e.pageData().Filter,_)||(e.pageData().Filter=_),d(_)}),r(1,"actions"),L(2,pe,3,0,"button",2),r(3,"a",3),o(4," View Detail "),n()(),r(5,"filters"),W(6,le,17,9,"ng-template",null,0,O),n(),L(8,ce,20,0,"content"),n()}a&2&&(g("pageData",e.menuData()),u("text",e.pageData().Filter.Name),g("isFilterOnDropdown",!1),u("filter",e.pageData().Filter),l(2),E(e.roleService.global.Export?2:-1),l(6),E(e.data()?8:-1))},dependencies:[q,G,Q,ee,ie,K,U,ae,te,j],encapsulation:2,changeDetection:0})};export{re as a};
1
+ import{a as ae}from"./chunk-IEFU4ZWW.js";import{p as ie}from"./chunk-VQQIQFUB.js";import{b as K,c as U}from"./chunk-KMI7GZJI.js";import{a as te}from"./chunk-75C5S3PQ.js";import{a as X}from"./chunk-TIUT2T4W.js";import{b as Z}from"./chunk-N5GGRFDA.js";import{g as ee}from"./chunk-2WOGKX6B.js";import{a as $}from"./chunk-DAUSQHWI.js";import{c as Y}from"./chunk-R2YNXAPB.js";import{h as G,o as Q}from"./chunk-POUQHZWU.js";import{b as J}from"./chunk-H3D4WR27.js";import{n as H,q as z}from"./chunk-D3E5UKKJ.js";import{Ab as g,Ac as N,Bb as r,Cb as n,Cc as h,Db as k,Ec as x,Ic as O,Kd as A,Mb as f,Nd as q,Pb as v,Ra as l,Rb as m,Ya as C,ab as b,ec as o,fb as I,fc as T,gb as W,gc as R,jc as u,kc as S,lc as y,nd as j,pa as s,qa as d,tb as L,vb as E,xb as M,xc as B,yb as V,zb as P}from"./chunk-M3O2GJ3M.js";import{a as w,b as F}from"./chunk-KMHZKFQS.js";var ne=(p,c,t,a,e,i)=>({LogisticServiceID:p,EntityID:c,From:t,To:a,StartTime:e,EndTime:i}),oe=(p,c,t)=>({From:p,To:c,LogisticsServiceID:t});function pe(p,c){if(p&1){let t=f();r(0,"button",4),v("click",function(){s(t);let e=m();return d(e.openExportModal())}),k(1,"i",5),o(2," Export "),n()}}function le(p,c){if(p&1){let t=f();r(0,"div",6)(1,"h6"),o(2,"Outlet"),n(),r(3,"outlet-selector",7),y("ngModelChange",function(e){s(t);let i=m();return S(i.pageData().Filter.EntityID,e)||(i.pageData().Filter.EntityID=e),d(e)}),n(),r(4,"h6"),o(5,"From"),n(),r(6,"datepicker",8),y("dateChange",function(e){s(t);let i=m();return S(i.pageData().Filter.From,e)||(i.pageData().Filter.From=e),d(e)}),n(),r(7,"h6"),o(8,"To"),n(),r(9,"datepicker",9),y("dateChange",function(e){s(t);let i=m();return S(i.pageData().Filter.To,e)||(i.pageData().Filter.To=e),d(e)}),n(),r(10,"h6"),o(11,"Time"),n(),r(12,"div",10)(13,"div",11)(14,"app-timepicker",12),y("timeChange",function(e){s(t);let i=m();return S(i.pageData().Filter.StartTime,e)||(i.pageData().Filter.StartTime=e),d(e)}),n()(),r(15,"div",11)(16,"app-timepicker",12),y("timeChange",function(e){s(t);let i=m();return S(i.pageData().Filter.EndTime,e)||(i.pageData().Filter.EndTime=e),d(e)}),n()()()()}if(p&2){let t,a=m();l(3),g("accessType",2),u("ngModel",a.pageData().Filter.EntityID),g("outlets",(t=a.pageData().Options)==null?null:t.Entities),l(3),u("date",a.pageData().Filter.From),l(3),u("date",a.pageData().Filter.To),l(5),g("fullWidth",!0),u("time",a.pageData().Filter.StartTime),l(2),g("fullWidth",!0),u("time",a.pageData().Filter.EndTime)}}function me(p,c){if(p&1&&(r(0,"tr")(1,"td"),o(2),n(),r(3,"td"),o(4),n(),r(5,"td",21)(6,"a",22),h(7,"date"),h(8,"date"),o(9),n()(),r(10,"td",21)(11,"a",23),h(12,"date"),h(13,"date"),o(14),n()(),r(15,"td",21),o(16),n()()),p&2){let t=c.$implicit,a=c.$index,e=m(2);l(2),T(a+1),l(2),T(t.Name),l(2),g("queryParams",N(19,ne,t.ID,e.pageData().Filter.EntityID,x(7,7,e.pageData().Filter.From,"yyyy-MM-dd"),x(8,10,e.pageData().Filter.To,"yyyy-MM-dd"),e.pageData().Filter.StartTime,e.pageData().Filter.EndTime)),l(3),R(" ",t.Trans," "),l(2),g("queryParams",B(26,oe,x(12,13,e.pageData().Filter.From,"yyyy-MM-dd"),x(13,16,e.pageData().Filter.To,"yyyy-MM-dd"),t.ID)),l(3),R(" ",t.Qty," "),l(2),T(t.Weight)}}function ce(p,c){if(p&1){let t=f();r(0,"content")(1,"div",13)(2,"table",14),v("matSortChange",function(e){s(t);let i=m();return d(i.sortData(e))}),r(3,"thead",15)(4,"tr")(5,"th",16),o(6,"No"),n(),r(7,"th"),o(8,"Logistics Service Name"),n(),r(9,"th",17),o(10,"Trans"),n(),r(11,"th",18),o(12,"Qty"),n(),r(13,"th",19),o(14," Weight "),r(15,"small",20),o(16,"(gram)"),n()()()(),r(17,"tbody"),V(18,me,17,30,"tr",null,M),n()()()()}if(p&2){let t=m();l(18),P(t.data().Data)}}var re=class p extends X{constructor(t,a,e,i,D,_){super(t,a,"Report/GetLogisticsService","ReportLoader/GetLogisticsService",e,i);this.matDialog=D;this.roleService=_}originalData=[];postInit(t){this.originalData=t.Data}sortData(t){let a=this.data().Data.slice();if(!t.active||t.direction===""){this.data.update(i=>F(w({},i),{Data:this.originalData}));return}let e=a.sort((i,D)=>this.compare(i[t.active],D[t.active],t.direction==="asc"));this.data.update(i=>F(w({},i),{Data:e}))}openExportModal(){this.matDialog.open(Z,{data:{title:"Logistic Service",exportTypes:[{ID:"ReportExport/LogisticService",Value:"Default",FileName:"Logistics Service"}],filterExport:this.pageData().Filter,getAllDataLengthAPI:"",pagination:!1}})}onChangeTime(t,a){let e=t.toTimeString().split(" ")[0].slice(0,5);this.pageData().Filter[a]=e}static \u0275fac=function(a){return new(a||p)(C($),C(z),C(H),C(A),C(Y),C(J))};static \u0275cmp=b({type:p,selectors:[["POS-logistics-service-report"]],standalone:!1,features:[I],decls:9,vars:6,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose Outlet",3,"ngModelChange","accessType","ngModel","outlets"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"row"],[1,"col-6"],[3,"timeChange","fullWidth","time"],[1,"container-fluid","mt-5"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[2,"width","50px"],["mat-sort-header","Trans",1,"align-right"],["mat-sort-header","Qty",1,"align-right"],["mat-sort-header","Weight",1,"align-right",2,"width","180px"],[1,"fst-italic","text-dark"],[1,"text-end"],["routerLink","/menu/Logistics/Report/Outbound/Logistics_Service/Detail",3,"queryParams"],["routerLink","/menu/Reports/Sales_Report/Standard/Products_Sold",3,"queryParams"]],template:function(a,e){if(a&1){let i=f();r(0,"mainpanel-cmp",1),y("textChange",function(_){return s(i),S(e.pageData().Filter.Name,_)||(e.pageData().Filter.Name=_),d(_)}),v("onSubmit",function(){return e.searchFromPageOne()}),y("filterChange",function(_){return s(i),S(e.pageData().Filter,_)||(e.pageData().Filter=_),d(_)}),r(1,"actions"),L(2,pe,3,0,"button",2),r(3,"a",3),o(4," View Detail "),n()(),r(5,"filters"),W(6,le,17,9,"ng-template",null,0,O),n(),L(8,ce,20,0,"content"),n()}a&2&&(g("pageData",e.menuData()),u("text",e.pageData().Filter.Name),g("isFilterOnDropdown",!1),u("filter",e.pageData().Filter),l(2),E(e.roleService.global.Export?2:-1),l(6),E(e.data()?8:-1))},dependencies:[q,G,Q,ee,ie,K,U,ae,te,j],encapsulation:2,changeDetection:0})};export{re as a};
@@ -1 +1 @@
1
- import{a as Q,b as U}from"./chunk-NVGEU7SZ.js";import{p as te}from"./chunk-VQQIQFUB.js";import{a as Y}from"./chunk-MCHMU65O.js";import{g as $,h as ee}from"./chunk-FI4ADJ7Y.js";import{a as Z}from"./chunk-V6I4U3FF.js";import{d as X}from"./chunk-RBBEZN3D.js";import{E as A,c as H,h as z,o as q}from"./chunk-POUQHZWU.js";import{b as K}from"./chunk-H3D4WR27.js";import{n as O,q as G}from"./chunk-D3E5UKKJ.js";import{Ab as s,Bb as i,Cb as o,Cc as y,Ec as v,Ic as P,Mb as h,Nd as R,Pb as D,Pd as j,Ra as l,Rb as m,Ya as _,ab as w,ec as p,fb as F,fd as J,gb as L,gc as S,jc as u,kc as C,lc as b,nd as V,pa as c,pd as B,qa as g,sd as N,tb as f,uc as T,vb as x,vc as E,wc as I,xb as k,yb as W,zb as M}from"./chunk-M3O2GJ3M.js";var oe=()=>["/menu/Developer/Webhook/Job_Logs/Detail"],ne=n=>({ID:n}),ae=(n,d)=>({"text-success":n,"text-danger":d});function re(n,d){if(n&1){let e=h();i(0,"div",12)(1,"h6"),p(2,"Status"),o(),i(3,"ng-select",13),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.Status,t)||(r.pageData.Filter.Status=t),g(t)}),o(),i(4,"h6"),p(5,"Job ID"),o(),i(6,"input",14),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.JobID,t)||(r.pageData.Filter.JobID=t),g(t)}),o(),i(7,"h6"),p(8,"From"),o(),i(9,"datepicker",15),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.From,t)||(r.pageData.Filter.From=t),g(t)}),o(),i(10,"h6"),p(11,"To"),o(),i(12,"datepicker",16),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.To,t)||(r.pageData.Filter.To=t),g(t)}),o()()}if(n&2){let e=m(2);l(3),s("disabled",!e.role.developer.Edit)("items",e.pageData.Options.Status),u("ngModel",e.pageData.Filter.Status),l(3),u("ngModel",e.pageData.Filter.JobID),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.From),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.To)}}function le(n,d){if(n&1&&(i(0,"tr",9)(1,"td")(2,"a",17),p(3),y(4,"date"),o()(),i(5,"td"),p(6),y(7,"number"),o(),i(8,"td",18),p(9),o()()),n&2){let e=d.$implicit;l(2),s("routerLink",T(12,oe))("queryParams",E(13,ne,e._id)),l(),S(" ",v(4,6,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," "),l(3),S("",v(7,9,e.DurationInSecond,"1.1-1")," s"),l(2),s("ngClass",I(15,ae,e._source.log.respCode==200,e._source.log.respCode!=200)),l(),S(" ",e._source.log.respCode," ")}}function pe(n,d){if(n&1){let e=h();i(0,"mat-paginator",19),D("page",function(t){c(e);let r=m(2);return g(r.onPaginationChange(t))}),o()}if(n&2){let e=m(2);s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function me(n,d){if(n&1){let e=h();i(0,"mainpanel-cmp",2),D("onSubmit",function(){c(e);let t=m();return g(t.searchFromPageOne())}),i(1,"filters"),L(2,re,13,8,"ng-template",null,0,P),o(),i(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr",7)(10,"th",8),p(11,"Created"),o(),i(12,"th",8),p(13,"Duration"),o(),i(14,"th",8),p(15,"Status"),o()()(),i(16,"tbody"),W(17,le,10,18,"tr",9,k),o()()(),i(19,"div",10),f(20,pe,1,3,"mat-paginator",11),o()()()()}if(n&2){let e=m();s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),l(17),M(e.data.hits),l(3),x(e.pagination.listTotal>0?20:-1)}}var ie=class n extends Y{constructor(e,a,t,r){super(e,a,"Developer/DeveloperSpace/Webhook/JobLogs","Developer/DeveloperSpace/WebhookLoader/GetLogs",t);this.httpService=a;this.role=r}postInit(e){this.data.hits=this.data?.hits.map(a=>(a.DurationInSecond=parseInt(a._source?.Duration)/1e3,a)),this.data.ListTotal=e?.total?.value}static \u0275fac=function(a){return new(a||n)(_(Z),_(G),_(O),_(K))};static \u0275cmp=w({type:n,selectors:[["app-webhook-job-logs"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","50px"],[1,"border-bottom"],[1,"mt-2"],[3,"length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose a status","appendTo","body",3,"ngModelChange","disabled","items","ngModel"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[3,"routerLink","queryParams"],[3,"ngClass"],[3,"page","length","pageSize","pageIndex"]],template:function(a,t){a&1&&f(0,me,21,4,"mainpanel-cmp",1),a&2&&x(t.data?0:-1)},dependencies:[N,J,ee,$,te,U,Q,X,A,H,z,q,j,R,B,V],encapsulation:2})};export{ie as a};
1
+ import{a as Q,b as U}from"./chunk-NVGEU7SZ.js";import{p as te}from"./chunk-VQQIQFUB.js";import{a as Y}from"./chunk-KODUGIB5.js";import{g as $,h as ee}from"./chunk-2WOGKX6B.js";import{a as Z}from"./chunk-DAUSQHWI.js";import{d as X}from"./chunk-RBBEZN3D.js";import{E as A,c as H,h as z,o as q}from"./chunk-POUQHZWU.js";import{b as K}from"./chunk-H3D4WR27.js";import{n as O,q as G}from"./chunk-D3E5UKKJ.js";import{Ab as s,Bb as i,Cb as o,Cc as y,Ec as v,Ic as P,Mb as h,Nd as R,Pb as D,Pd as j,Ra as l,Rb as m,Ya as _,ab as w,ec as p,fb as F,fd as J,gb as L,gc as S,jc as u,kc as C,lc as b,nd as V,pa as c,pd as B,qa as g,sd as N,tb as f,uc as T,vb as x,vc as E,wc as I,xb as k,yb as W,zb as M}from"./chunk-M3O2GJ3M.js";var oe=()=>["/menu/Developer/Webhook/Job_Logs/Detail"],ne=n=>({ID:n}),ae=(n,d)=>({"text-success":n,"text-danger":d});function re(n,d){if(n&1){let e=h();i(0,"div",12)(1,"h6"),p(2,"Status"),o(),i(3,"ng-select",13),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.Status,t)||(r.pageData.Filter.Status=t),g(t)}),o(),i(4,"h6"),p(5,"Job ID"),o(),i(6,"input",14),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.JobID,t)||(r.pageData.Filter.JobID=t),g(t)}),o(),i(7,"h6"),p(8,"From"),o(),i(9,"datepicker",15),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.From,t)||(r.pageData.Filter.From=t),g(t)}),o(),i(10,"h6"),p(11,"To"),o(),i(12,"datepicker",16),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.To,t)||(r.pageData.Filter.To=t),g(t)}),o()()}if(n&2){let e=m(2);l(3),s("disabled",!e.role.developer.Edit)("items",e.pageData.Options.Status),u("ngModel",e.pageData.Filter.Status),l(3),u("ngModel",e.pageData.Filter.JobID),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.From),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.To)}}function le(n,d){if(n&1&&(i(0,"tr",9)(1,"td")(2,"a",17),p(3),y(4,"date"),o()(),i(5,"td"),p(6),y(7,"number"),o(),i(8,"td",18),p(9),o()()),n&2){let e=d.$implicit;l(2),s("routerLink",T(12,oe))("queryParams",E(13,ne,e._id)),l(),S(" ",v(4,6,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," "),l(3),S("",v(7,9,e.DurationInSecond,"1.1-1")," s"),l(2),s("ngClass",I(15,ae,e._source.log.respCode==200,e._source.log.respCode!=200)),l(),S(" ",e._source.log.respCode," ")}}function pe(n,d){if(n&1){let e=h();i(0,"mat-paginator",19),D("page",function(t){c(e);let r=m(2);return g(r.onPaginationChange(t))}),o()}if(n&2){let e=m(2);s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function me(n,d){if(n&1){let e=h();i(0,"mainpanel-cmp",2),D("onSubmit",function(){c(e);let t=m();return g(t.searchFromPageOne())}),i(1,"filters"),L(2,re,13,8,"ng-template",null,0,P),o(),i(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr",7)(10,"th",8),p(11,"Created"),o(),i(12,"th",8),p(13,"Duration"),o(),i(14,"th",8),p(15,"Status"),o()()(),i(16,"tbody"),W(17,le,10,18,"tr",9,k),o()()(),i(19,"div",10),f(20,pe,1,3,"mat-paginator",11),o()()()()}if(n&2){let e=m();s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),l(17),M(e.data.hits),l(3),x(e.pagination.listTotal>0?20:-1)}}var ie=class n extends Y{constructor(e,a,t,r){super(e,a,"Developer/DeveloperSpace/Webhook/JobLogs","Developer/DeveloperSpace/WebhookLoader/GetLogs",t);this.httpService=a;this.role=r}postInit(e){this.data.hits=this.data?.hits.map(a=>(a.DurationInSecond=parseInt(a._source?.Duration)/1e3,a)),this.data.ListTotal=e?.total?.value}static \u0275fac=function(a){return new(a||n)(_(Z),_(G),_(O),_(K))};static \u0275cmp=w({type:n,selectors:[["app-webhook-job-logs"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","50px"],[1,"border-bottom"],[1,"mt-2"],[3,"length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose a status","appendTo","body",3,"ngModelChange","disabled","items","ngModel"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[3,"routerLink","queryParams"],[3,"ngClass"],[3,"page","length","pageSize","pageIndex"]],template:function(a,t){a&1&&f(0,me,21,4,"mainpanel-cmp",1),a&2&&x(t.data?0:-1)},dependencies:[N,J,ee,$,te,U,Q,X,A,H,z,q,j,R,B,V],encapsulation:2})};export{ie as a};
@@ -1 +1 @@
1
- import{g as M,h as y}from"./chunk-FI4ADJ7Y.js";import"./chunk-LT46RQOD.js";import"./chunk-5E52ZWKI.js";import"./chunk-JFJGBJM3.js";import"./chunk-23G4CQ4S.js";import"./chunk-Q6MS4QZ6.js";import"./chunk-GMF3SGSZ.js";import"./chunk-5NWJYNJO.js";import"./chunk-36TOKQZQ.js";import"./chunk-XS4UTUMZ.js";import"./chunk-D3PKFTVO.js";import"./chunk-V25UXFNL.js";import"./chunk-YNQPX5G6.js";import"./chunk-VAJAIBT3.js";import"./chunk-S4263DWI.js";import"./chunk-R2YNXAPB.js";import"./chunk-MMKYHF6F.js";import"./chunk-LJWHBKHI.js";import"./chunk-SY5NNN4M.js";import"./chunk-3UB7PEG5.js";import"./chunk-DVI52XSU.js";import"./chunk-6HNYSYBG.js";import"./chunk-WIUSOID5.js";import"./chunk-K7ICHNI3.js";import"./chunk-POUQHZWU.js";import"./chunk-KM4ASOAJ.js";import"./chunk-YPRM4YPL.js";import"./chunk-MNXZMQRB.js";import"./chunk-H3D4WR27.js";import"./chunk-PTRS3UA6.js";import"./chunk-ZPXUDL2F.js";import"./chunk-D3E5UKKJ.js";import{Ab as h,Bb as i,Cb as r,Db as g,Md as z,Pd as c,Ra as d,Ya as l,ab as f,bb as m,ec as n,fc as v,ia as s,sd as x}from"./chunk-M3O2GJ3M.js";import"./chunk-KMHZKFQS.js";var u=class t{constructor(a){this.router=a;let e=this.router.currentNavigation();e?.extras?.state&&(this.role=e.extras.state.role);let o=this.router.lastSuccessfulNavigation();o&&(this.previousPage=o.extractedUrl.toString())}previousPage="";role="";menuData={H:"Unauthorized"};goBack(){this.previousPage?this.router.navigateByUrl(this.previousPage):this.router.navigate(["/dashboard"])}static \u0275fac=function(e){return new(e||t)(l(z))};static \u0275cmp=f({type:t,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(e,o){e&1&&(i(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),r(),i(6,"h1",4),n(7,"You are not authorized"),r(),i(8,"p"),n(9," This page require "),i(10,"span",5),n(11),r(),n(12," role. Please contact your Administrator to gain access! "),r()()()()()),e&2&&(h("pageData",o.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),d(11),v(o.role))},dependencies:[M],encapsulation:2})};var U=[{path:"Main/Unauthorized",component:u},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],p=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[c.forChild(U),c]})};var S=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[x,p,y]})};export{S as UnauthorizedModule};
1
+ import{g as M,h as y}from"./chunk-2WOGKX6B.js";import"./chunk-6ICWK6F4.js";import"./chunk-5E52ZWKI.js";import"./chunk-JFJGBJM3.js";import"./chunk-EH7XIUJQ.js";import"./chunk-Q6MS4QZ6.js";import"./chunk-GMF3SGSZ.js";import"./chunk-5NWJYNJO.js";import"./chunk-36TOKQZQ.js";import"./chunk-XS4UTUMZ.js";import"./chunk-D3PKFTVO.js";import"./chunk-V25UXFNL.js";import"./chunk-YNQPX5G6.js";import"./chunk-VAJAIBT3.js";import"./chunk-X4BN3WV7.js";import"./chunk-R2YNXAPB.js";import"./chunk-MMKYHF6F.js";import"./chunk-LJWHBKHI.js";import"./chunk-DUAKLYOO.js";import"./chunk-3UB7PEG5.js";import"./chunk-DVI52XSU.js";import"./chunk-6HNYSYBG.js";import"./chunk-WIUSOID5.js";import"./chunk-K7ICHNI3.js";import"./chunk-POUQHZWU.js";import"./chunk-436TTDMO.js";import"./chunk-VLAVHN5T.js";import"./chunk-MNXZMQRB.js";import"./chunk-H3D4WR27.js";import"./chunk-PTRS3UA6.js";import"./chunk-HFLDVZQD.js";import"./chunk-D3E5UKKJ.js";import{Ab as h,Bb as i,Cb as r,Db as g,Md as z,Pd as c,Ra as d,Ya as l,ab as f,bb as m,ec as n,fc as v,ia as s,sd as x}from"./chunk-M3O2GJ3M.js";import"./chunk-KMHZKFQS.js";var u=class t{constructor(a){this.router=a;let e=this.router.currentNavigation();e?.extras?.state&&(this.role=e.extras.state.role);let o=this.router.lastSuccessfulNavigation();o&&(this.previousPage=o.extractedUrl.toString())}previousPage="";role="";menuData={H:"Unauthorized"};goBack(){this.previousPage?this.router.navigateByUrl(this.previousPage):this.router.navigate(["/dashboard"])}static \u0275fac=function(e){return new(e||t)(l(z))};static \u0275cmp=f({type:t,selectors:[["POS-unauthorized"]],standalone:!1,decls:13,vars:4,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],[1,"d-flex","align-items-center","justify-content-center","mt-8",2,"height","350px"],[1,"text-center"],["src","https://cdn.dealpos.xyz/web-image/locked.svg",2,"width","200px"],[1,"mt-2","mb-6"],[1,"fw-bold"]],template:function(e,o){e&1&&(i(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),r(),i(6,"h1",4),n(7,"You are not authorized"),r(),i(8,"p"),n(9," This page require "),i(10,"span",5),n(11),r(),n(12," role. Please contact your Administrator to gain access! "),r()()()()()),e&2&&(h("pageData",o.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),d(11),v(o.role))},dependencies:[M],encapsulation:2})};var U=[{path:"Main/Unauthorized",component:u},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],p=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[c.forChild(U),c]})};var S=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=m({type:t});static \u0275inj=s({imports:[x,p,y]})};export{S as UnauthorizedModule};
@@ -1 +1 @@
1
- import{a as U}from"./chunk-ES6YUR3X.js";import{a as X}from"./chunk-AKURDWYM.js";import{a as j}from"./chunk-XUQBRL5R.js";import{N as G,g as H}from"./chunk-VAJAIBT3.js";import{Ab as m,Bb as a,Cb as c,Cc as P,Db as s,Dc as u,Ec as v,Ka as x,Lc as p,Na as w,Oa as b,Qc as M,Ra as o,Rb as g,Vb as z,Wb as A,Xb as L,ab as N,ec as d,fc as C,fd as B,gc as f,nd as R,pb as T,pd as Q,sd as F,tb as l,vb as r,vc as h,wb as I,yb as E,zb as D}from"./chunk-M3O2GJ3M.js";import{a as V,b as S}from"./chunk-KMHZKFQS.js";var q=["barcode"],J=n=>({"col-12 border-0":n}),K=n=>({"col-12":n});function W(n,i){n&1&&s(0,"link",15)}function Y(n,i){n&1&&s(0,"link",16)}function Z(n,i){n&1&&s(0,"link",17)}function nn(n,i){if(n&1&&(a(0,"div",7)(1,"span"),d(2),P(3,"date"),c()()),n&2){let t,e=g();o(2),C(v(3,1,(t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Date,"dd MMM yy"))}}function tn(n,i){if(n&1&&(a(0,"div",8)(1,"span",18),d(2,"Invoice Number:"),c(),a(3,"span"),d(4),c()()),n&2){let t,e=g();o(4),C((t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Number)}}function en(n,i){n&1&&s(0,"img",19,0)}function on(n,i){if(n&1&&s(0,"qr-code",20),n&2){let t=g(2);m("value",t.invoiceNumber())("size",t.packingSlipConfig().General.QrCodeHeight)("margin",3)}}function cn(n,i){if(n&1&&(a(0,"div",9),l(1,en,2,0,"img",19)(2,on,1,3,"qr-code",20),c()),n&2){let t,e=g();o(),r((t=(t=e.packingSlipConfig())==null||t.General==null?null:t.General.BarcodeVisibleV2)===e.PackingSlipCodeType.Barcode?1:t===e.PackingSlipCodeType.QR?2:-1)}}function an(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.ContactDisplay)}}function ln(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.Mobile)}}function rn(n,i){if(n&1&&(a(0,"div",23),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.receipt())==null||t.Customer==null?null:t.Customer.Address," ")}}function gn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Receiver:"),c(),a(4,"div"),l(5,an,2,1,"h6"),l(6,ln,2,1,"span"),c()(),l(7,rn,2,1,"div",23),c()),n&2){let t=g();o(5),r(t.customerNameVisible()?5:-1),o(),r(t.CustomerMobileVisible()?6:-1),o(),r(t.customerAddressVisible()?7:-1)}}function dn(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.DisplayName)}}function pn(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.ContactInfo)}}function _n(n,i){if(n&1&&(a(0,"div",24),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.template())==null?null:t.Address," ")}}function Cn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Sender:"),c(),a(4,"div"),l(5,dn,2,1,"h6"),l(6,pn,2,1,"span"),c()(),l(7,_n,2,1,"div",24),c()),n&2){let t=g();o(5),r(t.storeNameVisible()?5:-1),o(),r(t.storePhoneVisible()?6:-1),o(),r(t.storeAddressVisible()?7:-1)}}function sn(n,i){if(n&1&&(a(0,"div",25)(1,"h5"),d(2),c()()),n&2){let t,e,_=g(2);m("ngClass",h(2,J,!_.invoiceNoteVisible()||!(!((t=_.receipt())==null||t.Invoice==null)&&t.Invoice.Note))),o(2),C((e=_.receipt())==null?null:e.Tag)}}function mn(n,i){if(n&1&&(a(0,"div",26),s(1,"p",27),c()),n&2){let t,e,_=g(2);m("ngClass",h(2,K,!_.orderTagVisible()||!((t=_.receipt())!=null&&t.Tag))),o(),m("innerHTML",(e=_.receipt())==null||e.Invoice==null?null:e.Invoice.Note,x)}}function Pn(n,i){if(n&1&&(a(0,"div",12),l(1,sn,3,4,"div",25),l(2,mn,2,4,"div",26),c()),n&2){let t,e=g();o(),r(e.orderTagVisible()?1:-1),o(),r(e.invoiceNoteVisible()&&(!((t=e.receipt())==null||t.Invoice==null)&&t.Invoice.Note)?2:-1)}}function Mn(n,i){n&1&&(a(0,"th",29),d(1,"Name"),c())}function On(n,i){n&1&&(a(0,"th",30),d(1,"Code"),c())}function bn(n,i){n&1&&(a(0,"th",30),d(1,"QTy"),c())}function un(n,i){if(n&1&&s(0,"span",33),n&2){let t=g(2).$implicit;m("innerHTML",t==null?null:t.Note,x)}}function xn(n,i){if(n&1&&(a(0,"td",32)(1,"div"),d(2),c(),l(3,un,1,1,"span",33),c()),n&2){let t=g().$implicit,e=g(2);o(2),C(t==null?null:t.Name),o(),r(e.itemNotesVisible()?3:-1)}}function fn(n,i){if(n&1&&(a(0,"td",30),d(1),c()),n&2){let t=g().$implicit;o(),C(t==null?null:t.Code)}}function hn(n,i){if(n&1&&(a(0,"td",30),d(1),P(2,"number"),c()),n&2){let t=g().$implicit;o(),C(u(2,1,t==null?null:t.Quantity))}}function vn(n,i){if(n&1&&(a(0,"tr")(1,"td",30),d(2),c(),l(3,xn,4,2,"td",32),l(4,fn,2,1,"td",30),l(5,hn,3,3,"td",30),c()),n&2){let t=i.$index,e=g(2);o(2),C(t+1),o(),r(e.productNameVisible()?3:-1),o(),r(e.productCodeVisible()?4:-1),o(),r(e.producctQtyVisible()?5:-1)}}function yn(n,i){if(n&1&&s(0,"td",34),n&2){let t=g(3);m("colSpan",t.getVisibleColumnCount())}}function kn(n,i){if(n&1&&(a(0,"tfoot",31)(1,"tr",31),l(2,yn,1,1,"td",34),a(3,"td",35)(4,"span",36),d(5,"Total"),c()(),a(6,"td",35)(7,"span",36),d(8),P(9,"sum"),P(10,"number"),c()()()()),n&2){let t,e=g(2);o(2),r(e.productCodeVisible()||e.productNameVisible()?2:-1),o(6),C(u(10,5,v(9,2,(t=e.receipt())==null?null:t.List,"Quantity")))}}function Vn(n,i){if(n&1&&(a(0,"table",14)(1,"thead")(2,"tr")(3,"th",28),d(4,"No"),c(),l(5,Mn,2,0,"th",29),l(6,On,2,0,"th",30),l(7,bn,2,0,"th",30),c()(),a(8,"tbody"),E(9,vn,6,4,"tr",null,I),c(),l(11,kn,11,7,"tfoot",31),c()),n&2){let t,e=g();o(5),r(e.productNameVisible()?5:-1),o(),r(e.productCodeVisible()?6:-1),o(),r(e.producctQtyVisible()?7:-1),o(2),D((t=e.receipt())==null?null:t.List),o(2),r(e.producctQtyVisible()?11:-1)}}var $=class n{receipt=M();config=M();template=M();css=M();_barcodeElement;invoiceNumber=p(()=>this.receipt()?.Invoice?.Number);packingSlipConfig=p(()=>this.config().PrintConfigPackingSlip);invoiceNumberVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceNumberVisible);invoiceDateVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceDateVisible);barcodeVisible=p(()=>this.packingSlipConfig()?.General?.BarcodeVisibleV2!==1);storeNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreNameVisible);storeAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreAddressVisible);storePhoneVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StorePhoneVisible);customerNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerNameVisible);customerAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerAddressVisible);CustomerMobileVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerMobileVisible);producctQtyVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductQuantityVisible);productNameVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNameVisible);productCodeVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductCodeVisible);invoiceNoteVisible=p(()=>this.packingSlipConfig()?.Footer?.InvoiceNoteVisible);orderTagVisible=p(()=>this.packingSlipConfig()?.Footer?.SalesOrderTagVisible);itemNotesVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNoteVisible);getVisibleColumnCount=p(()=>{let i=0;return this.productNameVisible()&&i++,this.productCodeVisible()&&i++,i});PackingSlipCodeType=U;barcodeOptions={width:1,height:46,displayValue:!1,backgroundColor:"",lineColor:"#000",margin:0,format:"CODE128",flat:!0};set content(i){i&&(this._barcodeElement=i,this.renderBarcode())}renderBarcode(){let i=this.packingSlipConfig()?.General.BarcodeHeight||46,t=this.packingSlipConfig()?.BarcodeWidthPercent||1,e=this.invoiceNumber(),_=S(V({},this.barcodeOptions),{height:i,width:t});JsBarcode(this._barcodeElement.nativeElement,e,_)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=N({type:n,selectors:[["app-packing-slip-v2"]],viewQuery:function(t,e){if(t&1&&z(q,5),t&2){let _;A(_=L())&&(e.content=_.first)}},inputs:{receipt:[1,"receipt"],config:[1,"config"],template:[1,"template"],css:[1,"css"]},decls:18,vars:13,consts:[["barcode",""],["href","/Styles/Print/Master.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300_Core.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300.css","rel","stylesheet","type","text/css"],["rel","stylesheet","type","text/css"],[1,"print_container_delivery","border","border-dark","px-4",2,"width","378px"],[1,"d-flex","align-items-center","position-relative","justify-content-center","border-bottom","border-dark","py-6"],[1,"position-absolute","end-0","me-4","fw-bold"],[1,"text-center","mt-4","fw-bold"],[1,"w-100","d-flex","justify-content-center","mt-4","barcode-container"],[1,"row","mt-6"],[1,"col"],[1,"row","mt-8","border","rounded-1","border-dark","g-0"],[1,"mt-8","mb-5"],[1,"w-100","table","table-sm","table-bordered"],["href",b`/Styles/Print/Master.css`,"rel","stylesheet","type","text/css"],["href",b`/Styles/Print/LX300_Core.css`,"rel","stylesheet","type","text/css"],["href",b`/Styles/Print/LX300.css`,"rel","stylesheet","type","text/css"],[1,"me-2"],["id","barcode",1,"barcode-image"],[3,"value","size","margin"],[1,"d-flex","justify-content-start"],[1,"me-3"],[1,"mt-3",2,"text-align","left"],[1,"mt-3",2,"text-align","right"],[1,"col-5","text-center","py-4","border-end","border-dark","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"col-7","text-center","py-4","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"mt-0","fst-italic",3,"innerHTML"],[1,"text-center",2,"width","10px"],[1,"text-start"],[1,"text-center"],[1,"border-0"],[1,"text-start","lh-base"],[1,"text-muted","fst-italic","note-text",3,"innerHTML"],[1,"border-0",3,"colSpan"],[1,"text-center","border-0"],[1,"fw-bold"]],template:function(t,e){if(t&1&&(l(0,W,1,0,"link",1),l(1,Y,1,0,"link",2),l(2,Z,1,0,"link",3),s(3,"link",4),P(4,"StylesheetSafeUrl"),a(5,"div",5)(6,"div",6)(7,"h3"),d(8,"PACKING SLIP"),c(),l(9,nn,4,4,"div",7),c(),l(10,tn,5,1,"div",8),l(11,cn,3,1,"div",9),a(12,"div",10),l(13,gn,8,3,"div",11),l(14,Cn,8,3,"div",11),c(),l(15,Pn,3,2,"div",12),a(16,"div",13),l(17,Vn,12,4,"table",14),c()()),t&2){let _,y,k,O;r((_=e.template())!=null&&_.PrintLX300?0:-1),o(),r((y=e.template())!=null&&y.PrintLX300?1:-1),o(),r((k=e.template())!=null&&k.PrintLX300?2:-1),o(),T("href",(O=e.css())!=null&&O.Size8cm?u(4,11,(O=e.css())==null?null:O.Size8cm):null,w),o(6),r(e.invoiceDateVisible()?9:-1),o(),r(e.invoiceNumberVisible()?10:-1),o(),r(e.barcodeVisible()?11:-1),o(2),r(e.customerNameVisible()||e.CustomerMobileVisible()||e.customerAddressVisible()?13:-1),o(),r(e.storeNameVisible()||e.storePhoneVisible()||e.storeAddressVisible()?14:-1),o(),r(e.orderTagVisible()||e.invoiceNoteVisible()?15:-1),o(2),r(e.productNameVisible()||e.productCodeVisible()?17:-1)}},dependencies:[F,B,G,j,Q,R,H,X],styles:["div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{margin:0;padding:0;font-family:Arial;font-size:12px}div.print_container_delivery[_ngcontent-%COMP%]{margin:0 auto;width:230px;text-align:left;padding:0 4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{display:none}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:100%;text-align:center;display:none}div.sign[_ngcontent-%COMP%]{margin:0 auto!important;display:block!important}div.signature[_ngcontent-%COMP%]{clear:both;height:111px;margin:25px auto 0;padding:0}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{margin-left:10px;max-width:80px;float:left}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:10px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;max-width:80px;margin-left:5px;text-align:left}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.divDate[_ngcontent-%COMP%]{width:100%;text-align:center}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Garamond;font-weight:700!important;margin:0;padding:0;text-align:center}small[_ngcontent-%COMP%]{font-size:12px;text-align:center!important;font-style:italic;display:block;margin:0 0 10px}div.address[_ngcontent-%COMP%]{width:100%;padding:0 0 5px;margin-top:3px;text-align:center!important;line-height:18px}div.details[_ngcontent-%COMP%]{border-bottom:solid 1px Black;margin:5px 0 8px;text-align:center;font-size:11px;font-weight:700;padding:5px 0}h2[_ngcontent-%COMP%]{font-size:14px;margin:10px 0;padding:0;text-align:center}div.customer[_ngcontent-%COMP%]{margin:0 0 10px;text-align:center;font-size:11px;padding:5px 0}div.customer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:12px}div.customer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:16px}div.customer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;line-height:16px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}div.cartAmount[_ngcontent-%COMP%]{margin-top:3px;text-align:right;padding-right:1px}div.cartAmount[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}div.cartAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}div.section[_ngcontent-%COMP%]{margin:5px 0 0;min-height:30px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:229px;padding:5px 0}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:0 0 2px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%], div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border:1px dotted black;margin:0;padding:10px 5px;background-color:#ffffbf;list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center}div.extra[_ngcontent-%COMP%]{clear:both}div.extra[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;text-align:center}div.extra[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{border:1px dotted black;margin:3px 0 0;padding:10px 5px;background-color:#ffffbf;display:block;text-align:center}p[_ngcontent-%COMP%]{margin:3px 0 0;padding:0}div.note[_ngcontent-%COMP%]{padding-top:13px}div.note[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{display:block;font-weight:700;margin:2px 0 15px;text-align:center;font-style:italic}div.note[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%]{text-align:center}div.note[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:3px 0 0 18px;padding:0;list-style-type:disc}div.note[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:0;line-height:16px;font-size:11px}div.note[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:3px 0 0 20px;padding:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.single[_ngcontent-%COMP%]{display:block}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.strike[_ngcontent-%COMP%]{display:block;text-decoration:line-through}table[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{font-size:11px}table.rightAuto[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 3px}footer[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;margin:15px 0 0;font-weight:700}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}.barcode-container[_ngcontent-%COMP%]{width:100%;overflow:hidden;padding:0 5px;box-sizing:border-box}.barcode-image[_ngcontent-%COMP%]{max-width:100%;display:block;margin:0 auto}.barcode-image[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:100%;height:auto}.note-text[_ngcontent-%COMP%]{font-size:.656rem;white-space:normal;word-break:break-word;overflow-wrap:break-word}"]})};export{$ as a};
1
+ import{a as U}from"./chunk-ES6YUR3X.js";import{a as X}from"./chunk-CEQJAUV2.js";import{a as j}from"./chunk-XUQBRL5R.js";import{N as G,g as H}from"./chunk-VAJAIBT3.js";import{Ab as m,Bb as a,Cb as c,Cc as P,Db as s,Dc as u,Ec as v,Ka as x,Lc as p,Na as w,Oa as b,Qc as M,Ra as o,Rb as g,Vb as z,Wb as A,Xb as L,ab as N,ec as d,fc as C,fd as B,gc as f,nd as R,pb as T,pd as Q,sd as F,tb as l,vb as r,vc as h,wb as I,yb as E,zb as D}from"./chunk-M3O2GJ3M.js";import{a as V,b as S}from"./chunk-KMHZKFQS.js";var q=["barcode"],J=n=>({"col-12 border-0":n}),K=n=>({"col-12":n});function W(n,i){n&1&&s(0,"link",15)}function Y(n,i){n&1&&s(0,"link",16)}function Z(n,i){n&1&&s(0,"link",17)}function nn(n,i){if(n&1&&(a(0,"div",7)(1,"span"),d(2),P(3,"date"),c()()),n&2){let t,e=g();o(2),C(v(3,1,(t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Date,"dd MMM yy"))}}function tn(n,i){if(n&1&&(a(0,"div",8)(1,"span",18),d(2,"Invoice Number:"),c(),a(3,"span"),d(4),c()()),n&2){let t,e=g();o(4),C((t=e.receipt())==null||t.Invoice==null?null:t.Invoice.Number)}}function en(n,i){n&1&&s(0,"img",19,0)}function on(n,i){if(n&1&&s(0,"qr-code",20),n&2){let t=g(2);m("value",t.invoiceNumber())("size",t.packingSlipConfig().General.QrCodeHeight)("margin",3)}}function cn(n,i){if(n&1&&(a(0,"div",9),l(1,en,2,0,"img",19)(2,on,1,3,"qr-code",20),c()),n&2){let t,e=g();o(),r((t=(t=e.packingSlipConfig())==null||t.General==null?null:t.General.BarcodeVisibleV2)===e.PackingSlipCodeType.Barcode?1:t===e.PackingSlipCodeType.QR?2:-1)}}function an(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.ContactDisplay)}}function ln(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.receipt())==null||t.Customer==null?null:t.Customer.Mobile)}}function rn(n,i){if(n&1&&(a(0,"div",23),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.receipt())==null||t.Customer==null?null:t.Customer.Address," ")}}function gn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Receiver:"),c(),a(4,"div"),l(5,an,2,1,"h6"),l(6,ln,2,1,"span"),c()(),l(7,rn,2,1,"div",23),c()),n&2){let t=g();o(5),r(t.customerNameVisible()?5:-1),o(),r(t.CustomerMobileVisible()?6:-1),o(),r(t.customerAddressVisible()?7:-1)}}function dn(n,i){if(n&1&&(a(0,"h6"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.DisplayName)}}function pn(n,i){if(n&1&&(a(0,"span"),d(1),c()),n&2){let t,e=g(2);o(),C((t=e.template())==null?null:t.ContactInfo)}}function _n(n,i){if(n&1&&(a(0,"div",24),d(1),c()),n&2){let t,e=g(2);o(),f(" ",(t=e.template())==null?null:t.Address," ")}}function Cn(n,i){if(n&1&&(a(0,"div",11)(1,"div",21)(2,"h6",22),d(3,"Sender:"),c(),a(4,"div"),l(5,dn,2,1,"h6"),l(6,pn,2,1,"span"),c()(),l(7,_n,2,1,"div",24),c()),n&2){let t=g();o(5),r(t.storeNameVisible()?5:-1),o(),r(t.storePhoneVisible()?6:-1),o(),r(t.storeAddressVisible()?7:-1)}}function sn(n,i){if(n&1&&(a(0,"div",25)(1,"h5"),d(2),c()()),n&2){let t,e,_=g(2);m("ngClass",h(2,J,!_.invoiceNoteVisible()||!(!((t=_.receipt())==null||t.Invoice==null)&&t.Invoice.Note))),o(2),C((e=_.receipt())==null?null:e.Tag)}}function mn(n,i){if(n&1&&(a(0,"div",26),s(1,"p",27),c()),n&2){let t,e,_=g(2);m("ngClass",h(2,K,!_.orderTagVisible()||!((t=_.receipt())!=null&&t.Tag))),o(),m("innerHTML",(e=_.receipt())==null||e.Invoice==null?null:e.Invoice.Note,x)}}function Pn(n,i){if(n&1&&(a(0,"div",12),l(1,sn,3,4,"div",25),l(2,mn,2,4,"div",26),c()),n&2){let t,e=g();o(),r(e.orderTagVisible()?1:-1),o(),r(e.invoiceNoteVisible()&&(!((t=e.receipt())==null||t.Invoice==null)&&t.Invoice.Note)?2:-1)}}function Mn(n,i){n&1&&(a(0,"th",29),d(1,"Name"),c())}function On(n,i){n&1&&(a(0,"th",30),d(1,"Code"),c())}function bn(n,i){n&1&&(a(0,"th",30),d(1,"QTy"),c())}function un(n,i){if(n&1&&s(0,"span",33),n&2){let t=g(2).$implicit;m("innerHTML",t==null?null:t.Note,x)}}function xn(n,i){if(n&1&&(a(0,"td",32)(1,"div"),d(2),c(),l(3,un,1,1,"span",33),c()),n&2){let t=g().$implicit,e=g(2);o(2),C(t==null?null:t.Name),o(),r(e.itemNotesVisible()?3:-1)}}function fn(n,i){if(n&1&&(a(0,"td",30),d(1),c()),n&2){let t=g().$implicit;o(),C(t==null?null:t.Code)}}function hn(n,i){if(n&1&&(a(0,"td",30),d(1),P(2,"number"),c()),n&2){let t=g().$implicit;o(),C(u(2,1,t==null?null:t.Quantity))}}function vn(n,i){if(n&1&&(a(0,"tr")(1,"td",30),d(2),c(),l(3,xn,4,2,"td",32),l(4,fn,2,1,"td",30),l(5,hn,3,3,"td",30),c()),n&2){let t=i.$index,e=g(2);o(2),C(t+1),o(),r(e.productNameVisible()?3:-1),o(),r(e.productCodeVisible()?4:-1),o(),r(e.producctQtyVisible()?5:-1)}}function yn(n,i){if(n&1&&s(0,"td",34),n&2){let t=g(3);m("colSpan",t.getVisibleColumnCount())}}function kn(n,i){if(n&1&&(a(0,"tfoot",31)(1,"tr",31),l(2,yn,1,1,"td",34),a(3,"td",35)(4,"span",36),d(5,"Total"),c()(),a(6,"td",35)(7,"span",36),d(8),P(9,"sum"),P(10,"number"),c()()()()),n&2){let t,e=g(2);o(2),r(e.productCodeVisible()||e.productNameVisible()?2:-1),o(6),C(u(10,5,v(9,2,(t=e.receipt())==null?null:t.List,"Quantity")))}}function Vn(n,i){if(n&1&&(a(0,"table",14)(1,"thead")(2,"tr")(3,"th",28),d(4,"No"),c(),l(5,Mn,2,0,"th",29),l(6,On,2,0,"th",30),l(7,bn,2,0,"th",30),c()(),a(8,"tbody"),E(9,vn,6,4,"tr",null,I),c(),l(11,kn,11,7,"tfoot",31),c()),n&2){let t,e=g();o(5),r(e.productNameVisible()?5:-1),o(),r(e.productCodeVisible()?6:-1),o(),r(e.producctQtyVisible()?7:-1),o(2),D((t=e.receipt())==null?null:t.List),o(2),r(e.producctQtyVisible()?11:-1)}}var $=class n{receipt=M();config=M();template=M();css=M();_barcodeElement;invoiceNumber=p(()=>this.receipt()?.Invoice?.Number);packingSlipConfig=p(()=>this.config().PrintConfigPackingSlip);invoiceNumberVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceNumberVisible);invoiceDateVisible=p(()=>this.packingSlipConfig()?.General?.InvoiceDateVisible);barcodeVisible=p(()=>this.packingSlipConfig()?.General?.BarcodeVisibleV2!==1);storeNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreNameVisible);storeAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StoreAddressVisible);storePhoneVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.StorePhoneVisible);customerNameVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerNameVisible);customerAddressVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerAddressVisible);CustomerMobileVisible=p(()=>this.packingSlipConfig()?.LogisticsInformation?.CustomerMobileVisible);producctQtyVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductQuantityVisible);productNameVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNameVisible);productCodeVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductCodeVisible);invoiceNoteVisible=p(()=>this.packingSlipConfig()?.Footer?.InvoiceNoteVisible);orderTagVisible=p(()=>this.packingSlipConfig()?.Footer?.SalesOrderTagVisible);itemNotesVisible=p(()=>this.packingSlipConfig()?.ProductInformation?.ProductNoteVisible);getVisibleColumnCount=p(()=>{let i=0;return this.productNameVisible()&&i++,this.productCodeVisible()&&i++,i});PackingSlipCodeType=U;barcodeOptions={width:1,height:46,displayValue:!1,backgroundColor:"",lineColor:"#000",margin:0,format:"CODE128",flat:!0};set content(i){i&&(this._barcodeElement=i,this.renderBarcode())}renderBarcode(){let i=this.packingSlipConfig()?.General.BarcodeHeight||46,t=this.packingSlipConfig()?.BarcodeWidthPercent||1,e=this.invoiceNumber(),_=S(V({},this.barcodeOptions),{height:i,width:t});JsBarcode(this._barcodeElement.nativeElement,e,_)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=N({type:n,selectors:[["app-packing-slip-v2"]],viewQuery:function(t,e){if(t&1&&z(q,5),t&2){let _;A(_=L())&&(e.content=_.first)}},inputs:{receipt:[1,"receipt"],config:[1,"config"],template:[1,"template"],css:[1,"css"]},decls:18,vars:13,consts:[["barcode",""],["href","/Styles/Print/Master.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300_Core.css","rel","stylesheet","type","text/css"],["href","/Styles/Print/LX300.css","rel","stylesheet","type","text/css"],["rel","stylesheet","type","text/css"],[1,"print_container_delivery","border","border-dark","px-4",2,"width","378px"],[1,"d-flex","align-items-center","position-relative","justify-content-center","border-bottom","border-dark","py-6"],[1,"position-absolute","end-0","me-4","fw-bold"],[1,"text-center","mt-4","fw-bold"],[1,"w-100","d-flex","justify-content-center","mt-4","barcode-container"],[1,"row","mt-6"],[1,"col"],[1,"row","mt-8","border","rounded-1","border-dark","g-0"],[1,"mt-8","mb-5"],[1,"w-100","table","table-sm","table-bordered"],["href",b`/Styles/Print/Master.css`,"rel","stylesheet","type","text/css"],["href",b`/Styles/Print/LX300_Core.css`,"rel","stylesheet","type","text/css"],["href",b`/Styles/Print/LX300.css`,"rel","stylesheet","type","text/css"],[1,"me-2"],["id","barcode",1,"barcode-image"],[3,"value","size","margin"],[1,"d-flex","justify-content-start"],[1,"me-3"],[1,"mt-3",2,"text-align","left"],[1,"mt-3",2,"text-align","right"],[1,"col-5","text-center","py-4","border-end","border-dark","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"col-7","text-center","py-4","d-flex","align-items-center","justify-content-center",3,"ngClass"],[1,"mt-0","fst-italic",3,"innerHTML"],[1,"text-center",2,"width","10px"],[1,"text-start"],[1,"text-center"],[1,"border-0"],[1,"text-start","lh-base"],[1,"text-muted","fst-italic","note-text",3,"innerHTML"],[1,"border-0",3,"colSpan"],[1,"text-center","border-0"],[1,"fw-bold"]],template:function(t,e){if(t&1&&(l(0,W,1,0,"link",1),l(1,Y,1,0,"link",2),l(2,Z,1,0,"link",3),s(3,"link",4),P(4,"StylesheetSafeUrl"),a(5,"div",5)(6,"div",6)(7,"h3"),d(8,"PACKING SLIP"),c(),l(9,nn,4,4,"div",7),c(),l(10,tn,5,1,"div",8),l(11,cn,3,1,"div",9),a(12,"div",10),l(13,gn,8,3,"div",11),l(14,Cn,8,3,"div",11),c(),l(15,Pn,3,2,"div",12),a(16,"div",13),l(17,Vn,12,4,"table",14),c()()),t&2){let _,y,k,O;r((_=e.template())!=null&&_.PrintLX300?0:-1),o(),r((y=e.template())!=null&&y.PrintLX300?1:-1),o(),r((k=e.template())!=null&&k.PrintLX300?2:-1),o(),T("href",(O=e.css())!=null&&O.Size8cm?u(4,11,(O=e.css())==null?null:O.Size8cm):null,w),o(6),r(e.invoiceDateVisible()?9:-1),o(),r(e.invoiceNumberVisible()?10:-1),o(),r(e.barcodeVisible()?11:-1),o(2),r(e.customerNameVisible()||e.CustomerMobileVisible()||e.customerAddressVisible()?13:-1),o(),r(e.storeNameVisible()||e.storePhoneVisible()||e.storeAddressVisible()?14:-1),o(),r(e.orderTagVisible()||e.invoiceNoteVisible()?15:-1),o(2),r(e.productNameVisible()||e.productCodeVisible()?17:-1)}},dependencies:[F,B,G,j,Q,R,H,X],styles:["div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{margin:0;padding:0;font-family:Arial;font-size:12px}div.print_container_delivery[_ngcontent-%COMP%]{margin:0 auto;width:230px;text-align:left;padding:0 4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{display:none}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{width:100%;text-align:center;display:none}div.sign[_ngcontent-%COMP%]{margin:0 auto!important;display:block!important}div.signature[_ngcontent-%COMP%]{clear:both;height:111px;margin:25px auto 0;padding:0}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{margin-left:10px;max-width:80px;float:left}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:10px!important}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;max-width:80px;margin-left:5px;text-align:left}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.divDate[_ngcontent-%COMP%]{width:100%;text-align:center}div.print_container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-family:Garamond;font-weight:700!important;margin:0;padding:0;text-align:center}small[_ngcontent-%COMP%]{font-size:12px;text-align:center!important;font-style:italic;display:block;margin:0 0 10px}div.address[_ngcontent-%COMP%]{width:100%;padding:0 0 5px;margin-top:3px;text-align:center!important;line-height:18px}div.details[_ngcontent-%COMP%]{border-bottom:solid 1px Black;margin:5px 0 8px;text-align:center;font-size:11px;font-weight:700;padding:5px 0}h2[_ngcontent-%COMP%]{font-size:14px;margin:10px 0;padding:0;text-align:center}div.customer[_ngcontent-%COMP%]{margin:0 0 10px;text-align:center;font-size:11px;padding:5px 0}div.customer[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;padding:0;font-size:12px}div.customer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:16px}div.customer[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;line-height:16px}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}div.cartAmount[_ngcontent-%COMP%]{margin-top:3px;text-align:right;padding-right:1px}div.cartAmount[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}div.cartAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}div.section[_ngcontent-%COMP%]{margin:5px 0 0;min-height:30px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{width:229px;padding:5px 0}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center;margin:0 0 2px}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%], div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border:1px dotted black;margin:0;padding:10px 5px;background-color:#ffffbf;list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;display:block;text-align:center}div.section[_ngcontent-%COMP%] section[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font-weight:700;text-align:center}div.extra[_ngcontent-%COMP%]{clear:both}div.extra[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;text-align:center}div.extra[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{border:1px dotted black;margin:3px 0 0;padding:10px 5px;background-color:#ffffbf;display:block;text-align:center}p[_ngcontent-%COMP%]{margin:3px 0 0;padding:0}div.note[_ngcontent-%COMP%]{padding-top:13px}div.note[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{display:block;font-weight:700;margin:2px 0 15px;text-align:center;font-style:italic}div.note[_ngcontent-%COMP%] .mid[_ngcontent-%COMP%]{text-align:center}div.note[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:3px 0 0 18px;padding:0;list-style-type:disc}div.note[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0;padding:0;line-height:16px;font-size:11px}div.note[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:3px 0 0 20px;padding:0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.single[_ngcontent-%COMP%]{display:block}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] span.strike[_ngcontent-%COMP%]{display:block;text-decoration:line-through}table[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{font-size:11px}table.rightAuto[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 3px}footer[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;margin:15px 0 0;font-weight:700}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #BBBBBB!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #C8D3DF;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.invoice_mini[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%]{width:264px;margin:auto;padding:0 4px;color:#000;font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .invoice_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important}.invoice_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .text-danger[_ngcontent-%COMP%]{color:red!important}.invoice_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .border-y[_ngcontent-%COMP%]{padding:5px 0;border-top:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .cartAmount[_ngcontent-%COMP%]{border-top:1px solid #888;border-bottom:1px solid #888}.invoice_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}.invoice_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] span.point[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{font-size:11px!important}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-size:.4375rem;padding:.4375rem}.invoice_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] .note[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0 auto!important;padding:0!important}.invoice_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:220px}.box[_ngcontent-%COMP%]{position:relative}.ribbon[_ngcontent-%COMP%]{width:170px;height:140px;overflow:hidden;position:absolute}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;display:block;width:204px;padding:42px 31px;background-color:#3498db;box-shadow:0 5px 10px #0000001a;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.2);text-transform:uppercase;text-align:center;font-size:9px;line-height:17px}.ribbon-content[_ngcontent-%COMP%]{top:-10px;left:-45px}div.ribbon-content[_ngcontent-%COMP%]{right:47px;top:47px;transform:rotate(-45deg)}.invoice_mini.lx300[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%]{margin:0 0 0 20px!important;width:520px!important;letter-spacing:3px!important}.invoice_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .sales_order_mini.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .packingslip_container.lx300[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{letter-spacing:8px!important}@media print{print-mode[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}.ribbon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:none!important;color:#000;opacity:.7;border-style:dotted none}.ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:after, .ribbon[_ngcontent-%COMP%] .ribbon-content[_ngcontent-%COMP%]:before{display:none}.sales_order_mini[_ngcontent-%COMP%] > .invoiceHeader[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .sales_order_mini[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{font-family:Arial,Helvetica,sans-serif!important}.toast[_ngcontent-%COMP%]{display:none!important}}.barcode-container[_ngcontent-%COMP%]{width:100%;overflow:hidden;padding:0 5px;box-sizing:border-box}.barcode-image[_ngcontent-%COMP%]{max-width:100%;display:block;margin:0 auto}.barcode-image[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:100%;height:auto}.note-text[_ngcontent-%COMP%]{font-size:.656rem;white-space:normal;word-break:break-word;overflow-wrap:break-word}"]})};export{$ as a};
@@ -1 +1 @@
1
- import{a as se}from"./chunk-UYAE2KWZ.js";import{k as re,o as pe,q as le,r as me}from"./chunk-5NWJYNJO.js";import{a as oe}from"./chunk-SY5NNN4M.js";import{a as ae}from"./chunk-3UB7PEG5.js";import{F as te,a as J,c as X,h as Y,l as Z,s as ee}from"./chunk-POUQHZWU.js";import{b as ne}from"./chunk-H3D4WR27.js";import{a as K}from"./chunk-PTRS3UA6.js";import{n as q,q as ie}from"./chunk-D3E5UKKJ.js";import{$b as H,Aa as w,Ab as c,B as A,Bb as r,C as s,Cb as p,Cc as b,Db as d,Dc as V,K as x,Ma as F,Pb as j,Qc as m,Ra as a,Rb as _,Rc as z,Ya as h,Z as D,Zb as k,_ as I,_b as U,ab as N,bc as O,ca as l,d as M,ea as P,ec as u,fc as g,l as E,la as f,ld as B,mc as L,pd as Q,r as S,sd as G,tb as C,tc as W,vb as y,xb as T,yb as R,zb as $}from"./chunk-M3O2GJ3M.js";var de=["searchFilter"];function ue(o,e){o&1&&d(0,"i",3)}function ge(o,e){if(o&1&&d(0,"img",9),o&2){let t=_().$implicit;c("src",t.ImgUrl,F)}}function ve(o,e){o&1&&(r(0,"div",10),d(1,"i",13),p())}function fe(o,e){if(o&1&&(r(0,"mat-option",6)(1,"div",7)(2,"div",8)(3,"div"),C(4,ge,1,1,"img",9)(5,ve,2,0,"div",10),p(),r(6,"div",11)(7,"div"),u(8),p(),r(9,"small",12),u(10),p()()(),r(11,"span"),u(12),b(13,"number"),p()()()),o&2){let t=e.$implicit,n=_();c("value",t),a(4),y(t.ImgUrl?4:5),a(4),g(t.Value),a(2),g(t.Code),a(2),g(V(13,5,t[n.amountProperty()]))}}var ce=class o{constructor(e,t){this.http=e;w(()=>{let n=this.searchFilter().nativeElement;t.searchFilterNativeEl=n})}searchFilter=z("searchFilter");toastr=f(q);role=f(ne);isOnModalVariant=m(!1);autocompleteEndpoint=m(oe.GetVariantSuggestions);outletID=m("");inputID=m("");amountProperty=m("UnitPrice");filteredVariants$;variant=new Z("");_onEnter=new M;onEnter$=this._onEnter.asObservable();disabled=!1;onChange=e=>{};onTouched=()=>{};ngOnInit(){this.filteredVariants$=this.variant.valueChanges.pipe(D(this.variant.value),s(i=>typeof i=="string"&&i.length>=3||i===""),x(300),I(i=>i?this.searchVariants(i):E([])));let e=this.variant.valueChanges.pipe(s(i=>typeof i!="string"&&!i.OnSet),l(i=>this.onChange({type:"ID",str:i.Key,value:i.Value}))),t=this.onEnter$.pipe(P(this.variant.valueChanges),S(([i,v])=>v),s(i=>typeof i=="string"),l(i=>this.onChange({type:"Code",str:i})));A(e,t).pipe(s(()=>!this.isOnModalVariant()),l(()=>this.variant.setValue("")),l(()=>this.onChange(null))).subscribe()}writeValue(e){if(typeof e!="string"&&K.IsNotEmpty(e)){let t={Key:e.str,Value:e.value,OnSet:!0};this.variant.setValue(t)}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}onEnter(){this._onEnter.next()}displayFn(e){return e&&e.Value?e.Value:""}searchVariants(e){return this.http.get(this.autocompleteEndpoint(),[{key:"Prefix",value:e},{key:"Count",value:100},{key:"EntityID",value:this.outletID()}]).pipe(l(t=>{t?.length||this.toastr.warning(`Product with name "${e}" is not found`,ae.Warning)}))}static \u0275fac=function(t){return new(t||o)(h(ie),h(se))};static \u0275cmp=N({type:o,selectors:[["POS-variant-autocomplete"]],viewQuery:function(t,n){t&1&&k(n.searchFilter,de,5),t&2&&U()},inputs:{isOnModalVariant:[1,"isOnModalVariant"],autocompleteEndpoint:[1,"autocompleteEndpoint"],outletID:[1,"outletID"],inputID:[1,"inputID"],amountProperty:[1,"amountProperty"]},features:[W([{provide:J,multi:!0,useExisting:o}])],decls:10,vars:13,consts:[["searchFilter",""],["auto","matAutocomplete"],[1,"position-relative"],[1,"fa","fa-barcode","position-absolute"],["type","text","placeholder","Search product by name/code",1,"example-input",3,"keydown.enter","formControl","matAutocomplete","id"],["autoActiveFirstOption","",3,"displayWith"],[3,"value"],[1,"d-flex","align-items-center","justify-content-between"],[1,"d-flex","align-items-center","justify-content-start"],["width","30","height","30",1,"me-2",3,"src"],[1,"empty-image","d-flex","justify-content-center","align-items-center","me-2"],[1,"ms-3"],[1,"opacity-75"],[1,"fa-solid","fa-image","fa-image-autocomplete",2,"color","#b4b4b4c2"]],template:function(t,n){if(t&1&&(r(0,"div",2),C(1,ue,1,0,"i",3),r(2,"input",4,0),j("keydown.enter",function(){return n.onEnter()}),p(),r(4,"mat-autocomplete",5,1),L(6),b(7,"async"),R(8,fe,14,7,"mat-option",6,T),p()()),t&2){let i=H(5);O("px-0",n.isOnModalVariant())("px-5",!n.isOnModalVariant()),a(),y(n.isOnModalVariant()?-1:1),a(),O("px-6",n.isOnModalVariant()),c("formControl",n.variant)("matAutocomplete",i)("id",n.inputID()),a(2),c("displayWith",n.displayFn);let v=V(7,11,n.filteredVariants$);a(4),$(v)}},dependencies:[G,me,pe,re,le,te,X,Y,ee,B,Q],styles:["input[_ngcontent-%COMP%]{height:38px!important;border-radius:.375rem;border:1px solid #ced4da;width:100%;padding-left:32px}input[_ngcontent-%COMP%]::placeholder{color:#ced4da}i[_ngcontent-%COMP%]{top:13px;left:23px}div[_ngcontent-%COMP%] > .empty-image[_ngcontent-%COMP%]{height:32px;width:30px;border:solid 1px #dddddd}.fa-image-autocomplete[_ngcontent-%COMP%]{font-size:20px}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%]{margin:.1rem 0;overflow:visible;line-height:initial;word-wrap:break-word;white-space:pre-wrap}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%] span.mdc-list-item__primary-text[_ngcontent-%COMP%]{white-space:normal}.mat-mdc-option[_ngcontent-%COMP%]{font-size:13px;height:auto!important;padding:10px 6px!important} .mdc-list-item__primary-text{margin-right:0;width:100%}"],changeDetection:0})};export{ce as a};
1
+ import{a as se}from"./chunk-UYAE2KWZ.js";import{k as re,o as pe,q as le,r as me}from"./chunk-5NWJYNJO.js";import{a as oe}from"./chunk-DUAKLYOO.js";import{a as ae}from"./chunk-3UB7PEG5.js";import{F as te,a as J,c as X,h as Y,l as Z,s as ee}from"./chunk-POUQHZWU.js";import{b as ne}from"./chunk-H3D4WR27.js";import{a as K}from"./chunk-PTRS3UA6.js";import{n as q,q as ie}from"./chunk-D3E5UKKJ.js";import{$b as H,Aa as w,Ab as c,B as A,Bb as r,C as s,Cb as p,Cc as b,Db as d,Dc as V,K as x,Ma as F,Pb as j,Qc as m,Ra as a,Rb as _,Rc as z,Ya as h,Z as D,Zb as k,_ as I,_b as U,ab as N,bc as O,ca as l,d as M,ea as P,ec as u,fc as g,l as E,la as f,ld as B,mc as L,pd as Q,r as S,sd as G,tb as C,tc as W,vb as y,xb as T,yb as R,zb as $}from"./chunk-M3O2GJ3M.js";var de=["searchFilter"];function ue(o,e){o&1&&d(0,"i",3)}function ge(o,e){if(o&1&&d(0,"img",9),o&2){let t=_().$implicit;c("src",t.ImgUrl,F)}}function ve(o,e){o&1&&(r(0,"div",10),d(1,"i",13),p())}function fe(o,e){if(o&1&&(r(0,"mat-option",6)(1,"div",7)(2,"div",8)(3,"div"),C(4,ge,1,1,"img",9)(5,ve,2,0,"div",10),p(),r(6,"div",11)(7,"div"),u(8),p(),r(9,"small",12),u(10),p()()(),r(11,"span"),u(12),b(13,"number"),p()()()),o&2){let t=e.$implicit,n=_();c("value",t),a(4),y(t.ImgUrl?4:5),a(4),g(t.Value),a(2),g(t.Code),a(2),g(V(13,5,t[n.amountProperty()]))}}var ce=class o{constructor(e,t){this.http=e;w(()=>{let n=this.searchFilter().nativeElement;t.searchFilterNativeEl=n})}searchFilter=z("searchFilter");toastr=f(q);role=f(ne);isOnModalVariant=m(!1);autocompleteEndpoint=m(oe.GetVariantSuggestions);outletID=m("");inputID=m("");amountProperty=m("UnitPrice");filteredVariants$;variant=new Z("");_onEnter=new M;onEnter$=this._onEnter.asObservable();disabled=!1;onChange=e=>{};onTouched=()=>{};ngOnInit(){this.filteredVariants$=this.variant.valueChanges.pipe(D(this.variant.value),s(i=>typeof i=="string"&&i.length>=3||i===""),x(300),I(i=>i?this.searchVariants(i):E([])));let e=this.variant.valueChanges.pipe(s(i=>typeof i!="string"&&!i.OnSet),l(i=>this.onChange({type:"ID",str:i.Key,value:i.Value}))),t=this.onEnter$.pipe(P(this.variant.valueChanges),S(([i,v])=>v),s(i=>typeof i=="string"),l(i=>this.onChange({type:"Code",str:i})));A(e,t).pipe(s(()=>!this.isOnModalVariant()),l(()=>this.variant.setValue("")),l(()=>this.onChange(null))).subscribe()}writeValue(e){if(typeof e!="string"&&K.IsNotEmpty(e)){let t={Key:e.str,Value:e.value,OnSet:!0};this.variant.setValue(t)}}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}onEnter(){this._onEnter.next()}displayFn(e){return e&&e.Value?e.Value:""}searchVariants(e){return this.http.get(this.autocompleteEndpoint(),[{key:"Prefix",value:e},{key:"Count",value:100},{key:"EntityID",value:this.outletID()}]).pipe(l(t=>{t?.length||this.toastr.warning(`Product with name "${e}" is not found`,ae.Warning)}))}static \u0275fac=function(t){return new(t||o)(h(ie),h(se))};static \u0275cmp=N({type:o,selectors:[["POS-variant-autocomplete"]],viewQuery:function(t,n){t&1&&k(n.searchFilter,de,5),t&2&&U()},inputs:{isOnModalVariant:[1,"isOnModalVariant"],autocompleteEndpoint:[1,"autocompleteEndpoint"],outletID:[1,"outletID"],inputID:[1,"inputID"],amountProperty:[1,"amountProperty"]},features:[W([{provide:J,multi:!0,useExisting:o}])],decls:10,vars:13,consts:[["searchFilter",""],["auto","matAutocomplete"],[1,"position-relative"],[1,"fa","fa-barcode","position-absolute"],["type","text","placeholder","Search product by name/code",1,"example-input",3,"keydown.enter","formControl","matAutocomplete","id"],["autoActiveFirstOption","",3,"displayWith"],[3,"value"],[1,"d-flex","align-items-center","justify-content-between"],[1,"d-flex","align-items-center","justify-content-start"],["width","30","height","30",1,"me-2",3,"src"],[1,"empty-image","d-flex","justify-content-center","align-items-center","me-2"],[1,"ms-3"],[1,"opacity-75"],[1,"fa-solid","fa-image","fa-image-autocomplete",2,"color","#b4b4b4c2"]],template:function(t,n){if(t&1&&(r(0,"div",2),C(1,ue,1,0,"i",3),r(2,"input",4,0),j("keydown.enter",function(){return n.onEnter()}),p(),r(4,"mat-autocomplete",5,1),L(6),b(7,"async"),R(8,fe,14,7,"mat-option",6,T),p()()),t&2){let i=H(5);O("px-0",n.isOnModalVariant())("px-5",!n.isOnModalVariant()),a(),y(n.isOnModalVariant()?-1:1),a(),O("px-6",n.isOnModalVariant()),c("formControl",n.variant)("matAutocomplete",i)("id",n.inputID()),a(2),c("displayWith",n.displayFn);let v=V(7,11,n.filteredVariants$);a(4),$(v)}},dependencies:[G,me,pe,re,le,te,X,Y,ee,B,Q],styles:["input[_ngcontent-%COMP%]{height:38px!important;border-radius:.375rem;border:1px solid #ced4da;width:100%;padding-left:32px}input[_ngcontent-%COMP%]::placeholder{color:#ced4da}i[_ngcontent-%COMP%]{top:13px;left:23px}div[_ngcontent-%COMP%] > .empty-image[_ngcontent-%COMP%]{height:32px;width:30px;border:solid 1px #dddddd}.fa-image-autocomplete[_ngcontent-%COMP%]{font-size:20px}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%]{margin:.1rem 0;overflow:visible;line-height:initial;word-wrap:break-word;white-space:pre-wrap}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%] span.mdc-list-item__primary-text[_ngcontent-%COMP%]{white-space:normal}.mat-mdc-option[_ngcontent-%COMP%]{font-size:13px;height:auto!important;padding:10px 6px!important} .mdc-list-item__primary-text{margin-right:0;width:100%}"],changeDetection:0})};export{ce as a};
@@ -1,4 +1,4 @@
1
- import{a as se}from"./chunk-LT46RQOD.js";import{a as _t}from"./chunk-5E52ZWKI.js";import{a as kt,b as ce}from"./chunk-JFJGBJM3.js";import{e as wt,f as St,i as Vt}from"./chunk-23G4CQ4S.js";import{b as Tt,c as Mt,f as pe}from"./chunk-GMF3SGSZ.js";import{a as re,b as le}from"./chunk-V25UXFNL.js";import{N as xt,n as yt}from"./chunk-VAJAIBT3.js";import{c as vt}from"./chunk-R2YNXAPB.js";import{a as Ge}from"./chunk-MMKYHF6F.js";import{u as Ct}from"./chunk-LJWHBKHI.js";import{c as gt,d as ht,h as bt,i as j}from"./chunk-WIUSOID5.js";import{Ba as mt,Ea as ft,H as ve,O as ct,Q as pt,b as rt,l as lt,q as oe,sa as dt,va as ut,wa as ae,x as st}from"./chunk-K7ICHNI3.js";import{E as ie,c as et,h as te,i as tt,k as nt,o as ne,p as it}from"./chunk-POUQHZWU.js";import{a as Je,c as at}from"./chunk-KM4ASOAJ.js";import{a as ot}from"./chunk-YPRM4YPL.js";import{a as Xe}from"./chunk-PTRS3UA6.js";import{Aa as ge,Ab as g,Bb as r,Ca as he,Cb as l,Cc as Y,Db as h,Dc as Ne,Ec as Re,L as fe,Lc as Ce,Mb as b,Nd as Ze,Od as qe,Pb as f,Pc as He,Pd as Ye,Qa as Ie,Qc as w,Ra as s,Rb as c,Rc as G,Sb as U,Tb as M,Ub as Z,Uc as je,Wb as D,Xb as I,Ya as y,Yc as Qe,Zb as Oe,Zc as X,_ as Ve,_b as Ke,_c as ze,aa as ke,ab as K,bb as $,bc as R,cc as Le,d as we,db as Ee,dc as _e,eb as Fe,ec as _,fb as Pe,fc as L,fd as We,gb as be,gc as A,ha as B,ia as W,ja as Te,jc as E,jd as $e,kc as F,kd as Ue,la as O,lc as P,pa as p,pb as Be,pc as H,qa as d,r as Se,sd as J,tb as u,tc as Ae,td as ee,uc as q,vb as m,vc as x,wa as v,xa as Me,xb as V,yb as k,za as De,zb as T}from"./chunk-M3O2GJ3M.js";import{a as S,b as z}from"./chunk-KMHZKFQS.js";var de=class t{_openDialog=new we;openDialog$=this._openDialog.asObservable();openDialog(o){this._openDialog.next(o??{})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};var Dt=`
1
+ import{a as se}from"./chunk-6ICWK6F4.js";import{a as _t}from"./chunk-5E52ZWKI.js";import{a as kt,b as ce}from"./chunk-JFJGBJM3.js";import{e as wt,f as St,i as Vt}from"./chunk-EH7XIUJQ.js";import{b as Tt,c as Mt,f as pe}from"./chunk-GMF3SGSZ.js";import{a as re,b as le}from"./chunk-V25UXFNL.js";import{N as xt,n as yt}from"./chunk-VAJAIBT3.js";import{c as vt}from"./chunk-R2YNXAPB.js";import{a as Ge}from"./chunk-MMKYHF6F.js";import{u as Ct}from"./chunk-LJWHBKHI.js";import{c as gt,d as ht,h as bt,i as j}from"./chunk-WIUSOID5.js";import{Ba as mt,Ea as ft,H as ve,O as ct,Q as pt,b as rt,l as lt,q as oe,sa as dt,va as ut,wa as ae,x as st}from"./chunk-K7ICHNI3.js";import{E as ie,c as et,h as te,i as tt,k as nt,o as ne,p as it}from"./chunk-POUQHZWU.js";import{a as Je,c as at}from"./chunk-436TTDMO.js";import{a as ot}from"./chunk-VLAVHN5T.js";import{a as Xe}from"./chunk-PTRS3UA6.js";import{Aa as ge,Ab as g,Bb as r,Ca as he,Cb as l,Cc as Y,Db as h,Dc as Ne,Ec as Re,L as fe,Lc as Ce,Mb as b,Nd as Ze,Od as qe,Pb as f,Pc as He,Pd as Ye,Qa as Ie,Qc as w,Ra as s,Rb as c,Rc as G,Sb as U,Tb as M,Ub as Z,Uc as je,Wb as D,Xb as I,Ya as y,Yc as Qe,Zb as Oe,Zc as X,_ as Ve,_b as Ke,_c as ze,aa as ke,ab as K,bb as $,bc as R,cc as Le,d as we,db as Ee,dc as _e,eb as Fe,ec as _,fb as Pe,fc as L,fd as We,gb as be,gc as A,ha as B,ia as W,ja as Te,jc as E,jd as $e,kc as F,kd as Ue,la as O,lc as P,pa as p,pb as Be,pc as H,qa as d,r as Se,sd as J,tb as u,tc as Ae,td as ee,uc as q,vb as m,vc as x,wa as v,xa as Me,xb as V,yb as k,za as De,zb as T}from"./chunk-M3O2GJ3M.js";import{a as S,b as z}from"./chunk-KMHZKFQS.js";var de=class t{_openDialog=new we;openDialog$=this._openDialog.asObservable();openDialog(o){this._openDialog.next(o??{})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"})};var Dt=`
2
2
  .p-popover {
3
3
  margin-block-start: dt('popover.gutter');
4
4
  background: dt('popover.background');