@xy-planning-network/trees 0.7.2 → 0.7.3
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/trees.es.js
CHANGED
|
@@ -7052,10 +7052,10 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
|
|
|
7052
7052
|
}, Bd = { class: "mt-6 px-2" }, Vd = /* @__PURE__ */ h("div", {
|
|
7053
7053
|
class: "shrink-0 w-14",
|
|
7054
7054
|
"aria-hidden": "true"
|
|
7055
|
-
}, null, -1), Hd = { class: "hidden
|
|
7055
|
+
}, null, -1), Hd = { class: "hidden lg:flex lg:shrink-0" }, Ud = { class: "flex flex-col w-64" }, Yd = { class: "flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto" }, Wd = { class: "flex justify-center shrink-0 px-4" }, zd = ["src"], Kd = { class: "mt-5 grow flex flex-col" }, qd = { class: "flex-1 px-2 bg-white space-y-1" }, Gd = ["href", "target"], Jd = {
|
|
7056
7056
|
key: 0,
|
|
7057
7057
|
class: "mt-atuo"
|
|
7058
|
-
}, Xd = { class: "mt-6 px-2" }, Zd = { class: "flex flex-col w-0 flex-1 overflow-hidden" }, Qd = { class: "relative z-10 shrink-0 flex h-16 bg-xy-blue shadow" }, ec = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open sidebar", -1), tc = { class: "flex-1 px-4 flex justify-between" }, nc = { class: "flex-1 flex" }, rc = { class: "flex items-center text-2xl text-white" }, ac = { class: "ml-4 flex items-center
|
|
7058
|
+
}, Xd = { class: "mt-6 px-2" }, Zd = { class: "flex flex-col w-0 flex-1 overflow-hidden" }, Qd = { class: "relative z-10 shrink-0 flex h-16 bg-xy-blue shadow" }, ec = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open sidebar", -1), tc = { class: "flex-1 px-4 flex justify-between" }, nc = { class: "flex-1 flex" }, rc = { class: "flex items-center text-2xl text-white" }, ac = { class: "ml-4 flex items-center lg:ml-6" }, oc = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open user menu", -1), ic = ["href"], sc = { class: "flex-1 relative overflow-y-auto focus:outline-none" }, lc = { class: "mx-auto" }, uc = /* @__PURE__ */ F({
|
|
7059
7059
|
__name: "SidebarLayout",
|
|
7060
7060
|
props: {
|
|
7061
7061
|
activeUrl: { default: "" },
|
|
@@ -7075,7 +7075,7 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
|
|
|
7075
7075
|
S(w(Pn), {
|
|
7076
7076
|
as: "div",
|
|
7077
7077
|
static: "",
|
|
7078
|
-
class: "fixed inset-0 flex z-10
|
|
7078
|
+
class: "fixed inset-0 flex z-10 lg:hidden",
|
|
7079
7079
|
open: e.value,
|
|
7080
7080
|
onClose: o[1] || (o[1] = (i) => e.value = !1)
|
|
7081
7081
|
}, {
|
|
@@ -7218,7 +7218,7 @@ const fd = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
|
|
|
7218
7218
|
h("div", Zd, [
|
|
7219
7219
|
h("div", Qd, [
|
|
7220
7220
|
h("button", {
|
|
7221
|
-
class: "px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500
|
|
7221
|
+
class: "px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden",
|
|
7222
7222
|
onClick: o[2] || (o[2] = (i) => e.value = !0)
|
|
7223
7223
|
}, [
|
|
7224
7224
|
ec,
|
package/dist/trees.umd.js
CHANGED
|
@@ -10,4 +10,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10
10
|
</span>
|
|
11
11
|
`}function vf(){e.calendarContainer.classList.add("hasWeeks");const f=F("div","flatpickr-weekwrapper");f.appendChild(F("span","flatpickr-weekday",e.l10n.weekAbbreviation));const p=F("div","flatpickr-weeks");return f.appendChild(p),{weekWrapper:f,weekNumbers:p}}function cr(f,p=!0){const b=p?f:f-e.currentMonth;b<0&&e._hidePrevMonthArrow===!0||b>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=b,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,G("onYearChange"),oe()),Q(),G("onMonthChange"),gn())}function Nf(f=!0,p=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,p===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:b,minutes:x,seconds:D}=nr(e.config);h(b,x,D)}e.redraw(),f&&G("onChange")}function Sf(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),G("onClose")}function $f(){e.config!==void 0&&G("onDestroy");for(let f=e._handlers.length;f--;)e._handlers[f].remove();if(e._handlers=[],e.mobileInput)e.mobileInput.parentNode&&e.mobileInput.parentNode.removeChild(e.mobileInput),e.mobileInput=void 0;else if(e.calendarContainer&&e.calendarContainer.parentNode)if(e.config.static&&e.calendarContainer.parentNode){const f=e.calendarContainer.parentNode;if(f.lastChild&&f.removeChild(f.lastChild),f.parentNode){for(;f.firstChild;)f.parentNode.insertBefore(f.firstChild,f);f.parentNode.removeChild(f)}}else e.calendarContainer.parentNode.removeChild(e.calendarContainer);e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput),delete e.altInput),e.input&&(e.input.type=e.input._type,e.input.classList.remove("flatpickr-input"),e.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(f=>{try{delete e[f]}catch{}})}function ct(f){return e.config.appendTo&&e.config.appendTo.contains(f)?!0:e.calendarContainer.contains(f)}function dr(f){if(e.isOpen&&!e.config.inline){const p=he(f),b=ct(p),x=p===e.input||p===e.altInput||e.element.contains(p)||f.path&&f.path.indexOf&&(~f.path.indexOf(e.input)||~f.path.indexOf(e.altInput)),D=f.type==="blur"?x&&f.relatedTarget&&!ct(f.relatedTarget):!x&&!b&&!ct(f.relatedTarget),_=!e.config.ignoredFocusElements.some(B=>B.contains(p));D&&_&&(e.timeContainer!==void 0&&e.minuteElement!==void 0&&e.hourElement!==void 0&&e.input.value!==""&&e.input.value!==void 0&&s(),e.close(),e.config&&e.config.mode==="range"&&e.selectedDates.length===1&&(e.clear(!1),e.redraw()))}}function fn(f){if(!f||e.config.minDate&&f<e.config.minDate.getFullYear()||e.config.maxDate&&f>e.config.maxDate.getFullYear())return;const p=f,b=e.currentYear!==p;e.currentYear=p||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),b&&(e.redraw(),G("onYearChange"),oe())}function qe(f,p=!0){var b;const x=e.parseDate(f,void 0,p);if(e.config.minDate&&x&&ge(x,e.config.minDate,p!==void 0?p:!e.minDateHasTime)<0||e.config.maxDate&&x&&ge(x,e.config.maxDate,p!==void 0?p:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(x===void 0)return!1;const D=!!e.config.enable,_=(b=e.config.enable)!==null&&b!==void 0?b:e.config.disable;for(let B=0,V;B<_.length;B++){if(V=_[B],typeof V=="function"&&V(x))return D;if(V instanceof Date&&x!==void 0&&V.getTime()===x.getTime())return D;if(typeof V=="string"){const O=e.parseDate(V,void 0,!0);return O&&O.getTime()===x.getTime()?D:!D}else if(typeof V=="object"&&x!==void 0&&V.from&&V.to&&x.getTime()>=V.from.getTime()&&x.getTime()<=V.to.getTime())return D}return!D}function pn(f){return e.daysContainer!==void 0?f.className.indexOf("hidden")===-1&&f.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(f):!1}function Vf(f){f.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(f.relatedTarget&&ct(f.relatedTarget))&&e.setDate(e._input.value,!0,f.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Tf(f){const p=he(f),b=e.config.wrap?n.contains(p):p===e._input,x=e.config.allowInput,D=e.isOpen&&(!x||!b),_=e.config.inline&&b&&!x;if(f.keyCode===13&&b){if(x)return e.setDate(e._input.value,!0,p===e.altInput?e.config.altFormat:e.config.dateFormat),p.blur();e.open()}else if(ct(p)||D||_){const B=!!e.timeContainer&&e.timeContainer.contains(p);switch(f.keyCode){case 13:B?(f.preventDefault(),s(),fr()):ja(f);break;case 27:f.preventDefault(),fr();break;case 8:case 46:b&&!e.config.allowInput&&(f.preventDefault(),e.clear());break;case 37:case 39:if(!B&&!b){if(f.preventDefault(),e.daysContainer!==void 0&&(x===!1||document.activeElement&&pn(document.activeElement))){const O=f.keyCode===39?1:-1;f.ctrlKey?(f.stopPropagation(),cr(O),P(T(1),0)):P(void 0,O)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:f.preventDefault();const V=f.keyCode===40?1:-1;e.daysContainer&&p.$i!==void 0||p===e.input||p===e.altInput?f.ctrlKey?(f.stopPropagation(),fn(e.currentYear-V),P(T(1),0)):B||P(void 0,V*7):p===e.currentYearElement?fn(e.currentYear-V):e.config.enableTime&&(!B&&e.hourElement&&e.hourElement.focus(),s(f),e._debouncedChange());break;case 9:if(B){const O=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(W=>W),A=O.indexOf(p);if(A!==-1){const W=O[A+(f.shiftKey?-1:1)];f.preventDefault(),(W||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(p)&&f.shiftKey&&(f.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&p===e.amPM)switch(f.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],u(),Ue();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),Ue();break}(b||ct(p))&&G("onKeyDown",f)}function ur(f){if(e.selectedDates.length!==1||f&&(!f.classList.contains("flatpickr-day")||f.classList.contains("flatpickr-disabled")))return;const p=f?f.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),b=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),x=Math.min(p,e.selectedDates[0].getTime()),D=Math.max(p,e.selectedDates[0].getTime());let _=!1,B=0,V=0;for(let O=x;O<D;O+=xs.DAY)qe(new Date(O),!0)||(_=_||O>x&&O<D,O<b&&(!B||O>B)?B=O:O>b&&(!V||O<V)&&(V=O));for(let O=0;O<e.config.showMonths;O++){const A=e.daysContainer.children[O];for(let W=0,ke=A.children.length;W<ke;W++){const ae=A.children[W],Me=ae.dateObj.getTime(),vt=B>0&&Me<B||V>0&&Me>V;if(vt){ae.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(Nt=>{ae.classList.remove(Nt)});continue}else if(_&&!vt)continue;["startRange","inRange","endRange","notAllowed"].forEach(Nt=>{ae.classList.remove(Nt)}),f!==void 0&&(f.classList.add(p<=e.selectedDates[0].getTime()?"startRange":"endRange"),b<p&&Me===b?ae.classList.add("startRange"):b>p&&Me===b&&ae.classList.add("endRange"),Me>=B&&(V===0||Me<=V)&&ws(Me,b,p)&&ae.classList.add("inRange"))}}}function Bf(){e.isOpen&&!e.config.static&&!e.config.inline&&mn()}function Mf(f,p=e._positionElement){if(e.isMobile===!0){if(f){f.preventDefault();const x=he(f);x&&x.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),G("onOpen");return}else if(e._input.disabled||e.config.inline)return;const b=e.isOpen;e.isOpen=!0,b||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),G("onOpen"),mn(p)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(f===void 0||!e.timeContainer.contains(f.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function La(f){return p=>{const b=e.config[`_${f}Date`]=e.parseDate(p,e.config.dateFormat),x=e.config[`_${f==="min"?"max":"min"}Date`];b!==void 0&&(e[f==="min"?"minDateHasTime":"maxDateHasTime"]=b.getHours()>0||b.getMinutes()>0||b.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(D=>qe(D)),!e.selectedDates.length&&f==="min"&&m(b),Ue()),e.daysContainer&&(Fa(),b!==void 0?e.currentYearElement[f]=b.getFullYear().toString():e.currentYearElement.removeAttribute(f),e.currentYearElement.disabled=!!x&&b!==void 0&&x.getFullYear()===b.getFullYear())}}function Of(){const f=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],p=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),b={};e.config.parseDate=p.parseDate,e.config.formatDate=p.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:_=>{e.config._enable=Ua(_)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:_=>{e.config._disable=Ua(_)}});const x=p.mode==="time";if(!p.dateFormat&&(p.enableTime||x)){const _=Z.defaultConfig.dateFormat||it.dateFormat;b.dateFormat=p.noCalendar||x?"H:i"+(p.enableSeconds?":S":""):_+" H:i"+(p.enableSeconds?":S":"")}if(p.altInput&&(p.enableTime||x)&&!p.altFormat){const _=Z.defaultConfig.altFormat||it.altFormat;b.altFormat=p.noCalendar||x?"h:i"+(p.enableSeconds?":S K":" K"):_+` h:i${p.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:La("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:La("max")});const D=_=>B=>{e.config[_==="min"?"_minTime":"_maxTime"]=e.parseDate(B,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:D("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:D("max")}),p.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,b,p);for(let _=0;_<f.length;_++)e.config[f[_]]=e.config[f[_]]===!0||e.config[f[_]]==="true";Xn.filter(_=>e.config[_]!==void 0).forEach(_=>{e.config[_]=Zn(e.config[_]||[]).map(i)}),e.isMobile=!e.config.disableMobile&&!e.config.inline&&e.config.mode==="single"&&!e.config.disable.length&&!e.config.enable&&!e.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(let _=0;_<e.config.plugins.length;_++){const B=e.config.plugins[_](e)||{};for(const V in B)Xn.indexOf(V)>-1?e.config[V]=Zn(B[V]).map(i).concat(e.config[V]):typeof p[V]>"u"&&(e.config[V]=B[V])}p.altInputClass||(e.config.altInputClass=Ra().className+" "+e.config.altInputClass),G("onParseConfig")}function Ra(){return e.config.wrap?n.querySelector("[data-input]"):n}function Ia(){typeof e.config.locale!="object"&&typeof Z.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},Z.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?Z.l10ns[e.config.locale]:void 0),er.K=`(${e.l10n.amPM[0]}|${e.l10n.amPM[1]}|${e.l10n.amPM[0].toLowerCase()}|${e.l10n.amPM[1].toLowerCase()})`,Object.assign(Object.assign({},r),JSON.parse(JSON.stringify(n.dataset||{}))).time_24hr===void 0&&Z.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=da(e),e.parseDate=tr({config:e.config,l10n:e.l10n})}function mn(f){if(typeof e.config.position=="function")return void e.config.position(e,f);if(e.calendarContainer===void 0)return;G("onPreCalendarPosition");const p=f||e._positionElement,b=Array.prototype.reduce.call(e.calendarContainer.children,(St,hr)=>St+hr.offsetHeight,0),x=e.calendarContainer.offsetWidth,D=e.config.position.split(" "),_=D[0],B=D.length>1?D[1]:null,V=p.getBoundingClientRect(),O=window.innerHeight-V.bottom,A=_==="above"||_!=="below"&&O<b&&V.top>b,W=window.pageYOffset+V.top+(A?-b-2:p.offsetHeight+2);if(le(e.calendarContainer,"arrowTop",!A),le(e.calendarContainer,"arrowBottom",A),e.config.inline)return;let ke=window.pageXOffset+V.left,ae=!1,yn=!1;B==="center"?(ke-=(x-V.width)/2,ae=!0):B==="right"&&(ke-=x-V.width,yn=!0),le(e.calendarContainer,"arrowLeft",!ae&&!yn),le(e.calendarContainer,"arrowCenter",ae),le(e.calendarContainer,"arrowRight",yn);const Me=window.document.body.offsetWidth-(window.pageXOffset+V.right),vt=ke+x>window.document.body.offsetWidth,Nt=Me+x>window.document.body.offsetWidth;if(le(e.calendarContainer,"rightMost",vt),!e.config.static)if(e.calendarContainer.style.top=`${W}px`,!vt)e.calendarContainer.style.left=`${ke}px`,e.calendarContainer.style.right="auto";else if(!Nt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${Me}px`;else{const St=Pf();if(St===void 0)return;const hr=window.document.body.offsetWidth,Wf=Math.max(0,hr/2-x/2),Kf=".flatpickr-calendar.centerMost:before",qf=".flatpickr-calendar.centerMost:after",Gf=St.cssRules.length,Jf=`{left:${V.left}px;right:auto;}`;le(e.calendarContainer,"rightMost",!1),le(e.calendarContainer,"centerMost",!0),St.insertRule(`${Kf},${qf}${Jf}`,Gf),e.calendarContainer.style.left=`${Wf}px`,e.calendarContainer.style.right="auto"}}function Pf(){let f=null;for(let p=0;p<document.styleSheets.length;p++){const b=document.styleSheets[p];try{b.cssRules}catch{continue}f=b;break}return f??Af()}function Af(){const f=document.createElement("style");return document.head.appendChild(f),f.sheet}function Fa(){e.config.noCalendar||e.isMobile||(oe(),gn(),Q())}function fr(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function ja(f){f.preventDefault(),f.stopPropagation();const p=B=>B.classList&&B.classList.contains("flatpickr-day")&&!B.classList.contains("flatpickr-disabled")&&!B.classList.contains("notAllowed"),b=ca(he(f),p);if(b===void 0)return;const x=b,D=e.latestSelectedDateObj=new Date(x.dateObj.getTime()),_=(D.getMonth()<e.currentMonth||D.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=x,e.config.mode==="single")e.selectedDates=[D];else if(e.config.mode==="multiple"){const B=mr(D);B?e.selectedDates.splice(parseInt(B),1):e.selectedDates.push(D)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=D,e.selectedDates.push(D),ge(D,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((B,V)=>B.getTime()-V.getTime()));if(u(),_){const B=e.currentYear!==D.getFullYear();e.currentYear=D.getFullYear(),e.currentMonth=D.getMonth(),B&&(G("onYearChange"),oe()),G("onMonthChange")}if(gn(),Q(),Ue(),!_&&e.config.mode!=="range"&&e.config.showMonths===1?I(x):e.selectedDateElem!==void 0&&e.hourElement===void 0&&e.selectedDateElem&&e.selectedDateElem.focus(),e.hourElement!==void 0&&e.hourElement!==void 0&&e.hourElement.focus(),e.config.closeOnSelect){const B=e.config.mode==="single"&&!e.config.enableTime,V=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(B||V)&&fr()}w()}const hn={locale:[Ia,Aa],showMonths:[Oa,l,Pa],minDate:[k],maxDate:[k],clickOpens:[()=>{e.config.clickOpens===!0?(y(e._input,"focus",e.open),y(e._input,"click",e.open)):(e._input.removeEventListener("focus",e.open),e._input.removeEventListener("click",e.open))}]};function Lf(f,p){if(f!==null&&typeof f=="object"){Object.assign(e.config,f);for(const b in f)hn[b]!==void 0&&hn[b].forEach(x=>x())}else e.config[f]=p,hn[f]!==void 0?hn[f].forEach(b=>b()):Xn.indexOf(f)>-1&&(e.config[f]=Zn(p));e.redraw(),Ue(!0)}function Ha(f,p){let b=[];if(f instanceof Array)b=f.map(x=>e.parseDate(x,p));else if(f instanceof Date||typeof f=="number")b=[e.parseDate(f,p)];else if(typeof f=="string")switch(e.config.mode){case"single":case"time":b=[e.parseDate(f,p)];break;case"multiple":b=f.split(e.config.conjunction).map(x=>e.parseDate(x,p));break;case"range":b=f.split(e.l10n.rangeSeparator).map(x=>e.parseDate(x,p));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(f)}`));e.selectedDates=e.config.allowInvalidPreload?b:b.filter(x=>x instanceof Date&&qe(x,!1)),e.config.mode==="range"&&e.selectedDates.sort((x,D)=>x.getTime()-D.getTime())}function Rf(f,p=!1,b=e.config.dateFormat){if(f!==0&&!f||f instanceof Array&&f.length===0)return e.clear(p);Ha(f,b),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),k(void 0,p),m(),e.selectedDates.length===0&&e.clear(!1),Ue(p),p&&G("onChange")}function Ua(f){return f.slice().map(p=>typeof p=="string"||typeof p=="number"||p instanceof Date?e.parseDate(p,void 0,!0):p&&typeof p=="object"&&p.from&&p.to?{from:e.parseDate(p.from,void 0),to:e.parseDate(p.to,void 0)}:p).filter(p=>p)}function If(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const f=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);f&&Ha(f,e.config.dateFormat),e._initialDate=e.selectedDates.length>0?e.selectedDates[0]:e.config.minDate&&e.config.minDate.getTime()>e.now.getTime()?e.config.minDate:e.config.maxDate&&e.config.maxDate.getTime()<e.now.getTime()?e.config.maxDate:e.now,e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth(),e.selectedDates.length>0&&(e.latestSelectedDateObj=e.selectedDates[0]),e.config.minTime!==void 0&&(e.config.minTime=e.parseDate(e.config.minTime,"H:i")),e.config.maxTime!==void 0&&(e.config.maxTime=e.parseDate(e.config.maxTime,"H:i")),e.minDateHasTime=!!e.config.minDate&&(e.config.minDate.getHours()>0||e.config.minDate.getMinutes()>0||e.config.minDate.getSeconds()>0),e.maxDateHasTime=!!e.config.maxDate&&(e.config.maxDate.getHours()>0||e.config.maxDate.getMinutes()>0||e.config.maxDate.getSeconds()>0)}function Ff(){if(e.input=Ra(),!e.input){e.config.errorHandler(new Error("Invalid input element specified"));return}e.input._type=e.input.type,e.input.type="text",e.input.classList.add("flatpickr-input"),e._input=e.input,e.config.altInput&&(e.altInput=F(e.input.nodeName,e.config.altInputClass),e._input=e.altInput,e.altInput.placeholder=e.input.placeholder,e.altInput.disabled=e.input.disabled,e.altInput.required=e.input.required,e.altInput.tabIndex=e.input.tabIndex,e.altInput.type="text",e.input.setAttribute("type","hidden"),!e.config.static&&e.input.parentNode&&e.input.parentNode.insertBefore(e.altInput,e.input.nextSibling)),e.config.allowInput||e._input.setAttribute("readonly","readonly"),e._positionElement=e.config.positionElement||e._input}function jf(){const f=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=F("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=f,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=f==="datetime-local"?"Y-m-d\\TH:i:S":f==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}y(e.mobileInput,"change",p=>{e.setDate(he(p).value,!1,e.mobileFormatStr),G("onChange"),G("onClose")})}function Hf(f){if(e.isOpen===!0)return e.close();e.open(f)}function G(f,p){if(e.config===void 0)return;const b=e.config[f];if(b!==void 0&&b.length>0)for(let x=0;b[x]&&x<b.length;x++)b[x](e.selectedDates,e.input.value,e,p);f==="onChange"&&(e.input.dispatchEvent(pr("change")),e.input.dispatchEvent(pr("input")))}function pr(f){const p=document.createEvent("Event");return p.initEvent(f,!0,!0),p}function mr(f){for(let p=0;p<e.selectedDates.length;p++)if(ge(e.selectedDates[p],f)===0)return""+p;return!1}function Uf(f){return e.config.mode!=="range"||e.selectedDates.length<2?!1:ge(f,e.selectedDates[0])>=0&&ge(f,e.selectedDates[1])<=0}function gn(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((f,p)=>{const b=new Date(e.currentYear,e.currentMonth,1);b.setMonth(e.currentMonth+p),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[p].textContent=an(b.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=b.getMonth().toString(),f.value=b.getFullYear().toString()}),e._hidePrevMonthArrow=e.config.minDate!==void 0&&(e.currentYear===e.config.minDate.getFullYear()?e.currentMonth<=e.config.minDate.getMonth():e.currentYear<e.config.minDate.getFullYear()),e._hideNextMonthArrow=e.config.maxDate!==void 0&&(e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth+1>e.config.maxDate.getMonth():e.currentYear>e.config.maxDate.getFullYear()))}function za(f){return e.selectedDates.map(p=>e.formatDate(p,f)).filter((p,b,x)=>e.config.mode!=="range"||e.config.enableTime||x.indexOf(p)===b).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Ue(f=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=za(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=za(e.config.altFormat)),f!==!1&&G("onValueUpdate")}function zf(f){const p=he(f),b=e.prevMonthNav.contains(p),x=e.nextMonthNav.contains(p);b||x?cr(b?-1:1):e.yearElements.indexOf(p)>=0?p.select():p.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):p.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Yf(f){f.preventDefault();const p=f.type==="keydown",b=he(f),x=b;e.amPM!==void 0&&b===e.amPM&&(e.amPM.textContent=e.l10n.amPM[Ce(e.amPM.textContent===e.l10n.amPM[0])]);const D=parseFloat(x.getAttribute("min")),_=parseFloat(x.getAttribute("max")),B=parseFloat(x.getAttribute("step")),V=parseInt(x.value,10),O=f.delta||(p?f.which===38?1:-1:0);let A=V+B*O;if(typeof x.value<"u"&&x.value.length===2){const W=x===e.hourElement,ke=x===e.minuteElement;A<D?(A=_+A+Ce(!W)+(Ce(W)&&Ce(!e.amPM)),ke&&N(void 0,-1,e.hourElement)):A>_&&(A=x===e.hourElement?A-_-Ce(!e.amPM):D,ke&&N(void 0,1,e.hourElement)),e.amPM&&W&&(B===1?A+V===23:Math.abs(A-V)>B)&&(e.amPM.textContent=e.l10n.amPM[Ce(e.amPM.textContent===e.l10n.amPM[0])]),x.value=de(A)}}return a(),e}function lt(n,r){const e=Array.prototype.slice.call(n).filter(a=>a instanceof HTMLElement),o=[];for(let a=0;a<e.length;a++){const i=e[a];try{if(i.getAttribute("data-fp-omit")!==null)continue;i._flatpickr!==void 0&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=Es(i,r||{}),o.push(i._flatpickr)}catch(l){console.error(l)}}return o.length===1?o[0]:o}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return lt(this,n)},HTMLElement.prototype.flatpickr=function(n){return lt([this],n)});var Z=function(n,r){return typeof n=="string"?lt(window.document.querySelectorAll(n),r):n instanceof Node?lt([n],r):lt(n,r)};Z.defaultConfig={},Z.l10ns={en:Object.assign({},Et),default:Object.assign({},Et)},Z.localize=n=>{Z.l10ns.default=Object.assign(Object.assign({},Z.l10ns.default),n)},Z.setDefaults=n=>{Z.defaultConfig=Object.assign(Object.assign({},Z.defaultConfig),n)},Z.parseDate=tr({}),Z.formatDate=da({}),Z.compareDates=ge,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return lt(this,n)}),Date.prototype.fp_incr=function(n){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof n=="string"?parseInt(n,10):n))},typeof window<"u"&&(window.flatpickr=Z);const rp="",Ee=t.defineComponent({__name:"InputLabel",props:{disabled:{type:Boolean,default:!1},label:{default:""},tag:{default:"label"}},setup(n){return(r,e)=>r.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.mergeProps({key:0,class:{"block my-1 text-sm font-semibold leading-snug text-gray-900":!0,"opacity-75":r.disabled}},{...r.$attrs}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.label),1)]),_:1},16,["class"])):t.createCommentVNode("",!0)}}),ye=t.defineComponent({__name:"InputHelp",props:{tag:{default:"div"},text:{default:""}},setup(n){return(r,e)=>r.text?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.normalizeProps(t.mergeProps({key:0},{...r.$attrs,class:"mt-1 text-sm leading-snug font-normal text-gray-700"})),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),ks=["id","aria-labelledby","aria-describedby","placeholder","type","value"],rr=t.defineComponent({__name:"BaseInput",props:{type:{},help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Be.CreateIdAttribute(),i=["date","datetime-local","email","month","number","password","search","tel","text","time","url","week"],l=t.computed(()=>typeof e.type=="string"&&i.includes(e.type));return(s,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Ee,{id:`${t.unref(a)}-label`,class:"block",for:t.unref(a),label:s.label},null,8,["id","for","label"]),t.createElementVNode("input",t.mergeProps({id:t.unref(a),"aria-labelledby":s.label?`${t.unref(a)}-label`:void 0,"aria-describedby":s.help?`${t.unref(a)}-help`:void 0,class:["mt-1","sm:text-sm",...l.value?["block","shadow-sm","focus:xy-blue-500","focus:border-xy-blue ","border-gray-600","rounded-md","w-full","disabled:opacity-70","disabled:cursor-not-allowed"]:[]],placeholder:s.label,type:s.type,value:s.modelValue},s.$attrs,{onInput:c[0]||(c[0]=d=>r("update:modelValue",d.target.value))}),null,16,ks),t.createVNode(ye,{id:`${t.unref(a)}-help`,text:s.help},null,8,["id","text"])],64))}}),ln=t.defineComponent({__name:"DateRangePicker",props:{modelValue:{},maxRange:{default:0},startDate:{default:0},label:{default:""},help:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Be.CreateIdAttribute(),i=l=>{r("update:modelValue",l)};return t.onMounted(()=>{const l={dateFormat:"m-d-Y",mode:"range",maxDate:new Date,minDate:e.startDate,onClose:s=>{s.length===2?i({minDate:s[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(s[1].setUTCHours(23,59,59,999)/1e3)}):s.length===0&&i({minDate:0,maxDate:0})}};e.modelValue.minDate!=0&&e.modelValue.maxDate!=0&&(l.defaultDate=[e.modelValue.minDate*1e3,e.modelValue.maxDate*1e3]),e.maxRange&&(l.onChange=(s,c,d)=>{if(s.length===1){var u=new Date(s[0].getTime()),m=new Date(s[0].getTime());u.setDate(u.getDate()+e.maxRange),m.setDate(m.getDate()-e.maxRange);const h=new Date;u>h&&(u=h),d.set("minDate",m),d.set("maxDate",u)}}),Z(`#${a}`,l)}),(l,s)=>(t.openBlock(),t.createBlock(rr,{id:t.unref(a),type:"text",placeholder:"mm-dd-yyyy range",label:l.label,help:l.help},null,8,["id","label","help"]))}}),_s=["id","aria-labelledby","aria-describedby","value"],Ds={key:0,value:"",disabled:"",selected:""},vs=["value","textContent"],or=t.defineComponent({__name:"Select",props:{design:{default:"standard"},label:{default:""},help:{default:""},placeholder:{default:"Select an option"},options:{},modelValue:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Be.CreateIdAttribute(),i=t.computed(()=>({standard:"mt-1 block w-full border border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-xy-blue-500 focus:border-xy-blue sm:text-sm disabled:opacity-70 disabled:cursor-not-allowed",compressed:"appearance-none rounded-none relative block w-full px-3 py-2 border border-gray-600 text-gray-900 focus:outline-none focus:ring-xy-blue-500 focus:border-xy-blue focus:z-10 sm:text-sm disabled:opacity-70 disabled:cursor-not-allowed"})[e.design]);return(l,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Ee,{id:`${t.unref(a)}-label`,for:t.unref(a),label:l.label},null,8,["id","for","label"]),t.createElementVNode("select",t.mergeProps({id:t.unref(a),"aria-labelledby":l.label?`${t.unref(a)}-label`:void 0,"aria-describedby":l.help?`${t.unref(a)}-help`:void 0,class:i.value,value:l.modelValue},{...l.$attrs,onChange:c=>{r("update:modelValue",c.target.value)}}),[l.placeholder?(t.openBlock(),t.createElementBlock("option",Ds,t.toDisplayString(l.placeholder),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.options,c=>(t.openBlock(),t.createElementBlock("option",{key:c.value,value:c.value,textContent:t.toDisplayString(c.label)},null,8,vs))),128))],16,_s),t.createVNode(ye,{id:`${t.unref(a)}-help`,text:l.help},null,8,["id","text"])],64))}}),Ns={class:"md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100"},Ss={class:"flex-1 min-w-0"},$s={class:"text-lg leading-6 font-semibold text-gray-900"},Vs={class:"mt-4 flex md:mt-0 md:ml-4"},ar=t.defineComponent({__name:"DateFilter",props:{dateRange:{},sortDir:{},title:{}},emits:["sort-dir-changed","date-range-changed"],setup(n,{emit:r}){const e=n,o=t.ref(e.dateRange),a=t.ref(e.sortDir),i=[{label:"Newest-Oldest",value:"DESC"},{label:"Oldest-Newest",value:"ASC"}],l=c=>{r("sort-dir-changed",c)},s=c=>{r("date-range-changed",c)};return(c,d)=>(t.openBlock(),t.createElementBlock("div",Ns,[t.createElementVNode("div",Ss,[t.createElementVNode("h1",$s,t.toDisplayString(c.title),1)]),t.createElementVNode("div",Vs,[t.createVNode(or,{modelValue:a.value,"onUpdate:modelValue":[d[0]||(d[0]=u=>a.value=u),l],options:i},null,8,["modelValue"]),t.createVNode(ln,{modelValue:o.value,"onUpdate:modelValue":[d[1]||(d[1]=u=>o.value=u),s],class:"ml-3"},null,8,["modelValue"])])]))}});function st(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),i=t.ref(!1),l=t.ref(!1),s=t.ref(!1),c=t.ref(!1);let d=0,u;const m=()=>{u!==void 0&&u.abort()},h=(g={},y={})=>{d++;const w=d;u=new AbortController,c.value=!1,l.value=!1,s.value=!0;const E={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?g:{},method:r,params:["GET","get"].includes(r)?g:{},signal:u.signal,url:n};return Xe(E,{...e,...y}).then(k=>(o.value=k,a.value=void 0,c.value=!1,k),k=>{throw a.value=k,Zr(k)&&(c.value=!0),k}).finally(()=>{w==d&&(l.value=!0,s.value=!1),i.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&h(),{result:o,error:a,isFinished:l,isLoading:s,isAborted:c,hasFetched:i,abort:m,execute:h}}function Ts(n,r={}){return st(n,"GET",r)}function Bs(n,r={}){return st(n,"DELETE",r)}function Ms(n,r={}){return st(n,"PATCH",r)}function Os(n,r={}){return st(n,"POST",r)}function Ps(n,r={}){return st(n,"PUT",r)}function ua(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=h=>{e={...e,...h}},a=h=>{r.value.delete(h)},i=h=>{const g=Be.CreateIdAttribute();return r.value.set(g,h),(h.persistent===void 0||!h.persistent)&&setTimeout(()=>a(g),e.removeDelay),g},l=h=>i(h),s=(h,g=!1)=>i({message:h,persistent:g,type:"error"}),c=(h,g=!1)=>i({message:h,persistent:g,type:"info"}),d=(h,g=!1)=>i({message:h,persistent:g,type:"success"}),u=(h,g=!1)=>i({message:h,persistent:g,type:"warning"}),m=(h="",g=!1)=>{const y=h||e.email,w=y?`Whoops! Something went wrong, please reach out to
|
|
12
12
|
<a class="underline text-xy-blue" href="mailto:${y}">${y}</a>
|
|
13
|
-
if the issue persists.`:"Whoops! Something went wrong.";return i({message:w,persistent:g,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:u,info:c,success:d,genericError:m},flashes:r,configure:o}}const As=n=>{if(window.Flashes)for(const r of window.Flashes){if(typeof r.type>"u"){const e=r.message.split(": ");n.add({type:e[0],message:e[1]});continue}n.add(r)}};let ir;function Ke(){return ir===void 0&&(ir=ua()),ir}const lr={error(n,r){Ke().flasher.error(n,r)},info(n,r){Ke().flasher.info(n,r)},success(n,r){Ke().flasher.success(n,r)},warning(n,r){Ke().flasher.warning(n,r)},genericError(n,r){Ke().flasher.genericError(n,r)}},Ls={class:"px-4 flex items-center justify-between sm:px-0"},Rs={class:"w-0 flex-1 flex"},Is=t.createElementVNode("svg",{class:"mr-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1),Fs={class:"hidden md:flex"},js=["onClick","textContent"],Hs={class:"w-0 flex-1 flex justify-end"},Us=t.createElementVNode("svg",{class:"ml-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),sn=t.defineComponent({__name:"Paginator",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=i=>{r("update:modelValue",{...e.modelValue,page:i})},a=t.computed(()=>{const i=[];if(e.modelValue.totalPages<=4){for(let s=0;s<e.modelValue.totalPages;s++)i.push(s+1);return i}if(e.modelValue.totalPages-e.modelValue.page>=3){for(let s=0;s<4;s++)i.push(e.modelValue.page+s);return i}for(let s=0;s<4;s++)i.unshift(e.modelValue.totalPages-s);return i});return(i,l)=>(t.openBlock(),t.createElementBlock("div",Ls,[t.createElementVNode("div",Rs,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",i.modelValue.page==1?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:l[0]||(l[0]=t.withModifiers(s=>o(i.modelValue.page-1),["prevent"]))},[Is,t.createTextVNode(" Previous ")],2)]),t.createElementVNode("div",Fs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,s=>(t.openBlock(),t.createElementBlock("a",{key:s,href:"#",class:t.normalizeClass(["-mt-px border-t-2 pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium",i.modelValue.page===s?"border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700":"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"]),onClick:t.withModifiers(c=>o(s),["prevent"]),textContent:t.toDisplayString(s)},null,10,js))),128))]),t.createElementVNode("div",Hs,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",i.modelValue.page>=i.modelValue.totalPages?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:l[1]||(l[1]=t.withModifiers(s=>o(i.modelValue.page+1),["prevent"]))},[t.createTextVNode(" Next "),Us],2)])]))}}),zs={key:0,class:"shadow overflow-hidden sm:rounded-md border"},fa=t.defineComponent({__name:"DetailList",props:{refreshTrigger:{default:0},reloadTrigger:{default:0},title:{},url:{}},setup(n){const r=n,e=t.ref({minDate:0,maxDate:0}),o=t.ref(!0),a=t.ref([]),i=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),l=t.ref("DESC"),s=c=>{const d={page:i.value.page,perPage:i.value.perPage,sortDir:l.value};Pn.get(r.url,{},Object.assign(d,e.value)).then(u=>{i.value={page:u.data.page,perPage:u.data.perPage,totalItems:u.data.totalItems,totalPages:u.data.totalPages},a.value=u.data.items,c&&(o.value=a.value.length!=0)},()=>{lr.genericError()})};return t.watch([l,e],()=>{s(!1)}),t.watch(()=>r.refreshTrigger,()=>{s(!1)}),t.watch(()=>r.reloadTrigger,()=>{i.value.page=1,s(!0)}),s(!0),(c,d)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(ar,{"date-range":e.value,"sort-dir":l.value,title:c.title,onSortDirChanged:d[0]||(d[0]=u=>l.value=u),onDateRangeChanged:d[1]||(d[1]=u=>e.value=u)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",zs,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(u,m)=>(t.openBlock(),t.createElementBlock("li",{key:m,class:t.normalizeClass({"border-t border-gray-200":m>0})},[t.renderSlot(c.$slots,"default",{item:u})],2))),128))])])):t.renderSlot(c.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(sn,{key:2,modelValue:i.value,"onUpdate:modelValue":[d[2]||(d[2]=u=>i.value=u),d[3]||(d[3]=u=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Ys=["href"],pa=t.defineComponent({__name:"DownloadCell",props:{propsData:{},attribute:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("a",{href:r.propsData[r.attribute]},[t.createVNode(t.unref(jl),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,Ys))}}),Ws={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},Ks={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},qs={class:"p-4"},Gs={class:"flex items-center"},Js={class:"w-0 flex-1 flex justify-between"},Xs=["innerHTML"],Zs={class:"ml-4 shrink-0 flex"},Qs=["onClick"],ec=[t.createElementVNode("svg",{class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)],cn=t.defineComponent({__name:"Flash",setup(n){const{flasher:r,flashes:e}=Ke(),o=a=>{switch(a){case"warning":return"border-orange-500";case"error":return"border-red-500";case"info":return"border-blue-500";case"success":return"border-green-500"}};return t.onMounted(()=>{As(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(An),null,{default:t.withCtx(()=>[t.createElementVNode("div",Ws,[t.createVNode(t.TransitionGroup,{tag:"div",class:"max-w-sm space-y-2 w-full","enter-active-class":"ease-out duration-300","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":"ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),([l,s])=>(t.openBlock(),t.createElementBlock("div",{key:s.message,class:t.normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform z-10",[o(s.type)]])},[t.createElementVNode("div",Ks,[t.createElementVNode("div",qs,[t.createElementVNode("div",Gs,[t.createElementVNode("div",Js,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,Xs)]),t.createElementVNode("div",Zs,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:c=>t.unref(r).remove(l)},ec,8,Qs)])])])])],2))),128))]),_:1})])]),_:1}))}}),ap="";function tc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function nc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h7"})])}function rc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})])}function ma(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])}function dn(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})])}const oc={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},ac=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),ic={class:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl w-full"},lc={class:"block absolute top-0 right-0 pt-4 pr-4"},sc=t.createElementVNode("span",{class:"sr-only"},"Close",-1),cc={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},dc={class:"mt-3 sm:mt-0 sm:text-left"},uc={class:"mt-2"},fc={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},pc=["disabled","textContent"],ha=t.defineComponent({__name:"Modal",props:{destructive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean},submitText:{default:""},title:{default:""}},emits:["submit","update:modelValue"],setup(n,{emit:r}){const e=()=>{r("submit")},o=a=>{r("update:modelValue",a)};return(a,i)=>(t.openBlock(),t.createBlock(t.unref(bt),{as:"template",show:a.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Yt),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:a.modelValue,onClose:i[3]||(i[3]=l=>o(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",oc,[t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createVNode(t.unref(Wt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),ac,t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createElementVNode("div",ic,[t.createElementVNode("div",lc,[t.createElementVNode("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:i[0]||(i[0]=l=>o(!1))},[sc,t.createVNode(t.unref(dn),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",cc,[t.createElementVNode("div",dc,[t.createVNode(t.unref(Fn),{as:"h3",class:"text-center text-lg leading-6 font-medium text-gray-900"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createElementVNode("div",uc,[t.renderSlot(a.$slots,"default")])])]),a.submitText?(t.openBlock(),t.createElementBlock("div",fc,[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm",[a.destructive?"xy-btn-red":"xy-btn"]]),disabled:a.disabled,onClick:i[1]||(i[1]=l=>e()),textContent:t.toDisplayString(a.submitText)},null,10,pc),t.createElementVNode("button",{ref:"cancelButtonRef",type:"button",class:"xy-btn-white mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:i[2]||(i[2]=l=>o(!1))}," Cancel ",512)])):t.createCommentVNode("",!0),t.renderSlot(a.$slots,"buttons")])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),mc={class:"aspect-square overflow-hidden"},hc={class:"flex justify-center relative"},gc={class:"sr-only"},yc=t.createElementVNode("div",{class:"animate-spin-gear drop-shadow-sm"},[t.createElementVNode("svg",{class:"h-full w-full text-xy-green-300",viewBox:"0 0 129 129",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("defs",null,[t.createElementVNode("polygon",{id:"path-1",points:"0.000248076923 0.48676924 128.472837 0.48676924 128.472837 128.800648 0.000248076923 128.800648"})]),t.createElementVNode("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{id:"Group-6-Copy-3"},[t.createElementVNode("g",{id:"Group-3"},[t.createElementVNode("mask",{id:"mask-2",fill:"white"},[t.createElementVNode("use",{"xlink:href":"#path-1"})]),t.createElementVNode("g",{id:"Clip-2"}),t.createElementVNode("path",{id:"Fill-1",d:"M86.3955173,100.279324 C86.3955173,100.279324 79.4778923,106.213874 64.2360462,106.755809 C48.9954404,106.213874 42.0778154,100.279324 42.0778154,100.279324 C11.8756904,81.4963011 25.2309115,49.088357 25.2309115,49.088357 C36.5680269,24.1350542 59.1839596,22.5554236 63.8105942,22.4983139 L63.8105942,22.5043894 C63.8105942,22.5043894 63.9681231,22.4983139 64.2360462,22.4958837 C64.5052096,22.4983139 64.6627385,22.5043894 64.6627385,22.5043894 L64.6627385,22.4983139 C69.2881327,22.5554236 91.9053058,24.1350542 103.241181,49.088357 C103.241181,49.088357 116.596402,81.4963011 86.3955173,100.279324 L86.3955173,100.279324 Z M128.473085,68.8191581 L128.473085,60.4677727 L117.036738,58.80187 L115.10794,49.3726905 L124.970238,43.4186983 L121.675777,35.7307578 L110.49619,38.6214817 L106.161046,32.1486416 L113.220075,23.080347 L107.361738,17.0716753 L97.9645846,23.7437918 L89.14545,17.842049 L91.8693346,6.72144964 L84.04995,3.59378109 L78.2114596,13.4628269 L69.5907865,11.8127205 L67.908825,0.48676924 L64.6627385,0.48676924 L63.8105942,0.48676924 L60.5645077,0.48676924 L58.8813058,11.8127205 L50.2618731,13.4628269 L44.4233827,3.59378109 L36.6039981,6.72144964 L39.3278827,17.842049 L30.5087481,23.7437918 L21.1103538,17.0716753 L15.2520173,23.080347 L22.3122865,32.1486416 L17.9771423,38.6214817 L6.79755577,35.7307578 L3.50185385,43.4186983 L13.3641519,49.3726905 L11.4365942,58.80187 L0.000248076923,60.4677727 L0.000248076923,68.8191581 L11.4365942,70.4850608 L13.1036712,79.0223566 L3.13718077,84.8050196 L6.29644038,92.5488548 L17.5244019,89.8513318 L23.4832096,98.5854738 L16.7466808,107.893143 L22.8134019,113.695248 L31.9699212,106.70356 L38.5067481,110.99651 L35.5881231,122.068505 L43.35045,125.332265 L49.3625942,115.565287 L58.8813058,117.47421 L60.5645077,128.801377 L63.6927577,128.801377 L64.780575,128.801377 L67.908825,128.801377 L69.5907865,117.47421 L79.1107385,115.565287 L85.1228827,125.332265 L92.8852096,122.068505 L89.9665846,110.99651 L96.5034115,106.70356 L105.659931,113.695248 L111.725412,107.893143 L104.988883,98.5854738 L110.94769,89.8513318 L122.175652,92.5488548 L125.334912,84.8050196 L115.369662,79.0223566 L117.035498,70.4850608 L128.473085,68.8191581 Z",fill:"currentColor",mask:"url(#mask-2)"})])])])])],-1),bc=t.createElementVNode("div",{class:"absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50"},[t.createElementVNode("svg",{viewBox:"0 0 280 280",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("path",{class:"fill-xy-green",d:"m17.57,94.37c-3.36,13.54-5.07,28.73-5.07,45.63,0,32.02,6.04,58,18.1,77.95,3.81,4.98,7.46,9.94,10.95,14.66,21.21,23.24,54.01,34.89,98.45,34.89.71,0,1.39-.03,2.09-.03-3.62-46.93-22.27-88.31-54.36-124.11-19.79-22.07-42.96-38.86-70.16-48.99Z"}),t.createElementVNode("path",{class:"fill-xy-blue",d:"m267.5,140c0-85-42.5-127.5-127.5-127.5-55.06,0-92.27,17.86-111.66,53.53,28.32,8.48,56.67,16.85,84.98,25.37,27.05,8.14,54.01,16.55,81.06,24.67,5.45,1.64,7.5,4.76,6.63,10.27-.69,4.35-1.04,8.75-1.57,13.13-4.95,40.77-8.32,81.74-12.43,122.61,53.64-13.88,80.49-54.56,80.49-122.08Z"})])],-1),sr=t.defineComponent({__name:"XYSpinner",setup(n){const r=t.useAttrs();return(e,o)=>{var a,i;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass((a=t.unref(r))!=null&&a.class?(i=t.unref(r))==null?void 0:i.class:"h-20 w-20"),role:"status"},[t.createElementVNode("div",mc,[t.createElementVNode("div",hc,[t.createElementVNode("p",gc,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode("loading")])]),yc,bc])])],2)}}}),wc={key:0,class:"fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-40 bg-gray-50 bg-opacity-60"},xc={class:"mt-2"},un=t.defineComponent({__name:"Spinner",setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=Gr(),s=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(i.value=a.value[r.value]),l.value=!0},c=()=>{window.setTimeout(()=>{l.value=!1},2500)};return(d,u)=>(t.openBlock(),t.createBlock(t.unref(An),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",wc,[t.createVNode(sr,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",xc,[t.createVNode(t.Transition,{appear:"","enter-active-class":"ease-out duration-1000","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-500","leave-from-class":"opacity-100","leave-to-class":"opacity-0",onAfterEnter:c,onAfterLeave:s},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:"container font-medium text-lg leading-snug text-center transition-opacity"},t.toDisplayString(t.unref(i)),513),[[t.vShow,t.unref(l)]])]),_:1})],512),[[t.vShow,t.unref(a)]])])):t.createCommentVNode("",!0)]),_:1}))}}),Cc={class:"h-screen flex overflow-hidden bg-gray-100"},Ec={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},kc={class:"absolute top-0 right-0 -mr-12 pt-2"},_c=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),Dc={class:"shrink-0 flex justify-center px-4"},vc=["src"],Nc={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},Sc={class:"flex-1 px-2 space-y-1"},$c=["href","target"],Vc={key:0,class:"mt-auto"},Tc={class:"mt-6 px-2"},Bc=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),Mc={class:"hidden md:flex md:shrink-0"},Oc={class:"flex flex-col w-64"},Pc={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},Ac={class:"flex justify-center shrink-0 px-4"},Lc=["src"],Rc={class:"mt-5 grow flex flex-col"},Ic={class:"flex-1 px-2 bg-white space-y-1"},Fc=["href","target"],jc={key:0,class:"mt-atuo"},Hc={class:"mt-6 px-2"},Uc={class:"flex flex-col w-0 flex-1 overflow-hidden"},zc={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},Yc=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),Wc={class:"flex-1 px-4 flex justify-between"},Kc={class:"flex-1 flex"},qc={class:"flex items-center text-2xl text-white"},Gc={class:"ml-4 flex items-center md:ml-6"},Jc=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Xc=["href"],Zc={class:"flex-1 relative overflow-y-auto focus:outline-none"},Qc={class:"mx-auto"},ga=t.defineComponent({__name:"SidebarLayout",props:{activeUrl:{default:""},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=t.ref(!1),o=a=>r.activeUrl===a;return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Cc,[t.createVNode(t.unref(bt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(Yt),{as:"div",static:"",class:"fixed inset-0 flex z-10 md:hidden",open:e.value,onClose:i[1]||(i[1]=l=>e.value=!1)},{default:t.withCtx(()=>[t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createVNode(t.unref(Wt),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createElementVNode("div",Ec,[t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createElementVNode("div",kc,[t.createElementVNode("button",{class:"ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:i[0]||(i[0]=l=>e.value=!1)},[_c,t.createVNode(t.unref(dn),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",Dc,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,vc)]),t.createElementVNode("div",Nc,[t.createElementVNode("nav",Sc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([o(l.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-50 hover:text-gray-900","group flex items-center px-2 py-2 text-base font-medium rounded-md"]),target:l.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{class:t.normalizeClass([o(l.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-4 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(l.name),1)],10,$c))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Vc,[t.createElementVNode("div",Tc,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),Bc]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",Mc,[t.createElementVNode("div",Oc,[t.createElementVNode("div",Pc,[t.createElementVNode("div",Ac,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,Lc)]),t.createElementVNode("div",Rc,[t.createElementVNode("nav",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([o(l.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-100 hover:text-gray-900","group flex items-center px-2 py-2 text-sm font-medium rounded-md"]),target:l.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{class:t.normalizeClass([o(l.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-3 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(l.name),1)],10,Fc))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",jc,[t.createElementVNode("div",Hc,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",Uc,[t.createElementVNode("div",zc,[t.createElementVNode("button",{class:"px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 md:hidden",onClick:i[2]||(i[2]=l=>e.value=!0)},[Yc,t.createVNode(t.unref(nc),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",Wc,[t.createElementVNode("div",Kc,[t.createElementVNode("h1",qc,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Gc,[t.createVNode(t.unref(jn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Hn),{class:"max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-900 hover:text-gray-50 focus:outline-none focus:ring focus:text-white"},{default:t.withCtx(()=>[Jc,t.createVNode(t.unref(Il),{class:"h-8 w-8",fill:"currentColor"})]),_:1})]),t.createVNode(t.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:t.withCtx(()=>[t.createVNode(t.unref(Un),{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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(zn),{key:l.name},{default:t.withCtx(({active:s})=>[t.createElementVNode("a",{href:l.url,class:t.normalizeClass([s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(l.name),11,Xc)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",Zc,[t.createElementVNode("div",Qc,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(cn),t.createVNode(un)],64))}}),_t=t.defineComponent({__name:"Popover",props:{as:{default:"div"},position:{default:"auto"}},setup(n){const r=n,e=t.ref(null),o=t.ref(null),a=t.computed(()=>{const s=[Zl(5),es()];return r.position==="auto"&&s.push(Xl()),s}),i=t.computed(()=>{if(r.position!=="auto")return r.position}),{floatingStyles:l}=oa(e,o,{middleware:a,placement:i,strategy:"fixed",whileElementsMounted:ea});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(Eo),{as:s.as,class:"relative"},{default:t.withCtx(({open:d,close:u})=>[t.createVNode(t.unref(vl),{ref_key:"trigger",ref:e},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"button",{open:d,close:u})]),_:2},1536),t.createElementVNode("div",{ref_key:"wrapper",ref:o,class:"z-[5]",style:t.normalizeStyle(t.unref(l))},[t.createVNode(t.unref(Nl),null,{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default",{open:d,close:u})]),_:2},1024)],4)]),_:3},8,["as"]))}}),ed=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},td={},nd={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function rd(n,r){return t.openBlock(),t.createElementBlock("div",nd,[t.renderSlot(n.$slots,"default")])}const ya=ed(td,[["render",rd]]),od={class:"absolute inset-0 overflow-hidden"},ad={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},id={class:"w-screen max-w-md"},ld={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},sd={class:"py-6 px-4 bg-xy-blue-700 sm:px-6"},cd={class:"flex items-center justify-between"},dd={class:"ml-3 h-7 flex items-center"},ud=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),fd={class:"mt-1"},pd=["textContent"],md={class:"relative flex-1 py-6 px-4 sm:px-6"},ba=t.defineComponent({__name:"Slideover",props:{header:{},description:{},modelValue:{type:Boolean}},emits:["close","update:modelValue"],setup(n,{emit:r}){const e=n,o=t.ref(e.modelValue),a=()=>{o.value=!1,r("close",o.value),r("update:modelValue",o.value)};return(i,l)=>(t.openBlock(),t.createBlock(t.unref(bt),{as:"template",show:i.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Yt),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",open:i.modelValue,onClose:l[1]||(l[1]=s=>a())},{default:t.withCtx(()=>[t.createElementVNode("div",od,[t.createVNode(t.unref(Wt),{class:"absolute inset-0"}),t.createElementVNode("div",ad,[t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createElementVNode("div",id,[t.createElementVNode("div",ld,[t.createElementVNode("div",sd,[t.createElementVNode("div",cd,[t.createVNode(t.unref(Fn),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.header),1)]),_:1}),t.createElementVNode("div",dd,[t.createElementVNode("button",{class:"bg-xy-blue-600 rounded-md text-gray-50 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:l[0]||(l[0]=s=>a())},[ud,t.createVNode(t.unref(dn),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",fd,[t.createElementVNode("p",{class:"text-gray-50 text-base font-medium",textContent:t.toDisplayString(i.description)},null,8,pd)])]),t.createElementVNode("div",md,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),hd=["onMouseover","onMouseleave"],gd=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),yd=["onMouseleave"],bd={class:"max-w-xs"},wa=t.defineComponent({__name:"Tooltip",props:{as:{default:"span"},position:{default:"auto"}},setup(n){var r=!1,e=null;const o=i=>{r=!1,e&&clearTimeout(e),e=setTimeout(()=>{r||i()},100)},a=(i,l)=>{r=!0,!l&&i.target&&i.target.click()};return(i,l)=>(t.openBlock(),t.createBlock(_t,{position:i.position,as:i.as},{button:t.withCtx(({open:s,close:c})=>[t.createElementVNode("div",{class:"leading-none relative w-4 h-4",onMouseover:d=>a(d,s),onMouseleave:d=>o(c)},[t.createVNode(t.unref(tc)),gd],40,hd)]),default:t.withCtx(({close:s})=>[t.createElementVNode("div",{class:"sm:min-w-max bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium",onMouseover:l[0]||(l[0]=t.withModifiers(c=>t.isRef(r)?r.value=!0:r=!0,["prevent"])),onMouseleave:t.withModifiers(c=>o(s),["prevent"])},[t.createElementVNode("div",bd,[t.renderSlot(i.$slots,"default")])],40,yd)]),_:3},8,["position","as"]))}}),wd={class:"min-h-screen bg-gray-100"},xd={class:"mx-auto px-4 sm:px-6 lg:px-8"},Cd={class:"flex justify-between h-16"},Ed={class:"flex"},kd={class:"shrink-0 flex items-center"},_d=["src"],Dd={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},vd=["href","aria-current"],Nd={class:"hidden sm:ml-6 sm:flex sm:items-center"},Sd=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),$d=["href"],Vd={class:"-mr-2 flex items-center sm:hidden"},Td=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Bd={class:"pt-2 pb-3 space-y-1"},Md=["href","aria-current"],Od={class:"pt-4 pb-3 border-t border-gray-200"},Pd={class:"flex items-center px-4"},Ad={class:"shrink-0"},Ld={class:"ml-3"},Rd=["textContent"],Id=["textContent"],Fd={class:"mt-3 space-y-1"},jd=["href"],Hd={class:"mx-auto sm:px-6 lg:px-8"},Ud={class:"px-4 py-8 sm:px-0"},xa=t.defineComponent({__name:"StackedLayout",props:{activeUrl:{default:""},currentUser:{},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=o=>r.activeUrl===o;return(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",wd,[t.createVNode(t.unref(bl),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",xd,[t.createElementVNode("div",Cd,[t.createElementVNode("div",Ed,[t.createElementVNode("div",kd,[t.createElementVNode("img",{class:"block h-8 w-auto",src:o.iconUrl,alt:"XY Trees"},null,8,_d)]),t.createElementVNode("div",Dd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([e(l.url)?"border-blue-500 text-gray-900":"border-transparent text-gray-700 hover:text-gray-900 hover:border-blue-500","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-semibold"]),"aria-current":e(l.url)?"page":void 0},t.toDisplayString(l.name),11,vd))),128))])]),t.createElementVNode("div",Nd,[t.createVNode(t.unref(jn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Hn),{class:"bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[Sd,t.createVNode(t.unref(ma),{class:"text-gray-500 h-8 w-8 rounded-full"})]),_:1})]),t.createVNode(t.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:t.withCtx(()=>[t.createVNode(t.unref(Un),{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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(zn),{key:l.name},{default:t.withCtx(({active:s})=>[t.createElementVNode("a",{href:l.url,class:t.normalizeClass([s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(l.name),11,$d)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",Vd,[t.createVNode(t.unref(wl),{class:"bg-white 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-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[Td,i?(t.openBlock(),t.createBlock(t.unref(dn),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(rc),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(xl),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",Bd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([e(l.url)?"bg-blue-50 border-blue-500 text-blue-700":"border-transparent text-gray-700 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-900","block pl-3 pr-4 py-2 border-l-4 text-base font-semibold"]),"aria-current":e(l.url)?"page":void 0},t.toDisplayString(l.name),11,Md))),128))]),t.createElementVNode("div",Od,[t.createElementVNode("div",Pd,[t.createElementVNode("div",Ad,[t.createVNode(t.unref(ma),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",Ld,[o.currentUser.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-base font-medium text-gray-800",textContent:t.toDisplayString(o.currentUser.name)},null,8,Rd)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(o.currentUser.email)},null,8,Id)])]),t.createElementVNode("div",Fd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:"block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100"},t.toDisplayString(l.name),9,jd))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",Hd,[t.createElementVNode("div",Ud,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(cn),t.createVNode(un)],64))}}),zd=n=>n==null,Yd={refresh(){console.warn("refresh() was called on a static table, did you mean to use DynamicTable?")},reset(){console.warn("reset() was called on a static table, did you mean to use DynamicTable?")}},Ca=(n,r,e,o=Yd)=>{const a=t.ref(r),i=t.ref(n),l=t.ref(e),s=t.computed(()=>l.value.actions.length>0),c=t.computed(()=>a.value.map(u=>{let m="";switch((u==null?void 0:u.alignment)||"left"){case"left":m="text-left";break;case"right":m="text-right";break;case"center":m="text-center";break}return{...u,alignment:m}})),d=t.computed(()=>i.value.map((u,m)=>({actions:l.value.actions.map(h=>({...h,disabled:typeof h.disabled=="function"?h.disabled.apply(void 0,[u,m]):h.disabled,onClick:()=>h.onClick(u,m,o),show:typeof h.show=="function"?h.show.apply(void 0,[u,m]):h.show})),rowData:u,cells:c.value.map(h=>{const g=typeof h.render=="string"?u[h.render]:h.render(u,m),y=(h==null?void 0:h.classNames)||"";return{...h,isComponent:t.isVNode(g),classNames:typeof y=="function"?y.apply(void 0,[u,m]):y,val:g}})})));return{columns:c,hasActions:s,isEmptyCellValue:zd,rows:d}},Wd={key:0,class:"flex items-center space-x-2 justify-end"},Kd={class:"isolate inline-flex rounded-md shadow-sm"},qd=["disabled","onClick"],Gd={class:"relative inline-flex items-center gap-x-1.5"},Ea=t.defineComponent({__name:"TableActionButtons",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Mo(t.toRef(r,"actions"));return(a,i)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",Wd,[t.createElementVNode("span",Kd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(l,s)=>(t.openBlock(),t.createElementBlock("button",{key:s,type:"button",class:t.normalizeClass(["group relative inline-flex items-center bg-white px-3 py-2 text-sm font-semibold text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 disabled:text-gray-400 disabled:cursor-not-allowed",{"rounded-l-md":s===0,"-ml-px":s>0,"rounded-r-md":s===t.unref(e).length-1}]),disabled:l.disabled,onClick:t.withModifiers(l.onClick,["stop"])},[t.createElementVNode("span",Gd,[l.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{key:0,class:t.normalizeClass(["-ml-0.5 h-4 w-4 group-disabled:text-gray-300",l.label?"text-gray-400":"text-gray-600"]),"aria-hidden":"true"},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(l.label),1)])],10,qd))),128))])])):t.createCommentVNode("",!0)}}),Jd={class:"flex flex-col"},Xd={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Zd={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Qd={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},eu={class:"min-w-full divide-y divide-gray-200"},tu={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},nu={class:"bg-white divide-y divide-gray-200"},ru={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},ou={key:0},au=["colspan"],ka=t.defineComponent({__name:"DataTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableData:{}},setup(n){const r=n,{columns:e,hasActions:o,isEmptyCellValue:a,rows:i}=Ca(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(l,s)=>(t.openBlock(),t.createElementBlock("div",Jd,[t.createElementVNode("div",Xd,[t.createElementVNode("div",Zd,[t.createElementVNode("div",Qd,[t.createElementVNode("table",eu,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(c,d)=>(t.openBlock(),t.createElementBlock("th",{key:d,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",c.alignment])},t.toDisplayString(c.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",tu)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",nu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(c,d)=>(t.openBlock(),t.createElementBlock("tr",{key:d},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.cells,(u,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:m,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",u.alignment])},{default:t.withCtx(()=>[u.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.classNames)},t.toDisplayString(t.unref(a)(u.val)?"-":String(u.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",ru,[l.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(nn),{key:0,actions:c.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Ea,{key:1,actions:c.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(i).length===0?(t.openBlock(),t.createElementBlock("tr",ou,[t.createElementVNode("td",{colspan:t.unref(e).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,au)])):t.createCommentVNode("",!0)])])])])])]))}}),iu={class:"flex items-center justify-center space-x-8"},lu={class:"font-medium"},su={class:"flex items-center space-x-5"},cu={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},du={key:1,class:"relative flex items-center justify-center"},uu=[t.createElementVNode("span",{class:"absolute w-5 h-5 p-px flex"},[t.createElementVNode("span",{class:"w-full h-full rounded-full bg-green-100"})],-1),t.createElementVNode("span",{class:"relative block w-2.5 h-2.5 bg-xy-green rounded-full"},null,-1)],fu={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},pu={key:0,class:"flex shrink-0"},mu={key:0,class:"inline-flex rounded-md shadow-sm"},hu=["textContent"],gu={class:"ml-3 inline-flex rounded-md shadow-sm"},yu=["textContent"],_a=t.defineComponent({__name:"Steps",props:{hideActions:{type:Boolean,default:!1},hidePrevious:{type:Boolean,default:!1},nextText:{default:"Next"},previousText:{default:"Back"},step:{},total:{}},emits:["next","previous"],setup(n,{emit:r}){const e=()=>{r("next")},o=()=>{r("previous")};return(a,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("nav",iu,[t.createElementVNode("p",lu,"Step "+t.toDisplayString(a.step)+" of "+t.toDisplayString(a.total),1),t.createElementVNode("ul",su,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.total,l=>(t.openBlock(),t.createElementBlock("li",{key:l},[a.step>l?(t.openBlock(),t.createElementBlock("span",cu)):a.step===l?(t.openBlock(),t.createElementBlock("div",du,uu)):(t.openBlock(),t.createElementBlock("span",fu))]))),128))])]),a.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",pu,[a.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",mu,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(a.previousText)},null,8,hu)])),t.createElementVNode("span",gu,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(a.nextText)},null,8,yu)])]))]))}}),bu={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},wu={key:0,class:"w-full max-w-lg lg:max-w-xs"},xu=t.createElementVNode("label",{for:"search",class:"sr-only"},"Search",-1),Cu={class:"relative"},Eu=t.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[t.createElementVNode("svg",{class:"w-5 h-5 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),ku={key:1,class:"w-full max-w-lg lg:max-w-xs"},_u={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},Du={class:"min-w-full divide-y divide-gray-200"},vu={key:0},Nu=["onClick"],Su={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},$u=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},null,-1)],Vu={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Tu=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)],Bu={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Mu=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)],Ou={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},Pu={class:"bg-white divide-y divide-gray-200"},Au=["onClick"],Lu={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Ru={key:0},Iu=["colspan"],Da=t.defineComponent({__name:"DynamicTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableOptions:{}},emits:["click:row"],setup(n,{expose:r}){const e=n,o=()=>{const L={minDate:y.value.minDate,maxDate:y.value.maxDate,page:w.value.page,perPage:w.value.perPage,sort:h.value,sortDir:g.value,q:E.value};Pn.get(e.tableOptions.url,{skipLoader:!1},L).then(I=>{w.value={page:I.data.page,perPage:I.data.perPage,totalItems:I.data.totalItems,totalPages:I.data.totalPages},l.value=I.data.items},()=>{lr.genericError()})},a=()=>{w.value.page=1,o()},i=()=>{if(N.value.maxRange){const L=new Date,I=L.setDate(L.getDate()-N.value.maxRange),T=new Date;y.value={minDate:Math.floor(I/1e3),maxDate:Math.floor(T.getTime()/1e3)}}},l=t.ref([]),s={refresh:o,reset:a},{columns:c,hasActions:d,isEmptyCellValue:u,rows:m}=Ca(l,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),s),h=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),g=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),y=t.ref({minDate:0,maxDate:0}),w=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),E=t.ref(""),k=L=>{w.value.page=1,y.value=L,o()},v=L=>{h.value==L?g.value=g.value==="desc"?"asc":"desc":(h.value=L,g.value="desc"),o()},N=t.computed(()=>typeof e.tableOptions.dateSearch=="object"?e.tableOptions.dateSearch:{}),j=t.computed(()=>!!m.value.length);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(s),i(),o(),(L,I)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",bu,[L.tableOptions.search?(t.openBlock(),t.createElementBlock("div",wu,[xu,t.createElementVNode("div",Cu,[Eu,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":I[0]||(I[0]=T=>E.value=T),class:"pl-10",type:"search",placeholder:"Search",onChange:I[1]||(I[1]=T=>a())},null,544),[[t.vModelText,E.value,void 0,{trim:!0}]])])])):t.createCommentVNode("",!0),L.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",ku,[t.createVNode(ln,t.mergeProps({modelValue:y.value,"onUpdate:modelValue":I[2]||(I[2]=T=>y.value=T)},{...N.value},{"onUpdate:modelValue":k}),null,16,["modelValue"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_u,[t.createElementVNode("table",Du,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(T,be)=>(t.openBlock(),t.createElementBlock("th",{key:be,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",T.alignment])},[T.title?(t.openBlock(),t.createElementBlock("span",vu,t.toDisplayString(T.title),1)):t.createCommentVNode("",!0),T.sort?(t.openBlock(),t.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:t.withModifiers(P=>v(T.sort),["prevent"])},[h.value!==T.sort?(t.openBlock(),t.createElementBlock("svg",Su,$u)):g.value=="desc"?(t.openBlock(),t.createElementBlock("svg",Vu,Tu)):(t.openBlock(),t.createElementBlock("svg",Bu,Mu))],8,Nu)):t.createCommentVNode("",!0)],2))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("th",Ou)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",Pu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(m),(T,be)=>(t.openBlock(),t.createElementBlock("tr",{key:be,onClick:P=>L.$emit("click:row",T.rowData)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.cells,(P,Y)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:Y,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",P.alignment])},{default:t.withCtx(()=>[P.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(P.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(P.classNames)},t.toDisplayString(t.unref(u)(P.val)?"-":String(P.val)),3))]),_:2},1032,["class"]))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("td",Lu,[L.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(nn),{key:0,actions:T.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Ea,{key:1,actions:T.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,Au))),128)),j.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Ru,[t.createElementVNode("td",{colspan:t.unref(m).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Iu)]))])])]),j.value?(t.openBlock(),t.createBlock(sn,{key:0,modelValue:w.value,"onUpdate:modelValue":[I[3]||(I[3]=T=>w.value=T),I[4]||(I[4]=T=>o())]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Fu=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),ju={class:"hidden sm:block"},Hu=["onClick","textContent"],va=t.defineComponent({__name:"Tabs",props:{modelValue:{},pillDesign:{type:Boolean,default:!1},tabs:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=l=>{r("update:modelValue",l)},a=(l,s)=>{let c="";return e.pillDesign?(c="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.modelValue===l?c=c+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":c=c+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",c):(c="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.modelValue===l?c=c+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":c=c+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",s&&(c=c+" ml-8"),c)},i=t.computed(()=>!e.pillDesign);return(l,s)=>{const c=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":l.pillDesign}])},[Fu,t.createVNode(c,{name:"tabs","model-value":l.modelValue,options:l.tabs,"onUpdate:modelValue":s[0]||(s[0]=d=>o(d))},null,8,["model-value","options"])],2),t.createElementVNode("div",ju,[t.createElementVNode("div",{class:t.normalizeClass({"border-b border-gray-200":i.value})},[t.createElementVNode("nav",{class:t.normalizeClass(["flex",[l.pillDesign?"ml-8":"-mb-px"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.tabs,(d,u)=>(t.openBlock(),t.createElementBlock("a",{key:u,href:"#",class:t.normalizeClass(a(d.value,u>0)),onClick:t.withModifiers(m=>o(d.value),["prevent"]),textContent:t.toDisplayString(d.label)},null,10,Hu))),128))],2)],2)])])}}}),Uu=t.createElementVNode("span",{class:"sr-only"},"Use",-1),Na=t.defineComponent({__name:"Toggle",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){return(e,o)=>(t.openBlock(),t.createBlock(t.unref(Bl),{class:t.normalizeClass([e.modelValue?"bg-xy-blue":"bg-gray-200","relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500"]),"model-value":e.modelValue,"onUpdate:modelValue":o[0]||(o[0]=a=>r("update:modelValue",a))},{default:t.withCtx(()=>[Uu,t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([e.modelValue?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200"])},null,2)]),_:1},8,["class","model-value"]))}}),zu={class:"relative flex items-start"},Yu={class:"flex items-center h-5"},Wu=["id","aria-labelledby","aria-describedby","checked"],Ku={class:"ml-3"},Sa=t.defineComponent({__name:"Checkbox",props:{label:{default:""},help:{default:""},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||Be.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock("div",zu,[t.createElementVNode("div",Yu,[t.createElementVNode("input",t.mergeProps({id:t.unref(o),"aria-labelledby":a.label?`${t.unref(o)}-label`:void 0,"aria-describedby":a.help?`${t.unref(o)}-help`:void 0,checked:a.modelValue,class:"focus:ring-xy-blue-500 h-4 w-4 text-xy-blue border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",type:"checkbox"},{onChange:l=>{r("update:modelValue",l.target.checked)},...a.$attrs}),null,16,Wu)]),t.createElementVNode("div",Ku,[t.createVNode(Ee,{id:`${t.unref(o)}-label`,class:"mt-auto",disabled:a.$attrs.hasOwnProperty("disabled")&&a.$attrs.disabled!==!1,for:t.unref(o),label:a.label},null,8,["id","disabled","for","label"]),t.createVNode(ye,{id:`${t.unref(o)}-help`,class:"-mt-1",text:a.help},null,8,["id","text"])])]))}});function qu(n,r={}){return n?n(r).some(e=>e.type===t.Comment||Array.isArray(e.children)&&!e.children.length?!1:e.type!==t.Text||typeof e.children=="string"&&e.children.trim()!==""):!1}const Dt=t.defineComponent({__name:"FieldsetLegend",props:{tag:{default:"legend"}},setup(n){return(r,e)=>t.unref(qu)(r.$slots.default)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.normalizeProps(t.mergeProps({key:0},{...r.$attrs,class:"text-sm font-semibold leading-snug text-gray-900"})),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16)):t.createCommentVNode("",!0)}}),Gu=["aria-labelledby","aria-describedby"],Ju={key:0,class:"space-y-0.5"},Xu={key:0},Zu={class:"flex"},Qu={class:"flex items-center h-5"},ef=["id","aria-labelledby","aria-describedby","checked","disabled"],tf={class:"ml-3"},$a=t.defineComponent({__name:"MultiCheckboxes",props:{options:{},help:{default:""},legend:{default:""},modelValue:{},columns:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=t.useSlots(),i=o.id||Be.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0),s=(c,d)=>{let u=[...e.modelValue];c?u.push(d):u.splice(u.indexOf(d),1),r("update:modelValue",u)};return(c,d)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":l.value?`${t.unref(i)}-legend`:void 0,"aria-describedby":c.help?`${t.unref(i)}-help`:void 0},[l.value||c.help?(t.openBlock(),t.createElementBlock("div",Ju,[t.createVNode(Dt,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[c.legend?(t.openBlock(),t.createElementBlock("div",Xu,t.toDisplayString(c.legend),1)):t.createCommentVNode("",!0),c.$slots.legend?t.renderSlot(c.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(ye,{id:`${t.unref(i)}-help`,tag:"p",text:c.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Zu,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-4",{"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0":c.columns!==void 0,"sm:grid-cols-2":c.columns===2,"sm:grid-cols-3":c.columns===3,"sm:grid-cols-4":c.columns===4}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.options,(u,m)=>(t.openBlock(),t.createElementBlock("div",{key:u.value,class:"flex items-start"},[t.createElementVNode("div",Qu,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${m}`,"aria-labelledby":`${t.unref(i)}-${m}-label`,"aria-describedby":u!=null&&u.help&&u.help?`${t.unref(i)}-${m}-help`:void 0,checked:c.modelValue.includes(u.value),disabled:u.disabled===!0?!0:void 0,class:"focus:ring-xy-blue-500 h-4 w-4 text-xy-blue border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",type:"checkbox"},{onChange:h=>{s(h.target.checked,u.value)},...c.$attrs}),null,16,ef)]),t.createElementVNode("div",tf,[t.createVNode(Ee,{id:`${t.unref(i)}-${m}-label`,class:"mt-auto",disabled:c.$attrs.hasOwnProperty("disabled")&&c.$attrs.disabled!==!1||u.disabled===!0,for:`${t.unref(i)}-${m}`,label:u.label},null,8,["id","disabled","for","label"]),t.createVNode(ye,{id:`${t.unref(i)}-${m}-help`,class:"-mt-1",text:u.help},null,8,["id","text"])])]))),128))],2)])],8,Gu))}}),nf=["aria-labelledby","aria-describedby"],rf={key:0,class:"space-y-0.5"},of={key:0},af={class:"flex"},lf={class:"flex items-center h-5"},sf=["id","aria-describedby","aria-labelledby","checked","disabled","name","value"],cf={class:"ml-3"},Va=t.defineComponent({__name:"Radio",props:{options:{},help:{default:""},legend:{default:""},modelValue:{default:void 0},columns:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=t.useSlots(),i=o.id||Be.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0);return(s,c)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":l.value?`${t.unref(i)}-legend`:void 0,"aria-describedby":s.help?`${t.unref(i)}-help`:void 0},[l.value||s.help?(t.openBlock(),t.createElementBlock("div",rf,[t.createVNode(Dt,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[s.legend?(t.openBlock(),t.createElementBlock("div",of,t.toDisplayString(s.legend),1)):t.createCommentVNode("",!0),s.$slots.legend?t.renderSlot(s.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(ye,{id:`${t.unref(i)}-help`,tag:"p",text:s.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",af,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-4",{"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0":s.columns!==void 0,"sm:grid-cols-2":s.columns===2,"sm:grid-cols-3":s.columns===3,"sm:grid-cols-4":s.columns===4}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.options,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:d.value,class:"flex items-start"},[t.createElementVNode("div",lf,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${u}`,"aria-describedby":d!=null&&d.help&&d.help?`${t.unref(i)}-${u}-help`:void 0,"aria-labelledby":`${t.unref(i)}-${u}-label`,checked:s.modelValue===d.value,class:"w-4 h-4 border-gray-600 focus:ring-xy-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",disabled:d.disabled===!0?!0:void 0,name:t.unref(i),type:"radio",value:d.value},{onChange:()=>{r("update:modelValue",d.value)},...s.$attrs}),null,16,sf)]),t.createElementVNode("div",cf,[t.createVNode(Ee,{id:`${t.unref(i)}-${u}-label`,class:"mt-auto",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1||d.disabled===!0,for:`${t.unref(i)}-${u}`,label:d.label},null,8,["id","disabled","for","label"]),t.createVNode(ye,{id:`${t.unref(i)}-${u}-help`,class:"-mt-1",text:d.help},null,8,["id","text"])])]))),128))],2)])],8,nf))}}),df=["id"],uf={class:"flex-1 flex pr-1"},ff={class:"flex flex-col"},pf={key:1,class:"mt-auto mb-0"},mf=["checked","name","required","value"],Ta=t.defineComponent({__name:"RadioCards",props:{columns:{default:void 0},help:{default:""},legend:{default:""},modelValue:{default:void 0},options:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=Be.CreateIdAttribute(),i=t.ref(),l=t.ref(),s=t.computed(()=>e.modelValue===void 0?i.value:e.modelValue),c=u=>{i.value=u,l.value=!1,r("update:modelValue",u)},d=t.computed(()=>typeof o.name=="string"&&o.name!==""?o.name:a);return(u,m)=>(t.openBlock(),t.createBlock(t.unref($l),{"model-value":s.value,disabled:typeof t.unref(o).disabled=="boolean"?t.unref(o).disabled:!1,"aria-invalid":l.value===!0?"true":null,"aria-errormessage":l.value===!0?`error-${t.unref(a)}`:null,"onUpdate:modelValue":c},{default:t.withCtx(()=>[u.legend?(t.openBlock(),t.createBlock(t.unref(So),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(Dt,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.legend),1)]),_:1})]),_:1})):t.createCommentVNode("",!0),u.help?(t.openBlock(),t.createBlock(t.unref(Yn),{key:1},{default:t.withCtx(()=>[t.createVNode(ye,{text:u.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0),l.value===!0?(t.openBlock(),t.createElementBlock("div",{key:2,id:`error-${t.unref(a)}`,class:"sr-only"}," Please select one of these options. ",8,df)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["mt-4 grid grid-cols-1 gap-y-5 gap-x-4 relative",{"sm:grid-cols-2":u.columns===2,"sm:grid-cols-3":u.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,h=>(t.openBlock(),t.createBlock(t.unref(Vl),{key:h.value,as:"template",disabled:h!=null&&h.disabled?h.disabled:!1,value:h.value},{default:t.withCtx(({active:g,checked:y,disabled:w})=>[t.createElementVNode("div",{class:t.normalizeClass(["relative bg-white border rounded-lg shadow-sm p-4 flex cursor-pointer focus:outline-none",[y?"border-transparent":"border-gray-300",g?"border-xy-blue ring-2 ring-xy-blue-500":"",w?"cursor-not-allowed opacity-75":""]])},[t.createElementVNode("div",uf,[t.createElementVNode("div",ff,[t.createVNode(t.unref(So),{as:"div"},{default:t.withCtx(()=>[t.createVNode(Ee,{tag:"div",class:"mt-auto mb-auto",label:h.label},null,8,["label"])]),_:2},1024),h.help?(t.openBlock(),t.createBlock(t.unref(Yn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(ye,{tag:"div",class:"mt-auto",text:h.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),h.sublabel||u.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",pf,[t.createVNode(t.unref(Yn),{as:"div",class:"font-semibold leading-snug mt-4 text-gray-900 text-sm"},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"sublabel",{active:g,checked:y,disabled:w,option:h},()=>[t.createTextVNode(t.toDisplayString(h.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(Rl),{class:t.normalizeClass([y?"":"invisible","h-5 w-5 text-xy-blue"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([g?"border":"border-2",y?"border-xy-blue":"border-transparent","absolute -inset-px rounded-lg pointer-events-none"]),"aria-hidden":"true"},null,2),t.createElementVNode("input",{class:"sr-only top-1 left-1","aria-hidden":"true",checked:y,name:d.value,required:t.unref(o).required!==void 0&&t.unref(o).required!==!1,tabindex:"-1",type:"radio",value:h.value,onInvalid:m[0]||(m[0]=E=>l.value=!0)},null,40,mf)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["model-value","disabled","aria-invalid","aria-errormessage"]))}}),hf=["id","aria-labelledby","aria-describedby","value"],Ba=t.defineComponent({__name:"TextArea",props:{help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||Be.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Ee,{id:`${t.unref(o)}-label`,class:"block",for:t.unref(o),label:a.label},null,8,["id","for","label"]),t.createElementVNode("textarea",t.mergeProps({id:t.unref(o),"aria-labelledby":a.label?`${t.unref(o)}-label`:void 0,"aria-describedby":a.help?`${t.unref(o)}-help`:void 0,class:["mt-1","sm:text-sm","block","shadow-sm","focus:ring-xy-blue-500","focus:border-xy-blue","border-gray-600","rounded-md","w-full","disabled:opacity-70","disabled:cursor-not-allowed"],value:a.modelValue},a.$attrs,{onInput:i[0]||(i[0]=l=>r("update:modelValue",l.target.value))}),null,16,hf),t.createVNode(ye,{id:`${t.unref(o)}-help`,text:a.help},null,8,["id","text"])],64))}}),gf=["aria-labelledby","aria-describedby"],yf={key:0,class:"space-y-0.5"},bf=["for"],wf=["id","name","checked"],xf=["for"],Cf=["id","name","checked"],Ma=t.defineComponent({__name:"YesOrNoRadio",props:{modelValue:{type:Boolean,default:void 0},help:{default:""},legend:{default:""},name:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Be.CreateIdAttribute(),i=t.computed(()=>typeof e.name=="string"&&e.name!==""),l=s=>{r("update:modelValue",s.target.value==="true")};return(s,c)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-3","aria-labelledby":s.legend?`${t.unref(a)}-legend`:void 0,"aria-describedby":s.help?`${t.unref(a)}-help`:void 0},[s.legend||s.help?(t.openBlock(),t.createElementBlock("div",yf,[t.createVNode(Ee,{class:"block my-auto",label:s.legend,tag:"legend"},null,8,["label"]),t.createVNode(ye,{id:`${t.unref(a)}-help`,tag:"p",text:s.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center",{"cursor-not-allowed":s.$attrs.disabled}]),for:`${i.value?s.name:t.unref(a)}-true`},[t.createElementVNode("input",t.mergeProps({id:`${i.value?s.name:t.unref(a)}-true`,type:"radio",class:"w-4 h-4 border-gray-600 focus:ring-xy-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",name:i.value?s.name:t.unref(a),value:!0,checked:s.modelValue===!0},{...s.$attrs,onChange:l}),null,16,wf),t.createVNode(Ee,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"Yes",tag:"span"},null,8,["disabled"])],10,bf),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",{"cursor-not-allowed":s.$attrs.disabled}]),for:`${i.value?s.name:t.unref(a)}-false`},[t.createElementVNode("input",t.mergeProps({id:`${i.value?s.name:t.unref(a)}-false`,type:"radio",class:"w-4 h-4 border-gray-600 focus:ring-xy-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",name:i.value?s.name:t.unref(a),value:!1,checked:s.modelValue===!1},{...s.$attrs,onChange:l}),null,16,Cf),t.createVNode(Ee,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"No",tag:"span"},null,8,["disabled"])],10,xf)])],8,gf))}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:nn,BaseInput:rr,Cards:aa,Checkbox:Sa,ContentModal:ia,DataTable:ka,DateFilter:ar,DateRangePicker:ln,DetailList:fa,DownloadCell:pa,DynamicTable:Da,FieldsetLegend:Dt,Flash:cn,InputHelp:ye,InputLabel:Ee,Modal:ha,MultiCheckboxes:$a,Paginator:sn,Popover:_t,PopoverContent:ya,PopoverPosition:_t,Radio:Va,RadioCards:Ta,Select:or,SidebarLayout:ga,Slideover:ba,Spinner:un,StackedLayout:xa,Steps:_a,Tabs:va,TextArea:Ba,Toggle:Na,Tooltip:wa,XYSpinner:sr,YesOrNoRadio:Ma},Symbol.toStringTag,{value:"Module"})),kf=function(r){Object.entries(Ef).forEach(([e,o])=>{r.component(e,o)})};$.ActionsDropdown=nn,$.BaseAPI=Pn,$.BaseInput=rr,$.Cards=aa,$.Checkbox=Sa,$.ContentModal=ia,$.DataTable=ka,$.DateFilter=ar,$.DateRangePicker=ln,$.DetailList=fa,$.DownloadCell=pa,$.DynamicTable=Da,$.FieldsetLegend=Dt,$.Flash=cn,$.InputHelp=ye,$.InputLabel=Ee,$.Modal=ha,$.MultiCheckboxes=$a,$.Paginator=sn,$.Popover=_t,$.PopoverContent=ya,$.PopoverPosition=_t,$.Radio=Va,$.RadioCards=Ta,$.Select=or,$.SidebarLayout=ga,$.Slideover=ba,$.Spinner=un,$.StackedLayout=xa,$.Steps=_a,$.Tabs=va,$.TextArea=Ba,$.Toggle=Na,$.Tooltip=wa,$.XYSpinner=sr,$.YesOrNoRadio=Ma,$.default=kf,$.isHttpCancel=Zr,$.isHttpError=Xr,$.useAppFlasher=lr,$.useAppFlashes=Ke,$.useAppSpinner=On,$.useBaseAPI=st,$.useBaseAPIDelete=Bs,$.useBaseAPIGet=Ts,$.useBaseAPIPatch=Ms,$.useBaseAPIPost=Os,$.useBaseAPIPut=Ps,$.useFlashes=ua,$.useSpinnerDisplay=qr,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
13
|
+
if the issue persists.`:"Whoops! Something went wrong.";return i({message:w,persistent:g,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:u,info:c,success:d,genericError:m},flashes:r,configure:o}}const As=n=>{if(window.Flashes)for(const r of window.Flashes){if(typeof r.type>"u"){const e=r.message.split(": ");n.add({type:e[0],message:e[1]});continue}n.add(r)}};let ir;function Ke(){return ir===void 0&&(ir=ua()),ir}const lr={error(n,r){Ke().flasher.error(n,r)},info(n,r){Ke().flasher.info(n,r)},success(n,r){Ke().flasher.success(n,r)},warning(n,r){Ke().flasher.warning(n,r)},genericError(n,r){Ke().flasher.genericError(n,r)}},Ls={class:"px-4 flex items-center justify-between sm:px-0"},Rs={class:"w-0 flex-1 flex"},Is=t.createElementVNode("svg",{class:"mr-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z","clip-rule":"evenodd"})],-1),Fs={class:"hidden md:flex"},js=["onClick","textContent"],Hs={class:"w-0 flex-1 flex justify-end"},Us=t.createElementVNode("svg",{class:"ml-3 h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),sn=t.defineComponent({__name:"Paginator",props:{modelValue:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=i=>{r("update:modelValue",{...e.modelValue,page:i})},a=t.computed(()=>{const i=[];if(e.modelValue.totalPages<=4){for(let s=0;s<e.modelValue.totalPages;s++)i.push(s+1);return i}if(e.modelValue.totalPages-e.modelValue.page>=3){for(let s=0;s<4;s++)i.push(e.modelValue.page+s);return i}for(let s=0;s<4;s++)i.unshift(e.modelValue.totalPages-s);return i});return(i,l)=>(t.openBlock(),t.createElementBlock("div",Ls,[t.createElementVNode("div",Rs,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pr-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",i.modelValue.page==1?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:l[0]||(l[0]=t.withModifiers(s=>o(i.modelValue.page-1),["prevent"]))},[Is,t.createTextVNode(" Previous ")],2)]),t.createElementVNode("div",Fs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,s=>(t.openBlock(),t.createElementBlock("a",{key:s,href:"#",class:t.normalizeClass(["-mt-px border-t-2 pt-4 px-4 inline-flex items-center text-sm leading-5 font-medium",i.modelValue.page===s?"border-blue-500 text-blue-600 focus:outline-none focus:text-blue-800 focus:border-blue-700":"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-400"]),onClick:t.withModifiers(c=>o(s),["prevent"]),textContent:t.toDisplayString(s)},null,10,js))),128))]),t.createElementVNode("div",Hs,[t.createElementVNode("a",{href:"#",class:t.normalizeClass(["-mt-px border-t-2 border-transparent pt-4 pl-1 inline-flex items-center text-sm leading-5 font-medium focus:outline-none focus:text-gray-700 focus:border-gray-400",i.modelValue.page>=i.modelValue.totalPages?"text-gray-500 cursor-not-allowed pointer-events-none":"text-gray-700 hover:text-gray-900 hover:border-gray-300"]),onClick:l[1]||(l[1]=t.withModifiers(s=>o(i.modelValue.page+1),["prevent"]))},[t.createTextVNode(" Next "),Us],2)])]))}}),zs={key:0,class:"shadow overflow-hidden sm:rounded-md border"},fa=t.defineComponent({__name:"DetailList",props:{refreshTrigger:{default:0},reloadTrigger:{default:0},title:{},url:{}},setup(n){const r=n,e=t.ref({minDate:0,maxDate:0}),o=t.ref(!0),a=t.ref([]),i=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),l=t.ref("DESC"),s=c=>{const d={page:i.value.page,perPage:i.value.perPage,sortDir:l.value};Pn.get(r.url,{},Object.assign(d,e.value)).then(u=>{i.value={page:u.data.page,perPage:u.data.perPage,totalItems:u.data.totalItems,totalPages:u.data.totalPages},a.value=u.data.items,c&&(o.value=a.value.length!=0)},()=>{lr.genericError()})};return t.watch([l,e],()=>{s(!1)}),t.watch(()=>r.refreshTrigger,()=>{s(!1)}),t.watch(()=>r.reloadTrigger,()=>{i.value.page=1,s(!0)}),s(!0),(c,d)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(ar,{"date-range":e.value,"sort-dir":l.value,title:c.title,onSortDirChanged:d[0]||(d[0]=u=>l.value=u),onDateRangeChanged:d[1]||(d[1]=u=>e.value=u)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",zs,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(u,m)=>(t.openBlock(),t.createElementBlock("li",{key:m,class:t.normalizeClass({"border-t border-gray-200":m>0})},[t.renderSlot(c.$slots,"default",{item:u})],2))),128))])])):t.renderSlot(c.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(sn,{key:2,modelValue:i.value,"onUpdate:modelValue":[d[2]||(d[2]=u=>i.value=u),d[3]||(d[3]=u=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Ys=["href"],pa=t.defineComponent({__name:"DownloadCell",props:{propsData:{},attribute:{}},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("a",{href:r.propsData[r.attribute]},[t.createVNode(t.unref(jl),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,Ys))}}),Ws={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},Ks={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},qs={class:"p-4"},Gs={class:"flex items-center"},Js={class:"w-0 flex-1 flex justify-between"},Xs=["innerHTML"],Zs={class:"ml-4 shrink-0 flex"},Qs=["onClick"],ec=[t.createElementVNode("svg",{class:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1)],cn=t.defineComponent({__name:"Flash",setup(n){const{flasher:r,flashes:e}=Ke(),o=a=>{switch(a){case"warning":return"border-orange-500";case"error":return"border-red-500";case"info":return"border-blue-500";case"success":return"border-green-500"}};return t.onMounted(()=>{As(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(An),null,{default:t.withCtx(()=>[t.createElementVNode("div",Ws,[t.createVNode(t.TransitionGroup,{tag:"div",class:"max-w-sm space-y-2 w-full","enter-active-class":"ease-out duration-300","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":"ease-in duration-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),([l,s])=>(t.openBlock(),t.createElementBlock("div",{key:s.message,class:t.normalizeClass(["bg-white shadow-lg rounded-lg pointer-events-auto border-t-4 transform z-10",[o(s.type)]])},[t.createElementVNode("div",Ks,[t.createElementVNode("div",qs,[t.createElementVNode("div",Gs,[t.createElementVNode("div",Js,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,Xs)]),t.createElementVNode("div",Zs,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:c=>t.unref(r).remove(l)},ec,8,Qs)])])])])],2))),128))]),_:1})])]),_:1}))}}),ap="";function tc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})])}function nc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h7"})])}function rc(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"})])}function ma(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5.121 17.804A13.937 13.937 0 0112 16c2.5 0 4.847.655 6.879 1.804M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})])}function dn(n,r){return t.openBlock(),t.createBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"},[t.createVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})])}const oc={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},ac=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),ic={class:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl w-full"},lc={class:"block absolute top-0 right-0 pt-4 pr-4"},sc=t.createElementVNode("span",{class:"sr-only"},"Close",-1),cc={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},dc={class:"mt-3 sm:mt-0 sm:text-left"},uc={class:"mt-2"},fc={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},pc=["disabled","textContent"],ha=t.defineComponent({__name:"Modal",props:{destructive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:Boolean},submitText:{default:""},title:{default:""}},emits:["submit","update:modelValue"],setup(n,{emit:r}){const e=()=>{r("submit")},o=a=>{r("update:modelValue",a)};return(a,i)=>(t.openBlock(),t.createBlock(t.unref(bt),{as:"template",show:a.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Yt),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:a.modelValue,onClose:i[3]||(i[3]=l=>o(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",oc,[t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createVNode(t.unref(Wt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),ac,t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createElementVNode("div",ic,[t.createElementVNode("div",lc,[t.createElementVNode("button",{type:"button",class:"bg-white rounded-md text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",onClick:i[0]||(i[0]=l=>o(!1))},[sc,t.createVNode(t.unref(dn),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",cc,[t.createElementVNode("div",dc,[t.createVNode(t.unref(Fn),{as:"h3",class:"text-center text-lg leading-6 font-medium text-gray-900"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(a.title),1)]),_:1}),t.createElementVNode("div",uc,[t.renderSlot(a.$slots,"default")])])]),a.submitText?(t.openBlock(),t.createElementBlock("div",fc,[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm",[a.destructive?"xy-btn-red":"xy-btn"]]),disabled:a.disabled,onClick:i[1]||(i[1]=l=>e()),textContent:t.toDisplayString(a.submitText)},null,10,pc),t.createElementVNode("button",{ref:"cancelButtonRef",type:"button",class:"xy-btn-white mt-3 w-full sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",onClick:i[2]||(i[2]=l=>o(!1))}," Cancel ",512)])):t.createCommentVNode("",!0),t.renderSlot(a.$slots,"buttons")])]),_:3})])]),_:3},8,["open"])]),_:3},8,["show"]))}}),mc={class:"aspect-square overflow-hidden"},hc={class:"flex justify-center relative"},gc={class:"sr-only"},yc=t.createElementVNode("div",{class:"animate-spin-gear drop-shadow-sm"},[t.createElementVNode("svg",{class:"h-full w-full text-xy-green-300",viewBox:"0 0 129 129",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("defs",null,[t.createElementVNode("polygon",{id:"path-1",points:"0.000248076923 0.48676924 128.472837 0.48676924 128.472837 128.800648 0.000248076923 128.800648"})]),t.createElementVNode("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{id:"Group-6-Copy-3"},[t.createElementVNode("g",{id:"Group-3"},[t.createElementVNode("mask",{id:"mask-2",fill:"white"},[t.createElementVNode("use",{"xlink:href":"#path-1"})]),t.createElementVNode("g",{id:"Clip-2"}),t.createElementVNode("path",{id:"Fill-1",d:"M86.3955173,100.279324 C86.3955173,100.279324 79.4778923,106.213874 64.2360462,106.755809 C48.9954404,106.213874 42.0778154,100.279324 42.0778154,100.279324 C11.8756904,81.4963011 25.2309115,49.088357 25.2309115,49.088357 C36.5680269,24.1350542 59.1839596,22.5554236 63.8105942,22.4983139 L63.8105942,22.5043894 C63.8105942,22.5043894 63.9681231,22.4983139 64.2360462,22.4958837 C64.5052096,22.4983139 64.6627385,22.5043894 64.6627385,22.5043894 L64.6627385,22.4983139 C69.2881327,22.5554236 91.9053058,24.1350542 103.241181,49.088357 C103.241181,49.088357 116.596402,81.4963011 86.3955173,100.279324 L86.3955173,100.279324 Z M128.473085,68.8191581 L128.473085,60.4677727 L117.036738,58.80187 L115.10794,49.3726905 L124.970238,43.4186983 L121.675777,35.7307578 L110.49619,38.6214817 L106.161046,32.1486416 L113.220075,23.080347 L107.361738,17.0716753 L97.9645846,23.7437918 L89.14545,17.842049 L91.8693346,6.72144964 L84.04995,3.59378109 L78.2114596,13.4628269 L69.5907865,11.8127205 L67.908825,0.48676924 L64.6627385,0.48676924 L63.8105942,0.48676924 L60.5645077,0.48676924 L58.8813058,11.8127205 L50.2618731,13.4628269 L44.4233827,3.59378109 L36.6039981,6.72144964 L39.3278827,17.842049 L30.5087481,23.7437918 L21.1103538,17.0716753 L15.2520173,23.080347 L22.3122865,32.1486416 L17.9771423,38.6214817 L6.79755577,35.7307578 L3.50185385,43.4186983 L13.3641519,49.3726905 L11.4365942,58.80187 L0.000248076923,60.4677727 L0.000248076923,68.8191581 L11.4365942,70.4850608 L13.1036712,79.0223566 L3.13718077,84.8050196 L6.29644038,92.5488548 L17.5244019,89.8513318 L23.4832096,98.5854738 L16.7466808,107.893143 L22.8134019,113.695248 L31.9699212,106.70356 L38.5067481,110.99651 L35.5881231,122.068505 L43.35045,125.332265 L49.3625942,115.565287 L58.8813058,117.47421 L60.5645077,128.801377 L63.6927577,128.801377 L64.780575,128.801377 L67.908825,128.801377 L69.5907865,117.47421 L79.1107385,115.565287 L85.1228827,125.332265 L92.8852096,122.068505 L89.9665846,110.99651 L96.5034115,106.70356 L105.659931,113.695248 L111.725412,107.893143 L104.988883,98.5854738 L110.94769,89.8513318 L122.175652,92.5488548 L125.334912,84.8050196 L115.369662,79.0223566 L117.035498,70.4850608 L128.473085,68.8191581 Z",fill:"currentColor",mask:"url(#mask-2)"})])])])])],-1),bc=t.createElementVNode("div",{class:"absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50"},[t.createElementVNode("svg",{viewBox:"0 0 280 280",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("path",{class:"fill-xy-green",d:"m17.57,94.37c-3.36,13.54-5.07,28.73-5.07,45.63,0,32.02,6.04,58,18.1,77.95,3.81,4.98,7.46,9.94,10.95,14.66,21.21,23.24,54.01,34.89,98.45,34.89.71,0,1.39-.03,2.09-.03-3.62-46.93-22.27-88.31-54.36-124.11-19.79-22.07-42.96-38.86-70.16-48.99Z"}),t.createElementVNode("path",{class:"fill-xy-blue",d:"m267.5,140c0-85-42.5-127.5-127.5-127.5-55.06,0-92.27,17.86-111.66,53.53,28.32,8.48,56.67,16.85,84.98,25.37,27.05,8.14,54.01,16.55,81.06,24.67,5.45,1.64,7.5,4.76,6.63,10.27-.69,4.35-1.04,8.75-1.57,13.13-4.95,40.77-8.32,81.74-12.43,122.61,53.64-13.88,80.49-54.56,80.49-122.08Z"})])],-1),sr=t.defineComponent({__name:"XYSpinner",setup(n){const r=t.useAttrs();return(e,o)=>{var a,i;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass((a=t.unref(r))!=null&&a.class?(i=t.unref(r))==null?void 0:i.class:"h-20 w-20"),role:"status"},[t.createElementVNode("div",mc,[t.createElementVNode("div",hc,[t.createElementVNode("p",gc,[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode("loading")])]),yc,bc])])],2)}}}),wc={key:0,class:"fixed top-0 left-0 flex flex-col items-center justify-center w-full h-full cursor-not-allowed z-40 bg-gray-50 bg-opacity-60"},xc={class:"mt-2"},un=t.defineComponent({__name:"Spinner",setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=Gr(),s=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(i.value=a.value[r.value]),l.value=!0},c=()=>{window.setTimeout(()=>{l.value=!1},2500)};return(d,u)=>(t.openBlock(),t.createBlock(t.unref(An),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",wc,[t.createVNode(sr,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",xc,[t.createVNode(t.Transition,{appear:"","enter-active-class":"ease-out duration-1000","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"ease-in duration-500","leave-from-class":"opacity-100","leave-to-class":"opacity-0",onAfterEnter:c,onAfterLeave:s},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{class:"container font-medium text-lg leading-snug text-center transition-opacity"},t.toDisplayString(t.unref(i)),513),[[t.vShow,t.unref(l)]])]),_:1})],512),[[t.vShow,t.unref(a)]])])):t.createCommentVNode("",!0)]),_:1}))}}),Cc={class:"h-screen flex overflow-hidden bg-gray-100"},Ec={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},kc={class:"absolute top-0 right-0 -mr-12 pt-2"},_c=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),Dc={class:"shrink-0 flex justify-center px-4"},vc=["src"],Nc={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},Sc={class:"flex-1 px-2 space-y-1"},$c=["href","target"],Vc={key:0,class:"mt-auto"},Tc={class:"mt-6 px-2"},Bc=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),Mc={class:"hidden lg:flex lg:shrink-0"},Oc={class:"flex flex-col w-64"},Pc={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},Ac={class:"flex justify-center shrink-0 px-4"},Lc=["src"],Rc={class:"mt-5 grow flex flex-col"},Ic={class:"flex-1 px-2 bg-white space-y-1"},Fc=["href","target"],jc={key:0,class:"mt-atuo"},Hc={class:"mt-6 px-2"},Uc={class:"flex flex-col w-0 flex-1 overflow-hidden"},zc={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},Yc=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),Wc={class:"flex-1 px-4 flex justify-between"},Kc={class:"flex-1 flex"},qc={class:"flex items-center text-2xl text-white"},Gc={class:"ml-4 flex items-center lg:ml-6"},Jc=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Xc=["href"],Zc={class:"flex-1 relative overflow-y-auto focus:outline-none"},Qc={class:"mx-auto"},ga=t.defineComponent({__name:"SidebarLayout",props:{activeUrl:{default:""},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=t.ref(!1),o=a=>r.activeUrl===a;return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Cc,[t.createVNode(t.unref(bt),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(Yt),{as:"div",static:"",class:"fixed inset-0 flex z-10 lg:hidden",open:e.value,onClose:i[1]||(i[1]=l=>e.value=!1)},{default:t.withCtx(()=>[t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createVNode(t.unref(Wt),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createElementVNode("div",Ec,[t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createElementVNode("div",kc,[t.createElementVNode("button",{class:"ml-1 flex items-center justify-center h-10 w-10 rounded-full focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white",onClick:i[0]||(i[0]=l=>e.value=!1)},[_c,t.createVNode(t.unref(dn),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",Dc,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,vc)]),t.createElementVNode("div",Nc,[t.createElementVNode("nav",Sc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([o(l.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-50 hover:text-gray-900","group flex items-center px-2 py-2 text-base font-medium rounded-md"]),target:l.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{class:t.normalizeClass([o(l.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-4 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(l.name),1)],10,$c))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Vc,[t.createElementVNode("div",Tc,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),Bc]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",Mc,[t.createElementVNode("div",Oc,[t.createElementVNode("div",Pc,[t.createElementVNode("div",Ac,[t.createElementVNode("img",{class:"w-auto h-12",src:a.iconUrl,alt:"Logo"},null,8,Lc)]),t.createElementVNode("div",Rc,[t.createElementVNode("nav",Ic,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([o(l.url)?"bg-gray-100 text-gray-900":"text-gray-700 hover:bg-gray-100 hover:text-gray-900","group flex items-center px-2 py-2 text-sm font-medium rounded-md"]),target:l.openInTab?"_blank":"_self"},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{class:t.normalizeClass([o(l.url)?"text-gray-600":"text-gray-500 group-hover:text-gray-600","mr-3 h-6 w-6"]),"aria-hidden":"true"},null,8,["class"])),t.createTextVNode(" "+t.toDisplayString(l.name),1)],10,Fc))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",jc,[t.createElementVNode("div",Hc,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",Uc,[t.createElementVNode("div",zc,[t.createElementVNode("button",{class:"px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden",onClick:i[2]||(i[2]=l=>e.value=!0)},[Yc,t.createVNode(t.unref(nc),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",Wc,[t.createElementVNode("div",Kc,[t.createElementVNode("h1",qc,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Gc,[t.createVNode(t.unref(jn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Hn),{class:"max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-900 hover:text-gray-50 focus:outline-none focus:ring focus:text-white"},{default:t.withCtx(()=>[Jc,t.createVNode(t.unref(Il),{class:"h-8 w-8",fill:"currentColor"})]),_:1})]),t.createVNode(t.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:t.withCtx(()=>[t.createVNode(t.unref(Un),{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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(zn),{key:l.name},{default:t.withCtx(({active:s})=>[t.createElementVNode("a",{href:l.url,class:t.normalizeClass([s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(l.name),11,Xc)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",Zc,[t.createElementVNode("div",Qc,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(cn),t.createVNode(un)],64))}}),_t=t.defineComponent({__name:"Popover",props:{as:{default:"div"},position:{default:"auto"}},setup(n){const r=n,e=t.ref(null),o=t.ref(null),a=t.computed(()=>{const s=[Zl(5),es()];return r.position==="auto"&&s.push(Xl()),s}),i=t.computed(()=>{if(r.position!=="auto")return r.position}),{floatingStyles:l}=oa(e,o,{middleware:a,placement:i,strategy:"fixed",whileElementsMounted:ea});return(s,c)=>(t.openBlock(),t.createBlock(t.unref(Eo),{as:s.as,class:"relative"},{default:t.withCtx(({open:d,close:u})=>[t.createVNode(t.unref(vl),{ref_key:"trigger",ref:e},{default:t.withCtx(()=>[t.renderSlot(s.$slots,"button",{open:d,close:u})]),_:2},1536),t.createElementVNode("div",{ref_key:"wrapper",ref:o,class:"z-[5]",style:t.normalizeStyle(t.unref(l))},[t.createVNode(t.unref(Nl),null,{default:t.withCtx(()=>[t.renderSlot(s.$slots,"default",{open:d,close:u})]),_:2},1024)],4)]),_:3},8,["as"]))}}),ed=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},td={},nd={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function rd(n,r){return t.openBlock(),t.createElementBlock("div",nd,[t.renderSlot(n.$slots,"default")])}const ya=ed(td,[["render",rd]]),od={class:"absolute inset-0 overflow-hidden"},ad={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},id={class:"w-screen max-w-md"},ld={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},sd={class:"py-6 px-4 bg-xy-blue-700 sm:px-6"},cd={class:"flex items-center justify-between"},dd={class:"ml-3 h-7 flex items-center"},ud=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),fd={class:"mt-1"},pd=["textContent"],md={class:"relative flex-1 py-6 px-4 sm:px-6"},ba=t.defineComponent({__name:"Slideover",props:{header:{},description:{},modelValue:{type:Boolean}},emits:["close","update:modelValue"],setup(n,{emit:r}){const e=n,o=t.ref(e.modelValue),a=()=>{o.value=!1,r("close",o.value),r("update:modelValue",o.value)};return(i,l)=>(t.openBlock(),t.createBlock(t.unref(bt),{as:"template",show:i.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(Yt),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",open:i.modelValue,onClose:l[1]||(l[1]=s=>a())},{default:t.withCtx(()=>[t.createElementVNode("div",od,[t.createVNode(t.unref(Wt),{class:"absolute inset-0"}),t.createElementVNode("div",ad,[t.createVNode(t.unref(Pe),{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:t.withCtx(()=>[t.createElementVNode("div",id,[t.createElementVNode("div",ld,[t.createElementVNode("div",sd,[t.createElementVNode("div",cd,[t.createVNode(t.unref(Fn),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.header),1)]),_:1}),t.createElementVNode("div",dd,[t.createElementVNode("button",{class:"bg-xy-blue-600 rounded-md text-gray-50 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:l[0]||(l[0]=s=>a())},[ud,t.createVNode(t.unref(dn),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",fd,[t.createElementVNode("p",{class:"text-gray-50 text-base font-medium",textContent:t.toDisplayString(i.description)},null,8,pd)])]),t.createElementVNode("div",md,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),hd=["onMouseover","onMouseleave"],gd=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),yd=["onMouseleave"],bd={class:"max-w-xs"},wa=t.defineComponent({__name:"Tooltip",props:{as:{default:"span"},position:{default:"auto"}},setup(n){var r=!1,e=null;const o=i=>{r=!1,e&&clearTimeout(e),e=setTimeout(()=>{r||i()},100)},a=(i,l)=>{r=!0,!l&&i.target&&i.target.click()};return(i,l)=>(t.openBlock(),t.createBlock(_t,{position:i.position,as:i.as},{button:t.withCtx(({open:s,close:c})=>[t.createElementVNode("div",{class:"leading-none relative w-4 h-4",onMouseover:d=>a(d,s),onMouseleave:d=>o(c)},[t.createVNode(t.unref(tc)),gd],40,hd)]),default:t.withCtx(({close:s})=>[t.createElementVNode("div",{class:"sm:min-w-max bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium",onMouseover:l[0]||(l[0]=t.withModifiers(c=>t.isRef(r)?r.value=!0:r=!0,["prevent"])),onMouseleave:t.withModifiers(c=>o(s),["prevent"])},[t.createElementVNode("div",bd,[t.renderSlot(i.$slots,"default")])],40,yd)]),_:3},8,["position","as"]))}}),wd={class:"min-h-screen bg-gray-100"},xd={class:"mx-auto px-4 sm:px-6 lg:px-8"},Cd={class:"flex justify-between h-16"},Ed={class:"flex"},kd={class:"shrink-0 flex items-center"},_d=["src"],Dd={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},vd=["href","aria-current"],Nd={class:"hidden sm:ml-6 sm:flex sm:items-center"},Sd=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),$d=["href"],Vd={class:"-mr-2 flex items-center sm:hidden"},Td=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Bd={class:"pt-2 pb-3 space-y-1"},Md=["href","aria-current"],Od={class:"pt-4 pb-3 border-t border-gray-200"},Pd={class:"flex items-center px-4"},Ad={class:"shrink-0"},Ld={class:"ml-3"},Rd=["textContent"],Id=["textContent"],Fd={class:"mt-3 space-y-1"},jd=["href"],Hd={class:"mx-auto sm:px-6 lg:px-8"},Ud={class:"px-4 py-8 sm:px-0"},xa=t.defineComponent({__name:"StackedLayout",props:{activeUrl:{default:""},currentUser:{},iconUrl:{},navigation:{},userNavigation:{}},setup(n){const r=n,e=o=>r.activeUrl===o;return(o,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",wd,[t.createVNode(t.unref(bl),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",xd,[t.createElementVNode("div",Cd,[t.createElementVNode("div",Ed,[t.createElementVNode("div",kd,[t.createElementVNode("img",{class:"block h-8 w-auto",src:o.iconUrl,alt:"XY Trees"},null,8,_d)]),t.createElementVNode("div",Dd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([e(l.url)?"border-blue-500 text-gray-900":"border-transparent text-gray-700 hover:text-gray-900 hover:border-blue-500","inline-flex items-center px-1 pt-1 border-b-2 text-sm font-semibold"]),"aria-current":e(l.url)?"page":void 0},t.toDisplayString(l.name),11,vd))),128))])]),t.createElementVNode("div",Nd,[t.createVNode(t.unref(jn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Hn),{class:"bg-white flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[Sd,t.createVNode(t.unref(ma),{class:"text-gray-500 h-8 w-8 rounded-full"})]),_:1})]),t.createVNode(t.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:t.withCtx(()=>[t.createVNode(t.unref(Un),{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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(zn),{key:l.name},{default:t.withCtx(({active:s})=>[t.createElementVNode("a",{href:l.url,class:t.normalizeClass([s?"bg-gray-100":"","block px-4 py-2 text-sm text-gray-700 font-semibold"])},t.toDisplayString(l.name),11,$d)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",Vd,[t.createVNode(t.unref(wl),{class:"bg-white 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-offset-2 focus:ring-blue-500"},{default:t.withCtx(()=>[Td,i?(t.openBlock(),t.createBlock(t.unref(dn),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(rc),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(xl),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",Bd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.navigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:t.normalizeClass([e(l.url)?"bg-blue-50 border-blue-500 text-blue-700":"border-transparent text-gray-700 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-900","block pl-3 pr-4 py-2 border-l-4 text-base font-semibold"]),"aria-current":e(l.url)?"page":void 0},t.toDisplayString(l.name),11,Md))),128))]),t.createElementVNode("div",Od,[t.createElementVNode("div",Pd,[t.createElementVNode("div",Ad,[t.createVNode(t.unref(ma),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",Ld,[o.currentUser.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-base font-medium text-gray-800",textContent:t.toDisplayString(o.currentUser.name)},null,8,Rd)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(o.currentUser.email)},null,8,Id)])]),t.createElementVNode("div",Fd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.userNavigation,l=>(t.openBlock(),t.createElementBlock("a",{key:l.name,href:l.url,class:"block px-4 py-2 text-base font-medium text-gray-700 hover:text-gray-900 hover:bg-gray-100"},t.toDisplayString(l.name),9,jd))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",Hd,[t.createElementVNode("div",Ud,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(cn),t.createVNode(un)],64))}}),zd=n=>n==null,Yd={refresh(){console.warn("refresh() was called on a static table, did you mean to use DynamicTable?")},reset(){console.warn("reset() was called on a static table, did you mean to use DynamicTable?")}},Ca=(n,r,e,o=Yd)=>{const a=t.ref(r),i=t.ref(n),l=t.ref(e),s=t.computed(()=>l.value.actions.length>0),c=t.computed(()=>a.value.map(u=>{let m="";switch((u==null?void 0:u.alignment)||"left"){case"left":m="text-left";break;case"right":m="text-right";break;case"center":m="text-center";break}return{...u,alignment:m}})),d=t.computed(()=>i.value.map((u,m)=>({actions:l.value.actions.map(h=>({...h,disabled:typeof h.disabled=="function"?h.disabled.apply(void 0,[u,m]):h.disabled,onClick:()=>h.onClick(u,m,o),show:typeof h.show=="function"?h.show.apply(void 0,[u,m]):h.show})),rowData:u,cells:c.value.map(h=>{const g=typeof h.render=="string"?u[h.render]:h.render(u,m),y=(h==null?void 0:h.classNames)||"";return{...h,isComponent:t.isVNode(g),classNames:typeof y=="function"?y.apply(void 0,[u,m]):y,val:g}})})));return{columns:c,hasActions:s,isEmptyCellValue:zd,rows:d}},Wd={key:0,class:"flex items-center space-x-2 justify-end"},Kd={class:"isolate inline-flex rounded-md shadow-sm"},qd=["disabled","onClick"],Gd={class:"relative inline-flex items-center gap-x-1.5"},Ea=t.defineComponent({__name:"TableActionButtons",props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Mo(t.toRef(r,"actions"));return(a,i)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",Wd,[t.createElementVNode("span",Kd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(l,s)=>(t.openBlock(),t.createElementBlock("button",{key:s,type:"button",class:t.normalizeClass(["group relative inline-flex items-center bg-white px-3 py-2 text-sm font-semibold text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 disabled:text-gray-400 disabled:cursor-not-allowed",{"rounded-l-md":s===0,"-ml-px":s>0,"rounded-r-md":s===t.unref(e).length-1}]),disabled:l.disabled,onClick:t.withModifiers(l.onClick,["stop"])},[t.createElementVNode("span",Gd,[l.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{key:0,class:t.normalizeClass(["-ml-0.5 h-4 w-4 group-disabled:text-gray-300",l.label?"text-gray-400":"text-gray-600"]),"aria-hidden":"true"},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(l.label),1)])],10,qd))),128))])])):t.createCommentVNode("",!0)}}),Jd={class:"flex flex-col"},Xd={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Zd={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},Qd={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},eu={class:"min-w-full divide-y divide-gray-200"},tu={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},nu={class:"bg-white divide-y divide-gray-200"},ru={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},ou={key:0},au=["colspan"],ka=t.defineComponent({__name:"DataTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableData:{}},setup(n){const r=n,{columns:e,hasActions:o,isEmptyCellValue:a,rows:i}=Ca(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(l,s)=>(t.openBlock(),t.createElementBlock("div",Jd,[t.createElementVNode("div",Xd,[t.createElementVNode("div",Zd,[t.createElementVNode("div",Qd,[t.createElementVNode("table",eu,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(c,d)=>(t.openBlock(),t.createElementBlock("th",{key:d,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",c.alignment])},t.toDisplayString(c.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",tu)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",nu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(c,d)=>(t.openBlock(),t.createElementBlock("tr",{key:d},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.cells,(u,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:m,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",u.alignment])},{default:t.withCtx(()=>[u.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.classNames)},t.toDisplayString(t.unref(a)(u.val)?"-":String(u.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",ru,[l.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(nn),{key:0,actions:c.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Ea,{key:1,actions:c.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(i).length===0?(t.openBlock(),t.createElementBlock("tr",ou,[t.createElementVNode("td",{colspan:t.unref(e).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,au)])):t.createCommentVNode("",!0)])])])])])]))}}),iu={class:"flex items-center justify-center space-x-8"},lu={class:"font-medium"},su={class:"flex items-center space-x-5"},cu={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},du={key:1,class:"relative flex items-center justify-center"},uu=[t.createElementVNode("span",{class:"absolute w-5 h-5 p-px flex"},[t.createElementVNode("span",{class:"w-full h-full rounded-full bg-green-100"})],-1),t.createElementVNode("span",{class:"relative block w-2.5 h-2.5 bg-xy-green rounded-full"},null,-1)],fu={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},pu={key:0,class:"flex shrink-0"},mu={key:0,class:"inline-flex rounded-md shadow-sm"},hu=["textContent"],gu={class:"ml-3 inline-flex rounded-md shadow-sm"},yu=["textContent"],_a=t.defineComponent({__name:"Steps",props:{hideActions:{type:Boolean,default:!1},hidePrevious:{type:Boolean,default:!1},nextText:{default:"Next"},previousText:{default:"Back"},step:{},total:{}},emits:["next","previous"],setup(n,{emit:r}){const e=()=>{r("next")},o=()=>{r("previous")};return(a,i)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("nav",iu,[t.createElementVNode("p",lu,"Step "+t.toDisplayString(a.step)+" of "+t.toDisplayString(a.total),1),t.createElementVNode("ul",su,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.total,l=>(t.openBlock(),t.createElementBlock("li",{key:l},[a.step>l?(t.openBlock(),t.createElementBlock("span",cu)):a.step===l?(t.openBlock(),t.createElementBlock("div",du,uu)):(t.openBlock(),t.createElementBlock("span",fu))]))),128))])]),a.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",pu,[a.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",mu,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(a.previousText)},null,8,hu)])),t.createElementVNode("span",gu,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(a.nextText)},null,8,yu)])]))]))}}),bu={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},wu={key:0,class:"w-full max-w-lg lg:max-w-xs"},xu=t.createElementVNode("label",{for:"search",class:"sr-only"},"Search",-1),Cu={class:"relative"},Eu=t.createElementVNode("div",{class:"absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none"},[t.createElementVNode("svg",{class:"w-5 h-5 text-gray-400",fill:"currentColor",viewBox:"0 0 20 20"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z","clip-rule":"evenodd"})])],-1),ku={key:1,class:"w-full max-w-lg lg:max-w-xs"},_u={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},Du={class:"min-w-full divide-y divide-gray-200"},vu={key:0},Nu=["onClick"],Su={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},$u=[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 9l4-4 4 4m0 6l-4 4-4-4"},null,-1)],Vu={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Tu=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z","clip-rule":"evenodd"},null,-1)],Bu={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Mu=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"},null,-1)],Ou={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},Pu={class:"bg-white divide-y divide-gray-200"},Au=["onClick"],Lu={key:0,class:"px-6 py-2 text-sm text-gray-700 whitespace-nowrap leading-5"},Ru={key:0},Iu=["colspan"],Da=t.defineComponent({__name:"DynamicTable",props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:{},tableOptions:{}},emits:["click:row"],setup(n,{expose:r}){const e=n,o=()=>{const L={minDate:y.value.minDate,maxDate:y.value.maxDate,page:w.value.page,perPage:w.value.perPage,sort:h.value,sortDir:g.value,q:E.value};Pn.get(e.tableOptions.url,{skipLoader:!1},L).then(I=>{w.value={page:I.data.page,perPage:I.data.perPage,totalItems:I.data.totalItems,totalPages:I.data.totalPages},l.value=I.data.items},()=>{lr.genericError()})},a=()=>{w.value.page=1,o()},i=()=>{if(N.value.maxRange){const L=new Date,I=L.setDate(L.getDate()-N.value.maxRange),T=new Date;y.value={minDate:Math.floor(I/1e3),maxDate:Math.floor(T.getTime()/1e3)}}},l=t.ref([]),s={refresh:o,reset:a},{columns:c,hasActions:d,isEmptyCellValue:u,rows:m}=Ca(l,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),s),h=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),g=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),y=t.ref({minDate:0,maxDate:0}),w=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),E=t.ref(""),k=L=>{w.value.page=1,y.value=L,o()},v=L=>{h.value==L?g.value=g.value==="desc"?"asc":"desc":(h.value=L,g.value="desc"),o()},N=t.computed(()=>typeof e.tableOptions.dateSearch=="object"?e.tableOptions.dateSearch:{}),j=t.computed(()=>!!m.value.length);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(s),i(),o(),(L,I)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",bu,[L.tableOptions.search?(t.openBlock(),t.createElementBlock("div",wu,[xu,t.createElementVNode("div",Cu,[Eu,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":I[0]||(I[0]=T=>E.value=T),class:"pl-10",type:"search",placeholder:"Search",onChange:I[1]||(I[1]=T=>a())},null,544),[[t.vModelText,E.value,void 0,{trim:!0}]])])])):t.createCommentVNode("",!0),L.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",ku,[t.createVNode(ln,t.mergeProps({modelValue:y.value,"onUpdate:modelValue":I[2]||(I[2]=T=>y.value=T)},{...N.value},{"onUpdate:modelValue":k}),null,16,["modelValue"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_u,[t.createElementVNode("table",Du,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(c),(T,be)=>(t.openBlock(),t.createElementBlock("th",{key:be,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",T.alignment])},[T.title?(t.openBlock(),t.createElementBlock("span",vu,t.toDisplayString(T.title),1)):t.createCommentVNode("",!0),T.sort?(t.openBlock(),t.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:t.withModifiers(P=>v(T.sort),["prevent"])},[h.value!==T.sort?(t.openBlock(),t.createElementBlock("svg",Su,$u)):g.value=="desc"?(t.openBlock(),t.createElementBlock("svg",Vu,Tu)):(t.openBlock(),t.createElementBlock("svg",Bu,Mu))],8,Nu)):t.createCommentVNode("",!0)],2))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("th",Ou)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",Pu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(m),(T,be)=>(t.openBlock(),t.createElementBlock("tr",{key:be,onClick:P=>L.$emit("click:row",T.rowData)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.cells,(P,Y)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:Y,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",P.alignment])},{default:t.withCtx(()=>[P.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(P.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(P.classNames)},t.toDisplayString(t.unref(u)(P.val)?"-":String(P.val)),3))]),_:2},1032,["class"]))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("td",Lu,[L.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(nn),{key:0,actions:T.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(Ea,{key:1,actions:T.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,Au))),128)),j.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Ru,[t.createElementVNode("td",{colspan:t.unref(m).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Iu)]))])])]),j.value?(t.openBlock(),t.createBlock(sn,{key:0,modelValue:w.value,"onUpdate:modelValue":[I[3]||(I[3]=T=>w.value=T),I[4]||(I[4]=T=>o())]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Fu=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),ju={class:"hidden sm:block"},Hu=["onClick","textContent"],va=t.defineComponent({__name:"Tabs",props:{modelValue:{},pillDesign:{type:Boolean,default:!1},tabs:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=l=>{r("update:modelValue",l)},a=(l,s)=>{let c="";return e.pillDesign?(c="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.modelValue===l?c=c+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":c=c+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",c):(c="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.modelValue===l?c=c+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":c=c+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",s&&(c=c+" ml-8"),c)},i=t.computed(()=>!e.pillDesign);return(l,s)=>{const c=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":l.pillDesign}])},[Fu,t.createVNode(c,{name:"tabs","model-value":l.modelValue,options:l.tabs,"onUpdate:modelValue":s[0]||(s[0]=d=>o(d))},null,8,["model-value","options"])],2),t.createElementVNode("div",ju,[t.createElementVNode("div",{class:t.normalizeClass({"border-b border-gray-200":i.value})},[t.createElementVNode("nav",{class:t.normalizeClass(["flex",[l.pillDesign?"ml-8":"-mb-px"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.tabs,(d,u)=>(t.openBlock(),t.createElementBlock("a",{key:u,href:"#",class:t.normalizeClass(a(d.value,u>0)),onClick:t.withModifiers(m=>o(d.value),["prevent"]),textContent:t.toDisplayString(d.label)},null,10,Hu))),128))],2)],2)])])}}}),Uu=t.createElementVNode("span",{class:"sr-only"},"Use",-1),Na=t.defineComponent({__name:"Toggle",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){return(e,o)=>(t.openBlock(),t.createBlock(t.unref(Bl),{class:t.normalizeClass([e.modelValue?"bg-xy-blue":"bg-gray-200","relative inline-flex shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-xy-blue-500"]),"model-value":e.modelValue,"onUpdate:modelValue":o[0]||(o[0]=a=>r("update:modelValue",a))},{default:t.withCtx(()=>[Uu,t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([e.modelValue?"translate-x-5":"translate-x-0","pointer-events-none inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200"])},null,2)]),_:1},8,["class","model-value"]))}}),zu={class:"relative flex items-start"},Yu={class:"flex items-center h-5"},Wu=["id","aria-labelledby","aria-describedby","checked"],Ku={class:"ml-3"},Sa=t.defineComponent({__name:"Checkbox",props:{label:{default:""},help:{default:""},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||Be.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock("div",zu,[t.createElementVNode("div",Yu,[t.createElementVNode("input",t.mergeProps({id:t.unref(o),"aria-labelledby":a.label?`${t.unref(o)}-label`:void 0,"aria-describedby":a.help?`${t.unref(o)}-help`:void 0,checked:a.modelValue,class:"focus:ring-xy-blue-500 h-4 w-4 text-xy-blue border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",type:"checkbox"},{onChange:l=>{r("update:modelValue",l.target.checked)},...a.$attrs}),null,16,Wu)]),t.createElementVNode("div",Ku,[t.createVNode(Ee,{id:`${t.unref(o)}-label`,class:"mt-auto",disabled:a.$attrs.hasOwnProperty("disabled")&&a.$attrs.disabled!==!1,for:t.unref(o),label:a.label},null,8,["id","disabled","for","label"]),t.createVNode(ye,{id:`${t.unref(o)}-help`,class:"-mt-1",text:a.help},null,8,["id","text"])])]))}});function qu(n,r={}){return n?n(r).some(e=>e.type===t.Comment||Array.isArray(e.children)&&!e.children.length?!1:e.type!==t.Text||typeof e.children=="string"&&e.children.trim()!==""):!1}const Dt=t.defineComponent({__name:"FieldsetLegend",props:{tag:{default:"legend"}},setup(n){return(r,e)=>t.unref(qu)(r.$slots.default)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.tag),t.normalizeProps(t.mergeProps({key:0},{...r.$attrs,class:"text-sm font-semibold leading-snug text-gray-900"})),{default:t.withCtx(()=>[t.renderSlot(r.$slots,"default")]),_:3},16)):t.createCommentVNode("",!0)}}),Gu=["aria-labelledby","aria-describedby"],Ju={key:0,class:"space-y-0.5"},Xu={key:0},Zu={class:"flex"},Qu={class:"flex items-center h-5"},ef=["id","aria-labelledby","aria-describedby","checked","disabled"],tf={class:"ml-3"},$a=t.defineComponent({__name:"MultiCheckboxes",props:{options:{},help:{default:""},legend:{default:""},modelValue:{},columns:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=t.useSlots(),i=o.id||Be.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0),s=(c,d)=>{let u=[...e.modelValue];c?u.push(d):u.splice(u.indexOf(d),1),r("update:modelValue",u)};return(c,d)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":l.value?`${t.unref(i)}-legend`:void 0,"aria-describedby":c.help?`${t.unref(i)}-help`:void 0},[l.value||c.help?(t.openBlock(),t.createElementBlock("div",Ju,[t.createVNode(Dt,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[c.legend?(t.openBlock(),t.createElementBlock("div",Xu,t.toDisplayString(c.legend),1)):t.createCommentVNode("",!0),c.$slots.legend?t.renderSlot(c.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(ye,{id:`${t.unref(i)}-help`,tag:"p",text:c.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Zu,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-4",{"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0":c.columns!==void 0,"sm:grid-cols-2":c.columns===2,"sm:grid-cols-3":c.columns===3,"sm:grid-cols-4":c.columns===4}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.options,(u,m)=>(t.openBlock(),t.createElementBlock("div",{key:u.value,class:"flex items-start"},[t.createElementVNode("div",Qu,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${m}`,"aria-labelledby":`${t.unref(i)}-${m}-label`,"aria-describedby":u!=null&&u.help&&u.help?`${t.unref(i)}-${m}-help`:void 0,checked:c.modelValue.includes(u.value),disabled:u.disabled===!0?!0:void 0,class:"focus:ring-xy-blue-500 h-4 w-4 text-xy-blue border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",type:"checkbox"},{onChange:h=>{s(h.target.checked,u.value)},...c.$attrs}),null,16,ef)]),t.createElementVNode("div",tf,[t.createVNode(Ee,{id:`${t.unref(i)}-${m}-label`,class:"mt-auto",disabled:c.$attrs.hasOwnProperty("disabled")&&c.$attrs.disabled!==!1||u.disabled===!0,for:`${t.unref(i)}-${m}`,label:u.label},null,8,["id","disabled","for","label"]),t.createVNode(ye,{id:`${t.unref(i)}-${m}-help`,class:"-mt-1",text:u.help},null,8,["id","text"])])]))),128))],2)])],8,Gu))}}),nf=["aria-labelledby","aria-describedby"],rf={key:0,class:"space-y-0.5"},of={key:0},af={class:"flex"},lf={class:"flex items-center h-5"},sf=["id","aria-describedby","aria-labelledby","checked","disabled","name","value"],cf={class:"ml-3"},Va=t.defineComponent({__name:"Radio",props:{options:{},help:{default:""},legend:{default:""},modelValue:{default:void 0},columns:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=t.useSlots(),i=o.id||Be.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0);return(s,c)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":l.value?`${t.unref(i)}-legend`:void 0,"aria-describedby":s.help?`${t.unref(i)}-help`:void 0},[l.value||s.help?(t.openBlock(),t.createElementBlock("div",rf,[t.createVNode(Dt,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[s.legend?(t.openBlock(),t.createElementBlock("div",of,t.toDisplayString(s.legend),1)):t.createCommentVNode("",!0),s.$slots.legend?t.renderSlot(s.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(ye,{id:`${t.unref(i)}-help`,tag:"p",text:s.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",af,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-4",{"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0":s.columns!==void 0,"sm:grid-cols-2":s.columns===2,"sm:grid-cols-3":s.columns===3,"sm:grid-cols-4":s.columns===4}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.options,(d,u)=>(t.openBlock(),t.createElementBlock("div",{key:d.value,class:"flex items-start"},[t.createElementVNode("div",lf,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${u}`,"aria-describedby":d!=null&&d.help&&d.help?`${t.unref(i)}-${u}-help`:void 0,"aria-labelledby":`${t.unref(i)}-${u}-label`,checked:s.modelValue===d.value,class:"w-4 h-4 border-gray-600 focus:ring-xy-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",disabled:d.disabled===!0?!0:void 0,name:t.unref(i),type:"radio",value:d.value},{onChange:()=>{r("update:modelValue",d.value)},...s.$attrs}),null,16,sf)]),t.createElementVNode("div",cf,[t.createVNode(Ee,{id:`${t.unref(i)}-${u}-label`,class:"mt-auto",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1||d.disabled===!0,for:`${t.unref(i)}-${u}`,label:d.label},null,8,["id","disabled","for","label"]),t.createVNode(ye,{id:`${t.unref(i)}-${u}-help`,class:"-mt-1",text:d.help},null,8,["id","text"])])]))),128))],2)])],8,nf))}}),df=["id"],uf={class:"flex-1 flex pr-1"},ff={class:"flex flex-col"},pf={key:1,class:"mt-auto mb-0"},mf=["checked","name","required","value"],Ta=t.defineComponent({__name:"RadioCards",props:{columns:{default:void 0},help:{default:""},legend:{default:""},modelValue:{default:void 0},options:{}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=Be.CreateIdAttribute(),i=t.ref(),l=t.ref(),s=t.computed(()=>e.modelValue===void 0?i.value:e.modelValue),c=u=>{i.value=u,l.value=!1,r("update:modelValue",u)},d=t.computed(()=>typeof o.name=="string"&&o.name!==""?o.name:a);return(u,m)=>(t.openBlock(),t.createBlock(t.unref($l),{"model-value":s.value,disabled:typeof t.unref(o).disabled=="boolean"?t.unref(o).disabled:!1,"aria-invalid":l.value===!0?"true":null,"aria-errormessage":l.value===!0?`error-${t.unref(a)}`:null,"onUpdate:modelValue":c},{default:t.withCtx(()=>[u.legend?(t.openBlock(),t.createBlock(t.unref(So),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(Dt,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(u.legend),1)]),_:1})]),_:1})):t.createCommentVNode("",!0),u.help?(t.openBlock(),t.createBlock(t.unref(Yn),{key:1},{default:t.withCtx(()=>[t.createVNode(ye,{text:u.help},null,8,["text"])]),_:1})):t.createCommentVNode("",!0),l.value===!0?(t.openBlock(),t.createElementBlock("div",{key:2,id:`error-${t.unref(a)}`,class:"sr-only"}," Please select one of these options. ",8,df)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["mt-4 grid grid-cols-1 gap-y-5 gap-x-4 relative",{"sm:grid-cols-2":u.columns===2,"sm:grid-cols-3":u.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.options,h=>(t.openBlock(),t.createBlock(t.unref(Vl),{key:h.value,as:"template",disabled:h!=null&&h.disabled?h.disabled:!1,value:h.value},{default:t.withCtx(({active:g,checked:y,disabled:w})=>[t.createElementVNode("div",{class:t.normalizeClass(["relative bg-white border rounded-lg shadow-sm p-4 flex cursor-pointer focus:outline-none",[y?"border-transparent":"border-gray-300",g?"border-xy-blue ring-2 ring-xy-blue-500":"",w?"cursor-not-allowed opacity-75":""]])},[t.createElementVNode("div",uf,[t.createElementVNode("div",ff,[t.createVNode(t.unref(So),{as:"div"},{default:t.withCtx(()=>[t.createVNode(Ee,{tag:"div",class:"mt-auto mb-auto",label:h.label},null,8,["label"])]),_:2},1024),h.help?(t.openBlock(),t.createBlock(t.unref(Yn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(ye,{tag:"div",class:"mt-auto",text:h.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),h.sublabel||u.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",pf,[t.createVNode(t.unref(Yn),{as:"div",class:"font-semibold leading-snug mt-4 text-gray-900 text-sm"},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"sublabel",{active:g,checked:y,disabled:w,option:h},()=>[t.createTextVNode(t.toDisplayString(h.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(Rl),{class:t.normalizeClass([y?"":"invisible","h-5 w-5 text-xy-blue"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([g?"border":"border-2",y?"border-xy-blue":"border-transparent","absolute -inset-px rounded-lg pointer-events-none"]),"aria-hidden":"true"},null,2),t.createElementVNode("input",{class:"sr-only top-1 left-1","aria-hidden":"true",checked:y,name:d.value,required:t.unref(o).required!==void 0&&t.unref(o).required!==!1,tabindex:"-1",type:"radio",value:h.value,onInvalid:m[0]||(m[0]=E=>l.value=!0)},null,40,mf)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["model-value","disabled","aria-invalid","aria-errormessage"]))}}),hf=["id","aria-labelledby","aria-describedby","value"],Ba=t.defineComponent({__name:"TextArea",props:{help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||Be.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Ee,{id:`${t.unref(o)}-label`,class:"block",for:t.unref(o),label:a.label},null,8,["id","for","label"]),t.createElementVNode("textarea",t.mergeProps({id:t.unref(o),"aria-labelledby":a.label?`${t.unref(o)}-label`:void 0,"aria-describedby":a.help?`${t.unref(o)}-help`:void 0,class:["mt-1","sm:text-sm","block","shadow-sm","focus:ring-xy-blue-500","focus:border-xy-blue","border-gray-600","rounded-md","w-full","disabled:opacity-70","disabled:cursor-not-allowed"],value:a.modelValue},a.$attrs,{onInput:i[0]||(i[0]=l=>r("update:modelValue",l.target.value))}),null,16,hf),t.createVNode(ye,{id:`${t.unref(o)}-help`,text:a.help},null,8,["id","text"])],64))}}),gf=["aria-labelledby","aria-describedby"],yf={key:0,class:"space-y-0.5"},bf=["for"],wf=["id","name","checked"],xf=["for"],Cf=["id","name","checked"],Ma=t.defineComponent({__name:"YesOrNoRadio",props:{modelValue:{type:Boolean,default:void 0},help:{default:""},legend:{default:""},name:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Be.CreateIdAttribute(),i=t.computed(()=>typeof e.name=="string"&&e.name!==""),l=s=>{r("update:modelValue",s.target.value==="true")};return(s,c)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-3","aria-labelledby":s.legend?`${t.unref(a)}-legend`:void 0,"aria-describedby":s.help?`${t.unref(a)}-help`:void 0},[s.legend||s.help?(t.openBlock(),t.createElementBlock("div",yf,[t.createVNode(Ee,{class:"block my-auto",label:s.legend,tag:"legend"},null,8,["label"]),t.createVNode(ye,{id:`${t.unref(a)}-help`,tag:"p",text:s.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center",{"cursor-not-allowed":s.$attrs.disabled}]),for:`${i.value?s.name:t.unref(a)}-true`},[t.createElementVNode("input",t.mergeProps({id:`${i.value?s.name:t.unref(a)}-true`,type:"radio",class:"w-4 h-4 border-gray-600 focus:ring-xy-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",name:i.value?s.name:t.unref(a),value:!0,checked:s.modelValue===!0},{...s.$attrs,onChange:l}),null,16,wf),t.createVNode(Ee,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"Yes",tag:"span"},null,8,["disabled"])],10,bf),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",{"cursor-not-allowed":s.$attrs.disabled}]),for:`${i.value?s.name:t.unref(a)}-false`},[t.createElementVNode("input",t.mergeProps({id:`${i.value?s.name:t.unref(a)}-false`,type:"radio",class:"w-4 h-4 border-gray-600 focus:ring-xy-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",name:i.value?s.name:t.unref(a),value:!1,checked:s.modelValue===!1},{...s.$attrs,onChange:l}),null,16,Cf),t.createVNode(Ee,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"No",tag:"span"},null,8,["disabled"])],10,xf)])],8,gf))}}),Ef=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:nn,BaseInput:rr,Cards:aa,Checkbox:Sa,ContentModal:ia,DataTable:ka,DateFilter:ar,DateRangePicker:ln,DetailList:fa,DownloadCell:pa,DynamicTable:Da,FieldsetLegend:Dt,Flash:cn,InputHelp:ye,InputLabel:Ee,Modal:ha,MultiCheckboxes:$a,Paginator:sn,Popover:_t,PopoverContent:ya,PopoverPosition:_t,Radio:Va,RadioCards:Ta,Select:or,SidebarLayout:ga,Slideover:ba,Spinner:un,StackedLayout:xa,Steps:_a,Tabs:va,TextArea:Ba,Toggle:Na,Tooltip:wa,XYSpinner:sr,YesOrNoRadio:Ma},Symbol.toStringTag,{value:"Module"})),kf=function(r){Object.entries(Ef).forEach(([e,o])=>{r.component(e,o)})};$.ActionsDropdown=nn,$.BaseAPI=Pn,$.BaseInput=rr,$.Cards=aa,$.Checkbox=Sa,$.ContentModal=ia,$.DataTable=ka,$.DateFilter=ar,$.DateRangePicker=ln,$.DetailList=fa,$.DownloadCell=pa,$.DynamicTable=Da,$.FieldsetLegend=Dt,$.Flash=cn,$.InputHelp=ye,$.InputLabel=Ee,$.Modal=ha,$.MultiCheckboxes=$a,$.Paginator=sn,$.Popover=_t,$.PopoverContent=ya,$.PopoverPosition=_t,$.Radio=Va,$.RadioCards=Ta,$.Select=or,$.SidebarLayout=ga,$.Slideover=ba,$.Spinner=un,$.StackedLayout=xa,$.Steps=_a,$.Tabs=va,$.TextArea=Ba,$.Toggle=Na,$.Tooltip=wa,$.XYSpinner=sr,$.YesOrNoRadio=Ma,$.default=kf,$.isHttpCancel=Zr,$.isHttpError=Xr,$.useAppFlasher=lr,$.useAppFlashes=Ke,$.useAppSpinner=On,$.useBaseAPI=st,$.useBaseAPIDelete=Bs,$.useBaseAPIGet=Ts,$.useBaseAPIPatch=Ms,$.useBaseAPIPost=Os,$.useBaseAPIPut=Ps,$.useFlashes=ua,$.useSpinnerDisplay=qr,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -40,7 +40,7 @@ const isActive = (url: string): boolean => {
|
|
|
40
40
|
<Dialog
|
|
41
41
|
as="div"
|
|
42
42
|
static
|
|
43
|
-
class="fixed inset-0 flex z-10
|
|
43
|
+
class="fixed inset-0 flex z-10 lg:hidden"
|
|
44
44
|
:open="sidebarOpen"
|
|
45
45
|
@close="sidebarOpen = false"
|
|
46
46
|
>
|
|
@@ -131,7 +131,7 @@ const isActive = (url: string): boolean => {
|
|
|
131
131
|
</TransitionRoot>
|
|
132
132
|
|
|
133
133
|
<!-- Static sidebar for desktop -->
|
|
134
|
-
<div class="hidden
|
|
134
|
+
<div class="hidden lg:flex lg:shrink-0">
|
|
135
135
|
<div class="flex flex-col w-64">
|
|
136
136
|
<!-- Sidebar component, swap this element with another sidebar if you like -->
|
|
137
137
|
<div
|
|
@@ -180,7 +180,7 @@ const isActive = (url: string): boolean => {
|
|
|
180
180
|
<div class="flex flex-col w-0 flex-1 overflow-hidden">
|
|
181
181
|
<div class="relative z-10 shrink-0 flex h-16 bg-xy-blue shadow">
|
|
182
182
|
<button
|
|
183
|
-
class="px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500
|
|
183
|
+
class="px-4 border-r border-gray-200 text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500 lg:hidden"
|
|
184
184
|
@click="sidebarOpen = true"
|
|
185
185
|
>
|
|
186
186
|
<span class="sr-only">Open sidebar</span>
|
|
@@ -192,7 +192,7 @@ const isActive = (url: string): boolean => {
|
|
|
192
192
|
<slot name="header"></slot>
|
|
193
193
|
</h1>
|
|
194
194
|
</div>
|
|
195
|
-
<div class="ml-4 flex items-center
|
|
195
|
+
<div class="ml-4 flex items-center lg:ml-6">
|
|
196
196
|
<!-- Profile dropdown -->
|
|
197
197
|
<Menu as="div" class="ml-3 relative">
|
|
198
198
|
<div>
|