@hotelinking/ui 10.42.18 → 10.42.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.cjs +1 -1
- package/dist/ui.es.js +1 -1
- package/package.json +1 -1
package/dist/ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@headlessui/vue"),k=require("dayjs"),U=require("vue3-apexcharts"),qe=require("vue3-draggable"),Re=require("@vueform/slider"),y=e.defineComponent({__name:"uiIcon",props:{icon:{},size:{default:"medium"},color:{default:"primary"},loading:{type:Boolean,default:!0}},setup(d){return(a,l)=>a.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([{"h-4 w-4":a.size==="medium","h-6 w-6":a.size==="big","h-8 w-8":a.size==="bigger","h-12 w-12":a.size==="huge","h-20 w-20":a.size==="massive"},"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"])},null,2)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.icon),{key:0,class:e.normalizeClass({"h-4 w-4":a.size==="medium","h-6 w-6":a.size==="big","h-8 w-8":a.size==="bigger","h-12 w-12":a.size==="huge","h-20 w-20":a.size==="massive","text-indigo-600":a.color==="primary","text-cyan-300":a.color==="secondary","text-red-400":a.color==="red","text-yellow-400":a.color==="yellow","text-green-400":a.color==="green","text-white":a.color==="white","text-gray-300":a.color==="gray","text-black":a.color==="black"})},null,8,["class"]))}}),He=["disabled"],Ue={key:1,class:"animate-pulse px-4 py-2.5 text-sm rounded-md inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 bg-gray-200"},$=e.defineComponent({__name:"uiButton",props:{block:{type:Boolean},color:{default:"primary"},disabled:{type:Boolean},icon:{},loading:{type:Boolean,default:!0},size:{default:"medium"}},setup(d){return(a,l)=>a.loading?(e.openBlock(),e.createElementBlock("button",Ue,[a.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:a.icon,color:"white",class:"-ml-0.5 mr-2",loading:a.loading},null,8,["icon","loading"])):e.createCommentVNode("",!0),l[0]||(l[0]=e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16"},null,-1))])):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:a.disabled,class:e.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 text-white shadow-sm":a.color==="primary","bg-cyan-300 hover:bg-cyan-500 text-white shadow-sme":a.color==="secondary","bg-red-400 hover:bg-red-600 text-white shadow-sm":a.color==="red","bg-yellow-400 hover:bg-yellow-600 text-white shadow-sm":a.color==="yellow","bg-green-400 hover:bg-green-600 text-white shadow-sm":a.color==="green","px-4 py-2 text-sm rounded-md":a.size==="medium","px-2.5 py-1.5 text-xs rounded leading-none":a.size==="small","px-6 py-3 text-base rounded-md":a.size==="big","w-full flex items-center justify-center":a.block},"inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25"]),type:"button"},[a.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:a.icon,color:"white",class:"-ml-0.5 mr-2",loading:a.loading},null,8,["icon","loading"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],10,He))}}),Ze={key:0,class:"relative flex items-start"},Je={class:"flex items-center h-5"},We=["checked","value","disabled"],Ge={class:"ml-3 text-sm"},Qe={class:"text-gray-500"},Ke={key:1,class:"flex items-center animate-pulse"},Z=e.defineComponent({__name:"uiCheckbox",props:{check:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},value:{},text:{}},emits:["checkboxChanged"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(r.check),o=()=>{r.disabled||(n.value=!n.value,l("checkboxChanged",{checked:n.value,value:r.value}))};return e.watch(()=>r.check,t=>{t&&(n.value=t)}),(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",Ke,i[1]||(i[1]=[e.createElementVNode("div",{class:"w-5 h-5 rounded bg-gray-200"},null,-1),e.createElementVNode("div",{class:"ml-3 h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",Ze,[e.createElementVNode("div",Je,[e.createElementVNode("input",{checked:t.check,value:t.value,disabled:t.disabled,class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded disabled:opacity-25",type:"checkbox",onChange:i[0]||(i[0]=s=>o())},null,40,We)]),e.createElementVNode("div",Ge,[e.createElementVNode("span",Qe,[e.renderSlot(t.$slots,"default")])])]))}});function Xe(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function et(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 7.5h-.75A2.25 2.25 0 0 0 4.5 9.75v7.5a2.25 2.25 0 0 0 2.25 2.25h7.5a2.25 2.25 0 0 0 2.25-2.25v-7.5a2.25 2.25 0 0 0-2.25-2.25h-.75m0-3-3-3m0 0-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-.75"})])}function tt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function re(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})])}function ae(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function ot(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function lt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})])}function se(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function q(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function P(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function ie(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function z(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function H(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function nt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})])}function rt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function _(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function at(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.182 16.318A4.486 4.486 0 0 0 12.016 15a4.486 4.486 0 0 0-3.198 1.318M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"})])}function st(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.182 15.182a4.5 4.5 0 0 1-6.364 0M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"})])}function it(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.05 4.575a1.575 1.575 0 1 0-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 0 1 3.15 0v1.5m-3.15 0 .075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 0 1 3.15 0V15M6.9 7.575a1.575 1.575 0 1 0-3.15 0v8.175a6.75 6.75 0 0 0 6.75 6.75h2.018a5.25 5.25 0 0 0 3.712-1.538l1.732-1.732a5.25 5.25 0 0 0 1.538-3.712l.003-2.024a.668.668 0 0 1 .198-.471 1.575 1.575 0 1 0-2.228-2.228 3.818 3.818 0 0 0-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0 1 16.35 15m.002 0h-.002"})])}function dt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function de(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function ct(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function ut(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function mt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function R(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function S(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const gt={class:"flex justify-between"},pt={key:0,class:"block text-sm font-medium text-gray-700 mb-1"},ft={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end mt-1"},ht={class:"py-1"},yt=["onClick"],vt={key:1,class:"animate-pulse px-4 py-2 bg-gray-200 rounded-md inline-flex items-center relative text-left"},M=e.defineComponent({__name:"uiDropdown",props:{items:{},position:{default:"left"},disabled:{type:Boolean},label:{},loading:{type:Boolean,default:!0},requiredText:{}},emits:["optionSelected"],setup(d,{emit:a}){const l=a,r=d,n=e.computed(()=>{let t=r.items.find(i=>i.active===!0);return t?t.name:r.label}),o=t=>{r.disabled||l("optionSelected",t)};return(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",vt,[i[0]||(i[0]=e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"},null,-1)),e.createVNode(e.unref(P),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"})])):(e.openBlock(),e.createBlock(e.unref(p.Menu),{key:0,as:"div",class:e.normalizeClass(["relative inline-block text-left",{"opacity-25":t.disabled}])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",gt,[t.label?(e.openBlock(),e.createElementBlock("label",pt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.requiredText?(e.openBlock(),e.createElementBlock("span",ft,e.toDisplayString(t.requiredText),1)):e.createCommentVNode("",!0)]),e.createVNode(e.unref(p.MenuButton),{class:"inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value)+" ",1),e.createVNode(e.unref(P),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5"})]),_:1})]),e.createVNode(e.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:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(p.MenuItems),{key:0,class:e.normalizeClass([{"right-0":t.position==="right","left-0":t.position==="left"},"origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])},{default:e.withCtx(()=>[e.createElementVNode("div",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,c)=>(e.openBlock(),e.createBlock(e.unref(p.MenuItem),{key:c},{default:e.withCtx(()=>[e.createElementVNode("a",{onClick:u=>o(s),class:e.normalizeClass([s.active?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm cursor-pointer"])},e.toDisplayString(s.name),11,yt)]),_:2},1024))),128))])]),_:1},8,["class"]))]),_:1})]),_:1},8,["class"]))}}),kt={key:0},bt={class:"flex justify-between"},wt={key:0,class:"block text-sm font-medium text-gray-700"},xt={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Nt=["max","disabled","name","placeholder","type"],Vt={class:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"},Et={key:1,class:"animate-pulse"},Bt={key:0,class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"},C=e.defineComponent({__name:"uiInput",props:{label:{},type:{default:"text"},name:{},placeholder:{default:"..."},icon:{},disabled:{type:Boolean},color:{default:"gray"},value:{},error:{},requiredText:{},addOn:{},rightAddOn:{},max:{},min:{},loading:{type:Boolean,default:!0}},emits:["inputChanged","rightAddOnClicked","addOnClicked"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(r.value);e.watch(()=>r.value,t=>{n.value=t,n.value&&l("inputChanged",{name:r.name,value:n.value})});const o=t=>{t.target.name&&l("inputChanged",{value:t.target.value,name:t.target.name})};return(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",Et,[t.label!==void 0?(e.openBlock(),e.createElementBlock("div",Bt)):e.createCommentVNode("",!0),i[3]||(i[3]=e.createElementVNode("div",{class:"animate-pulse px-4 py-3.5 bg-gray-200 rounded-md inline-flex items-center relative text-left w-full"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"})],-1))])):(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("div",bt,[t.label?(e.openBlock(),e.createElementBlock("label",wt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.requiredText?(e.openBlock(),e.createElementBlock("span",xt,e.toDisplayString(t.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([{"mt-1":t.label},"relative flex"])},[t.addOn?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:i[0]||(i[0]=s=>t.$emit("addOnClicked")),class:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer"},e.toDisplayString(t.addOn),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=s=>n.value=s),max:t.max,class:e.normalizeClass([{"border-gray-300":t.color==="gray","border-red-400":t.color==="red","border-yellow-400":t.color==="yellow","border-green-400":t.color==="green","bg-gray-100":t.disabled,"text-black":t.color==="black","text-red-400":t.color==="red","text-yellow-400":t.color==="yellow","text-green-400":t.color==="green","rounded-md":!t.addOn||!t.rightAddOn,"rounded-r-md":t.addOn,"rounded-l-none":t.addOn,"rounded-l-md":t.rightAddOn,"rounded-r-none":t.rightAddOn},"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]),disabled:t.disabled,name:t.name,placeholder:t.placeholder,type:t.type,onInput:o},null,42,Nt),[[e.vModelDynamic,n.value]]),t.rightAddOn?(e.openBlock(),e.createElementBlock("span",{key:1,onClick:i[2]||(i[2]=s=>t.$emit("rightAddOnClicked")),class:"inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer"},e.toDisplayString(t.rightAddOn),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,[t.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:t.icon,color:t.color,loading:t.loading},null,8,["icon","color","loading"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(y,{icon:e.unref(q),color:"green",loading:t.loading},null,8,["icon","loading"]),[[e.vShow,t.color==="green"]]),e.withDirectives(e.createVNode(y,{icon:e.unref(_),color:"yellow",loading:t.loading},null,8,["icon","loading"]),[[e.vShow,t.color==="yellow"]]),e.withDirectives(e.createVNode(y,{icon:e.unref(S),color:"red",loading:t.loading},null,8,["icon","loading"]),[[e.vShow,t.color==="red"]])])],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-400":t.color==="gray","text-red-400":t.color==="red","text-yellow-400":t.color==="yellow","text-green-400":t.color==="green"},"mt-2 text-xs flex flex-row items-center"])},e.toDisplayString(t.error),3),[[e.vShow,t.error]])]))}}),Ct={key:0},_t={class:"flex justify-between"},$t={key:0,class:"block text-sm font-medium text-gray-700"},St={key:1,class:"text-[10px] text-gray-500 uppercase"},Dt={class:"space-y-1 flex flex-col items-center justify-center"},zt={class:"flex text-sm text-gray-600 flex-col sm:flex-row text-center"},Mt=["for"],Tt=["id","name","accept"],jt={class:"pl-1"},Lt={class:"text-xs text-gray-500 pb-4"},Ft={class:"mt-2 text-xs flex flex-row items-center text-red-300"},Ot={key:1,class:"animate-pulse"},ce=e.defineComponent({__name:"uiInputFile",props:{name:{},id:{},requiredText:{},placeholder:{},dragAndDrop:{},fileTypesAndSizes:{},error:{},accept:{},icon:{default:et},loading:{type:Boolean,default:!0},label:{}},emits:["filesUploaded"],setup(d,{emit:a}){let l=e.ref("");const r=a,n=d,o=s=>{i(s.dataTransfer.files),r("filesUploaded",{id:n.id,files:s.dataTransfer.files})},t=s=>{i(s.target.files),r("filesUploaded",{id:n.id,files:s.target.files})},i=s=>{l.value="";let c=1;Object.values(s).forEach(u=>{c++,l.value+=u.name,c>=1&&c<s.length&&(l.value+=", ")})};return(s,c)=>s.loading?(e.openBlock(),e.createElementBlock("div",Ot,c[1]||(c[1]=[e.createElementVNode("div",{class:"flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200"},[e.createElementVNode("div",{class:"rounded-full h-20 w-20 bg-gray-200 mb-4"}),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3"}),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3"})],-1)]))):(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("div",_t,[s.label?(e.openBlock(),e.createElementBlock("label",$t,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0),s.requiredText?(e.openBlock(),e.createElementBlock("span",St,e.toDisplayString(s.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([[{"mt-1":s.label},{"border-gray-300 hover:border-gray-400":!s.error},{"border-red-300 hover:border-red-400":s.error}],"dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]),onDragover:c[0]||(c[0]=e.withModifiers(()=>{},["prevent"])),onDrop:e.withModifiers(o,["prevent"])},[e.createElementVNode("div",Dt,[e.createVNode(y,{icon:s.icon,size:"massive",color:"gray","aria-hidden":"true",class:"mb-4",loading:s.loading},null,8,["icon","loading"]),e.createElementVNode("div",zt,[e.createElementVNode("label",{for:s.id,class:"relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500"},[e.createElementVNode("span",null,e.toDisplayString(s.placeholder),1),e.createElementVNode("input",{id:s.id,name:s.name,type:"file",class:"sr-only",accept:s.accept,multiple:"",onChange:t},null,40,Tt)],8,Mt),e.createElementVNode("p",jt,e.toDisplayString(s.dragAndDrop),1)]),e.createElementVNode("p",Lt,e.toDisplayString(s.fileTypesAndSizes),1),e.withDirectives(e.createElementVNode("p",{class:"font-bold text-xs uppercase block p-2 bg-gray-200 rounded"},e.toDisplayString(e.unref(l)),513),[[e.vShow,e.unref(l)!==null]])])],34),e.withDirectives(e.createElementVNode("p",Ft,[e.createVNode(y,{icon:e.unref(R),color:"red",class:"mr-2",loading:s.loading},null,8,["icon","loading"]),e.createTextVNode(" "+e.toDisplayString(s.error),1)],512),[[e.vShow,s.error]])]))}}),At={class:"flex justify-between"},It={key:0,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Yt={class:"relative"},Pt={key:1,class:"animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"},J=e.defineComponent({__name:"uiSelect",props:{items:{},label:{},error:{},color:{default:"gray"},select:{},loading:{type:Boolean,default:!0},disabled:{type:Boolean},requiredText:{}},emits:["selectChanged"],setup(d,{expose:a,emit:l}){const r=e.ref(""),n=l,o=d,t=e.computed(()=>r.value===""?o.items:o.items.filter(u=>u.name.toLowerCase().includes(r.value.toLowerCase()))),i=u=>(u==null?void 0:u.name)??"",s=u=>{n("selectChanged",u)},c=e.computed({get:()=>o.select,set:u=>{s(u)}});return a({handleChange:s}),(u,m)=>u.loading?(e.openBlock(),e.createElementBlock("div",Pt,[m[3]||(m[3]=e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},null,-1)),e.createVNode(e.unref(H),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"})])):(e.openBlock(),e.createBlock(e.unref(p.Combobox),{key:0,modelValue:c.value,"onUpdate:modelValue":[m[2]||(m[2]=v=>c.value=v),s],disabled:u.disabled,as:"div"},{default:e.withCtx(()=>[e.createElementVNode("div",At,[e.createVNode(e.unref(p.ComboboxLabel),{class:"block text-sm font-medium"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.label),1)]),_:1}),u.requiredText?(e.openBlock(),e.createElementBlock("span",It,e.toDisplayString(u.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Yt,[e.createVNode(e.unref(p.ComboboxInput),{onChange:m[0]||(m[0]=v=>r.value=v.target.value),onBlur:m[1]||(m[1]=v=>r.value=""),displayValue:i,class:e.normalizeClass([{"mt-1":u.requiredText,"border-gray-300":u.color==="gray","border-red-400":u.color==="red","border-yellow-400":u.color==="yellow","border-green-400":u.color==="green","bg-gray-100":u.disabled,"bg-white":!u.disabled,"text-black":u.color==="gray","text-gray-300":u.disabled,"text-red-400":u.color==="red","text-yellow-400":u.color==="yellow","text-green-400":u.color==="green"},"w-full rounded-md border py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"])},null,8,["class"]),e.createVNode(e.unref(p.ComboboxButton),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(H),{"aria-hidden":"true",class:"h-5 w-5 text-gray-400"})]),_:1}),t.value.length>0?(e.openBlock(),e.createBlock(e.unref(p.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:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,v=>(e.openBlock(),e.createBlock(e.unref(p.ComboboxOption),{key:v.id,value:v,as:"template"},{default:e.withCtx(({active:b,selected:f})=>[e.createElementVNode("li",{class:e.normalizeClass(["relative cursor-default select-none py-2 pl-3 pr-9",b?"bg-indigo-600 text-white":"text-gray-900"])},[e.createElementVNode("span",{class:e.normalizeClass(["block truncate",f&&"font-semibold"])},e.toDisplayString(v.name),3),f?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["absolute inset-y-0 right-0 flex items-center pr-4",b?"text-white":"text-indigo-600"])},[e.createVNode(e.unref(q),{"aria-hidden":"true",class:"h-5 w-5",loading:!0})],2)):e.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-400":u.color==="gray","text-red-400":u.color==="red","text-yellow-400":u.color==="yellow","text-green-400":u.color==="green"},"mt-2 text-xs flex flex-row items-center"])},e.toDisplayString(u.error),3),[[e.vShow,u.error]])]),_:1},8,["modelValue","disabled"]))}}),qt={key:1,class:"inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200"},B=e.defineComponent({__name:"uiTag",props:{color:{default:"primary"},loading:{type:Boolean,default:!0},size:{default:"medium"},event:{},name:{},text:{}},emits:["tagEvent"],setup(d,{emit:a}){const l=a,r=d,n=()=>{r.event!=null&&l("tagEvent",r.event)};return(o,t)=>o.loading?(e.openBlock(),e.createElementBlock("div",qt,t[0]||(t[0]=[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"},null,-1)]))):(e.openBlock(),e.createElementBlock("span",{key:0,onClick:n,class:e.normalizeClass([{"bg-indigo-100 text-indigo-800 border border-indigo-200":o.color==="primary","hover:bg-indigo-200 cursor-pointer":o.event!==void 0&&o.color==="primary","bg-red-100 text-red-800 border border-red-200":o.color==="red","hover:bg-red-200 cursor-pointer":o.event!==void 0&&o.color==="red","bg-yellow-100 text-yellow-800 border border-yellow-200":o.color==="yellow","hover:bg-yellow-200 cursor-pointer":o.event!==void 0&&o.color==="yellow","bg-green-100 text-green-800 border border-green-200":o.color==="green","hover:bg-green-200 cursor-pointer":o.event!==void 0&&o.color==="green","bg-black text-white border border-black":o.color==="black","text-black border border-gray-200 bg-white":o.color==="white","px-3 py-2":o.size==="medium","px-2 pt-1 pb-0.5":o.size==="small","px-4 py-3":o.size==="big"},"inline-flex items-center rounded text-xs font-medium leading-none"])},[e.renderSlot(o.$slots,"default")],2))}}),Rt={key:0},Ht={class:"flex justify-between"},Ut={key:0,class:"block text-sm font-medium text-gray-700"},Zt={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Jt=["disabled","placeholder"],Wt={key:1,class:"animate-pulse"},ue=e.defineComponent({__name:"uiTextArea",props:{name:{},label:{},placeholder:{default:"..."},value:{},color:{default:"gray"},disabled:{type:Boolean,default:!1},error:{},loading:{type:Boolean,default:!0},requiredText:{}},emits:["inputChanged"],setup(d,{emit:a}){const l=a,r=d,n=t=>{l("inputChanged",t.target.value)},o=e.ref(r.value);return e.watch(()=>r.value,t=>{o.value=t,l("inputChanged",{name:r.name,value:o.value})}),(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",Wt,i[1]||(i[1]=[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"},null,-1),e.createElementVNode("div",{class:"h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",Rt,[e.createElementVNode("div",Ht,[t.label?(e.openBlock(),e.createElementBlock("label",Ut,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.requiredText?(e.openBlock(),e.createElementBlock("span",Zt,e.toDisplayString(t.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass({"mt-1":t.label})},[e.withDirectives(e.createElementVNode("textarea",{disabled:t.disabled,rows:"4","onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),placeholder:t.placeholder,class:e.normalizeClass(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md",{"border-gray-300":t.color==="gray","border-red-300":t.color==="red","border-yellow-400":t.color==="yellow","border-green-400":t.color==="green","bg-gray-100":t.disabled,"text-black":t.color==="black","text-red-300":t.color==="red","text-yellow-400":t.color==="yellow","text-green-400":t.color==="green"}]),onChange:n},null,42,Jt),[[e.vModelText,o.value]])],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-300":t.color==="gray","text-red-300":t.color==="red","text-yellow-400":t.color==="yellow","text-green-400":t.color==="green"},"mt-2 text-xs flex flex-row items-center"])},[e.createVNode(y,{icon:e.unref(R),color:"red",class:"mr-2",loading:!1},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.error),1)],2),[[e.vShow,t.error]])]))}}),Gt={class:"text-sm font-medium text-gray-900"},Qt={key:0,class:"text-sm text-gray-500 ml-2"},Kt={key:1,class:"animate-pulse flex items-center"},me=e.defineComponent({__name:"uiToggle",props:{item:{},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!0}},emits:["toggleChanged","actionClicked"],setup(d,{emit:a}){const l=d,r=e.ref(l.checked);return e.watch(()=>l.checked,n=>r.value=n),(n,o)=>n.loading?(e.openBlock(),e.createElementBlock("div",Kt,o[3]||(o[3]=[e.createElementVNode("div",{class:"relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center"},[e.createElementVNode("div",{class:"rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4"})],-1),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2"},null,-1)]))):(e.openBlock(),e.createBlock(e.unref(p.SwitchGroup),{key:0,as:"div",class:"flex items-center relative"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.Switch),{disabled:n.disabled,onClick:o[0]||(o[0]=t=>n.$emit("toggleChanged",{item:n.item,active:!r.value})),modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=t=>r.value=t),class:e.normalizeClass([r.value?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:e.withCtx(()=>[e.createElementVNode("span",{"aria-hidden":"true",class:e.normalizeClass([r.value?"translate-x-5":"translate-x-0",n.disabled?"bg-gray-300":"","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["disabled","modelValue","class"]),e.createVNode(e.unref(p.SwitchLabel),{as:"span",class:"ml-3"},{default:e.withCtx(()=>[e.createElementVNode("span",Gt,e.toDisplayString(n.item.title),1),n.item.subtitle?(e.openBlock(),e.createElementBlock("span",Qt,e.toDisplayString(n.item.subtitle),1)):e.createCommentVNode("",!0)]),_:1}),n.item.action?(e.openBlock(),e.createElementBlock("span",{key:0,class:"cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5",onClick:o[2]||(o[2]=t=>n.$emit("actionClicked",n.item))},e.toDisplayString(n.item.action),1)):e.createCommentVNode("",!0)]),_:1}))}}),Xt={key:0,class:"flex flex-col"},eo={class:"flex"},to={class:"flex-shrink-0"},oo={class:"ml-3"},lo={class:"mt-4"},no={class:"-mx-2 -my-1.5 flex"},ro=["onClick"],ao={key:1,class:"flex flex-col animate-pulse"},ge=e.defineComponent({__name:"uiAlert",props:{actions:{},title:{},type:{default:"info"},loading:{type:Boolean,default:!0}},emits:["alertEvent"],setup(d,{emit:a}){const l=a,r=n=>{l("alertEvent",n.event)};return(n,o)=>n.loading?(e.openBlock(),e.createElementBlock("div",ao,o[0]||(o[0]=[e.createStaticVNode('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>',1)]))):(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-50 border-indigo-400":n.type==="info","bg-red-50 border-red-400":n.type==="danger","bg-yellow-50 border-yellow-400":n.type==="warning","bg-green-50 border-green-400":n.type==="success"},"p-4 border-l-4 rounded"])},[e.createElementVNode("div",eo,[e.createElementVNode("div",to,[n.type==="info"?(e.openBlock(),e.createBlock(e.unref(de),{key:0,class:"h-8 w-8 text-indigo-400","aria-hidden":"true"})):e.createCommentVNode("",!0),n.type==="danger"?(e.openBlock(),e.createBlock(e.unref(R),{key:1,class:"h-8 w-8 text-red-400","aria-hidden":"true"})):e.createCommentVNode("",!0),n.type==="warning"?(e.openBlock(),e.createBlock(e.unref(_),{key:2,class:"h-8 w-8 text-yellow-400","aria-hidden":"true"})):e.createCommentVNode("",!0),n.type==="success"?(e.openBlock(),e.createBlock(e.unref(se),{key:3,class:"h-8 w-8 text-green-400","aria-hidden":"true"})):e.createCommentVNode("",!0)]),e.createElementVNode("div",oo,[e.createElementVNode("h3",{class:e.normalizeClass([{"text-red-800":n.type==="danger","text-yellow-800":n.type==="warning","text-green-800":n.type==="success"},"text-sm font-medium"])},e.toDisplayString(n.title),3),e.createElementVNode("div",{class:e.normalizeClass([{"text-red-700":n.type==="danger","text-yellow-700":n.type==="warning","text-green-700":n.type==="success"},"mt-2 text-sm"])},[e.renderSlot(n.$slots,"default")],2),e.createElementVNode("div",lo,[e.createElementVNode("div",no,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.actions,(t,i)=>(e.openBlock(),e.createElementBlock("button",{onClick:s=>r(t),type:"button",key:i,class:e.normalizeClass([{"bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50":n.type==="success","bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50":n.type==="info","bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50":n.type==="danger","bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50":n.type==="warning"},"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"])},e.toDisplayString(t.name),11,ro))),128))])])])])],2)]))}}),so={key:0,class:"inline-flex","aria-label":"Breadcrumb"},io={role:"list",class:"flex items-center space-x-4 text-xs"},co={key:0},uo=["onClick"],mo={key:1,class:"flex items-center"},go=["onClick"],po={key:1,class:"flex flex-row items-center animate-pulse"},pe=e.defineComponent({__name:"uiBreadcrumbs",props:{pages:{},loading:{type:Boolean,default:!0}},emits:["breadCrumbClicked"],setup(d,{emit:a}){return(l,r)=>l.loading?(e.openBlock(),e.createElementBlock("div",po,r[0]||(r[0]=[e.createElementVNode("div",{class:"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4"},null,-1),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4"},null,-1),e.createElementVNode("div",{class:"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4"},null,-1),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5"},null,-1)]))):(e.openBlock(),e.createElementBlock("nav",so,[e.createElementVNode("ol",io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.pages,(n,o)=>(e.openBlock(),e.createElementBlock("li",{key:o},[o==0?(e.openBlock(),e.createElementBlock("div",co,[e.createElementVNode("p",{onClick:t=>l.$emit("breadCrumbClicked",n.routeName),class:"flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer"},[e.createVNode(e.unref(dt),{class:"flex-shrink-0 h-3 w-3 text-gray-400 mr-4","aria-hidden":"true"}),e.createElementVNode("span",null,e.toDisplayString(n.name),1)],8,uo)])):(e.openBlock(),e.createElementBlock("div",mo,[e.createVNode(e.unref(z),{class:"flex-shrink-0 h-3 w-3 text-gray-400","aria-hidden":"true"}),e.createElementVNode("span",{onClick:t=>l.$emit("breadCrumbClicked",n.routeName),class:e.normalizeClass(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500",{"text-indigo-600 hover:text-indigo-800":!n.current}]),"aria-current":"page"},e.toDisplayString(n.name),11,go)]))]))),128))])]))}}),fo={class:"flex items-center flex-col sm:flex-row justify-center sm:justify-start"},ho=["src"],yo={class:"font-bold text-center sm:text-left"},vo={class:"mt-1 text-xs text-center sm:text-left"},ko={key:0,class:"flex flex-wrap mt-4 justify-center sm:justify-start"},bo={key:1,class:"rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse"},fe=e.defineComponent({__name:"uiCard",props:{id:{},name:{},type:{},tags:{},logo:{},loading:{type:Boolean,default:!0}},emits:["cardSelected"],setup(d,{emit:a}){return(l,r)=>{var n;return l.loading?(e.openBlock(),e.createElementBlock("div",bo,r[1]||(r[1]=[e.createStaticVNode('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>',1)]))):(e.openBlock(),e.createElementBlock("div",{key:0,class:"rounded-lg bg-white shadow p-6 cursor-pointer",onClick:r[0]||(r[0]=o=>l.$emit("cardSelected",{id:l.id,name:l.name,type:l.type,tags:l.tags}))},[e.createElementVNode("div",fo,[e.createElementVNode("img",{class:"w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4",src:l.logo},null,8,ho),e.createElementVNode("div",null,[e.createElementVNode("h4",yo,e.toDisplayString(l.name),1),e.createElementVNode("p",vo,e.toDisplayString(l.type),1)])]),l.tags&&((n=l.tags)==null?void 0:n.length)>0?(e.openBlock(),e.createElementBlock("div",ko,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.tags,o=>(e.openBlock(),e.createBlock(B,{class:"mb-1 mr-1",key:o.name,color:o.color,loading:l.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.name),1)]),_:2},1032,["color","loading"]))),128))])):e.createCommentVNode("",!0)]))}}}),W=e.defineComponent({__name:"uiFilter",props:{items:{},position:{default:"left"},label:{},loading:{type:Boolean,default:!0}},emits:["filterSelected"],setup(d,{emit:a}){const l=a,r=d,n=t=>{o.value.forEach(i=>{i.active=i.value===t.value}),l("filterSelected",t)},o=e.ref(r.items);return(t,i)=>(e.openBlock(),e.createBlock(M,{class:"text-nowrap",loading:t.loading,onOptionSelected:i[0]||(i[0]=s=>n(s)),position:t.position,items:o.value,label:t.label},null,8,["loading","position","items","label"]))}}),wo={class:"fixed inset-0 z-10 overflow-y-auto"},xo={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},No={class:"absolute top-0 right-0 hidden pt-4 pr-4 sm:block"},Vo={class:"sm:flex sm:items-start"},Eo={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words"},Bo={class:"mt-4 text-gray-500 text-sm"},Co={key:0,class:"mt-8"},_o=["onClick"],G=e.defineComponent({__name:"uiModal",props:{title:{},actions:{},modalName:{},open:{type:Boolean,default:!1},type:{default:"default"},loading:{type:Boolean,default:!1}},emits:["modalAction"],setup(d,{emit:a}){const l=d,r=a,n=o=>{r("modalAction",{modal:l.modalName,action:o})};return(o,t)=>(e.openBlock(),e.createBlock(e.unref(p.TransitionRoot),{as:"template",show:o.open},{default:e.withCtx(()=>[e.createVNode(e.unref(p.Dialog),{as:"div",class:"relative z-10",onClose:t[1]||(t[1]=i=>n("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(p.TransitionChild),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:e.withCtx(()=>t[2]||(t[2]=[e.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1)])),_:1}),e.createElementVNode("div",wo,[e.createElementVNode("div",xo,[e.createVNode(e.unref(p.TransitionChild),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.DialogPanel),{class:"relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6"},{default:e.withCtx(()=>[e.createElementVNode("div",No,[e.createElementVNode("button",{type:"button",class:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",onClick:t[0]||(t[0]=i=>n("close"))},[t[3]||(t[3]=e.createElementVNode("span",{class:"sr-only"},"X",-1)),e.createVNode(y,{icon:e.unref(S),"aria-hidden":"true",loading:o.loading},null,8,["icon","loading"])])]),e.createElementVNode("div",Vo,[e.createElementVNode("div",{class:e.normalizeClass(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10",{"bg-red-100":o.type==="danger","bg-green-100":o.type==="success","bg-indigo-100":o.type==="default","bg-yellow-100":o.type==="warning"}])},[e.withDirectives(e.createVNode(e.unref(S),{class:"h-6 w-6 text-red-600","aria-hidden":"true"},null,512),[[e.vShow,o.type==="danger"]]),e.withDirectives(e.createVNode(e.unref(q),{class:"h-6 w-6 text-green-600","aria-hidden":"true"},null,512),[[e.vShow,o.type==="success"]]),e.withDirectives(e.createVNode(e.unref(_),{class:"h-6 w-6 text-yellow-600","aria-hidden":"true"},null,512),[[e.vShow,o.type==="warning"]]),e.withDirectives(e.createVNode(e.unref(it),{class:"h-6 w-6 text-indigo-600","aria-hidden":"true"},null,512),[[e.vShow,o.type==="default"]])],2),e.createElementVNode("div",Eo,[e.createVNode(e.unref(p.DialogTitle),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createElementVNode("div",Bo,[e.renderSlot(o.$slots,"default")]),o.actions?(e.openBlock(),e.createElementBlock("div",Co,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actions,(i,s)=>(e.openBlock(),e.createElementBlock("button",{key:s,type:"button",class:"inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm",onClick:c=>n(i.value)},e.toDisplayString(i.name),9,_o))),128))])):e.createCommentVNode("",!0)])])]),_:3})]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),$o={class:"w-full flex flex-col items-center space-y-4 sm:items-end"},So={key:0,class:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"},Do={class:"p-4"},zo={class:"flex items-start"},Mo={class:"flex-shrink-0 mt-0.5"},To={class:"ml-3 w-0 flex-1 pt-0.5"},jo={class:"font-medium text-gray-900"},Lo={class:"mt-1 text-sm text-gray-500"},Fo={class:"ml-4 flex-shrink-0 flex"},he=e.defineComponent({__name:"uiNotification",props:{type:{default:"info"},title:{},message:{},fixed:{type:Boolean,default:!0},show:{type:Boolean,default:!1}},emits:["closeNotification"],setup(d,{emit:a}){const l=d,r=e.computed(()=>l.show);return(n,o)=>(e.openBlock(),e.createElementBlock("div",{"aria-live":"assertive",class:e.normalizeClass([{fixed:n.fixed},"inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])},[e.createElementVNode("div",$o,[e.createVNode(e.Transition,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",So,[e.createElementVNode("div",Do,[e.createElementVNode("div",zo,[e.createElementVNode("div",Mo,[e.withDirectives(e.createVNode(e.unref(se),{"aria-hidden":"true",class:"h-6 w-6 text-green-400"},null,512),[[e.vShow,n.type==="success"]]),e.withDirectives(e.createVNode(e.unref(R),{"aria-hidden":"true",class:"h-6 w-6 text-red-400"},null,512),[[e.vShow,n.type==="danger"]]),e.withDirectives(e.createVNode(e.unref(_),{"aria-hidden":"true",class:"h-6 w-6 text-yellow-400"},null,512),[[e.vShow,n.type==="warning"]]),e.withDirectives(e.createVNode(e.unref(de),{"aria-hidden":"true",class:"h-6 w-6 text-indigo-600"},null,512),[[e.vShow,n.type==="info"]])]),e.createElementVNode("div",To,[e.createElementVNode("p",jo,e.toDisplayString(n.title),1),e.createElementVNode("p",Lo,e.toDisplayString(n.message),1)]),e.createElementVNode("div",Fo,[e.createElementVNode("button",{class:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",type:"button",onClick:o[0]||(o[0]=t=>n.$emit("closeNotification"))},[o[1]||(o[1]=e.createElementVNode("span",{class:"sr-only"},"Close",-1)),e.createVNode(e.unref(S),{"aria-hidden":"true",class:"h-5 w-5"})])])])])])):e.createCommentVNode("",!0)]),_:1})])],2))}}),Oo={key:0,role:"list",class:"divide-y divide-gray-100"},Ao={class:"min-w-0"},Io={class:"flex items-start gap-x-3"},Yo={class:"text-sm font-semibold leading-6 text-gray-900"},Po={class:"mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500"},qo={class:"truncate"},Ro={class:"flex flex-none items-center gap-x-4"},Ho=["href"],Uo={class:"sr-only"},Zo={key:1,class:"divide-y divide-gray-100 animate-pulse"},ye=e.defineComponent({__name:"uiTaskList",props:{tasks:{},loading:{type:Boolean,default:!0}},setup(d){return(a,l)=>a.loading?(e.openBlock(),e.createElementBlock("ul",Zo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tasks,r=>(e.openBlock(),e.createElementBlock("li",{key:r.id,class:"flex items-center justify-between gap-x-6 py-5"},l[0]||(l[0]=[e.createStaticVNode('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>',2)])))),128))])):(e.openBlock(),e.createElementBlock("ul",Oo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tasks,r=>(e.openBlock(),e.createElementBlock("li",{key:r.id,class:"flex items-center justify-between gap-x-6 py-5"},[e.createElementVNode("div",Ao,[e.createElementVNode("div",Io,[e.createElementVNode("p",Yo,e.toDisplayString(r.name),1),e.createElementVNode("p",{class:e.normalizeClass([{"text-green-700 bg-green-50 ring-green-600/20":r.status==="Complete","text-gray-600 bg-gray-50 ring-gray-500/10":r.status==="In progress","text-yellow-800 bg-yellow-50 ring-yellow-600/20":r.status==="Incomplete"},"rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"])},e.toDisplayString(r.statusLiteral),3)]),e.createElementVNode("div",Po,[e.createElementVNode("p",qo,e.toDisplayString(r.description),1)])]),e.createElementVNode("div",Ro,[e.createElementVNode("a",{href:r.href,class:"hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"},[e.createTextVNode(e.toDisplayString(r.action),1),e.createElementVNode("span",Uo,", "+e.toDisplayString(r.name),1)],8,Ho)])]))),128))]))}});function Jo(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var F={exports:{}},Wo=F.exports,K;function Go(){return K||(K=1,function(d,a){(function(l,r){d.exports=r(k)})(Wo,function(l){function r(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var n=r(l),o={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(t){return t+"º"}};return n.default.locale(o,null,!0),o})}(F)),F.exports}Go();var O={exports:{}},Qo=O.exports,X;function Ko(){return X||(X=1,function(d,a){(function(l,r){d.exports=r(k)})(Qo,function(l){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var n=r(l),o={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function t(s,c,u){var m=o[u];return Array.isArray(m)&&(m=m[c?0:1]),m.replace("%d",s)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(s){return s+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};return n.default.locale(i,null,!0),i})}(O)),O.exports}Ko();var A={exports:{}},Xo=A.exports,ee;function el(){return ee||(ee=1,function(d,a){(function(l,r){d.exports=r()})(Xo,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var r=["th","st","nd","rd"],n=l%100;return"["+l+(r[(n-20)%10]||r[n]||r[0])+"]"}}})}(A)),A.exports}el();var I={exports:{}},tl=I.exports,te;function ol(){return te||(te=1,function(d,a){(function(l,r){d.exports=r(k)})(tl,function(l){function r(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var n=r(l),o={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){return""+t+(t===1?"er":"")}};return n.default.locale(o,null,!0),o})}(I)),I.exports}ol();const T=(d,a)=>{const l=d.__vccOpts||d;for(const[r,n]of a)l[r]=n;return l},ll={name:"dateSelector",components:{ChevronLeftIcon:ie,ChevronRightIcon:z},computed:{currentDate(){return k(this.selectedDate).locale("es")},today(){return k(new Date).locale("es")},formatedDate(){return k(this.currentDate).locale("es").format("DD MMM YYYY")}},props:{selectedDate:{type:Object,required:!0}},methods:{selectDate(d,a){let l;if(a==="previous"){if(this.currentDate<=this.today)return;d==="day"&&(l=k(this.currentDate).subtract(1,"day")),d==="month"&&(l=k(this.currentDate).subtract(1,"month")),d==="year"&&(l=k(this.currentDate).subtract(1,"year")),l<=this.today&&(l=this.currentDate=this.today)}a==="next"&&(d==="day"&&(l=k(this.selectedDate).add(1,"day")),d==="month"&&(l=k(this.selectedDate).add(1,"month")),d==="year"&&(l=k(this.selectedDate).add(1,"year"))),this.$emit("dateSelected",l)}}},nl={class:"dateSelector flex items-center text-white flex-row"},rl={class:"pagination flex items-center my-1 md:my-0"},al={class:"date mx-4 font-bold text-center text-indigo-600 select-none uppercase"},sl={class:"pagination flex items-center my-1 sm:my-0"};function il(d,a,l,r,n,o){const t=e.resolveComponent("ChevronLeftIcon"),i=e.resolveComponent("ChevronRightIcon");return e.openBlock(),e.createElementBlock("div",nl,[e.createElementVNode("div",rl,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 cursor-pointer":o.currentDate>o.today,"bg-indigo-300":o.currentDate<=o.today},"previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),onClick:a[0]||(a[0]=s=>o.selectDate("year","previous"))},[e.createVNode(t,{class:"h-4"}),e.createVNode(t,{class:"h-4 -ml-3"}),e.createVNode(t,{class:"h-4 -ml-3"})],2),e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 cursor-pointer":o.currentDate>o.today,"bg-indigo-300":o.currentDate<=o.today},"previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),onClick:a[1]||(a[1]=s=>o.selectDate("month","previous"))},[e.createVNode(t,{class:"h-4"}),e.createVNode(t,{class:"h-4 -ml-3"})],2),e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 cursor-pointer":o.currentDate>o.today,"bg-indigo-300":o.currentDate<=o.today},"previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),onClick:a[2]||(a[2]=s=>o.selectDate("day","previous"))},[e.createVNode(t,{class:"h-4"})],2)]),e.createElementVNode("div",al,e.toDisplayString(o.formatedDate),1),e.createElementVNode("div",sl,[e.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:a[3]||(a[3]=s=>o.selectDate("day","next"))},[e.createVNode(i,{class:"h-4"})]),e.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:a[4]||(a[4]=s=>o.selectDate("month","next"))},[e.createVNode(i,{class:"h-4"}),e.createVNode(i,{class:"h-4 -ml-3"})]),e.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:a[5]||(a[5]=s=>o.selectDate("year","next"))},[e.createVNode(i,{class:"h-4"}),e.createVNode(i,{class:"h-4 -ml-3"}),e.createVNode(i,{class:"h-4 -ml-3"})])])])}const dl=T(ll,[["render",il]]),cl={name:"SkeletonTable"},ul={class:"px-4 sm:px-6 lg:px-8 animate-pulse"},ml={class:"flow-root"},gl={class:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},pl={class:"inline-block min-w-full py-2 align-middle px-1"},fl={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},hl={class:"min-w-full divide-y divide-gray-300"},yl={class:"divide-y divide-gray-200 bg-white"};function vl(d,a,l,r,n,o){return e.openBlock(),e.createElementBlock("div",ul,[e.createElementVNode("div",ml,[e.createElementVNode("div",gl,[e.createElementVNode("div",pl,[e.createElementVNode("div",fl,[e.createElementVNode("table",hl,[a[1]||(a[1]=e.createElementVNode("thead",{class:"bg-gray-50"},[e.createElementVNode("tr",null,[e.createElementVNode("th",{scope:"col",class:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),e.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),e.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),e.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),e.createElementVNode("th",{scope:"col",class:"relative py-3.5 pl-3 pr-4 sm:pr-6"},[e.createElementVNode("span",{class:"sr-only"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})])])])],-1)),e.createElementVNode("tbody",yl,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,t=>e.createElementVNode("tr",{key:t},a[0]||(a[0]=[e.createElementVNode("td",{class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),e.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),e.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),e.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),e.createElementVNode("td",{class:"relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6"},[e.createElementVNode("a",{href:"#",class:"text-indigo-600 hover:text-indigo-900"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"}),e.createElementVNode("span",{class:"sr-only"},[e.createTextVNode(", {"),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})])])],-1)]))),64))])])])])])])])}const ve=T(cl,[["render",vl]]);var Y={exports:{}},kl=Y.exports,oe;function bl(){return oe||(oe=1,function(d,a){(function(l,r){d.exports=r()})(kl,function(){return function(l,r,n){r.prototype.isToday=function(){var o="YYYY-MM-DD",t=n();return this.format(o)===t.format(o)}}})}(Y)),Y.exports}var wl=bl();const xl=Jo(wl),Nl={name:"calendarDay",props:{day:Object},computed:{currentDay(){return k.extend(xl),{dayName:k(this.day).locale("es").format("ddd"),day:k(this.day).locale("es").format("DD"),month:k(this.day).locale("es").format("MMM."),isWeekend:k(this.day).format("d")==6||k(this.day).format("d")==0,isToday:k(this.day).isToday()}}}},Vl={class:"text-xs"},El={class:"font-bold text-lg"},Bl={class:"text-xs font-medium"};function Cl(d,a,l,r,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["day select-none text-center",{"bg-indigo-200 text-white":o.currentDay.isWeekend,"bg-[#0ff] text-white":o.currentDay.isToday}])},[e.createElementVNode("p",Vl,e.toDisplayString(o.currentDay.dayName),1),e.createElementVNode("p",El,e.toDisplayString(o.currentDay.day),1),e.createElementVNode("p",Bl,e.toDisplayString(o.currentDay.month),1)],2)}const _l=T(Nl,[["render",Cl]]),$l={name:"dayPrice",props:{currency:String,price:Object,basePrice:Number,isBasePrice:{type:Boolean,default:!1}},computed:{currentDay(){return{isWeekend:k(this.price.date).format("d")==6||k(this.price.date).format("d")==0,price:this.price.price}}}},Sl={class:"priceDay"};function Dl(d,a,l,r,n,o){return e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-200 text-white":o.currentDay.isWeekend,"bg-green-300 text-white":l.price.price>l.basePrice,"bg-yellow-300 text-white":l.price.price<l.basePrice},"select-none text-center rounded-lg p-1"])},e.toDisplayString(o.currentDay.price)+e.toDisplayString(l.currency),3)])}const L=T($l,[["render",Dl]]),zl={key:0,class:"px-4 sm:px-6 lg:px-8"},Ml={class:"flow-root"},Tl={class:"overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},jl={class:"inline-block min-w-full align-middle"},Ll={class:"min-w-full text-sm"},Fl={class:"bg-white"},Ol={colspan:"6",scope:"colgroup",class:"bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3"},Al={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},Il={key:0},Yl={colspan:"6",class:"pl-4"},Pl={key:1},ql={colspan:"6",class:"pl-4"},Rl={key:2},Hl={colspan:"6",class:"pl-4"},Ul={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative"},Zl={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10"},Jl=["onClick"],Wl={colspan:"2",scope:"colgroup",class:"relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900"},Gl=["checked","indeterminate"],Ql={class:"pl-6"},Kl={colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},Xl={colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},en={colspan:"2",class:"relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},tn={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},on=["value"],ln={class:"pl-6"},nn={colspan:"2",class:"pl-4"},rn={colspan:"2",class:"pl-4"},ke=e.defineComponent({__name:"uiPriceCalendar",props:{loading:{type:Boolean},today:{},type:{},currency:{},category:{},rooms:{},actions:{},literals:{}},emits:["dateChanged","changeCategoryBulkPrices","changeCategorySelectionPrice","changeCategoryUpgradePrice","changeRoomPrice","tableAction"],setup(d,{emit:a}){const l=d,r=a,n=e.ref(new Date),o=e.ref(l.today),t=e.ref([]);e.watch(()=>l.today,g=>{o.value=g});const i=e.computed(()=>{let g=[];for(let N=0;N<14;N++)g.push(k(o.value).add(N,"day"));return g}),s=e.computed(()=>t.value.length>0&&t.value.length<l.rooms.length),c=g=>{k(g).isBefore(n.value)||(o.value=g,r("dateChanged",o.value))},u=g=>{let N=l.category.selectionPrices.find(x=>k(x.date).isSame(g.date));return N?N.price:g.price},m=g=>{t.value=g.target.checked?l.rooms.map(N=>N.id):[]},v=()=>r("changeCategoryBulkPrices"),b=g=>r("changeCategorySelectionPrice",g),f=g=>r("changeCategoryUpgradePrice",g),h=g=>r("tableAction",g),V=(g,N,x)=>r("changeRoomPrice",{price:g,roomId:N,roomName:x});return(g,N)=>{var x,j;return g.loading?(e.openBlock(),e.createBlock(ve,{key:1})):(e.openBlock(),e.createElementBlock("div",zl,[e.createElementVNode("div",Ml,[e.createElementVNode("div",Tl,[e.createElementVNode("div",jl,[e.createElementVNode("table",Ll,[e.createElementVNode("tbody",Fl,[e.createElementVNode("tr",null,[e.createElementVNode("th",Ol,[e.createVNode(dl,{selectedDate:o.value,onDateSelected:N[0]||(N[0]=w=>c(w))},null,8,["selectedDate"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(w,E)=>(e.openBlock(),e.createElementBlock("th",{scope:"col",key:E,class:"text-sm font-semibold text-gray-900 p-0"},[e.createVNode(_l,{class:"border-l border-gray-200 px-6 py-3",day:w},null,8,["day"])]))),128))]),e.createElementVNode("tr",null,[e.createElementVNode("th",Al,[e.createElementVNode("span",null,e.toDisplayString(g.literals.category)+" "+e.toDisplayString(g.category.name),1),e.createVNode($,{loading:g.loading,class:"ml-4",size:"small",onClick:v},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.literals.changeInBulk),1)]),_:1},8,["loading"])])]),g.type==="discounts"?(e.openBlock(),e.createElementBlock("tr",Il,[e.createElementVNode("td",Yl,e.toDisplayString(g.literals.pricesDiscount),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.category.selectionPrices,(w,E)=>(e.openBlock(),e.createElementBlock("td",{key:E,class:"p-0"},[e.createVNode(L,{onClick:D=>b(w),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:w,currency:g.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):e.createCommentVNode("",!0),g.type==="prices"?(e.openBlock(),e.createElementBlock("tr",Pl,[e.createElementVNode("td",ql,e.toDisplayString(g.literals.pricesSelection),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.category.selectionPrices,(w,E)=>(e.openBlock(),e.createElementBlock("td",{key:E,class:"p-0"},[e.createVNode(L,{onClick:D=>b(w),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:w,currency:g.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):e.createCommentVNode("",!0),g.type==="prices"?(e.openBlock(),e.createElementBlock("tr",Rl,[e.createElementVNode("td",Hl,e.toDisplayString(g.literals.pricesUpgrade),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.category.upgradePrices,(w,E)=>(e.openBlock(),e.createElementBlock("td",{key:E,class:"p-0"},[e.createVNode(L,{onClick:D=>f(w),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",price:w,currency:g.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("tr",null,[e.createElementVNode("th",Ul,[((x=t.value)==null?void 0:x.length)>0&&((j=g.actions)==null?void 0:j.length)>0?(e.openBlock(),e.createElementBlock("div",Zl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.actions,(w,E)=>(e.openBlock(),e.createElementBlock("button",{onClick:D=>h({action:w.id,items:t.value}),key:E,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"},e.toDisplayString(w.name),9,Jl))),128))])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(g.literals.pricesSelection),1)])]),e.createElementVNode("tr",null,[e.createElementVNode("th",Wl,[e.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",checked:s.value||t.value.length===g.rooms.length,indeterminate:s.value,onChange:m},null,40,Gl),e.createElementVNode("span",Ql,e.toDisplayString(g.literals.room),1)]),e.createElementVNode("th",Kl,e.toDisplayString(g.literals.building),1),e.createElementVNode("th",Xl,e.toDisplayString(g.literals.floor),1),N[2]||(N[2]=e.createElementVNode("th",{colspan:"14",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},null,-1))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.rooms,w=>(e.openBlock(),e.createElementBlock("tr",{key:w.name,class:e.normalizeClass([{"even:bg-gray-100":g.type==="prices","odd:bg-gray-100":g.type==="discounts"}])},[e.createElementVNode("td",en,[t.value.length>0?(e.openBlock(),e.createElementBlock("div",tn)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:w.name,"onUpdate:modelValue":N[1]||(N[1]=E=>t.value=E)},null,8,on),[[e.vModelCheckbox,t.value]]),e.createElementVNode("span",ln,e.toDisplayString(w.name),1)]),e.createElementVNode("td",nn,e.toDisplayString(w.building),1),e.createElementVNode("td",rn,e.toDisplayString(w.floor),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.selectionPrices,(E,D)=>(e.openBlock(),e.createElementBlock("td",{class:"p-0",key:D},[e.createVNode(L,{onClick:ki=>V(E,w.id,w.name),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",price:E,currency:g.currency.symbol,basePrice:u(E)},null,8,["onClick","price","currency","basePrice"])]))),128))],2))),128))])])])])])]))}}}),an={class:"chart-header flex flex-row items-center w-full justify-between"},sn={class:"text-sm font-medium text-gray-500 truncate mr-8"},dn={key:0,class:"flex items-center gap-x-2 grow"},cn={class:"self-center ml-2"},un={class:"self-center ml-2"},mn={class:"self-center ml-2"},gn={class:"hidden sm:flex items-center"},pn={class:"w-1/2 min-w-0 flex-1"},fn=["max"],hn={class:"min-w-0 flex-1"},yn=["max"],vn={class:"chart-content relative"},be=e.defineComponent({__name:"uiChart",props:{labels:{},dates:{},title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{default:"area"},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection","maximizeChart"],setup(d,{emit:a}){const l=a,r=e.ref(new Date().toISOString().slice(0,new Date().toISOString().lastIndexOf(":"))),n=d;let o=e.reactive(n.dates||{from:"",to:r});e.watch(()=>n.dates,f=>{f&&(o=f)});let i={chart:{toolbar:{show:!1},zoom:{enabled:!1}},colors:function(){return n.isNps?[function({value:f,seriesIndex:h,dataPointIndex:V,w:g}){if(V<=5)return"#F87171";if(V>5&&V<=7)return"#eab308";if(V>=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}}};n.annotations&&(i.annotations={yaxis:[{y:n.annotations.high,borderColor:"#4f46e5",label:{borderColor:"#4f46e5",style:{color:"#fff",background:"#4f46e5"},text:n.annotations.text}}]}),n.type==="area"&&(i.tooltip={intersect:!0,shared:!1});const s=()=>(i.chart.stacked=n.stacked,{...i,...n.options,plotOptions:{bar:{horizontal:n.horizontal}}}),c=()=>{o.from!==""&&o.to!==""&&k(o.from).isBefore(k(o.to))&&l("selectedRange",{range:o,chartId:n.id})},u=e.computed(()=>n.series),m=e.computed(()=>s()),v=()=>l("chartUpdated"),b=(f,h,V)=>{l("dataPointSelection",{id:n.id,chartContext:h,config:V,event:f})};return(f,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+f.height+"px]","card chart apex-chart p-4 bg-white shadow rounded-lg overflow-hidden flex grow"])},[e.createElementVNode("div",an,[e.createElementVNode("div",sn,e.toDisplayString(f.title),1),f.isNps&&f.npsLiterals?(e.openBlock(),e.createElementBlock("div",dn,[e.createVNode(B,{size:"small",color:"red",loading:!1},{default:e.withCtx(()=>[e.createVNode(y,{icon:e.unref(at),loading:!1,color:"red"},null,8,["icon"]),e.createElementVNode("span",cn,e.toDisplayString(f.npsLiterals.unhappy),1)]),_:1}),e.createVNode(B,{size:"small",color:"yellow",loading:!1},{default:e.withCtx(()=>[e.createVNode(y,{icon:e.unref(rt),loading:!1,color:"yellow"},null,8,["icon"]),e.createElementVNode("span",un,e.toDisplayString(f.npsLiterals.neutral),1)]),_:1}),e.createVNode(B,{size:"small",color:"green",loading:!1},{default:e.withCtx(()=>[e.createVNode(y,{icon:e.unref(st),loading:!1,color:"green"},null,8,["icon"]),e.createElementVNode("span",mn,e.toDisplayString(f.npsLiterals.happy),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",gn,[e.createElementVNode("div",pn,[e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":h[0]||(h[0]=V=>e.unref(o).from=V),max:r.value.toString(),onChange:c,name:"from",id:"from",class:"text-xs relative block w-full rounded rounded-r-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"},null,40,fn),[[e.vModelText,e.unref(o).from]])]),e.createElementVNode("div",hn,[e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":h[1]||(h[1]=V=>e.unref(o).to=V),max:r.value.toString(),onChange:c,name:"to",id:"to",class:"text-xs relative block w-full -mr-2 rounded rounded-l-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"},null,40,yn),[[e.vModelText,e.unref(o).to]])]),e.createVNode(y,{class:"ml-4 cursor-pointer",size:"big",loading:f.loading,icon:e.unref(re),onClick:h[2]||(h[2]=V=>f.$emit("maximizeChart",f.id))},null,8,["loading","icon"])])]),e.withDirectives(e.createElementVNode("div",vn,[e.createVNode(e.unref(U),{class:"chart",type:f.type,series:u.value,height:f.height,options:m.value,onUpdated:v,onMounted:v,onDataPointSelection:b},null,8,["type","series","height","options"])],512),[[e.vShow,!f.empty]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+f.height+"px]","w-full flex items-center justify-center flex-col"])},[e.createVNode(y,{icon:e.unref(_),color:"gray",loading:!1,size:"massive"},null,8,["icon"]),h[3]||(h[3]=e.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data for this time frame",-1))],2),[[e.vShow,f.empty]])],2),[[e.vShow,!f.loading]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+f.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"])},h[4]||(h[4]=[e.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[e.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),e.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),e.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1)]),2),[[e.vShow,f.loading]])],64))}}),kn={name:"uiFooter"},bn={class:"bg-white"};function wn(d,a,l,r,n,o){return e.openBlock(),e.createElementBlock("footer",bn,a[0]||(a[0]=[e.createElementVNode("div",{class:"mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8"},[e.createElementVNode("div",{class:"mt-8 md:mt-0 md:order-1"},[e.createElementVNode("p",{class:"text-center text-base text-gray-400"},"© Made by Hotelinking.")])],-1)]))}const we=T(kn,[["render",wn]]),xe=e.defineComponent({__name:"uiLoadingScreen",props:{title:{},message:{},fixed:{type:Boolean,default:!0}},setup(d){return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{fixed:a.fixed},"load-screen h-full w-full top-0 left-0 z-[100] flex flex-col items-center justify-center bg-gray-50"])},[l[0]||(l[0]=e.createElementVNode("div",{class:"spinner h-12 w-12 mb-6"},[e.createElementVNode("img",{src:"https://images.hotelinking.com/ui/loader.gif",alt:"loading animation"})],-1)),e.withDirectives(e.createElementVNode("h2",{class:"text-xs font-bold text-center uppercase mb-2"},e.toDisplayString(a.title),513),[[e.vShow,a.title]]),e.withDirectives(e.createElementVNode("p",{class:"text-xs text-center uppercase md:w-1/4"},e.toDisplayString(a.message),513),[[e.vShow,a.message]])],2))}}),xn={key:0,class:"py-6 flex items-center justify-between"},Nn={class:"flex-1 flex justify-between sm:hidden"},Vn={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"},En={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"},Bn={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},Cn={class:"text-sm text-gray-700"},_n={class:"font-bold mx-1"},$n={class:"font-bold mx-1"},Sn={class:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination"},Dn={class:"sr-only"},zn=["onClick"],Mn={class:"sr-only"},Tn={key:1,class:"py-6 flex flex-row justify-between items-center animate-pulse"},Ne=e.defineComponent({__name:"uiPagination",props:{current:{},total:{},loading:{type:Boolean,default:!0}},emits:["changePage"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(3),o=e.computed(()=>Math.max(1,Number(r.current)-Number(n.value))),t=e.computed(()=>Math.min(Number(r.current)+Number(n.value),Number(r.total))),i=e.computed(()=>{let s=[];for(let c=Number(o.value);c<=Number(t.value);c++)s.push(c);return s});return(s,c)=>s.loading?(e.openBlock(),e.createElementBlock("div",Tn,c[2]||(c[2]=[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5"},null,-1),e.createElementVNode("div",{class:"h-10 w-32 bg-gray-200 rounded dark:bg-gray-300"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",xn,[e.createElementVNode("div",Nn,[e.createElementVNode("a",Vn,[e.renderSlot(s.$slots,"previous")]),e.createElementVNode("a",En,[e.renderSlot(s.$slots,"next")])]),e.createElementVNode("div",Bn,[e.createElementVNode("div",null,[e.createElementVNode("p",Cn,[e.renderSlot(s.$slots,"showing"),e.createElementVNode("span",_n,e.toDisplayString(s.current),1),e.renderSlot(s.$slots,"of"),e.createElementVNode("span",$n,e.toDisplayString(s.total),1)])]),e.createElementVNode("div",null,[e.createElementVNode("nav",Sn,[e.withDirectives(e.createElementVNode("button",{ref:"test-first-button",onClick:c[0]||(c[0]=u=>l("changePage",s.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"},[e.createElementVNode("span",Dn,[e.renderSlot(s.$slots,"previous")]),e.createVNode(e.unref(ie),{class:"h-5 w-5","aria-hidden":"true"})],512),[[e.vShow,s.current!==1]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,u=>(e.openBlock(),e.createElementBlock("button",{onClick:m=>l("changePage",u),key:u,"aria-current":"page",class:e.normalizeClass([[u===s.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"])},e.toDisplayString(u),11,zn))),128)),e.withDirectives(e.createElementVNode("button",{ref:"test-last-button",onClick:c[1]||(c[1]=u=>l("changePage",s.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"},[e.createElementVNode("span",Mn,[e.renderSlot(s.$slots,"next")]),e.createVNode(e.unref(z),{class:"h-5 w-5","aria-hidden":"true"})],512),[[e.vShow,s.current!==s.total]])])])])]))}}),jn={class:"hidden md:flex md:flex-col sticky md:inset-y-0"},Ln={class:"flex flex-col flex-grow overflow-y-auto"},Fn={class:"grow flex flex-col"},On={class:"flex-1 space-y-1","aria-label":"Sidebar"},An={key:0},In=["onClick"],Yn={key:1,class:"text-left"},Pn={key:1,class:"flex-1 text-left"},qn={key:2,class:"flex-1"},Rn={key:0,class:"align-left"},Hn={key:1,class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},Un={class:"h-12 flex flex-row items-center"},Ve=e.defineComponent({__name:"uiSidebar",props:{navigation:{},filterNavigation:{},isFilterNavigation:{type:Boolean},loading:{type:Boolean,default:!0},logo:{}},emits:["sideBarClick"],setup(d,{emit:a}){const l=a;return(r,n)=>(e.openBlock(),e.createElementBlock("div",jn,[e.createElementVNode("div",Ln,[e.createElementVNode("div",Fn,[e.createElementVNode("nav",On,[r.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(5,o=>e.createElementVNode("div",Un,n[1]||(n[1]=[e.createElementVNode("div",{class:"w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4"},null,-1),e.createElementVNode("div",{class:"h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow"},null,-1)]))),64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.navigation,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.name},[o.children?(e.openBlock(),e.createBlock(e.unref(p.Disclosure),{key:1,as:"div",class:"space-y-1"},{default:e.withCtx(({open:t})=>[e.createVNode(e.unref(p.DisclosureButton),{class:e.normalizeClass([o.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:e.withCtx(()=>[o.icon?(e.openBlock(),e.createBlock(y,{key:0,loading:r.loading,icon:o.icon,class:e.normalizeClass([o.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"])):e.createCommentVNode("",!0),r.loading?(e.openBlock(),e.createElementBlock("div",qn,n[0]||(n[0]=[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},null,-1)]))):(e.openBlock(),e.createElementBlock("span",Pn,e.toDisplayString(o.name),1)),e.createVNode(e.unref(z),{class:e.normalizeClass([t?"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"]),e.createVNode(e.unref(p.DisclosurePanel),{class:"space-y-1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,i=>(e.openBlock(),e.createBlock(e.unref(p.DisclosureButton),{onClick:s=>l("sideBarClick",i.id),key:i.name,class:e.normalizeClass([i.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:e.withCtx(()=>[r.loading?(e.openBlock(),e.createElementBlock("div",Hn)):(e.openBlock(),e.createElementBlock("span",Rn,e.toDisplayString(i.name),1))]),_:2},1032,["onClick","class"]))),128))]),_:2},1024)]),_:2},1024)):(e.openBlock(),e.createElementBlock("div",An,[e.createElementVNode("button",{onClick:t=>l("sideBarClick",o.id),class:e.normalizeClass([o.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"])},[o.icon?(e.openBlock(),e.createBlock(y,{key:0,loading:r.loading,icon:o.icon,class:e.normalizeClass([o.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"])):e.createCommentVNode("",!0),r.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Yn,e.toDisplayString(o.name),1))],10,In)]))],64))),128))])])])]))}}),Zn={key:0},Jn={class:"ml-16 text-sm font-medium text-gray-500 truncate"},Wn={class:"ml-16 flex items-baseline pb-5"},Gn={class:"text-2xl font-semibold text-gray-900"},Qn={key:0,class:"text-black ml-2 flex items-baseline text-sm font-semibold"},Kn={class:"absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6"},Xn={class:"text-sm"},er={key:1},tr={class:"relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6"},or={class:"absolute bg-gray-200 rounded-md p-3 animate-pulse"},Q=e.defineComponent({__name:"uiStats",props:{item:{},loading:{type:Boolean,default:!0}},emits:["statClick"],setup(d,{emit:a}){return(l,r)=>l.loading?(e.openBlock(),e.createElementBlock("div",er,[e.createElementVNode("div",tr,[e.createElementVNode("dt",null,[e.createElementVNode("div",or,[e.createVNode(y,{loading:l.loading,icon:l.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true"},null,8,["loading","icon"])]),r[1]||(r[1]=e.createElementVNode("div",{class:"ml-16"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse"})],-1)),r[2]||(r[2]=e.createElementVNode("div",{class:"ml-16"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 animate-pulse"})],-1))])])])):(e.openBlock(),e.createElementBlock("div",Zn,[e.createElementVNode("div",{class:e.normalizeClass(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full",{"pb-12":l.item.showFooter}])},[e.createElementVNode("dt",null,[e.createElementVNode("div",{class:e.normalizeClass(["absolute rounded-md p-3",{"bg-indigo-500":!l.item.color,"bg-green-500":l.item.color==="green","bg-red-500":l.item.color==="red","bg-yellow-500":l.item.color==="yellow","bg-cyan-300":l.item.color==="secondary"}])},[e.createVNode(y,{icon:l.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true",loading:l.loading},null,8,["icon","loading"])],2),e.createElementVNode("p",Jn,e.toDisplayString(l.item.name),1)]),e.createElementVNode("dd",Wn,[e.createElementVNode("p",Gn,e.toDisplayString(l.item.stat),1),l.item.explanation?(e.openBlock(),e.createElementBlock("p",Qn,e.toDisplayString(l.item.explanation),1)):e.createCommentVNode("",!0),l.item.changeType?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass([{"text-green-600":l.item.changeType==="increase","text-red-600":l.item.changeType==="decrease","text-black":l.item.changeType==="neutral"},"ml-2 flex items-baseline text-sm font-semibold"])},[l.item.changeType==="increase"?(e.openBlock(),e.createBlock(e.unref(tt),{key:0,class:"self-center flex-shrink-0 h-3 w-3 text-green-500","aria-hidden":"true"})):e.createCommentVNode("",!0),l.item.changeType==="decrease"?(e.openBlock(),e.createBlock(e.unref(Xe),{key:1,class:"self-center flex-shrink-0 h-3 w-3 text-red-500","aria-hidden":"true"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.item.change),1)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",Kn,[e.createElementVNode("div",Xn,[e.createElementVNode("span",{onClick:r[0]||(r[0]=n=>l.$emit("statClick",l.item.id)),class:"font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer"},e.toDisplayString(l.item.actionText),1)])],512),[[e.vShow,l.item.showFooter]])])],2)]))}}),lr={key:0,class:"overflow-hidden bg-white shadow sm:rounded-lg"},nr={class:"px-4 py-5 sm:px-6"},rr={class:"text-lg font-medium leading-6 text-gray-900"},ar={class:"mt-1 max-w-2xl text-sm text-gray-500"},sr={class:"border-t border-gray-200"},ir={class:"text-sm font-medium text-gray-500"},dr={key:0,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},cr=["onClick"],ur={key:2,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},mr={key:1,class:"overflow-hidden bg-white shadow sm:rounded-lg"},gr={class:"border-t border-gray-200"},Ee=e.defineComponent({__name:"uiStripedCard",props:{title:{},subtitle:{},items:{},loading:{type:Boolean,default:!0}},emits:["itemClicked"],setup(d){return(a,l)=>a.loading?(e.openBlock(),e.createElementBlock("div",mr,[l[1]||(l[1]=e.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)),e.createElementVNode("div",gr,[e.createElementVNode("dl",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,r=>e.createElementVNode("div",{key:r,class:e.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[r%2===0?"bg-gray-50":"bg-white"]])},l[0]||(l[0]=[e.createElementVNode("dt",{class:"text-sm font-medium text-gray-500"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"})],-1),e.createElementVNode("dd",{class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"})],-1)]),2)),64))])])])):(e.openBlock(),e.createElementBlock("div",lr,[e.createElementVNode("div",nr,[e.createElementVNode("h3",rr,e.toDisplayString(a.title),1),e.createElementVNode("p",ar,e.toDisplayString(a.subtitle),1)]),e.createElementVNode("div",sr,[e.createElementVNode("dl",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[n%2===0?"bg-gray-50":"bg-white"]])},[e.createElementVNode("dt",ir,e.toDisplayString(r.title),1),r.type==="tags"?(e.openBlock(),e.createElementBlock("dd",dr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tags,(o,t)=>(e.openBlock(),e.createBlock(B,{loading:a.loading,key:t,color:o.color,class:"mr-2 mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.text),1)]),_:2},1032,["loading","color"]))),128))])):r.type==="link"?(e.openBlock(),e.createElementBlock("dd",{key:1,class:"mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer",onClick:o=>a.$emit("itemClicked",r.emits)},e.toDisplayString(r.text),9,cr)):(e.openBlock(),e.createElementBlock("dd",ur,e.toDisplayString(r.text),1))],2))),128))])])]))}}),pr={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"},fr={class:"ml-2"},hr={__name:"tooltip",props:{tip:{type:String,required:!0}},setup(d){return(a,l)=>(e.openBlock(),e.createElementBlock("div",pr,[l[0]||(l[0]=e.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"},[e.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)),e.createElementVNode("div",null,[e.createVNode(y,{icon:e.unref(ut),loading:!1,color:"white",size:"big"},null,8,["icon"])]),e.createElementVNode("span",fr,e.toDisplayString(d.tip),1)]))}},yr={key:0},vr={class:"flex flex-col"},kr={class:"-my-2 overflow-x-auto"},br={class:"inline-block min-w-full py-2 align-middle px-1"},wr={class:"relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},xr={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"},Nr=["onClick"],Vr={class:"min-w-full table-fixed divide-y divide-gray-300"},Er={class:"bg-gray-50"},Br=["checked","indeterminate"],Cr=["onMouseover","onMouseleave"],_r=["onClick"],$r={key:2,class:"group flex items-center uppercase text-xs"},Sr={class:"divide-y divide-gray-200 bg-white"},Dr={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},zr=["value"],Mr=["onClick"],Tr=["href"],jr={key:3},Be=e.defineComponent({__name:"uiTable",props:{resetSelected:{type:Boolean,default:!1},orderedBy:{},orderDirection:{default:"desc"},loading:{type:Boolean,default:!0},header:{},items:{},actions:{}},emits:["tableAction","orderBy","customEmit","selectedItemsDeleted"],setup(d,{emit:a}){let l=e.ref([]),r=e.ref(""),n=e.ref(!1);const o=a,t=d,i=e.computed(()=>l.value.length>0&&l.value.length<t.items.length),s=(m,v)=>{r.value!==m&&v&&(r.value=m),v||(r.value=void 0)},c=m=>{l.value=m.target.checked?t.items.map(v=>v.id):[]},u=m=>{o("customEmit",m)};return e.watch(()=>t.resetSelected,m=>{n.value=m,m&&n.value&&(l.value=[],n.value=!m,o("selectedItemsDeleted"))}),(m,v)=>{var b,f;return m.loading?(e.openBlock(),e.createBlock(ve,{key:1})):(e.openBlock(),e.createElementBlock("div",yr,[e.createElementVNode("div",vr,[e.createElementVNode("div",kr,[e.createElementVNode("div",br,[e.createElementVNode("div",wr,[((b=e.unref(l))==null?void 0:b.length)>0&&((f=m.actions)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",xr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.actions,(h,V)=>(e.openBlock(),e.createElementBlock("button",{onClick:g=>m.$emit("tableAction",{action:h.id,items:e.unref(l)}),key:V,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"},e.toDisplayString(h.name),9,Nr))),128))])):e.createCommentVNode("",!0),e.createElementVNode("table",Vr,[e.createElementVNode("thead",Er,[e.createElementVNode("tr",null,[e.createElementVNode("th",{scope:"col",class:e.normalizeClass([m.actions?"px-6 sm:px-8":"px-3","relative"])},[m.actions?(e.openBlock(),e.createElementBlock("input",{key:0,checked:i.value||e.unref(l).length===m.items.length,indeterminate:i.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:c},null,40,Br)):e.createCommentVNode("",!0)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.header,(h,V)=>(e.openBlock(),e.createElementBlock("th",{key:V,class:"py-3.5 pr-3 text-left font-semibold text-gray-900 relative",scope:"col",onMouseover:g=>s(h.name,!0),onMouseleave:g=>s(h.name,!1)},[h.tooltip?e.withDirectives((e.openBlock(),e.createBlock(hr,{key:0,tip:h.tooltip},null,8,["tip"])),[[e.vShow,e.unref(r)===h.name]]):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("button",{key:1,class:"group flex items-center uppercase text-xs relative text-nowrap",onClick:g=>o("orderBy",{value:h.value,orderDirection:m.orderDirection==="asc"?"desc":"asc"})},[e.createElementVNode("span",null,e.toDisplayString(h.name),1),e.createElementVNode("span",{class:e.normalizeClass([[h.value===m.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"])},[e.createVNode(y,{icon:m.orderDirection==="asc"?e.unref(P):e.unref(nt),loading:m.loading,color:h.value===m.orderedBy?"white":"primary"},null,8,["icon","loading","color"])],2)],8,_r)):(e.openBlock(),e.createElementBlock("p",$r,[e.createElementVNode("span",null,e.toDisplayString(h.name),1)]))],40,Cr))),128))])]),e.createElementVNode("tbody",Sr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.items,(h,V)=>{var g,N;return e.openBlock(),e.createElementBlock("tr",{key:h.id,class:e.normalizeClass([e.unref(l).includes(h.id)&&"bg-gray-50",V%2==0?void 0:"bg-gray-50"])},[e.createElementVNode("td",{class:e.normalizeClass([((g=m.actions)==null?void 0:g.length)>0?"w-2":"w-0","relative"])},[e.unref(l).includes(h.id)?(e.openBlock(),e.createElementBlock("div",Dr)):e.createCommentVNode("",!0),((N=m.actions)==null?void 0:N.length)>0?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":v[0]||(v[0]=x=>e.isRef(l)?l.value=x:l=x),value:h.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,zr)),[[e.vModelCheckbox,e.unref(l)]]):e.createCommentVNode("",!0)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.row,(x,j)=>(e.openBlock(),e.createElementBlock("td",{key:j,class:e.normalizeClass(["whitespace-nowrap py-4 pr-3 text-sm",e.unref(l).includes(h.id)?"text-indigo-600":"text-gray-900"])},[typeof x=="object"&&x.type==="tag"?(e.openBlock(),e.createBlock(B,{key:0,loading:m.loading,color:x.color},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.content),1)]),_:2},1032,["loading","color"])):typeof x=="object"&&x.type==="link"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",onClick:w=>u(x)},e.toDisplayString(x.content),9,Mr)):typeof x=="object"&&x.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:2,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",href:x.href},e.toDisplayString(x.content),9,Tr)):(e.openBlock(),e.createElementBlock("span",jr,e.toDisplayString(x),1))],2))),128))],2)}),128))])])])])])])]))}}}),Lr={class:"lg:hidden"},Fr=["value"],Or={class:"hidden lg:block"},Ar={class:"border-b border-gray-200"},Ir={class:"-mb-px flex space-x-8","aria-label":"Tabs"},Yr=["onClick","aria-current"],Ce=e.defineComponent({__name:"uiTabs",props:{tabs:{}},emits:["tabClicked"],setup(d,{emit:a}){const l=a,r=n=>{const o=n.target;o.value&&l("tabClicked",o.value)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Lr,[e.createElementVNode("select",{onChange:o[0]||(o[0]=t=>r(t)),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"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,t=>(e.openBlock(),e.createElementBlock("option",{value:t.id,key:t.name},e.toDisplayString(t.name),9,Fr))),128))],32)]),e.createElementVNode("div",Or,[e.createElementVNode("div",Ar,[e.createElementVNode("nav",Ir,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,t=>(e.openBlock(),e.createElementBlock("a",{key:t.name,onClick:i=>l("tabClicked",t.id),class:e.normalizeClass([t.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":t.current?"page":void 0},[e.createTextVNode(e.toDisplayString(t.name)+" ",1),t.count?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([t.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"])},e.toDisplayString(t.count),3)):e.createCommentVNode("",!0)],10,Yr))),128))])])])]))}}),Pr={class:"px-4 py-5 sm:px-6"},qr={class:"text-xl font-bold"},Rr={key:0,class:"px-4 py-5 sm:p-6"},Hr={class:"flow-root"},Ur={class:"relative pb-8"},Zr={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},Jr={class:"relative flex space-x-3"},Wr={class:"min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"},Gr={class:"text-sm text-gray-500"},Qr=["onClick"],Kr={class:"text-right text-sm whitespace-nowrap text-gray-500"},Xr=["datetime"],ea={key:1,class:"bg-gray-50 px-4 py-4 sm:px-6 z-10"},ta={class:"text-sm"},oa={key:2,class:"h-full w-full flex items-center justify-center flex-col mb-5"},la={key:1,class:"bg-white overflow-hidden shadow rounded-lg"},na={class:"px-4 py-5 sm:p-6 animate-pulse"},ra={class:"flow-root"},aa={class:"-mb-8",role:"list"},sa={class:"relative pb-8"},ia={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},_e=e.defineComponent({__name:"uiTimeline",props:{name:{},timeline:{},height:{},empty:{type:Boolean,default:!1},loading:{type:Boolean,default:!0}},emits:["timelineEventClicked","timelineFooterClicked"],setup(d,{emit:a}){const l=d,r=e.reactive(l.timeline);return(n,o)=>n.loading?(e.openBlock(),e.createElementBlock("div",la,[o[3]||(o[3]=e.createElementVNode("div",{class:"px-4 py-5 sm:px-6 animate-pulse"},[e.createElementVNode("h1",{class:"text-xl font-bold"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"})])],-1)),e.createElementVNode("div",na,[e.createElementVNode("div",ra,[e.createElementVNode("ul",aa,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,(t,i)=>e.createElementVNode("li",{key:i},[e.createElementVNode("div",sa,[t!==10?(e.openBlock(),e.createElementBlock("span",ia)):e.createCommentVNode("",!0),o[2]||(o[2]=e.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))])])),64))])])]),o[4]||(o[4]=e.createElementVNode("div",{class:"bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse"},[e.createElementVNode("div",{class:"text-sm"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"})])],-1))])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["h-["+n.height+"px]","bg-white overflow-hidden shadow rounded-lg"])},[e.createElementVNode("div",Pr,[e.createElementVNode("h1",qr,e.toDisplayString(n.name),1)]),r.items?(e.openBlock(),e.createElementBlock("div",Rr,[e.createElementVNode("div",Hr,[e.createVNode(e.TransitionGroup,{name:"list",tag:"ul",class:"-mb-8"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,(t,i)=>(e.openBlock(),e.createElementBlock("li",{key:i},[e.createElementVNode("div",Ur,[i<r.items.length-1?(e.openBlock(),e.createElementBlock("span",Zr)):e.createCommentVNode("",!0),e.createElementVNode("div",Jr,[e.createElementVNode("div",null,[e.createElementVNode("span",{class:e.normalizeClass([(t==null?void 0:t.iconBackground)||"bg-indigo-600","h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])},[e.createVNode(y,{loading:n.loading,icon:t==null?void 0:t.icon,"aria-hidden":"true",class:"h-5 w-5 text-white",color:"white"},null,8,["loading","icon"])],2)]),e.createElementVNode("div",Wr,[e.createElementVNode("div",null,[e.createElementVNode("p",Gr,[e.createElementVNode("a",{onClick:s=>n.$emit("timelineEventClicked",t.linkId),class:"font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer"},e.toDisplayString(t==null?void 0:t.target),9,Qr),e.createTextVNode(" "+e.toDisplayString(t==null?void 0:t.content),1)])]),e.createElementVNode("div",Kr,[e.createElementVNode("time",{datetime:t==null?void 0:t.datetime},e.toDisplayString(t==null?void 0:t.date),9,Xr)])])])])]))),128))]),_:1})])])):e.createCommentVNode("",!0),r.items?(e.openBlock(),e.createElementBlock("div",ea,[e.createElementVNode("div",ta,[e.createElementVNode("a",{class:"cursor-pointer font-medium text-indigo-600 hover:text-indigo-500",onClick:o[0]||(o[0]=t=>n.$emit("timelineFooterClicked",n.timeline.id))},e.toDisplayString(n.timeline.footerText),1)])])):(e.openBlock(),e.createElementBlock("div",oa,[e.createVNode(y,{icon:e.unref(_),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),o[1]||(o[1]=e.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1))]))],2))}}),da={class:"mx-auto px-6 lg:px-8"},ca={class:"flex justify-between h-20"},ua={class:"flex"},ma={class:"-ml-2 mr-2 flex items-center lg:hidden"},ga=["src"],pa={class:"flex items-center"},fa={class:"lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden"},ha={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1"},ya=["src"],va=["onClick"],ka={class:"pt-2 pb-3 space-y-1"},ba=["onClick"],wa={class:"pt-4 pb-3 border-t border-gray-200"},xa={class:"flex items-center px-4 sm:px-6"},Na={class:"flex-shrink-0"},Va=["src"],Ea={key:0,class:"ml-3"},Ba={class:"text-base font-medium text-gray-800"},Ca={class:"text-sm font-medium text-gray-500"},_a={class:"mt-3 space-y-1"},$a=["onClick"],$e=e.defineComponent({__name:"uiTopbar",props:{logo:{},alerted:{type:Boolean},accountLogo:{},profileMenu:{},brand:{},navigation:{}},emits:["topBarClick"],setup(d,{emit:a}){return(l,r)=>(e.openBlock(),e.createBlock(e.unref(p.Disclosure),{as:"nav",class:"bg-white shadow z-10"},{default:e.withCtx(({open:n})=>[e.createElementVNode("div",da,[e.createElementVNode("div",ca,[e.createElementVNode("div",ua,[e.createElementVNode("div",ma,[e.createVNode(e.unref(p.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:e.withCtx(()=>[r[1]||(r[1]=e.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),n?(e.openBlock(),e.createBlock(e.unref(S),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(ae),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)]),e.createElementVNode("div",{class:"flex-shrink-0 flex items-center cursor-pointer",onClick:r[0]||(r[0]=o=>l.$emit("topBarClick","logo"))},[e.createElementVNode("img",{class:"h-10",src:l.logo,alt:"Hotelinking suite product logo"},null,8,ga)])]),e.createElementVNode("div",pa,[e.createElementVNode("div",fa,[e.createVNode(e.unref(p.Menu),{as:"div",class:"ml-3 relative"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.withDirectives(e.createVNode(e.unref(p.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:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",ha,r[2]||(r[2]=[e.createElementVNode("span",{class:"animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75"},null,-1)]),512),[[e.vShow,l.alerted]]),e.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:l.accountLogo},null,8,ya)]),_:1},512),[[e.vShow,l.accountLogo]])]),e.createVNode(e.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:e.withCtx(()=>[e.createVNode(e.unref(p.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:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.profileMenu,o=>(e.openBlock(),e.createBlock(e.unref(p.MenuItem),{key:o.name},{default:e.withCtx(({active:t})=>[e.createElementVNode("p",{onClick:i=>l.$emit("topBarClick",o.id),class:e.normalizeClass(["cursor-pointer",[t?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"]])},e.toDisplayString(o.name),11,va)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])])]),e.createVNode(e.unref(p.DisclosurePanel),{class:"lg:hidden"},{default:e.withCtx(()=>[e.createElementVNode("div",ka,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.navigation,o=>(e.openBlock(),e.createBlock(e.unref(p.DisclosureButton),{as:"template",key:o.name,class:e.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":o.current&&o.current===!0,"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700":!o.current}])},{default:e.withCtx(()=>[e.createElementVNode("p",{onClick:t=>l.$emit("topBarClick",o.id)},e.toDisplayString(o.name),9,ba)]),_:2},1032,["class"]))),128))]),e.createElementVNode("div",wa,[e.createElementVNode("div",xa,[e.createElementVNode("div",Na,[e.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:l.accountLogo},null,8,Va)]),l.brand?(e.openBlock(),e.createElementBlock("div",Ea,[e.createElementVNode("div",Ba,e.toDisplayString(l.brand.title),1),e.createElementVNode("div",Ca,e.toDisplayString(l.brand.subtitle),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",_a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.profileMenu,o=>(e.openBlock(),e.createBlock(e.unref(p.DisclosureButton),{as:"template",key:o.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:e.withCtx(()=>[e.createElementVNode("p",{onClick:t=>l.$emit("topBarClick",o.id)},e.toDisplayString(o.name),9,$a)]),_:2},1024))),128))])])]),_:1})]),_:1}))}}),Sa={class:"chart-selector flex flex-row items-center justify-center"},Da=e.defineComponent({__name:"RangeSelector",props:{range:{type:String}},emits:["rangeSelected"],setup(d,{emit:a}){const l=a,r=d;let n=e.computed(()=>r.range);const o=t=>{n=t,l("rangeSelected",t)};return(t,i)=>(e.openBlock(),e.createElementBlock("ul",Sa,[e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(n)==="24h"}),onClick:i[0]||(i[0]=s=>o("24h"))}," 24H ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(n)==="7d"}),onClick:i[1]||(i[1]=s=>o("7d"))},"7D",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(n)==="1m"}),onClick:i[2]||(i[2]=s=>o("1m"))},"1M",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(n)==="3m"}),onClick:i[3]||(i[3]=s=>o("3m"))},"3M",2)]))}}),za={class:"chart-header flex flex-row justify-between"},Ma={class:"text-sm font-medium text-gray-500 truncate"},Ta={class:"chart-content"},ja={class:"h-full w-full flex items-center justify-center flex-col"},La={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},Se=e.defineComponent({__name:"uiFunnelChartV2",props:{labels:{},dates:{},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","maximizeChart"],setup(d,{emit:a}){const l=a,r=d;let n={chart:{type:"bar",toolbar:{show:!1},zoom:{enabled:!1}},colors:["#715aff"],dataLabels:{enabled:!0,formatter:function(c,u){return u.w.globals.labels[u.dataPointIndex]+": "+c}},markers:{strokeWidth:0,size:4,hover:{size:8}},plotOptions:{bar:{borderRadius:0,horizontal:!0,barHeight:"80%",isFunnel:!0}}};const o=e.computed(()=>({...r.options,...n})),t=e.computed(()=>r.series),i=()=>l("chartUpdated"),s=(c,u,m)=>{l("dataPointSelection",{id:r.id,chartContext:u,config:m,event:c})};return(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+c.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[e.createElementVNode("div",za,[e.createElementVNode("div",Ma,e.toDisplayString(c.title),1),e.createVNode(Da,{range:c.range,onRangeSelected:u[0]||(u[0]=m=>c.$emit("selectedRange",{range:m,chartId:c.id}))},null,8,["range"])]),e.withDirectives(e.createElementVNode("div",Ta,[e.createVNode(e.unref(U),{type:c.type,series:t.value,width:"100%",height:c.height,options:o.value,onUpdated:i,onMounted:i,onDataPointSelection:s},null,8,["type","series","height","options"])],512),[[e.vShow,!c.empty]]),e.withDirectives(e.createElementVNode("div",ja,[e.createVNode(y,{icon:e.unref(_),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),u[1]||(u[1]=e.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1))],512),[[e.vShow,c.empty]])],2),[[e.vShow,!c.loading]]),e.withDirectives(e.createElementVNode("div",La,u[2]||(u[2]=[e.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[e.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),e.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),e.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1)]),512),[[e.vShow,c.loading]])],64))}}),Fa={class:"w-full flex flex-col items-center justify-center p-10 grow"},Oa={class:"text-2xl mt-4 font-bold"},Aa={class:"buttons flex flex-row items-center justify-center mt-8 gap-x-1"},De=e.defineComponent({__name:"uiNoResults",props:{title:{},message:{},actions:{},items:{},select:{}},emits:["action","noResultsOptionSelected"],setup(d){return(a,l)=>(e.openBlock(),e.createElementBlock("div",Fa,[e.createVNode(y,{loading:!1,icon:e.unref(_),size:"massive",color:"gray"},null,8,["icon"]),e.createElementVNode("h2",Oa,e.toDisplayString(a.title),1),e.createElementVNode("p",null,e.toDisplayString(a.message),1),e.createElementVNode("div",Aa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.actions,(r,n)=>(e.openBlock(),e.createBlock($,{key:n,loading:!1,onClick:o=>a.$emit("action",r.action)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.text),1)]),_:2},1032,["onClick"]))),128)),a.items?(e.openBlock(),e.createBlock(M,{key:0,items:a.items,loading:!1,onOptionSelected:l[0]||(l[0]=r=>a.$emit("noResultsOptionSelected",r))},null,8,["items"])):e.createCommentVNode("",!0)])]))}}),Ia={class:"fixed inset-0 overflow-hidden"},Ya={class:"absolute inset-0 overflow-hidden"},Pa={class:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10"},qa={class:"flex h-full flex-col overflow-y-scroll bg-white shadow-xl"},Ra={class:"bg-indigo-700 px-4 py-6 sm:px-6"},Ha={class:"flex items-center justify-between"},Ua={class:"ml-3 flex h-7 items-center"},Za={class:"mt-1"},Ja={class:"text-sm text-indigo-300"},Wa={class:"relative flex-1 px-4 py-6 sm:px-6"},ze=e.defineComponent({__name:"uiRightSidebar",props:{title:{},description:{},open:{type:Boolean,default:!1}},emits:["closeRightBar"],setup(d,{emit:a}){return(l,r)=>(e.openBlock(),e.createBlock(e.unref(p.TransitionRoot),{as:"template",show:l.open},{default:e.withCtx(()=>[e.createVNode(e.unref(p.Dialog),{as:"div",class:"relative z-10",onClose:r[1]||(r[1]=n=>l.$emit("closeRightBar"))},{default:e.withCtx(()=>[r[4]||(r[4]=e.createElementVNode("div",{class:"fixed inset-0"},null,-1)),e.createElementVNode("div",Ia,[e.createElementVNode("div",Ya,[e.createElementVNode("div",Pa,[e.createVNode(e.unref(p.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:e.withCtx(()=>[e.createVNode(e.unref(p.DialogPanel),{class:"pointer-events-auto w-screen max-w-md"},{default:e.withCtx(()=>[e.createElementVNode("div",qa,[e.createElementVNode("div",Ra,[e.createElementVNode("div",Ha,[e.createVNode(e.unref(p.DialogTitle),{class:"text-base font-semibold leading-6 text-white"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),_:1}),e.createElementVNode("div",Ua,[e.createElementVNode("button",{type:"button",class:"relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none",onClick:r[0]||(r[0]=n=>l.$emit("closeRightBar"))},[r[2]||(r[2]=e.createElementVNode("span",{class:"absolute -inset-2.5"},null,-1)),r[3]||(r[3]=e.createElementVNode("span",{class:"sr-only"},"Close panel",-1)),e.createVNode(e.unref(S),{class:"h-6 w-6 ring-0","aria-hidden":"true"})])])]),e.createElementVNode("div",Za,[e.createElementVNode("p",Ja,e.toDisplayString(l.description),1)])]),e.createElementVNode("div",Wa,[e.renderSlot(l.$slots,"default")])])]),_:3})]),_:3})])])])]),_:3})]),_:3},8,["show"]))}}),Ga={class:"uiGallery"},Qa={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"},Ka={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"},Xa=["src"],es=["onClick"],ts={class:"pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900"},os={class:"flex items-center justify-between"},ls={class:"pointer-events-none block text-sm font-medium text-gray-500"},ns={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"},Me=e.defineComponent({__name:"uiGallery",props:{galleryId:{},gallery:{},loading:{type:Boolean},literals:{}},emits:["modalAction","deleteImage","imgClicked"],setup(d,{emit:a}){const l=a,r=e.ref(!1),n=o=>{r.value=!1,l("modalAction",o)};return(o,t)=>(e.openBlock(),e.createElementBlock("div",Ga,[o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(G,{key:0,open:r.value,modalName:"deleteAllImagesModal",title:o.literals.modalTitle,type:"warning",actions:[{value:"close",name:o.literals.closeAction},{value:`deleteGallery_${o.galleryId}`,name:o.literals.deleteAction}],onModalAction:t[0]||(t[0]=i=>n(i))},{default:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(o.literals.modalText),1)]),_:1},8,["open","title","actions"])),o.loading?(e.openBlock(),e.createElementBlock("ul",ns,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,i=>e.createElementVNode("li",null,t[2]||(t[2]=[e.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),e.createElementVNode("p",{class:"animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4"},null,-1),e.createElementVNode("p",{class:"animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2"},null,-1)]))),64))])):(e.openBlock(),e.createElementBlock("ul",Qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.gallery,i=>(e.openBlock(),e.createElementBlock("li",{key:i.source,class:"relative"},[e.createElementVNode("div",Ka,[e.createElementVNode("img",{src:i.source,alt:"",class:"pointer-events-none object-cover group-hover:opacity-75"},null,8,Xa),e.createElementVNode("button",{type:"button",class:"absolute inset-0 focus:outline-none",onClick:s=>o.$emit("imgClicked",i)},null,8,es)]),e.createElementVNode("p",ts,e.toDisplayString(i.title),1),e.createElementVNode("div",os,[e.createElementVNode("p",ls,e.toDisplayString(i.size),1),e.createVNode(y,{class:"cursor-pointer",icon:e.unref(mt),color:"red",loading:!1,onClick:s=>o.$emit("deleteImage",i)},null,8,["icon","onClick"])])]))),128))])),o.gallery.length>0&&!o.loading?(e.openBlock(),e.createBlock($,{key:3,onClick:t[1]||(t[1]=i=>r.value=!0),class:"mt-8",loading:!1,color:"red",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.literals.deleteAllImages),1)]),_:1})):e.createCommentVNode("",!0)]))}}),rs={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"},as={class:"flex flex-row items-center w-full"},ss={class:"content text-sm grow"},is={class:"font-bold"},ds={key:0},cs={class:"font-bold text-gray-400"},us={key:1,class:"animate-pulse"},Te=e.defineComponent({__name:"uiDragAndDrop",props:{elements:{},loading:{type:Boolean,default:!0}},emits:["dragAndDropUpdated"],setup(d,{emit:a}){const l=a,r=d;let n=e.ref(r.elements);e.watch(()=>r.elements,t=>{n.value=t});const o=t=>{l("dragAndDropUpdated",t)};return(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",us,i[2]||(i[2]=[e.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)]))):(e.openBlock(),e.createBlock(e.unref(qe),{key:0,modelValue:e.unref(n),"onUpdate:modelValue":[i[0]||(i[0]=s=>e.isRef(n)?n.value=s:n=s),i[1]||(i[1]=s=>o(s))]},{item:e.withCtx(({item:s})=>[e.createElementVNode("div",rs,[e.createElementVNode("div",as,[e.createVNode(y,{icon:e.unref(ot),loading:!1,color:"gray",class:"mr-4",size:"big"},null,8,["icon"]),e.createElementVNode("div",ss,[e.createElementVNode("p",is,e.toDisplayString(s.name),1),s.description?(e.openBlock(),e.createElementBlock("p",ds,e.toDisplayString(s.description),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",cs,e.toDisplayString(e.unref(n).indexOf(s)+1),1)])])]),_:1},8,["modelValue"]))}}),ms={class:"chart-header flex flex-row justify-between"},gs={class:"text-sm font-medium text-gray-500 truncate"},ps={class:"hidden sm:flex items-center"},fs={class:"w-1/2 min-w-0 flex-1"},hs=["max"],ys={class:"min-w-0 flex-1"},vs=["max"],ks={class:"chart-content"},bs={class:"h-full w-full flex items-center justify-center flex-col"},ws={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},je=e.defineComponent({__name:"uiCircleChart",props:{labels:{},dates:{},title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection","maximizeChart"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(new Date().toISOString().slice(0,new Date().toISOString().lastIndexOf(":")));let o=e.reactive(r.dates||{from:"",to:n});e.watch(()=>r.dates,b=>{b&&(o=b)});let t={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 i=()=>({...t,...r.options}),s=e.computed(()=>r.series),c=e.computed(()=>i()),u=()=>l("chartUpdated"),m=(b,f,h)=>{l("dataPointSelection",{id:r.id,chartContext:f,config:h,event:b})},v=()=>{o.from!==""&&o.to!==""&&k(o.from).isBefore(k(o.to))&&l("selectedRange",{range:o,chartId:r.id})};return(b,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+b.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[e.createElementVNode("div",ms,[e.createElementVNode("div",gs,e.toDisplayString(b.title),1),e.createElementVNode("div",ps,[e.createElementVNode("div",fs,[e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":f[0]||(f[0]=h=>e.unref(o).from=h),max:n.value.toString(),onChange:v,name:"from",id:"from",class:"text-xs relative block w-full rounded rounded-r-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"},null,40,hs),[[e.vModelText,e.unref(o).from]])]),e.createElementVNode("div",ys,[e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":f[1]||(f[1]=h=>e.unref(o).to=h),max:n.value.toString(),onChange:v,name:"to",id:"to",class:"text-xs relative block w-full -mr-2 rounded rounded-l-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"},null,40,vs),[[e.vModelText,e.unref(o).to]])]),e.createVNode(y,{class:"ml-4 cursor-pointer",size:"big",loading:b.loading,icon:e.unref(re),onClick:f[2]||(f[2]=h=>b.$emit("maximizeChart",b.id))},null,8,["loading","icon"])])]),e.withDirectives(e.createElementVNode("div",ks,[e.createVNode(e.unref(U),{class:"flex items-center justify-center mt-4",type:"donut",series:s.value,options:c.value,height:b.height-80,onUpdated:u,onMounted:u,onDataPointSelection:m},null,8,["series","options","height"])],512),[[e.vShow,!b.empty]]),e.withDirectives(e.createElementVNode("div",bs,[e.createVNode(y,{icon:e.unref(_),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),f[3]||(f[3]=e.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1))],512),[[e.vShow,b.empty]])],2),[[e.vShow,!b.loading]]),e.withDirectives(e.createElementVNode("div",ws,f[4]||(f[4]=[e.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[e.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),e.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),e.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1)]),512),[[e.vShow,b.loading]])],64))}}),xs={key:0,class:"flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"},Ns={key:1,class:"flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"},Le=e.defineComponent({__name:"uiDateRange",props:{id:{},loading:{type:Boolean},literals:{},values:{},color:{},error:{},disabled:{type:Boolean},label:{},placeholder:{}},emits:["uiDateRangeButtonClicked"],setup(d,{emit:a}){const l=d,r=e.ref(new Date().toISOString().slice(0,new Date().toISOString().lastIndexOf(":")));let n=e.reactive(l.values||{from:"",to:r});const o=a;e.watch(()=>l.values,i=>{i&&(n=i)});const t=()=>{o("uiDateRangeButtonClicked",n)};return(i,s)=>i.loading?(e.openBlock(),e.createElementBlock("div",Ns,[e.createVNode(C,{name:"dateFrom",loading:!0}),e.createVNode(C,{name:"dateTo",loading:!0}),e.createVNode($,{loading:!0},{default:e.withCtx(()=>s[2]||(s[2]=[e.createTextVNode("Search")])),_:1})])):(e.openBlock(),e.createElementBlock("div",xs,[e.createVNode(C,{type:"datetime-local",loading:!1,addOn:i.literals.from,name:`dateFrom_${i.id}`,color:i.color,value:e.unref(n).from.toString(),error:i.error,disabled:i.disabled,label:i.label,max:r.value.toString(),onInputChanged:s[0]||(s[0]=c=>e.unref(n).from=c.value)},null,8,["addOn","name","color","value","error","disabled","label","max"]),e.createVNode(C,{type:"datetime-local",loading:!1,class:e.normalizeClass([{"mt-6":i.label}]),addOn:i.literals.to,name:`dateTo_${i.id}`,color:i.color,value:e.unref(n).to.toString(),error:i.error,disabled:i.disabled,label:void 0,max:r.value.toString(),onInputChanged:s[1]||(s[1]=c=>e.unref(n).to=c.value)},null,8,["class","addOn","name","color","value","error","disabled","max"]),e.createVNode($,{disabled:i.disabled,color:"primary",loading:!1,class:e.normalizeClass([{"mt-6":i.label},"h-10"]),onClick:t},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.literals.search),1)]),_:1},8,["disabled","class"])]))}}),Vs={class:"flex justify-between items-center"},Es={key:0,class:"block text-sm font-medium text-gray-700"},Bs={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Cs={key:1,class:"h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full"},Fe=e.defineComponent({__name:"uiRangeSlider",props:{loading:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},min:{},max:{},sliderValue:{},label:{},requiredText:{}},emits:["sliderUpdated"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(r.sliderValue);return(o,t)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Vs,[o.label?(e.openBlock(),e.createElementBlock("label",Es,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0),o.requiredText?(e.openBlock(),e.createElementBlock("span",Bs,e.toDisplayString(o.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([{"mt-1":o.label},"pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"])},[o.loading?(e.openBlock(),e.createElementBlock("p",Cs)):(e.openBlock(),e.createBlock(e.unref(Re),{key:0,modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=i=>n.value=i),min:o.min,max:o.max,disabled:o.disabled,onChange:t[1]||(t[1]=i=>l("sliderUpdated",i)),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)]))}}),_s={class:"mt-1 mb-8 text-sm text-gray-500"},Oe=e.defineComponent({__name:"uiSectionTitle",props:{title:{},description:{}},setup(d){return(a,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",{class:e.normalizeClass(["text-lg font-medium leading-6 text-gray-900",{"mb-8":a.description===void 0}])},e.toDisplayString(a.title),3),e.createElementVNode("p",_s,e.toDisplayString(a.description),1)],64))}}),$s={key:0,class:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"},Ss={class:"flex flex-1 flex-col p-8"},Ds={class:"text-2xl font-bold text-gray-900"},zs={class:"mt-1 flex flex-grow flex-col justify-between"},Ms={class:"mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center"},Ts={key:1,class:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"},js={class:"flex flex-1 flex-col p-8"},Ls={class:"rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200"},Fs={class:"mt-1 flex flex-grow flex-col justify-between"},Os={class:"mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center"},Ae=e.defineComponent({__name:"uiDeviceStatus",props:{id:{},name:{},icon:{},color:{},qty:{default:0},tags:{},loading:{type:Boolean,default:!0}},emits:["deviceStatusTagClicked","deviceStatusQtyClicked"],setup(d,{emit:a}){return(l,r)=>l.loading?(e.openBlock(),e.createElementBlock("div",Ts,[e.createElementVNode("div",js,[e.createElementVNode("div",Ls,[e.createVNode(y,{icon:l.icon,size:"huge",class:"text-white","aria-hidden":"true",loading:l.loading},null,8,["icon","loading"])]),r[3]||(r[3]=e.createElementVNode("div",{class:"h-4 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 mx-auto"},null,-1)),e.createElementVNode("dl",Fs,[e.createElementVNode("dd",Os,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.tags,(n,o)=>(e.openBlock(),e.createBlock(B,{key:o,loading:l.loading,event:n.event,color:n.color,onTagEvent:r[2]||(r[2]=t=>l.$emit("deviceStatusTagClicked",t))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.name),1)]),_:2},1032,["loading","event","color"]))),128))])])])])):(e.openBlock(),e.createElementBlock("div",$s,[e.createElementVNode("div",Ss,[e.createElementVNode("div",{class:e.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"}])},[e.createVNode(y,{icon:l.icon,size:"huge",class:"text-white","aria-hidden":"true",loading:!1},null,8,["icon"])],2),e.createElementVNode("h3",Ds,[e.createTextVNode(e.toDisplayString(l.name)+" ",1),e.withDirectives(e.createElementVNode("span",{class:"text-indigo-600 hover:text-indigo-900 cursor-pointer",onClick:r[0]||(r[0]=n=>l.$emit("deviceStatusQtyClicked",l.id))},"("+e.toDisplayString(l.qty)+")",513),[[e.vShow,l.qty>0]])]),e.createElementVNode("dl",zs,[e.createElementVNode("dd",Ms,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.tags,(n,o)=>(e.openBlock(),e.createBlock(B,{key:o,loading:!1,event:n.event,color:n.color,onTagEvent:r[1]||(r[1]=t=>l.$emit("deviceStatusTagClicked",t))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.name),1)]),_:2},1032,["event","color"]))),128))])])])]))}}),As={class:"flex flex-row grow border-r border-gray-200 bg-white pr-6"},Is={class:"bg-indigo-600 w-16 mr-6"},Ys=["onClick"],Ps={key:0,class:"flex flex-col grow gap-y-5 overflow-y-auto pr-6"},qs={class:"flex h-16 shrink-0 items-center"},Rs=["src"],Hs={class:"flex flex-1 flex-col"},Us={key:0,role:"list",class:"flex flex-1 flex-col gap-y-7 mb-4"},Zs={role:"list",class:"ml-2 space-y-1"},Js=["onClick"],Ws={key:1,role:"list",class:"flex flex-1 flex-col gap-y-7 mb-4"},Gs={class:"ml-2 space-y-1"},Qs={class:"font-bold mb-4"},Ks={key:1,class:"flex flex-col grow gap-y-5 overflow-y-auto pr-6"},Xs={class:"h-12 flex flex-row items-center"},le=e.defineComponent({__name:"uiSidebarV2",props:{navigation:{},filterNavigation:{},isFilterNavigation:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},logo:{},productsSidebar:{}},emits:["productBarClick","sideBarClick"],setup(d,{emit:a}){return(l,r)=>(e.openBlock(),e.createElementBlock("div",As,[e.createElementVNode("div",Is,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.productsSidebar,(n,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:e.normalizeClass([{"!bg-indigo-900":n.active},"w-full h-16 flex items-center justify-center cursor-pointer bg-indigo-600 hover:bg-indigo-700"]),onClick:t=>l.$emit("productBarClick",n.name)},[e.createVNode(y,{icon:n.icon,loading:!1,color:"white",size:"bigger"},null,8,["icon"])],10,Ys))),128))])]),l.loading?(e.openBlock(),e.createElementBlock("div",Ks,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,n=>e.createElementVNode("div",Xs,r[0]||(r[0]=[e.createElementVNode("div",{class:"w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4"},null,-1),e.createElementVNode("div",{class:"h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300"},null,-1)]))),64))])):(e.openBlock(),e.createElementBlock("div",Ps,[e.createElementVNode("div",qs,[e.createElementVNode("img",{class:"h-8 w-auto",src:l.logo,alt:"Your Company"},null,8,Rs)]),e.createElementVNode("nav",Hs,[l.isFilterNavigation?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("ul",Us,[e.createElementVNode("li",null,[e.createElementVNode("ul",Zs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.navigation,n=>(e.openBlock(),e.createElementBlock("li",{key:n.name},[n.children?(e.openBlock(),e.createBlock(e.unref(p.Disclosure),{key:1,as:"div"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.DisclosureButton),{onClick:o=>l.$emit("sideBarClick",n.id),class:e.normalizeClass([n.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:e.withCtx(()=>[e.createVNode(y,{icon:n.icon,color:"primary",size:"big",loading:!1,"aria-hidden":"true",class:"shrink-0"},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(n.name)+" ",1),e.createVNode(e.unref(z),{class:e.normalizeClass([n.children.some(o=>o.current)||n.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"]),e.withDirectives(e.createElementVNode("div",null,[e.createVNode(e.unref(p.DisclosurePanel),{as:"ul",class:"mt-1 px-2",static:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.children,o=>(e.openBlock(),e.createElementBlock("li",{key:o.name},[e.createVNode(e.unref(p.DisclosureButton),{as:"a",onClick:t=>l.$emit("sideBarClick",o.id),class:e.normalizeClass([o.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:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.name),1)]),_:2},1032,["onClick","class"])]))),128))]),_:2},1024)],512),[[e.vShow,n.children.some(o=>o.current)||n.current]])]),_:2},1024)):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:o=>l.$emit("sideBarClick",n.id),class:e.normalizeClass([n.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"])},[e.createVNode(y,{icon:n.icon,color:"primary",size:"big",loading:!1,"aria-hidden":"true",class:"shrink-0"},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(n.name),1)],10,Js))]))),128))])])])),l.isFilterNavigation&&l.filterNavigation?(e.openBlock(),e.createElementBlock("ul",Ws,[e.createElementVNode("li",Gs,[l.filterNavigation.hasSearch&&l.filterNavigation.search?(e.openBlock(),e.createBlock(C,{key:0,name:l.filterNavigation.search.name,label:l.filterNavigation.search.label,placeholder:l.filterNavigation.search.placeholder,value:l.filterNavigation.search.value,loading:l.filterNavigation.search.loading},null,8,["name","label","placeholder","value","loading"])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.filterNavigation.items,(n,o)=>(e.openBlock(),e.createElementBlock("li",{class:"ml-2",key:o},[e.createElementVNode("p",Qs,e.toDisplayString(n.label),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.filters,(t,i)=>(e.openBlock(),e.createBlock(Z,{class:"mb-2",value:t.value,loading:t.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),_:2},1032,["value","loading"]))),256))]))),128))])):e.createCommentVNode("",!0)])]))]))}}),ei={class:"fixed inset-0 flex"},ti={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},oi={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col"},li={class:"lg:pl-[25rem]"},ni={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"},ri={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},ai={class:"relative flex flex-1",action:"#",method:"GET"},si={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"},ii={class:"flex items-center gap-x-4 lg:gap-x-6"},di={type:"button",class:"-m-2.5 p-2.5 text-gray-400 hover:text-gray-500 relative"},ci={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2"},ui=["src"],mi={class:"hidden lg:flex lg:items-center"},gi=["onClick"],pi={class:"py-7"},fi={class:"px-7 lg:px-10"},Ie=e.defineComponent({__name:"uiWrapper",props:{topbar:{},sidebar:{}},emits:["productBarClick","sideBarClick","selectChanged","topBarClick"],setup(d,{emit:a}){const l=d,r=e.ref(""),n=e.computed(()=>r.value===""?l.topbar.selectItems:l.topbar.selectItems.filter(s=>s.name.toLowerCase().includes(r.value.toLowerCase()))),o=s=>(s==null?void 0:s.name)??"",t=e.computed(()=>l.topbar.selectedItem),i=e.ref(!1);return(s,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(p.TransitionRoot),{as:"template",show:i.value},{default:e.withCtx(()=>[e.createVNode(e.unref(p.Dialog),{class:"relative z-50 lg:hidden",onClose:c[3]||(c[3]=u=>i.value=!1)},{default:e.withCtx(()=>[e.createVNode(e.unref(p.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:e.withCtx(()=>c[11]||(c[11]=[e.createElementVNode("div",{class:"fixed inset-0 bg-gray-900/80"},null,-1)])),_:1}),e.createElementVNode("div",ei,[e.createVNode(e.unref(p.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:e.withCtx(()=>[e.createVNode(e.unref(p.DialogPanel),{class:"relative mr-16 flex w-full max-w-xs flex-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.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:e.withCtx(()=>[e.createElementVNode("div",ti,[e.createElementVNode("button",{type:"button",class:"-m-2.5 p-2.5",onClick:c[0]||(c[0]=u=>i.value=!1)},[c[12]||(c[12]=e.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1)),e.createVNode(e.unref(S),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),e.createVNode(le,{productsSidebar:s.sidebar.productsSidebar,isFilterNavigation:s.sidebar.isFilterNavigation,navigation:s.sidebar.navigation,filterNavigation:s.sidebar.filterNavigation,loading:!1,logo:s.topbar.logo,onSideBarClick:c[1]||(c[1]=u=>s.$emit("sideBarClick",u)),onProductBarClick:c[2]||(c[2]=u=>s.$emit("productBarClick",u))},null,8,["productsSidebar","isFilterNavigation","navigation","filterNavigation","logo"])]),_:1})]),_:1})])]),_:1})]),_:1},8,["show"]),e.createElementVNode("div",oi,[e.createVNode(le,{productsSidebar:s.sidebar.productsSidebar,isFilterNavigation:s.sidebar.isFilterNavigation,navigation:s.sidebar.navigation,filterNavigation:s.sidebar.filterNavigation,loading:!1,logo:s.topbar.logo,onSideBarClick:c[4]||(c[4]=u=>s.$emit("sideBarClick",u)),onProductBarClick:c[5]||(c[5]=u=>s.$emit("productBarClick",u))},null,8,["productsSidebar","isFilterNavigation","navigation","filterNavigation","logo"])]),e.createElementVNode("div",li,[e.createElementVNode("div",ni,[e.createElementVNode("button",{type:"button",class:"-m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:c[6]||(c[6]=u=>i.value=!0)},[c[13]||(c[13]=e.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1)),e.createVNode(e.unref(ae),{class:"h-6 w-6","aria-hidden":"true"})]),c[19]||(c[19]=e.createElementVNode("div",{class:"h-6 w-px bg-gray-200 lg:hidden","aria-hidden":"true"},null,-1)),e.createElementVNode("div",ri,[e.createElementVNode("form",ai,[c[14]||(c[14]=e.createElementVNode("label",{for:"search-field",class:"sr-only"},"Search",-1)),e.createVNode(e.unref(ct),{class:"pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400","aria-hidden":"true"}),e.createVNode(e.unref(p.Combobox),{class:"w-full",as:"div",modelValue:t.value,"onUpdate:modelValue":[c[9]||(c[9]=u=>t.value=u),c[10]||(c[10]=u=>s.$emit("selectChanged",u))]},{default:e.withCtx(()=>[e.createElementVNode("div",si,[e.createVNode(e.unref(p.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:c[7]||(c[7]=u=>r.value=u.target.value),onBlur:c[8]||(c[8]=u=>r.value=""),displayValue:o}),e.createVNode(e.unref(p.ComboboxButton),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(H),{class:"h-5 w-5 text-gray-400"})]),_:1}),n.value.length>0?(e.openBlock(),e.createBlock(e.unref(p.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:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,u=>(e.openBlock(),e.createBlock(e.unref(p.ComboboxOption),{key:u.id,value:u,as:"template"},{default:e.withCtx(({active:m,selected:v})=>[e.createElementVNode("li",{class:e.normalizeClass(["relative cursor-default select-none py-2 pl-8 pr-4",m?"bg-indigo-600 text-white":"text-gray-900"])},[e.createElementVNode("span",{class:e.normalizeClass(["block truncate",v&&"font-semibold"])},e.toDisplayString(u.name),3),v?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["absolute inset-y-0 left-0 flex items-center pl-1.5",m?"text-white":"text-indigo-600"])},[e.createVNode(e.unref(q),{class:"h-5 w-5"})],2)):e.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"])]),e.createElementVNode("div",ii,[e.createElementVNode("button",di,[c[16]||(c[16]=e.createElementVNode("span",{class:"sr-only"},"View notifications",-1)),e.withDirectives(e.createElementVNode("div",ci,c[15]||(c[15]=[e.createElementVNode("span",{class:"animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75"},null,-1)]),512),[[e.vShow,s.topbar.alerted]]),e.createVNode(e.unref(lt),{class:"h-6 w-6","aria-hidden":"true"})]),c[18]||(c[18]=e.createElementVNode("div",{class:"hidden lg:block lg:h-6 lg:w-px lg:bg-gray-200","aria-hidden":"true"},null,-1)),e.createVNode(e.unref(p.Menu),{as:"div",class:"relative"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.MenuButton),{class:"-m-1.5 flex items-center p-1.5"},{default:e.withCtx(()=>[c[17]||(c[17]=e.createElementVNode("span",{class:"sr-only"},"Open user menu",-1)),e.createElementVNode("img",{class:"h-8 w-8 rounded-full bg-gray-50",src:s.topbar.accountLogo,alt:""},null,8,ui),e.createElementVNode("span",mi,[e.createVNode(e.unref(P),{class:"ml-2 h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),e.createVNode(e.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:e.withCtx(()=>[e.createVNode(e.unref(p.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:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.topbar.profileMenu,u=>(e.openBlock(),e.createBlock(e.unref(p.MenuItem),{key:u.name},{default:e.withCtx(({active:m})=>[e.createElementVNode("a",{onClick:v=>s.$emit("topBarClick",u.id),class:e.normalizeClass([m?"bg-gray-50":"","block px-3 py-1 text-sm leading-6 text-gray-900"])},e.toDisplayString(u.name),11,gi)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),e.createElementVNode("main",pi,[e.createElementVNode("div",fi,[e.renderSlot(s.$slots,"default")])])])]))}}),Ye=e.defineComponent({__name:"uiDynamicStats",props:{dynamicStats:{},loading:{type:Boolean,default:!0}},setup(d){const a=d,l=()=>a.dynamicStats.length<=5?`lg:grid-cols-${a.dynamicStats.length}`:`lg:grid-cols-${Math.floor(a.dynamicStats.length/2)} xl:grid-cols-${a.dynamicStats.length}`,r=e.ref(0),n=e.ref(l());return e.onMounted(()=>r.value+=1),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([n.value,"grid grid-cols-1 md:grid-cols-2 gap-4"]),key:r.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dynamicStats,(i,s)=>(e.openBlock(),e.createBlock(Q,{key:s,item:i,loading:o.loading},null,8,["item","loading"]))),128))],2))}}),hi={class:"flex flex-col lg:flex-row items-center"},Pe=e.defineComponent({__name:"uiSmartFilter",props:{items:{},buttonLiteral:{},loading:{type:Boolean,default:!0}},emits:["smartFilterSelected","smartInputChanged","smartSelectChanged","smartOptionSelected","rightAddOnClicked"],setup(d,{emit:a}){const l=d,r=a,n=e.shallowRef(C),o=e.ref(l.items[0].props),t=i=>{switch(i.type){case"uiInput":n.value=C;break;case"uiDropdown":n.value=M;break;case"uiSelect":n.value=J;break}o.value=i.props};return(i,s)=>(e.openBlock(),e.createElementBlock("div",hi,[e.createVNode(W,{items:i.items,loading:i.loading,onFilterSelected:t},null,8,["items","loading"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),e.mergeProps({class:"w-full mt-2 lg:mt-0 lg:mx-2 lg:grow"},o.value,{loading:!1,onInputChanged:s[0]||(s[0]=c=>r("smartInputChanged",c)),onSelectChanged:s[1]||(s[1]=c=>r("smartSelectChanged",c)),onOptionSelected:s[2]||(s[2]=c=>r("smartOptionSelected",c)),onRightAddOnClicked:s[3]||(s[3]=c=>r("rightAddOnClicked"))}),null,16)),e.createVNode($,{class:"mt-2 lg:mt-0",loading:i.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.buttonLiteral),1)]),_:1},8,["loading"])]))}}),ne=Object.freeze(Object.defineProperty({__proto__:null,uiAlert:ge,uiBreadcrumbs:pe,uiButton:$,uiCard:fe,uiChart:be,uiCheckbox:Z,uiCircleChart:je,uiDateRange:Le,uiDeviceStatus:Ae,uiDragAndDrop:Te,uiDropdown:M,uiDynamicStats:Ye,uiFilter:W,uiFooter:we,uiFunnelChartV2:Se,uiGallery:Me,uiIcon:y,uiInput:C,uiInputFile:ce,uiLoadingScreen:xe,uiModal:G,uiNoResults:De,uiNotification:he,uiPagination:Ne,uiPriceCalendar:ke,uiRangeSlider:Fe,uiRightSidebar:ze,uiSectionTitle:Oe,uiSelect:J,uiSidebar:Ve,uiSmartFilter:Pe,uiStats:Q,uiStripedCard:Ee,uiTable:Be,uiTabs:Ce,uiTag:B,uiTaskList:ye,uiTextArea:ue,uiTimeline:_e,uiToggle:me,uiTopbar:$e,uiWrapper:Ie},Symbol.toStringTag,{value:"Module"}));function yi(d){for(const a in ne)d.component(a,ne[a])}const vi={install:yi};exports.default=vi;exports.uiAlert=ge;exports.uiBreadcrumbs=pe;exports.uiButton=$;exports.uiCard=fe;exports.uiChart=be;exports.uiCheckbox=Z;exports.uiCircleChart=je;exports.uiDateRange=Le;exports.uiDeviceStatus=Ae;exports.uiDragAndDrop=Te;exports.uiDropdown=M;exports.uiDynamicStats=Ye;exports.uiFilter=W;exports.uiFooter=we;exports.uiFunnelChartV2=Se;exports.uiGallery=Me;exports.uiIcon=y;exports.uiInput=C;exports.uiInputFile=ce;exports.uiLoadingScreen=xe;exports.uiModal=G;exports.uiNoResults=De;exports.uiNotification=he;exports.uiPagination=Ne;exports.uiPriceCalendar=ke;exports.uiRangeSlider=Fe;exports.uiRightSidebar=ze;exports.uiSectionTitle=Oe;exports.uiSelect=J;exports.uiSidebar=Ve;exports.uiSmartFilter=Pe;exports.uiStats=Q;exports.uiStripedCard=Ee;exports.uiTable=Be;exports.uiTabs=Ce;exports.uiTag=B;exports.uiTaskList=ye;exports.uiTextArea=ue;exports.uiTimeline=_e;exports.uiToggle=me;exports.uiTopbar=$e;exports.uiWrapper=Ie;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@headlessui/vue"),k=require("dayjs"),U=require("vue3-apexcharts"),qe=require("vue3-draggable"),Re=require("@vueform/slider"),y=e.defineComponent({__name:"uiIcon",props:{icon:{},size:{default:"medium"},color:{default:"primary"},loading:{type:Boolean,default:!0}},setup(d){return(a,l)=>a.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([{"h-4 w-4":a.size==="medium","h-6 w-6":a.size==="big","h-8 w-8":a.size==="bigger","h-12 w-12":a.size==="huge","h-20 w-20":a.size==="massive"},"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"])},null,2)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.icon),{key:0,class:e.normalizeClass({"h-4 w-4":a.size==="medium","h-6 w-6":a.size==="big","h-8 w-8":a.size==="bigger","h-12 w-12":a.size==="huge","h-20 w-20":a.size==="massive","text-indigo-600":a.color==="primary","text-cyan-300":a.color==="secondary","text-red-400":a.color==="red","text-yellow-400":a.color==="yellow","text-green-400":a.color==="green","text-white":a.color==="white","text-gray-300":a.color==="gray","text-black":a.color==="black"})},null,8,["class"]))}}),He=["disabled"],Ue={key:1,class:"animate-pulse px-4 py-2.5 text-sm rounded-md inline-flex items-center border border-transparent font-medium shadow-sm text-white focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25 bg-gray-200"},$=e.defineComponent({__name:"uiButton",props:{block:{type:Boolean},color:{default:"primary"},disabled:{type:Boolean},icon:{},loading:{type:Boolean,default:!0},size:{default:"medium"}},setup(d){return(a,l)=>a.loading?(e.openBlock(),e.createElementBlock("button",Ue,[a.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:a.icon,color:"white",class:"-ml-0.5 mr-2",loading:a.loading},null,8,["icon","loading"])):e.createCommentVNode("",!0),l[0]||(l[0]=e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16"},null,-1))])):(e.openBlock(),e.createElementBlock("button",{key:0,disabled:a.disabled,class:e.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 text-white shadow-sm":a.color==="primary","bg-cyan-300 hover:bg-cyan-500 text-white shadow-sme":a.color==="secondary","bg-red-400 hover:bg-red-600 text-white shadow-sm":a.color==="red","bg-yellow-400 hover:bg-yellow-600 text-white shadow-sm":a.color==="yellow","bg-green-400 hover:bg-green-600 text-white shadow-sm":a.color==="green","px-4 py-2 text-sm rounded-md":a.size==="medium","px-2.5 py-1.5 text-xs rounded leading-none":a.size==="small","px-6 py-3 text-base rounded-md":a.size==="big","w-full flex items-center justify-center":a.block},"inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-25"]),type:"button"},[a.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:a.icon,color:"white",class:"-ml-0.5 mr-2",loading:a.loading},null,8,["icon","loading"])):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],10,He))}}),Ze={key:0,class:"relative flex items-start"},Je={class:"flex items-center h-5"},We=["checked","value","disabled"],Ge={class:"ml-3 text-sm"},Qe={class:"text-gray-500"},Ke={key:1,class:"flex items-center animate-pulse"},Z=e.defineComponent({__name:"uiCheckbox",props:{check:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},value:{},text:{}},emits:["checkboxChanged"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(r.check),o=()=>{r.disabled||(n.value=!n.value,l("checkboxChanged",{checked:n.value,value:r.value}))};return e.watch(()=>r.check,t=>{t&&(n.value=t)}),(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",Ke,i[1]||(i[1]=[e.createElementVNode("div",{class:"w-5 h-5 rounded bg-gray-200"},null,-1),e.createElementVNode("div",{class:"ml-3 h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",Ze,[e.createElementVNode("div",Je,[e.createElementVNode("input",{checked:t.check,value:t.value,disabled:t.disabled,class:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded disabled:opacity-25",type:"checkbox",onChange:i[0]||(i[0]=s=>o())},null,40,We)]),e.createElementVNode("div",Ge,[e.createElementVNode("span",Qe,[e.renderSlot(t.$slots,"default")])])]))}});function Xe(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 13.5 12 21m0 0-7.5-7.5M12 21V3"})])}function et(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M7.5 7.5h-.75A2.25 2.25 0 0 0 4.5 9.75v7.5a2.25 2.25 0 0 0 2.25 2.25h7.5a2.25 2.25 0 0 0 2.25-2.25v-7.5a2.25 2.25 0 0 0-2.25-2.25h-.75m0-3-3-3m0 0-3 3m3-3v11.25m6-2.25h.75a2.25 2.25 0 0 1 2.25 2.25v7.5a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-.75"})])}function tt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 10.5 12 3m0 0 7.5 7.5M12 3v18"})])}function re(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})])}function ae(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function ot(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function lt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})])}function se(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function q(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function P(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function ie(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})])}function z(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function H(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function nt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 15.75 7.5-7.5 7.5 7.5"})])}function rt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function _(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})])}function at(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.182 16.318A4.486 4.486 0 0 0 12.016 15a4.486 4.486 0 0 0-3.198 1.318M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"})])}function st(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.182 15.182a4.5 4.5 0 0 1-6.364 0M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0ZM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75Zm-.375 0h.008v.015h-.008V9.75Z"})])}function it(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.05 4.575a1.575 1.575 0 1 0-3.15 0v3m3.15-3v-1.5a1.575 1.575 0 0 1 3.15 0v1.5m-3.15 0 .075 5.925m3.075.75V4.575m0 0a1.575 1.575 0 0 1 3.15 0V15M6.9 7.575a1.575 1.575 0 1 0-3.15 0v8.175a6.75 6.75 0 0 0 6.75 6.75h2.018a5.25 5.25 0 0 0 3.712-1.538l1.732-1.732a5.25 5.25 0 0 0 1.538-3.712l.003-2.024a.668.668 0 0 1 .198-.471 1.575 1.575 0 1 0-2.228-2.228 3.818 3.818 0 0 0-1.12 2.687M6.9 7.575V12m6.27 4.318A4.49 4.49 0 0 1 16.35 15m.002 0h-.002"})])}function dt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})])}function de(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"})])}function ct(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})])}function ut(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"})])}function mt(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})])}function R(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function S(d,a){return e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const gt={class:"flex justify-between"},pt={key:0,class:"block text-sm font-medium text-gray-700 mb-1"},ft={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end mt-1"},ht={class:"py-1"},yt=["onClick"],vt={key:1,class:"animate-pulse px-4 py-2 bg-gray-200 rounded-md inline-flex items-center relative text-left"},M=e.defineComponent({__name:"uiDropdown",props:{items:{},position:{default:"left"},disabled:{type:Boolean},label:{},loading:{type:Boolean,default:!0},requiredText:{}},emits:["optionSelected"],setup(d,{emit:a}){const l=a,r=d,n=e.computed(()=>{let t=r.items.find(i=>i.active===!0);return t?t.name:r.label}),o=t=>{r.disabled||l("optionSelected",t)};return(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",vt,[i[0]||(i[0]=e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"},null,-1)),e.createVNode(e.unref(P),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5 text-gray-200 dark:text-gray-300"})])):(e.openBlock(),e.createBlock(e.unref(p.Menu),{key:0,as:"div",class:e.normalizeClass(["relative inline-block text-left",{"opacity-25":t.disabled}])},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",gt,[t.label?(e.openBlock(),e.createElementBlock("label",pt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.requiredText?(e.openBlock(),e.createElementBlock("span",ft,e.toDisplayString(t.requiredText),1)):e.createCommentVNode("",!0)]),e.createVNode(e.unref(p.MenuButton),{class:"inline-flex justify-between w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.value)+" ",1),e.createVNode(e.unref(P),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5"})]),_:1})]),e.createVNode(e.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:e.withCtx(()=>[t.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(p.MenuItems),{key:0,class:e.normalizeClass([{"right-0":t.position==="right","left-0":t.position==="left"},"origin-top-right absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 focus:outline-none z-10"])},{default:e.withCtx(()=>[e.createElementVNode("div",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(s,c)=>(e.openBlock(),e.createBlock(e.unref(p.MenuItem),{key:c},{default:e.withCtx(()=>[e.createElementVNode("a",{onClick:u=>o(s),class:e.normalizeClass([s.active?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-sm cursor-pointer"])},e.toDisplayString(s.name),11,yt)]),_:2},1024))),128))])]),_:1},8,["class"]))]),_:1})]),_:1},8,["class"]))}}),kt={key:0},bt={class:"flex justify-between"},wt={key:0,class:"block text-sm font-medium text-gray-700"},xt={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Nt=["max","disabled","name","placeholder","type"],Vt={class:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"},Et={key:1,class:"animate-pulse"},Bt={key:0,class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"},C=e.defineComponent({__name:"uiInput",props:{label:{},type:{default:"text"},name:{},placeholder:{default:"..."},icon:{},disabled:{type:Boolean},color:{default:"gray"},value:{},error:{},requiredText:{},addOn:{},rightAddOn:{},max:{},min:{},loading:{type:Boolean,default:!0}},emits:["inputChanged","rightAddOnClicked","addOnClicked"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(r.value);e.watch(()=>r.value,t=>{n.value=t,n.value&&l("inputChanged",{name:r.name,value:n.value})});const o=t=>{t.target.name&&l("inputChanged",{value:t.target.value,name:t.target.name})};return(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",Et,[t.label!==void 0?(e.openBlock(),e.createElementBlock("div",Bt)):e.createCommentVNode("",!0),i[3]||(i[3]=e.createElementVNode("div",{class:"animate-pulse px-4 py-3.5 bg-gray-200 rounded-md inline-flex items-center relative text-left w-full"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28"})],-1))])):(e.openBlock(),e.createElementBlock("div",kt,[e.createElementVNode("div",bt,[t.label?(e.openBlock(),e.createElementBlock("label",wt,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.requiredText?(e.openBlock(),e.createElementBlock("span",xt,e.toDisplayString(t.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([{"mt-1":t.label},"relative flex"])},[t.addOn?(e.openBlock(),e.createElementBlock("span",{key:0,onClick:i[0]||(i[0]=s=>t.$emit("addOnClicked")),class:"inline-flex items-center px-3 rounded-l-md border border-r-0 border-gray-300 bg-gray-50 text-gray-500 sm:text-sm cursor-pointer"},e.toDisplayString(t.addOn),1)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=s=>n.value=s),max:t.max,class:e.normalizeClass([{"border-gray-300":t.color==="gray","border-red-400":t.color==="red","border-yellow-400":t.color==="yellow","border-green-400":t.color==="green","bg-gray-100":t.disabled,"text-black":t.color==="black","text-red-400":t.color==="red","text-yellow-400":t.color==="yellow","text-green-400":t.color==="green","rounded-md":!t.addOn||!t.rightAddOn,"rounded-r-md":t.addOn,"rounded-l-none":t.addOn,"rounded-l-md":t.rightAddOn,"rounded-r-none":t.rightAddOn},"shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 placeholder-gray-300"]),disabled:t.disabled,name:t.name,placeholder:t.placeholder,type:t.type,onInput:o},null,42,Nt),[[e.vModelDynamic,n.value]]),t.rightAddOn?(e.openBlock(),e.createElementBlock("span",{key:1,onClick:i[2]||(i[2]=s=>t.$emit("rightAddOnClicked")),class:"inline-flex items-center px-3 rounded-r-md border border-l-0 border-gray-300 bg-gray-50 hover:bg-gray-200 text-gray-500 sm:text-sm cursor-pointer"},e.toDisplayString(t.rightAddOn),1)):e.createCommentVNode("",!0),e.createElementVNode("div",Vt,[t.icon?(e.openBlock(),e.createBlock(y,{key:0,icon:t.icon,color:t.color,loading:t.loading},null,8,["icon","color","loading"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(y,{icon:e.unref(q),color:"green",loading:t.loading},null,8,["icon","loading"]),[[e.vShow,t.color==="green"]]),e.withDirectives(e.createVNode(y,{icon:e.unref(_),color:"yellow",loading:t.loading},null,8,["icon","loading"]),[[e.vShow,t.color==="yellow"]]),e.withDirectives(e.createVNode(y,{icon:e.unref(S),color:"red",loading:t.loading},null,8,["icon","loading"]),[[e.vShow,t.color==="red"]])])],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-400":t.color==="gray","text-red-400":t.color==="red","text-yellow-400":t.color==="yellow","text-green-400":t.color==="green"},"mt-2 text-xs flex flex-row items-center"])},e.toDisplayString(t.error),3),[[e.vShow,t.error]])]))}}),Ct={key:0},_t={class:"flex justify-between"},$t={key:0,class:"block text-sm font-medium text-gray-700"},St={key:1,class:"text-[10px] text-gray-500 uppercase"},Dt={class:"space-y-1 flex flex-col items-center justify-center"},zt={class:"flex text-sm text-gray-600 flex-col sm:flex-row text-center"},Mt=["for"],Tt=["id","name","accept"],jt={class:"pl-1"},Lt={class:"text-xs text-gray-500 pb-4"},Ft={class:"mt-2 text-xs flex flex-row items-center text-red-300"},Ot={key:1,class:"animate-pulse"},ce=e.defineComponent({__name:"uiInputFile",props:{name:{},id:{},requiredText:{},placeholder:{},dragAndDrop:{},fileTypesAndSizes:{},error:{},accept:{},icon:{default:et},loading:{type:Boolean,default:!0},label:{}},emits:["filesUploaded"],setup(d,{emit:a}){let l=e.ref("");const r=a,n=d,o=s=>{i(s.dataTransfer.files),r("filesUploaded",{id:n.id,files:s.dataTransfer.files})},t=s=>{i(s.target.files),r("filesUploaded",{id:n.id,files:s.target.files})},i=s=>{l.value="";let c=1;Object.values(s).forEach(u=>{c++,l.value+=u.name,c>=1&&c<s.length&&(l.value+=", ")})};return(s,c)=>s.loading?(e.openBlock(),e.createElementBlock("div",Ot,c[1]||(c[1]=[e.createElementVNode("div",{class:"flex justify-center items-center flex-col rounded-md border-2 border-dashed px-6 pt-5 pb-6 border-gray-200"},[e.createElementVNode("div",{class:"rounded-full h-20 w-20 bg-gray-200 mb-4"}),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/3 mb-3"}),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full md:w-1/4 mb-3"})],-1)]))):(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("div",_t,[s.label?(e.openBlock(),e.createElementBlock("label",$t,e.toDisplayString(s.label),1)):e.createCommentVNode("",!0),s.requiredText?(e.openBlock(),e.createElementBlock("span",St,e.toDisplayString(s.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([[{"mt-1":s.label},{"border-gray-300 hover:border-gray-400":!s.error},{"border-red-300 hover:border-red-400":s.error}],"dropArea flex justify-center rounded-md border-2 border-dashed px-6 pt-5 pb-6"]),onDragover:c[0]||(c[0]=e.withModifiers(()=>{},["prevent"])),onDrop:e.withModifiers(o,["prevent"])},[e.createElementVNode("div",Dt,[e.createVNode(y,{icon:s.icon,size:"massive",color:"gray","aria-hidden":"true",class:"mb-4",loading:s.loading},null,8,["icon","loading"]),e.createElementVNode("div",zt,[e.createElementVNode("label",{for:s.id,class:"relative cursor-pointer rounded-md font-medium text-indigo-600 focus-within:outline-none focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 hover:text-indigo-500"},[e.createElementVNode("span",null,e.toDisplayString(s.placeholder),1),e.createElementVNode("input",{id:s.id,name:s.name,type:"file",class:"sr-only",accept:s.accept,multiple:"",onChange:t},null,40,Tt)],8,Mt),e.createElementVNode("p",jt,e.toDisplayString(s.dragAndDrop),1)]),e.createElementVNode("p",Lt,e.toDisplayString(s.fileTypesAndSizes),1),e.withDirectives(e.createElementVNode("p",{class:"font-bold text-xs uppercase block p-2 bg-gray-200 rounded"},e.toDisplayString(e.unref(l)),513),[[e.vShow,e.unref(l)!==null]])])],34),e.withDirectives(e.createElementVNode("p",Ft,[e.createVNode(y,{icon:e.unref(R),color:"red",class:"mr-2",loading:s.loading},null,8,["icon","loading"]),e.createTextVNode(" "+e.toDisplayString(s.error),1)],512),[[e.vShow,s.error]])]))}}),At={class:"flex justify-between"},It={key:0,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Yt={class:"relative"},Pt={key:1,class:"animate-pulse px-4 py-2.5 bg-gray-200 rounded-md flex justify-between items-center w-full"},J=e.defineComponent({__name:"uiSelect",props:{items:{},label:{},error:{},color:{default:"gray"},select:{},loading:{type:Boolean,default:!0},disabled:{type:Boolean},requiredText:{}},emits:["selectChanged"],setup(d,{expose:a,emit:l}){const r=e.ref(""),n=l,o=d,t=e.computed(()=>r.value===""?o.items:o.items.filter(u=>u.name.toLowerCase().includes(r.value.toLowerCase()))),i=u=>(u==null?void 0:u.name)??"",s=u=>{n("selectChanged",u)},c=e.computed({get:()=>o.select,set:u=>{s(u)}});return a({handleChange:s}),(u,m)=>u.loading?(e.openBlock(),e.createElementBlock("div",Pt,[m[3]||(m[3]=e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},null,-1)),e.createVNode(e.unref(H),{"aria-hidden":"true",class:"-mr-1 ml-2 h-5 w-5 text-gray-300 dark:text-gray-400"})])):(e.openBlock(),e.createBlock(e.unref(p.Combobox),{key:0,modelValue:c.value,"onUpdate:modelValue":[m[2]||(m[2]=v=>c.value=v),s],disabled:u.disabled,as:"div"},{default:e.withCtx(()=>[e.createElementVNode("div",At,[e.createVNode(e.unref(p.ComboboxLabel),{class:"block text-sm font-medium"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.label),1)]),_:1}),u.requiredText?(e.openBlock(),e.createElementBlock("span",It,e.toDisplayString(u.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Yt,[e.createVNode(e.unref(p.ComboboxInput),{onChange:m[0]||(m[0]=v=>r.value=v.target.value),onBlur:m[1]||(m[1]=v=>r.value=""),displayValue:i,class:e.normalizeClass([{"mt-1":u.requiredText||u.label,"border-gray-300":u.color==="gray","border-red-400":u.color==="red","border-yellow-400":u.color==="yellow","border-green-400":u.color==="green","bg-gray-100":u.disabled,"bg-white":!u.disabled,"text-black":u.color==="gray","text-gray-300":u.disabled,"text-red-400":u.color==="red","text-yellow-400":u.color==="yellow","text-green-400":u.color==="green"},"w-full rounded-md border py-2 pl-3 pr-10 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500 sm:text-sm"])},null,8,["class"]),e.createVNode(e.unref(p.ComboboxButton),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(H),{"aria-hidden":"true",class:"h-5 w-5 text-gray-400"})]),_:1}),t.value.length>0?(e.openBlock(),e.createBlock(e.unref(p.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:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,v=>(e.openBlock(),e.createBlock(e.unref(p.ComboboxOption),{key:v.id,value:v,as:"template"},{default:e.withCtx(({active:b,selected:f})=>[e.createElementVNode("li",{class:e.normalizeClass(["relative cursor-default select-none py-2 pl-3 pr-9",b?"bg-indigo-600 text-white":"text-gray-900"])},[e.createElementVNode("span",{class:e.normalizeClass(["block truncate",f&&"font-semibold"])},e.toDisplayString(v.name),3),f?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["absolute inset-y-0 right-0 flex items-center pr-4",b?"text-white":"text-indigo-600"])},[e.createVNode(e.unref(q),{"aria-hidden":"true",class:"h-5 w-5",loading:!0})],2)):e.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-400":u.color==="gray","text-red-400":u.color==="red","text-yellow-400":u.color==="yellow","text-green-400":u.color==="green"},"mt-2 text-xs flex flex-row items-center"])},e.toDisplayString(u.error),3),[[e.vShow,u.error]])]),_:1},8,["modelValue","disabled"]))}}),qt={key:1,class:"inline-flex items-center px-3 py-2.5 rounded text-xs font-medium leading-none animate-pulse bg-gray-200"},B=e.defineComponent({__name:"uiTag",props:{color:{default:"primary"},loading:{type:Boolean,default:!0},size:{default:"medium"},event:{},name:{},text:{}},emits:["tagEvent"],setup(d,{emit:a}){const l=a,r=d,n=()=>{r.event!=null&&l("tagEvent",r.event)};return(o,t)=>o.loading?(e.openBlock(),e.createElementBlock("div",qt,t[0]||(t[0]=[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"},null,-1)]))):(e.openBlock(),e.createElementBlock("span",{key:0,onClick:n,class:e.normalizeClass([{"bg-indigo-100 text-indigo-800 border border-indigo-200":o.color==="primary","hover:bg-indigo-200 cursor-pointer":o.event!==void 0&&o.color==="primary","bg-red-100 text-red-800 border border-red-200":o.color==="red","hover:bg-red-200 cursor-pointer":o.event!==void 0&&o.color==="red","bg-yellow-100 text-yellow-800 border border-yellow-200":o.color==="yellow","hover:bg-yellow-200 cursor-pointer":o.event!==void 0&&o.color==="yellow","bg-green-100 text-green-800 border border-green-200":o.color==="green","hover:bg-green-200 cursor-pointer":o.event!==void 0&&o.color==="green","bg-black text-white border border-black":o.color==="black","text-black border border-gray-200 bg-white":o.color==="white","px-3 py-2":o.size==="medium","px-2 pt-1 pb-0.5":o.size==="small","px-4 py-3":o.size==="big"},"inline-flex items-center rounded text-xs font-medium leading-none"])},[e.renderSlot(o.$slots,"default")],2))}}),Rt={key:0},Ht={class:"flex justify-between"},Ut={key:0,class:"block text-sm font-medium text-gray-700"},Zt={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Jt=["disabled","placeholder"],Wt={key:1,class:"animate-pulse"},ue=e.defineComponent({__name:"uiTextArea",props:{name:{},label:{},placeholder:{default:"..."},value:{},color:{default:"gray"},disabled:{type:Boolean,default:!1},error:{},loading:{type:Boolean,default:!0},requiredText:{}},emits:["inputChanged"],setup(d,{emit:a}){const l=a,r=d,n=t=>{l("inputChanged",t.target.value)},o=e.ref(r.value);return e.watch(()=>r.value,t=>{o.value=t,l("inputChanged",{name:r.name,value:o.value})}),(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",Wt,i[1]||(i[1]=[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 md:w-1/4 mb-1.5"},null,-1),e.createElementVNode("div",{class:"h-24 bg-gray-200 rounded-lg flex inline-flex items-center relative inline-block text-left w-full"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",Rt,[e.createElementVNode("div",Ht,[t.label?(e.openBlock(),e.createElementBlock("label",Ut,e.toDisplayString(t.label),1)):e.createCommentVNode("",!0),t.requiredText?(e.openBlock(),e.createElementBlock("span",Zt,e.toDisplayString(t.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass({"mt-1":t.label})},[e.withDirectives(e.createElementVNode("textarea",{disabled:t.disabled,rows:"4","onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),placeholder:t.placeholder,class:e.normalizeClass(["shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm rounded-md",{"border-gray-300":t.color==="gray","border-red-300":t.color==="red","border-yellow-400":t.color==="yellow","border-green-400":t.color==="green","bg-gray-100":t.disabled,"text-black":t.color==="black","text-red-300":t.color==="red","text-yellow-400":t.color==="yellow","text-green-400":t.color==="green"}]),onChange:n},null,42,Jt),[[e.vModelText,o.value]])],2),e.withDirectives(e.createElementVNode("p",{class:e.normalizeClass([{"text-gray-300":t.color==="gray","text-red-300":t.color==="red","text-yellow-400":t.color==="yellow","text-green-400":t.color==="green"},"mt-2 text-xs flex flex-row items-center"])},[e.createVNode(y,{icon:e.unref(R),color:"red",class:"mr-2",loading:!1},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(t.error),1)],2),[[e.vShow,t.error]])]))}}),Gt={class:"text-sm font-medium text-gray-900"},Qt={key:0,class:"text-sm text-gray-500 ml-2"},Kt={key:1,class:"animate-pulse flex items-center"},me=e.defineComponent({__name:"uiToggle",props:{item:{},checked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!0}},emits:["toggleChanged","actionClicked"],setup(d,{emit:a}){const l=d,r=e.ref(l.checked);return e.watch(()=>l.checked,n=>r.value=n),(n,o)=>n.loading?(e.openBlock(),e.createElementBlock("div",Kt,o[3]||(o[3]=[e.createElementVNode("div",{class:"relative bg-gray-200 rounded-full w-12 h-6 p-1 flex items-center"},[e.createElementVNode("div",{class:"rounded-full bg-gray-300 dark:bg-gray-400 h-4 w-4"})],-1),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-16 ml-2"},null,-1)]))):(e.openBlock(),e.createBlock(e.unref(p.SwitchGroup),{key:0,as:"div",class:"flex items-center relative"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.Switch),{disabled:n.disabled,onClick:o[0]||(o[0]=t=>n.$emit("toggleChanged",{item:n.item,active:!r.value})),modelValue:r.value,"onUpdate:modelValue":o[1]||(o[1]=t=>r.value=t),class:e.normalizeClass([r.value?"bg-indigo-600":"bg-gray-200","relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"])},{default:e.withCtx(()=>[e.createElementVNode("span",{"aria-hidden":"true",class:e.normalizeClass([r.value?"translate-x-5":"translate-x-0",n.disabled?"bg-gray-300":"","pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"])},null,2)]),_:1},8,["disabled","modelValue","class"]),e.createVNode(e.unref(p.SwitchLabel),{as:"span",class:"ml-3"},{default:e.withCtx(()=>[e.createElementVNode("span",Gt,e.toDisplayString(n.item.title),1),n.item.subtitle?(e.openBlock(),e.createElementBlock("span",Qt,e.toDisplayString(n.item.subtitle),1)):e.createCommentVNode("",!0)]),_:1}),n.item.action?(e.openBlock(),e.createElementBlock("span",{key:0,class:"cursor-pointer text-indigo-600 hover:text-indigo-400 uppercase text-xs absolute right-0 bottom-0.5",onClick:o[2]||(o[2]=t=>n.$emit("actionClicked",n.item))},e.toDisplayString(n.item.action),1)):e.createCommentVNode("",!0)]),_:1}))}}),Xt={key:0,class:"flex flex-col"},eo={class:"flex"},to={class:"flex-shrink-0"},oo={class:"ml-3"},lo={class:"mt-4"},no={class:"-mx-2 -my-1.5 flex"},ro=["onClick"],ao={key:1,class:"flex flex-col animate-pulse"},ge=e.defineComponent({__name:"uiAlert",props:{actions:{},title:{},type:{default:"info"},loading:{type:Boolean,default:!0}},emits:["alertEvent"],setup(d,{emit:a}){const l=a,r=n=>{l("alertEvent",n.event)};return(n,o)=>n.loading?(e.openBlock(),e.createElementBlock("div",ao,o[0]||(o[0]=[e.createStaticVNode('<div class="p-4 border-l-4 bg-gray-100 border-gray-400 rounded"><div class="flex"><div class="flex-shrink-0"><div class="h-6 w-6 animate-pulse rounded-full bg-gray-200 dark:bg-gray-300"></div></div><div class="ml-3 w-full"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-2/3 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-3/5"></div></div></div></div>',1)]))):(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-50 border-indigo-400":n.type==="info","bg-red-50 border-red-400":n.type==="danger","bg-yellow-50 border-yellow-400":n.type==="warning","bg-green-50 border-green-400":n.type==="success"},"p-4 border-l-4 rounded"])},[e.createElementVNode("div",eo,[e.createElementVNode("div",to,[n.type==="info"?(e.openBlock(),e.createBlock(e.unref(de),{key:0,class:"h-8 w-8 text-indigo-400","aria-hidden":"true"})):e.createCommentVNode("",!0),n.type==="danger"?(e.openBlock(),e.createBlock(e.unref(R),{key:1,class:"h-8 w-8 text-red-400","aria-hidden":"true"})):e.createCommentVNode("",!0),n.type==="warning"?(e.openBlock(),e.createBlock(e.unref(_),{key:2,class:"h-8 w-8 text-yellow-400","aria-hidden":"true"})):e.createCommentVNode("",!0),n.type==="success"?(e.openBlock(),e.createBlock(e.unref(se),{key:3,class:"h-8 w-8 text-green-400","aria-hidden":"true"})):e.createCommentVNode("",!0)]),e.createElementVNode("div",oo,[e.createElementVNode("h3",{class:e.normalizeClass([{"text-red-800":n.type==="danger","text-yellow-800":n.type==="warning","text-green-800":n.type==="success"},"text-sm font-medium"])},e.toDisplayString(n.title),3),e.createElementVNode("div",{class:e.normalizeClass([{"text-red-700":n.type==="danger","text-yellow-700":n.type==="warning","text-green-700":n.type==="success"},"mt-2 text-sm"])},[e.renderSlot(n.$slots,"default")],2),e.createElementVNode("div",lo,[e.createElementVNode("div",no,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.actions,(t,i)=>(e.openBlock(),e.createElementBlock("button",{onClick:s=>r(t),type:"button",key:i,class:e.normalizeClass([{"bg-green-50 text-green-800 hover:bg-green-100 focus:ring-green-600 focus:ring-offset-green-50":n.type==="success","bg-indigo-50 text-indigo-800 hover:bg-indigo-100 focus:ring-indigo-600 focus:ring-offset-indigo-50":n.type==="info","bg-red-50 text-red-800 hover:bg-red-100 focus:ring-red-600 focus:ring-offset-red-50":n.type==="danger","bg-yellow-50 text-yellow-800 hover:bg-yellow-100 focus:ring-yellow-600 focus:ring-offset-yellow-50":n.type==="warning"},"px-2 py-1.5 text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2"])},e.toDisplayString(t.name),11,ro))),128))])])])])],2)]))}}),so={key:0,class:"inline-flex","aria-label":"Breadcrumb"},io={role:"list",class:"flex items-center space-x-4 text-xs"},co={key:0},uo=["onClick"],mo={key:1,class:"flex items-center"},go=["onClick"],po={key:1,class:"flex flex-row items-center animate-pulse"},pe=e.defineComponent({__name:"uiBreadcrumbs",props:{pages:{},loading:{type:Boolean,default:!0}},emits:["breadCrumbClicked"],setup(d,{emit:a}){return(l,r)=>l.loading?(e.openBlock(),e.createElementBlock("div",po,r[0]||(r[0]=[e.createElementVNode("div",{class:"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4"},null,-1),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5 mr-4"},null,-1),e.createElementVNode("div",{class:"animate-pulse rounded-full bg-gray-200 dark:bg-gray-300 h-4 w-4 mr-4"},null,-1),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5"},null,-1)]))):(e.openBlock(),e.createElementBlock("nav",so,[e.createElementVNode("ol",io,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.pages,(n,o)=>(e.openBlock(),e.createElementBlock("li",{key:o},[o==0?(e.openBlock(),e.createElementBlock("div",co,[e.createElementVNode("p",{onClick:t=>l.$emit("breadCrumbClicked",n.routeName),class:"flex flex-row items-center justify-center text-indigo-600 hover:text-indigo-800 cursor-pointer"},[e.createVNode(e.unref(dt),{class:"flex-shrink-0 h-3 w-3 text-gray-400 mr-4","aria-hidden":"true"}),e.createElementVNode("span",null,e.toDisplayString(n.name),1)],8,uo)])):(e.openBlock(),e.createElementBlock("div",mo,[e.createVNode(e.unref(z),{class:"flex-shrink-0 h-3 w-3 text-gray-400","aria-hidden":"true"}),e.createElementVNode("span",{onClick:t=>l.$emit("breadCrumbClicked",n.routeName),class:e.normalizeClass(["cursor-pointer ml-4 text-xs text-gray-400 hover:text-gray-500",{"text-indigo-600 hover:text-indigo-800":!n.current}]),"aria-current":"page"},e.toDisplayString(n.name),11,go)]))]))),128))])]))}}),fo={class:"flex items-center flex-col sm:flex-row justify-center sm:justify-start"},ho=["src"],yo={class:"font-bold text-center sm:text-left"},vo={class:"mt-1 text-xs text-center sm:text-left"},ko={key:0,class:"flex flex-wrap mt-4 justify-center sm:justify-start"},bo={key:1,class:"rounded-lg bg-white shadow p-6 cursor-pointer animate-pulse"},fe=e.defineComponent({__name:"uiCard",props:{id:{},name:{},type:{},tags:{},logo:{},loading:{type:Boolean,default:!0}},emits:["cardSelected"],setup(d,{emit:a}){return(l,r)=>{var n;return l.loading?(e.openBlock(),e.createElementBlock("div",bo,r[1]||(r[1]=[e.createStaticVNode('<div class="flex items-center flex-col sm:flex-row justify-center sm:justify-start w-full"><div class="w-16 h-16 rounded-full bg-gray-200 flex self-center"></div><div class="w-full ml-4"><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full mt-4 sm:mt-0 sm:w-16 mb-2"></div><div class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-full sm:w-32"></div></div></div>',1)]))):(e.openBlock(),e.createElementBlock("div",{key:0,class:"rounded-lg bg-white shadow p-6 cursor-pointer",onClick:r[0]||(r[0]=o=>l.$emit("cardSelected",{id:l.id,name:l.name,type:l.type,tags:l.tags}))},[e.createElementVNode("div",fo,[e.createElementVNode("img",{class:"w-16 h-16 rounded-full mb-4 sm:mb-0 sm:mr-4",src:l.logo},null,8,ho),e.createElementVNode("div",null,[e.createElementVNode("h4",yo,e.toDisplayString(l.name),1),e.createElementVNode("p",vo,e.toDisplayString(l.type),1)])]),l.tags&&((n=l.tags)==null?void 0:n.length)>0?(e.openBlock(),e.createElementBlock("div",ko,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.tags,o=>(e.openBlock(),e.createBlock(B,{class:"mb-1 mr-1",key:o.name,color:o.color,loading:l.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.name),1)]),_:2},1032,["color","loading"]))),128))])):e.createCommentVNode("",!0)]))}}}),W=e.defineComponent({__name:"uiFilter",props:{items:{},position:{default:"left"},label:{},loading:{type:Boolean,default:!0}},emits:["filterSelected"],setup(d,{emit:a}){const l=a,r=d,n=t=>{o.value.forEach(i=>{i.active=i.value===t.value}),l("filterSelected",t)},o=e.ref(r.items);return(t,i)=>(e.openBlock(),e.createBlock(M,{class:"text-nowrap",loading:t.loading,onOptionSelected:i[0]||(i[0]=s=>n(s)),position:t.position,items:o.value,label:t.label},null,8,["loading","position","items","label"]))}}),wo={class:"fixed inset-0 z-10 overflow-y-auto"},xo={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},No={class:"absolute top-0 right-0 hidden pt-4 pr-4 sm:block"},Vo={class:"sm:flex sm:items-start"},Eo={class:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left sm:mr-4 sm:w-10/12 break-words"},Bo={class:"mt-4 text-gray-500 text-sm"},Co={key:0,class:"mt-8"},_o=["onClick"],G=e.defineComponent({__name:"uiModal",props:{title:{},actions:{},modalName:{},open:{type:Boolean,default:!1},type:{default:"default"},loading:{type:Boolean,default:!1}},emits:["modalAction"],setup(d,{emit:a}){const l=d,r=a,n=o=>{r("modalAction",{modal:l.modalName,action:o})};return(o,t)=>(e.openBlock(),e.createBlock(e.unref(p.TransitionRoot),{as:"template",show:o.open},{default:e.withCtx(()=>[e.createVNode(e.unref(p.Dialog),{as:"div",class:"relative z-10",onClose:t[1]||(t[1]=i=>n("close"))},{default:e.withCtx(()=>[e.createVNode(e.unref(p.TransitionChild),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:e.withCtx(()=>t[2]||(t[2]=[e.createElementVNode("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1)])),_:1}),e.createElementVNode("div",wo,[e.createElementVNode("div",xo,[e.createVNode(e.unref(p.TransitionChild),{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.DialogPanel),{class:"relative transform rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 w-9/12 sm:w-full sm:max-w-lg sm:p-6"},{default:e.withCtx(()=>[e.createElementVNode("div",No,[e.createElementVNode("button",{type:"button",class:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none",onClick:t[0]||(t[0]=i=>n("close"))},[t[3]||(t[3]=e.createElementVNode("span",{class:"sr-only"},"X",-1)),e.createVNode(y,{icon:e.unref(S),"aria-hidden":"true",loading:o.loading},null,8,["icon","loading"])])]),e.createElementVNode("div",Vo,[e.createElementVNode("div",{class:e.normalizeClass(["mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10",{"bg-red-100":o.type==="danger","bg-green-100":o.type==="success","bg-indigo-100":o.type==="default","bg-yellow-100":o.type==="warning"}])},[e.withDirectives(e.createVNode(e.unref(S),{class:"h-6 w-6 text-red-600","aria-hidden":"true"},null,512),[[e.vShow,o.type==="danger"]]),e.withDirectives(e.createVNode(e.unref(q),{class:"h-6 w-6 text-green-600","aria-hidden":"true"},null,512),[[e.vShow,o.type==="success"]]),e.withDirectives(e.createVNode(e.unref(_),{class:"h-6 w-6 text-yellow-600","aria-hidden":"true"},null,512),[[e.vShow,o.type==="warning"]]),e.withDirectives(e.createVNode(e.unref(it),{class:"h-6 w-6 text-indigo-600","aria-hidden":"true"},null,512),[[e.vShow,o.type==="default"]])],2),e.createElementVNode("div",Eo,[e.createVNode(e.unref(p.DialogTitle),{as:"h3",class:"text-lg font-medium leading-6 text-gray-900"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.title),1)]),_:1}),e.createElementVNode("div",Bo,[e.renderSlot(o.$slots,"default")]),o.actions?(e.openBlock(),e.createElementBlock("div",Co,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actions,(i,s)=>(e.openBlock(),e.createElementBlock("button",{key:s,type:"button",class:"inline-flex w-full justify-center rounded-md border border-transparent bg-indigo-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 mb-2 sm:mb-0 mr-2 sm:w-auto sm:text-sm",onClick:c=>n(i.value)},e.toDisplayString(i.name),9,_o))),128))])):e.createCommentVNode("",!0)])])]),_:3})]),_:3})])])]),_:3})]),_:3},8,["show"]))}}),$o={class:"w-full flex flex-col items-center space-y-4 sm:items-end"},So={key:0,class:"max-w-sm w-full bg-white shadow-lg rounded-lg pointer-events-auto ring-1 ring-black ring-opacity-5 overflow-hidden"},Do={class:"p-4"},zo={class:"flex items-start"},Mo={class:"flex-shrink-0 mt-0.5"},To={class:"ml-3 w-0 flex-1 pt-0.5"},jo={class:"font-medium text-gray-900"},Lo={class:"mt-1 text-sm text-gray-500"},Fo={class:"ml-4 flex-shrink-0 flex"},he=e.defineComponent({__name:"uiNotification",props:{type:{default:"info"},title:{},message:{},fixed:{type:Boolean,default:!0},show:{type:Boolean,default:!1}},emits:["closeNotification"],setup(d,{emit:a}){const l=d,r=e.computed(()=>l.show);return(n,o)=>(e.openBlock(),e.createElementBlock("div",{"aria-live":"assertive",class:e.normalizeClass([{fixed:n.fixed},"inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])},[e.createElementVNode("div",$o,[e.createVNode(e.Transition,{"enter-active-class":"transform ease-out duration-300 transition","enter-from-class":"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2","enter-to-class":"translate-y-0 opacity-100 sm:translate-x-0","leave-active-class":"transition ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:e.withCtx(()=>[r.value?(e.openBlock(),e.createElementBlock("div",So,[e.createElementVNode("div",Do,[e.createElementVNode("div",zo,[e.createElementVNode("div",Mo,[e.withDirectives(e.createVNode(e.unref(se),{"aria-hidden":"true",class:"h-6 w-6 text-green-400"},null,512),[[e.vShow,n.type==="success"]]),e.withDirectives(e.createVNode(e.unref(R),{"aria-hidden":"true",class:"h-6 w-6 text-red-400"},null,512),[[e.vShow,n.type==="danger"]]),e.withDirectives(e.createVNode(e.unref(_),{"aria-hidden":"true",class:"h-6 w-6 text-yellow-400"},null,512),[[e.vShow,n.type==="warning"]]),e.withDirectives(e.createVNode(e.unref(de),{"aria-hidden":"true",class:"h-6 w-6 text-indigo-600"},null,512),[[e.vShow,n.type==="info"]])]),e.createElementVNode("div",To,[e.createElementVNode("p",jo,e.toDisplayString(n.title),1),e.createElementVNode("p",Lo,e.toDisplayString(n.message),1)]),e.createElementVNode("div",Fo,[e.createElementVNode("button",{class:"bg-white rounded-md inline-flex text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",type:"button",onClick:o[0]||(o[0]=t=>n.$emit("closeNotification"))},[o[1]||(o[1]=e.createElementVNode("span",{class:"sr-only"},"Close",-1)),e.createVNode(e.unref(S),{"aria-hidden":"true",class:"h-5 w-5"})])])])])])):e.createCommentVNode("",!0)]),_:1})])],2))}}),Oo={key:0,role:"list",class:"divide-y divide-gray-100"},Ao={class:"min-w-0"},Io={class:"flex items-start gap-x-3"},Yo={class:"text-sm font-semibold leading-6 text-gray-900"},Po={class:"mt-1 flex items-center gap-x-2 text-xs leading-5 text-gray-500"},qo={class:"truncate"},Ro={class:"flex flex-none items-center gap-x-4"},Ho=["href"],Uo={class:"sr-only"},Zo={key:1,class:"divide-y divide-gray-100 animate-pulse"},ye=e.defineComponent({__name:"uiTaskList",props:{tasks:{},loading:{type:Boolean,default:!0}},setup(d){return(a,l)=>a.loading?(e.openBlock(),e.createElementBlock("ul",Zo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tasks,r=>(e.openBlock(),e.createElementBlock("li",{key:r.id,class:"flex items-center justify-between gap-x-6 py-5"},l[0]||(l[0]=[e.createStaticVNode('<div class="min-w-0 w-full"><div class="flex items-start gap-x-3"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"></p></div></div><div class="flex flex-none items-center gap-x-4"><div class="hidden rounded-md bg-gray-200 px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"><p class="h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-10"></p></div></div>',2)])))),128))])):(e.openBlock(),e.createElementBlock("ul",Oo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.tasks,r=>(e.openBlock(),e.createElementBlock("li",{key:r.id,class:"flex items-center justify-between gap-x-6 py-5"},[e.createElementVNode("div",Ao,[e.createElementVNode("div",Io,[e.createElementVNode("p",Yo,e.toDisplayString(r.name),1),e.createElementVNode("p",{class:e.normalizeClass([{"text-green-700 bg-green-50 ring-green-600/20":r.status==="Complete","text-gray-600 bg-gray-50 ring-gray-500/10":r.status==="In progress","text-yellow-800 bg-yellow-50 ring-yellow-600/20":r.status==="Incomplete"},"rounded-md whitespace-nowrap mt-0.5 px-1.5 py-0.5 text-xs font-medium ring-1 ring-inset"])},e.toDisplayString(r.statusLiteral),3)]),e.createElementVNode("div",Po,[e.createElementVNode("p",qo,e.toDisplayString(r.description),1)])]),e.createElementVNode("div",Ro,[e.createElementVNode("a",{href:r.href,class:"hidden rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:block"},[e.createTextVNode(e.toDisplayString(r.action),1),e.createElementVNode("span",Uo,", "+e.toDisplayString(r.name),1)],8,Ho)])]))),128))]))}});function Jo(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var F={exports:{}},Wo=F.exports,K;function Go(){return K||(K=1,function(d,a){(function(l,r){d.exports=r(k)})(Wo,function(l){function r(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var n=r(l),o={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(t){return t+"º"}};return n.default.locale(o,null,!0),o})}(F)),F.exports}Go();var O={exports:{}},Qo=O.exports,X;function Ko(){return X||(X=1,function(d,a){(function(l,r){d.exports=r(k)})(Qo,function(l){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var n=r(l),o={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function t(s,c,u){var m=o[u];return Array.isArray(m)&&(m=m[c?0:1]),m.replace("%d",s)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(s){return s+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};return n.default.locale(i,null,!0),i})}(O)),O.exports}Ko();var A={exports:{}},Xo=A.exports,ee;function el(){return ee||(ee=1,function(d,a){(function(l,r){d.exports=r()})(Xo,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(l){var r=["th","st","nd","rd"],n=l%100;return"["+l+(r[(n-20)%10]||r[n]||r[0])+"]"}}})}(A)),A.exports}el();var I={exports:{}},tl=I.exports,te;function ol(){return te||(te=1,function(d,a){(function(l,r){d.exports=r(k)})(tl,function(l){function r(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var n=r(l),o={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(t){return""+t+(t===1?"er":"")}};return n.default.locale(o,null,!0),o})}(I)),I.exports}ol();const T=(d,a)=>{const l=d.__vccOpts||d;for(const[r,n]of a)l[r]=n;return l},ll={name:"dateSelector",components:{ChevronLeftIcon:ie,ChevronRightIcon:z},computed:{currentDate(){return k(this.selectedDate).locale("es")},today(){return k(new Date).locale("es")},formatedDate(){return k(this.currentDate).locale("es").format("DD MMM YYYY")}},props:{selectedDate:{type:Object,required:!0}},methods:{selectDate(d,a){let l;if(a==="previous"){if(this.currentDate<=this.today)return;d==="day"&&(l=k(this.currentDate).subtract(1,"day")),d==="month"&&(l=k(this.currentDate).subtract(1,"month")),d==="year"&&(l=k(this.currentDate).subtract(1,"year")),l<=this.today&&(l=this.currentDate=this.today)}a==="next"&&(d==="day"&&(l=k(this.selectedDate).add(1,"day")),d==="month"&&(l=k(this.selectedDate).add(1,"month")),d==="year"&&(l=k(this.selectedDate).add(1,"year"))),this.$emit("dateSelected",l)}}},nl={class:"dateSelector flex items-center text-white flex-row"},rl={class:"pagination flex items-center my-1 md:my-0"},al={class:"date mx-4 font-bold text-center text-indigo-600 select-none uppercase"},sl={class:"pagination flex items-center my-1 sm:my-0"};function il(d,a,l,r,n,o){const t=e.resolveComponent("ChevronLeftIcon"),i=e.resolveComponent("ChevronRightIcon");return e.openBlock(),e.createElementBlock("div",nl,[e.createElementVNode("div",rl,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 cursor-pointer":o.currentDate>o.today,"bg-indigo-300":o.currentDate<=o.today},"previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),onClick:a[0]||(a[0]=s=>o.selectDate("year","previous"))},[e.createVNode(t,{class:"h-4"}),e.createVNode(t,{class:"h-4 -ml-3"}),e.createVNode(t,{class:"h-4 -ml-3"})],2),e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 cursor-pointer":o.currentDate>o.today,"bg-indigo-300":o.currentDate<=o.today},"previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),onClick:a[1]||(a[1]=s=>o.selectDate("month","previous"))},[e.createVNode(t,{class:"h-4"}),e.createVNode(t,{class:"h-4 -ml-3"})],2),e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-600 hover:bg-indigo-800 cursor-pointer":o.currentDate>o.today,"bg-indigo-300":o.currentDate<=o.today},"previousYear flex items-center p-1 rounded mx-0.5 shadow-sm"]),onClick:a[2]||(a[2]=s=>o.selectDate("day","previous"))},[e.createVNode(t,{class:"h-4"})],2)]),e.createElementVNode("div",al,e.toDisplayString(o.formatedDate),1),e.createElementVNode("div",sl,[e.createElementVNode("div",{class:"previousDay flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:a[3]||(a[3]=s=>o.selectDate("day","next"))},[e.createVNode(i,{class:"h-4"})]),e.createElementVNode("div",{class:"previousMonth flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:a[4]||(a[4]=s=>o.selectDate("month","next"))},[e.createVNode(i,{class:"h-4"}),e.createVNode(i,{class:"h-4 -ml-3"})]),e.createElementVNode("div",{class:"previousYear flex items-center cursor-pointer bg-indigo-600 p-1 rounded mx-0.5 hover:bg-indigo-800 shadow-sm",onClick:a[5]||(a[5]=s=>o.selectDate("year","next"))},[e.createVNode(i,{class:"h-4"}),e.createVNode(i,{class:"h-4 -ml-3"}),e.createVNode(i,{class:"h-4 -ml-3"})])])])}const dl=T(ll,[["render",il]]),cl={name:"SkeletonTable"},ul={class:"px-4 sm:px-6 lg:px-8 animate-pulse"},ml={class:"flow-root"},gl={class:"-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},pl={class:"inline-block min-w-full py-2 align-middle px-1"},fl={class:"overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},hl={class:"min-w-full divide-y divide-gray-300"},yl={class:"divide-y divide-gray-200 bg-white"};function vl(d,a,l,r,n,o){return e.openBlock(),e.createElementBlock("div",ul,[e.createElementVNode("div",ml,[e.createElementVNode("div",gl,[e.createElementVNode("div",pl,[e.createElementVNode("div",fl,[e.createElementVNode("table",hl,[a[1]||(a[1]=e.createElementVNode("thead",{class:"bg-gray-50"},[e.createElementVNode("tr",null,[e.createElementVNode("th",{scope:"col",class:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),e.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),e.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),e.createElementVNode("th",{scope:"col",class:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})]),e.createElementVNode("th",{scope:"col",class:"relative py-3.5 pl-3 pr-4 sm:pr-6"},[e.createElementVNode("span",{class:"sr-only"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})])])])],-1)),e.createElementVNode("tbody",yl,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,t=>e.createElementVNode("tr",{key:t},a[0]||(a[0]=[e.createElementVNode("td",{class:"whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),e.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),e.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),e.createElementVNode("td",{class:"whitespace-nowrap px-3 py-4 text-sm text-gray-500"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})],-1),e.createElementVNode("td",{class:"relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-6"},[e.createElementVNode("a",{href:"#",class:"text-indigo-600 hover:text-indigo-900"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"}),e.createElementVNode("span",{class:"sr-only"},[e.createTextVNode(", {"),e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-6"})])])],-1)]))),64))])])])])])])])}const ve=T(cl,[["render",vl]]);var Y={exports:{}},kl=Y.exports,oe;function bl(){return oe||(oe=1,function(d,a){(function(l,r){d.exports=r()})(kl,function(){return function(l,r,n){r.prototype.isToday=function(){var o="YYYY-MM-DD",t=n();return this.format(o)===t.format(o)}}})}(Y)),Y.exports}var wl=bl();const xl=Jo(wl),Nl={name:"calendarDay",props:{day:Object},computed:{currentDay(){return k.extend(xl),{dayName:k(this.day).locale("es").format("ddd"),day:k(this.day).locale("es").format("DD"),month:k(this.day).locale("es").format("MMM."),isWeekend:k(this.day).format("d")==6||k(this.day).format("d")==0,isToday:k(this.day).isToday()}}}},Vl={class:"text-xs"},El={class:"font-bold text-lg"},Bl={class:"text-xs font-medium"};function Cl(d,a,l,r,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["day select-none text-center",{"bg-indigo-200 text-white":o.currentDay.isWeekend,"bg-[#0ff] text-white":o.currentDay.isToday}])},[e.createElementVNode("p",Vl,e.toDisplayString(o.currentDay.dayName),1),e.createElementVNode("p",El,e.toDisplayString(o.currentDay.day),1),e.createElementVNode("p",Bl,e.toDisplayString(o.currentDay.month),1)],2)}const _l=T(Nl,[["render",Cl]]),$l={name:"dayPrice",props:{currency:String,price:Object,basePrice:Number,isBasePrice:{type:Boolean,default:!1}},computed:{currentDay(){return{isWeekend:k(this.price.date).format("d")==6||k(this.price.date).format("d")==0,price:this.price.price}}}},Sl={class:"priceDay"};function Dl(d,a,l,r,n,o){return e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("div",{class:e.normalizeClass([{"bg-indigo-200 text-white":o.currentDay.isWeekend,"bg-green-300 text-white":l.price.price>l.basePrice,"bg-yellow-300 text-white":l.price.price<l.basePrice},"select-none text-center rounded-lg p-1"])},e.toDisplayString(o.currentDay.price)+e.toDisplayString(l.currency),3)])}const L=T($l,[["render",Dl]]),zl={key:0,class:"px-4 sm:px-6 lg:px-8"},Ml={class:"flow-root"},Tl={class:"overflow-x-auto sm:-mx-6 lg:-mx-8 shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"},jl={class:"inline-block min-w-full align-middle"},Ll={class:"min-w-full text-sm"},Fl={class:"bg-white"},Ol={colspan:"6",scope:"colgroup",class:"bg-gray-50 py-2 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-3"},Al={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},Il={key:0},Yl={colspan:"6",class:"pl-4"},Pl={key:1},ql={colspan:"6",class:"pl-4"},Rl={key:2},Hl={colspan:"6",class:"pl-4"},Ul={colspan:"20",scope:"colgroup",class:"bg-gray-200 py-2 pl-4 pr-3 text-left font-semibold text-gray-900 relative"},Zl={key:0,class:"absolute top-0 left-12 flex h-12 items-center space-x-3 sm:left-48 bg-white shadow rounded px-4 py-1 z-10"},Jl=["onClick"],Wl={colspan:"2",scope:"colgroup",class:"relative bg-gray-100 py-3.5 pl-4 pr-3 text-left font-semibold text-gray-900"},Gl=["checked","indeterminate"],Ql={class:"pl-6"},Kl={colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},Xl={colspan:"2",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},en={colspan:"2",class:"relative py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6"},tn={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},on=["value"],ln={class:"pl-6"},nn={colspan:"2",class:"pl-4"},rn={colspan:"2",class:"pl-4"},ke=e.defineComponent({__name:"uiPriceCalendar",props:{loading:{type:Boolean},today:{},type:{},currency:{},category:{},rooms:{},actions:{},literals:{}},emits:["dateChanged","changeCategoryBulkPrices","changeCategorySelectionPrice","changeCategoryUpgradePrice","changeRoomPrice","tableAction"],setup(d,{emit:a}){const l=d,r=a,n=e.ref(new Date),o=e.ref(l.today),t=e.ref([]);e.watch(()=>l.today,g=>{o.value=g});const i=e.computed(()=>{let g=[];for(let N=0;N<14;N++)g.push(k(o.value).add(N,"day"));return g}),s=e.computed(()=>t.value.length>0&&t.value.length<l.rooms.length),c=g=>{k(g).isBefore(n.value)||(o.value=g,r("dateChanged",o.value))},u=g=>{let N=l.category.selectionPrices.find(x=>k(x.date).isSame(g.date));return N?N.price:g.price},m=g=>{t.value=g.target.checked?l.rooms.map(N=>N.id):[]},v=()=>r("changeCategoryBulkPrices"),b=g=>r("changeCategorySelectionPrice",g),f=g=>r("changeCategoryUpgradePrice",g),h=g=>r("tableAction",g),V=(g,N,x)=>r("changeRoomPrice",{price:g,roomId:N,roomName:x});return(g,N)=>{var x,j;return g.loading?(e.openBlock(),e.createBlock(ve,{key:1})):(e.openBlock(),e.createElementBlock("div",zl,[e.createElementVNode("div",Ml,[e.createElementVNode("div",Tl,[e.createElementVNode("div",jl,[e.createElementVNode("table",Ll,[e.createElementVNode("tbody",Fl,[e.createElementVNode("tr",null,[e.createElementVNode("th",Ol,[e.createVNode(dl,{selectedDate:o.value,onDateSelected:N[0]||(N[0]=w=>c(w))},null,8,["selectedDate"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(w,E)=>(e.openBlock(),e.createElementBlock("th",{scope:"col",key:E,class:"text-sm font-semibold text-gray-900 p-0"},[e.createVNode(_l,{class:"border-l border-gray-200 px-6 py-3",day:w},null,8,["day"])]))),128))]),e.createElementVNode("tr",null,[e.createElementVNode("th",Al,[e.createElementVNode("span",null,e.toDisplayString(g.literals.category)+" "+e.toDisplayString(g.category.name),1),e.createVNode($,{loading:g.loading,class:"ml-4",size:"small",onClick:v},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.literals.changeInBulk),1)]),_:1},8,["loading"])])]),g.type==="discounts"?(e.openBlock(),e.createElementBlock("tr",Il,[e.createElementVNode("td",Yl,e.toDisplayString(g.literals.pricesDiscount),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.category.selectionPrices,(w,E)=>(e.openBlock(),e.createElementBlock("td",{key:E,class:"p-0"},[e.createVNode(L,{onClick:D=>b(w),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:w,currency:g.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):e.createCommentVNode("",!0),g.type==="prices"?(e.openBlock(),e.createElementBlock("tr",Pl,[e.createElementVNode("td",ql,e.toDisplayString(g.literals.pricesSelection),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.category.selectionPrices,(w,E)=>(e.openBlock(),e.createElementBlock("td",{key:E,class:"p-0"},[e.createVNode(L,{onClick:D=>b(w),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",price:w,currency:g.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):e.createCommentVNode("",!0),g.type==="prices"?(e.openBlock(),e.createElementBlock("tr",Rl,[e.createElementVNode("td",Hl,e.toDisplayString(g.literals.pricesUpgrade),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.category.upgradePrices,(w,E)=>(e.openBlock(),e.createElementBlock("td",{key:E,class:"p-0"},[e.createVNode(L,{onClick:D=>f(w),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",price:w,currency:g.currency.symbol,isBasePrice:!0},null,8,["onClick","price","currency"])]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("tr",null,[e.createElementVNode("th",Ul,[((x=t.value)==null?void 0:x.length)>0&&((j=g.actions)==null?void 0:j.length)>0?(e.openBlock(),e.createElementBlock("div",Zl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.actions,(w,E)=>(e.openBlock(),e.createElementBlock("button",{onClick:D=>h({action:w.id,items:t.value}),key:E,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"},e.toDisplayString(w.name),9,Jl))),128))])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(g.literals.pricesSelection),1)])]),e.createElementVNode("tr",null,[e.createElementVNode("th",Wl,[e.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",checked:s.value||t.value.length===g.rooms.length,indeterminate:s.value,onChange:m},null,40,Gl),e.createElementVNode("span",Ql,e.toDisplayString(g.literals.room),1)]),e.createElementVNode("th",Kl,e.toDisplayString(g.literals.building),1),e.createElementVNode("th",Xl,e.toDisplayString(g.literals.floor),1),N[2]||(N[2]=e.createElementVNode("th",{colspan:"14",scope:"colgroup",class:"bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"},null,-1))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.rooms,w=>(e.openBlock(),e.createElementBlock("tr",{key:w.name,class:e.normalizeClass([{"even:bg-gray-100":g.type==="prices","odd:bg-gray-100":g.type==="discounts"}])},[e.createElementVNode("td",en,[t.value.length>0?(e.openBlock(),e.createElementBlock("div",tn)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{type:"checkbox",class:"absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",value:w.name,"onUpdate:modelValue":N[1]||(N[1]=E=>t.value=E)},null,8,on),[[e.vModelCheckbox,t.value]]),e.createElementVNode("span",ln,e.toDisplayString(w.name),1)]),e.createElementVNode("td",nn,e.toDisplayString(w.building),1),e.createElementVNode("td",rn,e.toDisplayString(w.floor),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.selectionPrices,(E,D)=>(e.openBlock(),e.createElementBlock("td",{class:"p-0",key:D},[e.createVNode(L,{onClick:ki=>V(E,w.id,w.name),class:"border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",price:E,currency:g.currency.symbol,basePrice:u(E)},null,8,["onClick","price","currency","basePrice"])]))),128))],2))),128))])])])])])]))}}}),an={class:"chart-header flex flex-row items-center w-full justify-between"},sn={class:"text-sm font-medium text-gray-500 truncate mr-8"},dn={key:0,class:"flex items-center gap-x-2 grow"},cn={class:"self-center ml-2"},un={class:"self-center ml-2"},mn={class:"self-center ml-2"},gn={class:"hidden sm:flex items-center"},pn={class:"w-1/2 min-w-0 flex-1"},fn=["max"],hn={class:"min-w-0 flex-1"},yn=["max"],vn={class:"chart-content relative"},be=e.defineComponent({__name:"uiChart",props:{labels:{},dates:{},title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{default:"area"},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection","maximizeChart"],setup(d,{emit:a}){const l=a,r=e.ref(new Date().toISOString().slice(0,new Date().toISOString().lastIndexOf(":"))),n=d;let o=e.reactive(n.dates||{from:"",to:r});e.watch(()=>n.dates,f=>{f&&(o=f)});let i={chart:{toolbar:{show:!1},zoom:{enabled:!1}},colors:function(){return n.isNps?[function({value:f,seriesIndex:h,dataPointIndex:V,w:g}){if(V<=5)return"#F87171";if(V>5&&V<=7)return"#eab308";if(V>=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}}};n.annotations&&(i.annotations={yaxis:[{y:n.annotations.high,borderColor:"#4f46e5",label:{borderColor:"#4f46e5",style:{color:"#fff",background:"#4f46e5"},text:n.annotations.text}}]}),n.type==="area"&&(i.tooltip={intersect:!0,shared:!1});const s=()=>(i.chart.stacked=n.stacked,{...i,...n.options,plotOptions:{bar:{horizontal:n.horizontal}}}),c=()=>{o.from!==""&&o.to!==""&&k(o.from).isBefore(k(o.to))&&l("selectedRange",{range:o,chartId:n.id})},u=e.computed(()=>n.series),m=e.computed(()=>s()),v=()=>l("chartUpdated"),b=(f,h,V)=>{l("dataPointSelection",{id:n.id,chartContext:h,config:V,event:f})};return(f,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+f.height+"px]","card chart apex-chart p-4 bg-white shadow rounded-lg overflow-hidden flex grow"])},[e.createElementVNode("div",an,[e.createElementVNode("div",sn,e.toDisplayString(f.title),1),f.isNps&&f.npsLiterals?(e.openBlock(),e.createElementBlock("div",dn,[e.createVNode(B,{size:"small",color:"red",loading:!1},{default:e.withCtx(()=>[e.createVNode(y,{icon:e.unref(at),loading:!1,color:"red"},null,8,["icon"]),e.createElementVNode("span",cn,e.toDisplayString(f.npsLiterals.unhappy),1)]),_:1}),e.createVNode(B,{size:"small",color:"yellow",loading:!1},{default:e.withCtx(()=>[e.createVNode(y,{icon:e.unref(rt),loading:!1,color:"yellow"},null,8,["icon"]),e.createElementVNode("span",un,e.toDisplayString(f.npsLiterals.neutral),1)]),_:1}),e.createVNode(B,{size:"small",color:"green",loading:!1},{default:e.withCtx(()=>[e.createVNode(y,{icon:e.unref(st),loading:!1,color:"green"},null,8,["icon"]),e.createElementVNode("span",mn,e.toDisplayString(f.npsLiterals.happy),1)]),_:1})])):e.createCommentVNode("",!0),e.createElementVNode("div",gn,[e.createElementVNode("div",pn,[e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":h[0]||(h[0]=V=>e.unref(o).from=V),max:r.value.toString(),onChange:c,name:"from",id:"from",class:"text-xs relative block w-full rounded rounded-r-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"},null,40,fn),[[e.vModelText,e.unref(o).from]])]),e.createElementVNode("div",hn,[e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":h[1]||(h[1]=V=>e.unref(o).to=V),max:r.value.toString(),onChange:c,name:"to",id:"to",class:"text-xs relative block w-full -mr-2 rounded rounded-l-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"},null,40,yn),[[e.vModelText,e.unref(o).to]])]),e.createVNode(y,{class:"ml-4 cursor-pointer",size:"big",loading:f.loading,icon:e.unref(re),onClick:h[2]||(h[2]=V=>f.$emit("maximizeChart",f.id))},null,8,["loading","icon"])])]),e.withDirectives(e.createElementVNode("div",vn,[e.createVNode(e.unref(U),{class:"chart",type:f.type,series:u.value,height:f.height,options:m.value,onUpdated:v,onMounted:v,onDataPointSelection:b},null,8,["type","series","height","options"])],512),[[e.vShow,!f.empty]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+f.height+"px]","w-full flex items-center justify-center flex-col"])},[e.createVNode(y,{icon:e.unref(_),color:"gray",loading:!1,size:"massive"},null,8,["icon"]),h[3]||(h[3]=e.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data for this time frame",-1))],2),[[e.vShow,f.empty]])],2),[[e.vShow,!f.loading]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+f.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"])},h[4]||(h[4]=[e.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[e.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),e.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),e.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1)]),2),[[e.vShow,f.loading]])],64))}}),kn={name:"uiFooter"},bn={class:"bg-white"};function wn(d,a,l,r,n,o){return e.openBlock(),e.createElementBlock("footer",bn,a[0]||(a[0]=[e.createElementVNode("div",{class:"mx-auto py-6 px-4 sm:px-6 md:flex md:items-center md:justify-between lg:px-8"},[e.createElementVNode("div",{class:"mt-8 md:mt-0 md:order-1"},[e.createElementVNode("p",{class:"text-center text-base text-gray-400"},"© Made by Hotelinking.")])],-1)]))}const we=T(kn,[["render",wn]]),xe=e.defineComponent({__name:"uiLoadingScreen",props:{title:{},message:{},fixed:{type:Boolean,default:!0}},setup(d){return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([{fixed:a.fixed},"load-screen h-full w-full top-0 left-0 z-[100] flex flex-col items-center justify-center bg-gray-50"])},[l[0]||(l[0]=e.createElementVNode("div",{class:"spinner h-12 w-12 mb-6"},[e.createElementVNode("img",{src:"https://images.hotelinking.com/ui/loader.gif",alt:"loading animation"})],-1)),e.withDirectives(e.createElementVNode("h2",{class:"text-xs font-bold text-center uppercase mb-2"},e.toDisplayString(a.title),513),[[e.vShow,a.title]]),e.withDirectives(e.createElementVNode("p",{class:"text-xs text-center uppercase md:w-1/4"},e.toDisplayString(a.message),513),[[e.vShow,a.message]])],2))}}),xn={key:0,class:"py-6 flex items-center justify-between"},Nn={class:"flex-1 flex justify-between sm:hidden"},Vn={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"},En={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"},Bn={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},Cn={class:"text-sm text-gray-700"},_n={class:"font-bold mx-1"},$n={class:"font-bold mx-1"},Sn={class:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination"},Dn={class:"sr-only"},zn=["onClick"],Mn={class:"sr-only"},Tn={key:1,class:"py-6 flex flex-row justify-between items-center animate-pulse"},Ne=e.defineComponent({__name:"uiPagination",props:{current:{},total:{},loading:{type:Boolean,default:!0}},emits:["changePage"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(3),o=e.computed(()=>Math.max(1,Number(r.current)-Number(n.value))),t=e.computed(()=>Math.min(Number(r.current)+Number(n.value),Number(r.total))),i=e.computed(()=>{let s=[];for(let c=Number(o.value);c<=Number(t.value);c++)s.push(c);return s});return(s,c)=>s.loading?(e.openBlock(),e.createElementBlock("div",Tn,c[2]||(c[2]=[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/5"},null,-1),e.createElementVNode("div",{class:"h-10 w-32 bg-gray-200 rounded dark:bg-gray-300"},null,-1)]))):(e.openBlock(),e.createElementBlock("div",xn,[e.createElementVNode("div",Nn,[e.createElementVNode("a",Vn,[e.renderSlot(s.$slots,"previous")]),e.createElementVNode("a",En,[e.renderSlot(s.$slots,"next")])]),e.createElementVNode("div",Bn,[e.createElementVNode("div",null,[e.createElementVNode("p",Cn,[e.renderSlot(s.$slots,"showing"),e.createElementVNode("span",_n,e.toDisplayString(s.current),1),e.renderSlot(s.$slots,"of"),e.createElementVNode("span",$n,e.toDisplayString(s.total),1)])]),e.createElementVNode("div",null,[e.createElementVNode("nav",Sn,[e.withDirectives(e.createElementVNode("button",{ref:"test-first-button",onClick:c[0]||(c[0]=u=>l("changePage",s.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"},[e.createElementVNode("span",Dn,[e.renderSlot(s.$slots,"previous")]),e.createVNode(e.unref(ie),{class:"h-5 w-5","aria-hidden":"true"})],512),[[e.vShow,s.current!==1]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,u=>(e.openBlock(),e.createElementBlock("button",{onClick:m=>l("changePage",u),key:u,"aria-current":"page",class:e.normalizeClass([[u===s.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"])},e.toDisplayString(u),11,zn))),128)),e.withDirectives(e.createElementVNode("button",{ref:"test-last-button",onClick:c[1]||(c[1]=u=>l("changePage",s.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"},[e.createElementVNode("span",Mn,[e.renderSlot(s.$slots,"next")]),e.createVNode(e.unref(z),{class:"h-5 w-5","aria-hidden":"true"})],512),[[e.vShow,s.current!==s.total]])])])])]))}}),jn={class:"hidden md:flex md:flex-col sticky md:inset-y-0"},Ln={class:"flex flex-col flex-grow overflow-y-auto"},Fn={class:"grow flex flex-col"},On={class:"flex-1 space-y-1","aria-label":"Sidebar"},An={key:0},In=["onClick"],Yn={key:1,class:"text-left"},Pn={key:1,class:"flex-1 text-left"},qn={key:2,class:"flex-1"},Rn={key:0,class:"align-left"},Hn={key:1,class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},Un={class:"h-12 flex flex-row items-center"},Ve=e.defineComponent({__name:"uiSidebar",props:{navigation:{},filterNavigation:{},isFilterNavigation:{type:Boolean},loading:{type:Boolean,default:!0},logo:{}},emits:["sideBarClick"],setup(d,{emit:a}){const l=a;return(r,n)=>(e.openBlock(),e.createElementBlock("div",jn,[e.createElementVNode("div",Ln,[e.createElementVNode("div",Fn,[e.createElementVNode("nav",On,[r.loading?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},e.renderList(5,o=>e.createElementVNode("div",Un,n[1]||(n[1]=[e.createElementVNode("div",{class:"w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4"},null,-1),e.createElementVNode("div",{class:"h-3 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 grow"},null,-1)]))),64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.navigation,o=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:o.name},[o.children?(e.openBlock(),e.createBlock(e.unref(p.Disclosure),{key:1,as:"div",class:"space-y-1"},{default:e.withCtx(({open:t})=>[e.createVNode(e.unref(p.DisclosureButton),{class:e.normalizeClass([o.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:e.withCtx(()=>[o.icon?(e.openBlock(),e.createBlock(y,{key:0,loading:r.loading,icon:o.icon,class:e.normalizeClass([o.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"])):e.createCommentVNode("",!0),r.loading?(e.openBlock(),e.createElementBlock("div",qn,n[0]||(n[0]=[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2"},null,-1)]))):(e.openBlock(),e.createElementBlock("span",Pn,e.toDisplayString(o.name),1)),e.createVNode(e.unref(z),{class:e.normalizeClass([t?"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"]),e.createVNode(e.unref(p.DisclosurePanel),{class:"space-y-1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.children,i=>(e.openBlock(),e.createBlock(e.unref(p.DisclosureButton),{onClick:s=>l("sideBarClick",i.id),key:i.name,class:e.normalizeClass([i.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:e.withCtx(()=>[r.loading?(e.openBlock(),e.createElementBlock("div",Hn)):(e.openBlock(),e.createElementBlock("span",Rn,e.toDisplayString(i.name),1))]),_:2},1032,["onClick","class"]))),128))]),_:2},1024)]),_:2},1024)):(e.openBlock(),e.createElementBlock("div",An,[e.createElementVNode("button",{onClick:t=>l("sideBarClick",o.id),class:e.normalizeClass([o.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"])},[o.icon?(e.openBlock(),e.createBlock(y,{key:0,loading:r.loading,icon:o.icon,class:e.normalizeClass([o.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"])):e.createCommentVNode("",!0),r.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Yn,e.toDisplayString(o.name),1))],10,In)]))],64))),128))])])])]))}}),Zn={key:0},Jn={class:"ml-16 text-sm font-medium text-gray-500 truncate"},Wn={class:"ml-16 flex items-baseline pb-5"},Gn={class:"text-2xl font-semibold text-gray-900"},Qn={key:0,class:"text-black ml-2 flex items-baseline text-sm font-semibold"},Kn={class:"absolute bottom-0 inset-x-0 bg-gray-50 px-4 py-4 sm:px-6"},Xn={class:"text-sm"},er={key:1},tr={class:"relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full pb-6"},or={class:"absolute bg-gray-200 rounded-md p-3 animate-pulse"},Q=e.defineComponent({__name:"uiStats",props:{item:{},loading:{type:Boolean,default:!0}},emits:["statClick"],setup(d,{emit:a}){return(l,r)=>l.loading?(e.openBlock(),e.createElementBlock("div",er,[e.createElementVNode("div",tr,[e.createElementVNode("dt",null,[e.createElementVNode("div",or,[e.createVNode(y,{loading:l.loading,icon:l.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true"},null,8,["loading","icon"])]),r[1]||(r[1]=e.createElementVNode("div",{class:"ml-16"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 mb-4 animate-pulse"})],-1)),r[2]||(r[2]=e.createElementVNode("div",{class:"ml-16"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2 animate-pulse"})],-1))])])])):(e.openBlock(),e.createElementBlock("div",Zn,[e.createElementVNode("div",{class:e.normalizeClass(["relative bg-white pt-5 px-4 sm:pt-6 sm:px-6 shadow rounded-lg overflow-hidden h-full",{"pb-12":l.item.showFooter}])},[e.createElementVNode("dt",null,[e.createElementVNode("div",{class:e.normalizeClass(["absolute rounded-md p-3",{"bg-indigo-500":!l.item.color,"bg-green-500":l.item.color==="green","bg-red-500":l.item.color==="red","bg-yellow-500":l.item.color==="yellow","bg-cyan-300":l.item.color==="secondary"}])},[e.createVNode(y,{icon:l.item.icon,class:"h-6 w-6 text-white","aria-hidden":"true",loading:l.loading},null,8,["icon","loading"])],2),e.createElementVNode("p",Jn,e.toDisplayString(l.item.name),1)]),e.createElementVNode("dd",Wn,[e.createElementVNode("p",Gn,e.toDisplayString(l.item.stat),1),l.item.explanation?(e.openBlock(),e.createElementBlock("p",Qn,e.toDisplayString(l.item.explanation),1)):e.createCommentVNode("",!0),l.item.changeType?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass([{"text-green-600":l.item.changeType==="increase","text-red-600":l.item.changeType==="decrease","text-black":l.item.changeType==="neutral"},"ml-2 flex items-baseline text-sm font-semibold"])},[l.item.changeType==="increase"?(e.openBlock(),e.createBlock(e.unref(tt),{key:0,class:"self-center flex-shrink-0 h-3 w-3 text-green-500","aria-hidden":"true"})):e.createCommentVNode("",!0),l.item.changeType==="decrease"?(e.openBlock(),e.createBlock(e.unref(Xe),{key:1,class:"self-center flex-shrink-0 h-3 w-3 text-red-500","aria-hidden":"true"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(l.item.change),1)],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",Kn,[e.createElementVNode("div",Xn,[e.createElementVNode("span",{onClick:r[0]||(r[0]=n=>l.$emit("statClick",l.item.id)),class:"font-medium text-indigo-600 hover:text-indigo-500 cursor-pointer"},e.toDisplayString(l.item.actionText),1)])],512),[[e.vShow,l.item.showFooter]])])],2)]))}}),lr={key:0,class:"overflow-hidden bg-white shadow sm:rounded-lg"},nr={class:"px-4 py-5 sm:px-6"},rr={class:"text-lg font-medium leading-6 text-gray-900"},ar={class:"mt-1 max-w-2xl text-sm text-gray-500"},sr={class:"border-t border-gray-200"},ir={class:"text-sm font-medium text-gray-500"},dr={key:0,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-normal"},cr=["onClick"],ur={key:2,class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},mr={key:1,class:"overflow-hidden bg-white shadow sm:rounded-lg"},gr={class:"border-t border-gray-200"},Ee=e.defineComponent({__name:"uiStripedCard",props:{title:{},subtitle:{},items:{},loading:{type:Boolean,default:!0}},emits:["itemClicked"],setup(d){return(a,l)=>a.loading?(e.openBlock(),e.createElementBlock("div",mr,[l[1]||(l[1]=e.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)),e.createElementVNode("div",gr,[e.createElementVNode("dl",null,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,r=>e.createElementVNode("div",{key:r,class:e.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[r%2===0?"bg-gray-50":"bg-white"]])},l[0]||(l[0]=[e.createElementVNode("dt",{class:"text-sm font-medium text-gray-500"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"})],-1),e.createElementVNode("dd",{class:"mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0 break-words"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-12"})],-1)]),2)),64))])])])):(e.openBlock(),e.createElementBlock("div",lr,[e.createElementVNode("div",nr,[e.createElementVNode("h3",rr,e.toDisplayString(a.title),1),e.createElementVNode("p",ar,e.toDisplayString(a.subtitle),1)]),e.createElementVNode("div",sr,[e.createElementVNode("dl",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.items,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:e.normalizeClass(["px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6",[n%2===0?"bg-gray-50":"bg-white"]])},[e.createElementVNode("dt",ir,e.toDisplayString(r.title),1),r.type==="tags"?(e.openBlock(),e.createElementBlock("dd",dr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.tags,(o,t)=>(e.openBlock(),e.createBlock(B,{loading:a.loading,key:t,color:o.color,class:"mr-2 mb-2"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.text),1)]),_:2},1032,["loading","color"]))),128))])):r.type==="link"?(e.openBlock(),e.createElementBlock("dd",{key:1,class:"mt-1 text-sm text-indigo-600 hover:text-indigo-400 sm:col-span-2 sm:mt-0 cursor-pointer",onClick:o=>a.$emit("itemClicked",r.emits)},e.toDisplayString(r.text),9,cr)):(e.openBlock(),e.createElementBlock("dd",ur,e.toDisplayString(r.text),1))],2))),128))])])]))}}),pr={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"},fr={class:"ml-2"},hr={__name:"tooltip",props:{tip:{type:String,required:!0}},setup(d){return(a,l)=>(e.openBlock(),e.createElementBlock("div",pr,[l[0]||(l[0]=e.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"},[e.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)),e.createElementVNode("div",null,[e.createVNode(y,{icon:e.unref(ut),loading:!1,color:"white",size:"big"},null,8,["icon"])]),e.createElementVNode("span",fr,e.toDisplayString(d.tip),1)]))}},yr={key:0},vr={class:"flex flex-col"},kr={class:"-my-2 overflow-x-auto"},br={class:"inline-block min-w-full py-2 align-middle px-1"},wr={class:"relative overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg"},xr={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"},Nr=["onClick"],Vr={class:"min-w-full table-fixed divide-y divide-gray-300"},Er={class:"bg-gray-50"},Br=["checked","indeterminate"],Cr=["onMouseover","onMouseleave"],_r=["onClick"],$r={key:2,class:"group flex items-center uppercase text-xs"},Sr={class:"divide-y divide-gray-200 bg-white"},Dr={key:0,class:"absolute inset-y-0 left-0 w-0.5 bg-indigo-600"},zr=["value"],Mr=["onClick"],Tr=["href"],jr={key:3},Be=e.defineComponent({__name:"uiTable",props:{resetSelected:{type:Boolean,default:!1},orderedBy:{},orderDirection:{default:"desc"},loading:{type:Boolean,default:!0},header:{},items:{},actions:{}},emits:["tableAction","orderBy","customEmit","selectedItemsDeleted"],setup(d,{emit:a}){let l=e.ref([]),r=e.ref(""),n=e.ref(!1);const o=a,t=d,i=e.computed(()=>l.value.length>0&&l.value.length<t.items.length),s=(m,v)=>{r.value!==m&&v&&(r.value=m),v||(r.value=void 0)},c=m=>{l.value=m.target.checked?t.items.map(v=>v.id):[]},u=m=>{o("customEmit",m)};return e.watch(()=>t.resetSelected,m=>{n.value=m,m&&n.value&&(l.value=[],n.value=!m,o("selectedItemsDeleted"))}),(m,v)=>{var b,f;return m.loading?(e.openBlock(),e.createBlock(ve,{key:1})):(e.openBlock(),e.createElementBlock("div",yr,[e.createElementVNode("div",vr,[e.createElementVNode("div",kr,[e.createElementVNode("div",br,[e.createElementVNode("div",wr,[((b=e.unref(l))==null?void 0:b.length)>0&&((f=m.actions)==null?void 0:f.length)>0?(e.openBlock(),e.createElementBlock("div",xr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.actions,(h,V)=>(e.openBlock(),e.createElementBlock("button",{onClick:g=>m.$emit("tableAction",{action:h.id,items:e.unref(l)}),key:V,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"},e.toDisplayString(h.name),9,Nr))),128))])):e.createCommentVNode("",!0),e.createElementVNode("table",Vr,[e.createElementVNode("thead",Er,[e.createElementVNode("tr",null,[e.createElementVNode("th",{scope:"col",class:e.normalizeClass([m.actions?"px-6 sm:px-8":"px-3","relative"])},[m.actions?(e.openBlock(),e.createElementBlock("input",{key:0,checked:i.value||e.unref(l).length===m.items.length,indeterminate:i.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:c},null,40,Br)):e.createCommentVNode("",!0)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.header,(h,V)=>(e.openBlock(),e.createElementBlock("th",{key:V,class:"py-3.5 pr-3 text-left font-semibold text-gray-900 relative",scope:"col",onMouseover:g=>s(h.name,!0),onMouseleave:g=>s(h.name,!1)},[h.tooltip?e.withDirectives((e.openBlock(),e.createBlock(hr,{key:0,tip:h.tooltip},null,8,["tip"])),[[e.vShow,e.unref(r)===h.name]]):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("button",{key:1,class:"group flex items-center uppercase text-xs relative text-nowrap",onClick:g=>o("orderBy",{value:h.value,orderDirection:m.orderDirection==="asc"?"desc":"asc"})},[e.createElementVNode("span",null,e.toDisplayString(h.name),1),e.createElementVNode("span",{class:e.normalizeClass([[h.value===m.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"])},[e.createVNode(y,{icon:m.orderDirection==="asc"?e.unref(P):e.unref(nt),loading:m.loading,color:h.value===m.orderedBy?"white":"primary"},null,8,["icon","loading","color"])],2)],8,_r)):(e.openBlock(),e.createElementBlock("p",$r,[e.createElementVNode("span",null,e.toDisplayString(h.name),1)]))],40,Cr))),128))])]),e.createElementVNode("tbody",Sr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.items,(h,V)=>{var g,N;return e.openBlock(),e.createElementBlock("tr",{key:h.id,class:e.normalizeClass([e.unref(l).includes(h.id)&&"bg-gray-50",V%2==0?void 0:"bg-gray-50"])},[e.createElementVNode("td",{class:e.normalizeClass([((g=m.actions)==null?void 0:g.length)>0?"w-2":"w-0","relative"])},[e.unref(l).includes(h.id)?(e.openBlock(),e.createElementBlock("div",Dr)):e.createCommentVNode("",!0),((N=m.actions)==null?void 0:N.length)>0?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":v[0]||(v[0]=x=>e.isRef(l)?l.value=x:l=x),value:h.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,zr)),[[e.vModelCheckbox,e.unref(l)]]):e.createCommentVNode("",!0)],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.row,(x,j)=>(e.openBlock(),e.createElementBlock("td",{key:j,class:e.normalizeClass(["whitespace-nowrap py-4 pr-3 text-sm",e.unref(l).includes(h.id)?"text-indigo-600":"text-gray-900"])},[typeof x=="object"&&x.type==="tag"?(e.openBlock(),e.createBlock(B,{key:0,loading:m.loading,color:x.color},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.content),1)]),_:2},1032,["loading","color"])):typeof x=="object"&&x.type==="link"?(e.openBlock(),e.createElementBlock("span",{key:1,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",onClick:w=>u(x)},e.toDisplayString(x.content),9,Mr)):typeof x=="object"&&x.type==="href"?(e.openBlock(),e.createElementBlock("a",{key:2,class:"text-indigo-600 hover:text-indigo-400 cursor-pointer",href:x.href},e.toDisplayString(x.content),9,Tr)):(e.openBlock(),e.createElementBlock("span",jr,e.toDisplayString(x),1))],2))),128))],2)}),128))])])])])])])]))}}}),Lr={class:"lg:hidden"},Fr=["value"],Or={class:"hidden lg:block"},Ar={class:"border-b border-gray-200"},Ir={class:"-mb-px flex space-x-8","aria-label":"Tabs"},Yr=["onClick","aria-current"],Ce=e.defineComponent({__name:"uiTabs",props:{tabs:{}},emits:["tabClicked"],setup(d,{emit:a}){const l=a,r=n=>{const o=n.target;o.value&&l("tabClicked",o.value)};return(n,o)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Lr,[e.createElementVNode("select",{onChange:o[0]||(o[0]=t=>r(t)),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"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,t=>(e.openBlock(),e.createElementBlock("option",{value:t.id,key:t.name},e.toDisplayString(t.name),9,Fr))),128))],32)]),e.createElementVNode("div",Or,[e.createElementVNode("div",Ar,[e.createElementVNode("nav",Ir,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.tabs,t=>(e.openBlock(),e.createElementBlock("a",{key:t.name,onClick:i=>l("tabClicked",t.id),class:e.normalizeClass([t.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":t.current?"page":void 0},[e.createTextVNode(e.toDisplayString(t.name)+" ",1),t.count?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([t.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"])},e.toDisplayString(t.count),3)):e.createCommentVNode("",!0)],10,Yr))),128))])])])]))}}),Pr={class:"px-4 py-5 sm:px-6"},qr={class:"text-xl font-bold"},Rr={key:0,class:"px-4 py-5 sm:p-6"},Hr={class:"flow-root"},Ur={class:"relative pb-8"},Zr={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},Jr={class:"relative flex space-x-3"},Wr={class:"min-w-0 flex-1 pt-1.5 flex justify-between space-x-4 items-center"},Gr={class:"text-sm text-gray-500"},Qr=["onClick"],Kr={class:"text-right text-sm whitespace-nowrap text-gray-500"},Xr=["datetime"],ea={key:1,class:"bg-gray-50 px-4 py-4 sm:px-6 z-10"},ta={class:"text-sm"},oa={key:2,class:"h-full w-full flex items-center justify-center flex-col mb-5"},la={key:1,class:"bg-white overflow-hidden shadow rounded-lg"},na={class:"px-4 py-5 sm:p-6 animate-pulse"},ra={class:"flow-root"},aa={class:"-mb-8",role:"list"},sa={class:"relative pb-8"},ia={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},_e=e.defineComponent({__name:"uiTimeline",props:{name:{},timeline:{},height:{},empty:{type:Boolean,default:!1},loading:{type:Boolean,default:!0}},emits:["timelineEventClicked","timelineFooterClicked"],setup(d,{emit:a}){const l=d,r=e.reactive(l.timeline);return(n,o)=>n.loading?(e.openBlock(),e.createElementBlock("div",la,[o[3]||(o[3]=e.createElementVNode("div",{class:"px-4 py-5 sm:px-6 animate-pulse"},[e.createElementVNode("h1",{class:"text-xl font-bold"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"})])],-1)),e.createElementVNode("div",na,[e.createElementVNode("div",ra,[e.createElementVNode("ul",aa,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(10,(t,i)=>e.createElementVNode("li",{key:i},[e.createElementVNode("div",sa,[t!==10?(e.openBlock(),e.createElementBlock("span",ia)):e.createCommentVNode("",!0),o[2]||(o[2]=e.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))])])),64))])])]),o[4]||(o[4]=e.createElementVNode("div",{class:"bg-gray-50 px-4 py-4 sm:px-6 z-10 animate-pulse"},[e.createElementVNode("div",{class:"text-sm"},[e.createElementVNode("div",{class:"h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/4"})])],-1))])):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["h-["+n.height+"px]","bg-white overflow-hidden shadow rounded-lg"])},[e.createElementVNode("div",Pr,[e.createElementVNode("h1",qr,e.toDisplayString(n.name),1)]),r.items?(e.openBlock(),e.createElementBlock("div",Rr,[e.createElementVNode("div",Hr,[e.createVNode(e.TransitionGroup,{name:"list",tag:"ul",class:"-mb-8"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.items,(t,i)=>(e.openBlock(),e.createElementBlock("li",{key:i},[e.createElementVNode("div",Ur,[i<r.items.length-1?(e.openBlock(),e.createElementBlock("span",Zr)):e.createCommentVNode("",!0),e.createElementVNode("div",Jr,[e.createElementVNode("div",null,[e.createElementVNode("span",{class:e.normalizeClass([(t==null?void 0:t.iconBackground)||"bg-indigo-600","h-8 w-8 rounded-full flex items-center justify-center ring-4 ring-white"])},[e.createVNode(y,{loading:n.loading,icon:t==null?void 0:t.icon,"aria-hidden":"true",class:"h-5 w-5 text-white",color:"white"},null,8,["loading","icon"])],2)]),e.createElementVNode("div",Wr,[e.createElementVNode("div",null,[e.createElementVNode("p",Gr,[e.createElementVNode("a",{onClick:s=>n.$emit("timelineEventClicked",t.linkId),class:"font-medium text-indigo-600 hover:text-indigo-800 cursor-pointer"},e.toDisplayString(t==null?void 0:t.target),9,Qr),e.createTextVNode(" "+e.toDisplayString(t==null?void 0:t.content),1)])]),e.createElementVNode("div",Kr,[e.createElementVNode("time",{datetime:t==null?void 0:t.datetime},e.toDisplayString(t==null?void 0:t.date),9,Xr)])])])])]))),128))]),_:1})])])):e.createCommentVNode("",!0),r.items?(e.openBlock(),e.createElementBlock("div",ea,[e.createElementVNode("div",ta,[e.createElementVNode("a",{class:"cursor-pointer font-medium text-indigo-600 hover:text-indigo-500",onClick:o[0]||(o[0]=t=>n.$emit("timelineFooterClicked",n.timeline.id))},e.toDisplayString(n.timeline.footerText),1)])])):(e.openBlock(),e.createElementBlock("div",oa,[e.createVNode(y,{icon:e.unref(_),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),o[1]||(o[1]=e.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1))]))],2))}}),da={class:"mx-auto px-6 lg:px-8"},ca={class:"flex justify-between h-20"},ua={class:"flex"},ma={class:"-ml-2 mr-2 flex items-center lg:hidden"},ga=["src"],pa={class:"flex items-center"},fa={class:"lg:ml-4 lg:flex-shrink-0 lg:flex lg:items-center hidden"},ha={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute -top-0 -left-1"},ya=["src"],va=["onClick"],ka={class:"pt-2 pb-3 space-y-1"},ba=["onClick"],wa={class:"pt-4 pb-3 border-t border-gray-200"},xa={class:"flex items-center px-4 sm:px-6"},Na={class:"flex-shrink-0"},Va=["src"],Ea={key:0,class:"ml-3"},Ba={class:"text-base font-medium text-gray-800"},Ca={class:"text-sm font-medium text-gray-500"},_a={class:"mt-3 space-y-1"},$a=["onClick"],$e=e.defineComponent({__name:"uiTopbar",props:{logo:{},alerted:{type:Boolean},accountLogo:{},profileMenu:{},brand:{},navigation:{}},emits:["topBarClick"],setup(d,{emit:a}){return(l,r)=>(e.openBlock(),e.createBlock(e.unref(p.Disclosure),{as:"nav",class:"bg-white shadow z-10"},{default:e.withCtx(({open:n})=>[e.createElementVNode("div",da,[e.createElementVNode("div",ca,[e.createElementVNode("div",ua,[e.createElementVNode("div",ma,[e.createVNode(e.unref(p.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:e.withCtx(()=>[r[1]||(r[1]=e.createElementVNode("span",{class:"sr-only"},"Open main menu",-1)),n?(e.openBlock(),e.createBlock(e.unref(S),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(e.openBlock(),e.createBlock(e.unref(ae),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)]),e.createElementVNode("div",{class:"flex-shrink-0 flex items-center cursor-pointer",onClick:r[0]||(r[0]=o=>l.$emit("topBarClick","logo"))},[e.createElementVNode("img",{class:"h-10",src:l.logo,alt:"Hotelinking suite product logo"},null,8,ga)])]),e.createElementVNode("div",pa,[e.createElementVNode("div",fa,[e.createVNode(e.unref(p.Menu),{as:"div",class:"ml-3 relative"},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.withDirectives(e.createVNode(e.unref(p.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:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",ha,r[2]||(r[2]=[e.createElementVNode("span",{class:"animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75"},null,-1)]),512),[[e.vShow,l.alerted]]),e.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:l.accountLogo},null,8,ya)]),_:1},512),[[e.vShow,l.accountLogo]])]),e.createVNode(e.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:e.withCtx(()=>[e.createVNode(e.unref(p.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:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.profileMenu,o=>(e.openBlock(),e.createBlock(e.unref(p.MenuItem),{key:o.name},{default:e.withCtx(({active:t})=>[e.createElementVNode("p",{onClick:i=>l.$emit("topBarClick",o.id),class:e.normalizeClass(["cursor-pointer",[t?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700"]])},e.toDisplayString(o.name),11,va)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])])]),e.createVNode(e.unref(p.DisclosurePanel),{class:"lg:hidden"},{default:e.withCtx(()=>[e.createElementVNode("div",ka,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.navigation,o=>(e.openBlock(),e.createBlock(e.unref(p.DisclosureButton),{as:"template",key:o.name,class:e.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":o.current&&o.current===!0,"border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700":!o.current}])},{default:e.withCtx(()=>[e.createElementVNode("p",{onClick:t=>l.$emit("topBarClick",o.id)},e.toDisplayString(o.name),9,ba)]),_:2},1032,["class"]))),128))]),e.createElementVNode("div",wa,[e.createElementVNode("div",xa,[e.createElementVNode("div",Na,[e.createElementVNode("img",{class:"h-10 w-10 rounded-full",src:l.accountLogo},null,8,Va)]),l.brand?(e.openBlock(),e.createElementBlock("div",Ea,[e.createElementVNode("div",Ba,e.toDisplayString(l.brand.title),1),e.createElementVNode("div",Ca,e.toDisplayString(l.brand.subtitle),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",_a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.profileMenu,o=>(e.openBlock(),e.createBlock(e.unref(p.DisclosureButton),{as:"template",key:o.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:e.withCtx(()=>[e.createElementVNode("p",{onClick:t=>l.$emit("topBarClick",o.id)},e.toDisplayString(o.name),9,$a)]),_:2},1024))),128))])])]),_:1})]),_:1}))}}),Sa={class:"chart-selector flex flex-row items-center justify-center"},Da=e.defineComponent({__name:"RangeSelector",props:{range:{type:String}},emits:["rangeSelected"],setup(d,{emit:a}){const l=a,r=d;let n=e.computed(()=>r.range);const o=t=>{n=t,l("rangeSelected",t)};return(t,i)=>(e.openBlock(),e.createElementBlock("ul",Sa,[e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(n)==="24h"}),onClick:i[0]||(i[0]=s=>o("24h"))}," 24H ",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(n)==="7d"}),onClick:i[1]||(i[1]=s=>o("7d"))},"7D",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(n)==="1m"}),onClick:i[2]||(i[2]=s=>o("1m"))},"1M",2),e.createElementVNode("li",{class:e.normalizeClass({selected:e.unref(n)==="3m"}),onClick:i[3]||(i[3]=s=>o("3m"))},"3M",2)]))}}),za={class:"chart-header flex flex-row justify-between"},Ma={class:"text-sm font-medium text-gray-500 truncate"},Ta={class:"chart-content"},ja={class:"h-full w-full flex items-center justify-center flex-col"},La={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},Se=e.defineComponent({__name:"uiFunnelChartV2",props:{labels:{},dates:{},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","maximizeChart"],setup(d,{emit:a}){const l=a,r=d;let n={chart:{type:"bar",toolbar:{show:!1},zoom:{enabled:!1}},colors:["#715aff"],dataLabels:{enabled:!0,formatter:function(c,u){return u.w.globals.labels[u.dataPointIndex]+": "+c}},markers:{strokeWidth:0,size:4,hover:{size:8}},plotOptions:{bar:{borderRadius:0,horizontal:!0,barHeight:"80%",isFunnel:!0}}};const o=e.computed(()=>({...r.options,...n})),t=e.computed(()=>r.series),i=()=>l("chartUpdated"),s=(c,u,m)=>{l("dataPointSelection",{id:r.id,chartContext:u,config:m,event:c})};return(c,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+c.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[e.createElementVNode("div",za,[e.createElementVNode("div",Ma,e.toDisplayString(c.title),1),e.createVNode(Da,{range:c.range,onRangeSelected:u[0]||(u[0]=m=>c.$emit("selectedRange",{range:m,chartId:c.id}))},null,8,["range"])]),e.withDirectives(e.createElementVNode("div",Ta,[e.createVNode(e.unref(U),{type:c.type,series:t.value,width:"100%",height:c.height,options:o.value,onUpdated:i,onMounted:i,onDataPointSelection:s},null,8,["type","series","height","options"])],512),[[e.vShow,!c.empty]]),e.withDirectives(e.createElementVNode("div",ja,[e.createVNode(y,{icon:e.unref(_),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),u[1]||(u[1]=e.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1))],512),[[e.vShow,c.empty]])],2),[[e.vShow,!c.loading]]),e.withDirectives(e.createElementVNode("div",La,u[2]||(u[2]=[e.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[e.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),e.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),e.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1)]),512),[[e.vShow,c.loading]])],64))}}),Fa={class:"w-full flex flex-col items-center justify-center p-10 grow"},Oa={class:"text-2xl mt-4 font-bold"},Aa={class:"buttons flex flex-row items-center justify-center mt-8 gap-x-1"},De=e.defineComponent({__name:"uiNoResults",props:{title:{},message:{},actions:{},items:{},select:{}},emits:["action","noResultsOptionSelected"],setup(d){return(a,l)=>(e.openBlock(),e.createElementBlock("div",Fa,[e.createVNode(y,{loading:!1,icon:e.unref(_),size:"massive",color:"gray"},null,8,["icon"]),e.createElementVNode("h2",Oa,e.toDisplayString(a.title),1),e.createElementVNode("p",null,e.toDisplayString(a.message),1),e.createElementVNode("div",Aa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.actions,(r,n)=>(e.openBlock(),e.createBlock($,{key:n,loading:!1,onClick:o=>a.$emit("action",r.action)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.text),1)]),_:2},1032,["onClick"]))),128)),a.items?(e.openBlock(),e.createBlock(M,{key:0,items:a.items,loading:!1,onOptionSelected:l[0]||(l[0]=r=>a.$emit("noResultsOptionSelected",r))},null,8,["items"])):e.createCommentVNode("",!0)])]))}}),Ia={class:"fixed inset-0 overflow-hidden"},Ya={class:"absolute inset-0 overflow-hidden"},Pa={class:"pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10"},qa={class:"flex h-full flex-col overflow-y-scroll bg-white shadow-xl"},Ra={class:"bg-indigo-700 px-4 py-6 sm:px-6"},Ha={class:"flex items-center justify-between"},Ua={class:"ml-3 flex h-7 items-center"},Za={class:"mt-1"},Ja={class:"text-sm text-indigo-300"},Wa={class:"relative flex-1 px-4 py-6 sm:px-6"},ze=e.defineComponent({__name:"uiRightSidebar",props:{title:{},description:{},open:{type:Boolean,default:!1}},emits:["closeRightBar"],setup(d,{emit:a}){return(l,r)=>(e.openBlock(),e.createBlock(e.unref(p.TransitionRoot),{as:"template",show:l.open},{default:e.withCtx(()=>[e.createVNode(e.unref(p.Dialog),{as:"div",class:"relative z-10",onClose:r[1]||(r[1]=n=>l.$emit("closeRightBar"))},{default:e.withCtx(()=>[r[4]||(r[4]=e.createElementVNode("div",{class:"fixed inset-0"},null,-1)),e.createElementVNode("div",Ia,[e.createElementVNode("div",Ya,[e.createElementVNode("div",Pa,[e.createVNode(e.unref(p.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:e.withCtx(()=>[e.createVNode(e.unref(p.DialogPanel),{class:"pointer-events-auto w-screen max-w-md"},{default:e.withCtx(()=>[e.createElementVNode("div",qa,[e.createElementVNode("div",Ra,[e.createElementVNode("div",Ha,[e.createVNode(e.unref(p.DialogTitle),{class:"text-base font-semibold leading-6 text-white"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),_:1}),e.createElementVNode("div",Ua,[e.createElementVNode("button",{type:"button",class:"relative rounded-md bg-indigo-700 text-indigo-200 hover:text-white outline-none",onClick:r[0]||(r[0]=n=>l.$emit("closeRightBar"))},[r[2]||(r[2]=e.createElementVNode("span",{class:"absolute -inset-2.5"},null,-1)),r[3]||(r[3]=e.createElementVNode("span",{class:"sr-only"},"Close panel",-1)),e.createVNode(e.unref(S),{class:"h-6 w-6 ring-0","aria-hidden":"true"})])])]),e.createElementVNode("div",Za,[e.createElementVNode("p",Ja,e.toDisplayString(l.description),1)])]),e.createElementVNode("div",Wa,[e.renderSlot(l.$slots,"default")])])]),_:3})]),_:3})])])])]),_:3})]),_:3},8,["show"]))}}),Ga={class:"uiGallery"},Qa={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"},Ka={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"},Xa=["src"],es=["onClick"],ts={class:"pointer-events-none mt-2 block truncate text-sm font-medium text-gray-900"},os={class:"flex items-center justify-between"},ls={class:"pointer-events-none block text-sm font-medium text-gray-500"},ns={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"},Me=e.defineComponent({__name:"uiGallery",props:{galleryId:{},gallery:{},loading:{type:Boolean},literals:{}},emits:["modalAction","deleteImage","imgClicked"],setup(d,{emit:a}){const l=a,r=e.ref(!1),n=o=>{r.value=!1,l("modalAction",o)};return(o,t)=>(e.openBlock(),e.createElementBlock("div",Ga,[o.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(G,{key:0,open:r.value,modalName:"deleteAllImagesModal",title:o.literals.modalTitle,type:"warning",actions:[{value:"close",name:o.literals.closeAction},{value:`deleteGallery_${o.galleryId}`,name:o.literals.deleteAction}],onModalAction:t[0]||(t[0]=i=>n(i))},{default:e.withCtx(()=>[e.createElementVNode("p",null,e.toDisplayString(o.literals.modalText),1)]),_:1},8,["open","title","actions"])),o.loading?(e.openBlock(),e.createElementBlock("ul",ns,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(4,i=>e.createElementVNode("li",null,t[2]||(t[2]=[e.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),e.createElementVNode("p",{class:"animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-28 mt-4"},null,-1),e.createElementVNode("p",{class:"animate-pulse h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-14 mt-2"},null,-1)]))),64))])):(e.openBlock(),e.createElementBlock("ul",Qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.gallery,i=>(e.openBlock(),e.createElementBlock("li",{key:i.source,class:"relative"},[e.createElementVNode("div",Ka,[e.createElementVNode("img",{src:i.source,alt:"",class:"pointer-events-none object-cover group-hover:opacity-75"},null,8,Xa),e.createElementVNode("button",{type:"button",class:"absolute inset-0 focus:outline-none",onClick:s=>o.$emit("imgClicked",i)},null,8,es)]),e.createElementVNode("p",ts,e.toDisplayString(i.title),1),e.createElementVNode("div",os,[e.createElementVNode("p",ls,e.toDisplayString(i.size),1),e.createVNode(y,{class:"cursor-pointer",icon:e.unref(mt),color:"red",loading:!1,onClick:s=>o.$emit("deleteImage",i)},null,8,["icon","onClick"])])]))),128))])),o.gallery.length>0&&!o.loading?(e.openBlock(),e.createBlock($,{key:3,onClick:t[1]||(t[1]=i=>r.value=!0),class:"mt-8",loading:!1,color:"red",size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.literals.deleteAllImages),1)]),_:1})):e.createCommentVNode("",!0)]))}}),rs={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"},as={class:"flex flex-row items-center w-full"},ss={class:"content text-sm grow"},is={class:"font-bold"},ds={key:0},cs={class:"font-bold text-gray-400"},us={key:1,class:"animate-pulse"},Te=e.defineComponent({__name:"uiDragAndDrop",props:{elements:{},loading:{type:Boolean,default:!0}},emits:["dragAndDropUpdated"],setup(d,{emit:a}){const l=a,r=d;let n=e.ref(r.elements);e.watch(()=>r.elements,t=>{n.value=t});const o=t=>{l("dragAndDropUpdated",t)};return(t,i)=>t.loading?(e.openBlock(),e.createElementBlock("div",us,i[2]||(i[2]=[e.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)]))):(e.openBlock(),e.createBlock(e.unref(qe),{key:0,modelValue:e.unref(n),"onUpdate:modelValue":[i[0]||(i[0]=s=>e.isRef(n)?n.value=s:n=s),i[1]||(i[1]=s=>o(s))]},{item:e.withCtx(({item:s})=>[e.createElementVNode("div",rs,[e.createElementVNode("div",as,[e.createVNode(y,{icon:e.unref(ot),loading:!1,color:"gray",class:"mr-4",size:"big"},null,8,["icon"]),e.createElementVNode("div",ss,[e.createElementVNode("p",is,e.toDisplayString(s.name),1),s.description?(e.openBlock(),e.createElementBlock("p",ds,e.toDisplayString(s.description),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",cs,e.toDisplayString(e.unref(n).indexOf(s)+1),1)])])]),_:1},8,["modelValue"]))}}),ms={class:"chart-header flex flex-row justify-between"},gs={class:"text-sm font-medium text-gray-500 truncate"},ps={class:"hidden sm:flex items-center"},fs={class:"w-1/2 min-w-0 flex-1"},hs=["max"],ys={class:"min-w-0 flex-1"},vs=["max"],ks={class:"chart-content"},bs={class:"h-full w-full flex items-center justify-center flex-col"},ws={class:"card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow h-80"},je=e.defineComponent({__name:"uiCircleChart",props:{labels:{},dates:{},title:{},isNps:{type:Boolean},npsLiterals:{},id:{default:"nochartid"},type:{},series:{},options:{},loading:{type:Boolean,default:!0},empty:{type:Boolean,default:!1},range:{},horizontal:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},height:{default:320},annotations:{}},emits:["selectedRange","chartUpdated","dataPointSelection","maximizeChart"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(new Date().toISOString().slice(0,new Date().toISOString().lastIndexOf(":")));let o=e.reactive(r.dates||{from:"",to:n});e.watch(()=>r.dates,b=>{b&&(o=b)});let t={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 i=()=>({...t,...r.options}),s=e.computed(()=>r.series),c=e.computed(()=>i()),u=()=>l("chartUpdated"),m=(b,f,h)=>{l("dataPointSelection",{id:r.id,chartContext:f,config:h,event:b})},v=()=>{o.from!==""&&o.to!==""&&k(o.from).isBefore(k(o.to))&&l("selectedRange",{range:o,chartId:r.id})};return(b,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["h-["+b.height+"px]","card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])},[e.createElementVNode("div",ms,[e.createElementVNode("div",gs,e.toDisplayString(b.title),1),e.createElementVNode("div",ps,[e.createElementVNode("div",fs,[e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":f[0]||(f[0]=h=>e.unref(o).from=h),max:n.value.toString(),onChange:v,name:"from",id:"from",class:"text-xs relative block w-full rounded rounded-r-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"},null,40,hs),[[e.vModelText,e.unref(o).from]])]),e.createElementVNode("div",ys,[e.withDirectives(e.createElementVNode("input",{type:"datetime-local","onUpdate:modelValue":f[1]||(f[1]=h=>e.unref(o).to=h),max:n.value.toString(),onChange:v,name:"to",id:"to",class:"text-xs relative block w-full -mr-2 rounded rounded-l-none border-0 bg-transparent py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600"},null,40,vs),[[e.vModelText,e.unref(o).to]])]),e.createVNode(y,{class:"ml-4 cursor-pointer",size:"big",loading:b.loading,icon:e.unref(re),onClick:f[2]||(f[2]=h=>b.$emit("maximizeChart",b.id))},null,8,["loading","icon"])])]),e.withDirectives(e.createElementVNode("div",ks,[e.createVNode(e.unref(U),{class:"flex items-center justify-center mt-4",type:"donut",series:s.value,options:c.value,height:b.height-80,onUpdated:u,onMounted:u,onDataPointSelection:m},null,8,["series","options","height"])],512),[[e.vShow,!b.empty]]),e.withDirectives(e.createElementVNode("div",bs,[e.createVNode(y,{icon:e.unref(_),color:"gray",loading:!1,size:"huge"},null,8,["icon"]),f[3]||(f[3]=e.createElementVNode("p",{class:"text-xs uppercase text-gray-300 font-bold"},"No data",-1))],512),[[e.vShow,b.empty]])],2),[[e.vShow,!b.loading]]),e.withDirectives(e.createElementVNode("div",ws,f[4]||(f[4]=[e.createElementVNode("div",{role:"status",class:"w-full animate-pulse h-full flex flex-col"},[e.createElementVNode("div",{class:"h-2.5 w-36 bg-gray-200 rounded-full mb-2.5"}),e.createElementVNode("div",{class:"w-48 h-2 mb-6 bg-gray-200 rounded-full"}),e.createElementVNode("div",{class:"flex flex-row justify-between items-baseline grow gap-x-1"},[e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-4/5"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-full"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/3"}),e.createElementVNode("div",{class:"w-full bg-gray-200 rounded h-1/2"})])],-1)]),512),[[e.vShow,b.loading]])],64))}}),xs={key:0,class:"flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"},Ns={key:1,class:"flex flex-col lg:flex-row w-full gap-y-4 gap-x-2"},Le=e.defineComponent({__name:"uiDateRange",props:{id:{},loading:{type:Boolean},literals:{},values:{},color:{},error:{},disabled:{type:Boolean},label:{},placeholder:{}},emits:["uiDateRangeButtonClicked"],setup(d,{emit:a}){const l=d,r=e.ref(new Date().toISOString().slice(0,new Date().toISOString().lastIndexOf(":")));let n=e.reactive(l.values||{from:"",to:r});const o=a;e.watch(()=>l.values,i=>{i&&(n=i)});const t=()=>{o("uiDateRangeButtonClicked",n)};return(i,s)=>i.loading?(e.openBlock(),e.createElementBlock("div",Ns,[e.createVNode(C,{name:"dateFrom",loading:!0}),e.createVNode(C,{name:"dateTo",loading:!0}),e.createVNode($,{loading:!0},{default:e.withCtx(()=>s[2]||(s[2]=[e.createTextVNode("Search")])),_:1})])):(e.openBlock(),e.createElementBlock("div",xs,[e.createVNode(C,{type:"datetime-local",loading:!1,addOn:i.literals.from,name:`dateFrom_${i.id}`,color:i.color,value:e.unref(n).from.toString(),error:i.error,disabled:i.disabled,label:i.label,max:r.value.toString(),onInputChanged:s[0]||(s[0]=c=>e.unref(n).from=c.value)},null,8,["addOn","name","color","value","error","disabled","label","max"]),e.createVNode(C,{type:"datetime-local",loading:!1,class:e.normalizeClass([{"mt-6":i.label}]),addOn:i.literals.to,name:`dateTo_${i.id}`,color:i.color,value:e.unref(n).to.toString(),error:i.error,disabled:i.disabled,label:void 0,max:r.value.toString(),onInputChanged:s[1]||(s[1]=c=>e.unref(n).to=c.value)},null,8,["class","addOn","name","color","value","error","disabled","max"]),e.createVNode($,{disabled:i.disabled,color:"primary",loading:!1,class:e.normalizeClass([{"mt-6":i.label},"h-10"]),onClick:t},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.literals.search),1)]),_:1},8,["disabled","class"])]))}}),Vs={class:"flex justify-between items-center"},Es={key:0,class:"block text-sm font-medium text-gray-700"},Bs={key:1,class:"text-[10px] text-gray-500 uppercase justify-self-end"},Cs={key:1,class:"h-2 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 w-full"},Fe=e.defineComponent({__name:"uiRangeSlider",props:{loading:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},min:{},max:{},sliderValue:{},label:{},requiredText:{}},emits:["sliderUpdated"],setup(d,{emit:a}){const l=a,r=d,n=e.ref(r.sliderValue);return(o,t)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",Vs,[o.label?(e.openBlock(),e.createElementBlock("label",Es,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0),o.requiredText?(e.openBlock(),e.createElementBlock("span",Bs,e.toDisplayString(o.requiredText),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass([{"mt-1":o.label},"pt-16 px-6 pb-6 bg-gray-50 border border-gray-300 rounded-lg shadow-sm"])},[o.loading?(e.openBlock(),e.createElementBlock("p",Cs)):(e.openBlock(),e.createBlock(e.unref(Re),{key:0,modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=i=>n.value=i),min:o.min,max:o.max,disabled:o.disabled,onChange:t[1]||(t[1]=i=>l("sliderUpdated",i)),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)]))}}),_s={class:"mt-1 mb-8 text-sm text-gray-500"},Oe=e.defineComponent({__name:"uiSectionTitle",props:{title:{},description:{}},setup(d){return(a,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h3",{class:e.normalizeClass(["text-lg font-medium leading-6 text-gray-900",{"mb-8":a.description===void 0}])},e.toDisplayString(a.title),3),e.createElementVNode("p",_s,e.toDisplayString(a.description),1)],64))}}),$s={key:0,class:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"},Ss={class:"flex flex-1 flex-col p-8"},Ds={class:"text-2xl font-bold text-gray-900"},zs={class:"mt-1 flex flex-grow flex-col justify-between"},Ms={class:"mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center"},Ts={key:1,class:"col-span-1 flex flex-col divide-y divide-gray-200 rounded-lg bg-white text-center shadow"},js={class:"flex flex-1 flex-col p-8"},Ls={class:"rounded-md p-3 flex items-center justify-center mx-auto mb-4 bg-gray-200"},Fs={class:"mt-1 flex flex-grow flex-col justify-between"},Os={class:"mt-3 flex flex-wrap gap-x-1 gap-y-1 justify-center"},Ae=e.defineComponent({__name:"uiDeviceStatus",props:{id:{},name:{},icon:{},color:{},qty:{default:0},tags:{},loading:{type:Boolean,default:!0}},emits:["deviceStatusTagClicked","deviceStatusQtyClicked"],setup(d,{emit:a}){return(l,r)=>l.loading?(e.openBlock(),e.createElementBlock("div",Ts,[e.createElementVNode("div",js,[e.createElementVNode("div",Ls,[e.createVNode(y,{icon:l.icon,size:"huge",class:"text-white","aria-hidden":"true",loading:l.loading},null,8,["icon","loading"])]),r[3]||(r[3]=e.createElementVNode("div",{class:"h-4 bg-gray-200 rounded-full dark:bg-gray-300 w-1/3 mx-auto"},null,-1)),e.createElementVNode("dl",Fs,[e.createElementVNode("dd",Os,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.tags,(n,o)=>(e.openBlock(),e.createBlock(B,{key:o,loading:l.loading,event:n.event,color:n.color,onTagEvent:r[2]||(r[2]=t=>l.$emit("deviceStatusTagClicked",t))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.name),1)]),_:2},1032,["loading","event","color"]))),128))])])])])):(e.openBlock(),e.createElementBlock("div",$s,[e.createElementVNode("div",Ss,[e.createElementVNode("div",{class:e.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"}])},[e.createVNode(y,{icon:l.icon,size:"huge",class:"text-white","aria-hidden":"true",loading:!1},null,8,["icon"])],2),e.createElementVNode("h3",Ds,[e.createTextVNode(e.toDisplayString(l.name)+" ",1),e.withDirectives(e.createElementVNode("span",{class:"text-indigo-600 hover:text-indigo-900 cursor-pointer",onClick:r[0]||(r[0]=n=>l.$emit("deviceStatusQtyClicked",l.id))},"("+e.toDisplayString(l.qty)+")",513),[[e.vShow,l.qty>0]])]),e.createElementVNode("dl",zs,[e.createElementVNode("dd",Ms,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.tags,(n,o)=>(e.openBlock(),e.createBlock(B,{key:o,loading:!1,event:n.event,color:n.color,onTagEvent:r[1]||(r[1]=t=>l.$emit("deviceStatusTagClicked",t))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.name),1)]),_:2},1032,["event","color"]))),128))])])])]))}}),As={class:"flex flex-row grow border-r border-gray-200 bg-white pr-6"},Is={class:"bg-indigo-600 w-16 mr-6"},Ys=["onClick"],Ps={key:0,class:"flex flex-col grow gap-y-5 overflow-y-auto pr-6"},qs={class:"flex h-16 shrink-0 items-center"},Rs=["src"],Hs={class:"flex flex-1 flex-col"},Us={key:0,role:"list",class:"flex flex-1 flex-col gap-y-7 mb-4"},Zs={role:"list",class:"ml-2 space-y-1"},Js=["onClick"],Ws={key:1,role:"list",class:"flex flex-1 flex-col gap-y-7 mb-4"},Gs={class:"ml-2 space-y-1"},Qs={class:"font-bold mb-4"},Ks={key:1,class:"flex flex-col grow gap-y-5 overflow-y-auto pr-6"},Xs={class:"h-12 flex flex-row items-center"},le=e.defineComponent({__name:"uiSidebarV2",props:{navigation:{},filterNavigation:{},isFilterNavigation:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},logo:{},productsSidebar:{}},emits:["productBarClick","sideBarClick"],setup(d,{emit:a}){return(l,r)=>(e.openBlock(),e.createElementBlock("div",As,[e.createElementVNode("div",Is,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.productsSidebar,(n,o)=>(e.openBlock(),e.createElementBlock("li",{key:o,class:e.normalizeClass([{"!bg-indigo-900":n.active},"w-full h-16 flex items-center justify-center cursor-pointer bg-indigo-600 hover:bg-indigo-700"]),onClick:t=>l.$emit("productBarClick",n.name)},[e.createVNode(y,{icon:n.icon,loading:!1,color:"white",size:"bigger"},null,8,["icon"])],10,Ys))),128))])]),l.loading?(e.openBlock(),e.createElementBlock("div",Ks,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,n=>e.createElementVNode("div",Xs,r[0]||(r[0]=[e.createElementVNode("div",{class:"w-6 h-6 animate-pulse bg-gray-200 rounded-full dark:bg-gray-300 mr-4"},null,-1),e.createElementVNode("div",{class:"h-3 animate-pulse bg-gray-200 rounded-full w-1/2 dark:bg-gray-300"},null,-1)]))),64))])):(e.openBlock(),e.createElementBlock("div",Ps,[e.createElementVNode("div",qs,[e.createElementVNode("img",{class:"h-8 w-auto",src:l.logo,alt:"Your Company"},null,8,Rs)]),e.createElementVNode("nav",Hs,[l.isFilterNavigation?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("ul",Us,[e.createElementVNode("li",null,[e.createElementVNode("ul",Zs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.navigation,n=>(e.openBlock(),e.createElementBlock("li",{key:n.name},[n.children?(e.openBlock(),e.createBlock(e.unref(p.Disclosure),{key:1,as:"div"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.DisclosureButton),{onClick:o=>l.$emit("sideBarClick",n.id),class:e.normalizeClass([n.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:e.withCtx(()=>[e.createVNode(y,{icon:n.icon,color:"primary",size:"big",loading:!1,"aria-hidden":"true",class:"shrink-0"},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(n.name)+" ",1),e.createVNode(e.unref(z),{class:e.normalizeClass([n.children.some(o=>o.current)||n.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"]),e.withDirectives(e.createElementVNode("div",null,[e.createVNode(e.unref(p.DisclosurePanel),{as:"ul",class:"mt-1 px-2",static:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.children,o=>(e.openBlock(),e.createElementBlock("li",{key:o.name},[e.createVNode(e.unref(p.DisclosureButton),{as:"a",onClick:t=>l.$emit("sideBarClick",o.id),class:e.normalizeClass([o.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:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.name),1)]),_:2},1032,["onClick","class"])]))),128))]),_:2},1024)],512),[[e.vShow,n.children.some(o=>o.current)||n.current]])]),_:2},1024)):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:o=>l.$emit("sideBarClick",n.id),class:e.normalizeClass([n.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"])},[e.createVNode(y,{icon:n.icon,color:"primary",size:"big",loading:!1,"aria-hidden":"true",class:"shrink-0"},null,8,["icon"]),e.createTextVNode(" "+e.toDisplayString(n.name),1)],10,Js))]))),128))])])])),l.isFilterNavigation&&l.filterNavigation?(e.openBlock(),e.createElementBlock("ul",Ws,[e.createElementVNode("li",Gs,[l.filterNavigation.hasSearch&&l.filterNavigation.search?(e.openBlock(),e.createBlock(C,{key:0,name:l.filterNavigation.search.name,label:l.filterNavigation.search.label,placeholder:l.filterNavigation.search.placeholder,value:l.filterNavigation.search.value,loading:l.filterNavigation.search.loading},null,8,["name","label","placeholder","value","loading"])):e.createCommentVNode("",!0)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.filterNavigation.items,(n,o)=>(e.openBlock(),e.createElementBlock("li",{class:"ml-2",key:o},[e.createElementVNode("p",Qs,e.toDisplayString(n.label),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.filters,(t,i)=>(e.openBlock(),e.createBlock(Z,{class:"mb-2",value:t.value,loading:t.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.text),1)]),_:2},1032,["value","loading"]))),256))]))),128))])):e.createCommentVNode("",!0)])]))]))}}),ei={class:"fixed inset-0 flex"},ti={class:"absolute left-full top-0 flex w-16 justify-center pt-5"},oi={class:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-[25rem] lg:flex-col"},li={class:"lg:pl-[25rem]"},ni={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"},ri={class:"flex flex-1 gap-x-4 self-stretch lg:gap-x-6"},ai={class:"relative flex flex-1",action:"#",method:"GET"},si={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"},ii={class:"flex items-center gap-x-4 lg:gap-x-6"},di={type:"button",class:"-m-2.5 p-2.5 text-gray-400 hover:text-gray-500 relative"},ci={class:"redCircle flex items-center justify-center h-4 w-4 bg-red-500 rounded-full absolute top-1 left-2"},ui=["src"],mi={class:"hidden lg:flex lg:items-center"},gi=["onClick"],pi={class:"py-7"},fi={class:"px-7 lg:px-10"},Ie=e.defineComponent({__name:"uiWrapper",props:{topbar:{},sidebar:{}},emits:["productBarClick","sideBarClick","selectChanged","topBarClick"],setup(d,{emit:a}){const l=d,r=e.ref(""),n=e.computed(()=>r.value===""?l.topbar.selectItems:l.topbar.selectItems.filter(s=>s.name.toLowerCase().includes(r.value.toLowerCase()))),o=s=>(s==null?void 0:s.name)??"",t=e.computed(()=>l.topbar.selectedItem),i=e.ref(!1);return(s,c)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(p.TransitionRoot),{as:"template",show:i.value},{default:e.withCtx(()=>[e.createVNode(e.unref(p.Dialog),{class:"relative z-50 lg:hidden",onClose:c[3]||(c[3]=u=>i.value=!1)},{default:e.withCtx(()=>[e.createVNode(e.unref(p.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:e.withCtx(()=>c[11]||(c[11]=[e.createElementVNode("div",{class:"fixed inset-0 bg-gray-900/80"},null,-1)])),_:1}),e.createElementVNode("div",ei,[e.createVNode(e.unref(p.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:e.withCtx(()=>[e.createVNode(e.unref(p.DialogPanel),{class:"relative mr-16 flex w-full max-w-xs flex-1"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.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:e.withCtx(()=>[e.createElementVNode("div",ti,[e.createElementVNode("button",{type:"button",class:"-m-2.5 p-2.5",onClick:c[0]||(c[0]=u=>i.value=!1)},[c[12]||(c[12]=e.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1)),e.createVNode(e.unref(S),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),e.createVNode(le,{productsSidebar:s.sidebar.productsSidebar,isFilterNavigation:s.sidebar.isFilterNavigation,navigation:s.sidebar.navigation,filterNavigation:s.sidebar.filterNavigation,loading:!1,logo:s.topbar.logo,onSideBarClick:c[1]||(c[1]=u=>s.$emit("sideBarClick",u)),onProductBarClick:c[2]||(c[2]=u=>s.$emit("productBarClick",u))},null,8,["productsSidebar","isFilterNavigation","navigation","filterNavigation","logo"])]),_:1})]),_:1})])]),_:1})]),_:1},8,["show"]),e.createElementVNode("div",oi,[e.createVNode(le,{productsSidebar:s.sidebar.productsSidebar,isFilterNavigation:s.sidebar.isFilterNavigation,navigation:s.sidebar.navigation,filterNavigation:s.sidebar.filterNavigation,loading:!1,logo:s.topbar.logo,onSideBarClick:c[4]||(c[4]=u=>s.$emit("sideBarClick",u)),onProductBarClick:c[5]||(c[5]=u=>s.$emit("productBarClick",u))},null,8,["productsSidebar","isFilterNavigation","navigation","filterNavigation","logo"])]),e.createElementVNode("div",li,[e.createElementVNode("div",ni,[e.createElementVNode("button",{type:"button",class:"-m-2.5 p-2.5 text-gray-700 lg:hidden",onClick:c[6]||(c[6]=u=>i.value=!0)},[c[13]||(c[13]=e.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1)),e.createVNode(e.unref(ae),{class:"h-6 w-6","aria-hidden":"true"})]),c[19]||(c[19]=e.createElementVNode("div",{class:"h-6 w-px bg-gray-200 lg:hidden","aria-hidden":"true"},null,-1)),e.createElementVNode("div",ri,[e.createElementVNode("form",ai,[c[14]||(c[14]=e.createElementVNode("label",{for:"search-field",class:"sr-only"},"Search",-1)),e.createVNode(e.unref(ct),{class:"pointer-events-none absolute inset-y-0 left-0 h-full w-5 text-gray-400","aria-hidden":"true"}),e.createVNode(e.unref(p.Combobox),{class:"w-full",as:"div",modelValue:t.value,"onUpdate:modelValue":[c[9]||(c[9]=u=>t.value=u),c[10]||(c[10]=u=>s.$emit("selectChanged",u))]},{default:e.withCtx(()=>[e.createElementVNode("div",si,[e.createVNode(e.unref(p.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:c[7]||(c[7]=u=>r.value=u.target.value),onBlur:c[8]||(c[8]=u=>r.value=""),displayValue:o}),e.createVNode(e.unref(p.ComboboxButton),{class:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none"},{default:e.withCtx(()=>[e.createVNode(e.unref(H),{class:"h-5 w-5 text-gray-400"})]),_:1}),n.value.length>0?(e.openBlock(),e.createBlock(e.unref(p.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:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,u=>(e.openBlock(),e.createBlock(e.unref(p.ComboboxOption),{key:u.id,value:u,as:"template"},{default:e.withCtx(({active:m,selected:v})=>[e.createElementVNode("li",{class:e.normalizeClass(["relative cursor-default select-none py-2 pl-8 pr-4",m?"bg-indigo-600 text-white":"text-gray-900"])},[e.createElementVNode("span",{class:e.normalizeClass(["block truncate",v&&"font-semibold"])},e.toDisplayString(u.name),3),v?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["absolute inset-y-0 left-0 flex items-center pl-1.5",m?"text-white":"text-indigo-600"])},[e.createVNode(e.unref(q),{class:"h-5 w-5"})],2)):e.createCommentVNode("",!0)],2)]),_:2},1032,["value"]))),128))]),_:1})):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"])]),e.createElementVNode("div",ii,[e.createElementVNode("button",di,[c[16]||(c[16]=e.createElementVNode("span",{class:"sr-only"},"View notifications",-1)),e.withDirectives(e.createElementVNode("div",ci,c[15]||(c[15]=[e.createElementVNode("span",{class:"animate-ping absolute inline-flex h-4 w-4 bg-red-500 rounded-full opacity-75"},null,-1)]),512),[[e.vShow,s.topbar.alerted]]),e.createVNode(e.unref(lt),{class:"h-6 w-6","aria-hidden":"true"})]),c[18]||(c[18]=e.createElementVNode("div",{class:"hidden lg:block lg:h-6 lg:w-px lg:bg-gray-200","aria-hidden":"true"},null,-1)),e.createVNode(e.unref(p.Menu),{as:"div",class:"relative"},{default:e.withCtx(()=>[e.createVNode(e.unref(p.MenuButton),{class:"-m-1.5 flex items-center p-1.5"},{default:e.withCtx(()=>[c[17]||(c[17]=e.createElementVNode("span",{class:"sr-only"},"Open user menu",-1)),e.createElementVNode("img",{class:"h-8 w-8 rounded-full bg-gray-50",src:s.topbar.accountLogo,alt:""},null,8,ui),e.createElementVNode("span",mi,[e.createVNode(e.unref(P),{class:"ml-2 h-5 w-5 text-gray-400","aria-hidden":"true"})])]),_:1}),e.createVNode(e.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:e.withCtx(()=>[e.createVNode(e.unref(p.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:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.topbar.profileMenu,u=>(e.openBlock(),e.createBlock(e.unref(p.MenuItem),{key:u.name},{default:e.withCtx(({active:m})=>[e.createElementVNode("a",{onClick:v=>s.$emit("topBarClick",u.id),class:e.normalizeClass([m?"bg-gray-50":"","block px-3 py-1 text-sm leading-6 text-gray-900"])},e.toDisplayString(u.name),11,gi)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),e.createElementVNode("main",pi,[e.createElementVNode("div",fi,[e.renderSlot(s.$slots,"default")])])])]))}}),Ye=e.defineComponent({__name:"uiDynamicStats",props:{dynamicStats:{},loading:{type:Boolean,default:!0}},setup(d){const a=d,l=()=>a.dynamicStats.length<=5?`lg:grid-cols-${a.dynamicStats.length}`:`lg:grid-cols-${Math.floor(a.dynamicStats.length/2)} xl:grid-cols-${a.dynamicStats.length}`,r=e.ref(0),n=e.ref(l());return e.onMounted(()=>r.value+=1),(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([n.value,"grid grid-cols-1 md:grid-cols-2 gap-4"]),key:r.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dynamicStats,(i,s)=>(e.openBlock(),e.createBlock(Q,{key:s,item:i,loading:o.loading},null,8,["item","loading"]))),128))],2))}}),hi={class:"flex flex-col lg:flex-row items-center"},Pe=e.defineComponent({__name:"uiSmartFilter",props:{items:{},buttonLiteral:{},loading:{type:Boolean,default:!0}},emits:["smartFilterSelected","smartInputChanged","smartSelectChanged","smartOptionSelected","rightAddOnClicked"],setup(d,{emit:a}){const l=d,r=a,n=e.shallowRef(C),o=e.ref(l.items[0].props),t=i=>{switch(i.type){case"uiInput":n.value=C;break;case"uiDropdown":n.value=M;break;case"uiSelect":n.value=J;break}o.value=i.props};return(i,s)=>(e.openBlock(),e.createElementBlock("div",hi,[e.createVNode(W,{items:i.items,loading:i.loading,onFilterSelected:t},null,8,["items","loading"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value),e.mergeProps({class:"w-full mt-2 lg:mt-0 lg:mx-2 lg:grow"},o.value,{loading:!1,onInputChanged:s[0]||(s[0]=c=>r("smartInputChanged",c)),onSelectChanged:s[1]||(s[1]=c=>r("smartSelectChanged",c)),onOptionSelected:s[2]||(s[2]=c=>r("smartOptionSelected",c)),onRightAddOnClicked:s[3]||(s[3]=c=>r("rightAddOnClicked"))}),null,16)),e.createVNode($,{class:"mt-2 lg:mt-0",loading:i.loading},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.buttonLiteral),1)]),_:1},8,["loading"])]))}}),ne=Object.freeze(Object.defineProperty({__proto__:null,uiAlert:ge,uiBreadcrumbs:pe,uiButton:$,uiCard:fe,uiChart:be,uiCheckbox:Z,uiCircleChart:je,uiDateRange:Le,uiDeviceStatus:Ae,uiDragAndDrop:Te,uiDropdown:M,uiDynamicStats:Ye,uiFilter:W,uiFooter:we,uiFunnelChartV2:Se,uiGallery:Me,uiIcon:y,uiInput:C,uiInputFile:ce,uiLoadingScreen:xe,uiModal:G,uiNoResults:De,uiNotification:he,uiPagination:Ne,uiPriceCalendar:ke,uiRangeSlider:Fe,uiRightSidebar:ze,uiSectionTitle:Oe,uiSelect:J,uiSidebar:Ve,uiSmartFilter:Pe,uiStats:Q,uiStripedCard:Ee,uiTable:Be,uiTabs:Ce,uiTag:B,uiTaskList:ye,uiTextArea:ue,uiTimeline:_e,uiToggle:me,uiTopbar:$e,uiWrapper:Ie},Symbol.toStringTag,{value:"Module"}));function yi(d){for(const a in ne)d.component(a,ne[a])}const vi={install:yi};exports.default=vi;exports.uiAlert=ge;exports.uiBreadcrumbs=pe;exports.uiButton=$;exports.uiCard=fe;exports.uiChart=be;exports.uiCheckbox=Z;exports.uiCircleChart=je;exports.uiDateRange=Le;exports.uiDeviceStatus=Ae;exports.uiDragAndDrop=Te;exports.uiDropdown=M;exports.uiDynamicStats=Ye;exports.uiFilter=W;exports.uiFooter=we;exports.uiFunnelChartV2=Se;exports.uiGallery=Me;exports.uiIcon=y;exports.uiInput=C;exports.uiInputFile=ce;exports.uiLoadingScreen=xe;exports.uiModal=G;exports.uiNoResults=De;exports.uiNotification=he;exports.uiPagination=Ne;exports.uiPriceCalendar=ke;exports.uiRangeSlider=Fe;exports.uiRightSidebar=ze;exports.uiSectionTitle=Oe;exports.uiSelect=J;exports.uiSidebar=Ve;exports.uiSmartFilter=Pe;exports.uiStats=Q;exports.uiStripedCard=Ee;exports.uiTable=Be;exports.uiTabs=Ce;exports.uiTag=B;exports.uiTaskList=ye;exports.uiTextArea=ue;exports.uiTimeline=_e;exports.uiToggle=me;exports.uiTopbar=$e;exports.uiWrapper=Ie;
|
package/dist/ui.es.js
CHANGED
|
@@ -971,7 +971,7 @@ const Nt = { class: "flex justify-between" }, At = {
|
|
|
971
971
|
onBlur: w[1] || (w[1] = (T) => a.value = ""),
|
|
972
972
|
displayValue: u,
|
|
973
973
|
class: y([{
|
|
974
|
-
"mt-1": h.requiredText,
|
|
974
|
+
"mt-1": h.requiredText || h.label,
|
|
975
975
|
"border-gray-300": h.color === "gray",
|
|
976
976
|
"border-red-400": h.color === "red",
|
|
977
977
|
"border-yellow-400": h.color === "yellow",
|