@hotelinking/ui 9.41.9 → 9.41.10

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.
@@ -1,10 +1,13 @@
1
1
  import { UiDeviceStatusInterface } from "../../../types";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<UiDeviceStatusInterface>, {
3
3
  loading: boolean;
4
+ qty: number;
4
5
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<UiDeviceStatusInterface>, {
5
6
  loading: boolean;
7
+ qty: number;
6
8
  }>>>, {
7
9
  loading: boolean;
10
+ qty: number;
8
11
  }, {}>;
9
12
  export default _default;
10
13
  type __VLS_WithDefaults<P, D> = {
package/dist/ui.cjs CHANGED
@@ -700,4 +700,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
700
700
 
701
701
  .apexcharts-rangebar-goals-markers{
702
702
  pointer-events: none
703
- }`;var h=((d=e.opts.chart)===null||d===void 0?void 0:d.nonce)||e.w.config.chart.nonce;h&&e.css.setAttribute("nonce",h),o?r.prepend(e.css):n.head.appendChild(e.css)}}var u=e.create(e.w.config.series,{});if(!u)return t(e);e.mount(u).then(function(){typeof e.w.config.chart.events.mounted=="function"&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(u)}).catch(function(g){i(g)})}else i(new Error("Element not found"))})}},{key:"create",value:function(e,t){var i=this.w;new jt(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric&&new ae(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;var r=Ee.checkComboSeries(e);a.comboCharts=r.comboCharts,a.comboBarCount=r.comboBarCount;var o=e.every(function(h){return h.data&&h.data.length===0});(e.length===0||o)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new Fe(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new Ee(this).getLargestMarkerSize(),this.dimensions.plotCoords();var n=this.core.xySettings();this.grid.createGridMask();var l=this.core.plotChartType(e,n),d=new Te(this);return d.bringForward(),i.config.dataLabels.background.enabled&&d.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:l,xyRatios:n,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,a=i.w;return new Promise(function(r,o){if(i.el===null)return o(new Error("Not enough data to display or target element not found"));(t===null||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new ct(i);var n,l,d=i.grid.drawGrid();if(i.annotations=new He(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),a.config.grid.position==="back"&&(d&&a.globals.dom.elGraphical.add(d.el),d!=null&&(n=d.elGridBorders)!==null&&n!==void 0&&n.node&&a.globals.dom.elGraphical.add(d.elGridBorders)),Array.isArray(t.elGraph))for(var h=0;h<t.elGraph.length;h++)a.globals.dom.elGraphical.add(t.elGraph[h]);else a.globals.dom.elGraphical.add(t.elGraph);a.config.grid.position==="front"&&(d&&a.globals.dom.elGraphical.add(d.el),d!=null&&(l=d.elGridBorders)!==null&&l!==void 0&&l.node&&a.globals.dom.elGraphical.add(d.elGridBorders)),a.config.xaxis.crosshairs.position==="front"&&i.crosshairs.drawXCrosshairs(),a.config.yaxis[0].crosshairs.position==="front"&&i.crosshairs.drawYCrosshairs(),a.config.chart.type!=="treemap"&&i.axes.drawAxis(a.config.chart.type,d);var u=new Qe(e.ctx,d),g=new Mt(e.ctx,d);if(d!==null&&(u.xAxisLabelCorrections(d.xAxisTickWidth),g.setYAxisTextAlignments(),a.config.yaxis.map(function(m,x){a.globals.ignoreYAxisIndexes.indexOf(x)===-1&&g.yAxisTitleRotate(x,m.opposite)})),i.annotations.drawAxesAnnotations(),!a.globals.noData){if(a.config.tooltip.enabled&&!a.globals.noData&&i.w.globals.tooltip.drawTooltip(t.xyRatios),a.globals.axisCharts&&(a.globals.isXNumeric||a.config.xaxis.convertedCatToNumeric||a.globals.isRangeBar))(a.config.chart.zoom.enabled||a.config.chart.selection&&a.config.chart.selection.enabled||a.config.chart.pan&&a.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:t.xyRatios});else{var f=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(m){f[m]=!1})}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach(function(m){m.method(m.params,!1,m.context)}),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),r(i)})}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=yt.get(e))&&(t.disconnect(),yt.delete(e));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(a,r){a.id===z.escapeString(i)&&Apex._chartInstances.splice(r,1)}),new Gt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],n=this.w;return n.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(l,d){return t.updateHelpers._extendSeries(l,d)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),n.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,a,r,o)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,i)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w.config.series.slice();return a.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,t,i)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),r=0;r<a.length;r++)if(e[r]!==null&&e[r]!==void 0)for(var o=0;o<e[r].data.length;o++)a[r].data.push(e[r].data[o]);return i.w.config.series=a,t&&(i.w.globals.initialSeries=z.clone(i.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(i,a){new Gt(t.ctx).clear({isUpdating:!0});var r=t.create(t.w.config.series,e);if(!r)return i(t);t.mount(r).then(function(){typeof t.w.config.chart.events.updated=="function"&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,i(t)}).catch(function(o){a(o)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(i){t.push(i)})),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(e,t,a)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(e,t,a)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(e,t,a)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;t&&(i=t),i.annotations.removeAnnotation(i,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new ft(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new ft(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new lt(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new lt(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;typeof e=="function"&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=z.escapeString(e);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(a){return a.id===t})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),t=0;t<e.length;t++)new w(e[t],JSON.parse(e[t].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var i=this.getChartByID(e);if(i){i.w.globals.isExecCalled=!0;var a=null;if(i.publicMethods.indexOf(t)!==-1){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];a=i[t].apply(i,o)}return a}}},{key:"merge",value:function(e,t){return z.extend(e,t)}}]),w}();X.exports=Ft})(fi,fi.exports);var vn=fi.exports;const Bi=bn(vn),Vi=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],Vt=s.defineComponent({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:Vi,setup(X,{emit:L}){const V=s.ref(null),S=s.ref(null),I=K=>K&&typeof K=="object"&&!Array.isArray(K)&&K!=null,B=(K,ye)=>{typeof Object.assign!="function"&&function(){Object.assign=function(ee){if(ee==null)throw new TypeError("Cannot convert undefined or null to object");let Z=Object(ee);for(let Q=1;Q<arguments.length;Q++){let ue=arguments[Q];if(ue!=null)for(let ae in ue)ue.hasOwnProperty(ae)&&(Z[ae]=ue[ae])}return Z}}();let He=Object.assign({},K);return I(K)&&I(ye)&&Object.keys(ye).forEach(ee=>{I(ye[ee])?ee in K?He[ee]=B(K[ee],ye[ee]):Object.assign(He,{[ee]:ye[ee]}):Object.assign(He,{[ee]:ye[ee]})}),He},P=async()=>{if(await s.nextTick(),S.value)return;const K={chart:{type:X.type||X.options.chart.type||"line",height:X.height,width:X.width,events:{}},series:X.series};Vi.forEach(He=>{let ee=(...Z)=>L(He,...Z);K.chart.events[He]=ee});const ye=B(X.options,K);return S.value=new Bi(V.value,ye),S.value.render()},D=()=>(O(),P()),O=()=>{S.value.destroy()},U=(K,ye)=>S.value.updateSeries(K,ye),J=(K,ye,He,ee)=>S.value.updateOptions(K,ye,He,ee),le=K=>S.value.toggleSeries(K),be=K=>{S.value.showSeries(K)},de=K=>{S.value.hideSeries(K)},j=(K,ye)=>S.value.appendSeries(K,ye),se=()=>{S.value.resetSeries()},ge=(K,ye)=>{S.value.toggleDataPointSelection(K,ye)},Pe=K=>S.value.appendData(K),z=(K,ye)=>S.value.zoomX(K,ye),Ge=K=>S.value.dataURI(K),Ie=K=>S.value.setLocale(K),$=(K,ye)=>{S.value.addXaxisAnnotation(K,ye)},Ee=(K,ye)=>{S.value.addYaxisAnnotation(K,ye)},Xe=(K,ye)=>{S.value.addPointAnnotation(K,ye)},Ye=(K,ye)=>{S.value.removeAnnotation(K,ye)},Se=()=>{S.value.clearAnnotations()};s.onBeforeMount(()=>{window.ApexCharts=Bi}),s.onMounted(()=>{V.value=s.getCurrentInstance().proxy.$el,P()}),s.onBeforeUnmount(()=>{S.value&&O()});const _e=s.toRefs(X);return s.watch(_e.options,()=>{!S.value&&X.options?P():S.value.updateOptions(X.options)}),s.watch(_e.series,()=>{!S.value&&X.series?P():S.value.updateSeries(X.series)},{deep:!0}),s.watch(_e.type,()=>{D()}),s.watch(_e.width,()=>{D()}),s.watch(_e.height,()=>{D()}),{chart:S,init:P,refresh:D,destroy:O,updateOptions:J,updateSeries:U,toggleSeries:le,showSeries:be,hideSeries:de,resetSeries:se,zoomX:z,toggleDataPointSelection:ge,appendData:Pe,appendSeries:j,addXaxisAnnotation:$,addYaxisAnnotation:Ee,addPointAnnotation:Xe,removeAnnotation:Ye,clearAnnotations:Se,setLocale:Ie,dataURI:Ge}},render(){return s.h("div",{class:"vue-apexcharts"})}}),yn=X=>{X.component(Vt.name,Vt)};Vt.install=yn;const wn={class:"chart-selector flex flex-row items-center justify-center"},wi=s.defineComponent({__name:"RangeSelector",props:{range:{type:String}},emits:["rangeSelected"],setup(X,{emit:L}){const V=L,S=X;let I=s.computed(()=>S.range);const B=P=>{I=P,V("rangeSelected",P)};return(P,D)=>(s.openBlock(),s.createElementBlock("ul",wn,[s.createElementVNode("li",{class:s.normalizeClass({selected:s.unref(I)==="24h"}),onClick:D[0]||(D[0]=O=>B("24h"))}," 24H ",2),s.createElementVNode("li",{class:s.normalizeClass({selected:s.unref(I)==="7d"}),onClick:D[1]||(D[1]=O=>B("7d"))},"7D",2),s.createElementVNode("li",{class:s.normalizeClass({selected:s.unref(I)==="1m"}),onClick:D[2]||(D[2]=O=>B("1m"))},"1M",2),s.createElementVNode("li",{class:s.normalizeClass({selected:s.unref(I)==="3m"}),onClick:D[3]||(D[3]=O=>B("3m"))},"3M",2)]))}}),kn={class:"chart-header flex flex-row items-center w-full justify-between"},Cn={class:"text-sm font-medium text-gray-500 truncate mr-8"},Sn={key:0,class:"flex items-center gap-x-2 grow"},An={class:"self-center ml-2"},En={class:"self-center ml-2"},Nn={class:"self-center ml-2"},Bn={class:"chart-content relative"},Vn={class:"h-full w-full flex items-center justify-center flex-col"},Ln=s.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1),Pn={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},Mn=s.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[s.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),s.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),s.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1),_n=[Mn],Ki=s.defineComponent({__name:"uiChart",props:{title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{default:"area"},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{default:"24h"},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection"],setup(X,{emit:L}){const V=L,S=X;let B={chart:{toolbar:{show:!1},zoom:{enabled:!1}},colors:function(){return S.isNps?[function({value:be,seriesIndex:de,dataPointIndex:j,w:se}){if(j<=5)return"#F87171";if(j>5&&j<=7)return"#eab308";if(j>=8)return"#84cc16"}]:["#715aff","#00ffff","#aba9ba"]}(),stroke:{show:!0,curve:"smooth",lineCap:"butt",width:1,dashArray:0},dataLabels:{enabled:!0},markers:{strokeWidth:0,size:4,hover:{size:8}}};S.annotations&&(B.annotations={yaxis:[{y:S.annotations.high,borderColor:"#4f46e5",label:{borderColor:"#4f46e5",style:{color:"#fff",background:"#4f46e5"},text:S.annotations.text}}]}),S.type==="area"&&(B.tooltip={intersect:!0,shared:!1});const P=()=>(B.chart.stacked=S.stacked,{...B,...S.options,plotOptions:{bar:{horizontal:S.horizontal}}}),D=be=>{V("selectedRange",{range:be,chartId:S.id})},O=s.computed(()=>S.series),U=s.computed(()=>P()),J=()=>V("chartUpdated"),le=(be,de,j)=>{V("dataPointSelection",{id:S.id,chartContext:de,config:j,event:be})};return(be,de)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["h-["+be.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[s.createElementVNode("div",kn,[s.createElementVNode("div",Cn,s.toDisplayString(be.title),1),be.isNps&&be.npsLiterals?(s.openBlock(),s.createElementBlock("div",Sn,[s.createVNode(pt,{size:"small",color:"red",loading:!1},{default:s.withCtx(()=>[s.createVNode(De,{icon:s.unref(Ra),loading:!1,color:"red"},null,8,["icon"]),s.createTextVNode(),s.createElementVNode("span",An,s.toDisplayString(be.npsLiterals.unhappy),1)]),_:1}),s.createVNode(pt,{size:"small",color:"yellow",loading:!1},{default:s.withCtx(()=>[s.createVNode(De,{icon:s.unref(Oa),loading:!1,color:"yellow"},null,8,["icon"]),s.createTextVNode(),s.createElementVNode("span",En,s.toDisplayString(be.npsLiterals.neutral),1)]),_:1}),s.createVNode(pt,{size:"small",color:"green",loading:!1},{default:s.withCtx(()=>[s.createVNode(De,{icon:s.unref(Ii),loading:!1,color:"green"},null,8,["icon"]),s.createTextVNode(),s.createElementVNode("span",Nn,s.toDisplayString(be.npsLiterals.happy),1)]),_:1})])):s.createCommentVNode("",!0),s.createVNode(wi,{range:be.range,onRangeSelected:D},null,8,["range"])]),s.withDirectives(s.createElementVNode("div",Bn,[s.createVNode(s.unref(Vt),{type:be.type,series:O.value,width:"100%",height:be.height,options:U.value,onUpdated:J,onMounted:J,onDataPointSelection:le},null,8,["type","series","height","options"])],512),[[s.vShow,!be.empty]]),s.withDirectives(s.createElementVNode("div",Vn,[s.createVNode(De,{icon:s.unref(bt),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),Ln],512),[[s.vShow,be.empty]])],2),[[s.vShow,!be.loading]]),s.withDirectives(s.createElementVNode("div",Pn,_n,512),[[s.vShow,be.loading]])],64))}}),Tn={name:"uiFooter"},Dn={class:"bg-white"},zn=s.createElementVNode("div",{class:"mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8"},[s.createElementVNode("div",{class:"mt-8 md:mt-0 md:order-1"},[s.createElementVNode("p",{class:"text-center text-base text-gray-400"},"© Made by Hotelinking.")])],-1),In=[zn];function Fn(X,L,V,S,I,B){return s.openBlock(),s.createElementBlock("footer",Dn,In)}const ea=Pt(Tn,[["render",Fn]]),Xn=s.createElementVNode("div",{class:"spinner h-12 w-12 mb-6"},[s.createElementVNode("img",{src:"https://images.hotelinking.com/ui/loader.gif",alt:"loading animation"})],-1),ta=s.defineComponent({__name:"uiLoadingScreen",props:{title:{},message:{},fixed:{type:Boolean,default:!0}},setup(X){return(L,V)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{fixed:L.fixed},"load-screen h-full w-full top-0 left-0 z-[100] flex flex-col items-center justify-center bg-gray-50"])},[Xn,s.withDirectives(s.createElementVNode("h2",{class:"text-xs font-bold text-center uppercase mb-2"},s.toDisplayString(L.title),513),[[s.vShow,L.title]]),s.withDirectives(s.createElementVNode("p",{class:"text-xs text-center uppercase md:w-1/4"},s.toDisplayString(L.message),513),[[s.vShow,L.message]])],2))}}),Yn={key:0,class:"py-6 flex items-center justify-between"},On={class:"flex-1 flex justify-between sm:hidden"},Rn={href:"#",class:"relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},Hn={href:"#",class:"ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},$n={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},Wn={class:"text-sm text-gray-700"},jn={class:"font-bold"},Gn={class:"font-bold"},Un={class:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination"},qn={class:"sr-only"},Zn=["onClick"],Jn={class:"sr-only"},Qn={key:1,class:"py-6 flex flex-row justify-between items-center animate-pulse"},Kn=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5"},null,-1),el=s.createElementVNode("div",{class:"h-10 w-32 bg-gray-200 rounded dark:bg-gray-300"},null,-1),tl=[Kn,el],ia=s.defineComponent({__name:"uiPagination",props:{current:{},total:{},loading:{type:Boolean,default:!0}},emits:["changePage"],setup(X,{emit:L}){const V=L,S=X,I=s.ref(3),B=s.computed(()=>Math.max(1,Number(S.current)-Number(I.value))),P=s.computed(()=>Math.min(Number(S.current)+Number(I.value),Number(S.total))),D=s.computed(()=>{let O=[];for(let U=Number(B.value);U<=Number(P.value);U++)O.push(U);return O});return(O,U)=>O.loading?(s.openBlock(),s.createElementBlock("div",Qn,tl)):(s.openBlock(),s.createElementBlock("div",Yn,[s.createElementVNode("div",On,[s.createElementVNode("a",Rn,[s.renderSlot(O.$slots,"previous")]),s.createElementVNode("a",Hn,[s.renderSlot(O.$slots,"next")])]),s.createElementVNode("div",$n,[s.createElementVNode("div",null,[s.createElementVNode("p",Wn,[s.renderSlot(O.$slots,"showing"),s.createTextVNode(),s.createElementVNode("span",jn,s.toDisplayString(O.current+" "),1),s.renderSlot(O.$slots,"of"),s.createTextVNode(),s.createElementVNode("span",Gn,s.toDisplayString(O.total),1)])]),s.createElementVNode("div",null,[s.createElementVNode("nav",Un,[s.withDirectives(s.createElementVNode("button",{onClick:U[0]||(U[0]=J=>V("changePage",O.current-1)),class:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"},[s.createElementVNode("span",qn,[s.renderSlot(O.$slots,"previous")]),s.createVNode(s.unref(zi),{class:"h-5 w-5","aria-hidden":"true"})],512),[[s.vShow,O.current!==1]]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.value,J=>(s.openBlock(),s.createElementBlock("button",{onClick:le=>V("changePage",J),key:J,"aria-current":"page",class:s.normalizeClass([[J===O.current?"z-10 bg-indigo-50 border-indigo-500 text-indigo-600":"bg-white border-gray-300 text-gray-500 hover:bg-gray-50"],"relative inline-flex items-center px-4 py-2 border text-sm font-medium"])},s.toDisplayString(J),11,Zn))),128)),s.withDirectives(s.createElementVNode("button",{onClick:U[1]||(U[1]=J=>V("changePage",O.current+1)),class:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"},[s.createElementVNode("span",Jn,[s.renderSlot(O.$slots,"next")]),s.createVNode(s.unref(Xt),{class:"h-5 w-5","aria-hidden":"true"})],512),[[s.vShow,O.current!==O.total]])])])])]))}}),il={class:"hidden md:flex md:flex-col sticky md:inset-y-0"},al={class:"flex flex-col flex-grow overflow-y-auto"},sl={class:"grow flex flex-col"},rl={class:"flex-1 space-y-1","aria-label":"Sidebar"},ol={key:0},nl=["onClick"],ll={key:1,class:"text-left"},cl={key:1,class:"flex-1 text-left"},dl={key:2,class:"flex-1"},hl=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},null,-1),ul=[hl],gl={key:0,class:"align-left"},pl={key:1,class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},fl={class:"h-12 flex flex-row items-center"},ml=s.createElementVNode("div",{class:"w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4"},null,-1),xl=s.createElementVNode("div",{class:"h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow"},null,-1),bl=[ml,xl],aa=s.defineComponent({__name:"uiSidebar",props:{navigation:{},filterNavigation:{},isFilterNavigation:{type:Boolean},loading:{type:Boolean,default:!0},logo:{}},emits:["sideBarClick"],setup(X,{emit:L}){const V=L;return(S,I)=>(s.openBlock(),s.createElementBlock("div",il,[s.createElementVNode("div",al,[s.createElementVNode("div",sl,[s.createElementVNode("nav",rl,[S.loading?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},s.renderList(5,B=>s.createElementVNode("div",fl,bl)),64)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(S.navigation,B=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:B.name},[B.children?(s.openBlock(),s.createBlock(s.unref(ke.Disclosure),{key:1,as:"div",class:"space-y-1"},{default:s.withCtx(({open:P})=>[s.createVNode(s.unref(ke.DisclosureButton),{class:s.normalizeClass([B.current?"bg-indigo-600 text-white":"text-gray-600 hover:bg-gray-50 hover:text-gray-900","group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"])},{default:s.withCtx(()=>[B.icon?(s.openBlock(),s.createBlock(De,{key:0,loading:S.loading,icon:B.icon,class:s.normalizeClass([B.current?"text-white":"text-gray-400 group-hover:text-gray-500","mr-3 flex-shrink-0 h-6 w-6"]),"aria-hidden":"true"},null,8,["loading","icon","class"])):s.createCommentVNode("",!0),S.loading?(s.openBlock(),s.createElementBlock("div",dl,ul)):(s.openBlock(),s.createElementBlock("span",cl,s.toDisplayString(B.name),1)),s.createVNode(s.unref(Xt),{class:s.normalizeClass([P?"text-black rotate-90":"text-gray-400","mr-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"])},null,8,["class"])]),_:2},1032,["class"]),s.createVNode(s.unref(ke.DisclosurePanel),{class:"space-y-1"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.children,D=>(s.openBlock(),s.createBlock(s.unref(ke.DisclosureButton),{onClick:O=>V("sideBarClick",D.id),key:D.name,class:s.normalizeClass([D.current?"bg-gray-200":"hover:text-gray-900 hover:bg-gray-100","group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"])},{default:s.withCtx(()=>[S.loading?(s.openBlock(),s.createElementBlock("div",pl)):(s.openBlock(),s.createElementBlock("span",gl,s.toDisplayString(D.name),1))]),_:2},1032,["onClick","class"]))),128))]),_:2},1024)]),_:2},1024)):(s.openBlock(),s.createElementBlock("div",ol,[s.createElementVNode("button",{onClick:P=>V("sideBarClick",B.id),class:s.normalizeClass([B.current?"bg-indigo-600 text-white":"text-gray-600 hover:bg-gray-50 hover:text-gray-900","group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"])},[B.icon?(s.openBlock(),s.createBlock(De,{key:0,loading:S.loading,icon:B.icon,class:s.normalizeClass([B.current?"text-white":"text-gray-400 group-hover:text-gray-500","mr-3 flex-shrink-0 h-6 w-6"]),"aria-hidden":"true"},null,8,["loading","icon","class"])):s.createCommentVNode("",!0),S.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",ll,s.toDisplayString(B.name),1))],10,nl)]))],64))),128))])])])]))}}),vl={key:0},yl={class:"ml-16 text-sm font-medium text-gray-500 truncate"},wl={class:"ml-16 flex items-baseline pb-5"},kl={class:"text-2xl font-semibold text-gray-900"},Cl={key:0,class:"text-black ml-2 flex items-baseline text-sm font-semibold"},Sl={class:"absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6"},Al={class:"text-sm"},El={key:1},Nl={class:"relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6"},Bl={class:"absolute bg-gray-200 rounded-md p-3 animate-pulse"},Vl=s.createElementVNode("div",{class:"ml-16"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse"})],-1),Ll=s.createElementVNode("div",{class:"ml-16"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 animate-pulse"})],-1),ki=s.defineComponent({__name:"uiStats",props:{item:{},loading:{type:Boolean,default:!0}},emits:["statClick"],setup(X,{emit:L}){return(V,S)=>V.loading?(s.openBlock(),s.createElementBlock("div",El,[s.createElementVNode("div",Nl,[s.createElementVNode("dt",null,[s.createElementVNode("div",Bl,[s.createVNode(De,{loading:V.loading,icon:V.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true"},null,8,["loading","icon"])]),Vl,Ll])])])):(s.openBlock(),s.createElementBlock("div",vl,[s.createElementVNode("div",{class:s.normalizeClass(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full",{"pb-12":V.item.showFooter}])},[s.createElementVNode("dt",null,[s.createElementVNode("div",{class:s.normalizeClass(["absolute rounded-md p-3",{"bg-indigo-500":!V.item.color,"bg-green-500":V.item.color==="green","bg-red-500":V.item.color==="red","bg-yellow-500":V.item.color==="yellow","bg-cyan-300":V.item.color==="secondary"}])},[s.createVNode(De,{icon:V.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true",loading:V.loading},null,8,["icon","loading"])],2),s.createElementVNode("p",yl,s.toDisplayString(V.item.name),1)]),s.createElementVNode("dd",wl,[s.createElementVNode("p",kl,s.toDisplayString(V.item.stat),1),V.item.explanation?(s.openBlock(),s.createElementBlock("p",Cl,s.toDisplayString(V.item.explanation),1)):s.createCommentVNode("",!0),V.item.changeType?(s.openBlock(),s.createElementBlock("p",{key:1,class:s.normalizeClass([{"text-green-600":V.item.changeType==="increase","text-red-600":V.item.changeType==="decrease","text-black":V.item.changeType==="neutral"},"ml-2 flex items-baseline text-sm font-semibold"])},[V.item.changeType==="increase"?(s.openBlock(),s.createBlock(s.unref(Ia),{key:0,class:"self-center flex-shrink-0 h-3 w-3 text-green-500","aria-hidden":"true"})):s.createCommentVNode("",!0),V.item.changeType==="decrease"?(s.openBlock(),s.createBlock(s.unref(Da),{key:1,class:"self-center flex-shrink-0 h-3 w-3 text-red-500","aria-hidden":"true"})):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(V.item.change),1)],2)):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("div",Sl,[s.createElementVNode("div",Al,[s.createElementVNode("span",{onClick:S[0]||(S[0]=I=>V.$emit("statClick",V.item.id)),class:"font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer"},s.toDisplayString(V.item.actionText),1)])],512),[[s.vShow,V.item.showFooter]])])],2)]))}}),Pl={key:0,class:"overflow-hidden bg-white shadow sm:rounded-lg"},Ml={class:"px-4 py-5 sm:px-6"},_l={class:"text-lg font-medium leading-6 text-gray-900"},Tl={class:"mt-1 max-w-2xl text-sm text-gray-500"},Dl={class:"border-t border-gray-200"},zl={class:"text-sm font-medium text-gray-500"},Il={key:0,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},Fl={key:1,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},Xl=["onClick"],Yl={key:3,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},Ol={key:1,class:"overflow-hidden bg-white shadow sm:rounded-lg"},Rl=s.createStaticVNode('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><div class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></div></div>',1),Hl={class:"border-t border-gray-200"},$l=s.createElementVNode("dt",{class:"text-sm font-medium text-gray-500"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"})],-1),Wl=s.createElementVNode("dd",{class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"})],-1),jl=[$l,Wl],sa=s.defineComponent({__name:"uiStripedCard",props:{title:{},subtitle:{},items:{},loading:{type:Boolean,default:!0}},emits:["itemClicked"],setup(X,{emit:L}){return(V,S)=>V.loading?(s.openBlock(),s.createElementBlock("div",Ol,[Rl,s.createElementVNode("div",Hl,[s.createElementVNode("dl",null,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(5,I=>s.createElementVNode("div",{key:I,class:s.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[I%2===0?"bg-gray-50":"bg-white"]])},jl,2)),64))])])])):(s.openBlock(),s.createElementBlock("div",Pl,[s.createElementVNode("div",Ml,[s.createElementVNode("h3",_l,s.toDisplayString(V.title),1),s.createElementVNode("p",Tl,s.toDisplayString(V.subtitle),1)]),s.createElementVNode("div",Dl,[s.createElementVNode("dl",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.items,(I,B)=>(s.openBlock(),s.createElementBlock("div",{key:B,class:s.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[B%2===0?"bg-gray-50":"bg-white"]])},[s.createElementVNode("dt",zl,s.toDisplayString(I.title),1),I.type==="tag"?(s.openBlock(),s.createElementBlock("dd",Il,[s.createVNode(pt,{color:I.color},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(I.text),1)]),_:2},1032,["color"])])):I.type==="tags"?(s.openBlock(),s.createElementBlock("dd",Fl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.tags,(P,D)=>(s.openBlock(),s.createBlock(pt,{loading:V.loading,key:D,color:P.color,class:"mr-2 mb-2"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(P.text),1)]),_:2},1032,["loading","color"]))),128))])):I.type==="link"?(s.openBlock(),s.createElementBlock("dd",{key:2,class:"mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer",onClick:P=>V.$emit("itemClicked",I.emits)},s.toDisplayString(I.text),9,Xl)):(s.openBlock(),s.createElementBlock("dd",Yl,s.toDisplayString(I.text),1))],2))),128))])])]))}}),Gl={class:"absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start"},Ul=s.createElementVNode("svg",{class:"absolute -top-3 left-0",xmlns:"http://www.w3.org/2000/svg",width:"27.687",height:"26.954",viewBox:"0 0 27.687 26.954"},[s.createElementVNode("path",{id:"Polígono_1","data-name":"Polígono 1",d:"M10.5,0,21,19H0Z",transform:"translate(0 10.5) rotate(-30)",fill:"#4f46e5"})],-1),ql={class:"ml-2"},Zl={__name:"tooltip",props:{tip:{type:String,required:!0}},setup(X){return(L,V)=>(s.openBlock(),s.createElementBlock("div",Gl,[Ul,s.createElementVNode("div",null,[s.createVNode(De,{icon:s.unref(ja),loading:!1,color:"white",size:"big"},null,8,["icon"])]),s.createElementVNode("span",ql,s.toDisplayString(X.tip),1)]))}},Jl={key:0},Ql={class:"flex flex-col"},Kl={class:"-my-2 overflow-x-auto"},ec={class:"inline-block min-w-full py-2 align-middle px-1"},tc={class:"relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},ic={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10"},ac=["onClick"],sc={class:"min-w-full table-fixed divide-y divide-gray-300"},rc={class:"bg-gray-50"},oc=["checked","indeterminate"],nc=["onMouseover","onMouseleave"],lc=["onClick"],cc={key:2,class:"group flex items-center uppercase text-xs"},dc={class:"divide-y divide-gray-200 bg-white"},hc={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},uc=["value"],gc=["onClick"],pc=["href"],fc={key:3},ra=s.defineComponent({__name:"uiTable",props:{orderedBy:{},orderDirection:{default:"desc"},loading:{type:Boolean,default:!0},header:{},items:{},actions:{}},emits:["tableAction","orderBy","customEmit"],setup(X,{emit:L}){let V=s.ref([]);s.ref(!1);let S=s.ref("");const I=L,B=X,P=s.computed(()=>V.value.length>0&&V.value.length<B.items.length),D=(J,le)=>{S.value!==J&&le&&(S.value=J),le||(S.value=void 0)},O=J=>{V.value=J.target.checked?B.items.map(le=>le.id):[]},U=J=>{I("customEmit",{data:J})};return(J,le)=>{var be,de;return J.loading?(s.openBlock(),s.createBlock(Zi,{key:1})):(s.openBlock(),s.createElementBlock("div",Jl,[s.createElementVNode("div",Ql,[s.createElementVNode("div",Kl,[s.createElementVNode("div",ec,[s.createElementVNode("div",tc,[((be=s.unref(V))==null?void 0:be.length)>0&&((de=J.actions)==null?void 0:de.length)>0?(s.openBlock(),s.createElementBlock("div",ic,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(J.actions,(j,se)=>(s.openBlock(),s.createElementBlock("button",{onClick:ge=>J.$emit("tableAction",{action:j.id,items:s.unref(V)}),key:se,type:"button",class:"inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"},s.toDisplayString(j.name),9,ac))),128))])):s.createCommentVNode("",!0),s.createElementVNode("table",sc,[s.createElementVNode("thead",rc,[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:s.normalizeClass([J.actions?"px-6 sm:px-8":"px-3","relative"])},[J.actions?(s.openBlock(),s.createElementBlock("input",{key:0,checked:P.value||s.unref(V).length===J.items.length,indeterminate:P.value,class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500",type:"checkbox",onChange:O},null,40,oc)):s.createCommentVNode("",!0)],2),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(J.header,(j,se)=>(s.openBlock(),s.createElementBlock("th",{key:se,class:"py-3.5 pr-3 text-left font-semibold text-gray-900 relative",scope:"col",onMouseover:ge=>D(j.name,!0),onMouseleave:ge=>D(j.name,!1)},[j.tooltip?s.withDirectives((s.openBlock(),s.createBlock(Zl,{key:0,tip:j.tooltip},null,8,["tip"])),[[s.vShow,s.unref(S)===j.name]]):s.createCommentVNode("",!0),j.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"group flex items-center uppercase text-xs relative text-nowrap",onClick:ge=>I("orderBy",{value:j.value,orderDirection:J.orderDirection==="asc"?"desc":"asc"})},[s.createElementVNode("span",null,s.toDisplayString(j.name),1),s.createElementVNode("span",{class:s.normalizeClass([[j.value===J.orderedBy?"bg-indigo-600 text-white group-hover:bg-gray-300":"text-gray-400 group-hover:visible group-focus:visible"],"ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"])},[s.createVNode(De,{icon:J.orderDirection==="asc"?s.unref(qt):s.unref(Ya),loading:J.loading,color:j.value===J.orderedBy?"white":"primary"},null,8,["icon","loading","color"])],2)],8,lc)):(s.openBlock(),s.createElementBlock("p",cc,[s.createElementVNode("span",null,s.toDisplayString(j.name),1)]))],40,nc))),128))])]),s.createElementVNode("tbody",dc,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(J.items,(j,se)=>{var ge,Pe;return s.openBlock(),s.createElementBlock("tr",{key:j.id,class:s.normalizeClass([s.unref(V).includes(j.id)&&"bg-gray-50",se%2===0?void 0:"bg-gray-50"])},[s.createElementVNode("td",{class:s.normalizeClass([((ge=J.actions)==null?void 0:ge.length)>0?"w-2":"w-0","relative"])},[s.unref(V).includes(j.id)?(s.openBlock(),s.createElementBlock("div",hc)):s.createCommentVNode("",!0),((Pe=J.actions)==null?void 0:Pe.length)>0?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,"onUpdate:modelValue":le[0]||(le[0]=z=>s.isRef(V)?V.value=z:V=z),value:j.id,class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap",type:"checkbox"},null,8,uc)),[[s.vModelCheckbox,s.unref(V)]]):s.createCommentVNode("",!0)],2),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(j.row,(z,Ge)=>(s.openBlock(),s.createElementBlock("td",{key:Ge,class:s.normalizeClass(["whitespace-nowrap py-4 pr-3 text-sm",s.unref(V).includes(j.id)?"text-indigo-600":"text-gray-900"])},[typeof z=="object"&&z.type==="tag"?(s.openBlock(),s.createBlock(pt,{key:0,loading:J.loading,color:z.color},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(z.content),1)]),_:2},1032,["loading","color"])):typeof z=="object"&&z.type==="link"?(s.openBlock(),s.createElementBlock("span",{key:1,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",onClick:Ie=>U(z)},s.toDisplayString(z.content),9,gc)):typeof z=="object"&&z.type==="href"?(s.openBlock(),s.createElementBlock("a",{key:2,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",href:z.href,target:"_blank"},s.toDisplayString(z.content),9,pc)):(s.openBlock(),s.createElementBlock("span",fc,s.toDisplayString(z),1))],2))),128))],2)}),128))])])])])])])]))}}}),mc={class:"lg:hidden"},xc=["value"],bc={class:"hidden lg:block"},vc={class:"border-b border-gray-200"},yc={class:"-mb-px flex space-x-8","aria-label":"Tabs"},wc=["onClick","aria-current"],oa=s.defineComponent({__name:"uiTabs",props:{tabs:{}},emits:["tabClicked"],setup(X,{emit:L}){const V=L,S=I=>{const B=I.target;B.value&&V("tabClicked",B.value)};return(I,B)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",mc,[s.createElementVNode("select",{onChange:B[0]||(B[0]=P=>S(P)),id:"tabs",name:"tabs",class:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.tabs,P=>(s.openBlock(),s.createElementBlock("option",{value:P.id,key:P.name},s.toDisplayString(P.name),9,xc))),128))],32)]),s.createElementVNode("div",bc,[s.createElementVNode("div",vc,[s.createElementVNode("nav",yc,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.tabs,P=>(s.openBlock(),s.createElementBlock("a",{key:P.name,onClick:D=>V("tabClicked",P.id),class:s.normalizeClass([P.current?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200","whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]),"aria-current":P.current?"page":void 0},[s.createTextVNode(s.toDisplayString(P.name)+" ",1),P.count?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass([P.current?"bg-indigo-100 text-indigo-600":"bg-gray-100 text-gray-900","hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"])},s.toDisplayString(P.count),3)):s.createCommentVNode("",!0)],10,wc))),128))])])])]))}}),kc={class:"px-4 py-5 sm:px-6"},Cc={class:"text-xl font-bold"},Sc={key:0,class:"px-4 py-5 sm:p-6"},Ac={class:"flow-root"},Ec={class:"relative pb-8"},Nc={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},Bc={class:"relative flex space-x-3"},Vc={class:"min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"},Lc={class:"text-sm text-gray-500"},Pc=["onClick"],Mc={class:"text-right text-sm whitespace-nowrap text-gray-500"},_c=["datetime"],Tc={key:1,class:"bg-gray-50 px-4 py-4 sm:px-6 z-10"},Dc={class:"text-sm"},zc={key:2,class:"h-full w-full flex items-center justify-center flex-col mb-5"},Ic=s.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1),Fc={key:1,class:"bg-white overflow-hidden shadow rounded-lg"},Xc=s.createElementVNode("div",{class:"px-4 py-5 sm:px-6 animate-pulse"},[s.createElementVNode("h1",{class:"text-xl font-bold"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"})])],-1),Yc={class:"px-4 py-5 sm:p-6 animate-pulse"},Oc={class:"flow-root"},Rc={class:"-mb-8",role:"list"},Hc={class:"relative pb-8"},$c={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},Wc=s.createStaticVNode('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><div class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></div></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>',1),jc=s.createElementVNode("div",{class:"bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse"},[s.createElementVNode("div",{class:"text-sm"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"})])],-1),na=s.defineComponent({__name:"uiTimeline",props:{name:{},timeline:{},height:{},empty:{type:Boolean,default:!1},loading:{type:Boolean,default:!0}},setup(X){const L=X,V=s.reactive(L.timeline);return(S,I)=>S.loading?(s.openBlock(),s.createElementBlock("div",Fc,[Xc,s.createElementVNode("div",Yc,[s.createElementVNode("div",Oc,[s.createElementVNode("ul",Rc,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(10,(B,P)=>s.createElementVNode("li",{key:P},[s.createElementVNode("div",Hc,[B!==10?(s.openBlock(),s.createElementBlock("span",$c)):s.createCommentVNode("",!0),Wc])])),64))])])]),jc])):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["h-["+S.height+"px]","bg-white overflow-hidden shadow rounded-lg"])},[s.createElementVNode("div",kc,[s.createElementVNode("h1",Cc,s.toDisplayString(S.name),1)]),V.items?(s.openBlock(),s.createElementBlock("div",Sc,[s.createElementVNode("div",Ac,[s.createVNode(s.TransitionGroup,{name:"list",tag:"ul",class:"-mb-8"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.items,(B,P)=>{var D;return s.openBlock(),s.createElementBlock("li",{key:P},[s.createElementVNode("div",Ec,[P<((D=V.items)==null?void 0:D.length)-1?(s.openBlock(),s.createElementBlock("span",Nc)):s.createCommentVNode("",!0),s.createElementVNode("div",Bc,[s.createElementVNode("div",null,[s.createElementVNode("span",{class:s.normalizeClass([(B==null?void 0:B.iconBackground)||"bg-indigo-600","h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])},[s.createVNode(De,{loading:S.loading,icon:B==null?void 0:B.icon,"aria-hidden":"true",class:"h-5 w-5 text-white",color:"white"},null,8,["loading","icon"])],2)]),s.createElementVNode("div",Vc,[s.createElementVNode("div",null,[s.createElementVNode("p",Lc,[s.createElementVNode("a",{onClick:O=>S.$emit("timelineEventClicked",B==null?void 0:B.linkId),class:"font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer"},s.toDisplayString(B==null?void 0:B.target),9,Pc),s.createTextVNode(" "+s.toDisplayString(B==null?void 0:B.content),1)])]),s.createElementVNode("div",Mc,[s.createElementVNode("time",{datetime:B==null?void 0:B.datetime},s.toDisplayString(B==null?void 0:B.date),9,_c)])])])])])}),128))]),_:1})])])):s.createCommentVNode("",!0),V.items?(s.openBlock(),s.createElementBlock("div",Tc,[s.createElementVNode("div",Dc,[s.createElementVNode("a",{class:"cursor-pointer font-medium text-indigo-600 hover:text-indigo-500",onClick:I[0]||(I[0]=B=>S.$emit("timelineFooterClicked",S.timeline.id))},s.toDisplayString(S.timeline.footerText),1)])])):(s.openBlock(),s.createElementBlock("div",zc,[s.createVNode(De,{icon:s.unref(bt),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),Ic]))],2))}}),Gc={class:"mx-auto px-6 lg:px-8"},Uc={class:"flex justify-between h-20"},qc={class:"flex"},Zc={class:"-ml-2 mr-2 flex items-center lg:hidden"},Jc=s.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Qc=["src"],Kc={class:"flex items-center"},ed={class:"lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden"},td={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1"},id=s.createElementVNode("span",{class:"animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75"},null,-1),ad=[id],sd=["src"],rd=["onClick"],od={class:"pt-2 pb-3 space-y-1"},nd=["onClick"],ld={class:"pt-4 pb-3 border-t border-gray-200"},cd={class:"flex items-center px-4 sm:px-6"},dd={class:"flex-shrink-0"},hd=["src"],ud={key:0,class:"ml-3"},gd={class:"text-base font-medium text-gray-800"},pd={class:"text-sm font-medium text-gray-500"},fd={class:"mt-3 space-y-1"},md=["onClick"],la=s.defineComponent({__name:"uiTopbar",props:{logo:{},alerted:{type:Boolean},accountLogo:{},profileMenu:{},brand:{},navigation:{}},emits:["topBarClick"],setup(X,{emit:L}){return(V,S)=>(s.openBlock(),s.createBlock(s.unref(ke.Disclosure),{as:"nav",class:"bg-white shadow z-10"},{default:s.withCtx(({open:I})=>[s.createElementVNode("div",Gc,[s.createElementVNode("div",Uc,[s.createElementVNode("div",qc,[s.createElementVNode("div",Zc,[s.createVNode(s.unref(ke.DisclosureButton),{class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"},{default:s.withCtx(()=>[Jc,I?(s.openBlock(),s.createBlock(s.unref(Ct),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(s.openBlock(),s.createBlock(s.unref(Ti),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)]),s.createElementVNode("div",{class:"flex-shrink-0 flex items-center cursor-pointer",onClick:S[0]||(S[0]=B=>V.$emit("topBarClick","logo"))},[s.createElementVNode("img",{class:"h-10",src:V.logo,alt:"Hotelinking suite product logo"},null,8,Qc)])]),s.createElementVNode("div",Kc,[s.createElementVNode("div",ed,[s.createVNode(s.unref(ke.Menu),{as:"div",class:"ml-3 relative"},{default:s.withCtx(()=>[s.createElementVNode("div",null,[s.withDirectives(s.createVNode(s.unref(ke.MenuButton),{class:"bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative"},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",td,ad,512),[[s.vShow,V.alerted]]),s.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:V.accountLogo},null,8,sd)]),_:1},512),[[s.vShow,V.accountLogo]])]),s.createVNode(s.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.MenuItems),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.profileMenu,B=>(s.openBlock(),s.createBlock(s.unref(ke.MenuItem),{key:B.name},{default:s.withCtx(({active:P})=>[s.createElementVNode("p",{onClick:D=>V.$emit("topBarClick",B.id),class:s.normalizeClass(["cursor-pointer",[P?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"]])},s.toDisplayString(B.name),11,rd)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])])]),s.createVNode(s.unref(ke.DisclosurePanel),{class:"lg:hidden"},{default:s.withCtx(()=>[s.createElementVNode("div",od,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.navigation,B=>(s.openBlock(),s.createBlock(s.unref(ke.DisclosureButton),{as:"template",key:B.name,class:s.normalizeClass(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6",{"bg-indigo-50 border-indigo-500 text-indigo-700":B.current&&B.current===!0,"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700":!B.current}])},{default:s.withCtx(()=>[s.createElementVNode("p",{onClick:P=>V.$emit("topBarClick",B.id)},s.toDisplayString(B.name),9,nd)]),_:2},1032,["class"]))),128))]),s.createElementVNode("div",ld,[s.createElementVNode("div",cd,[s.createElementVNode("div",dd,[s.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:V.accountLogo},null,8,hd)]),V.brand?(s.openBlock(),s.createElementBlock("div",ud,[s.createElementVNode("div",gd,s.toDisplayString(V.brand.title),1),s.createElementVNode("div",pd,s.toDisplayString(V.brand.subtitle),1)])):s.createCommentVNode("",!0)]),s.createElementVNode("div",fd,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.profileMenu,B=>(s.openBlock(),s.createBlock(s.unref(ke.DisclosureButton),{as:"template",key:B.name,class:"block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6"},{default:s.withCtx(()=>[s.createElementVNode("p",{onClick:P=>V.$emit("topBarClick",B.id)},s.toDisplayString(B.name),9,md)]),_:2},1024))),128))])])]),_:1})]),_:1}))}}),xd={class:"chart-header flex flex-row justify-between"},bd={class:"text-sm font-medium text-gray-500 truncate"},vd={class:"chart-content"},yd={class:"h-full w-full flex items-center justify-center flex-col"},wd=s.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1),kd={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},Cd=s.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[s.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),s.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),s.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1),Sd=[Cd],ca=s.defineComponent({__name:"uiFunnelChartV2",props:{title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{default:"bar"},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{default:"24h"},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection"],setup(X,{emit:L}){const V=L,S=X;let I={chart:{type:"bar",toolbar:{show:!1},zoom:{enabled:!1}},colors:["#715aff"],dataLabels:{enabled:!0,formatter:function(U,J){return J.w.globals.labels[J.dataPointIndex]+": "+U}},markers:{strokeWidth:0,size:4,hover:{size:8}},plotOptions:{bar:{borderRadius:0,horizontal:!0,barHeight:"80%",isFunnel:!0}}};const B=s.computed(()=>({...S.options,...I})),P=s.computed(()=>S.series),D=()=>V("chartUpdated"),O=(U,J,le)=>{V("dataPointSelection",{id:S.id,chartContext:J,config:le,event:U})};return(U,J)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["h-["+U.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[s.createElementVNode("div",xd,[s.createElementVNode("div",bd,s.toDisplayString(U.title),1),s.createVNode(wi,{range:U.range,onRangeSelected:J[0]||(J[0]=le=>U.$emit("selectedRange",{range:le,chartId:U.id}))},null,8,["range"])]),s.withDirectives(s.createElementVNode("div",vd,[s.createVNode(s.unref(Vt),{type:U.type,series:P.value,width:"100%",height:U.height,options:B.value,onUpdated:D,onMounted:D,onDataPointSelection:O},null,8,["type","series","height","options"])],512),[[s.vShow,!U.empty]]),s.withDirectives(s.createElementVNode("div",yd,[s.createVNode(De,{icon:s.unref(bt),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),wd],512),[[s.vShow,U.empty]])],2),[[s.vShow,!U.loading]]),s.withDirectives(s.createElementVNode("div",kd,Sd,512),[[s.vShow,U.loading]])],64))}}),Ad={class:"w-full flex flex-col items-center justify-center p-10 grow"},Ed={class:"text-2xl mt-4 font-bold"},Nd={class:"buttons flex flex-row items-center justify-center mt-8 gap-x-1"},da=s.defineComponent({__name:"uiNoResults",props:{title:{},message:{},actions:{},items:{},select:{}},emits:["action","noResultsSelectChanged"],setup(X){return(L,V)=>(s.openBlock(),s.createElementBlock("div",Ad,[s.createVNode(De,{loading:!1,icon:s.unref(bt),size:"massive",color:"gray"},null,8,["icon"]),s.createElementVNode("h2",Ed,s.toDisplayString(L.title),1),s.createElementVNode("p",null,s.toDisplayString(L.message),1),s.createElementVNode("div",Nd,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.actions,(S,I)=>(s.openBlock(),s.createBlock(kt,{key:I,loading:!1,onClick:B=>L.$emit("action",S.action)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(S.text),1)]),_:2},1032,["onClick"]))),128)),L.items?(s.openBlock(),s.createBlock(vi,{key:0,class:"-mt-1",items:L.items,select:L.select,loading:!1,onSelectChanged:V[0]||(V[0]=S=>L.$emit("noResultsSelectChanged",S))},null,8,["items","select"])):s.createCommentVNode("",!0)])]))}}),Bd=s.createElementVNode("div",{class:"fixed inset-0"},null,-1),Vd={class:"fixed inset-0 overflow-hidden"},Ld={class:"absolute inset-0 overflow-hidden"},Pd={class:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10"},Md={class:"flex h-full flex-col overflow-y-scroll bg-white shadow-xl"},_d={class:"bg-indigo-700 px-4 py-6 sm:px-6"},Td={class:"flex items-center justify-between"},Dd={class:"ml-3 flex h-7 items-center"},zd=s.createElementVNode("span",{class:"absolute -inset-2.5"},null,-1),Id=s.createElementVNode("span",{class:"sr-only"},"Close panel",-1),Fd={class:"mt-1"},Xd={class:"text-sm text-indigo-300"},Yd={class:"relative flex-1 px-4 py-6 sm:px-6"},ha=s.defineComponent({__name:"uiRightSidebar",props:{title:{},description:{},open:{type:Boolean,default:!1}},emits:["closeRightBar"],setup(X,{emit:L}){return(V,S)=>(s.openBlock(),s.createBlock(s.unref(ke.TransitionRoot),{as:"template",show:V.open},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.Dialog),{as:"div",class:"relative z-10",onClose:S[1]||(S[1]=I=>V.$emit("closeRightBar"))},{default:s.withCtx(()=>[Bd,s.createElementVNode("div",Vd,[s.createElementVNode("div",Ld,[s.createElementVNode("div",Pd,[s.createVNode(s.unref(ke.TransitionChild),{as:"template",enter:"transform transition ease-in-out duration-500 sm:duration-700","enter-from":"translate-x-full","enter-to":"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700","leave-from":"translate-x-0","leave-to":"translate-x-full"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.DialogPanel),{class:"pointer-events-auto w-screen max-w-md"},{default:s.withCtx(()=>[s.createElementVNode("div",Md,[s.createElementVNode("div",_d,[s.createElementVNode("div",Td,[s.createVNode(s.unref(ke.DialogTitle),{class:"text-base font-semibold leading-6 text-white"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(V.title),1)]),_:1}),s.createElementVNode("div",Dd,[s.createElementVNode("button",{type:"button",class:"relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none",onClick:S[0]||(S[0]=I=>V.$emit("closeRightBar"))},[zd,Id,s.createVNode(s.unref(Ct),{class:"h-6 w-6 ring-0","aria-hidden":"true"})])])]),s.createElementVNode("div",Fd,[s.createElementVNode("p",Xd,s.toDisplayString(V.description),1)])]),s.createElementVNode("div",Yd,[s.renderSlot(V.$slots,"default")])])]),_:3})]),_:3})])])])]),_:3})]),_:3},8,["show"]))}}),Od={class:"uiGallery"},Rd={key:1,role:"list",class:"grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"},Hd={class:"group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100"},$d=["src"],Wd=["onClick"],jd={class:"pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900"},Gd={class:"flex items-center justify-between"},Ud={class:"pointer-events-none block text-sm font-medium text-gray-500"},qd={key:2,role:"list",class:"grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"},Zd=s.createElementVNode("div",{class:"group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100"},null,-1),Jd=s.createElementVNode("p",{class:"animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4"},null,-1),Qd=s.createElementVNode("p",{class:"animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2"},null,-1),Kd=[Zd,Jd,Qd],ua=s.defineComponent({__name:"uiGallery",props:{galleryId:{},gallery:{},loading:{type:Boolean},literals:{}},emits:["modalAction","deleteImage","imgClicked"],setup(X,{emit:L}){const V=L,S=s.ref(!1),I=B=>{S.value=!1,V("modalAction",B)};return(B,P)=>(s.openBlock(),s.createElementBlock("div",Od,[B.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(yi,{key:0,open:S.value,modalName:"deleteAllImagesModal",title:B.literals.modalTitle,type:"warning",actions:[{value:"close",name:B.literals.closeAction},{value:`deleteGallery_${B.galleryId}`,name:B.literals.deleteAction}],onModalAction:P[0]||(P[0]=D=>I(D))},{default:s.withCtx(()=>[s.createElementVNode("p",null,s.toDisplayString(B.literals.modalText),1)]),_:1},8,["open","title","actions"])),B.loading?(s.openBlock(),s.createElementBlock("ul",qd,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(4,D=>s.createElementVNode("li",null,Kd)),64))])):(s.openBlock(),s.createElementBlock("ul",Rd,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.gallery,D=>(s.openBlock(),s.createElementBlock("li",{key:D.source,class:"relative"},[s.createElementVNode("div",Hd,[s.createElementVNode("img",{src:D.source,alt:"",class:"pointer-events-none object-cover group-hover:opacity-75"},null,8,$d),s.createElementVNode("button",{type:"button",class:"absolute inset-0 focus:outline-none",onClick:O=>B.$emit("imgClicked",D)},null,8,Wd)]),s.createElementVNode("p",jd,s.toDisplayString(D.title),1),s.createElementVNode("div",Gd,[s.createElementVNode("p",Ud,s.toDisplayString(D.size),1),s.createVNode(De,{class:"cursor-pointer",icon:s.unref(Ga),color:"red",loading:!1,onClick:O=>B.$emit("deleteImage",D)},null,8,["icon","onClick"])])]))),128))])),B.gallery.length>0&&!B.loading?(s.openBlock(),s.createBlock(kt,{key:3,onClick:P[1]||(P[1]=D=>S.value=!0),class:"mt-8",loading:!1,color:"red",size:"small"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(B.literals.deleteAllImages),1)]),_:1})):s.createCommentVNode("",!0)]))}}),eh={class:"cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400"},th={class:"flex flex-row items-center w-full"},ih={class:"content text-sm grow"},ah={class:"font-bold"},sh={key:0},rh={class:"font-bold text-gray-400"},oh={key:1,class:"animate-pulse"},nh=s.createStaticVNode('<div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div>',5),lh=[nh],ga=s.defineComponent({__name:"uiDragAndDrop",props:{elements:{},loading:{type:Boolean,default:!0}},emits:["dragAndDropUpdated"],setup(X,{emit:L}){const V=L,S=X;let I=s.ref(S.elements);s.watch(()=>S.elements,P=>{I.value=P});const B=P=>{V("dragAndDropUpdated",P)};return(P,D)=>P.loading?(s.openBlock(),s.createElementBlock("div",oh,lh)):(s.openBlock(),s.createBlock(s.unref(ka),{key:0,modelValue:s.unref(I),"onUpdate:modelValue":[D[0]||(D[0]=O=>s.isRef(I)?I.value=O:I=O),D[1]||(D[1]=O=>B(O))]},{item:s.withCtx(({item:O})=>[s.createElementVNode("div",eh,[s.createElementVNode("div",th,[s.createVNode(De,{icon:s.unref(Fa),loading:!1,color:"gray",class:"mr-4",size:"big"},null,8,["icon"]),s.createElementVNode("div",ih,[s.createElementVNode("p",ah,s.toDisplayString(O.name),1),O.description?(s.openBlock(),s.createElementBlock("p",sh,s.toDisplayString(O.description),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",rh,s.toDisplayString(s.unref(I).indexOf(O)+1),1)])])]),_:1},8,["modelValue"]))}}),ch={class:"chart-header flex flex-row justify-between"},dh={class:"text-sm font-medium text-gray-500 truncate"},hh={class:"chart-content"},uh={class:"h-full w-full flex items-center justify-center flex-col"},gh=s.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1),ph={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},fh=s.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[s.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),s.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),s.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1),mh=[fh],pa=s.defineComponent({__name:"uiCircleChart",props:{title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{default:"24h"},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection"],setup(X,{emit:L}){const V=L,S=X;let I={chart:{toolbar:{show:!1},zoom:{enabled:!1}},colors:["#715aff","#00ffff","#aba9ba"],stroke:{show:!0,curve:"stepline",lineCap:"butt",width:1,dashArray:0},dataLabels:{enabled:!0},markers:{strokeWidth:0,size:4,hover:{size:8}}};const B=()=>({...I,...S.options}),P=s.computed(()=>S.series),D=s.computed(()=>B()),O=()=>V("chartUpdated"),U=(J,le,be)=>{V("dataPointSelection",{id:S.id,chartContext:le,config:be,event:J})};return(J,le)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["h-["+J.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[s.createElementVNode("div",ch,[s.createElementVNode("div",dh,s.toDisplayString(J.title),1),s.createVNode(wi,{range:J.range,onRangeSelected:le[0]||(le[0]=be=>J.$emit("selectedRange",{range:be,chartId:J.id}))},null,8,["range"])]),s.withDirectives(s.createElementVNode("div",hh,[s.createVNode(s.unref(Vt),{class:"flex items-center justify-center",type:"donut",series:P.value,options:D.value,height:J.height,onUpdated:O,onMounted:O,onDataPointSelection:U},null,8,["series","options","height"])],512),[[s.vShow,!J.empty]]),s.withDirectives(s.createElementVNode("div",uh,[s.createVNode(De,{icon:s.unref(bt),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),gh],512),[[s.vShow,J.empty]])],2),[[s.vShow,!J.loading]]),s.withDirectives(s.createElementVNode("div",ph,mh,512),[[s.vShow,J.loading]])],64))}}),xh={key:0,class:"flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"},bh={key:1,class:"flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"},fa=s.defineComponent({__name:"uiDateRange",props:{id:{},loading:{type:Boolean},literals:{},values:{},color:{},error:{},disabled:{type:Boolean},label:{},placeholder:{}},setup(X){let L=s.reactive({from:"",to:""});const V=(S,I)=>{S==="from"?L.from=I:L.to=I};return(S,I)=>{var B,P,D,O;return S.loading?(s.openBlock(),s.createElementBlock("div",bh,[s.createVNode(wt,{name:"dateFrom",loading:!0}),s.createVNode(wt,{name:"dateTo",loading:!0}),s.createVNode(kt,{loading:!0},{default:s.withCtx(()=>[s.createTextVNode("Search")]),_:1})])):(s.openBlock(),s.createElementBlock("div",xh,[s.createVNode(wt,{type:"date",loading:!1,addOn:S.literals.from,name:`dateFrom_${S.id}`,color:S.color,value:(P=(B=S.values)==null?void 0:B.from)==null?void 0:P.toString(),error:S.error,disabled:S.disabled,label:S.label,onInputChanged:I[0]||(I[0]=U=>V("from",U.value))},null,8,["addOn","name","color","value","error","disabled","label"]),s.createVNode(wt,{type:"date",loading:!1,class:s.normalizeClass([{"mt-6":S.label}]),addOn:S.literals.to,name:`dateTo_${S.id}`,color:S.color,value:(O=(D=S.values)==null?void 0:D.to)==null?void 0:O.toString(),error:S.error,disabled:S.disabled,label:void 0,onInputChanged:I[1]||(I[1]=U=>V("to",U.value))},null,8,["class","addOn","name","color","value","error","disabled"]),s.createVNode(kt,{disabled:S.disabled,color:"primary",loading:!1,class:s.normalizeClass([{"mt-6":S.label},"h-10"]),onClick:I[2]||(I[2]=U=>S.$emit("uiDateRangeButtonClicked",s.unref(L)))},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(S.literals.search),1)]),_:1},8,["disabled","class"])]))}}});function Ut(X){return[null,void 0,!1].indexOf(X)!==-1}function vh(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function ma(X){var L={exports:{}};return X(L,L.exports),L.exports}var Li=ma(function(X,L){X.exports=function(){var V=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function S(j){return j.split("").reverse().join("")}function I(j,se){return j.substring(0,se.length)===se}function B(j,se){return j.slice(-1*se.length)===se}function P(j,se,ge){if((j[se]||j[ge])&&j[se]===j[ge])throw new Error(se)}function D(j){return typeof j=="number"&&isFinite(j)}function O(j,se){return j=j.toString().split("e"),(+((j=(j=Math.round(+(j[0]+"e"+(j[1]?+j[1]+se:se)))).toString().split("e"))[0]+"e"+(j[1]?+j[1]-se:-se))).toFixed(se)}function U(j,se,ge,Pe,z,Ge,Ie,$,Ee,Xe,Ye,Se){var _e,K,ye,He=Se,ee="",Z="";return Ge&&(Se=Ge(Se)),!!D(Se)&&(j!==!1&&parseFloat(Se.toFixed(j))===0&&(Se=0),Se<0&&(_e=!0,Se=Math.abs(Se)),j!==!1&&(Se=O(Se,j)),(Se=Se.toString()).indexOf(".")!==-1?(ye=(K=Se.split("."))[0],ge&&(ee=ge+K[1])):ye=Se,se&&(ye=S(ye).match(/.{1,3}/g),ye=S(ye.join(S(se)))),_e&&$&&(Z+=$),Pe&&(Z+=Pe),_e&&Ee&&(Z+=Ee),Z+=ye,Z+=ee,z&&(Z+=z),Xe&&(Z=Xe(Z,He)),Z)}function J(j,se,ge,Pe,z,Ge,Ie,$,Ee,Xe,Ye,Se){var _e,K="";return Ye&&(Se=Ye(Se)),!(!Se||typeof Se!="string")&&($&&I(Se,$)&&(Se=Se.replace($,""),_e=!0),Pe&&I(Se,Pe)&&(Se=Se.replace(Pe,"")),Ee&&I(Se,Ee)&&(Se=Se.replace(Ee,""),_e=!0),z&&B(Se,z)&&(Se=Se.slice(0,-1*z.length)),se&&(Se=Se.split(se).join("")),ge&&(Se=Se.replace(ge,".")),_e&&(K+="-"),(K=(K+=Se).replace(/[^0-9\.\-.]/g,""))!==""&&(K=Number(K),Ie&&(K=Ie(K)),!!D(K)&&K))}function le(j){var se,ge,Pe,z={};for(j.suffix===void 0&&(j.suffix=j.postfix),se=0;se<V.length;se+=1)if((Pe=j[ge=V[se]])===void 0)ge!=="negative"||z.negativeBefore?ge==="mark"&&z.thousand!=="."?z[ge]=".":z[ge]=!1:z[ge]="-";else if(ge==="decimals"){if(!(Pe>=0&&Pe<8))throw new Error(ge);z[ge]=Pe}else if(ge==="encoder"||ge==="decoder"||ge==="edit"||ge==="undo"){if(typeof Pe!="function")throw new Error(ge);z[ge]=Pe}else{if(typeof Pe!="string")throw new Error(ge);z[ge]=Pe}return P(z,"mark","thousand"),P(z,"prefix","negative"),P(z,"prefix","negativeBefore"),z}function be(j,se,ge){var Pe,z=[];for(Pe=0;Pe<V.length;Pe+=1)z.push(j[V[Pe]]);return z.push(ge),se.apply("",z)}function de(j){if(!(this instanceof de))return new de(j);typeof j=="object"&&(j=le(j),this.to=function(se){return be(j,U,se)},this.from=function(se){return be(j,J,se)})}return de}()}),yh=vh(ma(function(X,L){(function(V){function S(F){return I(F)&&typeof F.from=="function"}function I(F){return typeof F=="object"&&typeof F.to=="function"}function B(F){F.parentElement.removeChild(F)}function P(F){return F!=null}function D(F){F.preventDefault()}function O(F){return F.filter(function(A){return!this[A]&&(this[A]=!0)},{})}function U(F,A){return Math.round(F/A)*A}function J(F,A){var te=F.getBoundingClientRect(),xe=F.ownerDocument,ce=xe.documentElement,Ce=Ge(xe);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(Ce.x=0),A?te.top+Ce.y-ce.clientTop:te.left+Ce.x-ce.clientLeft}function le(F){return typeof F=="number"&&!isNaN(F)&&isFinite(F)}function be(F,A,te){te>0&&(ge(F,A),setTimeout(function(){Pe(F,A)},te))}function de(F){return Math.max(Math.min(F,100),0)}function j(F){return Array.isArray(F)?F:[F]}function se(F){var A=(F=String(F)).split(".");return A.length>1?A[1].length:0}function ge(F,A){F.classList&&!/\s/.test(A)?F.classList.add(A):F.className+=" "+A}function Pe(F,A){F.classList&&!/\s/.test(A)?F.classList.remove(A):F.className=F.className.replace(new RegExp("(^|\\b)"+A.split(" ").join("|")+"(\\b|$)","gi")," ")}function z(F,A){return F.classList?F.classList.contains(A):new RegExp("\\b"+A+"\\b").test(F.className)}function Ge(F){var A=window.pageXOffset!==void 0,te=(F.compatMode||"")==="CSS1Compat";return{x:A?window.pageXOffset:te?F.documentElement.scrollLeft:F.body.scrollLeft,y:A?window.pageYOffset:te?F.documentElement.scrollTop:F.body.scrollTop}}function Ie(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function $(){var F=!1;try{var A=Object.defineProperty({},"passive",{get:function(){F=!0}});window.addEventListener("test",null,A)}catch{}return F}function Ee(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Xe(F,A){return 100/(A-F)}function Ye(F,A,te){return 100*A/(F[te+1]-F[te])}function Se(F,A){return Ye(F,F[0]<0?A+Math.abs(F[0]):A-F[0],0)}function _e(F,A){return A*(F[1]-F[0])/100+F[0]}function K(F,A){for(var te=1;F>=A[te];)te+=1;return te}function ye(F,A,te){if(te>=F.slice(-1)[0])return 100;var xe=K(te,F),ce=F[xe-1],Ce=F[xe],Oe=A[xe-1],Je=A[xe];return Oe+Se([ce,Ce],te)/Xe(Oe,Je)}function He(F,A,te){if(te>=100)return F.slice(-1)[0];var xe=K(te,A),ce=F[xe-1],Ce=F[xe],Oe=A[xe-1];return _e([ce,Ce],(te-Oe)*Xe(Oe,A[xe]))}function ee(F,A,te,xe){if(xe===100)return xe;var ce=K(xe,F),Ce=F[ce-1],Oe=F[ce];return te?xe-Ce>(Oe-Ce)/2?Oe:Ce:A[ce-1]?F[ce-1]+U(xe-F[ce-1],A[ce-1]):xe}var Z,Q;V.PipsMode=void 0,(Q=V.PipsMode||(V.PipsMode={})).Range="range",Q.Steps="steps",Q.Positions="positions",Q.Count="count",Q.Values="values",V.PipsType=void 0,(Z=V.PipsType||(V.PipsType={}))[Z.None=-1]="None",Z[Z.NoValue=0]="NoValue",Z[Z.LargeValue=1]="LargeValue",Z[Z.SmallValue=2]="SmallValue";var ue=function(){function F(A,te,xe){var ce;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[xe||!1],this.xNumSteps=[!1],this.snap=te;var Ce=[];for(Object.keys(A).forEach(function(Oe){Ce.push([j(A[Oe]),Oe])}),Ce.sort(function(Oe,Je){return Oe[0][0]-Je[0][0]}),ce=0;ce<Ce.length;ce++)this.handleEntryPoint(Ce[ce][1],Ce[ce][0]);for(this.xNumSteps=this.xSteps.slice(0),ce=0;ce<this.xNumSteps.length;ce++)this.handleStepPoint(ce,this.xNumSteps[ce])}return F.prototype.getDistance=function(A){for(var te=[],xe=0;xe<this.xNumSteps.length-1;xe++)te[xe]=Ye(this.xVal,A,xe);return te},F.prototype.getAbsoluteDistance=function(A,te,xe){var ce,Ce=0;if(A<this.xPct[this.xPct.length-1])for(;A>this.xPct[Ce+1];)Ce++;else A===this.xPct[this.xPct.length-1]&&(Ce=this.xPct.length-2);xe||A!==this.xPct[Ce+1]||Ce++,te===null&&(te=[]);var Oe=1,Je=te[Ce],Ue=0,ut=0,et=0,Ae=0;for(ce=xe?(A-this.xPct[Ce])/(this.xPct[Ce+1]-this.xPct[Ce]):(this.xPct[Ce+1]-A)/(this.xPct[Ce+1]-this.xPct[Ce]);Je>0;)Ue=this.xPct[Ce+1+Ae]-this.xPct[Ce+Ae],te[Ce+Ae]*Oe+100-100*ce>100?(ut=Ue*ce,Oe=(Je-100*ce)/te[Ce+Ae],ce=1):(ut=te[Ce+Ae]*Ue/100*Oe,Oe=0),xe?(et-=ut,this.xPct.length+Ae>=1&&Ae--):(et+=ut,this.xPct.length-Ae>=1&&Ae++),Je=te[Ce+Ae]*Oe;return A+et},F.prototype.toStepping=function(A){return A=ye(this.xVal,this.xPct,A)},F.prototype.fromStepping=function(A){return He(this.xVal,this.xPct,A)},F.prototype.getStep=function(A){return A=ee(this.xPct,this.xSteps,this.snap,A)},F.prototype.getDefaultStep=function(A,te,xe){var ce=K(A,this.xPct);return(A===100||te&&A===this.xPct[ce-1])&&(ce=Math.max(ce-1,1)),(this.xVal[ce]-this.xVal[ce-1])/xe},F.prototype.getNearbySteps=function(A){var te=K(A,this.xPct);return{stepBefore:{startValue:this.xVal[te-2],step:this.xNumSteps[te-2],highestStep:this.xHighestCompleteStep[te-2]},thisStep:{startValue:this.xVal[te-1],step:this.xNumSteps[te-1],highestStep:this.xHighestCompleteStep[te-1]},stepAfter:{startValue:this.xVal[te],step:this.xNumSteps[te],highestStep:this.xHighestCompleteStep[te]}}},F.prototype.countStepDecimals=function(){var A=this.xNumSteps.map(se);return Math.max.apply(null,A)},F.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},F.prototype.convert=function(A){return this.getStep(this.toStepping(A))},F.prototype.handleEntryPoint=function(A,te){var xe;if(!le(xe=A==="min"?0:A==="max"?100:parseFloat(A))||!le(te[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(xe),this.xVal.push(te[0]);var ce=Number(te[1]);xe?this.xSteps.push(!isNaN(ce)&&ce):isNaN(ce)||(this.xSteps[0]=ce),this.xHighestCompleteStep.push(0)},F.prototype.handleStepPoint=function(A,te){if(te)if(this.xVal[A]!==this.xVal[A+1]){this.xSteps[A]=Ye([this.xVal[A],this.xVal[A+1]],te,0)/Xe(this.xPct[A],this.xPct[A+1]);var xe=(this.xVal[A+1]-this.xVal[A])/this.xNumSteps[A],ce=Math.ceil(Number(xe.toFixed(3))-1),Ce=this.xVal[A]+this.xNumSteps[A]*ce;this.xHighestCompleteStep[A]=Ce}else this.xSteps[A]=this.xHighestCompleteStep[A]=this.xVal[A]},F}(),ae={to:function(F){return F===void 0?"":F.toFixed(2)},from:Number},me={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},fe={tooltips:".__tooltips",aria:".__aria"};function Le(F,A){if(!le(A))throw new Error("noUiSlider: 'step' is not numeric.");F.singleStep=A}function Ve(F,A){if(!le(A))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");F.keyboardPageMultiplier=A}function Fe(F,A){if(!le(A))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");F.keyboardMultiplier=A}function $e(F,A){if(!le(A))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");F.keyboardDefaultStep=A}function Te(F,A){if(typeof A!="object"||Array.isArray(A))throw new Error("noUiSlider: 'range' is not an object.");if(A.min===void 0||A.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");F.spectrum=new ue(A,F.snap||!1,F.singleStep)}function he(F,A){if(A=j(A),!Array.isArray(A)||!A.length)throw new Error("noUiSlider: 'start' option is incorrect.");F.handles=A.length,F.start=A}function ze(F,A){if(typeof A!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");F.snap=A}function rt(F,A){if(typeof A!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");F.animate=A}function lt(F,A){if(typeof A!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");F.animationDuration=A}function Qe(F,A){var te,xe=[!1];if(A==="lower"?A=[!0,!1]:A==="upper"&&(A=[!1,!0]),A===!0||A===!1){for(te=1;te<F.handles;te++)xe.push(A);xe.push(!1)}else{if(!Array.isArray(A)||!A.length||A.length!==F.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");xe=A}F.connect=xe}function ct(F,A){switch(A){case"horizontal":F.ort=0;break;case"vertical":F.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function ot(F,A){if(!le(A))throw new Error("noUiSlider: 'margin' option must be numeric.");A!==0&&(F.margin=F.spectrum.getDistance(A))}function ft(F,A){if(!le(A))throw new Error("noUiSlider: 'limit' option must be numeric.");if(F.limit=F.spectrum.getDistance(A),!F.limit||F.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function Mt(F,A){var te;if(!le(A)&&!Array.isArray(A))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(A)&&A.length!==2&&!le(A[0])&&!le(A[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(A!==0){for(Array.isArray(A)||(A=[A,A]),F.padding=[F.spectrum.getDistance(A[0]),F.spectrum.getDistance(A[1])],te=0;te<F.spectrum.xNumSteps.length-1;te++)if(F.padding[0][te]<0||F.padding[1][te]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var xe=A[0]+A[1],ce=F.spectrum.xVal[0];if(xe/(F.spectrum.xVal[F.spectrum.xVal.length-1]-ce)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Kt(F,A){switch(A){case"ltr":F.dir=0;break;case"rtl":F.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ei(F,A){if(typeof A!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var te=A.indexOf("tap")>=0,xe=A.indexOf("drag")>=0,ce=A.indexOf("fixed")>=0,Ce=A.indexOf("snap")>=0,Oe=A.indexOf("hover")>=0,Je=A.indexOf("unconstrained")>=0,Ue=A.indexOf("drag-all")>=0,ut=A.indexOf("smooth-steps")>=0;if(ce){if(F.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");ot(F,F.start[1]-F.start[0])}if(Je&&(F.margin||F.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");F.events={tap:te||Ce,drag:xe,dragAll:Ue,smoothSteps:ut,fixed:ce,snap:Ce,hover:Oe,unconstrained:Je}}function ti(F,A){if(A!==!1)if(A===!0||I(A)){F.tooltips=[];for(var te=0;te<F.handles;te++)F.tooltips.push(A)}else{if((A=j(A)).length!==F.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");A.forEach(function(xe){if(typeof xe!="boolean"&&!I(xe))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),F.tooltips=A}}function _t(F,A){if(A.length!==F.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");F.handleAttributes=A}function ii(F,A){if(!I(A))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");F.ariaFormat=A}function ai(F,A){if(!S(A))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");F.format=A}function si(F,A){if(typeof A!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");F.keyboardSupport=A}function ri(F,A){F.documentElement=A}function oi(F,A){if(typeof A!="string"&&A!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");F.cssPrefix=A}function ni(F,A){if(typeof A!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof F.cssPrefix=="string"?(F.cssClasses={},Object.keys(A).forEach(function(te){F.cssClasses[te]=F.cssPrefix+A[te]})):F.cssClasses=A}function Yt(F){var A={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:ae,format:ae},te={step:{r:!1,t:Le},keyboardPageMultiplier:{r:!1,t:Ve},keyboardMultiplier:{r:!1,t:Fe},keyboardDefaultStep:{r:!1,t:$e},start:{r:!0,t:he},connect:{r:!0,t:Qe},direction:{r:!0,t:Kt},snap:{r:!1,t:ze},animate:{r:!1,t:rt},animationDuration:{r:!1,t:lt},range:{r:!0,t:Te},orientation:{r:!1,t:ct},margin:{r:!1,t:ot},limit:{r:!1,t:ft},padding:{r:!1,t:Mt},behaviour:{r:!0,t:ei},ariaFormat:{r:!1,t:ii},format:{r:!1,t:ai},tooltips:{r:!1,t:ti},keyboardSupport:{r:!0,t:si},documentElement:{r:!1,t:ri},cssPrefix:{r:!0,t:oi},cssClasses:{r:!0,t:ni},handleAttributes:{r:!1,t:_t}},xe={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:me,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};F.format&&!F.ariaFormat&&(F.ariaFormat=F.format),Object.keys(te).forEach(function(Ue){if(P(F[Ue])||xe[Ue]!==void 0)te[Ue].t(A,P(F[Ue])?F[Ue]:xe[Ue]);else if(te[Ue].r)throw new Error("noUiSlider: '"+Ue+"' is required.")}),A.pips=F.pips;var ce=document.createElement("div"),Ce=ce.style.msTransform!==void 0,Oe=ce.style.transform!==void 0;A.transformRule=Oe?"transform":Ce?"msTransform":"webkitTransform";var Je=[["left","top"],["right","bottom"]];return A.style=Je[A.dir][A.ort],A}function St(F,A,te){var xe,ce,Ce,Oe,Je,Ue=Ie(),ut=Ee()&&$(),et=F,Ae=A.spectrum,dt=[],We=[],st=[],Tt=0,ht={},xt=F.ownerDocument,At=A.documentElement||xt.documentElement,Et=xt.body,li=xt.dir==="rtl"||A.ort===1?0:100;function gt(M,Y){var R=xt.createElement("div");return Y&&ge(R,Y),M.appendChild(R),R}function ci(M,Y){var R=gt(M,A.cssClasses.origin),q=gt(R,A.cssClasses.handle);if(gt(q,A.cssClasses.touchArea),q.setAttribute("data-handle",String(Y)),A.keyboardSupport&&(q.setAttribute("tabindex","0"),q.addEventListener("keydown",function(ie){return u(ie,Y)})),A.handleAttributes!==void 0){var ne=A.handleAttributes[Y];Object.keys(ne).forEach(function(ie){q.setAttribute(ie,ne[ie])})}return q.setAttribute("role","slider"),q.setAttribute("aria-orientation",A.ort?"vertical":"horizontal"),Y===0?ge(q,A.cssClasses.handleLower):Y===A.handles-1&&ge(q,A.cssClasses.handleUpper),R}function Nt(M,Y){return!!Y&&gt(M,A.cssClasses.connect)}function Ht(M,Y){var R=gt(Y,A.cssClasses.connects);ce=[],(Ce=[]).push(Nt(R,M[0]));for(var q=0;q<A.handles;q++)ce.push(ci(Y,q)),st[q]=q,Ce.push(Nt(R,M[q+1]))}function Dt(M){return ge(M,A.cssClasses.target),A.dir===0?ge(M,A.cssClasses.ltr):ge(M,A.cssClasses.rtl),A.ort===0?ge(M,A.cssClasses.horizontal):ge(M,A.cssClasses.vertical),ge(M,getComputedStyle(M).direction==="rtl"?A.cssClasses.textDirectionRtl:A.cssClasses.textDirectionLtr),gt(M,A.cssClasses.base)}function zt(M,Y){return!(!A.tooltips||!A.tooltips[Y])&&gt(M.firstChild,A.cssClasses.tooltip)}function mt(){return et.hasAttribute("disabled")}function vt(M){return ce[M].hasAttribute("disabled")}function It(){Je&&(x("update"+fe.tooltips),Je.forEach(function(M){M&&B(M)}),Je=null)}function $t(){It(),Je=ce.map(zt),f("update"+fe.tooltips,function(M,Y,R){if(Je&&A.tooltips&&Je[Y]!==!1){var q=M[Y];A.tooltips[Y]!==!0&&(q=A.tooltips[Y].to(R[Y])),Je[Y].innerHTML=q}})}function di(){x("update"+fe.aria),f("update"+fe.aria,function(M,Y,R,q,ne){st.forEach(function(ie){var ve=ce[ie],oe=k(We,ie,0,!0,!0,!0),qe=k(We,ie,100,!0,!0,!0),Ke=ne[ie],je=String(A.ariaFormat.to(R[ie]));oe=Ae.fromStepping(oe).toFixed(1),qe=Ae.fromStepping(qe).toFixed(1),Ke=Ae.fromStepping(Ke).toFixed(1),ve.children[0].setAttribute("aria-valuemin",oe),ve.children[0].setAttribute("aria-valuemax",qe),ve.children[0].setAttribute("aria-valuenow",Ke),ve.children[0].setAttribute("aria-valuetext",je)})})}function hi(M){if(M.mode===V.PipsMode.Range||M.mode===V.PipsMode.Steps)return Ae.xVal;if(M.mode===V.PipsMode.Count){if(M.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var Y=M.values-1,R=100/Y,q=[];Y--;)q[Y]=Y*R;return q.push(100),Wt(q,M.stepped)}return M.mode===V.PipsMode.Positions?Wt(M.values,M.stepped):M.mode===V.PipsMode.Values?M.stepped?M.values.map(function(ne){return Ae.fromStepping(Ae.getStep(Ae.toStepping(ne)))}):M.values:[]}function Wt(M,Y){return M.map(function(R){return Ae.fromStepping(Y?Ae.getStep(R):R)})}function jt(M){function Y(Ke,je){return Number((Ke+je).toFixed(7))}var R=hi(M),q={},ne=Ae.xVal[0],ie=Ae.xVal[Ae.xVal.length-1],ve=!1,oe=!1,qe=0;return(R=O(R.slice().sort(function(Ke,je){return Ke-je})))[0]!==ne&&(R.unshift(ne),ve=!0),R[R.length-1]!==ie&&(R.push(ie),oe=!0),R.forEach(function(Ke,je){var Ze,Re,at,nt,tt,Ci,ui,Si,Ai,Ei,gi=Ke,Bt=R[je+1],Ni=M.mode===V.PipsMode.Steps;for(Ni&&(Ze=Ae.xNumSteps[je]),Ze||(Ze=Bt-gi),Bt===void 0&&(Bt=gi),Ze=Math.max(Ze,1e-7),Re=gi;Re<=Bt;Re=Y(Re,Ze)){for(Si=(tt=(nt=Ae.toStepping(Re))-qe)/(M.density||1),Ei=tt/(Ai=Math.round(Si)),at=1;at<=Ai;at+=1)q[(Ci=qe+at*Ei).toFixed(5)]=[Ae.fromStepping(Ci),0];ui=R.indexOf(Re)>-1?V.PipsType.LargeValue:Ni?V.PipsType.SmallValue:V.PipsType.NoValue,!je&&ve&&Re!==Bt&&(ui=0),Re===Bt&&oe||(q[nt.toFixed(5)]=[Re,ui]),qe=nt}}),q}function Gt(M,Y,R){var q,ne,ie=xt.createElement("div"),ve=((q={})[V.PipsType.None]="",q[V.PipsType.NoValue]=A.cssClasses.valueNormal,q[V.PipsType.LargeValue]=A.cssClasses.valueLarge,q[V.PipsType.SmallValue]=A.cssClasses.valueSub,q),oe=((ne={})[V.PipsType.None]="",ne[V.PipsType.NoValue]=A.cssClasses.markerNormal,ne[V.PipsType.LargeValue]=A.cssClasses.markerLarge,ne[V.PipsType.SmallValue]=A.cssClasses.markerSub,ne),qe=[A.cssClasses.valueHorizontal,A.cssClasses.valueVertical],Ke=[A.cssClasses.markerHorizontal,A.cssClasses.markerVertical];function je(Re,at){var nt=at===A.cssClasses.value,tt=nt?ve:oe;return at+" "+(nt?qe:Ke)[A.ort]+" "+tt[Re]}function Ze(Re,at,nt){if((nt=Y?Y(at,nt):nt)!==V.PipsType.None){var tt=gt(ie,!1);tt.className=je(nt,A.cssClasses.marker),tt.style[A.style]=Re+"%",nt>V.PipsType.NoValue&&((tt=gt(ie,!1)).className=je(nt,A.cssClasses.value),tt.setAttribute("data-value",String(at)),tt.style[A.style]=Re+"%",tt.innerHTML=String(R.to(at)))}}return ge(ie,A.cssClasses.pips),ge(ie,A.ort===0?A.cssClasses.pipsHorizontal:A.cssClasses.pipsVertical),Object.keys(M).forEach(function(Re){Ze(Re,M[Re][0],M[Re][1])}),ie}function yt(){Oe&&(B(Oe),Oe=null)}function Ft(M){yt();var Y=jt(M),R=M.filter,q=M.format||{to:function(ne){return String(Math.round(ne))}};return Oe=et.appendChild(Gt(Y,R,q))}function w(){var M=xe.getBoundingClientRect(),Y="offset"+["Width","Height"][A.ort];return A.ort===0?M.width||xe[Y]:M.height||xe[Y]}function e(M,Y,R,q){var ne=function(ve){var oe=t(ve,q.pageOffset,q.target||Y);return!!oe&&!(mt()&&!q.doNotReject)&&!(z(et,A.cssClasses.tap)&&!q.doNotReject)&&!(M===Ue.start&&oe.buttons!==void 0&&oe.buttons>1)&&(!q.hover||!oe.buttons)&&(ut||oe.preventDefault(),oe.calcPoint=oe.points[A.ort],void R(oe,q))},ie=[];return M.split(" ").forEach(function(ve){Y.addEventListener(ve,ne,!!ut&&{passive:!0}),ie.push([ve,ne])}),ie}function t(M,Y,R){var q=M.type.indexOf("touch")===0,ne=M.type.indexOf("mouse")===0,ie=M.type.indexOf("pointer")===0,ve=0,oe=0;if(M.type.indexOf("MSPointer")===0&&(ie=!0),M.type==="mousedown"&&!M.buttons&&!M.touches)return!1;if(q){var qe=function(Ze){var Re=Ze.target;return Re===R||R.contains(Re)||M.composed&&M.composedPath().shift()===R};if(M.type==="touchstart"){var Ke=Array.prototype.filter.call(M.touches,qe);if(Ke.length>1)return!1;ve=Ke[0].pageX,oe=Ke[0].pageY}else{var je=Array.prototype.find.call(M.changedTouches,qe);if(!je)return!1;ve=je.pageX,oe=je.pageY}}return Y=Y||Ge(xt),(ne||ie)&&(ve=M.clientX+Y.x,oe=M.clientY+Y.y),M.pageOffset=Y,M.points=[ve,oe],M.cursor=ne||ie,M}function i(M){var Y=100*(M-J(xe,A.ort))/w();return Y=de(Y),A.dir?100-Y:Y}function a(M){var Y=100,R=!1;return ce.forEach(function(q,ne){if(!vt(ne)){var ie=We[ne],ve=Math.abs(ie-M);(ve<Y||ve<=Y&&M>ie||ve===100&&Y===100)&&(R=ne,Y=ve)}}),R}function r(M,Y){M.type==="mouseout"&&M.target.nodeName==="HTML"&&M.relatedTarget===null&&n(M,Y)}function o(M,Y){if(navigator.appVersion.indexOf("MSIE 9")===-1&&M.buttons===0&&Y.buttonsProperty!==0)return n(M,Y);var R=(A.dir?-1:1)*(M.calcPoint-Y.startCalcPoint);c(R>0,100*R/Y.baseSize,Y.locations,Y.handleNumbers,Y.connect)}function n(M,Y){Y.handle&&(Pe(Y.handle,A.cssClasses.active),Tt-=1),Y.listeners.forEach(function(R){At.removeEventListener(R[0],R[1])}),Tt===0&&(Pe(et,A.cssClasses.drag),y(),M.cursor&&(Et.style.cursor="",Et.removeEventListener("selectstart",D))),A.events.smoothSteps&&(Y.handleNumbers.forEach(function(R){C(R,We[R],!0,!0,!1,!1)}),Y.handleNumbers.forEach(function(R){v("update",R)})),Y.handleNumbers.forEach(function(R){v("change",R),v("set",R),v("end",R)})}function l(M,Y){if(!Y.handleNumbers.some(vt)){var R;Y.handleNumbers.length===1&&(R=ce[Y.handleNumbers[0]].children[0],Tt+=1,ge(R,A.cssClasses.active)),M.stopPropagation();var q=[],ne=e(Ue.move,At,o,{target:M.target,handle:R,connect:Y.connect,listeners:q,startCalcPoint:M.calcPoint,baseSize:w(),pageOffset:M.pageOffset,handleNumbers:Y.handleNumbers,buttonsProperty:M.buttons,locations:We.slice()}),ie=e(Ue.end,At,n,{target:M.target,handle:R,listeners:q,doNotReject:!0,handleNumbers:Y.handleNumbers}),ve=e("mouseout",At,r,{target:M.target,handle:R,listeners:q,doNotReject:!0,handleNumbers:Y.handleNumbers});q.push.apply(q,ne.concat(ie,ve)),M.cursor&&(Et.style.cursor=getComputedStyle(M.target).cursor,ce.length>1&&ge(et,A.cssClasses.drag),Et.addEventListener("selectstart",D,!1)),Y.handleNumbers.forEach(function(oe){v("start",oe)})}}function d(M){M.stopPropagation();var Y=i(M.calcPoint),R=a(Y);R!==!1&&(A.events.snap||be(et,A.cssClasses.tap,A.animationDuration),C(R,Y,!0,!0),y(),v("slide",R,!0),v("update",R,!0),A.events.snap?l(M,{handleNumbers:[R]}):(v("change",R,!0),v("set",R,!0)))}function h(M){var Y=i(M.calcPoint),R=Ae.getStep(Y),q=Ae.fromStepping(R);Object.keys(ht).forEach(function(ne){ne.split(".")[0]==="hover"&&ht[ne].forEach(function(ie){ie.call(Be,q)})})}function u(M,Y){if(mt()||vt(Y))return!1;var R=["Left","Right"],q=["Down","Up"],ne=["PageDown","PageUp"],ie=["Home","End"];A.dir&&!A.ort?R.reverse():A.ort&&!A.dir&&(q.reverse(),ne.reverse());var ve,oe=M.key.replace("Arrow",""),qe=oe===ne[0],Ke=oe===ne[1],je=oe===q[0]||oe===R[0]||qe,Ze=oe===q[1]||oe===R[1]||Ke,Re=oe===ie[0],at=oe===ie[1];if(!(je||Ze||Re||at))return!0;if(M.preventDefault(),Ze||je){var nt=je?0:1,tt=pe(Y)[nt];if(tt===null)return!1;tt===!1&&(tt=Ae.getDefaultStep(We[Y],je,A.keyboardDefaultStep)),tt*=Ke||qe?A.keyboardPageMultiplier:A.keyboardMultiplier,tt=Math.max(tt,1e-7),tt*=je?-1:1,ve=dt[Y]+tt}else ve=at?A.spectrum.xVal[A.spectrum.xVal.length-1]:A.spectrum.xVal[0];return C(Y,Ae.toStepping(ve),!0,!0),v("slide",Y),v("update",Y),v("change",Y),v("set",Y),!1}function g(M){M.fixed||ce.forEach(function(Y,R){e(Ue.start,Y.children[0],l,{handleNumbers:[R]})}),M.tap&&e(Ue.start,xe,d,{}),M.hover&&e(Ue.move,xe,h,{hover:!0}),M.drag&&Ce.forEach(function(Y,R){if(Y!==!1&&R!==0&&R!==Ce.length-1){var q=ce[R-1],ne=ce[R],ie=[Y],ve=[q,ne],oe=[R-1,R];ge(Y,A.cssClasses.draggable),M.fixed&&(ie.push(q.children[0]),ie.push(ne.children[0])),M.dragAll&&(ve=ce,oe=st),ie.forEach(function(qe){e(Ue.start,qe,l,{handles:ve,handleNumbers:oe,connect:Y})})}})}function f(M,Y){ht[M]=ht[M]||[],ht[M].push(Y),M.split(".")[0]==="update"&&ce.forEach(function(R,q){v("update",q)})}function m(M){return M===fe.aria||M===fe.tooltips}function x(M){var Y=M&&M.split(".")[0],R=Y?M.substring(Y.length):M;Object.keys(ht).forEach(function(q){var ne=q.split(".")[0],ie=q.substring(ne.length);Y&&Y!==ne||R&&R!==ie||m(ie)&&R!==ie||delete ht[q]})}function v(M,Y,R){Object.keys(ht).forEach(function(q){var ne=q.split(".")[0];M===ne&&ht[q].forEach(function(ie){ie.call(Be,dt.map(A.format.to),Y,dt.slice(),R||!1,We.slice(),Be)})})}function k(M,Y,R,q,ne,ie,ve){var oe;return ce.length>1&&!A.events.unconstrained&&(q&&Y>0&&(oe=Ae.getAbsoluteDistance(M[Y-1],A.margin,!1),R=Math.max(R,oe)),ne&&Y<ce.length-1&&(oe=Ae.getAbsoluteDistance(M[Y+1],A.margin,!0),R=Math.min(R,oe))),ce.length>1&&A.limit&&(q&&Y>0&&(oe=Ae.getAbsoluteDistance(M[Y-1],A.limit,!1),R=Math.min(R,oe)),ne&&Y<ce.length-1&&(oe=Ae.getAbsoluteDistance(M[Y+1],A.limit,!0),R=Math.max(R,oe))),A.padding&&(Y===0&&(oe=Ae.getAbsoluteDistance(0,A.padding[0],!1),R=Math.max(R,oe)),Y===ce.length-1&&(oe=Ae.getAbsoluteDistance(100,A.padding[1],!0),R=Math.min(R,oe))),ve||(R=Ae.getStep(R)),!((R=de(R))===M[Y]&&!ie)&&R}function E(M,Y){var R=A.ort;return(R?Y:M)+", "+(R?M:Y)}function c(M,Y,R,q,ne){var ie=R.slice(),ve=q[0],oe=A.events.smoothSteps,qe=[!M,M],Ke=[M,!M];q=q.slice(),M&&q.reverse(),q.length>1?q.forEach(function(Ze,Re){var at=k(ie,Ze,ie[Ze]+Y,qe[Re],Ke[Re],!1,oe);at===!1?Y=0:(Y=at-ie[Ze],ie[Ze]=at)}):qe=Ke=[!0];var je=!1;q.forEach(function(Ze,Re){je=C(Ze,R[Ze]+Y,qe[Re],Ke[Re],!1,oe)||je}),je&&(q.forEach(function(Ze){v("update",Ze),v("slide",Ze)}),ne!=null&&v("drag",ve))}function p(M,Y){return A.dir?100-M-Y:M}function b(M,Y){We[M]=Y,dt[M]=Ae.fromStepping(Y);var R="translate("+E(p(Y,0)-li+"%","0")+")";ce[M].style[A.transformRule]=R,N(M),N(M+1)}function y(){st.forEach(function(M){var Y=We[M]>50?-1:1,R=3+(ce.length+Y*M);ce[M].style.zIndex=String(R)})}function C(M,Y,R,q,ne,ie){return ne||(Y=k(We,M,Y,R,q,!1,ie)),Y!==!1&&(b(M,Y),!0)}function N(M){if(Ce[M]){var Y=0,R=100;M!==0&&(Y=We[M-1]),M!==Ce.length-1&&(R=We[M]);var q=R-Y,ne="translate("+E(p(Y,q)+"%","0")+")",ie="scale("+E(q/100,"1")+")";Ce[M].style[A.transformRule]=ne+" "+ie}}function T(M,Y){return M===null||M===!1||M===void 0?We[Y]:(typeof M=="number"&&(M=String(M)),(M=A.format.from(M))!==!1&&(M=Ae.toStepping(M)),M===!1||isNaN(M)?We[Y]:M)}function _(M,Y,R){var q=j(M),ne=We[0]===void 0;Y=Y===void 0||Y,A.animate&&!ne&&be(et,A.cssClasses.tap,A.animationDuration),st.forEach(function(oe){C(oe,T(q[oe],oe),!0,!1,R)});var ie=st.length===1?0:1;if(ne&&Ae.hasNoSize()&&(R=!0,We[0]=0,st.length>1)){var ve=100/(st.length-1);st.forEach(function(oe){We[oe]=oe*ve})}for(;ie<st.length;++ie)st.forEach(function(oe){C(oe,We[oe],!0,!0,R)});y(),st.forEach(function(oe){v("update",oe),q[oe]!==null&&Y&&v("set",oe)})}function H(M){_(A.start,M)}function G(M,Y,R,q){if(!((M=Number(M))>=0&&M<st.length))throw new Error("noUiSlider: invalid handle number, got: "+M);C(M,T(Y,M),!0,!0,q),v("update",M),R&&v("set",M)}function W(M){if(M===void 0&&(M=!1),M)return dt.length===1?dt[0]:dt.slice(0);var Y=dt.map(A.format.to);return Y.length===1?Y[0]:Y}function re(){for(x(fe.aria),x(fe.tooltips),Object.keys(A.cssClasses).forEach(function(M){Pe(et,A.cssClasses[M])});et.firstChild;)et.removeChild(et.firstChild);delete et.noUiSlider}function pe(M){var Y=We[M],R=Ae.getNearbySteps(Y),q=dt[M],ne=R.thisStep.step,ie=null;if(A.snap)return[q-R.stepBefore.startValue||null,R.stepAfter.startValue-q||null];ne!==!1&&q+ne>R.stepAfter.startValue&&(ne=R.stepAfter.startValue-q),ie=q>R.thisStep.startValue?R.thisStep.step:R.stepBefore.step!==!1&&q-R.stepBefore.highestStep,Y===100?ne=null:Y===0&&(ie=null);var ve=Ae.countStepDecimals();return ne!==null&&ne!==!1&&(ne=Number(ne.toFixed(ve))),ie!==null&&ie!==!1&&(ie=Number(ie.toFixed(ve))),[ie,ne]}function we(){return st.map(pe)}function Ne(M,Y){var R=W(),q=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];q.forEach(function(ie){M[ie]!==void 0&&(te[ie]=M[ie])});var ne=Yt(te);q.forEach(function(ie){M[ie]!==void 0&&(A[ie]=ne[ie])}),Ae=ne.spectrum,A.margin=ne.margin,A.limit=ne.limit,A.padding=ne.padding,A.pips?Ft(A.pips):yt(),A.tooltips?$t():It(),We=[],_(P(M.start)?M.start:R,Y)}function Me(){xe=Dt(et),Ht(A.connect,xe),g(A.events),_(A.start),A.pips&&Ft(A.pips),A.tooltips&&$t(),di()}Me();var Be={destroy:re,steps:we,on:f,off:x,get:W,set:_,setHandle:G,reset:H,__moveHandles:function(M,Y,R){c(M,Y,We,R)},options:te,updateOptions:Ne,target:et,removePips:yt,removeTooltips:It,getPositions:function(){return We.slice()},getTooltips:function(){return Je},getOrigins:function(){return ce},pips:Ft};return Be}function Ot(F,A){if(!F||!F.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+F);if(F.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var te=St(F,Yt(A),A);return F.noUiSlider=te,te}var Rt={__spectrum:ue,cssClasses:me,create:Ot};V.create=Ot,V.cssClasses=me,V.default=Rt,Object.defineProperty(V,"__esModule",{value:!0})})(L)}));function Pi(X,L){if(!Array.isArray(X)||!Array.isArray(L))return!1;const V=L.slice().sort();return X.length===L.length&&X.slice().sort().every(function(S,I){return S===V[I]})}var mi={name:"Slider",emits:["input","update:modelValue","start","slide","drag","update","change","set","end"],props:{value:{validator:function(X){return L=>typeof L=="number"||L instanceof Array||L==null||L===!1},required:!1},modelValue:{validator:function(X){return L=>typeof L=="number"||L instanceof Array||L==null||L===!1},required:!1},id:{type:[String,Number],required:!1},disabled:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},orientation:{type:String,required:!1,default:"horizontal"},direction:{type:String,required:!1,default:"ltr"},tooltips:{type:Boolean,required:!1,default:!0},options:{type:Object,required:!1,default:()=>({})},merge:{type:Number,required:!1,default:-1},format:{type:[Object,Function,Boolean],required:!1,default:null},classes:{type:Object,required:!1,default:()=>({})},showTooltip:{type:String,required:!1,default:"always"},tooltipPosition:{type:String,required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0},ariaLabelledby:{type:String,required:!1,default:void 0},aria:{required:!1,type:Object,default:()=>({})}},setup(X,L){const V=function(P,D,O){const{value:U,modelValue:J,min:le}=s.toRefs(P);let be=J&&J.value!==void 0?J:U;const de=s.ref(be.value);if(Ut(be.value)&&(be=s.ref(le.value)),Array.isArray(be.value)&&be.value.length==0)throw new Error("Slider v-model must not be an empty array");return{value:be,initialValue:de}}(X),S=function(P,D,O){const{classes:U,showTooltip:J,tooltipPosition:le,orientation:be}=s.toRefs(P),de=s.computed(()=>({target:"slider-target",focused:"slider-focused",tooltipFocus:"slider-tooltip-focus",tooltipDrag:"slider-tooltip-drag",ltr:"slider-ltr",rtl:"slider-rtl",horizontal:"slider-horizontal",vertical:"slider-vertical",textDirectionRtl:"slider-txt-dir-rtl",textDirectionLtr:"slider-txt-dir-ltr",base:"slider-base",connects:"slider-connects",connect:"slider-connect",origin:"slider-origin",handle:"slider-handle",handleLower:"slider-handle-lower",handleUpper:"slider-handle-upper",touchArea:"slider-touch-area",tooltip:"slider-tooltip",tooltipTop:"slider-tooltip-top",tooltipBottom:"slider-tooltip-bottom",tooltipLeft:"slider-tooltip-left",tooltipRight:"slider-tooltip-right",tooltipHidden:"slider-tooltip-hidden",active:"slider-active",draggable:"slider-draggable",tap:"slider-state-tap",drag:"slider-state-drag",pips:"slider-pips",pipsHorizontal:"slider-pips-horizontal",pipsVertical:"slider-pips-vertical",marker:"slider-marker",markerHorizontal:"slider-marker-horizontal",markerVertical:"slider-marker-vertical",markerNormal:"slider-marker-normal",markerLarge:"slider-marker-large",markerSub:"slider-marker-sub",value:"slider-value",valueHorizontal:"slider-value-horizontal",valueVertical:"slider-value-vertical",valueNormal:"slider-value-normal",valueLarge:"slider-value-large",valueSub:"slider-value-sub",...U.value}));return{classList:s.computed(()=>{const j={...de.value};return Object.keys(j).forEach(se=>{j[se]=Array.isArray(j[se])?j[se].filter(ge=>ge!==null).join(" "):j[se]}),J.value!=="always"&&(j.target+=` ${J.value==="drag"?j.tooltipDrag:j.tooltipFocus}`),be.value==="horizontal"&&(j.tooltip+=le.value==="bottom"?` ${j.tooltipBottom}`:` ${j.tooltipTop}`),be.value==="vertical"&&(j.tooltip+=le.value==="right"?` ${j.tooltipRight}`:` ${j.tooltipLeft}`),j})}}(X),I=function(P,D,O){const{format:U,step:J}=s.toRefs(P),le=O.value,be=O.classList,de=s.computed(()=>U&&U.value?typeof U.value=="function"?{to:U.value}:Li({...U.value}):Li({decimals:J.value>=0?0:2})),j=s.computed(()=>Array.isArray(le.value)?le.value.map(se=>de.value):de.value);return{tooltipFormat:de,tooltipsFormat:j,tooltipsMerge:(se,ge,Pe)=>{var z=getComputedStyle(se).direction==="rtl",Ge=se.noUiSlider.options.direction==="rtl",Ie=se.noUiSlider.options.orientation==="vertical",$=se.noUiSlider.getTooltips(),Ee=se.noUiSlider.getOrigins();$.forEach(function(Xe,Ye){Xe&&Ee[Ye].appendChild(Xe)}),se.noUiSlider.on("update",function(Xe,Ye,Se,_e,K){var ye=[[]],He=[[]],ee=[[]],Z=0;$[0]&&(ye[0][0]=0,He[0][0]=K[0],ee[0][0]=de.value.to(parseFloat(Xe[0])));for(var Q=1;Q<Xe.length;Q++)(!$[Q]||Xe[Q]-Xe[Q-1]>ge)&&(ye[++Z]=[],ee[Z]=[],He[Z]=[]),$[Q]&&(ye[Z].push(Q),ee[Z].push(de.value.to(parseFloat(Xe[Q]))),He[Z].push(K[Q]));ye.forEach(function(ue,ae){for(var me=ue.length,fe=0;fe<me;fe++){var Le=ue[fe];if(fe===me-1){var Ve=0;He[ae].forEach(function(he){Ve+=1e3-he});var Fe=Ie?"bottom":"right",$e=Ge?0:me-1,Te=1e3-He[ae][$e];Ve=(z&&!Ie?100:0)+Ve/me-Te,$[Le].innerHTML=ee[ae].join(Pe),$[Le].style.display="block",$[Le].style[Fe]=Ve+"%",be.value.tooltipHidden.split(" ").forEach(he=>{$[Le].classList.contains(he)&&$[Le].classList.remove(he)})}else $[Le].style.display="none",be.value.tooltipHidden.split(" ").forEach(he=>{$[Le].classList.add(he)})}})})}}}(X,0,{value:V.value,classList:S.classList}),B=function(P,D,O){const{orientation:U,direction:J,tooltips:le,step:be,min:de,max:j,merge:se,id:ge,disabled:Pe,options:z,classes:Ge,format:Ie,lazy:$,ariaLabelledby:Ee,aria:Xe}=s.toRefs(P),Ye=O.value,Se=O.initialValue,_e=O.tooltipsFormat,K=O.tooltipsMerge,ye=O.tooltipFormat,He=O.classList,ee=s.ref(null),Z=s.ref(null),Q=s.ref(!1),ue=s.computed(()=>{let he={cssPrefix:"",cssClasses:He.value,orientation:U.value,direction:J.value,tooltips:!!le.value&&_e.value,connect:"lower",start:Ut(Ye.value)?de.value:Ye.value,range:{min:de.value,max:j.value}};if(be.value>0&&(he.step=be.value),Array.isArray(Ye.value)&&(he.connect=!0),Ee&&Ee.value||Xe&&Object.keys(Xe.value).length){let ze=Array.isArray(Ye.value)?Ye.value:[Ye.value];he.handleAttributes=ze.map(rt=>Object.assign({},Xe.value,Ee&&Ee.value?{"aria-labelledby":Ee.value}:{}))}return Ie.value&&(he.ariaFormat=ye.value),he}),ae=s.computed(()=>{let he={id:ge&&ge.value?ge.value:void 0};return Pe.value&&(he.disabled=!0),he}),me=s.computed(()=>Array.isArray(Ye.value)),fe=()=>{let he=Z.value.get();return Array.isArray(he)?he.map(ze=>parseFloat(ze)):parseFloat(he)},Le=function(he){let ze=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];Z.value.set(he,ze)},Ve=he=>{D.emit("input",he),D.emit("update:modelValue",he),D.emit("update",he)},Fe=()=>{Z.value=yh.create(ee.value,Object.assign({},ue.value,z.value)),le.value&&me.value&&se.value>=0&&K(ee.value,se.value," - "),Z.value.on("set",()=>{const he=fe();D.emit("change",he),D.emit("set",he),$.value&&Ve(he)}),Z.value.on("update",()=>{if(!Q.value)return;const he=fe();me.value&&Pi(Ye.value,he)||!me.value&&Ye.value==he?D.emit("update",he):$.value||Ve(he)}),Z.value.on("start",()=>{D.emit("start",fe())}),Z.value.on("end",()=>{D.emit("end",fe())}),Z.value.on("slide",()=>{D.emit("slide",fe())}),Z.value.on("drag",()=>{D.emit("drag",fe())}),ee.value.querySelectorAll("[data-handle]").forEach(he=>{he.onblur=()=>{ee.value&&He.value.focused.split(" ").forEach(ze=>{ee.value.classList.remove(ze)})},he.onfocus=()=>{He.value.focused.split(" ").forEach(ze=>{ee.value.classList.add(ze)})}}),Q.value=!0},$e=()=>{Z.value.off(),Z.value.destroy(),Z.value=null},Te=(he,ze)=>{Q.value=!1,$e(),Fe()};return s.onMounted(Fe),s.onUnmounted($e),s.watch(me,Te,{immediate:!1}),s.watch(de,Te,{immediate:!1}),s.watch(j,Te,{immediate:!1}),s.watch(be,Te,{immediate:!1}),s.watch(U,Te,{immediate:!1}),s.watch(J,Te,{immediate:!1}),s.watch(le,Te,{immediate:!1}),s.watch(se,Te,{immediate:!1}),s.watch(Ie,Te,{immediate:!1,deep:!0}),s.watch(z,Te,{immediate:!1,deep:!0}),s.watch(Ge,Te,{immediate:!1,deep:!0}),s.watch(Ye,(he,ze)=>{ze&&(typeof ze=="object"&&typeof he=="object"&&he&&Object.keys(ze)>Object.keys(he)||typeof ze=="object"&&typeof he!="object"||Ut(he))&&Te()},{immediate:!1}),s.watch(Ye,he=>{if(Ut(he))return void Le(de.value,!1);let ze=fe();me.value&&!Array.isArray(ze)&&(ze=[ze]),(me.value&&!Pi(he,ze)||!me.value&&he!=ze)&&Le(he,!1)},{deep:!0}),{slider:ee,slider$:Z,isRange:me,sliderProps:ae,init:Fe,destroy:$e,refresh:Te,update:Le,reset:()=>{Ve(Se.value)}}}(X,L,{value:V.value,initialValue:V.initialValue,tooltipFormat:I.tooltipFormat,tooltipsFormat:I.tooltipsFormat,tooltipsMerge:I.tooltipsMerge,classList:S.classList});return{...S,...I,...B}}};mi.render=function(X,L,V,S,I,B){return s.openBlock(),s.createElementBlock("div",s.mergeProps(X.sliderProps,{ref:"slider"}),null,16)},mi.__file="src/Slider.vue";const wh={class:"flex justify-between items-center"},kh={key:0,class:"block text-sm font-medium text-gray-700"},Ch={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Sh={key:1,class:"h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full"},xa=s.defineComponent({__name:"uiRangeSlider",props:{loading:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},min:{},max:{},sliderValue:{},label:{},requiredText:{}},emits:["sliderUpdated"],setup(X,{emit:L}){const V=L,S=X,I=s.ref(S.sliderValue);return(B,P)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",wh,[B.label?(s.openBlock(),s.createElementBlock("label",kh,s.toDisplayString(B.label),1)):s.createCommentVNode("",!0),B.requiredText?(s.openBlock(),s.createElementBlock("span",Ch,s.toDisplayString(B.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass([{"mt-1":B.label},"pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"])},[B.loading?(s.openBlock(),s.createElementBlock("p",Sh)):(s.openBlock(),s.createBlock(s.unref(mi),{key:0,modelValue:I.value,"onUpdate:modelValue":P[0]||(P[0]=D=>I.value=D),min:B.min,max:B.max,disabled:B.disabled,onChange:P[1]||(P[1]=D=>V("sliderUpdated",D)),classes:{base:"w-full h-full relative z-1 bg-gray-300 rounded",tooltip:"absolute block text-sm font-semibold whitespace-nowrap py-1 px-1.5 min-w-5 text-center text-white rounded border border-indigo-600 bg-indigo-600 transform h:-translate-x-1/2 h:left-1/2 v:-translate-y-1/2 v:top-1/2 slider-disabled:bg-gray-400 slider-disabled:border-gray-400 merge-h:translate-x-1/2 merge-h:left-auto merge-v:-translate-x-4 merge-v:top-auto tt-focus:hidden tt-focused:block tt-drag:hidden tt-dragging:block"}},null,8,["modelValue","min","max","disabled"]))],2)]))}}),Ah={class:"mt-1 mb-8 text-sm text-gray-500"},ba=s.defineComponent({__name:"uiSectionTitle",props:{title:{},description:{}},setup(X){return(L,V)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("h3",{class:s.normalizeClass(["text-lg font-medium leading-6 text-gray-900",{"mb-8":L.description===void 0}])},s.toDisplayString(L.title),3),s.createElementVNode("p",Ah,s.toDisplayString(L.description),1)],64))}}),Eh={key:0,class:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"},Nh={class:"flex flex-1 flex-col p-8"},Bh={class:"text-2xl font-bold text-gray-900"},Vh={class:"mt-1 flex flex-grow flex-col justify-between"},Lh={class:"mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center"},Ph={key:1,class:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"},Mh={class:"flex flex-1 flex-col p-8"},_h={class:"rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200"},Th=s.createElementVNode("div",{class:"h-4 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 mx-auto"},null,-1),Dh={class:"mt-1 flex flex-grow flex-col justify-between"},zh={class:"mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center"},va=s.defineComponent({__name:"uiDeviceStatus",props:{id:{},name:{},icon:{},color:{},qty:{},tags:{},loading:{type:Boolean,default:!0}},setup(X){return(L,V)=>L.loading?(s.openBlock(),s.createElementBlock("div",Ph,[s.createElementVNode("div",Mh,[s.createElementVNode("div",_h,[s.createVNode(De,{icon:L.icon,size:"huge",class:"text-white","aria-hidden":"true",loading:L.loading},null,8,["icon","loading"])]),Th,s.createElementVNode("dl",Dh,[s.createElementVNode("dd",zh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tags,(S,I)=>(s.openBlock(),s.createBlock(pt,{key:I,loading:L.loading,event:S.event,color:S.color,onTagEvent:V[2]||(V[2]=B=>L.$emit("deviceStatusTagClicked",B))},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(S.name),1)]),_:2},1032,["loading","event","color"]))),128))])])])])):(s.openBlock(),s.createElementBlock("div",Eh,[s.createElementVNode("div",Nh,[s.createElementVNode("div",{class:s.normalizeClass(["rounded-md p-3 flex items-center justify-center mx-auto mb-4",{"bg-green-500":!L.color||L.color==="green","bg-red-500":L.color==="red","bg-yellow-500":L.color==="yellow","bg-indigo-500":L.color==="primary","bg-cyan-300":L.color==="secondary","bg-gray-100":L.color==="light"}])},[s.createVNode(De,{icon:L.icon,size:"huge",class:"text-white","aria-hidden":"true",loading:!1},null,8,["icon"])],2),s.createElementVNode("h3",Bh,[s.createTextVNode(s.toDisplayString(L.name)+" ",1),s.withDirectives(s.createElementVNode("span",{class:"text-indigo-600 hover:text-indigo-900 cursor-pointer",onClick:V[0]||(V[0]=S=>L.$emit("deviceStatusQtyClicked",L.id))},"("+s.toDisplayString(L.qty)+")",513),[[s.vShow,L.qty]])]),s.createElementVNode("dl",Vh,[s.createElementVNode("dd",Lh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tags,(S,I)=>(s.openBlock(),s.createBlock(pt,{key:I,loading:!1,event:S.event,color:S.color,onTagEvent:V[1]||(V[1]=B=>L.$emit("deviceStatusTagClicked",B))},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(S.name),1)]),_:2},1032,["event","color"]))),128))])])])]))}}),Ih={class:"flex flex-row grow border-r border-gray-200 bg-white pr-6"},Fh={class:"bg-indigo-600 w-16 mr-6"},Xh={key:0,class:"flex flex-col grow gap-y-5 overflow-y-auto pr-6"},Yh={class:"flex h-16 shrink-0 items-center"},Oh=["src"],Rh={class:"flex flex-1 flex-col"},Hh={key:0,role:"list",class:"flex flex-1 flex-col gap-y-7 mb-4"},$h={role:"list",class:"ml-2 space-y-1"},Wh=["onClick"],jh={key:1,role:"list",class:"flex flex-1 flex-col gap-y-7 mb-4"},Gh={class:"ml-2 space-y-1"},Uh={class:"font-bold mb-4"},qh={key:1,class:"flex flex-col grow gap-y-5 overflow-y-auto pr-6"},Zh={class:"h-12 flex flex-row items-center"},Jh=s.createElementVNode("div",{class:"w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4"},null,-1),Qh=s.createElementVNode("div",{class:"h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300"},null,-1),Kh=[Jh,Qh],Mi=s.defineComponent({__name:"uiSidebarV2",props:{navigation:{},filterNavigation:{},isFilterNavigation:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},logo:{}},emits:["sideBarClick","productBarClick"],setup(X,{emit:L}){return(V,S)=>(s.openBlock(),s.createElementBlock("div",Ih,[s.createElementVNode("div",Fh,[s.createElementVNode("ul",null,[s.createElementVNode("li",{class:"w-full h-16 flex items-center justify-center bg-indigo-900 cursor-pointer hover:bg-indigo-700",onClick:S[0]||(S[0]=I=>V.$emit("productBarClick","CaptivePortal"))},[s.createVNode(De,{icon:s.unref(Ua),loading:!1,color:"white",size:"bigger"},null,8,["icon"])]),s.createElementVNode("li",{class:"w-full h-16 flex items-center justify-center bg-indigo-600 cursor-pointer hover:bg-indigo-700",onClick:S[1]||(S[1]=I=>V.$emit("productBarClick","Surveys"))},[s.createVNode(De,{icon:s.unref(Ii),loading:!1,color:"white",size:"bigger"},null,8,["icon"])])])]),V.loading?(s.openBlock(),s.createElementBlock("div",qh,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(5,I=>s.createElementVNode("div",Zh,Kh)),64))])):(s.openBlock(),s.createElementBlock("div",Xh,[s.createElementVNode("div",Yh,[s.createElementVNode("img",{class:"h-8 w-auto",src:V.logo,alt:"Your Company"},null,8,Oh)]),s.createElementVNode("nav",Rh,[V.isFilterNavigation?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("ul",Hh,[s.createElementVNode("li",null,[s.createElementVNode("ul",$h,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.navigation,I=>(s.openBlock(),s.createElementBlock("li",{key:I.name},[I.children?(s.openBlock(),s.createBlock(s.unref(ke.Disclosure),{key:1,as:"div"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.DisclosureButton),{onClick:B=>V.$emit("sideBarClick",I.id),class:s.normalizeClass([I.current?"bg-gray-100":"hover:bg-gray-100","flex w-full items-center gap-x-3 rounded-md p-2 text-left text-sm font-semibold leading-6 text-gray-700"])},{default:s.withCtx(()=>[s.createVNode(De,{icon:I.icon,color:"primary",size:"big",loading:!1,"aria-hidden":"true",class:"shrink-0"},null,8,["icon"]),s.createTextVNode(" "+s.toDisplayString(I.name)+" ",1),s.createVNode(s.unref(Xt),{class:s.normalizeClass([I.children.some(B=>B.current)||I.current?"rotate-90 text-primary-500":"text-gray-400","ml-auto h-5 w-5 shrink-0"]),"aria-hidden":"true"},null,8,["class"])]),_:2},1032,["onClick","class"]),s.withDirectives(s.createElementVNode("div",null,[s.createVNode(s.unref(ke.DisclosurePanel),{as:"ul",class:"mt-1 px-2",static:""},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.children,B=>(s.openBlock(),s.createElementBlock("li",{key:B.name},[s.createVNode(s.unref(ke.DisclosureButton),{as:"a",onClick:P=>V.$emit("sideBarClick",B.id),class:s.normalizeClass([B.current?"bg-gray-100":"hover:bg-gray-100","block rounded-md py-2 pl-9 pr-2 text-sm leading-6 text-gray-700 cursor-pointer"])},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(B.name),1)]),_:2},1032,["onClick","class"])]))),128))]),_:2},1024)],512),[[s.vShow,I.children.some(B=>B.current)||I.current]])]),_:2},1024)):(s.openBlock(),s.createElementBlock("div",{key:0,onClick:B=>V.$emit("sideBarClick",I.id),class:s.normalizeClass([I.current?"bg-gray-100":"hover:bg-gray-100","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 cursor-pointer"])},[s.createVNode(De,{icon:I.icon,color:"primary",size:"big",loading:!1,"aria-hidden":"true",class:"shrink-0"},null,8,["icon"]),s.createTextVNode(" "+s.toDisplayString(I.name),1)],10,Wh))]))),128))])])])),V.isFilterNavigation&&V.filterNavigation?(s.openBlock(),s.createElementBlock("ul",jh,[s.createElementVNode("li",Gh,[V.filterNavigation.hasSearch&&V.filterNavigation.search?(s.openBlock(),s.createBlock(wt,{key:0,name:V.filterNavigation.search.name,label:V.filterNavigation.search.label,placeholder:V.filterNavigation.search.placeholder,value:V.filterNavigation.search.value,loading:V.filterNavigation.search.loading},null,8,["name","label","placeholder","value","loading"])):s.createCommentVNode("",!0)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.filterNavigation.items,(I,B)=>(s.openBlock(),s.createElementBlock("li",{class:"ml-2",key:B},[s.createElementVNode("p",Uh,s.toDisplayString(I.label),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.filters,(P,D)=>(s.openBlock(),s.createBlock(xi,{class:"mb-2",value:P.value,loading:P.loading},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(P.text),1)]),_:2},1032,["value","loading"]))),256))]))),128))])):s.createCommentVNode("",!0)])]))]))}}),eu=s.createElementVNode("div",{class:"fixed inset-0 bg-gray-900/80"},null,-1),tu={class:"fixed inset-0 flex"},iu={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},au=s.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),su={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col"},ru={class:"lg:pl-[25rem]"},ou={class:"sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8"},nu=s.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),lu=s.createElementVNode("div",{class:"h-6 w-px bg-gray-200 lg:hidden","aria-hidden":"true"},null,-1),cu={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},du={class:"relative flex flex-1",action:"#",method:"GET"},hu=s.createElementVNode("label",{for:"search-field",class:"sr-only"},"Search",-1),uu={class:"relative block h-full w-full border-0 py-0 pl-8 pr-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm"},gu={class:"flex items-center gap-x-4 lg:gap-x-6"},pu={type:"button",class:"-m-2.5 p-2.5 text-gray-400 hover:text-gray-500 relative"},fu=s.createElementVNode("span",{class:"sr-only"},"View notifications",-1),mu={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2"},xu=s.createElementVNode("span",{class:"animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75"},null,-1),bu=[xu],vu=s.createElementVNode("div",{class:"hidden lg:block lg:h-6 lg:w-px lg:bg-gray-200","aria-hidden":"true"},null,-1),yu=s.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),wu=["src"],ku={class:"hidden lg:flex lg:items-center"},Cu=["onClick"],Su={class:"py-7"},Au={class:"px-7 lg:px-10"},ya=s.defineComponent({__name:"uiWrapper",props:{topbar:{},sidebar:{}},setup(X){const L=X,V=s.ref(""),S=s.computed(()=>V.value===""?L.topbar.selectItems:L.topbar.selectItems.filter(D=>D.name.toLowerCase().includes(V.value.toLowerCase()))),I=D=>(D==null?void 0:D.name)??"",B=s.computed(()=>L.topbar.selectedItem),P=s.ref(!1);return(D,O)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(s.unref(ke.TransitionRoot),{as:"template",show:P.value},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.Dialog),{class:"relative z-50 lg:hidden",onClose:O[2]||(O[2]=U=>P.value=!1)},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.TransitionChild),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s.withCtx(()=>[eu]),_:1}),s.createElementVNode("div",tu,[s.createVNode(s.unref(ke.TransitionChild),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.DialogPanel),{class:"relative mr-16 flex w-full max-w-xs flex-1"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.TransitionChild),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s.withCtx(()=>[s.createElementVNode("div",iu,[s.createElementVNode("button",{type:"button",class:"-m-2.5 p-2.5",onClick:O[0]||(O[0]=U=>P.value=!1)},[au,s.createVNode(s.unref(Ct),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),s.createVNode(Mi,{isFilterNavigation:D.sidebar.isFilterNavigation,navigation:D.sidebar.navigation,filterNavigation:D.sidebar.filterNavigation,loading:!1,logo:D.topbar.logo,onSideBarClick:O[1]||(O[1]=U=>D.$emit("sideBarClick",U))},null,8,["isFilterNavigation","navigation","filterNavigation","logo"])]),_:1})]),_:1})])]),_:1})]),_:1},8,["show"]),s.createElementVNode("div",su,[s.createVNode(Mi,{isFilterNavigation:D.sidebar.isFilterNavigation,navigation:D.sidebar.navigation,filterNavigation:D.sidebar.filterNavigation,loading:!1,logo:D.topbar.logo,onSideBarClick:O[3]||(O[3]=U=>D.$emit("sideBarClick",U))},null,8,["isFilterNavigation","navigation","filterNavigation","logo"])]),s.createElementVNode("div",ru,[s.createElementVNode("div",ou,[s.createElementVNode("button",{type:"button",class:"-m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:O[4]||(O[4]=U=>P.value=!0)},[nu,s.createVNode(s.unref(Ti),{class:"h-6 w-6","aria-hidden":"true"})]),lu,s.createElementVNode("div",cu,[s.createElementVNode("form",du,[hu,s.createVNode(s.unref(Wa),{class:"pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400","aria-hidden":"true"}),s.createVNode(s.unref(ke.Combobox),{class:"w-full",as:"div",modelValue:B.value,"onUpdate:modelValue":[O[7]||(O[7]=U=>B.value=U),O[8]||(O[8]=U=>D.$emit("selectChanged",U))]},{default:s.withCtx(()=>[s.createElementVNode("div",uu,[s.createVNode(s.unref(ke.ComboboxInput),{class:"block h-full w-full border-0 py-0 pl-8 pr-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm",onChange:O[5]||(O[5]=U=>V.value=U.target.value),onBlur:O[6]||(O[6]=U=>V.value=""),displayValue:I}),s.createVNode(s.unref(ke.ComboboxButton),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:s.withCtx(()=>[s.createVNode(s.unref(pi),{class:"h-5 w-5 text-gray-400"})]),_:1}),S.value.length>0?(s.openBlock(),s.createBlock(s.unref(ke.ComboboxOptions),{key:0,class:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(S.value,U=>(s.openBlock(),s.createBlock(s.unref(ke.ComboboxOption),{key:U.id,value:U,as:"template"},{default:s.withCtx(({active:J,selected:le})=>[s.createElementVNode("li",{class:s.normalizeClass(["relative cursor-default select-none py-2 pl-8 pr-4",J?"bg-indigo-600 text-white":"text-gray-900"])},[s.createElementVNode("span",{class:s.normalizeClass(["block truncate",le&&"font-semibold"])},s.toDisplayString(U.name),3),le?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["absolute inset-y-0 left-0 flex items-center pl-1.5",J?"text-white":"text-indigo-600"])},[s.createVNode(s.unref(Zt),{class:"h-5 w-5"})],2)):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):s.createCommentVNode("",!0)])]),_:1},8,["modelValue"])]),s.createElementVNode("div",gu,[s.createElementVNode("button",pu,[fu,s.withDirectives(s.createElementVNode("div",mu,bu,512),[[s.vShow,D.topbar.alerted]]),s.createVNode(s.unref(Xa),{class:"h-6 w-6","aria-hidden":"true"})]),vu,s.createVNode(s.unref(ke.Menu),{as:"div",class:"relative"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.MenuButton),{class:"-m-1.5 flex items-center p-1.5"},{default:s.withCtx(()=>[yu,s.createElementVNode("img",{class:"h-8 w-8 rounded-full bg-gray-50",src:D.topbar.accountLogo,alt:""},null,8,wu),s.createElementVNode("span",ku,[s.createVNode(s.unref(qt),{class:"ml-2 h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),s.createVNode(s.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.MenuItems),{class:"absolute right-0 z-10 mt-2.5 w-52 origin-top-right rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.topbar.profileMenu,U=>(s.openBlock(),s.createBlock(s.unref(ke.MenuItem),{key:U.name},{default:s.withCtx(({active:J})=>[s.createElementVNode("a",{onClick:le=>D.$emit("topBarClick",U.id),class:s.normalizeClass([J?"bg-gray-50":"","block px-3 py-1 text-sm leading-6 text-gray-900"])},s.toDisplayString(U.name),11,Cu)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),s.createElementVNode("main",Su,[s.createElementVNode("div",Au,[s.renderSlot(D.$slots,"default")])])])]))}}),wa=s.defineComponent({__name:"uiDynamicStats",props:{dynamicStats:{},loading:{type:Boolean,default:!0}},setup(X){const L=X,V=()=>L.dynamicStats.length<=5?`lg:grid-cols-${L.dynamicStats.length}`:`lg:grid-cols-${Math.floor(L.dynamicStats.length/2)} xl:grid-cols-${L.dynamicStats.length}`,S=s.ref(0),I=s.ref(V());return s.onMounted(()=>S.value+=1),(B,P)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([I.value,"grid grid-cols-1 md:grid-cols-2 gap-4"]),key:S.value},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.dynamicStats,(D,O)=>(s.openBlock(),s.createBlock(ki,{key:O,item:D,loading:B.loading},null,8,["item","loading"]))),128))],2))}}),_i=Object.freeze(Object.defineProperty({__proto__:null,uiAlert:Ri,uiBreadcrumbs:Hi,uiButton:kt,uiCard:$i,uiChart:Ki,uiCheckbox:xi,uiCircleChart:pa,uiDateRange:fa,uiDeviceStatus:va,uiDragAndDrop:ga,uiDropdown:bi,uiDynamicStats:wa,uiFilter:Wi,uiFooter:ea,uiFunnelChartV2:ca,uiGallery:ua,uiIcon:De,uiInput:wt,uiInputFile:Xi,uiLoadingScreen:ta,uiModal:yi,uiNoResults:da,uiNotification:ji,uiPagination:ia,uiPriceCalendar:Qi,uiRangeSlider:xa,uiRightSidebar:ha,uiSectionTitle:ba,uiSelect:vi,uiSidebar:aa,uiStats:ki,uiStripedCard:sa,uiTable:ra,uiTabs:oa,uiTag:pt,uiTaskList:Gi,uiTextArea:Yi,uiTimeline:na,uiToggle:Oi,uiTopbar:la,uiWrapper:ya},Symbol.toStringTag,{value:"Module"}));function Eu(X){for(const L in _i)X.component(L,_i[L])}const Nu={install:Eu};exports.default=Nu;exports.uiAlert=Ri;exports.uiBreadcrumbs=Hi;exports.uiButton=kt;exports.uiCard=$i;exports.uiChart=Ki;exports.uiCheckbox=xi;exports.uiCircleChart=pa;exports.uiDateRange=fa;exports.uiDeviceStatus=va;exports.uiDragAndDrop=ga;exports.uiDropdown=bi;exports.uiDynamicStats=wa;exports.uiFilter=Wi;exports.uiFooter=ea;exports.uiFunnelChartV2=ca;exports.uiGallery=ua;exports.uiIcon=De;exports.uiInput=wt;exports.uiInputFile=Xi;exports.uiLoadingScreen=ta;exports.uiModal=yi;exports.uiNoResults=da;exports.uiNotification=ji;exports.uiPagination=ia;exports.uiPriceCalendar=Qi;exports.uiRangeSlider=xa;exports.uiRightSidebar=ha;exports.uiSectionTitle=ba;exports.uiSelect=vi;exports.uiSidebar=aa;exports.uiStats=ki;exports.uiStripedCard=sa;exports.uiTable=ra;exports.uiTabs=oa;exports.uiTag=pt;exports.uiTaskList=Gi;exports.uiTextArea=Yi;exports.uiTimeline=na;exports.uiToggle=Oi;exports.uiTopbar=la;exports.uiWrapper=ya;
703
+ }`;var h=((d=e.opts.chart)===null||d===void 0?void 0:d.nonce)||e.w.config.chart.nonce;h&&e.css.setAttribute("nonce",h),o?r.prepend(e.css):n.head.appendChild(e.css)}}var u=e.create(e.w.config.series,{});if(!u)return t(e);e.mount(u).then(function(){typeof e.w.config.chart.events.mounted=="function"&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(u)}).catch(function(g){i(g)})}else i(new Error("Element not found"))})}},{key:"create",value:function(e,t){var i=this.w;new jt(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,this.responsive.checkResponsiveConfig(t),i.config.xaxis.convertedCatToNumeric&&new ae(i.config).convertCatToNumericXaxis(i.config,this.ctx),this.el===null||(this.core.setupElements(),i.config.chart.type==="treemap"&&(i.config.grid.show=!1,i.config.yaxis[0].show=!1),a.svgWidth===0))return a.animationEnded=!0,null;var r=Ee.checkComboSeries(e);a.comboCharts=r.comboCharts,a.comboBarCount=r.comboBarCount;var o=e.every(function(h){return h.data&&h.data.length===0});(e.length===0||o)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(e),this.theme.init(),new Fe(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!i.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=i.globals.minX,this.ctx.toolbar.maxX=i.globals.maxX),this.formatters.heatmapLabelFormatters(),new Ee(this).getLargestMarkerSize(),this.dimensions.plotCoords();var n=this.core.xySettings();this.grid.createGridMask();var l=this.core.plotChartType(e,n),d=new Te(this);return d.bringForward(),i.config.dataLabels.background.enabled&&d.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:l,xyRatios:n,dimensions:{plot:{left:i.globals.translateX,top:i.globals.translateY,width:i.globals.gridWidth,height:i.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=this,a=i.w;return new Promise(function(r,o){if(i.el===null)return o(new Error("Not enough data to display or target element not found"));(t===null||a.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new ct(i);var n,l,d=i.grid.drawGrid();if(i.annotations=new He(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),a.config.grid.position==="back"&&(d&&a.globals.dom.elGraphical.add(d.el),d!=null&&(n=d.elGridBorders)!==null&&n!==void 0&&n.node&&a.globals.dom.elGraphical.add(d.elGridBorders)),Array.isArray(t.elGraph))for(var h=0;h<t.elGraph.length;h++)a.globals.dom.elGraphical.add(t.elGraph[h]);else a.globals.dom.elGraphical.add(t.elGraph);a.config.grid.position==="front"&&(d&&a.globals.dom.elGraphical.add(d.el),d!=null&&(l=d.elGridBorders)!==null&&l!==void 0&&l.node&&a.globals.dom.elGraphical.add(d.elGridBorders)),a.config.xaxis.crosshairs.position==="front"&&i.crosshairs.drawXCrosshairs(),a.config.yaxis[0].crosshairs.position==="front"&&i.crosshairs.drawYCrosshairs(),a.config.chart.type!=="treemap"&&i.axes.drawAxis(a.config.chart.type,d);var u=new Qe(e.ctx,d),g=new Mt(e.ctx,d);if(d!==null&&(u.xAxisLabelCorrections(d.xAxisTickWidth),g.setYAxisTextAlignments(),a.config.yaxis.map(function(m,x){a.globals.ignoreYAxisIndexes.indexOf(x)===-1&&g.yAxisTitleRotate(x,m.opposite)})),i.annotations.drawAxesAnnotations(),!a.globals.noData){if(a.config.tooltip.enabled&&!a.globals.noData&&i.w.globals.tooltip.drawTooltip(t.xyRatios),a.globals.axisCharts&&(a.globals.isXNumeric||a.config.xaxis.convertedCatToNumeric||a.globals.isRangeBar))(a.config.chart.zoom.enabled||a.config.chart.selection&&a.config.chart.selection.enabled||a.config.chart.pan&&a.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:t.xyRatios});else{var f=a.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(m){f[m]=!1})}a.config.chart.toolbar.show&&!a.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}a.globals.memory.methodsToExec.length>0&&a.globals.memory.methodsToExec.forEach(function(m){m.method(m.params,!1,m.context)}),a.globals.axisCharts||a.globals.noData||i.core.resizeNonAxisCharts(),r(i)})}},{key:"destroy",value:function(){var e,t;window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=yt.get(e))&&(t.disconnect(),yt.delete(e));var i=this.w.config.chart.id;i&&Apex._chartInstances.forEach(function(a,r){a.id===z.escapeString(i)&&Apex._chartInstances.splice(r,1)}),new Gt(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],a=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],r=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],o=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4],n=this.w;return n.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(l,d){return t.updateHelpers._extendSeries(l,d)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),n.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,a,r,o)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,i)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],a=this.w.config.series.slice();return a.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,t,i)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var a=i.w.config.series.slice(),r=0;r<a.length;r++)if(e[r]!==null&&e[r]!==void 0)for(var o=0;o<e[r].data.length;o++)a[r].data.push(e[r].data[o]);return i.w.config.series=a,t&&(i.w.globals.initialSeries=z.clone(i.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(i,a){new Gt(t.ctx).clear({isUpdating:!0});var r=t.create(t.w.config.series,e);if(!r)return i(t);t.mount(r).then(function(){typeof t.w.config.chart.events.updated=="function"&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,i(t)}).catch(function(o){a(o)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(i){t.push(i)})),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addXaxisAnnotationExternal(e,t,a)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addYaxisAnnotationExternal(e,t,a)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,a=this;i&&(a=i),a.annotations.addPointAnnotationExternal(e,t,a)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=this;t&&(i=t),i.annotations.removeAnnotation(i,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new ft(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new ft(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new lt(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new lt(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;typeof e=="function"&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=z.escapeString(e);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(a){return a.id===t})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),t=0;t<e.length;t++)new w(e[t],JSON.parse(e[t].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var i=this.getChartByID(e);if(i){i.w.globals.isExecCalled=!0;var a=null;if(i.publicMethods.indexOf(t)!==-1){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];a=i[t].apply(i,o)}return a}}},{key:"merge",value:function(e,t){return z.extend(e,t)}}]),w}();X.exports=Ft})(fi,fi.exports);var vn=fi.exports;const Bi=bn(vn),Vi=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],Vt=s.defineComponent({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:Vi,setup(X,{emit:L}){const V=s.ref(null),S=s.ref(null),I=K=>K&&typeof K=="object"&&!Array.isArray(K)&&K!=null,B=(K,ye)=>{typeof Object.assign!="function"&&function(){Object.assign=function(ee){if(ee==null)throw new TypeError("Cannot convert undefined or null to object");let Z=Object(ee);for(let Q=1;Q<arguments.length;Q++){let ue=arguments[Q];if(ue!=null)for(let ae in ue)ue.hasOwnProperty(ae)&&(Z[ae]=ue[ae])}return Z}}();let He=Object.assign({},K);return I(K)&&I(ye)&&Object.keys(ye).forEach(ee=>{I(ye[ee])?ee in K?He[ee]=B(K[ee],ye[ee]):Object.assign(He,{[ee]:ye[ee]}):Object.assign(He,{[ee]:ye[ee]})}),He},P=async()=>{if(await s.nextTick(),S.value)return;const K={chart:{type:X.type||X.options.chart.type||"line",height:X.height,width:X.width,events:{}},series:X.series};Vi.forEach(He=>{let ee=(...Z)=>L(He,...Z);K.chart.events[He]=ee});const ye=B(X.options,K);return S.value=new Bi(V.value,ye),S.value.render()},D=()=>(O(),P()),O=()=>{S.value.destroy()},U=(K,ye)=>S.value.updateSeries(K,ye),J=(K,ye,He,ee)=>S.value.updateOptions(K,ye,He,ee),le=K=>S.value.toggleSeries(K),be=K=>{S.value.showSeries(K)},de=K=>{S.value.hideSeries(K)},j=(K,ye)=>S.value.appendSeries(K,ye),se=()=>{S.value.resetSeries()},ge=(K,ye)=>{S.value.toggleDataPointSelection(K,ye)},Pe=K=>S.value.appendData(K),z=(K,ye)=>S.value.zoomX(K,ye),Ge=K=>S.value.dataURI(K),Ie=K=>S.value.setLocale(K),$=(K,ye)=>{S.value.addXaxisAnnotation(K,ye)},Ee=(K,ye)=>{S.value.addYaxisAnnotation(K,ye)},Xe=(K,ye)=>{S.value.addPointAnnotation(K,ye)},Ye=(K,ye)=>{S.value.removeAnnotation(K,ye)},Se=()=>{S.value.clearAnnotations()};s.onBeforeMount(()=>{window.ApexCharts=Bi}),s.onMounted(()=>{V.value=s.getCurrentInstance().proxy.$el,P()}),s.onBeforeUnmount(()=>{S.value&&O()});const _e=s.toRefs(X);return s.watch(_e.options,()=>{!S.value&&X.options?P():S.value.updateOptions(X.options)}),s.watch(_e.series,()=>{!S.value&&X.series?P():S.value.updateSeries(X.series)},{deep:!0}),s.watch(_e.type,()=>{D()}),s.watch(_e.width,()=>{D()}),s.watch(_e.height,()=>{D()}),{chart:S,init:P,refresh:D,destroy:O,updateOptions:J,updateSeries:U,toggleSeries:le,showSeries:be,hideSeries:de,resetSeries:se,zoomX:z,toggleDataPointSelection:ge,appendData:Pe,appendSeries:j,addXaxisAnnotation:$,addYaxisAnnotation:Ee,addPointAnnotation:Xe,removeAnnotation:Ye,clearAnnotations:Se,setLocale:Ie,dataURI:Ge}},render(){return s.h("div",{class:"vue-apexcharts"})}}),yn=X=>{X.component(Vt.name,Vt)};Vt.install=yn;const wn={class:"chart-selector flex flex-row items-center justify-center"},wi=s.defineComponent({__name:"RangeSelector",props:{range:{type:String}},emits:["rangeSelected"],setup(X,{emit:L}){const V=L,S=X;let I=s.computed(()=>S.range);const B=P=>{I=P,V("rangeSelected",P)};return(P,D)=>(s.openBlock(),s.createElementBlock("ul",wn,[s.createElementVNode("li",{class:s.normalizeClass({selected:s.unref(I)==="24h"}),onClick:D[0]||(D[0]=O=>B("24h"))}," 24H ",2),s.createElementVNode("li",{class:s.normalizeClass({selected:s.unref(I)==="7d"}),onClick:D[1]||(D[1]=O=>B("7d"))},"7D",2),s.createElementVNode("li",{class:s.normalizeClass({selected:s.unref(I)==="1m"}),onClick:D[2]||(D[2]=O=>B("1m"))},"1M",2),s.createElementVNode("li",{class:s.normalizeClass({selected:s.unref(I)==="3m"}),onClick:D[3]||(D[3]=O=>B("3m"))},"3M",2)]))}}),kn={class:"chart-header flex flex-row items-center w-full justify-between"},Cn={class:"text-sm font-medium text-gray-500 truncate mr-8"},Sn={key:0,class:"flex items-center gap-x-2 grow"},An={class:"self-center ml-2"},En={class:"self-center ml-2"},Nn={class:"self-center ml-2"},Bn={class:"chart-content relative"},Vn={class:"h-full w-full flex items-center justify-center flex-col"},Ln=s.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1),Pn={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},Mn=s.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[s.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),s.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),s.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1),_n=[Mn],Ki=s.defineComponent({__name:"uiChart",props:{title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{default:"area"},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{default:"24h"},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection"],setup(X,{emit:L}){const V=L,S=X;let B={chart:{toolbar:{show:!1},zoom:{enabled:!1}},colors:function(){return S.isNps?[function({value:be,seriesIndex:de,dataPointIndex:j,w:se}){if(j<=5)return"#F87171";if(j>5&&j<=7)return"#eab308";if(j>=8)return"#84cc16"}]:["#715aff","#00ffff","#aba9ba"]}(),stroke:{show:!0,curve:"smooth",lineCap:"butt",width:1,dashArray:0},dataLabels:{enabled:!0},markers:{strokeWidth:0,size:4,hover:{size:8}}};S.annotations&&(B.annotations={yaxis:[{y:S.annotations.high,borderColor:"#4f46e5",label:{borderColor:"#4f46e5",style:{color:"#fff",background:"#4f46e5"},text:S.annotations.text}}]}),S.type==="area"&&(B.tooltip={intersect:!0,shared:!1});const P=()=>(B.chart.stacked=S.stacked,{...B,...S.options,plotOptions:{bar:{horizontal:S.horizontal}}}),D=be=>{V("selectedRange",{range:be,chartId:S.id})},O=s.computed(()=>S.series),U=s.computed(()=>P()),J=()=>V("chartUpdated"),le=(be,de,j)=>{V("dataPointSelection",{id:S.id,chartContext:de,config:j,event:be})};return(be,de)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["h-["+be.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[s.createElementVNode("div",kn,[s.createElementVNode("div",Cn,s.toDisplayString(be.title),1),be.isNps&&be.npsLiterals?(s.openBlock(),s.createElementBlock("div",Sn,[s.createVNode(pt,{size:"small",color:"red",loading:!1},{default:s.withCtx(()=>[s.createVNode(De,{icon:s.unref(Ra),loading:!1,color:"red"},null,8,["icon"]),s.createTextVNode(),s.createElementVNode("span",An,s.toDisplayString(be.npsLiterals.unhappy),1)]),_:1}),s.createVNode(pt,{size:"small",color:"yellow",loading:!1},{default:s.withCtx(()=>[s.createVNode(De,{icon:s.unref(Oa),loading:!1,color:"yellow"},null,8,["icon"]),s.createTextVNode(),s.createElementVNode("span",En,s.toDisplayString(be.npsLiterals.neutral),1)]),_:1}),s.createVNode(pt,{size:"small",color:"green",loading:!1},{default:s.withCtx(()=>[s.createVNode(De,{icon:s.unref(Ii),loading:!1,color:"green"},null,8,["icon"]),s.createTextVNode(),s.createElementVNode("span",Nn,s.toDisplayString(be.npsLiterals.happy),1)]),_:1})])):s.createCommentVNode("",!0),s.createVNode(wi,{range:be.range,onRangeSelected:D},null,8,["range"])]),s.withDirectives(s.createElementVNode("div",Bn,[s.createVNode(s.unref(Vt),{type:be.type,series:O.value,width:"100%",height:be.height,options:U.value,onUpdated:J,onMounted:J,onDataPointSelection:le},null,8,["type","series","height","options"])],512),[[s.vShow,!be.empty]]),s.withDirectives(s.createElementVNode("div",Vn,[s.createVNode(De,{icon:s.unref(bt),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),Ln],512),[[s.vShow,be.empty]])],2),[[s.vShow,!be.loading]]),s.withDirectives(s.createElementVNode("div",Pn,_n,512),[[s.vShow,be.loading]])],64))}}),Tn={name:"uiFooter"},Dn={class:"bg-white"},zn=s.createElementVNode("div",{class:"mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8"},[s.createElementVNode("div",{class:"mt-8 md:mt-0 md:order-1"},[s.createElementVNode("p",{class:"text-center text-base text-gray-400"},"© Made by Hotelinking.")])],-1),In=[zn];function Fn(X,L,V,S,I,B){return s.openBlock(),s.createElementBlock("footer",Dn,In)}const ea=Pt(Tn,[["render",Fn]]),Xn=s.createElementVNode("div",{class:"spinner h-12 w-12 mb-6"},[s.createElementVNode("img",{src:"https://images.hotelinking.com/ui/loader.gif",alt:"loading animation"})],-1),ta=s.defineComponent({__name:"uiLoadingScreen",props:{title:{},message:{},fixed:{type:Boolean,default:!0}},setup(X){return(L,V)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([{fixed:L.fixed},"load-screen h-full w-full top-0 left-0 z-[100] flex flex-col items-center justify-center bg-gray-50"])},[Xn,s.withDirectives(s.createElementVNode("h2",{class:"text-xs font-bold text-center uppercase mb-2"},s.toDisplayString(L.title),513),[[s.vShow,L.title]]),s.withDirectives(s.createElementVNode("p",{class:"text-xs text-center uppercase md:w-1/4"},s.toDisplayString(L.message),513),[[s.vShow,L.message]])],2))}}),Yn={key:0,class:"py-6 flex items-center justify-between"},On={class:"flex-1 flex justify-between sm:hidden"},Rn={href:"#",class:"relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},Hn={href:"#",class:"ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},$n={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},Wn={class:"text-sm text-gray-700"},jn={class:"font-bold"},Gn={class:"font-bold"},Un={class:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination"},qn={class:"sr-only"},Zn=["onClick"],Jn={class:"sr-only"},Qn={key:1,class:"py-6 flex flex-row justify-between items-center animate-pulse"},Kn=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5"},null,-1),el=s.createElementVNode("div",{class:"h-10 w-32 bg-gray-200 rounded dark:bg-gray-300"},null,-1),tl=[Kn,el],ia=s.defineComponent({__name:"uiPagination",props:{current:{},total:{},loading:{type:Boolean,default:!0}},emits:["changePage"],setup(X,{emit:L}){const V=L,S=X,I=s.ref(3),B=s.computed(()=>Math.max(1,Number(S.current)-Number(I.value))),P=s.computed(()=>Math.min(Number(S.current)+Number(I.value),Number(S.total))),D=s.computed(()=>{let O=[];for(let U=Number(B.value);U<=Number(P.value);U++)O.push(U);return O});return(O,U)=>O.loading?(s.openBlock(),s.createElementBlock("div",Qn,tl)):(s.openBlock(),s.createElementBlock("div",Yn,[s.createElementVNode("div",On,[s.createElementVNode("a",Rn,[s.renderSlot(O.$slots,"previous")]),s.createElementVNode("a",Hn,[s.renderSlot(O.$slots,"next")])]),s.createElementVNode("div",$n,[s.createElementVNode("div",null,[s.createElementVNode("p",Wn,[s.renderSlot(O.$slots,"showing"),s.createTextVNode(),s.createElementVNode("span",jn,s.toDisplayString(O.current+" "),1),s.renderSlot(O.$slots,"of"),s.createTextVNode(),s.createElementVNode("span",Gn,s.toDisplayString(O.total),1)])]),s.createElementVNode("div",null,[s.createElementVNode("nav",Un,[s.withDirectives(s.createElementVNode("button",{onClick:U[0]||(U[0]=J=>V("changePage",O.current-1)),class:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"},[s.createElementVNode("span",qn,[s.renderSlot(O.$slots,"previous")]),s.createVNode(s.unref(zi),{class:"h-5 w-5","aria-hidden":"true"})],512),[[s.vShow,O.current!==1]]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.value,J=>(s.openBlock(),s.createElementBlock("button",{onClick:le=>V("changePage",J),key:J,"aria-current":"page",class:s.normalizeClass([[J===O.current?"z-10 bg-indigo-50 border-indigo-500 text-indigo-600":"bg-white border-gray-300 text-gray-500 hover:bg-gray-50"],"relative inline-flex items-center px-4 py-2 border text-sm font-medium"])},s.toDisplayString(J),11,Zn))),128)),s.withDirectives(s.createElementVNode("button",{onClick:U[1]||(U[1]=J=>V("changePage",O.current+1)),class:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"},[s.createElementVNode("span",Jn,[s.renderSlot(O.$slots,"next")]),s.createVNode(s.unref(Xt),{class:"h-5 w-5","aria-hidden":"true"})],512),[[s.vShow,O.current!==O.total]])])])])]))}}),il={class:"hidden md:flex md:flex-col sticky md:inset-y-0"},al={class:"flex flex-col flex-grow overflow-y-auto"},sl={class:"grow flex flex-col"},rl={class:"flex-1 space-y-1","aria-label":"Sidebar"},ol={key:0},nl=["onClick"],ll={key:1,class:"text-left"},cl={key:1,class:"flex-1 text-left"},dl={key:2,class:"flex-1"},hl=s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},null,-1),ul=[hl],gl={key:0,class:"align-left"},pl={key:1,class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},fl={class:"h-12 flex flex-row items-center"},ml=s.createElementVNode("div",{class:"w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4"},null,-1),xl=s.createElementVNode("div",{class:"h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow"},null,-1),bl=[ml,xl],aa=s.defineComponent({__name:"uiSidebar",props:{navigation:{},filterNavigation:{},isFilterNavigation:{type:Boolean},loading:{type:Boolean,default:!0},logo:{}},emits:["sideBarClick"],setup(X,{emit:L}){const V=L;return(S,I)=>(s.openBlock(),s.createElementBlock("div",il,[s.createElementVNode("div",al,[s.createElementVNode("div",sl,[s.createElementVNode("nav",rl,[S.loading?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},s.renderList(5,B=>s.createElementVNode("div",fl,bl)),64)):(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(S.navigation,B=>(s.openBlock(),s.createElementBlock(s.Fragment,{key:B.name},[B.children?(s.openBlock(),s.createBlock(s.unref(ke.Disclosure),{key:1,as:"div",class:"space-y-1"},{default:s.withCtx(({open:P})=>[s.createVNode(s.unref(ke.DisclosureButton),{class:s.normalizeClass([B.current?"bg-indigo-600 text-white":"text-gray-600 hover:bg-gray-50 hover:text-gray-900","group w-full flex items-center pl-2 pr-1 py-2 text-left text-sm font-medium rounded-md focus:outline-none"])},{default:s.withCtx(()=>[B.icon?(s.openBlock(),s.createBlock(De,{key:0,loading:S.loading,icon:B.icon,class:s.normalizeClass([B.current?"text-white":"text-gray-400 group-hover:text-gray-500","mr-3 flex-shrink-0 h-6 w-6"]),"aria-hidden":"true"},null,8,["loading","icon","class"])):s.createCommentVNode("",!0),S.loading?(s.openBlock(),s.createElementBlock("div",dl,ul)):(s.openBlock(),s.createElementBlock("span",cl,s.toDisplayString(B.name),1)),s.createVNode(s.unref(Xt),{class:s.normalizeClass([P?"text-black rotate-90":"text-gray-400","mr-3 flex-shrink-0 h-3 w-3 transform group-hover:text-gray-400 transition-colors ease-in-out duration-150"])},null,8,["class"])]),_:2},1032,["class"]),s.createVNode(s.unref(ke.DisclosurePanel),{class:"space-y-1"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.children,D=>(s.openBlock(),s.createBlock(s.unref(ke.DisclosureButton),{onClick:O=>V("sideBarClick",D.id),key:D.name,class:s.normalizeClass([D.current?"bg-gray-200":"hover:text-gray-900 hover:bg-gray-100","group text-gray-600 w-full flex items-center text-left pl-11 pr-2 py-2 text-sm font-medium rounded-md"])},{default:s.withCtx(()=>[S.loading?(s.openBlock(),s.createElementBlock("div",pl)):(s.openBlock(),s.createElementBlock("span",gl,s.toDisplayString(D.name),1))]),_:2},1032,["onClick","class"]))),128))]),_:2},1024)]),_:2},1024)):(s.openBlock(),s.createElementBlock("div",ol,[s.createElementVNode("button",{onClick:P=>V("sideBarClick",B.id),class:s.normalizeClass([B.current?"bg-indigo-600 text-white":"text-gray-600 hover:bg-gray-50 hover:text-gray-900","group w-full flex items-center pl-2 py-2 text-sm font-medium rounded-md"])},[B.icon?(s.openBlock(),s.createBlock(De,{key:0,loading:S.loading,icon:B.icon,class:s.normalizeClass([B.current?"text-white":"text-gray-400 group-hover:text-gray-500","mr-3 flex-shrink-0 h-6 w-6"]),"aria-hidden":"true"},null,8,["loading","icon","class"])):s.createCommentVNode("",!0),S.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("span",ll,s.toDisplayString(B.name),1))],10,nl)]))],64))),128))])])])]))}}),vl={key:0},yl={class:"ml-16 text-sm font-medium text-gray-500 truncate"},wl={class:"ml-16 flex items-baseline pb-5"},kl={class:"text-2xl font-semibold text-gray-900"},Cl={key:0,class:"text-black ml-2 flex items-baseline text-sm font-semibold"},Sl={class:"absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6"},Al={class:"text-sm"},El={key:1},Nl={class:"relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6"},Bl={class:"absolute bg-gray-200 rounded-md p-3 animate-pulse"},Vl=s.createElementVNode("div",{class:"ml-16"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse"})],-1),Ll=s.createElementVNode("div",{class:"ml-16"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 animate-pulse"})],-1),ki=s.defineComponent({__name:"uiStats",props:{item:{},loading:{type:Boolean,default:!0}},emits:["statClick"],setup(X,{emit:L}){return(V,S)=>V.loading?(s.openBlock(),s.createElementBlock("div",El,[s.createElementVNode("div",Nl,[s.createElementVNode("dt",null,[s.createElementVNode("div",Bl,[s.createVNode(De,{loading:V.loading,icon:V.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true"},null,8,["loading","icon"])]),Vl,Ll])])])):(s.openBlock(),s.createElementBlock("div",vl,[s.createElementVNode("div",{class:s.normalizeClass(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full",{"pb-12":V.item.showFooter}])},[s.createElementVNode("dt",null,[s.createElementVNode("div",{class:s.normalizeClass(["absolute rounded-md p-3",{"bg-indigo-500":!V.item.color,"bg-green-500":V.item.color==="green","bg-red-500":V.item.color==="red","bg-yellow-500":V.item.color==="yellow","bg-cyan-300":V.item.color==="secondary"}])},[s.createVNode(De,{icon:V.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true",loading:V.loading},null,8,["icon","loading"])],2),s.createElementVNode("p",yl,s.toDisplayString(V.item.name),1)]),s.createElementVNode("dd",wl,[s.createElementVNode("p",kl,s.toDisplayString(V.item.stat),1),V.item.explanation?(s.openBlock(),s.createElementBlock("p",Cl,s.toDisplayString(V.item.explanation),1)):s.createCommentVNode("",!0),V.item.changeType?(s.openBlock(),s.createElementBlock("p",{key:1,class:s.normalizeClass([{"text-green-600":V.item.changeType==="increase","text-red-600":V.item.changeType==="decrease","text-black":V.item.changeType==="neutral"},"ml-2 flex items-baseline text-sm font-semibold"])},[V.item.changeType==="increase"?(s.openBlock(),s.createBlock(s.unref(Ia),{key:0,class:"self-center flex-shrink-0 h-3 w-3 text-green-500","aria-hidden":"true"})):s.createCommentVNode("",!0),V.item.changeType==="decrease"?(s.openBlock(),s.createBlock(s.unref(Da),{key:1,class:"self-center flex-shrink-0 h-3 w-3 text-red-500","aria-hidden":"true"})):s.createCommentVNode("",!0),s.createTextVNode(" "+s.toDisplayString(V.item.change),1)],2)):s.createCommentVNode("",!0),s.withDirectives(s.createElementVNode("div",Sl,[s.createElementVNode("div",Al,[s.createElementVNode("span",{onClick:S[0]||(S[0]=I=>V.$emit("statClick",V.item.id)),class:"font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer"},s.toDisplayString(V.item.actionText),1)])],512),[[s.vShow,V.item.showFooter]])])],2)]))}}),Pl={key:0,class:"overflow-hidden bg-white shadow sm:rounded-lg"},Ml={class:"px-4 py-5 sm:px-6"},_l={class:"text-lg font-medium leading-6 text-gray-900"},Tl={class:"mt-1 max-w-2xl text-sm text-gray-500"},Dl={class:"border-t border-gray-200"},zl={class:"text-sm font-medium text-gray-500"},Il={key:0,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},Fl={key:1,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},Xl=["onClick"],Yl={key:3,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},Ol={key:1,class:"overflow-hidden bg-white shadow sm:rounded-lg"},Rl=s.createStaticVNode('<div class="px-4 py-5 sm:px-6 animate-pulse"><h3 class="text-lg font-medium leading-6 text-gray-900"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></h3><div class="mt-1 max-w-2xl text-sm text-gray-500"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/5"></div></div></div>',1),Hl={class:"border-t border-gray-200"},$l=s.createElementVNode("dt",{class:"text-sm font-medium text-gray-500"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"})],-1),Wl=s.createElementVNode("dd",{class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"})],-1),jl=[$l,Wl],sa=s.defineComponent({__name:"uiStripedCard",props:{title:{},subtitle:{},items:{},loading:{type:Boolean,default:!0}},emits:["itemClicked"],setup(X,{emit:L}){return(V,S)=>V.loading?(s.openBlock(),s.createElementBlock("div",Ol,[Rl,s.createElementVNode("div",Hl,[s.createElementVNode("dl",null,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(5,I=>s.createElementVNode("div",{key:I,class:s.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[I%2===0?"bg-gray-50":"bg-white"]])},jl,2)),64))])])])):(s.openBlock(),s.createElementBlock("div",Pl,[s.createElementVNode("div",Ml,[s.createElementVNode("h3",_l,s.toDisplayString(V.title),1),s.createElementVNode("p",Tl,s.toDisplayString(V.subtitle),1)]),s.createElementVNode("div",Dl,[s.createElementVNode("dl",null,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.items,(I,B)=>(s.openBlock(),s.createElementBlock("div",{key:B,class:s.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[B%2===0?"bg-gray-50":"bg-white"]])},[s.createElementVNode("dt",zl,s.toDisplayString(I.title),1),I.type==="tag"?(s.openBlock(),s.createElementBlock("dd",Il,[s.createVNode(pt,{color:I.color},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(I.text),1)]),_:2},1032,["color"])])):I.type==="tags"?(s.openBlock(),s.createElementBlock("dd",Fl,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.tags,(P,D)=>(s.openBlock(),s.createBlock(pt,{loading:V.loading,key:D,color:P.color,class:"mr-2 mb-2"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(P.text),1)]),_:2},1032,["loading","color"]))),128))])):I.type==="link"?(s.openBlock(),s.createElementBlock("dd",{key:2,class:"mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer",onClick:P=>V.$emit("itemClicked",I.emits)},s.toDisplayString(I.text),9,Xl)):(s.openBlock(),s.createElementBlock("dd",Yl,s.toDisplayString(I.text),1))],2))),128))])])]))}}),Gl={class:"absolute top-10 bg-indigo-600 text-white text-xs p-2 rounded z-10 font-light w-60 flex flex-row items-start"},Ul=s.createElementVNode("svg",{class:"absolute -top-3 left-0",xmlns:"http://www.w3.org/2000/svg",width:"27.687",height:"26.954",viewBox:"0 0 27.687 26.954"},[s.createElementVNode("path",{id:"Polígono_1","data-name":"Polígono 1",d:"M10.5,0,21,19H0Z",transform:"translate(0 10.5) rotate(-30)",fill:"#4f46e5"})],-1),ql={class:"ml-2"},Zl={__name:"tooltip",props:{tip:{type:String,required:!0}},setup(X){return(L,V)=>(s.openBlock(),s.createElementBlock("div",Gl,[Ul,s.createElementVNode("div",null,[s.createVNode(De,{icon:s.unref(ja),loading:!1,color:"white",size:"big"},null,8,["icon"])]),s.createElementVNode("span",ql,s.toDisplayString(X.tip),1)]))}},Jl={key:0},Ql={class:"flex flex-col"},Kl={class:"-my-2 overflow-x-auto"},ec={class:"inline-block min-w-full py-2 align-middle px-1"},tc={class:"relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},ic={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-16 bg-white shadow rounded px-4 py-1 z-10"},ac=["onClick"],sc={class:"min-w-full table-fixed divide-y divide-gray-300"},rc={class:"bg-gray-50"},oc=["checked","indeterminate"],nc=["onMouseover","onMouseleave"],lc=["onClick"],cc={key:2,class:"group flex items-center uppercase text-xs"},dc={class:"divide-y divide-gray-200 bg-white"},hc={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},uc=["value"],gc=["onClick"],pc=["href"],fc={key:3},ra=s.defineComponent({__name:"uiTable",props:{orderedBy:{},orderDirection:{default:"desc"},loading:{type:Boolean,default:!0},header:{},items:{},actions:{}},emits:["tableAction","orderBy","customEmit"],setup(X,{emit:L}){let V=s.ref([]);s.ref(!1);let S=s.ref("");const I=L,B=X,P=s.computed(()=>V.value.length>0&&V.value.length<B.items.length),D=(J,le)=>{S.value!==J&&le&&(S.value=J),le||(S.value=void 0)},O=J=>{V.value=J.target.checked?B.items.map(le=>le.id):[]},U=J=>{I("customEmit",{data:J})};return(J,le)=>{var be,de;return J.loading?(s.openBlock(),s.createBlock(Zi,{key:1})):(s.openBlock(),s.createElementBlock("div",Jl,[s.createElementVNode("div",Ql,[s.createElementVNode("div",Kl,[s.createElementVNode("div",ec,[s.createElementVNode("div",tc,[((be=s.unref(V))==null?void 0:be.length)>0&&((de=J.actions)==null?void 0:de.length)>0?(s.openBlock(),s.createElementBlock("div",ic,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(J.actions,(j,se)=>(s.openBlock(),s.createElementBlock("button",{onClick:ge=>J.$emit("tableAction",{action:j.id,items:s.unref(V)}),key:se,type:"button",class:"inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"},s.toDisplayString(j.name),9,ac))),128))])):s.createCommentVNode("",!0),s.createElementVNode("table",sc,[s.createElementVNode("thead",rc,[s.createElementVNode("tr",null,[s.createElementVNode("th",{scope:"col",class:s.normalizeClass([J.actions?"px-6 sm:px-8":"px-3","relative"])},[J.actions?(s.openBlock(),s.createElementBlock("input",{key:0,checked:P.value||s.unref(V).length===J.items.length,indeterminate:P.value,class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500",type:"checkbox",onChange:O},null,40,oc)):s.createCommentVNode("",!0)],2),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(J.header,(j,se)=>(s.openBlock(),s.createElementBlock("th",{key:se,class:"py-3.5 pr-3 text-left font-semibold text-gray-900 relative",scope:"col",onMouseover:ge=>D(j.name,!0),onMouseleave:ge=>D(j.name,!1)},[j.tooltip?s.withDirectives((s.openBlock(),s.createBlock(Zl,{key:0,tip:j.tooltip},null,8,["tip"])),[[s.vShow,s.unref(S)===j.name]]):s.createCommentVNode("",!0),j.value?(s.openBlock(),s.createElementBlock("button",{key:1,class:"group flex items-center uppercase text-xs relative text-nowrap",onClick:ge=>I("orderBy",{value:j.value,orderDirection:J.orderDirection==="asc"?"desc":"asc"})},[s.createElementVNode("span",null,s.toDisplayString(j.name),1),s.createElementVNode("span",{class:s.normalizeClass([[j.value===J.orderedBy?"bg-indigo-600 text-white group-hover:bg-gray-300":"text-gray-400 group-hover:visible group-focus:visible"],"ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"])},[s.createVNode(De,{icon:J.orderDirection==="asc"?s.unref(qt):s.unref(Ya),loading:J.loading,color:j.value===J.orderedBy?"white":"primary"},null,8,["icon","loading","color"])],2)],8,lc)):(s.openBlock(),s.createElementBlock("p",cc,[s.createElementVNode("span",null,s.toDisplayString(j.name),1)]))],40,nc))),128))])]),s.createElementVNode("tbody",dc,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(J.items,(j,se)=>{var ge,Pe;return s.openBlock(),s.createElementBlock("tr",{key:j.id,class:s.normalizeClass([s.unref(V).includes(j.id)&&"bg-gray-50",se%2===0?void 0:"bg-gray-50"])},[s.createElementVNode("td",{class:s.normalizeClass([((ge=J.actions)==null?void 0:ge.length)>0?"w-2":"w-0","relative"])},[s.unref(V).includes(j.id)?(s.openBlock(),s.createElementBlock("div",hc)):s.createCommentVNode("",!0),((Pe=J.actions)==null?void 0:Pe.length)>0?s.withDirectives((s.openBlock(),s.createElementBlock("input",{key:1,"onUpdate:modelValue":le[0]||(le[0]=z=>s.isRef(V)?V.value=z:V=z),value:j.id,class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap",type:"checkbox"},null,8,uc)),[[s.vModelCheckbox,s.unref(V)]]):s.createCommentVNode("",!0)],2),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(j.row,(z,Ge)=>(s.openBlock(),s.createElementBlock("td",{key:Ge,class:s.normalizeClass(["whitespace-nowrap py-4 pr-3 text-sm",s.unref(V).includes(j.id)?"text-indigo-600":"text-gray-900"])},[typeof z=="object"&&z.type==="tag"?(s.openBlock(),s.createBlock(pt,{key:0,loading:J.loading,color:z.color},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(z.content),1)]),_:2},1032,["loading","color"])):typeof z=="object"&&z.type==="link"?(s.openBlock(),s.createElementBlock("span",{key:1,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",onClick:Ie=>U(z)},s.toDisplayString(z.content),9,gc)):typeof z=="object"&&z.type==="href"?(s.openBlock(),s.createElementBlock("a",{key:2,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",href:z.href,target:"_blank"},s.toDisplayString(z.content),9,pc)):(s.openBlock(),s.createElementBlock("span",fc,s.toDisplayString(z),1))],2))),128))],2)}),128))])])])])])])]))}}}),mc={class:"lg:hidden"},xc=["value"],bc={class:"hidden lg:block"},vc={class:"border-b border-gray-200"},yc={class:"-mb-px flex space-x-8","aria-label":"Tabs"},wc=["onClick","aria-current"],oa=s.defineComponent({__name:"uiTabs",props:{tabs:{}},emits:["tabClicked"],setup(X,{emit:L}){const V=L,S=I=>{const B=I.target;B.value&&V("tabClicked",B.value)};return(I,B)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",mc,[s.createElementVNode("select",{onChange:B[0]||(B[0]=P=>S(P)),id:"tabs",name:"tabs",class:"block w-full rounded-md border-gray-300 py-2 pl-3 pr-10 text-base focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm"},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.tabs,P=>(s.openBlock(),s.createElementBlock("option",{value:P.id,key:P.name},s.toDisplayString(P.name),9,xc))),128))],32)]),s.createElementVNode("div",bc,[s.createElementVNode("div",vc,[s.createElementVNode("nav",yc,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.tabs,P=>(s.openBlock(),s.createElementBlock("a",{key:P.name,onClick:D=>V("tabClicked",P.id),class:s.normalizeClass([P.current?"border-indigo-500 text-indigo-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-200","whitespace-nowrap flex py-4 px-1 border-b-2 font-medium text-sm cursor-pointer"]),"aria-current":P.current?"page":void 0},[s.createTextVNode(s.toDisplayString(P.name)+" ",1),P.count?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass([P.current?"bg-indigo-100 text-indigo-600":"bg-gray-100 text-gray-900","hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block"])},s.toDisplayString(P.count),3)):s.createCommentVNode("",!0)],10,wc))),128))])])])]))}}),kc={class:"px-4 py-5 sm:px-6"},Cc={class:"text-xl font-bold"},Sc={key:0,class:"px-4 py-5 sm:p-6"},Ac={class:"flow-root"},Ec={class:"relative pb-8"},Nc={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},Bc={class:"relative flex space-x-3"},Vc={class:"min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"},Lc={class:"text-sm text-gray-500"},Pc=["onClick"],Mc={class:"text-right text-sm whitespace-nowrap text-gray-500"},_c=["datetime"],Tc={key:1,class:"bg-gray-50 px-4 py-4 sm:px-6 z-10"},Dc={class:"text-sm"},zc={key:2,class:"h-full w-full flex items-center justify-center flex-col mb-5"},Ic=s.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1),Fc={key:1,class:"bg-white overflow-hidden shadow rounded-lg"},Xc=s.createElementVNode("div",{class:"px-4 py-5 sm:px-6 animate-pulse"},[s.createElementVNode("h1",{class:"text-xl font-bold"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"})])],-1),Yc={class:"px-4 py-5 sm:p-6 animate-pulse"},Oc={class:"flow-root"},Rc={class:"-mb-8",role:"list"},Hc={class:"relative pb-8"},$c={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},Wc=s.createStaticVNode('<div class="relative flex space-x-3"><div><span class="h-8 w-8 rounded-full bg-gray-300 flex items-center justify-center ring-4 ring-white"></span></div><div class="min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"><div><div class="text-sm text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full"></div></div></div><div class="text-right text-sm whitespace-nowrap text-gray-500 flex-1"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"></div></div></div></div>',1),jc=s.createElementVNode("div",{class:"bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse"},[s.createElementVNode("div",{class:"text-sm"},[s.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"})])],-1),na=s.defineComponent({__name:"uiTimeline",props:{name:{},timeline:{},height:{},empty:{type:Boolean,default:!1},loading:{type:Boolean,default:!0}},setup(X){const L=X,V=s.reactive(L.timeline);return(S,I)=>S.loading?(s.openBlock(),s.createElementBlock("div",Fc,[Xc,s.createElementVNode("div",Yc,[s.createElementVNode("div",Oc,[s.createElementVNode("ul",Rc,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(10,(B,P)=>s.createElementVNode("li",{key:P},[s.createElementVNode("div",Hc,[B!==10?(s.openBlock(),s.createElementBlock("span",$c)):s.createCommentVNode("",!0),Wc])])),64))])])]),jc])):(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["h-["+S.height+"px]","bg-white overflow-hidden shadow rounded-lg"])},[s.createElementVNode("div",kc,[s.createElementVNode("h1",Cc,s.toDisplayString(S.name),1)]),V.items?(s.openBlock(),s.createElementBlock("div",Sc,[s.createElementVNode("div",Ac,[s.createVNode(s.TransitionGroup,{name:"list",tag:"ul",class:"-mb-8"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.items,(B,P)=>{var D;return s.openBlock(),s.createElementBlock("li",{key:P},[s.createElementVNode("div",Ec,[P<((D=V.items)==null?void 0:D.length)-1?(s.openBlock(),s.createElementBlock("span",Nc)):s.createCommentVNode("",!0),s.createElementVNode("div",Bc,[s.createElementVNode("div",null,[s.createElementVNode("span",{class:s.normalizeClass([(B==null?void 0:B.iconBackground)||"bg-indigo-600","h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])},[s.createVNode(De,{loading:S.loading,icon:B==null?void 0:B.icon,"aria-hidden":"true",class:"h-5 w-5 text-white",color:"white"},null,8,["loading","icon"])],2)]),s.createElementVNode("div",Vc,[s.createElementVNode("div",null,[s.createElementVNode("p",Lc,[s.createElementVNode("a",{onClick:O=>S.$emit("timelineEventClicked",B==null?void 0:B.linkId),class:"font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer"},s.toDisplayString(B==null?void 0:B.target),9,Pc),s.createTextVNode(" "+s.toDisplayString(B==null?void 0:B.content),1)])]),s.createElementVNode("div",Mc,[s.createElementVNode("time",{datetime:B==null?void 0:B.datetime},s.toDisplayString(B==null?void 0:B.date),9,_c)])])])])])}),128))]),_:1})])])):s.createCommentVNode("",!0),V.items?(s.openBlock(),s.createElementBlock("div",Tc,[s.createElementVNode("div",Dc,[s.createElementVNode("a",{class:"cursor-pointer font-medium text-indigo-600 hover:text-indigo-500",onClick:I[0]||(I[0]=B=>S.$emit("timelineFooterClicked",S.timeline.id))},s.toDisplayString(S.timeline.footerText),1)])])):(s.openBlock(),s.createElementBlock("div",zc,[s.createVNode(De,{icon:s.unref(bt),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),Ic]))],2))}}),Gc={class:"mx-auto px-6 lg:px-8"},Uc={class:"flex justify-between h-20"},qc={class:"flex"},Zc={class:"-ml-2 mr-2 flex items-center lg:hidden"},Jc=s.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Qc=["src"],Kc={class:"flex items-center"},ed={class:"lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden"},td={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1"},id=s.createElementVNode("span",{class:"animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75"},null,-1),ad=[id],sd=["src"],rd=["onClick"],od={class:"pt-2 pb-3 space-y-1"},nd=["onClick"],ld={class:"pt-4 pb-3 border-t border-gray-200"},cd={class:"flex items-center px-4 sm:px-6"},dd={class:"flex-shrink-0"},hd=["src"],ud={key:0,class:"ml-3"},gd={class:"text-base font-medium text-gray-800"},pd={class:"text-sm font-medium text-gray-500"},fd={class:"mt-3 space-y-1"},md=["onClick"],la=s.defineComponent({__name:"uiTopbar",props:{logo:{},alerted:{type:Boolean},accountLogo:{},profileMenu:{},brand:{},navigation:{}},emits:["topBarClick"],setup(X,{emit:L}){return(V,S)=>(s.openBlock(),s.createBlock(s.unref(ke.Disclosure),{as:"nav",class:"bg-white shadow z-10"},{default:s.withCtx(({open:I})=>[s.createElementVNode("div",Gc,[s.createElementVNode("div",Uc,[s.createElementVNode("div",qc,[s.createElementVNode("div",Zc,[s.createVNode(s.unref(ke.DisclosureButton),{class:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500"},{default:s.withCtx(()=>[Jc,I?(s.openBlock(),s.createBlock(s.unref(Ct),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(s.openBlock(),s.createBlock(s.unref(Ti),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)]),s.createElementVNode("div",{class:"flex-shrink-0 flex items-center cursor-pointer",onClick:S[0]||(S[0]=B=>V.$emit("topBarClick","logo"))},[s.createElementVNode("img",{class:"h-10",src:V.logo,alt:"Hotelinking suite product logo"},null,8,Qc)])]),s.createElementVNode("div",Kc,[s.createElementVNode("div",ed,[s.createVNode(s.unref(ke.Menu),{as:"div",class:"ml-3 relative"},{default:s.withCtx(()=>[s.createElementVNode("div",null,[s.withDirectives(s.createVNode(s.unref(ke.MenuButton),{class:"bg-white rounded-full flex text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 relative"},{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",td,ad,512),[[s.vShow,V.alerted]]),s.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:V.accountLogo},null,8,sd)]),_:1},512),[[s.vShow,V.accountLogo]])]),s.createVNode(s.Transition,{"enter-active-class":"transition ease-out duration-200","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.MenuItems),{class:"origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.profileMenu,B=>(s.openBlock(),s.createBlock(s.unref(ke.MenuItem),{key:B.name},{default:s.withCtx(({active:P})=>[s.createElementVNode("p",{onClick:D=>V.$emit("topBarClick",B.id),class:s.normalizeClass(["cursor-pointer",[P?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"]])},s.toDisplayString(B.name),11,rd)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])])]),s.createVNode(s.unref(ke.DisclosurePanel),{class:"lg:hidden"},{default:s.withCtx(()=>[s.createElementVNode("div",od,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.navigation,B=>(s.openBlock(),s.createBlock(s.unref(ke.DisclosureButton),{as:"template",key:B.name,class:s.normalizeClass(["block pl-3 pr-4 py-2 border-l-4 text-base font-medium sm:pl-5 sm:pr-6",{"bg-indigo-50 border-indigo-500 text-indigo-700":B.current&&B.current===!0,"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700":!B.current}])},{default:s.withCtx(()=>[s.createElementVNode("p",{onClick:P=>V.$emit("topBarClick",B.id)},s.toDisplayString(B.name),9,nd)]),_:2},1032,["class"]))),128))]),s.createElementVNode("div",ld,[s.createElementVNode("div",cd,[s.createElementVNode("div",dd,[s.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:V.accountLogo},null,8,hd)]),V.brand?(s.openBlock(),s.createElementBlock("div",ud,[s.createElementVNode("div",gd,s.toDisplayString(V.brand.title),1),s.createElementVNode("div",pd,s.toDisplayString(V.brand.subtitle),1)])):s.createCommentVNode("",!0)]),s.createElementVNode("div",fd,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.profileMenu,B=>(s.openBlock(),s.createBlock(s.unref(ke.DisclosureButton),{as:"template",key:B.name,class:"block px-4 py-2 text-base font-medium text-gray-500 hover:text-gray-800 hover:bg-gray-100 sm:px-6"},{default:s.withCtx(()=>[s.createElementVNode("p",{onClick:P=>V.$emit("topBarClick",B.id)},s.toDisplayString(B.name),9,md)]),_:2},1024))),128))])])]),_:1})]),_:1}))}}),xd={class:"chart-header flex flex-row justify-between"},bd={class:"text-sm font-medium text-gray-500 truncate"},vd={class:"chart-content"},yd={class:"h-full w-full flex items-center justify-center flex-col"},wd=s.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1),kd={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},Cd=s.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[s.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),s.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),s.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1),Sd=[Cd],ca=s.defineComponent({__name:"uiFunnelChartV2",props:{title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{default:"bar"},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{default:"24h"},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection"],setup(X,{emit:L}){const V=L,S=X;let I={chart:{type:"bar",toolbar:{show:!1},zoom:{enabled:!1}},colors:["#715aff"],dataLabels:{enabled:!0,formatter:function(U,J){return J.w.globals.labels[J.dataPointIndex]+": "+U}},markers:{strokeWidth:0,size:4,hover:{size:8}},plotOptions:{bar:{borderRadius:0,horizontal:!0,barHeight:"80%",isFunnel:!0}}};const B=s.computed(()=>({...S.options,...I})),P=s.computed(()=>S.series),D=()=>V("chartUpdated"),O=(U,J,le)=>{V("dataPointSelection",{id:S.id,chartContext:J,config:le,event:U})};return(U,J)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["h-["+U.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[s.createElementVNode("div",xd,[s.createElementVNode("div",bd,s.toDisplayString(U.title),1),s.createVNode(wi,{range:U.range,onRangeSelected:J[0]||(J[0]=le=>U.$emit("selectedRange",{range:le,chartId:U.id}))},null,8,["range"])]),s.withDirectives(s.createElementVNode("div",vd,[s.createVNode(s.unref(Vt),{type:U.type,series:P.value,width:"100%",height:U.height,options:B.value,onUpdated:D,onMounted:D,onDataPointSelection:O},null,8,["type","series","height","options"])],512),[[s.vShow,!U.empty]]),s.withDirectives(s.createElementVNode("div",yd,[s.createVNode(De,{icon:s.unref(bt),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),wd],512),[[s.vShow,U.empty]])],2),[[s.vShow,!U.loading]]),s.withDirectives(s.createElementVNode("div",kd,Sd,512),[[s.vShow,U.loading]])],64))}}),Ad={class:"w-full flex flex-col items-center justify-center p-10 grow"},Ed={class:"text-2xl mt-4 font-bold"},Nd={class:"buttons flex flex-row items-center justify-center mt-8 gap-x-1"},da=s.defineComponent({__name:"uiNoResults",props:{title:{},message:{},actions:{},items:{},select:{}},emits:["action","noResultsSelectChanged"],setup(X){return(L,V)=>(s.openBlock(),s.createElementBlock("div",Ad,[s.createVNode(De,{loading:!1,icon:s.unref(bt),size:"massive",color:"gray"},null,8,["icon"]),s.createElementVNode("h2",Ed,s.toDisplayString(L.title),1),s.createElementVNode("p",null,s.toDisplayString(L.message),1),s.createElementVNode("div",Nd,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.actions,(S,I)=>(s.openBlock(),s.createBlock(kt,{key:I,loading:!1,onClick:B=>L.$emit("action",S.action)},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(S.text),1)]),_:2},1032,["onClick"]))),128)),L.items?(s.openBlock(),s.createBlock(vi,{key:0,class:"-mt-1",items:L.items,select:L.select,loading:!1,onSelectChanged:V[0]||(V[0]=S=>L.$emit("noResultsSelectChanged",S))},null,8,["items","select"])):s.createCommentVNode("",!0)])]))}}),Bd=s.createElementVNode("div",{class:"fixed inset-0"},null,-1),Vd={class:"fixed inset-0 overflow-hidden"},Ld={class:"absolute inset-0 overflow-hidden"},Pd={class:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10"},Md={class:"flex h-full flex-col overflow-y-scroll bg-white shadow-xl"},_d={class:"bg-indigo-700 px-4 py-6 sm:px-6"},Td={class:"flex items-center justify-between"},Dd={class:"ml-3 flex h-7 items-center"},zd=s.createElementVNode("span",{class:"absolute -inset-2.5"},null,-1),Id=s.createElementVNode("span",{class:"sr-only"},"Close panel",-1),Fd={class:"mt-1"},Xd={class:"text-sm text-indigo-300"},Yd={class:"relative flex-1 px-4 py-6 sm:px-6"},ha=s.defineComponent({__name:"uiRightSidebar",props:{title:{},description:{},open:{type:Boolean,default:!1}},emits:["closeRightBar"],setup(X,{emit:L}){return(V,S)=>(s.openBlock(),s.createBlock(s.unref(ke.TransitionRoot),{as:"template",show:V.open},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.Dialog),{as:"div",class:"relative z-10",onClose:S[1]||(S[1]=I=>V.$emit("closeRightBar"))},{default:s.withCtx(()=>[Bd,s.createElementVNode("div",Vd,[s.createElementVNode("div",Ld,[s.createElementVNode("div",Pd,[s.createVNode(s.unref(ke.TransitionChild),{as:"template",enter:"transform transition ease-in-out duration-500 sm:duration-700","enter-from":"translate-x-full","enter-to":"translate-x-0",leave:"transform transition ease-in-out duration-500 sm:duration-700","leave-from":"translate-x-0","leave-to":"translate-x-full"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.DialogPanel),{class:"pointer-events-auto w-screen max-w-md"},{default:s.withCtx(()=>[s.createElementVNode("div",Md,[s.createElementVNode("div",_d,[s.createElementVNode("div",Td,[s.createVNode(s.unref(ke.DialogTitle),{class:"text-base font-semibold leading-6 text-white"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(V.title),1)]),_:1}),s.createElementVNode("div",Dd,[s.createElementVNode("button",{type:"button",class:"relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none",onClick:S[0]||(S[0]=I=>V.$emit("closeRightBar"))},[zd,Id,s.createVNode(s.unref(Ct),{class:"h-6 w-6 ring-0","aria-hidden":"true"})])])]),s.createElementVNode("div",Fd,[s.createElementVNode("p",Xd,s.toDisplayString(V.description),1)])]),s.createElementVNode("div",Yd,[s.renderSlot(V.$slots,"default")])])]),_:3})]),_:3})])])])]),_:3})]),_:3},8,["show"]))}}),Od={class:"uiGallery"},Rd={key:1,role:"list",class:"grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"},Hd={class:"group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100"},$d=["src"],Wd=["onClick"],jd={class:"pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900"},Gd={class:"flex items-center justify-between"},Ud={class:"pointer-events-none block text-sm font-medium text-gray-500"},qd={key:2,role:"list",class:"grid grid-cols-2 gap-x-4 gap-y-8 sm:grid-cols-3 sm:gap-x-4 lg:grid-cols-6"},Zd=s.createElementVNode("div",{class:"group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-200 animate-pulse dark:bg-gray-200 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100"},null,-1),Jd=s.createElementVNode("p",{class:"animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4"},null,-1),Qd=s.createElementVNode("p",{class:"animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2"},null,-1),Kd=[Zd,Jd,Qd],ua=s.defineComponent({__name:"uiGallery",props:{galleryId:{},gallery:{},loading:{type:Boolean},literals:{}},emits:["modalAction","deleteImage","imgClicked"],setup(X,{emit:L}){const V=L,S=s.ref(!1),I=B=>{S.value=!1,V("modalAction",B)};return(B,P)=>(s.openBlock(),s.createElementBlock("div",Od,[B.loading?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(yi,{key:0,open:S.value,modalName:"deleteAllImagesModal",title:B.literals.modalTitle,type:"warning",actions:[{value:"close",name:B.literals.closeAction},{value:`deleteGallery_${B.galleryId}`,name:B.literals.deleteAction}],onModalAction:P[0]||(P[0]=D=>I(D))},{default:s.withCtx(()=>[s.createElementVNode("p",null,s.toDisplayString(B.literals.modalText),1)]),_:1},8,["open","title","actions"])),B.loading?(s.openBlock(),s.createElementBlock("ul",qd,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(4,D=>s.createElementVNode("li",null,Kd)),64))])):(s.openBlock(),s.createElementBlock("ul",Rd,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.gallery,D=>(s.openBlock(),s.createElementBlock("li",{key:D.source,class:"relative"},[s.createElementVNode("div",Hd,[s.createElementVNode("img",{src:D.source,alt:"",class:"pointer-events-none object-cover group-hover:opacity-75"},null,8,$d),s.createElementVNode("button",{type:"button",class:"absolute inset-0 focus:outline-none",onClick:O=>B.$emit("imgClicked",D)},null,8,Wd)]),s.createElementVNode("p",jd,s.toDisplayString(D.title),1),s.createElementVNode("div",Gd,[s.createElementVNode("p",Ud,s.toDisplayString(D.size),1),s.createVNode(De,{class:"cursor-pointer",icon:s.unref(Ga),color:"red",loading:!1,onClick:O=>B.$emit("deleteImage",D)},null,8,["icon","onClick"])])]))),128))])),B.gallery.length>0&&!B.loading?(s.openBlock(),s.createBlock(kt,{key:3,onClick:P[1]||(P[1]=D=>S.value=!0),class:"mt-8",loading:!1,color:"red",size:"small"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(B.literals.deleteAllImages),1)]),_:1})):s.createCommentVNode("",!0)]))}}),eh={class:"cursor-move mb-1 relative flex items-center space-x-3 rounded-lg border border-gray-300 bg-white p-4 shadow-sm focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:border-gray-400"},th={class:"flex flex-row items-center w-full"},ih={class:"content text-sm grow"},ah={class:"font-bold"},sh={key:0},rh={class:"font-bold text-gray-400"},oh={key:1,class:"animate-pulse"},nh=s.createStaticVNode('<div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 mb-1 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div><div class="h-16 relative flex items-center space-x-3 rounded-lg bg-gray-200 dark:bg-gray-300 p-4 shadow-sm"></div>',5),lh=[nh],ga=s.defineComponent({__name:"uiDragAndDrop",props:{elements:{},loading:{type:Boolean,default:!0}},emits:["dragAndDropUpdated"],setup(X,{emit:L}){const V=L,S=X;let I=s.ref(S.elements);s.watch(()=>S.elements,P=>{I.value=P});const B=P=>{V("dragAndDropUpdated",P)};return(P,D)=>P.loading?(s.openBlock(),s.createElementBlock("div",oh,lh)):(s.openBlock(),s.createBlock(s.unref(ka),{key:0,modelValue:s.unref(I),"onUpdate:modelValue":[D[0]||(D[0]=O=>s.isRef(I)?I.value=O:I=O),D[1]||(D[1]=O=>B(O))]},{item:s.withCtx(({item:O})=>[s.createElementVNode("div",eh,[s.createElementVNode("div",th,[s.createVNode(De,{icon:s.unref(Fa),loading:!1,color:"gray",class:"mr-4",size:"big"},null,8,["icon"]),s.createElementVNode("div",ih,[s.createElementVNode("p",ah,s.toDisplayString(O.name),1),O.description?(s.openBlock(),s.createElementBlock("p",sh,s.toDisplayString(O.description),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",rh,s.toDisplayString(s.unref(I).indexOf(O)+1),1)])])]),_:1},8,["modelValue"]))}}),ch={class:"chart-header flex flex-row justify-between"},dh={class:"text-sm font-medium text-gray-500 truncate"},hh={class:"chart-content"},uh={class:"h-full w-full flex items-center justify-center flex-col"},gh=s.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1),ph={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},fh=s.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[s.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),s.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),s.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),s.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1),mh=[fh],pa=s.defineComponent({__name:"uiCircleChart",props:{title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{default:"24h"},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection"],setup(X,{emit:L}){const V=L,S=X;let I={chart:{toolbar:{show:!1},zoom:{enabled:!1}},colors:["#715aff","#00ffff","#aba9ba"],stroke:{show:!0,curve:"stepline",lineCap:"butt",width:1,dashArray:0},dataLabels:{enabled:!0},markers:{strokeWidth:0,size:4,hover:{size:8}}};const B=()=>({...I,...S.options}),P=s.computed(()=>S.series),D=s.computed(()=>B()),O=()=>V("chartUpdated"),U=(J,le,be)=>{V("dataPointSelection",{id:S.id,chartContext:le,config:be,event:J})};return(J,le)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.withDirectives(s.createElementVNode("div",{class:s.normalizeClass(["h-["+J.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[s.createElementVNode("div",ch,[s.createElementVNode("div",dh,s.toDisplayString(J.title),1),s.createVNode(wi,{range:J.range,onRangeSelected:le[0]||(le[0]=be=>J.$emit("selectedRange",{range:be,chartId:J.id}))},null,8,["range"])]),s.withDirectives(s.createElementVNode("div",hh,[s.createVNode(s.unref(Vt),{class:"flex items-center justify-center",type:"donut",series:P.value,options:D.value,height:J.height,onUpdated:O,onMounted:O,onDataPointSelection:U},null,8,["series","options","height"])],512),[[s.vShow,!J.empty]]),s.withDirectives(s.createElementVNode("div",uh,[s.createVNode(De,{icon:s.unref(bt),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),gh],512),[[s.vShow,J.empty]])],2),[[s.vShow,!J.loading]]),s.withDirectives(s.createElementVNode("div",ph,mh,512),[[s.vShow,J.loading]])],64))}}),xh={key:0,class:"flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"},bh={key:1,class:"flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"},fa=s.defineComponent({__name:"uiDateRange",props:{id:{},loading:{type:Boolean},literals:{},values:{},color:{},error:{},disabled:{type:Boolean},label:{},placeholder:{}},setup(X){let L=s.reactive({from:"",to:""});const V=(S,I)=>{S==="from"?L.from=I:L.to=I};return(S,I)=>{var B,P,D,O;return S.loading?(s.openBlock(),s.createElementBlock("div",bh,[s.createVNode(wt,{name:"dateFrom",loading:!0}),s.createVNode(wt,{name:"dateTo",loading:!0}),s.createVNode(kt,{loading:!0},{default:s.withCtx(()=>[s.createTextVNode("Search")]),_:1})])):(s.openBlock(),s.createElementBlock("div",xh,[s.createVNode(wt,{type:"date",loading:!1,addOn:S.literals.from,name:`dateFrom_${S.id}`,color:S.color,value:(P=(B=S.values)==null?void 0:B.from)==null?void 0:P.toString(),error:S.error,disabled:S.disabled,label:S.label,onInputChanged:I[0]||(I[0]=U=>V("from",U.value))},null,8,["addOn","name","color","value","error","disabled","label"]),s.createVNode(wt,{type:"date",loading:!1,class:s.normalizeClass([{"mt-6":S.label}]),addOn:S.literals.to,name:`dateTo_${S.id}`,color:S.color,value:(O=(D=S.values)==null?void 0:D.to)==null?void 0:O.toString(),error:S.error,disabled:S.disabled,label:void 0,onInputChanged:I[1]||(I[1]=U=>V("to",U.value))},null,8,["class","addOn","name","color","value","error","disabled"]),s.createVNode(kt,{disabled:S.disabled,color:"primary",loading:!1,class:s.normalizeClass([{"mt-6":S.label},"h-10"]),onClick:I[2]||(I[2]=U=>S.$emit("uiDateRangeButtonClicked",s.unref(L)))},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(S.literals.search),1)]),_:1},8,["disabled","class"])]))}}});function Ut(X){return[null,void 0,!1].indexOf(X)!==-1}function vh(X){return X&&X.__esModule&&Object.prototype.hasOwnProperty.call(X,"default")?X.default:X}function ma(X){var L={exports:{}};return X(L,L.exports),L.exports}var Li=ma(function(X,L){X.exports=function(){var V=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function S(j){return j.split("").reverse().join("")}function I(j,se){return j.substring(0,se.length)===se}function B(j,se){return j.slice(-1*se.length)===se}function P(j,se,ge){if((j[se]||j[ge])&&j[se]===j[ge])throw new Error(se)}function D(j){return typeof j=="number"&&isFinite(j)}function O(j,se){return j=j.toString().split("e"),(+((j=(j=Math.round(+(j[0]+"e"+(j[1]?+j[1]+se:se)))).toString().split("e"))[0]+"e"+(j[1]?+j[1]-se:-se))).toFixed(se)}function U(j,se,ge,Pe,z,Ge,Ie,$,Ee,Xe,Ye,Se){var _e,K,ye,He=Se,ee="",Z="";return Ge&&(Se=Ge(Se)),!!D(Se)&&(j!==!1&&parseFloat(Se.toFixed(j))===0&&(Se=0),Se<0&&(_e=!0,Se=Math.abs(Se)),j!==!1&&(Se=O(Se,j)),(Se=Se.toString()).indexOf(".")!==-1?(ye=(K=Se.split("."))[0],ge&&(ee=ge+K[1])):ye=Se,se&&(ye=S(ye).match(/.{1,3}/g),ye=S(ye.join(S(se)))),_e&&$&&(Z+=$),Pe&&(Z+=Pe),_e&&Ee&&(Z+=Ee),Z+=ye,Z+=ee,z&&(Z+=z),Xe&&(Z=Xe(Z,He)),Z)}function J(j,se,ge,Pe,z,Ge,Ie,$,Ee,Xe,Ye,Se){var _e,K="";return Ye&&(Se=Ye(Se)),!(!Se||typeof Se!="string")&&($&&I(Se,$)&&(Se=Se.replace($,""),_e=!0),Pe&&I(Se,Pe)&&(Se=Se.replace(Pe,"")),Ee&&I(Se,Ee)&&(Se=Se.replace(Ee,""),_e=!0),z&&B(Se,z)&&(Se=Se.slice(0,-1*z.length)),se&&(Se=Se.split(se).join("")),ge&&(Se=Se.replace(ge,".")),_e&&(K+="-"),(K=(K+=Se).replace(/[^0-9\.\-.]/g,""))!==""&&(K=Number(K),Ie&&(K=Ie(K)),!!D(K)&&K))}function le(j){var se,ge,Pe,z={};for(j.suffix===void 0&&(j.suffix=j.postfix),se=0;se<V.length;se+=1)if((Pe=j[ge=V[se]])===void 0)ge!=="negative"||z.negativeBefore?ge==="mark"&&z.thousand!=="."?z[ge]=".":z[ge]=!1:z[ge]="-";else if(ge==="decimals"){if(!(Pe>=0&&Pe<8))throw new Error(ge);z[ge]=Pe}else if(ge==="encoder"||ge==="decoder"||ge==="edit"||ge==="undo"){if(typeof Pe!="function")throw new Error(ge);z[ge]=Pe}else{if(typeof Pe!="string")throw new Error(ge);z[ge]=Pe}return P(z,"mark","thousand"),P(z,"prefix","negative"),P(z,"prefix","negativeBefore"),z}function be(j,se,ge){var Pe,z=[];for(Pe=0;Pe<V.length;Pe+=1)z.push(j[V[Pe]]);return z.push(ge),se.apply("",z)}function de(j){if(!(this instanceof de))return new de(j);typeof j=="object"&&(j=le(j),this.to=function(se){return be(j,U,se)},this.from=function(se){return be(j,J,se)})}return de}()}),yh=vh(ma(function(X,L){(function(V){function S(F){return I(F)&&typeof F.from=="function"}function I(F){return typeof F=="object"&&typeof F.to=="function"}function B(F){F.parentElement.removeChild(F)}function P(F){return F!=null}function D(F){F.preventDefault()}function O(F){return F.filter(function(A){return!this[A]&&(this[A]=!0)},{})}function U(F,A){return Math.round(F/A)*A}function J(F,A){var te=F.getBoundingClientRect(),xe=F.ownerDocument,ce=xe.documentElement,Ce=Ge(xe);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(Ce.x=0),A?te.top+Ce.y-ce.clientTop:te.left+Ce.x-ce.clientLeft}function le(F){return typeof F=="number"&&!isNaN(F)&&isFinite(F)}function be(F,A,te){te>0&&(ge(F,A),setTimeout(function(){Pe(F,A)},te))}function de(F){return Math.max(Math.min(F,100),0)}function j(F){return Array.isArray(F)?F:[F]}function se(F){var A=(F=String(F)).split(".");return A.length>1?A[1].length:0}function ge(F,A){F.classList&&!/\s/.test(A)?F.classList.add(A):F.className+=" "+A}function Pe(F,A){F.classList&&!/\s/.test(A)?F.classList.remove(A):F.className=F.className.replace(new RegExp("(^|\\b)"+A.split(" ").join("|")+"(\\b|$)","gi")," ")}function z(F,A){return F.classList?F.classList.contains(A):new RegExp("\\b"+A+"\\b").test(F.className)}function Ge(F){var A=window.pageXOffset!==void 0,te=(F.compatMode||"")==="CSS1Compat";return{x:A?window.pageXOffset:te?F.documentElement.scrollLeft:F.body.scrollLeft,y:A?window.pageYOffset:te?F.documentElement.scrollTop:F.body.scrollTop}}function Ie(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function $(){var F=!1;try{var A=Object.defineProperty({},"passive",{get:function(){F=!0}});window.addEventListener("test",null,A)}catch{}return F}function Ee(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function Xe(F,A){return 100/(A-F)}function Ye(F,A,te){return 100*A/(F[te+1]-F[te])}function Se(F,A){return Ye(F,F[0]<0?A+Math.abs(F[0]):A-F[0],0)}function _e(F,A){return A*(F[1]-F[0])/100+F[0]}function K(F,A){for(var te=1;F>=A[te];)te+=1;return te}function ye(F,A,te){if(te>=F.slice(-1)[0])return 100;var xe=K(te,F),ce=F[xe-1],Ce=F[xe],Oe=A[xe-1],Je=A[xe];return Oe+Se([ce,Ce],te)/Xe(Oe,Je)}function He(F,A,te){if(te>=100)return F.slice(-1)[0];var xe=K(te,A),ce=F[xe-1],Ce=F[xe],Oe=A[xe-1];return _e([ce,Ce],(te-Oe)*Xe(Oe,A[xe]))}function ee(F,A,te,xe){if(xe===100)return xe;var ce=K(xe,F),Ce=F[ce-1],Oe=F[ce];return te?xe-Ce>(Oe-Ce)/2?Oe:Ce:A[ce-1]?F[ce-1]+U(xe-F[ce-1],A[ce-1]):xe}var Z,Q;V.PipsMode=void 0,(Q=V.PipsMode||(V.PipsMode={})).Range="range",Q.Steps="steps",Q.Positions="positions",Q.Count="count",Q.Values="values",V.PipsType=void 0,(Z=V.PipsType||(V.PipsType={}))[Z.None=-1]="None",Z[Z.NoValue=0]="NoValue",Z[Z.LargeValue=1]="LargeValue",Z[Z.SmallValue=2]="SmallValue";var ue=function(){function F(A,te,xe){var ce;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[xe||!1],this.xNumSteps=[!1],this.snap=te;var Ce=[];for(Object.keys(A).forEach(function(Oe){Ce.push([j(A[Oe]),Oe])}),Ce.sort(function(Oe,Je){return Oe[0][0]-Je[0][0]}),ce=0;ce<Ce.length;ce++)this.handleEntryPoint(Ce[ce][1],Ce[ce][0]);for(this.xNumSteps=this.xSteps.slice(0),ce=0;ce<this.xNumSteps.length;ce++)this.handleStepPoint(ce,this.xNumSteps[ce])}return F.prototype.getDistance=function(A){for(var te=[],xe=0;xe<this.xNumSteps.length-1;xe++)te[xe]=Ye(this.xVal,A,xe);return te},F.prototype.getAbsoluteDistance=function(A,te,xe){var ce,Ce=0;if(A<this.xPct[this.xPct.length-1])for(;A>this.xPct[Ce+1];)Ce++;else A===this.xPct[this.xPct.length-1]&&(Ce=this.xPct.length-2);xe||A!==this.xPct[Ce+1]||Ce++,te===null&&(te=[]);var Oe=1,Je=te[Ce],Ue=0,ut=0,et=0,Ae=0;for(ce=xe?(A-this.xPct[Ce])/(this.xPct[Ce+1]-this.xPct[Ce]):(this.xPct[Ce+1]-A)/(this.xPct[Ce+1]-this.xPct[Ce]);Je>0;)Ue=this.xPct[Ce+1+Ae]-this.xPct[Ce+Ae],te[Ce+Ae]*Oe+100-100*ce>100?(ut=Ue*ce,Oe=(Je-100*ce)/te[Ce+Ae],ce=1):(ut=te[Ce+Ae]*Ue/100*Oe,Oe=0),xe?(et-=ut,this.xPct.length+Ae>=1&&Ae--):(et+=ut,this.xPct.length-Ae>=1&&Ae++),Je=te[Ce+Ae]*Oe;return A+et},F.prototype.toStepping=function(A){return A=ye(this.xVal,this.xPct,A)},F.prototype.fromStepping=function(A){return He(this.xVal,this.xPct,A)},F.prototype.getStep=function(A){return A=ee(this.xPct,this.xSteps,this.snap,A)},F.prototype.getDefaultStep=function(A,te,xe){var ce=K(A,this.xPct);return(A===100||te&&A===this.xPct[ce-1])&&(ce=Math.max(ce-1,1)),(this.xVal[ce]-this.xVal[ce-1])/xe},F.prototype.getNearbySteps=function(A){var te=K(A,this.xPct);return{stepBefore:{startValue:this.xVal[te-2],step:this.xNumSteps[te-2],highestStep:this.xHighestCompleteStep[te-2]},thisStep:{startValue:this.xVal[te-1],step:this.xNumSteps[te-1],highestStep:this.xHighestCompleteStep[te-1]},stepAfter:{startValue:this.xVal[te],step:this.xNumSteps[te],highestStep:this.xHighestCompleteStep[te]}}},F.prototype.countStepDecimals=function(){var A=this.xNumSteps.map(se);return Math.max.apply(null,A)},F.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},F.prototype.convert=function(A){return this.getStep(this.toStepping(A))},F.prototype.handleEntryPoint=function(A,te){var xe;if(!le(xe=A==="min"?0:A==="max"?100:parseFloat(A))||!le(te[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(xe),this.xVal.push(te[0]);var ce=Number(te[1]);xe?this.xSteps.push(!isNaN(ce)&&ce):isNaN(ce)||(this.xSteps[0]=ce),this.xHighestCompleteStep.push(0)},F.prototype.handleStepPoint=function(A,te){if(te)if(this.xVal[A]!==this.xVal[A+1]){this.xSteps[A]=Ye([this.xVal[A],this.xVal[A+1]],te,0)/Xe(this.xPct[A],this.xPct[A+1]);var xe=(this.xVal[A+1]-this.xVal[A])/this.xNumSteps[A],ce=Math.ceil(Number(xe.toFixed(3))-1),Ce=this.xVal[A]+this.xNumSteps[A]*ce;this.xHighestCompleteStep[A]=Ce}else this.xSteps[A]=this.xHighestCompleteStep[A]=this.xVal[A]},F}(),ae={to:function(F){return F===void 0?"":F.toFixed(2)},from:Number},me={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},fe={tooltips:".__tooltips",aria:".__aria"};function Le(F,A){if(!le(A))throw new Error("noUiSlider: 'step' is not numeric.");F.singleStep=A}function Ve(F,A){if(!le(A))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");F.keyboardPageMultiplier=A}function Fe(F,A){if(!le(A))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");F.keyboardMultiplier=A}function $e(F,A){if(!le(A))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");F.keyboardDefaultStep=A}function Te(F,A){if(typeof A!="object"||Array.isArray(A))throw new Error("noUiSlider: 'range' is not an object.");if(A.min===void 0||A.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");F.spectrum=new ue(A,F.snap||!1,F.singleStep)}function he(F,A){if(A=j(A),!Array.isArray(A)||!A.length)throw new Error("noUiSlider: 'start' option is incorrect.");F.handles=A.length,F.start=A}function ze(F,A){if(typeof A!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");F.snap=A}function rt(F,A){if(typeof A!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");F.animate=A}function lt(F,A){if(typeof A!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");F.animationDuration=A}function Qe(F,A){var te,xe=[!1];if(A==="lower"?A=[!0,!1]:A==="upper"&&(A=[!1,!0]),A===!0||A===!1){for(te=1;te<F.handles;te++)xe.push(A);xe.push(!1)}else{if(!Array.isArray(A)||!A.length||A.length!==F.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");xe=A}F.connect=xe}function ct(F,A){switch(A){case"horizontal":F.ort=0;break;case"vertical":F.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function ot(F,A){if(!le(A))throw new Error("noUiSlider: 'margin' option must be numeric.");A!==0&&(F.margin=F.spectrum.getDistance(A))}function ft(F,A){if(!le(A))throw new Error("noUiSlider: 'limit' option must be numeric.");if(F.limit=F.spectrum.getDistance(A),!F.limit||F.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function Mt(F,A){var te;if(!le(A)&&!Array.isArray(A))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(A)&&A.length!==2&&!le(A[0])&&!le(A[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(A!==0){for(Array.isArray(A)||(A=[A,A]),F.padding=[F.spectrum.getDistance(A[0]),F.spectrum.getDistance(A[1])],te=0;te<F.spectrum.xNumSteps.length-1;te++)if(F.padding[0][te]<0||F.padding[1][te]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var xe=A[0]+A[1],ce=F.spectrum.xVal[0];if(xe/(F.spectrum.xVal[F.spectrum.xVal.length-1]-ce)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Kt(F,A){switch(A){case"ltr":F.dir=0;break;case"rtl":F.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ei(F,A){if(typeof A!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var te=A.indexOf("tap")>=0,xe=A.indexOf("drag")>=0,ce=A.indexOf("fixed")>=0,Ce=A.indexOf("snap")>=0,Oe=A.indexOf("hover")>=0,Je=A.indexOf("unconstrained")>=0,Ue=A.indexOf("drag-all")>=0,ut=A.indexOf("smooth-steps")>=0;if(ce){if(F.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");ot(F,F.start[1]-F.start[0])}if(Je&&(F.margin||F.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");F.events={tap:te||Ce,drag:xe,dragAll:Ue,smoothSteps:ut,fixed:ce,snap:Ce,hover:Oe,unconstrained:Je}}function ti(F,A){if(A!==!1)if(A===!0||I(A)){F.tooltips=[];for(var te=0;te<F.handles;te++)F.tooltips.push(A)}else{if((A=j(A)).length!==F.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");A.forEach(function(xe){if(typeof xe!="boolean"&&!I(xe))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),F.tooltips=A}}function _t(F,A){if(A.length!==F.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");F.handleAttributes=A}function ii(F,A){if(!I(A))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");F.ariaFormat=A}function ai(F,A){if(!S(A))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");F.format=A}function si(F,A){if(typeof A!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");F.keyboardSupport=A}function ri(F,A){F.documentElement=A}function oi(F,A){if(typeof A!="string"&&A!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");F.cssPrefix=A}function ni(F,A){if(typeof A!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof F.cssPrefix=="string"?(F.cssClasses={},Object.keys(A).forEach(function(te){F.cssClasses[te]=F.cssPrefix+A[te]})):F.cssClasses=A}function Yt(F){var A={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:ae,format:ae},te={step:{r:!1,t:Le},keyboardPageMultiplier:{r:!1,t:Ve},keyboardMultiplier:{r:!1,t:Fe},keyboardDefaultStep:{r:!1,t:$e},start:{r:!0,t:he},connect:{r:!0,t:Qe},direction:{r:!0,t:Kt},snap:{r:!1,t:ze},animate:{r:!1,t:rt},animationDuration:{r:!1,t:lt},range:{r:!0,t:Te},orientation:{r:!1,t:ct},margin:{r:!1,t:ot},limit:{r:!1,t:ft},padding:{r:!1,t:Mt},behaviour:{r:!0,t:ei},ariaFormat:{r:!1,t:ii},format:{r:!1,t:ai},tooltips:{r:!1,t:ti},keyboardSupport:{r:!0,t:si},documentElement:{r:!1,t:ri},cssPrefix:{r:!0,t:oi},cssClasses:{r:!0,t:ni},handleAttributes:{r:!1,t:_t}},xe={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:me,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};F.format&&!F.ariaFormat&&(F.ariaFormat=F.format),Object.keys(te).forEach(function(Ue){if(P(F[Ue])||xe[Ue]!==void 0)te[Ue].t(A,P(F[Ue])?F[Ue]:xe[Ue]);else if(te[Ue].r)throw new Error("noUiSlider: '"+Ue+"' is required.")}),A.pips=F.pips;var ce=document.createElement("div"),Ce=ce.style.msTransform!==void 0,Oe=ce.style.transform!==void 0;A.transformRule=Oe?"transform":Ce?"msTransform":"webkitTransform";var Je=[["left","top"],["right","bottom"]];return A.style=Je[A.dir][A.ort],A}function St(F,A,te){var xe,ce,Ce,Oe,Je,Ue=Ie(),ut=Ee()&&$(),et=F,Ae=A.spectrum,dt=[],We=[],st=[],Tt=0,ht={},xt=F.ownerDocument,At=A.documentElement||xt.documentElement,Et=xt.body,li=xt.dir==="rtl"||A.ort===1?0:100;function gt(M,Y){var R=xt.createElement("div");return Y&&ge(R,Y),M.appendChild(R),R}function ci(M,Y){var R=gt(M,A.cssClasses.origin),q=gt(R,A.cssClasses.handle);if(gt(q,A.cssClasses.touchArea),q.setAttribute("data-handle",String(Y)),A.keyboardSupport&&(q.setAttribute("tabindex","0"),q.addEventListener("keydown",function(ie){return u(ie,Y)})),A.handleAttributes!==void 0){var ne=A.handleAttributes[Y];Object.keys(ne).forEach(function(ie){q.setAttribute(ie,ne[ie])})}return q.setAttribute("role","slider"),q.setAttribute("aria-orientation",A.ort?"vertical":"horizontal"),Y===0?ge(q,A.cssClasses.handleLower):Y===A.handles-1&&ge(q,A.cssClasses.handleUpper),R}function Nt(M,Y){return!!Y&&gt(M,A.cssClasses.connect)}function Ht(M,Y){var R=gt(Y,A.cssClasses.connects);ce=[],(Ce=[]).push(Nt(R,M[0]));for(var q=0;q<A.handles;q++)ce.push(ci(Y,q)),st[q]=q,Ce.push(Nt(R,M[q+1]))}function Dt(M){return ge(M,A.cssClasses.target),A.dir===0?ge(M,A.cssClasses.ltr):ge(M,A.cssClasses.rtl),A.ort===0?ge(M,A.cssClasses.horizontal):ge(M,A.cssClasses.vertical),ge(M,getComputedStyle(M).direction==="rtl"?A.cssClasses.textDirectionRtl:A.cssClasses.textDirectionLtr),gt(M,A.cssClasses.base)}function zt(M,Y){return!(!A.tooltips||!A.tooltips[Y])&&gt(M.firstChild,A.cssClasses.tooltip)}function mt(){return et.hasAttribute("disabled")}function vt(M){return ce[M].hasAttribute("disabled")}function It(){Je&&(x("update"+fe.tooltips),Je.forEach(function(M){M&&B(M)}),Je=null)}function $t(){It(),Je=ce.map(zt),f("update"+fe.tooltips,function(M,Y,R){if(Je&&A.tooltips&&Je[Y]!==!1){var q=M[Y];A.tooltips[Y]!==!0&&(q=A.tooltips[Y].to(R[Y])),Je[Y].innerHTML=q}})}function di(){x("update"+fe.aria),f("update"+fe.aria,function(M,Y,R,q,ne){st.forEach(function(ie){var ve=ce[ie],oe=k(We,ie,0,!0,!0,!0),qe=k(We,ie,100,!0,!0,!0),Ke=ne[ie],je=String(A.ariaFormat.to(R[ie]));oe=Ae.fromStepping(oe).toFixed(1),qe=Ae.fromStepping(qe).toFixed(1),Ke=Ae.fromStepping(Ke).toFixed(1),ve.children[0].setAttribute("aria-valuemin",oe),ve.children[0].setAttribute("aria-valuemax",qe),ve.children[0].setAttribute("aria-valuenow",Ke),ve.children[0].setAttribute("aria-valuetext",je)})})}function hi(M){if(M.mode===V.PipsMode.Range||M.mode===V.PipsMode.Steps)return Ae.xVal;if(M.mode===V.PipsMode.Count){if(M.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var Y=M.values-1,R=100/Y,q=[];Y--;)q[Y]=Y*R;return q.push(100),Wt(q,M.stepped)}return M.mode===V.PipsMode.Positions?Wt(M.values,M.stepped):M.mode===V.PipsMode.Values?M.stepped?M.values.map(function(ne){return Ae.fromStepping(Ae.getStep(Ae.toStepping(ne)))}):M.values:[]}function Wt(M,Y){return M.map(function(R){return Ae.fromStepping(Y?Ae.getStep(R):R)})}function jt(M){function Y(Ke,je){return Number((Ke+je).toFixed(7))}var R=hi(M),q={},ne=Ae.xVal[0],ie=Ae.xVal[Ae.xVal.length-1],ve=!1,oe=!1,qe=0;return(R=O(R.slice().sort(function(Ke,je){return Ke-je})))[0]!==ne&&(R.unshift(ne),ve=!0),R[R.length-1]!==ie&&(R.push(ie),oe=!0),R.forEach(function(Ke,je){var Ze,Re,at,nt,tt,Ci,ui,Si,Ai,Ei,gi=Ke,Bt=R[je+1],Ni=M.mode===V.PipsMode.Steps;for(Ni&&(Ze=Ae.xNumSteps[je]),Ze||(Ze=Bt-gi),Bt===void 0&&(Bt=gi),Ze=Math.max(Ze,1e-7),Re=gi;Re<=Bt;Re=Y(Re,Ze)){for(Si=(tt=(nt=Ae.toStepping(Re))-qe)/(M.density||1),Ei=tt/(Ai=Math.round(Si)),at=1;at<=Ai;at+=1)q[(Ci=qe+at*Ei).toFixed(5)]=[Ae.fromStepping(Ci),0];ui=R.indexOf(Re)>-1?V.PipsType.LargeValue:Ni?V.PipsType.SmallValue:V.PipsType.NoValue,!je&&ve&&Re!==Bt&&(ui=0),Re===Bt&&oe||(q[nt.toFixed(5)]=[Re,ui]),qe=nt}}),q}function Gt(M,Y,R){var q,ne,ie=xt.createElement("div"),ve=((q={})[V.PipsType.None]="",q[V.PipsType.NoValue]=A.cssClasses.valueNormal,q[V.PipsType.LargeValue]=A.cssClasses.valueLarge,q[V.PipsType.SmallValue]=A.cssClasses.valueSub,q),oe=((ne={})[V.PipsType.None]="",ne[V.PipsType.NoValue]=A.cssClasses.markerNormal,ne[V.PipsType.LargeValue]=A.cssClasses.markerLarge,ne[V.PipsType.SmallValue]=A.cssClasses.markerSub,ne),qe=[A.cssClasses.valueHorizontal,A.cssClasses.valueVertical],Ke=[A.cssClasses.markerHorizontal,A.cssClasses.markerVertical];function je(Re,at){var nt=at===A.cssClasses.value,tt=nt?ve:oe;return at+" "+(nt?qe:Ke)[A.ort]+" "+tt[Re]}function Ze(Re,at,nt){if((nt=Y?Y(at,nt):nt)!==V.PipsType.None){var tt=gt(ie,!1);tt.className=je(nt,A.cssClasses.marker),tt.style[A.style]=Re+"%",nt>V.PipsType.NoValue&&((tt=gt(ie,!1)).className=je(nt,A.cssClasses.value),tt.setAttribute("data-value",String(at)),tt.style[A.style]=Re+"%",tt.innerHTML=String(R.to(at)))}}return ge(ie,A.cssClasses.pips),ge(ie,A.ort===0?A.cssClasses.pipsHorizontal:A.cssClasses.pipsVertical),Object.keys(M).forEach(function(Re){Ze(Re,M[Re][0],M[Re][1])}),ie}function yt(){Oe&&(B(Oe),Oe=null)}function Ft(M){yt();var Y=jt(M),R=M.filter,q=M.format||{to:function(ne){return String(Math.round(ne))}};return Oe=et.appendChild(Gt(Y,R,q))}function w(){var M=xe.getBoundingClientRect(),Y="offset"+["Width","Height"][A.ort];return A.ort===0?M.width||xe[Y]:M.height||xe[Y]}function e(M,Y,R,q){var ne=function(ve){var oe=t(ve,q.pageOffset,q.target||Y);return!!oe&&!(mt()&&!q.doNotReject)&&!(z(et,A.cssClasses.tap)&&!q.doNotReject)&&!(M===Ue.start&&oe.buttons!==void 0&&oe.buttons>1)&&(!q.hover||!oe.buttons)&&(ut||oe.preventDefault(),oe.calcPoint=oe.points[A.ort],void R(oe,q))},ie=[];return M.split(" ").forEach(function(ve){Y.addEventListener(ve,ne,!!ut&&{passive:!0}),ie.push([ve,ne])}),ie}function t(M,Y,R){var q=M.type.indexOf("touch")===0,ne=M.type.indexOf("mouse")===0,ie=M.type.indexOf("pointer")===0,ve=0,oe=0;if(M.type.indexOf("MSPointer")===0&&(ie=!0),M.type==="mousedown"&&!M.buttons&&!M.touches)return!1;if(q){var qe=function(Ze){var Re=Ze.target;return Re===R||R.contains(Re)||M.composed&&M.composedPath().shift()===R};if(M.type==="touchstart"){var Ke=Array.prototype.filter.call(M.touches,qe);if(Ke.length>1)return!1;ve=Ke[0].pageX,oe=Ke[0].pageY}else{var je=Array.prototype.find.call(M.changedTouches,qe);if(!je)return!1;ve=je.pageX,oe=je.pageY}}return Y=Y||Ge(xt),(ne||ie)&&(ve=M.clientX+Y.x,oe=M.clientY+Y.y),M.pageOffset=Y,M.points=[ve,oe],M.cursor=ne||ie,M}function i(M){var Y=100*(M-J(xe,A.ort))/w();return Y=de(Y),A.dir?100-Y:Y}function a(M){var Y=100,R=!1;return ce.forEach(function(q,ne){if(!vt(ne)){var ie=We[ne],ve=Math.abs(ie-M);(ve<Y||ve<=Y&&M>ie||ve===100&&Y===100)&&(R=ne,Y=ve)}}),R}function r(M,Y){M.type==="mouseout"&&M.target.nodeName==="HTML"&&M.relatedTarget===null&&n(M,Y)}function o(M,Y){if(navigator.appVersion.indexOf("MSIE 9")===-1&&M.buttons===0&&Y.buttonsProperty!==0)return n(M,Y);var R=(A.dir?-1:1)*(M.calcPoint-Y.startCalcPoint);c(R>0,100*R/Y.baseSize,Y.locations,Y.handleNumbers,Y.connect)}function n(M,Y){Y.handle&&(Pe(Y.handle,A.cssClasses.active),Tt-=1),Y.listeners.forEach(function(R){At.removeEventListener(R[0],R[1])}),Tt===0&&(Pe(et,A.cssClasses.drag),y(),M.cursor&&(Et.style.cursor="",Et.removeEventListener("selectstart",D))),A.events.smoothSteps&&(Y.handleNumbers.forEach(function(R){C(R,We[R],!0,!0,!1,!1)}),Y.handleNumbers.forEach(function(R){v("update",R)})),Y.handleNumbers.forEach(function(R){v("change",R),v("set",R),v("end",R)})}function l(M,Y){if(!Y.handleNumbers.some(vt)){var R;Y.handleNumbers.length===1&&(R=ce[Y.handleNumbers[0]].children[0],Tt+=1,ge(R,A.cssClasses.active)),M.stopPropagation();var q=[],ne=e(Ue.move,At,o,{target:M.target,handle:R,connect:Y.connect,listeners:q,startCalcPoint:M.calcPoint,baseSize:w(),pageOffset:M.pageOffset,handleNumbers:Y.handleNumbers,buttonsProperty:M.buttons,locations:We.slice()}),ie=e(Ue.end,At,n,{target:M.target,handle:R,listeners:q,doNotReject:!0,handleNumbers:Y.handleNumbers}),ve=e("mouseout",At,r,{target:M.target,handle:R,listeners:q,doNotReject:!0,handleNumbers:Y.handleNumbers});q.push.apply(q,ne.concat(ie,ve)),M.cursor&&(Et.style.cursor=getComputedStyle(M.target).cursor,ce.length>1&&ge(et,A.cssClasses.drag),Et.addEventListener("selectstart",D,!1)),Y.handleNumbers.forEach(function(oe){v("start",oe)})}}function d(M){M.stopPropagation();var Y=i(M.calcPoint),R=a(Y);R!==!1&&(A.events.snap||be(et,A.cssClasses.tap,A.animationDuration),C(R,Y,!0,!0),y(),v("slide",R,!0),v("update",R,!0),A.events.snap?l(M,{handleNumbers:[R]}):(v("change",R,!0),v("set",R,!0)))}function h(M){var Y=i(M.calcPoint),R=Ae.getStep(Y),q=Ae.fromStepping(R);Object.keys(ht).forEach(function(ne){ne.split(".")[0]==="hover"&&ht[ne].forEach(function(ie){ie.call(Be,q)})})}function u(M,Y){if(mt()||vt(Y))return!1;var R=["Left","Right"],q=["Down","Up"],ne=["PageDown","PageUp"],ie=["Home","End"];A.dir&&!A.ort?R.reverse():A.ort&&!A.dir&&(q.reverse(),ne.reverse());var ve,oe=M.key.replace("Arrow",""),qe=oe===ne[0],Ke=oe===ne[1],je=oe===q[0]||oe===R[0]||qe,Ze=oe===q[1]||oe===R[1]||Ke,Re=oe===ie[0],at=oe===ie[1];if(!(je||Ze||Re||at))return!0;if(M.preventDefault(),Ze||je){var nt=je?0:1,tt=pe(Y)[nt];if(tt===null)return!1;tt===!1&&(tt=Ae.getDefaultStep(We[Y],je,A.keyboardDefaultStep)),tt*=Ke||qe?A.keyboardPageMultiplier:A.keyboardMultiplier,tt=Math.max(tt,1e-7),tt*=je?-1:1,ve=dt[Y]+tt}else ve=at?A.spectrum.xVal[A.spectrum.xVal.length-1]:A.spectrum.xVal[0];return C(Y,Ae.toStepping(ve),!0,!0),v("slide",Y),v("update",Y),v("change",Y),v("set",Y),!1}function g(M){M.fixed||ce.forEach(function(Y,R){e(Ue.start,Y.children[0],l,{handleNumbers:[R]})}),M.tap&&e(Ue.start,xe,d,{}),M.hover&&e(Ue.move,xe,h,{hover:!0}),M.drag&&Ce.forEach(function(Y,R){if(Y!==!1&&R!==0&&R!==Ce.length-1){var q=ce[R-1],ne=ce[R],ie=[Y],ve=[q,ne],oe=[R-1,R];ge(Y,A.cssClasses.draggable),M.fixed&&(ie.push(q.children[0]),ie.push(ne.children[0])),M.dragAll&&(ve=ce,oe=st),ie.forEach(function(qe){e(Ue.start,qe,l,{handles:ve,handleNumbers:oe,connect:Y})})}})}function f(M,Y){ht[M]=ht[M]||[],ht[M].push(Y),M.split(".")[0]==="update"&&ce.forEach(function(R,q){v("update",q)})}function m(M){return M===fe.aria||M===fe.tooltips}function x(M){var Y=M&&M.split(".")[0],R=Y?M.substring(Y.length):M;Object.keys(ht).forEach(function(q){var ne=q.split(".")[0],ie=q.substring(ne.length);Y&&Y!==ne||R&&R!==ie||m(ie)&&R!==ie||delete ht[q]})}function v(M,Y,R){Object.keys(ht).forEach(function(q){var ne=q.split(".")[0];M===ne&&ht[q].forEach(function(ie){ie.call(Be,dt.map(A.format.to),Y,dt.slice(),R||!1,We.slice(),Be)})})}function k(M,Y,R,q,ne,ie,ve){var oe;return ce.length>1&&!A.events.unconstrained&&(q&&Y>0&&(oe=Ae.getAbsoluteDistance(M[Y-1],A.margin,!1),R=Math.max(R,oe)),ne&&Y<ce.length-1&&(oe=Ae.getAbsoluteDistance(M[Y+1],A.margin,!0),R=Math.min(R,oe))),ce.length>1&&A.limit&&(q&&Y>0&&(oe=Ae.getAbsoluteDistance(M[Y-1],A.limit,!1),R=Math.min(R,oe)),ne&&Y<ce.length-1&&(oe=Ae.getAbsoluteDistance(M[Y+1],A.limit,!0),R=Math.max(R,oe))),A.padding&&(Y===0&&(oe=Ae.getAbsoluteDistance(0,A.padding[0],!1),R=Math.max(R,oe)),Y===ce.length-1&&(oe=Ae.getAbsoluteDistance(100,A.padding[1],!0),R=Math.min(R,oe))),ve||(R=Ae.getStep(R)),!((R=de(R))===M[Y]&&!ie)&&R}function E(M,Y){var R=A.ort;return(R?Y:M)+", "+(R?M:Y)}function c(M,Y,R,q,ne){var ie=R.slice(),ve=q[0],oe=A.events.smoothSteps,qe=[!M,M],Ke=[M,!M];q=q.slice(),M&&q.reverse(),q.length>1?q.forEach(function(Ze,Re){var at=k(ie,Ze,ie[Ze]+Y,qe[Re],Ke[Re],!1,oe);at===!1?Y=0:(Y=at-ie[Ze],ie[Ze]=at)}):qe=Ke=[!0];var je=!1;q.forEach(function(Ze,Re){je=C(Ze,R[Ze]+Y,qe[Re],Ke[Re],!1,oe)||je}),je&&(q.forEach(function(Ze){v("update",Ze),v("slide",Ze)}),ne!=null&&v("drag",ve))}function p(M,Y){return A.dir?100-M-Y:M}function b(M,Y){We[M]=Y,dt[M]=Ae.fromStepping(Y);var R="translate("+E(p(Y,0)-li+"%","0")+")";ce[M].style[A.transformRule]=R,N(M),N(M+1)}function y(){st.forEach(function(M){var Y=We[M]>50?-1:1,R=3+(ce.length+Y*M);ce[M].style.zIndex=String(R)})}function C(M,Y,R,q,ne,ie){return ne||(Y=k(We,M,Y,R,q,!1,ie)),Y!==!1&&(b(M,Y),!0)}function N(M){if(Ce[M]){var Y=0,R=100;M!==0&&(Y=We[M-1]),M!==Ce.length-1&&(R=We[M]);var q=R-Y,ne="translate("+E(p(Y,q)+"%","0")+")",ie="scale("+E(q/100,"1")+")";Ce[M].style[A.transformRule]=ne+" "+ie}}function T(M,Y){return M===null||M===!1||M===void 0?We[Y]:(typeof M=="number"&&(M=String(M)),(M=A.format.from(M))!==!1&&(M=Ae.toStepping(M)),M===!1||isNaN(M)?We[Y]:M)}function _(M,Y,R){var q=j(M),ne=We[0]===void 0;Y=Y===void 0||Y,A.animate&&!ne&&be(et,A.cssClasses.tap,A.animationDuration),st.forEach(function(oe){C(oe,T(q[oe],oe),!0,!1,R)});var ie=st.length===1?0:1;if(ne&&Ae.hasNoSize()&&(R=!0,We[0]=0,st.length>1)){var ve=100/(st.length-1);st.forEach(function(oe){We[oe]=oe*ve})}for(;ie<st.length;++ie)st.forEach(function(oe){C(oe,We[oe],!0,!0,R)});y(),st.forEach(function(oe){v("update",oe),q[oe]!==null&&Y&&v("set",oe)})}function H(M){_(A.start,M)}function G(M,Y,R,q){if(!((M=Number(M))>=0&&M<st.length))throw new Error("noUiSlider: invalid handle number, got: "+M);C(M,T(Y,M),!0,!0,q),v("update",M),R&&v("set",M)}function W(M){if(M===void 0&&(M=!1),M)return dt.length===1?dt[0]:dt.slice(0);var Y=dt.map(A.format.to);return Y.length===1?Y[0]:Y}function re(){for(x(fe.aria),x(fe.tooltips),Object.keys(A.cssClasses).forEach(function(M){Pe(et,A.cssClasses[M])});et.firstChild;)et.removeChild(et.firstChild);delete et.noUiSlider}function pe(M){var Y=We[M],R=Ae.getNearbySteps(Y),q=dt[M],ne=R.thisStep.step,ie=null;if(A.snap)return[q-R.stepBefore.startValue||null,R.stepAfter.startValue-q||null];ne!==!1&&q+ne>R.stepAfter.startValue&&(ne=R.stepAfter.startValue-q),ie=q>R.thisStep.startValue?R.thisStep.step:R.stepBefore.step!==!1&&q-R.stepBefore.highestStep,Y===100?ne=null:Y===0&&(ie=null);var ve=Ae.countStepDecimals();return ne!==null&&ne!==!1&&(ne=Number(ne.toFixed(ve))),ie!==null&&ie!==!1&&(ie=Number(ie.toFixed(ve))),[ie,ne]}function we(){return st.map(pe)}function Ne(M,Y){var R=W(),q=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];q.forEach(function(ie){M[ie]!==void 0&&(te[ie]=M[ie])});var ne=Yt(te);q.forEach(function(ie){M[ie]!==void 0&&(A[ie]=ne[ie])}),Ae=ne.spectrum,A.margin=ne.margin,A.limit=ne.limit,A.padding=ne.padding,A.pips?Ft(A.pips):yt(),A.tooltips?$t():It(),We=[],_(P(M.start)?M.start:R,Y)}function Me(){xe=Dt(et),Ht(A.connect,xe),g(A.events),_(A.start),A.pips&&Ft(A.pips),A.tooltips&&$t(),di()}Me();var Be={destroy:re,steps:we,on:f,off:x,get:W,set:_,setHandle:G,reset:H,__moveHandles:function(M,Y,R){c(M,Y,We,R)},options:te,updateOptions:Ne,target:et,removePips:yt,removeTooltips:It,getPositions:function(){return We.slice()},getTooltips:function(){return Je},getOrigins:function(){return ce},pips:Ft};return Be}function Ot(F,A){if(!F||!F.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+F);if(F.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var te=St(F,Yt(A),A);return F.noUiSlider=te,te}var Rt={__spectrum:ue,cssClasses:me,create:Ot};V.create=Ot,V.cssClasses=me,V.default=Rt,Object.defineProperty(V,"__esModule",{value:!0})})(L)}));function Pi(X,L){if(!Array.isArray(X)||!Array.isArray(L))return!1;const V=L.slice().sort();return X.length===L.length&&X.slice().sort().every(function(S,I){return S===V[I]})}var mi={name:"Slider",emits:["input","update:modelValue","start","slide","drag","update","change","set","end"],props:{value:{validator:function(X){return L=>typeof L=="number"||L instanceof Array||L==null||L===!1},required:!1},modelValue:{validator:function(X){return L=>typeof L=="number"||L instanceof Array||L==null||L===!1},required:!1},id:{type:[String,Number],required:!1},disabled:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},orientation:{type:String,required:!1,default:"horizontal"},direction:{type:String,required:!1,default:"ltr"},tooltips:{type:Boolean,required:!1,default:!0},options:{type:Object,required:!1,default:()=>({})},merge:{type:Number,required:!1,default:-1},format:{type:[Object,Function,Boolean],required:!1,default:null},classes:{type:Object,required:!1,default:()=>({})},showTooltip:{type:String,required:!1,default:"always"},tooltipPosition:{type:String,required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0},ariaLabelledby:{type:String,required:!1,default:void 0},aria:{required:!1,type:Object,default:()=>({})}},setup(X,L){const V=function(P,D,O){const{value:U,modelValue:J,min:le}=s.toRefs(P);let be=J&&J.value!==void 0?J:U;const de=s.ref(be.value);if(Ut(be.value)&&(be=s.ref(le.value)),Array.isArray(be.value)&&be.value.length==0)throw new Error("Slider v-model must not be an empty array");return{value:be,initialValue:de}}(X),S=function(P,D,O){const{classes:U,showTooltip:J,tooltipPosition:le,orientation:be}=s.toRefs(P),de=s.computed(()=>({target:"slider-target",focused:"slider-focused",tooltipFocus:"slider-tooltip-focus",tooltipDrag:"slider-tooltip-drag",ltr:"slider-ltr",rtl:"slider-rtl",horizontal:"slider-horizontal",vertical:"slider-vertical",textDirectionRtl:"slider-txt-dir-rtl",textDirectionLtr:"slider-txt-dir-ltr",base:"slider-base",connects:"slider-connects",connect:"slider-connect",origin:"slider-origin",handle:"slider-handle",handleLower:"slider-handle-lower",handleUpper:"slider-handle-upper",touchArea:"slider-touch-area",tooltip:"slider-tooltip",tooltipTop:"slider-tooltip-top",tooltipBottom:"slider-tooltip-bottom",tooltipLeft:"slider-tooltip-left",tooltipRight:"slider-tooltip-right",tooltipHidden:"slider-tooltip-hidden",active:"slider-active",draggable:"slider-draggable",tap:"slider-state-tap",drag:"slider-state-drag",pips:"slider-pips",pipsHorizontal:"slider-pips-horizontal",pipsVertical:"slider-pips-vertical",marker:"slider-marker",markerHorizontal:"slider-marker-horizontal",markerVertical:"slider-marker-vertical",markerNormal:"slider-marker-normal",markerLarge:"slider-marker-large",markerSub:"slider-marker-sub",value:"slider-value",valueHorizontal:"slider-value-horizontal",valueVertical:"slider-value-vertical",valueNormal:"slider-value-normal",valueLarge:"slider-value-large",valueSub:"slider-value-sub",...U.value}));return{classList:s.computed(()=>{const j={...de.value};return Object.keys(j).forEach(se=>{j[se]=Array.isArray(j[se])?j[se].filter(ge=>ge!==null).join(" "):j[se]}),J.value!=="always"&&(j.target+=` ${J.value==="drag"?j.tooltipDrag:j.tooltipFocus}`),be.value==="horizontal"&&(j.tooltip+=le.value==="bottom"?` ${j.tooltipBottom}`:` ${j.tooltipTop}`),be.value==="vertical"&&(j.tooltip+=le.value==="right"?` ${j.tooltipRight}`:` ${j.tooltipLeft}`),j})}}(X),I=function(P,D,O){const{format:U,step:J}=s.toRefs(P),le=O.value,be=O.classList,de=s.computed(()=>U&&U.value?typeof U.value=="function"?{to:U.value}:Li({...U.value}):Li({decimals:J.value>=0?0:2})),j=s.computed(()=>Array.isArray(le.value)?le.value.map(se=>de.value):de.value);return{tooltipFormat:de,tooltipsFormat:j,tooltipsMerge:(se,ge,Pe)=>{var z=getComputedStyle(se).direction==="rtl",Ge=se.noUiSlider.options.direction==="rtl",Ie=se.noUiSlider.options.orientation==="vertical",$=se.noUiSlider.getTooltips(),Ee=se.noUiSlider.getOrigins();$.forEach(function(Xe,Ye){Xe&&Ee[Ye].appendChild(Xe)}),se.noUiSlider.on("update",function(Xe,Ye,Se,_e,K){var ye=[[]],He=[[]],ee=[[]],Z=0;$[0]&&(ye[0][0]=0,He[0][0]=K[0],ee[0][0]=de.value.to(parseFloat(Xe[0])));for(var Q=1;Q<Xe.length;Q++)(!$[Q]||Xe[Q]-Xe[Q-1]>ge)&&(ye[++Z]=[],ee[Z]=[],He[Z]=[]),$[Q]&&(ye[Z].push(Q),ee[Z].push(de.value.to(parseFloat(Xe[Q]))),He[Z].push(K[Q]));ye.forEach(function(ue,ae){for(var me=ue.length,fe=0;fe<me;fe++){var Le=ue[fe];if(fe===me-1){var Ve=0;He[ae].forEach(function(he){Ve+=1e3-he});var Fe=Ie?"bottom":"right",$e=Ge?0:me-1,Te=1e3-He[ae][$e];Ve=(z&&!Ie?100:0)+Ve/me-Te,$[Le].innerHTML=ee[ae].join(Pe),$[Le].style.display="block",$[Le].style[Fe]=Ve+"%",be.value.tooltipHidden.split(" ").forEach(he=>{$[Le].classList.contains(he)&&$[Le].classList.remove(he)})}else $[Le].style.display="none",be.value.tooltipHidden.split(" ").forEach(he=>{$[Le].classList.add(he)})}})})}}}(X,0,{value:V.value,classList:S.classList}),B=function(P,D,O){const{orientation:U,direction:J,tooltips:le,step:be,min:de,max:j,merge:se,id:ge,disabled:Pe,options:z,classes:Ge,format:Ie,lazy:$,ariaLabelledby:Ee,aria:Xe}=s.toRefs(P),Ye=O.value,Se=O.initialValue,_e=O.tooltipsFormat,K=O.tooltipsMerge,ye=O.tooltipFormat,He=O.classList,ee=s.ref(null),Z=s.ref(null),Q=s.ref(!1),ue=s.computed(()=>{let he={cssPrefix:"",cssClasses:He.value,orientation:U.value,direction:J.value,tooltips:!!le.value&&_e.value,connect:"lower",start:Ut(Ye.value)?de.value:Ye.value,range:{min:de.value,max:j.value}};if(be.value>0&&(he.step=be.value),Array.isArray(Ye.value)&&(he.connect=!0),Ee&&Ee.value||Xe&&Object.keys(Xe.value).length){let ze=Array.isArray(Ye.value)?Ye.value:[Ye.value];he.handleAttributes=ze.map(rt=>Object.assign({},Xe.value,Ee&&Ee.value?{"aria-labelledby":Ee.value}:{}))}return Ie.value&&(he.ariaFormat=ye.value),he}),ae=s.computed(()=>{let he={id:ge&&ge.value?ge.value:void 0};return Pe.value&&(he.disabled=!0),he}),me=s.computed(()=>Array.isArray(Ye.value)),fe=()=>{let he=Z.value.get();return Array.isArray(he)?he.map(ze=>parseFloat(ze)):parseFloat(he)},Le=function(he){let ze=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];Z.value.set(he,ze)},Ve=he=>{D.emit("input",he),D.emit("update:modelValue",he),D.emit("update",he)},Fe=()=>{Z.value=yh.create(ee.value,Object.assign({},ue.value,z.value)),le.value&&me.value&&se.value>=0&&K(ee.value,se.value," - "),Z.value.on("set",()=>{const he=fe();D.emit("change",he),D.emit("set",he),$.value&&Ve(he)}),Z.value.on("update",()=>{if(!Q.value)return;const he=fe();me.value&&Pi(Ye.value,he)||!me.value&&Ye.value==he?D.emit("update",he):$.value||Ve(he)}),Z.value.on("start",()=>{D.emit("start",fe())}),Z.value.on("end",()=>{D.emit("end",fe())}),Z.value.on("slide",()=>{D.emit("slide",fe())}),Z.value.on("drag",()=>{D.emit("drag",fe())}),ee.value.querySelectorAll("[data-handle]").forEach(he=>{he.onblur=()=>{ee.value&&He.value.focused.split(" ").forEach(ze=>{ee.value.classList.remove(ze)})},he.onfocus=()=>{He.value.focused.split(" ").forEach(ze=>{ee.value.classList.add(ze)})}}),Q.value=!0},$e=()=>{Z.value.off(),Z.value.destroy(),Z.value=null},Te=(he,ze)=>{Q.value=!1,$e(),Fe()};return s.onMounted(Fe),s.onUnmounted($e),s.watch(me,Te,{immediate:!1}),s.watch(de,Te,{immediate:!1}),s.watch(j,Te,{immediate:!1}),s.watch(be,Te,{immediate:!1}),s.watch(U,Te,{immediate:!1}),s.watch(J,Te,{immediate:!1}),s.watch(le,Te,{immediate:!1}),s.watch(se,Te,{immediate:!1}),s.watch(Ie,Te,{immediate:!1,deep:!0}),s.watch(z,Te,{immediate:!1,deep:!0}),s.watch(Ge,Te,{immediate:!1,deep:!0}),s.watch(Ye,(he,ze)=>{ze&&(typeof ze=="object"&&typeof he=="object"&&he&&Object.keys(ze)>Object.keys(he)||typeof ze=="object"&&typeof he!="object"||Ut(he))&&Te()},{immediate:!1}),s.watch(Ye,he=>{if(Ut(he))return void Le(de.value,!1);let ze=fe();me.value&&!Array.isArray(ze)&&(ze=[ze]),(me.value&&!Pi(he,ze)||!me.value&&he!=ze)&&Le(he,!1)},{deep:!0}),{slider:ee,slider$:Z,isRange:me,sliderProps:ae,init:Fe,destroy:$e,refresh:Te,update:Le,reset:()=>{Ve(Se.value)}}}(X,L,{value:V.value,initialValue:V.initialValue,tooltipFormat:I.tooltipFormat,tooltipsFormat:I.tooltipsFormat,tooltipsMerge:I.tooltipsMerge,classList:S.classList});return{...S,...I,...B}}};mi.render=function(X,L,V,S,I,B){return s.openBlock(),s.createElementBlock("div",s.mergeProps(X.sliderProps,{ref:"slider"}),null,16)},mi.__file="src/Slider.vue";const wh={class:"flex justify-between items-center"},kh={key:0,class:"block text-sm font-medium text-gray-700"},Ch={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Sh={key:1,class:"h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full"},xa=s.defineComponent({__name:"uiRangeSlider",props:{loading:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},min:{},max:{},sliderValue:{},label:{},requiredText:{}},emits:["sliderUpdated"],setup(X,{emit:L}){const V=L,S=X,I=s.ref(S.sliderValue);return(B,P)=>(s.openBlock(),s.createElementBlock("div",null,[s.createElementVNode("div",wh,[B.label?(s.openBlock(),s.createElementBlock("label",kh,s.toDisplayString(B.label),1)):s.createCommentVNode("",!0),B.requiredText?(s.openBlock(),s.createElementBlock("span",Ch,s.toDisplayString(B.requiredText),1)):s.createCommentVNode("",!0)]),s.createElementVNode("div",{class:s.normalizeClass([{"mt-1":B.label},"pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"])},[B.loading?(s.openBlock(),s.createElementBlock("p",Sh)):(s.openBlock(),s.createBlock(s.unref(mi),{key:0,modelValue:I.value,"onUpdate:modelValue":P[0]||(P[0]=D=>I.value=D),min:B.min,max:B.max,disabled:B.disabled,onChange:P[1]||(P[1]=D=>V("sliderUpdated",D)),classes:{base:"w-full h-full relative z-1 bg-gray-300 rounded",tooltip:"absolute block text-sm font-semibold whitespace-nowrap py-1 px-1.5 min-w-5 text-center text-white rounded border border-indigo-600 bg-indigo-600 transform h:-translate-x-1/2 h:left-1/2 v:-translate-y-1/2 v:top-1/2 slider-disabled:bg-gray-400 slider-disabled:border-gray-400 merge-h:translate-x-1/2 merge-h:left-auto merge-v:-translate-x-4 merge-v:top-auto tt-focus:hidden tt-focused:block tt-drag:hidden tt-dragging:block"}},null,8,["modelValue","min","max","disabled"]))],2)]))}}),Ah={class:"mt-1 mb-8 text-sm text-gray-500"},ba=s.defineComponent({__name:"uiSectionTitle",props:{title:{},description:{}},setup(X){return(L,V)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("h3",{class:s.normalizeClass(["text-lg font-medium leading-6 text-gray-900",{"mb-8":L.description===void 0}])},s.toDisplayString(L.title),3),s.createElementVNode("p",Ah,s.toDisplayString(L.description),1)],64))}}),Eh={key:0,class:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"},Nh={class:"flex flex-1 flex-col p-8"},Bh={class:"text-2xl font-bold text-gray-900"},Vh={class:"mt-1 flex flex-grow flex-col justify-between"},Lh={class:"mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center"},Ph={key:1,class:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"},Mh={class:"flex flex-1 flex-col p-8"},_h={class:"rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200"},Th=s.createElementVNode("div",{class:"h-4 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 mx-auto"},null,-1),Dh={class:"mt-1 flex flex-grow flex-col justify-between"},zh={class:"mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center"},va=s.defineComponent({__name:"uiDeviceStatus",props:{id:{},name:{},icon:{},color:{},qty:{default:0},tags:{},loading:{type:Boolean,default:!0}},setup(X){return(L,V)=>L.loading?(s.openBlock(),s.createElementBlock("div",Ph,[s.createElementVNode("div",Mh,[s.createElementVNode("div",_h,[s.createVNode(De,{icon:L.icon,size:"huge",class:"text-white","aria-hidden":"true",loading:L.loading},null,8,["icon","loading"])]),Th,s.createElementVNode("dl",Dh,[s.createElementVNode("dd",zh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tags,(S,I)=>(s.openBlock(),s.createBlock(pt,{key:I,loading:L.loading,event:S.event,color:S.color,onTagEvent:V[2]||(V[2]=B=>L.$emit("deviceStatusTagClicked",B))},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(S.name),1)]),_:2},1032,["loading","event","color"]))),128))])])])])):(s.openBlock(),s.createElementBlock("div",Eh,[s.createElementVNode("div",Nh,[s.createElementVNode("div",{class:s.normalizeClass(["rounded-md p-3 flex items-center justify-center mx-auto mb-4",{"bg-green-500":!L.color||L.color==="green","bg-red-500":L.color==="red","bg-yellow-500":L.color==="yellow","bg-indigo-500":L.color==="primary","bg-cyan-300":L.color==="secondary","bg-gray-100":L.color==="light"}])},[s.createVNode(De,{icon:L.icon,size:"huge",class:"text-white","aria-hidden":"true",loading:!1},null,8,["icon"])],2),s.createElementVNode("h3",Bh,[s.createTextVNode(s.toDisplayString(L.name)+" ",1),s.withDirectives(s.createElementVNode("span",{class:"text-indigo-600 hover:text-indigo-900 cursor-pointer",onClick:V[0]||(V[0]=S=>L.$emit("deviceStatusQtyClicked",L.id))},"("+s.toDisplayString(L.qty)+")",513),[[s.vShow,L.qty>0]])]),s.createElementVNode("dl",Vh,[s.createElementVNode("dd",Lh,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(L.tags,(S,I)=>(s.openBlock(),s.createBlock(pt,{key:I,loading:!1,event:S.event,color:S.color,onTagEvent:V[1]||(V[1]=B=>L.$emit("deviceStatusTagClicked",B))},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(S.name),1)]),_:2},1032,["event","color"]))),128))])])])]))}}),Ih={class:"flex flex-row grow border-r border-gray-200 bg-white pr-6"},Fh={class:"bg-indigo-600 w-16 mr-6"},Xh={key:0,class:"flex flex-col grow gap-y-5 overflow-y-auto pr-6"},Yh={class:"flex h-16 shrink-0 items-center"},Oh=["src"],Rh={class:"flex flex-1 flex-col"},Hh={key:0,role:"list",class:"flex flex-1 flex-col gap-y-7 mb-4"},$h={role:"list",class:"ml-2 space-y-1"},Wh=["onClick"],jh={key:1,role:"list",class:"flex flex-1 flex-col gap-y-7 mb-4"},Gh={class:"ml-2 space-y-1"},Uh={class:"font-bold mb-4"},qh={key:1,class:"flex flex-col grow gap-y-5 overflow-y-auto pr-6"},Zh={class:"h-12 flex flex-row items-center"},Jh=s.createElementVNode("div",{class:"w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4"},null,-1),Qh=s.createElementVNode("div",{class:"h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300"},null,-1),Kh=[Jh,Qh],Mi=s.defineComponent({__name:"uiSidebarV2",props:{navigation:{},filterNavigation:{},isFilterNavigation:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},logo:{}},emits:["sideBarClick","productBarClick"],setup(X,{emit:L}){return(V,S)=>(s.openBlock(),s.createElementBlock("div",Ih,[s.createElementVNode("div",Fh,[s.createElementVNode("ul",null,[s.createElementVNode("li",{class:"w-full h-16 flex items-center justify-center bg-indigo-900 cursor-pointer hover:bg-indigo-700",onClick:S[0]||(S[0]=I=>V.$emit("productBarClick","CaptivePortal"))},[s.createVNode(De,{icon:s.unref(Ua),loading:!1,color:"white",size:"bigger"},null,8,["icon"])]),s.createElementVNode("li",{class:"w-full h-16 flex items-center justify-center bg-indigo-600 cursor-pointer hover:bg-indigo-700",onClick:S[1]||(S[1]=I=>V.$emit("productBarClick","Surveys"))},[s.createVNode(De,{icon:s.unref(Ii),loading:!1,color:"white",size:"bigger"},null,8,["icon"])])])]),V.loading?(s.openBlock(),s.createElementBlock("div",qh,[(s.openBlock(),s.createElementBlock(s.Fragment,null,s.renderList(5,I=>s.createElementVNode("div",Zh,Kh)),64))])):(s.openBlock(),s.createElementBlock("div",Xh,[s.createElementVNode("div",Yh,[s.createElementVNode("img",{class:"h-8 w-auto",src:V.logo,alt:"Your Company"},null,8,Oh)]),s.createElementVNode("nav",Rh,[V.isFilterNavigation?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("ul",Hh,[s.createElementVNode("li",null,[s.createElementVNode("ul",$h,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.navigation,I=>(s.openBlock(),s.createElementBlock("li",{key:I.name},[I.children?(s.openBlock(),s.createBlock(s.unref(ke.Disclosure),{key:1,as:"div"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.DisclosureButton),{onClick:B=>V.$emit("sideBarClick",I.id),class:s.normalizeClass([I.current?"bg-gray-100":"hover:bg-gray-100","flex w-full items-center gap-x-3 rounded-md p-2 text-left text-sm font-semibold leading-6 text-gray-700"])},{default:s.withCtx(()=>[s.createVNode(De,{icon:I.icon,color:"primary",size:"big",loading:!1,"aria-hidden":"true",class:"shrink-0"},null,8,["icon"]),s.createTextVNode(" "+s.toDisplayString(I.name)+" ",1),s.createVNode(s.unref(Xt),{class:s.normalizeClass([I.children.some(B=>B.current)||I.current?"rotate-90 text-primary-500":"text-gray-400","ml-auto h-5 w-5 shrink-0"]),"aria-hidden":"true"},null,8,["class"])]),_:2},1032,["onClick","class"]),s.withDirectives(s.createElementVNode("div",null,[s.createVNode(s.unref(ke.DisclosurePanel),{as:"ul",class:"mt-1 px-2",static:""},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.children,B=>(s.openBlock(),s.createElementBlock("li",{key:B.name},[s.createVNode(s.unref(ke.DisclosureButton),{as:"a",onClick:P=>V.$emit("sideBarClick",B.id),class:s.normalizeClass([B.current?"bg-gray-100":"hover:bg-gray-100","block rounded-md py-2 pl-9 pr-2 text-sm leading-6 text-gray-700 cursor-pointer"])},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(B.name),1)]),_:2},1032,["onClick","class"])]))),128))]),_:2},1024)],512),[[s.vShow,I.children.some(B=>B.current)||I.current]])]),_:2},1024)):(s.openBlock(),s.createElementBlock("div",{key:0,onClick:B=>V.$emit("sideBarClick",I.id),class:s.normalizeClass([I.current?"bg-gray-100":"hover:bg-gray-100","group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 cursor-pointer"])},[s.createVNode(De,{icon:I.icon,color:"primary",size:"big",loading:!1,"aria-hidden":"true",class:"shrink-0"},null,8,["icon"]),s.createTextVNode(" "+s.toDisplayString(I.name),1)],10,Wh))]))),128))])])])),V.isFilterNavigation&&V.filterNavigation?(s.openBlock(),s.createElementBlock("ul",jh,[s.createElementVNode("li",Gh,[V.filterNavigation.hasSearch&&V.filterNavigation.search?(s.openBlock(),s.createBlock(wt,{key:0,name:V.filterNavigation.search.name,label:V.filterNavigation.search.label,placeholder:V.filterNavigation.search.placeholder,value:V.filterNavigation.search.value,loading:V.filterNavigation.search.loading},null,8,["name","label","placeholder","value","loading"])):s.createCommentVNode("",!0)]),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(V.filterNavigation.items,(I,B)=>(s.openBlock(),s.createElementBlock("li",{class:"ml-2",key:B},[s.createElementVNode("p",Uh,s.toDisplayString(I.label),1),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(I.filters,(P,D)=>(s.openBlock(),s.createBlock(xi,{class:"mb-2",value:P.value,loading:P.loading},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(P.text),1)]),_:2},1032,["value","loading"]))),256))]))),128))])):s.createCommentVNode("",!0)])]))]))}}),eu=s.createElementVNode("div",{class:"fixed inset-0 bg-gray-900/80"},null,-1),tu={class:"fixed inset-0 flex"},iu={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},au=s.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),su={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col"},ru={class:"lg:pl-[25rem]"},ou={class:"sticky top-0 z-10 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white px-4 shadow-sm sm:gap-x-6 sm:px-6 lg:px-8"},nu=s.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),lu=s.createElementVNode("div",{class:"h-6 w-px bg-gray-200 lg:hidden","aria-hidden":"true"},null,-1),cu={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},du={class:"relative flex flex-1",action:"#",method:"GET"},hu=s.createElementVNode("label",{for:"search-field",class:"sr-only"},"Search",-1),uu={class:"relative block h-full w-full border-0 py-0 pl-8 pr-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm"},gu={class:"flex items-center gap-x-4 lg:gap-x-6"},pu={type:"button",class:"-m-2.5 p-2.5 text-gray-400 hover:text-gray-500 relative"},fu=s.createElementVNode("span",{class:"sr-only"},"View notifications",-1),mu={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2"},xu=s.createElementVNode("span",{class:"animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75"},null,-1),bu=[xu],vu=s.createElementVNode("div",{class:"hidden lg:block lg:h-6 lg:w-px lg:bg-gray-200","aria-hidden":"true"},null,-1),yu=s.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),wu=["src"],ku={class:"hidden lg:flex lg:items-center"},Cu=["onClick"],Su={class:"py-7"},Au={class:"px-7 lg:px-10"},ya=s.defineComponent({__name:"uiWrapper",props:{topbar:{},sidebar:{}},setup(X){const L=X,V=s.ref(""),S=s.computed(()=>V.value===""?L.topbar.selectItems:L.topbar.selectItems.filter(D=>D.name.toLowerCase().includes(V.value.toLowerCase()))),I=D=>(D==null?void 0:D.name)??"",B=s.computed(()=>L.topbar.selectedItem),P=s.ref(!1);return(D,O)=>(s.openBlock(),s.createElementBlock("div",null,[s.createVNode(s.unref(ke.TransitionRoot),{as:"template",show:P.value},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.Dialog),{class:"relative z-50 lg:hidden",onClose:O[2]||(O[2]=U=>P.value=!1)},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.TransitionChild),{as:"template",enter:"transition-opacity ease-linear duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"transition-opacity ease-linear duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s.withCtx(()=>[eu]),_:1}),s.createElementVNode("div",tu,[s.createVNode(s.unref(ke.TransitionChild),{as:"template",enter:"transition ease-in-out duration-300 transform","enter-from":"-translate-x-full","enter-to":"translate-x-0",leave:"transition ease-in-out duration-300 transform","leave-from":"translate-x-0","leave-to":"-translate-x-full"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.DialogPanel),{class:"relative mr-16 flex w-full max-w-xs flex-1"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.TransitionChild),{as:"template",enter:"ease-in-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in-out duration-300","leave-from":"opacity-100","leave-to":"opacity-0"},{default:s.withCtx(()=>[s.createElementVNode("div",iu,[s.createElementVNode("button",{type:"button",class:"-m-2.5 p-2.5",onClick:O[0]||(O[0]=U=>P.value=!1)},[au,s.createVNode(s.unref(Ct),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),s.createVNode(Mi,{isFilterNavigation:D.sidebar.isFilterNavigation,navigation:D.sidebar.navigation,filterNavigation:D.sidebar.filterNavigation,loading:!1,logo:D.topbar.logo,onSideBarClick:O[1]||(O[1]=U=>D.$emit("sideBarClick",U))},null,8,["isFilterNavigation","navigation","filterNavigation","logo"])]),_:1})]),_:1})])]),_:1})]),_:1},8,["show"]),s.createElementVNode("div",su,[s.createVNode(Mi,{isFilterNavigation:D.sidebar.isFilterNavigation,navigation:D.sidebar.navigation,filterNavigation:D.sidebar.filterNavigation,loading:!1,logo:D.topbar.logo,onSideBarClick:O[3]||(O[3]=U=>D.$emit("sideBarClick",U))},null,8,["isFilterNavigation","navigation","filterNavigation","logo"])]),s.createElementVNode("div",ru,[s.createElementVNode("div",ou,[s.createElementVNode("button",{type:"button",class:"-m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:O[4]||(O[4]=U=>P.value=!0)},[nu,s.createVNode(s.unref(Ti),{class:"h-6 w-6","aria-hidden":"true"})]),lu,s.createElementVNode("div",cu,[s.createElementVNode("form",du,[hu,s.createVNode(s.unref(Wa),{class:"pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400","aria-hidden":"true"}),s.createVNode(s.unref(ke.Combobox),{class:"w-full",as:"div",modelValue:B.value,"onUpdate:modelValue":[O[7]||(O[7]=U=>B.value=U),O[8]||(O[8]=U=>D.$emit("selectChanged",U))]},{default:s.withCtx(()=>[s.createElementVNode("div",uu,[s.createVNode(s.unref(ke.ComboboxInput),{class:"block h-full w-full border-0 py-0 pl-8 pr-0 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm",onChange:O[5]||(O[5]=U=>V.value=U.target.value),onBlur:O[6]||(O[6]=U=>V.value=""),displayValue:I}),s.createVNode(s.unref(ke.ComboboxButton),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:s.withCtx(()=>[s.createVNode(s.unref(pi),{class:"h-5 w-5 text-gray-400"})]),_:1}),S.value.length>0?(s.openBlock(),s.createBlock(s.unref(ke.ComboboxOptions),{key:0,class:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(S.value,U=>(s.openBlock(),s.createBlock(s.unref(ke.ComboboxOption),{key:U.id,value:U,as:"template"},{default:s.withCtx(({active:J,selected:le})=>[s.createElementVNode("li",{class:s.normalizeClass(["relative cursor-default select-none py-2 pl-8 pr-4",J?"bg-indigo-600 text-white":"text-gray-900"])},[s.createElementVNode("span",{class:s.normalizeClass(["block truncate",le&&"font-semibold"])},s.toDisplayString(U.name),3),le?(s.openBlock(),s.createElementBlock("span",{key:0,class:s.normalizeClass(["absolute inset-y-0 left-0 flex items-center pl-1.5",J?"text-white":"text-indigo-600"])},[s.createVNode(s.unref(Zt),{class:"h-5 w-5"})],2)):s.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):s.createCommentVNode("",!0)])]),_:1},8,["modelValue"])]),s.createElementVNode("div",gu,[s.createElementVNode("button",pu,[fu,s.withDirectives(s.createElementVNode("div",mu,bu,512),[[s.vShow,D.topbar.alerted]]),s.createVNode(s.unref(Xa),{class:"h-6 w-6","aria-hidden":"true"})]),vu,s.createVNode(s.unref(ke.Menu),{as:"div",class:"relative"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.MenuButton),{class:"-m-1.5 flex items-center p-1.5"},{default:s.withCtx(()=>[yu,s.createElementVNode("img",{class:"h-8 w-8 rounded-full bg-gray-50",src:D.topbar.accountLogo,alt:""},null,8,wu),s.createElementVNode("span",ku,[s.createVNode(s.unref(qt),{class:"ml-2 h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),s.createVNode(s.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:s.withCtx(()=>[s.createVNode(s.unref(ke.MenuItems),{class:"absolute right-0 z-10 mt-2.5 w-52 origin-top-right rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(D.topbar.profileMenu,U=>(s.openBlock(),s.createBlock(s.unref(ke.MenuItem),{key:U.name},{default:s.withCtx(({active:J})=>[s.createElementVNode("a",{onClick:le=>D.$emit("topBarClick",U.id),class:s.normalizeClass([J?"bg-gray-50":"","block px-3 py-1 text-sm leading-6 text-gray-900"])},s.toDisplayString(U.name),11,Cu)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),s.createElementVNode("main",Su,[s.createElementVNode("div",Au,[s.renderSlot(D.$slots,"default")])])])]))}}),wa=s.defineComponent({__name:"uiDynamicStats",props:{dynamicStats:{},loading:{type:Boolean,default:!0}},setup(X){const L=X,V=()=>L.dynamicStats.length<=5?`lg:grid-cols-${L.dynamicStats.length}`:`lg:grid-cols-${Math.floor(L.dynamicStats.length/2)} xl:grid-cols-${L.dynamicStats.length}`,S=s.ref(0),I=s.ref(V());return s.onMounted(()=>S.value+=1),(B,P)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass([I.value,"grid grid-cols-1 md:grid-cols-2 gap-4"]),key:S.value},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(B.dynamicStats,(D,O)=>(s.openBlock(),s.createBlock(ki,{key:O,item:D,loading:B.loading},null,8,["item","loading"]))),128))],2))}}),_i=Object.freeze(Object.defineProperty({__proto__:null,uiAlert:Ri,uiBreadcrumbs:Hi,uiButton:kt,uiCard:$i,uiChart:Ki,uiCheckbox:xi,uiCircleChart:pa,uiDateRange:fa,uiDeviceStatus:va,uiDragAndDrop:ga,uiDropdown:bi,uiDynamicStats:wa,uiFilter:Wi,uiFooter:ea,uiFunnelChartV2:ca,uiGallery:ua,uiIcon:De,uiInput:wt,uiInputFile:Xi,uiLoadingScreen:ta,uiModal:yi,uiNoResults:da,uiNotification:ji,uiPagination:ia,uiPriceCalendar:Qi,uiRangeSlider:xa,uiRightSidebar:ha,uiSectionTitle:ba,uiSelect:vi,uiSidebar:aa,uiStats:ki,uiStripedCard:sa,uiTable:ra,uiTabs:oa,uiTag:pt,uiTaskList:Gi,uiTextArea:Yi,uiTimeline:na,uiToggle:Oi,uiTopbar:la,uiWrapper:ya},Symbol.toStringTag,{value:"Module"}));function Eu(X){for(const L in _i)X.component(L,_i[L])}const Nu={install:Eu};exports.default=Nu;exports.uiAlert=Ri;exports.uiBreadcrumbs=Hi;exports.uiButton=kt;exports.uiCard=$i;exports.uiChart=Ki;exports.uiCheckbox=xi;exports.uiCircleChart=pa;exports.uiDateRange=fa;exports.uiDeviceStatus=va;exports.uiDragAndDrop=ga;exports.uiDropdown=bi;exports.uiDynamicStats=wa;exports.uiFilter=Wi;exports.uiFooter=ea;exports.uiFunnelChartV2=ca;exports.uiGallery=ua;exports.uiIcon=De;exports.uiInput=wt;exports.uiInputFile=Xi;exports.uiLoadingScreen=ta;exports.uiModal=yi;exports.uiNoResults=da;exports.uiNotification=ji;exports.uiPagination=ia;exports.uiPriceCalendar=Qi;exports.uiRangeSlider=xa;exports.uiRightSidebar=ha;exports.uiSectionTitle=ba;exports.uiSelect=vi;exports.uiSidebar=aa;exports.uiStats=ki;exports.uiStripedCard=sa;exports.uiTable=ra;exports.uiTabs=oa;exports.uiTag=pt;exports.uiTaskList=Gi;exports.uiTextArea=Yi;exports.uiTimeline=na;exports.uiToggle=Oi;exports.uiTopbar=la;exports.uiWrapper=ya;
package/dist/ui.es.js CHANGED
@@ -14346,7 +14346,7 @@ const wu = { class: "flex justify-between items-center" }, ku = {
14346
14346
  name: {},
14347
14347
  icon: {},
14348
14348
  color: {},
14349
- qty: {},
14349
+ qty: { default: 0 },
14350
14350
  tags: {},
14351
14351
  loading: { type: Boolean, default: !0 }
14352
14352
  },
@@ -14406,7 +14406,7 @@ const wu = { class: "flex justify-between items-center" }, ku = {
14406
14406
  class: "text-indigo-600 hover:text-indigo-900 cursor-pointer",
14407
14407
  onClick: _[0] || (_[0] = (C) => T.$emit("deviceStatusQtyClicked", T.id))
14408
14408
  }, "(" + G(T.qty) + ")", 513), [
14409
- [jt, T.qty]
14409
+ [jt, T.qty > 0]
14410
14410
  ])
14411
14411
  ]),
14412
14412
  b("dl", zu, [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hotelinking/ui",
3
3
  "private": false,
4
- "version": "9.41.9",
4
+ "version": "9.41.10",
5
5
  "files": [
6
6
  "dist"
7
7
  ],