marketplacepos 3.4.2 → 3.5.1

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 (82) hide show
  1. package/Marketplace/3rdpartylicenses.txt +5 -0
  2. package/Marketplace/{chunk-VJLQRARA.js → chunk-475WOA53.js} +1 -1
  3. package/Marketplace/chunk-4KXF5ZA2.js +1 -0
  4. package/Marketplace/{chunk-CVIYGYJG.js → chunk-4PT4476L.js} +1 -1
  5. package/Marketplace/{chunk-VLWVI7LT.js → chunk-4TMYOD6O.js} +1 -1
  6. package/Marketplace/{chunk-4ZIFLVEZ.js → chunk-5ANLTFUN.js} +1 -1
  7. package/Marketplace/{chunk-LHYUY4OW.js → chunk-5XDVKUH7.js} +1 -1
  8. package/Marketplace/{chunk-NLUIK3SD.js → chunk-5ZN2BVWB.js} +1 -1
  9. package/Marketplace/chunk-7K45EX2D.js +1 -0
  10. package/Marketplace/{chunk-WT7HH4UV.js → chunk-AFXFMUBY.js} +1 -1
  11. package/Marketplace/{chunk-JD4NX6LL.js → chunk-AG7HK2U3.js} +1 -1
  12. package/Marketplace/{chunk-APSB364O.js → chunk-APUQGD5I.js} +1 -1
  13. package/Marketplace/{chunk-OGA3XTQE.js → chunk-BHYFVY4A.js} +1 -1
  14. package/Marketplace/{chunk-HMATF4RH.js → chunk-BZKS3OOQ.js} +1 -1
  15. package/Marketplace/{chunk-Y4RCGXQK.js → chunk-DLMJHJC2.js} +1 -1
  16. package/Marketplace/{chunk-FJAD3LVA.js → chunk-E6VM4GK2.js} +1 -1
  17. package/Marketplace/{chunk-3FA5VSAY.js → chunk-EI6G5GIB.js} +1 -1
  18. package/Marketplace/{chunk-PASXSTSS.js → chunk-GSRXSBIM.js} +1 -1
  19. package/Marketplace/{chunk-XG47KOUR.js → chunk-GYBKA75Z.js} +1 -1
  20. package/Marketplace/{chunk-45BCCCD5.js → chunk-H6D6Q2L2.js} +1 -1
  21. package/Marketplace/{chunk-WL3GCHJ5.js → chunk-HI7WYFPY.js} +1 -1
  22. package/Marketplace/{chunk-2PR23CRN.js → chunk-HUCFUCCO.js} +1 -1
  23. package/Marketplace/{chunk-EIQQEQMI.js → chunk-IEBL2FLF.js} +1 -1
  24. package/Marketplace/{chunk-NQ5YXCPF.js → chunk-IHM35ILL.js} +1 -1
  25. package/Marketplace/{chunk-DH7A3MMY.js → chunk-IM76S6ZZ.js} +1 -1
  26. package/Marketplace/{chunk-HIQEVY5J.js → chunk-IMXSLLAA.js} +1 -1
  27. package/Marketplace/chunk-IU6HPLQ3.js +1 -0
  28. package/Marketplace/{chunk-EGVKBYT5.js → chunk-J6UEWWQX.js} +1 -1
  29. package/Marketplace/{chunk-OHLIZGJ7.js → chunk-JF3MRSX7.js} +1 -1
  30. package/Marketplace/{chunk-XNEL4SD6.js → chunk-KKKJRBXL.js} +1 -1
  31. package/Marketplace/{chunk-QZHSCJJ5.js → chunk-KRXW5FTG.js} +1 -1
  32. package/Marketplace/{chunk-I5WJTOZD.js → chunk-L5URITG7.js} +1 -1
  33. package/Marketplace/{chunk-BJCKTMTZ.js → chunk-LBMDUJHZ.js} +1 -1
  34. package/Marketplace/{chunk-JDAC3DI7.js → chunk-LDVARU5U.js} +1 -1
  35. package/Marketplace/{chunk-CB54UHPH.js → chunk-LWKBNKVO.js} +1 -1
  36. package/Marketplace/{chunk-LUN7S6P4.js → chunk-MGOWDXUM.js} +1 -1
  37. package/Marketplace/{chunk-WAE5XPQ6.js → chunk-MZEDRDUX.js} +1 -1
  38. package/Marketplace/{chunk-KHQYY4CP.js → chunk-NB75ACST.js} +1 -1
  39. package/Marketplace/{chunk-QXKJ6AH2.js → chunk-NLTXIY5M.js} +1 -1
  40. package/Marketplace/{chunk-CNK2ETMZ.js → chunk-NWCS6OKR.js} +1 -1
  41. package/Marketplace/{chunk-H5BAFHZZ.js → chunk-OULCNSCZ.js} +1 -1
  42. package/Marketplace/{chunk-X6OLODND.js → chunk-OVPZBBEC.js} +2 -2
  43. package/Marketplace/{chunk-TKW6MA5X.js → chunk-OYMJWISR.js} +1 -1
  44. package/Marketplace/{chunk-CAF3EESF.js → chunk-PFX4CZVM.js} +1 -1
  45. package/Marketplace/{chunk-4FIQ677Y.js → chunk-Q5ZWBTZ2.js} +1 -1
  46. package/Marketplace/{chunk-5LIHLHZ2.js → chunk-QKOBK5RO.js} +1 -1
  47. package/Marketplace/{chunk-IKBHUDBF.js → chunk-RKNA2RX4.js} +1 -1
  48. package/Marketplace/chunk-RPMRAFUY.js +39 -0
  49. package/Marketplace/{chunk-RUG3NZNS.js → chunk-RWEMXJWP.js} +1 -1
  50. package/Marketplace/{chunk-WGNBD2TG.js → chunk-RWRP376T.js} +5 -5
  51. package/Marketplace/{chunk-Q27U6EXR.js → chunk-TP2HONHJ.js} +1 -1
  52. package/Marketplace/{chunk-KS42UW22.js → chunk-TRRI6HFB.js} +1 -1
  53. package/Marketplace/{chunk-7O2LUPOW.js → chunk-UCSWGVFE.js} +1 -1
  54. package/Marketplace/{chunk-QA6BHZKW.js → chunk-UFNZF4K5.js} +1 -1
  55. package/Marketplace/{chunk-MPXURNR4.js → chunk-URBKK5K6.js} +1 -1
  56. package/Marketplace/{chunk-6H6S75XM.js → chunk-USCL6HQE.js} +1 -1
  57. package/Marketplace/{chunk-CLLCMDP4.js → chunk-WB4KZY2I.js} +1 -1
  58. package/Marketplace/{chunk-TEIBLAW7.js → chunk-XEVR4BVC.js} +2 -2
  59. package/Marketplace/{chunk-ENUKURHL.js → chunk-XTLLDXB7.js} +1 -1
  60. package/Marketplace/{chunk-HO6I7ZN6.js → chunk-Y2IG7JAU.js} +1 -1
  61. package/Marketplace/{chunk-GPNYP6CI.js → chunk-YIPITET7.js} +1 -1
  62. package/Marketplace/{chunk-TFM4P7KH.js → chunk-YN7U2IRK.js} +1 -1
  63. package/Marketplace/{chunk-LC5NUVMA.js → chunk-ZJHL6VDX.js} +1 -1
  64. package/Marketplace/{chunk-EBAG6BIX.js → chunk-ZP6L6END.js} +1 -1
  65. package/Marketplace/{chunk-DANZQU6U.js → chunk-ZPR2KAKZ.js} +1 -1
  66. package/Marketplace/index.html +2 -2
  67. package/Marketplace/{main-MTBOIFWC.js → main-WKNVNRPA.js} +1 -1
  68. package/Marketplace/media/color-3LUHUBGQ.png +0 -0
  69. package/Marketplace/media/hue-RMMBQOAC.png +0 -0
  70. package/Marketplace/styles-ISUUHHCL.css +1 -0
  71. package/package.json +1 -1
  72. package/Marketplace/chunk-ANO5F2BV.js +0 -8
  73. package/Marketplace/chunk-FWUAZZDI.js +0 -1
  74. package/Marketplace/chunk-JIRDXTRJ.js +0 -1
  75. package/Marketplace/chunk-TZO7ICWB.js +0 -1
  76. package/Marketplace/styles-JRURH5LL.css +0 -1
  77. /package/Marketplace/{chunk-7G5B67SI.js → chunk-F7MYTDP3.js} +0 -0
  78. /package/Marketplace/{chunk-SZQIM5RM.js → chunk-GV43X5PS.js} +0 -0
  79. /package/Marketplace/{chunk-4YO3BZ5L.js → chunk-KSBVZVMH.js} +0 -0
  80. /package/Marketplace/{chunk-DILTMQOY.js → chunk-NXHVARCF.js} +0 -0
  81. /package/Marketplace/{chunk-HPDCVTZM.js → chunk-OKO7WTOG.js} +0 -0
  82. /package/Marketplace/{polyfills-WRDNL3NI.js → polyfills-STQSWRUI.js} +0 -0
