marketplacepos 3.6.4 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/Marketplace/3rdpartylicenses.txt +62 -62
  2. package/Marketplace/{chunk-FOXV7BI2.js → chunk-3CJHQAXO.js} +1 -1
  3. package/Marketplace/chunk-3UHMSDZV.js +1 -0
  4. package/Marketplace/{chunk-THMRV5XU.js → chunk-3UNDP7GV.js} +1 -1
  5. package/Marketplace/{chunk-4XO4E2OI.js → chunk-4ALKGSNS.js} +1 -1
  6. package/Marketplace/{chunk-TGTYAI7P.js → chunk-4ARMBRYZ.js} +1 -1
  7. package/Marketplace/chunk-5X5XYEG7.js +1 -0
  8. package/Marketplace/chunk-6JTRVIZI.js +1 -0
  9. package/Marketplace/{chunk-AYVVAF2D.js → chunk-6JUG64XK.js} +1 -1
  10. package/Marketplace/{chunk-HCXIXQ3P.js → chunk-6P6N5MPR.js} +5 -5
  11. package/Marketplace/{chunk-J6FCA2GC.js → chunk-6UISEE6K.js} +1 -1
  12. package/Marketplace/chunk-7EHMM2RQ.js +1 -0
  13. package/Marketplace/chunk-7H5NOLAT.js +4 -0
  14. package/Marketplace/chunk-7Q467LQU.js +2 -0
  15. package/Marketplace/{chunk-M7SI7KCP.js → chunk-ABFPL6TA.js} +1 -1
  16. package/Marketplace/{chunk-WDFNDY2L.js → chunk-AIE4RSCM.js} +1 -1
  17. package/Marketplace/chunk-B56SMRKB.js +2 -0
  18. package/Marketplace/chunk-BBHP36L3.js +1 -0
  19. package/Marketplace/chunk-BWB3YEE3.js +39 -0
  20. package/Marketplace/{chunk-Q2GGNFJX.js → chunk-C4WLCPS5.js} +1 -1
  21. package/Marketplace/{chunk-CC7AXJ62.js → chunk-C675HTF2.js} +1 -1
  22. package/Marketplace/{chunk-U7J6Y2ZR.js → chunk-D6U7F3FE.js} +1 -1
  23. package/Marketplace/{chunk-C6EE6UMS.js → chunk-DWRODF4P.js} +1 -1
  24. package/Marketplace/{chunk-PJIKFDGL.js → chunk-FAA5MCE6.js} +1 -1
  25. package/Marketplace/chunk-FCRIZ226.js +1 -0
  26. package/Marketplace/{chunk-2TNMBZG6.js → chunk-FJ6DK2PY.js} +1 -1
  27. package/Marketplace/{chunk-YDJHEKKE.js → chunk-GMQAKOAO.js} +1 -1
  28. package/Marketplace/{chunk-YW4ETQW2.js → chunk-IMCK7CZA.js} +1 -1
  29. package/Marketplace/{chunk-5W3D75EL.js → chunk-LW37VJAD.js} +1 -1
  30. package/Marketplace/{chunk-N5JT3L3P.js → chunk-M6EV5O6B.js} +1 -1
  31. package/Marketplace/{chunk-TM72OVCB.js → chunk-MNORCZ5U.js} +1 -1
  32. package/Marketplace/chunk-N3MNWSYS.js +5 -0
  33. package/Marketplace/{chunk-XLVT5MIX.js → chunk-NLLDIBGQ.js} +1 -1
  34. package/Marketplace/{chunk-CSPU7H6P.js → chunk-NUN457A7.js} +1 -1
  35. package/Marketplace/{chunk-ULL6P5FP.js → chunk-O5TGJGPX.js} +1 -1
  36. package/Marketplace/chunk-OCQGU4XF.js +1 -0
  37. package/Marketplace/{chunk-LRJDQQMW.js → chunk-OHJBV2SP.js} +1 -1
  38. package/Marketplace/{chunk-TKFPKCG2.js → chunk-PC3GKHB7.js} +1 -1
  39. package/Marketplace/chunk-PEDSV4QH.js +1 -0
  40. package/Marketplace/{chunk-WRPFY7PU.js → chunk-PGQNQRSE.js} +2 -2
  41. package/Marketplace/{chunk-UGPHFJAX.js → chunk-PKV2MX2V.js} +1 -1
  42. package/Marketplace/{chunk-BVNI7M43.js → chunk-PT4HB4BE.js} +1 -1
  43. package/Marketplace/{chunk-XRYND57F.js → chunk-QIPOMN5U.js} +1 -1
  44. package/Marketplace/chunk-RHSQYTCN.js +1 -0
  45. package/Marketplace/chunk-RJGQ3L4V.js +1 -0
  46. package/Marketplace/{chunk-5437ABT5.js → chunk-SNCK2FWA.js} +1 -1
  47. package/Marketplace/chunk-SRFXQR3O.js +1 -0
  48. package/Marketplace/{chunk-URMIO2PO.js → chunk-SW4RH2OZ.js} +1 -1
  49. package/Marketplace/{chunk-ZO24DBCC.js → chunk-T3S6OSUW.js} +1 -1
  50. package/Marketplace/{chunk-7IYEHG7N.js → chunk-TCVITRSB.js} +1 -1
  51. package/Marketplace/{chunk-NP4NUU26.js → chunk-UF6UXQ4F.js} +1 -1
  52. package/Marketplace/{chunk-PO44ILHG.js → chunk-UUWXBTMC.js} +1 -1
  53. package/Marketplace/{chunk-JTPNWUC5.js → chunk-V6WGN4CJ.js} +1 -1
  54. package/Marketplace/chunk-VW7ZPKO3.js +3 -0
  55. package/Marketplace/chunk-WHDLWSC7.js +1 -0
  56. package/Marketplace/{chunk-4EAH4CVW.js → chunk-WJX6E5SF.js} +1 -1
  57. package/Marketplace/chunk-WO5J2KLB.js +1 -0
  58. package/Marketplace/{chunk-O4JO5HBG.js → chunk-XYLU3LCF.js} +1 -1
  59. package/Marketplace/{chunk-EX7JS5XV.js → chunk-YCOV6QF3.js} +1 -1
  60. package/Marketplace/chunk-YMDCJACA.js +1 -0
  61. package/Marketplace/{chunk-EZPFNEBG.js → chunk-ZKEOQVK3.js} +1 -1
  62. package/Marketplace/chunk-ZXG2LRR7.js +2 -0
  63. package/Marketplace/index.html +2 -2
  64. package/Marketplace/main-X7AMGDRI.js +1 -0
  65. package/Marketplace/{styles-5ZLA5BQS.css → styles-QFHBM646.css} +1 -1
  66. package/package.json +1 -1
  67. package/Marketplace/chunk-4JJEXEXD.js +0 -1
  68. package/Marketplace/chunk-6CMIQC4Z.js +0 -39
  69. package/Marketplace/chunk-6JF7QYRS.js +0 -2
  70. package/Marketplace/chunk-7W5OCB74.js +0 -1
  71. package/Marketplace/chunk-ART3IBLH.js +0 -1
  72. package/Marketplace/chunk-AUQYI2EA.js +0 -1
  73. package/Marketplace/chunk-BWTDHNZV.js +0 -1
  74. package/Marketplace/chunk-C2A52LSM.js +0 -2
  75. package/Marketplace/chunk-D5NWJJ3K.js +0 -1
  76. package/Marketplace/chunk-F5TBMY3G.js +0 -1
  77. package/Marketplace/chunk-G7VXQRNU.js +0 -1
  78. package/Marketplace/chunk-GGUUOJBM.js +0 -4
  79. package/Marketplace/chunk-GOLQA2OV.js +0 -1
  80. package/Marketplace/chunk-IYJYQNSW.js +0 -1
  81. package/Marketplace/chunk-MWEX4KT3.js +0 -5
  82. package/Marketplace/chunk-N4KAWMLG.js +0 -1
  83. package/Marketplace/chunk-PJ55JADV.js +0 -1
  84. package/Marketplace/chunk-TRPWLPXX.js +0 -1
  85. package/Marketplace/chunk-UIXUUR3M.js +0 -1
  86. package/Marketplace/chunk-WAQZNQJA.js +0 -2
  87. package/Marketplace/chunk-WEPTPOTB.js +0 -1
  88. package/Marketplace/chunk-XB6JTMTF.js +0 -1
  89. package/Marketplace/chunk-XGU6OKNN.js +0 -1
  90. package/Marketplace/chunk-XKSSZDF5.js +0 -1
  91. package/Marketplace/chunk-YSP6AH3T.js +0 -1
  92. package/Marketplace/chunk-YZSU7OTN.js +0 -3
  93. package/Marketplace/main-C2ZAIPC7.js +0 -1
  94. /package/Marketplace/{chunk-UTOILVIA.js → chunk-DZ4C4BLL.js} +0 -0
  95. /package/Marketplace/{chunk-72YRW3ZC.js → chunk-HET33HC6.js} +0 -0
  96. /package/Marketplace/{chunk-NDVNSHV5.js → chunk-WAAT6CHK.js} +0 -0
  97. /package/Marketplace/{polyfills-HPRX66LM.js → polyfills-34NMXNBT.js} +0 -0
