@xy-planning-network/trees 0.6.6-rc-8 → 0.6.7
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 +4 -4
- package/dist/trees.umd.js +2 -2
- package/package.json +1 -1
- package/src/lib-components/forms/BaseInput.vue +2 -2
- package/src/lib-components/forms/TextArea.vue +2 -2
- 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/overlays/Modal.vue.d.ts +1 -1
- package/types/lib-components/lists/StaticTable.vue.d.ts +0 -21
- package/types/lib-components/lists/StaticTableActionSlot.vue.d.ts +0 -27
- package/types/lib-components/lists/Table.vue.d.ts +0 -39
- package/types/lib-components/navigation/ActionsDropdownCallback.vue.d.ts +0 -18
- package/types/lib-components/navigation/ActionsDropdownEmit.vue.d.ts +0 -22
package/dist/trees.es.js
CHANGED
|
@@ -5176,7 +5176,7 @@ const je = /* @__PURE__ */ L({
|
|
|
5176
5176
|
label: { default: "" },
|
|
5177
5177
|
modelValue: { default: "" }
|
|
5178
5178
|
},
|
|
5179
|
-
emits: ["update:
|
|
5179
|
+
emits: ["update:modelValue"],
|
|
5180
5180
|
setup(t, { emit: n }) {
|
|
5181
5181
|
const e = t, r = ze().id || Ge.CreateIdAttribute(), o = [
|
|
5182
5182
|
"date",
|
|
@@ -5222,7 +5222,7 @@ const je = /* @__PURE__ */ L({
|
|
|
5222
5222
|
type: t.type,
|
|
5223
5223
|
value: t.modelValue
|
|
5224
5224
|
}, s.$attrs, {
|
|
5225
|
-
onInput: u[0] || (u[0] = (c) => n("update:
|
|
5225
|
+
onInput: u[0] || (u[0] = (c) => n("update:modelValue", c.target.value))
|
|
5226
5226
|
}), null, 16, Sl),
|
|
5227
5227
|
k(Re, {
|
|
5228
5228
|
id: `${h(r)}-help`,
|
|
@@ -7673,7 +7673,7 @@ const bn = /* @__PURE__ */ L({
|
|
|
7673
7673
|
label: { default: "" },
|
|
7674
7674
|
modelValue: { default: "" }
|
|
7675
7675
|
},
|
|
7676
|
-
emits: ["update:
|
|
7676
|
+
emits: ["update:modelValue"],
|
|
7677
7677
|
setup(t, { emit: n }) {
|
|
7678
7678
|
const a = ze().id || Ge.CreateIdAttribute();
|
|
7679
7679
|
return (r, o) => (y(), C(z, null, [
|
|
@@ -7702,7 +7702,7 @@ const bn = /* @__PURE__ */ L({
|
|
|
7702
7702
|
],
|
|
7703
7703
|
value: t.modelValue
|
|
7704
7704
|
}, r.$attrs, {
|
|
7705
|
-
onInput: o[0] || (o[0] = (i) => n("update:
|
|
7705
|
+
onInput: o[0] || (o[0] = (i) => n("update:modelValue", i.target.value))
|
|
7706
7706
|
}), null, 16, Uf),
|
|
7707
7707
|
k(Re, {
|
|
7708
7708
|
id: `${h(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
|
${p.join("</span><span class='flatpickr-weekday'>")}
|
|
9
9
|
</span>
|
|
10
|
-
`}function $u(){e.calendarContainer.classList.add("hasWeeks");const c=A("div","flatpickr-weekwrapper");c.appendChild(A("span","flatpickr-weekday",e.l10n.weekAbbreviation));const p=A("div","flatpickr-weeks");return c.appendChild(p),{weekWrapper:c,weekNumbers:p}}function Jn(c,p=!0){const h=p?c:c-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,Y("onYearChange"),W()),ae(),Y("onMonthChange"),qt())}function _u(c=!0,p=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,p===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:h,minutes:w,seconds:v}=Hn(e.config);m(h,w,v)}e.redraw(),c&&Y("onChange")}function Su(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Y("onClose")}function Vu(){e.config!==void 0&&Y("onDestroy");for(let c=e._handlers.length;c--;)e._handlers[c].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 c=e.calendarContainer.parentNode;if(c.lastChild&&c.removeChild(c.lastChild),c.parentNode){for(;c.firstChild;)c.parentNode.insertBefore(c.firstChild,c);c.parentNode.removeChild(c)}}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(c=>{try{delete e[c]}catch{}})}function et(c){return e.config.appendTo&&e.config.appendTo.contains(c)?!0:e.calendarContainer.contains(c)}function Xn(c){if(e.isOpen&&!e.config.inline){const p=pe(c),h=et(p),w=p===e.input||p===e.altInput||e.element.contains(p)||c.path&&c.path.indexOf&&(~c.path.indexOf(e.input)||~c.path.indexOf(e.altInput)),v=c.type==="blur"?w&&c.relatedTarget&&!et(c.relatedTarget):!w&&!h&&!et(c.relatedTarget),x=!e.config.ignoredFocusElements.some(V=>V.contains(p));v&&x&&(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 Ut(c){if(!c||e.config.minDate&&c<e.config.minDate.getFullYear()||e.config.maxDate&&c>e.config.maxDate.getFullYear())return;const p=c,h=e.currentYear!==p;e.currentYear=p||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),h&&(e.redraw(),Y("onYearChange"),W())}function Fe(c,p=!0){var h;const w=e.parseDate(c,void 0,p);if(e.config.minDate&&w&&me(w,e.config.minDate,p!==void 0?p:!e.minDateHasTime)<0||e.config.maxDate&&w&&me(w,e.config.maxDate,p!==void 0?p:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(w===void 0)return!1;const v=!!e.config.enable,x=(h=e.config.enable)!==null&&h!==void 0?h:e.config.disable;for(let V=0,_;V<x.length;V++){if(_=x[V],typeof _=="function"&&_(w))return v;if(_ instanceof Date&&w!==void 0&&_.getTime()===w.getTime())return v;if(typeof _=="string"){const T=e.parseDate(_,void 0,!0);return T&&T.getTime()===w.getTime()?v:!v}else if(typeof _=="object"&&w!==void 0&&_.from&&_.to&&w.getTime()>=_.from.getTime()&&w.getTime()<=_.to.getTime())return v}return!v}function Yt(c){return e.daysContainer!==void 0?c.className.indexOf("hidden")===-1&&c.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(c):!1}function Bu(c){c.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(c.relatedTarget&&et(c.relatedTarget))&&e.setDate(e._input.value,!0,c.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Mu(c){const p=pe(c),h=e.config.wrap?n.contains(p):p===e._input,w=e.config.allowInput,v=e.isOpen&&(!w||!h),x=e.config.inline&&h&&!w;if(c.keyCode===13&&h){if(w)return e.setDate(e._input.value,!0,p===e.altInput?e.config.altFormat:e.config.dateFormat),p.blur();e.open()}else if(et(p)||v||x){const V=!!e.timeContainer&&e.timeContainer.contains(p);switch(c.keyCode){case 13:V?(c.preventDefault(),s(),Zn()):fo(c);break;case 27:c.preventDefault(),Zn();break;case 8:case 46:h&&!e.config.allowInput&&(c.preventDefault(),e.clear());break;case 37:case 39:if(!V&&!h){if(c.preventDefault(),e.daysContainer!==void 0&&(w===!1||document.activeElement&&Yt(document.activeElement))){const T=c.keyCode===39?1:-1;c.ctrlKey?(c.stopPropagation(),Jn(T),F(z(1),0)):F(void 0,T)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:c.preventDefault();const _=c.keyCode===40?1:-1;e.daysContainer&&p.$i!==void 0||p===e.input||p===e.altInput?c.ctrlKey?(c.stopPropagation(),Ut(e.currentYear-_),F(z(1),0)):V||F(void 0,_*7):p===e.currentYearElement?Ut(e.currentYear-_):e.config.enableTime&&(!V&&e.hourElement&&e.hourElement.focus(),s(c),e._debouncedChange());break;case 9:if(V){const T=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(j=>j),O=T.indexOf(p);if(O!==-1){const j=T[O+(c.shiftKey?-1:1)];c.preventDefault(),(j||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(p)&&c.shiftKey&&(c.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&p===e.amPM)switch(c.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],u(),Oe();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),Oe();break}(h||et(p))&&Y("onKeyDown",c)}function Qn(c){if(e.selectedDates.length!==1||c&&(!c.classList.contains("flatpickr-day")||c.classList.contains("flatpickr-disabled")))return;const p=c?c.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),h=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),w=Math.min(p,e.selectedDates[0].getTime()),v=Math.max(p,e.selectedDates[0].getTime());let x=!1,V=0,_=0;for(let T=w;T<v;T+=Dl.DAY)Fe(new Date(T),!0)||(x=x||T>w&&T<v,T<h&&(!V||T>V)?V=T:T>h&&(!_||T<_)&&(_=T));for(let T=0;T<e.config.showMonths;T++){const O=e.daysContainer.children[T];for(let j=0,ye=O.children.length;j<ye;j++){const te=O.children[j],Ne=te.dateObj.getTime(),ft=V>0&&Ne<V||_>0&&Ne>_;if(ft){te.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(pt=>{te.classList.remove(pt)});continue}else if(x&&!ft)continue;["startRange","inRange","endRange","notAllowed"].forEach(pt=>{te.classList.remove(pt)}),c!==void 0&&(c.classList.add(p<=e.selectedDates[0].getTime()?"startRange":"endRange"),h<p&&Ne===h?te.classList.add("startRange"):h>p&&Ne===h&&te.classList.add("endRange"),Ne>=V&&(_===0||Ne<=_)&&vl(Ne,h,p)&&te.classList.add("inRange"))}}}function Tu(){e.isOpen&&!e.config.static&&!e.config.inline&&zt()}function Ou(c,p=e._positionElement){if(e.isMobile===!0){if(c){c.preventDefault();const w=pe(c);w&&w.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),Y("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"),Y("onOpen"),zt(p)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(c===void 0||!e.timeContainer.contains(c.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function lo(c){return p=>{const h=e.config[`_${c}Date`]=e.parseDate(p,e.config.dateFormat),w=e.config[`_${c==="min"?"max":"min"}Date`];h!==void 0&&(e[c==="min"?"minDateHasTime":"maxDateHasTime"]=h.getHours()>0||h.getMinutes()>0||h.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(v=>Fe(v)),!e.selectedDates.length&&c==="min"&&g(h),Oe()),e.daysContainer&&(uo(),h!==void 0?e.currentYearElement[c]=h.getFullYear().toString():e.currentYearElement.removeAttribute(c),e.currentYearElement.disabled=!!w&&h!==void 0&&w.getFullYear()===h.getFullYear())}}function Pu(){const c=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],p=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),h={};e.config.parseDate=p.parseDate,e.config.formatDate=p.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:x=>{e.config._enable=mo(x)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:x=>{e.config._disable=mo(x)}});const w=p.mode==="time";if(!p.dateFormat&&(p.enableTime||w)){const x=K.defaultConfig.dateFormat||Qe.dateFormat;h.dateFormat=p.noCalendar||w?"H:i"+(p.enableSeconds?":S":""):x+" H:i"+(p.enableSeconds?":S":"")}if(p.altInput&&(p.enableTime||w)&&!p.altFormat){const x=K.defaultConfig.altFormat||Qe.altFormat;h.altFormat=p.noCalendar||w?"h:i"+(p.enableSeconds?":S K":" K"):x+` h:i${p.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:lo("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:lo("max")});const v=x=>V=>{e.config[x==="min"?"_minTime":"_maxTime"]=e.parseDate(V,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:v("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:v("max")}),p.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,h,p);for(let x=0;x<c.length;x++)e.config[c[x]]=e.config[c[x]]===!0||e.config[c[x]]==="true";In.filter(x=>e.config[x]!==void 0).forEach(x=>{e.config[x]=Ln(e.config[x]||[]).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 x=0;x<e.config.plugins.length;x++){const V=e.config.plugins[x](e)||{};for(const _ in V)In.indexOf(_)>-1?e.config[_]=Ln(V[_]).map(i).concat(e.config[_]):typeof p[_]>"u"&&(e.config[_]=V[_])}p.altInputClass||(e.config.altInputClass=so().className+" "+e.config.altInputClass),Y("onParseConfig")}function so(){return e.config.wrap?n.querySelector("[data-input]"):n}function co(){typeof e.config.locale!="object"&&typeof K.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},K.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?K.l10ns[e.config.locale]:void 0),Fn.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&&K.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Pa(e),e.parseDate=jn({config:e.config,l10n:e.l10n})}function zt(c){if(typeof e.config.position=="function")return void e.config.position(e,c);if(e.calendarContainer===void 0)return;Y("onPreCalendarPosition");const p=c||e._positionElement,h=Array.prototype.reduce.call(e.calendarContainer.children,(mt,nr)=>mt+nr.offsetHeight,0),w=e.calendarContainer.offsetWidth,v=e.config.position.split(" "),x=v[0],V=v.length>1?v[1]:null,_=p.getBoundingClientRect(),T=window.innerHeight-_.bottom,O=x==="above"||x!=="below"&&T<h&&_.top>h,j=window.pageYOffset+_.top+(O?-h-2:p.offsetHeight+2);if(re(e.calendarContainer,"arrowTop",!O),re(e.calendarContainer,"arrowBottom",O),e.config.inline)return;let ye=window.pageXOffset+_.left,te=!1,Kt=!1;V==="center"?(ye-=(w-_.width)/2,te=!0):V==="right"&&(ye-=w-_.width,Kt=!0),re(e.calendarContainer,"arrowLeft",!te&&!Kt),re(e.calendarContainer,"arrowCenter",te),re(e.calendarContainer,"arrowRight",Kt);const Ne=window.document.body.offsetWidth-(window.pageXOffset+_.right),ft=ye+w>window.document.body.offsetWidth,pt=Ne+w>window.document.body.offsetWidth;if(re(e.calendarContainer,"rightMost",ft),!e.config.static)if(e.calendarContainer.style.top=`${j}px`,!ft)e.calendarContainer.style.left=`${ye}px`,e.calendarContainer.style.right="auto";else if(!pt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${Ne}px`;else{const mt=Au();if(mt===void 0)return;const nr=window.document.body.offsetWidth,qu=Math.max(0,nr/2-w/2),Ku=".flatpickr-calendar.centerMost:before",Gu=".flatpickr-calendar.centerMost:after",Ju=mt.cssRules.length,Xu=`{left:${_.left}px;right:auto;}`;re(e.calendarContainer,"rightMost",!1),re(e.calendarContainer,"centerMost",!0),mt.insertRule(`${Ku},${Gu}${Xu}`,Ju),e.calendarContainer.style.left=`${qu}px`,e.calendarContainer.style.right="auto"}}function Au(){let c=null;for(let p=0;p<document.styleSheets.length;p++){const h=document.styleSheets[p];try{h.cssRules}catch{continue}c=h;break}return c??Iu()}function Iu(){const c=document.createElement("style");return document.head.appendChild(c),c.sheet}function uo(){e.config.noCalendar||e.isMobile||(W(),qt(),ae())}function Zn(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function fo(c){c.preventDefault(),c.stopPropagation();const p=V=>V.classList&&V.classList.contains("flatpickr-day")&&!V.classList.contains("flatpickr-disabled")&&!V.classList.contains("notAllowed"),h=Oa(pe(c),p);if(h===void 0)return;const w=h,v=e.latestSelectedDateObj=new Date(w.dateObj.getTime()),x=(v.getMonth()<e.currentMonth||v.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=w,e.config.mode==="single")e.selectedDates=[v];else if(e.config.mode==="multiple"){const V=tr(v);V?e.selectedDates.splice(parseInt(V),1):e.selectedDates.push(v)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=v,e.selectedDates.push(v),me(v,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((V,_)=>V.getTime()-_.getTime()));if(u(),x){const V=e.currentYear!==v.getFullYear();e.currentYear=v.getFullYear(),e.currentMonth=v.getMonth(),V&&(Y("onYearChange"),W()),Y("onMonthChange")}if(qt(),ae(),Oe(),!x&&e.config.mode!=="range"&&e.config.showMonths===1?ce(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 V=e.config.mode==="single"&&!e.config.enableTime,_=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(V||_)&&Zn()}C()}const Wt={locale:[co,io],showMonths:[De,l,oo],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 Lu(c,p){if(c!==null&&typeof c=="object"){Object.assign(e.config,c);for(const h in c)Wt[h]!==void 0&&Wt[h].forEach(w=>w())}else e.config[c]=p,Wt[c]!==void 0?Wt[c].forEach(h=>h()):In.indexOf(c)>-1&&(e.config[c]=Ln(p));e.redraw(),Oe(!0)}function po(c,p){let h=[];if(c instanceof Array)h=c.map(w=>e.parseDate(w,p));else if(c instanceof Date||typeof c=="number")h=[e.parseDate(c,p)];else if(typeof c=="string")switch(e.config.mode){case"single":case"time":h=[e.parseDate(c,p)];break;case"multiple":h=c.split(e.config.conjunction).map(w=>e.parseDate(w,p));break;case"range":h=c.split(e.l10n.rangeSeparator).map(w=>e.parseDate(w,p));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(c)}`));e.selectedDates=e.config.allowInvalidPreload?h:h.filter(w=>w instanceof Date&&Fe(w,!1)),e.config.mode==="range"&&e.selectedDates.sort((w,v)=>w.getTime()-v.getTime())}function Ru(c,p=!1,h=e.config.dateFormat){if(c!==0&&!c||c instanceof Array&&c.length===0)return e.clear(p);po(c,h),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),E(void 0,p),g(),e.selectedDates.length===0&&e.clear(!1),Oe(p),p&&Y("onChange")}function mo(c){return c.slice().map(p=>typeof p=="string"||typeof p=="number"||p instanceof Date?e.parseDate(p,void 0,!0):p&&typeof p=="object"&&p.from&&p.to?{from:e.parseDate(p.from,void 0),to:e.parseDate(p.to,void 0)}:p).filter(p=>p)}function Fu(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const c=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);c&&po(c,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 ju(){if(e.input=so(),!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=A(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 Hu(){const c=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=A("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=c,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=c==="datetime-local"?"Y-m-d\\TH:i:S":c==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}y(e.mobileInput,"change",p=>{e.setDate(pe(p).value,!1,e.mobileFormatStr),Y("onChange"),Y("onClose")})}function Uu(c){if(e.isOpen===!0)return e.close();e.open(c)}function Y(c,p){if(e.config===void 0)return;const h=e.config[c];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,p);c==="onChange"&&(e.input.dispatchEvent(er("change")),e.input.dispatchEvent(er("input")))}function er(c){const p=document.createEvent("Event");return p.initEvent(c,!0,!0),p}function tr(c){for(let p=0;p<e.selectedDates.length;p++)if(me(e.selectedDates[p],c)===0)return""+p;return!1}function Yu(c){return e.config.mode!=="range"||e.selectedDates.length<2?!1:me(c,e.selectedDates[0])>=0&&me(c,e.selectedDates[1])<=0}function qt(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((c,p)=>{const h=new Date(e.currentYear,e.currentMonth,1);h.setMonth(e.currentMonth+p),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[p].textContent=It(h.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=h.getMonth().toString(),c.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 ho(c){return e.selectedDates.map(p=>e.formatDate(p,c)).filter((p,h,w)=>e.config.mode!=="range"||e.config.enableTime||w.indexOf(p)===h).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Oe(c=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=ho(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=ho(e.config.altFormat)),c!==!1&&Y("onValueUpdate")}function zu(c){const p=pe(c),h=e.prevMonthNav.contains(p),w=e.nextMonthNav.contains(p);h||w?Jn(h?-1:1):e.yearElements.indexOf(p)>=0?p.select():p.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):p.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Wu(c){c.preventDefault();const p=c.type==="keydown",h=pe(c),w=h;e.amPM!==void 0&&h===e.amPM&&(e.amPM.textContent=e.l10n.amPM[ge(e.amPM.textContent===e.l10n.amPM[0])]);const v=parseFloat(w.getAttribute("min")),x=parseFloat(w.getAttribute("max")),V=parseFloat(w.getAttribute("step")),_=parseInt(w.value,10),T=c.delta||(p?c.which===38?1:-1:0);let O=_+V*T;if(typeof w.value<"u"&&w.value.length===2){const j=w===e.hourElement,ye=w===e.minuteElement;O<v?(O=x+O+ge(!j)+(ge(j)&&ge(!e.amPM)),ye&&S(void 0,-1,e.hourElement)):O>x&&(O=w===e.hourElement?O-x-ge(!e.amPM):v,ye&&S(void 0,1,e.hourElement)),e.amPM&&j&&(V===1?O+_===23:Math.abs(O-_)>V)&&(e.amPM.textContent=e.l10n.amPM[ge(e.amPM.textContent===e.l10n.amPM[0])]),w.value=se(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=$l(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 K=function(n,r){return typeof n=="string"?Ze(window.document.querySelectorAll(n),r):n instanceof Node?Ze([n],r):Ze(n,r)};K.defaultConfig={},K.l10ns={en:Object.assign({},it),default:Object.assign({},it)},K.localize=n=>{K.l10ns.default=Object.assign(Object.assign({},K.l10ns.default),n)},K.setDefaults=n=>{K.defaultConfig=Object.assign(Object.assign({},K.defaultConfig),n)},K.parseDate=jn({}),K.formatDate=Pa({}),K.compareDates=me,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=K);const tf="",be=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)}}),he=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)}}),_l=["id","aria-labelledby","aria-describedby","placeholder","type","value"],Un=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||ve.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,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(be,{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:d[0]||(d[0]=f=>r("update:model-value",f.target.value))}),null,16,_l),t.createVNode(he,{id:`${t.unref(a)}-help`,text:n.help},null,8,["id","text"])],64))}}),Lt=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||ve.CreateIdAttribute(),i=l=>{r("update:modelValue",l)};return t.onMounted(()=>{K(`#${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(Un,{id:t.unref(a),type:"text",placeholder:"mm-dd-yyyy range",label:n.label,help:n.help},null,8,["id","label","help"]))}}),Sl=["id","aria-labelledby","aria-describedby","value"],Vl={key:0,value:"",disabled:"",selected:""},Bl=["value","textContent"],Yn=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||ve.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(be,{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:d=>{r("update:modelValue",d.target.value)}}),[n.placeholder?(t.openBlock(),t.createElementBlock("option",Vl,t.toDisplayString(n.placeholder),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,d=>(t.openBlock(),t.createElementBlock("option",{key:d.value,value:d.value,textContent:t.toDisplayString(d.label)},null,8,Bl))),128))],16,Sl),t.createVNode(he,{id:`${t.unref(a)}-help`,text:n.help},null,8,["id","text"])],64))}}),Ml={class:"md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100"},Tl={class:"flex-1 min-w-0"},Ol={class:"text-lg leading-6 font-semibold text-gray-900"},Pl={class:"mt-4 flex md:mt-0 md:ml-4"},zn=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=d=>{r("sort-dir-changed",d)},s=d=>{r("date-range-changed",d)};return(d,f)=>(t.openBlock(),t.createElementBlock("div",Ml,[t.createElementVNode("div",Tl,[t.createElementVNode("h1",Ol,t.toDisplayString(n.title),1)]),t.createElementVNode("div",Pl,[t.createVNode(Yn,{modelValue:a.value,"onUpdate:modelValue":[f[0]||(f[0]=u=>a.value=u),l],options:i},null,8,["modelValue"]),t.createVNode(Lt,{modelValue:o.value,"onUpdate:modelValue":[f[1]||(f[1]=u=>o.value=u),s],class:"ml-3"},null,8,["modelValue"])])]))}});function st(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),i=t.ref(!1),l=t.ref(!1),s=t.ref(!1),d=t.ref(!1);let f=0,u;const g=()=>{u!==void 0&&u.abort()},m=(b={},y={})=>{f++;const C=f;u=new AbortController,d.value=!1,l.value=!1,s.value=!0;const k={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?b:{},method:r,params:["GET","get"].includes(r)?b:{},signal:u.signal,url:n};return We(k,{...e,...y}).then(E=>(o.value=E,a.value=void 0,d.value=!1,E),E=>{throw a.value=E,Gr(E)&&(d.value=!0),E}).finally(()=>{C==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:d,hasFetched:i,abort:g,execute:m}}function Al(n,r={}){return st(n,"GET",r)}function Il(n,r={}){return st(n,"DELETE",r)}function Ll(n,r={}){return st(n,"POST",r)}function Rl(n,r={}){return st(n,"PUT",r)}function Aa(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 b=ve.CreateIdAttribute();return r.value.set(b,m),(m.persistent===void 0||!m.persistent)&&setTimeout(()=>a(b),e.removeDelay),b},l=m=>i(m),s=(m,b=!1)=>i({message:m,persistent:b,type:"error"}),d=(m,b=!1)=>i({message:m,persistent:b,type:"info"}),f=(m,b=!1)=>i({message:m,persistent:b,type:"success"}),u=(m,b=!1)=>i({message:m,persistent:b,type:"warning"}),g=(m="",b=!1)=>{const y=m||e.email,C=y?`Whoops! Something went wrong, please reach out to
|
|
10
|
+
`}function $u(){e.calendarContainer.classList.add("hasWeeks");const c=A("div","flatpickr-weekwrapper");c.appendChild(A("span","flatpickr-weekday",e.l10n.weekAbbreviation));const p=A("div","flatpickr-weeks");return c.appendChild(p),{weekWrapper:c,weekNumbers:p}}function Jn(c,p=!0){const h=p?c:c-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,Y("onYearChange"),W()),ae(),Y("onMonthChange"),qt())}function _u(c=!0,p=!0){if(e.input.value="",e.altInput!==void 0&&(e.altInput.value=""),e.mobileInput!==void 0&&(e.mobileInput.value=""),e.selectedDates=[],e.latestSelectedDateObj=void 0,p===!0&&(e.currentYear=e._initialDate.getFullYear(),e.currentMonth=e._initialDate.getMonth()),e.config.enableTime===!0){const{hours:h,minutes:w,seconds:v}=Hn(e.config);m(h,w,v)}e.redraw(),c&&Y("onChange")}function Su(){e.isOpen=!1,e.isMobile||(e.calendarContainer!==void 0&&e.calendarContainer.classList.remove("open"),e._input!==void 0&&e._input.classList.remove("active")),Y("onClose")}function Vu(){e.config!==void 0&&Y("onDestroy");for(let c=e._handlers.length;c--;)e._handlers[c].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 c=e.calendarContainer.parentNode;if(c.lastChild&&c.removeChild(c.lastChild),c.parentNode){for(;c.firstChild;)c.parentNode.insertBefore(c.firstChild,c);c.parentNode.removeChild(c)}}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(c=>{try{delete e[c]}catch{}})}function et(c){return e.config.appendTo&&e.config.appendTo.contains(c)?!0:e.calendarContainer.contains(c)}function Xn(c){if(e.isOpen&&!e.config.inline){const p=pe(c),h=et(p),w=p===e.input||p===e.altInput||e.element.contains(p)||c.path&&c.path.indexOf&&(~c.path.indexOf(e.input)||~c.path.indexOf(e.altInput)),v=c.type==="blur"?w&&c.relatedTarget&&!et(c.relatedTarget):!w&&!h&&!et(c.relatedTarget),x=!e.config.ignoredFocusElements.some(V=>V.contains(p));v&&x&&(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 Ut(c){if(!c||e.config.minDate&&c<e.config.minDate.getFullYear()||e.config.maxDate&&c>e.config.maxDate.getFullYear())return;const p=c,h=e.currentYear!==p;e.currentYear=p||e.currentYear,e.config.maxDate&&e.currentYear===e.config.maxDate.getFullYear()?e.currentMonth=Math.min(e.config.maxDate.getMonth(),e.currentMonth):e.config.minDate&&e.currentYear===e.config.minDate.getFullYear()&&(e.currentMonth=Math.max(e.config.minDate.getMonth(),e.currentMonth)),h&&(e.redraw(),Y("onYearChange"),W())}function Fe(c,p=!0){var h;const w=e.parseDate(c,void 0,p);if(e.config.minDate&&w&&me(w,e.config.minDate,p!==void 0?p:!e.minDateHasTime)<0||e.config.maxDate&&w&&me(w,e.config.maxDate,p!==void 0?p:!e.maxDateHasTime)>0)return!1;if(!e.config.enable&&e.config.disable.length===0)return!0;if(w===void 0)return!1;const v=!!e.config.enable,x=(h=e.config.enable)!==null&&h!==void 0?h:e.config.disable;for(let V=0,_;V<x.length;V++){if(_=x[V],typeof _=="function"&&_(w))return v;if(_ instanceof Date&&w!==void 0&&_.getTime()===w.getTime())return v;if(typeof _=="string"){const T=e.parseDate(_,void 0,!0);return T&&T.getTime()===w.getTime()?v:!v}else if(typeof _=="object"&&w!==void 0&&_.from&&_.to&&w.getTime()>=_.from.getTime()&&w.getTime()<=_.to.getTime())return v}return!v}function Yt(c){return e.daysContainer!==void 0?c.className.indexOf("hidden")===-1&&c.className.indexOf("flatpickr-disabled")===-1&&e.daysContainer.contains(c):!1}function Bu(c){c.target===e._input&&(e.selectedDates.length>0||e._input.value.length>0)&&!(c.relatedTarget&&et(c.relatedTarget))&&e.setDate(e._input.value,!0,c.target===e.altInput?e.config.altFormat:e.config.dateFormat)}function Mu(c){const p=pe(c),h=e.config.wrap?n.contains(p):p===e._input,w=e.config.allowInput,v=e.isOpen&&(!w||!h),x=e.config.inline&&h&&!w;if(c.keyCode===13&&h){if(w)return e.setDate(e._input.value,!0,p===e.altInput?e.config.altFormat:e.config.dateFormat),p.blur();e.open()}else if(et(p)||v||x){const V=!!e.timeContainer&&e.timeContainer.contains(p);switch(c.keyCode){case 13:V?(c.preventDefault(),s(),Zn()):fo(c);break;case 27:c.preventDefault(),Zn();break;case 8:case 46:h&&!e.config.allowInput&&(c.preventDefault(),e.clear());break;case 37:case 39:if(!V&&!h){if(c.preventDefault(),e.daysContainer!==void 0&&(w===!1||document.activeElement&&Yt(document.activeElement))){const T=c.keyCode===39?1:-1;c.ctrlKey?(c.stopPropagation(),Jn(T),F(z(1),0)):F(void 0,T)}}else e.hourElement&&e.hourElement.focus();break;case 38:case 40:c.preventDefault();const _=c.keyCode===40?1:-1;e.daysContainer&&p.$i!==void 0||p===e.input||p===e.altInput?c.ctrlKey?(c.stopPropagation(),Ut(e.currentYear-_),F(z(1),0)):V||F(void 0,_*7):p===e.currentYearElement?Ut(e.currentYear-_):e.config.enableTime&&(!V&&e.hourElement&&e.hourElement.focus(),s(c),e._debouncedChange());break;case 9:if(V){const T=[e.hourElement,e.minuteElement,e.secondElement,e.amPM].concat(e.pluginElements).filter(j=>j),O=T.indexOf(p);if(O!==-1){const j=T[O+(c.shiftKey?-1:1)];c.preventDefault(),(j||e._input).focus()}}else!e.config.noCalendar&&e.daysContainer&&e.daysContainer.contains(p)&&c.shiftKey&&(c.preventDefault(),e._input.focus());break}}if(e.amPM!==void 0&&p===e.amPM)switch(c.key){case e.l10n.amPM[0].charAt(0):case e.l10n.amPM[0].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[0],u(),Oe();break;case e.l10n.amPM[1].charAt(0):case e.l10n.amPM[1].charAt(0).toLowerCase():e.amPM.textContent=e.l10n.amPM[1],u(),Oe();break}(h||et(p))&&Y("onKeyDown",c)}function Qn(c){if(e.selectedDates.length!==1||c&&(!c.classList.contains("flatpickr-day")||c.classList.contains("flatpickr-disabled")))return;const p=c?c.dateObj.getTime():e.days.firstElementChild.dateObj.getTime(),h=e.parseDate(e.selectedDates[0],void 0,!0).getTime(),w=Math.min(p,e.selectedDates[0].getTime()),v=Math.max(p,e.selectedDates[0].getTime());let x=!1,V=0,_=0;for(let T=w;T<v;T+=Dl.DAY)Fe(new Date(T),!0)||(x=x||T>w&&T<v,T<h&&(!V||T>V)?V=T:T>h&&(!_||T<_)&&(_=T));for(let T=0;T<e.config.showMonths;T++){const O=e.daysContainer.children[T];for(let j=0,ye=O.children.length;j<ye;j++){const te=O.children[j],Ne=te.dateObj.getTime(),ft=V>0&&Ne<V||_>0&&Ne>_;if(ft){te.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(pt=>{te.classList.remove(pt)});continue}else if(x&&!ft)continue;["startRange","inRange","endRange","notAllowed"].forEach(pt=>{te.classList.remove(pt)}),c!==void 0&&(c.classList.add(p<=e.selectedDates[0].getTime()?"startRange":"endRange"),h<p&&Ne===h?te.classList.add("startRange"):h>p&&Ne===h&&te.classList.add("endRange"),Ne>=V&&(_===0||Ne<=_)&&vl(Ne,h,p)&&te.classList.add("inRange"))}}}function Tu(){e.isOpen&&!e.config.static&&!e.config.inline&&zt()}function Ou(c,p=e._positionElement){if(e.isMobile===!0){if(c){c.preventDefault();const w=pe(c);w&&w.blur()}e.mobileInput!==void 0&&(e.mobileInput.focus(),e.mobileInput.click()),Y("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"),Y("onOpen"),zt(p)),e.config.enableTime===!0&&e.config.noCalendar===!0&&e.config.allowInput===!1&&(c===void 0||!e.timeContainer.contains(c.relatedTarget))&&setTimeout(()=>e.hourElement.select(),50)}function lo(c){return p=>{const h=e.config[`_${c}Date`]=e.parseDate(p,e.config.dateFormat),w=e.config[`_${c==="min"?"max":"min"}Date`];h!==void 0&&(e[c==="min"?"minDateHasTime":"maxDateHasTime"]=h.getHours()>0||h.getMinutes()>0||h.getSeconds()>0),e.selectedDates&&(e.selectedDates=e.selectedDates.filter(v=>Fe(v)),!e.selectedDates.length&&c==="min"&&g(h),Oe()),e.daysContainer&&(uo(),h!==void 0?e.currentYearElement[c]=h.getFullYear().toString():e.currentYearElement.removeAttribute(c),e.currentYearElement.disabled=!!w&&h!==void 0&&w.getFullYear()===h.getFullYear())}}function Pu(){const c=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],p=Object.assign(Object.assign({},JSON.parse(JSON.stringify(n.dataset||{}))),r),h={};e.config.parseDate=p.parseDate,e.config.formatDate=p.formatDate,Object.defineProperty(e.config,"enable",{get:()=>e.config._enable,set:x=>{e.config._enable=mo(x)}}),Object.defineProperty(e.config,"disable",{get:()=>e.config._disable,set:x=>{e.config._disable=mo(x)}});const w=p.mode==="time";if(!p.dateFormat&&(p.enableTime||w)){const x=K.defaultConfig.dateFormat||Qe.dateFormat;h.dateFormat=p.noCalendar||w?"H:i"+(p.enableSeconds?":S":""):x+" H:i"+(p.enableSeconds?":S":"")}if(p.altInput&&(p.enableTime||w)&&!p.altFormat){const x=K.defaultConfig.altFormat||Qe.altFormat;h.altFormat=p.noCalendar||w?"h:i"+(p.enableSeconds?":S K":" K"):x+` h:i${p.enableSeconds?":S":""} K`}Object.defineProperty(e.config,"minDate",{get:()=>e.config._minDate,set:lo("min")}),Object.defineProperty(e.config,"maxDate",{get:()=>e.config._maxDate,set:lo("max")});const v=x=>V=>{e.config[x==="min"?"_minTime":"_maxTime"]=e.parseDate(V,"H:i:S")};Object.defineProperty(e.config,"minTime",{get:()=>e.config._minTime,set:v("min")}),Object.defineProperty(e.config,"maxTime",{get:()=>e.config._maxTime,set:v("max")}),p.mode==="time"&&(e.config.noCalendar=!0,e.config.enableTime=!0),Object.assign(e.config,h,p);for(let x=0;x<c.length;x++)e.config[c[x]]=e.config[c[x]]===!0||e.config[c[x]]==="true";In.filter(x=>e.config[x]!==void 0).forEach(x=>{e.config[x]=Ln(e.config[x]||[]).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 x=0;x<e.config.plugins.length;x++){const V=e.config.plugins[x](e)||{};for(const _ in V)In.indexOf(_)>-1?e.config[_]=Ln(V[_]).map(i).concat(e.config[_]):typeof p[_]>"u"&&(e.config[_]=V[_])}p.altInputClass||(e.config.altInputClass=so().className+" "+e.config.altInputClass),Y("onParseConfig")}function so(){return e.config.wrap?n.querySelector("[data-input]"):n}function co(){typeof e.config.locale!="object"&&typeof K.l10ns[e.config.locale]>"u"&&e.config.errorHandler(new Error(`flatpickr: invalid locale ${e.config.locale}`)),e.l10n=Object.assign(Object.assign({},K.l10ns.default),typeof e.config.locale=="object"?e.config.locale:e.config.locale!=="default"?K.l10ns[e.config.locale]:void 0),Fn.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&&K.defaultConfig.time_24hr===void 0&&(e.config.time_24hr=e.l10n.time_24hr),e.formatDate=Pa(e),e.parseDate=jn({config:e.config,l10n:e.l10n})}function zt(c){if(typeof e.config.position=="function")return void e.config.position(e,c);if(e.calendarContainer===void 0)return;Y("onPreCalendarPosition");const p=c||e._positionElement,h=Array.prototype.reduce.call(e.calendarContainer.children,(mt,nr)=>mt+nr.offsetHeight,0),w=e.calendarContainer.offsetWidth,v=e.config.position.split(" "),x=v[0],V=v.length>1?v[1]:null,_=p.getBoundingClientRect(),T=window.innerHeight-_.bottom,O=x==="above"||x!=="below"&&T<h&&_.top>h,j=window.pageYOffset+_.top+(O?-h-2:p.offsetHeight+2);if(re(e.calendarContainer,"arrowTop",!O),re(e.calendarContainer,"arrowBottom",O),e.config.inline)return;let ye=window.pageXOffset+_.left,te=!1,Kt=!1;V==="center"?(ye-=(w-_.width)/2,te=!0):V==="right"&&(ye-=w-_.width,Kt=!0),re(e.calendarContainer,"arrowLeft",!te&&!Kt),re(e.calendarContainer,"arrowCenter",te),re(e.calendarContainer,"arrowRight",Kt);const Ne=window.document.body.offsetWidth-(window.pageXOffset+_.right),ft=ye+w>window.document.body.offsetWidth,pt=Ne+w>window.document.body.offsetWidth;if(re(e.calendarContainer,"rightMost",ft),!e.config.static)if(e.calendarContainer.style.top=`${j}px`,!ft)e.calendarContainer.style.left=`${ye}px`,e.calendarContainer.style.right="auto";else if(!pt)e.calendarContainer.style.left="auto",e.calendarContainer.style.right=`${Ne}px`;else{const mt=Au();if(mt===void 0)return;const nr=window.document.body.offsetWidth,qu=Math.max(0,nr/2-w/2),Ku=".flatpickr-calendar.centerMost:before",Gu=".flatpickr-calendar.centerMost:after",Ju=mt.cssRules.length,Xu=`{left:${_.left}px;right:auto;}`;re(e.calendarContainer,"rightMost",!1),re(e.calendarContainer,"centerMost",!0),mt.insertRule(`${Ku},${Gu}${Xu}`,Ju),e.calendarContainer.style.left=`${qu}px`,e.calendarContainer.style.right="auto"}}function Au(){let c=null;for(let p=0;p<document.styleSheets.length;p++){const h=document.styleSheets[p];try{h.cssRules}catch{continue}c=h;break}return c??Iu()}function Iu(){const c=document.createElement("style");return document.head.appendChild(c),c.sheet}function uo(){e.config.noCalendar||e.isMobile||(W(),qt(),ae())}function Zn(){e._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(e.close,0):e.close()}function fo(c){c.preventDefault(),c.stopPropagation();const p=V=>V.classList&&V.classList.contains("flatpickr-day")&&!V.classList.contains("flatpickr-disabled")&&!V.classList.contains("notAllowed"),h=Oa(pe(c),p);if(h===void 0)return;const w=h,v=e.latestSelectedDateObj=new Date(w.dateObj.getTime()),x=(v.getMonth()<e.currentMonth||v.getMonth()>e.currentMonth+e.config.showMonths-1)&&e.config.mode!=="range";if(e.selectedDateElem=w,e.config.mode==="single")e.selectedDates=[v];else if(e.config.mode==="multiple"){const V=tr(v);V?e.selectedDates.splice(parseInt(V),1):e.selectedDates.push(v)}else e.config.mode==="range"&&(e.selectedDates.length===2&&e.clear(!1,!1),e.latestSelectedDateObj=v,e.selectedDates.push(v),me(v,e.selectedDates[0],!0)!==0&&e.selectedDates.sort((V,_)=>V.getTime()-_.getTime()));if(u(),x){const V=e.currentYear!==v.getFullYear();e.currentYear=v.getFullYear(),e.currentMonth=v.getMonth(),V&&(Y("onYearChange"),W()),Y("onMonthChange")}if(qt(),ae(),Oe(),!x&&e.config.mode!=="range"&&e.config.showMonths===1?ce(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 V=e.config.mode==="single"&&!e.config.enableTime,_=e.config.mode==="range"&&e.selectedDates.length===2&&!e.config.enableTime;(V||_)&&Zn()}C()}const Wt={locale:[co,io],showMonths:[De,l,oo],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 Lu(c,p){if(c!==null&&typeof c=="object"){Object.assign(e.config,c);for(const h in c)Wt[h]!==void 0&&Wt[h].forEach(w=>w())}else e.config[c]=p,Wt[c]!==void 0?Wt[c].forEach(h=>h()):In.indexOf(c)>-1&&(e.config[c]=Ln(p));e.redraw(),Oe(!0)}function po(c,p){let h=[];if(c instanceof Array)h=c.map(w=>e.parseDate(w,p));else if(c instanceof Date||typeof c=="number")h=[e.parseDate(c,p)];else if(typeof c=="string")switch(e.config.mode){case"single":case"time":h=[e.parseDate(c,p)];break;case"multiple":h=c.split(e.config.conjunction).map(w=>e.parseDate(w,p));break;case"range":h=c.split(e.l10n.rangeSeparator).map(w=>e.parseDate(w,p));break}else e.config.errorHandler(new Error(`Invalid date supplied: ${JSON.stringify(c)}`));e.selectedDates=e.config.allowInvalidPreload?h:h.filter(w=>w instanceof Date&&Fe(w,!1)),e.config.mode==="range"&&e.selectedDates.sort((w,v)=>w.getTime()-v.getTime())}function Ru(c,p=!1,h=e.config.dateFormat){if(c!==0&&!c||c instanceof Array&&c.length===0)return e.clear(p);po(c,h),e.latestSelectedDateObj=e.selectedDates[e.selectedDates.length-1],e.redraw(),E(void 0,p),g(),e.selectedDates.length===0&&e.clear(!1),Oe(p),p&&Y("onChange")}function mo(c){return c.slice().map(p=>typeof p=="string"||typeof p=="number"||p instanceof Date?e.parseDate(p,void 0,!0):p&&typeof p=="object"&&p.from&&p.to?{from:e.parseDate(p.from,void 0),to:e.parseDate(p.to,void 0)}:p).filter(p=>p)}function Fu(){e.selectedDates=[],e.now=e.parseDate(e.config.now)||new Date;const c=e.config.defaultDate||((e.input.nodeName==="INPUT"||e.input.nodeName==="TEXTAREA")&&e.input.placeholder&&e.input.value===e.input.placeholder?null:e.input.value);c&&po(c,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 ju(){if(e.input=so(),!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=A(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 Hu(){const c=e.config.enableTime?e.config.noCalendar?"time":"datetime-local":"date";e.mobileInput=A("input",e.input.className+" flatpickr-mobile"),e.mobileInput.tabIndex=1,e.mobileInput.type=c,e.mobileInput.disabled=e.input.disabled,e.mobileInput.required=e.input.required,e.mobileInput.placeholder=e.input.placeholder,e.mobileFormatStr=c==="datetime-local"?"Y-m-d\\TH:i:S":c==="date"?"Y-m-d":"H:i:S",e.selectedDates.length>0&&(e.mobileInput.defaultValue=e.mobileInput.value=e.formatDate(e.selectedDates[0],e.mobileFormatStr)),e.config.minDate&&(e.mobileInput.min=e.formatDate(e.config.minDate,"Y-m-d")),e.config.maxDate&&(e.mobileInput.max=e.formatDate(e.config.maxDate,"Y-m-d")),e.input.getAttribute("step")&&(e.mobileInput.step=String(e.input.getAttribute("step"))),e.input.type="hidden",e.altInput!==void 0&&(e.altInput.type="hidden");try{e.input.parentNode&&e.input.parentNode.insertBefore(e.mobileInput,e.input.nextSibling)}catch{}y(e.mobileInput,"change",p=>{e.setDate(pe(p).value,!1,e.mobileFormatStr),Y("onChange"),Y("onClose")})}function Uu(c){if(e.isOpen===!0)return e.close();e.open(c)}function Y(c,p){if(e.config===void 0)return;const h=e.config[c];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,p);c==="onChange"&&(e.input.dispatchEvent(er("change")),e.input.dispatchEvent(er("input")))}function er(c){const p=document.createEvent("Event");return p.initEvent(c,!0,!0),p}function tr(c){for(let p=0;p<e.selectedDates.length;p++)if(me(e.selectedDates[p],c)===0)return""+p;return!1}function Yu(c){return e.config.mode!=="range"||e.selectedDates.length<2?!1:me(c,e.selectedDates[0])>=0&&me(c,e.selectedDates[1])<=0}function qt(){e.config.noCalendar||e.isMobile||!e.monthNav||(e.yearElements.forEach((c,p)=>{const h=new Date(e.currentYear,e.currentMonth,1);h.setMonth(e.currentMonth+p),e.config.showMonths>1||e.config.monthSelectorType==="static"?e.monthElements[p].textContent=It(h.getMonth(),e.config.shorthandCurrentMonth,e.l10n)+" ":e.monthsDropdownContainer.value=h.getMonth().toString(),c.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 ho(c){return e.selectedDates.map(p=>e.formatDate(p,c)).filter((p,h,w)=>e.config.mode!=="range"||e.config.enableTime||w.indexOf(p)===h).join(e.config.mode!=="range"?e.config.conjunction:e.l10n.rangeSeparator)}function Oe(c=!0){e.mobileInput!==void 0&&e.mobileFormatStr&&(e.mobileInput.value=e.latestSelectedDateObj!==void 0?e.formatDate(e.latestSelectedDateObj,e.mobileFormatStr):""),e.input.value=ho(e.config.dateFormat),e.altInput!==void 0&&(e.altInput.value=ho(e.config.altFormat)),c!==!1&&Y("onValueUpdate")}function zu(c){const p=pe(c),h=e.prevMonthNav.contains(p),w=e.nextMonthNav.contains(p);h||w?Jn(h?-1:1):e.yearElements.indexOf(p)>=0?p.select():p.classList.contains("arrowUp")?e.changeYear(e.currentYear+1):p.classList.contains("arrowDown")&&e.changeYear(e.currentYear-1)}function Wu(c){c.preventDefault();const p=c.type==="keydown",h=pe(c),w=h;e.amPM!==void 0&&h===e.amPM&&(e.amPM.textContent=e.l10n.amPM[ge(e.amPM.textContent===e.l10n.amPM[0])]);const v=parseFloat(w.getAttribute("min")),x=parseFloat(w.getAttribute("max")),V=parseFloat(w.getAttribute("step")),_=parseInt(w.value,10),T=c.delta||(p?c.which===38?1:-1:0);let O=_+V*T;if(typeof w.value<"u"&&w.value.length===2){const j=w===e.hourElement,ye=w===e.minuteElement;O<v?(O=x+O+ge(!j)+(ge(j)&&ge(!e.amPM)),ye&&S(void 0,-1,e.hourElement)):O>x&&(O=w===e.hourElement?O-x-ge(!e.amPM):v,ye&&S(void 0,1,e.hourElement)),e.amPM&&j&&(V===1?O+_===23:Math.abs(O-_)>V)&&(e.amPM.textContent=e.l10n.amPM[ge(e.amPM.textContent===e.l10n.amPM[0])]),w.value=se(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=$l(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 K=function(n,r){return typeof n=="string"?Ze(window.document.querySelectorAll(n),r):n instanceof Node?Ze([n],r):Ze(n,r)};K.defaultConfig={},K.l10ns={en:Object.assign({},it),default:Object.assign({},it)},K.localize=n=>{K.l10ns.default=Object.assign(Object.assign({},K.l10ns.default),n)},K.setDefaults=n=>{K.defaultConfig=Object.assign(Object.assign({},K.defaultConfig),n)},K.parseDate=jn({}),K.formatDate=Pa({}),K.compareDates=me,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=K);const tf="",be=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)}}),he=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)}}),_l=["id","aria-labelledby","aria-describedby","placeholder","type","value"],Un=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||ve.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,d)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(be,{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:d[0]||(d[0]=f=>r("update:modelValue",f.target.value))}),null,16,_l),t.createVNode(he,{id:`${t.unref(a)}-help`,text:n.help},null,8,["id","text"])],64))}}),Lt=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||ve.CreateIdAttribute(),i=l=>{r("update:modelValue",l)};return t.onMounted(()=>{K(`#${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(Un,{id:t.unref(a),type:"text",placeholder:"mm-dd-yyyy range",label:n.label,help:n.help},null,8,["id","label","help"]))}}),Sl=["id","aria-labelledby","aria-describedby","value"],Vl={key:0,value:"",disabled:"",selected:""},Bl=["value","textContent"],Yn=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||ve.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(be,{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:d=>{r("update:modelValue",d.target.value)}}),[n.placeholder?(t.openBlock(),t.createElementBlock("option",Vl,t.toDisplayString(n.placeholder),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.options,d=>(t.openBlock(),t.createElementBlock("option",{key:d.value,value:d.value,textContent:t.toDisplayString(d.label)},null,8,Bl))),128))],16,Sl),t.createVNode(he,{id:`${t.unref(a)}-help`,text:n.help},null,8,["id","text"])],64))}}),Ml={class:"md:flex md:items-center md:justify-between bg-white mx-auto py-4 border-t border-gray-100"},Tl={class:"flex-1 min-w-0"},Ol={class:"text-lg leading-6 font-semibold text-gray-900"},Pl={class:"mt-4 flex md:mt-0 md:ml-4"},zn=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=d=>{r("sort-dir-changed",d)},s=d=>{r("date-range-changed",d)};return(d,f)=>(t.openBlock(),t.createElementBlock("div",Ml,[t.createElementVNode("div",Tl,[t.createElementVNode("h1",Ol,t.toDisplayString(n.title),1)]),t.createElementVNode("div",Pl,[t.createVNode(Yn,{modelValue:a.value,"onUpdate:modelValue":[f[0]||(f[0]=u=>a.value=u),l],options:i},null,8,["modelValue"]),t.createVNode(Lt,{modelValue:o.value,"onUpdate:modelValue":[f[1]||(f[1]=u=>o.value=u),s],class:"ml-3"},null,8,["modelValue"])])]))}});function st(n,r="GET",e={}){const o=t.ref(),a=t.shallowRef(),i=t.ref(!1),l=t.ref(!1),s=t.ref(!1),d=t.ref(!1);let f=0,u;const g=()=>{u!==void 0&&u.abort()},m=(b={},y={})=>{f++;const C=f;u=new AbortController,d.value=!1,l.value=!1,s.value=!0;const k={data:["PATCH","patch","POST","post","PUT","put"].includes(r)?b:{},method:r,params:["GET","get"].includes(r)?b:{},signal:u.signal,url:n};return We(k,{...e,...y}).then(E=>(o.value=E,a.value=void 0,d.value=!1,E),E=>{throw a.value=E,Gr(E)&&(d.value=!0),E}).finally(()=>{C==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:d,hasFetched:i,abort:g,execute:m}}function Al(n,r={}){return st(n,"GET",r)}function Il(n,r={}){return st(n,"DELETE",r)}function Ll(n,r={}){return st(n,"POST",r)}function Rl(n,r={}){return st(n,"PUT",r)}function Aa(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 b=ve.CreateIdAttribute();return r.value.set(b,m),(m.persistent===void 0||!m.persistent)&&setTimeout(()=>a(b),e.removeDelay),b},l=m=>i(m),s=(m,b=!1)=>i({message:m,persistent:b,type:"error"}),d=(m,b=!1)=>i({message:m,persistent:b,type:"info"}),f=(m,b=!1)=>i({message:m,persistent:b,type:"success"}),u=(m,b=!1)=>i({message:m,persistent:b,type:"warning"}),g=(m="",b=!1)=>{const y=m||e.email,C=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:C,persistent:b,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:u,info:d,success:f,genericError:g},flashes:r,configure:o}}const Fl=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 Wn;function Re(){return Wn===void 0&&(Wn=Aa()),Wn}const qn={error(n,r){Re().flasher.error(n,r)},info(n,r){Re().flasher.info(n,r)},success(n,r){Re().flasher.success(n,r)},warning(n,r){Re().flasher.warning(n,r)},genericError(n,r){Re().flasher.genericError(n,r)}},jl={class:"px-4 flex items-center justify-between sm:px-0"},Hl={class:"w-0 flex-1 flex"},Ul=[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 ")],Yl={class:"hidden md:flex"},zl=["onClick","textContent"],Wl={class:"w-0 flex-1 flex justify-end"},ql=[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)],Rt=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",jl,[t.createElementVNode("div",Hl,[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"]))},Ul,2)]),t.createElementVNode("div",Yl,[(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(d=>o(s),["prevent"]),textContent:t.toDisplayString(s)},null,10,zl))),128))]),t.createElementVNode("div",Wl,[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"]))},ql,2)])]))}}),Kl={key:0,class:"shadow overflow-hidden sm:rounded-md border"},Ia=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=d=>{const f={page:i.value.page,perPage:i.value.perPage,sortDir:l.value};kn.get(r.url,{},Object.assign(f,e.value)).then(u=>{i.value={page:u.data.page,perPage:u.data.perPage,totalItems:u.data.totalItems,totalPages:u.data.totalPages},a.value=u.data.items,d&&(o.value=a.value.length!=0)},()=>{qn.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),(d,f)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(zn,{"date-range":e.value,"sort-dir":l.value,title:n.title,onSortDirChanged:f[0]||(f[0]=u=>l.value=u),onDateRangeChanged:f[1]||(f[1]=u=>e.value=u)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",Kl,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(u,g)=>(t.openBlock(),t.createElementBlock("li",{key:g,class:t.normalizeClass({"border-t border-gray-200":g>0})},[t.renderSlot(d.$slots,"default",{item:u})],2))),128))])])):t.renderSlot(d.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(Rt,{key:2,modelValue:i.value,"onUpdate:modelValue":[f[2]||(f[2]=u=>i.value=u),f[3]||(f[3]=u=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Gl=["href"],La=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(cl),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,Gl))}}),Jl={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},Xl={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},Ql={class:"p-4"},Zl={class:"flex items-center"},es={class:"w-0 flex-1 flex justify-between"},ts=["innerHTML"],ns={class:"ml-4 shrink-0 flex"},rs=["onClick"],as=[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)],Ft=t.defineComponent({setup(n){const{flasher:r,flashes:e}=Re(),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(()=>{Fl(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(vn),null,{default:t.withCtx(()=>[t.createElementVNode("div",Jl,[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",Xl,[t.createElementVNode("div",Ql,[t.createElementVNode("div",Zl,[t.createElementVNode("div",es,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,ts)]),t.createElementVNode("div",ns,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:d=>t.unref(r).remove(l)},as,8,rs)])])])])],2))),128))]),_:1})])]),_:1}))}}),sf="";function os(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 is(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 ls(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 Ra(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 jt(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 ss={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},cs=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),ds={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"},us={class:"block absolute top-0 right-0 pt-4 pr-4"},fs=t.createElementVNode("span",{class:"sr-only"},"Close",-1),ps={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},ms={class:"mt-3 sm:mt-0 sm:text-left"},hs={class:"mt-2"},gs={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},bs=["disabled","textContent"],Fa=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(St),{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",ss,[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}),cs,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",ds,[t.createElementVNode("div",us,[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))},[fs,t.createVNode(t.unref(jt),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",ps,[t.createElementVNode("div",ms,[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",hs,[t.renderSlot(a.$slots,"default")])])]),n.submitText?(t.openBlock(),t.createElementBlock("div",gs,[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,bs),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"]))}}),ys={class:"aspect-square overflow-hidden"},ws={class:"flex justify-center relative"},xs={class:"sr-only"},Cs=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),Es=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),Kn=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",ys,[t.createElementVNode("div",ws,[t.createElementVNode("p",xs,[t.renderSlot(e.$slots,"default")]),Cs,Es])])],2)}}}),ks={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"},vs={class:"mt-2"},Ht=t.defineComponent({setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=Wr(),s=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(i.value=a.value[r.value]),l.value=!0},d=()=>{window.setTimeout(()=>{l.value=!1},2500)};return(f,u)=>(t.openBlock(),t.createBlock(t.unref(vn),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",ks,[t.createVNode(Kn,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",vs,[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:d,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}))}}),Ds={class:"h-screen flex overflow-hidden bg-gray-100"},Ns={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},$s={class:"absolute top-0 right-0 -mr-12 pt-2"},_s=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),Ss={class:"shrink-0 flex justify-center px-4"},Vs=["src"],Bs={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},Ms={class:"flex-1 px-2 space-y-1"},Ts=["href","target"],Os={key:0,class:"mt-auto"},Ps={class:"mt-6 px-2"},As=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),Is={class:"hidden md:flex md:shrink-0"},Ls={class:"flex flex-col w-64"},Rs={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},Fs={class:"flex items-center shrink-0 px-4"},js=["src"],Hs={class:"mt-5 grow flex flex-col"},Us={class:"flex-1 px-2 bg-white space-y-1"},Ys=["href","target"],zs={key:0,class:"mt-atuo"},Ws={class:"mt-6 px-2"},qs={class:"flex flex-col w-0 flex-1 overflow-hidden"},Ks={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},Gs=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),Js={class:"flex-1 px-4 flex justify-between"},Xs={class:"flex-1 flex"},Qs={class:"flex items-center text-2xl text-white"},Zs={class:"ml-4 flex items-center md:ml-6"},ec=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),tc=["href"],nc={class:"flex-1 relative overflow-y-auto focus:outline-none"},rc={class:"mx-auto"},ja=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",Ds,[t.createVNode(t.unref(ot),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(St),{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",Ns,[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",$s,[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)},[_s,t.createVNode(t.unref(jt),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",Ss,[t.createElementVNode("img",{class:"w-auto h-12",src:n.iconUrl,alt:"Logo"},null,8,Vs)]),t.createElementVNode("div",Bs,[t.createElementVNode("nav",Ms,[(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,Ts))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Os,[t.createElementVNode("div",Ps,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),As]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",Is,[t.createElementVNode("div",Ls,[t.createElementVNode("div",Rs,[t.createElementVNode("div",Fs,[t.createElementVNode("img",{class:"w-auto h-12",src:n.iconUrl,alt:"Logo"},null,8,js)]),t.createElementVNode("div",Hs,[t.createElementVNode("nav",Us,[(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,Ys))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",zs,[t.createElementVNode("div",Ws,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",qs,[t.createElementVNode("div",Ks,[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)},[Gs,t.createVNode(t.unref(is),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",Js,[t.createElementVNode("div",Xs,[t.createElementVNode("h1",Qs,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Zs,[t.createVNode(t.unref(Sn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Vn),{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(()=>[ec,t.createVNode(t.unref(ll),{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(Bn),{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(Mn),{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,tc)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",nc,[t.createElementVNode("div",rc,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(Ft),t.createVNode(Ht)],64))}});function ac(n,r=100){let e;return(...o)=>{e||(n.apply(o),e=!0,setTimeout(()=>e=!1,r))}}const ct=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="",u="";switch(r.position){case"top-left":f="top-0 right-0 -translate-y-full justify-end",u="bottom-full";break;case"top-center":f="top-0 -translate-y-full -translate-x-full left-1/2 justify-end",u="bottom-full translate-x-1/2";break;case"top-right":f="top-0 -translate-y-full left-0 -translate-x-full justify-end",u="bottom-full translate-x-full";break;case"bottom-left":f="top-full right-0 justify-end",u="top-full";break;case"bottom-center":f="top-full -translate-x-full left-1/2 justify-end",u="top-full translate-x-1/2";break;case"bottom-right":f="top-full left-0 -translate-x-full justify-end",u="top-full translate-x-full";break;case"left":f="top-1/2 left-0 -translate-y-1/2 -translate-x-full justify-end",u="-translate-y-1/2";break;case"right":f="top-1/2 -translate-y-1/2 right-0 justify-end",u="translate-x-full -translate-y-1/2";break}return{wrapper:f,content:u}}),d=t.computed(()=>{var S,P;if(!((S=a==null?void 0:a.value)!=null&&S.el)||!((P=o==null?void 0:o.value)!=null&&P.el))return{};const{vw:f,vh:u}=i.value,g=10,m=o.value.el.getBoundingClientRect(),b=a.value.el.firstChild.getBoundingClientRect(),y=u-m.bottom,C=m.top>y,k=f-m.left,E=m.left>k;let B=0;return E?(b.width>m.right?B=m.right-b.width+(b.width-m.right):B=m.right-b.width,f>b.width+g&&(B=B+g)):(b.width>k?B=m.left-(b.width-k):B=m.left,f>b.width+g&&(B=B-g)),{wrapper:{top:C?"auto":"100%",bottom:C?"100%":"auto",transform:`translate(${m.left*-1}px, 0)`,width:`${f}px`},content:{top:C?"auto":"100%",bottom:C?"100%":"auto",transform:`translate(${B}px, 0)`}}});if(r.position==="auto"){const f=ac(()=>{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,u)=>(t.openBlock(),t.createBlock(t.unref(ya),{class:"relative flex",as:n.as},{default:t.withCtx(({open:g,close:m})=>[t.createVNode(t.unref(Ki),{ref_key:"trigger",ref:o},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"button",{open:g,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(Gi),{ref_key:"wrapper",ref:a,class:t.normalizeClass(["absolute z-10",t.unref(l).wrapper]),style:t.normalizeStyle(n.position==="auto"?t.unref(d).wrapper:{})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(t.unref(l).content),style:t.normalizeStyle(n.position==="auto"?t.unref(d).content:{})},[t.renderSlot(f.$slots,"default",{open:g,close:m})],6)]),_:2},1032,["class","style"])]),_:2},1024)]),_:3},8,["as"]))}}),oc=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},ic={},lc={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function sc(n,r){return t.openBlock(),t.createElementBlock("div",lc,[t.renderSlot(n.$slots,"default")])}const Ha=oc(ic,[["render",sc]]),cc={class:"absolute inset-0 overflow-hidden"},dc={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},uc={class:"w-screen max-w-md"},fc={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},pc={class:"py-6 px-4 bg-blue-700 sm:px-6"},mc={class:"flex items-center justify-between"},hc={class:"ml-3 h-7 flex items-center"},gc=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),bc={class:"mt-1"},yc=["textContent"],wc={class:"relative flex-1 py-6 px-4 sm:px-6"},Ua=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(St),{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",cc,[t.createVNode(t.unref(Vt),{class:"absolute inset-0"}),t.createElementVNode("div",dc,[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",uc,[t.createElementVNode("div",fc,[t.createElementVNode("div",pc,[t.createElementVNode("div",mc,[t.createVNode(t.unref(_n),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.header),1)]),_:1}),t.createElementVNode("div",hc,[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())},[gc,t.createVNode(t.unref(jt),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",bc,[t.createElementVNode("p",{class:"text-blue-300",textContent:t.toDisplayString(n.description)},null,8,yc)])]),t.createElementVNode("div",wc,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),xc={class:"leading-none w-4 h-4"},Cc=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),Ec={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"},Ya=t.defineComponent({props:{as:{default:"span"},position:{default:"auto"}},setup(n){return(r,e)=>(t.openBlock(),t.createBlock(ct,{position:n.position,as:n.as},{button:t.withCtx(()=>[t.createElementVNode("div",xc,[t.createVNode(t.unref(os)),Cc])]),default:t.withCtx(()=>[t.createElementVNode("div",Ec,[t.renderSlot(r.$slots,"default")])]),_:3},8,["position","as"]))}}),kc={class:"min-h-screen bg-gray-100"},vc={class:"mx-auto px-4 sm:px-6 lg:px-8"},Dc={class:"flex justify-between h-16"},Nc={class:"flex"},$c={class:"shrink-0 flex items-center"},_c=["src"],Sc={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},Vc=["href","aria-current"],Bc={class:"hidden sm:ml-6 sm:flex sm:items-center"},Mc=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Tc=["href"],Oc={class:"-mr-2 flex items-center sm:hidden"},Pc=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Ac={class:"pt-2 pb-3 space-y-1"},Ic=["href","aria-current"],Lc={class:"pt-4 pb-3 border-t border-gray-200"},Rc={class:"flex items-center px-4"},Fc={class:"shrink-0"},jc={class:"ml-3"},Hc=["textContent"],Uc=["textContent"],Yc={class:"mt-3 space-y-1"},zc=["href"],Wc={class:"mx-auto sm:px-6 lg:px-8"},qc={class:"px-4 py-8 sm:px-0"},za=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",kc,[t.createVNode(t.unref(Fi),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",vc,[t.createElementVNode("div",Dc,[t.createElementVNode("div",Nc,[t.createElementVNode("div",$c,[t.createElementVNode("img",{class:"block h-8 w-auto",src:n.iconUrl,alt:"XY Trees"},null,8,_c)]),t.createElementVNode("div",Sc,[(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,Vc))),128))])]),t.createElementVNode("div",Bc,[t.createVNode(t.unref(Sn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Vn),{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(()=>[Mc,t.createVNode(t.unref(Ra),{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(Bn),{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(Mn),{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,Tc)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",Oc,[t.createVNode(t.unref(ji),{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(()=>[Pc,i?(t.openBlock(),t.createBlock(t.unref(jt),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(ls),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Hi),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",Ac,[(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,Ic))),128))]),t.createElementVNode("div",Lc,[t.createElementVNode("div",Rc,[t.createElementVNode("div",Fc,[t.createVNode(t.unref(Ra),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",jc,[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,Hc)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(n.currentUser.email)},null,8,Uc)])]),t.createElementVNode("div",Yc,[(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,zc))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",Wc,[t.createElementVNode("div",qc,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(Ft),t.createVNode(Ht)],64))}}),Kc=n=>n==null,Gc={refresh(){console.warn("refresh() was called on a static table, did you mean to use DynamicTable?")},reset(){console.warn("reset() was called on a static table, did you mean to use DynamicTable?")}},Wa=(n,r,e,o=Gc)=>{const a=t.ref(r),i=t.ref(n),l=t.ref(e),s=t.computed(()=>l.value.actions.length>0),d=t.computed(()=>a.value.map(u=>{let g="";switch((u==null?void 0:u.alignment)||"left"){case"left":g="text-left";break;case"right":g="text-right";break;case"center":g="text-center";break}return{...u,alignment:g}})),f=t.computed(()=>i.value.map((u,g)=>({actions:l.value.actions.map(m=>({...m,disabled:typeof m.disabled=="function"?m.disabled.apply(void 0,[u,g]):m.disabled,onClick:()=>m.onClick(u,g,o),show:typeof m.show=="function"?m.show.apply(void 0,[u,g]):m.show})),rowData:u,cells:d.value.map(m=>{const b=typeof m.render=="string"?u[m.render]:m.render(u,g),y=(m==null?void 0:m.classNames)||"";return{...m,isComponent:t.isVNode(b),classNames:typeof y=="function"?y.apply(void 0,[u,g]):y,val:b}})})));return{columns:d,hasActions:s,isEmptyCellValue:Kc,rows:f}},Jc={key:0,class:"flex items-center space-x-2 justify-end"},Xc={class:"isolate inline-flex rounded-md shadow-sm"},Qc=["disabled","onClick"],Zc={class:"relative inline-flex items-center gap-x-1.5"},qa=t.defineComponent({props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Sa(t.toRef(r,"actions"));return(a,i)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",Jc,[t.createElementVNode("span",Xc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(l,s)=>(t.openBlock(),t.createElementBlock("button",{key:s,type:"button",class:t.normalizeClass(["group relative inline-flex items-center bg-white px-3 py-2 text-sm font-semibold text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 disabled:text-gray-400 disabled:cursor-not-allowed",{"rounded-l-md":s===0,"-ml-px":s>0,"rounded-r-md":s===t.unref(e).length-1}]),disabled:l.disabled,onClick:t.withModifiers(l.onClick,["stop"])},[t.createElementVNode("span",Zc,[l.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{key:0,class:t.normalizeClass(["-ml-0.5 h-4 w-4 group-disabled:text-gray-300",l.label?"text-gray-400":"text-gray-600"]),"aria-hidden":"true"},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(l.label),1)])],10,Qc))),128))])])):t.createCommentVNode("",!0)}}),ed={class:"flex flex-col"},td={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},nd={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},rd={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},ad={class:"min-w-full divide-y divide-gray-200"},od={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},id={class:"bg-white divide-y divide-gray-200"},ld={key:0,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"},sd={key:0},cd=["colspan"],Ka=t.defineComponent({props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:null,tableData:null},setup(n){const r=n,{columns:e,hasActions:o,isEmptyCellValue:a,rows:i}=Wa(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(l,s)=>(t.openBlock(),t.createElementBlock("div",ed,[t.createElementVNode("div",td,[t.createElementVNode("div",nd,[t.createElementVNode("div",rd,[t.createElementVNode("table",ad,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,f)=>(t.openBlock(),t.createElementBlock("th",{key:f,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",d.alignment])},t.toDisplayString(d.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",od)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",id,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(d,f)=>(t.openBlock(),t.createElementBlock("tr",{key:f},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.cells,(u,g)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:g,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",u.alignment])},{default:t.withCtx(()=>[u.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.classNames)},t.toDisplayString(t.unref(a)(u.val)?"-":String(u.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",ld,[n.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(Ot),{key:0,actions:d.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(qa,{key:1,actions:d.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(i).length===0?(t.openBlock(),t.createElementBlock("tr",sd,[t.createElementVNode("td",{colspan:t.unref(e).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,cd)])):t.createCommentVNode("",!0)])])])])])]))}}),dd={class:"flex items-center justify-center space-x-8"},ud={class:"font-medium"},fd={class:"flex items-center space-x-5"},pd={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},md={key:1,class:"relative flex items-center justify-center"},hd=[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)],gd={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},bd={key:0,class:"flex shrink-0"},yd={key:0,class:"inline-flex rounded-md shadow-sm"},wd=["textContent"],xd={class:"ml-3 inline-flex rounded-md shadow-sm"},Cd=["textContent"],Ga=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",dd,[t.createElementVNode("p",ud,"Step "+t.toDisplayString(n.step)+" of "+t.toDisplayString(n.total),1),t.createElementVNode("ul",fd,[(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",pd)):n.step===l?(t.openBlock(),t.createElementBlock("div",md,hd)):(t.openBlock(),t.createElementBlock("span",gd))]))),128))])]),n.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",bd,[n.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",yd,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(n.previousText)},null,8,wd)])),t.createElementVNode("span",xd,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(n.nextText)},null,8,Cd)])]))]))}}),Ed={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},kd={key:0,class:"w-full max-w-lg lg:max-w-xs"},vd=t.createElementVNode("label",{for:"search",class:"sr-only"},"Search",-1),Dd={class:"relative"},Nd=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),$d={key:1,class:"w-full max-w-lg lg:max-w-xs"},_d={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},Sd={class:"min-w-full divide-y divide-gray-200"},Vd={key:0},Bd=["onClick"],Md={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},Td=[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)],Od={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Pd=[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)],Ad={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Id=[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)],Ld={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},Rd={class:"bg-white divide-y divide-gray-200"},Fd=["onClick"],jd={key:0,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"},Hd={key:0},Ud=["colspan"],Ja=t.defineComponent({props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:null,tableOptions:null},emits:["click:row"],setup(n,{expose:r}){const e=n,o=()=>{const S={minDate:b.value.minDate,maxDate:b.value.maxDate,page:y.value.page,perPage:y.value.perPage,sort:g.value,sortDir:m.value,q:C.value};kn.get(e.tableOptions.url,{skipLoader:!0},S).then(P=>{y.value={page:P.data.page,perPage:P.data.perPage,totalItems:P.data.totalItems,totalPages:P.data.totalPages},i.value=P.data.items},()=>{qn.genericError()})},a=()=>{y.value.page=1,o()},i=t.ref([]),l={refresh:o,reset:a},{columns:s,hasActions:d,isEmptyCellValue:f,rows:u}=Wa(i,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),l),g=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),m=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),b=t.ref({minDate:0,maxDate:0}),y=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),C=t.ref(""),k=S=>{y.value.page=1,b.value=S,o()},E=S=>{g.value==S?m.value=m.value==="desc"?"asc":"desc":(g.value=S,m.value="desc"),o()},B=t.computed(()=>!!u.value.length);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(l),o(),(S,P)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Ed,[n.tableOptions.search?(t.openBlock(),t.createElementBlock("div",kd,[vd,t.createElementVNode("div",Dd,[Nd,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":P[0]||(P[0]=D=>C.value=D),class:"pl-10",type:"search",placeholder:"Search",onChange:P[1]||(P[1]=D=>a())},null,544),[[t.vModelText,C.value,void 0,{trim:!0}]])])])):t.createCommentVNode("",!0),n.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",$d,[t.createVNode(Lt,{modelValue:b.value,"onUpdate:modelValue":[P[2]||(P[2]=D=>b.value=D),k]},null,8,["modelValue"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_d,[t.createElementVNode("table",Sd,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(D,ce)=>(t.openBlock(),t.createElementBlock("th",{key:ce,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",D.alignment])},[D.title?(t.openBlock(),t.createElementBlock("span",Vd,t.toDisplayString(D.title),1)):t.createCommentVNode("",!0),D.sort?(t.openBlock(),t.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:t.withModifiers(z=>E(D.sort),["prevent"])},[g.value!==D.sort?(t.openBlock(),t.createElementBlock("svg",Md,Td)):m.value=="desc"?(t.openBlock(),t.createElementBlock("svg",Od,Pd)):(t.openBlock(),t.createElementBlock("svg",Ad,Id))],8,Bd)):t.createCommentVNode("",!0)],2))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("th",Ld)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",Rd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(u),(D,ce)=>(t.openBlock(),t.createElementBlock("tr",{key:ce,onClick:z=>S.$emit("click:row",D.rowData)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.cells,(z,_e)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:_e,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",z.alignment])},{default:t.withCtx(()=>[z.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(z.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(z.classNames)},t.toDisplayString(t.unref(f)(z.val)?"-":String(z.val)),3))]),_:2},1032,["class"]))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("td",jd,[n.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(Ot),{key:0,actions:D.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(qa,{key:1,actions:D.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,Fd))),128)),t.unref(B)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Hd,[t.createElementVNode("td",{colspan:t.unref(u).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Ud)]))])])]),t.unref(B)?(t.openBlock(),t.createBlock(Rt,{key:0,modelValue:y.value,"onUpdate:modelValue":[P[3]||(P[3]=D=>y.value=D),P[4]||(P[4]=D=>o())]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Yd=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),zd={class:"hidden sm:block"},Wd=["onClick","textContent"],Xa=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 d="";return e.pillDesign?(d="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.modelValue===l?d=d+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":d=d+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",d):(d="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.modelValue===l?d=d+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":d=d+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",s&&(d=d+" ml-8"),d)},i=t.computed(()=>!e.pillDesign);return(l,s)=>{const d=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":n.pillDesign}])},[Yd,t.createVNode(d,{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",zd,[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,u)=>(t.openBlock(),t.createElementBlock("a",{key:u,href:"#",class:t.normalizeClass(a(f.value,u>0)),onClick:t.withModifiers(g=>o(f.value),["prevent"]),textContent:t.toDisplayString(f.label)},null,10,Wd))),128))],2)],2)])])}}}),qd=t.createElementVNode("span",{class:"sr-only"},"Use",-1),Qa=t.defineComponent({props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){return(e,o)=>(t.openBlock(),t.createBlock(t.unref(el),{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(()=>[qd,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"]))}}),Kd={class:"relative flex items-start"},Gd={class:"flex items-center h-5"},Jd=["id","aria-labelledby","aria-describedby","checked"],Xd={class:"ml-3"},Za=t.defineComponent({props:{label:{default:""},help:{default:""},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||ve.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock("div",Kd,[t.createElementVNode("div",Gd,[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,Jd)]),t.createElementVNode("div",Xd,[t.createVNode(be,{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(he,{id:`${t.unref(o)}-help`,class:"-mt-1",text:n.help},null,8,["id","text"])])]))}});function Qd(n,r={}){return n?n(r).some(e=>e.type===t.Comment||Array.isArray(e.children)&&!e.children.length?!1:e.type!==t.Text||typeof e.children=="string"&&e.children.trim()!==""):!1}const dt=t.defineComponent({props:{tag:{default:"legend"}},setup(n){return(r,e)=>t.unref(Qd)(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)}}),Zd=["aria-labelledby","aria-describedby"],eu={key:0,class:"space-y-0.5"},tu={key:0},nu={class:"flex"},ru={class:"flex items-center h-5"},au=["id","aria-labelledby","aria-describedby","checked","disabled"],ou={class:"ml-3"},eo=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||ve.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0),s=(d,f)=>{let u=[...e.modelValue];d?u.push(f):u.splice(u.indexOf(f),1),r("update:modelValue",u)};return(d,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",eu,[t.createVNode(dt,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createElementBlock("div",tu,t.toDisplayString(n.legend),1)):t.createCommentVNode("",!0),d.$slots.legend?t.renderSlot(d.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(he,{id:`${t.unref(i)}-help`,tag:"p",text:n.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",nu,[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,(u,g)=>(t.openBlock(),t.createElementBlock("div",{key:u.value,class:"flex items-start"},[t.createElementVNode("div",ru,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${g}`,"aria-labelledby":`${t.unref(i)}-${g}-label`,"aria-describedby":u!=null&&u.help&&u.help?`${t.unref(i)}-${g}-help`:void 0,checked:n.modelValue.includes(u.value),disabled:u.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,u.value)},...d.$attrs}),null,16,au)]),t.createElementVNode("div",ou,[t.createVNode(be,{id:`${t.unref(i)}-${g}-label`,class:"mt-auto",disabled:d.$attrs.hasOwnProperty("disabled")&&d.$attrs.disabled!==!1||u.disabled===!0,for:`${t.unref(i)}-${g}`,label:u.label},null,8,["id","disabled","for","label"]),t.createVNode(he,{id:`${t.unref(i)}-${g}-help`,class:"-mt-1",text:u.help},null,8,["id","text"])])]))),128))],2)])],8,Zd))}}),iu=["aria-labelledby","aria-describedby"],lu={key:0,class:"space-y-0.5"},su={key:0},cu={class:"flex"},du={class:"flex items-center h-5"},uu=["id","aria-describedby","aria-labelledby","checked","disabled","name","value"],fu={class:"ml-3"},to=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||ve.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0);return(s,d)=>(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",lu,[t.createVNode(dt,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createElementBlock("div",su,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(he,{id:`${t.unref(i)}-help`,tag:"p",text:n.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",cu,[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,u)=>(t.openBlock(),t.createElementBlock("div",{key:f.value,class:"flex items-start"},[t.createElementVNode("div",du,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${u}`,"aria-describedby":f!=null&&f.help&&f.help?`${t.unref(i)}-${u}-help`:void 0,"aria-labelledby":`${t.unref(i)}-${u}-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,uu)]),t.createElementVNode("div",fu,[t.createVNode(be,{id:`${t.unref(i)}-${u}-label`,class:"mt-auto",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1||f.disabled===!0,for:`${t.unref(i)}-${u}`,label:f.label},null,8,["id","disabled","for","label"]),t.createVNode(he,{id:`${t.unref(i)}-${u}-help`,class:"-mt-1",text:f.help},null,8,["id","text"])])]))),128))],2)])],8,iu))}}),pu=["id"],mu={class:"flex-1 flex pr-1"},hu={class:"flex flex-col"},gu={key:1,class:"mt-auto mb-0"},bu=["checked","name","required","value"],no=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=ve.CreateIdAttribute(),i=t.ref(),l=t.ref(),s=t.computed(()=>e.modelValue===void 0?i.value:e.modelValue),d=u=>{i.value=u,l.value=!1,r("update:modelValue",u)},f=t.computed(()=>typeof o.name=="string"&&o.name!==""?o.name:a);return(u,g)=>(t.openBlock(),t.createBlock(t.unref(Xi),{"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":d},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createBlock(t.unref(va),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(dt,{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(Tn),{key:1},{default:t.withCtx(()=>[t.createVNode(he,{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,pu)):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(Qi),{key:m.value,as:"template",disabled:m!=null&&m.disabled?m.disabled:!1,value:m.value},{default:t.withCtx(({active:b,checked:y,disabled:C})=>[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",b?"border-blue-500 ring-2 ring-blue-500":"",C?"cursor-not-allowed opacity-75":""]])},[t.createElementVNode("div",mu,[t.createElementVNode("div",hu,[t.createVNode(t.unref(va),{as:"div"},{default:t.withCtx(()=>[t.createVNode(be,{tag:"div",class:"mt-auto mb-auto",label:m.label},null,8,["label"])]),_:2},1024),m.help?(t.openBlock(),t.createBlock(t.unref(Tn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(he,{tag:"div",class:"mt-auto",text:m.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),m.sublabel||u.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",gu,[t.createVNode(t.unref(Tn),{as:"div",class:"font-semibold leading-snug mt-4 text-gray-900 text-sm"},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"sublabel",{active:b,checked:y,disabled:C,option:m},()=>[t.createTextVNode(t.toDisplayString(m.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(il),{class:t.normalizeClass([y?"":"invisible","h-5 w-5 text-blue-600"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([b?"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:g[0]||(g[0]=k=>l.value=!0)},null,40,bu)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["model-value","disabled","aria-invalid","aria-errormessage"]))}}),yu=["id","aria-labelledby","aria-describedby","value"],ro=t.defineComponent({props:{help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:model-value"],setup(n,{emit:r}){const o=t.useAttrs().id||ve.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(be,{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,yu),t.createVNode(he,{id:`${t.unref(o)}-help`,text:n.help},null,8,["id","text"])],64))}}),wu=["aria-labelledby","aria-describedby"],xu={key:0,class:"space-y-0.5"},Cu=["for"],Eu=["id","name","checked"],ku=["for"],vu=["id","name","checked"],ao=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||ve.CreateIdAttribute(),i=t.computed(()=>typeof e.name=="string"&&e.name!==""),l=s=>{r("update:modelValue",s.target.value==="true")};return(s,d)=>(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",xu,[t.createVNode(be,{class:"block my-auto",label:n.legend,tag:"legend"},null,8,["label"]),t.createVNode(he,{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,Eu),t.createVNode(be,{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,vu),t.createVNode(be,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"No",tag:"span"},null,8,["disabled"])],10,ku)])],8,wu))}}),Du=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:Ot,BaseInput:Un,Cards:Va,Checkbox:Za,ContentModal:Ba,DataTable:Ka,DateFilter:zn,DateRangePicker:Lt,DetailList:Ia,DownloadCell:La,DynamicTable:Ja,FieldsetLegend:dt,Flash:Ft,InputHelp:he,InputLabel:be,Modal:Fa,MultiCheckboxes:eo,Paginator:Rt,Popover:ct,PopoverContent:Ha,PopoverPosition:ct,Radio:to,RadioCards:no,Select:Yn,SidebarLayout:ja,Slideover:Ua,Spinner:Ht,StackedLayout:za,Steps:Ga,Tabs:Xa,TextArea:ro,Toggle:Qa,Tooltip:Ya,XYSpinner:Kn,YesOrNoRadio:ao},Symbol.toStringTag,{value:"Module"})),Nu=function(r){Object.entries(Du).forEach(([e,o])=>{r.component(e,o)})};$.ActionsDropdown=Ot,$.BaseAPI=kn,$.BaseInput=Un,$.Cards=Va,$.Checkbox=Za,$.ContentModal=Ba,$.DataTable=Ka,$.DateFilter=zn,$.DateRangePicker=Lt,$.DetailList=Ia,$.DownloadCell=La,$.DynamicTable=Ja,$.FieldsetLegend=dt,$.Flash=Ft,$.InputHelp=he,$.InputLabel=be,$.Modal=Fa,$.MultiCheckboxes=eo,$.Paginator=Rt,$.Popover=ct,$.PopoverContent=Ha,$.PopoverPosition=ct,$.Radio=to,$.RadioCards=no,$.Select=Yn,$.SidebarLayout=ja,$.Slideover=Ua,$.Spinner=Ht,$.StackedLayout=za,$.Steps=Ga,$.Tabs=Xa,$.TextArea=ro,$.Toggle=Qa,$.Tooltip=Ya,$.XYSpinner=Kn,$.YesOrNoRadio=ao,$.default=Nu,$.isHttpCancel=Gr,$.isHttpError=Kr,$.useAppFlasher=qn,$.useAppFlashes=Re,$.useAppSpinner=En,$.useBaseAPI=st,$.useBaseAPIDelete=Il,$.useBaseAPIGet=Al,$.useBaseAPIPost=Ll,$.useBaseAPIPut=Rl,$.useFlashes=Aa,$.useSpinnerDisplay=zr,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
12
|
+
if the issue persists.`:"Whoops! Something went wrong.";return i({message:C,persistent:b,type:"error"})};return o(n||{}),{flasher:{add:i,remove:a,flash:l,error:s,warning:u,info:d,success:f,genericError:g},flashes:r,configure:o}}const Fl=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 Wn;function Re(){return Wn===void 0&&(Wn=Aa()),Wn}const qn={error(n,r){Re().flasher.error(n,r)},info(n,r){Re().flasher.info(n,r)},success(n,r){Re().flasher.success(n,r)},warning(n,r){Re().flasher.warning(n,r)},genericError(n,r){Re().flasher.genericError(n,r)}},jl={class:"px-4 flex items-center justify-between sm:px-0"},Hl={class:"w-0 flex-1 flex"},Ul=[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 ")],Yl={class:"hidden md:flex"},zl=["onClick","textContent"],Wl={class:"w-0 flex-1 flex justify-end"},ql=[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)],Rt=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",jl,[t.createElementVNode("div",Hl,[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"]))},Ul,2)]),t.createElementVNode("div",Yl,[(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(d=>o(s),["prevent"]),textContent:t.toDisplayString(s)},null,10,zl))),128))]),t.createElementVNode("div",Wl,[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"]))},ql,2)])]))}}),Kl={key:0,class:"shadow overflow-hidden sm:rounded-md border"},Ia=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=d=>{const f={page:i.value.page,perPage:i.value.perPage,sortDir:l.value};kn.get(r.url,{},Object.assign(f,e.value)).then(u=>{i.value={page:u.data.page,perPage:u.data.perPage,totalItems:u.data.totalItems,totalPages:u.data.totalPages},a.value=u.data.items,d&&(o.value=a.value.length!=0)},()=>{qn.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),(d,f)=>(t.openBlock(),t.createElementBlock("div",null,[t.createVNode(zn,{"date-range":e.value,"sort-dir":l.value,title:n.title,onSortDirChanged:f[0]||(f[0]=u=>l.value=u),onDateRangeChanged:f[1]||(f[1]=u=>e.value=u)},null,8,["date-range","sort-dir","title"]),o.value?(t.openBlock(),t.createElementBlock("div",Kl,[t.createElementVNode("ul",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,(u,g)=>(t.openBlock(),t.createElementBlock("li",{key:g,class:t.normalizeClass({"border-t border-gray-200":g>0})},[t.renderSlot(d.$slots,"default",{item:u})],2))),128))])])):t.renderSlot(d.$slots,"empty",{key:1}),o.value?(t.openBlock(),t.createBlock(Rt,{key:2,modelValue:i.value,"onUpdate:modelValue":[f[2]||(f[2]=u=>i.value=u),f[3]||(f[3]=u=>s(!1))]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Gl=["href"],La=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(cl),{class:"h-6 w-6 group-hover:text-gray-500 transition"})],8,Gl))}}),Jl={class:"fixed inset-0 flex flex-col items-end justify-end px-4 py-6 pointer-events-none sm:p-6 z-[45]"},Xl={class:"rounded-lg ring-1 ring-black ring-opacity-5 overflow-hidden"},Ql={class:"p-4"},Zl={class:"flex items-center"},es={class:"w-0 flex-1 flex justify-between"},ts=["innerHTML"],ns={class:"ml-4 shrink-0 flex"},rs=["onClick"],as=[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)],Ft=t.defineComponent({setup(n){const{flasher:r,flashes:e}=Re(),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(()=>{Fl(r)}),(a,i)=>(t.openBlock(),t.createBlock(t.unref(vn),null,{default:t.withCtx(()=>[t.createElementVNode("div",Jl,[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",Xl,[t.createElementVNode("div",Ql,[t.createElementVNode("div",Zl,[t.createElementVNode("div",es,[t.createElementVNode("p",{class:"w-0 flex-1 text-sm leading-5 font-medium text-gray-900",innerHTML:s.message},null,8,ts)]),t.createElementVNode("div",ns,[t.createElementVNode("button",{class:"inline-flex text-gray-400 focus:outline-none focus:text-gray-500 transition ease-in-out duration-150",onClick:d=>t.unref(r).remove(l)},as,8,rs)])])])])],2))),128))]),_:1})])]),_:1}))}}),sf="";function os(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 is(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 ls(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 Ra(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 jt(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 ss={class:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"},cs=t.createElementVNode("span",{class:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true"},"",-1),ds={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"},us={class:"block absolute top-0 right-0 pt-4 pr-4"},fs=t.createElementVNode("span",{class:"sr-only"},"Close",-1),ps={class:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"},ms={class:"mt-3 sm:mt-0 sm:text-left"},hs={class:"mt-2"},gs={key:0,class:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"},bs=["disabled","textContent"],Fa=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(St),{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",ss,[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}),cs,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",ds,[t.createElementVNode("div",us,[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))},[fs,t.createVNode(t.unref(jt),{class:"h-6 w-6","aria-hidden":"true"})])]),t.createElementVNode("div",ps,[t.createElementVNode("div",ms,[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",hs,[t.renderSlot(a.$slots,"default")])])]),n.submitText?(t.openBlock(),t.createElementBlock("div",gs,[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,bs),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"]))}}),ys={class:"aspect-square overflow-hidden"},ws={class:"flex justify-center relative"},xs={class:"sr-only"},Cs=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),Es=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),Kn=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",ys,[t.createElementVNode("div",ws,[t.createElementVNode("p",xs,[t.renderSlot(e.$slots,"default")]),Cs,Es])])],2)}}}),ks={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"},vs={class:"mt-2"},Ht=t.defineComponent({setup(n){const{idx:r,loading:e,maxIdx:o,messages:a,msg:i,showMsg:l}=Wr(),s=()=>{r.value++,r.value>o.value&&(r.value=0),a.value&&(i.value=a.value[r.value]),l.value=!0},d=()=>{window.setTimeout(()=>{l.value=!1},2500)};return(f,u)=>(t.openBlock(),t.createBlock(t.unref(vn),null,{default:t.withCtx(()=>[t.unref(e)?(t.openBlock(),t.createElementBlock("div",ks,[t.createVNode(Kn,{class:"w-32 h-32"}),t.withDirectives(t.createElementVNode("div",vs,[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:d,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}))}}),Ds={class:"h-screen flex overflow-hidden bg-gray-100"},Ns={class:"relative flex-1 flex flex-col max-w-xs w-full pt-5 pb-4 bg-white"},$s={class:"absolute top-0 right-0 -mr-12 pt-2"},_s=t.createElementVNode("span",{class:"sr-only"},"Close sidebar",-1),Ss={class:"shrink-0 flex justify-center px-4"},Vs=["src"],Bs={class:"mt-5 flex flex-col flex-1 h-0 overflow-y-auto"},Ms={class:"flex-1 px-2 space-y-1"},Ts=["href","target"],Os={key:0,class:"mt-auto"},Ps={class:"mt-6 px-2"},As=t.createElementVNode("div",{class:"shrink-0 w-14","aria-hidden":"true"},null,-1),Is={class:"hidden md:flex md:shrink-0"},Ls={class:"flex flex-col w-64"},Rs={class:"flex flex-col grow border-r border-gray-200 pt-5 pb-4 bg-white overflow-y-auto"},Fs={class:"flex items-center shrink-0 px-4"},js=["src"],Hs={class:"mt-5 grow flex flex-col"},Us={class:"flex-1 px-2 bg-white space-y-1"},Ys=["href","target"],zs={key:0,class:"mt-atuo"},Ws={class:"mt-6 px-2"},qs={class:"flex flex-col w-0 flex-1 overflow-hidden"},Ks={class:"relative z-10 shrink-0 flex h-16 bg-xy-blue shadow"},Gs=t.createElementVNode("span",{class:"sr-only"},"Open sidebar",-1),Js={class:"flex-1 px-4 flex justify-between"},Xs={class:"flex-1 flex"},Qs={class:"flex items-center text-2xl text-white"},Zs={class:"ml-4 flex items-center md:ml-6"},ec=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),tc=["href"],nc={class:"flex-1 relative overflow-y-auto focus:outline-none"},rc={class:"mx-auto"},ja=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",Ds,[t.createVNode(t.unref(ot),{as:"template",show:e.value},{default:t.withCtx(()=>[t.createVNode(t.unref(St),{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",Ns,[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",$s,[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)},[_s,t.createVNode(t.unref(jt),{class:"h-6 w-6 text-white","aria-hidden":"true"})])])]),_:1}),t.createElementVNode("div",Ss,[t.createElementVNode("img",{class:"w-auto h-12",src:n.iconUrl,alt:"Logo"},null,8,Vs)]),t.createElementVNode("div",Bs,[t.createElementVNode("nav",Ms,[(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,Ts))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",Os,[t.createElementVNode("div",Ps,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])]),_:3}),As]),_:3},8,["open"])]),_:3},8,["show"]),t.createElementVNode("div",Is,[t.createElementVNode("div",Ls,[t.createElementVNode("div",Rs,[t.createElementVNode("div",Fs,[t.createElementVNode("img",{class:"w-auto h-12",src:n.iconUrl,alt:"Logo"},null,8,js)]),t.createElementVNode("div",Hs,[t.createElementVNode("nav",Us,[(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,Ys))),128))]),a.$slots["sidebar-bottom"]?(t.openBlock(),t.createElementBlock("div",zs,[t.createElementVNode("div",Ws,[t.renderSlot(a.$slots,"sidebar-bottom")])])):t.createCommentVNode("",!0)])])])]),t.createElementVNode("div",qs,[t.createElementVNode("div",Ks,[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)},[Gs,t.createVNode(t.unref(is),{class:"h-6 w-6","aria-hidden":"true"})]),t.createElementVNode("div",Js,[t.createElementVNode("div",Xs,[t.createElementVNode("h1",Qs,[t.renderSlot(a.$slots,"header")])]),t.createElementVNode("div",Zs,[t.createVNode(t.unref(Sn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Vn),{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(()=>[ec,t.createVNode(t.unref(ll),{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(Bn),{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(Mn),{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,tc)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})])])]),t.createElementVNode("main",nc,[t.createElementVNode("div",rc,[t.renderSlot(a.$slots,"default")])])])]),t.createVNode(Ft),t.createVNode(Ht)],64))}});function ac(n,r=100){let e;return(...o)=>{e||(n.apply(o),e=!0,setTimeout(()=>e=!1,r))}}const ct=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="",u="";switch(r.position){case"top-left":f="top-0 right-0 -translate-y-full justify-end",u="bottom-full";break;case"top-center":f="top-0 -translate-y-full -translate-x-full left-1/2 justify-end",u="bottom-full translate-x-1/2";break;case"top-right":f="top-0 -translate-y-full left-0 -translate-x-full justify-end",u="bottom-full translate-x-full";break;case"bottom-left":f="top-full right-0 justify-end",u="top-full";break;case"bottom-center":f="top-full -translate-x-full left-1/2 justify-end",u="top-full translate-x-1/2";break;case"bottom-right":f="top-full left-0 -translate-x-full justify-end",u="top-full translate-x-full";break;case"left":f="top-1/2 left-0 -translate-y-1/2 -translate-x-full justify-end",u="-translate-y-1/2";break;case"right":f="top-1/2 -translate-y-1/2 right-0 justify-end",u="translate-x-full -translate-y-1/2";break}return{wrapper:f,content:u}}),d=t.computed(()=>{var S,P;if(!((S=a==null?void 0:a.value)!=null&&S.el)||!((P=o==null?void 0:o.value)!=null&&P.el))return{};const{vw:f,vh:u}=i.value,g=10,m=o.value.el.getBoundingClientRect(),b=a.value.el.firstChild.getBoundingClientRect(),y=u-m.bottom,C=m.top>y,k=f-m.left,E=m.left>k;let B=0;return E?(b.width>m.right?B=m.right-b.width+(b.width-m.right):B=m.right-b.width,f>b.width+g&&(B=B+g)):(b.width>k?B=m.left-(b.width-k):B=m.left,f>b.width+g&&(B=B-g)),{wrapper:{top:C?"auto":"100%",bottom:C?"100%":"auto",transform:`translate(${m.left*-1}px, 0)`,width:`${f}px`},content:{top:C?"auto":"100%",bottom:C?"100%":"auto",transform:`translate(${B}px, 0)`}}});if(r.position==="auto"){const f=ac(()=>{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,u)=>(t.openBlock(),t.createBlock(t.unref(ya),{class:"relative flex",as:n.as},{default:t.withCtx(({open:g,close:m})=>[t.createVNode(t.unref(Ki),{ref_key:"trigger",ref:o},{default:t.withCtx(()=>[t.renderSlot(f.$slots,"button",{open:g,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(Gi),{ref_key:"wrapper",ref:a,class:t.normalizeClass(["absolute z-10",t.unref(l).wrapper]),style:t.normalizeStyle(n.position==="auto"?t.unref(d).wrapper:{})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(t.unref(l).content),style:t.normalizeStyle(n.position==="auto"?t.unref(d).content:{})},[t.renderSlot(f.$slots,"default",{open:g,close:m})],6)]),_:2},1032,["class","style"])]),_:2},1024)]),_:3},8,["as"]))}}),oc=(n,r)=>{const e=n.__vccOpts||n;for(const[o,a]of r)e[o]=a;return e},ic={},lc={class:"w-full max-w-xs bg-white rounded-md p-2 border border-gray-100 shadow-md"};function sc(n,r){return t.openBlock(),t.createElementBlock("div",lc,[t.renderSlot(n.$slots,"default")])}const Ha=oc(ic,[["render",sc]]),cc={class:"absolute inset-0 overflow-hidden"},dc={class:"fixed inset-y-0 right-0 pl-10 max-w-full flex"},uc={class:"w-screen max-w-md"},fc={class:"h-full flex flex-col bg-white shadow-xl overflow-y-scroll"},pc={class:"py-6 px-4 bg-blue-700 sm:px-6"},mc={class:"flex items-center justify-between"},hc={class:"ml-3 h-7 flex items-center"},gc=t.createElementVNode("span",{class:"sr-only"},"Close panel",-1),bc={class:"mt-1"},yc=["textContent"],wc={class:"relative flex-1 py-6 px-4 sm:px-6"},Ua=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(St),{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",cc,[t.createVNode(t.unref(Vt),{class:"absolute inset-0"}),t.createElementVNode("div",dc,[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",uc,[t.createElementVNode("div",fc,[t.createElementVNode("div",pc,[t.createElementVNode("div",mc,[t.createVNode(t.unref(_n),{as:"h3",class:"text-white"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(n.header),1)]),_:1}),t.createElementVNode("div",hc,[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())},[gc,t.createVNode(t.unref(jt),{class:"h-6 w-6","aria-hidden":"true"})])])]),t.createElementVNode("div",bc,[t.createElementVNode("p",{class:"text-blue-300",textContent:t.toDisplayString(n.description)},null,8,yc)])]),t.createElementVNode("div",wc,[t.renderSlot(i.$slots,"default")]),t.renderSlot(i.$slots,"footer")])])]),_:3})])])]),_:3},8,["open"])]),_:3},8,["show"]))}}),xc={class:"leading-none w-4 h-4"},Cc=t.createElementVNode("div",{class:"p-5 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},null,-1),Ec={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"},Ya=t.defineComponent({props:{as:{default:"span"},position:{default:"auto"}},setup(n){return(r,e)=>(t.openBlock(),t.createBlock(ct,{position:n.position,as:n.as},{button:t.withCtx(()=>[t.createElementVNode("div",xc,[t.createVNode(t.unref(os)),Cc])]),default:t.withCtx(()=>[t.createElementVNode("div",Ec,[t.renderSlot(r.$slots,"default")])]),_:3},8,["position","as"]))}}),kc={class:"min-h-screen bg-gray-100"},vc={class:"mx-auto px-4 sm:px-6 lg:px-8"},Dc={class:"flex justify-between h-16"},Nc={class:"flex"},$c={class:"shrink-0 flex items-center"},_c=["src"],Sc={class:"hidden sm:-my-px sm:ml-6 sm:flex sm:space-x-8"},Vc=["href","aria-current"],Bc={class:"hidden sm:ml-6 sm:flex sm:items-center"},Mc=t.createElementVNode("span",{class:"sr-only"},"Open user menu",-1),Tc=["href"],Oc={class:"-mr-2 flex items-center sm:hidden"},Pc=t.createElementVNode("span",{class:"sr-only"},"Open main menu",-1),Ac={class:"pt-2 pb-3 space-y-1"},Ic=["href","aria-current"],Lc={class:"pt-4 pb-3 border-t border-gray-200"},Rc={class:"flex items-center px-4"},Fc={class:"shrink-0"},jc={class:"ml-3"},Hc=["textContent"],Uc=["textContent"],Yc={class:"mt-3 space-y-1"},zc=["href"],Wc={class:"mx-auto sm:px-6 lg:px-8"},qc={class:"px-4 py-8 sm:px-0"},za=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",kc,[t.createVNode(t.unref(Fi),{as:"nav",class:"bg-white shadow-sm"},{default:t.withCtx(({open:i})=>[t.createElementVNode("div",vc,[t.createElementVNode("div",Dc,[t.createElementVNode("div",Nc,[t.createElementVNode("div",$c,[t.createElementVNode("img",{class:"block h-8 w-auto",src:n.iconUrl,alt:"XY Trees"},null,8,_c)]),t.createElementVNode("div",Sc,[(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,Vc))),128))])]),t.createElementVNode("div",Bc,[t.createVNode(t.unref(Sn),{as:"div",class:"ml-3 relative"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Vn),{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(()=>[Mc,t.createVNode(t.unref(Ra),{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(Bn),{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(Mn),{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,Tc)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),t.createElementVNode("div",Oc,[t.createVNode(t.unref(ji),{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(()=>[Pc,i?(t.openBlock(),t.createBlock(t.unref(jt),{key:1,class:"block h-6 w-6","aria-hidden":"true"})):(t.openBlock(),t.createBlock(t.unref(ls),{key:0,class:"block h-6 w-6","aria-hidden":"true"}))]),_:2},1024)])])]),t.createVNode(t.unref(Hi),{class:"sm:hidden"},{default:t.withCtx(()=>[t.createElementVNode("div",Ac,[(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,Ic))),128))]),t.createElementVNode("div",Lc,[t.createElementVNode("div",Rc,[t.createElementVNode("div",Fc,[t.createVNode(t.unref(Ra),{class:"text-gray-500 h-10 w-10 rounded-full"})]),t.createElementVNode("div",jc,[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,Hc)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"text-sm font-medium text-gray-500",textContent:t.toDisplayString(n.currentUser.email)},null,8,Uc)])]),t.createElementVNode("div",Yc,[(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,zc))),128))])])]),_:1})]),_:1}),t.renderSlot(o.$slots,"header"),t.createElementVNode("main",null,[t.createElementVNode("div",Wc,[t.createElementVNode("div",qc,[t.renderSlot(o.$slots,"default")])])])]),t.createVNode(Ft),t.createVNode(Ht)],64))}}),Kc=n=>n==null,Gc={refresh(){console.warn("refresh() was called on a static table, did you mean to use DynamicTable?")},reset(){console.warn("reset() was called on a static table, did you mean to use DynamicTable?")}},Wa=(n,r,e,o=Gc)=>{const a=t.ref(r),i=t.ref(n),l=t.ref(e),s=t.computed(()=>l.value.actions.length>0),d=t.computed(()=>a.value.map(u=>{let g="";switch((u==null?void 0:u.alignment)||"left"){case"left":g="text-left";break;case"right":g="text-right";break;case"center":g="text-center";break}return{...u,alignment:g}})),f=t.computed(()=>i.value.map((u,g)=>({actions:l.value.actions.map(m=>({...m,disabled:typeof m.disabled=="function"?m.disabled.apply(void 0,[u,g]):m.disabled,onClick:()=>m.onClick(u,g,o),show:typeof m.show=="function"?m.show.apply(void 0,[u,g]):m.show})),rowData:u,cells:d.value.map(m=>{const b=typeof m.render=="string"?u[m.render]:m.render(u,g),y=(m==null?void 0:m.classNames)||"";return{...m,isComponent:t.isVNode(b),classNames:typeof y=="function"?y.apply(void 0,[u,g]):y,val:b}})})));return{columns:d,hasActions:s,isEmptyCellValue:Kc,rows:f}},Jc={key:0,class:"flex items-center space-x-2 justify-end"},Xc={class:"isolate inline-flex rounded-md shadow-sm"},Qc=["disabled","onClick"],Zc={class:"relative inline-flex items-center gap-x-1.5"},qa=t.defineComponent({props:{actions:{default:()=>[]}},setup(n){const r=n,{actions:e,hasActions:o}=Sa(t.toRef(r,"actions"));return(a,i)=>t.unref(o)?(t.openBlock(),t.createElementBlock("div",Jc,[t.createElementVNode("span",Xc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(l,s)=>(t.openBlock(),t.createElementBlock("button",{key:s,type:"button",class:t.normalizeClass(["group relative inline-flex items-center bg-white px-3 py-2 text-sm font-semibold text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 disabled:text-gray-400 disabled:cursor-not-allowed",{"rounded-l-md":s===0,"-ml-px":s>0,"rounded-r-md":s===t.unref(e).length-1}]),disabled:l.disabled,onClick:t.withModifiers(l.onClick,["stop"])},[t.createElementVNode("span",Zc,[l.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(l.icon),{key:0,class:t.normalizeClass(["-ml-0.5 h-4 w-4 group-disabled:text-gray-300",l.label?"text-gray-400":"text-gray-600"]),"aria-hidden":"true"},null,8,["class"])):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(l.label),1)])],10,Qc))),128))])])):t.createCommentVNode("",!0)}}),ed={class:"flex flex-col"},td={class:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"},nd={class:"inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"},rd={class:"overflow-hidden border-b border-gray-200 shadow sm:rounded-lg"},ad={class:"min-w-full divide-y divide-gray-200"},od={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},id={class:"bg-white divide-y divide-gray-200"},ld={key:0,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"},sd={key:0},cd=["colspan"],Ka=t.defineComponent({props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:null,tableData:null},setup(n){const r=n,{columns:e,hasActions:o,isEmptyCellValue:a,rows:i}=Wa(t.toRef(r,"tableData"),t.toRef(r,"tableColumns"),t.toRef(r,"tableActions"));return(l,s)=>(t.openBlock(),t.createElementBlock("div",ed,[t.createElementVNode("div",td,[t.createElementVNode("div",nd,[t.createElementVNode("div",rd,[t.createElementVNode("table",ad,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(e),(d,f)=>(t.openBlock(),t.createElementBlock("th",{key:f,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",d.alignment])},t.toDisplayString(d.title),3))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("th",od)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",id,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(i),(d,f)=>(t.openBlock(),t.createElementBlock("tr",{key:f},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.cells,(u,g)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:g,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",u.alignment])},{default:t.withCtx(()=>[u.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(u.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.classNames)},t.toDisplayString(t.unref(a)(u.val)?"-":String(u.val)),3))]),_:2},1032,["class"]))),128)),t.unref(o)?(t.openBlock(),t.createElementBlock("td",ld,[n.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(Ot),{key:0,actions:d.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(qa,{key:1,actions:d.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)]))),128)),t.unref(i).length===0?(t.openBlock(),t.createElementBlock("tr",sd,[t.createElementVNode("td",{colspan:t.unref(e).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,cd)])):t.createCommentVNode("",!0)])])])])])]))}}),dd={class:"flex items-center justify-center space-x-8"},ud={class:"font-medium"},fd={class:"flex items-center space-x-5"},pd={key:0,class:"block w-2.5 h-2.5 bg-xy-green rounded-full hover:bg-green-900 focus:bg-green-900"},md={key:1,class:"relative flex items-center justify-center"},hd=[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)],gd={key:2,href:"#",class:"block w-2.5 h-2.5 bg-gray-200 rounded-full hover:bg-gray-400 focus:bg-gray-400"},bd={key:0,class:"flex shrink-0"},yd={key:0,class:"inline-flex rounded-md shadow-sm"},wd=["textContent"],xd={class:"ml-3 inline-flex rounded-md shadow-sm"},Cd=["textContent"],Ga=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",dd,[t.createElementVNode("p",ud,"Step "+t.toDisplayString(n.step)+" of "+t.toDisplayString(n.total),1),t.createElementVNode("ul",fd,[(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",pd)):n.step===l?(t.openBlock(),t.createElementBlock("div",md,hd)):(t.openBlock(),t.createElementBlock("span",gd))]))),128))])]),n.hideActions?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",bd,[n.hidePrevious?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",yd,[t.createElementVNode("button",{type:"button",class:"xy-btn-white",onClick:o,textContent:t.toDisplayString(n.previousText)},null,8,wd)])),t.createElementVNode("span",xd,[t.createElementVNode("button",{type:"button",class:"xy-btn",onClick:e,textContent:t.toDisplayString(n.nextText)},null,8,Cd)])]))]))}}),Ed={class:"flex flex-col mb-4 space-y-4 lg:space-y-0 lg:flex-row lg:justify-between"},kd={key:0,class:"w-full max-w-lg lg:max-w-xs"},vd=t.createElementVNode("label",{for:"search",class:"sr-only"},"Search",-1),Dd={class:"relative"},Nd=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),$d={key:1,class:"w-full max-w-lg lg:max-w-xs"},_d={class:"relative z-0 min-w-full align-middle border-b border-gray-200 shadow sm:rounded-lg overflow-x-auto"},Sd={class:"min-w-full divide-y divide-gray-200"},Vd={key:0},Bd=["onClick"],Md={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",class:"h-5 inline"},Td=[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)],Od={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Pd=[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)],Ad={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"h-5 inline"},Id=[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)],Ld={key:0,class:"px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4"},Rd={class:"bg-white divide-y divide-gray-200"},Fd=["onClick"],jd={key:0,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"},Hd={key:0},Ud=["colspan"],Ja=t.defineComponent({props:{tableActions:{default:()=>({type:"dropdown",actions:[]})},tableColumns:null,tableOptions:null},emits:["click:row"],setup(n,{expose:r}){const e=n,o=()=>{const S={minDate:b.value.minDate,maxDate:b.value.maxDate,page:y.value.page,perPage:y.value.perPage,sort:g.value,sortDir:m.value,q:C.value};kn.get(e.tableOptions.url,{skipLoader:!0},S).then(P=>{y.value={page:P.data.page,perPage:P.data.perPage,totalItems:P.data.totalItems,totalPages:P.data.totalPages},i.value=P.data.items},()=>{qn.genericError()})},a=()=>{y.value.page=1,o()},i=t.ref([]),l={refresh:o,reset:a},{columns:s,hasActions:d,isEmptyCellValue:f,rows:u}=Wa(i,t.toRef(e,"tableColumns"),t.toRef(e,"tableActions"),l),g=t.ref(e.tableOptions.defaultSort?e.tableOptions.defaultSort:""),m=t.ref(e.tableOptions.defaultSortDirection?e.tableOptions.defaultSortDirection:"desc"),b=t.ref({minDate:0,maxDate:0}),y=t.ref({page:1,perPage:10,totalItems:0,totalPages:0}),C=t.ref(""),k=S=>{y.value.page=1,b.value=S,o()},E=S=>{g.value==S?m.value=m.value==="desc"?"asc":"desc":(g.value=S,m.value="desc"),o()},B=t.computed(()=>!!u.value.length);return t.watch(()=>e.tableOptions.refreshTrigger,()=>{o()}),t.watch(()=>e.tableOptions.reloadTrigger,()=>{a()}),r(l),o(),(S,P)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Ed,[n.tableOptions.search?(t.openBlock(),t.createElementBlock("div",kd,[vd,t.createElementVNode("div",Dd,[Nd,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":P[0]||(P[0]=D=>C.value=D),class:"pl-10",type:"search",placeholder:"Search",onChange:P[1]||(P[1]=D=>a())},null,544),[[t.vModelText,C.value,void 0,{trim:!0}]])])])):t.createCommentVNode("",!0),n.tableOptions.dateSearch?(t.openBlock(),t.createElementBlock("div",$d,[t.createVNode(Lt,{modelValue:b.value,"onUpdate:modelValue":[P[2]||(P[2]=D=>b.value=D),k]},null,8,["modelValue"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",_d,[t.createElementVNode("table",Sd,[t.createElementVNode("thead",null,[t.createElementVNode("tr",null,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(s),(D,ce)=>(t.openBlock(),t.createElementBlock("th",{key:ce,class:t.normalizeClass(["px-6 py-3 text-xs font-medium tracking-wider text-gray-900 uppercase bg-gray-50 leading-4",D.alignment])},[D.title?(t.openBlock(),t.createElementBlock("span",Vd,t.toDisplayString(D.title),1)):t.createCommentVNode("",!0),D.sort?(t.openBlock(),t.createElementBlock("span",{key:1,class:"cursor-pointer",onClick:t.withModifiers(z=>E(D.sort),["prevent"])},[g.value!==D.sort?(t.openBlock(),t.createElementBlock("svg",Md,Td)):m.value=="desc"?(t.openBlock(),t.createElementBlock("svg",Od,Pd)):(t.openBlock(),t.createElementBlock("svg",Ad,Id))],8,Bd)):t.createCommentVNode("",!0)],2))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("th",Ld)):t.createCommentVNode("",!0)])]),t.createElementVNode("tbody",Rd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(u),(D,ce)=>(t.openBlock(),t.createElementBlock("tr",{key:ce,onClick:z=>S.$emit("click:row",D.rowData)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.cells,(z,_e)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("td"),{key:_e,class:t.normalizeClass(["px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5",z.alignment])},{default:t.withCtx(()=>[z.isComponent?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(z.val),{key:0})):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(z.classNames)},t.toDisplayString(t.unref(f)(z.val)?"-":String(z.val)),3))]),_:2},1032,["class"]))),128)),t.unref(d)?(t.openBlock(),t.createElementBlock("td",jd,[n.tableActions.type==="dropdown"?(t.openBlock(),t.createBlock(t.unref(Ot),{key:0,actions:D.actions},null,8,["actions"])):(t.openBlock(),t.createBlock(qa,{key:1,actions:D.actions},null,8,["actions"]))])):t.createCommentVNode("",!0)],8,Fd))),128)),t.unref(B)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("tr",Hd,[t.createElementVNode("td",{colspan:t.unref(u).length,class:"px-6 py-4 text-sm text-gray-700 whitespace-nowrap leading-5"}," No items were found! ",8,Ud)]))])])]),t.unref(B)?(t.openBlock(),t.createBlock(Rt,{key:0,modelValue:y.value,"onUpdate:modelValue":[P[3]||(P[3]=D=>y.value=D),P[4]||(P[4]=D=>o())]},null,8,["modelValue"])):t.createCommentVNode("",!0)]))}}),Yd=t.createElementVNode("label",{for:"tabs",class:"sr-only"},"Select a tab",-1),zd={class:"hidden sm:block"},Wd=["onClick","textContent"],Xa=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 d="";return e.pillDesign?(d="px-12 py-2 font-semibold text-md leading-5 rounded-t-md focus:outline-none ",e.modelValue===l?d=d+"focus:bg-white text-gray-700 bg-white border-b-2 border-blue-500":d=d+"text-gray-700 hover:text-gray-900 focus:text-gray-900 focus:bg-gray-100 border border-gray-200",d):(d="px-1 py-4 text-sm font-semibold border-b-2 whitespace-nowrap leading-5 focus:outline-none ",e.modelValue===l?d=d+"border-blue-500 text-xy-blue focus:text-blue-800 focus:border-blue-700":d=d+"border-transparent text-gray-700 hover:text-gray-900 hover:border-gray-300 focus:text-gray-900 focus:border-gray-300",s&&(d=d+" ml-8"),d)},i=t.computed(()=>!e.pillDesign);return(l,s)=>{const d=t.resolveComponent("Select");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:t.normalizeClass(["sm:hidden",{"mb-4":n.pillDesign}])},[Yd,t.createVNode(d,{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",zd,[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,u)=>(t.openBlock(),t.createElementBlock("a",{key:u,href:"#",class:t.normalizeClass(a(f.value,u>0)),onClick:t.withModifiers(g=>o(f.value),["prevent"]),textContent:t.toDisplayString(f.label)},null,10,Wd))),128))],2)],2)])])}}}),qd=t.createElementVNode("span",{class:"sr-only"},"Use",-1),Qa=t.defineComponent({props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(n,{emit:r}){return(e,o)=>(t.openBlock(),t.createBlock(t.unref(el),{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(()=>[qd,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"]))}}),Kd={class:"relative flex items-start"},Gd={class:"flex items-center h-5"},Jd=["id","aria-labelledby","aria-describedby","checked"],Xd={class:"ml-3"},Za=t.defineComponent({props:{label:{default:""},help:{default:""},modelValue:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||ve.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock("div",Kd,[t.createElementVNode("div",Gd,[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,Jd)]),t.createElementVNode("div",Xd,[t.createVNode(be,{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(he,{id:`${t.unref(o)}-help`,class:"-mt-1",text:n.help},null,8,["id","text"])])]))}});function Qd(n,r={}){return n?n(r).some(e=>e.type===t.Comment||Array.isArray(e.children)&&!e.children.length?!1:e.type!==t.Text||typeof e.children=="string"&&e.children.trim()!==""):!1}const dt=t.defineComponent({props:{tag:{default:"legend"}},setup(n){return(r,e)=>t.unref(Qd)(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)}}),Zd=["aria-labelledby","aria-describedby"],eu={key:0,class:"space-y-0.5"},tu={key:0},nu={class:"flex"},ru={class:"flex items-center h-5"},au=["id","aria-labelledby","aria-describedby","checked","disabled"],ou={class:"ml-3"},eo=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||ve.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0),s=(d,f)=>{let u=[...e.modelValue];d?u.push(f):u.splice(u.indexOf(f),1),r("update:modelValue",u)};return(d,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",eu,[t.createVNode(dt,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createElementBlock("div",tu,t.toDisplayString(n.legend),1)):t.createCommentVNode("",!0),d.$slots.legend?t.renderSlot(d.$slots,"legend",{key:1}):t.createCommentVNode("",!0)]),_:3},8,["id"]),t.createVNode(he,{id:`${t.unref(i)}-help`,tag:"p",text:n.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",nu,[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,(u,g)=>(t.openBlock(),t.createElementBlock("div",{key:u.value,class:"flex items-start"},[t.createElementVNode("div",ru,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${g}`,"aria-labelledby":`${t.unref(i)}-${g}-label`,"aria-describedby":u!=null&&u.help&&u.help?`${t.unref(i)}-${g}-help`:void 0,checked:n.modelValue.includes(u.value),disabled:u.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,u.value)},...d.$attrs}),null,16,au)]),t.createElementVNode("div",ou,[t.createVNode(be,{id:`${t.unref(i)}-${g}-label`,class:"mt-auto",disabled:d.$attrs.hasOwnProperty("disabled")&&d.$attrs.disabled!==!1||u.disabled===!0,for:`${t.unref(i)}-${g}`,label:u.label},null,8,["id","disabled","for","label"]),t.createVNode(he,{id:`${t.unref(i)}-${g}-help`,class:"-mt-1",text:u.help},null,8,["id","text"])])]))),128))],2)])],8,Zd))}}),iu=["aria-labelledby","aria-describedby"],lu={key:0,class:"space-y-0.5"},su={key:0},cu={class:"flex"},du={class:"flex items-center h-5"},uu=["id","aria-describedby","aria-labelledby","checked","disabled","name","value"],fu={class:"ml-3"},to=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||ve.CreateIdAttribute(),l=t.computed(()=>e.legend!==""||a.legend!==void 0);return(s,d)=>(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",lu,[t.createVNode(dt,{id:`${t.unref(i)}-legend`},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createElementBlock("div",su,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(he,{id:`${t.unref(i)}-help`,tag:"p",text:n.help},null,8,["id","text"])])):t.createCommentVNode("",!0),t.createElementVNode("div",cu,[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,u)=>(t.openBlock(),t.createElementBlock("div",{key:f.value,class:"flex items-start"},[t.createElementVNode("div",du,[t.createElementVNode("input",t.mergeProps({id:`${t.unref(i)}-${u}`,"aria-describedby":f!=null&&f.help&&f.help?`${t.unref(i)}-${u}-help`:void 0,"aria-labelledby":`${t.unref(i)}-${u}-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,uu)]),t.createElementVNode("div",fu,[t.createVNode(be,{id:`${t.unref(i)}-${u}-label`,class:"mt-auto",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1||f.disabled===!0,for:`${t.unref(i)}-${u}`,label:f.label},null,8,["id","disabled","for","label"]),t.createVNode(he,{id:`${t.unref(i)}-${u}-help`,class:"-mt-1",text:f.help},null,8,["id","text"])])]))),128))],2)])],8,iu))}}),pu=["id"],mu={class:"flex-1 flex pr-1"},hu={class:"flex flex-col"},gu={key:1,class:"mt-auto mb-0"},bu=["checked","name","required","value"],no=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=ve.CreateIdAttribute(),i=t.ref(),l=t.ref(),s=t.computed(()=>e.modelValue===void 0?i.value:e.modelValue),d=u=>{i.value=u,l.value=!1,r("update:modelValue",u)},f=t.computed(()=>typeof o.name=="string"&&o.name!==""?o.name:a);return(u,g)=>(t.openBlock(),t.createBlock(t.unref(Xi),{"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":d},{default:t.withCtx(()=>[n.legend?(t.openBlock(),t.createBlock(t.unref(va),{key:0,class:"block"},{default:t.withCtx(()=>[t.createVNode(dt,{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(Tn),{key:1},{default:t.withCtx(()=>[t.createVNode(he,{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,pu)):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(Qi),{key:m.value,as:"template",disabled:m!=null&&m.disabled?m.disabled:!1,value:m.value},{default:t.withCtx(({active:b,checked:y,disabled:C})=>[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",b?"border-blue-500 ring-2 ring-blue-500":"",C?"cursor-not-allowed opacity-75":""]])},[t.createElementVNode("div",mu,[t.createElementVNode("div",hu,[t.createVNode(t.unref(va),{as:"div"},{default:t.withCtx(()=>[t.createVNode(be,{tag:"div",class:"mt-auto mb-auto",label:m.label},null,8,["label"])]),_:2},1024),m.help?(t.openBlock(),t.createBlock(t.unref(Tn),{key:0,as:"div"},{default:t.withCtx(()=>[t.createVNode(he,{tag:"div",class:"mt-auto",text:m.help},null,8,["text"])]),_:2},1024)):t.createCommentVNode("",!0),m.sublabel||u.$slots.sublabel?(t.openBlock(),t.createElementBlock("div",gu,[t.createVNode(t.unref(Tn),{as:"div",class:"font-semibold leading-snug mt-4 text-gray-900 text-sm"},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"sublabel",{active:b,checked:y,disabled:C,option:m},()=>[t.createTextVNode(t.toDisplayString(m.sublabel),1)])]),_:2},1024)])):t.createCommentVNode("",!0)])]),t.createVNode(t.unref(il),{class:t.normalizeClass([y?"":"invisible","h-5 w-5 text-blue-600"]),"aria-hidden":"true"},null,8,["class"]),t.createElementVNode("div",{class:t.normalizeClass([b?"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:g[0]||(g[0]=k=>l.value=!0)},null,40,bu)],2)]),_:2},1032,["disabled","value"]))),128))],2)]),_:3},8,["model-value","disabled","aria-invalid","aria-errormessage"]))}}),yu=["id","aria-labelledby","aria-describedby","value"],ro=t.defineComponent({props:{help:{default:""},label:{default:""},modelValue:{default:""}},emits:["update:modelValue"],setup(n,{emit:r}){const o=t.useAttrs().id||ve.CreateIdAttribute();return(a,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(be,{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,yu),t.createVNode(he,{id:`${t.unref(o)}-help`,text:n.help},null,8,["id","text"])],64))}}),wu=["aria-labelledby","aria-describedby"],xu={key:0,class:"space-y-0.5"},Cu=["for"],Eu=["id","name","checked"],ku=["for"],vu=["id","name","checked"],ao=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||ve.CreateIdAttribute(),i=t.computed(()=>typeof e.name=="string"&&e.name!==""),l=s=>{r("update:modelValue",s.target.value==="true")};return(s,d)=>(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",xu,[t.createVNode(be,{class:"block my-auto",label:n.legend,tag:"legend"},null,8,["label"]),t.createVNode(he,{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,Eu),t.createVNode(be,{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,vu),t.createVNode(be,{class:"ml-2",disabled:s.$attrs.hasOwnProperty("disabled")&&s.$attrs.disabled!==!1,label:"No",tag:"span"},null,8,["disabled"])],10,ku)])],8,wu))}}),Du=Object.freeze(Object.defineProperty({__proto__:null,ActionsDropdown:Ot,BaseInput:Un,Cards:Va,Checkbox:Za,ContentModal:Ba,DataTable:Ka,DateFilter:zn,DateRangePicker:Lt,DetailList:Ia,DownloadCell:La,DynamicTable:Ja,FieldsetLegend:dt,Flash:Ft,InputHelp:he,InputLabel:be,Modal:Fa,MultiCheckboxes:eo,Paginator:Rt,Popover:ct,PopoverContent:Ha,PopoverPosition:ct,Radio:to,RadioCards:no,Select:Yn,SidebarLayout:ja,Slideover:Ua,Spinner:Ht,StackedLayout:za,Steps:Ga,Tabs:Xa,TextArea:ro,Toggle:Qa,Tooltip:Ya,XYSpinner:Kn,YesOrNoRadio:ao},Symbol.toStringTag,{value:"Module"})),Nu=function(r){Object.entries(Du).forEach(([e,o])=>{r.component(e,o)})};$.ActionsDropdown=Ot,$.BaseAPI=kn,$.BaseInput=Un,$.Cards=Va,$.Checkbox=Za,$.ContentModal=Ba,$.DataTable=Ka,$.DateFilter=zn,$.DateRangePicker=Lt,$.DetailList=Ia,$.DownloadCell=La,$.DynamicTable=Ja,$.FieldsetLegend=dt,$.Flash=Ft,$.InputHelp=he,$.InputLabel=be,$.Modal=Fa,$.MultiCheckboxes=eo,$.Paginator=Rt,$.Popover=ct,$.PopoverContent=Ha,$.PopoverPosition=ct,$.Radio=to,$.RadioCards=no,$.Select=Yn,$.SidebarLayout=ja,$.Slideover=Ua,$.Spinner=Ht,$.StackedLayout=za,$.Steps=Ga,$.Tabs=Xa,$.TextArea=ro,$.Toggle=Qa,$.Tooltip=Ya,$.XYSpinner=Kn,$.YesOrNoRadio=ao,$.default=Nu,$.isHttpCancel=Gr,$.isHttpError=Kr,$.useAppFlasher=qn,$.useAppFlashes=Re,$.useAppSpinner=En,$.useBaseAPI=st,$.useBaseAPIDelete=Il,$.useBaseAPIGet=Al,$.useBaseAPIPost=Ll,$.useBaseAPIPut=Rl,$.useFlashes=Aa,$.useSpinnerDisplay=zr,Object.defineProperties($,{__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:modelValue"])
|
|
23
23
|
|
|
24
24
|
const uuid = (attrs.id as string) || Uniques.CreateIdAttribute()
|
|
25
25
|
|
|
@@ -80,7 +80,7 @@ const isTextType = computed((): boolean => {
|
|
|
80
80
|
:value="modelValue"
|
|
81
81
|
v-bind="$attrs"
|
|
82
82
|
@input="
|
|
83
|
-
emit('update:
|
|
83
|
+
emit('update:modelValue', ($event.target as HTMLInputElement).value)
|
|
84
84
|
"
|
|
85
85
|
/>
|
|
86
86
|
<InputHelp :id="`${uuid}-help`" :text="help"></InputHelp>
|
|
@@ -16,7 +16,7 @@ withDefaults(
|
|
|
16
16
|
}
|
|
17
17
|
)
|
|
18
18
|
const attrs = useAttrs()
|
|
19
|
-
const emit = defineEmits(["update:
|
|
19
|
+
const emit = defineEmits(["update:modelValue"])
|
|
20
20
|
const uuid = (attrs.id as string) || Uniques.CreateIdAttribute()
|
|
21
21
|
</script>
|
|
22
22
|
|
|
@@ -47,7 +47,7 @@ const uuid = (attrs.id as string) || Uniques.CreateIdAttribute()
|
|
|
47
47
|
:value="modelValue"
|
|
48
48
|
v-bind="$attrs"
|
|
49
49
|
@input="
|
|
50
|
-
emit('update:
|
|
50
|
+
emit('update:modelValue', ($event.target as HTMLInputElement).value)
|
|
51
51
|
"
|
|
52
52
|
/>
|
|
53
53
|
<InputHelp :id="`${uuid}-help`" :text="help"></InputHelp>
|
|
@@ -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:modelValue"[], "update:modelValue", 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:modelValue"?: ((...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:modelValue"[], "update:modelValue", 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:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
19
19
|
}, {
|
|
20
20
|
label: string;
|
|
21
21
|
help: string;
|
|
@@ -26,8 +26,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
26
|
destructive: boolean;
|
|
27
27
|
submitText: string;
|
|
28
28
|
} & {}> & {
|
|
29
|
-
onSubmit?: (() => any) | undefined;
|
|
30
29
|
"onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
|
|
30
|
+
onSubmit?: (() => any) | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
disabled: boolean;
|
|
33
33
|
title: string;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { TableColumn, TableRow } from "../../composables/table";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
columns: TableColumn<TableRow>[];
|
|
4
|
-
rows: TableRow[];
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
6
|
-
columns?: unknown;
|
|
7
|
-
rows?: unknown;
|
|
8
|
-
} & {
|
|
9
|
-
columns: TableColumn<TableRow>[];
|
|
10
|
-
rows: TableRow[];
|
|
11
|
-
} & {}>, {}>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
-
} : {
|
|
18
|
-
type: import('vue').PropType<T[K]>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as TableTypes from "../../composables/table";
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
tableData: Omit<TableTypes.Static, "currentUser">;
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
5
|
-
tableData?: unknown;
|
|
6
|
-
} & {
|
|
7
|
-
tableData: Omit<TableTypes.Static, "currentUser">;
|
|
8
|
-
} & {}>, {}>, {
|
|
9
|
-
actions: (_: {
|
|
10
|
-
row: Record<string, unknown>;
|
|
11
|
-
}) => any;
|
|
12
|
-
}>;
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
-
} : {
|
|
19
|
-
type: import('vue').PropType<T[K]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as TableTypes from "../../composables/table";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
clickable?: boolean | undefined;
|
|
4
|
-
loader?: boolean | undefined;
|
|
5
|
-
tableData: TableTypes.Dynamic;
|
|
6
|
-
}>, {
|
|
7
|
-
clickable: boolean;
|
|
8
|
-
loader: boolean;
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
-
handleClick: (v: any) => void;
|
|
11
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
12
|
-
tableData?: unknown;
|
|
13
|
-
clickable?: unknown;
|
|
14
|
-
loader?: unknown;
|
|
15
|
-
} & {
|
|
16
|
-
tableData: TableTypes.Dynamic;
|
|
17
|
-
clickable: boolean;
|
|
18
|
-
loader: boolean;
|
|
19
|
-
} & {}> & {
|
|
20
|
-
onHandleClick?: ((v: any) => any) | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
clickable: boolean;
|
|
23
|
-
loader: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
-
} : {
|
|
31
|
-
type: import('vue').PropType<T[K]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
type __VLS_WithDefaults<P, D> = {
|
|
36
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
37
|
-
default: D[K];
|
|
38
|
-
} : P[K];
|
|
39
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ActionMenuItemCallback } from "../../composables/nav";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
items: ActionMenuItemCallback[];
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
5
|
-
items?: unknown;
|
|
6
|
-
} & {
|
|
7
|
-
items: ActionMenuItemCallback[];
|
|
8
|
-
} & {}>, {}>;
|
|
9
|
-
export default _default;
|
|
10
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
-
} : {
|
|
15
|
-
type: import('vue').PropType<T[K]>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ActionMenuEmit } from "../../composables/nav";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
items: ActionMenuEmit[];
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
click: (v: string) => void;
|
|
6
|
-
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
7
|
-
items?: unknown;
|
|
8
|
-
} & {
|
|
9
|
-
items: ActionMenuEmit[];
|
|
10
|
-
} & {}> & {
|
|
11
|
-
onClick?: ((v: string) => any) | undefined;
|
|
12
|
-
}, {}>;
|
|
13
|
-
export default _default;
|
|
14
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
15
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
16
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
17
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
18
|
-
} : {
|
|
19
|
-
type: import('vue').PropType<T[K]>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
};
|