marketplacepos 3.11.9 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +10 -5
- package/Marketplace/chunk-27IRFADU.js +1 -0
- package/Marketplace/chunk-2GZOVNPU.js +1 -0
- package/Marketplace/chunk-2KLUGZKI.js +1 -0
- package/Marketplace/chunk-2UXFUEON.js +1 -0
- package/Marketplace/chunk-2Y4N4NSS.js +2 -0
- package/Marketplace/chunk-3LRKHZJF.js +1 -0
- package/Marketplace/chunk-43TMSPFC.js +1 -0
- package/Marketplace/chunk-4TYJR476.js +1 -0
- package/Marketplace/chunk-52ZJ2S2T.js +1 -0
- package/Marketplace/chunk-5US3733H.js +1 -0
- package/Marketplace/chunk-5WVUQE43.js +6 -0
- package/Marketplace/chunk-77JORVC2.js +8 -0
- package/Marketplace/{chunk-SRYGE2HW.js → chunk-7CEWM7GE.js} +1 -1
- package/Marketplace/chunk-7GNI4BOW.js +3 -0
- package/Marketplace/{chunk-MK34PW5S.js → chunk-7NHG2S26.js} +1 -1
- package/Marketplace/chunk-7NWB2VB2.js +1 -0
- package/Marketplace/{chunk-UCO4GNIH.js → chunk-7OJNNBCN.js} +1 -1
- package/Marketplace/chunk-AAIK6JQ3.js +4 -0
- package/Marketplace/{chunk-KJJM4QBN.js → chunk-AKIUNZCW.js} +1 -1
- package/Marketplace/chunk-AZMGWQHI.js +1 -0
- package/Marketplace/chunk-B6W4BWFY.js +1 -0
- package/Marketplace/chunk-BMPACBBM.js +5 -0
- package/Marketplace/chunk-BRTVFFDI.js +1 -0
- package/Marketplace/chunk-BSBYMQ7J.js +1 -0
- package/Marketplace/chunk-CP7VAKTQ.js +1 -0
- package/Marketplace/chunk-CRRJCY55.js +1 -0
- package/Marketplace/{chunk-BD2QQPDK.js → chunk-CVLA5R75.js} +1 -1
- package/Marketplace/chunk-CW5KDBLU.js +1 -0
- package/Marketplace/chunk-DXJFMERC.js +1 -0
- package/Marketplace/chunk-DZHNXVSW.js +1 -0
- package/Marketplace/chunk-ENYT723T.js +5 -0
- package/Marketplace/chunk-F2CKDRNC.js +1 -0
- package/Marketplace/chunk-F5YRASNU.js +1 -0
- package/Marketplace/{chunk-NRVXDIHY.js → chunk-FCVAME75.js} +1 -1
- package/Marketplace/chunk-FX43R2N5.js +5 -0
- package/Marketplace/chunk-G6CZHXQI.js +1 -0
- package/Marketplace/chunk-GP3CFNYA.js +1 -0
- package/Marketplace/chunk-GY7H2DNW.js +1 -0
- package/Marketplace/chunk-H6JEFAAC.js +2 -0
- package/Marketplace/{chunk-JM3LERUP.js → chunk-HBHGO2RV.js} +1 -1
- package/Marketplace/chunk-HMAXDG3A.js +1 -0
- package/Marketplace/chunk-HW7H3ISH.js +3 -0
- package/Marketplace/chunk-HYSXRUQ5.js +1 -0
- package/Marketplace/chunk-II3E425T.js +1 -0
- package/Marketplace/chunk-IP2WADIR.js +1 -0
- package/Marketplace/chunk-IPX66YIX.js +1 -0
- package/Marketplace/chunk-L536HOP7.js +1 -0
- package/Marketplace/chunk-LIS3LB3F.js +1 -0
- package/Marketplace/{chunk-JDGPUKXR.js → chunk-M3P5OJ7T.js} +1 -1
- package/Marketplace/chunk-M4VGME5L.js +1 -0
- package/Marketplace/chunk-MEGPKKGI.js +1 -0
- package/Marketplace/{chunk-PZOGC5DT.js → chunk-N23ZYP7G.js} +1 -1
- package/Marketplace/chunk-NNPT3RN6.js +11 -0
- package/Marketplace/chunk-OFRBPREK.js +1 -0
- package/Marketplace/chunk-PIDUM6XT.js +2 -0
- package/Marketplace/chunk-PVQ2T5XH.js +4 -0
- package/Marketplace/chunk-RSTDY3BK.js +1 -0
- package/Marketplace/chunk-RUBFBYVI.js +1 -0
- package/Marketplace/{chunk-5LCXVQBT.js → chunk-TX43EE6N.js} +1 -1
- package/Marketplace/{chunk-NSM4JDXS.js → chunk-VPYKYYBH.js} +1 -1
- package/Marketplace/chunk-VW2YGC3V.js +1 -0
- package/Marketplace/{chunk-WQ7LUTQ2.js → chunk-WJI6JIBR.js} +1 -1
- package/Marketplace/chunk-WLSW7EOC.js +2 -0
- package/Marketplace/chunk-XT632VDA.js +47 -0
- package/Marketplace/{chunk-MSAVOLLA.js → chunk-Y4SOX2BE.js} +1 -1
- package/Marketplace/chunk-ZIAISN44.js +1 -0
- package/Marketplace/chunk-ZIWIIY7R.js +1 -0
- package/Marketplace/index.html +2 -3
- package/Marketplace/main-NPVQUDS5.js +1 -0
- package/Marketplace/polyfills-KTKZVV2N.js +2 -0
- package/Marketplace/styles-4NMVKKKY.css +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2ANKQQV3.js +0 -1
- package/Marketplace/chunk-33GGGAPS.js +0 -1
- package/Marketplace/chunk-5ZUWMFL5.js +0 -1
- package/Marketplace/chunk-6B64VOO7.js +0 -1
- package/Marketplace/chunk-6DRNAUKE.js +0 -8
- package/Marketplace/chunk-6F6NSBIF.js +0 -1
- package/Marketplace/chunk-AL67KXJV.js +0 -2
- package/Marketplace/chunk-BMZAGAK3.js +0 -1
- package/Marketplace/chunk-BP2CJXCZ.js +0 -47
- package/Marketplace/chunk-CDTB3FEI.js +0 -2
- package/Marketplace/chunk-DEH6NGKQ.js +0 -1
- package/Marketplace/chunk-DT3B54LD.js +0 -4
- package/Marketplace/chunk-FNAAZA3R.js +0 -1
- package/Marketplace/chunk-G4YKNFZZ.js +0 -1
- package/Marketplace/chunk-G5LCLRIW.js +0 -1
- package/Marketplace/chunk-GRMIXZTT.js +0 -1
- package/Marketplace/chunk-GSSZWMCP.js +0 -5
- package/Marketplace/chunk-INNTQ5YN.js +0 -1
- package/Marketplace/chunk-K3G6FMDF.js +0 -1
- package/Marketplace/chunk-KBYAFLE5.js +0 -1
- package/Marketplace/chunk-KUVW5SH2.js +0 -1
- package/Marketplace/chunk-MSGMWJHN.js +0 -1
- package/Marketplace/chunk-MYMGWQRE.js +0 -6
- package/Marketplace/chunk-N4S3Q3EC.js +0 -1
- package/Marketplace/chunk-OFMNMKMG.js +0 -3
- package/Marketplace/chunk-PRYDCJG5.js +0 -1
- package/Marketplace/chunk-QKSDQVPL.js +0 -5
- package/Marketplace/chunk-QWNDYA65.js +0 -1
- package/Marketplace/chunk-RKJINSSM.js +0 -1
- package/Marketplace/chunk-RZKKTX4V.js +0 -5
- package/Marketplace/chunk-SMRE36YG.js +0 -1
- package/Marketplace/chunk-SP6QPE3M.js +0 -1
- package/Marketplace/chunk-TCC7PQV3.js +0 -1
- package/Marketplace/chunk-TDHJ34QP.js +0 -1
- package/Marketplace/chunk-TDK2QBFI.js +0 -1
- package/Marketplace/chunk-U5YOE633.js +0 -5
- package/Marketplace/chunk-UILE7H6I.js +0 -1
- package/Marketplace/chunk-W3EAYQL3.js +0 -1
- package/Marketplace/chunk-XDNW2F3I.js +0 -3
- package/Marketplace/chunk-YHEEVSLX.js +0 -1
- package/Marketplace/chunk-YNKSRONN.js +0 -2
- package/Marketplace/chunk-YZ67XPSX.js +0 -1
- package/Marketplace/chunk-ZHG47R5T.js +0 -1
- package/Marketplace/chunk-ZKBLXGXT.js +0 -2
- package/Marketplace/chunk-ZLBTBS3M.js +0 -4
- package/Marketplace/main-YOSC4DEC.js +0 -1
- package/Marketplace/polyfills-Y3W47ZLP.js +0 -2
- package/Marketplace/styles-STRQ65W6.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as h,Aa as pe,Ac as bt,B as qe,Ba as st,Bb as lt,Ca as ot,Cb as ht,Da as Q,Db as ut,Ea as rt,Fb as mt,H as $,Hb as ft,I as z,Ia as j,Ja as u,K as Je,Nb as ie,Pa as w,R as G,Ra as at,S as et,Ta as _e,V as Z,X as tt,Xa as P,Ya as ge,Za as be,_a as X,a as Ge,aa as p,ab as B,b as fe,ba as _,c as I,ca as c,d as Ze,da as f,dc as pt,fb as q,fc as _t,ga as Y,gc as U,ha as g,ia as k,kb as ve,kc as gt,lb as ye,mb as J,n as Ye,na as it,nc as v,q as S,r as Qe,rb as ct,tb as dt,u as Xe,ua as nt,vb as ee,wb as Ee,xb as te,ya as A,za as N}from"./chunk-77JORVC2.js";import{a as m,b as ze}from"./chunk-CRRJCY55.js";var Ae;try{Ae=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Ae=!1}var b=(()=>{let e=class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?bt(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||Ae)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(i){return new(i||e)(c(ot))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var R,vt=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Cn(){if(R)return R;if(typeof document!="object"||!document)return R=new Set(vt),R;let n=document.createElement("input");return R=new Set(vt.filter(e=>(n.setAttribute("type",e),n.type===e))),R}var V;function Qt(){if(V==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>V=!0}))}finally{V=V||!1}return V}function F(n){return Qt()?n:!!n.capture}var H=function(n){return n[n.NORMAL=0]="NORMAL",n[n.NEGATED=1]="NEGATED",n[n.INVERTED=2]="INVERTED",n}(H||{}),ne,x;function On(){if(x==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return x=!1,x;if("scrollBehavior"in document.documentElement.style)x=!0;else{let n=Element.prototype.scrollTo;n?x=!/\{\s*\[native code\]\s*\}/.test(n.toString()):x=!1}}return x}function Nn(){if(typeof document!="object"||!document)return H.NORMAL;if(ne==null){let n=document.createElement("div"),e=n.style;n.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let o=document.createElement("div"),t=o.style;t.width="2px",t.height="1px",n.appendChild(o),document.body.appendChild(n),ne=H.NORMAL,n.scrollLeft===0&&(n.scrollLeft=1,ne=n.scrollLeft===0?H.NEGATED:H.INVERTED),n.remove()}return ne}var Ie;function Xt(){if(Ie==null){let n=typeof document<"u"?document.head:null;Ie=!!(n&&(n.createShadowRoot||n.attachShadow))}return Ie}function yt(n){if(Xt()){let e=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Et(){let n=typeof document<"u"&&document?document.activeElement:null;for(;n&&n.shadowRoot;){let e=n.shadowRoot.activeElement;if(e===n)break;n=e}return n}function D(n){return n.composedPath?n.composedPath()[0]:n.target}function It(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function se(n,...e){return e.length?e.some(o=>n[o]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function qt(n){return n!=null&&`${n}`!="false"}function Jt(n,e=0){return ei(n)?Number(n):e}function ei(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}function De(n){return Array.isArray(n)?n:[n]}function Ln(n){return n==null?"":typeof n=="string"?n:`${n}px`}function M(n){return n instanceof A?n.nativeElement:n}function Sn(n,e=/\s+/){let o=[];if(n!=null){let t=Array.isArray(n)?n:`${n}`.split(e);for(let i of t){let s=`${i}`.trim();s&&o.push(s)}}return o}var ti=(()=>{let e=class e{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var At=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=p({providers:[ti]});let n=e;return n})();var wt=new Set,C,ii=(()=>{let e=class e{constructor(t,i){this._platform=t,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):si}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&ni(t,this._nonce),this._matchMedia(t)}};e.\u0275fac=function(i){return new(i||e)(c(b),c(rt,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ni(n,e){if(!wt.has(n))try{C||(C=document.createElement("style"),e&&C.setAttribute("nonce",e),C.setAttribute("type","text/css"),document.head.appendChild(C)),C.sheet&&(C.sheet.insertRule(`@media ${n} {body{ }}`,0),wt.add(n))}catch(o){console.error(o)}}function si(n){return{matches:n==="all"||n==="",media:n,addListener:()=>{},removeListener:()=>{}}}var Tt=(()=>{let e=class e{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new I}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return Dt(De(t)).some(s=>this._registerQuery(s).mql.matches)}observe(t){let s=Dt(De(t)).map(a=>this._registerQuery(a).observable),r=Qe(s);return r=Xe(r.pipe(z(1)),r.pipe(G(1),$(0))),r.pipe(S(a=>{let d={matches:!1,breakpoints:{}};return a.forEach(({matches:y,query:l})=>{d.matches=d.matches||y,d.breakpoints[l]=y}),d}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let i=this._mediaMatcher.matchMedia(t),r={observable:new fe(a=>{let d=y=>this._zone.run(()=>a.next(y));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(et(i),S(({matches:a})=>({query:t,matches:a})),Z(this._destroySubject)),mql:i};return this._queries.set(t,r),r}};e.\u0275fac=function(i){return new(i||e)(c(ii),c(w))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Dt(n){return n.map(e=>e.split(",")).reduce((e,o)=>e.concat(o)).map(e=>e.trim())}var Rt=" ";function Ai(n,e,o){let t=ce(n,e);o=o.trim(),!t.some(i=>i.trim()===o)&&(t.push(o),n.setAttribute(e,t.join(Rt)))}function wi(n,e,o){let t=ce(n,e);o=o.trim();let i=t.filter(s=>s!==o);i.length?n.setAttribute(e,i.join(Rt)):n.removeAttribute(e)}function ce(n,e){return n.getAttribute(e)?.match(/\S+/g)??[]}var Ft="cdk-describedby-message",oe="cdk-describedby-host",xe=0,ls=(()=>{let e=class e{constructor(t,i){this._platform=i,this._messageRegistry=new Map,this._messagesContainer=null,this._id=`${xe++}`,this._document=t,this._id=f(st)+"-"+xe++}describe(t,i,s){if(!this._canBeDescribed(t,i))return;let r=Te(i,s);typeof i!="string"?(kt(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,s),this._isElementDescribedByMessage(t,r)||this._addMessageReference(t,r)}removeDescription(t,i,s){if(!i||!this._isElementNode(t))return;let r=Te(i,s);if(this._isElementDescribedByMessage(t,r)&&this._removeMessageReference(t,r),typeof i=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${oe}="${this._id}"]`);for(let i=0;i<t.length;i++)this._removeCdkDescribedByReferenceIds(t[i]),t[i].removeAttribute(oe);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,i){let s=this._document.createElement("div");kt(s,this._id),s.textContent=t,i&&s.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(s),this._messageRegistry.set(Te(t,i),{messageElement:s,referenceCount:0})}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();let s=this._document.createElement("div");s.style.visibility="hidden",s.classList.add(t),s.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&s.setAttribute("platform","server"),this._document.body.appendChild(s),this._messagesContainer=s}_removeCdkDescribedByReferenceIds(t){let i=ce(t,"aria-describedby").filter(s=>s.indexOf(Ft)!=0);t.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(t,i){let s=this._messageRegistry.get(i);Ai(t,"aria-describedby",s.messageElement.id),t.setAttribute(oe,this._id),s.referenceCount++}_removeMessageReference(t,i){let s=this._messageRegistry.get(i);s.referenceCount--,wi(t,"aria-describedby",s.messageElement.id),t.removeAttribute(oe)}_isElementDescribedByMessage(t,i){let s=ce(t,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&s.indexOf(a)!=-1}_canBeDescribed(t,i){if(!this._isElementNode(t))return!1;if(i&&typeof i=="object")return!0;let s=i==null?"":`${i}`.trim(),r=t.getAttribute("aria-label");return s?!r||r.trim()!==s:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}};e.\u0275fac=function(i){return new(i||e)(c(v),c(b))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Te(n,e){return typeof n=="string"?`${e||""}/${n}`:n}function kt(n,e){n.id||(n.id=`${Ft}-${e}-${xe++}`)}var de=class{constructor(e,o){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new I,this._typeaheadSubscription=Ge.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new I,this.change=new I,e instanceof pe?this._itemChangesSubscription=e.changes.subscribe(t=>this._itemsChanged(t.toArray())):_e(e)&&(this._effectRef=gt(()=>this._itemsChanged(e()),{injector:o}))}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(tt(o=>this._pressedLetters.push(o)),$(e),qe(()=>this._pressedLetters.length>0),S(()=>this._pressedLetters.join(""))).subscribe(o=>{let t=this._getItemsArray();for(let i=1;i<t.length+1;i++){let s=(this._activeItemIndex+i)%t.length,r=t[s];if(!this._skipPredicateFn(r)&&r.getLabel().toUpperCase().trim().indexOf(o)===0){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,o=10){return this._pageUpAndDown={enabled:e,delta:o},this}setActiveItem(e){let o=this._activeItem;this.updateActiveItem(e),this._activeItem!==o&&this.change.next(this._activeItemIndex)}onKeydown(e){let o=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(o){case 9:this.tabOut.next();return;case 40:if(this._vertical&&i){this.setNextItemActive();break}else return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&i){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&i){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&i){let s=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(s>0?s:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&i){let s=this._activeItemIndex+this._pageUpAndDown.delta,r=this._getItemsArray().length;this._setActiveItemByIndex(s<r?s:r-1,-1);break}else return;default:(i||se(e,"shiftKey"))&&(e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(o>=65&&o<=90||o>=48&&o<=57)&&this._letterKeyStream.next(String.fromCharCode(o)));return}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let o=this._getItemsArray(),t=typeof e=="number"?e:o.indexOf(e),i=o[t];this._activeItem=i??null,this._activeItemIndex=t}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let o=this._getItemsArray();for(let t=1;t<=o.length;t++){let i=(this._activeItemIndex+e*t+o.length)%o.length,s=o[i];if(!this._skipPredicateFn(s)){this.setActiveItem(i);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,o){let t=this._getItemsArray();if(t[e]){for(;this._skipPredicateFn(t[e]);)if(e+=o,!t[e])return;this.setActiveItem(e)}}_getItemsArray(){return _e(this._items)?this._items():this._items instanceof pe?this._items.toArray():this._items}_itemsChanged(e){if(this._activeItem){let o=e.indexOf(this._activeItem);o>-1&&o!==this._activeItemIndex&&(this._activeItemIndex=o)}}},xt=class extends de{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}},Mt=class extends de{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};var Di=(()=>{let e=class e{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return ki(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let i=Ti(Li(t));if(i&&(Ct(i)===-1||!this.isVisible(i)))return!1;let s=t.nodeName.toLowerCase(),r=Ct(t);return t.hasAttribute("contenteditable")?r!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Ri(t)?!1:s==="audio"?t.hasAttribute("controls")?r!==-1:!1:s==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,i){return Fi(t)&&!this.isDisabled(t)&&(i?.ignoreVisibility||this.isVisible(t))}};e.\u0275fac=function(i){return new(i||e)(c(b))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function Ti(n){try{return n.frameElement}catch{return null}}function ki(n){return!!(n.offsetWidth||n.offsetHeight||typeof n.getClientRects=="function"&&n.getClientRects().length)}function xi(n){let e=n.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Mi(n){return Oi(n)&&n.type=="hidden"}function Ci(n){return Ni(n)&&n.hasAttribute("href")}function Oi(n){return n.nodeName.toLowerCase()=="input"}function Ni(n){return n.nodeName.toLowerCase()=="a"}function Lt(n){if(!n.hasAttribute("tabindex")||n.tabIndex===void 0)return!1;let e=n.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function Ct(n){if(!Lt(n))return null;let e=parseInt(n.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Ri(n){let e=n.nodeName.toLowerCase(),o=e==="input"&&n.type;return o==="text"||o==="password"||e==="select"||e==="textarea"}function Fi(n){return Mi(n)?!1:xi(n)||Ci(n)||n.hasAttribute("contenteditable")||Lt(n)}function Li(n){return n.ownerDocument&&n.ownerDocument.defaultView||window}var Me=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,o,t,i,s=!1,r){this._element=e,this._checker=o,this._ngZone=t,this._document=i,this._injector=r,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){let e=this._startAnchor,o=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),o&&(o.removeEventListener("focus",this.endAnchorListener),o.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(o=>{this._executeOnStable(()=>o(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(o=>{this._executeOnStable(()=>o(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(o=>{this._executeOnStable(()=>o(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let o=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?o.length?o[0]:this._getFirstTabbableElement(this._element):o.length?o[o.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let o=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(o){if(!this._checker.isFocusable(o)){let t=this._getFirstTabbableElement(o);return t?.focus(e),!!t}return o.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let o=this._getRegionBoundary("start");return o&&o.focus(e),!!o}focusLastTabbableElement(e){let o=this._getRegionBoundary("end");return o&&o.focus(e),!!o}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let o=e.children;for(let t=0;t<o.length;t++){let i=o[t].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(o[t]):null;if(i)return i}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let o=e.children;for(let t=o.length-1;t>=0;t--){let i=o[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(o[t]):null;if(i)return i}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,o){e?o.setAttribute("tabindex","0"):o.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?this._injector?at(e,{injector:this._injector}):e():this._ngZone.onStable.pipe(z(1)).subscribe(e)}},Si=(()=>{let e=class e{constructor(t,i,s){this._checker=t,this._ngZone=i,this._injector=f(nt),this._document=s}create(t,i=!1){return new Me(t,this._checker,this._ngZone,this._document,i,this._injector)}};e.\u0275fac=function(i){return new(i||e)(c(Di),c(w),c(v))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),hs=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(t){this.focusTrap&&(this.focusTrap.enabled=t)}constructor(t,i,s){this._elementRef=t,this._focusTrapFactory=i,this._previouslyFocusedElement=null,f(b).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(t){let i=t.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Et(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(i){return new(i||e)(u(A),u(Si),u(v))},e.\u0275dir=k({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",U],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",U]},exportAs:["cdkTrapFocus"],standalone:!0,features:[P,it]});let n=e;return n})();function Ce(n){return n.buttons===0||n.detail===0}function Oe(n){let e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var ji=new _("cdk-input-modality-detector-options"),Pi={ignoreKeys:[18,17,224,91,16]},St=650,L=F({passive:!0,capture:!0}),Bi=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(t,i,s,r){this._platform=t,this._mostRecentTarget=null,this._modality=new Ze(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(d=>d===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=D(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs<St||(this._modality.next(Ce(a)?"keyboard":"mouse"),this._mostRecentTarget=D(a))},this._onTouchstart=a=>{if(Oe(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=D(a)},this._options=m(m({},Pi),r),this.modalityDetected=this._modality.pipe(G(1)),this.modalityChanged=this.modalityDetected.pipe(Je()),t.isBrowser&&i.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,L),s.addEventListener("mousedown",this._onMousedown,L),s.addEventListener("touchstart",this._onTouchstart,L)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,L),document.removeEventListener("mousedown",this._onMousedown,L),document.removeEventListener("touchstart",this._onTouchstart,L))}};e.\u0275fac=function(i){return new(i||e)(c(b),c(w),c(v),c(ji,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Ui=new _("liveAnnouncerElement",{providedIn:"root",factory:Vi});function Vi(){return null}var Hi=new _("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ki=0,us=(()=>{let e=class e{constructor(t,i,s,r){this._ngZone=i,this._defaultOptions=r,this._document=s,this._liveElement=t||this._createLiveElement()}announce(t,...i){let s=this._defaultOptions,r,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=s&&s.politeness?s.politeness:"polite"),a==null&&s&&(a=s.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",i=this._document.getElementsByClassName(t),s=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return s.classList.add(t),s.classList.add("cdk-visually-hidden"),s.setAttribute("aria-atomic","true"),s.setAttribute("aria-live","polite"),s.id=`cdk-live-announcer-${Ki++}`,this._document.body.appendChild(s),s}_exposeAnnouncerToModals(t){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let s=0;s<i.length;s++){let r=i[s],a=r.getAttribute("aria-owns");a?a.indexOf(t)===-1&&r.setAttribute("aria-owns",a+" "+t):r.setAttribute("aria-owns",t)}}};e.\u0275fac=function(i){return new(i||e)(c(Ui,8),c(w),c(v),c(Hi,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var ae=function(n){return n[n.IMMEDIATE=0]="IMMEDIATE",n[n.EVENTUAL=1]="EVENTUAL",n}(ae||{}),Wi=new _("cdk-focus-monitor-default-options"),re=F({passive:!0,capture:!0}),$i=(()=>{let e=class e{constructor(t,i,s,r,a){this._ngZone=t,this._platform=i,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new I,this._rootNodeFocusAndBlurListener=d=>{let y=D(d);for(let l=y;l;l=l.parentElement)d.type==="focus"?this._onFocus(d,l):this._onBlur(d,l)},this._document=r,this._detectionMode=a?.detectionMode||ae.IMMEDIATE}monitor(t,i=!1){let s=M(t);if(!this._platform.isBrowser||s.nodeType!==1)return Ye();let r=yt(s)||this._getDocument(),a=this._elementInfo.get(s);if(a)return i&&(a.checkChildren=!0),a.subject;let d={checkChildren:i,subject:new I,rootNode:r};return this._elementInfo.set(s,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(t){let i=M(t),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s))}focusVia(t,i,s){let r=M(t),a=this._getDocument().activeElement;r===a?this._getClosestElementsInfo(r).forEach(([d,y])=>this._originChanged(d,i,y)):(this._setOrigin(i),typeof r.focus=="function"&&r.focus(s))}ngOnDestroy(){this._elementInfo.forEach((t,i)=>this.stopMonitoring(i))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===ae.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,i){t.classList.toggle("cdk-focused",!!i),t.classList.toggle("cdk-touch-focused",i==="touch"),t.classList.toggle("cdk-keyboard-focused",i==="keyboard"),t.classList.toggle("cdk-mouse-focused",i==="mouse"),t.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(t,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&i,this._detectionMode===ae.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?St:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(t,i){let s=this._elementInfo.get(i),r=D(t);!s||!s.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),s)}_onBlur(t,i){let s=this._elementInfo.get(i);!s||s.checkChildren&&t.relatedTarget instanceof Node&&i.contains(t.relatedTarget)||(this._setClasses(i),this._emitOrigin(s,null))}_emitOrigin(t,i){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(i))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let i=t.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,re),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,re)}),this._rootNodeFocusListenerCount.set(i,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Z(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(t){let i=t.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,re),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,re),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,i,s){this._setClasses(t,i),this._emitOrigin(s,i),this._lastFocusOrigin=i}_getClosestElementsInfo(t){let i=[];return this._elementInfo.forEach((s,r)=>{(r===t||s.checkChildren&&r.contains(t))&&i.push([r,s])}),i}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:i,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!i||i===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let r=t.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(i))return!0}return!1}};e.\u0275fac=function(i){return new(i||e)(c(w),c(b),c(Bi),c(v,8),c(Wi,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ms=(()=>{let e=class e{constructor(t,i){this._elementRef=t,this._focusMonitor=i,this._focusOrigin=null,this.cdkFocusChange=new N}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)(u(A),u($i))},e.\u0275dir=k({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let n=e;return n})(),O=function(n){return n[n.NONE=0]="NONE",n[n.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",n[n.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",n}(O||{}),Ot="cdk-high-contrast-black-on-white",Nt="cdk-high-contrast-white-on-black",ke="cdk-high-contrast-active",Ne=(()=>{let e=class e{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=f(Tt).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return O.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(t):null,r=(s&&s.backgroundColor||"").replace(/ /g,"");switch(t.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return O.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return O.BLACK_ON_WHITE}return O.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(ke,Ot,Nt),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===O.BLACK_ON_WHITE?t.add(ke,Ot):i===O.WHITE_ON_BLACK&&t.add(ke,Nt)}}};e.\u0275fac=function(i){return new(i||e)(c(b),c(v))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),fs=(()=>{let e=class e{constructor(t){t._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(i){return new(i||e)(c(Ne))},e.\u0275mod=g({type:e}),e.\u0275inj=p({imports:[At]});let n=e;return n})();var Zi=new _("cdk-dir-doc",{providedIn:"root",factory:Yi});function Yi(){return f(v)}var Qi=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Xi(n){let e=n?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Qi.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var Ds=(()=>{let e=class e{constructor(t){if(this.value="ltr",this.change=new N,t){let i=t.body?t.body.dir:null,s=t.documentElement?t.documentElement.dir:null;this.value=Xi(i||s||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(i){return new(i||e)(c(Zi,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var Re=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=p({});let n=e;return n})();var en=["text"],tn=[[["mat-icon"]],"*"],nn=["mat-icon","*"];function sn(n,e){if(n&1&&J(0,"mat-pseudo-checkbox",1),n&2){let o=ee();X("disabled",o.disabled)("state",o.selected?"checked":"unchecked")}}function on(n,e){if(n&1&&J(0,"mat-pseudo-checkbox",3),n&2){let o=ee();X("disabled",o.disabled)}}function rn(n,e){if(n&1&&(ve(0,"span",4),mt(1),ye()),n&2){let o=ee();j(),ft("(",o.group.label,")")}}var an=["mat-internal-form-field",""],cn=["*"];var Gs=(()=>{let e=class e{};e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";let n=e;return n})(),Zs=(()=>{let e=class e{};e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms";let n=e;return n})();function dn(){return!0}var ln=new _("mat-sanity-checks",{providedIn:"root",factory:dn}),he=(()=>{let e=class e{constructor(t,i,s){this._sanityChecks=i,this._document=s,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return It()?!1:typeof this._sanityChecks=="boolean"?this._sanityChecks:!!this._sanityChecks[t]}};e.\u0275fac=function(i){return new(i||e)(c(Ne),c(ln,8),c(v))},e.\u0275mod=g({type:e}),e.\u0275inj=p({imports:[Re,Re]});let n=e;return n})();var jt=class{constructor(e,o,t,i,s){this._defaultMatcher=e,this.ngControl=o,this._parentFormGroup=t,this._parentForm=i,this._stateChanges=s,this.errorState=!1}updateErrorState(){let e=this.errorState,o=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,s=t?.isErrorState(i,o)??!1;s!==e&&(this.errorState=s,this._stateChanges.next())}};var Pt=new _("MAT_DATE_LOCALE",{providedIn:"root",factory:hn});function hn(){return f(pt)}var ue=class{constructor(){this._localeChanges=new I,this.localeChanges=this._localeChanges}getValidDateOrNull(e){return this.isDateInstance(e)&&this.isValid(e)?e:null}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next()}compareDate(e,o){return this.getYear(e)-this.getYear(o)||this.getMonth(e)-this.getMonth(o)||this.getDate(e)-this.getDate(o)}sameDate(e,o){if(e&&o){let t=this.isValid(e),i=this.isValid(o);return t&&i?!this.compareDate(e,o):t==i}return e==o}clampDate(e,o,t){return o&&this.compareDate(e,o)<0?o:t&&this.compareDate(e,t)>0?t:e}},un=new _("mat-date-formats"),mn=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Fe(n,e){let o=Array(n);for(let t=0;t<n;t++)o[t]=e(t);return o}var fn=(()=>{let e=class e extends ue{constructor(t){super(),this.useUtcForDisplay=!1,this._matDateLocale=f(Pt,{optional:!0}),t!==void 0&&(this._matDateLocale=t),super.setLocale(this._matDateLocale)}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){let i=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return Fe(12,s=>this._format(i,new Date(2017,s,1)))}getDateNames(){let t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Fe(31,i=>this._format(t,new Date(2017,0,i+1)))}getDayOfWeekNames(t){let i=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return Fe(7,s=>this._format(i,new Date(2017,0,s+1)))}getYearName(t){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,t)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,i,s){let r=this._createDateWithOverflow(t,i,s);return r.getMonth()!=i,r}today(){return new Date}parse(t,i){return typeof t=="number"?new Date(t):t?new Date(Date.parse(t)):null}format(t,i){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");let s=new Intl.DateTimeFormat(this.locale,ze(m({},i),{timeZone:"utc"}));return this._format(s,t)}addCalendarYears(t,i){return this.addCalendarMonths(t,i*12)}addCalendarMonths(t,i){let s=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+i,this.getDate(t));return this.getMonth(s)!=((this.getMonth(t)+i)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(t,i){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+i)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if(typeof t=="string"){if(!t)return null;if(mn.test(t)){let i=new Date(t);if(this.isValid(i))return i}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,i,s){let r=new Date;return r.setFullYear(t,i,s),r.setHours(0,0,0,0),r}_2digit(t){return("00"+t).slice(-2)}_format(t,i){let s=new Date;return s.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),s.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),t.format(s)}};e.\u0275fac=function(i){return new(i||e)(c(Pt,8))},e.\u0275prov=h({token:e,factory:e.\u0275fac});let n=e;return n})(),pn={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};var Ys=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=p({providers:[_n()]});let n=e;return n})();function _n(n=pn){return[{provide:ue,useClass:fn},{provide:un,useValue:n}]}var Qs=(()=>{let e=class e{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var E=function(n){return n[n.FADING_IN=0]="FADING_IN",n[n.VISIBLE=1]="VISIBLE",n[n.FADING_OUT=2]="FADING_OUT",n[n.HIDDEN=3]="HIDDEN",n}(E||{}),je=class{constructor(e,o,t,i=!1){this._renderer=e,this.element=o,this.config=t,this._animationForciblyDisabledThroughCss=i,this.state=E.HIDDEN}fadeOut(){this._renderer.fadeOutRipple(this)}},Bt=F({passive:!0,capture:!0}),Pe=class{constructor(){this._events=new Map,this._delegateEventHandler=e=>{let o=D(e);o&&this._events.get(e.type)?.forEach((t,i)=>{(i===o||i.contains(o))&&t.forEach(s=>s.handleEvent(e))})}}addHandler(e,o,t,i){let s=this._events.get(o);if(s){let r=s.get(t);r?r.add(i):s.set(t,new Set([i]))}else this._events.set(o,new Map([[t,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(o,this._delegateEventHandler,Bt)})}removeHandler(e,o,t){let i=this._events.get(e);if(!i)return;let s=i.get(o);s&&(s.delete(t),s.size===0&&i.delete(o),i.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,Bt)))}},Ut={enterDuration:225,exitDuration:150},gn=800,Vt=F({passive:!0,capture:!0}),Ht=["mousedown","touchstart"],Kt=["mouseup","mouseleave","touchend","touchcancel"],W=class W{constructor(e,o,t,i){this._target=e,this._ngZone=o,this._platform=i,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=M(t))}fadeInRipple(e,o,t={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=m(m({},Ut),t.animation);t.centered&&(e=i.left+i.width/2,o=i.top+i.height/2);let r=t.radius||bn(e,o,i),a=e-i.left,d=o-i.top,y=s.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=`${a-r}px`,l.style.top=`${d-r}px`,l.style.height=`${r*2}px`,l.style.width=`${r*2}px`,t.color!=null&&(l.style.backgroundColor=t.color),l.style.transitionDuration=`${y}ms`,this._containerElement.appendChild(l);let Ve=window.getComputedStyle(l),Yt=Ve.transitionProperty,He=Ve.transitionDuration,me=Yt==="none"||He==="0s"||He==="0s, 0s"||i.width===0&&i.height===0,T=new je(this,l,t,me);l.style.transform="scale3d(1, 1, 1)",T.state=E.FADING_IN,t.persistent||(this._mostRecentTransientRipple=T);let Ke=null;return!me&&(y||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let We=()=>this._finishRippleTransition(T),$e=()=>this._destroyRipple(T);l.addEventListener("transitionend",We),l.addEventListener("transitioncancel",$e),Ke={onTransitionEnd:We,onTransitionCancel:$e}}),this._activeRipples.set(T,Ke),(me||!y)&&this._finishRippleTransition(T),T}fadeOutRipple(e){if(e.state===E.FADING_OUT||e.state===E.HIDDEN)return;let o=e.element,t=m(m({},Ut),e.config.animation);o.style.transitionDuration=`${t.exitDuration}ms`,o.style.opacity="0",e.state=E.FADING_OUT,(e._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let o=M(e);!this._platform.isBrowser||!o||o===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=o,Ht.forEach(t=>{W._eventManager.addHandler(this._ngZone,t,o,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Kt.forEach(o=>{this._triggerElement.addEventListener(o,this,Vt)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===E.FADING_IN?this._startFadeOutTransition(e):e.state===E.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let o=e===this._mostRecentTransientRipple,{persistent:t}=e.config;e.state=E.VISIBLE,!t&&(!o||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let o=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=E.HIDDEN,o!==null&&(e.element.removeEventListener("transitionend",o.onTransitionEnd),e.element.removeEventListener("transitioncancel",o.onTransitionCancel)),e.element.remove()}_onMousedown(e){let o=Ce(e),t=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+gn;!this._target.rippleDisabled&&!o&&!t&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!Oe(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let o=e.changedTouches;if(o)for(let t=0;t<o.length;t++)this.fadeInRipple(o[t].clientX,o[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let o=e.state===E.VISIBLE||e.config.terminateOnPointerUp&&e.state===E.FADING_IN;!e.config.persistent&&o&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(Ht.forEach(o=>W._eventManager.removeHandler(o,e,this)),this._pointerUpEventsRegistered&&(Kt.forEach(o=>e.removeEventListener(o,this,Vt)),this._pointerUpEventsRegistered=!1))}};W._eventManager=new Pe;var Be=W;function bn(n,e,o){let t=Math.max(Math.abs(n-o.left),Math.abs(n-o.right)),i=Math.max(Math.abs(e-o.top),Math.abs(e-o.bottom));return Math.sqrt(t*t+i*i)}var Gt=new _("mat-ripple-global-options"),Zt=(()=>{let e=class e{get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}constructor(t,i,s,r,a){this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new Be(this,i,t,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:m(m(m({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,s){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,i,m(m({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,m(m({},this.rippleConfig),t))}};e.\u0275fac=function(i){return new(i||e)(u(A),u(w),u(b),u(Gt,8),u(Q,8))},e.\u0275dir=k({type:e,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,s){i&2&&B("mat-ripple-unbounded",s.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"],standalone:!0});let n=e;return n})(),vn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=p({imports:[he,he]});let n=e;return n})(),yn=(()=>{let e=class e{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1,this.appearance="full"}};e.\u0275fac=function(i){return new(i||e)(u(Q,8))},e.\u0275cmp=Y({type:e,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,s){i&2&&B("mat-pseudo-checkbox-indeterminate",s.state==="indeterminate")("mat-pseudo-checkbox-checked",s.state==="checked")("mat-pseudo-checkbox-disabled",s.disabled)("mat-pseudo-checkbox-minimal",s.appearance==="minimal")("mat-pseudo-checkbox-full",s.appearance==="full")("_mat-animation-noopable",s._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},standalone:!0,features:[ie],decls:0,vars:0,template:function(i,s){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color);border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color);border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0});let n=e;return n})(),En=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=p({imports:[he]});let n=e;return n})(),In=new _("MAT_OPTION_PARENT_COMPONENT");var An=new _("MatOptgroup");var wn=0,Ue=class{constructor(e,o=!1){this.source=e,this.isUserInput=o}},Xs=(()=>{let e=class e{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=t}get disableRipple(){return!!(this._parent&&this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}constructor(t,i,s,r){this._element=t,this._changeDetectorRef=i,this._parent=s,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id=`mat-option-${wn++}`,this.onSelectionChange=new N,this._stateChanges=new I}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(t=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}deselect(t=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),t&&this._emitSelectionChangeEvent())}focus(t,i){let s=this._getHostElement();typeof s.focus=="function"&&s.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(t.keyCode===13||t.keyCode===32)&&!se(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=t)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Ue(this,t))}};e.\u0275fac=function(i){return new(i||e)(u(A),u(_t),u(In,8),u(An,8))},e.\u0275cmp=Y({type:e,selectors:[["mat-option"]],viewQuery:function(i,s){if(i&1&<(en,7),i&2){let r;ht(r=ut())&&(s._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,s){i&1&&dt("click",function(){return s._selectViaInteraction()})("keydown",function(a){return s._handleKeydown(a)}),i&2&&(ct("id",s.id),be("aria-selected",s.selected)("aria-disabled",s.disabled.toString()),B("mdc-list-item--selected",s.selected)("mat-mdc-option-multiple",s.multiple)("mat-mdc-option-active",s.active)("mdc-list-item--disabled",s.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",U]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],standalone:!0,features:[P,ie],ngContentSelectors:nn,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,s){i&1&&(Ee(tn),ge(0,sn,1,2,"mat-pseudo-checkbox",1),te(1),ve(2,"span",2,0),te(4,1),ye(),ge(5,on,1,1,"mat-pseudo-checkbox",3)(6,rn,2,1,"span",4),J(7,"div",5)),i&2&&(q(s.multiple?0:-1),j(5),q(!s.multiple&&s.selected&&!s.hideSingleSelectionIndicator?5:-1),j(),q(s.group&&s.group._inert?6:-1),j(),X("matRippleTrigger",s._getHostElement())("matRippleDisabled",s.disabled||s.disableRipple))},dependencies:[yn,Zt],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0});let n=e;return n})();function qs(n,e,o){if(o.length){let t=e.toArray(),i=o.toArray(),s=0;for(let r=0;r<n+1;r++)t[r].group&&t[r].group===i[s]&&s++;return s}return 0}function Js(n,e,o,t){return n<o?n:n+e>o+t?Math.max(0,n-t+e):o}var eo=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=g({type:e}),e.\u0275inj=p({imports:[vn,he,En]});let n=e;return n})(),Wt={capture:!0},$t=["focus","mousedown","mouseenter","touchstart"],Le="mat-ripple-loader-uninitialized",Se="mat-ripple-loader-class-name",zt="mat-ripple-loader-centered",le="mat-ripple-loader-disabled",to=(()=>{let e=class e{constructor(){this._document=f(v,{optional:!0}),this._animationMode=f(Q,{optional:!0}),this._globalRippleOptions=f(Gt,{optional:!0}),this._platform=f(b),this._ngZone=f(w),this._hosts=new Map,this._onInteraction=t=>{let i=D(t);if(i instanceof HTMLElement){let s=i.closest(`[${Le}="${this._globalRippleOptions?.namespace??""}"]`);s&&this._createRipple(s)}},this._ngZone.runOutsideAngular(()=>{for(let t of $t)this._document?.addEventListener(t,this._onInteraction,Wt)})}ngOnDestroy(){let t=this._hosts.keys();for(let i of t)this.destroyRipple(i);for(let i of $t)this._document?.removeEventListener(i,this._onInteraction,Wt)}configureRipple(t,i){t.setAttribute(Le,this._globalRippleOptions?.namespace??""),(i.className||!t.hasAttribute(Se))&&t.setAttribute(Se,i.className||""),i.centered&&t.setAttribute(zt,""),i.disabled&&t.setAttribute(le,"")}getRipple(t){return this._hosts.get(t)||this._createRipple(t)}setDisabled(t,i){let s=this._hosts.get(t);if(s){s.disabled=i;return}i?t.setAttribute(le,""):t.removeAttribute(le)}_createRipple(t){if(!this._document)return;let i=this._hosts.get(t);if(i)return i;t.querySelector(".mat-ripple")?.remove();let s=this._document.createElement("span");s.classList.add("mat-ripple",t.getAttribute(Se)),t.append(s);let r=new Zt(new A(s),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return r._isInitialized=!0,r.trigger=t,r.centered=t.hasAttribute(zt),r.disabled=t.hasAttribute(le),this.attachRipple(t,r),r}attachRipple(t,i){t.removeAttribute(Le),this._hosts.set(t,i)}destroyRipple(t){let i=this._hosts.get(t);i&&(i.ngOnDestroy(),this._hosts.delete(t))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),io=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=Y({type:e,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,s){i&2&&B("mdc-form-field--align-end",s.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},standalone:!0,features:[ie],attrs:an,ngContentSelectors:cn,decls:1,vars:0,template:function(i,s){i&1&&(Ee(),te(0))},styles:[".mdc-form-field{display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field[hidden]{display:none}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}"],encapsulation:2,changeDetection:0});let n=e;return n})();export{qt as a,Jt as b,De as c,Ln as d,M as e,Sn as f,se as g,b as h,Cn as i,F as j,H as k,On as l,Nn as m,yt as n,Et as o,D as p,It as q,At as r,Ai as s,wi as t,ls as u,xt as v,Mt as w,Di as x,Si as y,hs as z,Ce as A,Oe as B,us as C,$i as D,ms as E,fs as F,Ds as G,Re as H,Gs as I,Zs as J,he as K,jt as L,Pt as M,ue as N,un as O,Ys as P,Qs as Q,Gt as R,Zt as S,vn as T,yn as U,In as V,An as W,Xs as X,qs as Y,Js as Z,eo as _,to as $,io as aa};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as ot}from"./chunk-DXJFMERC.js";import{a as Q,b as X,d as Y,e as Z}from"./chunk-2Y4N4NSS.js";import{b as rt}from"./chunk-G6CZHXQI.js";import{g as J}from"./chunk-PVQ2T5XH.js";import{b as H,e as A}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{l as it,m as nt}from"./chunk-PIDUM6XT.js";import{t as tt,u as et}from"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{h as z,k as G,u as $}from"./chunk-F5YRASNU.js";import{b as v,c as q}from"./chunk-2UXFUEON.js";import{Fb as l,Gb as u,Ha as P,Hb as j,Ia as c,Ja as h,Jb as y,Kb as L,Lb as M,Q as T,Wb as V,X as x,Xb as W,Ya as g,_a as m,aa as p,ga as E,gd as C,ha as d,kb as r,lb as a,mb as D,nb as U,oa as O,ob as F,pa as w,q as I,qb as K,rc as k,sc as R,tb as _,vb as f,vc as B,zc as S}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";function ct(n,e){if(n&1&&(r(0,"span",13),D(1,"img",14),a(),r(2,"span"),l(3),a()),n&2){let s=e.item;c(),m("src",s.Img,P)("alt",s.Name),c(2),j(" ",s.Name," ")}}function mt(n,e){if(n&1){let s=K();U(0),r(1,"ng-select",16),M("ngModelChange",function(i){O(s);let o=f().$implicit;return L(o.ProductSKU,i)||(o.ProductSKU=i),w(i)}),a(),F()}if(n&2){let s=e.ngIf,t=f().$implicit;c(),y("ngModel",t.ProductSKU),m("items",s)}}function pt(n,e){if(n&1&&(r(0,"tr")(1,"td"),l(2),a(),r(3,"td"),l(4),a(),r(5,"td"),l(6),a(),r(7,"td"),g(8,mt,2,2,"ng-container",15),V(9,"async"),a()()),n&2){let s=e.$implicit,t=f();c(2),u(s.Name),c(2),u(s.Service),c(2),u(s.TypeString),c(2),m("ngIf",W(9,4,t.logisticOptions$))}}var st=(()=>{let e=class e{constructor(t,i,o){this.http=t,this.toastr=i,this.authService=o,this.filter={ChannelID:""},this.logisticServiceOptions=[],this.channelOptions=this.authService.getChannels(),this.initUnsupportedChannel(),this.initLoader()}initUnsupportedChannel(){let t=[v.WooCommerce,v.Lazada,v.Shopify];this.channelOptions=this.channelOptions.map(i=>(t.forEach(o=>{i.TypeID===o&&(i.disabled=!0)}),i))}initLoader(){this.http.post("/api/Logistic/Load",{}).subscribe(t=>{this.filter=t.Filter,this.channelName=this.channelOptions[0].Name,this.initLogisticServiceOptions(),this.getLogisticService()})}initLogisticServiceOptions(){this.logisticOptions$=this.http.get("/api/Logistic/OptionLogisticsService").pipe(T(1),x(t=>{this.logisticServiceOptions=t}))}Validate(){for(let t of this.logisticServices)this.datasource.find(o=>o.ProductSKU==t.ProductSKU&&o.Name==t.Name)===void 0&&(t.IsChange=!0);return Promise.resolve(this.logisticServices)}submitLogistics(){this.Validate().then(t=>{this.http.post("/api/Logistic/Submit",this.logisticServices).subscribe(i=>{this.toastr.success("Success","Update Complete!",{timeOut:5e3,enableHtml:!0}),this.getLogisticService()})})}getLogisticService(){this.datasource=[],this.http.post("/api/Logistic/Get",this.filter).pipe(I(t=>t.map(i=>(i.ProductSKU=q.IsEmpty(i.ProductSKU)?null:i.ProductSKU,i)))).subscribe(t=>{this.iniTitle(),this.logisticServices=t,this.datasource=structuredClone(t)})}iniTitle(){let t=this.channelOptions.find(i=>i.ID==this.filter.ChannelID);this.channelName=t?t.Name:null}};e.\u0275fac=function(i){return new(i||e)(h(A),h(H),h(J))},e.\u0275cmp=E({type:e,selectors:[["app-logistic"]],decls:28,vars:6,consts:[["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",""],["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"],[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"],[4,"ngFor","ngForOf"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[4,"ngIf"],["placeholder","Logistic Service Code","bindLabel","Name","bindValue","Code",1,"w-75",3,"ngModelChange","ngModel","items"]],template:function(i,o){i&1&&(r(0,"mainpanel",0),_("onSubmit",function(){return o.getLogisticService()}),r(1,"filters")(2,"div")(3,"label",1),l(4,"Select a Channel"),a(),r(5,"ng-select",2),M("ngModelChange",function(b){return L(o.filter.ChannelID,b)||(o.filter.ChannelID=b),b}),g(6,ct,4,3,"ng-template",3),a()()(),r(7,"actions")(8,"a",4),_("click",function(){return o.submitLogistics()}),l(9,"Submit"),a()(),r(10,"content")(11,"div",5)(12,"div",6)(13,"div",7)(14,"div",8)(15,"table",9)(16,"thead",10)(17,"tr",11)(18,"th"),l(19,"Logistic"),a(),r(20,"th"),l(21,"Service"),a(),r(22,"th"),l(23,"Type"),a(),r(24,"th"),l(25,"Logistic Service"),a()()(),r(26,"tbody"),g(27,pt,10,6,"tr",12),a()()()()()()()()),i&2&&(m("headerTitle","Logistic Courier - "+o.channelName)("hideSearchDropdown",!1),c(5),m("clearable",!1)("items",o.channelOptions),y("ngModel",o.filter.ChannelID),c(22),m("ngForOf",o.logisticServices))},dependencies:[k,R,z,G,it,Y,Q,X,tt,B]});let n=e;return n})();var dt=[{path:"",component:st}],lt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=d({type:e}),e.\u0275inj=p({imports:[S,C.forChild(dt)]});let n=e;return n})();var kt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=d({type:e}),e.\u0275inj=p({imports:[S,C,lt,$,nt,Z,rt,ot,et]});let n=e;return n})();export{kt as LogisticModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as M}from"./chunk-FX43R2N5.js";import{a as Ee}from"./chunk-LIS3LB3F.js";import{a as xe,b as fe,d as Se,e as Pe}from"./chunk-2Y4N4NSS.js";import{a as E}from"./chunk-BSBYMQ7J.js";import{a as Me,b as B,c as Ne}from"./chunk-BRTVFFDI.js";import{a as ge}from"./chunk-662E5VTA.js";import{a as be,c as De}from"./chunk-NNPT3RN6.js";import{a as Ve,b as Te}from"./chunk-G6CZHXQI.js";import"./chunk-M4VGME5L.js";import{a as Fe}from"./chunk-5WVUQE43.js";import"./chunk-AAIK6JQ3.js";import{g as ue}from"./chunk-PVQ2T5XH.js";import{b as oe,e as re}from"./chunk-IPX66YIX.js";import"./chunk-HBHGO2RV.js";import{d as ye,k as Ie,l as we,m as ve}from"./chunk-PIDUM6XT.js";import"./chunk-43TMSPFC.js";import"./chunk-4TYJR476.js";import{b as le,c as ce,h as se,k as _e,m as pe,u as me}from"./chunk-F5YRASNU.js";import{c as de,e as he,f as Ce}from"./chunk-2UXFUEON.js";import{B as A,Eb as H,Fb as d,Gb as R,Ha as V,Hb as T,Ia as l,Ib as J,Ja as f,Jb as y,Kb as I,Lb as w,Mb as Z,Nb as Q,Pb as b,Q as W,Wb as v,X as $,Xb as F,Ya as h,Yb as X,Zb as Y,_a as _,da as j,fb as S,ga as z,gb as N,ib as k,jb as L,kb as o,lb as c,mb as P,nb as G,oa as p,ob as K,pa as m,pc as ee,qb as x,sc as te,tb as u,vb as r,vc as ne,yb as q,yc as ie,zc as ae}from"./chunk-77JORVC2.js";import"./chunk-CRRJCY55.js";var U=i=>[i],Le=i=>({"text-decoration-line-through":i}),Re=i=>({"bg-gradient-warning":i}),Be=i=>({"ms-10":i});function Ue(i,s){if(i&1&&(o(0,"span",10),P(1,"img",11),c(),d(2)),i&2){let t=s.item;l(),_("src",t==null?null:t.Img,V),l(),T(" ",t.Name," ")}}function Oe(i,s){if(i&1){let t=x();o(0,"button",16),u("click",function(){p(t);let n=r().ngIf,a=r(2);return m(a.updateStock(n))}),P(1,"i",17),d(2," Update "),c()}}function Ae(i,s){if(i&1){let t=x();o(0,"actions")(1,"div",12),h(2,Oe,3,0,"button",13),o(3,"button",14),u("click",function(){p(t);let n=r(2);return m(n.openExportDialog())}),P(4,"i",15),o(5,"span"),d(6,"Export"),c()()()()}if(i&2){let t=s.ngIf,e=r(2);l(2),_("ngIf",e.productService.hasSelectionVariant(t))}}function We(i,s){if(i&1){let t=x();o(0,"th")(1,"input",33),u("change",function(n){p(t);let a=r().ngIf,g=r(2);return m(g.onSelectAllSKU(n.target.checked,a))}),c()()}}function $e(i,s){if(i&1){let t=x();o(0,"input",52),w("ngModelChange",function(n){p(t);let a=r(4).$implicit;return I(a.selected,n)||(a.selected=n),m(n)}),u("ngModelChange",function(){p(t);let n=r(4).$implicit,a=r(3);return m(a.onCheckboxStateProduct(n))}),c()}if(i&2){let t=r(4).$implicit;y("ngModel",t.selected)}}function je(i,s){if(i&1&&h(0,$e,1,1,"ng-template",26),i&2){let t=r(6);_("ngxPermissionsOnly",b(1,U,t.rolePriceEdit))}}function ze(i,s){if(i&1){let t=x();G(0),o(1,"img",53),u("click",function(n){p(t);let a=r(3).$implicit,g=r(3);return m(g.onZoomImage(n,a==null?null:a.ImageUrl))}),c(),K()}if(i&2){let t=r(3).$implicit;l(),q("src",t.ThumbnailUrl,V)}}function Ge(i,s){i&1&&P(0,"img",54)}function Ke(i,s){if(i&1&&(o(0,"small",51),d(1),c()),i&2){let t=r(3).$implicit;l(),T("(",t.Category,")")}}function qe(i,s){if(i&1&&(o(0,"td",45)(1,"div",46),h(2,je,1,3,null,26),o(3,"div",47),h(4,ze,2,1,"ng-container",48)(5,Ge,1,0,"ng-template",null,0,Y),c()()(),o(7,"td",49)(8,"span",50),d(9),c(),h(10,Ke,2,1,"small",51),c()),i&2){let t=H(6),e=r(2).$implicit;_("rowSpan",e.Variants.length),l(2),S((e.Variants==null?null:e.Variants.length)>1?2:-1),l(),_("ngClass",b(8,Be,(e.Variants==null?null:e.Variants.length)<=1)),l(),_("ngIf",e.ThumbnailUrl)("ngIfElse",t),l(3),_("rowSpan",e.Variants.length),l(2),R(e.Name),l(),S(e.Category?10:-1)}}function He(i,s){if(i&1){let t=x();o(0,"input",57),w("ngModelChange",function(n){p(t);let a=r(2).$implicit;return I(a.selected,n)||(a.selected=n),m(n)}),c()}if(i&2){let t=r(2).$implicit;y("ngModel",t.selected)}}function Je(i,s){if(i&1&&(o(0,"td",55),h(1,He,1,1,"input",56),c()),i&2){let t=r().$implicit;l(),S(t.UnitPrice>=0?1:-1)}}function Ze(i,s){i&1&&(o(0,"div",37),d(1," Not Found "),c())}function Qe(i,s){if(i&1&&(o(0,"div"),d(1),v(2,"number"),c()),i&2){let t=r().$implicit;l(),T(" ",F(2,1,t.UnitPrice)," ")}}function Xe(i,s){if(i&1&&(o(0,"div",38)(1,"a",41),P(2,"i",58),c()()),i&2){let t=r().$implicit,e=r(4);l(),_("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(t==null?null:t.ID),V)}}function Ye(i,s){if(i&1){let t=x();o(0,"div",59),u("click",function(){p(t);let n=r().$implicit,a=r().$implicit,g=r(2).ngIf,C=r();return m(C.openTableDialog(n,a,g))}),d(1),v(2,"number"),c()}if(i&2){let t=r().$implicit;l(),T(" ",F(2,1,t.Channel[0]==null?null:t.Channel[0].Price)," ")}}function et(i,s){if(i&1){let t=x();o(0,"tr",34),h(1,qe,11,10),o(2,"td",24),d(3),c(),o(4,"td",27)(5,"span",35),d(6),c()(),h(7,Je,2,1,"ng-template",26),o(8,"td",27)(9,"div",36),h(10,Ze,2,0,"div",37)(11,Qe,3,3,"div")(12,Xe,3,1,"div",38),c()(),o(13,"td",39)(14,"div",36),h(15,Ye,3,3,"div",40),o(16,"div",38)(17,"a",41),P(18,"i",42),c()(),o(19,"div",38)(20,"div",43),u("click",function(){let n=p(t).$implicit,a=r(4);return m(a.refreshPrice(n))}),P(21,"i",44),c()()()()()}if(i&2){let t=s.$implicit,e=s.$index,n=r(4);l(),S(e==0?1:-1),l(2),R(t.Model),l(2),_("matTooltip",t.Discontinued?n.discontinuedVariantMsg:"")("ngClass",b(12,Le,t.Discontinued)),l(),T(" ",t.Code," "),l(),_("ngxPermissionsOnly",b(14,U,n.rolePriceEdit)),l(3),S((t.Channel[0]==null?null:t.Channel[0].Description)!=null?10:-1),l(),S((t.Channel[0]==null?null:t.Channel[0].Description)==null?11:-1),l(),S((t.Channel[0]==null?null:t.Channel[0].Description)==null?12:-1),l(),_("ngClass",b(16,Re,t.UnitPrice!=(t.Channel[0]==null?null:t.Channel[0].Price))),l(2),S(t.Channel.length>0?15:-1),l(2),_("href",t.Channel[0]==null?null:t.Channel[0].Url,V)}}function tt(i,s){if(i&1&&k(0,et,22,18,"tr",34,N),i&2){let t=s.$implicit;L(t.Variants)}}function nt(i,s){if(i&1){let t=x();o(0,"content")(1,"div",18)(2,"div",19)(3,"table",20)(4,"thead",21)(5,"tr")(6,"th",22),d(7," Product "),o(8,"div")(9,"mat-slide-toggle",23),w("ngModelChange",function(n){p(t);let a=r(2);return I(a.toggleDifferentInventory,n)||(a.toggleDifferentInventory=n),m(n)}),u("toggleChange",function(){p(t);let n=r(2);return m(n.onToggleDifferentInventory())}),o(10,"small",7),d(11,"FILTER DIFFERENT PRICE"),c()()()(),o(12,"th",24),d(13,"Variant"),c(),o(14,"th",25),d(15,"SKU"),c(),h(16,We,2,0,"ng-template",26),o(17,"th",27),d(18,"POS"),c(),o(19,"th",27)(20,"div",28),u("click",function(){p(t);let n=r(2);return m(n.openModalFilter())}),P(21,"img",29),o(22,"span",30),d(23),v(24,"stringLimit"),c()()()()(),o(25,"tbody",31),k(26,tt,2,0,null,null,N),c()(),o(28,"infinite-paginator",32),v(29,"async"),u("onNextPage",function(){p(t);let n=r(2);return m(n.infinitePagination.onNextPage(n.searchFilter))})("onLastPage",function(){p(t);let n=r(2);return m(n.onLastPage())})("onGetRowCount",function(){p(t);let n=r(2);return m(n.infinitePagination.getRowCount(n.searchFilter))}),c()()()()}if(i&2){let t=s.ngIf,e=r(2);l(9),y("ngModel",e.toggleDifferentInventory),l(7),_("ngxPermissionsOnly",b(17,U,e.rolePriceEdit)),l(4),_("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>=20?e.selectedChannel==null?null:e.selectedChannel.Name:""),l(),_("src",e.selectedChannel==null?null:e.selectedChannel.Img,V),l(2),J(" ",X(24,12,e.selectedChannel==null?null:e.selectedChannel.Name,20),"",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>=20?"...":""," "),l(3),L(t),l(2),_("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",F(29,15,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.goToLastPage())}}function it(i,s){if(i&1){let t=x();o(0,"mainpanel",2),w("textChange",function(n){p(t);let a=r();return I(a.searchFilter.text,n)||(a.searchFilter.text=n),m(n)}),u("onSubmit",function(){p(t);let n=r();return m(n.onSearch())}),o(1,"filters")(2,"div")(3,"label",3),d(4,"Channel"),c(),o(5,"ng-select",4),w("ngModelChange",function(n){p(t);let a=r();return I(a.searchFilter.ChannelID,n)||(a.searchFilter.ChannelID=n),m(n)}),h(6,Ue,3,2,"ng-template",5),c()(),o(7,"div",6)(8,"label",7),d(9,"Page Number"),c(),o(10,"input",8),w("ngModelChange",function(n){p(t);let a=r();return I(a.searchFilter.PageNumber,n)||(a.searchFilter.PageNumber=n),m(n)}),c()(),o(11,"div",6)(12,"label",7),d(13,"Page Size"),c(),o(14,"input",8),w("ngModelChange",function(n){p(t);let a=r();return I(a.searchFilter.RowCount,n)||(a.searchFilter.RowCount=n),m(n)}),c()()(),h(15,Ae,7,1,"actions",9),v(16,"async"),h(17,nt,30,19,"content",9),v(18,"async"),c()}if(i&2){let t=r();_("headerTitle",t.pageTitle),y("text",t.searchFilter.text),l(5),_("clearable",!1)("items",t.channelOptions),y("ngModel",t.searchFilter.ChannelID),l(5),y("ngModel",t.searchFilter.PageNumber),l(4),y("ngModel",t.searchFilter.RowCount),l(),_("ngIf",F(16,9,t.data$)),l(2),_("ngIf",F(18,11,t.data$))}}var Ot=(()=>{let s=class s{constructor(e,n,a,g,C,D,O,ke){this.http=e,this.toastr=n,this.dialog=a,this.productService=g,this.biggerPictureService=C,this.inventoryService=D,this.authService=O,this.mainPanelService=ke,this.infinitePagination=j(B),this.pageTitle="Price Single Channel Comparison",this.toggleDifferentInventory=!1,this.loaderEndpoint="PriceLoader/Load",this.dataEndpoint="Price/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.rolePriceEdit=ge.price,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.hostName=this.authService.getDomain(),this.data$=this.infinitePagination.data$.pipe(W(1)),this.channelOptions=O.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.dataEndpoint,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`).pipe($(e=>{this.searchFilter=e.Filter,this.searchFilter.filterModel=E.ALL,this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}))}onToggleDifferentInventory(){this.toggleDifferentInventory?this.searchFilter.filterModel=E.ALL:this.searchFilter.filterModel=E.DIFFERENCE,this.onSearch()}onCheckboxStateProduct(e){e.Variants=e.Variants.map(n=>(n.selected=e.selected,n))}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(e){let a=this.productService.selectedVariantProduct(e).map(C=>({ID:C.ID,ChannelID:C.Channel[0].ChannelID,Code:C.Code,Price:C.UnitPrice})),g={ListChannelID:[this.searchFilter.ChannelID],ListPrice:a};this.http.post("/api/Price/UpdateChannel",g).subscribe(C=>{this.onSearch(),this.handlingUpdateStock(C.Response)})}handlingUpdateStock(e){if(e.success_list.length>0||e.failure_list.length>0){let n=e.failure_list,a=e.success_list;this.inventoryService.showToastrUpdateInventory("Price",a,n)}else this.toastr.error(e[0]?.Exception,"Error")}refreshPrice(e){let n={ChannelItemID:e?.Channel[0].ChannelItemID,ChannelVariationID:e?.Channel[0]?.ChannelVariationID,ChannelID:e?.Channel[0]?.ChannelID,VariantID:e.ID};this.http.post("/api/Price/RefreshPriceChannel",n).subscribe(a=>{this.toastr.success("Successfully updated","Success"),this.onSearch()})}onSearch(){this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}onLastPage(){this.http.post(`/API/${this.rowCountApi}`,this.searchFilter).subscribe({next:e=>{this.searchFilter.PageNumber=1,this.infinitePagination.onLastPage(this.searchFilter,e.Total)}})}openTableDialog(e,n,a){let g=JSON.parse(JSON.stringify(e));this.dialog.open(Me,{data:{Name:n.Name,Variant:g,ChannelID:g?.Channel[0]?.ChannelID,Table:"price",ChannelItemID:g?.Channel[0]?.ChannelItemID}}).afterClosed().pipe(A(D=>de.IsNotEmpty(D))).subscribe(D=>{this.updateItemAfterDialog(D,e)})}updateItemAfterDialog(e,n){let a={ID:e.ChannelID,ChannelItemID:e.ChannelItemID,ChannelVariantID:e.ChannelVariationID,Price:parseFloat(e.Price),VariantID:e.ID,SKU:e.Sku};this.http.post("/api/Price/UpdatePriceByID",a).subscribe(g=>{let C=this.productService.findChannelById(a.ID,this.channelOptions);this.toastr.success(`Successfully updated ${e.ItemName} (${e.VarName}) inventory in ${C.Name} to ${a.Price}`,"Success"),n.Channel[0]&&(n.Channel[0].Price=a.Price)})}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(e=>e.ID==this.searchFilter.ChannelID)}onSelectAllSKU(e,n){n=n.map(a=>(a.Variants=a.Variants.map(g=>(g.selected=e,g)),a))}onZoomImage(e,n){this.biggerPictureService.openBiggerPicture(e,n)}openExportDialog(){this.dialog.open(Ee,{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(n){return new(n||s)(f(re),f(oe),f(ye),f(be),f(Fe),f(M),f(ue),f(Ie))},s.\u0275cmp=z({type:s,selectors:[["app-price-single-channel"]],standalone:!0,features:[Z([B,M]),Q],decls:2,vars:3,consts:[["elsePic",""],["class","single-price",3,"headerTitle","text","textChange","onSubmit",4,"ngIf"],[1,"single-price",3,"textChange","onSubmit","headerTitle","text"],[1,"fw-bold","mb-2"],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel","appendTo","body",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[4,"ngIf"],[1,"me-2"],[2,"width","18px",3,"src"],[1,"d-flex"],["class","btn btn-success",3,"click",4,"ngIf"],[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,"container-fluid","mt-5"],[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"],["cdkVirtualScrollingElement",""],[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-lg","fa-external-link-alt"],["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"],[1,"d-flex","align-items-center","justify-content-start"],[3,"ngClass"],[4,"ngIf","ngIfElse"],[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","20px",3,"click","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","20px"],[1,"align-middle"],["type","checkbox",3,"ngModel"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"fas","external-link-custom","fa-external-link-alt"],[2,"cursor","pointer",3,"click"]],template:function(n,a){n&1&&(h(0,it,19,13,"mainpanel",1),v(1,"async")),n&2&&_("ngIf",F(1,1,a.loader$))},dependencies:[ae,ee,te,ne,ie,ve,we,Pe,Se,xe,fe,me,ce,pe,le,se,_e,De,Ne,Ce,he,Te,Ve],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 i=s;return i})();export{Ot as PriceSingleChannelComponent};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c as mt}from"./chunk-2UXFUEON.js";import{$ as dt}from"./chunk-77JORVC2.js";import{a as We,b as ut,i as at}from"./chunk-CRRJCY55.js";function L(){}var Ge=e=>e;function pt(e,t){for(let n in t)e[n]=t[n];return e}function Mt(e){return e()}function Y(e){e.forEach(Mt)}function Ye(e){return typeof e=="function"}function oe(e,t){return e!=e?t==t:e!==t}function Ot(e){return Object.keys(e).length===0}function Rt(e,...t){if(e==null)return L;let n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function me(e,t,n){e.$$.on_destroy.push(Rt(t,n))}function Ce(e){return e&&Ye(e.destroy)?e.destroy:L}var Qe=()=>globalThis.performance.now(),xe=e=>requestAnimationFrame(e),he=new Set;function Et(e){he.forEach(t=>{t.c(e)||(he.delete(t),t.f())}),he.size!==0&&xe(Et)}function et(e){let t;return he.size===0&&xe(Et),{promise:new Promise(n=>{he.add(t={c:e,f:n})}),abort(){he.delete(t)}}}function ge(e,t){e.appendChild(t)}function P(e,t,n){e.insertBefore(t,n||null)}function S(e){e.parentNode.removeChild(e)}function C(e){return document.createElement(e)}function At(e){return document.createTextNode(e)}function Ee(){return At("")}function N(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function I(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function E(e,t,n,i){n===null?e.style.removeProperty(t):e.style.setProperty(t,n)}function R(e,t,n){e.classList[n?"add":"remove"](t)}function Nt(e,t,n=!1){let i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,!1,t),i}var pe,tt=0,qe={};function $t(e,t,n,i,o,r,s,c=0){let l=16.666/i,f=`{
|
|
2
|
+
`;for(let a=0;a<=1;a+=l){let p=t+(n-t)*r(a);f+=a*100+`%{${s(p,1-p)}}
|
|
3
|
+
`}let d=f+`100% {${s(n,1-n)}}
|
|
4
|
+
}`,u=`_bp_${Math.round(Math.random()*1e9)}_${c}`;if(!qe[u]){if(!pe){let a=C("style");document.head.appendChild(a),pe=a.sheet}qe[u]=!0,pe.insertRule(`@keyframes ${u} ${d}`,pe.cssRules.length)}let h=e.style.animation||"";return e.style.animation=`${h?`${h}, `:""}${u} ${i}ms linear ${o}ms 1 both`,tt+=1,u}function Be(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?n=>n.indexOf(t)<0:n=>n.indexOf("_bp")===-1).join(", "),t&&!--tt&&Yt()}function Yt(){xe(()=>{if(tt)return;let e=pe.cssRules.length;for(;e--;)pe.deleteRule(e);qe={}})}var nt;function Ie(e){nt=e}var ze=[],ht=[],Oe=[],gt=[],Xt=Promise.resolve(),je=!1;function Wt(){je||(je=!0,Xt.then(Ct))}function ee(e){Oe.push(e)}var Fe=new Set,Le=0;function Ct(){let e=nt;do{for(;Le<ze.length;){let t=ze[Le];Le++,Ie(t),Ft(t.$$)}for(Ie(null),ze.length=0,Le=0;ht.length;)ht.pop()();for(let t=0;t<Oe.length;t+=1){let n=Oe[t];Fe.has(n)||(Fe.add(n),n())}Oe.length=0}while(ze.length);for(;gt.length;)gt.pop()();je=!1,Fe.clear(),Ie(e)}function Ft(e){if(e.fragment!==null){e.update(),Y(e.before_update);let t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ee)}}var Te;function Dt(){return Te||(Te=Promise.resolve(),Te.then(()=>{Te=null})),Te}function Ae(e,t,n){e.dispatchEvent(Nt(`${t?"intro":"outro"}${n}`))}var Re=new Set,U;function te(){U={r:0,c:[],p:U}}function ne(){U.r||Y(U.c),U=U.p}function v(e,t){e&&e.i&&(Re.delete(e),e.i(t))}function $(e,t,n,i){if(e&&e.o){if(Re.has(e))return;Re.add(e),U.c.push(()=>{Re.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}}var Pt={duration:0};function St(e,t,n){let i=t(e,n),o=!1,r,s,c=0;function l(){r&&Be(e,r)}function f(){let{delay:u=0,duration:h=300,easing:a=Ge,tick:p=L,css:g}=i||Pt;g&&(r=$t(e,0,1,h,u,a,g,c++)),p(0,1);let k=Qe()+u,H=k+h;s&&s.abort(),o=!0,ee(()=>Ae(e,!0,"start")),s=et(X=>{if(o){if(X>=H)return p(1,0),Ae(e,!0,"end"),l(),o=!1;if(X>=k){let y=a((X-k)/h);p(y,1-y)}}return o})}let d=!1;return{start(){d||(d=!0,Be(e),Ye(i)?(i=i(),Dt().then(f)):f())},invalidate(){d=!1},end(){o&&(l(),o=!1)}}}function _e(e,t,n){let i=t(e,n),o=!0,r,s=U;s.r+=1;function c(){let{delay:l=0,duration:f=300,easing:d=Ge,tick:u=L,css:h}=i||Pt;h&&(r=$t(e,1,0,f,l,d,h));let a=Qe()+l,p=a+f;ee(()=>Ae(e,!1,"start")),et(g=>{if(o){if(g>=p)return u(0,1),Ae(e,!1,"end"),--s.r||Y(s.c),!1;if(g>=a){let k=d((g-a)/f);u(1-k,k)}}return o})}return Ye(i)?Dt().then(()=>{i=i(),c()}):c(),{end(l){l&&i.tick&&i.tick(1,0),o&&(r&&Be(e,r),o=!1)}}}function ke(e){e&&e.c()}function re(e,t,n,i){let{fragment:o,on_mount:r,on_destroy:s,after_update:c}=e.$$;o&&o.m(t,n),i||ee(()=>{let l=r.map(Mt).filter(Ye);s?s.push(...l):Y(l),e.$$.on_mount=[]}),c.forEach(ee)}function se(e,t){let n=e.$$;n.fragment!==null&&(Y(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Zt(e,t){e.$$.dirty[0]===-1&&(ze.push(e),Wt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function De(e,t,n,i,o,r,s,c=[-1]){let l=nt;Ie(e);let f=e.$$={fragment:null,ctx:null,props:r,update:L,not_equal:o,bound:{},on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:{},dirty:c,skip_bound:!1,root:t.target||l.$$.root};s&&s(f.root);let d=!1;f.ctx=n?n(e,t.props||{},(u,h,...a)=>{let p=a.length?a[0]:h;return f.ctx&&o(f.ctx[u],f.ctx[u]=p)&&(!f.skip_bound&&f.bound[u]&&f.bound[u](p),d&&Zt(e,u)),h}):[],f.update(),d=!0,Y(f.before_update),f.fragment=i?i(f.ctx):!1,t.target&&(f.fragment&&f.fragment.c(),re(e,t.target,t.anchor,t.customElement),Ct()),Ie(l)}var ie=class{$destroy(){se(this,1),this.$destroy=L}$on(t,n){let i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{let o=i.indexOf(n);o!==-1&&i.splice(o,1)}}$set(t){this.$$set&&!Ot(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}};function it(e){let t=e-1;return t*t*t+1}function V(e,{delay:t=0,duration:n=400,easing:i=it,x:o=0,y:r=0,opacity:s=0}={}){let c=getComputedStyle(e),l=+c.opacity,f=c.transform==="none"?"":c.transform,d=l*(1-s);return{delay:t,duration:n,easing:i,css:(u,h)=>`
|
|
5
|
+
transform: ${f} translate(${(1-u)*o}px, ${(1-u)*r}px);
|
|
6
|
+
opacity: ${l-d*h}`}}var de=[];function ot(e,t=L){let n,i=new Set;function o(c){if(oe(e,c)&&(e=c,n)){let l=!de.length;for(let f of i)f[1](),de.push(f,e);if(l){for(let f=0;f<de.length;f+=2)de[f][0](de[f+1]);de.length=0}}}function r(c){o(c(e))}function s(c,l=L){let f=[c,l];return i.add(f),i.size===1&&(n=t(o)||L),c(e),()=>{i.delete(f),i.size===0&&(n(),n=null)}}return{set:o,update:r,subscribe:s}}function Ht(e,t){if(e===t||e!==e)return()=>e;let n=typeof e;if(Array.isArray(e)){let i=t.map((o,r)=>Ht(e[r],o));return o=>i.map(r=>r(o))}if(n==="number"){let i=t-e;return o=>e+o*i}}function _t(e,t={}){let n=ot(e),i,o=e;function r(s,c){if(e==null)return n.set(e=s),Promise.resolve();o=s;let l=i,f=!1,{delay:d=0,duration:u=400,easing:h=Ge,interpolate:a=Ht}=pt(pt({},t),c);if(u===0)return l&&(l.abort(),l=null),n.set(e=o),Promise.resolve();let p=Qe()+d,g;return i=et(k=>{if(k<p)return!0;f||(g=a(e,s),typeof u=="function"&&(u=u(e,s)),f=!0),l&&(l.abort(),l=null);let H=k-p;return H>u?(n.set(e=s),!1):(n.set(e=g(h(H/u))),!0)}),i.promise}return{set:r,update:(s,c)=>r(s(o,e),c),subscribe:n.subscribe}}var Ne=ot(0),qt=globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches,Ze=e=>({easing:it,duration:qt?0:e}),be=e=>!e.thumb||`url(${e.thumb})`,Me=(e,t)=>{if(t){typeof t=="string"&&(t=JSON.parse(t));for(let n in t)e.setAttribute(n,t[n])}};function bt(e){let t,n,i;return{c(){t=C("div"),t.innerHTML='<span class="bp-bar"></span><span class="bp-o"></span>',I(t,"class","bp-load"),E(t,"background-image",be(e[0]))},m(o,r){P(o,t,r),i=!0},p(o,r){r&1&&E(t,"background-image",be(o[0]))},i(o){i||(n&&n.end(1),i=!0)},o(o){o&&(n=_e(t,V,{duration:480})),i=!1},d(o){o&&S(t),o&&n&&n.end()}}}function kt(e){let t,n;return{c(){t=C("div"),I(t,"class","bp-load"),E(t,"background-image",be(e[0]))},m(i,o){P(i,t,o)},p(i,o){o&1&&E(t,"background-image",be(i[0]))},i(i){n||ee(()=>{n=St(t,V,{duration:480}),n.start()})},o:L,d(i){i&&S(t)}}}function Bt(e){let t,n,i=!e[1]&&bt(e),o=e[2]&&kt(e);return{c(){i&&i.c(),t=Ee(),o&&o.c(),n=Ee()},m(r,s){i&&i.m(r,s),P(r,t,s),o&&o.m(r,s),P(r,n,s)},p(r,[s]){r[1]?i&&(te(),$(i,1,1,()=>{i=null}),ne()):i?(i.p(r,s),s&2&&v(i,1)):(i=bt(r),i.c(),v(i,1),i.m(t.parentNode,t)),r[2]?o?(o.p(r,s),s&4&&v(o,1)):(o=kt(r),o.c(),v(o,1),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i(r){v(i),v(o)},o(r){$(i)},d(r){i&&i.d(r),r&&S(t),o&&o.d(r),r&&S(n)}}}function jt(e,t,n){let i;me(e,Ne,s=>n(2,i=s));let{activeItem:o}=t,{loaded:r}=t;return e.$$set=s=>{"activeItem"in s&&n(0,o=s.activeItem),"loaded"in s&&n(1,r=s.loaded)},[o,r,i]}var $e=class extends ie{constructor(t){super(),De(this,t,jt,Bt,oe,{activeItem:0,loaded:1})}};function yt(e){let t,n,i,o,r,s;return{c(){t=C("img"),I(t,"sizes",n=e[8].sizes||`${e[1]}px`),I(t,"alt",e[7].alt)},m(c,l){P(c,t,l),o=!0,r||(s=[Ce(e[21].call(null,t)),N(t,"error",e[27])],r=!0)},p(c,l){(!o||l[0]&2&&n!==(n=c[8].sizes||`${c[1]}px`))&&I(t,"sizes",n)},i(c){o||(i&&i.end(1),o=!0)},o(c){i=_e(t,V,{}),o=!1},d(c){c&&S(t),c&&i&&i.end(),r=!1,Y(s)}}}function wt(e){let t,n;return t=new $e({props:{activeItem:e[7],loaded:e[2]}}),{c(){ke(t.$$.fragment)},m(i,o){re(t,i,o),n=!0},p(i,o){let r={};o[0]&4&&(r.loaded=i[2]),t.$set(r)},i(i){n||(v(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){se(t,i)}}}function Jt(e){let t,n,i,o=`translate3d(${e[0][0]/-2+e[6][0]}px, ${e[0][1]/-2+e[6][1]}px, 0)`,r,s,c,l=e[2]&&yt(e),f=e[3]&&wt(e);return{c(){t=C("div"),n=C("div"),l&&l.c(),i=Ee(),f&&f.c(),I(n,"class","bp-img"),E(n,"width",e[0][0]+"px"),E(n,"height",e[0][1]+"px"),R(n,"bp-drag",e[4]),R(n,"bp-canzoom",e[11]>1&&e[0][0]<e[12]),E(n,"background-image",be(e[7])),E(n,"transform",o),I(t,"class","bp-img-wrap"),R(t,"bp-close",e[5])},m(d,u){P(d,t,u),ge(t,n),l&&l.m(n,null),ge(n,i),f&&f.m(n,null),r=!0,s||(c=[Ce(e[20].call(null,n)),N(t,"wheel",e[15]),N(t,"pointerdown",e[16]),N(t,"pointermove",e[17]),N(t,"pointerup",e[19]),N(t,"pointercancel",e[18])],s=!0)},p(d,u){d[2]?l?(l.p(d,u),u[0]&4&&v(l,1)):(l=yt(d),l.c(),v(l,1),l.m(n,i)):l&&(te(),$(l,1,1,()=>{l=null}),ne()),d[3]?f?(f.p(d,u),u[0]&8&&v(f,1)):(f=wt(d),f.c(),v(f,1),f.m(n,null)):f&&(te(),$(f,1,1,()=>{f=null}),ne()),(!r||u[0]&1)&&E(n,"width",d[0][0]+"px"),(!r||u[0]&1)&&E(n,"height",d[0][1]+"px"),(!r||u[0]&16)&&R(n,"bp-drag",d[4]),(!r||u[0]&6145)&&R(n,"bp-canzoom",d[11]>1&&d[0][0]<d[12]),u[0]&65&&o!==(o=`translate3d(${d[0][0]/-2+d[6][0]}px, ${d[0][1]/-2+d[6][1]}px, 0)`)&&E(n,"transform",o),(!r||u[0]&32)&&R(t,"bp-close",d[5])},i(d){r||(v(l),v(f),r=!0)},o(d){$(l),$(f),r=!1},d(d){d&&S(t),l&&l.d(),f&&f.d(),s=!1,Y(c)}}}function Kt(e,t,n){let i,o,r,s;me(e,Ne,m=>n(26,r=m));let{props:c}=t,{smallScreen:l}=t,{activeItem:f,opts:d,prev:u,next:h,zoomed:a,container:p}=c;me(e,a,m=>n(25,i=m));let g=f.maxZoom||d.maxZoom||10,k=c.calculateDimensions(f),H=k[0],X,y,W,Pe,j=0,D,J,le,ce,ye,fe,Se,G=+f.width,we=[],Q=new Map,K=_t(k,Ze(400));me(e,K,m=>n(0,s=m));let F=_t([0,0],Ze(400));me(e,F,m=>n(6,o=m));let ve=([m,z],M=s)=>{let w=(M[0]-p.w)/2,O=(M[1]-p.h)/2;return w<0?m=0:m>w?l?(m=D?w+(m-w)/10:w,m>w+20&&n(4,D=u())):m=w:m<-w&&(l?(m=D?-w-(-w-m)/10:-w,m<-w-20&&n(4,D=h())):m=-w),O<0?z=0:z>O?z=O:z<-O&&(z=-O),[m,z]};function ue(m=g,z){if(r)return;let M=k[0]*g,w=s[0]+s[0]*m,O=s[1]+s[1]*m;if(m>0)w>M&&(w=M,O=k[1]*g),w>G&&(w=G,O=+f.height);else if(w<k[0])return K.set(k),F.set([0,0]);let{x:B,y:Xe,width:rt,height:st}=Pe.getBoundingClientRect(),lt=z?z.clientX-B-rt/2:0,ct=z?z.clientY-Xe-st/2:0;B=-lt*(w/rt)+lt,Xe=-ct*(O/st)+ct;let ft=[w,O];K.set(ft).then(()=>{n(1,H=Math.round(Math.max(H,w)))}),F.set(ve([o[0]+B,o[1]+Xe],ft))}Object.defineProperty(f,"zoom",{configurable:!0,get:()=>i,set:m=>ue(m?g:-g)});let _=m=>{d.inline&&!i||(m.preventDefault(),ue(m.deltaY/-300,m))},b=m=>{m.button!==2&&(m.preventDefault(),n(4,D=!0),Q.set(m.pointerId,m),le=m.clientX,ce=m.clientY,ye=o[0],fe=o[1])},T=m=>{if(Q.size>1)return n(4,D=!1),d.noPinch?.(p.el)||A(m);if(!D)return;let z=m.clientX,M=m.clientY;J=we.push({x:z,y:M})>2,z=z-le,M=M-ce,i||(M<-90&&n(4,D=!d.noClose&&c.close()),Math.abs(M)<30&&(z>40&&n(4,D=u()),z<-40&&n(4,D=h()))),i&&J&&!r&&F.set(ve([ye+z,fe+M]),{duration:0})},A=m=>{let[z,M]=Q.set(m.pointerId,m).values(),w=z.clientX-M.clientX,O=z.clientY-M.clientY,B=Math.hypot(w,O);W=W||{clientX:(z.clientX+M.clientX)/2,clientY:(z.clientY+M.clientY)/2},ue(((j||B)-B)/-35,W),j=B},ae=m=>Q.delete(m.pointerId);function Z(m){if(ae(m),W&&(n(4,D=j=0),W=Q.size?W:null),!!D){if(n(4,D=!1),m.target===this&&!d.noClose)return c.close();if(J){let[z,M,w]=we.slice(-3),O=M.x-w.x,B=M.y-w.y;Math.hypot(O,B)>5&&F.set(ve([o[0]-(z.x-w.x)*5,o[1]-(z.y-w.y)*5]))}else d.onImageClick?.(p.el,f)||ue(i?-g:g,m);J=!1,we.length=0}}let x=m=>{Pe=m,c.setResizeFunc(()=>{n(24,k=c.calculateDimensions(f)),(d.inline||!l)&&(K.set(k),F.set([0,0]))}),c.loadImage(f).then(()=>{n(2,X=!0),c.preloadNext()}),setTimeout(()=>{n(3,y=!X)},250)},q=m=>{Me(m,f.attr),m.srcset=f.img},He=m=>d.onError?.(p,f,m);return e.$$set=m=>{"smallScreen"in m&&n(23,l=m.smallScreen)},e.$$.update=()=>{if(e.$$.dirty[0]&16777217&&a.set(s[0]-10>k[0]),e.$$.dirty[0]&117440512&&r&&i&&!d.intro){let m=Ze(480);F.set([0,0],m),K.set(k,m),n(5,Se=!0)}},[s,H,X,y,D,Se,o,f,d,a,p,g,G,K,F,_,b,T,ae,Z,x,q,c,l,k,i,r,He]}var Je=class extends ie{constructor(t){super(),De(this,t,Kt,Jt,oe,{props:22,smallScreen:23},null,[-1,-1])}};function Ut(e){let t,n,i,o,r,s;return i=new $e({props:{activeItem:e[2],loaded:e[0]}}),{c(){t=C("div"),n=C("iframe"),ke(i.$$.fragment),I(n,"allow","autoplay; fullscreen"),I(n,"title",e[2].title),I(t,"class","bp-if"),E(t,"width",e[1][0]+"px"),E(t,"height",e[1][1]+"px")},m(c,l){P(c,t,l),ge(t,n),re(i,t,null),o=!0,r||(s=[Ce(e[3].call(null,n)),N(n,"load",e[5])],r=!0)},p(c,[l]){let f={};l&1&&(f.loaded=c[0]),i.$set(f),(!o||l&2)&&E(t,"width",c[1][0]+"px"),(!o||l&2)&&E(t,"height",c[1][1]+"px")},i(c){o||(v(i.$$.fragment,c),o=!0)},o(c){$(i.$$.fragment,c),o=!1},d(c){c&&S(t),se(i),r=!1,Y(s)}}}function Vt(e,t,n){let{props:i}=t,o,r,{activeItem:s}=i,c=()=>n(1,r=i.calculateDimensions(s));return c(),i.setResizeFunc(c),[o,r,s,d=>{Me(d,s.attr),d.src=s.iframe},i,()=>n(0,o=!0)]}var Ke=class extends ie{constructor(t){super(),De(this,t,Vt,Ut,oe,{props:4})}};function Gt(e){let t,n,i,o,r;return n=new $e({props:{activeItem:e[2],loaded:e[0]}}),{c(){t=C("div"),ke(n.$$.fragment),I(t,"class","bp-vid"),E(t,"width",e[1][0]+"px"),E(t,"height",e[1][1]+"px"),E(t,"background-image",be(e[2]))},m(s,c){P(s,t,c),re(n,t,null),i=!0,o||(r=Ce(e[3].call(null,t)),o=!0)},p(s,[c]){let l={};c&1&&(l.loaded=s[0]),n.$set(l),(!i||c&2)&&E(t,"width",s[1][0]+"px"),(!i||c&2)&&E(t,"height",s[1][1]+"px")},i(s){i||(v(n.$$.fragment,s),i=!0)},o(s){$(n.$$.fragment,s),i=!1},d(s){s&&S(t),se(n),o=!1,r()}}}function Qt(e,t,n){let{props:i}=t,o,r,{activeItem:s,opts:c,container:l}=i,f=()=>n(1,r=i.calculateDimensions(s));return f(),i.setResizeFunc(f),[o,r,s,u=>{let h,a=(p,g)=>{Array.isArray(g)||(g=JSON.parse(g));for(let k of g){h||(h=document.createElement(k.type?.includes("audio")?"audio":"video"),Me(h,{controls:!0,autoplay:!0,playsinline:!0,tabindex:"0"}),Me(h,s.attr));let H=document.createElement(p);Me(H,k),p=="source"&&(H.onError=X=>c.onError?.(l,s,X)),h.append(H)}};a("source",s.sources),a("track",s.tracks||[]),h.oncanplay=()=>n(0,o=!0),u.append(h)},i]}var Ue=class extends ie{constructor(t){super(),De(this,t,Qt,Gt,oe,{props:4})}};function vt(e){let t,n,i,o=e[6].i,r,s,c,l,f,d,u=zt(e),h=e[0].length>1&&It(e);return{c(){t=C("div"),n=C("div"),u.c(),r=C("div"),s=C("button"),h&&h.c(),I(s,"class","bp-x"),I(s,"title","Close"),I(s,"aria-label","Close"),I(r,"class","bp-controls"),I(t,"class","bp-wrap"),R(t,"bp-zoomed",e[10]),R(t,"bp-inline",e[8]),R(t,"bp-small",e[7]),R(t,"bp-noclose",e[5].noClose)},m(a,p){P(a,t,p),ge(t,n),u.m(t,null),ge(t,r),ge(r,s),h&&h.m(r,null),l=!0,f||(d=[N(s,"click",e[1]),Ce(e[14].call(null,t))],f=!0)},p(a,p){p[0]&64&&oe(o,o=a[6].i)?(te(),$(u,1,1,L),ne(),u=zt(a),u.c(),v(u,1),u.m(t,r)):u.p(a,p),a[0].length>1?h?h.p(a,p):(h=It(a),h.c(),h.m(r,null)):h&&(h.d(1),h=null),(!l||p[0]&1024)&&R(t,"bp-zoomed",a[10]),(!l||p[0]&256)&&R(t,"bp-inline",a[8]),(!l||p[0]&128)&&R(t,"bp-small",a[7]),(!l||p[0]&32)&&R(t,"bp-noclose",a[5].noClose)},i(a){l||(i&&i.end(1),v(u),c&&c.end(1),l=!0)},o(a){a&&(i=_e(n,V,{duration:480})),$(u),a&&(c=_e(r,V,{})),l=!1},d(a){a&&S(t),a&&i&&i.end(),u.d(a),h&&h.d(),a&&c&&c.end(),f=!1,Y(d)}}}function xt(e){let t,n=(e[6].html??e[6].element.outerHTML)+"";return{c(){t=C("div"),I(t,"class","bp-html")},m(i,o){P(i,t,o),t.innerHTML=n},p(i,o){o[0]&64&&n!==(n=(i[6].html??i[6].element.outerHTML)+"")&&(t.innerHTML=n)},i:L,o:L,d(i){i&&S(t)}}}function en(e){let t,n;return t=new Ke({props:{props:e[13]()}}),{c(){ke(t.$$.fragment)},m(i,o){re(t,i,o),n=!0},p:L,i(i){n||(v(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){se(t,i)}}}function tn(e){let t,n;return t=new Ue({props:{props:e[13]()}}),{c(){ke(t.$$.fragment)},m(i,o){re(t,i,o),n=!0},p:L,i(i){n||(v(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){se(t,i)}}}function nn(e){let t,n;return t=new Je({props:{props:e[13](),smallScreen:e[7]}}),{c(){ke(t.$$.fragment)},m(i,o){re(t,i,o),n=!0},p(i,o){let r={};o[0]&128&&(r.smallScreen=i[7]),t.$set(r)},i(i){n||(v(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){se(t,i)}}}function Tt(e){let t,n=e[6].caption+"",i,o;return{c(){t=C("div"),I(t,"class","bp-cap")},m(r,s){P(r,t,s),t.innerHTML=n,o=!0},p(r,s){(!o||s[0]&64)&&n!==(n=r[6].caption+"")&&(t.innerHTML=n)},i(r){o||(i&&i.end(1),o=!0)},o(r){i=_e(t,V,{duration:200}),o=!1},d(r){r&&S(t),r&&i&&i.end()}}}function zt(e){let t,n,i,o,r,s,c,l,f,d=[nn,tn,en,xt],u=[];function h(p,g){return p[6].img?0:p[6].sources?1:p[6].iframe?2:3}n=h(e),i=u[n]=d[n](e);let a=e[6].caption&&Tt(e);return{c(){t=C("div"),i.c(),a&&a.c(),s=Ee(),I(t,"class","bp-inner")},m(p,g){P(p,t,g),u[n].m(t,null),a&&a.m(p,g),P(p,s,g),c=!0,l||(f=[N(t,"pointerdown",e[20]),N(t,"pointerup",e[21])],l=!0)},p(p,g){let k=n;n=h(p),n===k?u[n].p(p,g):(te(),$(u[k],1,1,()=>{u[k]=null}),ne(),i=u[n],i?i.p(p,g):(i=u[n]=d[n](p),i.c()),v(i,1),i.m(t,null)),p[6].caption?a?(a.p(p,g),g[0]&64&&v(a,1)):(a=Tt(p),a.c(),v(a,1),a.m(s.parentNode,s)):a&&(te(),$(a,1,1,()=>{a=null}),ne())},i(p){c||(v(i),ee(()=>{r&&r.end(1),o=St(t,e[12],!0),o.start()}),v(a),c=!0)},o(p){$(i),o&&o.invalidate(),r=_e(t,e[12],!1),$(a),c=!1},d(p){p&&S(t),u[n].d(),p&&r&&r.end(),a&&a.d(p),p&&S(s),l=!1,Y(f)}}}function It(e){let t,n=`${e[4]+1} / ${e[0].length}`,i,o,r,s;return{c(){t=C("div"),i=C("button"),o=C("button"),I(t,"class","bp-count"),I(i,"class","bp-prev"),I(i,"title","Previous"),I(i,"aria-label","Previous"),I(o,"class","bp-next"),I(o,"title","Next"),I(o,"aria-label","Next")},m(c,l){P(c,t,l),t.innerHTML=n,P(c,i,l),P(c,o,l),r||(s=[N(i,"click",e[2]),N(o,"click",e[3])],r=!0)},p(c,l){l[0]&17&&n!==(n=`${c[4]+1} / ${c[0].length}`)&&(t.innerHTML=n)},d(c){c&&S(t),c&&S(i),c&&S(o),r=!1,Y(s)}}}function on(e){let t,n,i=e[0]&&vt(e);return{c(){i&&i.c(),t=Ee()},m(o,r){i&&i.m(o,r),P(o,t,r),n=!0},p(o,r){o[0]?i?(i.p(o,r),r[0]&1&&v(i,1)):(i=vt(o),i.c(),v(i,1),i.m(t.parentNode,t)):i&&(te(),$(i,1,1,()=>{i=null}),ne())},i(o){n||(v(i),n=!0)},o(o){$(i),n=!1},d(o){i&&i.d(o),o&&S(t)}}}function rn(e,t,n){let i,{items:o=void 0}=t,{target:r=void 0}=t,s=document.documentElement,c,l,f,d,u,h,a,p,g,k=()=>!g.img&&!g.sources&&!g.iframe,H,X=_=>H=_,y={},W=ot(0);me(e,W,_=>n(10,i=_));let Pe=_=>{n(5,l=_),n(8,h=l.inline),!h&&s.scrollHeight>s.clientHeight&&s.classList.add("bp-lock"),d=document.activeElement,n(19,y.w=r.offsetWidth,y),n(19,y.h=r===document.body?globalThis.innerHeight:r.clientHeight,y),n(7,u=y.w<769),n(4,c=l.position||0),n(0,o=[]);for(let b=0;b<(l.items.length||1);b++){let T=l.items[b]||l.items;"dataset"in T?o.push(We({element:T,i:b},T.dataset)):(T.i=b,o.push(T),T=T.element),l.el&&l.el===T&&n(4,c=b)}},j=()=>{l.onClose?.(y.el,g),Ne.set(!0),n(0,o=null),d?.focus({preventScroll:!0})},D=()=>le(c-1),J=()=>le(c+1),le=_=>{a=_-c,n(4,c=ce(_))},ce=_=>(_+o.length)%o.length,ye=_=>{let{key:b,shiftKey:T}=_;if(b==="Escape")!l.noClose&&j();else if(b==="ArrowRight")J();else if(b==="ArrowLeft")D();else if(b==="Tab"){let{activeElement:A}=document;if(T||!A.controls){_.preventDefault();let{focusWrap:ae=y.el}=l,Z=[...ae.querySelectorAll("*")].filter(q=>q.tabIndex>=0),x=Z.indexOf(A);x+=Z.length+(T?-1:1),Z[x%Z.length].focus()}}},fe=({width:_=1920,height:b=1080})=>{let{scale:T=.99}=l,A=Math.min(1,y.w/_*T,y.h/b*T);return[Math.round(_*A),Math.round(b*A)]},Se=()=>{if(o){let _=o[ce(c+1)],b=o[ce(c-1)];!_.preload&&G(_),!b.preload&&G(b)}},G=_=>{if(_.img){let b=document.createElement("img");return b.sizes=l.sizes||`${fe(_)[0]}px`,b.srcset=_.img,_.preload=!0,b.decode().catch(T=>{})}},we=(_,b)=>!f||!o?(n(18,f=b),l.intro?V(_,{y:b?10:-10}):Q(_)):V(_,{x:(a>0?20:-20)*(b?1:-1),duration:250}),Q=_=>{let b;if(k()){let q=_.firstChild.firstChild;b=[q.clientWidth,q.clientHeight]}else b=fe(g);let T=(g.element||d).getBoundingClientRect(),A=T.left-(y.w-T.width)/2,ae=T.top-(y.h-T.height)/2,Z=T.width/b[0],x=T.height/b[1];return{duration:480,easing:it,css:(q,He)=>`transform:translate3d(${A*He}px, ${ae*He}px, 0) scale3d(${Z+q*(1-Z)}, ${x+q*(1-x)}, 1)`}},K=()=>({activeItem:g,calculateDimensions:fe,loadImage:G,preloadNext:Se,opts:l,prev:D,next:J,close:j,setResizeFunc:X,zoomed:W,container:y}),F=_=>{n(19,y.el=_,y);let b;l.onOpen?.(y.el,g),h||globalThis.addEventListener("keydown",ye);let T=new ResizeObserver(A=>{b&&(n(19,y.w=A[0].contentRect.width,y),n(19,y.h=A[0].contentRect.height,y),n(7,u=y.w<769),k()||H?.(),l.onResize?.(y.el,g)),b=!0});return T.observe(_),{destroy(){T.disconnect(),globalThis.removeEventListener("keydown",ye),Ne.set(!1),s.classList.remove("bp-lock"),l.onClosed?.()}}},ve=_=>n(9,p=_.target),ue=function(_){_.button!==2&&_.target===this&&p===this&&!l.noClose&&j()};return e.$$set=_=>{"items"in _&&n(0,o=_.items),"target"in _&&n(15,r=_.target)},e.$$.update=()=>{e.$$.dirty[0]&786545&&o&&(n(6,g=o[c]),f&&l.onUpdate?.(y.el,g))},[o,j,D,J,c,l,g,u,h,p,i,W,we,K,F,r,Pe,le,f,y,ve,ue]}var Ve=class extends ie{constructor(t){super(),De(this,t,rn,on,oe,{items:0,target:15,open:16,close:1,prev:2,next:3,setPosition:17},null,[-1,-1])}get items(){return this.$$.ctx[0]}get target(){return this.$$.ctx[15]}get open(){return this.$$.ctx[16]}get close(){return this.$$.ctx[1]}get prev(){return this.$$.ctx[2]}get next(){return this.$$.ctx[3]}get setPosition(){return this.$$.ctx[17]}};function Lt(e){return new Ve(ut(We({},e),{props:e}))}var sn=Lt({target:document.body}),dn=(()=>{let t=class t{constructor(){}openBiggerPicture(i,o){return at(this,null,function*(){i.preventDefault();try{let r=yield mt.getImageInfo(o);sn.open({items:[r],intro:"fadeup"})}catch(r){alert(r)}})}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();export{dn as a};
|