@@ -1,3 +1,3 @@
1
- import{a as st,b as dt,c as qt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-UGPHFJAX.js";import{a as Ut}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-5W3D75EL.js";import{d as Qt,e as rt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-YDJHEKKE.js";import{f as Yt,g as it,h as Nt,j as nt,k as Lt,l as Bt,o as jt,p as ge,s as Ht}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-C2A52LSM.js";import{D as at,E as Pt,F as X,J as zt,L as $t,O as Kt,R as _,S as T,U as He,a as N,f as Ft,g as W,h as Rt,j as je,m as Tt,y as Ot}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-J6FCA2GC.js";import{a as Ye,d as Ne,e as _e,f as Et,g as xt,j as Le,n as Be}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-M7SI7KCP.js";import{$ as J,$a as $,A as oe,B as bt,Ba as O,Fa as h,Ga as o,Gb as It,Ha as wt,Hb as w,I as Ae,Ia as P,Ib as R,Ja as p,Jb as Pe,Ka as We,Kb as k,La as H,Na as b,Oa as v,Pa as xe,Qa as F,S as we,Ta as Xe,Ua as z,Va as ce,Vb as Vt,Wa as Fe,Xa as Re,Xb as Ze,Ya as Te,Z as ke,Za as c,_a as u,a as E,aa as Dt,ba as Me,c as B,ca as Ie,da as le,db as he,ea as y,eb as Oe,fa as yt,fb as kt,fc as St,ga as x,hb as g,ia as j,ib as Mt,ja as C,jb as m,ka as A,kb as ue,la as Ue,lb as ee,ma as Ct,n as Ce,na as Ge,oa as At,pa as Ve,pb as D,qa as Se,qb as Y,rb as te,sa as Ee,sc as Je,tb as K,tc as pe,wc as Q,xc as et,yc as tt,zc as me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-PJIKFDGL.js";var pa=["mat-calendar-body",""];function ma(r,i){if(r&1&&(c(0,"tr",0)(1,"td",2),D(2),u()()),r&2){let d=m();h(1),xe("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),b("colspan",d.numCols),h(1),te(" ",d.label," ")}}function _a(r,i){if(r&1&&(c(0,"td",2),D(1),u()),r&2){let d=m(2);xe("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),b("colspan",d._firstRowOffset),h(1),te(" ",d._firstRowOffset>=d.labelMinRequiredCells?d.label:""," ")}}function ga(r,i){if(r&1){let d=he();c(0,"td",5)(1,"button",6),g("click",function(a){let n=C(d).$implicit,s=m(2);return A(s._cellClicked(n,a))})("focus",function(a){let n=C(d).$implicit,s=m(2);return A(s._emitActiveDateChange(n,a))}),c(2,"span",7),D(3),u(),$(4,"span",8),u()()}if(r&2){let d=i.$implicit,e=i.$index,a=m().$index,t=m();xe("width",t._cellWidth)("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),b("data-mat-row",a)("data-mat-col",e),h(1),F("mat-calendar-body-disabled",!d.enabled)("mat-calendar-body-active",t._isActiveCell(a,e))("mat-calendar-body-range-start",t._isRangeStart(d.compareValue))("mat-calendar-body-range-end",t._isRangeEnd(d.compareValue))("mat-calendar-body-in-range",t._isInRange(d.compareValue))("mat-calendar-body-comparison-bridge-start",t._isComparisonBridgeStart(d.compareValue,a,e))("mat-calendar-body-comparison-bridge-end",t._isComparisonBridgeEnd(d.compareValue,a,e))("mat-calendar-body-comparison-start",t._isComparisonStart(d.compareValue))("mat-calendar-body-comparison-end",t._isComparisonEnd(d.compareValue))("mat-calendar-body-in-comparison-range",t._isInComparisonRange(d.compareValue))("mat-calendar-body-preview-start",t._isPreviewStart(d.compareValue))("mat-calendar-body-preview-end",t._isPreviewEnd(d.compareValue))("mat-calendar-body-in-preview",t._isInPreview(d.compareValue)),v("ngClass",d.cssClasses)("tabindex",t._isActiveCell(a,e)?0:-1),b("aria-label",d.ariaLabel)("aria-disabled",!d.enabled||null)("aria-pressed",t._isSelected(d.compareValue))("aria-current",t.todayValue===d.compareValue?"date":null)("aria-describedby",t._getDescribedby(d.compareValue)),h(1),F("mat-calendar-body-selected",t._isSelected(d.compareValue))("mat-calendar-body-comparison-identical",t._isComparisonIdentical(d.compareValue))("mat-calendar-body-today",t.todayValue===d.compareValue),h(1),te(" ",d.displayValue," ")}}function fa(r,i){if(r&1&&(c(0,"tr",3),z(1,_a,2,6,"td",4),Re(2,ga,5,48,"td",9,Fe),u()),r&2){let d=i.$implicit,e=i.$index,a=m();h(1),ce(1,e===0&&a._firstRowOffset?1:-1),h(1),Te(d)}}function va(r,i){if(r&1&&(c(0,"th",4)(1,"span",5),D(2),u(),c(3,"span",6),D(4),u()()),r&2){let d=i.$implicit;h(2),Y(d.long),h(2),Y(d.narrow)}}var ia=["*"];function ba(r,i){}function Da(r,i){if(r&1){let d=he();c(0,"mat-month-view",2),g("activeDateChange",function(a){C(d);let t=m();return A(t.activeDate=a)})("_userSelection",function(a){C(d);let t=m();return A(t._dateSelected(a))})("dragStarted",function(a){C(d);let t=m();return A(t._dragStarted(a))})("dragEnded",function(a){C(d);let t=m();return A(t._dragEnded(a))}),u()}if(r&2){let d=m();v("activeDate",d.activeDate)("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)("comparisonStart",d.comparisonStart)("comparisonEnd",d.comparisonEnd)("startDateAccessibleName",d.startDateAccessibleName)("endDateAccessibleName",d.endDateAccessibleName)("activeDrag",d._activeDrag)}}function ya(r,i){if(r&1){let d=he();c(0,"mat-year-view",3),g("activeDateChange",function(a){C(d);let t=m();return A(t.activeDate=a)})("monthSelected",function(a){C(d);let t=m();return A(t._monthSelectedInYearView(a))})("selectedChange",function(a){C(d);let t=m();return A(t._goToDateInView(a,"month"))}),u()}if(r&2){let d=m();v("activeDate",d.activeDate)("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)}}function Ca(r,i){if(r&1){let d=he();c(0,"mat-multi-year-view",4),g("activeDateChange",function(a){C(d);let t=m();return A(t.activeDate=a)})("yearSelected",function(a){C(d);let t=m();return A(t._yearSelectedInMultiYearView(a))})("selectedChange",function(a){C(d);let t=m();return A(t._goToDateInView(a,"year"))}),u()}if(r&2){let d=m();v("activeDate",d.activeDate)("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)}}function Aa(r,i){}var wa=["button"];function ka(r,i){r&1&&(Ue(),c(0,"svg",3),$(1,"path",4),u())}var Ma=[[["","matDatepickerToggleIcon",""]]],Ia=["[matDatepickerToggleIcon]"],Va=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Sa=["input[matStartDate]","input[matEndDate]"];function Ea(r,i){r&1&&(c(0,"div",0),ee(1),u())}var ye=(()=>{let i=class i{constructor(){this.changes=new B,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,a){return`${e} \u2013 ${a}`}formatYearRangeLabel(e,a){return`${e} to ${a}`}};i.\u0275fac=function(a){return new(a||i)},i.\u0275prov=J({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})(),be=class{constructor(i,d,e,a,t={},n=i,s){this.value=i,this.displayValue=d,this.ariaLabel=e,this.enabled=a,this.cssClasses=t,this.compareValue=n,this.rawValue=s}},xa=1,Gt=je({passive:!1,capture:!0}),q=je({passive:!0,capture:!0}),ze=je({passive:!0}),re=(()=>{let i=class i{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,a){this._elementRef=e,this._ngZone=a,this._platform=le(Rt),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p,this.previewChange=new p,this.activeDateChange=new p,this.dragStarted=new p,this.dragEnded=new p,this._didDragSinceMouseDown=!1,this._enterHandler=t=>{if(this._skipNextFocus&&t.type==="focus"){this._skipNextFocus=!1;return}if(t.target&&this.isRange){let n=this._getCellFromElement(t.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:t}))}},this._touchmoveHandler=t=>{if(!this.isRange)return;let n=Wt(t),s=n?this._getCellFromElement(n):null;n!==t.target&&(this._didDragSinceMouseDown=!0),lt(t.target)&&t.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:t}))},this._leaveHandler=t=>{this.previewEnd!==null&&this.isRange&&(t.type!=="blur"&&(this._didDragSinceMouseDown=!0),t.target&&this._getCellFromElement(t.target)&&!(t.relatedTarget&&this._getCellFromElement(t.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t})))},this._mousedownHandler=t=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=t.target&&this._getCellFromElement(t.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:t})})},this._mouseupHandler=t=>{if(!this.isRange)return;let n=lt(t.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:t})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(n);this.dragEnded.emit({value:s?.rawValue??null,event:t})})},this._touchendHandler=t=>{let n=Wt(t);n&&this._mouseupHandler({target:n})},this._id=`mat-calendar-body-${xa++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,a.runOutsideAngular(()=>{let t=e.nativeElement;t.addEventListener("touchmove",this._touchmoveHandler,Gt),t.addEventListener("mouseenter",this._enterHandler,q),t.addEventListener("focus",this._enterHandler,q),t.addEventListener("mouseleave",this._leaveHandler,q),t.addEventListener("blur",this._leaveHandler,q),t.addEventListener("mousedown",this._mousedownHandler,ze),t.addEventListener("touchstart",this._mousedownHandler,ze),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,a){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:a})}_emitActiveDateChange(e,a){e.enabled&&this.activeDateChange.emit({value:e.value,event:a})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let a=e.numCols,{rows:t,numCols:n}=this;(e.rows||a)&&(this._firstRowOffset=t&&t.length&&t[0].length?n-t[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/n}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/n}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Gt),e.removeEventListener("mouseenter",this._enterHandler,q),e.removeEventListener("focus",this._enterHandler,q),e.removeEventListener("mouseleave",this._leaveHandler,q),e.removeEventListener("blur",this._leaveHandler,q),e.removeEventListener("mousedown",this._mousedownHandler,ze),e.removeEventListener("touchstart",this._mousedownHandler,ze),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,a){let t=e*this.numCols+a;return e&&(t-=this._firstRowOffset),t==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ae(1)).subscribe(()=>{setTimeout(()=>{let a=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");a&&(e||(this._skipNextFocus=!0),a.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return ct(e,this.startValue,this.endValue)}_isRangeEnd(e){return ht(e,this.startValue,this.endValue)}_isInRange(e){return ut(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return ct(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,t){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let n=this.rows[a][t-1];if(!n){let s=this.rows[a-1];n=s&&s[s.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(e,a,t){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let n=this.rows[a][t+1];if(!n){let s=this.rows[a+1];n=s&&s[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(e){return ht(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return ut(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return ct(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ht(e,this.previewStart,this.previewEnd)}_isInPreview(e){return ut(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){let a=lt(e);if(a){let t=a.getAttribute("data-mat-row"),n=a.getAttribute("data-mat-col");if(t&&n)return this.rows[parseInt(t)][parseInt(n)]}return null}};i.\u0275fac=function(a){return new(a||i)(o(O),o(We))},i.\u0275cmp=y({type:i,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[j],attrs:pa,decls:7,vars:5,consts:[["aria-hidden","true"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"]],template:function(a,t){a&1&&(z(0,ma,3,6,"tr",0),Re(1,fa,4,1,"tr",3,Fe),c(3,"label",1),D(4),u(),c(5,"label",1),D(6),u()),a&2&&(ce(0,t._firstRowOffset<t.labelMinRequiredCells?0:-1),h(1),Te(t.rows),h(2),v("id",t._startDateLabelId),h(1),te(" ",t.startDateAccessibleName,`
1
+ import{a as st,b as dt,c as qt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-PKV2MX2V.js";import{a as Ut}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-LW37VJAD.js";import{d as Qt,e as rt}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-GMQAKOAO.js";import{f as Yt,g as it,h as Nt,i as nt,j as Lt,k as Bt,l as jt,m as ge,p as Ht}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-ZXG2LRR7.js";import{D as at,E as Pt,F as X,J as zt,L as $t,O as Kt,R as _,S as T,U as He,a as N,f as Ft,g as W,h as Rt,j as je,m as Tt,y as Ot}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-6UISEE6K.js";import{a as Ye,d as Ne,e as _e,f as Et,g as xt,j as Le,n as Be}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-ABFPL6TA.js";import{$ as J,$a as $,A as oe,B as bt,Ba as O,Fa as h,Ga as o,Gb as It,Ha as wt,Hb as w,I as Ae,Ia as P,Ib as R,Ja as p,Jb as Pe,Ka as We,Kb as k,La as H,Na as b,Oa as v,Pa as xe,Qa as F,S as we,Ta as Xe,Ua as z,Va as ce,Vb as Vt,Wa as Fe,Xa as Re,Xb as Ze,Ya as Te,Z as ke,Za as c,_a as u,a as E,aa as Dt,ba as Me,c as B,ca as Ie,da as le,db as he,ea as y,eb as Oe,fa as yt,fb as kt,fc as St,ga as x,hb as g,ia as j,ib as Mt,ja as C,jb as m,ka as A,kb as ue,la as Ue,lb as ee,ma as Ct,n as Ce,na as Ge,oa as At,pa as Ve,pb as D,qa as Se,qb as Y,rb as te,sa as Ee,sc as Je,tb as K,tc as pe,wc as Q,xc as et,yc as tt,zc as me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-FAA5MCE6.js";var pa=["mat-calendar-body",""];function ma(r,i){if(r&1&&(c(0,"tr",0)(1,"td",2),D(2),u()()),r&2){let d=m();h(1),xe("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),b("colspan",d.numCols),h(1),te(" ",d.label," ")}}function _a(r,i){if(r&1&&(c(0,"td",2),D(1),u()),r&2){let d=m(2);xe("padding-top",d._cellPadding)("padding-bottom",d._cellPadding),b("colspan",d._firstRowOffset),h(1),te(" ",d._firstRowOffset>=d.labelMinRequiredCells?d.label:""," ")}}function ga(r,i){if(r&1){let d=he();c(0,"td",5)(1,"button",6),g("click",function(a){let n=C(d).$implicit,s=m(2);return A(s._cellClicked(n,a))})("focus",function(a){let n=C(d).$implicit,s=m(2);return A(s._emitActiveDateChange(n,a))}),c(2,"span",7),D(3),u(),$(4,"span",8),u()()}if(r&2){let d=i.$implicit,e=i.$index,a=m().$index,t=m();xe("width",t._cellWidth)("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),b("data-mat-row",a)("data-mat-col",e),h(1),F("mat-calendar-body-disabled",!d.enabled)("mat-calendar-body-active",t._isActiveCell(a,e))("mat-calendar-body-range-start",t._isRangeStart(d.compareValue))("mat-calendar-body-range-end",t._isRangeEnd(d.compareValue))("mat-calendar-body-in-range",t._isInRange(d.compareValue))("mat-calendar-body-comparison-bridge-start",t._isComparisonBridgeStart(d.compareValue,a,e))("mat-calendar-body-comparison-bridge-end",t._isComparisonBridgeEnd(d.compareValue,a,e))("mat-calendar-body-comparison-start",t._isComparisonStart(d.compareValue))("mat-calendar-body-comparison-end",t._isComparisonEnd(d.compareValue))("mat-calendar-body-in-comparison-range",t._isInComparisonRange(d.compareValue))("mat-calendar-body-preview-start",t._isPreviewStart(d.compareValue))("mat-calendar-body-preview-end",t._isPreviewEnd(d.compareValue))("mat-calendar-body-in-preview",t._isInPreview(d.compareValue)),v("ngClass",d.cssClasses)("tabindex",t._isActiveCell(a,e)?0:-1),b("aria-label",d.ariaLabel)("aria-disabled",!d.enabled||null)("aria-pressed",t._isSelected(d.compareValue))("aria-current",t.todayValue===d.compareValue?"date":null)("aria-describedby",t._getDescribedby(d.compareValue)),h(1),F("mat-calendar-body-selected",t._isSelected(d.compareValue))("mat-calendar-body-comparison-identical",t._isComparisonIdentical(d.compareValue))("mat-calendar-body-today",t.todayValue===d.compareValue),h(1),te(" ",d.displayValue," ")}}function fa(r,i){if(r&1&&(c(0,"tr",3),z(1,_a,2,6,"td",4),Re(2,ga,5,48,"td",9,Fe),u()),r&2){let d=i.$implicit,e=i.$index,a=m();h(1),ce(1,e===0&&a._firstRowOffset?1:-1),h(1),Te(d)}}function va(r,i){if(r&1&&(c(0,"th",4)(1,"span",5),D(2),u(),c(3,"span",6),D(4),u()()),r&2){let d=i.$implicit;h(2),Y(d.long),h(2),Y(d.narrow)}}var ia=["*"];function ba(r,i){}function Da(r,i){if(r&1){let d=he();c(0,"mat-month-view",2),g("activeDateChange",function(a){C(d);let t=m();return A(t.activeDate=a)})("_userSelection",function(a){C(d);let t=m();return A(t._dateSelected(a))})("dragStarted",function(a){C(d);let t=m();return A(t._dragStarted(a))})("dragEnded",function(a){C(d);let t=m();return A(t._dragEnded(a))}),u()}if(r&2){let d=m();v("activeDate",d.activeDate)("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)("comparisonStart",d.comparisonStart)("comparisonEnd",d.comparisonEnd)("startDateAccessibleName",d.startDateAccessibleName)("endDateAccessibleName",d.endDateAccessibleName)("activeDrag",d._activeDrag)}}function ya(r,i){if(r&1){let d=he();c(0,"mat-year-view",3),g("activeDateChange",function(a){C(d);let t=m();return A(t.activeDate=a)})("monthSelected",function(a){C(d);let t=m();return A(t._monthSelectedInYearView(a))})("selectedChange",function(a){C(d);let t=m();return A(t._goToDateInView(a,"month"))}),u()}if(r&2){let d=m();v("activeDate",d.activeDate)("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)}}function Ca(r,i){if(r&1){let d=he();c(0,"mat-multi-year-view",4),g("activeDateChange",function(a){C(d);let t=m();return A(t.activeDate=a)})("yearSelected",function(a){C(d);let t=m();return A(t._yearSelectedInMultiYearView(a))})("selectedChange",function(a){C(d);let t=m();return A(t._goToDateInView(a,"year"))}),u()}if(r&2){let d=m();v("activeDate",d.activeDate)("selected",d.selected)("dateFilter",d.dateFilter)("maxDate",d.maxDate)("minDate",d.minDate)("dateClass",d.dateClass)}}function Aa(r,i){}var wa=["button"];function ka(r,i){r&1&&(Ue(),c(0,"svg",3),$(1,"path",4),u())}var Ma=[[["","matDatepickerToggleIcon",""]]],Ia=["[matDatepickerToggleIcon]"],Va=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Sa=["input[matStartDate]","input[matEndDate]"];function Ea(r,i){r&1&&(c(0,"div",0),ee(1),u())}var ye=(()=>{let i=class i{constructor(){this.changes=new B,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,a){return`${e} \u2013 ${a}`}formatYearRangeLabel(e,a){return`${e} to ${a}`}};i.\u0275fac=function(a){return new(a||i)},i.\u0275prov=J({token:i,factory:i.\u0275fac,providedIn:"root"});let r=i;return r})(),be=class{constructor(i,d,e,a,t={},n=i,s){this.value=i,this.displayValue=d,this.ariaLabel=e,this.enabled=a,this.cssClasses=t,this.compareValue=n,this.rawValue=s}},xa=1,Gt=je({passive:!1,capture:!0}),q=je({passive:!0,capture:!0}),ze=je({passive:!0}),re=(()=>{let i=class i{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(e,a){this._elementRef=e,this._ngZone=a,this._platform=le(Rt),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new p,this.previewChange=new p,this.activeDateChange=new p,this.dragStarted=new p,this.dragEnded=new p,this._didDragSinceMouseDown=!1,this._enterHandler=t=>{if(this._skipNextFocus&&t.type==="focus"){this._skipNextFocus=!1;return}if(t.target&&this.isRange){let n=this._getCellFromElement(t.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:t}))}},this._touchmoveHandler=t=>{if(!this.isRange)return;let n=Wt(t),s=n?this._getCellFromElement(n):null;n!==t.target&&(this._didDragSinceMouseDown=!0),lt(t.target)&&t.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:s?.enabled?s:null,event:t}))},this._leaveHandler=t=>{this.previewEnd!==null&&this.isRange&&(t.type!=="blur"&&(this._didDragSinceMouseDown=!0),t.target&&this._getCellFromElement(t.target)&&!(t.relatedTarget&&this._getCellFromElement(t.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t})))},this._mousedownHandler=t=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=t.target&&this._getCellFromElement(t.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:t})})},this._mouseupHandler=t=>{if(!this.isRange)return;let n=lt(t.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:t})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let s=this._getCellFromElement(n);this.dragEnded.emit({value:s?.rawValue??null,event:t})})},this._touchendHandler=t=>{let n=Wt(t);n&&this._mouseupHandler({target:n})},this._id=`mat-calendar-body-${xa++}`,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,a.runOutsideAngular(()=>{let t=e.nativeElement;t.addEventListener("touchmove",this._touchmoveHandler,Gt),t.addEventListener("mouseenter",this._enterHandler,q),t.addEventListener("focus",this._enterHandler,q),t.addEventListener("mouseleave",this._leaveHandler,q),t.addEventListener("blur",this._leaveHandler,q),t.addEventListener("mousedown",this._mousedownHandler,ze),t.addEventListener("touchstart",this._mousedownHandler,ze),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(e,a){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:a})}_emitActiveDateChange(e,a){e.enabled&&this.activeDateChange.emit({value:e.value,event:a})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let a=e.numCols,{rows:t,numCols:n}=this;(e.rows||a)&&(this._firstRowOffset=t&&t.length&&t[0].length?n-t[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/n}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/n}%`)}ngOnDestroy(){let e=this._elementRef.nativeElement;e.removeEventListener("touchmove",this._touchmoveHandler,Gt),e.removeEventListener("mouseenter",this._enterHandler,q),e.removeEventListener("focus",this._enterHandler,q),e.removeEventListener("mouseleave",this._leaveHandler,q),e.removeEventListener("blur",this._leaveHandler,q),e.removeEventListener("mousedown",this._mousedownHandler,ze),e.removeEventListener("touchstart",this._mousedownHandler,ze),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(e,a){let t=e*this.numCols+a;return e&&(t-=this._firstRowOffset),t==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Ae(1)).subscribe(()=>{setTimeout(()=>{let a=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");a&&(e||(this._skipNextFocus=!0),a.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return ct(e,this.startValue,this.endValue)}_isRangeEnd(e){return ht(e,this.startValue,this.endValue)}_isInRange(e){return ut(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return ct(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,t){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let n=this.rows[a][t-1];if(!n){let s=this.rows[a-1];n=s&&s[s.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(e,a,t){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let n=this.rows[a][t+1];if(!n){let s=this.rows[a+1];n=s&&s[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(e){return ht(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return ut(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return ct(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ht(e,this.previewStart,this.previewEnd)}_isInPreview(e){return ut(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){return this.isRange?this.startValue===e&&this.endValue===e?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===e?this._startDateLabelId:this.endValue===e?this._endDateLabelId:null:null}_getCellFromElement(e){let a=lt(e);if(a){let t=a.getAttribute("data-mat-row"),n=a.getAttribute("data-mat-col");if(t&&n)return this.rows[parseInt(t)][parseInt(n)]}return null}};i.\u0275fac=function(a){return new(a||i)(o(O),o(We))},i.\u0275cmp=y({type:i,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[j],attrs:pa,decls:7,vars:5,consts:[["aria-hidden","true"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"]],template:function(a,t){a&1&&(z(0,ma,3,6,"tr",0),Re(1,fa,4,1,"tr",3,Fe),c(3,"label",1),D(4),u(),c(5,"label",1),D(6),u()),a&2&&(ce(0,t._firstRowOffset<t.labelMinRequiredCells?0:-1),h(1),Te(t.rows),h(2),v("id",t._startDateLabelId),h(1),te(" ",t.startDateAccessibleName,`
2
2
  `),h(1),v("id",t._endDateLabelId),h(1),te(" ",t.endDateAccessibleName,`
3
3
  `))},dependencies:[Ze],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0});let r=i;return r})();function ot(r){return r?.nodeName==="TD"}function lt(r){let i;return ot(r)?i=r:ot(r.parentNode)?i=r.parentNode:ot(r.parentNode?.parentNode)&&(i=r.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function ct(r,i,d){return d!==null&&i!==d&&r<d&&r===i}function ht(r,i,d){return i!==null&&i!==d&&r>=i&&r===d}function ut(r,i,d,e){return e&&i!==null&&d!==null&&i!==d&&r>=i&&r<=d}function Wt(r){let i=r.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var f=class{constructor(i,d){this.start=i,this.end=d}},U=(()=>{let i=class i{constructor(e,a){this.selection=e,this._adapter=a,this._selectionChanged=new B,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,a){let t=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:a,oldValue:t})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}};i.\u0275fac=function(a){wt()},i.\u0275prov=J({token:i,factory:i.\u0275fac});let r=i;return r})(),Fa=(()=>{let i=class i extends U{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new i(this._adapter);return e.updateSelection(this.selection,this),e}};i.\u0275fac=function(a){return new(a||i)(Ie(_))},i.\u0275prov=J({token:i,factory:i.\u0275fac});let r=i;return r})(),Ra=(()=>{let i=class i extends U{constructor(e){super(new f(null,null),e)}add(e){let{start:a,end:t}=this.selection;a==null?a=e:t==null?t=e:(a=e,t=null),super.updateSelection(new f(a,t),this)}isValid(){let{start:e,end:a}=this.selection;return e==null&&a==null?!0:e!=null&&a!=null?this._isValidDateInstance(e)&&this._isValidDateInstance(a)&&this._adapter.compareDate(e,a)<=0:(e==null||this._isValidDateInstance(e))&&(a==null||this._isValidDateInstance(a))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let e=new i(this._adapter);return e.updateSelection(this.selection,this),e}};i.\u0275fac=function(a){return new(a||i)(Ie(_))},i.\u0275prov=J({token:i,factory:i.\u0275fac});let r=i;return r})();function Ta(r,i){return r||new Fa(i)}var na={provide:U,deps:[[new Ve,new Se,U],_],useFactory:Ta};function Oa(r,i){return r||new Ra(i)}var Pa={provide:U,deps:[[new Ve,new Se,U],_],useFactory:Oa},$e=new Me("MAT_DATE_RANGE_SELECTION_STRATEGY"),Ya=(()=>{let i=class i{constructor(e){this._dateAdapter=e}selectionFinished(e,a){let{start:t,end:n}=a;return t==null?t=e:n==null&&e&&this._dateAdapter.compareDate(e,t)>=0?n=e:(t=e,n=null),new f(t,n)}createPreview(e,a){let t=null,n=null;return a.start&&!a.end&&e&&(t=a.start,n=e),new f(t,n)}createDrag(e,a,t){let n=a.start,s=a.end;if(!n||!s)return null;let l=this._dateAdapter,I=l.compareDate(n,s)!==0,V=l.getYear(t)-l.getYear(e),L=l.getMonth(t)-l.getMonth(e),S=l.getDate(t)-l.getDate(e);return I&&l.sameDate(e,a.start)?(n=t,l.compareDate(t,s)>0&&(s=l.addCalendarYears(s,V),s=l.addCalendarMonths(s,L),s=l.addCalendarDays(s,S))):I&&l.sameDate(e,a.end)?(s=t,l.compareDate(t,n)<0&&(n=l.addCalendarYears(n,V),n=l.addCalendarMonths(n,L),n=l.addCalendarDays(n,S))):(n=l.addCalendarYears(n,V),n=l.addCalendarMonths(n,L),n=l.addCalendarDays(n,S),s=l.addCalendarYears(s,V),s=l.addCalendarMonths(s,L),s=l.addCalendarDays(s,S)),new f(n,s)}};i.\u0275fac=function(a){return new(a||i)(Ie(_))},i.\u0275prov=J({token:i,factory:i.\u0275fac});let r=i;return r})();function Na(r,i){return r||new Ya(i)}var La={provide:$e,deps:[[new Ve,new Se,$e],_],useFactory:Na},pt=7,Xt=(()=>{let i=class i{get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._hasSameMonthAndYear(a,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof f?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,a,t,n,s){this._changeDetectorRef=e,this._dateFormats=a,this._dateAdapter=t,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=E.EMPTY,this.activeDrag=null,this.selectedChange=new p,this._userSelection=new p,this.dragStarted=new p,this.dragEnded=new p,this.activeDateChange=new p,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(we(null)).subscribe(()=>this._init())}ngOnChanges(e){let a=e.comparisonStart||e.comparisonEnd;a&&!a.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let a=e.value,t=this._getDateFromDayOfMonth(a),n,s;this._selected instanceof f?(n=this._getDateInCurrentMonth(this._selected.start),s=this._getDateInCurrentMonth(this._selected.end)):n=s=this._getDateInCurrentMonth(this._selected),(n!==a||s!==a)&&this.selectedChange.emit(t),this._userSelection.emit({value:t,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!W(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(pt+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%pt,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:a}){if(this._rangeStrategy){let t=a?a.rawValue:null,n=this._rangeStrategy.createPreview(t,this.selected,e);if(this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this.activeDrag&&t){let s=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,t,e);s&&(this._previewStart=this._getCellCompareValue(s.start),this._previewEnd=this._getCellCompareValue(s.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let a=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:a??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),a=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((s,l)=>({long:s,narrow:a[l]}));this._weekdays=n.slice(e).concat(n.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),a=this._dateAdapter.getDateNames();this._weeks=[[]];for(let t=0,n=this._firstWeekOffset;t<e;t++,n++){n==pt&&(this._weeks.push([]),n=0);let s=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t+1),l=this._shouldEnableDate(s),I=this._dateAdapter.format(s,this._dateFormats.display.dateA11yLabel),V=this.dateClass?this.dateClass(s,"month"):void 0;this._weeks[this._weeks.length-1].push(new be(t+1,a[t],I,l,V,this._getCellCompareValue(s),s))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,a){return!!(e&&a&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a))}_getCellCompareValue(e){if(e){let a=this._dateAdapter.getYear(e),t=this._dateAdapter.getMonth(e),n=this._dateAdapter.getDate(e);return new Date(a,t,n).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof f?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}};i.\u0275fac=function(a){return new(a||i)(o(P),o(T,8),o(_,8),o(X,8),o($e,8))},i.\u0275cmp=y({type:i,selectors:[["mat-month-view"]],viewQuery:function(a,t){if(a&1&&R(re,5),a&2){let n;w(n=k())&&(t._matCalendarBody=n.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[j],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(a,t){a&1&&(c(0,"table",0)(1,"thead",1)(2,"tr"),Re(3,va,5,2,"th",4,Fe),u(),c(5,"tr"),$(6,"th",2),u()(),c(7,"tbody",3),g("selectedValueChange",function(s){return t._dateSelected(s)})("activeDateChange",function(s){return t._updateActiveDate(s)})("previewChange",function(s){return t._previewChanged(s)})("dragStarted",function(s){return t.dragStarted.emit(s)})("dragEnded",function(s){return t._dragEnded(s)})("keyup",function(s){return t._handleCalendarBodyKeyup(s)})("keydown",function(s){return t._handleCalendarBodyKeydown(s)}),u()()),a&2&&(h(3),Te(t._weekdays),h(4),v("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("startValue",t._rangeStart)("endValue",t._rangeEnd)("comparisonStart",t._comparisonRangeStart)("comparisonEnd",t._comparisonRangeEnd)("previewStart",t._previewStart)("previewEnd",t._previewEnd)("isRange",t._isRange)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1)("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName))},dependencies:[re],encapsulation:2,changeDetection:0});let r=i;return r})(),M=24,mt=4,Zt=(()=>{let i=class i{get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),ra(this._dateAdapter,a,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){e instanceof f?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,a,t){this._changeDetectorRef=e,this._dateAdapter=a,this._dir=t,this._rerenderSubscription=E.EMPTY,this.selectedChange=new p,this.yearSelected=new p,this.activeDateChange=new p,this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(we(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let a=this._dateAdapter.getYear(this._activeDate)-fe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let t=0,n=[];t<M;t++)n.push(a+t),n.length==mt&&(this._years.push(n.map(s=>this._createCellForYear(s))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let a=e.value,t=this._dateAdapter.createDate(a,0,1),n=this._getDateFromYear(a);this.yearSelected.emit(t),this.selectedChange.emit(n)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromYear(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-mt);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,mt);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-fe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,M-fe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-M*10:-M);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?M*10:M);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return fe(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let a=this._dateAdapter.getMonth(this.activeDate),t=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,a,1));return this._dateAdapter.createDate(e,a,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForYear(e){let a=this._dateAdapter.createDate(e,0,1),t=this._dateAdapter.getYearName(a),n=this.dateClass?this.dateClass(a,"multi-year"):void 0;return new be(e,t,t,this._shouldEnableYear(e),n)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let a=this._dateAdapter.createDate(e,0,1);for(let t=a;this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear=null,e instanceof f){let a=e.start||e.end;a&&(this._selectedYear=this._dateAdapter.getYear(a))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}};i.\u0275fac=function(a){return new(a||i)(o(P),o(_,8),o(X,8))},i.\u0275cmp=y({type:i,selectors:[["mat-multi-year-view"]],viewQuery:function(a,t){if(a&1&&R(re,5),a&2){let n;w(n=k())&&(t._matCalendarBody=n.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(a,t){a&1&&(c(0,"table",0)(1,"thead",1)(2,"tr"),$(3,"th",2),u()(),c(4,"tbody",3),g("selectedValueChange",function(s){return t._yearSelected(s)})("activeDateChange",function(s){return t._updateActiveDate(s)})("keyup",function(s){return t._handleCalendarBodyKeyup(s)})("keydown",function(s){return t._handleCalendarBodyKeydown(s)}),u()()),a&2&&(h(4),v("rows",t._years)("todayValue",t._todayYear)("startValue",t._selectedYear)("endValue",t._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._getActiveCell()))},dependencies:[re],encapsulation:2,changeDetection:0});let r=i;return r})();function ra(r,i,d,e,a){let t=r.getYear(i),n=r.getYear(d),s=sa(r,e,a);return Math.floor((t-s)/M)===Math.floor((n-s)/M)}function fe(r,i,d,e){let a=r.getYear(i);return Ba(a-sa(r,d,e),M)}function sa(r,i,d){let e=0;return d?e=r.getYear(d)-M+1:i&&(e=r.getYear(i)),e}function Ba(r,i){return(r%i+i)%i}var Jt=(()=>{let i=class i{get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._dateAdapter.getYear(a)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){e instanceof f?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}constructor(e,a,t,n){this._changeDetectorRef=e,this._dateFormats=a,this._dateAdapter=t,this._dir=n,this._rerenderSubscription=E.EMPTY,this.selectedChange=new p,this.monthSelected=new p,this.activeDateChange=new p,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(we(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let a=e.value,t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(t);let n=this._getDateFromMonth(a);this.selectedChange.emit(n)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(a=>a.map(t=>this._createCellForMonth(t,e[t]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),t=this._dateAdapter.getNumDaysInMonth(a);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForMonth(e,a){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),n=this._dateAdapter.format(t,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(t,"year"):void 0;return new be(e,a.toLocaleUpperCase(),n,this._shouldEnableMonth(e),s)}_shouldEnableMonth(e){let a=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(a,e)||this._isYearAndMonthBeforeMinDate(a,e))return!1;if(!this.dateFilter)return!0;let t=this._dateAdapter.createDate(a,e,1);for(let n=t;this._dateAdapter.getMonth(n)==e;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(e,a){if(this.maxDate){let t=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return e>t||e===t&&a>n}return!1}_isYearAndMonthBeforeMinDate(e,a){if(this.minDate){let t=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return e<t||e===t&&a<n}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof f?this._selectedMonth=this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._selectedMonth=this._getMonthInCurrentYear(e)}};i.\u0275fac=function(a){return new(a||i)(o(P),o(T,8),o(_,8),o(X,8))},i.\u0275cmp=y({type:i,selectors:[["mat-year-view"]],viewQuery:function(a,t){if(a&1&&R(re,5),a&2){let n;w(n=k())&&(t._matCalendarBody=n.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(a,t){a&1&&(c(0,"table",0)(1,"thead",1)(2,"tr"),$(3,"th",2),u()(),c(4,"tbody",3),g("selectedValueChange",function(s){return t._monthSelected(s)})("activeDateChange",function(s){return t._updateActiveDate(s)})("keyup",function(s){return t._handleCalendarBodyKeyup(s)})("keydown",function(s){return t._handleCalendarBodyKeydown(s)}),u()()),a&2&&(h(4),v("label",t._yearLabel)("rows",t._months)("todayValue",t._todayMonth)("startValue",t._selectedMonth)("endValue",t._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._dateAdapter.getMonth(t.activeDate)))},dependencies:[re],encapsulation:2,changeDetection:0});let r=i;return r})(),ja=1,Ha=(()=>{let i=class i{constructor(e,a,t,n,s){this._intl=e,this.calendar=a,this._dateAdapter=t,this._dateFormats=n,this._id=`mat-calendar-header-${ja++}`,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-M)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:M)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,a){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a):ra(this._dateAdapter,e,a,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let a=this._dateAdapter.getYear(this.calendar.activeDate)-fe(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=a+M-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1)),s=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return[n,s]}};i.\u0275fac=function(a){return new(a||i)(o(ye),o(ke(()=>_t)),o(_,8),o(T,8),o(P))},i.\u0275cmp=y({type:i,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ia,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(a,t){a&1&&(ue(),c(0,"div",0)(1,"div",1)(2,"button",2),g("click",function(){return t.currentPeriodClicked()}),c(3,"span",3),D(4),u(),Ue(),c(5,"svg",4),$(6,"polygon",5),u()(),Ct(),$(7,"div",6),ee(8),c(9,"button",7),g("click",function(){return t.previousClicked()}),u(),c(10,"button",8),g("click",function(){return t.nextClicked()}),u()()(),c(11,"label",9),D(12),u()),a&2&&(h(2),b("aria-label",t.periodButtonLabel)("aria-describedby",t._periodButtonLabelId),h(2),Y(t.periodButtonText),h(1),F("mat-calendar-invert",t.calendar.currentView!=="month"),h(4),v("disabled",!t.previousEnabled()),b("aria-label",t.prevButtonLabel),h(1),v("disabled",!t.nextEnabled()),b("aria-label",t.nextButtonLabel),h(1),v("id",t._periodButtonLabelId),h(1),Y(t.periodButtonDescription))},dependencies:[st,dt],encapsulation:2,changeDetection:0});let r=i;return r})(),_t=(()=>{let i=class i{get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){e instanceof f?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){let a=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),a&&this.viewChanged.emit(a)}constructor(e,a,t,n){this._dateAdapter=a,this._dateFormats=t,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new p,this.yearSelected=new p,this.monthSelected=new p,this.viewChanged=new p(!0),this._userSelection=new p,this._userDragDrop=new p,this._activeDrag=null,this.stateChanges=new B,this._intlChanges=e.changes.subscribe(()=>{n.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new it(this.headerComponent||Ha),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let a=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,t=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,n=a||t||e.dateFilter;if(n&&!n.firstChange){let s=this._getCurrentViewComponent();s&&(this._changeDetectorRef.detectChanges(),s._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let a=e.value;(this.selected instanceof f||a&&!this._dateAdapter.sameDate(a,this.selected))&&this.selectedChange.emit(a),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,a){this.activeDate=e,this.currentView=a}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}};i.\u0275fac=function(a){return new(a||i)(o(ye),o(_,8),o(T,8),o(P))},i.\u0275cmp=y({type:i,selectors:[["mat-calendar"]],viewQuery:function(a,t){if(a&1&&(R(Xt,5),R(Jt,5),R(Zt,5)),a&2){let n;w(n=k())&&(t.monthView=n.first),w(n=k())&&(t.yearView=n.first),w(n=k())&&(t.multiYearView=n.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[K([na]),j],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(a,t){if(a&1&&(z(0,ba,0,0,"ng-template",0),c(1,"div",1),z(2,Da,1,11)(3,ya,1,6)(4,Ca,1,6),u()),a&2){let n;v("cdkPortalOutlet",t._calendarHeaderPortal),h(2),ce(2,(n=t.currentView)==="month"?2:n==="year"?3:n==="multi-year"?4:-1)}},dependencies:[at,nt,Xt,Jt,Zt],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0});let r=i;return r})(),ea={transformPanel:Je("transformPanel",[me("void => enter-dropdown",pe("120ms cubic-bezier(0, 0, 0.2, 1)",tt([Q({opacity:0,transform:"scale(1, 0.8)"}),Q({opacity:1,transform:"scale(1, 1)"})]))),me("void => enter-dialog",pe("150ms cubic-bezier(0, 0, 0.2, 1)",tt([Q({opacity:0,transform:"scale(0.7)"}),Q({transform:"none",opacity:1})]))),me("* => void",pe("100ms linear",Q({opacity:0})))]),fadeInCalendar:Je("fadeInCalendar",[et("void",Q({opacity:0})),et("enter",Q({opacity:1})),me("void => *",pe("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},za=0,da=new Me("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let r=le(ge);return()=>r.scrollStrategies.reposition()}});function $a(r){return()=>r.scrollStrategies.reposition()}var Ka={provide:da,deps:[ge],useFactory:$a},Qa=$t(class{constructor(r){this._elementRef=r}}),qa=(()=>{let i=class i extends Qa{constructor(e,a,t,n,s,l){super(e),this._changeDetectorRef=a,this._globalModel=t,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new E,this._animationDone=new B,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=l.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let a=this._model.selection,t=e.value,n=a instanceof f;if(n&&this._rangeSelectionStrategy){let s=this._rangeSelectionStrategy.selectionFinished(t,a,e.event);this._model.updateSelection(s,this)}else t&&(n||!this._dateAdapter.sameDate(t,a))&&this._model.add(t);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(e){this._isAnimating=e.phaseName==="start",this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,a){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,a&&this._changeDetectorRef.detectChanges()}};i.\u0275fac=function(a){return new(a||i)(o(O),o(P),o(U),o(_),o($e,8),o(ye))},i.\u0275cmp=y({type:i,selectors:[["mat-datepicker-content"]],viewQuery:function(a,t){if(a&1&&R(_t,5),a&2){let n;w(n=k())&&(t._calendar=n.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(a,t){a&1&&Mt("@transformPanel.start",function(s){return t._handleAnimationEvent(s)})("@transformPanel.done",function(s){return t._handleAnimationEvent(s)}),a&2&&(kt("@transformPanel",t._animationState),F("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[H],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(a,t){if(a&1&&(c(0,"div",0)(1,"mat-calendar",1),g("yearSelected",function(s){return t.datepicker._selectYear(s)})("monthSelected",function(s){return t.datepicker._selectMonth(s)})("viewChanged",function(s){return t.datepicker._viewChanged(s)})("_userSelection",function(s){return t._handleUserSelection(s)})("_userDragDrop",function(s){return t._handleUserDragDrop(s)}),u(),z(2,Aa,0,0,"ng-template",2),c(3,"button",3),g("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),D(4),u()()),a&2){let n;F("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),b("aria-modal",!0)("aria-labelledby",(n=t._dialogLabelId)!==null&&n!==void 0?n:void 0),h(1),v("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName),h(1),v("cdkPortalOutlet",t._actionsPortal),h(1),F("cdk-visually-hidden",!t._closeButtonFocused),v("color",t.color||"primary"),h(1),Y(t._closeButtonText)}},dependencies:[Ze,st,Ot,nt,_t],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[ea.transformPanel,ea.fadeInCalendar]},changeDetection:0});let r=i;return r})(),Z=(()=>{let i=class i{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=N(e)}get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){let a=N(e);a!==this._disabled&&(this._disabled=a,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=N(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Ft(e)}get opened(){return this._opened}set opened(e){N(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(e,a,t,n,s,l,I){this._overlay=e,this._ngZone=a,this._viewContainerRef=t,this._dateAdapter=s,this._dir=l,this._model=I,this._inputStateChanges=E.EMPTY,this._document=le(Vt),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new p,this.monthSelected=new p,this.viewChanged=new p(!0),this.openedStream=new p,this.closedStream=new p,this._opened=!1,this.id=`mat-datepicker-${za++}`,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new B,this._dateAdapter,this._scrollStrategy=n}ngOnChanges(e){let a=e.xPosition||e.yPosition;if(a&&!a.firstChange&&this._overlayRef){let t=this._overlayRef.getConfig().positionStrategy;t instanceof jt&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Tt(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this._restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",a=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:t,location:n}=this._componentRef;t._startExitAnimation(),t._animationDone.pipe(Ae(1)).subscribe(()=>{let s=this._document.activeElement;e&&(!s||s===this._document.activeElement||n.nativeElement.contains(s))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}e?setTimeout(a):a()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,a=new it(qa,this._viewContainerRef),t=this._overlayRef=this._overlay.create(new Bt({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(t).subscribe(n=>{n&&n.preventDefault(),this.close()}),t.keydownEvents().subscribe(n=>{let s=n.keyCode;(s===38||s===40||s===37||s===39||s===33||s===34)&&n.preventDefault()}),this._componentRef=t.attach(a),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Ae(1)).subscribe(()=>t.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let a=this.xPosition==="end"?"end":"start",t=a==="start"?"end":"start",n=this.yPosition==="above"?"bottom":"top",s=n==="top"?"bottom":"top";return e.withPositions([{originX:a,originY:s,overlayX:a,overlayY:n},{originX:a,originY:n,overlayX:a,overlayY:s},{originX:t,originY:s,overlayX:t,overlayY:n},{originX:t,originY:n,overlayX:t,overlayY:s}])}_getCloseStream(e){let a=["ctrlKey","shiftKey","metaKey"];return oe(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(bt(t=>t.keyCode===27&&!W(t)||this.datepickerInput&&W(t,"altKey")&&t.keyCode===38&&a.every(n=>!W(t,n)))))}};i.\u0275fac=function(a){return new(a||i)(o(ge),o(We),o(Xe),o(da),o(_,8),o(X,8),o(U))},i.\u0275dir=x({type:i,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[j]});let r=i;return r})(),$i=(()=>{let i=class i extends Z{};i.\u0275fac=(()=>{let e;return function(t){return(e||(e=Ge(i)))(t||i)}})(),i.\u0275cmp=y({type:i,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[K([na,{provide:Z,useExisting:i}]),H],decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0});let r=i;return r})(),ae=class{constructor(i,d){this.target=i,this.targetElement=d,this.value=this.target.value}},oa=(()=>{let i=class i{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let a=N(e),t=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0)),a&&this._isInitialized&&t.blur&&t.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(a=>{if(this._shouldHandleChangeEvent(a)){let t=this._getValueFromModel(a.selection);this._lastValueValid=this._isValidValue(t),this._cvaOnChange(t),this._onTouched(),this._formatValue(t),this.dateInput.emit(new ae(this,this._elementRef.nativeElement)),this.dateChange.emit(new ae(this,this._elementRef.nativeElement))}})}constructor(e,a,t){this._elementRef=e,this._dateAdapter=a,this._dateFormats=t,this.dateChange=new p,this.dateInput=new p,this.stateChanges=new B,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=E.EMPTY,this._localeSubscription=E.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=n=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n.value));return!s||this._matchesFilter(s)?null:{matDatepickerFilter:!0}},this._minValidator=n=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n.value)),l=this._getMinDate();return!l||!s||this._dateAdapter.compareDate(l,s)<=0?null:{matDatepickerMin:{min:l,actual:s}}},this._maxValidator=n=>{let s=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n.value)),l=this._getMaxDate();return!l||!s||this._dateAdapter.compareDate(l,s)>=0?null:{matDatepickerMax:{max:l,actual:s}}},this._lastValueValid=!1,this._localeSubscription=a.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){la(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let a=["ctrlKey","shiftKey","metaKey"];W(e,"altKey")&&e.keyCode===40&&a.every(n=>!W(e,n))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let a=this._lastValueValid,t=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t);let n=!this._dateAdapter.sameDate(t,this.value);!t||n?this._cvaOnChange(t):(e&&!this.value&&this._cvaOnChange(t),a!==this._lastValueValid&&this._validatorOnChange()),n&&(this._assignValue(t),this.dateInput.emit(new ae(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ae(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let a=this._getDateFilter();return!a||a(e)}};i.\u0275fac=function(a){return new(a||i)(o(O),o(_,8),o(T,8))},i.\u0275dir=x({type:i,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[j]});let r=i;return r})();function la(r,i){let d=Object.keys(r);for(let e of d){let{previousValue:a,currentValue:t}=r[e];if(i.isDateInstance(a)&&i.isDateInstance(t)){if(!i.sameDate(a,t))return!0}else return!0}return!1}var Ua={provide:Ye,useExisting:ke(()=>ca),multi:!0},Ga={provide:Ne,useExisting:ke(()=>ca),multi:!0},ca=(()=>{let i=class i extends oa{set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._validatorOnChange())}get max(){return this._max}set max(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){let a=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==a&&this._validatorOnChange()}constructor(e,a,t,n){super(e,a,t),this._formField=n,this._closedSubscription=E.EMPTY,this._validator=_e.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}};i.\u0275fac=function(a){return new(a||i)(o(O),o(_,8),o(T,8),o(rt,8))},i.\u0275dir=x({type:i,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(a,t){a&1&&g("input",function(s){return t._onInput(s.target.value)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(s){return t._onKeydown(s)}),a&2&&(Oe("disabled",t.disabled),b("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(t._datepicker==null?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[K([Ua,Ga,{provide:Ut,useExisting:i}]),H]});let r=i;return r})(),Wa=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275dir=x({type:i,selectors:[["","matDatepickerToggleIcon",""]]});let r=i;return r})(),Ki=(()=>{let i=class i{get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=N(e)}constructor(e,a,t){this._intl=e,this._changeDetectorRef=a,this._stateChanges=E.EMPTY;let n=Number(t);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Ce(),a=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Ce(),t=this.datepicker?oe(this.datepicker.openedStream,this.datepicker.closedStream):Ce();this._stateChanges.unsubscribe(),this._stateChanges=oe(this._intl.changes,e,a,t).subscribe(()=>this._changeDetectorRef.markForCheck())}};i.\u0275fac=function(a){return new(a||i)(o(ye),o(P),At("tabindex"))},i.\u0275cmp=y({type:i,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,t,n){if(a&1&&Pe(n,Wa,5),a&2){let s;w(s=k())&&(t._customIcon=s.first)}},viewQuery:function(a,t){if(a&1&&R(wa,5),a&2){let n;w(n=k())&&(t._button=n.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(a,t){a&1&&g("click",function(s){return t._open(s)}),a&2&&(b("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),F("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&t.datepicker.color==="accent")("mat-warn",t.datepicker&&t.datepicker.color==="warn"))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[j],ngContentSelectors:Ia,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(a,t){a&1&&(ue(Ma),c(0,"button",0,1),z(2,ka,2,0,":svg:svg",2),ee(3),u()),a&2&&(v("disabled",t.disabled)("disableRipple",t.disableRipple),b("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),h(2),ce(2,t._customIcon?-1:2))},dependencies:[dt],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0});let r=i;return r})();function Xa(r){return gt(r,!0)}function ta(r){return r.nodeType===Node.ELEMENT_NODE}function Za(r){return r.nodeName==="INPUT"}function Ja(r){return r.nodeName==="TEXTAREA"}function gt(r,i){if(ta(r)&&i){let e=(r.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((a,t)=>{let n=document.getElementById(t);return n&&a.push(n),a},[]);if(e.length)return e.map(a=>gt(a,!1)).join(" ")}if(ta(r)){let d=r.getAttribute("aria-label")?.trim();if(d)return d}if(Za(r)||Ja(r)){if(r.labels?.length)return Array.from(r.labels).map(a=>gt(a,!1)).join(" ");let d=r.getAttribute("placeholder")?.trim();if(d)return d;let e=r.getAttribute("title")?.trim();if(e)return e}return(r.textContent||"").replace(/\s+/g," ").trim()}var qe=new Me("MAT_DATE_RANGE_INPUT_PARENT"),ei=(()=>{let i=class i extends oa{constructor(e,a,t,n,s,l,I,V){super(a,I,V),this._rangeInput=e,this._elementRef=a,this._defaultErrorStateMatcher=t,this._injector=n,this._parentForm=s,this._parentFormGroup=l,this._dir=le(X,{optional:!0})}ngOnInit(){let e=this._injector.get(xt,null,{optional:!0,self:!0});e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return this._elementRef.nativeElement.value.length===0}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){let e=this._elementRef.nativeElement,a=e.value;return a.length>0?a:e.placeholder}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}_getAccessibleName(){return Xa(this._elementRef.nativeElement)}};i.\u0275fac=function(a){return new(a||i)(o(qe),o(O),o(He),o(Ee),o(Le,8),o(Be,8),o(_,8),o(T,8))},i.\u0275dir=x({type:i,features:[H]});let r=i;return r})(),ha=Kt(ei),ti=(()=>{let i=class i extends ha{constructor(e,a,t,n,s,l,I,V){super(e,a,t,n,s,l,I,V),this._startValidator=L=>{let S=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(L.value)),G=this._model?this._model.selection.end:null;return!S||!G||this._dateAdapter.compareDate(S,G)<=0?null:{matStartDateInvalid:{end:G,actual:S}}},this._validator=_e.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.start?!e.selection.start||!!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!!e.selection.start:!1}_assignValueToModel(e){if(this._model){let a=new f(e,this._model.selection.end);this._model.updateSelection(a,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_onKeydown(e){let a=this._rangeInput._endInput,t=this._elementRef.nativeElement,n=this._dir?.value!=="rtl";(e.keyCode===39&&n||e.keyCode===37&&!n)&&t.selectionStart===t.value.length&&t.selectionEnd===t.value.length?(e.preventDefault(),a._elementRef.nativeElement.setSelectionRange(0,0),a.focus()):super._onKeydown(e)}};i.\u0275fac=function(a){return new(a||i)(o(qe),o(O),o(He),o(Ee),o(Le,8),o(Be,8),o(_,8),o(T,8))},i.\u0275dir=x({type:i,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(a,t){a&1&&g("input",function(s){return t._onInput(s.target.value)})("change",function(){return t._onChange()})("keydown",function(s){return t._onKeydown(s)})("blur",function(){return t._onBlur()}),a&2&&(Oe("disabled",t.disabled),b("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",(t._rangeInput.rangePicker==null?null:t._rangeInput.rangePicker.opened)&&t._rangeInput.rangePicker.id||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[K([{provide:Ye,useExisting:i,multi:!0},{provide:Ne,useExisting:i,multi:!0}]),H]});let r=i;return r})(),ai=(()=>{let i=class i extends ha{constructor(e,a,t,n,s,l,I,V){super(e,a,t,n,s,l,I,V),this._endValidator=L=>{let S=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(L.value)),G=this._model?this._model.selection.start:null;return!S||!G||this._dateAdapter.compareDate(S,G)>=0?null:{matEndDateInvalid:{start:G,actual:S}}},this._validator=_e.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.end?!e.selection.end||!!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!!e.selection.end:!1}_assignValueToModel(e){if(this._model){let a=new f(this._model.selection.start,e);this._model.updateSelection(a,this)}}_onKeydown(e){let a=this._rangeInput._startInput,t=this._elementRef.nativeElement,n=this._dir?.value!=="rtl";if(e.keyCode===8&&!t.value)a.focus();else if((e.keyCode===37&&n||e.keyCode===39&&!n)&&t.selectionStart===0&&t.selectionEnd===0){e.preventDefault();let s=a._elementRef.nativeElement.value.length;a._elementRef.nativeElement.setSelectionRange(s,s),a.focus()}else super._onKeydown(e)}};i.\u0275fac=function(a){return new(a||i)(o(qe),o(O),o(He),o(Ee),o(Le,8),o(Be,8),o(_,8),o(T,8))},i.\u0275dir=x({type:i,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(a,t){a&1&&g("input",function(s){return t._onInput(s.target.value)})("change",function(){return t._onChange()})("keydown",function(s){return t._onKeydown(s)})("blur",function(){return t._onBlur()}),a&2&&(Oe("disabled",t.disabled),b("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",(t._rangeInput.rangePicker==null?null:t._rangeInput.rangePicker.opened)&&t._rangeInput.rangePicker.id||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[K([{provide:Ye,useExisting:i,multi:!0},{provide:Ne,useExisting:i,multi:!0}]),H]});let r=i;return r})(),ii=0,Qi=(()=>{let i=class i{get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){let e=this._startInput?._getPlaceholder()||"",a=this._endInput?._getPlaceholder()||"";return e||a?`${e} ${this.separator} ${a}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(e){this._required=N(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){let a=this._startInput,t=this._endInput,n=a&&a._matchesFilter(a.value),s=t&&t._matchesFilter(a.value);this._dateFilter=e,a&&a._matchesFilter(a.value)!==n&&a._validatorOnChange(),t&&t._matchesFilter(t.value)!==s&&t._validatorOnChange()}get min(){return this._min}set min(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._revalidate())}get max(){return this._max}set max(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){let a=N(e);a!==this._groupDisabled&&(this._groupDisabled=a,this.stateChanges.next(void 0))}get errorState(){return this._startInput&&this._endInput?this._startInput.errorState||this._endInput.errorState:!1}get empty(){let e=this._startInput?this._startInput.isEmpty():!1,a=this._endInput?this._endInput.isEmpty():!1;return e&&a}constructor(e,a,t,n,s){this._changeDetectorRef=e,this._elementRef=a,this._dateAdapter=n,this._formField=s,this._closedSubscription=E.EMPTY,this.id=`mat-date-range-input-${ii++}`,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new B,s?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&a.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=t}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(!this._model||!this._model.selection.start?this._startInput.focus():this._endInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),oe(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){la(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){let a=e==="start"?this._startInput:this._endInput;return a?a.getMirrorValue():""}_shouldHidePlaceholders(){return this._startInput?!this._startInput.isEmpty():!1}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){let e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=e!==null,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(_e.required)}};i.\u0275fac=function(a){return new(a||i)(o(P),o(O),o(Et,10),o(_,8),o(rt,8))},i.\u0275cmp=y({type:i,selectors:[["mat-date-range-input"]],contentQueries:function(a,t,n){if(a&1&&(Pe(n,ti,5),Pe(n,ai,5)),a&2){let s;w(s=k())&&(t._startInput=s.first),w(s=k())&&(t._endInput=s.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(a,t){a&2&&(b("id",t.id)("aria-labelledby",t._getAriaLabelledby())("aria-describedby",t._ariaDescribedBy)("data-mat-calendar",t.rangePicker?t.rangePicker.id:null),F("mat-date-range-input-hide-placeholders",t._shouldHidePlaceholders())("mat-date-range-input-required",t.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[K([{provide:Qt,useExisting:i},{provide:qe,useExisting:i}]),j],ngContentSelectors:Sa,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(a,t){a&1&&(ue(Va),c(0,"div",0),g("cdkFocusChange",function(s){return t._updateFocus(s)}),c(1,"div",1),ee(2),c(3,"span",2),D(4),u()(),c(5,"span",3),D(6),u(),c(7,"div",4),ee(8,1),c(9,"span",2),D(10),u()()()),a&2&&(h(4),Y(t._getInputMirrorValue("start")),h(1),F("mat-date-range-input-separator-hidden",t._shouldHideSeparator()),h(1),Y(t.separator),h(4),Y(t._getInputMirrorValue("end")))},dependencies:[at],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px;color:var(--mat-datepicker-range-input-separator-color)}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color)}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0});let r=i;return r})(),qi=(()=>{let i=class i extends Z{_forwardContentValues(e){super._forwardContentValues(e);let a=this.datepickerInput;a&&(e.comparisonStart=a.comparisonStart,e.comparisonEnd=a.comparisonEnd,e.startDateAccessibleName=a._getStartDateAccessibleName(),e.endDateAccessibleName=a._getEndDateAccessibleName())}};i.\u0275fac=(()=>{let e;return function(t){return(e||(e=Ge(i)))(t||i)}})(),i.\u0275cmp=y({type:i,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[K([Pa,La,{provide:Z,useExisting:i}]),H],decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0});let r=i;return r})(),Ui=(()=>{let i=class i{constructor(e){this._datepicker=e}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}};i.\u0275fac=function(a){return new(a||i)(o(Z))},i.\u0275dir=x({type:i,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(a,t){a&1&&g("click",function(){return t._applySelection()})}});let r=i;return r})(),Gi=(()=>{let i=class i{constructor(e){this._datepicker=e}};i.\u0275fac=function(a){return new(a||i)(o(Z))},i.\u0275dir=x({type:i,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(a,t){a&1&&g("click",function(){return t._datepicker.close()})}});let r=i;return r})(),Wi=(()=>{let i=class i{constructor(e,a){this._datepicker=e,this._viewContainerRef=a}ngAfterViewInit(){this._portal=new Nt(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&this._portal?.detach()}};i.\u0275fac=function(a){return new(a||i)(o(Z),o(Xe))},i.\u0275cmp=y({type:i,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(a,t){if(a&1&&R(It,5),a&2){let n;w(n=k())&&(t._template=n.first)}},ngContentSelectors:ia,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(a,t){a&1&&(ue(),z(0,Ea,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0});let r=i;return r})(),Xi=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=yt({type:i}),i.\u0275inj=Dt({providers:[ye,Ka],imports:[St,qt,Ht,Pt,Lt,zt,Yt]});let r=i;return r})();export{$i as a,ca as b,Ki as c,ti as d,ai as e,Qi as f,qi as g,Ui as h,Gi as i,Wi as j,Xi as k};
@@ -1 +1 @@
1
- import{a as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-YW4ETQW2.js";import{t as N,u as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-C2A52LSM.js";import{u as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-M7SI7KCP.js";import{c as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-F5TBMY3G.js";import{$a as m,Fa as i,Ga as T,Ja as w,Lb as I,Na as Z,Oa as c,Ua as s,Xb as O,Za as a,Zb as U,_a as l,_b as B,ab as x,bb as v,db as C,ea as k,fc as D,hb as f,ic as $,ja as _,jb as p,ka as h,mb as j,ob as P,pb as g,qb as b,rb as S,sb as L,ub as M,wb as y,za as u}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.6.4/Marketplace/chunk-PJIKFDGL.js";function q(e,o){if(e&1){let t=C();x(0),a(1,"img",19),f("click",function(n){_(t);let d=p();return h(d.openBiggerPicture(n))}),l(),v()}if(e&2){let t=p();i(1),c("src",t.image,u)}}function G(e,o){e&1&&m(0,"img",20)}function Q(e,o){if(e&1&&(x(0),a(1,"span",24)(2,"a",25),m(3,"i",26),l()(),v()),e&2){let t=p(2);i(2),c("href",t.redirectUrl,u)}}function X(e,o){if(e&1&&(a(0,"div",21),m(1,"i",22),a(2,"span"),g(3),l(),s(4,Q,4,1,"ng-container",23),l()),e&2){let t=p();i(3),b(t.code),i(1),c("ngIf",t.code!=="SKU not assigned"&&t.showRedirectIcon)}}function Y(e,o){if(e&1){let t=C();a(0,"div",27),f("click",function(){_(t);let n=p();return h(n.onEventDesc())}),m(1,"i",28),a(2,"span"),g(3),l()()}if(e&2){let t=p();i(3),b(t.description)}}function ee(e,o){if(e&1){let t=C();a(0,"div",29)(1,"input",30),f("change",function(n){_(t);let d=p();return h(d.onCheck(n.target.checked))}),l()()}}function te(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onDownload())}),m(1,"i",32),g(2," Download "),l()}}function ne(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onUpload())}),m(1,"i",33),g(2," Upload "),l()}}function ie(e,o){if(e&1){let t=C();a(0,"button",34),f("click",function(){_(t);let n=p();return h(n.onScan())}),m(1,"i",35),g(2," Scan "),l()}}var oe=e=>({"me-3":e});function re(e,o){if(e&1&&(x(0),a(1,"a",37),m(2,"img",38),l(),v()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(1),j("href",t.Url,u),i(1),c("ngClass",y(4,oe,r!=n.channels.length-1))("src",n.getChannelLogo(t),u)("matTooltip",t.Title?t.Title:t.Name)}}function ae(e,o){if(e&1&&(x(0),s(1,re,3,6,"ng-container",36),v()),e&2){let t=p();i(1),c("ngForOf",t.channels)}}var ce=e=>({"border-bottom pb-2":e});function le(e,o){if(e&1&&(a(0,"li")(1,"div",42)(2,"div",43)(3,"a",37),m(4,"img",44),a(5,"span",45),g(6),l()()()()()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(2),c("ngClass",y(4,ce,r!=n.channels.length-1)),i(1),c("href",t.Url,u),i(1),c("src",n.getChannelLogo(t),u),i(2),b(t.Title)}}function de(e,o){if(e&1&&(a(0,"div",39)(1,"button",40),g(2),l(),a(3,"ul",41),s(4,le,7,6,"li",36),l()()),e&2){let t=p();i(2),S(" ",t.channels.length," CHANNELS "),i(2),c("ngForOf",t.channels)}}var Se=(()=>{let o=class o{constructor(r){this.biggerPictureService=r,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.onUploadEvent=new w,this.onScanEvent=new w,this.checkBoxChange=new w,this.onDescEvent=new w,this.onDownloadEvent=new w}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let r=localStorage.getItem("Authorization"),n=JSON.parse(r)?.Host;this.redirectUrl=`https://${n}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(r){this.checkBoxChange.emit(r)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}getChannelLogo(r){return V.getChannelLogoByTypeId(r.TypeID)}openBiggerPicture(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload"},standalone:!0,features:[M],decls:26,vars:11,consts:[[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],["class","text-end gx-0",4,"ngIf"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],["class","fs-6 btn btn-light btn-sm",3,"click",4,"ngIf"],["DROPDOWN",""],[1,"rounded","imgUpload","float-left",3,"src","click"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fas","fa-external-link-alt"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download"],["aria-hidden","true",1,"fa","fa-upload"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-spinner"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,q,2,1,"ng-container",6)(7,G,1,0,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),f("click",function(){return d.onEventDesc()}),g(11),l(),s(12,X,5,2,"div",10)(13,Y,4,1,"div",11),l(),a(14,"div",12)(15,"div",13),s(16,ee,2,0,"div",14),l()()()(),a(17,"div",15)(18,"div"),s(19,te,3,0,"button",16)(20,ne,3,0,"button",16)(21,ie,3,0,"button",17),l(),a(22,"div"),s(23,ae,2,1,"ng-container",6)(24,de,5,2,"ng-template",null,18,I),l()()()),n&2){let E=P(8),A=P(25);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(1),c("ngIf",d.description),i(3),c("ngIf",d.showCheckBox),i(3),c("ngIf",d.downloadButton),i(1),c("ngIf",d.uploadButton),i(1),c("ngIf",d.scanButton),i(2),c("ngIf",d.channels.length<4)("ngIfElse",A)}},dependencies:[D,O,U,B,F,z,N],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let e=o;return e})();function pe(e,o){if(e&1){let t=C();x(0),a(1,"img",14),f("click",function(n){_(t);let d=p();return h(d.onZoomImage(n))}),l(),v()}if(e&2){let t=p();i(1),c("ngSrc",t.image)("fill",!0)}}function me(e,o){e&1&&m(0,"img",15),e&2&&c("fill",!0)}function se(e,o){if(e&1&&(a(0,"div",16),m(1,"i",17),a(2,"span"),g(3),l()()),e&2){let t=p();i(3),b(t.code)}}var ge=e=>({"border-bottom":e});function ue(e,o){if(e&1&&(x(0),a(1,"div",27)(2,"div",28),g(3),l(),a(4,"div")(5,"a",29),m(6,"i",30),l()()(),v()),e&2){let t=o.$implicit,r=o.index,n=p().$implicit;i(1),c("ngClass",y(4,ge,r!==(n==null?null:n.Variants.length)-1)),i(2),L(" ",t.ProductName," - ",t.Name," "),i(2),c("href",t.URL,u)}}var fe=e=>({"border-bottom-0":e});function _e(e,o){if(e&1&&(a(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),m(4,"img",22),a(5,"span",23),g(6),l()()()(),a(7,"div",24)(8,"div",25),s(9,ue,7,6,"ng-container",26),l()()()),e&2){let t=o.$implicit,r=o.index,n=p();c("ngClass",y(10,fe,n.channels.length-1==r)),i(1),c("id","heading"+r+n.code+n.id),i(1),Z("data-bs-target","#collapse"+r+n.code+n.id)("aria-controls","#collapse"+r+n.code+n.id),i(2),c("src",n.getChannelLogo(t.TypeID),u),i(1),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t.ChannelName:""),i(1),b(t.ChannelName),i(1),c("id","collapse"+r+n.code+n.id),Z("aria-labelledby","heading"+r+n.code+n.id),i(2),c("ngForOf",t.Variants)}}var Oe=(()=>{let o=class o{constructor(r){this.biggerPictureService=r}getChannelLogo(r){return V.getChannelLogoByTypeId(r)}onZoomImage(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",id:"id"},standalone:!0,features:[M],decls:16,vars:5,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"ngSrc","fill","click"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa","fa-external-link-alt"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,pe,2,2,"ng-container",6)(7,me,1,1,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),g(11),l(),s(12,se,4,1,"div",10),l()()(),a(13,"div",11)(14,"div",12),s(15,_e,10,12,"div",13),l()()()),n&2){let E=P(8);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(3),c("ngForOf",d.channels)}},dependencies:[D,O,U,B,F,z,N,$],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();export{Se as a,Oe as b};
1
+ import{a as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-IMCK7CZA.js";import{q as N,r as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-ZXG2LRR7.js";import{u as F}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-ABFPL6TA.js";import{c as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-BBHP36L3.js";import{$a as m,Fa as i,Ga as T,Ja as w,Lb as I,Na as Z,Oa as c,Ua as s,Xb as O,Za as a,Zb as U,_a as l,_b as B,ab as x,bb as v,db as C,ea as k,fc as D,hb as f,ic as $,ja as _,jb as p,ka as h,mb as j,ob as P,pb as g,qb as b,rb as S,sb as L,ub as M,wb as y,za as u}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-FAA5MCE6.js";function q(e,o){if(e&1){let t=C();x(0),a(1,"img",19),f("click",function(n){_(t);let d=p();return h(d.openBiggerPicture(n))}),l(),v()}if(e&2){let t=p();i(1),c("src",t.image,u)}}function G(e,o){e&1&&m(0,"img",20)}function Q(e,o){if(e&1&&(x(0),a(1,"span",24)(2,"a",25),m(3,"i",26),l()(),v()),e&2){let t=p(2);i(2),c("href",t.redirectUrl,u)}}function X(e,o){if(e&1&&(a(0,"div",21),m(1,"i",22),a(2,"span"),g(3),l(),s(4,Q,4,1,"ng-container",23),l()),e&2){let t=p();i(3),b(t.code),i(1),c("ngIf",t.code!=="SKU not assigned"&&t.showRedirectIcon)}}function Y(e,o){if(e&1){let t=C();a(0,"div",27),f("click",function(){_(t);let n=p();return h(n.onEventDesc())}),m(1,"i",28),a(2,"span"),g(3),l()()}if(e&2){let t=p();i(3),b(t.description)}}function ee(e,o){if(e&1){let t=C();a(0,"div",29)(1,"input",30),f("change",function(n){_(t);let d=p();return h(d.onCheck(n.target.checked))}),l()()}}function te(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onDownload())}),m(1,"i",32),g(2," Download "),l()}}function ne(e,o){if(e&1){let t=C();a(0,"button",31),f("click",function(){_(t);let n=p();return h(n.onUpload())}),m(1,"i",33),g(2," Upload "),l()}}function ie(e,o){if(e&1){let t=C();a(0,"button",34),f("click",function(){_(t);let n=p();return h(n.onScan())}),m(1,"i",35),g(2," Scan "),l()}}var oe=e=>({"me-3":e});function re(e,o){if(e&1&&(x(0),a(1,"a",37),m(2,"img",38),l(),v()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(1),j("href",t.Url,u),i(1),c("ngClass",y(4,oe,r!=n.channels.length-1))("src",n.getChannelLogo(t),u)("matTooltip",t.Title?t.Title:t.Name)}}function ae(e,o){if(e&1&&(x(0),s(1,re,3,6,"ng-container",36),v()),e&2){let t=p();i(1),c("ngForOf",t.channels)}}var ce=e=>({"border-bottom pb-2":e});function le(e,o){if(e&1&&(a(0,"li")(1,"div",42)(2,"div",43)(3,"a",37),m(4,"img",44),a(5,"span",45),g(6),l()()()()()),e&2){let t=o.$implicit,r=o.index,n=p(2);i(2),c("ngClass",y(4,ce,r!=n.channels.length-1)),i(1),c("href",t.Url,u),i(1),c("src",n.getChannelLogo(t),u),i(2),b(t.Title)}}function de(e,o){if(e&1&&(a(0,"div",39)(1,"button",40),g(2),l(),a(3,"ul",41),s(4,le,7,6,"li",36),l()()),e&2){let t=p();i(2),S(" ",t.channels.length," CHANNELS "),i(2),c("ngForOf",t.channels)}}var Se=(()=>{let o=class o{constructor(r){this.biggerPictureService=r,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.onUploadEvent=new w,this.onScanEvent=new w,this.checkBoxChange=new w,this.onDescEvent=new w,this.onDownloadEvent=new w}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let r=localStorage.getItem("Authorization"),n=JSON.parse(r)?.Host;this.redirectUrl=`https://${n}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(r){this.checkBoxChange.emit(r)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}getChannelLogo(r){return V.getChannelLogoByTypeId(r.TypeID)}openBiggerPicture(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload"},standalone:!0,features:[M],decls:26,vars:11,consts:[[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],["class","text-end gx-0",4,"ngIf"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],["class","fs-6 btn btn-light btn-sm",3,"click",4,"ngIf"],["DROPDOWN",""],[1,"rounded","imgUpload","float-left",3,"src","click"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fas","fa-external-link-alt"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download"],["aria-hidden","true",1,"fa","fa-upload"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fa","fa-spinner"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,q,2,1,"ng-container",6)(7,G,1,0,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),f("click",function(){return d.onEventDesc()}),g(11),l(),s(12,X,5,2,"div",10)(13,Y,4,1,"div",11),l(),a(14,"div",12)(15,"div",13),s(16,ee,2,0,"div",14),l()()()(),a(17,"div",15)(18,"div"),s(19,te,3,0,"button",16)(20,ne,3,0,"button",16)(21,ie,3,0,"button",17),l(),a(22,"div"),s(23,ae,2,1,"ng-container",6)(24,de,5,2,"ng-template",null,18,I),l()()()),n&2){let E=P(8),A=P(25);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(1),c("ngIf",d.description),i(3),c("ngIf",d.showCheckBox),i(3),c("ngIf",d.downloadButton),i(1),c("ngIf",d.uploadButton),i(1),c("ngIf",d.scanButton),i(2),c("ngIf",d.channels.length<4)("ngIfElse",A)}},dependencies:[D,O,U,B,F,z,N],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let e=o;return e})();function pe(e,o){if(e&1){let t=C();x(0),a(1,"img",14),f("click",function(n){_(t);let d=p();return h(d.onZoomImage(n))}),l(),v()}if(e&2){let t=p();i(1),c("ngSrc",t.image)("fill",!0)}}function me(e,o){e&1&&m(0,"img",15),e&2&&c("fill",!0)}function se(e,o){if(e&1&&(a(0,"div",16),m(1,"i",17),a(2,"span"),g(3),l()()),e&2){let t=p();i(3),b(t.code)}}var ge=e=>({"border-bottom":e});function ue(e,o){if(e&1&&(x(0),a(1,"div",27)(2,"div",28),g(3),l(),a(4,"div")(5,"a",29),m(6,"i",30),l()()(),v()),e&2){let t=o.$implicit,r=o.index,n=p().$implicit;i(1),c("ngClass",y(4,ge,r!==(n==null?null:n.Variants.length)-1)),i(2),L(" ",t.ProductName," - ",t.Name," "),i(2),c("href",t.URL,u)}}var fe=e=>({"border-bottom-0":e});function _e(e,o){if(e&1&&(a(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),m(4,"img",22),a(5,"span",23),g(6),l()()()(),a(7,"div",24)(8,"div",25),s(9,ue,7,6,"ng-container",26),l()()()),e&2){let t=o.$implicit,r=o.index,n=p();c("ngClass",y(10,fe,n.channels.length-1==r)),i(1),c("id","heading"+r+n.code+n.id),i(1),Z("data-bs-target","#collapse"+r+n.code+n.id)("aria-controls","#collapse"+r+n.code+n.id),i(2),c("src",n.getChannelLogo(t.TypeID),u),i(1),c("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t.ChannelName:""),i(1),b(t.ChannelName),i(1),c("id","collapse"+r+n.code+n.id),Z("aria-labelledby","heading"+r+n.code+n.id),i(2),c("ngForOf",t.Variants)}}var Oe=(()=>{let o=class o{constructor(r){this.biggerPictureService=r}getChannelLogo(r){return V.getChannelLogoByTypeId(r)}onZoomImage(r){this.biggerPictureService.openBiggerPicture(r,this.imageForZoom)}};o.\u0275fac=function(n){return new(n||o)(T(R))},o.\u0275cmp=k({type:o,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",id:"id"},standalone:!0,features:[M],decls:16,vars:5,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],["elsePic",""],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"ngSrc","fill","click"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa","fa-external-link-alt"]],template:function(n,d){if(n&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),s(6,pe,2,2,"ng-container",6)(7,me,1,1,"ng-template",null,7,I),l()()(),a(9,"div",8)(10,"h4",9),g(11),l(),s(12,se,4,1,"div",10),l()()(),a(13,"div",11)(14,"div",12),s(15,_e,10,12,"div",13),l()()()),n&2){let E=P(8);i(6),c("ngIf",d.image)("ngIfElse",E),i(5),S(" ",d.title," "),i(1),c("ngIf",d.code),i(3),c("ngForOf",d.channels)}},dependencies:[D,O,U,B,F,z,N,$],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]});let e=o;return e})();export{Se as a,Oe as b};
@@ -0,0 +1 @@
1
+ import{b as ee}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-O5TGJGPX.js";import{e as z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-7H5NOLAT.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-D6U7F3FE.js";import{b as k,e as R}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-3CJHQAXO.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-XYLU3LCF.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-C4WLCPS5.js";import{c as Z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-AIE4RSCM.js";import{a as G,c as W,d as q}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-6JUG64XK.js";import{B as X,C as Y,q as J,r as Q}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-ZXG2LRR7.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-6UISEE6K.js";import{h as $,k as H,u as A}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-ABFPL6TA.js";import{b,c as B}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-BBHP36L3.js";import{$a as E,Cb as U,Db as F,Fa as c,Ga as g,Lc as v,Oa as m,Q as L,Ua as f,X as y,Za as o,Zb as j,_a as a,_b as K,aa as d,ab as O,bb as w,bc as V,db as D,ea as N,fa as h,fc as C,hb as p,ja as x,jb as u,ka as T,pb as s,q as M,qb as S,rb as P,za as I}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-FAA5MCE6.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-HET33HC6.js";function re(n,t){if(n&1&&(o(0,"span",13),E(1,"img",14),a(),o(2,"span"),s(3),a()),n&2){let l=t.item;c(1),m("src",l.logo,I),c(2),P(" ",l.Name," ")}}function ae(n,t){if(n&1){let l=D();O(0),o(1,"ng-select",16),p("ngModelChange",function(i){x(l);let r=u().$implicit;return T(r.ProductSKU=i)}),a(),w()}if(n&2){let l=t.ngIf,e=u().$implicit;c(1),m("ngModel",e.ProductSKU)("items",l)}}function se(n,t){if(n&1&&(o(0,"tr")(1,"td"),s(2),a(),o(3,"td"),s(4),a(),o(5,"td"),s(6),a(),o(7,"td"),f(8,ae,2,2,"ng-container",15),U(9,"async"),a()()),n&2){let l=t.$implicit,e=u();c(2),S(l.Name),c(2),S(l.Service),c(2),S(l.TypeString),c(2),m("ngIf",F(9,4,e.logisticOptions$))}}var ie=(()=>{let t=class t{constructor(e,i,r){this.http=e,this.toastr=i,this.authService=r,this.filter={ChannelID:""},this.logisticServiceOptions=[],this.channelOptions=this.authService.getChannels(),this.initUnsupportedChannel(),this.initLoader()}initUnsupportedChannel(){let e=[b.WooCommerce,b.Lazada,b.Shopify];this.channelOptions=this.channelOptions.map(i=>(e.forEach(r=>{i.TypeID===r&&(i.disabled=!0)}),i))}initLoader(){this.http.post("/api/Logistic/Load",{}).subscribe(e=>{this.filter=e.Filter,this.channelName=this.channelOptions[0].Name,this.initLogisticServiceOptions(),this.getLogisticService()})}initLogisticServiceOptions(){this.logisticOptions$=this.http.get("/api/Logistic/OptionLogisticsService").pipe(L(1),y(e=>{this.logisticServiceOptions=e}))}Validate(){for(let e of this.logisticServices)this.datasource.find(r=>r.ProductSKU==e.ProductSKU&&r.Name==e.Name)===void 0&&(e.IsChange=!0);return Promise.resolve(this.logisticServices)}submitLogistics(){this.Validate().then(e=>{this.http.post("/api/Logistic/Submit",this.logisticServices).subscribe(i=>{this.toastr.success("Success","Update Complete!",{timeOut:5e3,enableHtml:!0}),this.getLogisticService()})})}getLogisticService(){this.datasource=[],this.http.post("/api/Logistic/Get",this.filter).pipe(M(e=>e.map(i=>(i.ProductSKU=B.IsEmpty(i.ProductSKU)?null:i.ProductSKU,i)))).subscribe(e=>{this.iniTitle(),this.logisticServices=e,this.datasource=structuredClone(e)})}iniTitle(){let e=this.channelOptions.find(i=>i.ID==this.filter.ChannelID);this.channelName=e?e.Name:null}};t.\u0275fac=function(i){return new(i||t)(g(R),g(k),g(z))},t.\u0275cmp=N({type:t,selectors:[["app-logistic"]],decls:28,vars:6,consts:[["hideSearchBox","true","searchBoxPlaceHolder","Enter Number...",3,"headerTitle","hideSearchDropdown","onSubmit"],[1,"mb-2","fw-bold"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"clearable","items","ngModel","ngModelChange"],["ng-option-tmp",""],["role","button","data-toggle","tooltip","data-placement","top","matTooltip","enter Logistic for recorded",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[4,"ngIf"],["placeholder","Logistic Service Code","bindLabel","Name","bindValue","Code",1,"w-75",3,"ngModel","items","ngModelChange"]],template:function(i,r){i&1&&(o(0,"mainpanel",0),p("onSubmit",function(){return r.getLogisticService()}),o(1,"filters")(2,"div")(3,"label",1),s(4,"Select a Channel"),a(),o(5,"ng-select",2),p("ngModelChange",function(oe){return r.filter.ChannelID=oe}),f(6,re,4,2,"ng-template",3),a()()(),o(7,"actions")(8,"a",4),p("click",function(){return r.submitLogistics()}),s(9,"Submit"),a()(),o(10,"content")(11,"div",5)(12,"div",6)(13,"div",7)(14,"div",8)(15,"table",9)(16,"thead",10)(17,"tr",11)(18,"th"),s(19,"Logistic"),a(),o(20,"th"),s(21,"Service"),a(),o(22,"th"),s(23,"Type"),a(),o(24,"th"),s(25,"Logistic Service"),a()()(),o(26,"tbody"),f(27,se,10,6,"tr",12),a()()()()()()()()),i&2&&(m("headerTitle","Logistic Courier - "+r.channelName)("hideSearchDropdown",!1),c(5),m("clearable",!1)("items",r.channelOptions)("ngModel",r.filter.ChannelID),c(22),m("ngForOf",r.logisticServices))},dependencies:[j,K,$,H,X,W,G,J,V]});let n=t;return n})();var le=[{path:"",component:ie}],ne=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[C,v.forChild(le)]});let n=t;return n})();var je=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=h({type:t}),t.\u0275inj=d({imports:[C,v,ne,A,Y,q,ee,Z,Q]});let n=t;return n})();export{je as LogisticModule};
@@ -0,0 +1 @@
1
+ import{a as me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-SNCK2FWA.js";import{b as v}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-YCOV6QF3.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-4ALKGSNS.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-PKV2MX2V.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-LW37VJAD.js";import{a as se,b as pe}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-DWRODF4P.js";import{e as ie}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-3CJHQAXO.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-C4WLCPS5.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-GMQAKOAO.js";import{a as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-ZKEOQVK3.js";import{B as b,C as le}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-ZXG2LRR7.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-6UISEE6K.js";import{u as ae}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-ABFPL6TA.js";import{c as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-BBHP36L3.js";import{$ as G,$a as g,Ab as X,Cb as x,Db as w,Fa as l,Ga as y,Hc as re,Jc as ne,Lc as oe,Oa as p,Q as U,Ra as z,Ua as u,X as $,Za as o,Zb as Y,_a as a,_b as _,aa as Q,bc as Z,ca as V,cb as H,cc as F,ea as T,ec as ee,fa as J,fc as te,hb as d,ia as K,jb as C,mb as j,pb as f,qb as R,rb as q,vb as W,za as k}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-FAA5MCE6.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.7.0/Marketplace/chunk-HET33HC6.js";var de=(()=>{let r=class r{constructor(){this.reportTabs=[{Title:"1 - New Order",Url:"/menu/sync-log/order/sync-order"},{Title:"2 - Ready to Ship",Url:"/menu/sync-log/order/invoice"},{Title:"3 - Shipped",Url:"/menu/sync-log/order/delivery"},{Title:"4 - Completed",Url:"/menu/sync-log/order/payment"},{Title:"All",Url:"/menu/sync-log/order/all"}]}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=T({type:r,selectors:[["app-order"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,i){t&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),g(3,"nav-tab",2),a()()(),g(4,"router-outlet")),t&2&&(l(3),p("Tabs",i.reportTabs))},dependencies:[se,re],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]});let n=r;return n})();var S=class{};var D=(()=>{let r=class r{constructor(e){this.http=e}GetLoader(){return this.http.post("/api/Report/GetLoader",{})}GetSyncOrder(e){return new Promise((t,i)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/Invoice",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncDelivery(e){return new Promise((t,i)=>{this.http.post("/api/Report/Delivery",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncPayment(e){return new Promise((t,i)=>{this.http.post("/api/Report/Payment",JSON.stringify(e)).subscribe(m=>{t(m)})})}getAllReport(e){return this.http.post("/api/Report/all",JSON.stringify(e))}};r.\u0275fac=function(t){return new(t||r)(V(ie))},r.\u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var E=function(n){return n[n.OK=200]="OK",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.CONFLICT=409]="CONFLICT",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n}(E||{});function Ce(n,r){if(n&1&&(o(0,"th",9)(1,"div",10)(2,"h4"),f(3),a(),o(4,"small",11),f(5),a()()()),n&2){let s=r.$implicit,e=C();l(3),R(s),l(1),z(e.getTextBgColor(s)),l(1),R(e.getHeaderStatusDesc(s))}}var Te=()=>["/menu/log/order"],ve=(n,r,s,e,t)=>({responseCode:n,From:r,to:s,actionType:e,ChannelID:t});function Se(n,r){if(n&1&&(o(0,"td",14)(1,"a",15),f(2),a()()),n&2){let s=r.$implicit,e=C().$implicit,t=C();l(1),p("routerLink",W(3,Te))("queryParams",X(4,ve,s.Key,t.fromQueryParam,t.toQueryParam,t.type,e.ChannelID)),l(1),q(" ",s.Value," ")}}function _e(n,r){if(n&1&&(o(0,"tr")(1,"td")(2,"a",12),g(3,"img",13),a()(),o(4,"td")(5,"div")(6,"a",12),f(7),a()(),o(8,"div"),f(9),a()(),u(10,Se,3,10,"td",8),a()),n&2){let s=r.$implicit,e=C();l(2),j("href",s.Url,k),l(1),p("src",e.getChannelLogo(s.Type),k),l(3),j("href",s.Url,k),l(1),R(s.Name),l(2),R(s.Url),l(1),p("ngForOf",s.list)}}function Fe(n,r){if(n&1&&(o(0,"td",14)(1,"div",16),f(2),x(3,"number"),a()()),n&2){let s=r.$implicit;l(2),R(w(3,1,s.total))}}var P=(()=>{let r=class r{constructor(){this.type=null,this.headerStatus=E,this.listCalculationStatusCode=[]}set from(e){e&&(this.fromQueryParam=new Date(e).toJSON().toString())}set to(e){e&&(this.toQueryParam=new Date(e).toJSON().toString())}ngOnChanges(e){e.result&&this.calculateStatusCode()}getHeaderStatusDesc(e){let t=null;switch(e){case E.BAD_REQUEST:t="BAD REQUEST";break;case E.CONFLICT:t="CONFLICT";break;case E.INTERNAL_SERVER_ERROR:t="INTERNAL SERVER ERROR";break;case E.NOT_FOUND:t="NOT FOUND";break;default:t="OK";break}return t}getTextBgColor(e){let t=null;switch(e){case E.OK:t="bg-success";break;case E.INTERNAL_SERVER_ERROR:t="bg-danger";break;default:t="bg-warning";break}return t}getChannelLogo(e){return h.getChannelLogoByTypeId(e)}calculateStatusCode(){if(this.listCalculationStatusCode=[],this.result){let e,t;this.concatStatusCode().forEach(i=>{e=this.listCalculationStatusCode.findIndex(m=>m.status==i.Key),t=e!==-1,t?this.listCalculationStatusCode[e].total+=i.Value:this.listCalculationStatusCode=[...this.listCalculationStatusCode,{status:i.Key,total:i.Value}]})}}concatStatusCode(){return this.result.map(e=>e.list).reduce((e,t)=>[...e,...t])}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=T({type:r,selectors:[["app-table-report"]],inputs:{header:"header",result:"result",from:"from",to:"to",type:"type"},features:[K],decls:15,vars:3,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","5%"],["class","text-start","style","width: 10%;",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"text-center","h3","fw-bold"],["class","text-start",4,"ngFor","ngForOf"],[1,"text-start",2,"width","10%"],[1,"d-block"],[1,"text-white","p-1","rounded","response-desc"],["target","_blank",3,"href"],[2,"width","24px","height","24px",3,"src"],[1,"text-start"],[1,"h3","text-primary","fw-bold","ms-1",3,"routerLink","queryParams"],[1,"d-inline-block","h3","text-primary","fw-bold","ms-1"]],template:function(t,i){t&1&&(o(0,"table",0)(1,"thead",1)(2,"tr"),g(3,"th",2),o(4,"th",3),f(5,"Channel"),a(),u(6,Ce,6,4,"th",4),a()(),o(7,"tbody"),u(8,_e,11,6,"tr",5),a(),o(9,"tfoot")(10,"tr")(11,"td",6)(12,"div",7),f(13,"Total"),a()(),u(14,Fe,4,3,"td",8),a()()()),t&2&&(l(6),p("ngForOf",i.header),l(2),p("ngForOf",i.result),l(6),p("ngForOf",i.listCalculationStatusCode))},dependencies:[Y,ne,ee],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]});let n=r;return n})();function be(n,r){if(n&1&&(o(0,"div",6)(1,"div",7),g(2,"app-table-report",8),a()()),n&2){let s=C();l(2),p("result",s.result)("header",s.header)("from",s.filter.From)("to",s.filter.To)("type",0)}}var ce=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.pageTitle="New Order";let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncOrder(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(D),y(F))},r.\u0275cmp=T({type:r,selectors:[["app-sales-order"]],decls:10,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],[1,"fw-bold"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.getChannelLogs()}),o(1,"filters")(2,"div")(3,"label",1),f(4,"From/To"),a(),o(5,"datepicker",2),d("dateChange",function(c){return i.filter.From=c}),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.To=c}),a()()(),o(7,"content")(8,"div",4),u(9,be,3,5,"div",5),a()()()),t&2&&(p("headerTitle",i.pageTitle)("hideSearchBox",!0),l(5),p("date",i.filter.From),l(1),p("date",i.filter.To),l(3),p("ngIf",i.result))},dependencies:[_,b,v,P]});let n=r;return n})();function De(n,r){if(n&1&&(o(0,"div",6)(1,"div",7),g(2,"app-table-report",8),a()()),n&2){let s=C();l(2),p("result",s.result)("header",s.header)("from",s.filter.From)("to",s.filter.To)("type",1)}}var fe=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.PageTitle="Ready to Ship";let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(D),y(F))},r.\u0275cmp=T({type:r,selectors:[["app-invoice"]],decls:10,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],[1,"fw-bold"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),f(4,"From/To"),a(),o(5,"datepicker",2),d("dateChange",function(c){return i.filter.From=c}),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.To=c}),a()()(),o(7,"content")(8,"div",4),u(9,De,3,5,"div",5),a()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),l(5),p("date",i.filter.From),l(1),p("date",i.filter.To),l(3),p("ngIf",i.result))},dependencies:[_,b,v,P]});let n=r;return n})();function Pe(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let s=C();l(2),p("result",s.result)("header",s.header)("from",s.filter.From)("to",s.filter.To)("type",3)}}var he=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S;let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Shipped (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncDelivery(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(D),y(F))},r.\u0275cmp=T({type:r,selectors:[["app-delivery"]],decls:10,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],[1,"filterDate"],[1,"fw-bold"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"h6",2),f(4,"From/To"),a(),o(5,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(6,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()(),o(7,"content")(8,"div",5),u(9,Pe,3,5,"div",6),a()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),l(5),p("date",i.filter.From),l(1),p("date",i.filter.To),l(3),p("ngIf",i.result))},dependencies:[_,b,v,P]});let n=r;return n})();function Ee(n,r){if(n&1&&(o(0,"div",6)(1,"div",7),g(2,"app-table-report",8),a()()),n&2){let s=C();l(2),p("result",s.result)("header",s.header)("from",s.filter.From)("to",s.filter.To)("type",4)}}var ue=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.PageTitle="Completed";let i=new Date;this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Completed (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncPayment(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(D),y(F))},r.\u0275cmp=T({type:r,selectors:[["app-payment"]],decls:10,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],[1,"fw-bold"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),f(4,"From/To"),a(),o(5,"datepicker",2),d("dateChange",function(c){return i.filter.From=c}),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.To=c}),a()()(),o(7,"content")(8,"div",4),u(9,Ee,3,5,"div",5),a()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),l(5),p("date",i.filter.From),l(1),p("date",i.filter.To),l(3),p("ngIf",i.result))},dependencies:[_,b,v,P]});let n=r;return n})();function Ie(n,r){n&1&&H(0)}function Re(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let s=r.ngIf,e=C();l(2),p("result",s.Body)("header",s.Header)("from",e.filter==null?null:e.filter.From)("to",e.filter==null?null:e.filter.To)}}var ge=(()=>{let r=class r{constructor(e,t){this.reportOrderService=e,this.datePipe=t,this.filter=new S}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=h.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":t+"-"} ${i})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe($(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(U())}onFilter(){this.updatePageTitle(),this.initData()}};r.\u0275fac=function(t){return new(t||r)(y(D),y(F))},r.\u0275cmp=T({type:r,selectors:[["app-all"]],decls:13,vars:10,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],[1,"fw-bold"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],[4,"ngIf"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div")(3,"label",1),f(4,"From/To"),a(),o(5,"datepicker",2),d("dateChange",function(c){return i.filter.From=c}),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.To=c}),a()()(),o(7,"content")(8,"div",4),u(9,Ie,1,0,"ng-container",5),x(10,"async"),u(11,Re,3,4,"div",6),x(12,"async"),a()()()),t&2&&(p("headerTitle",i.pageTitle)("hideSearchBox",!0),l(5),p("date",i.filter.From),l(1),p("date",i.filter.To),l(3),p("ngIf",w(10,6,i.pageLoader$)),l(2),p("ngIf",w(12,8,i.reportData$)))},dependencies:[_,b,v,P,Z]});let n=r;return n})();var Oe=[{path:"",component:de,children:[{path:"",redirectTo:"sync-order",pathMatch:"full"},{path:"sync-order",component:ce,canActivate:[O],data:{title:"Sync Order"}},{path:"invoice",component:fe,canActivate:[O],data:{title:"Sync Invoice"}},{path:"delivery",component:he,canActivate:[O],data:{title:"Sync Delivery"}},{path:"payment",component:ue,canActivate:[O],data:{title:"Sync Payment"}},{path:"all",component:ge,canActivate:[O],data:{title:"All Report"}}]}],gt=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=J({type:r}),r.\u0275inj=Q({imports:[te,pe,ae,le,me,v,oe.forChild(Oe)]});let n=r;return n})();export{gt as OrderModule};