dealpos 26.38.0 → 26.38.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/browser/{chunk-F5GWOJUW.js → chunk-2B636ESA.js} +1 -1
  2. package/browser/{chunk-XDTRVVDR.js → chunk-2GMM55UE.js} +1 -1
  3. package/browser/{chunk-FTP7AQSB.js → chunk-2MWDX4BK.js} +1 -1
  4. package/browser/{chunk-ONYSXL77.js → chunk-2WPNQTXK.js} +1 -1
  5. package/browser/{chunk-MOCOBSON.js → chunk-3PKNXU4Y.js} +2 -2
  6. package/browser/{chunk-2ZXSCVOT.js → chunk-4B7JEVK7.js} +1 -1
  7. package/browser/{chunk-7UNRWF75.js → chunk-4RUHYNXR.js} +1 -1
  8. package/browser/{chunk-QHFMYGIF.js → chunk-5ZBX37NP.js} +1 -1
  9. package/browser/{chunk-RZCLI6BT.js → chunk-6DMHJH3F.js} +1 -1
  10. package/browser/{chunk-TUXLPDJ5.js → chunk-6FBKS4ZK.js} +1 -1
  11. package/browser/{chunk-MEKAQHCX.js → chunk-6JKA3YWH.js} +1 -1
  12. package/browser/{chunk-E4HGE3LY.js → chunk-6QVPIM5U.js} +1 -1
  13. package/browser/{chunk-KGWJCG7P.js → chunk-6TICF3ZK.js} +1 -1
  14. package/browser/{chunk-SMQ64XIJ.js → chunk-73EYHW2F.js} +1 -1
  15. package/browser/{chunk-ZVF256YB.js → chunk-74634EQ4.js} +1 -1
  16. package/browser/{chunk-MFAGB2K2.js → chunk-755KDXAK.js} +1 -1
  17. package/browser/{chunk-I3IFZMJR.js → chunk-76TVENRC.js} +2 -2
  18. package/browser/{chunk-RFL66RPH.js → chunk-7QBU3RK6.js} +1 -1
  19. package/browser/{chunk-DQMWEXCH.js → chunk-A7DIXCC6.js} +1 -1
  20. package/browser/{chunk-53RCQI5P.js → chunk-AW3OLQBC.js} +1 -1
  21. package/browser/{chunk-UF7HJDC2.js → chunk-BDTTE62V.js} +2 -2
  22. package/browser/{chunk-A24VDZOT.js → chunk-BFPNPFZ3.js} +1 -1
  23. package/browser/{chunk-5HTQAXN5.js → chunk-BGHZTWKF.js} +1 -1
  24. package/browser/{chunk-6UUXFUMJ.js → chunk-BGJHSPWB.js} +1 -1
  25. package/browser/{chunk-TEO6ICGS.js → chunk-BHBHZLN2.js} +1 -1
  26. package/browser/{chunk-5QQKB5XL.js → chunk-BJXPIILR.js} +1 -1
  27. package/browser/{chunk-JO7QXQPQ.js → chunk-BK5SAPLZ.js} +1 -1
  28. package/browser/{chunk-3YLOMYDX.js → chunk-BKYGJA5E.js} +1 -1
  29. package/browser/{chunk-YPTE7YFA.js → chunk-BUVNSR3W.js} +1 -1
  30. package/browser/{chunk-H4AGBFLN.js → chunk-BZ6WXP2Q.js} +1 -1
  31. package/browser/{chunk-E3VN3LU6.js → chunk-C6BMODT2.js} +1 -1
  32. package/browser/{chunk-STI6NGJS.js → chunk-CQJOWF5P.js} +1 -1
  33. package/browser/{chunk-3ANJUX6U.js → chunk-CR6UCHO6.js} +1 -1
  34. package/browser/{chunk-Q36UWYEX.js → chunk-D6IEEUEV.js} +1 -1
  35. package/browser/{chunk-BAG746ZC.js → chunk-DN3T2NLK.js} +1 -1
  36. package/browser/{chunk-PRK7ISXK.js → chunk-DPXJOGJC.js} +1 -1
  37. package/browser/{chunk-ECO7BIJW.js → chunk-DT66E75J.js} +1 -1
  38. package/browser/{chunk-63A5XZ53.js → chunk-DZPCJ3GL.js} +1 -1
  39. package/browser/{chunk-IUVVWHFM.js → chunk-E5XCRITA.js} +1 -1
  40. package/browser/{chunk-CKWUMCK5.js → chunk-EDNJQLRW.js} +1 -1
  41. package/browser/{chunk-ZUEAEXJ3.js → chunk-ELCC7NOQ.js} +1 -1
  42. package/browser/{chunk-XOOAWEKC.js → chunk-EMJ5LKXB.js} +1 -1
  43. package/browser/{chunk-IGEC4Q3P.js → chunk-F4TDJT7X.js} +2 -2
  44. package/browser/{chunk-CQ7NI3PC.js → chunk-FGAMHAT7.js} +1 -1
  45. package/browser/{chunk-3SKIPHBQ.js → chunk-FL5D4I4S.js} +1 -1
  46. package/browser/{chunk-SPJGPHOK.js → chunk-FQKAQMLD.js} +1 -1
  47. package/browser/{chunk-Z2MECBEP.js → chunk-FX4DHGCG.js} +1 -1
  48. package/browser/{chunk-3YML327X.js → chunk-GGSQY3AV.js} +1 -1
  49. package/browser/{chunk-JYHGLK4R.js → chunk-GJZAGEUC.js} +1 -1
  50. package/browser/{chunk-UVLFYSMW.js → chunk-GLDH5SR7.js} +1 -1
  51. package/browser/{chunk-UAXKWSSG.js → chunk-GXVEGSDK.js} +1 -1
  52. package/browser/{chunk-UH5ZUET3.js → chunk-H4JA4JFL.js} +1 -1
  53. package/browser/{chunk-E4CDFX6N.js → chunk-IEIZQFTF.js} +14 -14
  54. package/browser/{chunk-D6ZP75WQ.js → chunk-IFLCK5XJ.js} +1 -1
  55. package/browser/{chunk-NRWQJA24.js → chunk-JA4JTFC3.js} +1 -1
  56. package/browser/{chunk-CXQVRGMK.js → chunk-JM77GPGB.js} +1 -1
  57. package/browser/{chunk-HVJMPOI7.js → chunk-JY322ZGE.js} +1 -1
  58. package/browser/{chunk-DFPYJB7E.js → chunk-KFUIH7A6.js} +1 -1
  59. package/browser/{chunk-ITXFNN45.js → chunk-KHACDDYA.js} +1 -1
  60. package/browser/{chunk-AAUWHNVZ.js → chunk-KSLAQ2TT.js} +1 -1
  61. package/browser/{chunk-KH4JIUET.js → chunk-L5QMEYU7.js} +1 -1
  62. package/browser/{chunk-BYNVQ6MW.js → chunk-LCVIGQBS.js} +1 -1
  63. package/browser/{chunk-UPRO5G7M.js → chunk-LWJ7SRHP.js} +1 -1
  64. package/browser/{chunk-G7IF52KV.js → chunk-MAN3IFZ5.js} +1 -1
  65. package/browser/{chunk-RD2V5ZKE.js → chunk-MTUTB7QZ.js} +1 -1
  66. package/browser/{chunk-VVX2LMPR.js → chunk-N2OABEZR.js} +1 -1
  67. package/browser/{chunk-JIX5JDFD.js → chunk-OH64VJIX.js} +1 -1
  68. package/browser/{chunk-KNEFRW3G.js → chunk-OL3R4Q46.js} +1 -1
  69. package/browser/{chunk-6GXQN4D2.js → chunk-PG7R44K5.js} +1 -1
  70. package/browser/{chunk-EGHNYP3X.js → chunk-PS67LA7L.js} +1 -1
  71. package/browser/{chunk-LJD34LWJ.js → chunk-QN3QCZMO.js} +2 -2
  72. package/browser/{chunk-4QEI7YKE.js → chunk-QUHLTUNG.js} +1 -1
  73. package/browser/{chunk-2JCK652H.js → chunk-QZHB5H56.js} +1 -1
  74. package/browser/{chunk-GE4BVPCT.js → chunk-R6IMYA6X.js} +1 -1
  75. package/browser/{chunk-XORE6IRR.js → chunk-RNPMWOJH.js} +1 -1
  76. package/browser/{chunk-FRZ7NPJV.js → chunk-SPSW7RIY.js} +1 -1
  77. package/browser/{chunk-2IVDXMDV.js → chunk-T3U3RALG.js} +1 -1
  78. package/browser/{chunk-EBZUOEPS.js → chunk-TZWHBYYX.js} +1 -1
  79. package/browser/{chunk-TSICX6VO.js → chunk-U3AKOEND.js} +1 -1
  80. package/browser/{chunk-46IN3YX3.js → chunk-UDRHIQJN.js} +1 -1
  81. package/browser/{chunk-PQRUYQ3W.js → chunk-UGGYM6W3.js} +1 -1
  82. package/browser/{chunk-2UXWFVP2.js → chunk-UKYZGSO6.js} +1 -1
  83. package/browser/{chunk-QDSIA5O5.js → chunk-UQTBNF7H.js} +1 -1
  84. package/browser/{chunk-R56FG5HR.js → chunk-UWQ7CSOK.js} +1 -1
  85. package/browser/{chunk-NRT2GCHB.js → chunk-UYQJZV3F.js} +1 -1
  86. package/browser/{chunk-PRHSYTWF.js → chunk-VBGJ5UKX.js} +1 -1
  87. package/browser/{chunk-G46FUIEJ.js → chunk-VPV4OAGI.js} +1 -1
  88. package/browser/{chunk-SXAIEXOT.js → chunk-VQW7ACNZ.js} +1 -1
  89. package/browser/{chunk-PWSDYXAH.js → chunk-WAVZ3HHI.js} +1 -1
  90. package/browser/{chunk-I6HWFBEA.js → chunk-WFKNQB2O.js} +1 -1
  91. package/browser/{chunk-JNVAEG2I.js → chunk-WGHXCMTO.js} +1 -1
  92. package/browser/{chunk-NOB3AHQO.js → chunk-WLMJTHNA.js} +2 -2
  93. package/browser/{chunk-RL27T6C7.js → chunk-X27A3JGN.js} +1 -1
  94. package/browser/{chunk-F2EGYXN6.js → chunk-XBMXGE3Q.js} +1 -1
  95. package/browser/{chunk-SKQK32ZX.js → chunk-XI3JEW3Z.js} +1 -1
  96. package/browser/{chunk-LXME75ED.js → chunk-XRIIWHTC.js} +1 -1
  97. package/browser/{chunk-Z3ZY7PEO.js → chunk-XT2ZATEC.js} +1 -1
  98. package/browser/{chunk-A7ZWDWNB.js → chunk-XTLSDB6G.js} +1 -1
  99. package/browser/{chunk-SN52QT4E.js → chunk-XU3QFMQC.js} +1 -1
  100. package/browser/{chunk-JK54CSA6.js → chunk-XWCJTXJ3.js} +1 -1
  101. package/browser/{chunk-YNAFSRWK.js → chunk-XX2C5K5V.js} +1 -1
  102. package/browser/{chunk-J6QRTJEM.js → chunk-Y6TWFJ7F.js} +1 -1
  103. package/browser/{chunk-IAH4IOUY.js → chunk-YB2CP3TC.js} +1 -1
  104. package/browser/{chunk-EAY73REK.js → chunk-YDKH3W5H.js} +1 -1
  105. package/browser/{chunk-BKNZE6SB.js → chunk-YYL6JPWI.js} +1 -1
  106. package/browser/{chunk-GEIYCLRB.js → chunk-Z5VUUXVY.js} +1 -1
  107. package/browser/{chunk-7IHY77DE.js → chunk-ZCLSXCNG.js} +1 -1
  108. package/browser/{chunk-2R7ID2AJ.js → chunk-ZUYKHOEW.js} +1 -1
  109. package/browser/{chunk-QJEKUYO7.js → chunk-ZX7SNDZI.js} +1 -1
  110. package/browser/index.html +2 -2
  111. package/browser/{main-6MOEUL4J.js → main-7TXJWPP2.js} +1 -1
  112. package/package.json +1 -1
