dealpos 25.47.1 → 25.48.0

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 (105) hide show
  1. package/browser/{chunk-QBOUUDFD.js → chunk-2IIAMAC2.js} +1 -1
  2. package/browser/{chunk-S7Y36REW.js → chunk-2LYXOQ5N.js} +1 -1
  3. package/browser/{chunk-ICXY7J4B.js → chunk-32RSQ3UU.js} +1 -1
  4. package/browser/{chunk-L72RFTBD.js → chunk-3KNGE65M.js} +1 -1
  5. package/browser/{chunk-JYJW5KAE.js → chunk-3L267ZNV.js} +1 -1
  6. package/browser/{chunk-UNJ5ELA7.js → chunk-3THWKHRL.js} +1 -1
  7. package/browser/{chunk-NWDPSH4M.js → chunk-47T7IWRR.js} +3 -3
  8. package/browser/{chunk-GOZ7JJVG.js → chunk-4AKG7BSF.js} +1 -1
  9. package/browser/{chunk-7FC2PJIW.js → chunk-4IQRI3GN.js} +1 -1
  10. package/browser/{chunk-GSAGOZJT.js → chunk-4KMRZ2TB.js} +1 -1
  11. package/browser/{chunk-F45DK6HY.js → chunk-4RKRHCPA.js} +1 -1
  12. package/browser/{chunk-RPMSR2S2.js → chunk-4XGRIAZ2.js} +1 -1
  13. package/browser/chunk-54W52P5V.js +3 -0
  14. package/browser/{chunk-FUYOSIW5.js → chunk-55K6ABR7.js} +1 -1
  15. package/browser/chunk-56J3O2YI.js +14 -0
  16. package/browser/{chunk-7LCG4V47.js → chunk-5S5ZFAPJ.js} +1 -1
  17. package/browser/chunk-5WZX5UDC.js +1 -0
  18. package/browser/{chunk-V3PWVI2B.js → chunk-63AFDUIT.js} +13 -13
  19. package/browser/{chunk-347WKSZO.js → chunk-6BKNXERF.js} +1 -1
  20. package/browser/{chunk-QDCZBCN5.js → chunk-722XQJ5H.js} +1 -1
  21. package/browser/{chunk-R5SLRG5P.js → chunk-7TWRUF3H.js} +1 -1
  22. package/browser/chunk-7XC4XIHR.js +1 -0
  23. package/browser/chunk-A4H6IBC3.js +1 -0
  24. package/browser/{chunk-5RTCTJUG.js → chunk-AE6CDP2N.js} +1 -1
  25. package/browser/{chunk-DUJXPJ4P.js → chunk-AKFNDMFE.js} +2 -2
  26. package/browser/{chunk-ADC6Y4AB.js → chunk-BMSRWGKX.js} +1 -1
  27. package/browser/{chunk-TRYMZNEH.js → chunk-BNYVOYYX.js} +1 -1
  28. package/browser/{chunk-NU7GDZKC.js → chunk-BTJPSMLV.js} +1 -1
  29. package/browser/{chunk-P3SYBLK4.js → chunk-CA6YBQT3.js} +1 -1
  30. package/browser/{chunk-A56Z62HU.js → chunk-CJII6RPH.js} +1 -1
  31. package/browser/{chunk-L5QFOKO7.js → chunk-CWFUNJQI.js} +1 -1
  32. package/browser/{chunk-CPCDU4HM.js → chunk-DFUQ53YY.js} +1 -1
  33. package/browser/chunk-DSF34FWR.js +131 -0
  34. package/browser/{chunk-DQYDWBIK.js → chunk-ECEHKAWW.js} +1 -1
  35. package/browser/{chunk-D3BHSTT2.js → chunk-FUS5ABYT.js} +1 -1
  36. package/browser/{chunk-O5OL3MSI.js → chunk-H44MWYXB.js} +3 -3
  37. package/browser/{chunk-OBEXYNUM.js → chunk-HEPRCWZT.js} +1 -1
  38. package/browser/{chunk-2ZXSQTN3.js → chunk-HQMGZB3H.js} +1 -1
  39. package/browser/{chunk-BE4SGNNY.js → chunk-HYURPMUC.js} +1 -1
  40. package/browser/{chunk-DT6QJWPF.js → chunk-IMVZUGYH.js} +1 -1
  41. package/browser/chunk-IPKXGQTW.js +1 -0
  42. package/browser/{chunk-FUKBIYWZ.js → chunk-K5L5HMWR.js} +1 -1
  43. package/browser/{chunk-IJ6NUPJY.js → chunk-KVE6HTDK.js} +1 -1
  44. package/browser/chunk-KWKY5NGW.js +149 -0
  45. package/browser/{chunk-QCMMZ67T.js → chunk-KY577SRX.js} +1 -1
  46. package/browser/{chunk-Y4LWALJN.js → chunk-L7CBHHVQ.js} +3 -3
  47. package/browser/{chunk-4VFIXDGC.js → chunk-LB7NU42O.js} +1 -1
  48. package/browser/{chunk-IIDCCGRC.js → chunk-LPWVUN75.js} +1 -1
  49. package/browser/{chunk-HI65LAJQ.js → chunk-LS5TMLIT.js} +1 -1
  50. package/browser/{chunk-2BWSGD3Z.js → chunk-MNVLPMSI.js} +1 -1
  51. package/browser/{chunk-337Y6LKZ.js → chunk-MNZTXNPB.js} +1 -1
  52. package/browser/{chunk-77V3KNIS.js → chunk-MYKOQWDM.js} +1 -1
  53. package/browser/{chunk-N3HGHV2Q.js → chunk-MZIYTJ6Z.js} +1 -1
  54. package/browser/{chunk-XUDYAWGP.js → chunk-NCLOGMP4.js} +1 -1
  55. package/browser/{chunk-5IW47S5R.js → chunk-ND6K5DYL.js} +1 -1
  56. package/browser/chunk-NFAOMT2P.js +4 -0
  57. package/browser/{chunk-5O2O7IB4.js → chunk-NS7V266J.js} +1 -1
  58. package/browser/{chunk-DP3IHIJG.js → chunk-NVYVELCF.js} +3 -3
  59. package/browser/{chunk-TV76G36W.js → chunk-OBXCVFDY.js} +1 -1
  60. package/browser/{chunk-FUZD2YUG.js → chunk-OK5EBIMF.js} +10 -10
  61. package/browser/{chunk-3ZL5OQ6Y.js → chunk-P3LNLMNH.js} +1 -1
  62. package/browser/{chunk-Y3AE3TKV.js → chunk-P43N5BDV.js} +1 -1
  63. package/browser/{chunk-KSDWEFU5.js → chunk-Q6KWA7ML.js} +1 -1
  64. package/browser/{chunk-WPMZWFSL.js → chunk-QHNGMJWX.js} +1 -1
  65. package/browser/chunk-QPMF6WP7.js +1 -0
  66. package/browser/{chunk-QECDT5UJ.js → chunk-QQDH2U6C.js} +1 -1
  67. package/browser/{chunk-PGVKBOVV.js → chunk-QQXPISMR.js} +1 -1
  68. package/browser/{chunk-4QU3FQ4H.js → chunk-R3BLOGD6.js} +1 -1
  69. package/browser/{chunk-TWX33MAO.js → chunk-RFCZ4NNF.js} +1 -1
  70. package/browser/{chunk-6OSOTMIF.js → chunk-RKBLZASG.js} +1 -1
  71. package/browser/{chunk-CZIC4DAI.js → chunk-S5HK3JOC.js} +1 -1
  72. package/browser/{chunk-NJGJFNQG.js → chunk-SDRB6Y54.js} +1 -1
  73. package/browser/chunk-UGCO74DQ.js +1 -0
  74. package/browser/{chunk-R4JXP55V.js → chunk-UJTEC3AC.js} +1 -1
  75. package/browser/{chunk-ERJKTHMS.js → chunk-V4KJNBS7.js} +1 -1
  76. package/browser/{chunk-T6RHBYOY.js → chunk-VC7J7CSQ.js} +1 -1
  77. package/browser/{chunk-NDFDMJU2.js → chunk-VXHN6MWB.js} +1 -1
  78. package/browser/chunk-WCCWWFYE.js +1 -0
  79. package/browser/{chunk-I6RQW6MV.js → chunk-WWQSFAIE.js} +1 -1
  80. package/browser/{chunk-SXAXSC44.js → chunk-YFRQWQ66.js} +1 -1
  81. package/browser/chunk-YJFCUHVH.js +1 -0
  82. package/browser/{chunk-M326IFGL.js → chunk-YOIV5LCG.js} +1 -1
  83. package/browser/{chunk-T7DUQW7O.js → chunk-YRDGEYIV.js} +1 -1
  84. package/browser/{chunk-XZ7GA7NR.js → chunk-YUTT2QKH.js} +1 -1
  85. package/browser/{chunk-QIFLQIWQ.js → chunk-YWDEOTPR.js} +1 -1
  86. package/browser/chunk-YYGLCUQ6.js +4 -0
  87. package/browser/{chunk-IHCO2JK3.js → chunk-Z2CO5BFP.js} +1 -1
  88. package/browser/{chunk-FT2CPNDK.js → chunk-ZEIM63JO.js} +1 -1
  89. package/browser/{chunk-V2HVL2JW.js → chunk-ZNIIYEEO.js} +4 -4
  90. package/browser/index.html +2 -2
  91. package/browser/{main-O34B6LHF.js → main-7GOIEWD6.js} +2 -2
  92. package/package.json +1 -1
  93. package/browser/chunk-3PWKXRXD.js +0 -14
  94. package/browser/chunk-5ZMTBZT3.js +0 -1
  95. package/browser/chunk-6BCNB44A.js +0 -1
  96. package/browser/chunk-75OKQPDZ.js +0 -4
  97. package/browser/chunk-7DG3RSHK.js +0 -1
  98. package/browser/chunk-AS5WHW7W.js +0 -1
  99. package/browser/chunk-BFLDH5QM.js +0 -1
  100. package/browser/chunk-CC2THS3J.js +0 -131
  101. package/browser/chunk-EZRYO7BE.js +0 -1
  102. package/browser/chunk-GEIEF2RB.js +0 -1
  103. package/browser/chunk-HEIZUI6B.js +0 -149
  104. package/browser/chunk-P3RYBCCQ.js +0 -4
  105. package/browser/chunk-SMUNI47Q.js +0 -3
