dealpos 11.4.9 → 11.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/POS/{105.2a87ed12948fec7d.js → 105.ff35a79250817a16.js} +1 -1
- package/POS/{1398.e7b3532aaf504a24.js → 1398.393a8e1a59cdae83.js} +1 -1
- package/POS/1754.a020b7846db7b2ee.js +1 -0
- package/POS/1825.19640ab73e051f50.js +1 -0
- package/POS/{1987.c2b611d6a6362db8.js → 1987.922258e27e81c548.js} +1 -1
- package/POS/2141.a1fb25ba7b9b4eae.js +1 -0
- package/POS/{2545.d4d753bcae491606.js → 2545.bc9c23bb1300792f.js} +1 -1
- package/POS/3002.f1170b15c0bafc69.js +1 -0
- package/POS/304.30c02cf3ff048ef8.js +1 -0
- package/POS/{3075.782df926923e9086.js → 3075.9e8731b24e75f656.js} +1 -1
- package/POS/3295.48632c6faeb4a4ae.js +1 -0
- package/POS/{3411.a2c1e9a7fcfaf0be.js → 3411.87f8bf0e048c1748.js} +1 -1
- package/POS/{3415.aa76c80d9bd72c08.js → 3415.99718dcef89fa8ab.js} +1 -1
- package/POS/{3632.e92168e38039086d.js → 3632.d02bbf0cd4a556c5.js} +1 -1
- package/POS/3651.f941043ec7b17909.js +1 -0
- package/POS/3751.98e9760c61acfa2c.js +1 -0
- package/POS/3753.3926e099f63f2939.js +1 -0
- package/POS/{3948.3ad410246f1d7f4c.js → 3948.af991dbadc8a8412.js} +1 -1
- package/POS/{3987.dca6af626880d9ff.js → 3987.dd4c696ab2580a51.js} +1 -1
- package/POS/4020.a4e979d0135f00e8.js +1 -0
- package/POS/{4136.2a991181aec7bf90.js → 4136.6382afad99bd79ad.js} +1 -1
- package/POS/4749.ab2b29c17b61ec3a.js +1 -0
- package/POS/4806.39e1f045e3ae4f7b.js +1 -0
- package/POS/4927.8c3568e13a52188e.js +1 -0
- package/POS/5263.a39c24ad0942f34b.js +1 -0
- package/POS/5533.6a0e7e1d810c2e6d.js +1 -0
- package/POS/576.6503015aa8ef7969.js +1 -0
- package/POS/585.6cfea3baa231d012.js +1 -0
- package/POS/5964.8fc4a089606a78a4.js +1 -0
- package/POS/{6262.c4961f8f00a622d1.js → 6262.1055edde3d052af7.js} +1 -1
- package/POS/6268.078f61a228eb52bb.js +1 -0
- package/POS/6485.bd685625bbe53e3f.js +1 -0
- package/POS/6553.4dd2427213ac04fb.js +1 -0
- package/POS/6688.02f7a226b1e447ef.js +1 -0
- package/POS/8126.4c0c2af56ca7e2f1.js +1 -0
- package/POS/8589.468ae73ed1e35d12.js +1 -0
- package/POS/9783.f0e789954789145c.js +1 -0
- package/POS/9951.24947bc232b035f3.js +1 -0
- package/POS/9979.2ada6e2a16d41f5a.js +1 -0
- package/POS/9997.406794cab07be976.js +1 -0
- package/POS/common.539378a85b39f679.js +1 -0
- package/POS/index.html +2 -2
- package/POS/main.d7c7ed3f886029fb.js +1 -0
- package/POS/runtime.ded9261dc0e20ba5.js +1 -0
- package/package.json +1 -1
- package/POS/1390.c60538f2a9c562d7.js +0 -1
- package/POS/1825.bcd8447bc11e104d.js +0 -1
- package/POS/2141.0db13de0b0197a18.js +0 -1
- package/POS/2501.1ff5a84a99d18739.js +0 -1
- package/POS/3002.680bfbadfb9f4d82.js +0 -1
- package/POS/3189.39fadfd3f9756a52.js +0 -1
- package/POS/3651.13ba05e13ee990b7.js +0 -1
- package/POS/3751.75719327c7d41120.js +0 -1
- package/POS/3753.04ce8e35c3c80af8.js +0 -1
- package/POS/4181.93ca4c68d6514bab.js +0 -1
- package/POS/4806.cfa05b2b6a53f205.js +0 -1
- package/POS/4860.6efeec62f1b719d5.js +0 -1
- package/POS/4927.a3b5f9d20c5067f9.js +0 -1
- package/POS/5263.bfb371f13350baa3.js +0 -1
- package/POS/585.2aad4e4003f6d843.js +0 -1
- package/POS/6268.31c60a33e4fc3b75.js +0 -1
- package/POS/6343.9464bea271fea187.js +0 -1
- package/POS/6485.03ea6e66923011d5.js +0 -1
- package/POS/6553.3e954f11b5540a4e.js +0 -1
- package/POS/7729.6a0737d219561998.js +0 -1
- package/POS/8126.fbef688e6bc352d6.js +0 -1
- package/POS/8589.d71c245204be98e4.js +0 -1
- package/POS/9649.82b95afc1fb92d93.js +0 -1
- package/POS/9951.b8d2aa2dd2a31266.js +0 -1
- package/POS/9997.f87499fcf6b19f9f.js +0 -1
- package/POS/common.08e777be63581517.js +0 -1
- package/POS/main.407271e99c29efd2.js +0 -1
- package/POS/runtime.3182b7b6c9562973.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[105],{22863:(W,R,g)=>{g.d(R,{M:()=>D});var l=g(22313),P=g(18505);class D{constructor(v){this.httpService=v,this.menuData={T:null,N:null,H:null};let A=this.GetRequestPayload();this.menuData$=v.post("/api/Authentication/PageData",JSON.stringify(A)).pipe((0,P.b)(H=>{this.menuData=H,new l.Dx(document).setTitle(this.menuData.T)}))}GetRequestPayload(){let v=window.location.href;return v=v.split("menu/")[1],v=v.split(";")[0],{Url:v}}}},96700:(W,R,g)=>{g.d(R,{n:()=>l});var l=(()=>{return(P=l||(l={})).Success="Success",P.Info="Info",P.Warning="Warning",P.Error="Error",l;var P})()},53737:(W,R,g)=>{g.d(R,{Zt:()=>Bt,Wj:()=>zt,Fd:()=>At,_t:()=>Vt,bA:()=>gt});var l=g(5e3),P=g(69808),D=g(70925),p=g(63191),v=g(15664),A=g(34986),H=g(82805),_=g(77579),E=g(50727),St=g(66406),j=g(68306),J=g(56451),T=g(82722),z=g(68675),yt=g(54004),Q=g(95698),Rt=g(18505),Et=g(63900),F=g(46469),X=g(50226);function G(r,e,t){for(let i in e)if(e.hasOwnProperty(i)){const s=e[i];s?r.setProperty(i,s,(null==t?void 0:t.has(i))?"important":""):r.removeProperty(i)}return r}function S(r,e){const t=e?"":"none";G(r.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function q(r,e,t){G(r.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function k(r,e){return e&&"none"!=e?r+" "+e:r}function tt(r){const e=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*e}function N(r,e){return r.getPropertyValue(e).split(",").map(i=>i.trim())}function B(r){const e=r.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function V(r,e,t){const{top:i,bottom:s,left:n,right:o}=r;return t>=i&&t<=s&&e>=n&&e<=o}function C(r,e,t){r.top+=e,r.bottom=r.top+r.height,r.left+=t,r.right=r.left+r.width}function et(r,e,t,i){const{top:s,right:n,bottom:o,left:a,width:h,height:c}=r,d=h*e,u=c*e;return i>s-u&&i<o+u&&t>a-d&&t<n+d}class it{constructor(e){this._document=e,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:B(t)})})}handleScroll(e){const t=(0,D.sA)(e),i=this.positions.get(t);if(!i)return null;const s=i.scrollPosition;let n,o;if(t===this._document){const c=this.getViewportScrollPosition();n=c.top,o=c.left}else n=t.scrollTop,o=t.scrollLeft;const a=s.top-n,h=s.left-o;return this.positions.forEach((c,d)=>{c.clientRect&&t!==d&&t.contains(d)&&C(c.clientRect,a,h)}),s.top=n,s.left=o,{top:a,left:h}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function st(r){const e=r.cloneNode(!0),t=e.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s<t.length;s++)t[s].removeAttribute("id");return"canvas"===i?ot(r,e):("input"===i||"select"===i||"textarea"===i)&&rt(r,e),nt("canvas",r,e,ot),nt("input, textarea, select",r,e,rt),e}function nt(r,e,t,i){const s=e.querySelectorAll(r);if(s.length){const n=t.querySelectorAll(r);for(let o=0;o<s.length;o++)i(s[o],n[o])}}let xt=0;function rt(r,e){"file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`mat-clone-${e.name}-${xt++}`)}function ot(r,e){const t=e.getContext("2d");if(t)try{t.drawImage(r,0,0)}catch(i){}}const at=(0,D.i$)({passive:!0}),L=(0,D.i$)({passive:!1}),Y=new Set(["position"]);class Tt{constructor(e,t,i,s,n,o){this._config=t,this._document=i,this._ngZone=s,this._viewportRuler=n,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new _.x,this._pointerMoveSubscription=E.w0.EMPTY,this._pointerUpSubscription=E.w0.EMPTY,this._scrollSubscription=E.w0.EMPTY,this._resizeSubscription=E.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new _.x,this.started=new _.x,this.released=new _.x,this.ended=new _.x,this.entered=new _.x,this.exited=new _.x,this.dropped=new _.x,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const h=this._handles.find(c=>a.target&&(a.target===c||c.contains(a.target)));h&&!this._disabledHandles.has(h)&&!this.disabled&&this._initializeDragSequence(h,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const h=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(h.x-this._pickupPositionOnPage.x)+Math.abs(h.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),w=this._dropContainer;if(!b)return void this._endDragSequence(a);(!w||!w.isDragging()&&!w.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(h);if(this._hasMoved=!0,this._lastKnownPointerPosition=h,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,h);else{const d=this._activeTransform;d.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,d.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new it(i),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=(0,p.Ig)(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(i=>S(i,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>(0,p.fI)(i)),this._handles.forEach(i=>S(i,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=(0,p.fI)(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,L),t.addEventListener("touchstart",this._pointerDown,at),t.addEventListener("dragstart",dt,L)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?(0,p.fI)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){var e,t;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(t=this._anchor)||void 0===t||t.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),S(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),S(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var e,t;null===(e=this._preview)||void 0===e||e.remove(),null===(t=this._previewRef)||void 0===t||t.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var e,t;null===(e=this._placeholder)||void 0===e||e.remove(),null===(t=this._placeholderRef)||void 0===t||t.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){x(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const i=this._rootElement,s=i.parentNode,n=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();s.insertBefore(o,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),q(i,!1,Y),this._document.body.appendChild(s.replaceChild(n,i)),this._getPreviewInsertionPoint(s,a).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const i=this.isDragging(),s=x(t),n=!s&&0!==t.button,o=this._rootElement,a=(0,D.sA)(t),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=s?(0,v.yG)(t):(0,v.X6)(t);if(a&&a.draggable&&"mousedown"===t.type&&t.preventDefault(),i||n||h||c)return;if(this._handles.length){const f=o.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=B(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){q(this._rootElement,!0,Y),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const t=this._dropContainer,i=t.getItemIndex(this),s=this._getPointerPositionOnPage(e),n=this._getDragDistance(s),o=t._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:n,dropPoint:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:n,dropPoint:s}),t.drop(this,i,this._initialIndex,this._initialContainer,o,n,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:s}){let n=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=n,this._dropContainer.enter(this,e,t,n===this._initialContainer&&n.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:n,currentIndex:n.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;let s;if(i&&e){const n=e.matchSize?this._rootElement.getBoundingClientRect():null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),s=ht(o,this._document),this._previewRef=o,e.matchSize?ct(s,n):s.style.transform=O(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const n=this._rootElement;s=st(n),ct(s,n.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return G(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Y),S(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(n=>s.classList.add(n)):s.classList.add(t)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=function Ct(r){const e=getComputedStyle(r),t=N(e,"transition-property"),i=t.find(a=>"transform"===a||"all"===a);if(!i)return 0;const s=t.indexOf(i),n=N(e,"transition-duration"),o=N(e,"transition-delay");return tt(n[s])+tt(o[s])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const s=o=>{var a;(!o||(0,D.sA)(o)===this._preview&&"transform"===o.propertyName)&&(null===(a=this._preview)||void 0===a||a.removeEventListener("transitionend",s),i(),clearTimeout(n))},n=setTimeout(s,1.5*t);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=ht(this._placeholderRef,this._document)):i=st(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t){const i=this._rootElement.getBoundingClientRect(),s=e===this._rootElement?null:e,n=s?s.getBoundingClientRect():i,o=x(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:n.left-i.left+(o.pageX-n.left-a.left),y:n.top-i.top+(o.pageY-n.top-a.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=x(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,s=i.pageX-t.left,n=i.pageY-t.top;if(this._ownerSVGElement){const o=this._ownerSVGElement.getScreenCTM();if(o){const a=this._ownerSVGElement.createSVGPoint();return a.x=s,a.y=n,a.matrixTransform(o.inverse())}}return{x:s,y:n}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:s}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:n,y:o}=this._pickupPositionInElement,a=this._boundaryRect,{width:h,height:c}=this._getPreviewRect(),d=a.top+o,u=a.bottom-(c-o);i=lt(i,a.left+n,a.right-(h-n)),s=lt(s,d,u)}return{x:i,y:s}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,s=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-n.x),a=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(s.x=t>n.x?1:-1,n.x=t),a>this._config.pointerDirectionChangeThreshold&&(s.y=i>n.y?1:-1,n.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,S(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,L),e.removeEventListener("touchstart",this._pointerDown,at),e.removeEventListener("dragstart",dt,L)}_applyRootElementTransform(e,t){const i=O(e,t),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=k(i,this._initialTransform)}_applyPreviewTransform(e,t){var i;const s=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,n=O(e,t);this._preview.style.transform=k(n,s)}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===s.width&&0===s.height)return;const n=i.left-s.left,o=s.right-i.right,a=i.top-s.top,h=s.bottom-i.bottom;i.width>s.width?(n>0&&(e+=n),o>0&&(e-=o)):e=0,i.height>s.height?(a>0&&(t+=a),h>0&&(t-=h)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:x(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const i=(0,D.sA)(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&C(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var e;return(null===(e=this._parentPositions.positions.get(this._document))||void 0===e?void 0:e.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,D.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){const s=this._document;return t||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,p.fI)(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}}function O(r,e){return`translate3d(${Math.round(r)}px, ${Math.round(e)}px, 0)`}function lt(r,e,t){return Math.max(e,Math.min(t,r))}function x(r){return"t"===r.type[0]}function ht(r,e){const t=r.rootNodes;if(1===t.length&&t[0].nodeType===e.ELEMENT_NODE)return t[0];const i=e.createElement("div");return t.forEach(s=>i.appendChild(s)),i}function ct(r,e){r.style.width=`${e.width}px`,r.style.height=`${e.height}px`,r.style.transform=O(e.left,e.top)}function dt(r){r.preventDefault()}function gt(r,e,t){const i=I(e,r.length-1),s=I(t,r.length-1);if(i===s)return;const n=r[i],o=s<i?-1:1;for(let a=i;a!==s;a+=o)r[a]=r[a+o];r[s]=n}function I(r,e){return Math.max(0,Math.min(e,r))}class kt{constructor(e,t,i,s,n){this._dragDropRegistry=t,this._ngZone=s,this._viewportRuler=n,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new _.x,this.entered=new _.x,this.exited=new _.x,this.dropped=new _.x,this.sorted=new _.x,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=E.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new _.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function $(r=0,e=A.z){return r<0&&(r=0),(0,H.H)(r,r,e)}(0,St.Z).pipe((0,T.R)(this._stopScrollTimers)).subscribe(()=>{const o=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?o.scrollBy(0,-a):2===this._verticalScrollDirection&&o.scrollBy(0,a),1===this._horizontalScrollDirection?o.scrollBy(-a,0):2===this._horizontalScrollDirection&&o.scrollBy(a,0)})},this.element=(0,p.fI)(e),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new it(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,s){let n;this._draggingStarted(),null==s?(n=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===n&&(n=this._getItemIndexFromPointerPosition(e,t,i))):n=s;const o=this._activeDraggables,a=o.indexOf(e),h=e.getPlaceholderElement();let c=o[n];if(c===e&&(c=o[n+1]),!c&&(null==n||-1===n||n<o.length-1)&&this._shouldEnterAsFirstChild(t,i)&&(c=o[0]),a>-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const d=c.getRootElement();d.parentElement.insertBefore(h,d),o.splice(n,0,e)}else(0,p.fI)(this.element).appendChild(h),o.push(e);h.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,s,n,o,a){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:s,isPointerOverContainer:n,distance:o,dropPoint:a})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(t.filter(s=>s.isDragging()).every(s=>-1===e.indexOf(s))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=(0,p.fI)(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,s){if(this.sortingDisabled||!this._clientRect||!et(this._clientRect,.05,t,i))return;const n=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,i,s);if(-1===o&&n.length>0)return;const a="horizontal"===this._orientation,h=n.findIndex(m=>m.drag===e),c=n[o],u=c.clientRect,f=h>o?1:-1,b=this._getItemOffsetPx(n[h].clientRect,u,f),w=this._getSiblingOffsetPx(h,n,f),y=n.slice();gt(n,h,o),this.sorted.next({previousIndex:h,currentIndex:o,container:this,item:e}),n.forEach((m,Yt)=>{if(y[Yt]===m)return;const bt=m.drag===e,U=bt?b:w,wt=bt?e.getPlaceholderElement():m.drag.getRootElement();m.offset+=U,a?(wt.style.transform=k(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),C(m.clientRect,0,U)):(wt.style.transform=k(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),C(m.clientRect,U,0))}),this._previousSwap.overlaps=V(u,t,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?s.x:s.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,s=0,n=0;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||i||et(o.clientRect,.05,e,t)&&([s,n]=function Lt(r,e,t,i){const s=ut(e,i),n=ft(e,t);let o=0,a=0;if(s){const h=r.scrollTop;1===s?h>0&&(o=1):r.scrollHeight-h>r.clientHeight&&(o=2)}if(n){const h=r.scrollLeft;1===n?h>0&&(a=1):r.scrollWidth-h>r.clientWidth&&(a=2)}return[o,a]}(a,o.clientRect,e,t),(s||n)&&(i=a))}),!s&&!n){const{width:o,height:a}=this._viewportRuler.getViewportSize(),h={width:o,height:a,top:0,right:o,bottom:a,left:0};s=ut(h,t),n=ft(h,e),i=window}i&&(s!==this._verticalScrollDirection||n!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=n,this._scrollNode=i,(s||n)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=(0,p.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=(0,p.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:B(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const e=(0,p.fI)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var i;const s=t.getRootElement();if(s){const n=null===(i=this._itemPositions.find(o=>o.drag===t))||void 0===i?void 0:i.initialTransform;s.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,i){const s="horizontal"===this._orientation,n=t[e].clientRect,o=t[e+-1*i];let a=n[s?"width":"height"]*i;if(o){const h=s?"left":"top",c=s?"right":"bottom";-1===i?a-=o.clientRect[h]-n[c]:a+=n[h]-o.clientRect[c]}return a}_getItemOffsetPx(e,t,i){const s="horizontal"===this._orientation;let n=s?t.left-e.left:t.top-e.top;return-1===i&&(n+=s?t.width-e.width:t.height-e.height),n}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,s="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const o=i[i.length-1].clientRect;return s?e>=o.right:t>=o.bottom}{const o=i[0].clientRect;return s?e<=o.left:t<=o.top}}_getItemIndexFromPointerPosition(e,t,i,s){const n="horizontal"===this._orientation,o=this._itemPositions.findIndex(({drag:a,clientRect:h})=>{if(a===e)return!1;if(s){const c=n?s.x:s.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return n?t>=Math.floor(h.left)&&t<Math.floor(h.right):i>=Math.floor(h.top)&&i<Math.floor(h.bottom)});return-1!==o&&this.sortPredicate(o,e,this)?o:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(e,t){return null!=this._clientRect&&V(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(s=>s._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._clientRect||!V(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;const s=this._getShadowRoot().elementFromPoint(t,i);if(!s)return!1;const n=(0,p.fI)(this.element);return s===n||n.contains(s)}_startReceiving(e,t){const i=this._activeSiblings;!i.has(e)&&t.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:i})=>{C(i,t.top,t.left)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=(0,D.kV)((0,p.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function ut(r,e){const{top:t,bottom:i,height:s}=r,n=.05*s;return e>=t-n&&e<=t+n?1:e>=i-n&&e<=i+n?2:0}function ft(r,e){const{left:t,right:i,width:s}=r,n=.05*s;return e>=t-n&&e<=t+n?1:e>=i-n&&e<=i+n?2:0}const M=(0,D.i$)({passive:!1,capture:!0});let Ot=(()=>{class r{constructor(t,i){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new _.x,this.pointerUp=new _.x,this.scroll=new _.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=i}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,M)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,M)}startDragging(t,i){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const s=i.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:n=>this.pointerUp.next(n),options:!0}).set("scroll",{handler:n=>this.scroll.next(n),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:M}),s||this._globalListeners.set("mousemove",{handler:n=>this.pointerMove.next(n),options:M}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((n,o)=>{this._document.addEventListener(o,n.handler,n.options)})})}}stopDragging(t){const i=this._activeDragInstances.indexOf(t);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){const i=[this.scroll];return t&&t!==this._document&&i.push(new j.y(s=>this._ngZone.runOutsideAngular(()=>{const o=a=>{this._activeDragInstances.length&&s.next(a)};return t.addEventListener("scroll",o,!0),()=>{t.removeEventListener("scroll",o,!0)}}))),(0,J.T)(...i)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,i)=>{this._document.removeEventListener(i,t.handler,t.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(t){return new(t||r)(l.LFG(l.R0b),l.LFG(P.K0))},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Mt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Z=(()=>{class r{constructor(t,i,s,n){this._document=t,this._ngZone=i,this._viewportRuler=s,this._dragDropRegistry=n}createDrag(t,i=Mt){return new Tt(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new kt(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(t){return new(t||r)(l.LFG(P.K0),l.LFG(l.R0b),l.LFG(F.rL),l.LFG(Ot))},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const mt=new l.OlP("CDK_DRAG_PARENT"),K=new l.OlP("CdkDropListGroup");let At=(()=>{class r{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,p.Ig)(t)}ngOnDestroy(){this._items.clear()}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=l.lG2({type:r,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[l._Bn([{provide:K,useExisting:r}])]}),r})();const Dt=new l.OlP("CDK_DRAG_CONFIG");let Ht=0;const vt=new l.OlP("CdkDropList");let zt=(()=>{class r{constructor(t,i,s,n,o,a,h){this.element=t,this._changeDetectorRef=s,this._scrollDispatcher=n,this._dir=o,this._group=a,this._destroyed=new _.x,this.connectedTo=[],this.id="cdk-drop-list-"+Ht++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new l.vpe,this.entered=new l.vpe,this.exited=new l.vpe,this.sorted=new l.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,h&&this._assignDefaults(h),this._dropListRef.enterPredicate=(c,d)=>this.enterPredicate(c.data,d.data),this._dropListRef.sortPredicate=(c,d,u)=>this.sortPredicate(c,d.data,u.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=(0,p.Ig)(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,i)=>t._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const t=r._dropLists.indexOf(this);t>-1&&r._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe((0,z.O)(this._dir.value),(0,T.R)(this._destroyed)).subscribe(i=>t.withDirection(i)),t.beforeStarted.subscribe(()=>{const i=(0,p.Eq)(this.connectedTo).map(s=>"string"==typeof s?r._dropLists.find(o=>o.id===s):s);if(this._group&&this._group._items.forEach(s=>{-1===i.indexOf(s)&&i.push(s)}),!this._scrollableParentsResolved){const s=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(n=>n.getElementRef().nativeElement);this._dropListRef.withScrollableParents(s),this._scrollableParentsResolved=!0}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=(0,p.Ig)(this.sortingDisabled),t.autoScrollDisabled=(0,p.Ig)(this.autoScrollDisabled),t.autoScrollStep=(0,p.su)(this.autoScrollStep,2),t.connectedTo(i.filter(s=>s&&s!==this).map(s=>s._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:i,draggingDisabled:s,sortingDisabled:n,listAutoScrollDisabled:o,listOrientation:a}=t;this.disabled=null!=s&&s,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=o&&o,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return r._dropLists=[],r.\u0275fac=function(t){return new(t||r)(l.Y36(l.SBq),l.Y36(Z),l.Y36(l.sBO),l.Y36(F.mF),l.Y36(X.Is,8),l.Y36(K,12),l.Y36(Dt,8))},r.\u0275dir=l.lG2({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,i){2&t&&(l.uIk("id",i.id),l.ekj("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[l._Bn([{provide:K,useValue:void 0},{provide:vt,useExisting:r}])]}),r})();const Pt=new l.OlP("CdkDragHandle"),Ft=new l.OlP("CdkDragPlaceholder"),Gt=new l.OlP("CdkDragPreview");let Bt=(()=>{class r{constructor(t,i,s,n,o,a,h,c,d,u,f){this.element=t,this.dropContainer=i,this._ngZone=n,this._viewContainerRef=o,this._dir=h,this._changeDetectorRef=d,this._selfHandle=u,this._parentDrag=f,this._destroyed=new _.x,this.started=new l.vpe,this.released=new l.vpe,this.ended=new l.vpe,this.entered=new l.vpe,this.exited=new l.vpe,this.dropped=new l.vpe,this.moved=new j.y(b=>{const w=this._dragRef.moved.pipe((0,yt.U)(y=>({source:this,pointerPosition:y.pointerPosition,event:y.event,delta:y.delta,distance:y.distance}))).subscribe(b);return()=>{w.unsubscribe()}}),this._dragRef=c.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,r._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=(0,p.Ig)(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Q.q)(1),(0,T.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(t){const i=t.rootElementSelector,s=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=r._dragInstances.indexOf(this);t>-1&&r._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var t;const i=this.element.nativeElement;let s=i;this.rootElementSelector&&(s=void 0!==i.closest?i.closest(this.rootElementSelector):null===(t=i.parentElement)||void 0===t?void 0:t.closest(this.rootElementSelector)),this._dragRef.withRootElement(s||i)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?this.element.nativeElement.closest(t):(0,p.fI)(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const i=this._dir,s=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof s&&s?s:(0,p.su)(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),i&&t.withDirection(i.value)}}),t.beforeStarted.pipe((0,Q.q)(1)).subscribe(()=>{var i;if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(s.classList.contains("cdk-drag")){t.withParent((null===(i=r._dragInstances.find(n=>n.element.nativeElement===s))||void 0===i?void 0:i._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint})})}_assignDefaults(t){const{lockAxis:i,dragStartDelay:s,constrainPosition:n,previewClass:o,boundaryElement:a,draggingDisabled:h,rootElementSelector:c,previewContainer:d}=t;this.disabled=null!=h&&h,this.dragStartDelay=s||0,i&&(this.lockAxis=i),n&&(this.constrainPosition=n),o&&(this.previewClass=o),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.changes.pipe((0,z.O)(this._handles),(0,Rt.b)(t=>{const i=t.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),(0,Et.w)(t=>(0,J.T)(...t.map(i=>i._stateChanges.pipe((0,z.O)(i))))),(0,T.R)(this._destroyed)).subscribe(t=>{const i=this._dragRef,s=t.element.nativeElement;t.disabled?i.disableHandle(s):i.enableHandle(s)})}}return r._dragInstances=[],r.\u0275fac=function(t){return new(t||r)(l.Y36(l.SBq),l.Y36(vt,12),l.Y36(P.K0),l.Y36(l.R0b),l.Y36(l.s_b),l.Y36(Dt,8),l.Y36(X.Is,8),l.Y36(Z),l.Y36(l.sBO),l.Y36(Pt,10),l.Y36(mt,12))},r.\u0275dir=l.lG2({type:r,selectors:[["","cdkDrag",""]],contentQueries:function(t,i,s){if(1&t&&(l.Suo(s,Gt,5),l.Suo(s,Ft,5),l.Suo(s,Pt,5)),2&t){let n;l.iGM(n=l.CRH())&&(i._previewTemplate=n.first),l.iGM(n=l.CRH())&&(i._placeholderTemplate=n.first),l.iGM(n=l.CRH())&&(i._handles=n)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,i){2&t&&l.ekj("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[l._Bn([{provide:mt,useExisting:r}]),l.TTD]}),r})(),Vt=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=l.oAB({type:r}),r.\u0275inj=l.cJS({providers:[Z],imports:[F.ZD]}),r})()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[105],{22863:(W,R,g)=>{g.d(R,{M:()=>D});var l=g(22313),P=g(18505);class D{constructor(v){this.httpService=v,this.menuData={T:null,N:null,H:null};let A=this.GetRequestPayload();this.menuData$=v.post("/api/Authentication/PageData",JSON.stringify(A)).pipe((0,P.b)(H=>{this.menuData=H,new l.Dx(document).setTitle(this.menuData.T)}))}GetRequestPayload(){let v=window.location.href;return v=v.split("menu/")[1],v=v.split(";")[0],{Url:v}}}},96700:(W,R,g)=>{g.d(R,{n:()=>l});var l=(()=>{return(P=l||(l={})).Success="Success",P.Info="Info",P.Warning="Warning",P.Error="Error",l;var P})()},53737:(W,R,g)=>{g.d(R,{Zt:()=>Bt,Wj:()=>zt,Fd:()=>At,_t:()=>Vt,bA:()=>gt});var l=g(5e3),P=g(69808),D=g(70925),p=g(63191),v=g(15664),A=g(34986),H=g(82805),_=g(77579),E=g(50727),St=g(66406),j=g(69751),J=g(56451),T=g(82722),z=g(68675),yt=g(54004),Q=g(95698),Rt=g(18505),Et=g(63900),F=g(46469),X=g(50226);function G(r,e,t){for(let i in e)if(e.hasOwnProperty(i)){const s=e[i];s?r.setProperty(i,s,(null==t?void 0:t.has(i))?"important":""):r.removeProperty(i)}return r}function S(r,e){const t=e?"":"none";G(r.style,{"touch-action":e?"":"none","-webkit-user-drag":e?"":"none","-webkit-tap-highlight-color":e?"":"transparent","user-select":t,"-ms-user-select":t,"-webkit-user-select":t,"-moz-user-select":t})}function q(r,e,t){G(r.style,{position:e?"":"fixed",top:e?"":"0",opacity:e?"":"0",left:e?"":"-999em"},t)}function k(r,e){return e&&"none"!=e?r+" "+e:r}function tt(r){const e=r.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(r)*e}function N(r,e){return r.getPropertyValue(e).split(",").map(i=>i.trim())}function B(r){const e=r.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}}function V(r,e,t){const{top:i,bottom:s,left:n,right:o}=r;return t>=i&&t<=s&&e>=n&&e<=o}function C(r,e,t){r.top+=e,r.bottom=r.top+r.height,r.left+=t,r.right=r.left+r.width}function et(r,e,t,i){const{top:s,right:n,bottom:o,left:a,width:h,height:c}=r,d=h*e,u=c*e;return i>s-u&&i<o+u&&t>a-d&&t<n+d}class it{constructor(e){this._document=e,this.positions=new Map}clear(){this.positions.clear()}cache(e){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),e.forEach(t=>{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:B(t)})})}handleScroll(e){const t=(0,D.sA)(e),i=this.positions.get(t);if(!i)return null;const s=i.scrollPosition;let n,o;if(t===this._document){const c=this.getViewportScrollPosition();n=c.top,o=c.left}else n=t.scrollTop,o=t.scrollLeft;const a=s.top-n,h=s.left-o;return this.positions.forEach((c,d)=>{c.clientRect&&t!==d&&t.contains(d)&&C(c.clientRect,a,h)}),s.top=n,s.left=o,{top:a,left:h}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function st(r){const e=r.cloneNode(!0),t=e.querySelectorAll("[id]"),i=r.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s<t.length;s++)t[s].removeAttribute("id");return"canvas"===i?ot(r,e):("input"===i||"select"===i||"textarea"===i)&&rt(r,e),nt("canvas",r,e,ot),nt("input, textarea, select",r,e,rt),e}function nt(r,e,t,i){const s=e.querySelectorAll(r);if(s.length){const n=t.querySelectorAll(r);for(let o=0;o<s.length;o++)i(s[o],n[o])}}let xt=0;function rt(r,e){"file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`mat-clone-${e.name}-${xt++}`)}function ot(r,e){const t=e.getContext("2d");if(t)try{t.drawImage(r,0,0)}catch(i){}}const at=(0,D.i$)({passive:!0}),L=(0,D.i$)({passive:!1}),Y=new Set(["position"]);class Tt{constructor(e,t,i,s,n,o){this._config=t,this._document=i,this._ngZone=s,this._viewportRuler=n,this._dragDropRegistry=o,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._hasStartedDragging=!1,this._moveEvents=new _.x,this._pointerMoveSubscription=E.w0.EMPTY,this._pointerUpSubscription=E.w0.EMPTY,this._scrollSubscription=E.w0.EMPTY,this._resizeSubscription=E.w0.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new _.x,this.started=new _.x,this.released=new _.x,this.ended=new _.x,this.entered=new _.x,this.exited=new _.x,this.dropped=new _.x,this.moved=this._moveEvents,this._pointerDown=a=>{if(this.beforeStarted.next(),this._handles.length){const h=this._handles.find(c=>a.target&&(a.target===c||c.contains(a.target)));h&&!this._disabledHandles.has(h)&&!this.disabled&&this._initializeDragSequence(h,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const h=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(h.x-this._pickupPositionOnPage.x)+Math.abs(h.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const b=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),w=this._dropContainer;if(!b)return void this._endDragSequence(a);(!w||!w.isDragging()&&!w.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(h);if(this._hasMoved=!0,this._lastKnownPointerPosition=h,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,h);else{const d=this._activeTransform;d.x=c.x-this._pickupPositionOnPage.x+this._passiveTransform.x,d.y=c.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this.withRootElement(e).withParent(t.parentDragRef||null),this._parentPositions=new it(i),o.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(e){const t=(0,p.Ig)(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(i=>S(i,t)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(e){this._handles=e.map(i=>(0,p.fI)(i)),this._handles.forEach(i=>S(i,this.disabled)),this._toggleNativeDragInteractions();const t=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&t.add(i)}),this._disabledHandles=t,this}withPreviewTemplate(e){return this._previewTemplate=e,this}withPlaceholderTemplate(e){return this._placeholderTemplate=e,this}withRootElement(e){const t=(0,p.fI)(e);return t!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{t.addEventListener("mousedown",this._pointerDown,L),t.addEventListener("touchstart",this._pointerDown,at),t.addEventListener("dragstart",dt,L)}),this._initialTransform=void 0,this._rootElement=t),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(e){return this._boundaryElement=e?(0,p.fI)(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(e){return this._parentDragRef=e,this}dispose(){var e,t;this._removeRootElementListeners(this._rootElement),this.isDragging()&&(null===(e=this._rootElement)||void 0===e||e.remove()),null===(t=this._anchor)||void 0===t||t.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(e){!this._disabledHandles.has(e)&&this._handles.indexOf(e)>-1&&(this._disabledHandles.add(e),S(e,!0))}enableHandle(e){this._disabledHandles.has(e)&&(this._disabledHandles.delete(e),S(e,this.disabled))}withDirection(e){return this._direction=e,this}_withDropContainer(e){this._dropContainer=e}getFreeDragPosition(){const e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}setFreeDragPosition(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}withPreviewContainer(e){return this._previewContainer=e,this}_sortFromLastPointerPosition(){const e=this._lastKnownPointerPosition;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e),e)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){var e,t;null===(e=this._preview)||void 0===e||e.remove(),null===(t=this._previewRef)||void 0===t||t.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){var e,t;null===(e=this._placeholder)||void 0===e||e.remove(),null===(t=this._placeholderRef)||void 0===t||t.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(e){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(e),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const t=this._getPointerPositionOnPage(e);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(t),dropPoint:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(e){x(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const t=this._dropContainer;if(t){const i=this._rootElement,s=i.parentNode,n=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();s.insertBefore(o,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),q(i,!1,Y),this._document.body.appendChild(s.replaceChild(n,i)),this._getPreviewInsertionPoint(s,a).appendChild(this._preview),this.started.next({source:this}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(e,t){this._parentDragRef&&t.stopPropagation();const i=this.isDragging(),s=x(t),n=!s&&0!==t.button,o=this._rootElement,a=(0,D.sA)(t),h=!s&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=s?(0,v.yG)(t):(0,v.X6)(t);if(a&&a.draggable&&"mousedown"===t.type&&t.preventDefault(),i||n||h||c)return;if(this._handles.length){const f=o.style;this._rootElementTapHighlight=f.webkitTapHighlightColor||"",f.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(f=>this._updateOnScroll(f)),this._boundaryElement&&(this._boundaryRect=B(this._boundaryElement));const d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);const u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}_cleanupDragArtifacts(e){q(this._rootElement,!0,Y),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const t=this._dropContainer,i=t.getItemIndex(this),s=this._getPointerPositionOnPage(e),n=this._getDragDistance(s),o=t._isOverContainer(s.x,s.y);this.ended.next({source:this,distance:n,dropPoint:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:t,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:n,dropPoint:s}),t.drop(this,i,this._initialIndex,this._initialContainer,o,n,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:e,y:t},{x:i,y:s}){let n=this._initialContainer._getSiblingContainerFromPosition(this,e,t);!n&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(e,t)&&(n=this._initialContainer),n&&n!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=n,this._dropContainer.enter(this,e,t,n===this._initialContainer&&n.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:n,currentIndex:n.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,s),this._dropContainer._sortItem(this,e,t,this._pointerDirectionDelta),this._applyPreviewTransform(e-this._pickupPositionInElement.x,t-this._pickupPositionInElement.y))}_createPreviewElement(){const e=this._previewTemplate,t=this.previewClass,i=e?e.template:null;let s;if(i&&e){const n=e.matchSize?this._rootElement.getBoundingClientRect():null,o=e.viewContainer.createEmbeddedView(i,e.context);o.detectChanges(),s=ht(o,this._document),this._previewRef=o,e.matchSize?ct(s,n):s.style.transform=O(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const n=this._rootElement;s=st(n),ct(s,n.getBoundingClientRect()),this._initialTransform&&(s.style.transform=this._initialTransform)}return G(s.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},Y),S(s,!1),s.classList.add("cdk-drag-preview"),s.setAttribute("dir",this._direction),t&&(Array.isArray(t)?t.forEach(n=>s.classList.add(n)):s.classList.add(t)),s}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const e=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(e.left,e.top);const t=function Ct(r){const e=getComputedStyle(r),t=N(e,"transition-property"),i=t.find(a=>"transform"===a||"all"===a);if(!i)return 0;const s=t.indexOf(i),n=N(e,"transition-duration"),o=N(e,"transition-delay");return tt(n[s])+tt(o[s])}(this._preview);return 0===t?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const s=o=>{var a;(!o||(0,D.sA)(o)===this._preview&&"transform"===o.propertyName)&&(null===(a=this._preview)||void 0===a||a.removeEventListener("transitionend",s),i(),clearTimeout(n))},n=setTimeout(s,1.5*t);this._preview.addEventListener("transitionend",s)}))}_createPlaceholderElement(){const e=this._placeholderTemplate,t=e?e.template:null;let i;return t?(this._placeholderRef=e.viewContainer.createEmbeddedView(t,e.context),this._placeholderRef.detectChanges(),i=ht(this._placeholderRef,this._document)):i=st(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(e,t){const i=this._rootElement.getBoundingClientRect(),s=e===this._rootElement?null:e,n=s?s.getBoundingClientRect():i,o=x(t)?t.targetTouches[0]:t,a=this._getViewportScrollPosition();return{x:n.left-i.left+(o.pageX-n.left-a.left),y:n.top-i.top+(o.pageY-n.top-a.top)}}_getPointerPositionOnPage(e){const t=this._getViewportScrollPosition(),i=x(e)?e.touches[0]||e.changedTouches[0]||{pageX:0,pageY:0}:e,s=i.pageX-t.left,n=i.pageY-t.top;if(this._ownerSVGElement){const o=this._ownerSVGElement.getScreenCTM();if(o){const a=this._ownerSVGElement.createSVGPoint();return a.x=s,a.y=n,a.matrixTransform(o.inverse())}}return{x:s,y:n}}_getConstrainedPointerPosition(e){const t=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:s}=this.constrainPosition?this.constrainPosition(e,this):e;if("x"===this.lockAxis||"x"===t?s=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===t)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:n,y:o}=this._pickupPositionInElement,a=this._boundaryRect,{width:h,height:c}=this._getPreviewRect(),d=a.top+o,u=a.bottom-(c-o);i=lt(i,a.left+n,a.right-(h-n)),s=lt(s,d,u)}return{x:i,y:s}}_updatePointerDirectionDelta(e){const{x:t,y:i}=e,s=this._pointerDirectionDelta,n=this._pointerPositionAtLastDirectionChange,o=Math.abs(t-n.x),a=Math.abs(i-n.y);return o>this._config.pointerDirectionChangeThreshold&&(s.x=t>n.x?1:-1,n.x=t),a>this._config.pointerDirectionChangeThreshold&&(s.y=i>n.y?1:-1,n.y=i),s}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,S(this._rootElement,e))}_removeRootElementListeners(e){e.removeEventListener("mousedown",this._pointerDown,L),e.removeEventListener("touchstart",this._pointerDown,at),e.removeEventListener("dragstart",dt,L)}_applyRootElementTransform(e,t){const i=O(e,t),s=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=s.transform&&"none"!=s.transform?s.transform:""),s.transform=k(i,this._initialTransform)}_applyPreviewTransform(e,t){var i;const s=(null===(i=this._previewTemplate)||void 0===i?void 0:i.template)?void 0:this._initialTransform,n=O(e,t);this._preview.style.transform=k(n,s)}_getDragDistance(e){const t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:e,y:t}=this._passiveTransform;if(0===e&&0===t||this.isDragging()||!this._boundaryElement)return;const i=this._boundaryElement.getBoundingClientRect(),s=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===s.width&&0===s.height)return;const n=i.left-s.left,o=s.right-i.right,a=i.top-s.top,h=s.bottom-i.bottom;i.width>s.width?(n>0&&(e+=n),o>0&&(e-=o)):e=0,i.height>s.height?(a>0&&(t+=a),h>0&&(t-=h)):t=0,(e!==this._passiveTransform.x||t!==this._passiveTransform.y)&&this.setFreeDragPosition({y:t,x:e})}_getDragStartDelay(e){const t=this.dragStartDelay;return"number"==typeof t?t:x(e)?t.touch:t?t.mouse:0}_updateOnScroll(e){const t=this._parentPositions.handleScroll(e);if(t){const i=(0,D.sA)(e);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&C(this._boundaryRect,t.top,t.left),this._pickupPositionOnPage.x+=t.left,this._pickupPositionOnPage.y+=t.top,this._dropContainer||(this._activeTransform.x-=t.left,this._activeTransform.y-=t.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){var e;return(null===(e=this._parentPositions.positions.get(this._document))||void 0===e?void 0:e.scrollPosition)||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=(0,D.kV)(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(e,t){const i=this._previewContainer||"global";if("parent"===i)return e;if("global"===i){const s=this._document;return t||s.fullscreenElement||s.webkitFullscreenElement||s.mozFullScreenElement||s.msFullscreenElement||s.body}return(0,p.fI)(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()),this._previewRect}}function O(r,e){return`translate3d(${Math.round(r)}px, ${Math.round(e)}px, 0)`}function lt(r,e,t){return Math.max(e,Math.min(t,r))}function x(r){return"t"===r.type[0]}function ht(r,e){const t=r.rootNodes;if(1===t.length&&t[0].nodeType===e.ELEMENT_NODE)return t[0];const i=e.createElement("div");return t.forEach(s=>i.appendChild(s)),i}function ct(r,e){r.style.width=`${e.width}px`,r.style.height=`${e.height}px`,r.style.transform=O(e.left,e.top)}function dt(r){r.preventDefault()}function gt(r,e,t){const i=I(e,r.length-1),s=I(t,r.length-1);if(i===s)return;const n=r[i],o=s<i?-1:1;for(let a=i;a!==s;a+=o)r[a]=r[a+o];r[s]=n}function I(r,e){return Math.max(0,Math.min(e,r))}class kt{constructor(e,t,i,s,n){this._dragDropRegistry=t,this._ngZone=s,this._viewportRuler=n,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.autoScrollStep=2,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new _.x,this.entered=new _.x,this.exited=new _.x,this.dropped=new _.x,this.sorted=new _.x,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._draggables=[],this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=E.w0.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new _.x,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function $(r=0,e=A.z){return r<0&&(r=0),(0,H.H)(r,r,e)}(0,St.Z).pipe((0,T.R)(this._stopScrollTimers)).subscribe(()=>{const o=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?o.scrollBy(0,-a):2===this._verticalScrollDirection&&o.scrollBy(0,a),1===this._horizontalScrollDirection?o.scrollBy(-a,0):2===this._horizontalScrollDirection&&o.scrollBy(a,0)})},this.element=(0,p.fI)(e),this._document=i,this.withScrollableParents([this.element]),t.registerDropContainer(this),this._parentPositions=new it(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(e,t,i,s){let n;this._draggingStarted(),null==s?(n=this.sortingDisabled?this._draggables.indexOf(e):-1,-1===n&&(n=this._getItemIndexFromPointerPosition(e,t,i))):n=s;const o=this._activeDraggables,a=o.indexOf(e),h=e.getPlaceholderElement();let c=o[n];if(c===e&&(c=o[n+1]),!c&&(null==n||-1===n||n<o.length-1)&&this._shouldEnterAsFirstChild(t,i)&&(c=o[0]),a>-1&&o.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const d=c.getRootElement();d.parentElement.insertBefore(h,d),o.splice(n,0,e)}else(0,p.fI)(this.element).appendChild(h),o.push(e);h.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}exit(e){this._reset(),this.exited.next({item:e,container:this})}drop(e,t,i,s,n,o,a){this._reset(),this.dropped.next({item:e,currentIndex:t,previousIndex:i,container:this,previousContainer:s,isPointerOverContainer:n,distance:o,dropPoint:a})}withItems(e){const t=this._draggables;return this._draggables=e,e.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(t.filter(s=>s.isDragging()).every(s=>-1===e.indexOf(s))?this._reset():this._cacheItems()),this}withDirection(e){return this._direction=e,this}connectedTo(e){return this._siblings=e.slice(),this}withOrientation(e){return this._orientation=e,this}withScrollableParents(e){const t=(0,p.fI)(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t,...e]:e.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(e){return this._isDragging?("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===e):this._draggables.indexOf(e)}isReceiving(){return this._activeSiblings.size>0}_sortItem(e,t,i,s){if(this.sortingDisabled||!this._clientRect||!et(this._clientRect,.05,t,i))return;const n=this._itemPositions,o=this._getItemIndexFromPointerPosition(e,t,i,s);if(-1===o&&n.length>0)return;const a="horizontal"===this._orientation,h=n.findIndex(m=>m.drag===e),c=n[o],u=c.clientRect,f=h>o?1:-1,b=this._getItemOffsetPx(n[h].clientRect,u,f),w=this._getSiblingOffsetPx(h,n,f),y=n.slice();gt(n,h,o),this.sorted.next({previousIndex:h,currentIndex:o,container:this,item:e}),n.forEach((m,Yt)=>{if(y[Yt]===m)return;const bt=m.drag===e,U=bt?b:w,wt=bt?e.getPlaceholderElement():m.drag.getRootElement();m.offset+=U,a?(wt.style.transform=k(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),C(m.clientRect,0,U)):(wt.style.transform=k(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),C(m.clientRect,U,0))}),this._previousSwap.overlaps=V(u,t,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?s.x:s.y}_startScrollingIfNecessary(e,t){if(this.autoScrollDisabled)return;let i,s=0,n=0;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||i||et(o.clientRect,.05,e,t)&&([s,n]=function Lt(r,e,t,i){const s=ut(e,i),n=ft(e,t);let o=0,a=0;if(s){const h=r.scrollTop;1===s?h>0&&(o=1):r.scrollHeight-h>r.clientHeight&&(o=2)}if(n){const h=r.scrollLeft;1===n?h>0&&(a=1):r.scrollWidth-h>r.clientWidth&&(a=2)}return[o,a]}(a,o.clientRect,e,t),(s||n)&&(i=a))}),!s&&!n){const{width:o,height:a}=this._viewportRuler.getViewportSize(),h={width:o,height:a,top:0,right:o,bottom:a,left:0};s=ut(h,t),n=ft(h,e),i=window}i&&(s!==this._verticalScrollDirection||n!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=s,this._horizontalScrollDirection=n,this._scrollNode=i,(s||n)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const e=(0,p.fI)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=e.msScrollSnapType||e.scrollSnapType||"",e.scrollSnapType=e.msScrollSnapType="none",this._cacheItems(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const e=(0,p.fI)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}_cacheItemPositions(){const e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const i=t.getVisibleElement();return{drag:t,offset:0,initialTransform:i.style.transform||"",clientRect:B(i)}}).sort((t,i)=>e?t.clientRect.left-i.clientRect.left:t.clientRect.top-i.clientRect.top)}_reset(){this._isDragging=!1;const e=(0,p.fI)(this.element).style;e.scrollSnapType=e.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{var i;const s=t.getRootElement();if(s){const n=null===(i=this._itemPositions.find(o=>o.drag===t))||void 0===i?void 0:i.initialTransform;s.style.transform=n||""}}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(e,t,i){const s="horizontal"===this._orientation,n=t[e].clientRect,o=t[e+-1*i];let a=n[s?"width":"height"]*i;if(o){const h=s?"left":"top",c=s?"right":"bottom";-1===i?a-=o.clientRect[h]-n[c]:a+=n[h]-o.clientRect[c]}return a}_getItemOffsetPx(e,t,i){const s="horizontal"===this._orientation;let n=s?t.left-e.left:t.top-e.top;return-1===i&&(n+=s?t.width-e.width:t.height-e.height),n}_shouldEnterAsFirstChild(e,t){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,s="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const o=i[i.length-1].clientRect;return s?e>=o.right:t>=o.bottom}{const o=i[0].clientRect;return s?e<=o.left:t<=o.top}}_getItemIndexFromPointerPosition(e,t,i,s){const n="horizontal"===this._orientation,o=this._itemPositions.findIndex(({drag:a,clientRect:h})=>{if(a===e)return!1;if(s){const c=n?s.x:s.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return n?t>=Math.floor(h.left)&&t<Math.floor(h.right):i>=Math.floor(h.top)&&i<Math.floor(h.bottom)});return-1!==o&&this.sortPredicate(o,e,this)?o:-1}_cacheItems(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}_isOverContainer(e,t){return null!=this._clientRect&&V(this._clientRect,e,t)}_getSiblingContainerFromPosition(e,t,i){return this._siblings.find(s=>s._canReceive(e,t,i))}_canReceive(e,t,i){if(!this._clientRect||!V(this._clientRect,t,i)||!this.enterPredicate(e,this))return!1;const s=this._getShadowRoot().elementFromPoint(t,i);if(!s)return!1;const n=(0,p.fI)(this.element);return s===n||n.contains(s)}_startReceiving(e,t){const i=this._activeSiblings;!i.has(e)&&t.every(s=>this.enterPredicate(s,this)||this._draggables.indexOf(s)>-1)&&(i.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(e=>{if(this.isDragging()){const t=this._parentPositions.handleScroll(e);t&&(this._itemPositions.forEach(({clientRect:i})=>{C(i,t.top,t.left)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const e=(0,D.kV)((0,p.fI)(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const e=this._activeDraggables.filter(t=>t.isDragging());this._siblings.forEach(t=>t._startReceiving(this,e))}}function ut(r,e){const{top:t,bottom:i,height:s}=r,n=.05*s;return e>=t-n&&e<=t+n?1:e>=i-n&&e<=i+n?2:0}function ft(r,e){const{left:t,right:i,width:s}=r,n=.05*s;return e>=t-n&&e<=t+n?1:e>=i-n&&e<=i+n?2:0}const M=(0,D.i$)({passive:!1,capture:!0});let Ot=(()=>{class r{constructor(t,i){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=s=>s.isDragging(),this.pointerMove=new _.x,this.pointerUp=new _.x,this.scroll=new _.x,this._preventDefaultWhileDragging=s=>{this._activeDragInstances.length>0&&s.preventDefault()},this._persistentTouchmoveListener=s=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&s.preventDefault(),this.pointerMove.next(s))},this._document=i}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,M)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,M)}startDragging(t,i){if(!(this._activeDragInstances.indexOf(t)>-1)&&(this._activeDragInstances.push(t),1===this._activeDragInstances.length)){const s=i.type.startsWith("touch");this._globalListeners.set(s?"touchend":"mouseup",{handler:n=>this.pointerUp.next(n),options:!0}).set("scroll",{handler:n=>this.scroll.next(n),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:M}),s||this._globalListeners.set("mousemove",{handler:n=>this.pointerMove.next(n),options:M}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((n,o)=>{this._document.addEventListener(o,n.handler,n.options)})})}}stopDragging(t){const i=this._activeDragInstances.indexOf(t);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(t){return this._activeDragInstances.indexOf(t)>-1}scrolled(t){const i=[this.scroll];return t&&t!==this._document&&i.push(new j.y(s=>this._ngZone.runOutsideAngular(()=>{const o=a=>{this._activeDragInstances.length&&s.next(a)};return t.addEventListener("scroll",o,!0),()=>{t.removeEventListener("scroll",o,!0)}}))),(0,J.T)(...i)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,i)=>{this._document.removeEventListener(i,t.handler,t.options)}),this._globalListeners.clear()}}return r.\u0275fac=function(t){return new(t||r)(l.LFG(l.R0b),l.LFG(P.K0))},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const Mt={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Z=(()=>{class r{constructor(t,i,s,n){this._document=t,this._ngZone=i,this._viewportRuler=s,this._dragDropRegistry=n}createDrag(t,i=Mt){return new Tt(t,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new kt(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return r.\u0275fac=function(t){return new(t||r)(l.LFG(P.K0),l.LFG(l.R0b),l.LFG(F.rL),l.LFG(Ot))},r.\u0275prov=l.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const mt=new l.OlP("CDK_DRAG_PARENT"),K=new l.OlP("CdkDropListGroup");let At=(()=>{class r{constructor(){this._items=new Set,this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=(0,p.Ig)(t)}ngOnDestroy(){this._items.clear()}}return r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=l.lG2({type:r,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"],features:[l._Bn([{provide:K,useExisting:r}])]}),r})();const Dt=new l.OlP("CDK_DRAG_CONFIG");let Ht=0;const vt=new l.OlP("CdkDropList");let zt=(()=>{class r{constructor(t,i,s,n,o,a,h){this.element=t,this._changeDetectorRef=s,this._scrollDispatcher=n,this._dir=o,this._group=a,this._destroyed=new _.x,this.connectedTo=[],this.id="cdk-drop-list-"+Ht++,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.dropped=new l.vpe,this.entered=new l.vpe,this.exited=new l.vpe,this.sorted=new l.vpe,this._unsortedItems=new Set,this._dropListRef=i.createDropList(t),this._dropListRef.data=this,h&&this._assignDefaults(h),this._dropListRef.enterPredicate=(c,d)=>this.enterPredicate(c.data,d.data),this._dropListRef.sortPredicate=(c,d,u)=>this.sortPredicate(c,d.data,u.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),r._dropLists.push(this),a&&a._items.add(this)}get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(t){this._dropListRef.disabled=this._disabled=(0,p.Ig)(t)}addItem(t){this._unsortedItems.add(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}removeItem(t){this._unsortedItems.delete(t),this._dropListRef.isDragging()&&this._syncItemsWithRef()}getSortedItems(){return Array.from(this._unsortedItems).sort((t,i)=>t._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){const t=r._dropLists.indexOf(this);t>-1&&r._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(t){this._dir&&this._dir.change.pipe((0,z.O)(this._dir.value),(0,T.R)(this._destroyed)).subscribe(i=>t.withDirection(i)),t.beforeStarted.subscribe(()=>{const i=(0,p.Eq)(this.connectedTo).map(s=>"string"==typeof s?r._dropLists.find(o=>o.id===s):s);if(this._group&&this._group._items.forEach(s=>{-1===i.indexOf(s)&&i.push(s)}),!this._scrollableParentsResolved){const s=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(n=>n.getElementRef().nativeElement);this._dropListRef.withScrollableParents(s),this._scrollableParentsResolved=!0}t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.sortingDisabled=(0,p.Ig)(this.sortingDisabled),t.autoScrollDisabled=(0,p.Ig)(this.autoScrollDisabled),t.autoScrollStep=(0,p.su)(this.autoScrollStep,2),t.connectedTo(i.filter(s=>s&&s!==this).map(s=>s._dropListRef)).withOrientation(this.orientation)})}_handleEvents(t){t.beforeStarted.subscribe(()=>{this._syncItemsWithRef(),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),t.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint}),this._changeDetectorRef.markForCheck()})}_assignDefaults(t){const{lockAxis:i,draggingDisabled:s,sortingDisabled:n,listAutoScrollDisabled:o,listOrientation:a}=t;this.disabled=null!=s&&s,this.sortingDisabled=null!=n&&n,this.autoScrollDisabled=null!=o&&o,this.orientation=a||"vertical",i&&(this.lockAxis=i)}_syncItemsWithRef(){this._dropListRef.withItems(this.getSortedItems().map(t=>t._dragRef))}}return r._dropLists=[],r.\u0275fac=function(t){return new(t||r)(l.Y36(l.SBq),l.Y36(Z),l.Y36(l.sBO),l.Y36(F.mF),l.Y36(X.Is,8),l.Y36(K,12),l.Y36(Dt,8))},r.\u0275dir=l.lG2({type:r,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,i){2&t&&(l.uIk("id",i.id),l.ekj("cdk-drop-list-disabled",i.disabled)("cdk-drop-list-dragging",i._dropListRef.isDragging())("cdk-drop-list-receiving",i._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],data:["cdkDropListData","data"],orientation:["cdkDropListOrientation","orientation"],id:"id",lockAxis:["cdkDropListLockAxis","lockAxis"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],sortPredicate:["cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],autoScrollStep:["cdkDropListAutoScrollStep","autoScrollStep"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[l._Bn([{provide:K,useValue:void 0},{provide:vt,useExisting:r}])]}),r})();const Pt=new l.OlP("CdkDragHandle"),Ft=new l.OlP("CdkDragPlaceholder"),Gt=new l.OlP("CdkDragPreview");let Bt=(()=>{class r{constructor(t,i,s,n,o,a,h,c,d,u,f){this.element=t,this.dropContainer=i,this._ngZone=n,this._viewContainerRef=o,this._dir=h,this._changeDetectorRef=d,this._selfHandle=u,this._parentDrag=f,this._destroyed=new _.x,this.started=new l.vpe,this.released=new l.vpe,this.ended=new l.vpe,this.entered=new l.vpe,this.exited=new l.vpe,this.dropped=new l.vpe,this.moved=new j.y(b=>{const w=this._dragRef.moved.pipe((0,yt.U)(y=>({source:this,pointerPosition:y.pointerPosition,event:y.event,delta:y.delta,distance:y.distance}))).subscribe(b);return()=>{w.unsubscribe()}}),this._dragRef=c.createDrag(t,{dragStartThreshold:a&&null!=a.dragStartThreshold?a.dragStartThreshold:5,pointerDirectionChangeThreshold:a&&null!=a.pointerDirectionChangeThreshold?a.pointerDirectionChangeThreshold:5,zIndex:null==a?void 0:a.zIndex}),this._dragRef.data=this,r._dragInstances.push(this),a&&this._assignDefaults(a),i&&(this._dragRef._withDropContainer(i._dropListRef),i.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}get disabled(){return this._disabled||this.dropContainer&&this.dropContainer.disabled}set disabled(t){this._disabled=(0,p.Ig)(t),this._dragRef.disabled=this._disabled}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Q.q)(1),(0,T.R)(this._destroyed)).subscribe(()=>{this._updateRootElement(),this._setupHandlesListener(),this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)})})}ngOnChanges(t){const i=t.rootElementSelector,s=t.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),s&&!s.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this);const t=r._dragInstances.indexOf(this);t>-1&&r._dragInstances.splice(t,1),this._ngZone.runOutsideAngular(()=>{this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_updateRootElement(){var t;const i=this.element.nativeElement;let s=i;this.rootElementSelector&&(s=void 0!==i.closest?i.closest(this.rootElementSelector):null===(t=i.parentElement)||void 0===t?void 0:t.closest(this.rootElementSelector)),this._dragRef.withRootElement(s||i)}_getBoundaryElement(){const t=this.boundaryElement;return t?"string"==typeof t?this.element.nativeElement.closest(t):(0,p.fI)(t):null}_syncInputs(t){t.beforeStarted.subscribe(()=>{if(!t.isDragging()){const i=this._dir,s=this.dragStartDelay,n=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;t.disabled=this.disabled,t.lockAxis=this.lockAxis,t.dragStartDelay="object"==typeof s&&s?s:(0,p.su)(s),t.constrainPosition=this.constrainPosition,t.previewClass=this.previewClass,t.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(n).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),i&&t.withDirection(i.value)}}),t.beforeStarted.pipe((0,Q.q)(1)).subscribe(()=>{var i;if(this._parentDrag)return void t.withParent(this._parentDrag._dragRef);let s=this.element.nativeElement.parentElement;for(;s;){if(s.classList.contains("cdk-drag")){t.withParent((null===(i=r._dragInstances.find(n=>n.element.nativeElement===s))||void 0===i?void 0:i._dragRef)||null);break}s=s.parentElement}})}_handleEvents(t){t.started.subscribe(()=>{this.started.emit({source:this}),this._changeDetectorRef.markForCheck()}),t.released.subscribe(()=>{this.released.emit({source:this})}),t.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint}),this._changeDetectorRef.markForCheck()}),t.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),t.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),t.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint})})}_assignDefaults(t){const{lockAxis:i,dragStartDelay:s,constrainPosition:n,previewClass:o,boundaryElement:a,draggingDisabled:h,rootElementSelector:c,previewContainer:d}=t;this.disabled=null!=h&&h,this.dragStartDelay=s||0,i&&(this.lockAxis=i),n&&(this.constrainPosition=n),o&&(this.previewClass=o),a&&(this.boundaryElement=a),c&&(this.rootElementSelector=c),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.changes.pipe((0,z.O)(this._handles),(0,Rt.b)(t=>{const i=t.filter(s=>s._parentDrag===this).map(s=>s.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),(0,Et.w)(t=>(0,J.T)(...t.map(i=>i._stateChanges.pipe((0,z.O)(i))))),(0,T.R)(this._destroyed)).subscribe(t=>{const i=this._dragRef,s=t.element.nativeElement;t.disabled?i.disableHandle(s):i.enableHandle(s)})}}return r._dragInstances=[],r.\u0275fac=function(t){return new(t||r)(l.Y36(l.SBq),l.Y36(vt,12),l.Y36(P.K0),l.Y36(l.R0b),l.Y36(l.s_b),l.Y36(Dt,8),l.Y36(X.Is,8),l.Y36(Z),l.Y36(l.sBO),l.Y36(Pt,10),l.Y36(mt,12))},r.\u0275dir=l.lG2({type:r,selectors:[["","cdkDrag",""]],contentQueries:function(t,i,s){if(1&t&&(l.Suo(s,Gt,5),l.Suo(s,Ft,5),l.Suo(s,Pt,5)),2&t){let n;l.iGM(n=l.CRH())&&(i._previewTemplate=n.first),l.iGM(n=l.CRH())&&(i._placeholderTemplate=n.first),l.iGM(n=l.CRH())&&(i._handles=n)}},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,i){2&t&&l.ekj("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:["cdkDragData","data"],lockAxis:["cdkDragLockAxis","lockAxis"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],boundaryElement:["cdkDragBoundary","boundaryElement"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"],disabled:["cdkDragDisabled","disabled"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],previewContainer:["cdkDragPreviewContainer","previewContainer"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[l._Bn([{provide:mt,useExisting:r}]),l.TTD]}),r})(),Vt=(()=>{class r{}return r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=l.oAB({type:r}),r.\u0275inj=l.cJS({providers:[Z],imports:[F.ZD]}),r})()}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1398],{24424:(L,y,u)=>{u.d(y,{O:()=>F});var a=u(68306),n=u(5e3);let F=(()=>{class S{constructor(){this.csvPrefixFormat=""}convertToCSV(h,M){let I;if("string"==typeof h)I=h;else{var m="object"==typeof h?h:JSON.parse(h);I=this.transformToCSVStringFormat(m)}this.exportCSV(I,M)}isNumeric(h){return/^-?\d+$/.test(h)}parseCSV(h){return new a.y(I=>{let m=new FileReader;m.onload=()=>{let P=m.result.split(/\r\n|\n/),v=P[0].split(","),c=[];for(let r=0;r<P.length;r++){let g=P[r].split(",");if(g.length==v.length){let C=[];for(let f=0;f<v.length;f++)this.isNumeric(g[f])?C.push(parseFloat(g[f])):C.push(g[f]);c.push(C)}else{var d=P[r].split(new RegExp(',(?![^"]*"(?:(?:[^"]*"){2})*[^"]*$)'));let C=[];for(let f=0;f<d.length;f++)this.isNumeric(d[f])?C.push(parseFloat(d[f])):C.push(d[f]);c.push(C)}}I.next(c)},m.readAsBinaryString(h)})}transformToCSVStringFormat(h){if(!h||!h.length)return;const I=Object.keys(h[0]);return h.map(E=>I.map(P=>{let v=null==E[P]?"":E[P];return v=v instanceof Date?v.toLocaleString():v.toString().replace(/"/g,'""'),v.search(/("|,|\n)/g)>=0&&(v=`"${v}"`),v}).join(",")).join("\n")}exportCSV(h,M){var I=new Blob([h],{type:"text/csv;charset=utf8;"}),m=document.createElement("a");m.setAttribute("href",window.URL.createObjectURL(I)),m.setAttribute("download",M),document.body.appendChild(m),m.click(),document.body.removeChild(m)}}return S.\u0275fac=function(h){return new(h||S)},S.\u0275prov=n.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},3077:(L,y,u)=>{u.d(y,{v:()=>P,T:()=>v});var a=u(69808),n=u(5e3),F=u(93075),S=u(89156);function x(c,d){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&c){const r=n.oxw();n.xp6(1),n.AsE(" Showing ",r.pageData.Filter.PageNumber*r.total-r.total+1," - ",r.pageData.Filter.PageNumber*r.total," ")}}function h(c,d){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&c){const r=n.oxw();n.xp6(1),n.AsE(" Showing ",r.pageData.Filter.RowCount*r.pageData.Filter.PageNumber-r.pageData.Filter.RowCount+1," - ",r.pageData.Filter.RowCount*r.pageData.Filter.PageNumber-r.pageData.Filter.RowCount+r.total," ")}}function M(c,d){if(1&c){const r=n.EpF();n.TgZ(0,"span",8),n.NdJ("click",function(){return n.CHM(r),n.oxw().StoreRowsCountAPIResult()}),n.TgZ(1,"i",9),n._uU(2,"?"),n.qZA()()}}function I(c,d){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&c){const r=n.oxw();n.xp6(1),n.hij(" of ",n.lcZ(2,1,r.listTotal),"")}}function m(c,d){if(1&c){const r=n.EpF();n.TgZ(0,"a",10),n.NdJ("click",function(){return n.CHM(r),n.oxw().onPreviousPage()}),n._UZ(1,"i",11),n._uU(2," Previous"),n.qZA()}}function E(c,d){if(1&c){const r=n.EpF();n.TgZ(0,"a",10),n.NdJ("click",function(){return n.CHM(r),n.oxw().onNextPage()}),n._UZ(1,"i",12),n._uU(2," Next"),n.qZA()}}let P=(()=>{class c{constructor(r){this.httpService=r,this.jumpToPage=new n.vpe,this.previousPage=new n.vpe,this.nextPage=new n.vpe,this.pageNumber=1,this.showingNumber=this.pageNumber,this.listTotal=-1}onJumpToPage(r){"Enter"===r.key&&(this.pageData.Filter.PageNumber=this.pageNumber,this.showingNumber=this.pageNumber,this.jumpToPage.emit())}onPreviousPage(){this.pageData.Filter.PageNumber-=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.previousPage.emit()}onNextPage(){this.pageData.Filter.PageNumber+=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.nextPage.emit()}StoreRowsCountAPIResult(){this.httpService.post("/api/"+this.api,JSON.stringify(this.pageData.Filter)).subscribe(r=>{this.listTotal=r.Count?r.Count:r,this.pageData.HideStoreApiCount=!0})}}return c.\u0275fac=function(r){return new(r||c)(n.Y36(S.O))},c.\u0275cmp=n.Xpm({type:c,selectors:[["POS-complex-pagination"]],inputs:{pageData:"pageData",total:"total",api:"api"},outputs:{jumpToPage:"jumpToPage",previousPage:"previousPage",nextPage:"nextPage"},decls:12,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],[4,"ngIf"],["style","cursor: pointer",3,"click",4,"ngIf"],["type","number","autoNum","",1,"text-end",2,"width","45px",3,"ngModel","keyup","ngModelChange"],[1,"btn-group"],["class","btn btn-outline-secondary btn-sm text-primary",3,"click",4,"ngIf"],[2,"cursor","pointer",3,"click"],[1,"border","p-3"],[1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-left"],[1,"fa-solid","fa-arrow-right"]],template:function(r,g){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2),n.YNc(3,x,2,2,"span",3),n.YNc(4,h,2,2,"span",3),n.YNc(5,M,3,0,"span",4),n.YNc(6,I,3,3,"span",3),n._uU(7," records ~ Page "),n.TgZ(8,"input",5),n.NdJ("keyup",function(f){return g.onJumpToPage(f)})("ngModelChange",function(f){return g.pageNumber=f}),n.qZA()()(),n.TgZ(9,"div",6),n.YNc(10,m,3,0,"a",7),n.YNc(11,E,3,0,"a",7),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("ngIf",g.pageData.Filter.RowCount==g.total),n.xp6(1),n.Q6J("ngIf",g.pageData.Filter.RowCount!=g.total),n.xp6(1),n.Q6J("ngIf",!g.pageData.HideStoreApiCount),n.xp6(1),n.Q6J("ngIf",g.pageData.HideStoreApiCount),n.xp6(2),n.Q6J("ngModel",g.pageNumber),n.xp6(2),n.Q6J("ngIf",1!=g.pageData.Filter.PageNumber),n.xp6(1),n.Q6J("ngIf",g.total>=g.pageData.Filter.RowCount))},directives:[a.O5,F.wV,F.Fj,F.JJ,F.On],pipes:[a.JJ],styles:[""]}),c})(),v=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=n.oAB({type:c}),c.\u0275inj=n.cJS({imports:[[a.ez,F.u5,F.UX]]}),c})()},25245:(L,y,u)=>{u.d(y,{Hw:()=>G,Ps:()=>Q});var a=u(5e3),n=u(90508),F=u(63191),S=u(69808),x=u(39646),h=u(62843),M=u(4128),I=u(50727),m=u(18505),E=u(54004),P=u(70262),v=u(28746),c=u(13099),d=u(95698),r=u(40520),g=u(22313);const C=["*"];let f;function A(s){var _;return(null===(_=function w(){if(void 0===f&&(f=null,"undefined"!=typeof window)){const s=window;void 0!==s.trustedTypes&&(f=s.trustedTypes.createPolicy("angular#components",{createHTML:_=>_}))}return f}())||void 0===_?void 0:_.createHTML(s))||s}function U(s){return Error(`Unable to find icon with the name "${s}"`)}function B(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function W(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class T{constructor(_,t,e){this.url=_,this.svgText=t,this.options=e}}let O=(()=>{class s{constructor(t,e,o,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=o}addSvgIcon(t,e,o){return this.addSvgIconInNamespace("",t,e,o)}addSvgIconLiteral(t,e,o){return this.addSvgIconLiteralInNamespace("",t,e,o)}addSvgIconInNamespace(t,e,o,i){return this._addSvgIconConfig(t,e,new T(o,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,o,i){const l=this._sanitizer.sanitize(a.q3G.HTML,o);if(!l)throw W(o);const p=A(l);return this._addSvgIconConfig(t,e,new T("",p,i))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,o){return this._addSvgIconSetConfig(t,new T(e,null,o))}addSvgIconSetLiteralInNamespace(t,e,o){const i=this._sanitizer.sanitize(a.q3G.HTML,e);if(!i)throw W(e);const l=A(i);return this._addSvgIconSetConfig(t,new T("",l,o))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,t);if(!e)throw B(t);const o=this._cachedIconsByUrl.get(e);return o?(0,x.of)(b(o)):this._loadSvgIconFromConfig(new T(t,null)).pipe((0,m.b)(i=>this._cachedIconsByUrl.set(e,i)),(0,E.U)(i=>b(i)))}getNamedSvgIcon(t,e=""){const o=j(e,t);let i=this._svgIconConfigs.get(o);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(o,i),this._getSvgFromConfig(i);const l=this._iconSetConfigs.get(e);return l?this._getSvgFromIconSetConfigs(t,l):(0,h._)(U(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,x.of)(b(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,E.U)(e=>b(e)))}_getSvgFromIconSetConfigs(t,e){const o=this._extractIconWithNameFromAnySet(t,e);if(o)return(0,x.of)(o);const i=e.filter(l=>!l.svgText).map(l=>this._loadSvgIconSetFromConfig(l).pipe((0,P.K)(p=>{const R=`Loading icon set URL: ${this._sanitizer.sanitize(a.q3G.RESOURCE_URL,l.url)} failed: ${p.message}`;return this._errorHandler.handleError(new Error(R)),(0,x.of)(null)})));return(0,M.D)(i).pipe((0,E.U)(()=>{const l=this._extractIconWithNameFromAnySet(t,e);if(!l)throw U(t);return l}))}_extractIconWithNameFromAnySet(t,e){for(let o=e.length-1;o>=0;o--){const i=e[o];if(i.svgText&&i.svgText.toString().indexOf(t)>-1){const l=this._svgElementFromConfig(i),p=this._extractSvgIconFromSet(l,t,i.options);if(p)return p}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,m.b)(e=>t.svgText=e),(0,E.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,x.of)(null):this._fetchIcon(t).pipe((0,m.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,o){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const l=i.cloneNode(!0);if(l.removeAttribute("id"),"svg"===l.nodeName.toLowerCase())return this._setSvgAttributes(l,o);if("symbol"===l.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(l),o);const p=this._svgElementFromString(A("<svg></svg>"));return p.appendChild(l),this._setSvgAttributes(p,o)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const o=e.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(t){const e=this._svgElementFromString(A("<svg></svg>")),o=t.attributes;for(let i=0;i<o.length;i++){const{name:l,value:p}=o[i];"id"!==l&&e.setAttribute(l,p)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:o,options:i}=t,l=null!==(e=null==i?void 0:i.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw function H(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==o)throw Error(`Cannot fetch icon from URL "${o}".`);const p=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,o);if(!p)throw B(o);const N=this._inProgressUrlFetches.get(p);if(N)return N;const R=this._httpClient.get(p,{responseType:"text",withCredentials:l}).pipe((0,E.U)(D=>A(D)),(0,v.x)(()=>this._inProgressUrlFetches.delete(p)),(0,c.B)());return this._inProgressUrlFetches.set(p,R),R}_addSvgIconConfig(t,e,o){return this._svgIconConfigs.set(j(t,e),o),this}_addSvgIconSetConfig(t,e){const o=this._iconSetConfigs.get(t);return o?o.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let o=0;o<this._resolvers.length;o++){const i=this._resolvers[o](e,t);if(i)return z(i)?new T(i.url,null,i.options):new T(i,null)}}}return s.\u0275fac=function(t){return new(t||s)(a.LFG(r.eN,8),a.LFG(g.H7),a.LFG(S.K0,8),a.LFG(a.qLn))},s.\u0275prov=a.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function b(s){return s.cloneNode(!0)}function j(s,_){return s+":"+_}function z(s){return!(!s.url||!s.options)}const J=(0,n.pj)(class{constructor(s){this._elementRef=s}}),Z=new a.OlP("mat-icon-location",{providedIn:"root",factory:function k(){const s=(0,a.f3M)(S.K0),_=s?s.location:null;return{getPathname:()=>_?_.pathname+_.search:""}}}),K=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],V=K.map(s=>`[${s}]`).join(", "),$=/^url\(['"]?#(.*?)['"]?\)$/;let G=(()=>{class s extends J{constructor(t,e,o,i,l){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=l,this._inline=!1,this._currentIconFetch=I.w0.EMPTY,o||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,F.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const o=this._location.getPathname();this._previousPath=o,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(o),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const o=t.childNodes[e];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((o,i)=>{o.forEach(l=>{i.setAttribute(l.name,`url('${t}#${l.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(V),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)K.forEach(l=>{const p=e[i],N=p.getAttribute(l),R=N?N.match($):null;if(R){let D=o.get(p);D||(D=[],o.set(p,D)),D.push({name:l,value:R[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,o]=this._splitIconName(t);e&&(this._svgNamespace=e),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,e).pipe((0,d.q)(1)).subscribe(i=>this._setSvgElement(i),i=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${o}! ${i.message}`))})}}}return s.\u0275fac=function(t){return new(t||s)(a.Y36(a.SBq),a.Y36(O),a.$8M("aria-hidden"),a.Y36(Z),a.Y36(a.qLn))},s.\u0275cmp=a.Xpm({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(a.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),a.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[a.qOj],ngContentSelectors:C,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),s})(),Q=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=a.oAB({type:s}),s.\u0275inj=a.cJS({imports:[[n.BQ],n.BQ]}),s})()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[1398],{24424:(L,y,u)=>{u.d(y,{O:()=>F});var a=u(69751),n=u(5e3);let F=(()=>{class S{constructor(){this.csvPrefixFormat=""}convertToCSV(h,M){let I;if("string"==typeof h)I=h;else{var m="object"==typeof h?h:JSON.parse(h);I=this.transformToCSVStringFormat(m)}this.exportCSV(I,M)}isNumeric(h){return/^-?\d+$/.test(h)}parseCSV(h){return new a.y(I=>{let m=new FileReader;m.onload=()=>{let P=m.result.split(/\r\n|\n/),v=P[0].split(","),c=[];for(let r=0;r<P.length;r++){let g=P[r].split(",");if(g.length==v.length){let C=[];for(let f=0;f<v.length;f++)this.isNumeric(g[f])?C.push(parseFloat(g[f])):C.push(g[f]);c.push(C)}else{var d=P[r].split(new RegExp(',(?![^"]*"(?:(?:[^"]*"){2})*[^"]*$)'));let C=[];for(let f=0;f<d.length;f++)this.isNumeric(d[f])?C.push(parseFloat(d[f])):C.push(d[f]);c.push(C)}}I.next(c)},m.readAsBinaryString(h)})}transformToCSVStringFormat(h){if(!h||!h.length)return;const I=Object.keys(h[0]);return h.map(E=>I.map(P=>{let v=null==E[P]?"":E[P];return v=v instanceof Date?v.toLocaleString():v.toString().replace(/"/g,'""'),v.search(/("|,|\n)/g)>=0&&(v=`"${v}"`),v}).join(",")).join("\n")}exportCSV(h,M){var I=new Blob([h],{type:"text/csv;charset=utf8;"}),m=document.createElement("a");m.setAttribute("href",window.URL.createObjectURL(I)),m.setAttribute("download",M),document.body.appendChild(m),m.click(),document.body.removeChild(m)}}return S.\u0275fac=function(h){return new(h||S)},S.\u0275prov=n.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})()},3077:(L,y,u)=>{u.d(y,{v:()=>P,T:()=>v});var a=u(69808),n=u(5e3),F=u(93075),S=u(89156);function x(c,d){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&c){const r=n.oxw();n.xp6(1),n.AsE(" Showing ",r.pageData.Filter.PageNumber*r.total-r.total+1," - ",r.pageData.Filter.PageNumber*r.total," ")}}function h(c,d){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&c){const r=n.oxw();n.xp6(1),n.AsE(" Showing ",r.pageData.Filter.RowCount*r.pageData.Filter.PageNumber-r.pageData.Filter.RowCount+1," - ",r.pageData.Filter.RowCount*r.pageData.Filter.PageNumber-r.pageData.Filter.RowCount+r.total," ")}}function M(c,d){if(1&c){const r=n.EpF();n.TgZ(0,"span",8),n.NdJ("click",function(){return n.CHM(r),n.oxw().StoreRowsCountAPIResult()}),n.TgZ(1,"i",9),n._uU(2,"?"),n.qZA()()}}function I(c,d){if(1&c&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"number"),n.qZA()),2&c){const r=n.oxw();n.xp6(1),n.hij(" of ",n.lcZ(2,1,r.listTotal),"")}}function m(c,d){if(1&c){const r=n.EpF();n.TgZ(0,"a",10),n.NdJ("click",function(){return n.CHM(r),n.oxw().onPreviousPage()}),n._UZ(1,"i",11),n._uU(2," Previous"),n.qZA()}}function E(c,d){if(1&c){const r=n.EpF();n.TgZ(0,"a",10),n.NdJ("click",function(){return n.CHM(r),n.oxw().onNextPage()}),n._UZ(1,"i",12),n._uU(2," Next"),n.qZA()}}let P=(()=>{class c{constructor(r){this.httpService=r,this.jumpToPage=new n.vpe,this.previousPage=new n.vpe,this.nextPage=new n.vpe,this.pageNumber=1,this.showingNumber=this.pageNumber,this.listTotal=-1}onJumpToPage(r){"Enter"===r.key&&(this.pageData.Filter.PageNumber=this.pageNumber,this.showingNumber=this.pageNumber,this.jumpToPage.emit())}onPreviousPage(){this.pageData.Filter.PageNumber-=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.previousPage.emit()}onNextPage(){this.pageData.Filter.PageNumber+=1,this.pageNumber=this.pageData.Filter.PageNumber,this.showingNumber=this.pageNumber,this.nextPage.emit()}StoreRowsCountAPIResult(){this.httpService.post("/api/"+this.api,JSON.stringify(this.pageData.Filter)).subscribe(r=>{this.listTotal=r.Count?r.Count:r,this.pageData.HideStoreApiCount=!0})}}return c.\u0275fac=function(r){return new(r||c)(n.Y36(S.O))},c.\u0275cmp=n.Xpm({type:c,selectors:[["POS-complex-pagination"]],inputs:{pageData:"pageData",total:"total",api:"api"},outputs:{jumpToPage:"jumpToPage",previousPage:"previousPage",nextPage:"nextPage"},decls:12,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"fw-bold","fst-italic","hidden-xxs"],[4,"ngIf"],["style","cursor: pointer",3,"click",4,"ngIf"],["type","number","autoNum","",1,"text-end",2,"width","45px",3,"ngModel","keyup","ngModelChange"],[1,"btn-group"],["class","btn btn-outline-secondary btn-sm text-primary",3,"click",4,"ngIf"],[2,"cursor","pointer",3,"click"],[1,"border","p-3"],[1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fa-solid","fa-arrow-left"],[1,"fa-solid","fa-arrow-right"]],template:function(r,g){1&r&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2),n.YNc(3,x,2,2,"span",3),n.YNc(4,h,2,2,"span",3),n.YNc(5,M,3,0,"span",4),n.YNc(6,I,3,3,"span",3),n._uU(7," records ~ Page "),n.TgZ(8,"input",5),n.NdJ("keyup",function(f){return g.onJumpToPage(f)})("ngModelChange",function(f){return g.pageNumber=f}),n.qZA()()(),n.TgZ(9,"div",6),n.YNc(10,m,3,0,"a",7),n.YNc(11,E,3,0,"a",7),n.qZA()()),2&r&&(n.xp6(3),n.Q6J("ngIf",g.pageData.Filter.RowCount==g.total),n.xp6(1),n.Q6J("ngIf",g.pageData.Filter.RowCount!=g.total),n.xp6(1),n.Q6J("ngIf",!g.pageData.HideStoreApiCount),n.xp6(1),n.Q6J("ngIf",g.pageData.HideStoreApiCount),n.xp6(2),n.Q6J("ngModel",g.pageNumber),n.xp6(2),n.Q6J("ngIf",1!=g.pageData.Filter.PageNumber),n.xp6(1),n.Q6J("ngIf",g.total>=g.pageData.Filter.RowCount))},directives:[a.O5,F.wV,F.Fj,F.JJ,F.On],pipes:[a.JJ],styles:[""]}),c})(),v=(()=>{class c{}return c.\u0275fac=function(r){return new(r||c)},c.\u0275mod=n.oAB({type:c}),c.\u0275inj=n.cJS({imports:[[a.ez,F.u5,F.UX]]}),c})()},25245:(L,y,u)=>{u.d(y,{Hw:()=>G,Ps:()=>Q});var a=u(5e3),n=u(90508),F=u(63191),S=u(69808),x=u(39646),h=u(62843),M=u(4128),I=u(50727),m=u(18505),E=u(54004),P=u(70262),v=u(28746),c=u(13099),d=u(95698),r=u(40520),g=u(22313);const C=["*"];let f;function A(s){var _;return(null===(_=function w(){if(void 0===f&&(f=null,"undefined"!=typeof window)){const s=window;void 0!==s.trustedTypes&&(f=s.trustedTypes.createPolicy("angular#components",{createHTML:_=>_}))}return f}())||void 0===_?void 0:_.createHTML(s))||s}function U(s){return Error(`Unable to find icon with the name "${s}"`)}function B(s){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${s}".`)}function W(s){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${s}".`)}class T{constructor(_,t,e){this.url=_,this.svgText=t,this.options=e}}let O=(()=>{class s{constructor(t,e,o,i){this._httpClient=t,this._sanitizer=e,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=o}addSvgIcon(t,e,o){return this.addSvgIconInNamespace("",t,e,o)}addSvgIconLiteral(t,e,o){return this.addSvgIconLiteralInNamespace("",t,e,o)}addSvgIconInNamespace(t,e,o,i){return this._addSvgIconConfig(t,e,new T(o,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,o,i){const l=this._sanitizer.sanitize(a.q3G.HTML,o);if(!l)throw W(o);const p=A(l);return this._addSvgIconConfig(t,e,new T("",p,i))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,o){return this._addSvgIconSetConfig(t,new T(e,null,o))}addSvgIconSetLiteralInNamespace(t,e,o){const i=this._sanitizer.sanitize(a.q3G.HTML,e);if(!i)throw W(e);const l=A(i);return this._addSvgIconSetConfig(t,new T("",l,o))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,t);if(!e)throw B(t);const o=this._cachedIconsByUrl.get(e);return o?(0,x.of)(b(o)):this._loadSvgIconFromConfig(new T(t,null)).pipe((0,m.b)(i=>this._cachedIconsByUrl.set(e,i)),(0,E.U)(i=>b(i)))}getNamedSvgIcon(t,e=""){const o=j(e,t);let i=this._svgIconConfigs.get(o);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(e,t),i)return this._svgIconConfigs.set(o,i),this._getSvgFromConfig(i);const l=this._iconSetConfigs.get(e);return l?this._getSvgFromIconSetConfigs(t,l):(0,h._)(U(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?(0,x.of)(b(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe((0,E.U)(e=>b(e)))}_getSvgFromIconSetConfigs(t,e){const o=this._extractIconWithNameFromAnySet(t,e);if(o)return(0,x.of)(o);const i=e.filter(l=>!l.svgText).map(l=>this._loadSvgIconSetFromConfig(l).pipe((0,P.K)(p=>{const R=`Loading icon set URL: ${this._sanitizer.sanitize(a.q3G.RESOURCE_URL,l.url)} failed: ${p.message}`;return this._errorHandler.handleError(new Error(R)),(0,x.of)(null)})));return(0,M.D)(i).pipe((0,E.U)(()=>{const l=this._extractIconWithNameFromAnySet(t,e);if(!l)throw U(t);return l}))}_extractIconWithNameFromAnySet(t,e){for(let o=e.length-1;o>=0;o--){const i=e[o];if(i.svgText&&i.svgText.toString().indexOf(t)>-1){const l=this._svgElementFromConfig(i),p=this._extractSvgIconFromSet(l,t,i.options);if(p)return p}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe((0,m.b)(e=>t.svgText=e),(0,E.U)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?(0,x.of)(null):this._fetchIcon(t).pipe((0,m.b)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,o){const i=t.querySelector(`[id="${e}"]`);if(!i)return null;const l=i.cloneNode(!0);if(l.removeAttribute("id"),"svg"===l.nodeName.toLowerCase())return this._setSvgAttributes(l,o);if("symbol"===l.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(l),o);const p=this._svgElementFromString(A("<svg></svg>"));return p.appendChild(l),this._setSvgAttributes(p,o)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const o=e.querySelector("svg");if(!o)throw Error("<svg> tag not found");return o}_toSvgElement(t){const e=this._svgElementFromString(A("<svg></svg>")),o=t.attributes;for(let i=0;i<o.length;i++){const{name:l,value:p}=o[i];"id"!==l&&e.setAttribute(l,p)}for(let i=0;i<t.childNodes.length;i++)t.childNodes[i].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[i].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:o,options:i}=t,l=null!==(e=null==i?void 0:i.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw function H(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==o)throw Error(`Cannot fetch icon from URL "${o}".`);const p=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,o);if(!p)throw B(o);const N=this._inProgressUrlFetches.get(p);if(N)return N;const R=this._httpClient.get(p,{responseType:"text",withCredentials:l}).pipe((0,E.U)(D=>A(D)),(0,v.x)(()=>this._inProgressUrlFetches.delete(p)),(0,c.B)());return this._inProgressUrlFetches.set(p,R),R}_addSvgIconConfig(t,e,o){return this._svgIconConfigs.set(j(t,e),o),this}_addSvgIconSetConfig(t,e){const o=this._iconSetConfigs.get(t);return o?o.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let o=0;o<this._resolvers.length;o++){const i=this._resolvers[o](e,t);if(i)return z(i)?new T(i.url,null,i.options):new T(i,null)}}}return s.\u0275fac=function(t){return new(t||s)(a.LFG(r.eN,8),a.LFG(g.H7),a.LFG(S.K0,8),a.LFG(a.qLn))},s.\u0275prov=a.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function b(s){return s.cloneNode(!0)}function j(s,_){return s+":"+_}function z(s){return!(!s.url||!s.options)}const J=(0,n.pj)(class{constructor(s){this._elementRef=s}}),Z=new a.OlP("mat-icon-location",{providedIn:"root",factory:function k(){const s=(0,a.f3M)(S.K0),_=s?s.location:null;return{getPathname:()=>_?_.pathname+_.search:""}}}),K=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],V=K.map(s=>`[${s}]`).join(", "),$=/^url\(['"]?#(.*?)['"]?\)$/;let G=(()=>{class s extends J{constructor(t,e,o,i,l){super(t),this._iconRegistry=e,this._location=i,this._errorHandler=l,this._inline=!1,this._currentIconFetch=I.w0.EMPTY,o||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=(0,F.Ig)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let i=0;i<e.length;i++)e[i].textContent+=" ";const o=this._location.getPathname();this._previousPath=o,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(o),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const o=t.childNodes[e];(1!==o.nodeType||"svg"===o.nodeName.toLowerCase())&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((o,i)=>{o.forEach(l=>{i.setAttribute(l.name,`url('${t}#${l.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(V),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i<e.length;i++)K.forEach(l=>{const p=e[i],N=p.getAttribute(l),R=N?N.match($):null;if(R){let D=o.get(p);D||(D=[],o.set(p,D)),D.push({name:l,value:R[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,o]=this._splitIconName(t);e&&(this._svgNamespace=e),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,e).pipe((0,d.q)(1)).subscribe(i=>this._setSvgElement(i),i=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${o}! ${i.message}`))})}}}return s.\u0275fac=function(t){return new(t||s)(a.Y36(a.SBq),a.Y36(O),a.$8M("aria-hidden"),a.Y36(Z),a.Y36(a.qLn))},s.\u0275cmp=a.Xpm({type:s,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(a.uIk("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),a.ekj("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[a.qOj],ngContentSelectors:C,decls:1,vars:0,template:function(t,e){1&t&&(a.F$t(),a.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),s})(),Q=(()=>{class s{}return s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=a.oAB({type:s}),s.\u0275inj=a.cJS({imports:[[n.BQ],n.BQ]}),s})()}}]);
|