@xy-planning-network/trees 0.6.5-rc-4 → 0.6.5-rc-6
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 +13 -13
- package/dist/trees.umd.js +2 -2
- package/package.json +1 -1
- package/src/lib-components/forms/BaseInput.vue +4 -2
- package/src/lib-components/forms/TextArea.vue +4 -2
- package/src/lib-components/layout/SidebarLayout.vue +6 -6
- package/src/lib-components/layout/StackedLayout.vue +5 -5
- package/types/lib-components/forms/BaseInput.vue.d.ts +2 -2
- package/types/lib-components/forms/TextArea.vue.d.ts +2 -2
- package/types/lib-components/layout/SidebarLayout.vue.d.ts +8 -8
- package/types/lib-components/layout/StackedLayout.vue.d.ts +8 -8
- package/types/lib-components/overlays/Modal.vue.d.ts +1 -1
package/dist/trees.es.js
CHANGED
|
@@ -5174,7 +5174,7 @@ const Ne = /* @__PURE__ */ L({
|
|
|
5174
5174
|
label: { default: "" },
|
|
5175
5175
|
modelValue: { default: "" }
|
|
5176
5176
|
},
|
|
5177
|
-
emits: ["update:
|
|
5177
|
+
emits: ["update:model-value"],
|
|
5178
5178
|
setup(t, { emit: n }) {
|
|
5179
5179
|
const e = t, r = Ke().id || ze.CreateIdAttribute(), o = [
|
|
5180
5180
|
"date",
|
|
@@ -5220,7 +5220,7 @@ const Ne = /* @__PURE__ */ L({
|
|
|
5220
5220
|
type: t.type,
|
|
5221
5221
|
value: t.modelValue
|
|
5222
5222
|
}, s.$attrs, {
|
|
5223
|
-
onInput: u[0] || (u[0] = (c) => n("update:
|
|
5223
|
+
onInput: u[0] || (u[0] = (c) => n("update:model-value", c.target.value))
|
|
5224
5224
|
}), null, 16, Dl),
|
|
5225
5225
|
k(Ie, {
|
|
5226
5226
|
id: `${v(r)}-help`,
|
|
@@ -6087,13 +6087,13 @@ const su = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
|
|
|
6087
6087
|
class: "mt-atuo"
|
|
6088
6088
|
}, qu = { class: "mt-6 px-2" }, Ku = { class: "flex flex-col w-0 flex-1 overflow-hidden" }, zu = { class: "relative z-10 shrink-0 flex h-16 bg-xy-blue shadow" }, Gu = /* @__PURE__ */ m("span", { class: "sr-only" }, "Open sidebar", -1), Ju = { class: "flex-1 px-4 flex justify-between" }, Xu = { class: "flex-1 flex" }, Qu = { class: "flex items-center text-2xl text-white" }, Zu = { class: "ml-4 flex items-center md:ml-6" }, ed = /* @__PURE__ */ m("span", { class: "sr-only" }, "Open user menu", -1), td = ["href"], nd = { class: "flex-1 relative overflow-y-auto focus:outline-none" }, rd = { class: "mx-auto" }, ad = /* @__PURE__ */ L({
|
|
6089
6089
|
props: {
|
|
6090
|
-
|
|
6091
|
-
|
|
6090
|
+
activeUrl: { default: "" },
|
|
6091
|
+
iconUrl: null,
|
|
6092
6092
|
navigation: null,
|
|
6093
6093
|
userNavigation: null
|
|
6094
6094
|
},
|
|
6095
6095
|
setup(t) {
|
|
6096
|
-
const n = t, e = S(!1), a = (r) => n.
|
|
6096
|
+
const n = t, e = S(!1), a = (r) => n.activeUrl === r;
|
|
6097
6097
|
return (r, o) => (y(), E(K, null, [
|
|
6098
6098
|
m("div", Eu, [
|
|
6099
6099
|
k(v(jt), {
|
|
@@ -6162,7 +6162,7 @@ const su = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
|
|
|
6162
6162
|
m("div", Mu, [
|
|
6163
6163
|
m("img", {
|
|
6164
6164
|
class: "w-auto h-12",
|
|
6165
|
-
src: t.
|
|
6165
|
+
src: t.iconUrl,
|
|
6166
6166
|
alt: "Logo"
|
|
6167
6167
|
}, null, 8, Tu)
|
|
6168
6168
|
]),
|
|
@@ -6210,7 +6210,7 @@ const su = { class: "flex items-end justify-center min-h-screen pt-4 px-4 pb-20
|
|
|
6210
6210
|
m("div", Bu, [
|
|
6211
6211
|
m("img", {
|
|
6212
6212
|
class: "w-auto h-12",
|
|
6213
|
-
src: t.
|
|
6213
|
+
src: t.iconUrl,
|
|
6214
6214
|
alt: "Logo"
|
|
6215
6215
|
}, null, 8, Vu)
|
|
6216
6216
|
]),
|
|
@@ -6590,14 +6590,14 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
|
|
|
6590
6590
|
}
|
|
6591
6591
|
}), _d = { class: "min-h-screen bg-gray-100" }, Sd = { class: "mx-auto px-4 sm:px-6 lg:px-8" }, Md = { class: "flex justify-between h-16" }, Td = { class: "flex" }, Od = { class: "shrink-0 flex items-center" }, Pd = ["src"], Ad = { class: "hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8" }, Id = ["href", "aria-current"], Ld = { class: "hidden sm:ml-6 sm:flex sm:items-center" }, Rd = /* @__PURE__ */ m("span", { class: "sr-only" }, "Open user menu", -1), Nd = ["href"], Fd = { class: "-mr-2 flex items-center sm:hidden" }, jd = /* @__PURE__ */ m("span", { class: "sr-only" }, "Open main menu", -1), Bd = { class: "pt-2 pb-3 space-y-1" }, Vd = ["href", "aria-current"], Hd = { class: "pt-4 pb-3 border-t border-gray-200" }, Ud = { class: "flex items-center px-4" }, Yd = { class: "shrink-0" }, Wd = { class: "ml-3" }, qd = ["textContent"], Kd = ["textContent"], zd = { class: "mt-3 space-y-1" }, Gd = ["href"], Jd = { class: "mx-auto sm:px-6 lg:px-8" }, Xd = { class: "px-4 py-8 sm:px-0" }, Qd = /* @__PURE__ */ L({
|
|
6592
6592
|
props: {
|
|
6593
|
-
|
|
6593
|
+
activeUrl: { default: "" },
|
|
6594
6594
|
currentUser: null,
|
|
6595
|
-
|
|
6595
|
+
iconUrl: null,
|
|
6596
6596
|
navigation: null,
|
|
6597
6597
|
userNavigation: null
|
|
6598
6598
|
},
|
|
6599
6599
|
setup(t) {
|
|
6600
|
-
const n = t, e = (a) => n.
|
|
6600
|
+
const n = t, e = (a) => n.activeUrl === a;
|
|
6601
6601
|
return (a, r) => (y(), E(K, null, [
|
|
6602
6602
|
m("div", _d, [
|
|
6603
6603
|
k(v(Ps), {
|
|
@@ -6611,7 +6611,7 @@ const dd = /* @__PURE__ */ id(sd, [["render", ud]]), cd = { class: "absolute ins
|
|
|
6611
6611
|
m("div", Od, [
|
|
6612
6612
|
m("img", {
|
|
6613
6613
|
class: "block h-8 w-auto",
|
|
6614
|
-
src: t.
|
|
6614
|
+
src: t.iconUrl,
|
|
6615
6615
|
alt: "XY Trees"
|
|
6616
6616
|
}, null, 8, Pd)
|
|
6617
6617
|
]),
|
|
@@ -7569,7 +7569,7 @@ const gn = /* @__PURE__ */ L({
|
|
|
7569
7569
|
label: { default: "" },
|
|
7570
7570
|
modelValue: { default: "" }
|
|
7571
7571
|
},
|
|
7572
|
-
emits: ["update:
|
|
7572
|
+
emits: ["update:model-value"],
|
|
7573
7573
|
setup(t, { emit: n }) {
|
|
7574
7574
|
const a = Ke().id || ze.CreateIdAttribute();
|
|
7575
7575
|
return (r, o) => (y(), E(K, null, [
|
|
@@ -7598,7 +7598,7 @@ const gn = /* @__PURE__ */ L({
|
|
|
7598
7598
|
],
|
|
7599
7599
|
value: t.modelValue
|
|
7600
7600
|
}, r.$attrs, {
|
|
7601
|
-
onInput: o[0] || (o[0] = (i) => n("update:
|
|
7601
|
+
onInput: o[0] || (o[0] = (i) => n("update:model-value", i.target.value))
|
|
7602
7602
|
}), null, 16, Of),
|
|
7603
7603
|
k(Ie, {
|
|
7604
7604
|
id: `${v(a)}-help`,
|
package/dist/trees.umd.js
CHANGED
|
@@ -7,6 +7,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7
7
|
<span class='flatpickr-weekday'>
|
|
8
8
|
${u.join("</span><span class='flatpickr-weekday'>")}
|
|
9
9
|
</span>
|
|
10
|
-
`}function gu(){e.calendarContainer.classList.add("hasWeeks");const d=P("div","flatpickr-weekwrapper");d.appendChild(P("span","flatpickr-weekday",e.l10n.weekAbbreviation));const u=P("div","flatpickr-weeks");return d.appendChild(u),{weekWrapper:d,weekNumbers:u}}function Gn(d,u=!0){const h=u?d:d-e.currentMonth;h<0&&e._hidePrevMonthArrow===!0||h>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=h,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,U("onYearChange"),Y()),re(),U("onMonthChange"),Wt())}function bu(d=!0,u=!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,u===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:h,minutes:w,seconds:k}=jn(e.config);m(h,w,k)}e.redraw(),d&&U("onChange")}function yu(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),U("onClose")}function wu(){e.config!==void 0&&U("onDestroy");for(let d=e._handlers.length;d--;)e._handlers[d].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 d=e.calendarContainer.parentNode;if(d.lastChild&&d.removeChild(d.lastChild),d.parentNode){for(;d.firstChild;)d.parentNode.insertBefore(d.firstChild,d);d.parentNode.removeChild(d)}}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(d=>{try{delete e[d]}catch{}})}function et(d){return e.config.appendTo&&e.config.appendTo.contains(d)?!0:e.calendarContainer.contains(d)}function Jn(d){if(e.isOpen&&!e.config.inline){const u=ue(d),h=et(u),w=u===e.input||u===e.altInput||e.element.contains(u)||d.path&&d.path.indexOf&&(~d.path.indexOf(e.input)||~d.path.indexOf(e.altInput)),k=d.type==="blur"?w&&d.relatedTarget&&!et(d.relatedTarget):!w&&!h&&!et(d.relatedTarget),v=!e.config.ignoredFocusElements.some(_=>_.contains(u));k&&v&&(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 Ht(d){if(!d||e.config.minDate&&d<e.config.minDate.getFullYear()||e.config.maxDate&&d>e.config.maxDate.getFullYear())return;const u=d,h=e.currentYear!==u;e.currentYear=u||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)),h&&(e.redraw(),U("onYearChange"),Y())}function Fe(d,u=!0){var h;const w=e.parseDate(d,void 0,u);if(e.config.minDate&&w&&fe(w,e.config.minDate,u!==void 0?u:!e.minDateHasTime)<0||e.config.maxDate&&w&&fe(w,e.config.maxDate,u!==void 0?u:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(w===void 0)return!1;const k=!!e.config.enable,v=(h=e.config.enable)!==null&&h!==void 0?h:e.config.disable;for(let _=0,S;_<v.length;_++){if(S=v[_],typeof S=="function"&&S(w))return k;if(S instanceof Date&&w!==void 0&&S.getTime()===w.getTime())return k;if(typeof S=="string"){const T=e.parseDate(S,void 0,!0);return T&&T.getTime()===w.getTime()?k:!k}else if(typeof S=="object"&&w!==void 0&&S.from&&S.to&&w.getTime()>=S.from.getTime()&&w.getTime()<=S.to.getTime())return k}return!k}function Ut(d){return e.daysContainer!==void 0?d.className.indexOf("hidden")===-1&&d.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(d):!1}function xu(d){d.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(d.relatedTarget&&et(d.relatedTarget))&&e.setDate(e._input.value,!0,d.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Cu(d){const u=ue(d),h=e.config.wrap?n.contains(u):u===e._input,w=e.config.allowInput,k=e.isOpen&&(!w||!h),v=e.config.inline&&h&&!w;if(d.keyCode===13&&h){if(w)return e.setDate(e._input.value,!0,u===e.altInput?e.config.altFormat:e.config.dateFormat),u.blur();e.open()}else if(et(u)||k||v){const _=!!e.timeContainer&&e.timeContainer.contains(u);switch(d.keyCode){case 13:_?(d.preventDefault(),s(),Qn()):so(d);break;case 27:d.preventDefault(),Qn();break;case 8:case 46:h&&!e.config.allowInput&&(d.preventDefault(),e.clear());break;case 37:case 39:if(!_&&!h){if(d.preventDefault(),e.daysContainer!==void 0&&(w===!1||document.activeElement&&Ut(document.activeElement))){const T=d.keyCode===39?1:-1;d.ctrlKey?(d.stopPropagation(),Gn(T),R(me(1),0)):R(void 0,T)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:d.preventDefault();const S=d.keyCode===40?1:-1;e.daysContainer&&u.$i!==void 0||u===e.input||u===e.altInput?d.ctrlKey?(d.stopPropagation(),Ht(e.currentYear-S),R(me(1),0)):_||R(void 0,S*7):u===e.currentYearElement?Ht(e.currentYear-S):e.config.enableTime&&(!_&&e.hourElement&&e.hourElement.focus(),s(d),e._debouncedChange());break;case 9:if(_){const T=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(F=>F),O=T.indexOf(u);if(O!==-1){const F=T[O+(d.shiftKey?-1:1)];d.preventDefault(),(F||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(u)&&d.shiftKey&&(d.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&u===e.amPM)switch(d.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],p(),Te();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],p(),Te();break}(h||et(u))&&U("onKeyDown",d)}function Xn(d){if(e.selectedDates.length!==1||d&&(!d.classList.contains("flatpickr-day")||d.classList.contains("flatpickr-disabled")))return;const u=d?d.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),h=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),w=Math.min(u,e.selectedDates[0].getTime()),k=Math.max(u,e.selectedDates[0].getTime());let v=!1,_=0,S=0;for(let T=w;T<k;T+=Cl.DAY)Fe(new Date(T),!0)||(v=v||T>w&&T<k,T<h&&(!_||T>_)?_=T:T>h&&(!S||T<S)&&(S=T));for(let T=0;T<e.config.showMonths;T++){const O=e.daysContainer.children[T];for(let F=0,be=O.children.length;F<be;F++){const ee=O.children[F],Ne=ee.dateObj.getTime(),ft=_>0&&Ne<_||S>0&&Ne>S;if(ft){ee.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(pt=>{ee.classList.remove(pt)});continue}else if(v&&!ft)continue;["startRange","inRange","endRange","notAllowed"].forEach(pt=>{ee.classList.remove(pt)}),d!==void 0&&(d.classList.add(u<=e.selectedDates[0].getTime()?"startRange":"endRange"),h<u&&Ne===h?ee.classList.add("startRange"):h>u&&Ne===h&&ee.classList.add("endRange"),Ne>=_&&(S===0||Ne<=S)&&xl(Ne,h,u)&&ee.classList.add("inRange"))}}}function vu(){e.isOpen&&!e.config.static&&!e.config.inline&&Yt()}function Eu(d,u=e._positionElement){if(e.isMobile===!0){if(d){d.preventDefault();const w=ue(d);w&&w.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),U("onOpen");return}else if(e._input.disabled||e.config.inline)return;const h=e.isOpen;e.isOpen=!0,h||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),U("onOpen"),Yt(u)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(d===void 0||!e.timeContainer.contains(d.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function ao(d){return u=>{const h=e.config[`_${d}Date`]=e.parseDate(u,e.config.dateFormat),w=e.config[`_${d==="min"?"max":"min"}Date`];h!==void 0&&(e[d==="min"?"minDateHasTime":"maxDateHasTime"]=h.getHours()>0||h.getMinutes()>0||h.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(k=>Fe(k)),!e.selectedDates.length&&d==="min"&&b(h),Te()),e.daysContainer&&(lo(),h!==void 0?e.currentYearElement[d]=h.getFullYear().toString():e.currentYearElement.removeAttribute(d),e.currentYearElement.disabled=!!w&&h!==void 0&&w.getFullYear()===h.getFullYear())}}function ku(){const d=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],u=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),h={};e.config.parseDate=u.parseDate,e.config.formatDate=u.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:v=>{e.config._enable=uo(v)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:v=>{e.config._disable=uo(v)}});const w=u.mode==="time";if(!u.dateFormat&&(u.enableTime||w)){const v=W.defaultConfig.dateFormat||Qe.dateFormat;h.dateFormat=u.noCalendar||w?"H:i"+(u.enableSeconds?":S":""):v+" H:i"+(u.enableSeconds?":S":"")}if(u.altInput&&(u.enableTime||w)&&!u.altFormat){const v=W.defaultConfig.altFormat||Qe.altFormat;h.altFormat=u.noCalendar||w?"h:i"+(u.enableSeconds?":S K":" K"):v+` h:i${u.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:ao("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:ao("max")});const k=v=>_=>{e.config[v==="min"?"_minTime":"_maxTime"]=e.parseDate(_,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:k("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:k("max")}),u.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,h,u);for(let v=0;v<d.length;v++)e.config[d[v]]=e.config[d[v]]===!0||e.config[d[v]]==="true";An.filter(v=>e.config[v]!==void 0).forEach(v=>{e.config[v]=In(e.config[v]||[]).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 v=0;v<e.config.plugins.length;v++){const _=e.config.plugins[v](e)||{};for(const S in _)An.indexOf(S)>-1?e.config[S]=In(_[S]).map(i).concat(e.config[S]):typeof u[S]>"u"&&(e.config[S]=_[S])}u.altInputClass||(e.config.altInputClass=oo().className+" "+e.config.altInputClass),U("onParseConfig")}function oo(){return e.config.wrap?n.querySelector("[data-input]"):n}function io(){typeof e.config.locale!="object"&&typeof W.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},W.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?W.l10ns[e.config.locale]:void 0),Rn.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&&W.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Oa(e),e.parseDate=Fn({config:e.config,l10n:e.l10n})}function Yt(d){if(typeof e.config.position=="function")return void e.config.position(e,d);if(e.calendarContainer===void 0)return;U("onPreCalendarPosition");const u=d||e._positionElement,h=Array.prototype.reduce.call(e.calendarContainer.children,(mt,tr)=>mt+tr.offsetHeight,0),w=e.calendarContainer.offsetWidth,k=e.config.position.split(" "),v=k[0],_=k.length>1?k[1]:null,S=u.getBoundingClientRect(),T=window.innerHeight-S.bottom,O=v==="above"||v!=="below"&&T<h&&S.top>h,F=window.pageYOffset+S.top+(O?-h-2:u.offsetHeight+2);if(ne(e.calendarContainer,"arrowTop",!O),ne(e.calendarContainer,"arrowBottom",O),e.config.inline)return;let be=window.pageXOffset+S.left,ee=!1,qt=!1;_==="center"?(be-=(w-S.width)/2,ee=!0):_==="right"&&(be-=w-S.width,qt=!0),ne(e.calendarContainer,"arrowLeft",!ee&&!qt),ne(e.calendarContainer,"arrowCenter",ee),ne(e.calendarContainer,"arrowRight",qt);const Ne=window.document.body.offsetWidth-(window.pageXOffset+S.right),ft=be+w>window.document.body.offsetWidth,pt=Ne+w>window.document.body.offsetWidth;if(ne(e.calendarContainer,"rightMost",ft),!e.config.static)if(e.calendarContainer.style.top=`${F}px`,!ft)e.calendarContainer.style.left=`${be}px`,e.calendarContainer.style.right="auto";else if(!pt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${Ne}px`;else{const mt=Du();if(mt===void 0)return;const tr=window.document.body.offsetWidth,Au=Math.max(0,tr/2-w/2),Iu=".flatpickr-calendar.centerMost:before",Lu=".flatpickr-calendar.centerMost:after",Ru=mt.cssRules.length,Fu=`{left:${S.left}px;right:auto;}`;ne(e.calendarContainer,"rightMost",!1),ne(e.calendarContainer,"centerMost",!0),mt.insertRule(`${Iu},${Lu}${Fu}`,Ru),e.calendarContainer.style.left=`${Au}px`,e.calendarContainer.style.right="auto"}}function Du(){let d=null;for(let u=0;u<document.styleSheets.length;u++){const h=document.styleSheets[u];try{h.cssRules}catch{continue}d=h;break}return d??Nu()}function Nu(){const d=document.createElement("style");return document.head.appendChild(d),d.sheet}function lo(){e.config.noCalendar||e.isMobile||(Y(),Wt(),re())}function Qn(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function so(d){d.preventDefault(),d.stopPropagation();const u=_=>_.classList&&_.classList.contains("flatpickr-day")&&!_.classList.contains("flatpickr-disabled")&&!_.classList.contains("notAllowed"),h=Ta(ue(d),u);if(h===void 0)return;const w=h,k=e.latestSelectedDateObj=new Date(w.dateObj.getTime()),v=(k.getMonth()<e.currentMonth||k.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=w,e.config.mode==="single")e.selectedDates=[k];else if(e.config.mode==="multiple"){const _=er(k);_?e.selectedDates.splice(parseInt(_),1):e.selectedDates.push(k)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=k,e.selectedDates.push(k),fe(k,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((_,S)=>_.getTime()-S.getTime()));if(p(),v){const _=e.currentYear!==k.getFullYear();e.currentYear=k.getFullYear(),e.currentMonth=k.getMonth(),_&&(U("onYearChange"),Y()),U("onMonthChange")}if(Wt(),re(),Te(),!v&&e.config.mode!=="range"&&e.config.showMonths===1?ke(w):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 _=e.config.mode==="single"&&!e.config.enableTime,S=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(_||S)&&Qn()}x()}const zt={locale:[io,ro],showMonths:[De,l,no],minDate:[E],maxDate:[E],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 $u(d,u){if(d!==null&&typeof d=="object"){Object.assign(e.config,d);for(const h in d)zt[h]!==void 0&&zt[h].forEach(w=>w())}else e.config[d]=u,zt[d]!==void 0?zt[d].forEach(h=>h()):An.indexOf(d)>-1&&(e.config[d]=In(u));e.redraw(),Te(!0)}function co(d,u){let h=[];if(d instanceof Array)h=d.map(w=>e.parseDate(w,u));else if(d instanceof Date||typeof d=="number")h=[e.parseDate(d,u)];else if(typeof d=="string")switch(e.config.mode){case"single":case"time":h=[e.parseDate(d,u)];break;case"multiple":h=d.split(e.config.conjunction).map(w=>e.parseDate(w,u));break;case"range":h=d.split(e.l10n.rangeSeparator).map(w=>e.parseDate(w,u));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(d)}`));e.selectedDates=e.config.allowInvalidPreload?h:h.filter(w=>w instanceof Date&&Fe(w,!1)),e.config.mode==="range"&&e.selectedDates.sort((w,k)=>w.getTime()-k.getTime())}function Su(d,u=!1,h=e.config.dateFormat){if(d!==0&&!d||d instanceof Array&&d.length===0)return e.clear(u);co(d,h),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),E(void 0,u),b(),e.selectedDates.length===0&&e.clear(!1),Te(u),u&&U("onChange")}function uo(d){return d.slice().map(u=>typeof u=="string"||typeof u=="number"||u instanceof Date?e.parseDate(u,void 0,!0):u&&typeof u=="object"&&u.from&&u.to?{from:e.parseDate(u.from,void 0),to:e.parseDate(u.to,void 0)}:u).filter(u=>u)}function _u(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const d=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);d&&co(d,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 Vu(){if(e.input=oo(),!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=P(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 Bu(){const d=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=P("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=d,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=d==="datetime-local"?"Y-m-d\\TH:i:S":d==="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",u=>{e.setDate(ue(u).value,!1,e.mobileFormatStr),U("onChange"),U("onClose")})}function Mu(d){if(e.isOpen===!0)return e.close();e.open(d)}function U(d,u){if(e.config===void 0)return;const h=e.config[d];if(h!==void 0&&h.length>0)for(let w=0;h[w]&&w<h.length;w++)h[w](e.selectedDates,e.input.value,e,u);d==="onChange"&&(e.input.dispatchEvent(Zn("change")),e.input.dispatchEvent(Zn("input")))}function Zn(d){const u=document.createEvent("Event");return u.initEvent(d,!0,!0),u}function er(d){for(let u=0;u<e.selectedDates.length;u++)if(fe(e.selectedDates[u],d)===0)return""+u;return!1}function Tu(d){return e.config.mode!=="range"||e.selectedDates.length<2?!1:fe(d,e.selectedDates[0])>=0&&fe(d,e.selectedDates[1])<=0}function Wt(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((d,u)=>{const h=new Date(e.currentYear,e.currentMonth,1);h.setMonth(e.currentMonth+u),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[u].textContent=At(h.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=h.getMonth().toString(),d.value=h.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 fo(d){return e.selectedDates.map(u=>e.formatDate(u,d)).filter((u,h,w)=>e.config.mode!=="range"||e.config.enableTime||w.indexOf(u)===h).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Te(d=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=fo(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=fo(e.config.altFormat)),d!==!1&&U("onValueUpdate")}function Ou(d){const u=ue(d),h=e.prevMonthNav.contains(u),w=e.nextMonthNav.contains(u);h||w?Gn(h?-1:1):e.yearElements.indexOf(u)>=0?u.select():u.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):u.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Pu(d){d.preventDefault();const u=d.type==="keydown",h=ue(d),w=h;e.amPM!==void 0&&h===e.amPM&&(e.amPM.textContent=e.l10n.amPM[he(e.amPM.textContent===e.l10n.amPM[0])]);const k=parseFloat(w.getAttribute("min")),v=parseFloat(w.getAttribute("max")),_=parseFloat(w.getAttribute("step")),S=parseInt(w.value,10),T=d.delta||(u?d.which===38?1:-1:0);let O=S+_*T;if(typeof w.value<"u"&&w.value.length===2){const F=w===e.hourElement,be=w===e.minuteElement;O<k?(O=v+O+he(!F)+(he(F)&&he(!e.amPM)),be&&V(void 0,-1,e.hourElement)):O>v&&(O=w===e.hourElement?O-v-he(!e.amPM):k,be&&V(void 0,1,e.hourElement)),e.amPM&&F&&(_===1?O+S===23:Math.abs(O-S)>_)&&(e.amPM.textContent=e.l10n.amPM[he(e.amPM.textContent===e.l10n.amPM[0])]),w.value=le(O)}}return a(),e}function Ze(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=El(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 Ze(this,n)},HTMLElement.prototype.flatpickr=function(n){return Ze([this],n)});var W=function(n,r){return typeof n=="string"?Ze(window.document.querySelectorAll(n),r):n instanceof Node?Ze([n],r):Ze(n,r)};W.defaultConfig={},W.l10ns={en:Object.assign({},it),default:Object.assign({},it)},W.localize=n=>{W.l10ns.default=Object.assign(Object.assign({},W.l10ns.default),n)},W.setDefaults=n=>{W.defaultConfig=Object.assign(Object.assign({},W.defaultConfig),n)},W.parseDate=Fn({}),W.formatDate=Oa({}),W.compareDates=fe,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Ze(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=W);const Yu="",ge=t.defineComponent({props:{disabled:{type:Boolean,default:!1},label:{default:""},tag:{default:"label"}},setup(n){return(r,e)=>n.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.tag),t.mergeProps({key:0,class:{"block my-1 text-sm font-semibold leading-snug text-gray-900":!0,"opacity-75":n.disabled}},{...r.$attrs}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.label),1)]),_:1},16,["class"])):t.createCommentVNode("",!0)}}),pe=t.defineComponent({props:{tag:{default:"div"},text:{default:""}},setup(n){return(r,e)=>n.text?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.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(n.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),kl=["id","aria-labelledby","aria-describedby","placeholder","type","value"],Hn=t.defineComponent({props:{type:null,help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Ee.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(ge,{id:`${t.unref(a)}-label`,class:"block",for:t.unref(a),label:n.label},null,8,["id","for","label"]),t.createElementVNode("input",t.mergeProps({id:t.unref(a),"aria-labelledby":n.label?`${t.unref(a)}-label`:void 0,"aria-describedby":n.help?`${t.unref(a)}-help`:void 0,class:["mt-1","sm:text-sm",...t.unref(l)?["block","shadow-sm","focus:ring-blue-500","focus:border-blue-500","border-gray-600","rounded-md","w-full","disabled:opacity-70","disabled:cursor-not-allowed"]:[]],placeholder:n.label,type:n.type,value:n.modelValue},s.$attrs,{onInput:c[0]||(c[0]=f=>r("update:modelValue",f.target.value))}),null,16,kl),t.createVNode(pe,{id:`${t.unref(a)}-help`,text:n.help},null,8,["id","text"])],64))}}),It=t.defineComponent({props:{modelValue:null,startDate:{default:0},label:{default:""},help:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Ee.CreateIdAttribute(),i=l=>{r("update:modelValue",l)};return t.onMounted(()=>{W(`#${a}`,{dateFormat:"m-d-Y",mode:"range",maxDate:new Date,minDate:e.startDate,onClose:l=>{l.length===2?i({minDate:l[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(l[1].setUTCHours(23,59,59,999)/1e3)}):l.length===0&&i({minDate:0,maxDate:0})}})}),(l,s)=>(t.openBlock(),t.createBlock(Hn,{id:t.unref(a),type:"text",placeholder:"mm-dd-yyyy range",label:n.label,help:n.help},null,8,["id","label","help"]))}}),Dl=["id","aria-labelledby","aria-describedby","value"],Nl={key:0,value:"",disabled:"",selected:""},$l=["value","textContent"],Un=t.defineComponent({props:{design:{default:"standard"},label:{default:""},help:{default:""},placeholder:{default:"Select an option"},options:null,modelValue:null},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Ee.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-blue-500 focus:border-blue-500 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-blue-500 focus:border-blue-500 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(ge,{id:`${t.unref(a)}-label`,for:t.unref(a),label:n.label},null,8,["id","for","label"]),t.createElementVNode("select",t.mergeProps({id:t.unref(a),"aria-labelledby":n.label?`${t.unref(a)}-label`:void 0,"aria-describedby":n.help?`${t.unref(a)}-help`:void 0,class:t.unref(i),value:n.modelValue},{...l.$attrs,onChange:c=>{r("update:modelValue",c.target.value)}}),[n.placeholder?(t.openBlock(),t.createElementBlock("option",Nl,t.toDisplayString(n.placeholder),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,c=>(t.openBlock(),t.createElementBlock("option",{key:c.value,value:c.value,textContent:t.toDisplayString(c.label)},null,8,$l))),128))],16,Dl),t.createVNode(pe,{id:`${t.unref(a)}-help`,text:n.help},null,8,["id","text"])],64))}}),Sl={class:"md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100"},_l={class:"flex-1 min-w-0"},Vl={class:"text-lg leading-6 font-semibold text-gray-900"},Bl={class:"mt-4 flex md:mt-0 md:ml-4"},Yn=t.defineComponent({props:{dateRange:null,sortDir:null,title:null},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,f)=>(t.openBlock(),t.createElementBlock("div",Sl,[t.createElementVNode("div",_l,[t.createElementVNode("h1",Vl,t.toDisplayString(n.title),1)]),t.createElementVNode("div",Bl,[t.createVNode(Un,{modelValue:a.value,"onUpdate:modelValue":[f[0]||(f[0]=p=>a.value=p),l],options:i},null,8,["modelValue"]),t.createVNode(It,{modelValue:o.value,"onUpdate:modelValue":[f[1]||(f[1]=p=>o.value=p),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 f=0,p;const b=()=>{p!==void 0&&p.abort()},m=(g={},y={})=>{f++;const x=f;p=new AbortController,c.value=!1,l.value=!1,s.value=!0;const C={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?g:{},method:r,params:["GET","get"].includes(r)?g:{},signal:p.signal,url:n};return We(C,{...e,...y}).then(E=>(o.value=E,a.value=void 0,c.value=!1,E),E=>{throw a.value=E,Kr(E)&&(c.value=!0),E}).finally(()=>{x==f&&(l.value=!0,s.value=!1),i.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&m(),{result:o,error:a,isFinished:l,isLoading:s,isAborted:c,hasFetched:i,abort:b,execute:m}}function Ml(n,r={}){return st(n,"GET",r)}function Tl(n,r={}){return st(n,"DELETE",r)}function Ol(n,r={}){return st(n,"POST",r)}function Pl(n,r={}){return st(n,"PUT",r)}function Pa(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=m=>{e={...e,...m}},a=m=>{r.value.delete(m)},i=m=>{const g=Ee.CreateIdAttribute();return r.value.set(g,m),(m.persistent===void 0||!m.persistent)&&setTimeout(()=>a(g),e.removeDelay),g},l=m=>i(m),s=(m,g=!1)=>i({message:m,persistent:g,type:"error"}),c=(m,g=!1)=>i({message:m,persistent:g,type:"info"}),f=(m,g=!1)=>i({message:m,persistent:g,type:"success"}),p=(m,g=!1)=>i({message:m,persistent:g,type:"warning"}),b=(m="",g=!1)=>{const y=m||e.email,x=y?`Whoops! Something went wrong, please reach out to
|
|
10
|
+
`}function gu(){e.calendarContainer.classList.add("hasWeeks");const d=P("div","flatpickr-weekwrapper");d.appendChild(P("span","flatpickr-weekday",e.l10n.weekAbbreviation));const u=P("div","flatpickr-weeks");return d.appendChild(u),{weekWrapper:d,weekNumbers:u}}function Gn(d,u=!0){const h=u?d:d-e.currentMonth;h<0&&e._hidePrevMonthArrow===!0||h>0&&e._hideNextMonthArrow===!0||(e.currentMonth+=h,(e.currentMonth<0||e.currentMonth>11)&&(e.currentYear+=e.currentMonth>11?1:-1,e.currentMonth=(e.currentMonth+12)%12,U("onYearChange"),Y()),re(),U("onMonthChange"),Wt())}function bu(d=!0,u=!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,u===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:h,minutes:w,seconds:k}=jn(e.config);m(h,w,k)}e.redraw(),d&&U("onChange")}function yu(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),U("onClose")}function wu(){e.config!==void 0&&U("onDestroy");for(let d=e._handlers.length;d--;)e._handlers[d].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 d=e.calendarContainer.parentNode;if(d.lastChild&&d.removeChild(d.lastChild),d.parentNode){for(;d.firstChild;)d.parentNode.insertBefore(d.firstChild,d);d.parentNode.removeChild(d)}}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(d=>{try{delete e[d]}catch{}})}function et(d){return e.config.appendTo&&e.config.appendTo.contains(d)?!0:e.calendarContainer.contains(d)}function Jn(d){if(e.isOpen&&!e.config.inline){const u=ue(d),h=et(u),w=u===e.input||u===e.altInput||e.element.contains(u)||d.path&&d.path.indexOf&&(~d.path.indexOf(e.input)||~d.path.indexOf(e.altInput)),k=d.type==="blur"?w&&d.relatedTarget&&!et(d.relatedTarget):!w&&!h&&!et(d.relatedTarget),v=!e.config.ignoredFocusElements.some(_=>_.contains(u));k&&v&&(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 Ht(d){if(!d||e.config.minDate&&d<e.config.minDate.getFullYear()||e.config.maxDate&&d>e.config.maxDate.getFullYear())return;const u=d,h=e.currentYear!==u;e.currentYear=u||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)),h&&(e.redraw(),U("onYearChange"),Y())}function Fe(d,u=!0){var h;const w=e.parseDate(d,void 0,u);if(e.config.minDate&&w&&fe(w,e.config.minDate,u!==void 0?u:!e.minDateHasTime)<0||e.config.maxDate&&w&&fe(w,e.config.maxDate,u!==void 0?u:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(w===void 0)return!1;const k=!!e.config.enable,v=(h=e.config.enable)!==null&&h!==void 0?h:e.config.disable;for(let _=0,S;_<v.length;_++){if(S=v[_],typeof S=="function"&&S(w))return k;if(S instanceof Date&&w!==void 0&&S.getTime()===w.getTime())return k;if(typeof S=="string"){const T=e.parseDate(S,void 0,!0);return T&&T.getTime()===w.getTime()?k:!k}else if(typeof S=="object"&&w!==void 0&&S.from&&S.to&&w.getTime()>=S.from.getTime()&&w.getTime()<=S.to.getTime())return k}return!k}function Ut(d){return e.daysContainer!==void 0?d.className.indexOf("hidden")===-1&&d.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(d):!1}function xu(d){d.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(d.relatedTarget&&et(d.relatedTarget))&&e.setDate(e._input.value,!0,d.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Cu(d){const u=ue(d),h=e.config.wrap?n.contains(u):u===e._input,w=e.config.allowInput,k=e.isOpen&&(!w||!h),v=e.config.inline&&h&&!w;if(d.keyCode===13&&h){if(w)return e.setDate(e._input.value,!0,u===e.altInput?e.config.altFormat:e.config.dateFormat),u.blur();e.open()}else if(et(u)||k||v){const _=!!e.timeContainer&&e.timeContainer.contains(u);switch(d.keyCode){case 13:_?(d.preventDefault(),s(),Qn()):so(d);break;case 27:d.preventDefault(),Qn();break;case 8:case 46:h&&!e.config.allowInput&&(d.preventDefault(),e.clear());break;case 37:case 39:if(!_&&!h){if(d.preventDefault(),e.daysContainer!==void 0&&(w===!1||document.activeElement&&Ut(document.activeElement))){const T=d.keyCode===39?1:-1;d.ctrlKey?(d.stopPropagation(),Gn(T),R(me(1),0)):R(void 0,T)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:d.preventDefault();const S=d.keyCode===40?1:-1;e.daysContainer&&u.$i!==void 0||u===e.input||u===e.altInput?d.ctrlKey?(d.stopPropagation(),Ht(e.currentYear-S),R(me(1),0)):_||R(void 0,S*7):u===e.currentYearElement?Ht(e.currentYear-S):e.config.enableTime&&(!_&&e.hourElement&&e.hourElement.focus(),s(d),e._debouncedChange());break;case 9:if(_){const T=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(F=>F),O=T.indexOf(u);if(O!==-1){const F=T[O+(d.shiftKey?-1:1)];d.preventDefault(),(F||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(u)&&d.shiftKey&&(d.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&u===e.amPM)switch(d.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],p(),Te();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],p(),Te();break}(h||et(u))&&U("onKeyDown",d)}function Xn(d){if(e.selectedDates.length!==1||d&&(!d.classList.contains("flatpickr-day")||d.classList.contains("flatpickr-disabled")))return;const u=d?d.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),h=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),w=Math.min(u,e.selectedDates[0].getTime()),k=Math.max(u,e.selectedDates[0].getTime());let v=!1,_=0,S=0;for(let T=w;T<k;T+=Cl.DAY)Fe(new Date(T),!0)||(v=v||T>w&&T<k,T<h&&(!_||T>_)?_=T:T>h&&(!S||T<S)&&(S=T));for(let T=0;T<e.config.showMonths;T++){const O=e.daysContainer.children[T];for(let F=0,be=O.children.length;F<be;F++){const ee=O.children[F],Ne=ee.dateObj.getTime(),ft=_>0&&Ne<_||S>0&&Ne>S;if(ft){ee.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(pt=>{ee.classList.remove(pt)});continue}else if(v&&!ft)continue;["startRange","inRange","endRange","notAllowed"].forEach(pt=>{ee.classList.remove(pt)}),d!==void 0&&(d.classList.add(u<=e.selectedDates[0].getTime()?"startRange":"endRange"),h<u&&Ne===h?ee.classList.add("startRange"):h>u&&Ne===h&&ee.classList.add("endRange"),Ne>=_&&(S===0||Ne<=S)&&xl(Ne,h,u)&&ee.classList.add("inRange"))}}}function vu(){e.isOpen&&!e.config.static&&!e.config.inline&&Yt()}function Eu(d,u=e._positionElement){if(e.isMobile===!0){if(d){d.preventDefault();const w=ue(d);w&&w.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),U("onOpen");return}else if(e._input.disabled||e.config.inline)return;const h=e.isOpen;e.isOpen=!0,h||(e.calendarContainer.classList.add("open"),e._input.classList.add("active"),U("onOpen"),Yt(u)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(d===void 0||!e.timeContainer.contains(d.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function ao(d){return u=>{const h=e.config[`_${d}Date`]=e.parseDate(u,e.config.dateFormat),w=e.config[`_${d==="min"?"max":"min"}Date`];h!==void 0&&(e[d==="min"?"minDateHasTime":"maxDateHasTime"]=h.getHours()>0||h.getMinutes()>0||h.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(k=>Fe(k)),!e.selectedDates.length&&d==="min"&&b(h),Te()),e.daysContainer&&(lo(),h!==void 0?e.currentYearElement[d]=h.getFullYear().toString():e.currentYearElement.removeAttribute(d),e.currentYearElement.disabled=!!w&&h!==void 0&&w.getFullYear()===h.getFullYear())}}function ku(){const d=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],u=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),h={};e.config.parseDate=u.parseDate,e.config.formatDate=u.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:v=>{e.config._enable=uo(v)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:v=>{e.config._disable=uo(v)}});const w=u.mode==="time";if(!u.dateFormat&&(u.enableTime||w)){const v=W.defaultConfig.dateFormat||Qe.dateFormat;h.dateFormat=u.noCalendar||w?"H:i"+(u.enableSeconds?":S":""):v+" H:i"+(u.enableSeconds?":S":"")}if(u.altInput&&(u.enableTime||w)&&!u.altFormat){const v=W.defaultConfig.altFormat||Qe.altFormat;h.altFormat=u.noCalendar||w?"h:i"+(u.enableSeconds?":S K":" K"):v+` h:i${u.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:ao("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:ao("max")});const k=v=>_=>{e.config[v==="min"?"_minTime":"_maxTime"]=e.parseDate(_,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:k("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:k("max")}),u.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,h,u);for(let v=0;v<d.length;v++)e.config[d[v]]=e.config[d[v]]===!0||e.config[d[v]]==="true";An.filter(v=>e.config[v]!==void 0).forEach(v=>{e.config[v]=In(e.config[v]||[]).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 v=0;v<e.config.plugins.length;v++){const _=e.config.plugins[v](e)||{};for(const S in _)An.indexOf(S)>-1?e.config[S]=In(_[S]).map(i).concat(e.config[S]):typeof u[S]>"u"&&(e.config[S]=_[S])}u.altInputClass||(e.config.altInputClass=oo().className+" "+e.config.altInputClass),U("onParseConfig")}function oo(){return e.config.wrap?n.querySelector("[data-input]"):n}function io(){typeof e.config.locale!="object"&&typeof W.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},W.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?W.l10ns[e.config.locale]:void 0),Rn.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&&W.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Oa(e),e.parseDate=Fn({config:e.config,l10n:e.l10n})}function Yt(d){if(typeof e.config.position=="function")return void e.config.position(e,d);if(e.calendarContainer===void 0)return;U("onPreCalendarPosition");const u=d||e._positionElement,h=Array.prototype.reduce.call(e.calendarContainer.children,(mt,tr)=>mt+tr.offsetHeight,0),w=e.calendarContainer.offsetWidth,k=e.config.position.split(" "),v=k[0],_=k.length>1?k[1]:null,S=u.getBoundingClientRect(),T=window.innerHeight-S.bottom,O=v==="above"||v!=="below"&&T<h&&S.top>h,F=window.pageYOffset+S.top+(O?-h-2:u.offsetHeight+2);if(ne(e.calendarContainer,"arrowTop",!O),ne(e.calendarContainer,"arrowBottom",O),e.config.inline)return;let be=window.pageXOffset+S.left,ee=!1,qt=!1;_==="center"?(be-=(w-S.width)/2,ee=!0):_==="right"&&(be-=w-S.width,qt=!0),ne(e.calendarContainer,"arrowLeft",!ee&&!qt),ne(e.calendarContainer,"arrowCenter",ee),ne(e.calendarContainer,"arrowRight",qt);const Ne=window.document.body.offsetWidth-(window.pageXOffset+S.right),ft=be+w>window.document.body.offsetWidth,pt=Ne+w>window.document.body.offsetWidth;if(ne(e.calendarContainer,"rightMost",ft),!e.config.static)if(e.calendarContainer.style.top=`${F}px`,!ft)e.calendarContainer.style.left=`${be}px`,e.calendarContainer.style.right="auto";else if(!pt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${Ne}px`;else{const mt=Du();if(mt===void 0)return;const tr=window.document.body.offsetWidth,Au=Math.max(0,tr/2-w/2),Iu=".flatpickr-calendar.centerMost:before",Lu=".flatpickr-calendar.centerMost:after",Ru=mt.cssRules.length,Fu=`{left:${S.left}px;right:auto;}`;ne(e.calendarContainer,"rightMost",!1),ne(e.calendarContainer,"centerMost",!0),mt.insertRule(`${Iu},${Lu}${Fu}`,Ru),e.calendarContainer.style.left=`${Au}px`,e.calendarContainer.style.right="auto"}}function Du(){let d=null;for(let u=0;u<document.styleSheets.length;u++){const h=document.styleSheets[u];try{h.cssRules}catch{continue}d=h;break}return d??Nu()}function Nu(){const d=document.createElement("style");return document.head.appendChild(d),d.sheet}function lo(){e.config.noCalendar||e.isMobile||(Y(),Wt(),re())}function Qn(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function so(d){d.preventDefault(),d.stopPropagation();const u=_=>_.classList&&_.classList.contains("flatpickr-day")&&!_.classList.contains("flatpickr-disabled")&&!_.classList.contains("notAllowed"),h=Ta(ue(d),u);if(h===void 0)return;const w=h,k=e.latestSelectedDateObj=new Date(w.dateObj.getTime()),v=(k.getMonth()<e.currentMonth||k.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=w,e.config.mode==="single")e.selectedDates=[k];else if(e.config.mode==="multiple"){const _=er(k);_?e.selectedDates.splice(parseInt(_),1):e.selectedDates.push(k)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=k,e.selectedDates.push(k),fe(k,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((_,S)=>_.getTime()-S.getTime()));if(p(),v){const _=e.currentYear!==k.getFullYear();e.currentYear=k.getFullYear(),e.currentMonth=k.getMonth(),_&&(U("onYearChange"),Y()),U("onMonthChange")}if(Wt(),re(),Te(),!v&&e.config.mode!=="range"&&e.config.showMonths===1?ke(w):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 _=e.config.mode==="single"&&!e.config.enableTime,S=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(_||S)&&Qn()}x()}const zt={locale:[io,ro],showMonths:[De,l,no],minDate:[E],maxDate:[E],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 $u(d,u){if(d!==null&&typeof d=="object"){Object.assign(e.config,d);for(const h in d)zt[h]!==void 0&&zt[h].forEach(w=>w())}else e.config[d]=u,zt[d]!==void 0?zt[d].forEach(h=>h()):An.indexOf(d)>-1&&(e.config[d]=In(u));e.redraw(),Te(!0)}function co(d,u){let h=[];if(d instanceof Array)h=d.map(w=>e.parseDate(w,u));else if(d instanceof Date||typeof d=="number")h=[e.parseDate(d,u)];else if(typeof d=="string")switch(e.config.mode){case"single":case"time":h=[e.parseDate(d,u)];break;case"multiple":h=d.split(e.config.conjunction).map(w=>e.parseDate(w,u));break;case"range":h=d.split(e.l10n.rangeSeparator).map(w=>e.parseDate(w,u));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(d)}`));e.selectedDates=e.config.allowInvalidPreload?h:h.filter(w=>w instanceof Date&&Fe(w,!1)),e.config.mode==="range"&&e.selectedDates.sort((w,k)=>w.getTime()-k.getTime())}function Su(d,u=!1,h=e.config.dateFormat){if(d!==0&&!d||d instanceof Array&&d.length===0)return e.clear(u);co(d,h),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),E(void 0,u),b(),e.selectedDates.length===0&&e.clear(!1),Te(u),u&&U("onChange")}function uo(d){return d.slice().map(u=>typeof u=="string"||typeof u=="number"||u instanceof Date?e.parseDate(u,void 0,!0):u&&typeof u=="object"&&u.from&&u.to?{from:e.parseDate(u.from,void 0),to:e.parseDate(u.to,void 0)}:u).filter(u=>u)}function _u(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const d=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);d&&co(d,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 Vu(){if(e.input=oo(),!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=P(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 Bu(){const d=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=P("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=d,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=d==="datetime-local"?"Y-m-d\\TH:i:S":d==="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",u=>{e.setDate(ue(u).value,!1,e.mobileFormatStr),U("onChange"),U("onClose")})}function Mu(d){if(e.isOpen===!0)return e.close();e.open(d)}function U(d,u){if(e.config===void 0)return;const h=e.config[d];if(h!==void 0&&h.length>0)for(let w=0;h[w]&&w<h.length;w++)h[w](e.selectedDates,e.input.value,e,u);d==="onChange"&&(e.input.dispatchEvent(Zn("change")),e.input.dispatchEvent(Zn("input")))}function Zn(d){const u=document.createEvent("Event");return u.initEvent(d,!0,!0),u}function er(d){for(let u=0;u<e.selectedDates.length;u++)if(fe(e.selectedDates[u],d)===0)return""+u;return!1}function Tu(d){return e.config.mode!=="range"||e.selectedDates.length<2?!1:fe(d,e.selectedDates[0])>=0&&fe(d,e.selectedDates[1])<=0}function Wt(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((d,u)=>{const h=new Date(e.currentYear,e.currentMonth,1);h.setMonth(e.currentMonth+u),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[u].textContent=At(h.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=h.getMonth().toString(),d.value=h.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 fo(d){return e.selectedDates.map(u=>e.formatDate(u,d)).filter((u,h,w)=>e.config.mode!=="range"||e.config.enableTime||w.indexOf(u)===h).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Te(d=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=fo(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=fo(e.config.altFormat)),d!==!1&&U("onValueUpdate")}function Ou(d){const u=ue(d),h=e.prevMonthNav.contains(u),w=e.nextMonthNav.contains(u);h||w?Gn(h?-1:1):e.yearElements.indexOf(u)>=0?u.select():u.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):u.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Pu(d){d.preventDefault();const u=d.type==="keydown",h=ue(d),w=h;e.amPM!==void 0&&h===e.amPM&&(e.amPM.textContent=e.l10n.amPM[he(e.amPM.textContent===e.l10n.amPM[0])]);const k=parseFloat(w.getAttribute("min")),v=parseFloat(w.getAttribute("max")),_=parseFloat(w.getAttribute("step")),S=parseInt(w.value,10),T=d.delta||(u?d.which===38?1:-1:0);let O=S+_*T;if(typeof w.value<"u"&&w.value.length===2){const F=w===e.hourElement,be=w===e.minuteElement;O<k?(O=v+O+he(!F)+(he(F)&&he(!e.amPM)),be&&V(void 0,-1,e.hourElement)):O>v&&(O=w===e.hourElement?O-v-he(!e.amPM):k,be&&V(void 0,1,e.hourElement)),e.amPM&&F&&(_===1?O+S===23:Math.abs(O-S)>_)&&(e.amPM.textContent=e.l10n.amPM[he(e.amPM.textContent===e.l10n.amPM[0])]),w.value=le(O)}}return a(),e}function Ze(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=El(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 Ze(this,n)},HTMLElement.prototype.flatpickr=function(n){return Ze([this],n)});var W=function(n,r){return typeof n=="string"?Ze(window.document.querySelectorAll(n),r):n instanceof Node?Ze([n],r):Ze(n,r)};W.defaultConfig={},W.l10ns={en:Object.assign({},it),default:Object.assign({},it)},W.localize=n=>{W.l10ns.default=Object.assign(Object.assign({},W.l10ns.default),n)},W.setDefaults=n=>{W.defaultConfig=Object.assign(Object.assign({},W.defaultConfig),n)},W.parseDate=Fn({}),W.formatDate=Oa({}),W.compareDates=fe,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Ze(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=W);const Yu="",ge=t.defineComponent({props:{disabled:{type:Boolean,default:!1},label:{default:""},tag:{default:"label"}},setup(n){return(r,e)=>n.label?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.tag),t.mergeProps({key:0,class:{"block my-1 text-sm font-semibold leading-snug text-gray-900":!0,"opacity-75":n.disabled}},{...r.$attrs}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.label),1)]),_:1},16,["class"])):t.createCommentVNode("",!0)}}),pe=t.defineComponent({props:{tag:{default:"div"},text:{default:""}},setup(n){return(r,e)=>n.text?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.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(n.text),1)]),_:1},16)):t.createCommentVNode("",!0)}}),kl=["id","aria-labelledby","aria-describedby","placeholder","type","value"],Hn=t.defineComponent({props:{type:null,help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:model-value"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Ee.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(ge,{id:`${t.unref(a)}-label`,class:"block",for:t.unref(a),label:n.label},null,8,["id","for","label"]),t.createElementVNode("input",t.mergeProps({id:t.unref(a),"aria-labelledby":n.label?`${t.unref(a)}-label`:void 0,"aria-describedby":n.help?`${t.unref(a)}-help`:void 0,class:["mt-1","sm:text-sm",...t.unref(l)?["block","shadow-sm","focus:ring-blue-500","focus:border-blue-500","border-gray-600","rounded-md","w-full","disabled:opacity-70","disabled:cursor-not-allowed"]:[]],placeholder:n.label,type:n.type,value:n.modelValue},s.$attrs,{onInput:c[0]||(c[0]=f=>r("update:model-value",f.target.value))}),null,16,kl),t.createVNode(pe,{id:`${t.unref(a)}-help`,text:n.help},null,8,["id","text"])],64))}}),It=t.defineComponent({props:{modelValue:null,startDate:{default:0},label:{default:""},help:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Ee.CreateIdAttribute(),i=l=>{r("update:modelValue",l)};return t.onMounted(()=>{W(`#${a}`,{dateFormat:"m-d-Y",mode:"range",maxDate:new Date,minDate:e.startDate,onClose:l=>{l.length===2?i({minDate:l[0].setUTCHours(0,0,0,0)/1e3,maxDate:Math.floor(l[1].setUTCHours(23,59,59,999)/1e3)}):l.length===0&&i({minDate:0,maxDate:0})}})}),(l,s)=>(t.openBlock(),t.createBlock(Hn,{id:t.unref(a),type:"text",placeholder:"mm-dd-yyyy range",label:n.label,help:n.help},null,8,["id","label","help"]))}}),Dl=["id","aria-labelledby","aria-describedby","value"],Nl={key:0,value:"",disabled:"",selected:""},$l=["value","textContent"],Un=t.defineComponent({props:{design:{default:"standard"},label:{default:""},help:{default:""},placeholder:{default:"Select an option"},options:null,modelValue:null},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,a=t.useAttrs().id||Ee.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-blue-500 focus:border-blue-500 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-blue-500 focus:border-blue-500 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(ge,{id:`${t.unref(a)}-label`,for:t.unref(a),label:n.label},null,8,["id","for","label"]),t.createElementVNode("select",t.mergeProps({id:t.unref(a),"aria-labelledby":n.label?`${t.unref(a)}-label`:void 0,"aria-describedby":n.help?`${t.unref(a)}-help`:void 0,class:t.unref(i),value:n.modelValue},{...l.$attrs,onChange:c=>{r("update:modelValue",c.target.value)}}),[n.placeholder?(t.openBlock(),t.createElementBlock("option",Nl,t.toDisplayString(n.placeholder),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,c=>(t.openBlock(),t.createElementBlock("option",{key:c.value,value:c.value,textContent:t.toDisplayString(c.label)},null,8,$l))),128))],16,Dl),t.createVNode(pe,{id:`${t.unref(a)}-help`,text:n.help},null,8,["id","text"])],64))}}),Sl={class:"md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100"},_l={class:"flex-1 min-w-0"},Vl={class:"text-lg leading-6 font-semibold text-gray-900"},Bl={class:"mt-4 flex md:mt-0 md:ml-4"},Yn=t.defineComponent({props:{dateRange:null,sortDir:null,title:null},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,f)=>(t.openBlock(),t.createElementBlock("div",Sl,[t.createElementVNode("div",_l,[t.createElementVNode("h1",Vl,t.toDisplayString(n.title),1)]),t.createElementVNode("div",Bl,[t.createVNode(Un,{modelValue:a.value,"onUpdate:modelValue":[f[0]||(f[0]=p=>a.value=p),l],options:i},null,8,["modelValue"]),t.createVNode(It,{modelValue:o.value,"onUpdate:modelValue":[f[1]||(f[1]=p=>o.value=p),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 f=0,p;const b=()=>{p!==void 0&&p.abort()},m=(g={},y={})=>{f++;const x=f;p=new AbortController,c.value=!1,l.value=!1,s.value=!0;const C={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?g:{},method:r,params:["GET","get"].includes(r)?g:{},signal:p.signal,url:n};return We(C,{...e,...y}).then(E=>(o.value=E,a.value=void 0,c.value=!1,E),E=>{throw a.value=E,Kr(E)&&(c.value=!0),E}).finally(()=>{x==f&&(l.value=!0,s.value=!1),i.value=!0})};return e!=null&&e.immediate&&e.immediate===!0&&m(),{result:o,error:a,isFinished:l,isLoading:s,isAborted:c,hasFetched:i,abort:b,execute:m}}function Ml(n,r={}){return st(n,"GET",r)}function Tl(n,r={}){return st(n,"DELETE",r)}function Ol(n,r={}){return st(n,"POST",r)}function Pl(n,r={}){return st(n,"PUT",r)}function Pa(n={}){const r=t.ref(new Map);let e={removeDelay:1e4,email:""};const o=m=>{e={...e,...m}},a=m=>{r.value.delete(m)},i=m=>{const g=Ee.CreateIdAttribute();return r.value.set(g,m),(m.persistent===void 0||!m.persistent)&&setTimeout(()=>a(g),e.removeDelay),g},l=m=>i(m),s=(m,g=!1)=>i({message:m,persistent:g,type:"error"}),c=(m,g=!1)=>i({message:m,persistent:g,type:"info"}),f=(m,g=!1)=>i({message:m,persistent:g,type:"success"}),p=(m,g=!1)=>i({message:m,persistent:g,type:"warning"}),b=(m="",g=!1)=>{const y=m||e.email,x=y?`Whoops! Something went wrong, please reach out to
|
|
11
11
|
<a class="underline text-xy-blue" href="mailto:${y}">${y}</a>
|
|
12
|
-
if the issue persists.`:"Whoops! Something went wrong.";return i({message:x,persistent:g,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:p,info:c,success:f,genericError:b},flashes:r,configure:o}}const Al=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 zn;function Le(){return zn===void 0&&(zn=Pa()),zn}const Wn={error(n,r){Le().flasher.error(n,r)},info(n,r){Le().flasher.info(n,r)},success(n,r){Le().flasher.success(n,r)},warning(n,r){Le().flasher.warning(n,r)},genericError(n,r){Le().flasher.genericError(n,r)}},Il={class:"px-4 flex items-center justify-between sm:px-0"},Ll={class:"w-0 flex-1 flex"},Rl=[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),t.createTextVNode(" Previous ")],Fl={class:"hidden md:flex"},jl=["onClick","textContent"],Hl={class:"w-0 flex-1 flex justify-end"},Ul=[t.createTextVNode(" Next "),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)],Lt=t.defineComponent({props:{modelValue:null},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",Il,[t.createElementVNode("div",Ll,[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",n.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(n.modelValue.page-1),["prevent"]))},Rl,2)]),t.createElementVNode("div",Fl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),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",n.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,jl))),128))]),t.createElementVNode("div",Hl,[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",n.modelValue.page>=n.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(n.modelValue.page+1),["prevent"]))},Ul,2)])]))}}),Yl={key:0,class:"shadow overflow-hidden sm:rounded-md border"},Aa=t.defineComponent({props:{refreshTrigger:{default:0},reloadTrigger:{default:0},title:null,url:null},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 f={page:i.value.page,perPage:i.value.perPage,sortDir:l.value};vn.get(r.url,{},Object.assign(f,e.value)).then(p=>{i.value={page:p.data.page,perPage:p.data.perPage,totalItems:p.data.totalItems,totalPages:p.data.totalPages},a.value=p.data.items,c&&(o.value=a.value.length!=0)},()=>{Wn.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,f)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(Yn,{"date-range":e.value,"sort-dir":l.value,title:n.title,onSortDirChanged:f[0]||(f[0]=p=>l.value=p),onDateRangeChanged:f[1]||(f[1]=p=>e.value=p)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",Yl,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(p,b)=>(t.openBlock(),t.createElementBlock("li",{key:b,class:t.normalizeClass({"border-t border-gray-200":b>0})},[t.renderSlot(c.$slots,"default",{item:p})],2))),128))])])):t.renderSlot(c.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(Lt,{key:2,modelValue:i.value,"onUpdate:modelValue":[f[2]||(f[2]=p=>i.value=p),f[3]||(f[3]=p=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),zl=["href"],Ia=t.defineComponent({props:{propsData:null,attribute:null},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("a",{href:n.propsData[n.attribute]},[t.createVNode(t.unref(il),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,zl))}}),Wl={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},ql={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},Kl={class:"p-4"},Gl={class:"flex items-center"},Jl={class:"w-0 flex-1 flex justify-between"},Xl=["innerHTML"],Ql={class:"ml-4 shrink-0 flex"},Zl=["onClick"],es=[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)],Rt=t.defineComponent({setup(n){const{flasher:r,flashes:e}=Le(),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(()=>{Al(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(En),null,{default:t.withCtx(()=>[t.createElementVNode("div",Wl,[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",ql,[t.createElementVNode("div",Kl,[t.createElementVNode("div",Gl,[t.createElementVNode("div",Jl,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,Xl)]),t.createElementVNode("div",Ql,[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)},es,8,Zl)])])])])],2))),128))]),_:1})])]),_:1}))}}),Ju="";function ts(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 ns(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 rs(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 La(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 Ft(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 as={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},os=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),is={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"},ls={class:"block absolute top-0 right-0 pt-4 pr-4"},ss=t.createElementVNode("span",{class:"sr-only"},"Close",-1),ds={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},cs={class:"mt-3 sm:mt-0 sm:text-left"},us={class:"mt-2"},fs={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},ps=["disabled","textContent"],Ra=t.defineComponent({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(ot),{as:"template",show:n.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(_t),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:n.modelValue,onClose:i[3]||(i[3]=l=>o(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",as,[t.createVNode(t.unref($e),{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(Vt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),os,t.createVNode(t.unref($e),{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",is,[t.createElementVNode("div",ls,[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))},[ss,t.createVNode(t.unref(Ft),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",ds,[t.createElementVNode("div",cs,[t.createVNode(t.unref($n),{as:"h3",class:"text-center text-lg leading-6 font-medium text-gray-900"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.title),1)]),_:1}),t.createElementVNode("div",us,[t.renderSlot(a.$slots,"default")])])]),n.submitText?(t.openBlock(),t.createElementBlock("div",fs,[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm",[n.destructive?"xy-btn-red":"xy-btn"]]),disabled:n.disabled,onClick:i[1]||(i[1]=l=>e()),textContent:t.toDisplayString(n.submitText)},null,10,ps),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"]))}}),ms={class:"aspect-square overflow-hidden"},hs={class:"flex justify-center relative"},gs={class:"sr-only"},bs=t.createElementVNode("div",{class:"animate-spin-gear drop-shadow-md"},[t.createElementVNode("svg",{width:"100%",height:"100%",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:"#51A749",mask:"url(#mask-2)"})])])])])],-1),ys=t.createElementVNode("div",{class:"absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50"},[t.createElementVNode("svg",{width:"100%",height:"100%",viewBox:"0 0 53 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{id:"Group-3-Copy"},[t.createElementVNode("polygon",{id:"Fill-1",fill:"#1F6DF4",points:"0.7994 0.3999 11.2214 16.0009 0.7994 31.5999 11.2214 31.5999 16.4004 24.0149 21.1934 31.5999 31.9994 31.5999 21.4254 15.7449 26.0064 9.1719 20.6194 1.3729 16.1554 7.9149 11.2214 0.3999"}),t.createElementVNode("polygon",{id:"Fill-2",fill:"#51A749",points:"41.978 0.3999 36.799 7.6269 32.006 0.3999 21.2 0.3999 31.775 15.5069 27.194 21.7689 32.27 29.1999 52.4 0.3999"})])])])],-1),qn=t.defineComponent({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")},[t.createElementVNode("div",ms,[t.createElementVNode("div",hs,[t.createElementVNode("p",gs,[t.renderSlot(e.$slots,"default")]),bs,ys])])],2)}}}),ws={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-50"},xs={class:"mt-2"},jt=t.defineComponent({setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=zr(),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(f,p)=>(t.openBlock(),t.createBlock(t.unref(En),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",ws,[t.createVNode(qn,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",xs,[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}))}}),Cs={class:"h-screen flex overflow-hidden bg-gray-100"},vs={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},Es={class:"absolute top-0 right-0 -mr-12 pt-2"},ks=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),Ds={class:"shrink-0 flex justify-center px-4"},Ns=["src"],$s={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},Ss={class:"flex-1 px-2 space-y-1"},_s=["href","target"],Vs={key:0,class:"mt-auto"},Bs={class:"mt-6 px-2"},Ms=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),Ts={class:"hidden md:flex md:shrink-0"},Os={class:"flex flex-col w-64"},Ps={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},As={class:"flex items-center shrink-0 px-4"},Is=["src"],Ls={class:"mt-5 grow flex flex-col"},Rs={class:"flex-1 px-2 bg-white space-y-1"},Fs=["href","target"],js={key:0,class:"mt-atuo"},Hs={class:"mt-6 px-2"},Us={class:"flex flex-col w-0 flex-1 overflow-hidden"},Ys={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},zs=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),Ws={class:"flex-1 px-4 flex justify-between"},qs={class:"flex-1 flex"},Ks={class:"flex items-center text-2xl text-white"},Gs={class:"ml-4 flex items-center md:ml-6"},Js=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Xs=["href"],Qs={class:"flex-1 relative overflow-y-auto focus:outline-none"},Zs={class:"mx-auto"},Fa=t.defineComponent({props:{activeURL:{default:""},iconURL:null,navigation:null,userNavigation:null},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",Cs,[t.createVNode(t.unref(ot),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(_t),{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($e),{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(Vt),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref($e),{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",vs,[t.createVNode(t.unref($e),{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",Es,[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)},[ks,t.createVNode(t.unref(Ft),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",Ds,[t.createElementVNode("img",{class:"w-auto h-12",src:n.iconURL,alt:"Logo"},null,8,Ns)]),t.createElementVNode("div",$s,[t.createElementVNode("nav",Ss,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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,_s))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Vs,[t.createElementVNode("div",Bs,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),Ms]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",Ts,[t.createElementVNode("div",Os,[t.createElementVNode("div",Ps,[t.createElementVNode("div",As,[t.createElementVNode("img",{class:"w-auto h-12",src:n.iconURL,alt:"Logo"},null,8,Is)]),t.createElementVNode("div",Ls,[t.createElementVNode("nav",Rs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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,Fs))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",js,[t.createElementVNode("div",Hs,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",Us,[t.createElementVNode("div",Ys,[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)},[zs,t.createVNode(t.unref(ns),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",Ws,[t.createElementVNode("div",qs,[t.createElementVNode("h1",Ks,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Gs,[t.createVNode(t.unref(Sn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(_n),{class:"max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-500 hover:text-gray-200 focus:outline-none focus:ring focus:text-white"},{default:t.withCtx(()=>[Js,t.createVNode(t.unref(al),{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(Vn),{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(n.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(Bn),{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,Xs)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",Qs,[t.createElementVNode("div",Zs,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(Rt),t.createVNode(jt)],64))}});function ed(n,r=100){let e;return(...o)=>{e||(n.apply(o),e=!0,setTimeout(()=>e=!1,r))}}const dt=t.defineComponent({props:{as:{default:"div"},position:{default:"auto"}},setup(n){const r=n,e=()=>({vw:document.documentElement.clientWidth,vh:document.documentElement.clientHeight}),o=t.ref(),a=t.ref(),i=t.ref(e()),l=t.computed(()=>{const f={wrapper:"",content:""};return r.position==="none"||(f.wrapper="h-0 flex w-screen",f.content="absolute",r.position!=="auto"&&(f.wrapper+=` ${s.value.wrapper}`,f.content+=` ${s.value.content}`)),f}),s=t.computed(()=>{let f="",p="";switch(r.position){case"top-left":f="top-0 right-0 -translate-y-full justify-end",p="bottom-full";break;case"top-center":f="top-0 -translate-y-full -translate-x-full left-1/2 justify-end",p="bottom-full translate-x-1/2";break;case"top-right":f="top-0 -translate-y-full left-0 -translate-x-full justify-end",p="bottom-full translate-x-full";break;case"bottom-left":f="top-full right-0 justify-end",p="top-full";break;case"bottom-center":f="top-full -translate-x-full left-1/2 justify-end",p="top-full translate-x-1/2";break;case"bottom-right":f="top-full left-0 -translate-x-full justify-end",p="top-full translate-x-full";break;case"left":f="top-1/2 left-0 -translate-y-1/2 -translate-x-full justify-end",p="-translate-y-1/2";break;case"right":f="top-1/2 -translate-y-1/2 right-0 justify-end",p="translate-x-full -translate-y-1/2";break}return{wrapper:f,content:p}}),c=t.computed(()=>{var V,G;if(!((V=a==null?void 0:a.value)!=null&&V.el)||!((G=o==null?void 0:o.value)!=null&&G.el))return{};const{vw:f,vh:p}=i.value,b=10,m=o.value.el.getBoundingClientRect(),g=a.value.el.firstChild.getBoundingClientRect(),y=p-m.bottom,x=m.top>y,C=f-m.left,E=m.left>C;let $=0;return E?(g.width>m.right?$=m.right-g.width+(g.width-m.right):$=m.right-g.width,f>g.width+b&&($=$+b)):(g.width>C?$=m.left-(g.width-C):$=m.left,f>g.width+b&&($=$-b)),{wrapper:{top:x?"auto":"100%",bottom:x?"100%":"auto",transform:`translate(${m.left*-1}px, 0)`,width:`${f}px`},content:{top:x?"auto":"100%",bottom:x?"100%":"auto",transform:`translate(${$}px, 0)`}}});if(r.position==="auto"){const f=ed(()=>{i.value=e()});t.onMounted(()=>{window.addEventListener("resize",f),window.addEventListener("scroll",f)}),t.onUnmounted(()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f)})}return(f,p)=>(t.openBlock(),t.createBlock(t.unref(ba),{class:"relative flex",as:n.as},{default:t.withCtx(({open:b,close:m})=>[t.createVNode(t.unref(zi),{ref_key:"trigger",ref:o},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"button",{open:b,close:m})]),_:2},1536),t.createVNode(t.Transition,{"enter-active-class":"transition-opacity transition-faster ease-out-quad","leave-active-class":"transition-opacity transition-fastest ease-in-quad","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Wi),{ref_key:"wrapper",ref:a,class:t.normalizeClass(["absolute z-10",t.unref(l).wrapper]),style:t.normalizeStyle(n.position==="auto"?t.unref(c).wrapper:{})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(t.unref(l).content),style:t.normalizeStyle(n.position==="auto"?t.unref(c).content:{})},[t.renderSlot(f.$slots,"default",{open:b,close:m})],6)]),_:2},1032,["class","style"])]),_:2},1024)]),_:3},8,["as"]))}}),td=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},nd={},rd={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function ad(n,r){return t.openBlock(),t.createElementBlock("div",rd,[t.renderSlot(n.$slots,"default")])}const ja=td(nd,[["render",ad]]),od={class:"absolute inset-0 overflow-hidden"},id={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},ld={class:"w-screen max-w-md"},sd={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},dd={class:"py-6 px-4 bg-blue-700 sm:px-6"},cd={class:"flex items-center justify-between"},ud={class:"ml-3 h-7 flex items-center"},fd=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),pd={class:"mt-1"},md=["textContent"],hd={class:"relative flex-1 py-6 px-4 sm:px-6"},Ha=t.defineComponent({props:{header:null,description:null,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(ot),{as:"template",show:n.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(_t),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",open:n.modelValue,onClose:l[1]||(l[1]=s=>a())},{default:t.withCtx(()=>[t.createElementVNode("div",od,[t.createVNode(t.unref(Vt),{class:"absolute inset-0"}),t.createElementVNode("div",id,[t.createVNode(t.unref($e),{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",ld,[t.createElementVNode("div",sd,[t.createElementVNode("div",dd,[t.createElementVNode("div",cd,[t.createVNode(t.unref($n),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.header),1)]),_:1}),t.createElementVNode("div",ud,[t.createElementVNode("button",{class:"bg-blue-700 rounded-md text-blue-200 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:l[0]||(l[0]=s=>a())},[fd,t.createVNode(t.unref(Ft),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",pd,[t.createElementVNode("p",{class:"text-blue-300",textContent:t.toDisplayString(n.description)},null,8,md)])]),t.createElementVNode("div",hd,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),gd={class:"leading-none w-4 h-4"},bd=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),yd={class:"w-full max-w-xs bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium"},Ua=t.defineComponent({props:{as:{default:"span"},position:{default:"auto"}},setup(n){return(r,e)=>(t.openBlock(),t.createBlock(dt,{position:n.position,as:n.as},{button:t.withCtx(()=>[t.createElementVNode("div",gd,[t.createVNode(t.unref(ts)),bd])]),default:t.withCtx(()=>[t.createElementVNode("div",yd,[t.renderSlot(r.$slots,"default")])]),_: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"},vd={class:"flex"},Ed={class:"shrink-0 flex items-center"},kd=["src"],Dd={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},Nd=["href","aria-current"],$d={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"},Bd=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Md={class:"pt-2 pb-3 space-y-1"},Td=["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"},Id={class:"ml-3"},Ld=["textContent"],Rd=["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"},Ya=t.defineComponent({props:{activeURL:{default:""},currentUser:null,iconURL:null,navigation:null,userNavigation:null},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(Ii),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",xd,[t.createElementVNode("div",Cd,[t.createElementVNode("div",vd,[t.createElementVNode("div",Ed,[t.createElementVNode("img",{class:"block h-8 w-auto",src:n.iconURL,alt:"XY Trees"},null,8,kd)]),t.createElementVNode("div",Dd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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,Nd))),128))])]),t.createElementVNode("div",$d,[t.createVNode(t.unref(Sn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(_n),{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(La),{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(Vn),{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(n.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(Bn),{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(Li),{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(()=>[Bd,i?(t.openBlock(),t.createBlock(t.unref(Ft),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(rs),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Ri),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",Md,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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,Td))),128))]),t.createElementVNode("div",Od,[t.createElementVNode("div",Pd,[t.createElementVNode("div",Ad,[t.createVNode(t.unref(La),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",Id,[n.currentUser.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-base font-medium text-gray-800",textContent:t.toDisplayString(n.currentUser.name)},null,8,Ld)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(n.currentUser.email)},null,8,Rd)])]),t.createElementVNode("div",Fd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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(Rt),t.createVNode(jt)],64))}}),Yd={class:"flex flex-col"},zd={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Wd={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"},Kd={class:"min-w-full divide-y divide-gray-200"},Gd=["textContent"],Jd={class:"bg-white divide-y divide-gray-200"},Xd=["textContent"],Qd={key:0},Zd=["colspan"],za=t.defineComponent({props:{tableData:null},setup(n){const r=(e,o)=>{if(o.key)return e[o.key];if(o.presenter){const a=t.getCurrentInstance();return o.presenter(e,a==null?void 0:a.proxy)}return""};return(e,o)=>(t.openBlock(),t.createElementBlock("div",Yd,[t.createElementVNode("div",zd,[t.createElementVNode("div",Wd,[t.createElementVNode("div",qd,[t.createElementVNode("table",Kd,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.columns,(a,i)=>(t.openBlock(),t.createElementBlock("th",{key:i,class:"px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase bg-gray-50 leading-4",textContent:t.toDisplayString(a.display)},null,8,Gd))),128))])]),t.createElementVNode("tbody",Jd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.items,(a,i)=>(t.openBlock(),t.createElementBlock("tr",{key:a.id?a.id:i},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.columns,(l,s)=>(t.openBlock(),t.createElementBlock("td",{key:i+"-"+s,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"},[l.component?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.component),{key:0,"props-data":a,"current-user":n.tableData.currentUser,attribute:l.key},null,8,["props-data","current-user","attribute"])):(t.openBlock(),t.createElementBlock("span",{key:1,textContent:t.toDisplayString(r(a,l))},null,8,Xd))]))),128))]))),128)),n.tableData.items.length==0?(t.openBlock(),t.createElementBlock("tr",Qd,[t.createElementVNode("td",{colspan:n.tableData.columns.length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Zd)])):t.createCommentVNode("",!0)])])])])])]))}}),ec={class:"flex items-center justify-center space-x-8"},tc={class:"font-medium"},nc={class:"flex items-center space-x-5"},rc={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},ac={key:1,class:"relative flex items-center justify-center"},oc=[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)],ic={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},lc={key:0,class:"flex shrink-0"},sc={key:0,class:"inline-flex rounded-md shadow-sm"},dc=["textContent"],cc={class:"ml-3 inline-flex rounded-md shadow-sm"},uc=["textContent"],Wa=t.defineComponent({props:{hideActions:{type:Boolean,default:!1},hidePrevious:{type:Boolean,default:!1},nextText:{default:"Next"},previousText:{default:"Back"},step:null,total:null},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",ec,[t.createElementVNode("p",tc,"Step "+t.toDisplayString(n.step)+" of "+t.toDisplayString(n.total),1),t.createElementVNode("ul",nc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.total,l=>(t.openBlock(),t.createElementBlock("li",{key:l},[n.step>l?(t.openBlock(),t.createElementBlock("span",rc)):n.step===l?(t.openBlock(),t.createElementBlock("div",ac,oc)):(t.openBlock(),t.createElementBlock("span",ic))]))),128))])]),n.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",lc,[n.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",sc,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(n.previousText)},null,8,dc)])),t.createElementVNode("span",cc,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(n.nextText)},null,8,uc)])]))]))}}),fc={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},pc={key:0,class:"w-full max-w-lg lg:max-w-xs"},mc=t.createElementVNode("label",{for:"search",class:"sr-only"},"Search",-1),hc={class:"relative"},gc=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),bc={key:1,class:"w-full max-w-lg lg:max-w-xs"},yc={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},wc={class:"min-w-full"},xc={key:0},Cc=["onClick"],vc={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},Ec=[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)],kc={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Dc=[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)],Nc={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},$c=[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)],Sc={class:"bg-white"},_c=["onClick"],Vc=["textContent"],Bc={key:0},Mc=["colspan"],qa=t.defineComponent({props:{clickable:{type:Boolean,default:!1},loader:{type:Boolean,default:!0},tableData:null},emits:["handleClick"],setup(n){const r=n,e=t.ref(r.tableData.defaultSort?r.tableData.defaultSort:""),o=t.ref(r.tableData.defaultSortDirection?r.tableData.defaultSortDirection:"desc"),a=t.ref({minDate:0,maxDate:0}),i=t.ref([]),l=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),s=t.ref(""),c=(y,x)=>{if(x.key)return x.key.split(".").reduce((C,E)=>C[E],y);if(x.presenter){const C=t.getCurrentInstance();return x.presenter(y,C==null?void 0:C.proxy)}return""},f=y=>{l.value.page=1,a.value=y,b()},p=y=>{e.value==y?o.value=o.value==="desc"?"asc":"desc":(e.value=y,o.value="desc"),b()},b=()=>{const y={minDate:a.value.minDate,maxDate:a.value.maxDate,page:l.value.page,perPage:l.value.perPage,sort:e.value,sortDir:o.value,q:s.value};vn.get(r.tableData.url,{skipLoader:!r.loader},y).then(x=>{l.value={page:x.data.page,perPage:x.data.perPage,totalItems:x.data.totalItems,totalPages:x.data.totalPages},i.value=x.data.items},()=>{Wn.genericError()})},m=()=>{l.value.page=1,b()},g=t.computed(()=>!!i.value.length);return t.watch(()=>r.tableData.refreshTrigger,()=>{b()}),t.watch(()=>r.tableData.reloadTrigger,()=>{m()}),b(),(y,x)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",fc,[n.tableData.search?(t.openBlock(),t.createElementBlock("div",pc,[mc,t.createElementVNode("div",hc,[gc,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=C=>s.value=C),class:"pl-10",type:"search",placeholder:"Search",onChange:x[1]||(x[1]=C=>m())},null,544),[[t.vModelText,s.value,void 0,{trim:!0}]])])])):t.createCommentVNode("",!0),n.tableData.dateSearch?(t.openBlock(),t.createElementBlock("div",bc,[t.createVNode(It,{modelValue:a.value,"onUpdate:modelValue":[x[2]||(x[2]=C=>a.value=C),f]},null,8,["modelValue"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",yc,[t.createElementVNode("table",wc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.columns,(C,E)=>(t.openBlock(),t.createElementBlock("th",{key:E,class:"px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase border-b border-gray-200 bg-gray-50 leading-4"},[C.display.length?(t.openBlock(),t.createElementBlock("span",xc,t.toDisplayString(C.display),1)):t.createCommentVNode("",!0),C.sort?(t.openBlock(),t.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:t.withModifiers($=>p(C.sort),["prevent"])},[e.value!==C.sort?(t.openBlock(),t.createElementBlock("svg",vc,Ec)):o.value=="desc"?(t.openBlock(),t.createElementBlock("svg",kc,Dc)):(t.openBlock(),t.createElementBlock("svg",Nc,$c))],8,Cc)):t.createCommentVNode("",!0)]))),128))])]),t.createElementVNode("tbody",Sc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(C,E)=>(t.openBlock(),t.createElementBlock("tr",{key:C.id?C.id:E,class:t.normalizeClass({"cursor-pointer":n.clickable}),onClick:$=>y.$emit("handleClick",C)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.columns,($,V)=>(t.openBlock(),t.createElementBlock("td",{key:E+"-"+V,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap border-b border-gray-200 leading-5",$.class])},[$.component?(t.openBlock(),t.createBlock(t.resolveDynamicComponent($.component),{key:0,"props-data":C,"current-user":n.tableData.currentUser,attribute:$.key,items:$.items},null,8,["props-data","current-user","attribute","items"])):(t.openBlock(),t.createElementBlock("div",{key:1,textContent:t.toDisplayString(c(C,$))},null,8,Vc))],2))),128))],10,_c))),128)),t.unref(g)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Bc,[t.createElementVNode("td",{colspan:n.tableData.columns.length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap border-b border-gray-200 leading-5"}," No items were found! ",8,Mc)]))])])]),t.unref(g)?(t.openBlock(),t.createBlock(Lt,{key:0,modelValue:l.value,"onUpdate:modelValue":[x[3]||(x[3]=C=>l.value=C),x[4]||(x[4]=C=>b())]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Tc=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),Oc={class:"hidden sm:block"},Pc=["onClick","textContent"],Ka=t.defineComponent({props:{modelValue:null,pillDesign:{type:Boolean,default:!1},tabs:null},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":n.pillDesign}])},[Tc,t.createVNode(c,{name:"tabs","model-value":n.modelValue,options:n.tabs,"onUpdate:modelValue":s[0]||(s[0]=f=>o(f))},null,8,["model-value","options"])],2),t.createElementVNode("div",Oc,[t.createElementVNode("div",{class:t.normalizeClass({"border-b border-gray-200":t.unref(i)})},[t.createElementVNode("nav",{class:t.normalizeClass(["flex",[n.pillDesign?"ml-8":"-mb-px"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tabs,(f,p)=>(t.openBlock(),t.createElementBlock("a",{key:p,href:"#",class:t.normalizeClass(a(f.value,p>0)),onClick:t.withModifiers(b=>o(f.value),["prevent"]),textContent:t.toDisplayString(f.label)},null,10,Pc))),128))],2)],2)])])}}}),Ac=t.createElementVNode("span",{class:"sr-only"},"Use",-1),Ga=t.defineComponent({props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){return(e,o)=>(t.openBlock(),t.createBlock(t.unref(Xi),{class:t.normalizeClass([n.modelValue?"bg-blue-600":"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-blue-500"]),"model-value":n.modelValue,"onUpdate:modelValue":o[0]||(o[0]=a=>r("update:modelValue",a))},{default:t.withCtx(()=>[Ac,t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([n.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"]))}}),Ic={class:"relative flex items-start"},Lc={class:"flex items-center h-5"},Rc=["id","aria-labelledby","aria-describedby","checked"],Fc={class:"ml-3"},Ja=t.defineComponent({props:{label:{default:""},help:{default:""},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||Ee.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock("div",Ic,[t.createElementVNode("div",Lc,[t.createElementVNode("input",t.mergeProps({id:t.unref(o),"aria-labelledby":n.label?`${t.unref(o)}-label`:void 0,"aria-describedby":n.help?`${t.unref(o)}-help`:void 0,checked:n.modelValue,class:"focus:ring-blue-500 h-4 w-4 text-blue-500 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,Rc)]),t.createElementVNode("div",Fc,[t.createVNode(ge,{id:`${t.unref(o)}-label`,class:"mt-auto",disabled:a.$attrs.hasOwnProperty("disabled")&&a.$attrs.disabled!==!1,for:t.unref(o),label:n.label},null,8,["id","disabled","for","label"]),t.createVNode(pe,{id:`${t.unref(o)}-help`,class:"-mt-1",text:n.help},null,8,["id","text"])])]))}});function jc(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 ct=t.defineComponent({props:{tag:{default:"legend"}},setup(n){return(r,e)=>t.unref(jc)(r.$slots.default)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.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)}}),Hc=["aria-labelledby","aria-describedby"],Uc={key:0,class:"space-y-0.5"},Yc={key:0},zc={class:"flex"},Wc={class:"flex items-center h-5"},qc=["id","aria-labelledby","aria-describedby","checked","disabled"],Kc={class:"ml-3"},Xa=t.defineComponent({props:{options:null,help:{default:""},legend:{default:""},modelValue:null,columns:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=t.useSlots(),i=o.id||Ee.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0),s=(c,f)=>{let p=[...e.modelValue];c?p.push(f):p.splice(p.indexOf(f),1),r("update:modelValue",p)};return(c,f)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":t.unref(l)?`${t.unref(i)}-legend`:void 0,"aria-describedby":n.help?`${t.unref(i)}-help`:void 0},[t.unref(l)||n.help?(t.openBlock(),t.createElementBlock("div",Uc,[t.createVNode(ct,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createElementBlock("div",Yc,t.toDisplayString(n.legend),1)):t.createCommentVNode("",!0),c.$slots.legend?t.renderSlot(c.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(pe,{id:`${t.unref(i)}-help`,tag:"p",text:n.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",zc,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-4",{"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0":n.columns!==void 0,"sm:grid-cols-2":n.columns===2,"sm:grid-cols-3":n.columns===3,"sm:grid-cols-4":n.columns===4}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(p,b)=>(t.openBlock(),t.createElementBlock("div",{key:p.value,class:"flex items-start"},[t.createElementVNode("div",Wc,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${b}`,"aria-labelledby":`${t.unref(i)}-${b}-label`,"aria-describedby":p!=null&&p.help&&p.help?`${t.unref(i)}-${b}-help`:void 0,checked:n.modelValue.includes(p.value),disabled:p.disabled===!0?!0:void 0,class:"focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",type:"checkbox"},{onChange:m=>{s(m.target.checked,p.value)},...c.$attrs}),null,16,qc)]),t.createElementVNode("div",Kc,[t.createVNode(ge,{id:`${t.unref(i)}-${b}-label`,class:"mt-auto",disabled:c.$attrs.hasOwnProperty("disabled")&&c.$attrs.disabled!==!1||p.disabled===!0,for:`${t.unref(i)}-${b}`,label:p.label},null,8,["id","disabled","for","label"]),t.createVNode(pe,{id:`${t.unref(i)}-${b}-help`,class:"-mt-1",text:p.help},null,8,["id","text"])])]))),128))],2)])],8,Hc))}}),Gc=["aria-labelledby","aria-describedby"],Jc={key:0,class:"space-y-0.5"},Xc={key:0},Qc={class:"flex"},Zc={class:"flex items-center h-5"},eu=["id","aria-describedby","aria-labelledby","checked","disabled","name","value"],tu={class:"ml-3"},Qa=t.defineComponent({props:{options:null,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||Ee.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0);return(s,c)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":t.unref(l)?`${t.unref(i)}-legend`:void 0,"aria-describedby":n.help?`${t.unref(i)}-help`:void 0},[t.unref(l)||n.help?(t.openBlock(),t.createElementBlock("div",Jc,[t.createVNode(ct,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createElementBlock("div",Xc,t.toDisplayString(n.legend),1)):t.createCommentVNode("",!0),s.$slots.legend?t.renderSlot(s.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(pe,{id:`${t.unref(i)}-help`,tag:"p",text:n.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qc,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-4",{"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0":n.columns!==void 0,"sm:grid-cols-2":n.columns===2,"sm:grid-cols-3":n.columns===3,"sm:grid-cols-4":n.columns===4}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(f,p)=>(t.openBlock(),t.createElementBlock("div",{key:f.value,class:"flex items-start"},[t.createElementVNode("div",Zc,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${p}`,"aria-describedby":f!=null&&f.help&&f.help?`${t.unref(i)}-${p}-help`:void 0,"aria-labelledby":`${t.unref(i)}-${p}-label`,checked:n.modelValue===f.value,class:"w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",disabled:f.disabled===!0?!0:void 0,name:t.unref(i),type:"radio",value:f.value},{onChange:()=>{r("update:modelValue",f.value)},...s.$attrs}),null,16,eu)]),t.createElementVNode("div",tu,[t.createVNode(ge,{id:`${t.unref(i)}-${p}-label`,class:"mt-auto",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1||f.disabled===!0,for:`${t.unref(i)}-${p}`,label:f.label},null,8,["id","disabled","for","label"]),t.createVNode(pe,{id:`${t.unref(i)}-${p}-help`,class:"-mt-1",text:f.help},null,8,["id","text"])])]))),128))],2)])],8,Gc))}}),nu=["id"],ru={class:"flex-1 flex pr-1"},au={class:"flex flex-col"},ou={key:1,class:"mt-auto mb-0"},iu=["checked","name","required","value"],Za=t.defineComponent({props:{columns:{default:void 0},help:{default:""},legend:{default:""},modelValue:{default:void 0},options:null},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=Ee.CreateIdAttribute(),i=t.ref(),l=t.ref(),s=t.computed(()=>e.modelValue===void 0?i.value:e.modelValue),c=p=>{i.value=p,l.value=!1,r("update:modelValue",p)},f=t.computed(()=>typeof o.name=="string"&&o.name!==""?o.name:a);return(p,b)=>(t.openBlock(),t.createBlock(t.unref(Ki),{"model-value":t.unref(s),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(()=>[n.legend?(t.openBlock(),t.createBlock(t.unref(Ea),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(ct,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.legend),1)]),_:1})]),_:1})):t.createCommentVNode("",!0),n.help?(t.openBlock(),t.createBlock(t.unref(Mn),{key:1},{default:t.withCtx(()=>[t.createVNode(pe,{text:n.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,nu)):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":n.columns===2,"sm:grid-cols-3":n.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,m=>(t.openBlock(),t.createBlock(t.unref(Gi),{key:m.value,as:"template",disabled:m!=null&&m.disabled?m.disabled:!1,value:m.value},{default:t.withCtx(({active:g,checked:y,disabled:x})=>[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-blue-500 ring-2 ring-blue-500":"",x?"cursor-not-allowed opacity-75":""]])},[t.createElementVNode("div",ru,[t.createElementVNode("div",au,[t.createVNode(t.unref(Ea),{as:"div"},{default:t.withCtx(()=>[t.createVNode(ge,{tag:"div",class:"mt-auto mb-auto",label:m.label},null,8,["label"])]),_:2},1024),m.help?(t.openBlock(),t.createBlock(t.unref(Mn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(pe,{tag:"div",class:"mt-auto",text:m.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),m.sublabel||p.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",ou,[t.createVNode(t.unref(Mn),{as:"div",class:"font-semibold leading-snug mt-4 text-gray-900 text-sm"},{default:t.withCtx(()=>[t.renderSlot(p.$slots,"sublabel",{active:g,checked:y,disabled:x,option:m},()=>[t.createTextVNode(t.toDisplayString(m.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(rl),{class:t.normalizeClass([y?"":"invisible","h-5 w-5 text-blue-600"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([g?"border":"border-2",y?"border-blue-500":"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:t.unref(f),required:t.unref(o).required!==void 0&&t.unref(o).required!==!1,tabindex:"-1",type:"radio",value:m.value,onInvalid:b[0]||(b[0]=C=>l.value=!0)},null,40,iu)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["model-value","disabled","aria-invalid","aria-errormessage"]))}}),lu=["id","aria-labelledby","aria-describedby","value"],eo=t.defineComponent({props:{help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||Ee.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(ge,{id:`${t.unref(o)}-label`,class:"block",for:t.unref(o),label:n.label},null,8,["id","for","label"]),t.createElementVNode("textarea",t.mergeProps({id:t.unref(o),"aria-labelledby":n.label?`${t.unref(o)}-label`:void 0,"aria-describedby":n.help?`${t.unref(o)}-help`:void 0,class:["mt-1","sm:text-sm","block","shadow-sm","focus:ring-blue-500","focus:border-blue-500","border-gray-600","rounded-md","w-full","disabled:opacity-70","disabled:cursor-not-allowed"],value:n.modelValue},a.$attrs,{onInput:i[0]||(i[0]=l=>r("update:modelValue",l.target.value))}),null,16,lu),t.createVNode(pe,{id:`${t.unref(o)}-help`,text:n.help},null,8,["id","text"])],64))}}),su=["aria-labelledby","aria-describedby"],du={key:0,class:"space-y-0.5"},cu=["for"],uu=["id","name","checked"],fu=["for"],pu=["id","name","checked"],to=t.defineComponent({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||Ee.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":n.legend?`${t.unref(a)}-legend`:void 0,"aria-describedby":n.help?`${t.unref(a)}-help`:void 0},[n.legend||n.help?(t.openBlock(),t.createElementBlock("div",du,[t.createVNode(ge,{class:"block my-auto",label:n.legend,tag:"legend"},null,8,["label"]),t.createVNode(pe,{id:`${t.unref(a)}-help`,tag:"p",text:n.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:`${t.unref(i)?n.name:t.unref(a)}-true`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)?n.name:t.unref(a)}-true`,type:"radio",class:"w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",name:t.unref(i)?n.name:t.unref(a),value:!0,checked:n.modelValue===!0},{...s.$attrs,onChange:l}),null,16,uu),t.createVNode(ge,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"Yes",tag:"span"},null,8,["disabled"])],10,cu),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",{"cursor-not-allowed":s.$attrs.disabled}]),for:`${t.unref(i)?n.name:t.unref(a)}-false`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)?n.name:t.unref(a)}-false`,type:"radio",class:"w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",name:t.unref(i)?n.name:t.unref(a),value:!1,checked:n.modelValue===!1},{...s.$attrs,onChange:l}),null,16,pu),t.createVNode(ge,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"No",tag:"span"},null,8,["disabled"])],10,fu)])],8,su))}}),mu=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:Sa,BaseInput:Hn,Cards:_a,Checkbox:Ja,ContentModal:Va,DateFilter:Yn,DateRangePicker:It,DetailList:Aa,DownloadCell:Ia,FieldsetLegend:ct,Flash:Rt,InputHelp:pe,InputLabel:ge,Modal:Ra,MultiCheckboxes:Xa,Paginator:Lt,Popover:dt,PopoverContent:ja,PopoverPosition:dt,Radio:Qa,RadioCards:Za,Select:Un,SidebarLayout:Fa,Slideover:Ha,Spinner:jt,StackedLayout:Ya,StaticTable:za,Steps:Wa,Table:qa,Tabs:Ka,TextArea:eo,Toggle:Ga,Tooltip:Ua,XYSpinner:qn,YesOrNoRadio:to},Symbol.toStringTag,{value:"Module"})),hu=function(r){Object.entries(mu).forEach(([e,o])=>{r.component(e,o)})};N.ActionsDropdown=Sa,N.BaseAPI=vn,N.BaseInput=Hn,N.Cards=_a,N.Checkbox=Ja,N.ContentModal=Va,N.DateFilter=Yn,N.DateRangePicker=It,N.DetailList=Aa,N.DownloadCell=Ia,N.FieldsetLegend=ct,N.Flash=Rt,N.InputHelp=pe,N.InputLabel=ge,N.Modal=Ra,N.MultiCheckboxes=Xa,N.Paginator=Lt,N.Popover=dt,N.PopoverContent=ja,N.PopoverPosition=dt,N.Radio=Qa,N.RadioCards=Za,N.Select=Un,N.SidebarLayout=Fa,N.Slideover=Ha,N.Spinner=jt,N.StackedLayout=Ya,N.StaticTable=za,N.Steps=Wa,N.Table=qa,N.Tabs=Ka,N.TextArea=eo,N.Toggle=Ga,N.Tooltip=Ua,N.XYSpinner=qn,N.YesOrNoRadio=to,N.default=hu,N.isHttpCancel=Kr,N.isHttpError=qr,N.useAppFlasher=Wn,N.useAppFlashes=Le,N.useAppSpinner=Cn,N.useBaseAPI=st,N.useBaseAPIDelete=Tl,N.useBaseAPIGet=Ml,N.useBaseAPIPost=Ol,N.useBaseAPIPut=Pl,N.useFlashes=Pa,N.useSpinnerDisplay=Yr,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
12
|
+
if the issue persists.`:"Whoops! Something went wrong.";return i({message:x,persistent:g,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:p,info:c,success:f,genericError:b},flashes:r,configure:o}}const Al=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 zn;function Le(){return zn===void 0&&(zn=Pa()),zn}const Wn={error(n,r){Le().flasher.error(n,r)},info(n,r){Le().flasher.info(n,r)},success(n,r){Le().flasher.success(n,r)},warning(n,r){Le().flasher.warning(n,r)},genericError(n,r){Le().flasher.genericError(n,r)}},Il={class:"px-4 flex items-center justify-between sm:px-0"},Ll={class:"w-0 flex-1 flex"},Rl=[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),t.createTextVNode(" Previous ")],Fl={class:"hidden md:flex"},jl=["onClick","textContent"],Hl={class:"w-0 flex-1 flex justify-end"},Ul=[t.createTextVNode(" Next "),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)],Lt=t.defineComponent({props:{modelValue:null},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",Il,[t.createElementVNode("div",Ll,[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",n.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(n.modelValue.page-1),["prevent"]))},Rl,2)]),t.createElementVNode("div",Fl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(a),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",n.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,jl))),128))]),t.createElementVNode("div",Hl,[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",n.modelValue.page>=n.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(n.modelValue.page+1),["prevent"]))},Ul,2)])]))}}),Yl={key:0,class:"shadow overflow-hidden sm:rounded-md border"},Aa=t.defineComponent({props:{refreshTrigger:{default:0},reloadTrigger:{default:0},title:null,url:null},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 f={page:i.value.page,perPage:i.value.perPage,sortDir:l.value};vn.get(r.url,{},Object.assign(f,e.value)).then(p=>{i.value={page:p.data.page,perPage:p.data.perPage,totalItems:p.data.totalItems,totalPages:p.data.totalPages},a.value=p.data.items,c&&(o.value=a.value.length!=0)},()=>{Wn.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,f)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(Yn,{"date-range":e.value,"sort-dir":l.value,title:n.title,onSortDirChanged:f[0]||(f[0]=p=>l.value=p),onDateRangeChanged:f[1]||(f[1]=p=>e.value=p)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",Yl,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(p,b)=>(t.openBlock(),t.createElementBlock("li",{key:b,class:t.normalizeClass({"border-t border-gray-200":b>0})},[t.renderSlot(c.$slots,"default",{item:p})],2))),128))])])):t.renderSlot(c.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(Lt,{key:2,modelValue:i.value,"onUpdate:modelValue":[f[2]||(f[2]=p=>i.value=p),f[3]||(f[3]=p=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),zl=["href"],Ia=t.defineComponent({props:{propsData:null,attribute:null},setup(n){return(r,e)=>(t.openBlock(),t.createElementBlock("a",{href:n.propsData[n.attribute]},[t.createVNode(t.unref(il),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,zl))}}),Wl={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},ql={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},Kl={class:"p-4"},Gl={class:"flex items-center"},Jl={class:"w-0 flex-1 flex justify-between"},Xl=["innerHTML"],Ql={class:"ml-4 shrink-0 flex"},Zl=["onClick"],es=[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)],Rt=t.defineComponent({setup(n){const{flasher:r,flashes:e}=Le(),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(()=>{Al(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(En),null,{default:t.withCtx(()=>[t.createElementVNode("div",Wl,[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",ql,[t.createElementVNode("div",Kl,[t.createElementVNode("div",Gl,[t.createElementVNode("div",Jl,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,Xl)]),t.createElementVNode("div",Ql,[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)},es,8,Zl)])])])])],2))),128))]),_:1})])]),_:1}))}}),Ju="";function ts(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 ns(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 rs(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 La(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 Ft(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 as={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},os=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),is={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"},ls={class:"block absolute top-0 right-0 pt-4 pr-4"},ss=t.createElementVNode("span",{class:"sr-only"},"Close",-1),ds={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},cs={class:"mt-3 sm:mt-0 sm:text-left"},us={class:"mt-2"},fs={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},ps=["disabled","textContent"],Ra=t.defineComponent({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(ot),{as:"template",show:n.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(_t),{as:"div",static:"",class:"fixed z-30 inset-0 overflow-y-auto",open:n.modelValue,onClose:i[3]||(i[3]=l=>o(!1))},{default:t.withCtx(()=>[t.createElementVNode("div",as,[t.createVNode(t.unref($e),{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(Vt),{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})]),_:1}),os,t.createVNode(t.unref($e),{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",is,[t.createElementVNode("div",ls,[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))},[ss,t.createVNode(t.unref(Ft),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",ds,[t.createElementVNode("div",cs,[t.createVNode(t.unref($n),{as:"h3",class:"text-center text-lg leading-6 font-medium text-gray-900"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.title),1)]),_:1}),t.createElementVNode("div",us,[t.renderSlot(a.$slots,"default")])])]),n.submitText?(t.openBlock(),t.createElementBlock("div",fs,[t.createElementVNode("button",{type:"button",class:t.normalizeClass(["xy-btn w-full sm:ml-3 sm:w-auto sm:text-sm",[n.destructive?"xy-btn-red":"xy-btn"]]),disabled:n.disabled,onClick:i[1]||(i[1]=l=>e()),textContent:t.toDisplayString(n.submitText)},null,10,ps),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"]))}}),ms={class:"aspect-square overflow-hidden"},hs={class:"flex justify-center relative"},gs={class:"sr-only"},bs=t.createElementVNode("div",{class:"animate-spin-gear drop-shadow-md"},[t.createElementVNode("svg",{width:"100%",height:"100%",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:"#51A749",mask:"url(#mask-2)"})])])])])],-1),ys=t.createElementVNode("div",{class:"absolute top-0 left-0 right-0 bottom-0 flex justify-center items-center transform scale-50"},[t.createElementVNode("svg",{width:"100%",height:"100%",viewBox:"0 0 53 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[t.createElementVNode("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[t.createElementVNode("g",{id:"Group-3-Copy"},[t.createElementVNode("polygon",{id:"Fill-1",fill:"#1F6DF4",points:"0.7994 0.3999 11.2214 16.0009 0.7994 31.5999 11.2214 31.5999 16.4004 24.0149 21.1934 31.5999 31.9994 31.5999 21.4254 15.7449 26.0064 9.1719 20.6194 1.3729 16.1554 7.9149 11.2214 0.3999"}),t.createElementVNode("polygon",{id:"Fill-2",fill:"#51A749",points:"41.978 0.3999 36.799 7.6269 32.006 0.3999 21.2 0.3999 31.775 15.5069 27.194 21.7689 32.27 29.1999 52.4 0.3999"})])])])],-1),qn=t.defineComponent({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")},[t.createElementVNode("div",ms,[t.createElementVNode("div",hs,[t.createElementVNode("p",gs,[t.renderSlot(e.$slots,"default")]),bs,ys])])],2)}}}),ws={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-50"},xs={class:"mt-2"},jt=t.defineComponent({setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=zr(),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(f,p)=>(t.openBlock(),t.createBlock(t.unref(En),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",ws,[t.createVNode(qn,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",xs,[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}))}}),Cs={class:"h-screen flex overflow-hidden bg-gray-100"},vs={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},Es={class:"absolute top-0 right-0 -mr-12 pt-2"},ks=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),Ds={class:"shrink-0 flex justify-center px-4"},Ns=["src"],$s={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},Ss={class:"flex-1 px-2 space-y-1"},_s=["href","target"],Vs={key:0,class:"mt-auto"},Bs={class:"mt-6 px-2"},Ms=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),Ts={class:"hidden md:flex md:shrink-0"},Os={class:"flex flex-col w-64"},Ps={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},As={class:"flex items-center shrink-0 px-4"},Is=["src"],Ls={class:"mt-5 grow flex flex-col"},Rs={class:"flex-1 px-2 bg-white space-y-1"},Fs=["href","target"],js={key:0,class:"mt-atuo"},Hs={class:"mt-6 px-2"},Us={class:"flex flex-col w-0 flex-1 overflow-hidden"},Ys={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},zs=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),Ws={class:"flex-1 px-4 flex justify-between"},qs={class:"flex-1 flex"},Ks={class:"flex items-center text-2xl text-white"},Gs={class:"ml-4 flex items-center md:ml-6"},Js=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Xs=["href"],Qs={class:"flex-1 relative overflow-y-auto focus:outline-none"},Zs={class:"mx-auto"},Fa=t.defineComponent({props:{activeUrl:{default:""},iconUrl:null,navigation:null,userNavigation:null},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",Cs,[t.createVNode(t.unref(ot),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(_t),{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($e),{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(Vt),{class:"fixed inset-0 bg-gray-600 bg-opacity-75"})]),_:1}),t.createVNode(t.unref($e),{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",vs,[t.createVNode(t.unref($e),{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",Es,[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)},[ks,t.createVNode(t.unref(Ft),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",Ds,[t.createElementVNode("img",{class:"w-auto h-12",src:n.iconUrl,alt:"Logo"},null,8,Ns)]),t.createElementVNode("div",$s,[t.createElementVNode("nav",Ss,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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,_s))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Vs,[t.createElementVNode("div",Bs,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),Ms]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",Ts,[t.createElementVNode("div",Os,[t.createElementVNode("div",Ps,[t.createElementVNode("div",As,[t.createElementVNode("img",{class:"w-auto h-12",src:n.iconUrl,alt:"Logo"},null,8,Is)]),t.createElementVNode("div",Ls,[t.createElementVNode("nav",Rs,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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,Fs))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",js,[t.createElementVNode("div",Hs,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",Us,[t.createElementVNode("div",Ys,[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)},[zs,t.createVNode(t.unref(ns),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",Ws,[t.createElementVNode("div",qs,[t.createElementVNode("h1",Ks,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Gs,[t.createVNode(t.unref(Sn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(_n),{class:"max-w-xs flex items-center text-sm text-white rounded-full hover:bg-blue-500 hover:text-gray-200 focus:outline-none focus:ring focus:text-white"},{default:t.withCtx(()=>[Js,t.createVNode(t.unref(al),{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(Vn),{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(n.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(Bn),{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,Xs)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",Qs,[t.createElementVNode("div",Zs,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(Rt),t.createVNode(jt)],64))}});function ed(n,r=100){let e;return(...o)=>{e||(n.apply(o),e=!0,setTimeout(()=>e=!1,r))}}const dt=t.defineComponent({props:{as:{default:"div"},position:{default:"auto"}},setup(n){const r=n,e=()=>({vw:document.documentElement.clientWidth,vh:document.documentElement.clientHeight}),o=t.ref(),a=t.ref(),i=t.ref(e()),l=t.computed(()=>{const f={wrapper:"",content:""};return r.position==="none"||(f.wrapper="h-0 flex w-screen",f.content="absolute",r.position!=="auto"&&(f.wrapper+=` ${s.value.wrapper}`,f.content+=` ${s.value.content}`)),f}),s=t.computed(()=>{let f="",p="";switch(r.position){case"top-left":f="top-0 right-0 -translate-y-full justify-end",p="bottom-full";break;case"top-center":f="top-0 -translate-y-full -translate-x-full left-1/2 justify-end",p="bottom-full translate-x-1/2";break;case"top-right":f="top-0 -translate-y-full left-0 -translate-x-full justify-end",p="bottom-full translate-x-full";break;case"bottom-left":f="top-full right-0 justify-end",p="top-full";break;case"bottom-center":f="top-full -translate-x-full left-1/2 justify-end",p="top-full translate-x-1/2";break;case"bottom-right":f="top-full left-0 -translate-x-full justify-end",p="top-full translate-x-full";break;case"left":f="top-1/2 left-0 -translate-y-1/2 -translate-x-full justify-end",p="-translate-y-1/2";break;case"right":f="top-1/2 -translate-y-1/2 right-0 justify-end",p="translate-x-full -translate-y-1/2";break}return{wrapper:f,content:p}}),c=t.computed(()=>{var V,G;if(!((V=a==null?void 0:a.value)!=null&&V.el)||!((G=o==null?void 0:o.value)!=null&&G.el))return{};const{vw:f,vh:p}=i.value,b=10,m=o.value.el.getBoundingClientRect(),g=a.value.el.firstChild.getBoundingClientRect(),y=p-m.bottom,x=m.top>y,C=f-m.left,E=m.left>C;let $=0;return E?(g.width>m.right?$=m.right-g.width+(g.width-m.right):$=m.right-g.width,f>g.width+b&&($=$+b)):(g.width>C?$=m.left-(g.width-C):$=m.left,f>g.width+b&&($=$-b)),{wrapper:{top:x?"auto":"100%",bottom:x?"100%":"auto",transform:`translate(${m.left*-1}px, 0)`,width:`${f}px`},content:{top:x?"auto":"100%",bottom:x?"100%":"auto",transform:`translate(${$}px, 0)`}}});if(r.position==="auto"){const f=ed(()=>{i.value=e()});t.onMounted(()=>{window.addEventListener("resize",f),window.addEventListener("scroll",f)}),t.onUnmounted(()=>{window.removeEventListener("resize",f),window.removeEventListener("scroll",f)})}return(f,p)=>(t.openBlock(),t.createBlock(t.unref(ba),{class:"relative flex",as:n.as},{default:t.withCtx(({open:b,close:m})=>[t.createVNode(t.unref(zi),{ref_key:"trigger",ref:o},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"button",{open:b,close:m})]),_:2},1536),t.createVNode(t.Transition,{"enter-active-class":"transition-opacity transition-faster ease-out-quad","leave-active-class":"transition-opacity transition-fastest ease-in-quad","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:t.withCtx(()=>[t.createVNode(t.unref(Wi),{ref_key:"wrapper",ref:a,class:t.normalizeClass(["absolute z-10",t.unref(l).wrapper]),style:t.normalizeStyle(n.position==="auto"?t.unref(c).wrapper:{})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(t.unref(l).content),style:t.normalizeStyle(n.position==="auto"?t.unref(c).content:{})},[t.renderSlot(f.$slots,"default",{open:b,close:m})],6)]),_:2},1032,["class","style"])]),_:2},1024)]),_:3},8,["as"]))}}),td=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},nd={},rd={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function ad(n,r){return t.openBlock(),t.createElementBlock("div",rd,[t.renderSlot(n.$slots,"default")])}const ja=td(nd,[["render",ad]]),od={class:"absolute inset-0 overflow-hidden"},id={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},ld={class:"w-screen max-w-md"},sd={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},dd={class:"py-6 px-4 bg-blue-700 sm:px-6"},cd={class:"flex items-center justify-between"},ud={class:"ml-3 h-7 flex items-center"},fd=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),pd={class:"mt-1"},md=["textContent"],hd={class:"relative flex-1 py-6 px-4 sm:px-6"},Ha=t.defineComponent({props:{header:null,description:null,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(ot),{as:"template",show:n.modelValue},{default:t.withCtx(()=>[t.createVNode(t.unref(_t),{as:"div",static:"",class:"fixed inset-0 z-20 overflow-hidden bg-black bg-opacity-50",open:n.modelValue,onClose:l[1]||(l[1]=s=>a())},{default:t.withCtx(()=>[t.createElementVNode("div",od,[t.createVNode(t.unref(Vt),{class:"absolute inset-0"}),t.createElementVNode("div",id,[t.createVNode(t.unref($e),{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",ld,[t.createElementVNode("div",sd,[t.createElementVNode("div",dd,[t.createElementVNode("div",cd,[t.createVNode(t.unref($n),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.header),1)]),_:1}),t.createElementVNode("div",ud,[t.createElementVNode("button",{class:"bg-blue-700 rounded-md text-blue-200 hover:text-white focus:outline-none focus:ring-2 focus:ring-white",onClick:l[0]||(l[0]=s=>a())},[fd,t.createVNode(t.unref(Ft),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",pd,[t.createElementVNode("p",{class:"text-blue-300",textContent:t.toDisplayString(n.description)},null,8,md)])]),t.createElementVNode("div",hd,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),gd={class:"leading-none w-4 h-4"},bd=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),yd={class:"w-full max-w-xs bg-white rounded-md px-3 py-2 border border-gray-100 drop-shadow-md text-xs text-gray-900 leading-snug font-medium"},Ua=t.defineComponent({props:{as:{default:"span"},position:{default:"auto"}},setup(n){return(r,e)=>(t.openBlock(),t.createBlock(dt,{position:n.position,as:n.as},{button:t.withCtx(()=>[t.createElementVNode("div",gd,[t.createVNode(t.unref(ts)),bd])]),default:t.withCtx(()=>[t.createElementVNode("div",yd,[t.renderSlot(r.$slots,"default")])]),_: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"},vd={class:"flex"},Ed={class:"shrink-0 flex items-center"},kd=["src"],Dd={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},Nd=["href","aria-current"],$d={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"},Bd=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Md={class:"pt-2 pb-3 space-y-1"},Td=["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"},Id={class:"ml-3"},Ld=["textContent"],Rd=["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"},Ya=t.defineComponent({props:{activeUrl:{default:""},currentUser:null,iconUrl:null,navigation:null,userNavigation:null},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(Ii),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",xd,[t.createElementVNode("div",Cd,[t.createElementVNode("div",vd,[t.createElementVNode("div",Ed,[t.createElementVNode("img",{class:"block h-8 w-auto",src:n.iconUrl,alt:"XY Trees"},null,8,kd)]),t.createElementVNode("div",Dd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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,Nd))),128))])]),t.createElementVNode("div",$d,[t.createVNode(t.unref(Sn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(_n),{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(La),{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(Vn),{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(n.userNavigation,l=>(t.openBlock(),t.createBlock(t.unref(Bn),{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(Li),{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(()=>[Bd,i?(t.openBlock(),t.createBlock(t.unref(Ft),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(rs),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Ri),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",Md,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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,Td))),128))]),t.createElementVNode("div",Od,[t.createElementVNode("div",Pd,[t.createElementVNode("div",Ad,[t.createVNode(t.unref(La),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",Id,[n.currentUser.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:"text-base font-medium text-gray-800",textContent:t.toDisplayString(n.currentUser.name)},null,8,Ld)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(n.currentUser.email)},null,8,Rd)])]),t.createElementVNode("div",Fd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.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(Rt),t.createVNode(jt)],64))}}),Yd={class:"flex flex-col"},zd={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},Wd={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"},Kd={class:"min-w-full divide-y divide-gray-200"},Gd=["textContent"],Jd={class:"bg-white divide-y divide-gray-200"},Xd=["textContent"],Qd={key:0},Zd=["colspan"],za=t.defineComponent({props:{tableData:null},setup(n){const r=(e,o)=>{if(o.key)return e[o.key];if(o.presenter){const a=t.getCurrentInstance();return o.presenter(e,a==null?void 0:a.proxy)}return""};return(e,o)=>(t.openBlock(),t.createElementBlock("div",Yd,[t.createElementVNode("div",zd,[t.createElementVNode("div",Wd,[t.createElementVNode("div",qd,[t.createElementVNode("table",Kd,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.columns,(a,i)=>(t.openBlock(),t.createElementBlock("th",{key:i,class:"px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase bg-gray-50 leading-4",textContent:t.toDisplayString(a.display)},null,8,Gd))),128))])]),t.createElementVNode("tbody",Jd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.items,(a,i)=>(t.openBlock(),t.createElementBlock("tr",{key:a.id?a.id:i},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.columns,(l,s)=>(t.openBlock(),t.createElementBlock("td",{key:i+"-"+s,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"},[l.component?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.component),{key:0,"props-data":a,"current-user":n.tableData.currentUser,attribute:l.key},null,8,["props-data","current-user","attribute"])):(t.openBlock(),t.createElementBlock("span",{key:1,textContent:t.toDisplayString(r(a,l))},null,8,Xd))]))),128))]))),128)),n.tableData.items.length==0?(t.openBlock(),t.createElementBlock("tr",Qd,[t.createElementVNode("td",{colspan:n.tableData.columns.length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Zd)])):t.createCommentVNode("",!0)])])])])])]))}}),ec={class:"flex items-center justify-center space-x-8"},tc={class:"font-medium"},nc={class:"flex items-center space-x-5"},rc={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},ac={key:1,class:"relative flex items-center justify-center"},oc=[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)],ic={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},lc={key:0,class:"flex shrink-0"},sc={key:0,class:"inline-flex rounded-md shadow-sm"},dc=["textContent"],cc={class:"ml-3 inline-flex rounded-md shadow-sm"},uc=["textContent"],Wa=t.defineComponent({props:{hideActions:{type:Boolean,default:!1},hidePrevious:{type:Boolean,default:!1},nextText:{default:"Next"},previousText:{default:"Back"},step:null,total:null},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",ec,[t.createElementVNode("p",tc,"Step "+t.toDisplayString(n.step)+" of "+t.toDisplayString(n.total),1),t.createElementVNode("ul",nc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.total,l=>(t.openBlock(),t.createElementBlock("li",{key:l},[n.step>l?(t.openBlock(),t.createElementBlock("span",rc)):n.step===l?(t.openBlock(),t.createElementBlock("div",ac,oc)):(t.openBlock(),t.createElementBlock("span",ic))]))),128))])]),n.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",lc,[n.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",sc,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(n.previousText)},null,8,dc)])),t.createElementVNode("span",cc,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(n.nextText)},null,8,uc)])]))]))}}),fc={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},pc={key:0,class:"w-full max-w-lg lg:max-w-xs"},mc=t.createElementVNode("label",{for:"search",class:"sr-only"},"Search",-1),hc={class:"relative"},gc=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),bc={key:1,class:"w-full max-w-lg lg:max-w-xs"},yc={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},wc={class:"min-w-full"},xc={key:0},Cc=["onClick"],vc={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},Ec=[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)],kc={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Dc=[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)],Nc={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},$c=[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)],Sc={class:"bg-white"},_c=["onClick"],Vc=["textContent"],Bc={key:0},Mc=["colspan"],qa=t.defineComponent({props:{clickable:{type:Boolean,default:!1},loader:{type:Boolean,default:!0},tableData:null},emits:["handleClick"],setup(n){const r=n,e=t.ref(r.tableData.defaultSort?r.tableData.defaultSort:""),o=t.ref(r.tableData.defaultSortDirection?r.tableData.defaultSortDirection:"desc"),a=t.ref({minDate:0,maxDate:0}),i=t.ref([]),l=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),s=t.ref(""),c=(y,x)=>{if(x.key)return x.key.split(".").reduce((C,E)=>C[E],y);if(x.presenter){const C=t.getCurrentInstance();return x.presenter(y,C==null?void 0:C.proxy)}return""},f=y=>{l.value.page=1,a.value=y,b()},p=y=>{e.value==y?o.value=o.value==="desc"?"asc":"desc":(e.value=y,o.value="desc"),b()},b=()=>{const y={minDate:a.value.minDate,maxDate:a.value.maxDate,page:l.value.page,perPage:l.value.perPage,sort:e.value,sortDir:o.value,q:s.value};vn.get(r.tableData.url,{skipLoader:!r.loader},y).then(x=>{l.value={page:x.data.page,perPage:x.data.perPage,totalItems:x.data.totalItems,totalPages:x.data.totalPages},i.value=x.data.items},()=>{Wn.genericError()})},m=()=>{l.value.page=1,b()},g=t.computed(()=>!!i.value.length);return t.watch(()=>r.tableData.refreshTrigger,()=>{b()}),t.watch(()=>r.tableData.reloadTrigger,()=>{m()}),b(),(y,x)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",fc,[n.tableData.search?(t.openBlock(),t.createElementBlock("div",pc,[mc,t.createElementVNode("div",hc,[gc,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":x[0]||(x[0]=C=>s.value=C),class:"pl-10",type:"search",placeholder:"Search",onChange:x[1]||(x[1]=C=>m())},null,544),[[t.vModelText,s.value,void 0,{trim:!0}]])])])):t.createCommentVNode("",!0),n.tableData.dateSearch?(t.openBlock(),t.createElementBlock("div",bc,[t.createVNode(It,{modelValue:a.value,"onUpdate:modelValue":[x[2]||(x[2]=C=>a.value=C),f]},null,8,["modelValue"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",yc,[t.createElementVNode("table",wc,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.columns,(C,E)=>(t.openBlock(),t.createElementBlock("th",{key:E,class:"px-6 py-3 text-xs font-medium tracking-wider text-left text-gray-900 uppercase border-b border-gray-200 bg-gray-50 leading-4"},[C.display.length?(t.openBlock(),t.createElementBlock("span",xc,t.toDisplayString(C.display),1)):t.createCommentVNode("",!0),C.sort?(t.openBlock(),t.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:t.withModifiers($=>p(C.sort),["prevent"])},[e.value!==C.sort?(t.openBlock(),t.createElementBlock("svg",vc,Ec)):o.value=="desc"?(t.openBlock(),t.createElementBlock("svg",kc,Dc)):(t.openBlock(),t.createElementBlock("svg",Nc,$c))],8,Cc)):t.createCommentVNode("",!0)]))),128))])]),t.createElementVNode("tbody",Sc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(C,E)=>(t.openBlock(),t.createElementBlock("tr",{key:C.id?C.id:E,class:t.normalizeClass({"cursor-pointer":n.clickable}),onClick:$=>y.$emit("handleClick",C)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tableData.columns,($,V)=>(t.openBlock(),t.createElementBlock("td",{key:E+"-"+V,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap border-b border-gray-200 leading-5",$.class])},[$.component?(t.openBlock(),t.createBlock(t.resolveDynamicComponent($.component),{key:0,"props-data":C,"current-user":n.tableData.currentUser,attribute:$.key,items:$.items},null,8,["props-data","current-user","attribute","items"])):(t.openBlock(),t.createElementBlock("div",{key:1,textContent:t.toDisplayString(c(C,$))},null,8,Vc))],2))),128))],10,_c))),128)),t.unref(g)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Bc,[t.createElementVNode("td",{colspan:n.tableData.columns.length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap border-b border-gray-200 leading-5"}," No items were found! ",8,Mc)]))])])]),t.unref(g)?(t.openBlock(),t.createBlock(Lt,{key:0,modelValue:l.value,"onUpdate:modelValue":[x[3]||(x[3]=C=>l.value=C),x[4]||(x[4]=C=>b())]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Tc=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),Oc={class:"hidden sm:block"},Pc=["onClick","textContent"],Ka=t.defineComponent({props:{modelValue:null,pillDesign:{type:Boolean,default:!1},tabs:null},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":n.pillDesign}])},[Tc,t.createVNode(c,{name:"tabs","model-value":n.modelValue,options:n.tabs,"onUpdate:modelValue":s[0]||(s[0]=f=>o(f))},null,8,["model-value","options"])],2),t.createElementVNode("div",Oc,[t.createElementVNode("div",{class:t.normalizeClass({"border-b border-gray-200":t.unref(i)})},[t.createElementVNode("nav",{class:t.normalizeClass(["flex",[n.pillDesign?"ml-8":"-mb-px"]])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.tabs,(f,p)=>(t.openBlock(),t.createElementBlock("a",{key:p,href:"#",class:t.normalizeClass(a(f.value,p>0)),onClick:t.withModifiers(b=>o(f.value),["prevent"]),textContent:t.toDisplayString(f.label)},null,10,Pc))),128))],2)],2)])])}}}),Ac=t.createElementVNode("span",{class:"sr-only"},"Use",-1),Ga=t.defineComponent({props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){return(e,o)=>(t.openBlock(),t.createBlock(t.unref(Xi),{class:t.normalizeClass([n.modelValue?"bg-blue-600":"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-blue-500"]),"model-value":n.modelValue,"onUpdate:modelValue":o[0]||(o[0]=a=>r("update:modelValue",a))},{default:t.withCtx(()=>[Ac,t.createElementVNode("span",{"aria-hidden":"true",class:t.normalizeClass([n.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"]))}}),Ic={class:"relative flex items-start"},Lc={class:"flex items-center h-5"},Rc=["id","aria-labelledby","aria-describedby","checked"],Fc={class:"ml-3"},Ja=t.defineComponent({props:{label:{default:""},help:{default:""},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||Ee.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock("div",Ic,[t.createElementVNode("div",Lc,[t.createElementVNode("input",t.mergeProps({id:t.unref(o),"aria-labelledby":n.label?`${t.unref(o)}-label`:void 0,"aria-describedby":n.help?`${t.unref(o)}-help`:void 0,checked:n.modelValue,class:"focus:ring-blue-500 h-4 w-4 text-blue-500 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,Rc)]),t.createElementVNode("div",Fc,[t.createVNode(ge,{id:`${t.unref(o)}-label`,class:"mt-auto",disabled:a.$attrs.hasOwnProperty("disabled")&&a.$attrs.disabled!==!1,for:t.unref(o),label:n.label},null,8,["id","disabled","for","label"]),t.createVNode(pe,{id:`${t.unref(o)}-help`,class:"-mt-1",text:n.help},null,8,["id","text"])])]))}});function jc(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 ct=t.defineComponent({props:{tag:{default:"legend"}},setup(n){return(r,e)=>t.unref(jc)(r.$slots.default)?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.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)}}),Hc=["aria-labelledby","aria-describedby"],Uc={key:0,class:"space-y-0.5"},Yc={key:0},zc={class:"flex"},Wc={class:"flex items-center h-5"},qc=["id","aria-labelledby","aria-describedby","checked","disabled"],Kc={class:"ml-3"},Xa=t.defineComponent({props:{options:null,help:{default:""},legend:{default:""},modelValue:null,columns:{default:void 0}},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=t.useSlots(),i=o.id||Ee.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0),s=(c,f)=>{let p=[...e.modelValue];c?p.push(f):p.splice(p.indexOf(f),1),r("update:modelValue",p)};return(c,f)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":t.unref(l)?`${t.unref(i)}-legend`:void 0,"aria-describedby":n.help?`${t.unref(i)}-help`:void 0},[t.unref(l)||n.help?(t.openBlock(),t.createElementBlock("div",Uc,[t.createVNode(ct,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createElementBlock("div",Yc,t.toDisplayString(n.legend),1)):t.createCommentVNode("",!0),c.$slots.legend?t.renderSlot(c.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(pe,{id:`${t.unref(i)}-help`,tag:"p",text:n.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",zc,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-4",{"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0":n.columns!==void 0,"sm:grid-cols-2":n.columns===2,"sm:grid-cols-3":n.columns===3,"sm:grid-cols-4":n.columns===4}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(p,b)=>(t.openBlock(),t.createElementBlock("div",{key:p.value,class:"flex items-start"},[t.createElementVNode("div",Wc,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${b}`,"aria-labelledby":`${t.unref(i)}-${b}-label`,"aria-describedby":p!=null&&p.help&&p.help?`${t.unref(i)}-${b}-help`:void 0,checked:n.modelValue.includes(p.value),disabled:p.disabled===!0?!0:void 0,class:"focus:ring-blue-500 h-4 w-4 text-blue-500 border-gray-600 rounded disabled:opacity-50 disabled:cursor-not-allowed",type:"checkbox"},{onChange:m=>{s(m.target.checked,p.value)},...c.$attrs}),null,16,qc)]),t.createElementVNode("div",Kc,[t.createVNode(ge,{id:`${t.unref(i)}-${b}-label`,class:"mt-auto",disabled:c.$attrs.hasOwnProperty("disabled")&&c.$attrs.disabled!==!1||p.disabled===!0,for:`${t.unref(i)}-${b}`,label:p.label},null,8,["id","disabled","for","label"]),t.createVNode(pe,{id:`${t.unref(i)}-${b}-help`,class:"-mt-1",text:p.help},null,8,["id","text"])])]))),128))],2)])],8,Hc))}}),Gc=["aria-labelledby","aria-describedby"],Jc={key:0,class:"space-y-0.5"},Xc={key:0},Qc={class:"flex"},Zc={class:"flex items-center h-5"},eu=["id","aria-describedby","aria-labelledby","checked","disabled","name","value"],tu={class:"ml-3"},Qa=t.defineComponent({props:{options:null,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||Ee.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0);return(s,c)=>(t.openBlock(),t.createElementBlock("fieldset",{class:"space-y-5","aria-labelledby":t.unref(l)?`${t.unref(i)}-legend`:void 0,"aria-describedby":n.help?`${t.unref(i)}-help`:void 0},[t.unref(l)||n.help?(t.openBlock(),t.createElementBlock("div",Jc,[t.createVNode(ct,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createElementBlock("div",Xc,t.toDisplayString(n.legend),1)):t.createCommentVNode("",!0),s.$slots.legend?t.renderSlot(s.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(pe,{id:`${t.unref(i)}-help`,tag:"p",text:n.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Qc,[t.createElementVNode("div",{class:t.normalizeClass(["grid gap-4",{"sm:grid sm:gap-y-4 sm:gap-x-5 sm:space-y-0":n.columns!==void 0,"sm:grid-cols-2":n.columns===2,"sm:grid-cols-3":n.columns===3,"sm:grid-cols-4":n.columns===4}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,(f,p)=>(t.openBlock(),t.createElementBlock("div",{key:f.value,class:"flex items-start"},[t.createElementVNode("div",Zc,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${p}`,"aria-describedby":f!=null&&f.help&&f.help?`${t.unref(i)}-${p}-help`:void 0,"aria-labelledby":`${t.unref(i)}-${p}-label`,checked:n.modelValue===f.value,class:"w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",disabled:f.disabled===!0?!0:void 0,name:t.unref(i),type:"radio",value:f.value},{onChange:()=>{r("update:modelValue",f.value)},...s.$attrs}),null,16,eu)]),t.createElementVNode("div",tu,[t.createVNode(ge,{id:`${t.unref(i)}-${p}-label`,class:"mt-auto",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1||f.disabled===!0,for:`${t.unref(i)}-${p}`,label:f.label},null,8,["id","disabled","for","label"]),t.createVNode(pe,{id:`${t.unref(i)}-${p}-help`,class:"-mt-1",text:f.help},null,8,["id","text"])])]))),128))],2)])],8,Gc))}}),nu=["id"],ru={class:"flex-1 flex pr-1"},au={class:"flex flex-col"},ou={key:1,class:"mt-auto mb-0"},iu=["checked","name","required","value"],Za=t.defineComponent({props:{columns:{default:void 0},help:{default:""},legend:{default:""},modelValue:{default:void 0},options:null},emits:["update:modelValue"],setup(n,{emit:r}){const e=n,o=t.useAttrs(),a=Ee.CreateIdAttribute(),i=t.ref(),l=t.ref(),s=t.computed(()=>e.modelValue===void 0?i.value:e.modelValue),c=p=>{i.value=p,l.value=!1,r("update:modelValue",p)},f=t.computed(()=>typeof o.name=="string"&&o.name!==""?o.name:a);return(p,b)=>(t.openBlock(),t.createBlock(t.unref(Ki),{"model-value":t.unref(s),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(()=>[n.legend?(t.openBlock(),t.createBlock(t.unref(Ea),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(ct,{tag:"div"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.legend),1)]),_:1})]),_:1})):t.createCommentVNode("",!0),n.help?(t.openBlock(),t.createBlock(t.unref(Mn),{key:1},{default:t.withCtx(()=>[t.createVNode(pe,{text:n.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,nu)):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":n.columns===2,"sm:grid-cols-3":n.columns===3}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,m=>(t.openBlock(),t.createBlock(t.unref(Gi),{key:m.value,as:"template",disabled:m!=null&&m.disabled?m.disabled:!1,value:m.value},{default:t.withCtx(({active:g,checked:y,disabled:x})=>[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-blue-500 ring-2 ring-blue-500":"",x?"cursor-not-allowed opacity-75":""]])},[t.createElementVNode("div",ru,[t.createElementVNode("div",au,[t.createVNode(t.unref(Ea),{as:"div"},{default:t.withCtx(()=>[t.createVNode(ge,{tag:"div",class:"mt-auto mb-auto",label:m.label},null,8,["label"])]),_:2},1024),m.help?(t.openBlock(),t.createBlock(t.unref(Mn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(pe,{tag:"div",class:"mt-auto",text:m.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),m.sublabel||p.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",ou,[t.createVNode(t.unref(Mn),{as:"div",class:"font-semibold leading-snug mt-4 text-gray-900 text-sm"},{default:t.withCtx(()=>[t.renderSlot(p.$slots,"sublabel",{active:g,checked:y,disabled:x,option:m},()=>[t.createTextVNode(t.toDisplayString(m.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(rl),{class:t.normalizeClass([y?"":"invisible","h-5 w-5 text-blue-600"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([g?"border":"border-2",y?"border-blue-500":"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:t.unref(f),required:t.unref(o).required!==void 0&&t.unref(o).required!==!1,tabindex:"-1",type:"radio",value:m.value,onInvalid:b[0]||(b[0]=C=>l.value=!0)},null,40,iu)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["model-value","disabled","aria-invalid","aria-errormessage"]))}}),lu=["id","aria-labelledby","aria-describedby","value"],eo=t.defineComponent({props:{help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:model-value"],setup(n,{emit:r}){const o=t.useAttrs().id||Ee.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(ge,{id:`${t.unref(o)}-label`,class:"block",for:t.unref(o),label:n.label},null,8,["id","for","label"]),t.createElementVNode("textarea",t.mergeProps({id:t.unref(o),"aria-labelledby":n.label?`${t.unref(o)}-label`:void 0,"aria-describedby":n.help?`${t.unref(o)}-help`:void 0,class:["mt-1","sm:text-sm","block","shadow-sm","focus:ring-blue-500","focus:border-blue-500","border-gray-600","rounded-md","w-full","disabled:opacity-70","disabled:cursor-not-allowed"],value:n.modelValue},a.$attrs,{onInput:i[0]||(i[0]=l=>r("update:model-value",l.target.value))}),null,16,lu),t.createVNode(pe,{id:`${t.unref(o)}-help`,text:n.help},null,8,["id","text"])],64))}}),su=["aria-labelledby","aria-describedby"],du={key:0,class:"space-y-0.5"},cu=["for"],uu=["id","name","checked"],fu=["for"],pu=["id","name","checked"],to=t.defineComponent({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||Ee.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":n.legend?`${t.unref(a)}-legend`:void 0,"aria-describedby":n.help?`${t.unref(a)}-help`:void 0},[n.legend||n.help?(t.openBlock(),t.createElementBlock("div",du,[t.createVNode(ge,{class:"block my-auto",label:n.legend,tag:"legend"},null,8,["label"]),t.createVNode(pe,{id:`${t.unref(a)}-help`,tag:"p",text:n.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:`${t.unref(i)?n.name:t.unref(a)}-true`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)?n.name:t.unref(a)}-true`,type:"radio",class:"w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",name:t.unref(i)?n.name:t.unref(a),value:!0,checked:n.modelValue===!0},{...s.$attrs,onChange:l}),null,16,uu),t.createVNode(ge,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"Yes",tag:"span"},null,8,["disabled"])],10,cu),t.createElementVNode("label",{class:t.normalizeClass(["inline-flex items-center ml-6",{"cursor-not-allowed":s.$attrs.disabled}]),for:`${t.unref(i)?n.name:t.unref(a)}-false`},[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)?n.name:t.unref(a)}-false`,type:"radio",class:"w-4 h-4 border-gray-600 focus:ring-blue-500 text-xy-blue disabled:opacity-50 disabled:cursor-not-allowed",name:t.unref(i)?n.name:t.unref(a),value:!1,checked:n.modelValue===!1},{...s.$attrs,onChange:l}),null,16,pu),t.createVNode(ge,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"No",tag:"span"},null,8,["disabled"])],10,fu)])],8,su))}}),mu=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:Sa,BaseInput:Hn,Cards:_a,Checkbox:Ja,ContentModal:Va,DateFilter:Yn,DateRangePicker:It,DetailList:Aa,DownloadCell:Ia,FieldsetLegend:ct,Flash:Rt,InputHelp:pe,InputLabel:ge,Modal:Ra,MultiCheckboxes:Xa,Paginator:Lt,Popover:dt,PopoverContent:ja,PopoverPosition:dt,Radio:Qa,RadioCards:Za,Select:Un,SidebarLayout:Fa,Slideover:Ha,Spinner:jt,StackedLayout:Ya,StaticTable:za,Steps:Wa,Table:qa,Tabs:Ka,TextArea:eo,Toggle:Ga,Tooltip:Ua,XYSpinner:qn,YesOrNoRadio:to},Symbol.toStringTag,{value:"Module"})),hu=function(r){Object.entries(mu).forEach(([e,o])=>{r.component(e,o)})};N.ActionsDropdown=Sa,N.BaseAPI=vn,N.BaseInput=Hn,N.Cards=_a,N.Checkbox=Ja,N.ContentModal=Va,N.DateFilter=Yn,N.DateRangePicker=It,N.DetailList=Aa,N.DownloadCell=Ia,N.FieldsetLegend=ct,N.Flash=Rt,N.InputHelp=pe,N.InputLabel=ge,N.Modal=Ra,N.MultiCheckboxes=Xa,N.Paginator=Lt,N.Popover=dt,N.PopoverContent=ja,N.PopoverPosition=dt,N.Radio=Qa,N.RadioCards=Za,N.Select=Un,N.SidebarLayout=Fa,N.Slideover=Ha,N.Spinner=jt,N.StackedLayout=Ya,N.StaticTable=za,N.Steps=Wa,N.Table=qa,N.Tabs=Ka,N.TextArea=eo,N.Toggle=Ga,N.Tooltip=Ua,N.XYSpinner=qn,N.YesOrNoRadio=to,N.default=hu,N.isHttpCancel=Kr,N.isHttpError=qr,N.useAppFlasher=Wn,N.useAppFlashes=Le,N.useAppSpinner=Cn,N.useBaseAPI=st,N.useBaseAPIDelete=Tl,N.useBaseAPIGet=Ml,N.useBaseAPIPost=Ol,N.useBaseAPIPut=Pl,N.useFlashes=Pa,N.useSpinnerDisplay=Yr,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ const props = withDefaults(
|
|
|
19
19
|
}
|
|
20
20
|
)
|
|
21
21
|
|
|
22
|
-
const emit = defineEmits(["update:
|
|
22
|
+
const emit = defineEmits(["update:model-value"])
|
|
23
23
|
|
|
24
24
|
const uuid = (attrs.id as string) || Uniques.CreateIdAttribute()
|
|
25
25
|
|
|
@@ -79,7 +79,9 @@ const isTextType = computed((): boolean => {
|
|
|
79
79
|
:type="type"
|
|
80
80
|
:value="modelValue"
|
|
81
81
|
v-bind="$attrs"
|
|
82
|
-
@input="
|
|
82
|
+
@input="
|
|
83
|
+
emit('update:model-value', ($event.target as HTMLInputElement).value)
|
|
84
|
+
"
|
|
83
85
|
/>
|
|
84
86
|
<InputHelp :id="`${uuid}-help`" :text="help"></InputHelp>
|
|
85
87
|
</template>
|
|
@@ -16,7 +16,7 @@ withDefaults(
|
|
|
16
16
|
}
|
|
17
17
|
)
|
|
18
18
|
const attrs = useAttrs()
|
|
19
|
-
const emit = defineEmits(["update:
|
|
19
|
+
const emit = defineEmits(["update:model-value"])
|
|
20
20
|
const uuid = (attrs.id as string) || Uniques.CreateIdAttribute()
|
|
21
21
|
</script>
|
|
22
22
|
|
|
@@ -46,7 +46,9 @@ const uuid = (attrs.id as string) || Uniques.CreateIdAttribute()
|
|
|
46
46
|
]"
|
|
47
47
|
:value="modelValue"
|
|
48
48
|
v-bind="$attrs"
|
|
49
|
-
@input="
|
|
49
|
+
@input="
|
|
50
|
+
emit('update:model-value', ($event.target as HTMLInputElement).value)
|
|
51
|
+
"
|
|
50
52
|
/>
|
|
51
53
|
<InputHelp :id="`${uuid}-help`" :text="help"></InputHelp>
|
|
52
54
|
</template>
|
|
@@ -18,20 +18,20 @@ import { ref } from "vue"
|
|
|
18
18
|
|
|
19
19
|
const props = withDefaults(
|
|
20
20
|
defineProps<{
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
activeUrl?: string
|
|
22
|
+
iconUrl: string
|
|
23
23
|
navigation: NavTypes.Item[]
|
|
24
24
|
userNavigation: NavTypes.Item[]
|
|
25
25
|
}>(),
|
|
26
26
|
{
|
|
27
|
-
|
|
27
|
+
activeUrl: "",
|
|
28
28
|
}
|
|
29
29
|
)
|
|
30
30
|
|
|
31
31
|
const sidebarOpen = ref<boolean>(false)
|
|
32
32
|
|
|
33
33
|
const isActive = (url: string): boolean => {
|
|
34
|
-
return props.
|
|
34
|
+
return props.activeUrl === url
|
|
35
35
|
}
|
|
36
36
|
</script>
|
|
37
37
|
<template>
|
|
@@ -87,7 +87,7 @@ const isActive = (url: string): boolean => {
|
|
|
87
87
|
</div>
|
|
88
88
|
</TransitionChild>
|
|
89
89
|
<div class="shrink-0 flex justify-center px-4">
|
|
90
|
-
<img class="w-auto h-12" :src="
|
|
90
|
+
<img class="w-auto h-12" :src="iconUrl" alt="Logo" />
|
|
91
91
|
</div>
|
|
92
92
|
<div class="mt-5 flex flex-col flex-1 h-0 overflow-y-auto">
|
|
93
93
|
<nav class="flex-1 px-2 space-y-1">
|
|
@@ -138,7 +138,7 @@ const isActive = (url: string): boolean => {
|
|
|
138
138
|
class="flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"
|
|
139
139
|
>
|
|
140
140
|
<div class="flex items-center shrink-0 px-4">
|
|
141
|
-
<img class="w-auto h-12" :src="
|
|
141
|
+
<img class="w-auto h-12" :src="iconUrl" alt="Logo" />
|
|
142
142
|
</div>
|
|
143
143
|
<div class="mt-5 grow flex flex-col">
|
|
144
144
|
<nav class="flex-1 px-2 bg-white space-y-1">
|
|
@@ -16,18 +16,18 @@ import User from "@/composables/user"
|
|
|
16
16
|
|
|
17
17
|
const props = withDefaults(
|
|
18
18
|
defineProps<{
|
|
19
|
-
|
|
19
|
+
activeUrl?: string
|
|
20
20
|
currentUser: User
|
|
21
|
-
|
|
21
|
+
iconUrl: string
|
|
22
22
|
navigation: NavTypes.Item[]
|
|
23
23
|
userNavigation: NavTypes.Item[]
|
|
24
24
|
}>(),
|
|
25
25
|
{
|
|
26
|
-
|
|
26
|
+
activeUrl: "",
|
|
27
27
|
}
|
|
28
28
|
)
|
|
29
29
|
const isActive = (url: string): boolean => {
|
|
30
|
-
return props.
|
|
30
|
+
return props.activeUrl === url
|
|
31
31
|
}
|
|
32
32
|
</script>
|
|
33
33
|
<template>
|
|
@@ -37,7 +37,7 @@ const isActive = (url: string): boolean => {
|
|
|
37
37
|
<div class="flex justify-between h-16">
|
|
38
38
|
<div class="flex">
|
|
39
39
|
<div class="shrink-0 flex items-center">
|
|
40
|
-
<img class="block h-8 w-auto" :src="
|
|
40
|
+
<img class="block h-8 w-auto" :src="iconUrl" alt="XY Trees" />
|
|
41
41
|
</div>
|
|
42
42
|
<div class="hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8">
|
|
43
43
|
<a
|
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
7
7
|
help: string;
|
|
8
8
|
label: string;
|
|
9
9
|
modelValue: string;
|
|
10
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:
|
|
10
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
11
11
|
label?: unknown;
|
|
12
12
|
type?: unknown;
|
|
13
13
|
help?: unknown;
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
18
18
|
help: string;
|
|
19
19
|
modelValue: string | number;
|
|
20
20
|
} & {}> & {
|
|
21
|
-
"onUpdate:
|
|
21
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
label: string;
|
|
24
24
|
help: string;
|
|
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
6
6
|
help: string;
|
|
7
7
|
label: string;
|
|
8
8
|
modelValue: string;
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
10
10
|
label?: unknown;
|
|
11
11
|
help?: unknown;
|
|
12
12
|
modelValue?: unknown;
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
15
|
help: string;
|
|
16
16
|
modelValue: string | number;
|
|
17
17
|
} & {}> & {
|
|
18
|
-
"onUpdate:
|
|
18
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
label: string;
|
|
21
21
|
help: string;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as NavTypes from "../../composables/nav";
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
activeUrl?: string | undefined;
|
|
4
|
+
iconUrl: string;
|
|
5
5
|
navigation: NavTypes.Item[];
|
|
6
6
|
userNavigation: NavTypes.Item[];
|
|
7
7
|
}>, {
|
|
8
|
-
|
|
8
|
+
activeUrl: string;
|
|
9
9
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
activeUrl?: unknown;
|
|
11
|
+
iconUrl?: unknown;
|
|
12
12
|
navigation?: unknown;
|
|
13
13
|
userNavigation?: unknown;
|
|
14
14
|
} & {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
activeUrl: string;
|
|
16
|
+
iconUrl: string;
|
|
17
17
|
navigation: NavTypes.Item[];
|
|
18
18
|
userNavigation: NavTypes.Item[];
|
|
19
19
|
} & {}>, {
|
|
20
|
-
|
|
20
|
+
activeUrl: string;
|
|
21
21
|
}>, {
|
|
22
22
|
'sidebar-bottom': (_: {}) => any;
|
|
23
23
|
header: (_: {}) => any;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import * as NavTypes from "../../composables/nav";
|
|
2
2
|
import User from "../../composables/user";
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
|
|
4
|
+
activeUrl?: string | undefined;
|
|
5
5
|
currentUser: User;
|
|
6
|
-
|
|
6
|
+
iconUrl: string;
|
|
7
7
|
navigation: NavTypes.Item[];
|
|
8
8
|
userNavigation: NavTypes.Item[];
|
|
9
9
|
}>, {
|
|
10
|
-
|
|
10
|
+
activeUrl: string;
|
|
11
11
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
activeUrl?: unknown;
|
|
13
|
+
iconUrl?: unknown;
|
|
14
14
|
navigation?: unknown;
|
|
15
15
|
userNavigation?: unknown;
|
|
16
16
|
currentUser?: unknown;
|
|
17
17
|
} & {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
activeUrl: string;
|
|
19
|
+
iconUrl: string;
|
|
20
20
|
navigation: NavTypes.Item[];
|
|
21
21
|
userNavigation: NavTypes.Item[];
|
|
22
22
|
currentUser: User;
|
|
23
23
|
} & {}>, {
|
|
24
|
-
|
|
24
|
+
activeUrl: string;
|
|
25
25
|
}>, {
|
|
26
26
|
header: (_: {}) => any;
|
|
27
27
|
default: (_: {}) => any;
|
|
@@ -26,8 +26,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
26
|
destructive: boolean;
|
|
27
27
|
submitText: string;
|
|
28
28
|
} & {}> & {
|
|
29
|
-
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
30
29
|
onSubmit?: (() => any) | undefined;
|
|
30
|
+
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
disabled: boolean;
|
|
33
33
|
title: string;
|