marketplacepos 5.48.0 → 5.48.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +26 -26
- package/Marketplace/{chunk-222IOSGU.js → chunk-2F4DTZCZ.js} +1 -1
- package/Marketplace/{chunk-3LU2SFN4.js → chunk-2IASUYTM.js} +1 -1
- package/Marketplace/chunk-2USFVKEX.js +1 -0
- package/Marketplace/chunk-36U7D4LI.js +1 -0
- package/Marketplace/chunk-3JYZF65T.js +1 -0
- package/Marketplace/chunk-3K2EKA5O.js +1 -0
- package/Marketplace/{chunk-ZV7EHPNJ.js → chunk-3L7Y6LG6.js} +1 -1
- package/Marketplace/chunk-4JDI3AL5.js +1 -0
- package/Marketplace/{chunk-5YBWBAQS.js → chunk-4YCSITNV.js} +1 -1
- package/Marketplace/{chunk-55BTWXFX.js → chunk-5BSPSA4O.js} +1 -1
- package/Marketplace/chunk-5CHTDUME.js +1 -0
- package/Marketplace/chunk-5KYN6Y7M.js +1 -0
- package/Marketplace/{chunk-56BH43Y7.js → chunk-5X2E3W32.js} +1 -1
- package/Marketplace/{chunk-WW7F6LSG.js → chunk-5X2L45XK.js} +1 -1
- package/Marketplace/chunk-6EORXONU.js +4 -0
- package/Marketplace/{chunk-34UF36YY.js → chunk-6OIMOM7S.js} +1 -1
- package/Marketplace/{chunk-J2BPOHP6.js → chunk-6OJQRHIZ.js} +1 -1
- package/Marketplace/{chunk-ZAUKG4R6.js → chunk-6PW6S7MI.js} +1 -1
- package/Marketplace/chunk-6XDT56RT.js +2 -0
- package/Marketplace/{chunk-JOKDW6WD.js → chunk-7DT7FQ2T.js} +1 -1
- package/Marketplace/{chunk-KKB4B7FU.js → chunk-7GY4O2UX.js} +3 -3
- package/Marketplace/chunk-7SB4C4PT.js +1 -0
- package/Marketplace/chunk-A7PUMY67.js +1 -0
- package/Marketplace/chunk-ADKAX3OO.js +1 -0
- package/Marketplace/chunk-AEVLZ7NS.js +1 -0
- package/Marketplace/{chunk-NECWUPZQ.js → chunk-AFIF6VRM.js} +1 -1
- package/Marketplace/chunk-AGBJEXIM.js +1 -0
- package/Marketplace/chunk-ALPG22RQ.js +1 -0
- package/Marketplace/{chunk-DRTRU4DB.js → chunk-B6F5PDL5.js} +1 -1
- package/Marketplace/{chunk-HERBJRWM.js → chunk-BXYXVBXP.js} +1 -1
- package/Marketplace/{chunk-KWNXPX2M.js → chunk-C6JHPCLF.js} +1 -1
- package/Marketplace/{chunk-B4QCGMST.js → chunk-C7N6EI73.js} +1 -1
- package/Marketplace/{chunk-PQEXTCFW.js → chunk-CAZ7U2IL.js} +10 -10
- package/Marketplace/chunk-CBU473N2.js +1 -0
- package/Marketplace/{chunk-UNGNRJ2B.js → chunk-CLQGGKN6.js} +1 -1
- package/Marketplace/chunk-CT6UFONR.js +1 -0
- package/Marketplace/{chunk-IO2TWJDO.js → chunk-DAUML5UD.js} +1 -1
- package/Marketplace/chunk-DH5CXAEM.js +1 -0
- package/Marketplace/chunk-DHPNXR6E.js +1 -0
- package/Marketplace/chunk-DTAHV4GM.js +1 -0
- package/Marketplace/{chunk-MQXW3UAW.js → chunk-DXYMG6QK.js} +1 -1
- package/Marketplace/chunk-E3EBAWLJ.js +1 -0
- package/Marketplace/chunk-E66QUDQF.js +1 -0
- package/Marketplace/chunk-E6ZWL77N.js +1 -0
- package/Marketplace/chunk-EDEZ3JLR.js +4 -0
- package/Marketplace/{chunk-OROFEDQN.js → chunk-FCEXPGTK.js} +1 -1
- package/Marketplace/chunk-FCFCTT5A.js +1 -0
- package/Marketplace/chunk-FHER4TFY.js +1 -0
- package/Marketplace/{chunk-VZSHSSQZ.js → chunk-FKGKMEDE.js} +1 -1
- package/Marketplace/chunk-FRZCC6KZ.js +1 -0
- package/Marketplace/chunk-GG3MDS4C.js +1 -0
- package/Marketplace/{chunk-ONU4O7N2.js → chunk-GPHNPV7O.js} +1 -1
- package/Marketplace/{chunk-J7FL3VT4.js → chunk-GURSK3ZV.js} +1 -1
- package/Marketplace/{chunk-N3WBRUNI.js → chunk-GVI6GJHY.js} +1 -1
- package/Marketplace/chunk-GX6JPDQ5.js +1 -0
- package/Marketplace/chunk-H7GV5SNI.js +5 -0
- package/Marketplace/{chunk-S32PEKW5.js → chunk-HKHNRMPT.js} +1 -1
- package/Marketplace/{chunk-5O33CV4F.js → chunk-I723PUUO.js} +1 -1
- package/Marketplace/{chunk-PGR6BEOA.js → chunk-I7C6W3RB.js} +1 -1
- package/Marketplace/{chunk-R6SCDZGW.js → chunk-IDH7MCR3.js} +1 -1
- package/Marketplace/chunk-ILW6ZFFV.js +1 -0
- package/Marketplace/chunk-J6BQDYXO.js +1 -0
- package/Marketplace/{chunk-TCWEUEBR.js → chunk-J6CZKQ53.js} +1 -1
- package/Marketplace/chunk-JBEKD57G.js +1 -0
- package/Marketplace/{chunk-G6P2UZU4.js → chunk-JW7NES7L.js} +1 -1
- package/Marketplace/{chunk-O4HOLA7Y.js → chunk-KSVJCX2D.js} +1 -1
- package/Marketplace/chunk-KVDREHOE.js +1 -0
- package/Marketplace/chunk-KZSTYKIP.js +1 -0
- package/Marketplace/{chunk-76CPUGUB.js → chunk-L76NLJD7.js} +2 -2
- package/Marketplace/{chunk-XBDQR2BA.js → chunk-LABF6W37.js} +1 -1
- package/Marketplace/{chunk-MAMCOUZ6.js → chunk-M2BYW5SR.js} +1 -1
- package/Marketplace/{chunk-P6TDS7UT.js → chunk-M65Z55OS.js} +1 -1
- package/Marketplace/chunk-MKADKY44.js +2 -0
- package/Marketplace/{chunk-NYJPPKGX.js → chunk-NCKPMA6Q.js} +1 -1
- package/Marketplace/{chunk-TDCMI7YC.js → chunk-O2YF5VGD.js} +1 -1
- package/Marketplace/chunk-O4EO3YBL.js +1 -0
- package/Marketplace/{chunk-Y6WFE3L2.js → chunk-OBF4XVU7.js} +1 -1
- package/Marketplace/chunk-PDCVMSLL.js +1 -0
- package/Marketplace/chunk-PLLHTY6O.js +15 -0
- package/Marketplace/chunk-PMVDQ2OP.js +1 -0
- package/Marketplace/chunk-PZKN5FIT.js +1 -0
- package/Marketplace/chunk-Q4TAOZ73.js +1 -0
- package/Marketplace/chunk-QCV5XC3U.js +266 -0
- package/Marketplace/{chunk-GV3NEJJ6.js → chunk-QFSA7CU4.js} +1 -1
- package/Marketplace/{chunk-XUBQATMN.js → chunk-R2XT5M5F.js} +1 -1
- package/Marketplace/chunk-RCBY7EIY.js +1 -0
- package/Marketplace/{chunk-J5BZDPXE.js → chunk-RQQWNLDZ.js} +1 -1
- package/Marketplace/chunk-S5R6MCNP.js +5 -0
- package/Marketplace/{chunk-RJFFTIAO.js → chunk-S7CKRTJV.js} +1 -1
- package/Marketplace/{chunk-PZB3GQWT.js → chunk-SHUYFOQI.js} +1 -1
- package/Marketplace/{chunk-SILAIDPV.js → chunk-STYL7ETF.js} +1 -1
- package/Marketplace/{chunk-E7FHMF3J.js → chunk-SZVL42NR.js} +1 -1
- package/Marketplace/chunk-T7HRAMHR.js +1 -0
- package/Marketplace/chunk-TIIGDXIJ.js +2 -0
- package/Marketplace/{chunk-CEXUETT6.js → chunk-TJYYRHZZ.js} +1 -1
- package/Marketplace/{chunk-DYQ3BWPB.js → chunk-TXOZULMZ.js} +1 -1
- package/Marketplace/chunk-TYQY4WPY.js +1 -0
- package/Marketplace/chunk-UBTALPOC.js +2 -0
- package/Marketplace/{chunk-6XT3JSG5.js → chunk-UCEZJNIL.js} +1 -1
- package/Marketplace/chunk-VWX2IX64.js +1 -0
- package/Marketplace/{chunk-W7YZT7CH.js → chunk-VYQD3A3M.js} +1 -1
- package/Marketplace/{chunk-37NOSLQL.js → chunk-WHHW4IZT.js} +1 -1
- package/Marketplace/{chunk-74JHI4MS.js → chunk-WNUTNP6I.js} +1 -1
- package/Marketplace/{chunk-DQOO5YZC.js → chunk-WRK3ZHRX.js} +1 -1
- package/Marketplace/chunk-X6COQADC.js +1 -0
- package/Marketplace/{chunk-7Y2L4CNS.js → chunk-XDBH7EGC.js} +1 -1
- package/Marketplace/chunk-XK4RP5MQ.js +1 -0
- package/Marketplace/{chunk-3I2V337G.js → chunk-XLIPGDSC.js} +1 -1
- package/Marketplace/chunk-Y77WYZ6Y.js +5 -0
- package/Marketplace/{chunk-NLSVMXR7.js → chunk-ZKIO2ZQ6.js} +1 -1
- package/Marketplace/chunk-ZME22WYI.js +1 -0
- package/Marketplace/{chunk-A7YRNCQP.js → chunk-ZTHO6JJM.js} +1 -1
- package/Marketplace/chunk-ZUL6ZHSW.js +1 -0
- package/Marketplace/{chunk-UW3UCIOY.js → chunk-ZW2TMVZP.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-YJKBQ3LW.js +1 -0
- package/Marketplace/{styles-3SQUCHWS.css → styles-ANCVZJP7.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-2FSRCK7Y.js +0 -1
- package/Marketplace/chunk-2LCP6ZFH.js +0 -1
- package/Marketplace/chunk-3YDWTOSL.js +0 -1
- package/Marketplace/chunk-44URQXRM.js +0 -1
- package/Marketplace/chunk-465DKI6M.js +0 -1
- package/Marketplace/chunk-46IROEMV.js +0 -2
- package/Marketplace/chunk-4R746B4G.js +0 -1
- package/Marketplace/chunk-573EEV7X.js +0 -1
- package/Marketplace/chunk-5S7ONNKP.js +0 -1
- package/Marketplace/chunk-6ZEQRKBC.js +0 -1
- package/Marketplace/chunk-7HVOZWYY.js +0 -1
- package/Marketplace/chunk-7U32FNM2.js +0 -2
- package/Marketplace/chunk-7VRLCSNB.js +0 -1
- package/Marketplace/chunk-AL5RTE5M.js +0 -1
- package/Marketplace/chunk-AXC6LM6T.js +0 -1
- package/Marketplace/chunk-BHGEKKCM.js +0 -1
- package/Marketplace/chunk-BLHKSSK6.js +0 -1
- package/Marketplace/chunk-BXOHTPGP.js +0 -1
- package/Marketplace/chunk-CNTLG54D.js +0 -1
- package/Marketplace/chunk-DLXWO2XC.js +0 -1
- package/Marketplace/chunk-DPQMNLFO.js +0 -1
- package/Marketplace/chunk-E5JZCOHZ.js +0 -1
- package/Marketplace/chunk-EMLE4JDW.js +0 -1
- package/Marketplace/chunk-FFTZPZOW.js +0 -5
- package/Marketplace/chunk-FHZNWINZ.js +0 -1
- package/Marketplace/chunk-GLMM3CVD.js +0 -1
- package/Marketplace/chunk-GQCDEPDY.js +0 -1
- package/Marketplace/chunk-GZLXMT7F.js +0 -1
- package/Marketplace/chunk-HG4R6CUP.js +0 -1
- package/Marketplace/chunk-HU7LMMZJ.js +0 -1
- package/Marketplace/chunk-I3IA6MAD.js +0 -1
- package/Marketplace/chunk-IZZQQW5G.js +0 -5
- package/Marketplace/chunk-JLVWTKDH.js +0 -1
- package/Marketplace/chunk-JUO4RKIH.js +0 -1
- package/Marketplace/chunk-L2GMXVN6.js +0 -1
- package/Marketplace/chunk-M7U5T2ZP.js +0 -1
- package/Marketplace/chunk-MEER4VNV.js +0 -1
- package/Marketplace/chunk-N26QQL77.js +0 -1
- package/Marketplace/chunk-NOIKC7TF.js +0 -1
- package/Marketplace/chunk-ODQVHQPB.js +0 -15
- package/Marketplace/chunk-PE7QBBA6.js +0 -1
- package/Marketplace/chunk-PNUEO4J2.js +0 -1
- package/Marketplace/chunk-PS43OK3J.js +0 -1
- package/Marketplace/chunk-SNSROU6N.js +0 -1
- package/Marketplace/chunk-SUTHLGCO.js +0 -266
- package/Marketplace/chunk-TUJHFVOP.js +0 -1
- package/Marketplace/chunk-UI5ITL7Z.js +0 -4
- package/Marketplace/chunk-XFIUNEOU.js +0 -1
- package/Marketplace/chunk-XW2CGM4G.js +0 -5
- package/Marketplace/chunk-YJTPDV4D.js +0 -1
- package/Marketplace/chunk-YKEAAH3N.js +0 -2
- package/Marketplace/chunk-YTUPRTC2.js +0 -1
- package/Marketplace/chunk-ZS465QKM.js +0 -2
- package/Marketplace/main-NBCLYU5Y.js +0 -1
|
@@ -30,32 +30,6 @@ Package: @dealpos-npm/ng-dealpos-library
|
|
|
30
30
|
License: "ISC"
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
--------------------------------------------------------------------------------
|
|
34
|
-
Package: @angular/cdk
|
|
35
|
-
License: "MIT"
|
|
36
|
-
|
|
37
|
-
The MIT License
|
|
38
|
-
|
|
39
|
-
Copyright (c) 2025 Google LLC.
|
|
40
|
-
|
|
41
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
42
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
43
|
-
in the Software without restriction, including without limitation the rights
|
|
44
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
45
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
46
|
-
furnished to do so, subject to the following conditions:
|
|
47
|
-
|
|
48
|
-
The above copyright notice and this permission notice shall be included in
|
|
49
|
-
all copies or substantial portions of the Software.
|
|
50
|
-
|
|
51
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
52
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
53
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
54
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
55
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
56
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
57
|
-
THE SOFTWARE.
|
|
58
|
-
|
|
59
33
|
--------------------------------------------------------------------------------
|
|
60
34
|
Package: primeng
|
|
61
35
|
License: "SEE LICENSE IN LICENSE.md"
|
|
@@ -164,6 +138,32 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
164
138
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
165
139
|
SOFTWARE.
|
|
166
140
|
|
|
141
|
+
--------------------------------------------------------------------------------
|
|
142
|
+
Package: @angular/cdk
|
|
143
|
+
License: "MIT"
|
|
144
|
+
|
|
145
|
+
The MIT License
|
|
146
|
+
|
|
147
|
+
Copyright (c) 2025 Google LLC.
|
|
148
|
+
|
|
149
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
150
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
151
|
+
in the Software without restriction, including without limitation the rights
|
|
152
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
153
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
154
|
+
furnished to do so, subject to the following conditions:
|
|
155
|
+
|
|
156
|
+
The above copyright notice and this permission notice shall be included in
|
|
157
|
+
all copies or substantial portions of the Software.
|
|
158
|
+
|
|
159
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
160
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
161
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
162
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
163
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
164
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
165
|
+
THE SOFTWARE.
|
|
166
|
+
|
|
167
167
|
--------------------------------------------------------------------------------
|
|
168
168
|
Package: moment
|
|
169
169
|
License: "MIT"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as w}from"./chunk-3I2V337G.js";import{B,w as V}from"./chunk-LNJUGHOX.js";import{B as N,Ca as S,Ea as _,Fd as j,Gb as P,Hb as D,J as T,Jc as k,Lc as W,O as M,Qa as x,S as A,Y as b,Zb as U,a as R,ea as v,jb as d,ma as L,na as O,pa as F,q as u,qa as g,qd as $,r as y,ra as l,v as m,yc as H,zc as z}from"./chunk-ZYJ6LAJ3.js";var C;function Z(){if(C===void 0&&(C=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(C=i.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return C}function p(i){return Z()?.createHTML(i)||i}function Y(i){return Error(`Unable to find icon with the name "${i}"`)}function tt(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function q(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function G(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var c=class{url;svgText;options;svgElement;constructor(a,t,e){this.url=a,this.svgText=t,this.options=e}},K=(()=>{class i{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(t,e,n,o){this._httpClient=t,this._sanitizer=e,this._errorHandler=o,this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,o){return this._addSvgIconConfig(t,e,new c(n,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,o){let r=this._sanitizer.sanitize(d.HTML,n);if(!r)throw G(n);let s=p(r);return this._addSvgIconConfig(t,e,new c("",s,o))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new c(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){let o=this._sanitizer.sanitize(d.HTML,e);if(!o)throw G(e);let r=p(o);return this._addSvgIconSetConfig(t,new c("",r,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let e=this._sanitizer.sanitize(d.RESOURCE_URL,t);if(!e)throw q(t);let n=this._cachedIconsByUrl.get(e);return n?u(E(n)):this._loadSvgIconFromConfig(new c(t,null)).pipe(v(o=>this._cachedIconsByUrl.set(e,o)),m(o=>E(o)))}getNamedSvgIcon(t,e=""){let n=J(e,t),o=this._svgIconConfigs.get(n);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(e,t),o)return this._svgIconConfigs.set(n,o),this._getSvgFromConfig(o);let r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):y(Y(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?u(E(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(m(e=>E(e)))}_getSvgFromIconSetConfigs(t,e){let n=this._extractIconWithNameFromAnySet(t,e);if(n)return u(n);let o=e.filter(r=>!r.svgText).map(r=>this._loadSvgIconSetFromConfig(r).pipe(T(s=>{let f=`Loading icon set URL: ${this._sanitizer.sanitize(d.RESOURCE_URL,r.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(f)),u(null)})));return N(o).pipe(m(()=>{let r=this._extractIconWithNameFromAnySet(t,e);if(!r)throw Y(t);return r}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){let r=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(r,t,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(v(e=>t.svgText=e),m(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?u(null):this._fetchIcon(t).pipe(v(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){let o=t.querySelector(`[id="${e}"]`);if(!o)return null;let r=o.cloneNode(!0);if(r.removeAttribute("id"),r.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(r,n);if(r.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(r),n);let s=this._svgElementFromString(p("<svg></svg>"));return s.appendChild(r),this._setSvgAttributes(s,n)}_svgElementFromString(t){let e=this._document.createElement("DIV");e.innerHTML=t;let n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){let e=this._svgElementFromString(p("<svg></svg>")),n=t.attributes;for(let o=0;o<n.length;o++){let{name:r,value:s}=n[o];r!=="id"&&e.setAttribute(r,s)}for(let o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[o].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){let{url:e,options:n}=t,o=n?.withCredentials??!1;if(!this._httpClient)throw tt();if(e==null)throw Error(`Cannot fetch icon from URL "${e}".`);let r=this._sanitizer.sanitize(d.RESOURCE_URL,e);if(!r)throw q(e);let s=this._inProgressUrlFetches.get(r);if(s)return s;let h=this._httpClient.get(r,{responseType:"text",withCredentials:o}).pipe(m(f=>p(f)),A(()=>this._inProgressUrlFetches.delete(r)),b());return this._inProgressUrlFetches.set(r,h),h}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(J(t,e),n),this}_addSvgIconSetConfig(t,e){let n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){let e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;n<this._resolvers.length;n++){let o=this._resolvers[n](e,t);if(o)return et(o)?new c(o.url,null,o.options):new c(o,null)}}static \u0275fac=function(e){return new(e||i)(g(V,8),g(B),g(S,8),g(_))};static \u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function E(i){return i.cloneNode(!0)}function J(i,a){return i+":"+a}function et(i){return!!(i.url&&i.options)}var nt=["*"],ot=new F("MAT_ICON_DEFAULT_OPTIONS"),rt=new F("mat-icon-location",{providedIn:"root",factory:it});function it(){let i=l(S),a=i?i.location:null;return{getPathname:()=>a?a.pathname+a.search:""}}var Q=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],st=Q.map(i=>`[${i}]`).join(", "),at=/^url\(['"]?#(.*?)['"]?\)$/,Tt=(()=>{class i{_elementRef=l(x);_iconRegistry=l(K);_location=l(rt);_errorHandler=l(_);_defaultColor;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(t){let e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(t){let e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=R.EMPTY;constructor(){let t=l(new $("aria-hidden"),{optional:!0}),e=l(ot,{optional:!0});e&&(e.color&&(this.color=this._defaultColor=e.color),e.fontSet&&(this.fontSet=e.fontSet)),t||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let e=this._location.getPathname();this._previousPath=e,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(e),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){let n=t.childNodes[e];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,e=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>t.classList.remove(n)),e.forEach(n=>t.classList.add(n)),this._previousFontSetClass=e,this.fontIcon!==this._previousFontIconClass&&!e.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let e=this._elementsWithExternalReferences;e&&e.forEach((n,o)=>{n.forEach(r=>{o.setAttribute(r.name,`url('${t}#${r.value}')`)})})}_cacheChildrenWithExternalReferences(t){let e=t.querySelectorAll(st),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<e.length;o++)Q.forEach(r=>{let s=e[o],h=s.getAttribute(r),f=h?h.match(at):null;if(f){let I=n.get(s);I||(I=[],n.set(s,I)),I.push({name:r,value:f[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(M(1)).subscribe(o=>this._setSvgElement(o),o=>{let r=`Error retrieving icon ${e}:${n}! ${o.message}`;this._errorHandler.handleError(new Error(r))})}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=P({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(e,n){e&2&&(U("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),W(n.color?"mat-"+n.color:""),k("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",j],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:nt,decls:1,vars:0,template:function(e,n){e&1&&(H(),z(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
|
|
1
|
+
import{O as w}from"./chunk-XLIPGDSC.js";import{B,w as V}from"./chunk-LNJUGHOX.js";import{B as N,Ca as S,Ea as _,Fd as j,Gb as P,Hb as D,J as T,Jc as k,Lc as W,O as M,Qa as x,S as A,Y as b,Zb as U,a as R,ea as v,jb as d,ma as L,na as O,pa as F,q as u,qa as g,qd as $,r as y,ra as l,v as m,yc as H,zc as z}from"./chunk-ZYJ6LAJ3.js";var C;function Z(){if(C===void 0&&(C=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(C=i.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return C}function p(i){return Z()?.createHTML(i)||i}function Y(i){return Error(`Unable to find icon with the name "${i}"`)}function tt(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function q(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function G(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var c=class{url;svgText;options;svgElement;constructor(a,t,e){this.url=a,this.svgText=t,this.options=e}},K=(()=>{class i{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(t,e,n,o){this._httpClient=t,this._sanitizer=e,this._errorHandler=o,this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,o){return this._addSvgIconConfig(t,e,new c(n,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,o){let r=this._sanitizer.sanitize(d.HTML,n);if(!r)throw G(n);let s=p(r);return this._addSvgIconConfig(t,e,new c("",s,o))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new c(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){let o=this._sanitizer.sanitize(d.HTML,e);if(!o)throw G(e);let r=p(o);return this._addSvgIconSetConfig(t,new c("",r,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let e=this._sanitizer.sanitize(d.RESOURCE_URL,t);if(!e)throw q(t);let n=this._cachedIconsByUrl.get(e);return n?u(E(n)):this._loadSvgIconFromConfig(new c(t,null)).pipe(v(o=>this._cachedIconsByUrl.set(e,o)),m(o=>E(o)))}getNamedSvgIcon(t,e=""){let n=J(e,t),o=this._svgIconConfigs.get(n);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(e,t),o)return this._svgIconConfigs.set(n,o),this._getSvgFromConfig(o);let r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):y(Y(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?u(E(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(m(e=>E(e)))}_getSvgFromIconSetConfigs(t,e){let n=this._extractIconWithNameFromAnySet(t,e);if(n)return u(n);let o=e.filter(r=>!r.svgText).map(r=>this._loadSvgIconSetFromConfig(r).pipe(T(s=>{let f=`Loading icon set URL: ${this._sanitizer.sanitize(d.RESOURCE_URL,r.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(f)),u(null)})));return N(o).pipe(m(()=>{let r=this._extractIconWithNameFromAnySet(t,e);if(!r)throw Y(t);return r}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){let r=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(r,t,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(v(e=>t.svgText=e),m(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?u(null):this._fetchIcon(t).pipe(v(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){let o=t.querySelector(`[id="${e}"]`);if(!o)return null;let r=o.cloneNode(!0);if(r.removeAttribute("id"),r.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(r,n);if(r.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(r),n);let s=this._svgElementFromString(p("<svg></svg>"));return s.appendChild(r),this._setSvgAttributes(s,n)}_svgElementFromString(t){let e=this._document.createElement("DIV");e.innerHTML=t;let n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){let e=this._svgElementFromString(p("<svg></svg>")),n=t.attributes;for(let o=0;o<n.length;o++){let{name:r,value:s}=n[o];r!=="id"&&e.setAttribute(r,s)}for(let o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[o].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){let{url:e,options:n}=t,o=n?.withCredentials??!1;if(!this._httpClient)throw tt();if(e==null)throw Error(`Cannot fetch icon from URL "${e}".`);let r=this._sanitizer.sanitize(d.RESOURCE_URL,e);if(!r)throw q(e);let s=this._inProgressUrlFetches.get(r);if(s)return s;let h=this._httpClient.get(r,{responseType:"text",withCredentials:o}).pipe(m(f=>p(f)),A(()=>this._inProgressUrlFetches.delete(r)),b());return this._inProgressUrlFetches.set(r,h),h}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(J(t,e),n),this}_addSvgIconSetConfig(t,e){let n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){let e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;n<this._resolvers.length;n++){let o=this._resolvers[n](e,t);if(o)return et(o)?new c(o.url,null,o.options):new c(o,null)}}static \u0275fac=function(e){return new(e||i)(g(V,8),g(B),g(S,8),g(_))};static \u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function E(i){return i.cloneNode(!0)}function J(i,a){return i+":"+a}function et(i){return!!(i.url&&i.options)}var nt=["*"],ot=new F("MAT_ICON_DEFAULT_OPTIONS"),rt=new F("mat-icon-location",{providedIn:"root",factory:it});function it(){let i=l(S),a=i?i.location:null;return{getPathname:()=>a?a.pathname+a.search:""}}var Q=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],st=Q.map(i=>`[${i}]`).join(", "),at=/^url\(['"]?#(.*?)['"]?\)$/,Tt=(()=>{class i{_elementRef=l(x);_iconRegistry=l(K);_location=l(rt);_errorHandler=l(_);_defaultColor;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(t){let e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(t){let e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=R.EMPTY;constructor(){let t=l(new $("aria-hidden"),{optional:!0}),e=l(ot,{optional:!0});e&&(e.color&&(this.color=this._defaultColor=e.color),e.fontSet&&(this.fontSet=e.fontSet)),t||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let e=this._location.getPathname();this._previousPath=e,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(e),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){let n=t.childNodes[e];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,e=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>t.classList.remove(n)),e.forEach(n=>t.classList.add(n)),this._previousFontSetClass=e,this.fontIcon!==this._previousFontIconClass&&!e.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let e=this._elementsWithExternalReferences;e&&e.forEach((n,o)=>{n.forEach(r=>{o.setAttribute(r.name,`url('${t}#${r.value}')`)})})}_cacheChildrenWithExternalReferences(t){let e=t.querySelectorAll(st),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<e.length;o++)Q.forEach(r=>{let s=e[o],h=s.getAttribute(r),f=h?h.match(at):null;if(f){let I=n.get(s);I||(I=[],n.set(s,I)),I.push({name:r,value:f[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(M(1)).subscribe(o=>this._setSvgElement(o),o=>{let r=`Error retrieving icon ${e}:${n}! ${o.message}`;this._errorHandler.handleError(new Error(r))})}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=P({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(e,n){e&2&&(U("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),W(n.color?"mat-"+n.color:""),k("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",j],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:nt,decls:1,vars:0,template:function(e,n){e&1&&(H(),z(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return i})(),Mt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=D({type:i});static \u0275inj=O({imports:[w,w]})}return i})();export{Tt as a,Mt as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P,b as v}from"./chunk-
|
|
1
|
+
import{a as P,b as v}from"./chunk-6OIMOM7S.js";import{i as I}from"./chunk-I723PUUO.js";import{a as f}from"./chunk-AGBJEXIM.js";import{b as m,e as g}from"./chunk-OXWPYJNB.js";import{c as i}from"./chunk-JBEKD57G.js";import{J as h,ea as l,ma as C,qa as u,r as c,ra as S}from"./chunk-ZYJ6LAJ3.js";var R=(()=>{let o=class o{constructor(t,e,n){this.httpService=t,this.toastrService=e,this.notificationService=n,this.authService=S(I),this.scanChannelToastr=S(P),this.channelOptions=this.authService.getChannels()}loader(t=i.GuidEMpty){return this.httpService.post("/api/product/Load",{ID:t})}LoadInPOS(t=i.GuidEMpty){return this.httpService.post("/api/product/LoadInPOS",{ID:t})}filterChannelByTypeId(t,e){return t.filter(n=>e.findIndex(a=>n.TypeID==a)!==-1)}getProductStatistic(){return this.httpService.post("/api/product/ProductStatistic",{})}getTotalProductLive(t){let e={ID:t};return this.httpService.post("/api/product/TotalProductLive",e)}clearCacheChannel(t){let e={ID:t};return this.httpService.post("/api/Channel/ClearCacheChannel",e)}detachProduct(t){return this.httpService.post("/api/product/Detach",t)}uploadSingleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleChannel",n).pipe(l(a=>{this.showToastrSuccessUploadSingle(a,t[0])}),h(a=>(this.showToastErrorUploadSingle(a,t[0]),c(()=>new Error(a)))))}uploadMultipleProduct(t,e){let n={Channel:e,Products:t};return this.httpService.post("api/product/UploadMultipleProductAndMultipleChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a.Message)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}uploadNotInChannel(t,e){let n={Products:t,Channel:e};return this.httpService.post("/api/product/UploadProductNotInChannelToChannel",n).pipe(l(a=>{this.showToastrUploadMultiple(a)}),h(a=>(this.showToastrUploadMultiple(a.error?.Message),c(()=>new Error(a)))))}scanSingle(t,e){let n={ID:t,SKU:e};return this.httpService.post("/api/product/ScanSingle",n)}scanNotInChannel(t){let e={ID:t};return this.httpService.post("/api/product/ScanNotinChannel",e)}findAllSoldInChannel(t){return this.httpService.post("/api/product/GetSoldInChannel",t)}scanAll(t,e,n,a=!1){let s={ID:t,ScanFull:e,UpdatedProduct:n,Async:a};return this.httpService.post("/api/product/ScanOptimized",s)}scanAsyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!0};return this.httpService.post(f.ScanAsyncProductV2,a).pipe(l(s=>{this.notificationService.subscribeToJobGroup(s.JobID)}))}scanSyncProductV2(t,e,n){let a={ID:t,ScanFull:e,UpdatedProduct:n,Async:!1};return this.httpService.post(f.ScanSyncProductV2,a)}scanProductV2(t,e,n,a=!1){let s=this.findChannelById(t,this.channelOptions);return a?this.scanAsyncProductV2(t,e,n).pipe(l(r=>{this.scanChannelToastr.showToast({text:"Scan Job Started",detail:`JobID: ${r.JobID}`,severity:"info",data:{channelName:s.Name,channelTypeId:s.TypeID,jobId:r.JobID}})})):this.scanSyncProductV2(t,e,n).pipe(l(r=>{this.successToastrScanAllProduct(r,s,!n)}))}scanCompareToPos(t){return this.httpService.post("/api/product/CompareMarketplaceToPOS",t)}getVariantCodesProduct(t){return(t.Variants||[]).map(a=>a.Code)}downloadMultipleProduct(t){let e=t.map(n=>({ChannelItemID:n.ChannelItemID,ChannelID:n.ChannelID}));return this.httpService.post("/api/product/DownloadMultipleProductFromChannel",e).pipe(l(n=>{this.toastrService.success(`${n.Count} products downloaded to POS`,"Download Complete")}))}downloadProduct(t){let e={ChannelItemID:t.ChannelItemID,ChannelID:t.ChannelID};return this.httpService.post("/api/product/DownloadProductFromChannel",e).pipe(l(()=>{this.toastrService.success("Product successfully downloaded to POS","Download Complete")}))}getVariantCodesProducts(t=[]){let e=[];return t.forEach(n=>{n.Variants.forEach(a=>{e=[...e,a.Code]})}),e}filterUnselectedChannel(t,e){let n=[];t.forEach(s=>{n=[...n,...s.Channel]});let a;if(!n||n.length==0)a=e;else{let s=[];a=e.filter(r=>(s=n.filter(d=>d.ChannelID==r.ID),s.length!==t.length))}return a}findChannelById(t,e){return e.find(n=>n.ID==t)}sortChannel(t=[]){return t.sort((e,n)=>e.TypeID<n.TypeID?1:e.TypeID===n.TypeID?0:-1)}hasSelection(t=[]){return this.selectedProduct(t).length>0}selectedProduct(t=[]){return t.filter(e=>e.selected)}hasSelectionVariant(t){return this.selectedVariantProduct(t).length>0}selectedVariantProduct(t){let e=[];return t.forEach(n=>{e=[...e,...n.Variants!=null?n.Variants.filter(a=>a.selected):""]}),e}getChannelProduct(t){let e=t.Variants||[],n=[];for(let a of e)if(a.Channel!=null)for(let s of a.Channel)n.filter(r=>r.ChannelID==s.ChannelID).length==0&&n.push(s);return this.sortChannel(n)}successToastrScanAllProduct(t,e,n){let a=t.InChannel?t?.InChannel?.Product:0,s=t?.NotInPOS?.Product?t?.NotInPOS?.Product:0,r=i.IsNotEmpty(t.LastUpdate)?i.convertToReadableDate(t.LastUpdate):null;n?this.toastrService.success(`
|
|
2
2
|
${s+a} product updates in ${e.Name} </br>
|
|
3
3
|
(${a} In Channel + ${s} Not In Pos)
|
|
4
4
|
${i.IsNotEmpty(r)?"since "+r:""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as E}from"./chunk-TXOZULMZ.js";import{a as Oe}from"./chunk-PMVDQ2OP.js";import{a as K}from"./chunk-ZSUWHVKX.js";import{d as ve,e as ye}from"./chunk-6KWG6O5L.js";import{a as Ee,c as Pe}from"./chunk-3JRUKSV3.js";import"./chunk-4RLWHMI6.js";import"./chunk-AFDI4TD4.js";import{b as Ie,c as Le}from"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import{b as Ve,c as Ne}from"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import{a as he}from"./chunk-QXRG5XYP.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import{b as Q}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as ge}from"./chunk-JBEKD57G.js";import{b as Me,c as ne,d as we,j as be,k as De,m as Te,n as ke}from"./chunk-EDEZ3JLR.js";import{A as J,b as _e,h as Y,m as Z}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{a as Ce,b as fe,c as xe}from"./chunk-ZETUYNFJ.js";import{v as Se,w as Ue}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{G as de,I as ue,c as pe,i as j,m as H}from"./chunk-LNJUGHOX.js";import{$b as S,$c as q,G as le,Gb as W,Ha as y,Kb as me,Kc as ee,Mb as $,Mc as g,Nc as te,Oc as k,Qc as M,Rc as w,Sc as b,Tc as O,Uc as A,Vc as h,Z as P,Zc as z,_c as ie,bc as U,cc as V,ea as X,ec as N,fc as I,gc as u,hc as s,hd as F,ic as l,id as G,jc as L,lb as ce,nb as c,nc as D,oc as T,od as R,q as ae,qc as v,ra as x,v as B,vc as C,xa as p,xc as m,ya as d}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as oe,b as se}from"./chunk-66YHNWRR.js";var re=(function(i){return i.ERROR="https://resc.cloudinary.com/pos/image/upload/v1705387550/POS/Images/Cashier/globalerror.svg",i.UNAUTHORIZED="https://resc.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",i.EMPTY_LIST="https://resc.cloudinary.com/pos/image/upload/v1705388070/POS/Images/Cashier/globalnodata.svg",i.REMOVE="https://resc.cloudinary.com/pos/image/upload/v1706156973/icons/globalerrorclear.svg",i})(re||{});var Ae=()=>({display:"d-flex"});function $e(i,a){if(i&1&&(s(0,"div",6),L(1,"img",9),s(2,"p",10),g(3," All users already migrated. "),l()()),i&2){let r=m();c(),u("src",r.emptyStateIcon,ce)}}function ze(i,a){if(i&1){let r=v();s(0,"div",14)(1,"p-checkBox",15),b("ngModelChange",function(n){let t=p(r).$implicit;return w(t.selected,n)||(t.selected=n),d(n)}),C("ngModelChange",function(){p(r);let n=m(2),t=h(0);return d(n.onUserCheckChange(t))}),l(),s(2,"label",16),g(3),l()()}if(i&2){let r=a.$implicit;c(),ee(ie(7,Ae)),u("binary",!0)("id",r.ID),M("ngModel",r.selected),c(),u("for",r.ID),c(),k(" ",r.Name," ")}}function qe(i,a){if(i&1){let r=v();s(0,"div",11)(1,"p-checkBox",12),b("ngModelChange",function(n){p(r);let t=m();return w(t.isCheckAll,n)||(t.isCheckAll=n),d(n)}),C("ngModelChange",function(n){p(r);let t=m(),o=h(0);return d(t.onCheckAllChange(n,o))}),l(),s(2,"label",13),g(3," Check All "),l()(),N(4,ze,4,8,"div",14,V)}if(i&2){let r=m(),e=h(0);c(),ee(ie(4,Ae)),u("binary",!0),M("ngModel",r.isCheckAll),c(3),I(e)}}var Fe=(()=>{let a=class a extends Pe{constructor(){super(),this.dialogRef=x(Me),this.data=x(ne),this.userService=x(E),this.dialogData=x(ne),this.toastr=x(Q),this.userGroups=R(()=>this.dialogData.userGroups||[]),this.availableUsers=R(()=>{let e=new Map;return this.dialogData.availableUsers.forEach(n=>e.set(n.ID,n)),e}),this.migrateLoader$=this.userService.getUserMigrateLoader().pipe(B(e=>e.Data),B(e=>e.filter(t=>this.availableUsers().has(t.ID)===!1)),B(e=>e.map(t=>(t.selected=!0,t))),P(1)),this.isCheckAll=y(!0),this.selectedGroup=y(null),this.emptyStateIcon=re.EMPTY_LIST,this.config=new be,this.config.title="Migrate Users",this.config.customWidth="600px"}ngAfterViewInit(){this.initTopPosition()}ngOnDestroy(){this.stopOverlayObserver()}onUserCheckChange(e){let n=e.every(t=>t.selected);this.isCheckAll.set(n)}onCheckAllChange(e,n){this.isCheckAll.set(e),n.forEach(t=>t.selected=e)}onClose(){this.dialogRef.close(!1)}onSubmit(e){let n=e.filter(o=>o.selected);if(n.length===0){this.toastr.error("Please select at least one user","Error");return}if(ge.IsEmpty(this.selectedGroup())){this.toastr.error("Please select a user group","Error");return}let t={userIds:n.map(o=>o.ID),groupId:this.selectedGroup()};this.userService.migrateUser(t).subscribe(()=>{this.dialogRef.close(!0),this.toastr.success("Users migrated successfully","Success")})}onClickSelect(){setTimeout(()=>{this.adjustOverlayPosition()},0)}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=W({type:a,selectors:[["app-migrate-dialog"]],features:[z([E]),me],decls:15,vars:8,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[1,"row"],[1,"col","border-end"],[1,"modal-title","mb-8"],[1,"user-list-scroll","mt-5",2,"max-height","300x","overflow-y","auto","overflow-x","hidden","box-sizing","border-box"],[1,"d-flex","flex-column","align-items-center","mt-5"],[1,"col"],["optionLabel","Name","optionValue","ID","placeholder","Select a group","filterBy","Name","appendTo","body",1,"w-100",3,"click","ngModelChange","options","filter","ngModel"],["alt","No users found",2,"width","100px","height","100px",3,"src"],[1,"text-muted","mt-4","opacity-50",2,"margin-bottom","0px"],[1,"d-flex","w-100","align-items-center","mb-4"],["id","checkBoxAll",3,"ngModelChange","binary","ngModel"],["for","checkBoxAll",1,"ms-2"],[1,"d-flex","w-100","align-items-center","mb-3","ms-10"],[3,"ngModelChange","binary","id","ngModel"],[1,"ms-2",3,"for"]],template:function(n,t){if(n&1){let o=v();O(0),F(1,"async"),s(2,"modal-material",0),C("onClose",function(){return p(o),d(t.onClose())})("onCancel",function(){return p(o),d(t.onClose())})("onOk",function(){p(o);let _=h(0);return d(t.onSubmit(_))}),s(3,"div",1)(4,"div",2)(5,"div",3)(6,"h5",4),g(7,"Users from POS"),l(),s(8,"div",5),S(9,$e,4,1,"div",6)(10,qe,6,5),l()(),s(11,"div",7)(12,"h5",4),g(13,"Assign Group"),l(),s(14,"p-select",8),C("click",function(){return p(o),d(t.onClickSelect())}),b("ngModelChange",function(_){return p(o),w(t.selectedGroup,_)||(t.selectedGroup=_),d(_)}),l()()()()()}if(n&2){let o=A(G(1,5,t.migrateLoader$));c(2),u("config",t.config),c(7),U((o==null?null:o.length)===0?9:10),c(5),u("options",t.userGroups())("filter",!0),M("ngModel",t.selectedGroup)}},dependencies:[H,De,J,Y,Z,Ve,Ee,j],styles:[".user-list-scroll[_ngcontent-%COMP%]{max-height:160px;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}"]});let i=a;return i})();var je=i=>({"guid-highlight":i}),Ge=i=>({ID:i});function He(i,a){if(i&1){let r=v();s(0,"button",15),C("click",function(){p(r);let n=m(2),t=h(0);return d(n.onDeleteUser(t==null?null:t.Filter))}),L(1,"i",16),g(2),l()}if(i&2){let r,e=m(2);c(2),k(" Delete (",(r=e.selectedUsers())==null?null:r.length,") ")}}function Ye(i,a){if(i&1&&(D(0),S(1,He,3,1,"button",14),T()),i&2){let r,e=m();c(),U(((r=e.selectedUsers())==null?null:r.length)>0?1:-1)}}function Ze(i,a){if(i&1){let r=v();D(0),s(1,"button",17),C("click",function(){p(r);let n=m(),t=h(0),o=h(2);return d(n.onMigrateUser(t==null||t.Options==null?null:t.Options.Groups,o==null?null:o.Data))}),g(2," Migrate "),l(),T()}}function Je(i,a){i&1&&(D(0),s(1,"a",18),g(2," Invite "),l(),T())}function Ke(i,a){if(i&1){let r=v();D(0),s(1,"th",19)(2,"div",20)(3,"input",21),C("change",function(n){p(r);let t=m(),o=h(2);return d(t.onCheckAllUser(n.target.checked,o==null?null:o.Data))}),l()()(),T()}}function Qe(i,a){if(i&1){let r=v();s(0,"div",20)(1,"input",25),b("ngModelChange",function(n){p(r);let t=m(2).$implicit;return w(t.checked,n)||(t.checked=n),d(n)}),C("ngModelChange",function(){p(r);let n=m(3),t=h(2);return d(n.onSelectUser(t==null?null:t.Data))}),l()()}if(i&2){let r=m(2).$implicit;c(),M("ngModel",r.checked)}}function Xe(i,a){if(i&1&&(D(0),s(1,"td"),S(2,Qe,2,1,"div",20),l(),T()),i&2){let r,e=m().$implicit,n=m();c(2),U(e.Name!==((r=n.currentLoginUser())==null?null:r.username)?2:-1)}}function et(i,a){if(i&1&&(s(0,"a",22),g(1),l()),i&2){let r=m().$implicit,e=m();u("queryParams",q(3,Ge,r.UserID))("matTooltip",e.isGuid(r.Name)?"This user is either Suspended or Deleted in the DealPOS. You can also remove it from Omnichannel":""),c(),k(" ",r.Name," ")}}function tt(i,a){if(i&1&&(s(0,"span"),g(1),l()),i&2){let r=m().$implicit;c(),te(r.Name)}}function it(i,a){if(i&1&&(s(0,"a",23),g(1),l()),i&2){let r=m().$implicit;u("queryParams",q(2,Ge,r.GroupID)),c(),k(" ",r.GroupName," ")}}function nt(i,a){if(i&1&&(s(0,"span"),g(1),l()),i&2){let r=m().$implicit;c(),te(r.GroupName)}}function rt(i,a){if(i&1&&L(0,"p-chip",26),i&2){let r=a.$implicit;u("label",r.Name)("image",r.Logo)("alt",r.Name)}}function ot(i,a){if(i&1&&N(0,rt,1,3,"p-chip",26,V),i&2){let r=m().$implicit;I(r.Channels)}}function st(i,a){i&1&&(s(0,"span"),g(1,"All Channels"),l())}function at(i,a){if(i&1&&(s(0,"tr",11),$(1,Xe,3,1,"ng-container",3),s(2,"td"),S(3,et,2,5,"a",22)(4,tt,2,1,"span"),l(),s(5,"td"),S(6,it,2,4,"a",23)(7,nt,2,1,"span"),l(),s(8,"td")(9,"div",24),S(10,ot,2,0)(11,st,2,0,"span"),l()()()),i&2){let r=a.$implicit,e=m();u("ngClass",q(5,je,e.isGuid(r.Name))),c(),u("ngxPermissionsOnly",e.userDeleteRole),c(2),U(e.hasUserEditRole()?3:4),c(3),U(e.hasUserEditRole()?6:7),c(4),U((r.Channels==null?null:r.Channels.length)>0?10:11)}}function lt(i,a){if(i&1){let r=v();s(0,"app-mat-paginator-no-count",27),C("next",function(){p(r);let n=m(),t=h(0);return d(n.onNextPage(t==null?null:t.Filter))})("previous",function(){p(r);let n=m(),t=h(0);return d(n.onPrevPage(t==null?null:t.Filter))}),l()}if(i&2){m();let r=h(0),e=h(2);u("filter",r==null?null:r.Filter)("totaldata",e==null||e.Data==null?null:e.Data.length)("paginationTotal",e==null?null:e.Count)("hasClicked",!0)("alwaysShowNextButton",!0)}}var Qt=(()=>{let a=class a{isGuid(e){return/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(e)}constructor(){this.usersService=x(E),this.permissionService=x(Ce),this.toastService=x(Q),this.dialog=x(we),this.userInviteOptions=y([]),this.searchText=y(null),this.selectedGroup=y(null),this.userLoader$=this.usersService.getLoader().pipe(X(e=>{this.userInviteOptions.set(e.Options.Users),this.initUsers(e.Filter)}),P(1)),this.users$=ae({Count:0,Data:[]}),this.userAddRole=K.UserInvite,this.userDeleteRole=K.UserDelete,this.hasUserEditRole=y(!1),this.selectedUsers=y([]),this.currentLoginUser=R(()=>{let e=localStorage.getItem(he.AUTHORIZATION);return e?JSON.parse(e):null}),this.permissionService.hasPermission(K.UserEdit).then(e=>{this.hasUserEditRole.set(e)})}initUsers(e){let n=se(oe({},e),{Name:this.searchText(),GroupID:this.selectedGroup()});this.users$=this.usersService.getUsers(n).pipe(X(t=>this.filterUserInvtiteOptions(t.Data)),P(1))}filterUserInvtiteOptions(e){this.userInviteOptions.update(n=>n.filter(t=>e.findIndex(o=>o.UserID===t.ID)===-1))}onCheckAllUser(e,n){n.forEach(o=>{o.Name!==this.currentLoginUser()?.username&&(o.checked=e)});let t=n.filter(o=>o.checked);this.selectedUsers.set(t)}onSelectUser(e){let n=e.filter(t=>t.checked);this.selectedUsers.set(n)}onDeleteUser(e={PageNumber:1,PageSize:10}){let n=this.selectedUsers().map(o=>o.UserID);confirm("Are you sure you want to delete selected users?")&&this.usersService.deleteUsers(n).subscribe(()=>{this.selectedUsers.set([]),this.toastService.success("User deleted successfully","Success"),this.initUsers(e)})}onMigrateUser(e,n){this.dialog.open(Fe,{data:{userGroups:e,availableUsers:n}}).afterClosed().pipe(le(t=>t===!0)).subscribe(()=>{this.initUsers({PageNumber:1,PageSize:10})})}onNextPage(e){e.PageNumber+=1,this.initUsers(e)}onPrevPage(e){e.PageNumber-=1,this.initUsers(e)}onSuccessUpdateUser(e){e.PageNumber=1,this.initUsers(e)}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=W({type:a,selectors:[["app-users"]],features:[z([E])],decls:33,vars:17,consts:[["headerTitle","Users","description","Manage your users and their permissions",3,"textChange","onSubmit","text"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","Name","bindValue","ID","placeholder","Select Group",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[4,"ngxPermissionsOnly"],[1,"container-fluid"],[1,"row","mt-6"],[1,"col-12"],[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","25%"],[2,"width","15%"],[3,"ngClass"],[3,"filter","totaldata","paginationTotal","hasClicked","alwaysShowNextButton"],[3,"onSuccessUpdateUser","groups","users"],[1,"btn","btn-danger","me-3"],[1,"btn","btn-danger","me-3",3,"click"],[1,"fa","fa-trash","me-1"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["role","button","routerLink","/menu/users/users/form",1,"btn","btn-success"],[2,"width","5px"],[1,"d-flex"],["name","selectAll","type","checkbox",3,"change"],["routerLink","/menu/users/users/info",3,"queryParams","matTooltip"],["routerLink","/menu/users/groups/info",3,"queryParams"],[1,"lh-base"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"me-3","mb-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"label","image","alt"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked","alwaysShowNextButton"]],template:function(n,t){if(n&1){let o=v();O(0),F(1,"async"),O(2),F(3,"async"),s(4,"mainpanel",0),b("textChange",function(_){return p(o),w(t.searchText,_)||(t.searchText=_),d(_)}),C("onSubmit",function(){p(o);let _=h(0);return d(t.initUsers(_==null?null:_.Filter))}),s(5,"filters")(6,"div")(7,"label",1),g(8,"Group"),l(),s(9,"ng-select",2),b("ngModelChange",function(_){return p(o),w(t.selectedGroup,_)||(t.selectedGroup=_),d(_)}),l()()(),s(10,"actions"),$(11,Ye,2,1,"ng-container",3)(12,Ze,3,0,"ng-container",3)(13,Je,3,0,"ng-container",3),l(),s(14,"content")(15,"div",4)(16,"div",5)(17,"div",6)(18,"table",7)(19,"thead",8)(20,"tr"),$(21,Ke,4,0,"ng-container",3),s(22,"th",9),g(23,"Login ID"),l(),s(24,"th",10),g(25,"Group"),l(),s(26,"th"),g(27,"Channel"),l()()(),s(28,"tbody"),N(29,at,12,7,"tr",11,V),l()(),S(31,lt,1,5,"app-mat-paginator-no-count",12),l()()()()(),s(32,"invite-group",13),C("onSuccessUpdateUser",function(){p(o);let _=h(0);return d(t.onSuccessUpdateUser(_==null?null:_.Filter))}),l()}if(n&2){let o=A(G(1,11,t.userLoader$));c(2);let f=A(G(3,14,t.users$));c(2),M("text",t.searchText),c(5),u("clearable",!0)("items",o==null||o.Options==null?null:o.Options.Groups),M("ngModel",t.selectedGroup),c(2),u("ngxPermissionsOnly",t.userDeleteRole),c(),u("ngxPermissionsOnly",t.userAddRole),c(),u("ngxPermissionsOnly",t.userAddRole),c(8),u("ngxPermissionsOnly",t.userDeleteRole),c(8),I(f==null?null:f.Data),c(2),U(o?31:-1),c(),u("groups",o==null||o.Options==null?null:o.Options.Groups)("users",t.userInviteOptions())}},dependencies:[H,pe,ke,Te,ue,de,Oe,xe,fe,Ue,Se,ye,ve,J,_e,Y,Z,Ne,Le,Ie,j],styles:[".guid-highlight[_ngcontent-%COMP%]{background-color:#fff3cd!important}"]});let i=a;return i})();export{Qt as UsersComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as E}from"./chunk-ZSUWHVKX.js";import{a as K}from"./chunk-6OJQRHIZ.js";import{c as L}from"./chunk-JBEKD57G.js";import{A as j}from"./chunk-L3W6SG2T.js";import{b as A,c as H}from"./chunk-ZETUYNFJ.js";import{v as q,w as J}from"./chunk-STYL7ETF.js";import{c as Z,m as $}from"./chunk-LNJUGHOX.js";import{$b as _,$c as w,Gb as I,Hc as U,Mb as P,Mc as u,Nc as k,Oc as O,ad as N,bc as s,cd as z,dc as B,ec as V,fc as M,gc as d,hc as r,ic as c,jc as p,kd as R,lb as T,nb as i,nc as v,oc as b,qc as f,ra as F,sb as y,td as g,vc as C,xa as x,xc as a,ya as h}from"./chunk-ZYJ6LAJ3.js";var G=(t,e,n,l)=>[t,e,n,l],S=t=>[t],Q=(t,e)=>[t,e],W=t=>({"me-3":t}),X=t=>({"border-bottom pb-2":t});function Y(t,e){if(t&1){let n=f();r(0,"img",17),C("click",function(o){x(n);let m=a();return h(m.openBiggerPicture(o))}),c()}if(t&2){let n=a();d("src",n.image,T)}}function tt(t,e){t&1&&p(0,"img",9)}function nt(t,e){if(t&1&&(r(0,"span",19)(1,"a",20),p(2,"i",21),c()()),t&2){let n=a(2);i(),d("href",n.redirectUrl,T)}}function et(t,e){if(t&1&&(r(0,"div",12),p(1,"i",18),r(2,"span"),u(3),c(),_(4,nt,3,1,"span",19),c()),t&2){let n=a();i(3),k(n.code),i(),s(n.code!=="SKU not assigned"&&n.showRedirectIcon()?4:-1)}}function it(t,e){if(t&1){let n=f();r(0,"div",22),C("click",function(){x(n);let o=a();return h(o.onEventDesc())}),p(1,"i",23),r(2,"span"),u(3),c()()}if(t&2){let n=a();i(3),k(n.description)}}function ot(t,e){if(t&1){let n=f();r(0,"div",24)(1,"input",25),C("change",function(o){x(n);let m=a(2);return h(m.onCheck(o.target.checked))}),c()()}}function at(t,e){if(t&1&&(v(0),_(1,ot,2,0,"div",24),b()),t&2){let n=a();i(),s(n.showCheckBox()?1:-1)}}function rt(t,e){if(t&1){let n=f();r(0,"button",28),C("click",function(){x(n);let o=a(3);return h(o.onDownload())}),p(1,"i",29),u(2,"Download "),c()}}function ct(t,e){if(t&1&&(v(0),_(1,rt,3,0,"button",27),b()),t&2){let n=a(2);i(),s(n.downloadButton()?1:-1)}}function lt(t,e){}function dt(t,e){if(t&1){let n=f();r(0,"li")(1,"a",36),C("click",function(){x(n);let o=a(6);return h(o.onScan())}),p(2,"i",37),u(3,"Scan "),c()()}}function _t(t,e){if(t&1&&(v(0),_(1,dt,4,0,"li"),b()),t&2){let n=a(5);i(),s(n.scanButton()?1:-1)}}function st(t,e){if(t&1){let n=f();r(0,"li")(1,"a",38),C("click",function(){x(n);let o=a(6);return h(o.onDetach())}),p(2,"i",39),u(3,"Detach "),c()()}}function mt(t,e){if(t&1&&(v(0),_(1,st,4,0,"li"),b()),t&2){let n=a(5);i(),s(n.detachButton()?1:-1)}}function pt(t,e){if(t&1&&(v(0),r(1,"div",33),p(2,"button",34),r(3,"ul",35),P(4,_t,2,1,"ng-container",15)(5,mt,2,1,"ng-container",15),c()(),b()),t&2){let n=a(4);i(4),d("ngxPermissionsOnly",w(2,S,n.productScanRole)),i(),d("ngxPermissionsOnly",w(4,S,n.productDetachRole))}}function ut(t,e){if(t&1){let n=f();r(0,"button",31),C("click",function(){x(n);let o=a(3);return h(o.onUpload())}),p(1,"i",32),u(2,"Upload "),c(),P(3,pt,6,6,"ng-container",15)}if(t&2){let n=a(3);i(3),d("ngxPermissionsOnly",N(1,Q,n.productScanRole,n.productDetachRole))}}function Ct(t,e){if(t&1){let n=f();r(0,"button",28),C("click",function(){x(n);let o=a(5);return h(o.onScan())}),p(1,"i",40),u(2," Scan "),c()}}function gt(t,e){if(t&1&&(v(0),_(1,Ct,3,0,"button",27),b()),t&2){let n=a(4);i(),s(n.scanButton()?1:-1)}}function xt(t,e){if(t&1){let n=f();r(0,"button",42),C("click",function(){x(n);let o=a(5);return h(o.onDetach())}),p(1,"i",39),u(2,"Detach "),c()}}function ht(t,e){if(t&1&&(v(0),_(1,xt,3,0,"button",41),b()),t&2){let n=a(4);i(),s(n.detachButton()?1:-1)}}function ft(t,e){if(t&1&&P(0,gt,2,1,"ng-container",15)(1,ht,2,1,"ng-container",15),t&2){let n=a(3);d("ngxPermissionsOnly",w(2,S,n.productScanRole)),i(),d("ngxPermissionsOnly",w(4,S,n.productDetachRole))}}function wt(t,e){if(t&1&&(r(0,"div",26),P(1,lt,0,0,"ng-template",30)(2,ut,4,4,"ng-template",null,0,R)(4,ft,2,6,"ng-template",null,1,R),c()),t&2){let n=U(3),l=U(5),o=a(2);i(),d("ngxPermissionsOnly",w(3,S,o.productUploadRole))("ngxPermissionsOnlyThen",n)("ngxPermissionsOnlyElse",l)}}function vt(t,e){if(t&1){let n=f();r(0,"button",28),C("click",function(){x(n);let o=a(4);return h(o.onScan())}),p(1,"i",40),u(2," Scan "),c()}}function bt(t,e){if(t&1&&(v(0),_(1,vt,3,0,"button",27),b()),t&2){let n=a(3);i(),s(n.scanButton()?1:-1)}}function Pt(t,e){if(t&1){let n=f();r(0,"button",44),C("click",function(){x(n);let o=a(4);return h(o.onDetach())}),p(1,"i",39),u(2,"Detach "),c()}}function St(t,e){if(t&1&&(v(0),_(1,Pt,3,0,"button",43),b()),t&2){let n=a(3);i(),s(n.detachButton()?1:-1)}}function Tt(t,e){if(t&1&&P(0,bt,2,1,"ng-container",15)(1,St,2,1,"ng-container",15),t&2){let n=a(2);d("ngxPermissionsOnly",w(2,S,n.productScanRole)),i(),d("ngxPermissionsOnly",w(4,S,n.productDetachRole))}}function yt(t,e){if(t&1&&(r(0,"a",46),p(1,"img",47),c()),t&2){let n=e.$implicit,l=e.$index,o=a(4);d("href",n==null?null:n.Url,T),i(),d("ngClass",w(4,W,l!=o.channels.length-1))("src",o.getChannelLogo(n),T)("matTooltip",n!=null&&n.Title?n==null?null:n.Title:n.Name)}}function Et(t,e){if(t&1&&V(0,yt,2,6,"a",46,B),t&2){let n=a(3);M(n.channels)}}function kt(t,e){if(t&1&&(r(0,"li")(1,"div",50)(2,"div",51)(3,"a",46),p(4,"img",52),r(5,"span",53),u(6),c()()()()()),t&2){let n=e.$implicit,l=e.$index,o=a(4);i(2),d("ngClass",w(4,X,l!=o.channels.length-1)),i(),d("href",n==null?null:n.Url,T),i(),d("src",o.getChannelLogo(n),T),i(2),k(n==null?null:n.Title)}}function Dt(t,e){if(t&1&&(r(0,"div",45)(1,"button",48),u(2),c(),r(3,"ul",49),V(4,kt,7,6,"li",null,B),c()()),t&2){let n=a(3);i(2),O(" ",n.channels.length," CHANNELS "),i(2),M(n.channels)}}function Bt(t,e){if(t&1&&(r(0,"div"),_(1,Et,2,0)(2,Dt,6,1,"div",45),c()),t&2){let n=a(2);i(),s(n.channels.length<4?1:2)}}function Vt(t,e){if(t&1&&(r(0,"div",16)(1,"div"),P(2,ct,2,1,"ng-container",15),_(3,wt,6,5,"div",26)(4,Tt,2,6),c(),_(5,Bt,3,1,"div"),c()),t&2){let n=a();i(2),d("ngxPermissionsOnly",w(3,S,n.productDownloadRole)),i(),s(n.uploadButton()?3:4),i(2),s(n.channels&&(n.channels==null?null:n.channels.length)>0?5:-1)}}var Jt=(()=>{let e=class e{constructor(){this.biggerPictureService=F(K),this.productId=g(void 0),this.uploadButton=g(!1),this.scanButton=g(!1),this.showCheckBox=g(!1),this.downloadButton=g(!1),this.showFooter=g(!0),this.detachButton=g(!1),this.title=g(void 0),this.check=g(void 0),this.imageForZoom=g(void 0),this.hasZoom=g(!0),this.showRedirectIcon=g(!0),this.productUploadRole=E.ProductUpload,this.productScanRole=E.ProductScan,this.productDownloadRole=E.ProductDownload,this.productDetachRole=E.ProductDetach,this.onUploadEvent=new y,this.onScanEvent=new y,this.checkBoxChange=new y,this.onDescEvent=new y,this.onDownloadEvent=new y,this.onDetachEvent=new y}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let l=localStorage.getItem("Authorization"),o=JSON.parse(l)?.Host;this.redirectUrl=`https://${o}/menu/Products/Catalog/Products/Info?ID=${this.productId()}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(l){this.checkBoxChange.emit(l)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}onDetach(){this.onDetachEvent.emit()}getChannelLogo(l){return L.getChannelLogoByTypeId(l.TypeID)}openBiggerPicture(l){this.biggerPictureService.openBiggerPicture(l,this.imageForZoom())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=I({type:e,selectors:[["app-product-card"]],inputs:{productId:[1,"productId"],uploadButton:[1,"uploadButton"],scanButton:[1,"scanButton"],showCheckBox:[1,"showCheckBox"],downloadButton:[1,"downloadButton"],showFooter:[1,"showFooter"],detachButton:[1,"detachButton"],image:"image",title:[1,"title"],code:"code",description:"description",channels:"channels",check:[1,"check"],imageForZoom:[1,"imageForZoom"],hasZoom:[1,"hasZoom"],showRedirectIcon:[1,"showRedirectIcon"]},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload",onDetachEvent:"onDetach"},decls:17,vars:12,consts:[["thenBlock",""],["elseBlock",""],[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"],[1,"rounded","imgUpload","float-left",3,"src"],["src","https://resc.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click","matTooltip"],[1,"description","cursor-pointer"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],[4,"ngxPermissionsOnly"],[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)"],[1,"rounded","imgUpload","float-left",3,"click","src"],[1,"fa","fa-barcode","me-2"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],["role","group","aria-label","Scan button with other button",1,"btn-group","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm","me-3"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download","me-1"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["type","button",1,"fs-6","btn","btn-light","btn-sm",3,"click"],["aria-hidden","true",1,"fa","fa-upload","me-1"],["role","group",1,"btn-group"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"fs-6","btn","btn-light","btn-sm","dropdown-toggle","ps-3"],[1,"dropdown-menu",2,"min-width","100px !important"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa","fa-spinner","me-2"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],[1,"fa","fa-spinner","me-1"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fs-6","btn","btn-light","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"dropdown"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],["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(o,m){if(o&1&&(r(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),_(6,Y,1,1,"img",8)(7,tt,1,0,"img",9),c()()(),r(8,"div",10)(9,"h4",11),C("click",function(){return m.onEventDesc()}),u(10),c(),_(11,et,5,2,"div",12),_(12,it,4,1,"div",12),c(),r(13,"div",13)(14,"div",14),P(15,at,2,1,"ng-container",15),c()()()(),_(16,Vt,6,5,"div",16),c()),o&2){let D;i(6),s(m.image?6:7),i(3),d("matTooltip",((D=m.title())==null?null:D.length)>25?m.title():""),i(),O(" ",m.title()," "),i(),s(m.code?11:-1),i(),s(m.description?12:-1),i(3),d("ngxPermissionsOnly",z(7,G,m.productDownloadRole,m.productScanRole,m.productUploadRole,m.productDetachRole)),i(),s(m.showFooter()?16:-1)}},dependencies:[$,Z,j,J,q,H,A],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 t=e;return t})();export{Jt as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as m}from"./chunk-I723PUUO.js";import{a as r}from"./chunk-AGBJEXIM.js";import{b as S,e as C}from"./chunk-OXWPYJNB.js";import{b as i,c as l}from"./chunk-JBEKD57G.js";import{aa as u,ea as h,ma as c,ra as s,v as p}from"./chunk-ZYJ6LAJ3.js";var b=(()=>{let n=class n{constructor(){this.httpService=s(C),this.toastr=s(S),this.tokenService=s(m)}saveChannel(e){return this.httpService.post("/api/Channel/SubmitChannel",e).pipe(u(t=>this.tokenService.refreshToken().pipe(p(o=>t))))}getLastSync(e){return this.httpService.get(`${r.ChannelGetLastSyncByID}/?ID=${e}`)}getChannel(e){return this.httpService.post(r.GetChannel,e)}getChannelLoader(){return this.httpService.get(r.GetChannelLoader)}testShopID(e){return this.httpService.post(r.TestShopID,e).pipe(h(t=>{this.showTostrSuccessTestShopID(t)}))}updateChannelType(e){let t={ChannelID:e.ID,TypeID:i.ShopifyV2};return this.httpService.post(r.UpdateChannelType,t).pipe(h(o=>{this.showTostrSuccessTestShopID(o)}))}updateChannelIndex(e){return this.httpService.post(r.UpdateChannelIndex,e)}deleteChannel(e){return this.httpService.post(r.DeleteChannel,e)}mapChannelImage(e){return e.map(t=>(t.img=l.getChannelLogoByTypeId(t.TypeID),t))}showTostrSuccessTestShopID(e){let t="";for(var o in e)t+=o+" : "+e[o]+"<br/>";this.toastr.success(t,"Success",{enableHtml:!0,closeButton:!0,positionClass:"toast-bottom-right"})}getRegisterByOutletName(e){return this.httpService.post(r.GetRegisterByOutletName,{Outlet:e})}getChannelRowCount(e){return this.httpService.post(r.GetChannelRowCount,e).pipe(p(t=>t.Count))}getChannelWarehouse(e){return this.httpService.get(`${r.GetChannelWarehouse}/?ChannelID=${e}`)}unSynchronizedWarehouse(e){return this.httpService.delete(`${r.UnSynchronizedWarehouse}?ID=${e}`)}authorizedChannel(e){let t=this.getApiAuthorize(e);return this.httpService.post(`/api/${t}`,null).pipe(h(o=>{window.open(o.Url,"_blank")}))}getApiAuthorize(e){let t;switch(e){case i.Shopee:t="ChannelAuthorization/ShopeeV2_URL";break;case i.Tiktok:t="ChannelAuthorization/Tiktok_URL";break;case i.Lazada:t="ChannelAuthorization/Lazada_URL";break}return t}};n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=c({token:n,factory:n.\u0275fac,providedIn:"root"});let a=n;return a})();export{b as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as Ce}from"./chunk-DXYMG6QK.js";import{c as Se}from"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import{a as ne}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import{a as me,b as pe,d as de,e as ge}from"./chunk-6KWG6O5L.js";import{i as ce}from"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import{b as re,e as ae}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as g,c as oe}from"./chunk-JBEKD57G.js";import{m as fe,n as _e}from"./chunk-EDEZ3JLR.js";import{A as ie,h as ee,m as te}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as se,c as le}from"./chunk-ZETUYNFJ.js";import{v as he,w as ue}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{I as L,i as Z,m as y}from"./chunk-LNJUGHOX.js";import{$b as V,$c as Y,Gb as K,Hb as _,Hc as P,Mb as S,Mc as c,Nc as h,Oc as G,Qc as O,Rc as w,Sc as I,Tc as q,Uc as Q,Vc as X,Z as b,aa as F,bc as W,dc as $,ea as R,ec as j,fc as A,gc as p,hc as r,hd as C,ic as s,id as x,jc as H,kd as D,lb as k,na as u,nb as l,nc as z,oc as J,q as B,qc as E,ra as f,v,vc as N,xa as M,xc as m,ya as T}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ve=t=>[t];function be(t,i){if(t&1&&(r(0,"span",14),H(1,"img",15),s(),r(2,"span"),c(3),s()),t&2){let a=i.item;l(),p("src",a.Img,k)("alt",a.Name),l(2),G(" ",a.Name," ")}}function Me(t,i){if(t&1){let a=E();z(0),q(1),C(2,"async"),r(3,"a",16),N("click",function(){M(a);let e=X(1),o=m();return T(o.submitLogistics(e))}),c(4,"Submit"),s(),J()}if(t&2){let a=m();l(),Q(x(2,0,a.logisticServices$))}}function Te(t,i){}function Ee(t,i){if(t&1){let a=E();r(0,"ng-select",18),I("ngModelChange",function(e){M(a);let o=m(2).$implicit;return w(o.ProductSKU,e)||(o.ProductSKU=e),T(e)}),s()}if(t&2){let a=m(),n=m().$implicit;O("ngModel",n.ProductSKU),p("items",a)}}function Ne(t,i){if(t&1&&(r(0,"span"),c(1),s()),t&2){let a=m(2).$implicit;l(),h(a.ProductSKU||"-")}}function Pe(t,i){if(t&1&&S(0,Te,0,0,"ng-template",17)(1,Ee,1,2,"ng-template",null,0,D)(3,Ne,2,1,"ng-template",null,1,D),t&2){let a=P(2),n=P(4),e=m(2);p("ngxPermissionsOnly",Y(3,ve,e.logisticEditRole))("ngxPermissionsOnlyThen",a)("ngxPermissionsOnlyElse",n)}}function Oe(t,i){if(t&1&&(r(0,"tr")(1,"td"),c(2),s(),r(3,"td"),c(4),s(),r(5,"td"),c(6),s(),r(7,"td"),V(8,Pe,5,5),C(9,"async"),s()()),t&2){let a,n=i.$implicit,e=m();l(2),h(n.Name),l(2),h(n.Service),l(2),h(n.TypeString),l(2),W((a=x(9,4,e.logisticOptions$))?8:-1,a)}}var ye=(()=>{let i=class i{constructor(){this.http=f(ae),this.toastr=f(re),this.authService=f(ce),this.filter={ChannelID:""},this.logisticEditRole=ne.LogisticUpdate,this.channelOptions=this.authService.getChannels(),this.initUnsupportedChannel(),this.initLoader()}initUnsupportedChannel(){let n=[g.WooCommerce,g.Lazada,g.Shopify,g.Plugo,g.Tokopedia];this.channelOptions=this.channelOptions.map(e=>(n.forEach(o=>{e.TypeID===o&&(e.disabled=!0)}),e))}initLoader(){this.http.post("/api/Logistic/Load",{}).subscribe(n=>{this.filter=n.Filter,this.channelName=this.channelOptions[0].Name,this.initLogisticServiceOptions(),this.getLogisticService()})}initLogisticServiceOptions(){this.logisticOptions$=this.http.get("/api/Logistic/OptionLogisticsService").pipe(b(1))}submitLogistics(n){this.clonedLogisticServices$.pipe(v(e=>n.map(o=>(e.findIndex(d=>d.Name===o.Name&&d.ProductSKU==o.ProductSKU)==-1&&(o.IsChange=!0),o))),F(e=>this.http.post("/api/Logistic/Submit",e))).subscribe(()=>{this.toastr.success("Logistic service updated successfully.","Success"),this.getLogisticService()})}getLogisticService(){this.iniTitle(),this.logisticServices$=this.http.post("/api/Logistic/Get",this.filter).pipe(v(n=>n.map(e=>(e.ProductSKU=oe.IsEmpty(e.ProductSKU)?null:e.ProductSKU,e))),R(n=>{let e=JSON.parse(JSON.stringify(n));this.clonedLogisticServices$=B(e)}),b(1))}iniTitle(){let n=this.channelOptions.find(e=>e.ID==this.filter.ChannelID);this.channelName=n?n.Name:null}};i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=K({type:i,selectors:[["app-logistic"]],standalone:!1,decls:29,vars:8,consts:[["thenBlock",""],["elseBlock",""],["hideSearchBox","true","searchBoxPlaceHolder","Enter Number...",3,"onSubmit","headerTitle","hideSearchDropdown"],[1,"mb-2","fw-bold"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[4,"ngxPermissionsOnly"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[1,"me-2"],[2,"width","18px",3,"src","alt"],["role","button","data-toggle","tooltip","data-placement","top","matTooltip","enter Logistic for recorded",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["placeholder","Logistic Service Code","bindLabel","Name","bindValue","Code",1,"w-75",3,"ngModelChange","ngModel","items"]],template:function(e,o){e&1&&(r(0,"mainpanel",2),N("onSubmit",function(){return o.getLogisticService()}),r(1,"filters")(2,"div")(3,"label",3),c(4,"Select a Channel"),s(),r(5,"ng-select",4),I("ngModelChange",function(d){return w(o.filter.ChannelID,d)||(o.filter.ChannelID=d),d}),S(6,be,4,3,"ng-template",5),s()()(),r(7,"actions"),S(8,Me,5,3,"ng-container",6),s(),r(9,"content")(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",10)(14,"table",11)(15,"thead",12)(16,"tr",13)(17,"th"),c(18,"Logistic"),s(),r(19,"th"),c(20,"Service"),s(),r(21,"th"),c(22,"Type"),s(),r(23,"th"),c(24,"Logistic Service"),s()()(),r(25,"tbody"),j(26,Oe,10,6,"tr",null,$),C(28,"async"),s()()()()()()()()),e&2&&(p("headerTitle","Logistic Courier - "+o.channelName)("hideSearchDropdown",!1),l(5),p("clearable",!1)("items",o.channelOptions),O("ngModel",o.filter.ChannelID),l(3),p("ngxPermissionsOnly",o.logisticEditRole),l(18),A(x(28,6,o.logisticServices$)))},dependencies:[ee,te,fe,de,me,pe,he,se,Z],encapsulation:2});let t=i;return t})();var we=[{path:"",component:ye}],Le=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_({type:i}),i.\u0275inj=u({imports:[y,L.forChild(we)]});let t=i;return t})();var mt=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=_({type:i}),i.\u0275inj=u({imports:[y,L,Le,ie,_e,ge,Ce,Se,ue,le]});let t=i;return t})();export{mt as LogisticModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-AGBJEXIM.js";import{e as n}from"./chunk-OXWPYJNB.js";import{ma as e,ra as c}from"./chunk-ZYJ6LAJ3.js";var u=(()=>{let t=class t{constructor(){this.httpService=c(n)}getConfig(){return this.httpService.post(i.PosAccountGetConfig,{})}saveConfig(o){return this.httpService.post(i.SubmitConfig,o)}};t.\u0275fac=function(s){return new(s||t)},t.\u0275prov=e({token:t,factory:t.\u0275fac});let r=t;return r})();export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-ZSUWHVKX.js";import{a as u,b as c}from"./chunk-A7PUMY67.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as m,I as p}from"./chunk-LNJUGHOX.js";import{Gb as l,gc as a,hc as s,ic as d,jc as t,nb as n}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var C=(()=>{let e=class e{constructor(){this.tabs=[{Title:"All",Url:"/menu/order/all"},{Title:"To Ship",Url:"/menu/order/to-ship"},{Title:"Awaiting Collection",Url:"/menu/order/awaiting-collection"},{Title:"Shipped",Url:"/menu/order/shipped"},{Title:"Completed",Url:"/menu/order/completed"},{Title:"Cancelled",Url:"/menu/order/cancelled"},{Title:"Download",Url:"/menu/order/download",Permissions:[i.DownloadOrder]},{Title:"Log",Url:"/menu/order/log",Permissions:[i.DownloadOrder]}]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=l({type:e,selectors:[["app-orders-v2"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(o,v){o&1&&(s(0,"nav",0)(1,"div",1)(2,"div"),t(3,"nav-tab",2),d()()(),t(4,"router-outlet")),o&2&&(n(3),a("Tabs",v.tabs)("usePermissions",!0))},dependencies:[p,m,c,u],encapsulation:2});let r=e;return r})();export{C as OrdersV2Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as a}from"./chunk-
|
|
1
|
+
import{f as a}from"./chunk-WHHW4IZT.js";import{O as t,y as i}from"./chunk-XLIPGDSC.js";import{Hb as r,na as e}from"./chunk-ZYJ6LAJ3.js";var g=(()=>{class o{static \u0275fac=function(m){return new(m||o)};static \u0275mod=r({type:o});static \u0275inj=e({imports:[t,i,a,t]})}return o})();export{g as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as J}from"./chunk-FULVA6QB.js";import{a as X}from"./chunk-B4QCGMST.js";import{a as W}from"./chunk-HPINZVE4.js";import{d as K}from"./chunk-ONU4O7N2.js";import{a as $}from"./chunk-N5AE5WMQ.js";import{a as U}from"./chunk-L3W6SG2T.js";import{D as w,L as Y,M as T,t as H,v as Z}from"./chunk-3I2V337G.js";import{Ac as j,Ad as E,Ba as q,Bc as R,Cc as b,Dc as _,Fd as d,Gb as P,Gd as G,Hb as S,Ib as O,Jc as D,Qa as k,Zb as I,Zc as N,gc as l,hc as c,ic as n,jc as C,la as M,na as z,nb as s,pa as v,qc as L,qd as Q,ra as r,sb as y,tb as A,ub as x,vc as u,xa as f,ya as g,yb as F,yc as V,zc as B}from"./chunk-ZYJ6LAJ3.js";var ae=["input"],re=["formField"],oe=["*"],h=class{source;value;constructor(te,e){this.source=te,this.value=e}},de={provide:U,useExisting:M(()=>se),multi:!0},ee=new v("MatRadioGroup"),ce=new v("mat-radio-default-options",{providedIn:"root",factory:ne});function ne(){return{color:"accent",disabledInteractive:!1}}var se=(()=>{class a{_changeDetector=r(E);_value=null;_name=r(w).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new y;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new h(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(t){return new(t||a)};static \u0275dir=O({type:a,selectors:[["mat-radio-group"]],contentQueries:function(t,i,o){if(t&1&&j(o,ie,5),t&2){let m;b(m=_())&&(i._radios=m)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",d],required:[2,"required","required",d],disabledInteractive:[2,"disabledInteractive","disabledInteractive",d]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[N([de,{provide:ee,useExisting:a}])]})}return a})(),ie=(()=>{class a{_elementRef=r(k);_changeDetector=r(E);_focusMonitor=r(H);_radioDispatcher=r(J);_defaultOptions=r(ce,{optional:!0});_ngZone=r(A);_renderer=r(F);_uniqueId=r(w).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new y;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Y();_injector=r(q);constructor(){r(Z).load($);let e=r(ee,{optional:!0}),t=r(new Q("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,t&&(this.tabIndex=G(t,0))}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new h(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,t;if(!e||!e.selected||this.disabled?t=this.tabIndex:t=e.selected===this?this.tabIndex:-1,t!==this._previousTabIndex){let i=this._inputElement?.nativeElement;i&&(i.setAttribute("tabindex",t+""),this._previousTabIndex=t,x(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===i&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===i&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=P({type:a,selectors:[["mat-radio-button"]],viewQuery:function(t,i){if(t&1&&(R(ae,5),R(re,7,k)),t&2){let o;b(o=_())&&(i._inputElement=o.first),b(o=_())&&(i._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(t,i){t&1&&u("focus",function(){return i._inputElement.nativeElement.focus()}),t&2&&(I("id",i.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),D("mat-primary",i.color==="primary")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("mat-mdc-radio-checked",i.checked)("mat-mdc-radio-disabled",i.disabled)("mat-mdc-radio-disabled-interactive",i.disabledInteractive)("_mat-animation-noopable",i._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",d],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:G(e)],checked:[2,"checked","checked",d],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",d],required:[2,"required","required",d],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",d]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:oe,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(t,i){if(t&1){let o=L();V(),c(0,"div",2,0)(2,"div",3)(3,"div",4),u("click",function(p){return f(o),g(i._onTouchTargetClick(p))}),n(),c(4,"input",5,1),u("change",function(p){return f(o),g(i._onInputInteraction(p))}),n(),c(6,"div",6),C(7,"div",7)(8,"div",8),n(),c(9,"div",9),C(10,"div",10),n()(),c(11,"label",11),B(12),n()()}t&2&&(l("labelPosition",i.labelPosition),s(2),D("mdc-radio--disabled",i.disabled),s(2),l("id",i.inputId)("checked",i.checked)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),I("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),s(5),l("matRippleTrigger",i._rippleTrigger.nativeElement)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0),s(2),l("for",i.inputId))},dependencies:[K,W],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}
|
|
1
|
+
import{a as J}from"./chunk-FULVA6QB.js";import{a as W}from"./chunk-HPINZVE4.js";import{a as X}from"./chunk-C7N6EI73.js";import{d as K}from"./chunk-GPHNPV7O.js";import{a as $}from"./chunk-N5AE5WMQ.js";import{a as U}from"./chunk-L3W6SG2T.js";import{E as w,N as Y,O as T,t as H,v as Z}from"./chunk-XLIPGDSC.js";import{Ac as j,Ad as E,Ba as q,Bc as R,Cc as b,Dc as _,Fd as d,Gb as P,Gd as G,Hb as S,Ib as O,Jc as D,Qa as k,Zb as I,Zc as N,gc as l,hc as c,ic as n,jc as C,la as M,na as z,nb as s,pa as v,qc as L,qd as Q,ra as r,sb as y,tb as A,ub as x,vc as u,xa as f,ya as g,yb as F,yc as V,zc as B}from"./chunk-ZYJ6LAJ3.js";var ae=["input"],re=["formField"],oe=["*"],h=class{source;value;constructor(te,e){this.source=te,this.value=e}},de={provide:U,useExisting:M(()=>se),multi:!0},ee=new v("MatRadioGroup"),ce=new v("mat-radio-default-options",{providedIn:"root",factory:ne});function ne(){return{color:"accent",disabledInteractive:!1}}var se=(()=>{class a{_changeDetector=r(E);_value=null;_name=r(w).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new y;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(t=>{t.checked=this.value===t.value,t.checked&&(this._selected=t)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new h(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(t){return new(t||a)};static \u0275dir=O({type:a,selectors:[["mat-radio-group"]],contentQueries:function(t,i,o){if(t&1&&j(o,ie,5),t&2){let m;b(m=_())&&(i._radios=m)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",d],required:[2,"required","required",d],disabledInteractive:[2,"disabledInteractive","disabledInteractive",d]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[N([de,{provide:ee,useExisting:a}])]})}return a})(),ie=(()=>{class a{_elementRef=r(k);_changeDetector=r(E);_focusMonitor=r(H);_radioDispatcher=r(J);_defaultOptions=r(ce,{optional:!0});_ngZone=r(A);_renderer=r(F);_uniqueId=r(w).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new y;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Y();_injector=r(q);constructor(){r(Z).load($);let e=r(ee,{optional:!0}),t=r(new Q("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,t&&(this.tabIndex=G(t,0))}focus(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,t)=>{e!==this.id&&t===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new h(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let t=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),t&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,t;if(!e||!e.selected||this.disabled?t=this.tabIndex:t=e.selected===this?this.tabIndex:-1,t!==this._previousTabIndex){let i=this._inputElement?.nativeElement;i&&(i.setAttribute("tabindex",t+""),this._previousTabIndex=t,x(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===i&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===i&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=P({type:a,selectors:[["mat-radio-button"]],viewQuery:function(t,i){if(t&1&&(R(ae,5),R(re,7,k)),t&2){let o;b(o=_())&&(i._inputElement=o.first),b(o=_())&&(i._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(t,i){t&1&&u("focus",function(){return i._inputElement.nativeElement.focus()}),t&2&&(I("id",i.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),D("mat-primary",i.color==="primary")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("mat-mdc-radio-checked",i.checked)("mat-mdc-radio-disabled",i.disabled)("mat-mdc-radio-disabled-interactive",i.disabledInteractive)("_mat-animation-noopable",i._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",d],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:G(e)],checked:[2,"checked","checked",d],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",d],required:[2,"required","required",d],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",d]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:oe,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(t,i){if(t&1){let o=L();V(),c(0,"div",2,0)(2,"div",3)(3,"div",4),u("click",function(p){return f(o),g(i._onTouchTargetClick(p))}),n(),c(4,"input",5,1),u("change",function(p){return f(o),g(i._onInputInteraction(p))}),n(),c(6,"div",6),C(7,"div",7)(8,"div",8),n(),c(9,"div",9),C(10,"div",10),n()(),c(11,"label",11),B(12),n()()}t&2&&(l("labelPosition",i.labelPosition),s(2),D("mdc-radio--disabled",i.disabled),s(2),l("id",i.inputId)("checked",i.checked)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),I("name",i.name)("value",i.value)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledby)("aria-describedby",i.ariaDescribedby)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),s(5),l("matRippleTrigger",i._rippleTrigger.nativeElement)("matRippleDisabled",i._isRippleDisabled())("matRippleCentered",!0),s(2),l("for",i.inputId))},dependencies:[K,W],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return a})(),ze=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=S({type:a});static \u0275inj=z({imports:[T,X,ie,T]})}return a})();export{se as a,ie as b,ze as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Ve}from"./chunk-DHPNXR6E.js";import{a as Fe}from"./chunk-6XDT56RT.js";import"./chunk-SHUYFOQI.js";import{a as N}from"./chunk-ISMIPSYN.js";import{a as ve,b as be,c as Te,d as L,e as W}from"./chunk-S5R6MCNP.js";import{c as fe,d as Pe}from"./chunk-T7HRAMHR.js";import"./chunk-DAUML5UD.js";import{a as ye,b as we}from"./chunk-DXYMG6QK.js";import"./chunk-63I3I3MX.js";import{a as ue}from"./chunk-2IASUYTM.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import{a as ae}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import{a as xe}from"./chunk-6OJQRHIZ.js";import"./chunk-6OIMOM7S.js";import{e as pe}from"./chunk-6KWG6O5L.js";import{a as Se}from"./chunk-5KYN6Y7M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import{i as de}from"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import{b as le,e as ce}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as re}from"./chunk-JBEKD57G.js";import{d as me,l as Ce,m as he,n as ge}from"./chunk-EDEZ3JLR.js";import{A as oe,b as Y,c as ee,h as te,m as ne,o as ie}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as se,c as _e}from"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{c as J,i as Z,l as E,m as Q,p as X}from"./chunk-LNJUGHOX.js";import{$b as h,$c as V,G as A,Gb as q,Ha as H,Mb as M,Mc as p,Nc as B,Oc as T,Qc as P,Rc as y,Sc as w,Wc as G,Z as $,Zc as K,bc as g,cc as k,ea as z,ec as O,fc as R,gc as C,hc as a,hd as v,ic as l,id as b,jc as F,jd as j,lb as D,nb as c,qc as S,ra as u,vc as x,xa as _,xc as r,ya as d}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var U=o=>[o],Ie=o=>({"text-decoration-line-through":o}),De=o=>({"bg-gradient-warning":o});function Ee(o,s){if(o&1){let e=S();a(0,"button",13),x("click",function(){_(e);let t=r(),i=r(2);return d(i.updateStock(t))}),F(1,"i",14),p(2," Update "),l()}}function Me(o,s){if(o&1){let e=S();a(0,"div",8),h(1,Ee,3,0,"button",10),a(2,"button",11),x("click",function(){_(e);let t=r(2);return d(t.openExportDialog())}),F(3,"i",12),a(4,"span"),p(5,"Export"),l()()()}if(o&2){let e=r(2);c(),g(e.productService.hasSelectionVariant(s)?1:-1)}}function Ne(o,s){if(o&1){let e=S();a(0,"th")(1,"input",28),x("change",function(t){_(e);let i=r(),m=r(2);return d(m.onSelectAllSKU(t.target.checked,i))}),l()()}}function ke(o,s){if(o&1){let e=S();a(0,"input",46),w("ngModelChange",function(t){_(e);let i=r(4).$implicit;return y(i.selected,t)||(i.selected=t),d(t)}),x("ngModelChange",function(){_(e);let t=r(4).$implicit,i=r(3);return d(i.onCheckboxStateProduct(t))}),l()}if(o&2){let e=r(4).$implicit;P("ngModel",e.selected)}}function Oe(o,s){if(o&1&&M(0,ke,1,1,"ng-template",22),o&2){let e=r(6);C("ngxPermissionsOnly",V(1,U,e.rolePriceEdit))}}function Re(o,s){if(o&1){let e=S();a(0,"img",47),x("click",function(t){_(e);let i=r(3).$implicit,m=r(3);return d(m.onZoomImage(t,i==null?null:i.ImageUrl))}),l()}if(o&2){let e=r(3).$implicit;C("src",G(e.ThumbnailUrl),D)}}function Be(o,s){o&1&&F(0,"img",42)}function Le(o,s){if(o&1&&(a(0,"small",45),p(1),l()),o&2){let e=r(3).$implicit;c(),T("(",e.Category,")")}}function We(o,s){if(o&1&&(a(0,"td",40)(1,"div",31),h(2,Oe,1,3,null,22),a(3,"div"),h(4,Re,1,2,"img",41)(5,Be,1,0,"img",42),l()()(),a(6,"td",43)(7,"span",44),p(8),l(),h(9,Le,2,1,"small",45),l()),o&2){let e=r(2).$implicit;C("rowSpan",e.Variants.length),c(2),g((e.Variants==null?null:e.Variants.length)>1?2:-1),c(2),g(e.ThumbnailUrl?4:5),c(2),C("rowSpan",e.Variants.length),c(2),B(e.Name),c(),g(e.Category?9:-1)}}function Ue(o,s){if(o&1){let e=S();a(0,"input",50),w("ngModelChange",function(t){_(e);let i=r(2).$implicit;return y(i.selected,t)||(i.selected=t),d(t)}),l()}if(o&2){let e=r(2).$implicit;P("ngModel",e.selected)}}function Ae(o,s){if(o&1&&(a(0,"td",48),h(1,Ue,1,1,"input",49),l()),o&2){let e=r().$implicit;c(),g(e.UnitPrice>=0?1:-1)}}function $e(o,s){o&1&&(a(0,"div",32),p(1," Not Found "),l())}function ze(o,s){if(o&1&&(a(0,"div"),p(1),v(2,"number"),l()),o&2){let e=r().$implicit;c(),T(" ",b(2,1,e.UnitPrice)," ")}}function He(o,s){if(o&1&&(a(0,"div",33)(1,"a",36),F(2,"i",51),l()()),o&2){let e=r().$implicit,n=r(4);c(),C("href",n.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),D)}}function qe(o,s){if(o&1){let e=S();a(0,"div",52),x("click",function(){_(e);let t=r().$implicit,i=r().$implicit,m=r(2),f=r();return d(f.openTableDialog(t,i,m))}),p(1),v(2,"number"),l()}if(o&2){let e=r().$implicit;c(),T(" ",b(2,1,e.Channel[0]==null?null:e.Channel[0].Price)," ")}}function Ge(o,s){if(o&1){let e=S();a(0,"tr",29),h(1,We,10,6),a(2,"td",20),p(3),l(),a(4,"td",23)(5,"span",30),p(6),l()(),M(7,Ae,2,1,"ng-template",22),a(8,"td",23)(9,"div",31),h(10,$e,2,0,"div",32),h(11,ze,3,3,"div"),h(12,He,3,1,"div",33),l()(),a(13,"td",34)(14,"div",31),h(15,qe,3,3,"div",35),a(16,"div",33)(17,"a",36),F(18,"i",37),l()(),a(19,"div",33)(20,"div",38),x("click",function(){let t=_(e).$implicit,i=r(4);return d(i.refreshPrice(t))}),F(21,"i",39),l()()()()()}if(o&2){let e=s.$implicit,n=s.$index,t=r(4);c(),g(n==0?1:-1),c(2),B(e.Model),c(2),C("matTooltip",e.Discontinued?t.discontinuedVariantMsg:"")("ngClass",V(12,Ie,e.Discontinued)),c(),T(" ",e.Code," "),c(),C("ngxPermissionsOnly",V(14,U,t.rolePriceEdit)),c(3),g((e.Channel[0]==null?null:e.Channel[0].Description)!=null?10:-1),c(),g((e.Channel[0]==null?null:e.Channel[0].Description)==null?11:-1),c(),g((e.Channel[0]==null?null:e.Channel[0].Description)==null?12:-1),c(),C("ngClass",V(16,De,e.UnitPrice!=(e.Channel[0]==null?null:e.Channel[0].Price))),c(2),g(e.Channel.length>0?15:-1),c(2),C("href",e.Channel[0]==null?null:e.Channel[0].Url,D)}}function Ke(o,s){if(o&1&&O(0,Ge,22,18,"tr",29,k),o&2){let e=s.$implicit;R(e.Variants)}}function je(o,s){if(o&1){let e=S();a(0,"div",9)(1,"div",15)(2,"table",16)(3,"thead",17)(4,"tr")(5,"th",18),p(6," Product "),a(7,"div")(8,"mat-slide-toggle",19),w("ngModelChange",function(t){_(e);let i=r(2);return y(i.toggleDifferentInventory,t)||(i.toggleDifferentInventory=t),d(t)}),x("toggleChange",function(){_(e);let t=r(2);return d(t.onToggleDifferentInventory())}),a(9,"small",6),p(10,"FILTER DIFFERENT PRICE"),l()()()(),a(11,"th",20),p(12,"Variant"),l(),a(13,"th",21),p(14,"SKU"),l(),M(15,Ne,2,0,"ng-template",22),a(16,"th",23),p(17,"POS"),l(),a(18,"th",23)(19,"div",24),x("click",function(){_(e);let t=r(2);return d(t.openModalFilter())}),F(20,"img",25),a(21,"span",26),p(22),v(23,"stringLimit"),l()()()()(),a(24,"tbody"),O(25,Ke,2,0,null,null,k),l()(),a(27,"infinite-paginator",27),v(28,"async"),x("onNextPage",function(){_(e);let t=r(2);return d(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){_(e);let t=r(2);return d(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){_(e);let t=r(2);return d(t.infinitePagination.getRowCount(t.searchFilter))}),l()()()}if(o&2){let e=r(2);c(8),P("ngModel",e.toggleDifferentInventory),c(7),C("ngxPermissionsOnly",V(16,U,e.rolePriceEdit)),c(4),C("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>=20?e.selectedChannel==null?null:e.selectedChannel.Name:""),c(),C("src",e.selectedChannel==null?null:e.selectedChannel.Img,D),c(2),T(" ",j(23,11,e.selectedChannel==null?null:e.selectedChannel.Name,20)," "),c(3),R(s),c(2),C("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",b(28,14,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage())}}function Je(o,s){if(o&1){let e=S();a(0,"mainpanel",1),w("textChange",function(t){_(e);let i=r();return y(i.searchFilter.text,t)||(i.searchFilter.text=t),d(t)}),x("onSubmit",function(){_(e);let t=r();return d(t.onSearch())}),a(1,"filters")(2,"div",2)(3,"label",3),p(4,"Channel"),l(),a(5,"app-channel-options-v2",4),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.ChannelID,t)||(i.searchFilter.ChannelID=t),d(t)}),l()(),a(6,"div",2)(7,"filter-query-type",5),w("numberFilterComparatorChange",function(t){_(e);let i=r();return y(i.searchFilter.NumberFilterComparator,t)||(i.searchFilter.NumberFilterComparator=t),d(t)})("searchTypeChange",function(t){_(e);let i=r();return y(i.searchFilter.SearchType,t)||(i.searchFilter.SearchType=t),d(t)}),l()(),a(8,"div",2)(9,"label",6),p(10,"Page Number"),l(),a(11,"input",7),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.PageNumber,t)||(i.searchFilter.PageNumber=t),d(t)}),l()(),a(12,"div")(13,"label",6),p(14,"Page Size"),l(),a(15,"input",7),w("ngModelChange",function(t){_(e);let i=r();return y(i.searchFilter.RowCount,t)||(i.searchFilter.RowCount=t),d(t)}),l()()(),a(16,"actions"),h(17,Me,6,1,"div",8),v(18,"async"),l(),a(19,"content"),h(20,je,29,18,"div",9),v(21,"async"),l()()}if(o&2){let e,n,t=s,i=r();C("headerTitle",i.pageTitle),P("text",i.searchFilter.text),C("searchBoxPlaceHolder",i.searchPlaceholder()),c(5),P("ngModel",i.searchFilter.ChannelID),c(2),C("numberFilterComparatorOptions",t==null||t.Options==null?null:t.Options.SearchComparatorTypeOptions),P("numberFilterComparator",i.searchFilter.NumberFilterComparator),C("searchTypeOptions",t==null||t.Options==null?null:t.Options.SearchSKUOnlyOrSKUNameOptions),P("searchType",i.searchFilter.SearchType),c(4),P("ngModel",i.searchFilter.PageNumber),c(4),P("ngModel",i.searchFilter.RowCount),c(2),g((e=b(18,12,i.data$))?17:-1,e),c(3),g((n=b(21,14,i.data$))?20:-1,n)}}var Nt=(()=>{let s=class s{constructor(){this.http=u(ce),this.toastr=u(le),this.dialog=u(me),this.productService=u(ue),this.biggerPictureService=u(xe),this.authService=u(de),this.mainPanelService=u(Ce),this.decimalPipe=u(E),this.placeholderService=u(fe),this.infinitePagination=u(L),this.updateResHandling=u(W),this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.rolePriceEdit=ae.PriceUpdate,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.searchPlaceholder=H("Search ...");let n=this.authService;this.hostName=this.authService.getDomain(),this.data$=this.infinitePagination.data$.pipe($(1)),this.channelOptions=n.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.dataEndpoint,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe(z(n=>{this.searchFilter=n.Filter,this.searchFilter.filterModel=N.ALL,this.initSearchPlaceholder(),this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}onToggleDifferentInventory(){this.toggleDifferentInventory?this.searchFilter.filterModel=N.ALL:this.searchFilter.filterModel=N.DIFFERENCE,this.onSearch()}onCheckboxStateProduct(n){n.Variants=n.Variants.map(t=>(t.selected=n.selected,t))}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(n){let i=this.productService.selectedVariantProduct(n).map(f=>({ID:f.ID,ChannelID:f.Channel[0].ChannelID,Code:f.Code,Price:f.UnitPrice})),m={ListChannelID:[this.searchFilter.ChannelID],ListPrice:i};this.http.post("/api/Price/UpdateChannel",m).subscribe(f=>{this.onSearch(),this.handlingUpdateStock(f.Response)})}handlingUpdateStock(n){if(n.success_list?.length>0||n.failure_list?.length>0){let t=n.failure_list,i=n.success_list;this.updateResHandling.responseHandling(i,t,"Price")}else this.toastr.error(n[0]?.Exception,"Error")}refreshPrice(n){let t={ChannelItemID:n?.Channel[0].ChannelItemID,ChannelVariationID:n?.Channel[0]?.ChannelVariationID,ChannelID:n?.Channel[0]?.ChannelID,VariantID:n.ID};this.http.post("/api/Price/RefreshPriceChannel",t).subscribe(i=>{this.toastr.success("Successfully updated","Success"),this.onSearch()})}onSearch(){this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel(),this.initSearchPlaceholder()}openTableDialog(n,t,i){let m=JSON.parse(JSON.stringify(n));this.dialog.open(ve,{data:{Name:t.Name,Variant:m,ChannelID:m?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:m?.Channel[0]?.ChannelItemID}}).afterClosed().pipe(A(I=>re.IsNotEmpty(I))).subscribe(I=>{this.updateItemAfterDialog(I,n)})}updateItemAfterDialog(n,t){let i={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,Price:parseFloat(n.Price),VariantID:n.ID,SKU:n.Sku};this.http.post("/api/Price/UpdatePriceByID",i).subscribe(m=>{let f=this.productService.findChannelById(i.ID,this.channelOptions),I=i.Price?this.decimalPipe.transform(i.Price):i.Price;this.toastr.success(`Successfully updated ${n.ItemName} (${n.VarName}) price in ${f.Name} to ${I}`,"Success"),t.Channel[0]&&(t.Channel[0].Price=i.Price),this.infinitePagination.reloadPagination(this.searchFilter)})}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(n=>n.ID==this.searchFilter.ChannelID)}onSelectAllSKU(n,t){t=t.map(i=>(i.Variants=i.Variants.map(m=>(m.selected=n,m)),i))}onZoomImage(n,t){this.biggerPictureService.openBiggerPicture(n,t)}openExportDialog(){this.dialog.open(Fe,{data:{title:"Export Price Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,exportApi:"price/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}};s.\u0275fac=function(t){return new(t||s)},s.\u0275cmp=q({type:s,selectors:[["app-price-single-channel"]],features:[K([L,Ve,X("https://resc.cloudinary.com/"),E,W])],decls:2,vars:3,consts:[[1,"single-price",3,"headerTitle","text","searchBoxPlaceHolder"],[1,"single-price",3,"textChange","onSubmit","headerTitle","text","searchBoxPlaceHolder"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"d-flex"],[1,"container-fluid","mt-5"],[1,"btn","btn-success"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"text-center","ps-12",2,"width","36%"],["name","differentInventory",3,"ngModelChange","toggleChange","ngModel"],[1,"text-start"],[1,"text-end",2,"width","20%"],[3,"ngxPermissionsOnly"],[1,"text-end"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["type","checkbox",1,"me-3",3,"change"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"d-flex","align-items-center","justify-content-end"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],[1,"ms-3"],[1,"text-end",3,"ngClass"],[2,"cursor","pointer"],["target","_blank",3,"href"],[1,"fas","external-link-custom","fa-solid","fa-arrow-up-right-from-square"],["matTooltip","Refresh Unit Price according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","external-link-custom","fa-sync","fa-lg"],[1,"text-start",2,"width","0%",3,"rowSpan"],["loading","lazy",1,"border","rounded","w-img","cursor-pointer",2,"margin-left","8px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png","loading","lazy",1,"border","rounded","w-img",2,"margin-left","8px"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],[1,"d-block"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],["loading","lazy",1,"border","rounded","w-img","cursor-pointer",2,"margin-left","8px",3,"click","src"],[1,"align-middle"],["type","checkbox",3,"ngModel"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"cursor","pointer",3,"click"]],template:function(t,i){if(t&1&&(h(0,Je,22,16,"mainpanel",0),v(1,"async")),t&2){let m;g((m=b(1,1,i.loader$))?0:-1,m)}},dependencies:[Q,J,ge,he,oe,ee,ie,Y,te,ne,Te,_e,se,we,ye,Se,pe,Pe,Z,E,be],styles:[".w-img[_ngcontent-%COMP%]{width:40px;height:40px}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}i.fas.custom-size[_ngcontent-%COMP%]{font-size:13px}.item-name[_ngcontent-%COMP%]{font-size:larger}"],changeDetection:0});let o=s;return o})();export{Nt as PriceSingleChannelComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as W,b as A,c as U}from"./chunk-3JRUKSV3.js";import{a as z,b as B}from"./chunk-SJ5MC42H.js";import{b as j}from"./chunk-NWB7EVME.js";import{a as I}from"./chunk-A6QXXKPR.js";import{i as E}from"./chunk-I723PUUO.js";import{ra as P}from"./chunk-5PMKN6PM.js";import{A as k,a as D,h as N,m as F}from"./chunk-L3W6SG2T.js";import{$b as T,Gb as V,Kb as v,Mb as _,Mc as x,Nc as S,Qc as w,Rc as b,Sc as y,Zc as O,bc as L,gc as p,hc as c,ic as u,jc as g,lb as h,nb as m,qc as f,ra as M,td as d,vc as C,xa as r,xc as a,ya as s}from"./chunk-ZYJ6LAJ3.js";function G(n,o){if(n&1&&(c(0,"div",6),g(1,"img",7),c(2,"div"),x(3),u()()),n&2){let e=o.$implicit;m(),p("src",e.logo,h),m(2),S(e.Name)}}function R(n,o){if(n&1){let e=f();c(0,"p-multiselect",4,0),C("click",function(){r(e);let i=a();return s(i.onClickSelect())}),y("ngModelChange",function(i){r(e);let l=a();return b(l.selectedChannels,i)||(l.selectedChannels=i),s(i)}),C("ngModelChange",function(i){r(e);let l=a();return s(l.onChannelChange(i))}),_(2,G,4,2,"ng-template",5),u()}if(n&2){let e=a();p("options",e.options())("placeholder",e.placeholder()),w("ngModel",e.selectedChannels),p("showClear",e.clearable())("autofocusFilter",!0)("maxSelectedLabels",e.maxSelectedLabels())}}function q(n,o){if(n&1&&(c(0,"div",6),g(1,"img",7),c(2,"div"),x(3),u()()),n&2){let e=o.$implicit;m(),p("src",e.logo,h),m(2),S(e.Name)}}function H(n,o){if(n&1){let e=f();c(0,"p-select",8,1),C("click",function(){r(e);let i=a();return s(i.onClickSelect())}),y("ngModelChange",function(i){r(e);let l=a();return b(l.selectedChannels,i)||(l.selectedChannels=i),s(i)}),C("ngModelChange",function(i){r(e);let l=a();return s(l.onChannelChange(i))}),_(2,q,4,2,"ng-template",5),u()}if(n&2){let e=a();p("options",e.options())("placeholder",e.placeholder()),w("ngModel",e.selectedChannels),p("showClear",e.clearable())("autofocusFilter",!0)("filter",!0)}}var re=(()=>{let o=class o extends U{constructor(){super(),this.authService=M(E),this.multiple=d(!1),this.clearable=d(!0),this.placeholder=d("Select Channels"),this.options=d(this.authService.getChannels()),this.maxSelectedLabels=d(6),this.onChange=t=>{}}onChannelChange(t){this.multiple()?t=t||[]:t=t||I.GuidEmpty,this.onChange(t)}onClickSelect(){this.initTopPosition(),setTimeout(()=>{this.adjustOverlayPosition()},0)}writeValue(t){this.selectedChannels=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){}setDisabledState(t){}};o.\u0275fac=function(i){return new(i||o)},o.\u0275cmp=V({type:o,selectors:[["app-channel-options-v2"]],inputs:{multiple:[1,"multiple"],clearable:[1,"clearable"],placeholder:[1,"placeholder"],options:[1,"options"],maxSelectedLabels:[1,"maxSelectedLabels"]},features:[O([{provide:D,multi:!0,useExisting:o}]),v],decls:2,vars:1,consts:[["multiSelect",""],["select",""],["optionLabel","Name","optionValue","ID","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels"],["optionLabel","Name","optionValue","ID","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","filter"],["optionLabel","Name","optionValue","ID","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"click","ngModelChange","options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels"],["pTemplate","item"],[1,"d-flex","align-items-center","gap-2"],[2,"width","18px",3,"src"],["optionLabel","Name","optionValue","ID","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"click","ngModelChange","options","placeholder","ngModel","showClear","autofocusFilter","filter"]],template:function(i,l){i&1&&T(0,R,3,6,"p-multiselect",2)(1,H,3,6,"p-select",3),i&2&&L(l.multiple()?0:1)},dependencies:[B,z,P,j,k,N,F,A,W],encapsulation:2});let n=o;return n})();export{re as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as d}from"./chunk-OXWPYJNB.js";import{c as h}from"./chunk-
|
|
1
|
+
import{b as d}from"./chunk-OXWPYJNB.js";import{c as h}from"./chunk-JBEKD57G.js";import{ma as f,ra as p}from"./chunk-ZYJ6LAJ3.js";var y=(()=>{let a=class a{constructor(){this.toastrService=p(d)}showToastrUploadMultiple(l,e){let s=[],i=[],r=null,c=this.getResponseList(l);if(l.filter(t=>h.IsNotEmpty(t)).forEach(t=>{typeof t?.Response=="string"?i=[...i,c.length>1?this.setHtmlli(t.Response):this.setHtmlli(t.Response,!1)]:(t?.Response?.Success_list.forEach(n=>{s=[...s,c.length>1?this.setHtmlli(e?e(n,t.Channel):`
|
|
2
2
|
<div>
|
|
3
3
|
Product ${n.Name} was <div class="d-inline fw-bold">successfully</div> uploaded to ${t.Channel}
|
|
4
4
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as xe,b as Te}from"./chunk-76CPUGUB.js";import{a as Ce,b as Se,c as ye}from"./chunk-BHGEKKCM.js";import{a as ve}from"./chunk-GZLXMT7F.js";import{a as N}from"./chunk-N3WBRUNI.js";import{a as be}from"./chunk-RJFFTIAO.js";import"./chunk-EYT2YJGK.js";import"./chunk-RNWHARPK.js";import{a as fe}from"./chunk-7JQEF4XX.js";import"./chunk-NECWUPZQ.js";import"./chunk-UW3UCIOY.js";import"./chunk-A7YRNCQP.js";import"./chunk-OROFEDQN.js";import"./chunk-PZB3GQWT.js";import"./chunk-B4QCGMST.js";import"./chunk-GV3NEJJ6.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-ONU4O7N2.js";import"./chunk-3RK6DDJD.js";import"./chunk-5YBWBAQS.js";import"./chunk-37NOSLQL.js";import"./chunk-N5AE5WMQ.js";import"./chunk-J2BPOHP6.js";import"./chunk-6KWG6O5L.js";import{a as ge}from"./chunk-AL5RTE5M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as he}from"./chunk-XFIUNEOU.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-YJTPDV4D.js";import{b as me}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as de}from"./chunk-BLHKSSK6.js";import{m as ue,n as _e}from"./chunk-UI5ITL7Z.js";import{A as se,b as ne,c as oe,h as re,m as le,o as ae}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as pe,w as ce}from"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{i as $,j as ee,l as te,m as ie}from"./chunk-LNJUGHOX.js";import{$b as v,$c as X,Bc as H,Cc as Q,Dc as j,Gb as D,Ha as P,Lc as q,Mc as d,Nc as w,Oc as E,Qc as C,Rc as S,Sc as y,Tc as U,Uc as G,Vc as F,Z as I,Zc as J,_c as K,bc as x,cc as B,ea as k,ec as A,fc as z,gc as f,hc as t,hd as M,ic as n,id as O,jc as h,jd as Y,lb as W,nb as a,od as Z,qc as T,ra as R,vc as g,xa as p,xc as u,ya as c}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as V,b as L}from"./chunk-66YHNWRR.js";var we=["contextMenu"],Me=()=>[],Ve=l=>({"td-cell-hover":l});function Re(l,m){if(l&1){let e=T();t(0,"button",20),g("click",function(){p(e);let r=u();return c(r.setMultipleFulfillment())}),d(1," Set Fulfillment "),n()}}function Ee(l,m){if(l&1&&h(0,"variants-dropdown",37),l&2){let e=u().$implicit;f("variants",e==null?null:e.Variants)}}function Oe(l,m){if(l&1&&h(0,"variant-with-image",38),l&2){let e=u().$implicit;f("variant",e==null?null:e.Variants[0])}}function Pe(l,m){if(l&1&&(t(0,"span"),d(1),n()),l&2){let e=u().$implicit;a(),E("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Fe(l,m){if(l&1){let e=T();t(0,"div",40)(1,"button",44),g("click",function(){p(e);let r=u().$implicit,o=u(2);return c(o.refreshShippingAndRefNumber(r))}),h(2,"i",45),n()()}}function Ne(l,m){if(l&1){let e=T();t(0,"button",46),g("click",function(){p(e);let r=u().$implicit,o=u(2);return c(o.onSetFulfillment(r))}),d(1," Set Fulfillment "),n()}}function Le(l,m){if(l&1){let e=T();t(0,"tr")(1,"td")(2,"input",30),y("ngModelChange",function(r){let o=p(e).$implicit;return S(o.selected,r)||(o.selected=r),c(r)}),g("ngModelChange",function(){p(e);let r=u(2),o=F(0);return c(r.onSelectOrder(o))}),n()(),t(3,"td")(4,"div",31),h(5,"img",32),M(6,"channelImage"),t(7,"div",33)(8,"div"),d(9),n(),t(10,"small",34)(11,"span"),d(12),n()()()()(),t(13,"td")(14,"div",35)(15,"div"),h(16,"order-link",36),n(),t(17,"small"),d(18),M(19,"date"),n()()(),t(20,"td"),d(21),n(),t(22,"td"),v(23,Ee,1,1,"variants-dropdown",37)(24,Oe,1,1,"variant-with-image",38),n(),t(25,"td",39),d(26),M(27,"number"),n(),t(28,"td",40)(29,"div",41)(30,"div",35)(31,"div",42)(32,"span"),d(33),n(),v(34,Pe,2,1,"span"),n(),t(35,"small"),d(36),n()(),v(37,Fe,3,0,"div",40),n()(),t(38,"td",40),v(39,Ne,2,0,"button",43),n()()}if(l&2){let e=m.$implicit,i=u(2);a(2),C("ngModel",e.selected),f("disabled",i.selectedChannelType()!=null&&i.selectedChannelType()!=e.MarketType),a(3),f("src",O(6,18,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(4),w(e.Outlet),a(3),w(e.ChannelName),a(4),f("order",e),a(2),E(" ",Y(19,20,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(3),w(e.Customer),a(),q(X(25,Ve,(e.Variants==null?null:e.Variants.length)>1)),a(),x((e.Variants==null?null:e.Variants.length)>1?23:24),a(3),w(O(27,23,e.Amount)),a(7),w(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),x(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?34:-1),a(2),E(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),a(),x(!(e.LogisticService!=null&&e.LogisticService.Name)||!e.ReferenceNumber?37:-1),a(2),x((e==null?null:e.MarketType)!=i.channelType.WooCommerce?39:-1)}}function Ie(l,m){if(l&1){let e=T();t(0,"div",17)(1,"table",21)(2,"thead",22)(3,"tr",23),h(4,"th",24),t(5,"th",25),d(6,"Outlet"),n(),t(7,"th",25),d(8,"Number"),n(),t(9,"th",25),d(10,"Customer"),n(),t(11,"th"),d(12,"Items"),n(),t(13,"th",26),d(14,"Amount"),n(),t(15,"th",27),d(16,"Shipping"),n(),h(17,"th",28),n()(),t(18,"tbody"),A(19,Le,40,27,"tr",null,B),n()(),t(21,"app-custom-paginator",29),g("next",function(){p(e);let r=u();return c(r.initReadyToShip())})("previous",function(){p(e);let r=u();return c(r.initReadyToShip())}),n()()}if(l&2){let e=u(),i=F(0);a(19),z(i),a(2),f("filter",e.filter())("totaldata",i==null?null:i.length)}}function ke(l,m){l&1&&(t(0,"div",18),h(1,"app-empty-state"),n())}var mt=(()=>{let m=class m{constructor(){this.toastr=R(me),this.orderService=R(N),this.fulfillmentService=R(xe),this.channelType=de,this.selectedOrders=P([]),this.selectedChannelType=Z(()=>{let i=null;return this.selectedOrders().length>0&&(i=this.selectedOrders()[0].MarketType),i}),this.filter=P({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:i=>{this.initFromDate(i)},error:i=>{console.error("Error fetching default date:",i),this.initFromDate(null)}})}initFromDate(i){this.filter.update(r=>L(V({},r),{From:i})),this.initReadyToShip()}initReadyToShip(){this.readyToShip$=this.orderService.getReadyToShipOrders(this.filter()).pipe(k(()=>{this.selectedOrders.set([])}),I(1))}onFilterChange(i){this.filter.update(r=>V(V({},r),i))}onSetFulfillment(i){this.fulfillmentService.setFulfillmentOrder(i).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}refreshShippingAndRefNumber(i){this.orderService.refreshShippingCourier(i.ShopID,i.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initReadyToShip()})}setMultipleFulfillment(){this.fulfillmentService.setFulfillmentMultipleOrders(this.selectedOrders()).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}onSelectOrder(i){let r=i.filter(o=>o.selected);this.selectedOrders.set(r)}onMouseHover(i,r){(!r.LogisticService?.Name||!r.ReferenceNumber)&&this.contextMenuEl.show(i,r)}onSelectContextItem(i){i.item?.id==="refresh"&&this.refreshShippingAndRefNumber(i.data)}};m.\u0275fac=function(r){return new(r||m)},m.\u0275cmp=D({type:m,selectors:[["app-ready-to-ship"]],viewQuery:function(r,o){if(r&1&&H(we,5),r&2){let _;Q(_=j())&&(o.contextMenuEl=_.first)}},features:[J([N])],decls:37,vars:14,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","100px"],[2,"width","150px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"d-flex","align-items-center","gap-6"],[1,"d-flex","align-items-end","gap-2"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem"],["matTooltip","Retrieve shipping courier and reference number",1,"btn","btn-icon-only",3,"click"],[1,"fa-solid","fa-arrows-rotate","fs-6"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem",3,"click"]],template:function(r,o){if(r&1){let _=T();U(0),M(1,"async"),t(2,"mainpanel",1),g("onSubmit",function(){return p(_),c(o.initReadyToShip())}),y("textChange",function(s){return p(_),S(o.filter().Number,s)||(o.filter().Number=s),c(s)}),t(3,"actions"),v(4,Re,2,0,"button",2),t(5,"a",3),h(6,"i",4),t(7,"span"),d(8,"Order Fulfillment Display"),n()()(),t(9,"filters")(10,"div")(11,"label",5),d(12,"Channel"),n(),t(13,"app-channel-options-v2",6),y("ngModelChange",function(s){return p(_),S(o.filter().ListChannelID,s)||(o.filter().ListChannelID=s),c(s)}),n()(),t(14,"div",7)(15,"label",5),d(16,"From/To"),n(),t(17,"div",8)(18,"datepicker",9),y("dateChange",function(s){return p(_),S(o.filter().From,s)||(o.filter().From=s),c(s)}),n()(),t(19,"div")(20,"datepicker",10),y("dateChange",function(s){return p(_),S(o.filter().To,s)||(o.filter().To=s),c(s)}),n()()(),t(21,"div",7)(22,"label",11),d(23,"Page Number"),n(),t(24,"input",12),y("ngModelChange",function(s){return p(_),S(o.filter().PageNumber,s)||(o.filter().PageNumber=s),c(s)}),n()(),t(25,"div",7)(26,"label",11),d(27,"Page Size"),n(),t(28,"input",13),y("ngModelChange",function(s){return p(_),S(o.filter().PageSize,s)||(o.filter().PageSize=s),c(s)}),n()()(),t(29,"content")(30,"div",14)(31,"div",15)(32,"div",16),v(33,Ie,22,2,"div",17)(34,ke,2,0,"div",18),n()()()()(),t(35,"app-context-menu",19,0),g("onSelectItem",function(s){return p(_),c(o.onSelectContextItem(s))}),n()}if(r&2){let _=G(O(1,10,o.readyToShip$)||K(13,Me));a(2),C("text",o.filter().Number),a(2),x(o.selectedOrders().length>0?4:-1),a(9),f("multiple",!0),C("ngModel",o.filter().ListChannelID),a(5),C("date",o.filter().From),a(2),C("date",o.filter().To),a(4),C("ngModel",o.filter().PageNumber),a(4),C("ngModel",o.filter().PageSize),a(5),x(_.length>0?33:34),a(2),f("items",o.contextMenuItems)}},dependencies:[ie,_e,ue,fe,he,se,oe,ae,ne,re,le,Se,ye,be,ve,ce,pe,Te,ge,$,te,ee,Ce],styles:[".actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], div[_ngcontent-%COMP%]:hover.actions-cell .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}"]});let l=m;return l})();export{mt as ReadyToShipComponent};
|
|
1
|
+
import{a as xe,b as Te}from"./chunk-L76NLJD7.js";import{a as Ce,b as Se,c as ye}from"./chunk-ILW6ZFFV.js";import{a as ve}from"./chunk-KZSTYKIP.js";import{a as N}from"./chunk-GVI6GJHY.js";import{a as be}from"./chunk-S7CKRTJV.js";import"./chunk-EYT2YJGK.js";import"./chunk-RNWHARPK.js";import{a as fe}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import"./chunk-6KWG6O5L.js";import{a as ge}from"./chunk-5KYN6Y7M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as he}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import{b as me}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as de}from"./chunk-JBEKD57G.js";import{m as ue,n as _e}from"./chunk-EDEZ3JLR.js";import{A as se,b as ne,c as oe,h as re,m as le,o as ae}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as pe,w as ce}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as $,j as ee,l as te,m as ie}from"./chunk-LNJUGHOX.js";import{$b as v,$c as X,Bc as H,Cc as Q,Dc as j,Gb as D,Ha as P,Lc as q,Mc as d,Nc as w,Oc as E,Qc as C,Rc as S,Sc as y,Tc as U,Uc as G,Vc as F,Z as I,Zc as J,_c as K,bc as x,cc as B,ea as k,ec as A,fc as z,gc as f,hc as t,hd as M,ic as n,id as O,jc as h,jd as Y,lb as W,nb as a,od as Z,qc as T,ra as R,vc as g,xa as p,xc as u,ya as c}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as V,b as L}from"./chunk-66YHNWRR.js";var we=["contextMenu"],Me=()=>[],Ve=l=>({"td-cell-hover":l});function Re(l,m){if(l&1){let e=T();t(0,"button",20),g("click",function(){p(e);let r=u();return c(r.setMultipleFulfillment())}),d(1," Set Fulfillment "),n()}}function Ee(l,m){if(l&1&&h(0,"variants-dropdown",37),l&2){let e=u().$implicit;f("variants",e==null?null:e.Variants)}}function Oe(l,m){if(l&1&&h(0,"variant-with-image",38),l&2){let e=u().$implicit;f("variant",e==null?null:e.Variants[0])}}function Pe(l,m){if(l&1&&(t(0,"span"),d(1),n()),l&2){let e=u().$implicit;a(),E("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Fe(l,m){if(l&1){let e=T();t(0,"div",40)(1,"button",44),g("click",function(){p(e);let r=u().$implicit,o=u(2);return c(o.refreshShippingAndRefNumber(r))}),h(2,"i",45),n()()}}function Ne(l,m){if(l&1){let e=T();t(0,"button",46),g("click",function(){p(e);let r=u().$implicit,o=u(2);return c(o.onSetFulfillment(r))}),d(1," Set Fulfillment "),n()}}function Le(l,m){if(l&1){let e=T();t(0,"tr")(1,"td")(2,"input",30),y("ngModelChange",function(r){let o=p(e).$implicit;return S(o.selected,r)||(o.selected=r),c(r)}),g("ngModelChange",function(){p(e);let r=u(2),o=F(0);return c(r.onSelectOrder(o))}),n()(),t(3,"td")(4,"div",31),h(5,"img",32),M(6,"channelImage"),t(7,"div",33)(8,"div"),d(9),n(),t(10,"small",34)(11,"span"),d(12),n()()()()(),t(13,"td")(14,"div",35)(15,"div"),h(16,"order-link",36),n(),t(17,"small"),d(18),M(19,"date"),n()()(),t(20,"td"),d(21),n(),t(22,"td"),v(23,Ee,1,1,"variants-dropdown",37)(24,Oe,1,1,"variant-with-image",38),n(),t(25,"td",39),d(26),M(27,"number"),n(),t(28,"td",40)(29,"div",41)(30,"div",35)(31,"div",42)(32,"span"),d(33),n(),v(34,Pe,2,1,"span"),n(),t(35,"small"),d(36),n()(),v(37,Fe,3,0,"div",40),n()(),t(38,"td",40),v(39,Ne,2,0,"button",43),n()()}if(l&2){let e=m.$implicit,i=u(2);a(2),C("ngModel",e.selected),f("disabled",i.selectedChannelType()!=null&&i.selectedChannelType()!=e.MarketType),a(3),f("src",O(6,18,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(4),w(e.Outlet),a(3),w(e.ChannelName),a(4),f("order",e),a(2),E(" ",Y(19,20,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(3),w(e.Customer),a(),q(X(25,Ve,(e.Variants==null?null:e.Variants.length)>1)),a(),x((e.Variants==null?null:e.Variants.length)>1?23:24),a(3),w(O(27,23,e.Amount)),a(7),w(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),x(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?34:-1),a(2),E(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),a(),x(!(e.LogisticService!=null&&e.LogisticService.Name)||!e.ReferenceNumber?37:-1),a(2),x((e==null?null:e.MarketType)!=i.channelType.WooCommerce?39:-1)}}function Ie(l,m){if(l&1){let e=T();t(0,"div",17)(1,"table",21)(2,"thead",22)(3,"tr",23),h(4,"th",24),t(5,"th",25),d(6,"Outlet"),n(),t(7,"th",25),d(8,"Number"),n(),t(9,"th",25),d(10,"Customer"),n(),t(11,"th"),d(12,"Items"),n(),t(13,"th",26),d(14,"Amount"),n(),t(15,"th",27),d(16,"Shipping"),n(),h(17,"th",28),n()(),t(18,"tbody"),A(19,Le,40,27,"tr",null,B),n()(),t(21,"app-custom-paginator",29),g("next",function(){p(e);let r=u();return c(r.initReadyToShip())})("previous",function(){p(e);let r=u();return c(r.initReadyToShip())}),n()()}if(l&2){let e=u(),i=F(0);a(19),z(i),a(2),f("filter",e.filter())("totaldata",i==null?null:i.length)}}function ke(l,m){l&1&&(t(0,"div",18),h(1,"app-empty-state"),n())}var mt=(()=>{let m=class m{constructor(){this.toastr=R(me),this.orderService=R(N),this.fulfillmentService=R(xe),this.channelType=de,this.selectedOrders=P([]),this.selectedChannelType=Z(()=>{let i=null;return this.selectedOrders().length>0&&(i=this.selectedOrders()[0].MarketType),i}),this.filter=P({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:i=>{this.initFromDate(i)},error:i=>{console.error("Error fetching default date:",i),this.initFromDate(null)}})}initFromDate(i){this.filter.update(r=>L(V({},r),{From:i})),this.initReadyToShip()}initReadyToShip(){this.readyToShip$=this.orderService.getReadyToShipOrders(this.filter()).pipe(k(()=>{this.selectedOrders.set([])}),I(1))}onFilterChange(i){this.filter.update(r=>V(V({},r),i))}onSetFulfillment(i){this.fulfillmentService.setFulfillmentOrder(i).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}refreshShippingAndRefNumber(i){this.orderService.refreshShippingCourier(i.ShopID,i.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initReadyToShip()})}setMultipleFulfillment(){this.fulfillmentService.setFulfillmentMultipleOrders(this.selectedOrders()).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}onSelectOrder(i){let r=i.filter(o=>o.selected);this.selectedOrders.set(r)}onMouseHover(i,r){(!r.LogisticService?.Name||!r.ReferenceNumber)&&this.contextMenuEl.show(i,r)}onSelectContextItem(i){i.item?.id==="refresh"&&this.refreshShippingAndRefNumber(i.data)}};m.\u0275fac=function(r){return new(r||m)},m.\u0275cmp=D({type:m,selectors:[["app-ready-to-ship"]],viewQuery:function(r,o){if(r&1&&H(we,5),r&2){let _;Q(_=j())&&(o.contextMenuEl=_.first)}},features:[J([N])],decls:37,vars:14,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","100px"],[2,"width","150px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"d-flex","align-items-center","gap-6"],[1,"d-flex","align-items-end","gap-2"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem"],["matTooltip","Retrieve shipping courier and reference number",1,"btn","btn-icon-only",3,"click"],[1,"fa-solid","fa-arrows-rotate","fs-6"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem",3,"click"]],template:function(r,o){if(r&1){let _=T();U(0),M(1,"async"),t(2,"mainpanel",1),g("onSubmit",function(){return p(_),c(o.initReadyToShip())}),y("textChange",function(s){return p(_),S(o.filter().Number,s)||(o.filter().Number=s),c(s)}),t(3,"actions"),v(4,Re,2,0,"button",2),t(5,"a",3),h(6,"i",4),t(7,"span"),d(8,"Order Fulfillment Display"),n()()(),t(9,"filters")(10,"div")(11,"label",5),d(12,"Channel"),n(),t(13,"app-channel-options-v2",6),y("ngModelChange",function(s){return p(_),S(o.filter().ListChannelID,s)||(o.filter().ListChannelID=s),c(s)}),n()(),t(14,"div",7)(15,"label",5),d(16,"From/To"),n(),t(17,"div",8)(18,"datepicker",9),y("dateChange",function(s){return p(_),S(o.filter().From,s)||(o.filter().From=s),c(s)}),n()(),t(19,"div")(20,"datepicker",10),y("dateChange",function(s){return p(_),S(o.filter().To,s)||(o.filter().To=s),c(s)}),n()()(),t(21,"div",7)(22,"label",11),d(23,"Page Number"),n(),t(24,"input",12),y("ngModelChange",function(s){return p(_),S(o.filter().PageNumber,s)||(o.filter().PageNumber=s),c(s)}),n()(),t(25,"div",7)(26,"label",11),d(27,"Page Size"),n(),t(28,"input",13),y("ngModelChange",function(s){return p(_),S(o.filter().PageSize,s)||(o.filter().PageSize=s),c(s)}),n()()(),t(29,"content")(30,"div",14)(31,"div",15)(32,"div",16),v(33,Ie,22,2,"div",17)(34,ke,2,0,"div",18),n()()()()(),t(35,"app-context-menu",19,0),g("onSelectItem",function(s){return p(_),c(o.onSelectContextItem(s))}),n()}if(r&2){let _=G(O(1,10,o.readyToShip$)||K(13,Me));a(2),C("text",o.filter().Number),a(2),x(o.selectedOrders().length>0?4:-1),a(9),f("multiple",!0),C("ngModel",o.filter().ListChannelID),a(5),C("date",o.filter().From),a(2),C("date",o.filter().To),a(4),C("ngModel",o.filter().PageNumber),a(4),C("ngModel",o.filter().PageSize),a(5),x(_.length>0?33:34),a(2),f("items",o.contextMenuItems)}},dependencies:[ie,_e,ue,fe,he,se,oe,ae,ne,re,le,Se,ye,be,ve,ce,pe,Te,ge,$,te,ee,Ce],styles:[".actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], div[_ngcontent-%COMP%]:hover.actions-cell .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}"]});let l=m;return l})();export{mt as ReadyToShipComponent};
|