@@ -1 +1 @@
1
- import{a as A}from"./chunk-3PC6CTVP.js";import{a as z}from"./chunk-AFBBEIKR.js";import{b as W}from"./chunk-P3SYBLK4.js";import{a as N,c as j,d as $,e as G,g as Z}from"./chunk-M43HNBJQ.js";import{b as L,c as B}from"./chunk-C4WJKF7R.js";import{a as V}from"./chunk-USJ6ILEE.js";import{$b as k,Ab as T,Bb as O,Bc as F,Ca as I,Cb as C,Db as a,Dc as S,Eb as m,Fb as v,Lc as R,Mb as f,Ob as u,Pc as x,Qb as r,Sa as M,Xa as p,Ya as _,dc as b,fc as D,gc as U,hb as h,pa as E,ta as d,ua as s,vb as c,xb as g,zb as P}from"./chunk-JYZTRN6N.js";import{k as y}from"./chunk-SNAKHGZS.js";function Y(t,i){if(t&1){let e=f();a(0,"img",7),u("error",function(o){d(e);let l=r();return s(l.onImageError(o))}),m()}if(t&2){let e=r();k("display",e.isImageError()?"none":"block"),C("src",e.imageThumbnail(),M)}}function ee(t,i){t&1&&(a(0,"div",3),v(1,"i",8),m())}function te(t,i){if(t&1){let e=f();a(0,"a",11),u("click",function(o){return d(e),r(2).onEdit(o),s(o.stopPropagation())}),v(1,"i",12),m(),v(2,"div",13)}if(t&2){let e=r(2);C("matTooltip",e.editBtntooltip())}}function ie(t,i){if(t&1){let e=f();a(0,"a",14),u("click",function(o){return d(e),r(2).onRemove(),s(o.stopPropagation())}),v(1,"i",15),m()}if(t&2){let e=r(2);C("matTooltip",e.removeBtntooltip())}}function ne(t,i){if(t&1){let e=f();a(0,"div",9),u("click",function(o){return d(e),s(o.stopPropagation())}),c(1,te,3,1),c(2,ie,2,1,"a",10),m()}if(t&2){let e=r();p(),g(e.showEdit?1:-1),p(),g(e.showRemove?2:-1)}}function oe(t,i){if(t&1&&(a(0,"div",6),b(1),F(2,"limitText"),m()),t&2){let e,n=r();C("matTooltip",((e=n.title())==null?null:e.length)>15?n.title().Display:""),p(),D(" ",S(2,2,n.title(),15)," ")}}var be=BiggerPicture({target:document.body}),w=class t{biggerPicService=E(A);title=x(null);imageThumbnail=x(null);imageUrl=x(null);showEdit=!0;showRemove=!0;onEditEvent=new _;onRemoveEvent=new _;removeBtntooltip=x("Remove Image");editBtntooltip=x("Crop Image");isImageError=I(!1);constructor(){R(()=>{this.imageUrl()&&this.isImageError.set(!1)},{allowSignalWrites:!0})}onEdit(i){this.onEditEvent.emit(i)}onRemove(){this.onRemoveEvent.emit()}onZoom(i,e){return y(this,null,function*(){V.IsNotEmpty(i)&&this.isImageError()==!1&&this.biggerPicService.openBiggerPicture(e,i)})}onImageError(i){this.isImageError.set(!0)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["image-container"]],inputs:{title:[1,"title"],imageThumbnail:[1,"imageThumbnail"],imageUrl:[1,"imageUrl"],showEdit:"showEdit",showRemove:"showRemove",removeBtntooltip:[1,"removeBtntooltip"],editBtntooltip:[1,"editBtntooltip"]},outputs:{onEditEvent:"onEdit",onRemoveEvent:"onRemove"},decls:7,vars:4,consts:[[1,"image_temporary","productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"imgUpload",3,"src","display"],[1,"imgUpload","d-flex","align-items-center","justify-content-center"],[1,"overlay","pointer",3,"click"],[1,"overlay-title","overlay-actions","d-flex","justify-content-center","align-items-center",2,"column-gap","24px"],[1,"overlay-img-title",3,"matTooltip"],[1,"imgUpload",3,"error","src"],[1,"fa-solid","fa-image","text-secondary","pb-4",2,"font-size","40px"],[1,"overlay-title","overlay-actions","d-flex","justify-content-center","align-items-center",2,"column-gap","24px",3,"click"],["matTooltipPosition","above",1,"trash-icon","image_upload_icon","pointer","cursor-pointer",3,"matTooltip"],["matTooltipPosition","above",1,"edit-icon","image_upload_icon","cursor-pointer",3,"click","matTooltip"],[1,"fa","fa-file-pen"],[2,"width","2px","height","20px","background-color","white"],["matTooltipPosition","above",1,"trash-icon","image_upload_icon","pointer","cursor-pointer",3,"click","matTooltip"],[1,"fa","fa-trash"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1),c(2,Y,1,3,"img",2),c(3,ee,2,0,"div",3),a(4,"div",4),u("click",function(l){return n.onZoom(n.imageUrl(),l)}),c(5,ne,3,2,"div",5),m(),c(6,oe,3,5,"div",6),m()()),e&2&&(p(2),g(n.imageUrl()?2:-1),p(),g(!n.imageUrl()||n.isImageError()?3:-1),p(2),g(n.showEdit||n.showRemove?5:-1),p(),g(n.title()?6:-1))},dependencies:[B,L,z],styles:[".image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image_upload_icon[_ngcontent-%COMP%]{font-size:20px;color:#fff}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.imgContainer[_ngcontent-%COMP%]:hover div.overlay-img-title[_ngcontent-%COMP%]{display:none}.overlay-title[_ngcontent-%COMP%], .overlay-img-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}.trash-icon[_ngcontent-%COMP%]{color:#fff;font-size:18px;text-align:center;cursor:pointer}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})};function re(t,i){if(t&1&&(a(0,"legend",3)(1,"span"),b(2),m()()),t&2){let e=r();p(2),U("Image ",e.totalImagesLength,"/",e.maxFile)}}function ae(t,i){if(t&1){let e=f();a(0,"POS-uppy",9),u("multipleFilesUploaded",function(o){d(e);let l=r();return s(l.onUploadFile(o))})("fileRemoved",function(o){d(e);let l=r();return s(l.removeImage(o))}),m()}if(t&2){let e=r();C("uppyCoreConfiguration",e.uppyCoreConfiguration)}}function le(t,i){if(t&1){let e=f();a(0,"div",10),u("cdkDropListDropped",function(o){d(e);let l=r();return s(l.drop(o))}),a(1,"image-container",11),u("onEdit",function(o){let l=d(e),H=l.$implicit,J=l.$index,K=r();return s(K.onEdit(H.ImageUrl,J,o))})("onRemove",function(){let o=d(e).$index,l=r();return s(l.onRemove(o))}),m()()}if(t&2){let e=i.$implicit,n=i.$index,o=r();C("cdkDropListData",n),p(),C("imageThumbnail",e.Thumbnail||e.ImageUrl)("imageUrl",e.ImageUrl)("showEdit",o.showEdit)}}var q=class t{totalImagesLength=0;uppyCoreConfiguration;images=[];showLegend=!0;showEdit=!1;maxFile=0;onUploadEvent=new _;onRemoveEvent=new _;onEditEvent=new _;uploadFiles=new _;removeFile=new _;constructor(){}onUpload(){this.onUploadEvent.emit()}onRemove(i){this.onRemoveEvent.emit(i)}onEdit(i,e,n){this.onEditEvent.emit({imageUrl:i,index:e,element:n})}onUploadFile(i){this.uploadFiles.emit(i)}removeImage(i){this.removeFile.emit(i)}drop(i){N(this.images,i.previousContainer.data,i.container.data),console.log(this.images)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["multiple-images-container"]],inputs:{totalImagesLength:"totalImagesLength",uppyCoreConfiguration:"uppyCoreConfiguration",images:"images",showLegend:"showLegend",showEdit:"showEdit",maxFile:"maxFile"},outputs:{onUploadEvent:"onUpload",onRemoveEvent:"onRemove",onEditEvent:"onEdit",uploadFiles:"uploadFiles",removeFile:"removeFile"},decls:10,vars:2,consts:[[1,"row"],[1,"col-12"],[1,"form-group","p-3","border","rounded"],[1,"w-auto","px-2","text-secondary"],[1,"row","mt-3"],[1,"col-md-12"],[3,"uppyCoreConfiguration"],["cdkDropListGroup","",1,"upload_trigger","d-flex","align-items-center","justify-content-center","my-5"],["cdkDropList","","cdkDropListOrientation","horizontal",3,"cdkDropListData"],[3,"multipleFilesUploaded","fileRemoved","uppyCoreConfiguration"],["cdkDropList","","cdkDropListOrientation","horizontal",3,"cdkDropListDropped","cdkDropListData"],["cdkDrag","",3,"onEdit","onRemove","imageThumbnail","imageUrl","showEdit"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"fieldset",2),c(3,re,3,2,"legend",3),a(4,"div",4)(5,"div",5),c(6,ae,1,1,"POS-uppy",6),a(7,"div",7),T(8,le,2,4,"div",8,P),m()()()()()()),e&2&&(p(3),g(n.showLegend?3:-1),p(3),g(n.images.length!=n.maxFile?6:-1),p(2),O(n.images))},dependencies:[w,W,Z,G,$,j],styles:[".upload_trigger[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;vertical-align:top;width:100%}.image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.overlay-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}@media only screen and (max-width: 650px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}@media only screen and (min-device-width: 768px) and (max-device-width: 1112px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})};export{w as a,q as b};
1
+ import{a as A}from"./chunk-3PC6CTVP.js";import{a as z}from"./chunk-AFBBEIKR.js";import{c as W}from"./chunk-CA6YBQT3.js";import{a as N,c as j,d as $,e as G,g as Z}from"./chunk-M43HNBJQ.js";import{b as L,c as B}from"./chunk-C4WJKF7R.js";import{a as V}from"./chunk-USJ6ILEE.js";import{$b as k,Ab as T,Bb as O,Bc as F,Ca as I,Cb as C,Db as a,Dc as S,Eb as m,Fb as v,Lc as R,Mb as f,Ob as u,Pc as x,Qb as r,Sa as M,Xa as p,Ya as _,dc as b,fc as D,gc as U,hb as h,pa as E,ta as d,ua as s,vb as c,xb as g,zb as P}from"./chunk-JYZTRN6N.js";import{k as y}from"./chunk-SNAKHGZS.js";function Y(t,i){if(t&1){let e=f();a(0,"img",7),u("error",function(o){d(e);let l=r();return s(l.onImageError(o))}),m()}if(t&2){let e=r();k("display",e.isImageError()?"none":"block"),C("src",e.imageThumbnail(),M)}}function ee(t,i){t&1&&(a(0,"div",3),v(1,"i",8),m())}function te(t,i){if(t&1){let e=f();a(0,"a",11),u("click",function(o){return d(e),r(2).onEdit(o),s(o.stopPropagation())}),v(1,"i",12),m(),v(2,"div",13)}if(t&2){let e=r(2);C("matTooltip",e.editBtntooltip())}}function ie(t,i){if(t&1){let e=f();a(0,"a",14),u("click",function(o){return d(e),r(2).onRemove(),s(o.stopPropagation())}),v(1,"i",15),m()}if(t&2){let e=r(2);C("matTooltip",e.removeBtntooltip())}}function ne(t,i){if(t&1){let e=f();a(0,"div",9),u("click",function(o){return d(e),s(o.stopPropagation())}),c(1,te,3,1),c(2,ie,2,1,"a",10),m()}if(t&2){let e=r();p(),g(e.showEdit?1:-1),p(),g(e.showRemove?2:-1)}}function oe(t,i){if(t&1&&(a(0,"div",6),b(1),F(2,"limitText"),m()),t&2){let e,n=r();C("matTooltip",((e=n.title())==null?null:e.length)>15?n.title().Display:""),p(),D(" ",S(2,2,n.title(),15)," ")}}var be=BiggerPicture({target:document.body}),w=class t{biggerPicService=E(A);title=x(null);imageThumbnail=x(null);imageUrl=x(null);showEdit=!0;showRemove=!0;onEditEvent=new _;onRemoveEvent=new _;removeBtntooltip=x("Remove Image");editBtntooltip=x("Crop Image");isImageError=I(!1);constructor(){R(()=>{this.imageUrl()&&this.isImageError.set(!1)},{allowSignalWrites:!0})}onEdit(i){this.onEditEvent.emit(i)}onRemove(){this.onRemoveEvent.emit()}onZoom(i,e){return y(this,null,function*(){V.IsNotEmpty(i)&&this.isImageError()==!1&&this.biggerPicService.openBiggerPicture(e,i)})}onImageError(i){this.isImageError.set(!0)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["image-container"]],inputs:{title:[1,"title"],imageThumbnail:[1,"imageThumbnail"],imageUrl:[1,"imageUrl"],showEdit:"showEdit",showRemove:"showRemove",removeBtntooltip:[1,"removeBtntooltip"],editBtntooltip:[1,"editBtntooltip"]},outputs:{onEditEvent:"onEdit",onRemoveEvent:"onRemove"},decls:7,vars:4,consts:[[1,"image_temporary","productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"imgUpload",3,"src","display"],[1,"imgUpload","d-flex","align-items-center","justify-content-center"],[1,"overlay","pointer",3,"click"],[1,"overlay-title","overlay-actions","d-flex","justify-content-center","align-items-center",2,"column-gap","24px"],[1,"overlay-img-title",3,"matTooltip"],[1,"imgUpload",3,"error","src"],[1,"fa-solid","fa-image","text-secondary","pb-4",2,"font-size","40px"],[1,"overlay-title","overlay-actions","d-flex","justify-content-center","align-items-center",2,"column-gap","24px",3,"click"],["matTooltipPosition","above",1,"trash-icon","image_upload_icon","pointer","cursor-pointer",3,"matTooltip"],["matTooltipPosition","above",1,"edit-icon","image_upload_icon","cursor-pointer",3,"click","matTooltip"],[1,"fa","fa-file-pen"],[2,"width","2px","height","20px","background-color","white"],["matTooltipPosition","above",1,"trash-icon","image_upload_icon","pointer","cursor-pointer",3,"click","matTooltip"],[1,"fa","fa-trash"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1),c(2,Y,1,3,"img",2),c(3,ee,2,0,"div",3),a(4,"div",4),u("click",function(l){return n.onZoom(n.imageUrl(),l)}),c(5,ne,3,2,"div",5),m(),c(6,oe,3,5,"div",6),m()()),e&2&&(p(2),g(n.imageUrl()?2:-1),p(),g(!n.imageUrl()||n.isImageError()?3:-1),p(2),g(n.showEdit||n.showRemove?5:-1),p(),g(n.title()?6:-1))},dependencies:[B,L,z],styles:[".image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image_upload_icon[_ngcontent-%COMP%]{font-size:20px;color:#fff}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.imgContainer[_ngcontent-%COMP%]:hover div.overlay-img-title[_ngcontent-%COMP%]{display:none}.overlay-title[_ngcontent-%COMP%], .overlay-img-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}.trash-icon[_ngcontent-%COMP%]{color:#fff;font-size:18px;text-align:center;cursor:pointer}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})};function re(t,i){if(t&1&&(a(0,"legend",3)(1,"span"),b(2),m()()),t&2){let e=r();p(2),U("Image ",e.totalImagesLength,"/",e.maxFile)}}function ae(t,i){if(t&1){let e=f();a(0,"POS-uppy",9),u("multipleFilesUploaded",function(o){d(e);let l=r();return s(l.onUploadFile(o))})("fileRemoved",function(o){d(e);let l=r();return s(l.removeImage(o))}),m()}if(t&2){let e=r();C("uppyCoreConfiguration",e.uppyCoreConfiguration)}}function le(t,i){if(t&1){let e=f();a(0,"div",10),u("cdkDropListDropped",function(o){d(e);let l=r();return s(l.drop(o))}),a(1,"image-container",11),u("onEdit",function(o){let l=d(e),H=l.$implicit,J=l.$index,K=r();return s(K.onEdit(H.ImageUrl,J,o))})("onRemove",function(){let o=d(e).$index,l=r();return s(l.onRemove(o))}),m()()}if(t&2){let e=i.$implicit,n=i.$index,o=r();C("cdkDropListData",n),p(),C("imageThumbnail",e.Thumbnail||e.ImageUrl)("imageUrl",e.ImageUrl)("showEdit",o.showEdit)}}var q=class t{totalImagesLength=0;uppyCoreConfiguration;images=[];showLegend=!0;showEdit=!1;maxFile=0;onUploadEvent=new _;onRemoveEvent=new _;onEditEvent=new _;uploadFiles=new _;removeFile=new _;constructor(){}onUpload(){this.onUploadEvent.emit()}onRemove(i){this.onRemoveEvent.emit(i)}onEdit(i,e,n){this.onEditEvent.emit({imageUrl:i,index:e,element:n})}onUploadFile(i){this.uploadFiles.emit(i)}removeImage(i){this.removeFile.emit(i)}drop(i){N(this.images,i.previousContainer.data,i.container.data),console.log(this.images)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=h({type:t,selectors:[["multiple-images-container"]],inputs:{totalImagesLength:"totalImagesLength",uppyCoreConfiguration:"uppyCoreConfiguration",images:"images",showLegend:"showLegend",showEdit:"showEdit",maxFile:"maxFile"},outputs:{onUploadEvent:"onUpload",onRemoveEvent:"onRemove",onEditEvent:"onEdit",uploadFiles:"uploadFiles",removeFile:"removeFile"},decls:10,vars:2,consts:[[1,"row"],[1,"col-12"],[1,"form-group","p-3","border","rounded"],[1,"w-auto","px-2","text-secondary"],[1,"row","mt-3"],[1,"col-md-12"],[3,"uppyCoreConfiguration"],["cdkDropListGroup","",1,"upload_trigger","d-flex","align-items-center","justify-content-center","my-5"],["cdkDropList","","cdkDropListOrientation","horizontal",3,"cdkDropListData"],[3,"multipleFilesUploaded","fileRemoved","uppyCoreConfiguration"],["cdkDropList","","cdkDropListOrientation","horizontal",3,"cdkDropListDropped","cdkDropListData"],["cdkDrag","",3,"onEdit","onRemove","imageThumbnail","imageUrl","showEdit"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"div",1)(2,"fieldset",2),c(3,re,3,2,"legend",3),a(4,"div",4)(5,"div",5),c(6,ae,1,1,"POS-uppy",6),a(7,"div",7),T(8,le,2,4,"div",8,P),m()()()()()()),e&2&&(p(3),g(n.showLegend?3:-1),p(3),g(n.images.length!=n.maxFile?6:-1),p(2),O(n.images))},dependencies:[w,W,Z,G,$,j],styles:[".upload_trigger[_ngcontent-%COMP%]{cursor:pointer;display:inline-block;vertical-align:top;width:100%}.image_temporary[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:#fff;border:1px solid #dde2f0;border-radius:6px;cursor:auto}.productUpload_defaultSize[_ngcontent-%COMP%]{width:140px;height:140px}.imgUpload[_ngcontent-%COMP%]{position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;object-fit:scale-down}.imgContainer[_ngcontent-%COMP%]{width:95px;height:95px}.image-upload[_ngcontent-%COMP%]{border:1px solid #dde2f0;position:relative}.overlay[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;opacity:0;transition:.3s ease;background-color:#6e6e6e9a;border:1px solid rgba(110,110,110,.603);border-radius:6px}.imgContainer[_ngcontent-%COMP%]:hover .overlay[_ngcontent-%COMP%]{opacity:1}.overlay-title[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#00000080;width:100%;transition:.5s ease;opacity:1;color:#fff;font-size:12px;padding-top:0;text-align:center;border:1px solid rgba(88,88,88,.5);border-bottom-right-radius:6px;border-bottom-left-radius:6px}@media only screen and (max-width: 650px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}@media only screen and (min-device-width: 768px) and (max-device-width: 1112px){.upload_trigger[_ngcontent-%COMP%]{flex-wrap:wrap;margin-top:.625rem!important;justify-content:center}}fieldset[_ngcontent-%COMP%], legend[_ngcontent-%COMP%]{all:revert}legend[_ngcontent-%COMP%]{color:#9da2a6!important}.fa-upload[_ngcontent-%COMP%]{position:absolute;top:74px;font-size:14px;right:39px;background:#fff;padding:5px;border-radius:15px;box-shadow:1px 1px 5px}"]})};export{w as a,q as b};
@@ -1 +1 @@
1
- import{c as H,d as N}from"./chunk-M326IFGL.js";import{a as P,b as R}from"./chunk-QFON23YX.js";import{oa as F}from"./chunk-O5SLP4JK.js";import{F as k,h as A,o as E}from"./chunk-RNLSEEMX.js";import{a as m}from"./chunk-USJ6ILEE.js";import{Bc as M,Cb as _,Cc as x,Db as u,Eb as i,Ob as w,Qb as D,Xa as p,Y as f,Ya as C,ca as O,d as h,db as a,dc as d,ee as s,fa as S,fc as L,hb as y,kd as $,la as g,nb as v,o as G,pa as b,rd as j,vb as I,xb as T}from"./chunk-JYZTRN6N.js";var c=class l{http=b(s);onOpenTreeSelector$=new h;outletGroups$=this.onOpenTreeSelector$.pipe(O(e=>e.length?G(e):this.http.get("/API/outlet/ActiveOptions"),[]),f(1));constructor(){}loadOutletGroups(){this.onOpenTreeSelector$.next()}static \u0275fac=function(t){return new(t||l)};static \u0275prov=g({token:l,factory:l.\u0275fac,providedIn:"root"})};function z(l,e){if(l&1&&(u(0,"div"),d(1),i()),l&2){let t=D();p(),L(" ",t.selectedOutletGroupLabel," ")}}function J(l,e){l&1&&(u(0,"label",3),d(1,"Outlet Group"),i())}var B=class l{constructor(e,t){this.http=e;this.outletGroup=t}outletGroups=[];showClear=!1;showLabel=!1;selectedOutletGroup;selectedOutletGroupID;selectedOutletGroupIDChange=new C;selectedOutletGroupLabel;isLoadOutletGroups=!1;top=0;outletGroups$;ngAfterViewInit(){let e=document.querySelector("body");this.top=e.getBoundingClientRect().top*-1}ngOnInit(){this.outletGroups.length>0&&(m.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(S(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let t=[];this.selectedOutletGroupLabel="";do t=[...t,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=t.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,t){if(m.IsNotEmpty(t))for(let o of e){if(o.key===t)return o;{o.children=o.children?o.children:[],o.children=o.children.map(n=>(n.parent=o,n));let r=this.findSelectedOutletGroup(o.children,t);if(r)return r}}else return null}loadOutletGroups(){try{setTimeout(()=>{let e=document.querySelector(".p-overlay.p-component");if(e){let t=this.top+e.getBoundingClientRect().top,o=e.getAttribute("style")||"";e.setAttribute("style",`${o} top: ${t+this.top}px;`)}},0)}catch(e){console.error("Error:",e)}finally{this.outletGroup.loadOutletGroups()}}onClear(){this.selectedOutletGroupID=null,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static \u0275fac=function(t){return new(t||l)(a(s),a(c))};static \u0275cmp=y({type:l,selectors:[["POS-outlet-group-tree-select"]],inputs:{outletGroups:"outletGroups",showClear:"showClear",showLabel:"showLabel",selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:5,vars:6,consts:[["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectOutletGroup",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup"]],template:function(t,o){t&1&&(u(0,"p-floatlabel",0)(1,"p-treeSelect",1),M(2,"async"),w("click",function(){return o.loadOutletGroups()})("ngModelChange",function(n){return o.onSelectOutletGroup(n)})("onClear",function(){return o.onClear()}),v(3,z,2,1,"ng-template",2),i(),I(4,J,2,0,"label",3),i()),t&2&&(p(),_("options",x(2,4,o.outletGroups$))("ngModel",o.selectedOutletGroup)("showClear",o.showClear),p(3),T(o.showLabel?4:-1))},dependencies:[j,N,H,F,k,A,E,R,P,$],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important}"]})};export{B as a};
1
+ import{c as H,d as N}from"./chunk-YOIV5LCG.js";import{a as P,b as R}from"./chunk-QFON23YX.js";import{oa as F}from"./chunk-O5SLP4JK.js";import{F as k,h as A,o as E}from"./chunk-RNLSEEMX.js";import{a as m}from"./chunk-USJ6ILEE.js";import{Bc as M,Cb as _,Cc as x,Db as u,Eb as i,Ob as w,Qb as D,Xa as p,Y as f,Ya as C,ca as O,d as h,db as a,dc as d,ee as s,fa as S,fc as L,hb as y,kd as $,la as g,nb as v,o as G,pa as b,rd as j,vb as I,xb as T}from"./chunk-JYZTRN6N.js";var c=class l{http=b(s);onOpenTreeSelector$=new h;outletGroups$=this.onOpenTreeSelector$.pipe(O(e=>e.length?G(e):this.http.get("/API/outlet/ActiveOptions"),[]),f(1));constructor(){}loadOutletGroups(){this.onOpenTreeSelector$.next()}static \u0275fac=function(t){return new(t||l)};static \u0275prov=g({token:l,factory:l.\u0275fac,providedIn:"root"})};function z(l,e){if(l&1&&(u(0,"div"),d(1),i()),l&2){let t=D();p(),L(" ",t.selectedOutletGroupLabel," ")}}function J(l,e){l&1&&(u(0,"label",3),d(1,"Outlet Group"),i())}var B=class l{constructor(e,t){this.http=e;this.outletGroup=t}outletGroups=[];showClear=!1;showLabel=!1;selectedOutletGroup;selectedOutletGroupID;selectedOutletGroupIDChange=new C;selectedOutletGroupLabel;isLoadOutletGroups=!1;top=0;outletGroups$;ngAfterViewInit(){let e=document.querySelector("body");this.top=e.getBoundingClientRect().top*-1}ngOnInit(){this.outletGroups.length>0&&(m.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(S(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let t=[];this.selectedOutletGroupLabel="";do t=[...t,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=t.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,t){if(m.IsNotEmpty(t))for(let o of e){if(o.key===t)return o;{o.children=o.children?o.children:[],o.children=o.children.map(n=>(n.parent=o,n));let r=this.findSelectedOutletGroup(o.children,t);if(r)return r}}else return null}loadOutletGroups(){try{setTimeout(()=>{let e=document.querySelector(".p-overlay.p-component");if(e){let t=this.top+e.getBoundingClientRect().top,o=e.getAttribute("style")||"";e.setAttribute("style",`${o} top: ${t+this.top}px;`)}},0)}catch(e){console.error("Error:",e)}finally{this.outletGroup.loadOutletGroups()}}onClear(){this.selectedOutletGroupID=null,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static \u0275fac=function(t){return new(t||l)(a(s),a(c))};static \u0275cmp=y({type:l,selectors:[["POS-outlet-group-tree-select"]],inputs:{outletGroups:"outletGroups",showClear:"showClear",showLabel:"showLabel",selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:5,vars:6,consts:[["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectOutletGroup",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup"]],template:function(t,o){t&1&&(u(0,"p-floatlabel",0)(1,"p-treeSelect",1),M(2,"async"),w("click",function(){return o.loadOutletGroups()})("ngModelChange",function(n){return o.onSelectOutletGroup(n)})("onClear",function(){return o.onClear()}),v(3,z,2,1,"ng-template",2),i(),I(4,J,2,0,"label",3),i()),t&2&&(p(),_("options",x(2,4,o.outletGroups$))("ngModel",o.selectedOutletGroup)("showClear",o.showClear),p(3),T(o.showLabel?4:-1))},dependencies:[j,N,H,F,k,A,E,R,P,$],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important}"]})};export{B as a};
@@ -1 +1 @@
1
- import{a as J,b as K}from"./chunk-HD2QU6GJ.js";import{e as Y,f as z}from"./chunk-GSAGOZJT.js";import"./chunk-TV76G36W.js";import{a as A,b as G}from"./chunk-EZRYO7BE.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{O as U}from"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-77V3KNIS.js";import"./chunk-DQYDWBIK.js";import{d as k}from"./chunk-USJ6ILEE.js";import"./chunk-P3RYBCCQ.js";import{$d as j,Bc as v,Cb as d,Cc as V,Db as r,Dc as S,Eb as n,Fb as c,Qb as f,Wd as B,Xa as o,Y as M,Zd as $,aa as E,db as I,dc as a,ee as q,fa as P,fc as C,hb as b,kd as N,lb as D,lc as L,mc as R,md as H,nc as s,pa as F,rd as w,t as g,tc as T,u as h,uc as O,vb as u,xb as p}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as y,b as _}from"./chunk-SNAKHGZS.js";var W=()=>["/menu/Logistics/Setup/Courier/Form"],X=i=>({ID:i});function Z(i,m){if(i&1&&(r(0,"a",1),c(1,"i",16),a(2,"Edit"),n()),i&2){f();let e=s(0);d("routerLink",T(2,W))("queryParams",O(3,X,e==null||e.Form==null?null:e.Form.ID))}}function ee(i,m){if(i&1&&a(0),i&2){f(2);let e=s(0);C(" / ",e.Form.Creator," ")}}function ie(i,m){if(i&1&&(a(0),v(1,"date"),u(2,ee,1,1)),i&2){f();let e=s(0);C(" ",S(1,2,e.Form.Created,"dd MMM yyyy HH:mm")," "),o(2),p(!(e==null||e.Form==null)&&e.Form.Creator?2:-1)}}function te(i,m){i&1&&a(0," - ")}function ne(i,m){if(i&1&&a(0),i&2){f(2);let e=s(0);C(" / ",e.Form.Modifier," ")}}function oe(i,m){if(i&1&&(r(0,"span",15)(1,"b"),a(2,"Modified:"),n(),a(3),v(4,"date"),u(5,ne,1,1),n()),i&2){f();let e=s(0);o(3),C(" ",S(4,2,e==null||e.Form==null?null:e.Form.Modified,"dd MMM yyyy HH:mm")," "),o(2),p(!(e==null||e.Form==null)&&e.Form.Modified&&(!(e==null||e.Form==null)&&e.Form.Modifier)?5:-1)}}var Q=class i extends A{constructor(e,l){super(e);this.pageSetupService=e;this.role=l;this.initCourierInfo()}httpService=F(q);activeRoute=F(B);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=h([this.menuData$,this.activeRoute.queryParams]).pipe(E(([e,l])=>this.httpService.get(`${U.GetCourierInfo}/${l.ID}`)),g(e=>{let l=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=_(y({},e.Form),{Entity:l}),e}),P(e=>{this.menuData.H=e?.PageTitle||"Courier Info"}),M(1))}static \u0275fac=function(l){return new(l||i)(I(G),I(k))};static \u0275cmp=b({type:i,selectors:[["app-courier-info"]],features:[D],decls:32,vars:12,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown"],["role","button","matTooltipPosition","above","matTooltip","Edit",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-6"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Suspend",3,"inputValue"],["labelValue","Destination Outlet Filter",3,"inputValue"],[1,"alert","alert-warning"],["aria-hidden","true",1,"fa","fa-file-text-o"],[1,"ms-3"],["aria-hidden","true",1,"fa-solid","fa-pen-to-square","me-3"]],template:function(l,x){if(l&1&&(L(0),v(1,"async"),r(2,"mainpanel-cmp",0)(3,"actions"),u(4,Z,3,5,"a",1),n(),r(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"h3"),a(12,"General"),n()(),r(13,"div",7)(14,"div",3)(15,"div",8)(16,"div",9),c(17,"POS-info-page-input",10),n()(),r(18,"div",8)(19,"div",9),c(20,"POS-info-page-input",11),n()(),r(21,"div",8)(22,"div",9),c(23,"POS-info-page-input",12),n()()()()()()(),r(24,"div",13),c(25,"i",14),r(26,"span")(27,"b"),a(28,"Created: "),n(),u(29,ie,3,5)(30,te,1,0),n(),u(31,oe,6,5,"span",15),n()()()()),l&2){let t=R(V(1,9,x.courierInfo$));o(2),d("pageData",x.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),o(2),p(x.role.logistic.Edit?4:-1),o(13),d("inputValue",t==null||t.Form==null?null:t.Form.Name),o(3),d("inputValue",!(t==null||t.Form==null)&&t.Form.Bin?"Yes":"No"),o(3),d("inputValue",t==null||t.Form==null?null:t.Form.Entity),o(6),p(!(t==null||t.Form==null)&&t.Form.Created?29:30),o(2),p(!(t==null||t.Form==null)&&t.Form.Modified?31:-1)}},dependencies:[w,z,Y,j,$,K,J,N,H],encapsulation:2})};export{Q as CourierInfoComponent};
1
+ import{a as J,b as K}from"./chunk-HD2QU6GJ.js";import{e as Y,f as z}from"./chunk-4KMRZ2TB.js";import"./chunk-OBXCVFDY.js";import{a as A,b as G}from"./chunk-WCCWWFYE.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{O as U}from"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-MYKOQWDM.js";import"./chunk-ECEHKAWW.js";import{d as k}from"./chunk-USJ6ILEE.js";import"./chunk-YYGLCUQ6.js";import{$d as j,Bc as v,Cb as d,Cc as V,Db as r,Dc as S,Eb as n,Fb as c,Qb as f,Wd as B,Xa as o,Y as M,Zd as $,aa as E,db as I,dc as a,ee as q,fa as P,fc as C,hb as b,kd as N,lb as D,lc as L,mc as R,md as H,nc as s,pa as F,rd as w,t as g,tc as T,u as h,uc as O,vb as u,xb as p}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as y,b as _}from"./chunk-SNAKHGZS.js";var W=()=>["/menu/Logistics/Setup/Courier/Form"],X=i=>({ID:i});function Z(i,m){if(i&1&&(r(0,"a",1),c(1,"i",16),a(2,"Edit"),n()),i&2){f();let e=s(0);d("routerLink",T(2,W))("queryParams",O(3,X,e==null||e.Form==null?null:e.Form.ID))}}function ee(i,m){if(i&1&&a(0),i&2){f(2);let e=s(0);C(" / ",e.Form.Creator," ")}}function ie(i,m){if(i&1&&(a(0),v(1,"date"),u(2,ee,1,1)),i&2){f();let e=s(0);C(" ",S(1,2,e.Form.Created,"dd MMM yyyy HH:mm")," "),o(2),p(!(e==null||e.Form==null)&&e.Form.Creator?2:-1)}}function te(i,m){i&1&&a(0," - ")}function ne(i,m){if(i&1&&a(0),i&2){f(2);let e=s(0);C(" / ",e.Form.Modifier," ")}}function oe(i,m){if(i&1&&(r(0,"span",15)(1,"b"),a(2,"Modified:"),n(),a(3),v(4,"date"),u(5,ne,1,1),n()),i&2){f();let e=s(0);o(3),C(" ",S(4,2,e==null||e.Form==null?null:e.Form.Modified,"dd MMM yyyy HH:mm")," "),o(2),p(!(e==null||e.Form==null)&&e.Form.Modified&&(!(e==null||e.Form==null)&&e.Form.Modifier)?5:-1)}}var Q=class i extends A{constructor(e,l){super(e);this.pageSetupService=e;this.role=l;this.initCourierInfo()}httpService=F(q);activeRoute=F(B);courierInfo$;ngOnInit(){}initCourierInfo(){this.courierInfo$=h([this.menuData$,this.activeRoute.queryParams]).pipe(E(([e,l])=>this.httpService.get(`${U.GetCourierInfo}/${l.ID}`)),g(e=>{let l=e?.Form?.EntityName?e?.Form?.EntityName?.join(", "):"";return e.Form=_(y({},e.Form),{Entity:l}),e}),P(e=>{this.menuData.H=e?.PageTitle||"Courier Info"}),M(1))}static \u0275fac=function(l){return new(l||i)(I(G),I(k))};static \u0275cmp=b({type:i,selectors:[["app-courier-info"]],features:[D],decls:32,vars:12,consts:[[3,"pageData","hideSearchBox","hideSearchDropdown"],["role","button","matTooltipPosition","above","matTooltip","Edit",1,"btn","btn-outline-secondary","me-3",3,"routerLink","queryParams"],[1,"container-fluid","mt-5"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-6"],[1,"form-floating-outline"],["labelValue","Name",3,"inputValue"],["labelValue","Suspend",3,"inputValue"],["labelValue","Destination Outlet Filter",3,"inputValue"],[1,"alert","alert-warning"],["aria-hidden","true",1,"fa","fa-file-text-o"],[1,"ms-3"],["aria-hidden","true",1,"fa-solid","fa-pen-to-square","me-3"]],template:function(l,x){if(l&1&&(L(0),v(1,"async"),r(2,"mainpanel-cmp",0)(3,"actions"),u(4,Z,3,5,"a",1),n(),r(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"h3"),a(12,"General"),n()(),r(13,"div",7)(14,"div",3)(15,"div",8)(16,"div",9),c(17,"POS-info-page-input",10),n()(),r(18,"div",8)(19,"div",9),c(20,"POS-info-page-input",11),n()(),r(21,"div",8)(22,"div",9),c(23,"POS-info-page-input",12),n()()()()()()(),r(24,"div",13),c(25,"i",14),r(26,"span")(27,"b"),a(28,"Created: "),n(),u(29,ie,3,5)(30,te,1,0),n(),u(31,oe,6,5,"span",15),n()()()()),l&2){let t=R(V(1,9,x.courierInfo$));o(2),d("pageData",x.menuData)("hideSearchBox",!0)("hideSearchDropdown",!0),o(2),p(x.role.logistic.Edit?4:-1),o(13),d("inputValue",t==null||t.Form==null?null:t.Form.Name),o(3),d("inputValue",!(t==null||t.Form==null)&&t.Form.Bin?"Yes":"No"),o(3),d("inputValue",t==null||t.Form==null?null:t.Form.Entity),o(6),p(!(t==null||t.Form==null)&&t.Form.Created?29:30),o(2),p(!(t==null||t.Form==null)&&t.Form.Modified?31:-1)}},dependencies:[w,z,Y,j,$,K,J,N,H],encapsulation:2})};export{Q as CourierInfoComponent};
@@ -1,4 +1,4 @@
1
- import{a as Dt}from"./chunk-QFON23YX.js";import{b as kt}from"./chunk-FIUZN6JU.js";import{b as At,d as Pt,e as Nt}from"./chunk-JYJW5KAE.js";import{a as Mt,b as Ft,c as Et,d as Lt,e as Bt}from"./chunk-X57HWGVJ.js";import{a as wt}from"./chunk-5SFUSWFY.js";import{a as Vt}from"./chunk-534MIVWD.js";import{b as Ot,c as Le}from"./chunk-TV76G36W.js";import{b as Tt}from"./chunk-CS6HBROS.js";import{a as tt}from"./chunk-RLQLFW36.js";import{a as vt,c as Ct,d as It}from"./chunk-6SGN7MNX.js";import{b as ct,c as ft,d as gt,e as bt,g as yt,j as xt,k as se,l as St}from"./chunk-L76WVZW6.js";import{A as lt,F as ot,T as at,V as z,W as Q,X as le,_ as oe,da as rt,fa as st,ka as pt,la as dt,ma as ut,na as mt,oa as _t,pa as ae,qa as re,w as ve,x as H,xa as ht,z as nt}from"./chunk-O5SLP4JK.js";import{F as ne,a as ye,h as te,o as ie}from"./chunk-RNLSEEMX.js";import{$ as Ne,$b as Ve,Bc as ge,Ca as B,Cb as r,Cc as be,Db as _,Eb as h,Fb as R,Hc as L,Ia as Te,Jb as C,Kb as I,Kc as G,Lb as M,Lc as We,Mb as T,Ob as x,Oc as Ye,Pc as V,Qb as s,Rb as je,Sb as Me,Tb as S,Ub as k,Vb as f,Wb as g,Xa as c,Xc as v,Y as Pe,Ya as w,Yc as X,Za as $e,_b as Y,aa as Re,bc as he,ca as He,cc as y,cd as Ze,d as Ie,db as _e,dc as E,ec as A,ed as Je,ee as it,fa as de,fc as fe,fd as Fe,ga as ze,hb as W,ib as qe,ic as K,id as Xe,jc as $,jd as Ee,ka as ue,kc as q,kd as et,la as me,lb as we,ma as Qe,mb as Ge,na as Oe,nb as p,o as Ae,oa as Ke,pa as F,rd as ee,sc as Z,t as pe,ta as u,tb as O,tc as ke,ua as m,uc as D,va as U,vb as P,vc as J,wc as Ue,xb as N}from"./chunk-JYZTRN6N.js";import{a as Be,b as De}from"./chunk-SNAKHGZS.js";var Rt=`
1
+ import{a as Dt}from"./chunk-QFON23YX.js";import{b as kt}from"./chunk-FIUZN6JU.js";import{b as At,d as Pt,e as Nt}from"./chunk-3L267ZNV.js";import{a as Mt,b as Ft,c as Et,d as Lt,e as Bt}from"./chunk-X57HWGVJ.js";import{a as wt}from"./chunk-5SFUSWFY.js";import{a as Vt}from"./chunk-534MIVWD.js";import{b as Ot,c as Le}from"./chunk-OBXCVFDY.js";import{b as Tt}from"./chunk-CS6HBROS.js";import{a as tt}from"./chunk-RLQLFW36.js";import{a as vt,c as Ct,d as It}from"./chunk-6SGN7MNX.js";import{b as ct,c as ft,d as gt,e as bt,g as yt,j as xt,k as se,l as St}from"./chunk-L76WVZW6.js";import{A as lt,F as ot,T as at,V as z,W as Q,X as le,_ as oe,da as rt,fa as st,ka as pt,la as dt,ma as ut,na as mt,oa as _t,pa as ae,qa as re,w as ve,x as H,xa as ht,z as nt}from"./chunk-O5SLP4JK.js";import{F as ne,a as ye,h as te,o as ie}from"./chunk-RNLSEEMX.js";import{$ as Ne,$b as Ve,Bc as ge,Ca as B,Cb as r,Cc as be,Db as _,Eb as h,Fb as R,Hc as L,Ia as Te,Jb as C,Kb as I,Kc as G,Lb as M,Lc as We,Mb as T,Ob as x,Oc as Ye,Pc as V,Qb as s,Rb as je,Sb as Me,Tb as S,Ub as k,Vb as f,Wb as g,Xa as c,Xc as v,Y as Pe,Ya as w,Yc as X,Za as $e,_b as Y,aa as Re,bc as he,ca as He,cc as y,cd as Ze,d as Ie,db as _e,dc as E,ec as A,ed as Je,ee as it,fa as de,fc as fe,fd as Fe,ga as ze,hb as W,ib as qe,ic as K,id as Xe,jc as $,jd as Ee,ka as ue,kc as q,kd as et,la as me,lb as we,ma as Qe,mb as Ge,na as Oe,nb as p,o as Ae,oa as Ke,pa as F,rd as ee,sc as Z,t as pe,ta as u,tb as O,tc as ke,ua as m,uc as D,va as U,vb as P,vc as J,wc as Ue,xb as N}from"./chunk-JYZTRN6N.js";import{a as Be,b as De}from"./chunk-SNAKHGZS.js";var Rt=`
2
2
  .p-multiselect {
3
3
  display: inline-flex;
4
4
  cursor: pointer;
@@ -0,0 +1 @@
1
+ import{a as ge}from"./chunk-UGCO74DQ.js";import{b as ue,c as de}from"./chunk-IWUWV3MS.js";import{g as he}from"./chunk-5DQ4MJJT.js";import{c as ce,d as pe}from"./chunk-OBXCVFDY.js";import{A as re,G as me}from"./chunk-BA3BDB5Y.js";import{b as le,c as ae}from"./chunk-C4WJKF7R.js";import{F as ne,G as oe,h as te,o as ie}from"./chunk-RNLSEEMX.js";import{Ca as I,Cb as y,Db as m,Eb as p,Fb as E,Ha as _,Hc as Y,I as O,Ja as D,Mb as k,Ob as C,Qb as u,Sa as j,Ub as H,Vb as Q,Wb as q,Xa as c,Ya as d,bc as W,be as ee,c as N,cb as R,db as w,dc as S,e as T,ec as A,ee as se,fa as K,fc as B,hb as P,ic as z,jb as U,jc as G,kc as J,la as L,nb as $,o as F,pa as f,rd as Z,ta as a,tc as v,ua as r,uc as X,vb as x,xb as V}from"./chunk-JYZTRN6N.js";var M=class o{selectionsSubject=new T(new Map);getSelectedItems(t){return this.selectionsSubject.value.get(t)||[]}setSelectedItems(t,e){let i=new Map(this.selectionsSubject.value);i.set(t,[...e]),this.selectionsSubject.next(i)}clearSelectedItems(t){let e=new Map(this.selectionsSubject.value);e.delete(t),this.selectionsSubject.next(e)}getSelectedItems$(t){return new N(e=>{let i=this.selectionsSubject.subscribe(n=>{e.next(n.get(t)||[])});return()=>i.unsubscribe()})}getAllSelections(){return this.selectionsSubject.value}clearAllSelections(){this.selectionsSubject.next(new Map)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=L({token:o,factory:o.\u0275fac,providedIn:"root"})};var Ie=["autocomplete"],_e=()=>({width:"100%"}),we=()=>({width:"100%",maxWidth:"400px"}),xe=o=>({style:o});function Ve(o,t){if(o&1&&E(0,"img",10),o&2){let e=u(2).$implicit,i=u();y("src",e[i.thumbnailKey],j)}}function Ee(o,t){o&1&&(m(0,"div",11),E(1,"i",12),p())}function ke(o,t){if(o&1&&(m(0,"div"),x(1,Ve,1,1,"img",10)(2,Ee,2,0,"div",11),p()),o&2){let e=u().$implicit,i=u();c(),V(e[i.thumbnailKey]&&e[i.thumbnailKey].trim()!==""?1:2)}}function Ae(o,t){if(o&1){let e=k();m(0,"div",5),C("click",function(n){let s=a(e).$implicit,l=u();return r(l.toggleCheckbox(s,n))}),m(1,"p-checkbox",6),J("ngModelChange",function(n){let s=a(e).$implicit;return G(s._checked,n)||(s._checked=n),r(n)}),C("onChange",function(){let n=a(e).$implicit,s=u();return r(s.onCheckboxChange(n))})("click",function(n){return a(e),r(n.stopPropagation())}),p(),x(2,ke,3,1,"div"),m(3,"div",7)(4,"div",8),S(5),p(),m(6,"div",9),S(7),p()()()}if(o&2){let e=t.$implicit,i=u();c(),z("ngModel",e._checked),y("binary",!0),c(),V(i.showThumbnail?2:-1),c(3),A(e[i.valueField]),c(2),B(" ",e.Code," ")}}var ye=class o{autocomplete;matTooltip;modelName;isMultiple=!0;placeholder="Search";isShowEmptyMessage=!1;emptyMessage="No results found";tooltipMessage="";valueField="Name";paramsKey="Key";label;listDataEndpoint;showThumbnail=!1;thumbnailKey="";maxSelectedItems=0;modelNameChange=new d;onSelectItem=new d;onRemoveItem=new d;completeMethod=new d;onSelect=new d;onUnselect=new d;httpService=f(se);toastr=f(ee);autocompleteV3Service=f(M);selectedItems=I([]);suggestionList;internalSuggestionList=I([]);ngOnInit(){if(this.isMultiple&&this.modelName&&Array.isArray(this.modelName)&&this.modelName.length>0){if(this.suggestionList&&this.suggestionList.length>0){let e=this.modelName.map(i=>this.suggestionList.find(n=>n[this.paramsKey]===i)).filter(i=>i!==void 0);if(e.length>0){this.selectedItems.set(e),this.autocompleteV3Service.setSelectedItems(this.listDataEndpoint,e);return}}let t=this.autocompleteV3Service.getSelectedItems(this.listDataEndpoint);if(t&&t.length>0){let e=t.filter(i=>this.modelName.includes(i[this.paramsKey]));if(e.length>0){this.selectedItems.set(e);return}}}}ngOnChanges(t){let e=t.modelName;e&&e?.currentValue?.length===0&&this.resetSelection()}resetSelection(){this.selectedItems.set([])}onModelChange(t){if(this.isMultiple&&Array.isArray(t)){this.selectedItems.set(t),this.autocompleteV3Service.setSelectedItems(this.listDataEndpoint,t);let e=t.map(i=>i[this.paramsKey]);this.modelNameChange.emit(e)}else this.isMultiple||this.modelNameChange.emit(t)}onCompleteHandler(t){let e=t.query;if(this.suggestionList&&this.suggestionList.length>0){let s=this.selectedItems(),l=this.suggestionList.filter(h=>{let g=e.toLowerCase(),b=(h.Name||"").toLowerCase(),Se=(h.Key||"").toLowerCase(),ve=b.includes(g)||Se.includes(g),Me=!s.some(be=>be[this.paramsKey]===h[this.paramsKey]);return ve&&Me});this.internalSuggestionList.set(l);return}let i=new URLSearchParams({Prefix:e,Count:"100"}).toString(),n=this.listDataEndpoint;n&&this.httpService.get(`${n}?${i}`).pipe(O(()=>F([])),K(s=>{let l=this.selectedItems(),h=s.filter(g=>!l.some(b=>b[this.paramsKey]===g[this.paramsKey]));this.internalSuggestionList.set(h)})).subscribe()}onSelectHandler(t){let e=this.isMultiple,i=this.maxSelectedItems;if(e&&i>0){let n=this.selectedItems();if(n.length>=i){this.toastr.warning(`Maximum ${i} items can be selected`,"Selection Limit"),setTimeout(()=>{this.modelNameChange.emit([...n])},0);return}}this.onSelectItem.emit(t),this.onSelect.emit(t)}onRemoveHandler(t){this.onRemoveItem.emit(t.value),this.onUnselect.emit(t.value),t.value&&(t.value._checked=!1)}isChecked(t){let e=this.selectedItems(),i=this.valueField;return e.some(n=>n[i]===t[i])}clearSelections(){this.selectedItems.set([]),this.autocompleteV3Service.clearSelectedItems(this.listDataEndpoint),this.modelNameChange.emit([])}getCurrentSelectionsFromService(){return this.autocompleteV3Service.getSelectedItems(this.listDataEndpoint)}onCheckboxChange(t){if(t._checked)this.isChecked(t)||(this.selectedItems.set([...this.selectedItems(),t]),this.onModelChange(this.selectedItems()));else{let e=this.selectedItems().filter(i=>i[this.paramsKey]!==t[this.paramsKey]);this.selectedItems.set(e),this.onModelChange(e)}setTimeout(()=>{this.autocomplete&&this.autocomplete.inputEL.nativeElement.focus()},0)}toggleCheckbox(t,e){t._checked=!t._checked,this.onCheckboxChange(t),e.stopPropagation()}ngOnDestroy(){}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=P({type:o,selectors:[["autocompleteV3"]],viewQuery:function(e,i){if(e&1&&H(Ie,5),e&2){let n;Q(n=q())&&(i.autocomplete=n.first)}},inputs:{matTooltip:"matTooltip",modelName:"modelName",isMultiple:"isMultiple",placeholder:"placeholder",isShowEmptyMessage:"isShowEmptyMessage",emptyMessage:"emptyMessage",tooltipMessage:"tooltipMessage",valueField:"valueField",paramsKey:"paramsKey",label:"label",listDataEndpoint:"listDataEndpoint",showThumbnail:"showThumbnail",thumbnailKey:"thumbnailKey",maxSelectedItems:"maxSelectedItems"},outputs:{modelNameChange:"modelNameChange",onSelectItem:"onSelectItem",onRemoveItem:"onRemoveItem",completeMethod:"completeMethod",onSelect:"onSelect",onUnselect:"onUnselect"},features:[_],decls:8,vars:18,consts:[["autocomplete",""],["item",""],[1,"d-flex","flex-column","gap-2",2,"margin-top","1rem"],[1,"w-100",2,"width","100%"],[1,"w-100",3,"ngModelChange","completeMethod","onSelect","onUnselect","matTooltip","ngModel","suggestions","optionLabel","multiple","placeholder","showEmptyMessage","emptyMessage","inputStyle","overlayOptions"],[1,"d-flex","align-items-center","gap-2","p-6","w-100",3,"click"],[2,"margin","0",3,"ngModelChange","onChange","click","ngModel","binary"],[1,"ms-2"],[1,"font-medium"],[1,"text-muted",2,"font-size","10px !important"],["width","30","height","30","brokenImageIconFailSafe","","brokenImageIconFailSafeClass","ms-2 empty-image d-flex justify-content-center align-items-center rounded-1",1,"ms-2","empty-image",3,"src"],[1,"empty-image","d-flex","justify-content-center","align-items-center","rounded-1","ms-2"],[1,"fa-solid","fa-image","fa-image-autocomplete",2,"color","#b4b4b4c2"]],template:function(e,i){if(e&1){let n=k();m(0,"div",2)(1,"h6"),S(2),p(),m(3,"div",3)(4,"p-autocomplete",4,0),C("ngModelChange",function(l){return a(n),r(i.onModelChange(l))})("completeMethod",function(l){return a(n),r(i.onCompleteHandler(l))})("onSelect",function(l){return a(n),r(i.onSelectHandler(l))})("onUnselect",function(l){return a(n),r(i.onRemoveHandler(l))}),$(6,Ae,8,5,"ng-template",null,1,Y),p()()()}e&2&&(c(2),A(i.label),c(2),W(v(13,_e)),y("matTooltip",i.tooltipMessage)("ngModel",i.selectedItems())("suggestions",i.internalSuggestionList())("optionLabel",i.valueField)("multiple",i.isMultiple)("placeholder",i.placeholder)("showEmptyMessage",i.isShowEmptyMessage)("emptyMessage",i.emptyMessage)("inputStyle",v(14,_e))("overlayOptions",X(16,xe,v(15,we))))},dependencies:[re,Z,oe,te,ne,ie,ae,le,me,he,de,ue,pe,ce,ge],styles:["div[_ngcontent-%COMP%] > .empty-image[_ngcontent-%COMP%]{height:32px;width:30px;border:solid 1px #dddddd}"]})};var Ce=class o{constructor(t,e){this.el=t;this.renderer=e}value=null;ngOnChanges(){if(this.value===null||this.value===void 0)return;this.renderer.removeClass(this.el.nativeElement,"text-black"),this.renderer.removeClass(this.el.nativeElement,"text-success"),this.renderer.removeClass(this.el.nativeElement,"text-danger");let t=this.value===0?"text-black":this.value>=1?"text-success":"text-danger";this.renderer.addClass(this.el.nativeElement,t)}static \u0275fac=function(e){return new(e||o)(w(D),w(R))};static \u0275dir=U({type:o,selectors:[["","colsFontColor",""]],inputs:{value:[0,"colsFontColor","value"]},features:[_]})};export{ye as a,Ce as b};
@@ -1 +1 @@
1
- import{c as W,d as X}from"./chunk-M326IFGL.js";import{a as Y,b as Z}from"./chunk-QFON23YX.js";import{b as Q,c as U}from"./chunk-C4WJKF7R.js";import{a as B}from"./chunk-RLQLFW36.js";import{oa as K}from"./chunk-O5SLP4JK.js";import{F as J,h as q,o as G}from"./chunk-RNLSEEMX.js";import{a as d}from"./chunk-USJ6ILEE.js";import{Bc as k,Cb as l,Cc as F,Db as c,Eb as m,Hc as N,Lb as L,Mb as j,Ob as E,Qb as n,Xa as _,Y as f,Ya as M,_b as I,ca as S,d as x,db as b,dc as v,ee as C,fa as T,fc as R,ga as u,hb as $,jd as P,kd as z,la as w,nb as a,o as h,oa as O,pa as D,rd as A,ta as p,ua as g,vb as H,xb as V}from"./chunk-JYZTRN6N.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(d.IsEmpty(this.selectedCategoryID)&&d.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(t,e){if(d.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{ee as a};
1
+ import{c as W,d as X}from"./chunk-YOIV5LCG.js";import{a as Y,b as Z}from"./chunk-QFON23YX.js";import{b as Q,c as U}from"./chunk-C4WJKF7R.js";import{a as B}from"./chunk-RLQLFW36.js";import{oa as K}from"./chunk-O5SLP4JK.js";import{F as J,h as q,o as G}from"./chunk-RNLSEEMX.js";import{a as d}from"./chunk-USJ6ILEE.js";import{Bc as k,Cb as l,Cc as F,Db as c,Eb as m,Hc as N,Lb as L,Mb as j,Ob as E,Qb as n,Xa as _,Y as f,Ya as M,_b as I,ca as S,d as x,db as b,dc as v,ee as C,fa as T,fc as R,ga as u,hb as $,jd as P,kd as z,la as w,nb as a,o as h,oa as O,pa as D,rd as A,ta as p,ua as g,vb as H,xb as V}from"./chunk-JYZTRN6N.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(d.IsEmpty(this.selectedCategoryID)&&d.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(t,e){if(d.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{ee as a};
@@ -1 +1 @@
1
- import{c as u}from"./chunk-77V3KNIS.js";import{d as s}from"./chunk-USJ6ILEE.js";import{Yd as a,pa as e}from"./chunk-JYZTRN6N.js";var g=(t,c)=>{let r=e(a),i=e(u);if(i.isTokenExpired())return i.returnUrl=c.url,r.navigate(["/"]),!1;let d=e(s),o=t.data?.roles;if(o){let n=t.data?.unauthorizedRedirect;if(!o.some(l=>d.isUserHasRole(l)))return n?r.navigate([n]):r.navigate(["menu/Unauthorized/Main/Unauthorized"]),!1}return!0};export{g as a};
1
+ import{c as u}from"./chunk-MYKOQWDM.js";import{d as s}from"./chunk-USJ6ILEE.js";import{Yd as a,pa as e}from"./chunk-JYZTRN6N.js";var g=(t,c)=>{let r=e(a),i=e(u);if(i.isTokenExpired())return i.returnUrl=c.url,r.navigate(["/"]),!1;let d=e(s),o=t.data?.roles;if(o){let n=t.data?.unauthorizedRedirect;if(!o.some(l=>d.isUserHasRole(l)))return n?r.navigate([n]):r.navigate(["menu/Unauthorized/Main/Unauthorized"]),!1}return!0};export{g as a};
@@ -1 +1 @@
1
- import{a}from"./chunk-FT2CPNDK.js";import"./chunk-I5W4NCFM.js";import"./chunk-MVUVDYGQ.js";import"./chunk-QPOOLLKY.js";import"./chunk-CSFFF2YO.js";import"./chunk-3RK6DDJD.js";import"./chunk-WNZKCNMC.js";import"./chunk-LOD3JYZW.js";import"./chunk-3KSZCJ6T.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import"./chunk-G4IW5GPY.js";import"./chunk-SXAXSC44.js";import"./chunk-7LCG4V47.js";import"./chunk-GSAGOZJT.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-TV76G36W.js";import"./chunk-EZRYO7BE.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-77V3KNIS.js";import"./chunk-DQYDWBIK.js";import"./chunk-USJ6ILEE.js";import"./chunk-P3RYBCCQ.js";import"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as WebhookJobLogsComponent};
1
+ import{a}from"./chunk-ZEIM63JO.js";import"./chunk-I5W4NCFM.js";import"./chunk-MVUVDYGQ.js";import"./chunk-QPOOLLKY.js";import"./chunk-CSFFF2YO.js";import"./chunk-3RK6DDJD.js";import"./chunk-WNZKCNMC.js";import"./chunk-LOD3JYZW.js";import"./chunk-3KSZCJ6T.js";import"./chunk-6GLKD66N.js";import"./chunk-CBSYYTXQ.js";import"./chunk-G4IW5GPY.js";import"./chunk-YFRQWQ66.js";import"./chunk-5S5ZFAPJ.js";import"./chunk-4KMRZ2TB.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-OBXCVFDY.js";import"./chunk-WCCWWFYE.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-MYKOQWDM.js";import"./chunk-ECEHKAWW.js";import"./chunk-USJ6ILEE.js";import"./chunk-YYGLCUQ6.js";import"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";export{a as WebhookJobLogsComponent};
@@ -1 +1 @@
1
- import{e as v,f as y}from"./chunk-GSAGOZJT.js";import"./chunk-TV76G36W.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-77V3KNIS.js";import"./chunk-DQYDWBIK.js";import"./chunk-USJ6ILEE.js";import"./chunk-P3RYBCCQ.js";import{$d as u,Cb as h,Db as o,Eb as i,Fb as g,Xa as c,Yd as M,db as l,dc as n,ec as x,hb as f,ib as m,ma as a,rd as z}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var s=class e{constructor(r){this.router=r;this.previousPage=this.router.lastSuccessfulNavigation?.finalUrl?.root?.children?.primary?.segments?.join("/"),this.role=this.router.getCurrentNavigation()?.extras?.state.role}previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(t){return new(t||e)(l(M))};static \u0275cmp=f({type:e,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(t,d){t&1&&(o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),i(),o(6,"h1",4),n(7,"You are not authorized"),i(),o(8,"p"),n(9," This page require "),o(10,"span",5),n(11),i(),n(12," role. Please contact your Administrator to gain access! "),i()()()()()),t&2&&(h("pageData",d.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),c(11),x(d.role))},dependencies:[v],encapsulation:2})};var U=[{path:"Main/Unauthorized",component:s},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],p=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=m({type:e});static \u0275inj=a({imports:[u.forChild(U),u]})};var S=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=m({type:e});static \u0275inj=a({imports:[z,p,y]})};export{S as UnauthorizedModule};
1
+ import{e as v,f as y}from"./chunk-4KMRZ2TB.js";import"./chunk-OBXCVFDY.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import"./chunk-RNLSEEMX.js";import"./chunk-MYKOQWDM.js";import"./chunk-ECEHKAWW.js";import"./chunk-USJ6ILEE.js";import"./chunk-YYGLCUQ6.js";import{$d as u,Cb as h,Db as o,Eb as i,Fb as g,Xa as c,Yd as M,db as l,dc as n,ec as x,hb as f,ib as m,ma as a,rd as z}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var s=class e{constructor(r){this.router=r;this.previousPage=this.router.lastSuccessfulNavigation?.finalUrl?.root?.children?.primary?.segments?.join("/"),this.role=this.router.getCurrentNavigation()?.extras?.state.role}previousPage="";role="";menuData={H:"Unauthorized"};static \u0275fac=function(t){return new(t||e)(l(M))};static \u0275cmp=f({type:e,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(t,d){t&1&&(o(0,"mainpanel-cmp",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div"),g(5,"img",3),i(),o(6,"h1",4),n(7,"You are not authorized"),i(),o(8,"p"),n(9," This page require "),o(10,"span",5),n(11),i(),n(12," role. Please contact your Administrator to gain access! "),i()()()()()),t&2&&(h("pageData",d.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),c(11),x(d.role))},dependencies:[v],encapsulation:2})};var U=[{path:"Main/Unauthorized",component:s},{path:"",redirectTo:"Main/Unauthorized",pathMatch:"full"}],p=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=m({type:e});static \u0275inj=a({imports:[u.forChild(U),u]})};var S=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=m({type:e});static \u0275inj=a({imports:[z,p,y]})};export{S as UnauthorizedModule};