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