@@ -1 +1 @@
1
- import{a as ie}from"./chunk-ZUEAEXJ3.js";import{b as ee}from"./chunk-QSO3OJ62.js";import{b as te}from"./chunk-RJUJV3CJ.js";import{a as q,c as J,e as Q,f as X,g as Z}from"./chunk-H6NWJNNV.js";import{b as G,c as W,d as K,e as H}from"./chunk-A6ZROBMQ.js";import{b as z}from"./chunk-SBLNMOXY.js";import{g as j}from"./chunk-ZK5X3QHG.js";import{a as Y,b as $}from"./chunk-77MBEZAF.js";import{a as N,b as A,c as V}from"./chunk-IZ6OEFHZ.js";import{n as k}from"./chunk-UBUWTJXF.js";import{Bb as S,Ca as g,Cb as D,Db as R,Eb as s,Fb as l,Gb as d,Hb as h,Qb as b,Tb as m,Va as p,Vb as U,ab as C,dc as O,eb as M,ic as u,kb as y,kc as E,nc as L,oa as _,oc as P,pc as B,r as I,s as T,sa as c,sb as F,ta as f,tb as w}from"./chunk-45TUMJS2.js";import{a as v,b as x}from"./chunk-NF7PG5F2.js";function ae(r,i){r&1&&(l(0,"div"),h(1,"i",15),l(2,"div"),u(3,"My Files"),d()())}function ne(r,i){r&1&&(l(0,"div"),h(1,"i",16),l(2,"div"),u(3,"Web Address"),d()())}function le(r,i){if(r&1){let t=b();l(0,"mat-chip-row",17),m("removed",function(){let o=c(t).$implicit,a=U();return f(a.remove(o))})("edited",function(o){let a=c(t).$implicit,n=U();return f(n.edit(a,o))}),u(1),l(2,"button",18),h(3,"i",19),d()()}if(r&2){let t=i.$implicit;s("editable",!0),F("aria-description","press enter to edit "+t.url),p(),E(" ",t.url," "),p(),w("aria-label","remove "+t)}}var oe=class r{constructor(i,t){this.dt=i;this.dialogRef=t;this.config=new A,this.config.customWidth="750px",this.data=i,this.config.hideScrollbar=!0,this.maxFile=this.maxFile-this.data.currentProductImagesLength,this.applyDialogConfig()}dt;dialogRef;toastr=_(k);selectedIndex=0;addOnBlur=!0;separatorKeysCodes=[13,188];remoteUrls=g([]);dashboardProps={height:350,width:950};maxFile=5;processUppy=_(ie);filesToBeUploaded=[];uppyCoreConfiguration={allowMultipleUploadBatches:!0,restrictions:{allowedFileTypes:["image/*",".jpg",".jpeg",".png"],maxNumberOfFiles:5,maxFileSize:2e3*1e3,maxTotalFileSize:this.maxFile*2e3*1e3}};config;data;uppySubtitle=g("Accepted file formats: .jpg, .png & max file size: 2 MB");isVideoAllowed=g(!1);applyDialogConfig(){let i=this.data.allowedFileTypes??["image/*",".jpg",".jpeg",".png"],t=this.data.allowMultipleUploadBatches??!0,e=this.data.maxFileSize??2e3*1e3,o=i.some(n=>[".mp4",".webm",".mov",".mkv",".avi",".ogg"].includes(n));this.config.title=o?"Upload your media":"Upload your image(s)",this.isVideoAllowed.set(o),this.uppyCoreConfiguration={allowMultipleUploadBatches:t,restrictions:{allowedFileTypes:i,maxNumberOfFiles:this.dt.maxNumberOfFiles||this.maxFile,maxFileSize:e,maxTotalFileSize:e*(this.dt.maxNumberOfFiles||this.maxFile)}};let a=this.data.subtitle;a&&this.uppySubtitle.set(a)}add(i){if(this.remoteUrls().length>=this.maxFile){this.toastr.info("You can only upload "+this.maxFile+" remote URL(s)",N.Info);return}let t=(i.value||"").trim();t&&this.remoteUrls.update(e=>[...e,{url:t}]),i.chipInput.clear()}remove(i){this.remoteUrls.update(t=>{let e=t.indexOf(i);return e<0?t:(t.splice(e,1),[...t])})}edit(i,t){let e=t.value.trim();if(!e){this.remove(i);return}this.remoteUrls.update(o=>{let a=o.indexOf(i);return a>=0?(o[a].url=e,[...o]):o})}onClose(){this.dialogRef.close()}onOk(){if(this.selectedIndex==0){let i=this.filesToBeUploaded.map(({file:t,id:e})=>this.processUppy.uploadFileThroughPreSignedUrl(t,this.data.CloudinaryFolder,!this.isVideoAllowed()).pipe(I(o=>({ImageID:e,ImageName:t.name,ImageURL:o.url,Thumbnail:o.thumbnail}))));T(i).subscribe(t=>{this.dialogRef.close(t.map(e=>x(v({},e),{URL:e.ImageName,OnNewFormURL:e.ImageURL,Thumbnail:e.Thumbnail})))})}else{let i=this.remoteUrls().map(t=>({Path:this.data.CloudinaryFolder+"/"+t.url.split("/").pop(),URL:t.url}));this.processUppy.uploadRemoteURLToCloudflare(i).subscribe(t=>{this.dialogRef.close(t.map(e=>({ImageName:e.URL.split("/").pop(),URL:e.URL.split("/").pop(),ImageURL:e.URL,OnNewFormURL:e.URL})))})}}onUploadFile(i){this.filesToBeUploaded=i}removeImage(i){this.filesToBeUploaded=this.filesToBeUploaded.filter(t=>t.id!=i)}onTabChange(i){this.selectedIndex=i}static \u0275fac=function(t){return new(t||r)(C($),C(Y))};static \u0275cmp=M({type:r,selectors:[["POS-upload-uppy-dialog"]],decls:20,vars:9,consts:[["chipGrid",""],[3,"onOk","onCancel","onClose","config","preventEnterEvent"],[3,"selectedIndexChange","selectedIndex"],[2,"width","220px"],["mat-tab-label",""],[2,"padding","5px 10px"],[3,"multipleFilesUploaded","fileRemoved","dashboardPropsConfiguration","uppyCoreConfiguration","subtitle"],[1,"h-100",2,"padding","0.4rem"],[1,"w-100","h-100","rounded","d-flex","align-items-center",2,"background","whitesmoke","padding","1rem"],[1,"w-100","rounded"],[1,"fw-semibold"],[1,"example-chip-list","w-100","mt-5"],["aria-label","Enter urls"],[3,"editable","aria-description"],["placeholder","https://remote.site.example/images/remote-image.png",3,"matChipInputTokenEnd","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[1,"fa-solid","fa-laptop","fa-2x","mb-6"],[1,"fa-solid","fa-earth-americas","fa-2x","mb-6"],[3,"removed","edited","editable","aria-description"],["matChipRemove",""],[1,"fa-solid","fa-circle-xmark"]],template:function(t,e){if(t&1){let o=b();l(0,"modal-material",1),m("onOk",function(){return e.onOk()})("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),l(1,"content")(2,"mat-tab-group",2),B("selectedIndexChange",function(n){return c(o),P(e.selectedIndex,n)||(e.selectedIndex=n),f(n)}),m("selectedIndexChange",function(n){return e.onTabChange(n)}),l(3,"mat-tab",3),y(4,ae,4,0,"ng-template",4),l(5,"div",5)(6,"POS-uppy",6),m("multipleFilesUploaded",function(n){return e.onUploadFile(n)})("fileRemoved",function(n){return e.removeImage(n)}),d()()(),l(7,"mat-tab",3),y(8,ne,4,0,"ng-template",4),l(9,"div",7)(10,"div",8)(11,"div",9)(12,"h4",10),u(13,"Public URL(s) of file to upload:"),d(),l(14,"mat-form-field",11)(15,"mat-chip-grid",12,0),D(17,le,4,4,"mat-chip-row",13,S),l(19,"input",14),m("matChipInputTokenEnd",function(n){return e.add(n)}),d()()()()()()()()()()}if(t&2){let o=O(16);s("config",e.config)("preventEnterEvent",e.selectedIndex===1),p(2),L("selectedIndex",e.selectedIndex),p(4),s("dashboardPropsConfiguration",e.dashboardProps)("uppyCoreConfiguration",e.uppyCoreConfiguration)("subtitle",e.uppySubtitle()),p(11),R(e.remoteUrls()),p(2),s("matChipInputFor",o)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}},dependencies:[te,V,H,G,W,K,z,j,Z,Q,X,q,J,ee],styles:[".mat-mdc-standard-chip[_ngcontent-%COMP%]:not(.mdc-evolution-chip--disabled){background-color:#dfeffc!important} .mat-mdc-tab-header{width:320px} .mat-mdc-tab-body-content{height:360px!important} .modal-body{max-height:80vh!important;overflow-y:auto;padding:.5rem .5rem 0!important} .mdc-text-field--filled, .mdc-text-field--focused[_ngcontent-%COMP%]{background-color:#fff!important}[_ngcontent-%COMP%]:root{--mat-chip-outline-color: orange;--mat-chip-disabled-outline-color: red} .mat-mdc-tab{--mat-tab-container-height: 70px}"]})};export{oe as a};
1
+ import{a as ie}from"./chunk-ELCC7NOQ.js";import{b as ee}from"./chunk-QSO3OJ62.js";import{b as te}from"./chunk-RJUJV3CJ.js";import{a as q,c as J,e as Q,f as X,g as Z}from"./chunk-H6NWJNNV.js";import{b as G,c as W,d as K,e as H}from"./chunk-A6ZROBMQ.js";import{b as z}from"./chunk-SBLNMOXY.js";import{g as j}from"./chunk-ZK5X3QHG.js";import{a as Y,b as $}from"./chunk-77MBEZAF.js";import{a as N,b as A,c as V}from"./chunk-IZ6OEFHZ.js";import{n as k}from"./chunk-UBUWTJXF.js";import{Bb as S,Ca as g,Cb as D,Db as R,Eb as s,Fb as l,Gb as d,Hb as h,Qb as b,Tb as m,Va as p,Vb as U,ab as C,dc as O,eb as M,ic as u,kb as y,kc as E,nc as L,oa as _,oc as P,pc as B,r as I,s as T,sa as c,sb as F,ta as f,tb as w}from"./chunk-45TUMJS2.js";import{a as v,b as x}from"./chunk-NF7PG5F2.js";function ae(r,i){r&1&&(l(0,"div"),h(1,"i",15),l(2,"div"),u(3,"My Files"),d()())}function ne(r,i){r&1&&(l(0,"div"),h(1,"i",16),l(2,"div"),u(3,"Web Address"),d()())}function le(r,i){if(r&1){let t=b();l(0,"mat-chip-row",17),m("removed",function(){let o=c(t).$implicit,a=U();return f(a.remove(o))})("edited",function(o){let a=c(t).$implicit,n=U();return f(n.edit(a,o))}),u(1),l(2,"button",18),h(3,"i",19),d()()}if(r&2){let t=i.$implicit;s("editable",!0),F("aria-description","press enter to edit "+t.url),p(),E(" ",t.url," "),p(),w("aria-label","remove "+t)}}var oe=class r{constructor(i,t){this.dt=i;this.dialogRef=t;this.config=new A,this.config.customWidth="750px",this.data=i,this.config.hideScrollbar=!0,this.maxFile=this.maxFile-this.data.currentProductImagesLength,this.applyDialogConfig()}dt;dialogRef;toastr=_(k);selectedIndex=0;addOnBlur=!0;separatorKeysCodes=[13,188];remoteUrls=g([]);dashboardProps={height:350,width:950};maxFile=5;processUppy=_(ie);filesToBeUploaded=[];uppyCoreConfiguration={allowMultipleUploadBatches:!0,restrictions:{allowedFileTypes:["image/*",".jpg",".jpeg",".png"],maxNumberOfFiles:5,maxFileSize:2e3*1e3,maxTotalFileSize:this.maxFile*2e3*1e3}};config;data;uppySubtitle=g("Accepted file formats: .jpg, .png & max file size: 2 MB");isVideoAllowed=g(!1);applyDialogConfig(){let i=this.data.allowedFileTypes??["image/*",".jpg",".jpeg",".png"],t=this.data.allowMultipleUploadBatches??!0,e=this.data.maxFileSize??2e3*1e3,o=i.some(n=>[".mp4",".webm",".mov",".mkv",".avi",".ogg"].includes(n));this.config.title=o?"Upload your media":"Upload your image(s)",this.isVideoAllowed.set(o),this.uppyCoreConfiguration={allowMultipleUploadBatches:t,restrictions:{allowedFileTypes:i,maxNumberOfFiles:this.dt.maxNumberOfFiles||this.maxFile,maxFileSize:e,maxTotalFileSize:e*(this.dt.maxNumberOfFiles||this.maxFile)}};let a=this.data.subtitle;a&&this.uppySubtitle.set(a)}add(i){if(this.remoteUrls().length>=this.maxFile){this.toastr.info("You can only upload "+this.maxFile+" remote URL(s)",N.Info);return}let t=(i.value||"").trim();t&&this.remoteUrls.update(e=>[...e,{url:t}]),i.chipInput.clear()}remove(i){this.remoteUrls.update(t=>{let e=t.indexOf(i);return e<0?t:(t.splice(e,1),[...t])})}edit(i,t){let e=t.value.trim();if(!e){this.remove(i);return}this.remoteUrls.update(o=>{let a=o.indexOf(i);return a>=0?(o[a].url=e,[...o]):o})}onClose(){this.dialogRef.close()}onOk(){if(this.selectedIndex==0){let i=this.filesToBeUploaded.map(({file:t,id:e})=>this.processUppy.uploadFileThroughPreSignedUrl(t,this.data.CloudinaryFolder,!this.isVideoAllowed()).pipe(I(o=>({ImageID:e,ImageName:t.name,ImageURL:o.url,Thumbnail:o.thumbnail}))));T(i).subscribe(t=>{this.dialogRef.close(t.map(e=>x(v({},e),{URL:e.ImageName,OnNewFormURL:e.ImageURL,Thumbnail:e.Thumbnail})))})}else{let i=this.remoteUrls().map(t=>({Path:this.data.CloudinaryFolder+"/"+t.url.split("/").pop(),URL:t.url}));this.processUppy.uploadRemoteURLToCloudflare(i).subscribe(t=>{this.dialogRef.close(t.map(e=>({ImageName:e.URL.split("/").pop(),URL:e.URL.split("/").pop(),ImageURL:e.URL,OnNewFormURL:e.URL})))})}}onUploadFile(i){this.filesToBeUploaded=i}removeImage(i){this.filesToBeUploaded=this.filesToBeUploaded.filter(t=>t.id!=i)}onTabChange(i){this.selectedIndex=i}static \u0275fac=function(t){return new(t||r)(C($),C(Y))};static \u0275cmp=M({type:r,selectors:[["POS-upload-uppy-dialog"]],decls:20,vars:9,consts:[["chipGrid",""],[3,"onOk","onCancel","onClose","config","preventEnterEvent"],[3,"selectedIndexChange","selectedIndex"],[2,"width","220px"],["mat-tab-label",""],[2,"padding","5px 10px"],[3,"multipleFilesUploaded","fileRemoved","dashboardPropsConfiguration","uppyCoreConfiguration","subtitle"],[1,"h-100",2,"padding","0.4rem"],[1,"w-100","h-100","rounded","d-flex","align-items-center",2,"background","whitesmoke","padding","1rem"],[1,"w-100","rounded"],[1,"fw-semibold"],[1,"example-chip-list","w-100","mt-5"],["aria-label","Enter urls"],[3,"editable","aria-description"],["placeholder","https://remote.site.example/images/remote-image.png",3,"matChipInputTokenEnd","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur"],[1,"fa-solid","fa-laptop","fa-2x","mb-6"],[1,"fa-solid","fa-earth-americas","fa-2x","mb-6"],[3,"removed","edited","editable","aria-description"],["matChipRemove",""],[1,"fa-solid","fa-circle-xmark"]],template:function(t,e){if(t&1){let o=b();l(0,"modal-material",1),m("onOk",function(){return e.onOk()})("onCancel",function(){return e.onClose()})("onClose",function(){return e.onClose()}),l(1,"content")(2,"mat-tab-group",2),B("selectedIndexChange",function(n){return c(o),P(e.selectedIndex,n)||(e.selectedIndex=n),f(n)}),m("selectedIndexChange",function(n){return e.onTabChange(n)}),l(3,"mat-tab",3),y(4,ae,4,0,"ng-template",4),l(5,"div",5)(6,"POS-uppy",6),m("multipleFilesUploaded",function(n){return e.onUploadFile(n)})("fileRemoved",function(n){return e.removeImage(n)}),d()()(),l(7,"mat-tab",3),y(8,ne,4,0,"ng-template",4),l(9,"div",7)(10,"div",8)(11,"div",9)(12,"h4",10),u(13,"Public URL(s) of file to upload:"),d(),l(14,"mat-form-field",11)(15,"mat-chip-grid",12,0),D(17,le,4,4,"mat-chip-row",13,S),l(19,"input",14),m("matChipInputTokenEnd",function(n){return e.add(n)}),d()()()()()()()()()()}if(t&2){let o=O(16);s("config",e.config)("preventEnterEvent",e.selectedIndex===1),p(2),L("selectedIndex",e.selectedIndex),p(4),s("dashboardPropsConfiguration",e.dashboardProps)("uppyCoreConfiguration",e.uppyCoreConfiguration)("subtitle",e.uppySubtitle()),p(11),R(e.remoteUrls()),p(2),s("matChipInputFor",o)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur)}},dependencies:[te,V,H,G,W,K,z,j,Z,Q,X,q,J,ee],styles:[".mat-mdc-standard-chip[_ngcontent-%COMP%]:not(.mdc-evolution-chip--disabled){background-color:#dfeffc!important} .mat-mdc-tab-header{width:320px} .mat-mdc-tab-body-content{height:360px!important} .modal-body{max-height:80vh!important;overflow-y:auto;padding:.5rem .5rem 0!important} .mdc-text-field--filled, .mdc-text-field--focused[_ngcontent-%COMP%]{background-color:#fff!important}[_ngcontent-%COMP%]:root{--mat-chip-outline-color: orange;--mat-chip-disabled-outline-color: red} .mat-mdc-tab{--mat-tab-container-height: 70px}"]})};export{oe as a};
@@ -1 +1 @@
1
- import{a as b}from"./chunk-G7IF52KV.js";import{f as l}from"./chunk-D6ZP75WQ.js";import{a as s}from"./chunk-ICRIBA3P.js";import{a as p}from"./chunk-PPTZHIIZ.js";import{q as m}from"./chunk-UBUWTJXF.js";import{ka as c,n as a,na as r,r as u}from"./chunk-45TUMJS2.js";var o=class{ID;Label;Groups;DiscountRate;SalesID;Point;PointUsed;Debt;DebtLimit;ExpiryDate;DueDays;DueMonths;PricebookID;TaxTypeId;NationalIDNumber;MemberIdentification;EntityID;EntityName;Email;Mobile;Name;LoyaltyEnabled;DebtCalculated;constructor(){this.Label="",this.Point=0,this.PointUsed=0,this.Debt=0,this.EntityID=p.GuidEmpty,this.DueMonths=0,this.DueDays=0,this.LoyaltyEnabled=!1}};var y=class i{constructor(t,e,n){this.httpService=t;this.LocalData=e;this._onlineStatusService=n}httpService;LocalData;_onlineStatusService;Data=new o;addCustomer(t,e){let n=[];t.Group&&n.push(t.Group),e&&(t.DebtLimit=e);let D={contact:t,groups:n};if(this._onlineStatusService.isOnline)return a(this.httpService.post("/API/Contact/Customer/Create",D)).catch(v=>Promise.reject(v))}findCustomerByCode(t){let e={Code:t};return this.httpService.post("/API/Contact/GetByCode",e)}GetPrivilegeByID(t,e){return this.httpService.get(s.GetCustomerPrivilegeByID,[{key:"ID",value:t},{key:"EntityID",value:e}],!0)}getCustomerSuggestionCode(){return this.httpService.get(s.GetCustomerSuggestionCode).pipe(u(t=>t.Code))}static \u0275fac=function(e){return new(e||i)(r(m),r(l),r(b))};static \u0275prov=c({token:i,factory:i.\u0275fac,providedIn:"root"})};export{o as a,y as b};
1
+ import{a as b}from"./chunk-MAN3IFZ5.js";import{f as l}from"./chunk-IFLCK5XJ.js";import{a as s}from"./chunk-ICRIBA3P.js";import{a as p}from"./chunk-PPTZHIIZ.js";import{q as m}from"./chunk-UBUWTJXF.js";import{ka as c,n as a,na as r,r as u}from"./chunk-45TUMJS2.js";var o=class{ID;Label;Groups;DiscountRate;SalesID;Point;PointUsed;Debt;DebtLimit;ExpiryDate;DueDays;DueMonths;PricebookID;TaxTypeId;NationalIDNumber;MemberIdentification;EntityID;EntityName;Email;Mobile;Name;LoyaltyEnabled;DebtCalculated;constructor(){this.Label="",this.Point=0,this.PointUsed=0,this.Debt=0,this.EntityID=p.GuidEmpty,this.DueMonths=0,this.DueDays=0,this.LoyaltyEnabled=!1}};var y=class i{constructor(t,e,n){this.httpService=t;this.LocalData=e;this._onlineStatusService=n}httpService;LocalData;_onlineStatusService;Data=new o;addCustomer(t,e){let n=[];t.Group&&n.push(t.Group),e&&(t.DebtLimit=e);let D={contact:t,groups:n};if(this._onlineStatusService.isOnline)return a(this.httpService.post("/API/Contact/Customer/Create",D)).catch(v=>Promise.reject(v))}findCustomerByCode(t){let e={Code:t};return this.httpService.post("/API/Contact/GetByCode",e)}GetPrivilegeByID(t,e){return this.httpService.get(s.GetCustomerPrivilegeByID,[{key:"ID",value:t},{key:"EntityID",value:e}],!0)}getCustomerSuggestionCode(){return this.httpService.get(s.GetCustomerSuggestionCode).pipe(u(t=>t.Code))}static \u0275fac=function(e){return new(e||i)(r(m),r(l),r(b))};static \u0275prov=c({token:i,factory:i.\u0275fac,providedIn:"root"})};export{o as a,y as b};
@@ -1 +1 @@
1
- import{b as s}from"./chunk-I6HWFBEA.js";import{a as i}from"./chunk-PPTZHIIZ.js";import{ka as o,na as l}from"./chunk-45TUMJS2.js";var p=class r{constructor(t){this.cookieService=t}cookieService;_reportFilter={from:null,outletIds:[],to:null};_cookiesName="ReportFilter";initOutletFilter(t=[]){let e=this.getReportFilter();return i.IsNotEmpty(e?.outletIds)?t=e.outletIds:this.setOutletFilter(t),t}initDateFromFilter(t){let e=this.getReportFilter();return i.IsNotEmpty(e?.from)?t=e.from:this.setDateFromFilter(t),t}initDateToFilter(t){let e=this.getReportFilter();return i.IsNotEmpty(e?.to)?t=e.to:this.setDateToFilter(t),t}setDateFromFilter(t){let e=this.getReportFilter();i.IsEmpty(e)&&(e=this._reportFilter),e.from=t,this.saveFilterToCookie(e)}setDateToFilter(t){let e=this.getReportFilter();i.IsEmpty(e)&&(e=this._reportFilter),e.to=t,this.saveFilterToCookie(e)}setOutletFilter(t=[]){let e=this.getReportFilter();i.IsEmpty(e)&&(e=this._reportFilter),e.outletIds=t,this.saveFilterToCookie(e)}saveFilterToCookie(t){this.cookieService.set(this._cookiesName,JSON.stringify(t),this.getExpiredDate(),"/")}getReportFilter(){if(this.cookieService.check("ReportFilter")){let t=this.cookieService.get("ReportFilter");this._reportFilter=JSON.parse(t)}return this._reportFilter}getExpiredDate(){let t=new Date,F=1*60*60*1e3;return t.setTime(t.getTime()+F),t}resetFilter(){this._reportFilter={from:null,outletIds:[],to:null},this.cookieService.delete("ReportFilter","/")}static \u0275fac=function(e){return new(e||r)(l(s))};static \u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
1
+ import{b as s}from"./chunk-WFKNQB2O.js";import{a as i}from"./chunk-PPTZHIIZ.js";import{ka as o,na as l}from"./chunk-45TUMJS2.js";var p=class r{constructor(t){this.cookieService=t}cookieService;_reportFilter={from:null,outletIds:[],to:null};_cookiesName="ReportFilter";initOutletFilter(t=[]){let e=this.getReportFilter();return i.IsNotEmpty(e?.outletIds)?t=e.outletIds:this.setOutletFilter(t),t}initDateFromFilter(t){let e=this.getReportFilter();return i.IsNotEmpty(e?.from)?t=e.from:this.setDateFromFilter(t),t}initDateToFilter(t){let e=this.getReportFilter();return i.IsNotEmpty(e?.to)?t=e.to:this.setDateToFilter(t),t}setDateFromFilter(t){let e=this.getReportFilter();i.IsEmpty(e)&&(e=this._reportFilter),e.from=t,this.saveFilterToCookie(e)}setDateToFilter(t){let e=this.getReportFilter();i.IsEmpty(e)&&(e=this._reportFilter),e.to=t,this.saveFilterToCookie(e)}setOutletFilter(t=[]){let e=this.getReportFilter();i.IsEmpty(e)&&(e=this._reportFilter),e.outletIds=t,this.saveFilterToCookie(e)}saveFilterToCookie(t){this.cookieService.set(this._cookiesName,JSON.stringify(t),this.getExpiredDate(),"/")}getReportFilter(){if(this.cookieService.check("ReportFilter")){let t=this.cookieService.get("ReportFilter");this._reportFilter=JSON.parse(t)}return this._reportFilter}getExpiredDate(){let t=new Date,F=1*60*60*1e3;return t.setTime(t.getTime()+F),t}resetFilter(){this._reportFilter={from:null,outletIds:[],to:null},this.cookieService.delete("ReportFilter","/")}static \u0275fac=function(e){return new(e||r)(l(s))};static \u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})};export{p as a};
@@ -1 +1 @@
1
- import{a as V}from"./chunk-YZA2BM2K.js";import{a as j}from"./chunk-GE4BVPCT.js";import{F as M,a as H}from"./chunk-7OJUWRPB.js";import{q as $}from"./chunk-UBUWTJXF.js";import{B as u,D as v,Eb as a,Fb as b,Gb as y,Gc as w,Hc as k,S,Tb as O,Y as g,aa as f,ab as C,d as p,eb as P,ja as h,ka as d,l as m,na as l,nc as _,oc as R,pc as N,pd as A,r as o,wd as T,xc as I}from"./chunk-45TUMJS2.js";var s=class t{constructor(e,n){this.httpService=e;this.signalRService=n;this.initSalesPersons()}httpService;signalRService;salesPersonApi="/api/Contact/SelectSalesPersonOptions";salesPerson$=m([]);onOpenNgSelect=new p;_onOpenNgSelect$=this.onOpenNgSelect.asObservable();initSalesPersons(){this.salesPerson$=u(this._onOpenNgSelect$.pipe(S(),o(e=>({source:"select",value:e}))),this.signalRService.recacheSalesPerson$.pipe(o(e=>({source:"signalR",value:e})))).pipe(v(e=>e.value==!0),f(e=>(e.source=="signalR"&&this.signalRService.resetOutletCache(),this.httpService.get(this.salesPersonApi))),g(1))}onOpenNgselect(){this.onOpenNgSelect.next(!0)}static \u0275fac=function(n){return new(n||t)(l($),l(j))};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})};var E=class t{constructor(e){this.salesPersonService=e}salesPersonService;value=null;onChange=()=>{};onTouched=()=>{};placeholder="Choose Sales Person";multiple=!1;clearable=!0;salesPerson$;ngOnInit(){this.salesPerson$=this.salesPersonService.salesPerson$}onClickSelect(){this.salesPersonService.onOpenNgselect()}writeValue(e){this.value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}onSelectChange(){this.onChange(this.value)}static \u0275fac=function(n){return new(n||t)(C(s))};static \u0275cmp=P({type:t,selectors:[["sales-person-selector"]],inputs:{placeholder:"placeholder",multiple:"multiple",clearable:"clearable"},features:[I([{provide:H,useExisting:h(()=>t),multi:!0}])],decls:2,vars:5,consts:[["bindValue","k","bindLabel","v",3,"selectedChange","onOpen","items","selected","placeholder"]],template:function(n,i){n&1&&(b(0,"ng-select-infinite",0),w(1,"async"),N("selectedChange",function(r){return R(i.value,r)||(i.value=r),r}),O("selectedChange",function(){return i.onSelectChange()})("onOpen",function(){return i.onClickSelect()}),y()),n&2&&(a("items",k(1,3,i.salesPerson$)),_("selected",i.value),a("placeholder",i.placeholder))},dependencies:[T,M,V,A],encapsulation:2})};export{E as a};
1
+ import{a as V}from"./chunk-YZA2BM2K.js";import{a as j}from"./chunk-R6IMYA6X.js";import{F as M,a as H}from"./chunk-7OJUWRPB.js";import{q as $}from"./chunk-UBUWTJXF.js";import{B as u,D as v,Eb as a,Fb as b,Gb as y,Gc as w,Hc as k,S,Tb as O,Y as g,aa as f,ab as C,d as p,eb as P,ja as h,ka as d,l as m,na as l,nc as _,oc as R,pc as N,pd as A,r as o,wd as T,xc as I}from"./chunk-45TUMJS2.js";var s=class t{constructor(e,n){this.httpService=e;this.signalRService=n;this.initSalesPersons()}httpService;signalRService;salesPersonApi="/api/Contact/SelectSalesPersonOptions";salesPerson$=m([]);onOpenNgSelect=new p;_onOpenNgSelect$=this.onOpenNgSelect.asObservable();initSalesPersons(){this.salesPerson$=u(this._onOpenNgSelect$.pipe(S(),o(e=>({source:"select",value:e}))),this.signalRService.recacheSalesPerson$.pipe(o(e=>({source:"signalR",value:e})))).pipe(v(e=>e.value==!0),f(e=>(e.source=="signalR"&&this.signalRService.resetOutletCache(),this.httpService.get(this.salesPersonApi))),g(1))}onOpenNgselect(){this.onOpenNgSelect.next(!0)}static \u0275fac=function(n){return new(n||t)(l($),l(j))};static \u0275prov=d({token:t,factory:t.\u0275fac,providedIn:"root"})};var E=class t{constructor(e){this.salesPersonService=e}salesPersonService;value=null;onChange=()=>{};onTouched=()=>{};placeholder="Choose Sales Person";multiple=!1;clearable=!0;salesPerson$;ngOnInit(){this.salesPerson$=this.salesPersonService.salesPerson$}onClickSelect(){this.salesPersonService.onOpenNgselect()}writeValue(e){this.value=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}onSelectChange(){this.onChange(this.value)}static \u0275fac=function(n){return new(n||t)(C(s))};static \u0275cmp=P({type:t,selectors:[["sales-person-selector"]],inputs:{placeholder:"placeholder",multiple:"multiple",clearable:"clearable"},features:[I([{provide:H,useExisting:h(()=>t),multi:!0}])],decls:2,vars:5,consts:[["bindValue","k","bindLabel","v",3,"selectedChange","onOpen","items","selected","placeholder"]],template:function(n,i){n&1&&(b(0,"ng-select-infinite",0),w(1,"async"),N("selectedChange",function(r){return R(i.value,r)||(i.value=r),r}),O("selectedChange",function(){return i.onSelectChange()})("onOpen",function(){return i.onClickSelect()}),y()),n&2&&(a("items",k(1,3,i.salesPerson$)),_("selected",i.value),a("placeholder",i.placeholder))},dependencies:[T,M,V,A],encapsulation:2})};export{E as a};