@@ -1 +1 @@
1
- import{a as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-4ZIFLVEZ.js";import{t as N,u as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-EGVKBYT5.js";import{u as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-OGA3XTQE.js";import{c as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-SZQIM5RM.js";import{$a as x,Ea as i,Fa as T,Ia as w,Jb as I,Ma as Z,Na as c,Ta as s,Vb as O,Xb as U,Ya as a,Yb as B,Za as l,_a as m,ab as v,cb as C,da as k,dc as D,gb as f,gc as $,ia as _,ib as p,ja as h,lb as j,nb as P,ob as g,pb as b,qb as S,rb as L,tb as M,vb as y,ya as u}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";function q(e,o){if(e&1){let t=C();x(0),a(1,"img",19),f("click",function(n){_(t);let d=p();return h(d.openBiggerPicture(n))}),l(),v()}if(e&2){let t=p();i(1),c("src",t.image,u)}}function G(e,o){e&1&&m(0,"img",20)}function Q(e,o){if(e&1&&(x(0),a(1,"span",24)(2,"a",25),m(3,"i",26),l()(),v()),e&2){let t=p(2);i(2),c("href",t.redirectUrl,u)}}function X(e,o){if(e&1&&(a(0,"div",21),m(1,"i",22),a(2,"span"),g(3),l(),s(4,Q,4,1,"ng-container",23),l()),e&2){let t=p();i(3),b(t.code),i(1),c("ngIf",t.code!=="SKU not assigned"&&t.showRedirectIcon)}}function Y(e,o){if(e&1){let t=C();a(0,"div",27),f("click",function(){_(t);let n=p();return h(n.onEventDesc())}),m(1,"i",28),a(2,"span"),g(3),l()()}if(e&2){let t=p();i(3),b(t.description)}}function ee(e,o){if(e&1){let t=C();a(0,"div",29)(1,"input",30),f("change",function(n){_(t);let d=p();return h(d.onCheck(n.target.checked))}),l()()}}function te(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onDownload())}),m(1,"i",32),g(2," Download "),l()}}function ne(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onUpload())}),m(1,"i",33),g(2," Upload "),l()}}function ie(e,o){if(e&1){let t=C();a(0,"button",34),f("click",function(){_(t);let n=p();return h(n.onScan())}),m(1,"i",35),g(2," Scan "),l()}}var oe=e=>({"me-3":e});function re(e,o){if(e&1&&(x(0),a(1,"a",37),m(2,"img",38),l(),v()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(1),j("href",t.Url,u),i(1),c("ngClass",y(4,oe,r!=n.channels.length-1))("src",n.getChannelLogo(t),u)("matTooltip",t.Title?t.Title:t.Name)}}function ae(e,o){if(e&1&&(x(0),s(1,re,3,6,"ng-container",36),v()),e&2){let t=p();i(1),c("ngForOf",t.channels)}}var ce=e=>({"border-bottom pb-2":e});function le(e,o){if(e&1&&(a(0,"li")(1,"div",42)(2,"div",43)(3,"a",37),m(4,"img",44),a(5,"span",45),g(6),l()()()()()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(2),c("ngClass",y(4,ce,r!=n.channels.length-1)),i(1),c("href",t.Url,u),i(1),c("src",n.getChannelLogo(t),u),i(2),b(t.Title)}}function de(e,o){if(e&1&&(a(0,"div",39)(1,"button",40),g(2),l(),a(3,"ul",41),s(4,le,7,6,"li",36),l()()),e&2){let t=p();i(2),S(" ",t.channels.length," CHANNELS "),i(2),c("ngForOf",t.channels)}}var Se=(()=>{let o=class o{constructor(r){this.biggerPictureService=r,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.onUploadEvent=new w,this.onScanEvent=new w,this.checkBoxChange=new w,this.onDescEvent=new w,this.onDownloadEvent=new w}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let r=localStorage.getItem("Authorization"),n=JSON.parse(r)?.Host;this.redirectUrl=`https://${n}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(r){this.checkBoxChange.emit(r)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}getChannelLogo(r){return V.getChannelLogoByTypeId(r.TypeID)}openBiggerPicture(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload"},standalone:!0,features:[M],decls:26,vars:11,consts:[[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],["class","text-end gx-0",4,"ngIf"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],["class","fs-6 btn btn-light btn-sm",3,"click",4,"ngIf"],["DROPDOWN",""],[1,"rounded","imgUpload","float-left",3,"src","click"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fas","fa-external-link-alt"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download"],["aria-hidden","true",1,"fa","fa-upload"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-spinner"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,q,2,1,"ng-container",6)(7,G,1,0,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),f("click",function(){return d.onEventDesc()}),g(11),l(),s(12,X,5,2,"div",10)(13,Y,4,1,"div",11),l(),a(14,"div",12)(15,"div",13),s(16,ee,2,0,"div",14),l()()()(),a(17,"div",15)(18,"div"),s(19,te,3,0,"button",16)(20,ne,3,0,"button",16)(21,ie,3,0,"button",17),l(),a(22,"div"),s(23,ae,2,1,"ng-container",6)(24,de,5,2,"ng-template",null,18,I),l()()()),n&2){let E=P(8),A=P(25);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(1),c("ngIf",d.description),i(3),c("ngIf",d.showCheckBox),i(3),c("ngIf",d.downloadButton),i(1),c("ngIf",d.uploadButton),i(1),c("ngIf",d.scanButton),i(2),c("ngIf",d.channels.length<4)("ngIfElse",A)}},dependencies:[D,O,U,B,F,z,N],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let e=o;return e})();function pe(e,o){if(e&1){let t=C();x(0),a(1,"img",14),f("click",function(n){_(t);let d=p();return h(d.onZoomImage(n))}),l(),v()}if(e&2){let t=p();i(1),c("ngSrc",t.image)("fill",!0)}}function me(e,o){e&1&&m(0,"img",15),e&2&&c("fill",!0)}function se(e,o){if(e&1&&(a(0,"div",16),m(1,"i",17),a(2,"span"),g(3),l()()),e&2){let t=p();i(3),b(t.code)}}var ge=e=>({"border-bottom":e});function ue(e,o){if(e&1&&(x(0),a(1,"div",27)(2,"div",28),g(3),l(),a(4,"div")(5,"a",29),m(6,"i",30),l()()(),v()),e&2){let t=o.$implicit,r=o.index,n=p().$implicit;i(1),c("ngClass",y(4,ge,r!==(n==null?null:n.Variants.length)-1)),i(2),L(" ",t.ProductName," - ",t.Name," "),i(2),c("href",t.URL,u)}}var fe=e=>({"border-bottom-0":e});function _e(e,o){if(e&1&&(a(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),m(4,"img",22),a(5,"span",23),g(6),l()()()(),a(7,"div",24)(8,"div",25),s(9,ue,7,6,"ng-container",26),l()()()),e&2){let t=o.$implicit,r=o.index,n=p();c("ngClass",y(10,fe,n.channels.length-1==r)),i(1),c("id","heading"+r+n.code+n.id),i(1),Z("data-bs-target","#collapse"+r+n.code+n.id)("aria-controls","#collapse"+r+n.code+n.id),i(2),c("src",n.getChannelLogo(t.TypeID),u),i(1),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t.ChannelName:""),i(1),b(t.ChannelName),i(1),c("id","collapse"+r+n.code+n.id),Z("aria-labelledby","heading"+r+n.code+n.id),i(2),c("ngForOf",t.Variants)}}var Oe=(()=>{let o=class o{constructor(r){this.biggerPictureService=r}getChannelLogo(r){return V.getChannelLogoByTypeId(r)}onZoomImage(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",id:"id"},standalone:!0,features:[M],decls:16,vars:5,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"ngSrc","fill","click"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa","fa-external-link-alt"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,pe,2,2,"ng-container",6)(7,me,1,1,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),g(11),l(),s(12,se,4,1,"div",10),l()()(),a(13,"div",11)(14,"div",12),s(15,_e,10,12,"div",13),l()()()),n&2){let E=P(8);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(3),c("ngForOf",d.channels)}},dependencies:[D,O,U,B,F,z,N,$],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();export{Se as a,Oe as b};
1
+ import{a as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-5ANLTFUN.js";import{t as N,u as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-J6UEWWQX.js";import{u as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-BHYFVY4A.js";import{c as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GV43X5PS.js";import{$a as x,Ea as i,Fa as T,Ia as w,Kb as I,Ma as Z,Na as c,Ta as s,Wb as O,Ya as a,Yb as U,Za as l,Zb as B,_a as m,ab as v,cb as C,da as k,ec as D,gb as f,hc as $,ia as _,ib as p,ja as h,lb as j,nb as P,ob as g,pb as b,qb as S,rb as L,tb as M,vb as y,ya as u}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js";function q(e,o){if(e&1){let t=C();x(0),a(1,"img",19),f("click",function(n){_(t);let d=p();return h(d.openBiggerPicture(n))}),l(),v()}if(e&2){let t=p();i(1),c("src",t.image,u)}}function G(e,o){e&1&&m(0,"img",20)}function Q(e,o){if(e&1&&(x(0),a(1,"span",24)(2,"a",25),m(3,"i",26),l()(),v()),e&2){let t=p(2);i(2),c("href",t.redirectUrl,u)}}function X(e,o){if(e&1&&(a(0,"div",21),m(1,"i",22),a(2,"span"),g(3),l(),s(4,Q,4,1,"ng-container",23),l()),e&2){let t=p();i(3),b(t.code),i(1),c("ngIf",t.code!=="SKU not assigned"&&t.showRedirectIcon)}}function Y(e,o){if(e&1){let t=C();a(0,"div",27),f("click",function(){_(t);let n=p();return h(n.onEventDesc())}),m(1,"i",28),a(2,"span"),g(3),l()()}if(e&2){let t=p();i(3),b(t.description)}}function ee(e,o){if(e&1){let t=C();a(0,"div",29)(1,"input",30),f("change",function(n){_(t);let d=p();return h(d.onCheck(n.target.checked))}),l()()}}function te(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onDownload())}),m(1,"i",32),g(2," Download "),l()}}function ne(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onUpload())}),m(1,"i",33),g(2," Upload "),l()}}function ie(e,o){if(e&1){let t=C();a(0,"button",34),f("click",function(){_(t);let n=p();return h(n.onScan())}),m(1,"i",35),g(2," Scan "),l()}}var oe=e=>({"me-3":e});function re(e,o){if(e&1&&(x(0),a(1,"a",37),m(2,"img",38),l(),v()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(1),j("href",t.Url,u),i(1),c("ngClass",y(4,oe,r!=n.channels.length-1))("src",n.getChannelLogo(t),u)("matTooltip",t.Title?t.Title:t.Name)}}function ae(e,o){if(e&1&&(x(0),s(1,re,3,6,"ng-container",36),v()),e&2){let t=p();i(1),c("ngForOf",t.channels)}}var ce=e=>({"border-bottom pb-2":e});function le(e,o){if(e&1&&(a(0,"li")(1,"div",42)(2,"div",43)(3,"a",37),m(4,"img",44),a(5,"span",45),g(6),l()()()()()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(2),c("ngClass",y(4,ce,r!=n.channels.length-1)),i(1),c("href",t.Url,u),i(1),c("src",n.getChannelLogo(t),u),i(2),b(t.Title)}}function de(e,o){if(e&1&&(a(0,"div",39)(1,"button",40),g(2),l(),a(3,"ul",41),s(4,le,7,6,"li",36),l()()),e&2){let t=p();i(2),S(" ",t.channels.length," CHANNELS "),i(2),c("ngForOf",t.channels)}}var Se=(()=>{let o=class o{constructor(r){this.biggerPictureService=r,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.onUploadEvent=new w,this.onScanEvent=new w,this.checkBoxChange=new w,this.onDescEvent=new w,this.onDownloadEvent=new w}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let r=localStorage.getItem("Authorization"),n=JSON.parse(r)?.Host;this.redirectUrl=`https://${n}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(r){this.checkBoxChange.emit(r)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}getChannelLogo(r){return V.getChannelLogoByTypeId(r.TypeID)}openBiggerPicture(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload"},standalone:!0,features:[M],decls:26,vars:11,consts:[[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],["class","text-end gx-0",4,"ngIf"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],["class","fs-6 btn btn-light btn-sm",3,"click",4,"ngIf"],["DROPDOWN",""],[1,"rounded","imgUpload","float-left",3,"src","click"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fas","fa-external-link-alt"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download"],["aria-hidden","true",1,"fa","fa-upload"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-spinner"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,q,2,1,"ng-container",6)(7,G,1,0,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),f("click",function(){return d.onEventDesc()}),g(11),l(),s(12,X,5,2,"div",10)(13,Y,4,1,"div",11),l(),a(14,"div",12)(15,"div",13),s(16,ee,2,0,"div",14),l()()()(),a(17,"div",15)(18,"div"),s(19,te,3,0,"button",16)(20,ne,3,0,"button",16)(21,ie,3,0,"button",17),l(),a(22,"div"),s(23,ae,2,1,"ng-container",6)(24,de,5,2,"ng-template",null,18,I),l()()()),n&2){let E=P(8),A=P(25);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(1),c("ngIf",d.description),i(3),c("ngIf",d.showCheckBox),i(3),c("ngIf",d.downloadButton),i(1),c("ngIf",d.uploadButton),i(1),c("ngIf",d.scanButton),i(2),c("ngIf",d.channels.length<4)("ngIfElse",A)}},dependencies:[D,O,U,B,F,z,N],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let e=o;return e})();function pe(e,o){if(e&1){let t=C();x(0),a(1,"img",14),f("click",function(n){_(t);let d=p();return h(d.onZoomImage(n))}),l(),v()}if(e&2){let t=p();i(1),c("ngSrc",t.image)("fill",!0)}}function me(e,o){e&1&&m(0,"img",15),e&2&&c("fill",!0)}function se(e,o){if(e&1&&(a(0,"div",16),m(1,"i",17),a(2,"span"),g(3),l()()),e&2){let t=p();i(3),b(t.code)}}var ge=e=>({"border-bottom":e});function ue(e,o){if(e&1&&(x(0),a(1,"div",27)(2,"div",28),g(3),l(),a(4,"div")(5,"a",29),m(6,"i",30),l()()(),v()),e&2){let t=o.$implicit,r=o.index,n=p().$implicit;i(1),c("ngClass",y(4,ge,r!==(n==null?null:n.Variants.length)-1)),i(2),L(" ",t.ProductName," - ",t.Name," "),i(2),c("href",t.URL,u)}}var fe=e=>({"border-bottom-0":e});function _e(e,o){if(e&1&&(a(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),m(4,"img",22),a(5,"span",23),g(6),l()()()(),a(7,"div",24)(8,"div",25),s(9,ue,7,6,"ng-container",26),l()()()),e&2){let t=o.$implicit,r=o.index,n=p();c("ngClass",y(10,fe,n.channels.length-1==r)),i(1),c("id","heading"+r+n.code+n.id),i(1),Z("data-bs-target","#collapse"+r+n.code+n.id)("aria-controls","#collapse"+r+n.code+n.id),i(2),c("src",n.getChannelLogo(t.TypeID),u),i(1),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t.ChannelName:""),i(1),b(t.ChannelName),i(1),c("id","collapse"+r+n.code+n.id),Z("aria-labelledby","heading"+r+n.code+n.id),i(2),c("ngForOf",t.Variants)}}var Oe=(()=>{let o=class o{constructor(r){this.biggerPictureService=r}getChannelLogo(r){return V.getChannelLogoByTypeId(r)}onZoomImage(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",id:"id"},standalone:!0,features:[M],decls:16,vars:5,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"ngSrc","fill","click"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa","fa-external-link-alt"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,pe,2,2,"ng-container",6)(7,me,1,1,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),g(11),l(),s(12,se,4,1,"div",10),l()()(),a(13,"div",11)(14,"div",12),s(15,_e,10,12,"div",13),l()()()),n&2){let E=P(8);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(3),c("ngForOf",d.channels)}},dependencies:[D,O,U,B,F,z,N,$],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();export{Se as a,Oe as b};
@@ -0,0 +1 @@
1
+ import{a as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GSRXSBIM.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-LDVARU5U.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-NB75ACST.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-Y2IG7JAU.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-MGOWDXUM.js";import{b as u}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-MZEDRDUX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-IEBL2FLF.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-DLMJHJC2.js";import{a as f}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GYBKA75Z.js";import{w as l}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-J6UEWWQX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-NWCS6OKR.js";import{u as d}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-BHYFVY4A.js";import{$ as r,Gc as s,Kc as m,_a as c,da as a,ea as i,ec as n}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OKO7WTOG.js";var C=(()=>{let t=class t{constructor(){}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a({type:t,selectors:[["app-report"]],decls:1,vars:0,template:function(e,O){e&1&&c(0,"router-outlet")},dependencies:[s],styles:["ul[_ngcontent-%COMP%] > li.dropdown-item[_ngcontent-%COMP%]{font-size:.6875rem!important}"]});let o=t;return o})();var y=[{path:"",component:C,children:[{path:"",redirectTo:"order",pathMatch:"full"},{path:"order",loadChildren:()=>import("https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-AFXFMUBY.js").then(o=>o.OrderModule),canActivate:[f]}]}],g=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i({type:t}),t.\u0275inj=r({imports:[n,m.forChild(y)]});let o=t;return o})();var z=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=i({type:t}),t.\u0275inj=r({imports:[n,u,g,d,l,m,h]});let o=t;return o})();export{z as ReportModule};
@@ -1 +1 @@
1
- import{a as me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-PASXSTSS.js";import{b as T}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-JDAC3DI7.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-KHQYY4CP.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-HO6I7ZN6.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-LUN7S6P4.js";import{a as pe,b as se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WAE5XPQ6.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-EIQQEQMI.js";import{e as ie}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-DANZQU6U.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-Y4RCGXQK.js";import{a as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-XG47KOUR.js";import{v as D,w as le}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-EGVKBYT5.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CNK2ETMZ.js";import{u as ae}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-OGA3XTQE.js";import{c as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-SZQIM5RM.js";import{$ as Q,$b as Z,Ab as x,Bb as w,Ea as l,Fa as y,Fc as re,Hc as ne,Jc as oe,Na as s,P as U,Qa as z,Ta as u,W as $,Xb as Y,Ya as o,Yb as _,Za as a,_ as G,_a as g,ac as F,ba as V,bb as H,cc as ee,da as v,dc as te,ea as J,gb as d,ha as K,ib as C,lb as j,ob as f,pb as R,qb as q,ub as W,ya as k,zb as X}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-HPDCVTZM.js";var de=(()=>{let r=class r{constructor(){this.reportTabs=[{Title:"1 - New Order",Url:"/menu/report/order/sync-order"},{Title:"2 - Ready to Ship",Url:"/menu/report/order/invoice"},{Title:"3 - Shipped",Url:"/menu/report/order/delivery"},{Title:"4 - Completed",Url:"/menu/report/order/payment"},{Title:"All",Url:"/menu/report/order/all"}]}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["app-order"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,i){t&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),g(3,"nav-tab",2),a()()(),g(4,"router-outlet")),t&2&&(l(3),s("Tabs",i.reportTabs))},dependencies:[pe,re],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]});let n=r;return n})();var S=class{};var P=(()=>{let r=class r{constructor(e){this.http=e}GetLoader(){return this.http.post("/api/Report/GetLoader",{})}GetSyncOrder(e){return new Promise((t,i)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/Invoice",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncDelivery(e){return new Promise((t,i)=>{this.http.post("/api/Report/Delivery",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncPayment(e){return new Promise((t,i)=>{this.http.post("/api/Report/Payment",JSON.stringify(e)).subscribe(m=>{t(m)})})}getAllReport(e){return this.http.post("/api/Report/all",JSON.stringify(e))}};r.\u0275fac=function(t){return new(t||r)(V(ie))},r.\u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var E=function(n){return n[n.OK=200]="OK",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.CONFLICT=409]="CONFLICT",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n}(E||{});function Ce(n,r){if(n&1&&(o(0,"th",9)(1,"div",10)(2,"h4"),f(3),a(),o(4,"small",11),f(5),a()()()),n&2){let p=r.$implicit,e=C();l(3),R(p),l(1),z(e.getTextBgColor(p)),l(1),R(e.getHeaderStatusDesc(p))}}var ve=()=>["/menu/log/order"],Te=(n,r,p,e,t)=>({responseCode:n,From:r,to:p,actionType:e,ChannelID:t});function Se(n,r){if(n&1&&(o(0,"td",14)(1,"a",15),f(2),a()()),n&2){let p=r.$implicit,e=C().$implicit,t=C();l(1),s("routerLink",W(3,ve))("queryParams",X(4,Te,p.Key,t.fromQueryParam,t.toQueryParam,t.type,e.ChannelID)),l(1),q(" ",p.Value," ")}}function _e(n,r){if(n&1&&(o(0,"tr")(1,"td")(2,"a",12),g(3,"img",13),a()(),o(4,"td")(5,"div")(6,"a",12),f(7),a()(),o(8,"div"),f(9),a()(),u(10,Se,3,10,"td",8),a()),n&2){let p=r.$implicit,e=C();l(2),j("href",p.Url,k),l(1),s("src",e.getChannelLogo(p.Type),k),l(3),j("href",p.Url,k),l(1),R(p.Name),l(2),R(p.Url),l(1),s("ngForOf",p.list)}}function Fe(n,r){if(n&1&&(o(0,"td",14)(1,"div",16),f(2),x(3,"number"),a()()),n&2){let p=r.$implicit;l(2),R(w(3,1,p.total))}}var b=(()=>{let r=class r{constructor(){this.type=null,this.headerStatus=E,this.listCalculationStatusCode=[]}set from(e){e&&(this.fromQueryParam=new Date(e).toJSON().toString())}set to(e){e&&(this.toQueryParam=new Date(e).toJSON().toString())}ngOnChanges(e){e.result&&this.calculateStatusCode()}getHeaderStatusDesc(e){let t=null;switch(e){case E.BAD_REQUEST:t="BAD REQUEST";break;case E.CONFLICT:t="CONFLICT";break;case E.INTERNAL_SERVER_ERROR:t="INTERNAL SERVER ERROR";break;case E.NOT_FOUND:t="NOT FOUND";break;default:t="OK";break}return t}getTextBgColor(e){let t=null;switch(e){case E.OK:t="bg-success";break;case E.INTERNAL_SERVER_ERROR:t="bg-danger";break;default:t="bg-warning";break}return t}getChannelLogo(e){return h.getChannelLogoByTypeId(e)}calculateStatusCode(){if(this.listCalculationStatusCode=[],this.result){let e,t;this.concatStatusCode().forEach(i=>{e=this.listCalculationStatusCode.findIndex(m=>m.status==i.Key),t=e!==-1,t?this.listCalculationStatusCode[e].total+=i.Value:this.listCalculationStatusCode=[...this.listCalculationStatusCode,{status:i.Key,total:i.Value}]})}}concatStatusCode(){return this.result.map(e=>e.list).reduce((e,t)=>[...e,...t])}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["app-table-report"]],inputs:{header:"header",result:"result",from:"from",to:"to",type:"type"},features:[K],decls:15,vars:3,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","5%"],["class","text-start","style","width: 10%;",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"text-center","h3","fw-bold"],["class","text-start",4,"ngFor","ngForOf"],[1,"text-start",2,"width","10%"],[1,"d-block"],[1,"text-white","p-1","rounded","response-desc"],["target","_blank",3,"href"],[2,"width","24px","height","24px",3,"src"],[1,"text-start"],[1,"h3","text-primary","fw-bold","ms-1",3,"routerLink","queryParams"],[1,"d-inline-block","h3","text-primary","fw-bold","ms-1"]],template:function(t,i){t&1&&(o(0,"table",0)(1,"thead",1)(2,"tr"),g(3,"th",2),o(4,"th",3),f(5,"Channel"),a(),u(6,Ce,6,4,"th",4),a()(),o(7,"tbody"),u(8,_e,11,6,"tr",5),a(),o(9,"tfoot")(10,"tr")(11,"td",6)(12,"div",7),f(13,"Total"),a()(),u(14,Fe,4,3,"td",8),a()()()),t&2&&(l(6),s("ngForOf",i.header),l(2),s("ngForOf",i.result),l(6),s("ngForOf",i.listCalculationStatusCode))},dependencies:[Y,ne,ee],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]});let n=r;return n})();function De(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",0)}}var ce=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.pageTitle="New Order";let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncOrder(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-sales-order"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.getChannelLogs()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,De,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.pageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function Pe(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",1)}}var fe=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.PageTitle="Ready to Ship";let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-invoice"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,Pe,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.PageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function be(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",3)}}var he=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S;let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Shipped (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncDelivery(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-delivery"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,be,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.PageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function Ee(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",4)}}var ue=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.PageTitle="Completed";let i=new Date;this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Completed (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncPayment(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-payment"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,Ee,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.PageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function Ie(n,r){n&1&&H(0)}function Re(n,r){if(n&1&&(o(0,"div",8)(1,"div",9),g(2,"app-table-report",10),a()()),n&2){let p=r.ngIf,e=C();l(2),s("result",p.Body)("header",p.Header)("from",e.filter==null?null:e.filter.From)("to",e.filter==null?null:e.filter.To)}}var ge=(()=>{let r=class r{constructor(e,t){this.reportOrderService=e,this.datePipe=t,this.filter=new S}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=h.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":t+"-"} ${i})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe($(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(U())}onFilter(){this.updatePageTitle(),this.initData()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-all"]],decls:15,vars:10,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],[4,"ngIf"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"div")(5,"h6"),f(6,"From/To"),a(),o(7,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(8,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()()(),o(9,"content")(10,"div",5),u(11,Ie,1,0,"ng-container",6),x(12,"async"),u(13,Re,3,4,"div",7),x(14,"async"),a()()()),t&2&&(s("headerTitle",i.pageTitle)("hideSearchBox",!0),l(7),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",w(12,6,i.pageLoader$)),l(2),s("ngIf",w(14,8,i.reportData$)))},dependencies:[_,D,T,b,Z]});let n=r;return n})();var Oe=[{path:"",component:de,children:[{path:"",redirectTo:"sync-order",pathMatch:"full"},{path:"sync-order",component:ce,canActivate:[O],data:{title:"Sync Order"}},{path:"invoice",component:fe,canActivate:[O],data:{title:"Sync Invoice"}},{path:"delivery",component:he,canActivate:[O],data:{title:"Sync Delivery"}},{path:"payment",component:ue,canActivate:[O],data:{title:"Sync Payment"}},{path:"all",component:ge,canActivate:[O],data:{title:"All Report"}}]}],gt=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=J({type:r}),r.\u0275inj=Q({imports:[te,se,ae,le,me,T,oe.forChild(Oe)]});let n=r;return n})();export{gt as OrderModule};
1
+ import{a as me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GSRXSBIM.js";import{b as T}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-LDVARU5U.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-NB75ACST.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-Y2IG7JAU.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-MGOWDXUM.js";import{a as pe,b as se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-MZEDRDUX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-IEBL2FLF.js";import{e as ie}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-ZPR2KAKZ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-DLMJHJC2.js";import{a as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GYBKA75Z.js";import{v as D,w as le}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-J6UEWWQX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-NWCS6OKR.js";import{u as ae}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-BHYFVY4A.js";import{c as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GV43X5PS.js";import{$ as Q,Bb as x,Cb as w,Ea as l,Fa as y,Gc as re,Ic as ne,Kc as oe,Na as s,P as U,Qa as z,Ta as u,W as $,Ya as o,Yb as Y,Za as a,Zb as _,_ as G,_a as g,ac as Z,ba as V,bb as H,bc as F,da as v,dc as ee,ea as J,ec as te,gb as d,ha as K,ib as C,lb as j,ob as f,pb as R,qb as q,ub as W,ya as k,zb as X}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OKO7WTOG.js";var de=(()=>{let r=class r{constructor(){this.reportTabs=[{Title:"1 - New Order",Url:"/menu/report/order/sync-order"},{Title:"2 - Ready to Ship",Url:"/menu/report/order/invoice"},{Title:"3 - Shipped",Url:"/menu/report/order/delivery"},{Title:"4 - Completed",Url:"/menu/report/order/payment"},{Title:"All",Url:"/menu/report/order/all"}]}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["app-order"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,i){t&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),g(3,"nav-tab",2),a()()(),g(4,"router-outlet")),t&2&&(l(3),s("Tabs",i.reportTabs))},dependencies:[pe,re],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]});let n=r;return n})();var S=class{};var P=(()=>{let r=class r{constructor(e){this.http=e}GetLoader(){return this.http.post("/api/Report/GetLoader",{})}GetSyncOrder(e){return new Promise((t,i)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/Invoice",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncDelivery(e){return new Promise((t,i)=>{this.http.post("/api/Report/Delivery",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncPayment(e){return new Promise((t,i)=>{this.http.post("/api/Report/Payment",JSON.stringify(e)).subscribe(m=>{t(m)})})}getAllReport(e){return this.http.post("/api/Report/all",JSON.stringify(e))}};r.\u0275fac=function(t){return new(t||r)(V(ie))},r.\u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var E=function(n){return n[n.OK=200]="OK",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.CONFLICT=409]="CONFLICT",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n}(E||{});function Ce(n,r){if(n&1&&(o(0,"th",9)(1,"div",10)(2,"h4"),f(3),a(),o(4,"small",11),f(5),a()()()),n&2){let p=r.$implicit,e=C();l(3),R(p),l(1),z(e.getTextBgColor(p)),l(1),R(e.getHeaderStatusDesc(p))}}var ve=()=>["/menu/log/order"],Te=(n,r,p,e,t)=>({responseCode:n,From:r,to:p,actionType:e,ChannelID:t});function Se(n,r){if(n&1&&(o(0,"td",14)(1,"a",15),f(2),a()()),n&2){let p=r.$implicit,e=C().$implicit,t=C();l(1),s("routerLink",W(3,ve))("queryParams",X(4,Te,p.Key,t.fromQueryParam,t.toQueryParam,t.type,e.ChannelID)),l(1),q(" ",p.Value," ")}}function _e(n,r){if(n&1&&(o(0,"tr")(1,"td")(2,"a",12),g(3,"img",13),a()(),o(4,"td")(5,"div")(6,"a",12),f(7),a()(),o(8,"div"),f(9),a()(),u(10,Se,3,10,"td",8),a()),n&2){let p=r.$implicit,e=C();l(2),j("href",p.Url,k),l(1),s("src",e.getChannelLogo(p.Type),k),l(3),j("href",p.Url,k),l(1),R(p.Name),l(2),R(p.Url),l(1),s("ngForOf",p.list)}}function Fe(n,r){if(n&1&&(o(0,"td",14)(1,"div",16),f(2),x(3,"number"),a()()),n&2){let p=r.$implicit;l(2),R(w(3,1,p.total))}}var b=(()=>{let r=class r{constructor(){this.type=null,this.headerStatus=E,this.listCalculationStatusCode=[]}set from(e){e&&(this.fromQueryParam=new Date(e).toJSON().toString())}set to(e){e&&(this.toQueryParam=new Date(e).toJSON().toString())}ngOnChanges(e){e.result&&this.calculateStatusCode()}getHeaderStatusDesc(e){let t=null;switch(e){case E.BAD_REQUEST:t="BAD REQUEST";break;case E.CONFLICT:t="CONFLICT";break;case E.INTERNAL_SERVER_ERROR:t="INTERNAL SERVER ERROR";break;case E.NOT_FOUND:t="NOT FOUND";break;default:t="OK";break}return t}getTextBgColor(e){let t=null;switch(e){case E.OK:t="bg-success";break;case E.INTERNAL_SERVER_ERROR:t="bg-danger";break;default:t="bg-warning";break}return t}getChannelLogo(e){return h.getChannelLogoByTypeId(e)}calculateStatusCode(){if(this.listCalculationStatusCode=[],this.result){let e,t;this.concatStatusCode().forEach(i=>{e=this.listCalculationStatusCode.findIndex(m=>m.status==i.Key),t=e!==-1,t?this.listCalculationStatusCode[e].total+=i.Value:this.listCalculationStatusCode=[...this.listCalculationStatusCode,{status:i.Key,total:i.Value}]})}}concatStatusCode(){return this.result.map(e=>e.list).reduce((e,t)=>[...e,...t])}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["app-table-report"]],inputs:{header:"header",result:"result",from:"from",to:"to",type:"type"},features:[K],decls:15,vars:3,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","5%"],["class","text-start","style","width: 10%;",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"text-center","h3","fw-bold"],["class","text-start",4,"ngFor","ngForOf"],[1,"text-start",2,"width","10%"],[1,"d-block"],[1,"text-white","p-1","rounded","response-desc"],["target","_blank",3,"href"],[2,"width","24px","height","24px",3,"src"],[1,"text-start"],[1,"h3","text-primary","fw-bold","ms-1",3,"routerLink","queryParams"],[1,"d-inline-block","h3","text-primary","fw-bold","ms-1"]],template:function(t,i){t&1&&(o(0,"table",0)(1,"thead",1)(2,"tr"),g(3,"th",2),o(4,"th",3),f(5,"Channel"),a(),u(6,Ce,6,4,"th",4),a()(),o(7,"tbody"),u(8,_e,11,6,"tr",5),a(),o(9,"tfoot")(10,"tr")(11,"td",6)(12,"div",7),f(13,"Total"),a()(),u(14,Fe,4,3,"td",8),a()()()),t&2&&(l(6),s("ngForOf",i.header),l(2),s("ngForOf",i.result),l(6),s("ngForOf",i.listCalculationStatusCode))},dependencies:[Y,ne,ee],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]});let n=r;return n})();function De(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",0)}}var ce=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.pageTitle="New Order";let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncOrder(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-sales-order"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.getChannelLogs()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,De,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.pageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function Pe(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",1)}}var fe=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.PageTitle="Ready to Ship";let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-invoice"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,Pe,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.PageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function be(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",3)}}var he=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S;let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Shipped (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncDelivery(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-delivery"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,be,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.PageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function Ee(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",4)}}var ue=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.PageTitle="Completed";let i=new Date;this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Completed (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncPayment(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-payment"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,Ee,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.PageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function Ie(n,r){n&1&&H(0)}function Re(n,r){if(n&1&&(o(0,"div",8)(1,"div",9),g(2,"app-table-report",10),a()()),n&2){let p=r.ngIf,e=C();l(2),s("result",p.Body)("header",p.Header)("from",e.filter==null?null:e.filter.From)("to",e.filter==null?null:e.filter.To)}}var ge=(()=>{let r=class r{constructor(e,t){this.reportOrderService=e,this.datePipe=t,this.filter=new S}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=h.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":t+"-"} ${i})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe($(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(U())}onFilter(){this.updatePageTitle(),this.initData()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-all"]],decls:15,vars:10,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],[4,"ngIf"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"div")(5,"h6"),f(6,"From/To"),a(),o(7,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(8,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()()(),o(9,"content")(10,"div",5),u(11,Ie,1,0,"ng-container",6),x(12,"async"),u(13,Re,3,4,"div",7),x(14,"async"),a()()()),t&2&&(s("headerTitle",i.pageTitle)("hideSearchBox",!0),l(7),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",w(12,6,i.pageLoader$)),l(2),s("ngIf",w(14,8,i.reportData$)))},dependencies:[_,D,T,b,Z]});let n=r;return n})();var Oe=[{path:"",component:de,children:[{path:"",redirectTo:"sync-order",pathMatch:"full"},{path:"sync-order",component:ce,canActivate:[O],data:{title:"Sync Order"}},{path:"invoice",component:fe,canActivate:[O],data:{title:"Sync Invoice"}},{path:"delivery",component:he,canActivate:[O],data:{title:"Sync Delivery"}},{path:"payment",component:ue,canActivate:[O],data:{title:"Sync Payment"}},{path:"all",component:ge,canActivate:[O],data:{title:"All Report"}}]}],gt=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=J({type:r}),r.\u0275inj=Q({imports:[te,se,ae,le,me,T,oe.forChild(Oe)]});let n=r;return n})();export{gt as OrderModule};
@@ -1 +1 @@
1
- import{_ as o}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";var d=(()=>{let e=class e{constructor(){}getParseToken(){let t=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(t.Token.access_token)}GetRoles(){let r=this.getParseToken()["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];return r||[]}ParseToken(t){try{let n=t.split(".")[0].replace("-","+").replace("_","/"),c=JSON.parse(window.atob(n)),l=t.split(".")[1].replace("-","+").replace("_","/"),s=JSON.parse(window.atob(l));return s.header=c,s}catch{return!1}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();export{d as a};
1
+ import{_ as o}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js";var d=(()=>{let e=class e{constructor(){}getParseToken(){let t=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(t.Token.access_token)}GetRoles(){let r=this.getParseToken()["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];return r||[]}ParseToken(t){try{let n=t.split(".")[0].replace("-","+").replace("_","/"),c=JSON.parse(window.atob(n)),l=t.split(".")[1].replace("-","+").replace("_","/"),s=JSON.parse(window.atob(l));return s.header=c,s}catch{return!1}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"});let a=e;return a})();export{d as a};
@@ -1 +1 @@
1
- import{b as L,c as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-45BCCCD5.js";import{a as k,b as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-GPNYP6CI.js";import{a as j,b as B}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-LC5NUVMA.js";import{a as H}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-FJAD3LVA.js";import{g as G}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-Y4RCGXQK.js";import{t as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-EGVKBYT5.js";import{_ as A}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-CNK2ETMZ.js";import{h as U,k as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-OGA3XTQE.js";import{b as d,c as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-SZQIM5RM.js";import{Ab as O,Cb as w,Ea as n,Fa as _,Gc as N,Na as a,Ta as v,Xb as E,Ya as l,Yb as P,Za as s,_a as M,ac as x,cb as S,da as T,gb as u,ia as C,ib as c,ja as g,ob as p,pb as b,qb as D,ya as I}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";function W(r,m){if(r&1&&(l(0,"mat-option",9)(1,"div",10),M(2,"img",11),l(3,"span"),p(4),s()()()),r&2){let o=m.$implicit;a("value",o.ID)("disabled",o.disabled),n(1),a("matTooltip",o.disabled?"Single Product Scan disabled for this type of Channel":null),n(1),a("src",o.Img,I),n(2),b(o.Name)}}function J(r,m){if(r&1){let o=S();l(0,"div")(1,"h5",12),p(2,"Scan Type"),s(),l(3,"mat-radio-group",13),u("ngModelChange",function(i){C(o);let e=c();return g(e.filter.ScanFull=i)}),l(4,"mat-radio-button",14),p(5," Full (Include Inactive Products) "),s(),l(6,"mat-radio-button",15),p(7," Active "),s()()()}if(r&2){let o=c();n(3),a("ngModel",o.filter.ScanFull),n(1),a("value",!0),n(2),a("value",!1)}}function K(r,m){if(r&1){let o=S();l(0,"div",16)(1,"h5",3),p(2),O(3,"date"),s(),l(4,"mat-radio-group",17),u("ngModelChange",function(i){C(o);let e=c();return g(e.filter.UpdatedProduct=i)}),l(5,"mat-radio-button",18),p(6," Scan All Products "),s(),l(7,"mat-radio-button",19),p(8," Scan Updated Products "),s()()()}if(r&2){let o=c();n(2),D(" Last Scan: ",w(3,4,o.selectedChannel.LastSync,"dd MMMM yyyy HH:mm")," "),n(2),a("ngModel",o.filter.UpdatedProduct),n(1),a("value",!1),n(2),a("value",!0)}}function $(r,m){if(r&1){let o=S();l(0,"div",16)(1,"h5",3),p(2," Scan Option "),s(),l(3,"mat-radio-group",20),u("ngModelChange",function(i){C(o);let e=c();return g(e.filter.Async=i)}),l(4,"mat-radio-button",21),p(5," Asynchronous (Get Notified when Complete) "),s(),l(6,"mat-radio-button",22),p(7," Synchronous (Wait until Complete) "),s()()()}if(r&2){let o=c();n(3),a("ngModel",o.filter.Async),n(1),a("value",!0),n(2),a("value",!1)}}var pe=(()=>{let m=class m{constructor(t,i,e){this.dialogRef=t,this.data=i,this.router=e,this.channelType=d,this.disabledChannelOption=!1,this.filter={ChannelID:h.GuidEMpty,ScanFull:!0,UpdatedProduct:!1,Async:!1},this.isSingleChannel=h.IsNotEmpty(i.isSingleChannel)?this.data.isSingleChannel:!1,this.disabledChannelOption=h.IsEmpty(i.disabledChannelOption)?!1:this.data.disabledChannelOption}ngOnInit(){this.initChannelOptions(),this.initFilter(),this.onSelectChannel(this.data?.filter?.ChannelID),this.initModalConfig()}initModalConfig(){this.modalConfig=new L,this.modalConfig.title="Scan Marketplace",this.modalConfig.bodyScrollable=!0}initFilter(){this.filter.ChannelID=this.data?.filter?.ChannelID,this.filter.ScanFull=!1}initChannelOptions(){this.channelOptions=JSON.parse(JSON.stringify(this.data.channelOptions)),this.isSingleChannel&&(this.channelOptions=this.channelOptions.map(t=>(t.disabled=!0,(t.TypeID==d.Tiktok||t.TypeID==d.Tokopedia||t.TypeID==d.Lazada||t.TypeID==d.WooCommerce)&&(t.disabled=!1),t)).sort(t=>t.disabled?1:-1))}onSelectChannel(t){let i=this.filterChannelById(t);this.selectedChannel=i,this.filter.Async=!0,this.iniHasScanUpdate(),this.setDefaultConfigUpdate()}setDefaultConfigUpdate(){this.filter.UpdatedProduct=!1,this.selectedChannel&&h.IsNotEmpty(this.selectedChannel.LastSync)&&(this.selectedChannel.TypeID==d.ShopeeV2||this.selectedChannel.TypeID==d.Tiktok||this.selectedChannel.TypeID==d.Lazada)&&(this.filter.UpdatedProduct=!0)}iniHasScanUpdate(){this.selectedChannel?.TypeID!=d.WooCommerce&&this.selectedChannel?.TypeID!=d.KalCare&&this.selectedChannel?.TypeID!=d.None&&h.IsNotEmpty(this.selectedChannel?.LastSync)&&!this.isSingleChannel?this.hasScanUpdate=!0:this.hasScanUpdate=!1}filterChannelById(t){let i;return this.channelOptions&&(i=this.channelOptions.find(e=>e.ID==t)),i}submit(){this.selectedChannel.TypeID==d.Tokopedia&&this.filter.UpdatedProduct?this.router.navigate(["/menu/products/download/by-url"]).then(()=>{this.dialogRef.close()}):(this.beforeSubmit(),this.dialogRef.close(this.filter))}beforeSubmit(){this.filter.UpdatedProduct&&(this.filter.Async=!1)}isNotEmpty(t){return h.IsNotEmpty(t)}onClose(){this.dialogRef.close()}};m.\u0275fac=function(i){return new(i||m)(_(k),_(R),_(N))},m.\u0275cmp=T({type:m,selectors:[["app-scan-dialog"]],decls:11,vars:8,consts:[[3,"dynamicValidated","config","onOk","onClose","onCancel"],["content",""],[1,"mx-4"],[1,"mb-3","fw-normal"],["appearance","outline",1,"w-100"],["name","channelid","placeholder","Channel",1,"mat-select-channel",3,"disabled","ngModel","ngModelChange"],["class","channel-option",3,"value","disabled",4,"ngFor","ngForOf"],[4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"channel-option",3,"value","disabled"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip",3,"matTooltip"],[2,"width","18px","margin-right","10px",3,"src"],[1,"mb-3","fw-normal","mt-3"],["name","scanType",1,"form-control","h-100","round",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Full Scan Product",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Only Active Product",1,"me-5",3,"value"],[1,"mt-8"],["name","ScanFull",1,"form-control","h-100","round",2,"line-height","2",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Scan product from beginning ( use this if you haven't scanned at all)",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Scan only products that have been updated since the last channel scan",1,"me-5",3,"value"],["name","Async",1,"form-control","h-100","round",2,"line-height","2",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltip","Scan is running in the background, status will be visible in the notification menu","matTooltipPosition","above",1,"me-5",3,"value"],[1,"me-5",3,"value"]],template:function(i,e){i&1&&(l(0,"modal-material",0),u("onOk",function(){return e.submit()})("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()}),l(1,"div",1)(2,"div",2)(3,"h5",3),p(4,"Select a Channel"),s(),l(5,"mat-form-field",4)(6,"mat-select",5),u("ngModelChange",function(y){return e.filter.ChannelID=y})("ngModelChange",function(y){return e.onSelectChannel(y)}),v(7,W,5,5,"mat-option",6),s()(),v(8,J,8,3,"div",7)(9,K,9,7,"div",8)(10,$,8,3,"div",8),s()()()),i&2&&(a("dynamicValidated",e.isNotEmpty(e.filter.ChannelID))("config",e.modalConfig),n(6),a("disabled",e.disabledChannelOption)("ngModel",e.filter.ChannelID),n(1),a("ngForOf",e.channelOptions),n(1),a("ngIf",!e.isSingleChannel&&e.isNotEmpty(e.filter.ChannelID)),n(1),a("ngIf",e.hasScanUpdate),n(1),a("ngIf",!(e.filter!=null&&e.filter.UpdatedProduct)&&!e.isSingleChannel&&e.isNotEmpty(e.filter.ChannelID)))},dependencies:[E,P,U,F,j,B,G,H,A,V,z,x],encapsulation:2});let r=m;return r})();export{pe as a};
1
+ import{b as L,c as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-H6D6Q2L2.js";import{a as k,b as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-YIPITET7.js";import{a as j,b as B}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-ZJHL6VDX.js";import{a as H}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-E6VM4GK2.js";import{g as G}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-DLMJHJC2.js";import{t as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-J6UEWWQX.js";import{_ as A}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-NWCS6OKR.js";import{h as U,k as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-BHYFVY4A.js";import{b as d,c as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-GV43X5PS.js";import{Bb as O,Db as w,Ea as n,Fa as _,Hc as N,Na as a,Ta as v,Ya as l,Yb as E,Za as s,Zb as P,_a as M,bc as x,cb as S,da as T,gb as u,ia as C,ib as c,ja as g,ob as p,pb as b,qb as D,ya as I}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js";function W(r,m){if(r&1&&(l(0,"mat-option",9)(1,"div",10),M(2,"img",11),l(3,"span"),p(4),s()()()),r&2){let o=m.$implicit;a("value",o.ID)("disabled",o.disabled),n(1),a("matTooltip",o.disabled?"Single Product Scan disabled for this type of Channel":null),n(1),a("src",o.Img,I),n(2),b(o.Name)}}function J(r,m){if(r&1){let o=S();l(0,"div")(1,"h5",12),p(2,"Scan Type"),s(),l(3,"mat-radio-group",13),u("ngModelChange",function(i){C(o);let e=c();return g(e.filter.ScanFull=i)}),l(4,"mat-radio-button",14),p(5," Full (Include Inactive Products) "),s(),l(6,"mat-radio-button",15),p(7," Active "),s()()()}if(r&2){let o=c();n(3),a("ngModel",o.filter.ScanFull),n(1),a("value",!0),n(2),a("value",!1)}}function K(r,m){if(r&1){let o=S();l(0,"div",16)(1,"h5",3),p(2),O(3,"date"),s(),l(4,"mat-radio-group",17),u("ngModelChange",function(i){C(o);let e=c();return g(e.filter.UpdatedProduct=i)}),l(5,"mat-radio-button",18),p(6," Scan All Products "),s(),l(7,"mat-radio-button",19),p(8," Scan Updated Products "),s()()()}if(r&2){let o=c();n(2),D(" Last Scan: ",w(3,4,o.selectedChannel.LastSync,"dd MMMM yyyy HH:mm")," "),n(2),a("ngModel",o.filter.UpdatedProduct),n(1),a("value",!1),n(2),a("value",!0)}}function $(r,m){if(r&1){let o=S();l(0,"div",16)(1,"h5",3),p(2," Scan Option "),s(),l(3,"mat-radio-group",20),u("ngModelChange",function(i){C(o);let e=c();return g(e.filter.Async=i)}),l(4,"mat-radio-button",21),p(5," Asynchronous (Get Notified when Complete) "),s(),l(6,"mat-radio-button",22),p(7," Synchronous (Wait until Complete) "),s()()()}if(r&2){let o=c();n(3),a("ngModel",o.filter.Async),n(1),a("value",!0),n(2),a("value",!1)}}var pe=(()=>{let m=class m{constructor(t,i,e){this.dialogRef=t,this.data=i,this.router=e,this.channelType=d,this.disabledChannelOption=!1,this.filter={ChannelID:h.GuidEMpty,ScanFull:!0,UpdatedProduct:!1,Async:!1},this.isSingleChannel=h.IsNotEmpty(i.isSingleChannel)?this.data.isSingleChannel:!1,this.disabledChannelOption=h.IsEmpty(i.disabledChannelOption)?!1:this.data.disabledChannelOption}ngOnInit(){this.initChannelOptions(),this.initFilter(),this.onSelectChannel(this.data?.filter?.ChannelID),this.initModalConfig()}initModalConfig(){this.modalConfig=new L,this.modalConfig.title="Scan Marketplace",this.modalConfig.bodyScrollable=!0}initFilter(){this.filter.ChannelID=this.data?.filter?.ChannelID,this.filter.ScanFull=!1}initChannelOptions(){this.channelOptions=JSON.parse(JSON.stringify(this.data.channelOptions)),this.isSingleChannel&&(this.channelOptions=this.channelOptions.map(t=>(t.disabled=!0,(t.TypeID==d.Tiktok||t.TypeID==d.Tokopedia||t.TypeID==d.Lazada||t.TypeID==d.WooCommerce)&&(t.disabled=!1),t)).sort(t=>t.disabled?1:-1))}onSelectChannel(t){let i=this.filterChannelById(t);this.selectedChannel=i,this.filter.Async=!0,this.iniHasScanUpdate(),this.setDefaultConfigUpdate()}setDefaultConfigUpdate(){this.filter.UpdatedProduct=!1,this.selectedChannel&&h.IsNotEmpty(this.selectedChannel.LastSync)&&(this.selectedChannel.TypeID==d.ShopeeV2||this.selectedChannel.TypeID==d.Tiktok||this.selectedChannel.TypeID==d.Lazada)&&(this.filter.UpdatedProduct=!0)}iniHasScanUpdate(){this.selectedChannel?.TypeID!=d.WooCommerce&&this.selectedChannel?.TypeID!=d.KalCare&&this.selectedChannel?.TypeID!=d.None&&h.IsNotEmpty(this.selectedChannel?.LastSync)&&!this.isSingleChannel?this.hasScanUpdate=!0:this.hasScanUpdate=!1}filterChannelById(t){let i;return this.channelOptions&&(i=this.channelOptions.find(e=>e.ID==t)),i}submit(){this.selectedChannel.TypeID==d.Tokopedia&&this.filter.UpdatedProduct?this.router.navigate(["/menu/products/download/by-url"]).then(()=>{this.dialogRef.close()}):(this.beforeSubmit(),this.dialogRef.close(this.filter))}beforeSubmit(){this.filter.UpdatedProduct&&(this.filter.Async=!1)}isNotEmpty(t){return h.IsNotEmpty(t)}onClose(){this.dialogRef.close()}};m.\u0275fac=function(i){return new(i||m)(_(k),_(R),_(N))},m.\u0275cmp=T({type:m,selectors:[["app-scan-dialog"]],decls:11,vars:8,consts:[[3,"dynamicValidated","config","onOk","onClose","onCancel"],["content",""],[1,"mx-4"],[1,"mb-3","fw-normal"],["appearance","outline",1,"w-100"],["name","channelid","placeholder","Channel",1,"mat-select-channel",3,"disabled","ngModel","ngModelChange"],["class","channel-option",3,"value","disabled",4,"ngFor","ngForOf"],[4,"ngIf"],["class","mt-8",4,"ngIf"],[1,"channel-option",3,"value","disabled"],["matTooltipPosition","above","matTooltipClass","custom-width-tooltip",3,"matTooltip"],[2,"width","18px","margin-right","10px",3,"src"],[1,"mb-3","fw-normal","mt-3"],["name","scanType",1,"form-control","h-100","round",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Full Scan Product",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Only Active Product",1,"me-5",3,"value"],[1,"mt-8"],["name","ScanFull",1,"form-control","h-100","round",2,"line-height","2",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Scan product from beginning ( use this if you haven't scanned at all)",1,"me-5",3,"value"],["matTooltipClass","custom-width-tooltip","matTooltipPosition","above","matTooltip","Scan only products that have been updated since the last channel scan",1,"me-5",3,"value"],["name","Async",1,"form-control","h-100","round",2,"line-height","2",3,"ngModel","ngModelChange"],["matTooltipClass","custom-width-tooltip","matTooltip","Scan is running in the background, status will be visible in the notification menu","matTooltipPosition","above",1,"me-5",3,"value"],[1,"me-5",3,"value"]],template:function(i,e){i&1&&(l(0,"modal-material",0),u("onOk",function(){return e.submit()})("onClose",function(){return e.onClose()})("onCancel",function(){return e.onClose()}),l(1,"div",1)(2,"div",2)(3,"h5",3),p(4,"Select a Channel"),s(),l(5,"mat-form-field",4)(6,"mat-select",5),u("ngModelChange",function(y){return e.filter.ChannelID=y})("ngModelChange",function(y){return e.onSelectChannel(y)}),v(7,W,5,5,"mat-option",6),s()(),v(8,J,8,3,"div",7)(9,K,9,7,"div",8)(10,$,8,3,"div",8),s()()()),i&2&&(a("dynamicValidated",e.isNotEmpty(e.filter.ChannelID))("config",e.modalConfig),n(6),a("disabled",e.disabledChannelOption)("ngModel",e.filter.ChannelID),n(1),a("ngForOf",e.channelOptions),n(1),a("ngIf",!e.isSingleChannel&&e.isNotEmpty(e.filter.ChannelID)),n(1),a("ngIf",e.hasScanUpdate),n(1),a("ngIf",!(e.filter!=null&&e.filter.UpdatedProduct)&&!e.isSingleChannel&&e.isNotEmpty(e.filter.ChannelID)))},dependencies:[E,P,U,F,j,B,G,H,A,V,z,x],encapsulation:2});let r=m;return r})();export{pe as a};
@@ -1 +1 @@
1
- import{$ as M,Aa as F,Ca as w,Fa as a,Ha as de,Ia as V,Ka as d,Ma as J,Pa as Q,Qb as T,Sb as ee,Y as c,Z as G,aa as _,ea as E,fa as u,fb as ce,gb as m,ha as j,m as ae,ma as p,q as le,sb as h,w as ue}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";import{a as g,b as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-HPDCVTZM.js";var Ve=(()=>{let e=class e{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(n){return new(n||e)(a(w),a(F))},e.\u0275dir=u({type:e});let i=e;return i})(),P=(()=>{let e=class e extends Ve{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,features:[d]});let i=e;return i})(),b=new _("NgValueAccessor"),qe={provide:b,useExisting:c(()=>ze),multi:!0},ze=(()=>{let e=class e extends P{writeValue(t){this.setProperty("checked",t)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,s){n&1&&m("change",function(l){return s.onChange(l.target.checked)})("blur",function(){return s.onTouched()})},features:[h([qe]),d]});let i=e;return i})(),Ze={provide:b,useExisting:c(()=>De),multi:!0};function Xe(){let i=ee()?ee().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Ye=new _("CompositionEventMode"),De=(()=>{let e=class e extends Ve{constructor(t,n,s){super(t,n),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Xe())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(n){return new(n||e)(a(w),a(F),a(Ye,8))},e.\u0275dir=u({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,s){n&1&&m("input",function(l){return s._handleInput(l.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(l){return s._compositionEnd(l.target.value)})},features:[h([Ze]),d]});let i=e;return i})();function y(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function be(i){return i!=null&&typeof i.length=="number"}var A=new _("NgValidators"),ie=new _("NgAsyncValidators"),Ke=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,he=class{static min(e){return Je(e)}static max(e){return Qe(e)}static required(e){return Ae(e)}static requiredTrue(e){return et(e)}static email(e){return Me(e)}static minLength(e){return tt(e)}static maxLength(e){return it(e)}static pattern(e){return Ee(e)}static nullValidator(e){return U(e)}static compose(e){return Ne(e)}static composeAsync(e){return Pe(e)}};function Je(i){return e=>{if(y(e.value)||y(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r<i?{min:{min:i,actual:e.value}}:null}}function Qe(i){return e=>{if(y(e.value)||y(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>i?{max:{max:i,actual:e.value}}:null}}function Ae(i){return y(i.value)?{required:!0}:null}function et(i){return i.value===!0?null:{required:!0}}function Me(i){return y(i.value)||Ke.test(i.value)?null:{email:!0}}function tt(i){return e=>y(e.value)||!be(e.value)?null:e.value.length<i?{minlength:{requiredLength:i,actualLength:e.value.length}}:null}function it(i){return e=>be(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function Ee(i){if(!i)return U;let e,r;return typeof i=="string"?(r="",i.charAt(0)!=="^"&&(r+="^"),r+=i,i.charAt(i.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=i.toString(),e=i),t=>{if(y(t.value))return null;let n=t.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function U(i){return null}function Fe(i){return i!=null}function we(i){return ce(i)?ae(i):i}function Ie(i){let e={};return i.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function Se(i,e){return e.map(r=>r(i))}function nt(i){return!i.validate}function Oe(i){return i.map(e=>nt(e)?e:r=>e.validate(r))}function Ne(i){if(!i)return null;let e=i.filter(Fe);return e.length==0?null:function(r){return Ie(Se(r,e))}}function ne(i){return i!=null?Ne(Oe(i)):null}function Pe(i){if(!i)return null;let e=i.filter(Fe);return e.length==0?null:function(r){let t=Se(r,e).map(we);return ue(t).pipe(le(Ie))}}function re(i){return i!=null?Pe(Oe(i)):null}function fe(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function xe(i){return i._rawValidators}function ke(i){return i._rawAsyncValidators}function te(i){return i?Array.isArray(i)?i:[i]:[]}function R(i,e){return Array.isArray(i)?i.includes(e):i===e}function pe(i,e){let r=te(e);return te(i).forEach(n=>{R(r,n)||r.push(n)}),r}function ge(i,e){return te(e).filter(r=>!R(i,r))}var H=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ne(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=re(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},v=class extends H{get formDirective(){return null}get path(){return null}},N=class extends H{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},L=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},rt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},oi=C(g({},rt),{"[class.ng-submitted]":"isSubmitted"}),ai=(()=>{let e=class e extends L{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(a(N,2))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,s){n&2&&Q("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[d]});let i=e;return i})(),li=(()=>{let e=class e extends L{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(a(v,10))},e.\u0275dir=u({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,s){n&2&&Q("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[d]});let i=e;return i})();var I="VALID",B="INVALID",D="PENDING",S="DISABLED";function Ge(i){return(X(i)?i.validators:i)||null}function st(i){return Array.isArray(i)?ne(i):i||null}function je(i,e){return(X(e)?e.asyncValidators:i)||null}function ot(i){return Array.isArray(i)?re(i):i||null}function X(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function at(i,e,r){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new G(1e3,"");if(!t[r])throw new G(1001,"")}function lt(i,e,r){i._forEachChild((t,n)=>{if(r[n]===void 0)throw new G(1002,"")})}var $=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===I}get invalid(){return this.status===B}get pending(){return this.status==D}get disabled(){return this.status===S}get enabled(){return this.status!==S}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(pe(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(pe(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ge(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ge(e,this._rawAsyncValidators))}hasValidator(e){return R(this._rawValidators,e)}hasAsyncValidator(e){return R(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=D,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=S,this.errors=null,this._forEachChild(t=>{t.disable(C(g({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(C(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(t=>t(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=I,this._forEachChild(t=>{t.enable(C(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(C(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===I||this.status===D)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?S:I}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=D,this._hasOwnPendingAsyncValidator=!0;let r=we(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((t,n)=>t&&t._find(n),this)}getError(e,r){let t=r?this.get(r):this;return t&&t.errors?t.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?S:this.errors?B:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(D)?D:this._anyControlsHaveStatus(B)?B:I}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){X(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=st(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ot(this._rawAsyncValidators)}},W=class extends ${constructor(e,r,t){super(Ge(r),je(t,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,t={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){lt(this,!0,e),Object.keys(e).forEach(t=>{at(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(t=>{let n=this.controls[t];n&&n.patchValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((t,n)=>{t.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,t)=>(e[t]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,t)=>t._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let t=this.controls[r];t&&e(t,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,t]of Object.entries(this.controls))if(this.contains(r)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,t,n)=>((t.enabled||this.disabled)&&(r[n]=t.value),r))}_reduceChildren(e,r){let t=e;return this._forEachChild((n,s)=>{t=r(t,n,s)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var x=new _("CallSetDisabledState",{providedIn:"root",factory:()=>Y}),Y="always";function ut(i,e){return[...e.path,i]}function q(i,e,r=Y){se(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),ct(i,e),ft(i,e),ht(i,e),dt(i,e)}function me(i,e,r=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),Z(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function z(i,e){i.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function dt(i,e){if(e.valueAccessor.setDisabledState){let r=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(r),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(r)})}}function se(i,e){let r=xe(i);e.validator!==null?i.setValidators(fe(r,e.validator)):typeof r=="function"&&i.setValidators([r]);let t=ke(i);e.asyncValidator!==null?i.setAsyncValidators(fe(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();z(e._rawValidators,n),z(e._rawAsyncValidators,n)}function Z(i,e){let r=!1;if(i!==null){if(e.validator!==null){let n=xe(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(o=>o!==e.validator);s.length!==n.length&&(r=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let n=ke(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(o=>o!==e.asyncValidator);s.length!==n.length&&(r=!0,i.setAsyncValidators(s))}}}let t=()=>{};return z(e._rawValidators,t),z(e._rawAsyncValidators,t),r}function ct(i,e){e.valueAccessor.registerOnChange(r=>{i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Te(i,e)})}function ht(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Te(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function Te(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function ft(i,e){let r=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};i.registerOnChange(r),e._registerOnDestroy(()=>{i._unregisterOnChange(r)})}function Be(i,e){i==null,se(i,e)}function pt(i,e){return Z(i,e)}function gt(i,e){if(!i.hasOwnProperty("model"))return!1;let r=i.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function mt(i){return Object.getPrototypeOf(i.constructor)===P}function Ue(i,e){i._syncPendingControls(),e.forEach(r=>{let t=r.control;t.updateOn==="submit"&&t._pendingChange&&(r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function yt(i,e){if(!e)return null;Array.isArray(e);let r,t,n;return e.forEach(s=>{s.constructor===De?r=s:mt(s)?t=s:n=s}),n||t||r||null}function vt(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}var _t={provide:v,useExisting:c(()=>Ct)},O=(()=>Promise.resolve())(),Ct=(()=>{let e=class e extends v{constructor(t,n,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new V,this.form=new W({},ne(t),re(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){O.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),q(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){O.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){O.then(()=>{let n=this._findContainer(t.path),s=new W({});Be(s,t),n.registerControl(t.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){O.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){O.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Ue(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(n){return new(n||e)(a(A,10),a(ie,10),a(x,8))},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,s){n&1&&m("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([_t]),d]});let i=e;return i})();function ye(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function ve(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Re=class extends ${constructor(e=null,r,t){super(Ge(r),je(t,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),X(r)&&(r.nonNullable||r.initialValueIsDefault)&&(ve(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ye(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ye(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){ve(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Vt=i=>i instanceof Re;var Dt={provide:N,useExisting:c(()=>bt)},_e=(()=>Promise.resolve())(),bt=(()=>{let e=class e extends N{constructor(t,n,s,o,l,f){super(),this._changeDetectorRef=l,this.callSetDisabledState=f,this.control=new Re,this._registered=!1,this.name="",this.update=new V,this._parent=t,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=yt(this,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),gt(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){q(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){_e.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,s=n!==0&&T(n);_e.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?ut(t,this._parent):[t]}};e.\u0275fac=function(n){return new(n||e)(a(v,9),a(A,10),a(ie,10),a(b,10),a(de,8),a(x,8))},e.\u0275dir=u({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h([Dt]),d,j]});let i=e;return i})(),di=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),At={provide:b,useExisting:c(()=>Mt),multi:!0},Mt=(()=>{let e=class e extends P{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,s){n&1&&m("input",function(l){return s.onChange(l.target.value)})("blur",function(){return s.onTouched()})},features:[h([At]),d]});let i=e;return i})();var Et=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var Ft=new _("NgModelWithFormControlWarning");var wt={provide:v,useExisting:c(()=>It)},It=(()=>{let e=class e extends v{constructor(t,n,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new V,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Z(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return q(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){me(t.control||null,t,!1),vt(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this.submitted=!0,Ue(this.form,this.directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,s=this.form.get(t.path);n!==s&&(me(n||null,t),Vt(s)&&(q(s,t,this.callSetDisabledState),t.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);Be(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&pt(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){se(this.form,this),this._oldForm&&Z(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(a(A,10),a(ie,10),a(x,8))},e.\u0275dir=u({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,s){n&1&&m("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([wt]),d,j]});let i=e;return i})();var St={provide:b,useExisting:c(()=>Le),multi:!0};function He(i,e){return i==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function Ot(i){return i.split(":")[0]}var Le=(()=>{let e=class e extends P{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n=this._getOptionId(t),s=He(n,t);this.setProperty("value",s)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){let n=Ot(t);return this._optionMap.has(n)?this._optionMap.get(n):t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,s){n&1&&m("change",function(l){return s.onChange(l.target.value)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([St]),d]});let i=e;return i})(),ci=(()=>{let e=class e{constructor(t,n,s){this._element=t,this._renderer=n,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(He(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(a(F),a(w),a(Le,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let i=e;return i})(),Nt={provide:b,useExisting:c(()=>$e),multi:!0};function Ce(i,e){return i==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function Pt(i){return i.split(":")[0]}var $e=(()=>{let e=class e extends P{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n;if(Array.isArray(t)){let s=t.map(o=>this._getOptionId(o));n=(o,l)=>{o._setSelected(s.indexOf(l.toString())>-1)}}else n=(s,o)=>{s._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(t){this.onChange=n=>{let s=[],o=n.selectedOptions;if(o!==void 0){let l=o;for(let f=0;f<l.length;f++){let k=l[f],K=this._getOptionValue(k.value);s.push(K)}}else{let l=n.options;for(let f=0;f<l.length;f++){let k=l[f];if(k.selected){let K=this._getOptionValue(k.value);s.push(K)}}}this.value=s,t(s)}}_registerOption(t){let n=(this._idCounter++).toString();return this._optionMap.set(n,t),n}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,t))return n;return null}_getOptionValue(t){let n=Pt(t);return this._optionMap.has(n)?this._optionMap.get(n)._value:t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,s){n&1&&m("change",function(l){return s.onChange(l.target)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Nt]),d]});let i=e;return i})(),hi=(()=>{let e=class e{constructor(t,n,s){this._element=t,this._renderer=n,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(Ce(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ce(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(a(F),a(w),a($e,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let i=e;return i})();var oe=(()=>{let e=class e{constructor(){this._validator=U}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):U,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=u({type:e,features:[j]});let i=e;return i})();var xt={provide:A,useExisting:c(()=>kt),multi:!0};var kt=(()=>{let e=class e extends oe{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=T,this.createValidator=t=>Ae}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,s){n&2&&J("required",s._enabled?"":null)},inputs:{required:"required"},features:[h([xt]),d]});let i=e;return i})();var Gt={provide:A,useExisting:c(()=>jt),multi:!0},jt=(()=>{let e=class e extends oe{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=T,this.createValidator=t=>Me}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[h([Gt]),d]});let i=e;return i})();var Tt={provide:A,useExisting:c(()=>Bt),multi:!0},Bt=(()=>{let e=class e extends oe{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>Ee(t)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(n,s){n&2&&J("pattern",s._enabled?s.pattern:null)},inputs:{pattern:"pattern"},features:[h([Tt]),d]});let i=e;return i})();var We=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[Et]});let i=e;return i})();var fi=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:x,useValue:t.callSetDisabledState??Y}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[We]});let i=e;return i})(),pi=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ft,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:x,useValue:t.callSetDisabledState??Y}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[We]});let i=e;return i})();export{b as a,ze as b,De as c,A as d,he as e,v as f,N as g,ai as h,li as i,Ct as j,bt as k,di as l,Mt as m,It as n,Le as o,ci as p,hi as q,kt as r,jt as s,Bt as t,fi as u,pi as v};
1
+ import{$ as M,Aa as F,Ca as w,Fa as a,Ha as de,Ia as V,Ka as d,Ma as J,Pa as Q,Rb as T,Tb as ee,Y as c,Z as G,aa as _,ea as E,fa as u,fb as ce,gb as m,ha as j,m as ae,ma as p,q as le,sb as h,w as ue}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js";import{a as g,b as C}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-OKO7WTOG.js";var Ve=(()=>{let e=class e{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}};e.\u0275fac=function(n){return new(n||e)(a(w),a(F))},e.\u0275dir=u({type:e});let i=e;return i})(),P=(()=>{let e=class e extends Ve{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,features:[d]});let i=e;return i})(),b=new _("NgValueAccessor"),qe={provide:b,useExisting:c(()=>ze),multi:!0},ze=(()=>{let e=class e extends P{writeValue(t){this.setProperty("checked",t)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,s){n&1&&m("change",function(l){return s.onChange(l.target.checked)})("blur",function(){return s.onTouched()})},features:[h([qe]),d]});let i=e;return i})(),Ze={provide:b,useExisting:c(()=>De),multi:!0};function Xe(){let i=ee()?ee().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Ye=new _("CompositionEventMode"),De=(()=>{let e=class e extends Ve{constructor(t,n,s){super(t,n),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Xe())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}};e.\u0275fac=function(n){return new(n||e)(a(w),a(F),a(Ye,8))},e.\u0275dir=u({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,s){n&1&&m("input",function(l){return s._handleInput(l.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(l){return s._compositionEnd(l.target.value)})},features:[h([Ze]),d]});let i=e;return i})();function y(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function be(i){return i!=null&&typeof i.length=="number"}var A=new _("NgValidators"),ie=new _("NgAsyncValidators"),Ke=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,he=class{static min(e){return Je(e)}static max(e){return Qe(e)}static required(e){return Ae(e)}static requiredTrue(e){return et(e)}static email(e){return Me(e)}static minLength(e){return tt(e)}static maxLength(e){return it(e)}static pattern(e){return Ee(e)}static nullValidator(e){return U(e)}static compose(e){return Ne(e)}static composeAsync(e){return Pe(e)}};function Je(i){return e=>{if(y(e.value)||y(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r<i?{min:{min:i,actual:e.value}}:null}}function Qe(i){return e=>{if(y(e.value)||y(i))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>i?{max:{max:i,actual:e.value}}:null}}function Ae(i){return y(i.value)?{required:!0}:null}function et(i){return i.value===!0?null:{required:!0}}function Me(i){return y(i.value)||Ke.test(i.value)?null:{email:!0}}function tt(i){return e=>y(e.value)||!be(e.value)?null:e.value.length<i?{minlength:{requiredLength:i,actualLength:e.value.length}}:null}function it(i){return e=>be(e.value)&&e.value.length>i?{maxlength:{requiredLength:i,actualLength:e.value.length}}:null}function Ee(i){if(!i)return U;let e,r;return typeof i=="string"?(r="",i.charAt(0)!=="^"&&(r+="^"),r+=i,i.charAt(i.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=i.toString(),e=i),t=>{if(y(t.value))return null;let n=t.value;return e.test(n)?null:{pattern:{requiredPattern:r,actualValue:n}}}}function U(i){return null}function Fe(i){return i!=null}function we(i){return ce(i)?ae(i):i}function Ie(i){let e={};return i.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function Se(i,e){return e.map(r=>r(i))}function nt(i){return!i.validate}function Oe(i){return i.map(e=>nt(e)?e:r=>e.validate(r))}function Ne(i){if(!i)return null;let e=i.filter(Fe);return e.length==0?null:function(r){return Ie(Se(r,e))}}function ne(i){return i!=null?Ne(Oe(i)):null}function Pe(i){if(!i)return null;let e=i.filter(Fe);return e.length==0?null:function(r){let t=Se(r,e).map(we);return ue(t).pipe(le(Ie))}}function re(i){return i!=null?Pe(Oe(i)):null}function fe(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function xe(i){return i._rawValidators}function ke(i){return i._rawAsyncValidators}function te(i){return i?Array.isArray(i)?i:[i]:[]}function R(i,e){return Array.isArray(i)?i.includes(e):i===e}function pe(i,e){let r=te(e);return te(i).forEach(n=>{R(r,n)||r.push(n)}),r}function ge(i,e){return te(e).filter(r=>!R(i,r))}var H=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ne(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=re(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},v=class extends H{get formDirective(){return null}get path(){return null}},N=class extends H{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},L=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},rt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},oi=C(g({},rt),{"[class.ng-submitted]":"isSubmitted"}),ai=(()=>{let e=class e extends L{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(a(N,2))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,s){n&2&&Q("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[d]});let i=e;return i})(),li=(()=>{let e=class e extends L{constructor(t){super(t)}};e.\u0275fac=function(n){return new(n||e)(a(v,10))},e.\u0275dir=u({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,s){n&2&&Q("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[d]});let i=e;return i})();var I="VALID",B="INVALID",D="PENDING",S="DISABLED";function Ge(i){return(X(i)?i.validators:i)||null}function st(i){return Array.isArray(i)?ne(i):i||null}function je(i,e){return(X(e)?e.asyncValidators:i)||null}function ot(i){return Array.isArray(i)?re(i):i||null}function X(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function at(i,e,r){let t=i.controls;if(!(e?Object.keys(t):t).length)throw new G(1e3,"");if(!t[r])throw new G(1001,"")}function lt(i,e,r){i._forEachChild((t,n)=>{if(r[n]===void 0)throw new G(1002,"")})}var $=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===I}get invalid(){return this.status===B}get pending(){return this.status==D}get disabled(){return this.status===S}get enabled(){return this.status!==S}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(pe(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(pe(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ge(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ge(e,this._rawAsyncValidators))}hasValidator(e){return R(this._rawValidators,e)}hasAsyncValidator(e){return R(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=D,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=S,this.errors=null,this._forEachChild(t=>{t.disable(C(g({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(C(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(t=>t(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=I,this._forEachChild(t=>{t.enable(C(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(C(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===I||this.status===D)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?S:I}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=D,this._hasOwnPendingAsyncValidator=!0;let r=we(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((t,n)=>t&&t._find(n),this)}getError(e,r){let t=r?this.get(r):this;return t&&t.errors?t.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new V,this.statusChanges=new V}_calculateStatus(){return this._allControlsDisabled()?S:this.errors?B:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(D)?D:this._anyControlsHaveStatus(B)?B:I}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){X(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=st(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ot(this._rawAsyncValidators)}},W=class extends ${constructor(e,r,t){super(Ge(r),je(t,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,t={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){lt(this,!0,e),Object.keys(e).forEach(t=>{at(this,!0,t),this.controls[t].setValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(t=>{let n=this.controls[t];n&&n.patchValue(e[t],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((t,n)=>{t.reset(e?e[n]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,t)=>(e[t]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,t)=>t._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let t=this.controls[r];t&&e(t,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,t]of Object.entries(this.controls))if(this.contains(r)&&e(t))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,t,n)=>((t.enabled||this.disabled)&&(r[n]=t.value),r))}_reduceChildren(e,r){let t=e;return this._forEachChild((n,s)=>{t=r(t,n,s)}),t}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var x=new _("CallSetDisabledState",{providedIn:"root",factory:()=>Y}),Y="always";function ut(i,e){return[...e.path,i]}function q(i,e,r=Y){se(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),ct(i,e),ft(i,e),ht(i,e),dt(i,e)}function me(i,e,r=!0){let t=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(t),e.valueAccessor.registerOnTouched(t)),Z(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function z(i,e){i.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function dt(i,e){if(e.valueAccessor.setDisabledState){let r=t=>{e.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(r),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(r)})}}function se(i,e){let r=xe(i);e.validator!==null?i.setValidators(fe(r,e.validator)):typeof r=="function"&&i.setValidators([r]);let t=ke(i);e.asyncValidator!==null?i.setAsyncValidators(fe(t,e.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();z(e._rawValidators,n),z(e._rawAsyncValidators,n)}function Z(i,e){let r=!1;if(i!==null){if(e.validator!==null){let n=xe(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(o=>o!==e.validator);s.length!==n.length&&(r=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let n=ke(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(o=>o!==e.asyncValidator);s.length!==n.length&&(r=!0,i.setAsyncValidators(s))}}}let t=()=>{};return z(e._rawValidators,t),z(e._rawAsyncValidators,t),r}function ct(i,e){e.valueAccessor.registerOnChange(r=>{i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Te(i,e)})}function ht(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Te(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function Te(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function ft(i,e){let r=(t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};i.registerOnChange(r),e._registerOnDestroy(()=>{i._unregisterOnChange(r)})}function Be(i,e){i==null,se(i,e)}function pt(i,e){return Z(i,e)}function gt(i,e){if(!i.hasOwnProperty("model"))return!1;let r=i.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function mt(i){return Object.getPrototypeOf(i.constructor)===P}function Ue(i,e){i._syncPendingControls(),e.forEach(r=>{let t=r.control;t.updateOn==="submit"&&t._pendingChange&&(r.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function yt(i,e){if(!e)return null;Array.isArray(e);let r,t,n;return e.forEach(s=>{s.constructor===De?r=s:mt(s)?t=s:n=s}),n||t||r||null}function vt(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}var _t={provide:v,useExisting:c(()=>Ct)},O=(()=>Promise.resolve())(),Ct=(()=>{let e=class e extends v{constructor(t,n,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._directives=new Set,this.ngSubmit=new V,this.form=new W({},ne(t),re(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){O.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),q(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){O.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){O.then(()=>{let n=this._findContainer(t.path),s=new W({});Be(s,t),n.registerControl(t.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){O.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){O.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Ue(this.form,this._directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}};e.\u0275fac=function(n){return new(n||e)(a(A,10),a(ie,10),a(x,8))},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,s){n&1&&m("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([_t]),d]});let i=e;return i})();function ye(i,e){let r=i.indexOf(e);r>-1&&i.splice(r,1)}function ve(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var Re=class extends ${constructor(e=null,r,t){super(Ge(r),je(t,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),X(r)&&(r.nonNullable||r.initialValueIsDefault)&&(ve(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ye(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ye(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){ve(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Vt=i=>i instanceof Re;var Dt={provide:N,useExisting:c(()=>bt)},_e=(()=>Promise.resolve())(),bt=(()=>{let e=class e extends N{constructor(t,n,s,o,l,f){super(),this._changeDetectorRef=l,this.callSetDisabledState=f,this.control=new Re,this._registered=!1,this.name="",this.update=new V,this._parent=t,this._setValidators(n),this._setAsyncValidators(s),this.valueAccessor=yt(this,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),gt(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){q(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){_e.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,s=n!==0&&T(n);_e.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?ut(t,this._parent):[t]}};e.\u0275fac=function(n){return new(n||e)(a(v,9),a(A,10),a(ie,10),a(b,10),a(de,8),a(x,8))},e.\u0275dir=u({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h([Dt]),d,j]});let i=e;return i})(),di=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=u({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let i=e;return i})(),At={provide:b,useExisting:c(()=>Mt),multi:!0},Mt=(()=>{let e=class e extends P{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,s){n&1&&m("input",function(l){return s.onChange(l.target.value)})("blur",function(){return s.onTouched()})},features:[h([At]),d]});let i=e;return i})();var Et=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({});let i=e;return i})();var Ft=new _("NgModelWithFormControlWarning");var wt={provide:v,useExisting:c(()=>It)},It=(()=>{let e=class e extends v{constructor(t,n,s){super(),this.callSetDisabledState=s,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new V,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Z(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return q(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){me(t.control||null,t,!1),vt(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this.submitted=!0,Ue(this.form,this.directives),this.ngSubmit.emit(t),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,s=this.form.get(t.path);n!==s&&(me(n||null,t),Vt(s)&&(q(s,t,this.callSetDisabledState),t.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);Be(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&pt(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){se(this.form,this),this._oldForm&&Z(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(n){return new(n||e)(a(A,10),a(ie,10),a(x,8))},e.\u0275dir=u({type:e,selectors:[["","formGroup",""]],hostBindings:function(n,s){n&1&&m("submit",function(l){return s.onSubmit(l)})("reset",function(){return s.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([wt]),d,j]});let i=e;return i})();var St={provide:b,useExisting:c(()=>Le),multi:!0};function He(i,e){return i==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function Ot(i){return i.split(":")[0]}var Le=(()=>{let e=class e extends P{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n=this._getOptionId(t),s=He(n,t);this.setProperty("value",s)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){let n=Ot(t);return this._optionMap.has(n)?this._optionMap.get(n):t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,s){n&1&&m("change",function(l){return s.onChange(l.target.value)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([St]),d]});let i=e;return i})(),ci=(()=>{let e=class e{constructor(t,n,s){this._element=t,this._renderer=n,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(He(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(a(F),a(w),a(Le,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let i=e;return i})(),Nt={provide:b,useExisting:c(()=>$e),multi:!0};function Ce(i,e){return i==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function Pt(i){return i.split(":")[0]}var $e=(()=>{let e=class e extends P{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n;if(Array.isArray(t)){let s=t.map(o=>this._getOptionId(o));n=(o,l)=>{o._setSelected(s.indexOf(l.toString())>-1)}}else n=(s,o)=>{s._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(t){this.onChange=n=>{let s=[],o=n.selectedOptions;if(o!==void 0){let l=o;for(let f=0;f<l.length;f++){let k=l[f],K=this._getOptionValue(k.value);s.push(K)}}else{let l=n.options;for(let f=0;f<l.length;f++){let k=l[f];if(k.selected){let K=this._getOptionValue(k.value);s.push(K)}}}this.value=s,t(s)}}_registerOption(t){let n=(this._idCounter++).toString();return this._optionMap.set(n,t),n}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,t))return n;return null}_getOptionValue(t){let n=Pt(t);return this._optionMap.has(n)?this._optionMap.get(n)._value:t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,s){n&1&&m("change",function(l){return s.onChange(l.target)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Nt]),d]});let i=e;return i})(),hi=(()=>{let e=class e{constructor(t,n,s){this._element=t,this._renderer=n,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(Ce(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(Ce(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(n){return new(n||e)(a(F),a(w),a($e,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let i=e;return i})();var oe=(()=>{let e=class e{constructor(){this._validator=U}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):U,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=u({type:e,features:[j]});let i=e;return i})();var xt={provide:A,useExisting:c(()=>kt),multi:!0};var kt=(()=>{let e=class e extends oe{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=T,this.createValidator=t=>Ae}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,s){n&2&&J("required",s._enabled?"":null)},inputs:{required:"required"},features:[h([xt]),d]});let i=e;return i})();var Gt={provide:A,useExisting:c(()=>jt),multi:!0},jt=(()=>{let e=class e extends oe{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=T,this.createValidator=t=>Me}enabled(t){return t}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[h([Gt]),d]});let i=e;return i})();var Tt={provide:A,useExisting:c(()=>Bt),multi:!0},Bt=(()=>{let e=class e extends oe{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=t=>t,this.createValidator=t=>Ee(t)}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=p(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(n,s){n&2&&J("pattern",s._enabled?s.pattern:null)},inputs:{pattern:"pattern"},features:[h([Tt]),d]});let i=e;return i})();var We=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[Et]});let i=e;return i})();var fi=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:x,useValue:t.callSetDisabledState??Y}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[We]});let i=e;return i})(),pi=(()=>{let e=class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ft,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:x,useValue:t.callSetDisabledState??Y}]}}};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=E({type:e}),e.\u0275inj=M({imports:[We]});let i=e;return i})();export{b as a,ze as b,De as c,A as d,he as e,v as f,N as g,ai as h,li as i,Ct as j,bt as k,di as l,Mt as m,It as n,Le as o,ci as p,hi as q,kt as r,jt as s,Bt as t,fi as u,pi as v};
@@ -1 +1 @@
1
- import{e as p}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-DANZQU6U.js";import{_ as c,ba as a,q as n}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.4.2/Marketplace/chunk-WGNBD2TG.js";var f=(()=>{let t=class t{constructor(r){this.httpService=r}getInventoryAsyncLog(r){return this.httpService.post("api/Inventory/GetAsyncLog",r).pipe(n(e=>(e.hits=e.hits.map(i=>(i.DurationInSecond=parseInt(i._source?.Duration)/1e3,i)),e)))}getInventoryAsyncLogDetail(r){return this.httpService.post("api/Inventory/GetAsyncLogDetail",{ID:r})}};t.\u0275fac=function(e){return new(e||t)(a(p))},t.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();export{f as a};
1
+ import{e as p}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-ZPR2KAKZ.js";import{_ as c,ba as a,q as n}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.1/Marketplace/chunk-RWRP376T.js";var f=(()=>{let t=class t{constructor(r){this.httpService=r}getInventoryAsyncLog(r){return this.httpService.post("api/Inventory/GetAsyncLog",r).pipe(n(e=>(e.hits=e.hits.map(i=>(i.DurationInSecond=parseInt(i._source?.Duration)/1e3,i)),e)))}getInventoryAsyncLogDetail(r){return this.httpService.post("api/Inventory/GetAsyncLogDetail",{ID:r})}};t.\u0275fac=function(e){return new(e||t)(a(p))},t.\u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();export{f as a};