r3ui-lib 1.2.3-1 → 1.2.3-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/r3ui-lib.umd.js
CHANGED
|
@@ -28,7 +28,7 @@ https://vue-select.org/api/props.html#getoptionkey`,n,e)}}},onTab:{type:Function
|
|
|
28
28
|
<span class='flatpickr-weekday'>
|
|
29
29
|
`+k.join("</span><span class='flatpickr-weekday'>")+`
|
|
30
30
|
</span>
|
|
31
|
-
`}}function L(){t.calendarContainer.classList.add("hasWeeks");var P=Ke("div","flatpickr-weekwrapper");P.appendChild(Ke("span","flatpickr-weekday",t.l10n.weekAbbreviation));var k=Ke("div","flatpickr-weeks");return P.appendChild(k),{weekWrapper:P,weekNumbers:k}}function B(P,k){k===void 0&&(k=!0);var A=k?P:P-t.currentMonth;A<0&&t._hidePrevMonthArrow===!0||A>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=A,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,qe("onYearChange"),O()),D(),qe("onMonthChange"),We())}function G(P,k){if(P===void 0&&(P=!0),k===void 0&&(k=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,k===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var A=ka(t.config),F=A.hours,U=A.minutes,ne=A.seconds;h(F,U,ne)}t.redraw(),P&&qe("onChange")}function z(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),qe("onClose")}function K(){t.config!==void 0&&qe("onDestroy");for(var P=t._handlers.length;P--;)t._handlers[P].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var k=t.calendarContainer.parentNode;if(k.lastChild&&k.removeChild(k.lastChild),k.parentNode){for(;k.firstChild;)k.parentNode.insertBefore(k.firstChild,k);k.parentNode.removeChild(k)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.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(function(A){try{delete t[A]}catch{}})}function Q(P){return t.calendarContainer.contains(P)}function $(P){if(t.isOpen&&!t.config.inline){var k=St(P),A=Q(k),F=k===t.input||k===t.altInput||t.element.contains(k)||P.path&&P.path.indexOf&&(~P.path.indexOf(t.input)||~P.path.indexOf(t.altInput)),U=!F&&!A&&!Q(P.relatedTarget),ne=!t.config.ignoredFocusElements.some(function(oe){return oe.contains(k)});U&&ne&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&u(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function se(P){if(!(!P||t.config.minDate&&P<t.config.minDate.getFullYear()||t.config.maxDate&&P>t.config.maxDate.getFullYear())){var k=P,A=t.currentYear!==k;t.currentYear=k||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),A&&(t.redraw(),qe("onYearChange"),O())}}function Y(P,k){var A;k===void 0&&(k=!0);var F=t.parseDate(P,void 0,k);if(t.config.minDate&&F&&xt(F,t.config.minDate,k!==void 0?k:!t.minDateHasTime)<0||t.config.maxDate&&F&&xt(F,t.config.maxDate,k!==void 0?k:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(F===void 0)return!1;for(var U=!!t.config.enable,ne=(A=t.config.enable)!==null&&A!==void 0?A:t.config.disable,oe=0,ce=void 0;oe<ne.length;oe++){if(ce=ne[oe],typeof ce=="function"&&ce(F))return U;if(ce instanceof Date&&F!==void 0&&ce.getTime()===F.getTime())return U;if(typeof ce=="string"){var he=t.parseDate(ce,void 0,!0);return he&&he.getTime()===F.getTime()?U:!U}else if(typeof ce=="object"&&F!==void 0&&ce.from&&ce.to&&F.getTime()>=ce.from.getTime()&&F.getTime()<=ce.to.getTime())return U}return!U}function H(P){return t.daysContainer!==void 0?P.className.indexOf("hidden")===-1&&P.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(P):!1}function ie(P){var k=P.target===t._input,A=t._input.value.trimEnd()!==_e();k&&A&&!(P.relatedTarget&&Q(P.relatedTarget))&&t.setDate(t._input.value,!0,P.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ee(P){var k=St(P),A=t.config.wrap?n.contains(k):k===t._input,F=t.config.allowInput,U=t.isOpen&&(!F||!A),ne=t.config.inline&&A&&!F;if(P.keyCode===13&&A){if(F)return t.setDate(t._input.value,!0,k===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),k.blur();t.open()}else if(Q(k)||U||ne){var oe=!!t.timeContainer&&t.timeContainer.contains(k);switch(P.keyCode){case 13:oe?(P.preventDefault(),u(),te()):pe(P);break;case 27:P.preventDefault(),te();break;case 8:case 46:A&&!t.config.allowInput&&(P.preventDefault(),t.clear());break;case 37:case 39:if(!oe&&!A){P.preventDefault();var ce=s();if(t.daysContainer!==void 0&&(F===!1||ce&&H(ce))){var he=P.keyCode===39?1:-1;P.ctrlKey?(P.stopPropagation(),B(he),w(C(1),0)):w(void 0,he)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:P.preventDefault();var ge=P.keyCode===40?1:-1;t.daysContainer&&k.$i!==void 0||k===t.input||k===t.altInput?P.ctrlKey?(P.stopPropagation(),se(t.currentYear-ge),w(C(1),0)):oe||w(void 0,ge*7):k===t.currentYearElement?se(t.currentYear-ge):t.config.enableTime&&(!oe&&t.hourElement&&t.hourElement.focus(),u(P),t._debouncedChange());break;case 9:if(oe){var ye=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Le){return Le}),De=ye.indexOf(k);if(De!==-1){var je=ye[De+(P.shiftKey?-1:1)];P.preventDefault(),(je||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(k)&&P.shiftKey&&(P.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&k===t.amPM)switch(P.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),xe();break}(A||Q(k))&&qe("onKeyDown",P)}function X(P,k){if(k===void 0&&(k="flatpickr-day"),!(t.selectedDates.length!==1||P&&(!P.classList.contains(k)||P.classList.contains("flatpickr-disabled")))){for(var A=P?P.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),F=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),U=Math.min(A,t.selectedDates[0].getTime()),ne=Math.max(A,t.selectedDates[0].getTime()),oe=!1,ce=0,he=0,ge=U;ge<ne;ge+=my.DAY)Y(new Date(ge),!0)||(oe=oe||ge>U&&ge<ne,ge<F&&(!ce||ge>ce)?ce=ge:ge>F&&(!he||ge<he)&&(he=ge));var ye=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+k));ye.forEach(function(De){var je=De.dateObj,Le=je.getTime(),Je=ce>0&&Le<ce||he>0&&Le>he;if(Je){De.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Ze){De.classList.remove(Ze)});return}else if(oe&&!Je)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Ze){De.classList.remove(Ze)}),P!==void 0&&(P.classList.add(A<=t.selectedDates[0].getTime()?"startRange":"endRange"),F<A&&Le===F?De.classList.add("startRange"):F>A&&Le===F&&De.classList.add("endRange"),Le>=ce&&(he===0||Le<=he)&&fy(Le,F,A)&&De.classList.add("inRange"))})}}function fe(){t.isOpen&&!t.config.static&&!t.config.inline&&Be()}function ue(P,k){if(k===void 0&&(k=t._positionElement),t.isMobile===!0){if(P){P.preventDefault();var A=St(P);A&&A.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),qe("onOpen");return}else if(t._input.disabled||t.config.inline)return;var F=t.isOpen;t.isOpen=!0,F||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),qe("onOpen"),Be(k)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(P===void 0||!t.timeContainer.contains(P.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ve(P){return function(k){var A=t.config["_"+P+"Date"]=t.parseDate(k,t.config.dateFormat),F=t.config["_"+(P==="min"?"max":"min")+"Date"];A!==void 0&&(t[P==="min"?"minDateHasTime":"maxDateHasTime"]=A.getHours()>0||A.getMinutes()>0||A.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(U){return Y(U)}),!t.selectedDates.length&&P==="min"&&p(A),xe()),t.daysContainer&&(J(),A!==void 0?t.currentYearElement[P]=A.getFullYear().toString():t.currentYearElement.removeAttribute(P),t.currentYearElement.disabled=!!F&&A!==void 0&&F.getFullYear()===A.getFullYear())}}function ae(){var P=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],k=ht(ht({},JSON.parse(JSON.stringify(n.dataset||{}))),e),A={};t.config.parseDate=k.parseDate,t.config.formatDate=k.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(ye){t.config._enable=Te(ye)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(ye){t.config._disable=Te(ye)}});var F=k.mode==="time";if(!k.dateFormat&&(k.enableTime||F)){var U=lt.defaultConfig.dateFormat||Ui.dateFormat;A.dateFormat=k.noCalendar||F?"H:i"+(k.enableSeconds?":S":""):U+" H:i"+(k.enableSeconds?":S":"")}if(k.altInput&&(k.enableTime||F)&&!k.altFormat){var ne=lt.defaultConfig.altFormat||Ui.altFormat;A.altFormat=k.noCalendar||F?"h:i"+(k.enableSeconds?":S K":" K"):ne+(" h:i"+(k.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ve("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ve("max")});var oe=function(ye){return function(De){t.config[ye==="min"?"_minTime":"_maxTime"]=t.parseDate(De,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:oe("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:oe("max")}),k.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,A,k);for(var ce=0;ce<P.length;ce++)t.config[P[ce]]=t.config[P[ce]]===!0||t.config[P[ce]]==="true";va.filter(function(ye){return t.config[ye]!==void 0}).forEach(function(ye){t.config[ye]=ya(t.config[ye]||[]).map(a)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ce=0;ce<t.config.plugins.length;ce++){var he=t.config.plugins[ce](t)||{};for(var ge in he)va.indexOf(ge)>-1?t.config[ge]=ya(he[ge]).map(a).concat(t.config[ge]):typeof k[ge]>"u"&&(t.config[ge]=he[ge])}k.altInputClass||(t.config.altInputClass=Se().className+" "+t.config.altInputClass),qe("onParseConfig")}function Se(){return t.config.wrap?n.querySelector("[data-input]"):n}function Pe(){typeof t.config.locale!="object"&&typeof lt.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=ht(ht({},lt.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?lt.l10ns[t.config.locale]:void 0),Mi.D="("+t.l10n.weekdays.shorthand.join("|")+")",Mi.l="("+t.l10n.weekdays.longhand.join("|")+")",Mi.M="("+t.l10n.months.shorthand.join("|")+")",Mi.F="("+t.l10n.months.longhand.join("|")+")",Mi.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var P=ht(ht({},e),JSON.parse(JSON.stringify(n.dataset||{})));P.time_24hr===void 0&<.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Oc(t),t.parseDate=Ca({config:t.config,l10n:t.l10n})}function Be(P){if(typeof t.config.position=="function")return void t.config.position(t,P);if(t.calendarContainer!==void 0){qe("onPreCalendarPosition");var k=P||t._positionElement,A=Array.prototype.reduce.call(t.calendarContainer.children,(function(Di,jx){return Di+jx.offsetHeight}),0),F=t.calendarContainer.offsetWidth,U=t.config.position.split(" "),ne=U[0],oe=U.length>1?U[1]:null,ce=k.getBoundingClientRect(),he=window.innerHeight-ce.bottom,ge=ne==="above"||ne!=="below"&&he<A&&ce.top>A,ye=window.pageYOffset+ce.top+(ge?-A-2:k.offsetHeight+2);if(gt(t.calendarContainer,"arrowTop",!ge),gt(t.calendarContainer,"arrowBottom",ge),!t.config.inline){var De=window.pageXOffset+ce.left,je=!1,Le=!1;oe==="center"?(De-=(F-ce.width)/2,je=!0):oe==="right"&&(De-=F-ce.width,Le=!0),gt(t.calendarContainer,"arrowLeft",!je&&!Le),gt(t.calendarContainer,"arrowCenter",je),gt(t.calendarContainer,"arrowRight",Le);var Je=window.document.body.offsetWidth-(window.pageXOffset+ce.right),Ze=De+F>window.document.body.offsetWidth,at=Je+F>window.document.body.offsetWidth;if(gt(t.calendarContainer,"rightMost",Ze),!t.config.static)if(t.calendarContainer.style.top=ye+"px",!Ze)t.calendarContainer.style.left=De+"px",t.calendarContainer.style.right="auto";else if(!at)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=Je+"px";else{var nt=Ve();if(nt===void 0)return;var bi=window.document.body.offsetWidth,Ti=Math.max(0,bi/2-F/2),li=".flatpickr-calendar.centerMost:before",It=".flatpickr-calendar.centerMost:after",Jt=nt.cssRules.length,Xi="{left:"+ce.left+"px;right:auto;}";gt(t.calendarContainer,"rightMost",!1),gt(t.calendarContainer,"centerMost",!0),nt.insertRule(li+","+It+Xi,Jt),t.calendarContainer.style.left=Ti+"px",t.calendarContainer.style.right="auto"}}}}function Ve(){for(var P=null,k=0;k<document.styleSheets.length;k++){var A=document.styleSheets[k];if(A.cssRules){try{A.cssRules}catch{continue}P=A;break}}return P??le()}function le(){var P=document.createElement("style");return document.head.appendChild(P),P.sheet}function J(){t.config.noCalendar||t.isMobile||(O(),We(),D())}function te(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function pe(P){P.preventDefault(),P.stopPropagation();var k=function(ye){return ye.classList&&ye.classList.contains("flatpickr-day")&&!ye.classList.contains("flatpickr-disabled")&&!ye.classList.contains("notAllowed")},A=Ac(St(P),k);if(A!==void 0){var F=A,U=t.latestSelectedDateObj=new Date(F.dateObj.getTime()),ne=(U.getMonth()<t.currentMonth||U.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=F,t.config.mode==="single")t.selectedDates=[U];else if(t.config.mode==="multiple"){var oe=re(U);oe?t.selectedDates.splice(parseInt(oe),1):t.selectedDates.push(U)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=U,t.selectedDates.push(U),xt(U,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(ye,De){return ye.getTime()-De.getTime()}));if(f(),ne){var ce=t.currentYear!==U.getFullYear();t.currentYear=U.getFullYear(),t.currentMonth=U.getMonth(),ce&&(qe("onYearChange"),O()),qe("onMonthChange")}if(We(),D(),xe(),!ne&&t.config.mode!=="range"&&t.config.showMonths===1?M(F):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var he=t.config.mode==="single"&&!t.config.enableTime,ge=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(he||ge)&&te()}E()}}var de={locale:[Pe,q],showMonths:[j,l,I],minDate:[g],maxDate:[g],positionElement:[ze],clickOpens:[function(){t.config.clickOpens===!0?(m(t._input,"focus",t.open),m(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function ke(P,k){if(P!==null&&typeof P=="object"){Object.assign(t.config,P);for(var A in P)de[A]!==void 0&&de[A].forEach(function(F){return F()})}else t.config[P]=k,de[P]!==void 0?de[P].forEach(function(F){return F()}):va.indexOf(P)>-1&&(t.config[P]=ya(k));t.redraw(),xe(!0)}function Ae(P,k){var A=[];if(P instanceof Array)A=P.map(function(F){return t.parseDate(F,k)});else if(P instanceof Date||typeof P=="number")A=[t.parseDate(P,k)];else if(typeof P=="string")switch(t.config.mode){case"single":case"time":A=[t.parseDate(P,k)];break;case"multiple":A=P.split(t.config.conjunction).map(function(F){return t.parseDate(F,k)});break;case"range":A=P.split(t.l10n.rangeSeparator).map(function(F){return t.parseDate(F,k)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(P)));t.selectedDates=t.config.allowInvalidPreload?A:A.filter(function(F){return F instanceof Date&&Y(F,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(F,U){return F.getTime()-U.getTime()})}function Re(P,k,A){if(k===void 0&&(k=!1),A===void 0&&(A=t.config.dateFormat),P!==0&&!P||P instanceof Array&&P.length===0)return t.clear(k);Ae(P,A),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),g(void 0,k),p(),t.selectedDates.length===0&&t.clear(!1),xe(k),k&&qe("onChange")}function Te(P){return P.slice().map(function(k){return typeof k=="string"||typeof k=="number"||k instanceof Date?t.parseDate(k,void 0,!0):k&&typeof k=="object"&&k.from&&k.to?{from:t.parseDate(k.from,void 0),to:t.parseDate(k.to,void 0)}:k}).filter(function(k){return k})}function me(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var P=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);P&&Ae(P,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function Oe(){if(t.input=Se(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=Ke(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),ze()}function ze(){t._positionElement=t.config.positionElement||t._input}function Kt(){var P=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Ke("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=P,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=P==="datetime-local"?"Y-m-d\\TH:i:S":P==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}m(t.mobileInput,"change",function(k){t.setDate(St(k).value,!1,t.mobileFormatStr),qe("onChange"),qe("onClose")})}function Ht(P){if(t.isOpen===!0)return t.close();t.open(P)}function qe(P,k){if(t.config!==void 0){var A=t.config[P];if(A!==void 0&&A.length>0)for(var F=0;A[F]&&F<A.length;F++)A[F](t.selectedDates,t.input.value,t,k);P==="onChange"&&(t.input.dispatchEvent(Z("change")),t.input.dispatchEvent(Z("input")))}}function Z(P){var k=document.createEvent("Event");return k.initEvent(P,!0,!0),k}function re(P){for(var k=0;k<t.selectedDates.length;k++){var A=t.selectedDates[k];if(A instanceof Date&&xt(A,P)===0)return""+k}return!1}function Ne(P){return t.config.mode!=="range"||t.selectedDates.length<2?!1:xt(P,t.selectedDates[0])>=0&&xt(P,t.selectedDates[1])<=0}function We(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(P,k){var A=new Date(t.currentYear,t.currentMonth,1);A.setMonth(t.currentMonth+k),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[k].textContent=or(A.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=A.getMonth().toString(),P.value=A.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function _e(P){var k=P||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(A){return t.formatDate(A,k)}).filter(function(A,F,U){return t.config.mode!=="range"||t.config.enableTime||U.indexOf(A)===F}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function xe(P){P===void 0&&(P=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=_e(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=_e(t.config.altFormat)),P!==!1&&qe("onValueUpdate")}function mt(P){var k=St(P),A=t.prevMonthNav.contains(k),F=t.nextMonthNav.contains(k);A||F?B(A?-1:1):t.yearElements.indexOf(k)>=0?k.select():k.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):k.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function it(P){P.preventDefault();var k=P.type==="keydown",A=St(P),F=A;t.amPM!==void 0&&A===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ot(t.amPM.textContent===t.l10n.amPM[0])]);var U=parseFloat(F.getAttribute("min")),ne=parseFloat(F.getAttribute("max")),oe=parseFloat(F.getAttribute("step")),ce=parseInt(F.value,10),he=P.delta||(k?P.which===38?1:-1:0),ge=ce+oe*he;if(typeof F.value<"u"&&F.value.length===2){var ye=F===t.hourElement,De=F===t.minuteElement;ge<U?(ge=ne+ge+Ot(!ye)+(Ot(ye)&&Ot(!t.amPM)),De&&v(void 0,-1,t.hourElement)):ge>ne&&(ge=F===t.hourElement?ge-ne-Ot(!t.amPM):U,De&&v(void 0,1,t.hourElement)),t.amPM&&ye&&(oe===1?ge+ce===23:Math.abs(ge-ce)>oe)&&(t.amPM.textContent=t.l10n.amPM[Ot(t.amPM.textContent===t.l10n.amPM[0])]),F.value=Ct(ge)}}return r(),t}function Gi(n,e){for(var t=Array.prototype.slice.call(n).filter(function(a){return a instanceof HTMLElement}),i=[],r=0;r<t.length;r++){var s=t[r];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=by(s,e||{}),i.push(s._flatpickr)}catch(a){console.error(a)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Gi(this,n)},HTMLElement.prototype.flatpickr=function(n){return Gi([this],n)});var lt=function(n,e){return typeof n=="string"?Gi(window.document.querySelectorAll(n),e):n instanceof Node?Gi([n],e):Gi(n,e)};lt.defaultConfig={},lt.l10ns={en:ht({},vn),default:ht({},vn)},lt.localize=function(n){lt.l10ns.default=ht(ht({},lt.l10ns.default),n)},lt.setDefaults=function(n){lt.defaultConfig=ht(ht({},lt.defaultConfig),n)},lt.parseDate=Ca({}),lt.formatDate=Oc({}),lt.compareDates=xt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Gi(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=lt);var wn={exports:{}},vy=wn.exports,Pc;function yy(){return Pc||(Pc=1,(function(n,e){(function(t,i){i(e)})(vy,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};i.l10ns.ru=r;var s=i.l10ns;t.Russian=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(wn,wn.exports)),wn.exports}var wy=yy();const Cy=["value","id","name","disabled","required","placeholder"],Ey=["title"],ky=["title"],Sy=Fe(o.defineComponent({__name:"Flatpickr",props:{modelValue:{default:""},id:{default:"flatpickr-input"},error:{default:""},name:{default:"flatpickr"},placeholder:{default:"Выберите дату"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},config:{default:()=>({})},format:{default:"DD.MM.YYYY"},locale:{default:"ru"},resetTitle:{default:"Очистить"},calendarTitle:{default:"Выбрать дату"},allowInput:{type:Boolean,default:!0},enableTime:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:!0},dateFormat:{default:"d.m.Y"},minDate:{default:void 0},maxDate:{default:void 0},defaultDate:{default:void 0},mode:{default:"single"}},emits:["update:modelValue","change","open","close","ready"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(),a=o.ref(null),l=o.ref(!1),u=o.ref(""),c=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),d=b=>{if(!b)return"";const g=new Date(b);if(isNaN(g.getTime()))return"";const T=String(g.getDate()).padStart(2,"0"),v=String(g.getMonth()+1).padStart(2,"0"),R=g.getFullYear();return i.format==="DD.MM.YYYY"?`${T}.${v}.${R}`:i.format==="MM/DD/YYYY"?`${v}/${T}/${R}`:i.format==="YYYY-MM-DD"?`${R}-${v}-${T}`:`${T}.${v}.${R}`},f=b=>{if(!b)return"";if(/^\d{4}-\d{2}-\d{2}/.test(b))return b;if(i.format==="DD.MM.YYYY"){const g=b.split(".");if(g.length===3){const[T,v,R]=g;return`${R}-${v.padStart(2,"0")}-${T.padStart(2,"0")}`}}if(i.format==="MM/DD/YYYY"){const g=b.split("/");if(g.length===3){const[T,v,R]=g;return`${R}-${T.padStart(2,"0")}-${v.padStart(2,"0")}`}}return i.format==="YYYY-MM-DD",b},p=()=>{if(!s.value)return;const b={locale:i.locale==="ru"?wy.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(g,T,v)=>{const R=g.length>0;if(!(i.modelValue!==T))return!1;if(!R)return h({instance:v}),!1;o.nextTick(()=>{if(i.mode==="multiple"){const M=g.map(C=>d(C));r("update:modelValue",M)}else if(i.mode==="range"){const M=g.map(C=>d(C));r("update:modelValue",M)}else r("update:modelValue",T);r("change",g.map(M=>M.toISOString()),T,v)})},onOpen:g=>{r("open",g)},onReady:g=>{r("ready",g)},...i.config};i.minDate&&i.minDate&&(b.minDate=i.minDate),i.maxDate&&(b.maxDate=i.maxDate),i.defaultDate&&(b.defaultDate=i.defaultDate),a.value=lt(s.value,b),h({instance:a.value})},h=({instance:b})=>{b?._input&&(i.modelValue?o.nextTick(()=>{Array.isArray(i.modelValue)?b._input.value=i.modelValue.map(g=>d(g)).join(", "):b._input.value=d(i.modelValue),l.value=!0}):o.nextTick(()=>{b._input.value="",l.value=!1}))},S=()=>{i.disabled||!a.value||(a.value.clear(),a.value._input.value="",r("update:modelValue",""),l.value=!1)},m=b=>{const g=b.target;u.value=g.value},E=()=>{if(u.value){const b=f(u.value);b&&r("update:modelValue",b)}};return o.watch(()=>i.modelValue,b=>{if(!b){l.value=!1,a.value?._input&&(a.value._input.value=""),u.value="";return}Array.isArray(b)?u.value=b.map(g=>d(g)).join(", "):u.value=d(b),l.value=!0},{deep:!0}),o.watch(()=>i.disabled,b=>{a.value?._input&&(a.value._input.disabled=b)}),o.onMounted(()=>{p()}),o.onBeforeUnmount(()=>{a.value&&a.value.destroy()}),e({datapicker:a}),(b,g)=>(o.openBlock(),o.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[o.createElementVNode("div",{class:o.normalizeClass({"not-valid":c.value.length})},[o.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:b.id,name:b.name,disabled:b.disabled,required:b.required,placeholder:b.placeholder,"data-input":"",onInput:m,onBlur:E},null,40,Cy)],2),l.value&&!b.disabled?(o.openBlock(),o.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:S,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:b.resetTitle},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Ey)):o.createCommentVNode("",!0),o.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:b.calendarTitle},[...g[1]||(g[1]=[o.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,ky),o.createVNode(ki,{errors:c.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-805e83fd"]]);function xy(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,a=o.ref(""),l=o.ref([]),u=o.ref(!1),c=o.ref(r),d=o.ref(!1),f=o.ref(!1),p=o.computed(()=>a.value&&a.value.length>0&&a.value.length<s?`Введите минимум ${s} символа`:t),h=o.computed(()=>i);return{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:y=>{a.value=y||"",y&&y.length>=s},onSelect:y=>{},clearSearch:()=>{a.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:y=>{l.value=y},setLoading:y=>{u.value=y},setGlobalLoading:y=>{f.value=y}}}const My=["disabled"],Ry={key:1,class:"bi bi-three-dots-vertical"},Ty=Fe(o.defineComponent({__name:"HeaderSearchForm",props:{placeholder:{default:"Поиск..."},searchHint:{default:"Введите минимум 3 символа"},searchTypes:{default:()=>[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}]},defaultSearchType:{default:"partial"},minSearchLength:{default:3},searchTypeName:{default:"searchType"},options:{default:()=>[]},isLoading:{type:Boolean,default:!1},isSearchLoading:{type:Boolean,default:!1}},emits:["search","select","searchTypeChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={placeholder:i.placeholder,searchHint:i.searchHint,searchTypes:i.searchTypes,defaultSearchType:i.defaultSearchType,minSearchLength:i.minSearchLength},{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:S,onSelect:m,clearSearch:E,toggleSettings:b,hideSettings:g}=xy(s),T=o.ref();o.computed(()=>i.options.length>0?i.options:l.value),o.computed(()=>i.isSearchLoading||u.value),o.computed(()=>i.isLoading||f.value);const v=x=>{const w=x||"";S(w),r("search",w,c.value)},R=x=>{m(x),r("select",x)},y=o.computed(()=>i.searchTypeName);o.watch(c,x=>{r("searchTypeChange",x),g()});const M=x=>{const w=x.target;C.value?.contains(w)||g()},C=o.ref();return o.onMounted(()=>{document.addEventListener("click",M)}),o.onUnmounted(()=>{document.removeEventListener("click",M)}),e({clearSearch:E,setOptions:x=>{l.value=x},setLoading:x=>{u.value=x},setGlobalLoading:x=>{f.value=x},focus:()=>{T.value?.$el?.querySelector("input")?.focus()}}),(x,w)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:C,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(o.openBlock(),o.createBlock(oi,{ref_key:"selectRef",ref:T,key:o.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:o.unref(a),"onUpdate:modelValue":[w[0]||(w[0]=_=>o.isRef(a)?a.value=_:null),R],reduce:_=>_,options:x.options,placeholder:x.placeholder,onSearch:v,onBlur:o.unref(E),onFocus:o.unref(g),isLoading:x.isSearchLoading,hint:o.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),o.createElementVNode("button",{class:"btn btn-light px-2",onClick:w[1]||(w[1]=(..._)=>o.unref(b)&&o.unref(b)(..._)),disabled:x.isLoading},[x.isLoading?(o.openBlock(),o.createBlock(kr,{key:0,isSmall:!0})):(o.openBlock(),o.createElementBlock("i",Ry))],8,My),o.unref(d)?(o.openBlock(),o.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:w[3]||(w[3]=o.withModifiers(()=>{},["stop"]))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(h),_=>(o.openBlock(),o.createElementBlock("li",{key:_.value,class:"setting-item"},[o.createVNode(Dc,{name:y.value,label:_.label,modelValue:o.unref(c),"onUpdate:modelValue":w[2]||(w[2]=D=>o.isRef(c)?c.value=D:null),type:"radio",group:y.value,trueValue:_.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function Dy(n={}){const{loadRegions:e,loadDistricts:t,loadLocalities:i,loadStreets:r,regionKey:s="region_id",districtKey:a="district_id",localityKey:l="locality_id",streetKey:u="street_id",houseKey:c="house",buildingKey:d="building",apartmentKey:f="apartment",regionLabel:p="Регион",districtLabel:h="Район",localityLabel:S="Населенный пункт",streetLabel:m="Улица",houseLabel:E="Дом",buildingLabel:b="Корпус",apartmentLabel:g="Квартира",columnWidth:T="12",prefix:v="",multiLocalities:R=!1,multiStreets:y=!1,showHouseFields:M=!0}=n,C=o.ref({}),x=o.ref(!1),w=o.ref(!1),_=o.ref(!1),D=o.ref(!1),O=o.ref(!1),V=o.ref([]),j=o.ref([]),W=o.ref([]),N=o.ref([]),I=o.computed(()=>`${v}${s}`),q=o.computed(()=>`${v}${a}`),L=o.computed(()=>`${v}${l}`),B=o.computed(()=>`${v}${u}`),G=o.computed(()=>`${v}${c}`),z=o.computed(()=>`${v}${d}`),K=o.computed(()=>`${v}${f}`),Q=o.computed(()=>({region:p,district:h,locality:S,street:m,house:E,building:b,apartment:g})),$=async me=>{if(e){w.value=!0;try{V.value=await e(me)}finally{w.value=!1}}},se=async me=>{if(t){_.value=!0;try{j.value=await t(me)}finally{_.value=!1}}},Y=async me=>{if(i){D.value=!0;try{W.value=await i(me)}finally{D.value=!1}}},H=async me=>{if(r){O.value=!0;try{N.value=await r(me)}finally{O.value=!1}}},ie=me=>{const Oe={...C.value,[I.value]:me,[q.value]:null,[L.value]:null,[B.value]:null,[G.value]:null,[z.value]:null,[K.value]:null};C.value=Oe,j.value=[],W.value=[],N.value=[]},ee=me=>{const Oe={...C.value,[q.value]:me,[L.value]:null,[B.value]:null,[G.value]:null,[z.value]:null,[K.value]:null};C.value=Oe},X=me=>{const Oe={...C.value,[L.value]:me,[B.value]:null,[G.value]:null,[z.value]:null,[K.value]:null};C.value=Oe,N.value=[]},fe=async me=>{ie(me),me&&(await se(me),await Y(me),await H(me))},ue=async me=>{if(ee(me),!me){const Oe=C.value[I.value];Oe&&await fe(Oe);return}await Y(me)},ve=async me=>{X(me),me&&await H(me)},ae=me=>{const Oe={...C.value,[B.value]:me,[G.value]:null,[z.value]:null,[K.value]:null};C.value=Oe},Se=me=>{const Oe=me.target,ze={...C.value,[G.value]:Oe.value};C.value=ze},Pe=me=>{const Oe=me.target,ze={...C.value,[z.value]:Oe.value};C.value=ze},Be=me=>{const Oe=me.target,ze={...C.value,[K.value]:Oe.value};C.value=ze},Ve=o.computed(()=>{const me=C.value[I.value];return me&&V.value.find(Oe=>String(Oe.id)===String(me))?.label||""}),le=o.computed(()=>{const me=C.value[q.value];return me&&j.value.find(Oe=>String(Oe.id)===String(me))?.label||""}),J=o.computed(()=>{const me=C.value[L.value];return me&&W.value.find(Oe=>String(Oe.id)===String(me))?.label||""}),te=o.computed(()=>{const me=C.value[B.value];return me&&N.value.find(Oe=>String(Oe.id)===String(me))?.label||""}),pe=o.computed(()=>{const me=C.value[G.value];return me?`${E} ${me}`:""}),de=o.computed(()=>{const me=C.value[z.value];return me?`${b} ${me}`:""}),ke=o.computed(()=>{const me=C.value[K.value];return me?`${g} ${me}`:""}),Ae=o.computed(()=>[Ve.value,le.value,J.value,te.value,pe.value,de.value,ke.value].filter(Boolean).join(", ")),Re=o.computed(()=>{const me=C.value[L.value];return Array.isArray(me)?me.length>1:!1}),Te=o.computed(()=>y?!1:M);return{modelValue:C,isLoading:x,isRegionLoading:w,isDistrictLoading:_,isLocalityLoading:D,isStreetLoading:O,regionOptions:V,districtOptions:j,localityOptions:W,streetOptions:N,finalRegionKey:I,finalDistrictKey:q,finalLocalityKey:L,finalStreetKey:B,finalHouseKey:G,finalBuildingKey:z,finalApartmentKey:K,labels:Q,selectedRegionLabel:Ve,selectedDistrictLabel:le,selectedLocalityLabel:J,selectedStreetLabel:te,selectedHouseLabel:pe,selectedBuildingLabel:de,selectedApartmentLabel:ke,fullAddress:Ae,isMultiLocalitiesSelected:Re,shouldShowHouseFields:Te,loadRegionOptions:$,loadDistrictOptions:se,loadLocalityOptions:Y,loadStreetOptions:H,onRegionSelect:fe,onDistrictSelect:ue,onLocalitySelect:ve,onStreetSelect:ae,onHouseInput:Se,onBuildingInput:Pe,onApartmentInput:Be,resetFieldsByRegion:ie,resetFieldsByDistrict:ee,resetFieldsByLocality:X}}const _y={class:"address-form"},Ay={class:"row"},Oy={class:"form-label"},Ly={class:"form-label"},Py={class:"form-label"},Fy={class:"form-label"},By={class:"form-label"},Vy=["value","disabled"],Ny={class:"form-label"},Hy=["value","disabled"],Iy={class:"form-label"},zy=["value","disabled"],jy={key:0,class:"mt-3"},Wy={class:"alert alert-info"},Yy=Fe(o.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},regionKey:{default:"region_id"},districtKey:{default:"district_id"},localityKey:{default:"locality_id"},streetKey:{default:"street_id"},houseKey:{default:"house"},buildingKey:{default:"building"},apartmentKey:{default:"apartment"},regionLabel:{default:"Регион"},districtLabel:{default:"Район"},localityLabel:{default:"Населенный пункт"},streetLabel:{default:"Улица"},houseLabel:{default:"Дом"},buildingLabel:{default:"Корпус"},apartmentLabel:{default:"Квартира"},columnWidth:{default:"12"},prefix:{default:""},multiLocalities:{type:Boolean,default:!1},multiStreets:{type:Boolean,default:!1},showHouseFields:{type:Boolean,default:!0},showFullAddress:{type:Boolean,default:!1},disabledFields:{default:()=>({})},allowClear:{default:()=>({})},countryId:{default:void 0},setFilterParamsStringsHandler:{type:Function,default:void 0},filterName:{default:"address"},isParentComponentReady:{type:Boolean,default:!0}},emits:["update:modelValue","change","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,regionLabel:i.regionLabel,districtLabel:i.districtLabel,localityLabel:i.localityLabel,streetLabel:i.streetLabel,houseLabel:i.houseLabel,buildingLabel:i.buildingLabel,apartmentLabel:i.apartmentLabel,columnWidth:i.columnWidth,prefix:i.prefix,multiLocalities:i.multiLocalities,multiStreets:i.multiStreets,showHouseFields:i.showHouseFields},{modelValue:a,isRegionLoading:l,isDistrictLoading:u,isLocalityLoading:c,isStreetLoading:d,regionOptions:f,districtOptions:p,localityOptions:h,streetOptions:S,finalRegionKey:m,finalDistrictKey:E,finalLocalityKey:b,finalStreetKey:g,finalHouseKey:T,finalBuildingKey:v,finalApartmentKey:R,labels:y,selectedRegionLabel:M,selectedDistrictLabel:C,selectedLocalityLabel:x,selectedStreetLabel:w,selectedHouseLabel:_,selectedBuildingLabel:D,selectedApartmentLabel:O,fullAddress:V,isMultiLocalitiesSelected:j,shouldShowHouseFields:W,loadRegionOptions:N,onRegionSelect:I,onDistrictSelect:q,onLocalitySelect:L,onStreetSelect:B,onHouseInput:G,onBuildingInput:z,onApartmentInput:K}=Dy(s);let Q=!1;o.watch(()=>i.modelValue,ae=>{Q||(a.value={...ae})},{immediate:!0,deep:!0}),o.watch(a,ae=>{Q=!0,r("update:modelValue",{...ae}),r("change",{...ae}),o.nextTick(()=>{Q=!1})},{deep:!0});let $=!1;o.watch(()=>i.countryId,async(ae,Se)=>{if(!$&&ae!=null&&i.loadRegions){if(ae!==Se){const Pe={...a.value,[m.value]:null,[E.value]:null,[b.value]:null,[g.value]:null,[T.value]:null,[v.value]:null,[R.value]:null};a.value=Pe}try{$=!0,await N(ae)}catch(Pe){console.error("❌ AddressForm: Error loading regions",Pe)}finally{$=!1}}},{immediate:!0});const se=async ae=>{await I(ae),r("regionChange",ae)},Y=async ae=>{await q(ae),r("districtChange",ae)},H=async ae=>{await L(ae),r("localityChange",ae)},ie=ae=>{B(ae),r("streetChange",ae)},ee=ae=>{G(ae)},X=ae=>{z(ae)},fe=ae=>{K(ae)},ue=o.computed(()=>{if(!i.multiLocalities)return!1;const ae=a.value[g.value];return!Array.isArray(ae)||ae?.length<2});function ve(){return[M.value,C.value,x.value,w.value,_.value,D.value,O.value].filter(Boolean).join(", ")}return o.watch(()=>_.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>D.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>O.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>w.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>x.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>C.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>M.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),e({loadRegionOptions:N,resetForm:()=>{a.value={},f.value=[],p.value=[],h.value=[],S.value=[]},getFullAddress:()=>V.value,getValue:()=>ve()}),(ae,Se)=>(o.openBlock(),o.createElementBlock("div",_y,[o.createElementVNode("div",Ay,[o.createElementVNode("div",{class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Oy,o.toDisplayString(o.unref(y).region),1),o.createVNode(oi,{modelValue:ae.modelValue[o.unref(m)],options:o.unref(f),disabled:ae.disabledFields?.region||o.unref(l),"onUpdate:modelValue":se,allowClear:ae.allowClear?.region,isLoading:o.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Ly,o.toDisplayString(o.unref(y).district),1),o.createVNode(oi,{modelValue:ae.modelValue[o.unref(E)],disabled:ae.disabledFields?.district||o.unref(u),options:o.unref(p),"onUpdate:modelValue":Y,allowClear:ae.allowClear?.district,isLoading:o.unref(u)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Py,o.toDisplayString(o.unref(y).locality),1),o.createVNode(oi,{modelValue:ae.modelValue[o.unref(b)],disabled:ae.disabledFields?.locality||o.unref(c),"onUpdate:modelValue":H,options:o.unref(h),name:o.unref(b),showAddButton:ue.value,isLoading:o.unref(c),multiple:ae.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),o.unref(j)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Fy,o.toDisplayString(o.unref(y).street),1),o.createVNode(oi,{modelValue:ae.modelValue[o.unref(g)],disabled:ae.disabledFields?.street||o.unref(d),options:o.unref(S),"onUpdate:modelValue":ie,allowClear:ae.allowClear?.street,isLoading:o.unref(d),multiple:ae.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),o.unref(W)?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",By,o.toDisplayString(o.unref(y).house),1),o.createElementVNode("input",{type:"text",class:"form-control",value:ae.modelValue[o.unref(T)]||"",disabled:ae.disabledFields?.house,onInput:ee},null,40,Vy)],2)):o.createCommentVNode("",!0),o.unref(W)?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Ny,o.toDisplayString(o.unref(y).building),1),o.createElementVNode("input",{type:"text",class:"form-control",value:ae.modelValue[o.unref(v)]||"",disabled:ae.disabledFields?.building,onInput:X},null,40,Hy)],2)):o.createCommentVNode("",!0),o.unref(W)?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Iy,o.toDisplayString(o.unref(y).apartment),1),o.createElementVNode("input",{type:"text",class:"form-control",value:ae.modelValue[o.unref(R)]||"",disabled:ae.disabledFields?.apartment,onInput:fe},null,40,zy)],2)):o.createCommentVNode("",!0)],64))]),ae.showFullAddress&&o.unref(V)?(o.openBlock(),o.createElementBlock("div",jy,[o.createElementVNode("div",Wy,[Se[0]||(Se[0]=o.createElementVNode("strong",null,"Полный адрес:",-1)),o.createTextVNode(" "+o.toDisplayString(o.unref(V)),1)])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-35914e44"]]),Uy={class:"age-from-to-form"},Gy={class:"form-group"},$y={key:0,class:"form-label mb-2"},qy={class:"row align-items-center mb-2"},Ky={class:"col-auto"},Jy={class:"form-label mb-0"},Xy={class:"col"},Qy={class:"col"},Zy={class:"row align-items-center mb-2"},ew={class:"col-auto"},tw={class:"form-label mb-0"},iw={class:"col"},nw={class:"col"},rw=Fe(o.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:"От"},placeholderTo:{default:"До"},timeTypeOptions:{default:()=>[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}]},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={age_from:null,age_to:null,time_type_from:null,time_type_to:null},a=o.ref({...s}),l=o.computed(()=>{const h=a.value.age_from;if(!h)return null;const S=a.value.time_type_from,m=i.timeTypeOptions.find(({id:E})=>Number(E)===Number(S))?.label;return m?`${h} ${m}`:null}),u=o.computed(()=>{const h=a.value.age_to;if(!h)return null;const S=a.value.time_type_to,m=i.timeTypeOptions.find(({id:E})=>Number(E)===Number(S))?.label;return m?`${h} ${m}`:null}),c=()=>{a.value={...s}},d=()=>{i.onFilterUpdate&&(i.onFilterUpdate(i.nameFrom,l.value),i.onFilterUpdate(i.nameTo,u.value))},f=h=>{if(!h.age_from&&!h.age_to&&!h.time_type_from&&!h.time_type_to){r("update:modelValue",null),r("change",{...s}),d();return}const m=[];h.age_from&&h.time_type_from&&m.push(`age_from[time_type]=${h.time_type_from}&age_from[value]=${h.age_from}`),h.age_to&&h.time_type_to&&m.push(`age_to[time_type]=${h.time_type_to}&age_to[value]=${h.age_to}`);const E=m.length>0?m.join("&")+"&":"";r("update:modelValue",E||null),r("change",{...h}),d()},p=h=>{if(h)try{const S=new URLSearchParams(h),m=S.get("age_from[value]"),E=S.get("age_from[time_type]"),b=S.get("age_to[value]"),g=S.get("age_to[time_type]");a.value={age_from:m?Number(m):null,age_to:b?Number(b):null,time_type_from:E?Number(E):null,time_type_to:g?Number(g):null}}catch(S){console.warn("Error parsing query string:",S)}};return o.watch(()=>i.modelValue,(h,S)=>{h!==S&&(h===null?c():p(h))},{immediate:!0}),o.watch(()=>a.value,h=>{f(h)},{deep:!0}),o.onMounted(()=>{i.modelValue&&p(i.modelValue)}),e({reset:c,getFormData:()=>({age_from:a.value.age_from?Number(a.value.age_from):null,age_to:a.value.age_to?Number(a.value.age_to):null,time_type_from:a.value.time_type_from?Number(a.value.time_type_from):null,time_type_to:a.value.time_type_to?Number(a.value.time_type_to):null}),getFilterStrings:()=>({from:l.value,to:u.value})}),(h,S)=>(o.openBlock(),o.createElementBlock("div",Uy,[o.createElementVNode("div",Gy,[h.title?(o.openBlock(),o.createElementBlock("label",$y,o.toDisplayString(h.title),1)):o.createCommentVNode("",!0),o.createElementVNode("div",qy,[o.createElementVNode("div",Ky,[o.createElementVNode("label",Jy,o.toDisplayString(h.placeholderFrom),1)]),o.createElementVNode("div",Xy,[o.createVNode(er,{modelValue:a.value.age_from,"onUpdate:modelValue":S[0]||(S[0]=m=>a.value.age_from=m),name:h.nameFrom,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderFrom.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",Qy,[o.createVNode(oi,{modelValue:a.value.time_type_from,"onUpdate:modelValue":S[1]||(S[1]=m=>a.value.time_type_from=m),name:`${h.nameFrom}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])]),o.createElementVNode("div",Zy,[o.createElementVNode("div",ew,[o.createElementVNode("label",tw,o.toDisplayString(h.placeholderTo),1)]),o.createElementVNode("div",iw,[o.createVNode(er,{modelValue:a.value.age_to,"onUpdate:modelValue":S[2]||(S[2]=m=>a.value.age_to=m),name:h.nameTo,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderTo.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",nw,[o.createVNode(oi,{modelValue:a.value.time_type_to,"onUpdate:modelValue":S[3]||(S[3]=m=>a.value.time_type_to=m),name:`${h.nameTo}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])])])]))}}),[["__scopeId","data-v-4b5f9814"]]),sw={key:0,class:"modal-wrapper"},aw={class:"modal-header pb-4 border-bottom-0"},ow={key:0,class:"modal-title"},lw={key:0,class:"modal-body pt-0"},uw={key:1,class:"modal-footer row justify-content-start pt-3"},Fc=Fe(o.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!1},centered:{type:Boolean,default:!0},size:{type:String,default:""},style:{type:String,default:""},modalVisibility:{type:Boolean,default:!1}},emits:["update:modelValue","emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},a=l=>{l.key==="Escape"&&s()};return o.watch(()=>t.modelValue,l=>{l?(document.body.style.overflow="hidden",window.addEventListener("keydown",a)):(document.body.style.overflow="",window.removeEventListener("keydown",a))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",a)}),(l,u)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(o.openBlock(),o.createElementBlock("div",sw,[o.createElementVNode("div",{class:"overlay",onClick:s}),o.createElementVNode("div",{class:o.normalizeClass(["modal-dialog",{"modal-dialog-scrollable":n.scrollable,"modal-dialog-centered":n.centered,"modal-sm":n.size==="sm","modal-lg":n.size==="lg","modal-xl":n.size==="xl"}])},[o.createElementVNode("div",{class:"modal-content p-3",style:o.normalizeStyle(n.style)},[o.createElementVNode("div",aw,[n.title?(o.openBlock(),o.createElementBlock("h4",ow,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),o.unref(r)["modal-body"]||o.unref(r).body?(o.openBlock(),o.createElementBlock("div",lw,[o.renderSlot(l.$slots,"modal-body",{},void 0,!0),o.renderSlot(l.$slots,"body",{},void 0,!0)])):o.createCommentVNode("",!0),o.unref(r)["modal-footer"]||o.unref(r).footer?(o.openBlock(),o.createElementBlock("div",uw,[o.renderSlot(l.$slots,"modal-footer",{},void 0,!0),o.renderSlot(l.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],4)],2)])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-a60564b8"]]),cw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVcg8fRXbzl8hF9wirpVItFWAUVgUOoRvCkqATxgr1V0wUGufeKjUaRbQKiV+5Ss7fsFUp2NWkjDn+FbK7+JWIWuYhIThTsCZwEAnzF0r3hn5ZOFFcJFRfNVlo/OECqREe8NoaediLq5WiHTuVwi7ErlDLIjDkkLEkMPVYcqBMnZjh5+GTH9whVnklajoe+qVcuLIqXhz9Avlp3kICPwNGYEHgoFrWII3TwoqwRqprlOzFT8kldR8rRYYfkamuACP4LfBCtSyFSa9lVVgjJPSCxe1l1KPpM6/7rfRwweXyO8I5+AoM4KfANO2539hIY+zc74irX3hcqkXm0iYJwnZhVNtH8Bk/BKbeSiY5ZPzBm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BHiPwVp2KaW/Uu5RGwJNlL19dzjnx09lWHaQ2kk8VBx49lht+HamGeLOJZOw4nLKmAUQ0BOv2okXk02R6ZApXbOKFacLMR77tQ3qkZOe0F3jd0wgrp8iz8ZUbL0geuAA6dTyMvNTEtkFHCqMuexRGYqIO5ZMGne12H7Fe3YfqX7Nu8kRDNcdEp09JgvFBVYKDLwUR2SE+uB+QztyYZgBFjEwz2XzfZDF4gIzveh4qBEg8Ky9aiOC1v9/JHz7hx8Hr791iKsOAe2UhGC8vW/SlSmf/DdUpA3Ej1JFEXHPkIVYLTBA+CdERu/h075x5qycW/HPYOHJ0+HAuLHJEQWpgl2haa+1/PTLejk3ztuIzHiadIa+GsHqLpplOkUutOyQIggZbHF7mtPH5jcXN+f/eVnrY3HCbQB6LMxz3yabsFtg4KU447IK5sy4aMtpQl9DWIDFnA5TRKtxgsAqs4m5nlYLIkSeGZexeW5ppq2rYF0QFlaLLnk2OQAnCQy8FHkwkxN9ANOqEcNc1bjhxapLQCDqln+HCj7eEfpuHM9YSxVFojH85BCcJrCKjyInJrydfQhiD81z1Tx0X1p1yYS0Gl4n9eENL1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",pw={class:"row mb-3"},mw={class:"col-auto"},gw={class:"image-container",style:{width:"90px",height:"90px"}},bw=["src","alt"],vw=["src"],yw=["src"],ww=["src"],Cw=["src"],Ew={class:"col"},kw={class:"confirmation-content"},Sw={key:0,class:"mb-3"},xw={key:1,class:"text-muted"},Mw={key:0,class:"row"},Rw={class:"col-auto"},Tw=["disabled"],Dw={class:"col"},_w=["disabled"],Aw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Ow=Fe(o.defineComponent({__name:"ConfirmationModal",props:{title:{default:"Подтверждение"},message:{default:""},description:{default:""},modalVisibility:{type:Boolean,default:!1},size:{default:""},confirmText:{default:"Да"},cancelText:{default:"Нет"},imageSrc:{default:""},imageAlt:{default:""},loading:{type:Boolean,default:!1},mode:{default:"confirmation"},showButtons:{type:Boolean,default:!0}},emits:["update:modalVisibility","confirm","cancel"],setup(n,{emit:e}){const t=n,i=e,r=d=>{i("update:modalVisibility",d)},s=()=>{switch(t.mode){case"success":return"btn btn-success";case"warning":return"btn btn-warning";case"error":return"btn btn-danger";default:return"btn btn-primary"}},a=()=>{switch(t.mode){case"success":return"Отлично";case"warning":return"Понятно";case"error":return"Понятно";default:return t.confirmText}},l=()=>{t.loading||i("confirm")},u=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},c=d=>{console.warn("Failed to load image:",d.target.src)};return(d,f)=>(o.openBlock(),o.createBlock(Fc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":o.withCtx(()=>[o.createElementVNode("div",pw,[o.createElementVNode("div",mw,[o.createElementVNode("div",gw,[d.imageSrc?(o.openBlock(),o.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,bw)):d.mode==="success"?(o.openBlock(),o.createElementBlock("img",{key:1,class:"w-100",src:o.unref(fw),alt:"Успех",onError:c},null,40,vw)):d.mode==="warning"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"w-100",src:o.unref(hw),alt:"Предупреждение",onError:c},null,40,yw)):d.mode==="error"?(o.openBlock(),o.createElementBlock("img",{key:3,class:"w-100",src:o.unref(dw),alt:"Ошибка",onError:c},null,40,ww)):(o.openBlock(),o.createElementBlock("img",{key:4,class:"w-100",src:o.unref(cw),alt:"Подтверждение",onError:c},null,40,Cw))])]),o.createElementVNode("div",Ew,[o.createElementVNode("div",kw,[d.message?(o.openBlock(),o.createElementBlock("h5",Sw,o.toDisplayString(d.message),1)):o.createCommentVNode("",!0),d.description?(o.openBlock(),o.createElementBlock("p",xw,o.toDisplayString(d.description),1)):o.createCommentVNode("",!0)])])]),o.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":o.withCtx(()=>[o.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(o.openBlock(),o.createElementBlock("div",Mw,[o.createElementVNode("div",Rw,[d.mode==="confirmation"?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},o.toDisplayString(d.cancelText),9,Tw)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Dw,[o.createElementVNode("button",{class:o.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(o.openBlock(),o.createElementBlock("span",Aw)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(a()),1)],10,_w)])])):o.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-5b40270e"]]),Lw={key:0,class:"filter-modal-wrapper"},Pw={class:"filter-modal-dialog"},Fw={class:"filter-modal-content"},Bw={class:"filter-modal-header"},Vw={key:0,class:"filter-modal-title"},Nw={class:"filter-modal-body"},Hw={class:"filter-modal-footer"},Iw=Fe(o.defineComponent({__name:"TableFilterModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=()=>{i("emitModalVisibility",!1)},s=a=>{a.key==="Escape"&&r()};return o.watch(()=>t.modalVisibility,a=>{a?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(a,l)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[a.modalVisibility?(o.openBlock(),o.createElementBlock("div",Lw,[o.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),o.createElementVNode("div",Pw,[o.createElementVNode("div",Fw,[o.createElementVNode("div",Bw,[a.title?(o.openBlock(),o.createElementBlock("h4",Vw,o.toDisplayString(a.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),o.createElementVNode("div",Nw,[o.renderSlot(a.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",Hw,[o.renderSlot(a.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),zw={key:0,class:"px-0"},jw={class:"modal-dialog modal-dialog-centered modal-xl"},Ww={class:"modal-content py-2 px-4"},Yw={class:"modal-header mb-3"},Uw={class:"modal-title"},Gw={class:"modal-body row"},$w={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Bc=Fe(o.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(o.openBlock(),o.createElementBlock("div",zw,[o.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),o.createElementVNode("div",jw,[o.createElementVNode("div",Ww,[o.createElementVNode("div",Yw,[o.createElementVNode("h3",Uw,o.toDisplayString(t.title),1),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),o.createElementVNode("div",Gw,[o.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",$w,[o.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),qw={class:"row mb-4 mx-0","data-test":"PageTitle"},Kw={class:"col-12"},Jw={class:"row align-items-center"},Xw={class:"col-auto"},Qw={class:"col d-flex justify-content-end"},Zw=Fe(o.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",qw,[o.createElementVNode("div",Kw,[o.createElementVNode("div",Jw,[o.createElementVNode("div",Xw,[o.createElementVNode("h2",{class:o.normalizeClass(["mb-0",e.titleClass]),style:o.normalizeStyle(e.titleStyle)},o.toDisplayString(e.title),7),e.subtitle?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:o.normalizeStyle(e.subtitleStyle)},o.toDisplayString(e.subtitle),7)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Qw,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),eC={class:"card-body"},tC={class:"card-text"},iC=Fe({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",n.bodyClass])},[o.createElementVNode("div",eC,[o.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),o.createElementVNode("p",tC,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),nC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},rC=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("footer",nC,o.toDisplayString(e.copyrightText)+" "+o.toDisplayString(o.unref(we)().year()),1))}}),sC={class:"custom-dropdown"},aC={style:{"border-bottom":"2px solid #000"}},oC={class:"dropdown-list-wrapper"},lC={key:0,class:"custom-dropdown-menu"},uC=["onClick"],Sa=Fe({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(n){return["actions","profile"].includes(n)}}},setup(n){const e=n,t=o.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},a=o.computed(()=>e.type==="profile");return(l,u)=>(o.openBlock(),o.createElementBlock("div",sC,[a.value?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:i,onBlur:s},[u[0]||(u[0]=o.createElementVNode("div",{class:"circl"},null,-1)),o.createTextVNode(" "+o.toDisplayString(n.title),1)],32)):(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[o.createElementVNode("span",aC,o.toDisplayString(n.title),1),u[1]||(u[1]=o.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),o.createElementVNode("div",oC,[t.value?(o.openBlock(),o.createElementBlock("ul",lC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.links,(c,d)=>(o.openBlock(),o.createElementBlock("li",{key:d},[c.hidden?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onClick:f=>r(c?.action)},o.toDisplayString(c?.title),11,uC))]))),128))])):o.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-efc16eec"]]),cC="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx3gbkmB2u63rFYvEegB4AEFGFiHbq9XrrnE2bS+QzzRxBzjg7AKzQ4fVOp/Ptedk0j8hJM2f45ptvloUQ34WPMfNmqVRayeOck0Huns0ZXrx4sQkgQg4iWpYxT44TQE6a+cSm5phj2/bjM7dkDpGTZj5RSTjerNfrzplaMofISTNncBynAiCRGMy8eobmzCVy0swRQonO1NO+/vrr6pkYNKfISTMnsG27KeXmJNdsjFKpdOsMTJpbFM7bgBzHh+M41uHh4UPDMJrIQJYRhBB5fdoMyEnziWFpaalCRPcNw1geDAZVwzCsyd+KYH17e3vrVIz7gyBPbl5gOI5jDYfDqu/7t4ioSkQOpphRFPSZeb3b7a6dpI1/ROSkuSCo1WpVZr4ryVFFQI5pZxEVfQA9IcTmwsLC07wi4GSQk+YcUa/XHWa+D6CB2QkCAB4z95jZBdDL3bDTQU6ac4AkyypS8ikZMCYIEXmlUmkrn0nOBjlpzhAyj/IExyNLH0AbQI+Z3W63++5krcuRFTlpzgi2bTcBrGJ6N8wVQrRyV+viICfNGaBer7eOUb7i+r6/kq/5v3jISXPKmJYwzOwxcyOfWS4uYqRxHMc6ODjI7EJMMxIuLS0d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xEKBTimjCbZ4fKbL5YhRHjxWep36eZ+G0Cb33xxH+w7QSxFwQxpUA8sPDD18NvvE3fOmbt9z2q12nikLJVKH85qf2Pbtp8juTbNJaI1IcQT0zS/nbRQLsfFxtyR5qwh1cdHzPy9ugeBRB9Ar1gsPhgMBr8AABHdm2b/tRwXC/mT0GaEdA0rcr1/W850nzPzfxGRF3YHbdsGgNETlnPSfKLISTM7lsNFo5Ikk+KmSZt55LjAyJ/uPAPknmkWEVmTSnnCyiIAMMdL7nN8GshJczJILCUaQVXXWN1SKMcng5w0M0DKx6Pqg2bSwjf5bBq1bH7mkqIc54OcNLNjlOyziOh5eG80x3EsmeCMlbBPuyQhx8VBLjnPCCk57yBeNqMWlY4hF6ZN/SSCHBcDmg1qckwDz/P6V69ePQTwN+WjpCJRr1QqPfA87+D0rctxGshJcwL48ccfX129evUDgCUAiymnuqVS6V7+FOZPG7l7doIYVQfgYx1cX75cIcRm/kjA+cC/AdgTzC0pucD7AAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e",dC=["src","alt"],Vc=Fe(o.defineComponent({__name:"Logo",props:{src:{default:cC},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=o.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=o.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=o.computed(()=>"r3ui-logo-container"),a=o.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3ui-logo-container",s.value])},[o.createElementVNode("img",{src:t.value,alt:l.alt,class:o.normalizeClass(i.value),style:o.normalizeStyle(r.value)},null,14,dC),l.brandText&&l.brandText.trim()&&l.showText?(o.openBlock(),o.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:o.normalizeStyle(a.value)},o.toDisplayString(l.brandText),5)):o.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),hC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},fC={class:"row align-items-center"},pC={class:"col-auto pe-0"},mC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},gC={class:"row"},bC={class:"col-auto d-flex align-items-center"},vC={key:1,class:"text-muted"},yC={class:"col-auto"},wC=Fe(o.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,a)=>(o.openBlock(),o.createElementBlock("div",hC,[o.createElementVNode("div",{class:o.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[o.createElementVNode("a",{href:"/",onClick:a[0]||(a[0]=o.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[o.createElementVNode("div",fC,[o.createElementVNode("div",pC,[o.renderSlot(s.$slots,"logo",{},()=>[o.createVNode(Vc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),o.createElementVNode("div",mC,o.toDisplayString(t.brandText),1)])]),o.createElementVNode("div",gC,[o.createElementVNode("div",bC,[t.isAuthenticated?(o.openBlock(),o.createBlock(Sa,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):o.createCommentVNode("",!0),t.isAuthenticated?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",vC,o.toDisplayString(t.loginText),1))]),o.createElementVNode("div",yC,[o.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-9b51d3e7"]]),CC={class:"col-12 divider divider__wrapper","data-test":"Divider"},xa={__name:"Divider",props:{height:{type:[Number,String],default:4},className:{type:String,default:"mb-4"},colorHEX:{type:String,default:"#EFEFEF"}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("div",CC,[o.createElementVNode("div",{class:o.normalizeClass(e.className),style:o.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},EC=n=>{const e=o.inject("sidebarContentVisibility"),t=o.inject("toggleSidebar"),i=o.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=o.computed(()=>n.value),a=()=>{if(i.value={},!e?.value)return;const l=u=>{u.childrens?.length&&u.childrens.forEach(l),u.isActive&&u.uniqueKey&&r(u.uniqueKey,u.level)};n.value.forEach(l)};return o.provide("expandAccordion",r),o.provide("expandedAccordion",i),o.watch(n,()=>{a()},{deep:!0}),o.watch(()=>e?.value,()=>{a()},{deep:!0}),o.onMounted(()=>{a()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},kC={key:0},SC=["href","target","rel"],xC=["innerHTML"],MC={key:1},RC=["id"],TC=["innerHTML"],DC=["id"],_C={class:"accordion-body"},Nc=Fe(o.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?window.open(a.href,"_blank","noopener,noreferrer"):t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("SidebarLink",!0);return o.openBlock(),o.createElementBlock("div",null,[n.sidebarLink.childrens?.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",kC,[o.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal?"_blank":void 0,rel:n.sidebarLink.isExternal?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=o.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.sidebarLink.level===0?"nested-links":"extended-menu-item",n.sidebarLink.isActive?"fw-bolder":""]]),style:{background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,xC),o.createElementVNode("span",null,o.toDisplayString(n.sidebarLink.label),1)],2)):o.createCommentVNode("",!0)],8,SC)])),n.sidebarLink.childrens?.length?(o.openBlock(),o.createElementBlock("div",MC,[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[o.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:o.unref(r)&&o.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>o.unref(i)&&o.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,TC),o.createTextVNode(" "+o.toDisplayString(n.sidebarLink.label),1)],2)],8,RC),o.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:o.normalizeClass(["accordion-collapse collapse",{show:o.unref(r)&&o.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[o.createElementVNode("div",_C,[o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.sidebarLink.childrens,c=>(o.openBlock(),o.createElementBlock("li",{key:c.uniqueKey},[o.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,DC)],2)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-e09a8337"]]),AC={key:0},OC={key:0},LC=["title"],PC=["innerHTML"],FC={key:1},BC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},VC={class:"hidden-div"},NC={key:1},HC=["href","target","rel"],IC=["title"],zC=["innerHTML"],jC={key:0,class:"ms-2"},WC={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},YC={key:0,class:"ms-2"},Hc=Fe(o.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?window.open(a.href,"_blank","noopener,noreferrer"):t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(o.openBlock(),o.createElementBlock("div",AC,[n.link.childrens?.length?(o.openBlock(),o.createElementBlock("div",OC,[o.createElementVNode("button",{title:n.link.label,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.link.icon?"icon":"text-align-left bg-white"]]),type:"button",onClick:l[0]||(l[0]=c=>o.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,PC)):(o.openBlock(),o.createElementBlock("span",FC,o.toDisplayString(n.link.label),1))],10,LC),o.unref(r)&&o.unref(r)[n.link.level]===n.link.uniqueKey?(o.openBlock(),o.createElementBlock("div",BC,[o.createElementVNode("div",VC,[o.createElementVNode("h5",null,o.toDisplayString(n.link.label),1),l[3]||(l[3]=o.createElementVNode("hr",{size:"1"},null,-1)),o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.link.childrens,c=>(o.openBlock(),o.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[o.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",NC,[o.createElementVNode("a",{href:n.link.href,target:n.link.isExternal?"_blank":void 0,rel:n.link.isExternal?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=o.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(o.openBlock(),o.createElementBlock("button",{key:0,title:n.link.label,class:"btn btn-light w-100 text-start border-0",type:"button",style:{padding:"15px 20px",background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.link.icon},null,8,zC),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",jC,"↗")):o.createCommentVNode("",!0)],8,IC)):(o.openBlock(),o.createElementBlock("button",WC,[o.createElementVNode("span",null,o.toDisplayString(n.link.label),1),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",YC,"↗")):o.createCommentVNode("",!0)]))],8,HC)]))])):o.createCommentVNode("",!0)}}}),[["__scopeId","data-v-1ba91f9e"]]),UC={key:0},GC={class:"accordion accordion-flush",id:"accordionMenu"},$C={key:1},qC={class:"row"},KC={class:"col-12"},JC={class:"sidebar-footer p-3"},Ic=o.defineComponent({__name:"Sidebar",props:{links:{type:Array,required:!0},isCollapsed:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:a}=EC(o.computed(()=>t.links));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{id:"sidebarContent",class:o.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(o.openBlock(),o.createElementBlock("div",UC,[o.createElementVNode("div",GC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Nc,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",$C,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Hc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),o.createElementVNode("div",qC,[o.createElementVNode("div",KC,[o.createVNode(xa)])]),o.createElementVNode("div",JC,[o.renderSlot(l.$slots,"footer")])],2))}}),XC=n=>{const e=o.ref(!0),t=o.ref(null),i=o.ref(null),r=o.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},a=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():a()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():a()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;d>0&&f>0&&(i.value=d-f-20)},50)};return o.provide("sidebarContentVisibility",e),o.provide("toggleSidebar",l),o.watch(r,()=>{c()},{deep:!0}),o.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),o.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},QC={class:"container-fluid p-0"},ZC={class:"py-4",style:{"min-height":"90vh"}},e0=o.defineComponent({__name:"MainComponent",props:{sidebarLinks:{type:Array,required:!0},isAuthenticated:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,{contentWidth:r,clientWidth:s,sidebarWidth:a,sidebarContentVisibility:l}=XC(o.computed(()=>t.isAuthenticated));return(u,c)=>(o.openBlock(),o.createElementBlock("div",QC,[o.createElementVNode("div",{class:o.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(o.openBlock(),o.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:o.normalizeStyle(`background: #efefef; transition: .2s; width:${o.unref(a)}px;`)},[o.createVNode(Ic,{links:t.sidebarLinks,"is-collapsed":!o.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{id:"content-div",style:o.normalizeStyle(`transition: .2s; width:${o.unref(r)}px;`)},[o.createElementVNode("div",ZC,[o.renderSlot(u.$slots,"breadcrumbs"),o.renderSlot(u.$slots,"default")])],4)],2)]))}}),t0={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},i0={class:"col"},n0={"aria-label":"breadcrumb"},r0={class:"breadcrumb row"},s0=["aria-current"],a0=["href","onClick"],o0={key:1,class:"text-nowrap"},l0=Fe(o.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(o.openBlock(),o.createElementBlock("div",t0,[o.createElementVNode("div",i0,[o.createElementVNode("nav",n0,[o.createElementVNode("ol",r0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.crumbs,(a,l)=>(o.openBlock(),o.createElementBlock("li",{key:l,class:o.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:a.isActive}]),"aria-current":a.isActive?"page":void 0},[a.isActive?(o.openBlock(),o.createElementBlock("span",o0,o.toDisplayString(a.text),1)):(o.openBlock(),o.createElementBlock("a",{key:0,href:a.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:o.withModifiers(()=>i("navigate",a.href),["prevent"])},o.toDisplayString(a.text),9,a0))],10,s0))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),u0={key:0,class:"card-header"},c0={class:"card-title mb-0"},d0={class:"card-body"},h0={class:"row"},f0={class:"row align-items-center"},p0={class:"col-auto label pe-0"},m0={class:"col-auto"},g0={key:0,class:"mt-3"},b0=Fe(o.defineComponent({__name:"CardInfo",props:{title:{default:""},fields:{default:()=>[]},cardClass:{default:""},variant:{default:"default"},size:{default:"md"},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>{const i=["card-info"];return e.variant!=="default"&&i.push(`card-info--${e.variant}`),e.size!=="md"&&i.push(`card-info--${e.size}`),e.bordered&&i.push("card-info--bordered"),e.shadow&&i.push("card-info--shadow"),e.cardClass&&i.push(e.cardClass),i.join(" ")});return(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",t.value])},[i.title?(o.openBlock(),o.createElementBlock("div",u0,[o.createElementVNode("h5",c0,o.toDisplayString(i.title),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",d0,[o.createElementVNode("div",h0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.fields,(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"col-12 mb-2",key:a},[o.createElementVNode("div",f0,[o.createElementVNode("div",p0,o.toDisplayString(s.label)+":",1),o.createElementVNode("div",m0,[o.createElementVNode("span",{class:o.normalizeClass(["value",s.valueClass]),style:o.normalizeStyle(s.valueStyle)},o.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(o.openBlock(),o.createElementBlock("div",g0,[o.renderSlot(i.$slots,"default",{},void 0,!0)])):o.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),v0={class:"page-card"},y0={class:"row hide-to-print card-header mx-0 w-100"},w0={class:"col"},C0={class:"row flex-nowrap align-items-center"},E0={class:"col-auto"},k0={key:0,class:"col-auto"},S0={class:"row",style:{padding:"20px"}},x0={class:"d-flex align-items-start"},M0={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},R0=["onClick"],T0={class:"tab-content",id:"v-pills-tabContent"},D0={key:0,class:"title"},_0={key:1},A0={key:0},O0=["title"],L0={class:"row"},P0={class:"col-12"},F0=Fe(o.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(0),s=o.ref(!1),a=o.ref(!1),l=o.useSlots(),u=p=>{i("click",p)},c=()=>{a.value=!!l.header&&l.header().length>0},d=()=>{s.value=!!l.footer&&l.footer().length>0},f=p=>{r.value=p,i("active-tab",t.tabs[p])};return o.onMounted(()=>{c(),d()}),(p,h)=>(o.openBlock(),o.createElementBlock("div",v0,[o.createElementVNode("div",y0,[o.createElementVNode("div",w0,[o.createElementVNode("div",C0,[o.createElementVNode("div",E0,[a.value?o.renderSlot(p.$slots,"header",{key:0},void 0,!0):o.createCommentVNode("",!0)])])]),p.actionLinks.length>0?(o.openBlock(),o.createElementBlock("div",k0,[o.createVNode(Sa,{title:p.actionsTitle,links:p.actionLinks,onClick:u},null,8,["title","links"])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",S0,[o.createElementVNode("div",x0,[o.createElementVNode("div",M0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:m,class:o.normalizeClass(["nav-link me-5",[m===r.value?"active":""]]),onClick:E=>f(m)},o.toDisplayString(S.navLink),11,R0)),[[o.vShow,S.navLink]])),128))]),o.createElementVNode("div",T0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:o.normalizeClass(["tab-pane fade row",[m===r.value?"show active d-flex":""]])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.contents,(E,b)=>(o.openBlock(),o.createElementBlock("div",{key:b,class:o.normalizeClass(`col-${p.col} mb-3`)},[E.subtitle?(o.openBlock(),o.createElementBlock("div",D0,o.toDisplayString(E.subtitle)+": ",1)):o.createCommentVNode("",!0),typeof E.text=="string"?(o.openBlock(),o.createElementBlock("div",_0,o.toDisplayString(E.text),1)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:2},o.renderList(E.text,(g,T)=>(o.openBlock(),o.createElementBlock("div",{key:T},[typeof g=="string"?(o.openBlock(),o.createElementBlock("div",A0,o.toDisplayString(g),1)):o.createCommentVNode("",!0),typeof g=="object"?(o.openBlock(),o.createElementBlock("div",{key:1,title:g?.description||""},o.toDisplayString(g.name),9,O0)):o.createCommentVNode("",!0)]))),128))],2))),128))],2))),128))])]),s.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(xa,{class:"mt-3"}),o.createElementVNode("div",L0,[o.createElementVNode("div",P0,[o.renderSlot(p.$slots,"footer",{},void 0,!0)])])],64)):o.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-89706e0a"]]),B0={key:0,class:"row w-100 parent"},V0={class:"col-12 wrapper w-100"},N0=["innerHTML"],zc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=o.ref(e.message);o.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(o.openBlock(),o.createElementBlock("div",B0,[o.createElementVNode("div",V0,[o.createElementVNode("div",{class:o.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,N0),o.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):o.createCommentVNode("",!0)}},H0={key:0,class:"row","data-test":"ErrorMessageComponent"},I0={class:"col-12",id:"alert"},z0={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},j0=["innerHTML"],W0=Fe(o.defineComponent({__name:"ErrorMessageComponent",props:{message:{default:""},warningIcon:{type:Boolean,default:!1},type:{default:"danger"},asHtml:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>e.message===null||e.message===void 0?!1:Array.isArray(e.message)?e.message.length>0:!!(e.message&&typeof e.message=="string"&&e.message.length>0&&e.message.trim()!=="")),i=o.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(o.openBlock(),o.createElementBlock("div",H0,[o.createElementVNode("div",I0,[o.createElementVNode("div",{class:o.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(o.openBlock(),o.createElementBlock("i",z0)):o.createCommentVNode("",!0),r.asHtml?(o.openBlock(),o.createElementBlock("div",{key:1,innerHTML:i.value},null,8,j0)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(i.value),1)],64))],2)])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),Y0={class:"accordion-header",style:{background:"transparent"}},U0=["aria-expanded","aria-controls"],G0={key:0},$0=["id"],q0={class:"accordion-body px-0"},K0=Fe(o.defineComponent({__name:"DefaultAccordion",props:{title:{},titleFontSize:{default:16},isCollapsed:{type:Boolean,default:!0},isVisibleBorderBottom:{type:Boolean,default:!0},isCollapsedDefault:{type:Boolean,default:!0},isTitleBold:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["update-visibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=o.ref(Math.random().toString(36).substr(2,9)),a=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return o.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[o.createElementVNode("div",{class:o.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[o.createElementVNode("h2",Y0,[o.createElementVNode("button",{onClick:l,class:o.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:o.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},o.toDisplayString(u.title),15,U0)]),o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[a("accordion-body")?(o.openBlock(),o.createElementBlock("div",G0,[o.withDirectives(o.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[o.createElementVNode("div",q0,[o.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,$0),[[o.vShow,!u.isCollapsed]])])):o.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),J0={class:"accordion-header",style:{background:"transparent"}},X0=["onClick"],Q0={class:"d-flex align-items-center w-100"},Z0={class:"d-flex align-items-center flex-grow-1"},eE=["value","id","onChange"],tE={class:"form-check-label ps-2 text-body flex-grow-1"},iE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},nE={class:"col d-flex flex-wrap px-4"},rE={class:"form-check"},sE=["value","id"],aE=["for"],oE=Fe(o.defineComponent({__name:"KindCheckboxesAccordion",props:{checkboxName:{default:"kinds"},kindGroups:{default:()=>[]},defaultSelectedKinds:{default:()=>[]},defaultSelectedKindGroups:{default:()=>[]}},emits:["emitSelectedKinds","emitSelectedKindGroups"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref([]),a=o.ref([]),l=o.ref(null),u=o.ref([]),c=(S,m)=>{const E=S.target;if(E.tagName==="INPUT"||E.closest(".form-check-input"))return!1;if(E.tagName==="SPAN"||E.closest(".form-check-label"))return l.value!==Number(m)?(l.value=Number(m),!0):(l.value=null,!0);if(l.value!==Number(m))return l.value=Number(m),!0;l.value=null},d=S=>{const m=i.kindGroups.find(b=>b.id===S);if(!m)return;if(s.value.includes(String(S))){const b=m.kinds.map(T=>String(T.id)),g=[...a.value];b.forEach(T=>{g.includes(T)||g.push(T)}),a.value=g}else{const b=m.kinds.map(g=>String(g.id));a.value=a.value.filter(g=>!b.includes(String(g)))}},f=()=>{o.nextTick(()=>{p()})},p=()=>{const S=[];i.kindGroups.forEach((b,g)=>{const T=u.value?.[g];if(!T)return;const v=b.kinds.map(y=>String(y.id)),R=a.value.filter(y=>v.includes(String(y)));R.length===0?(T.indeterminate=!1,T.checked=!1):R.length===v.length?(T.indeterminate=!1,T.checked=!0,S.push(String(b.id))):(T.indeterminate=!0,T.checked=!1)});const m=s.value.map(String).sort(),E=S.map(String).sort();JSON.stringify(m)!==JSON.stringify(E)&&(s.value=S)};o.watch(()=>a.value,S=>{r("emitSelectedKinds",S)},{deep:!0}),o.watch(()=>s.value,S=>{r("emitSelectedKindGroups",S)},{deep:!0}),o.onMounted(()=>{i.defaultSelectedKinds.length>0&&(a.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),o.nextTick(()=>{p()})});const h=o.computed(()=>c);return e({toggleAccordion:c}),(S,m)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups,(E,b)=>(o.openBlock(),o.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:E.id},[S.kindGroups[b].kinds.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",J0,[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(b)}]),type:"button",style:{background:"transparent"},onClick:g=>h.value(g,b)},[o.createElementVNode("div",Q0,[o.createElementVNode("div",Z0,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${E.id}`,id:`${S.checkboxName}_${b}`,name:"kind_group","onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),onClick:m[1]||(m[1]=o.withModifiers(()=>{},["stop"])),onChange:g=>d(E.id)},null,40,eE),[[o.vModelCheckbox,s.value]]),o.createElementVNode("span",tE,o.toDisplayString(E.name),1)]),o.createElementVNode("i",{class:o.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(b)}])},null,2)])],10,X0)]),o.withDirectives(o.createElementVNode("div",iE,[o.createElementVNode("div",nE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups[b].kinds,(g,T)=>(o.openBlock(),o.createElementBlock("div",{class:"col-6 mb-2",key:T},[o.createElementVNode("div",rE,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${g.id}`,id:`${S.checkboxName}_${g.id}`,name:"kinds","onUpdate:modelValue":m[2]||(m[2]=v=>a.value=v),onChange:f},null,40,sE),[[o.vModelCheckbox,a.value]]),o.createElementVNode("label",{class:"form-check-label",for:`${S.checkboxName}_${g.id}`},[o.createElementVNode("small",null,o.toDisplayString(g.name),1)],8,aE)])]))),128))])],512),[[o.vShow,l.value===Number(b)]])],64)):o.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class ct{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class Qe{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var r=e?t.split(e):[t],s=r.length,a;for(let l=0;l<s&&(i=i[r[l]],a=i,!!i);l++);return a}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var a in e){let l=e[a],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[a]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[a]=this.deepClone(l,c,i)))}return t}}let lE=class bd extends ct{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,r=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let s=Qe.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Qe.elOffset(e),r,s,a;switch(this.container!==document.body&&(r=Qe.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,a=i.top-1;break;case"bottom":s=i.left,a=i.top+e.offsetHeight;break;case"left":s=i.left,a=i.top-1;break;case"top":s=i.left,a=i.top;break;case"center":s=i.left+e.offsetWidth/2,a=i.top+e.offsetHeight/2;break}return{x:s,y:a,offset:i}}show(e,t){var i,r,s,a,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),a=l.offset,i=l.x,r=l.y):typeof e=="number"?(a={top:0,left:0},i=e,r=t):(l=this.containerEventCoords(e),i=l.x,r=l.y,this.reversedX=!1),this.element.style.top=r+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,r,s,a,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",u=>{u.stopPropagation()}),this)}_fitToScreen(e,t,i,r,s){var a=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-r.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,a?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(s){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new bd(this.table,e,this),this.childPopup}};class Ie extends ct{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(r=>r.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new lE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var uE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class lr extends Ie{static moduleName="accessor";static accessors=uE;constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(r=>{var s="accessor"+(r.charAt(0).toUpperCase()+r.slice(1)),a;e.definition[s]&&(a=this.lookupAccessor(e.definition[s]),a&&(t=!0,i[s]={accessor:a,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":lr.accessors[e]?t=lr.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.getComponent(),s=Qe.deepClone(e.data||{});return this.table.columnManager.traverse(function(a){var l,u,c,d;a.modules.accessor&&(u=a.modules.accessor[i]||a.modules.accessor.accessor||!1,u&&(l=a.getFieldValue(s),l!="undefined"&&(d=a.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,a.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var cE={method:"GET"};function Ma(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ma(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ma(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function dE(n){var e=Ma(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function jc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+dE(t)),n}function hE(n,e,t){var i;return new Promise((r,s)=>{if(n=this.urlGenerator.call(this.table,n,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var a in i.headers)e.headers||(e.headers={}),typeof e.headers[a]>"u"&&(e.headers[a]=i.headers[a]);e.body=i.body.call(this,n,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);n?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(n,e).then(l=>{l.ok?l.json().then(u=>{r(u)}).catch(u=>{s(u),console.warn("Ajax Load Error - Invalid JSON returned",u)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),s(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),s(l)})):(console.warn("Ajax Load Error - No URL Set"),r([]))})}function Ra(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ra(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ra(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var fE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Ra(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class $i extends Ie{static moduleName="ajax";static defaultConfig=cE;static defaultURLGenerator=jc;static defaultLoaderPromise=hE;static contentTypeFormatters=fE;constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=$i.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||$i.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||$i.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,r){var s=this.table.options.ajaxParams;return s&&(typeof s=="function"&&(s=s.call(this.table)),r=Object.assign(Object.assign({},s),r)),r}requestDataCheck(e,t,i,r){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,r,s){var a;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),a=this.generateConfig(i),this.sendRequest(this.url,t,a)):s}setDefaultConfig(e={}){this.config=Object.assign({},$i.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(r=>(this.table.options.ajaxResponse&&(r=this.table.options.ajaxResponse.call(this.table,e,t,r)),r)):Promise.reject()}}var pE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},mE={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
|
|
31
|
+
`}}function L(){t.calendarContainer.classList.add("hasWeeks");var P=Ke("div","flatpickr-weekwrapper");P.appendChild(Ke("span","flatpickr-weekday",t.l10n.weekAbbreviation));var k=Ke("div","flatpickr-weeks");return P.appendChild(k),{weekWrapper:P,weekNumbers:k}}function B(P,k){k===void 0&&(k=!0);var A=k?P:P-t.currentMonth;A<0&&t._hidePrevMonthArrow===!0||A>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=A,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,qe("onYearChange"),O()),D(),qe("onMonthChange"),We())}function G(P,k){if(P===void 0&&(P=!0),k===void 0&&(k=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,k===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var A=ka(t.config),F=A.hours,U=A.minutes,ne=A.seconds;h(F,U,ne)}t.redraw(),P&&qe("onChange")}function z(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),qe("onClose")}function K(){t.config!==void 0&&qe("onDestroy");for(var P=t._handlers.length;P--;)t._handlers[P].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var k=t.calendarContainer.parentNode;if(k.lastChild&&k.removeChild(k.lastChild),k.parentNode){for(;k.firstChild;)k.parentNode.insertBefore(k.firstChild,k);k.parentNode.removeChild(k)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.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(function(A){try{delete t[A]}catch{}})}function Q(P){return t.calendarContainer.contains(P)}function $(P){if(t.isOpen&&!t.config.inline){var k=St(P),A=Q(k),F=k===t.input||k===t.altInput||t.element.contains(k)||P.path&&P.path.indexOf&&(~P.path.indexOf(t.input)||~P.path.indexOf(t.altInput)),U=!F&&!A&&!Q(P.relatedTarget),ne=!t.config.ignoredFocusElements.some(function(oe){return oe.contains(k)});U&&ne&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&u(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function se(P){if(!(!P||t.config.minDate&&P<t.config.minDate.getFullYear()||t.config.maxDate&&P>t.config.maxDate.getFullYear())){var k=P,A=t.currentYear!==k;t.currentYear=k||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),A&&(t.redraw(),qe("onYearChange"),O())}}function Y(P,k){var A;k===void 0&&(k=!0);var F=t.parseDate(P,void 0,k);if(t.config.minDate&&F&&xt(F,t.config.minDate,k!==void 0?k:!t.minDateHasTime)<0||t.config.maxDate&&F&&xt(F,t.config.maxDate,k!==void 0?k:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(F===void 0)return!1;for(var U=!!t.config.enable,ne=(A=t.config.enable)!==null&&A!==void 0?A:t.config.disable,oe=0,ce=void 0;oe<ne.length;oe++){if(ce=ne[oe],typeof ce=="function"&&ce(F))return U;if(ce instanceof Date&&F!==void 0&&ce.getTime()===F.getTime())return U;if(typeof ce=="string"){var he=t.parseDate(ce,void 0,!0);return he&&he.getTime()===F.getTime()?U:!U}else if(typeof ce=="object"&&F!==void 0&&ce.from&&ce.to&&F.getTime()>=ce.from.getTime()&&F.getTime()<=ce.to.getTime())return U}return!U}function H(P){return t.daysContainer!==void 0?P.className.indexOf("hidden")===-1&&P.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(P):!1}function ie(P){var k=P.target===t._input,A=t._input.value.trimEnd()!==_e();k&&A&&!(P.relatedTarget&&Q(P.relatedTarget))&&t.setDate(t._input.value,!0,P.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ee(P){var k=St(P),A=t.config.wrap?n.contains(k):k===t._input,F=t.config.allowInput,U=t.isOpen&&(!F||!A),ne=t.config.inline&&A&&!F;if(P.keyCode===13&&A){if(F)return t.setDate(t._input.value,!0,k===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),k.blur();t.open()}else if(Q(k)||U||ne){var oe=!!t.timeContainer&&t.timeContainer.contains(k);switch(P.keyCode){case 13:oe?(P.preventDefault(),u(),te()):pe(P);break;case 27:P.preventDefault(),te();break;case 8:case 46:A&&!t.config.allowInput&&(P.preventDefault(),t.clear());break;case 37:case 39:if(!oe&&!A){P.preventDefault();var ce=s();if(t.daysContainer!==void 0&&(F===!1||ce&&H(ce))){var he=P.keyCode===39?1:-1;P.ctrlKey?(P.stopPropagation(),B(he),w(C(1),0)):w(void 0,he)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:P.preventDefault();var ge=P.keyCode===40?1:-1;t.daysContainer&&k.$i!==void 0||k===t.input||k===t.altInput?P.ctrlKey?(P.stopPropagation(),se(t.currentYear-ge),w(C(1),0)):oe||w(void 0,ge*7):k===t.currentYearElement?se(t.currentYear-ge):t.config.enableTime&&(!oe&&t.hourElement&&t.hourElement.focus(),u(P),t._debouncedChange());break;case 9:if(oe){var ye=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Le){return Le}),De=ye.indexOf(k);if(De!==-1){var je=ye[De+(P.shiftKey?-1:1)];P.preventDefault(),(je||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(k)&&P.shiftKey&&(P.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&k===t.amPM)switch(P.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),xe();break}(A||Q(k))&&qe("onKeyDown",P)}function X(P,k){if(k===void 0&&(k="flatpickr-day"),!(t.selectedDates.length!==1||P&&(!P.classList.contains(k)||P.classList.contains("flatpickr-disabled")))){for(var A=P?P.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),F=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),U=Math.min(A,t.selectedDates[0].getTime()),ne=Math.max(A,t.selectedDates[0].getTime()),oe=!1,ce=0,he=0,ge=U;ge<ne;ge+=my.DAY)Y(new Date(ge),!0)||(oe=oe||ge>U&&ge<ne,ge<F&&(!ce||ge>ce)?ce=ge:ge>F&&(!he||ge<he)&&(he=ge));var ye=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+k));ye.forEach(function(De){var je=De.dateObj,Le=je.getTime(),Je=ce>0&&Le<ce||he>0&&Le>he;if(Je){De.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Ze){De.classList.remove(Ze)});return}else if(oe&&!Je)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Ze){De.classList.remove(Ze)}),P!==void 0&&(P.classList.add(A<=t.selectedDates[0].getTime()?"startRange":"endRange"),F<A&&Le===F?De.classList.add("startRange"):F>A&&Le===F&&De.classList.add("endRange"),Le>=ce&&(he===0||Le<=he)&&fy(Le,F,A)&&De.classList.add("inRange"))})}}function fe(){t.isOpen&&!t.config.static&&!t.config.inline&&Be()}function ue(P,k){if(k===void 0&&(k=t._positionElement),t.isMobile===!0){if(P){P.preventDefault();var A=St(P);A&&A.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),qe("onOpen");return}else if(t._input.disabled||t.config.inline)return;var F=t.isOpen;t.isOpen=!0,F||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),qe("onOpen"),Be(k)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(P===void 0||!t.timeContainer.contains(P.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ve(P){return function(k){var A=t.config["_"+P+"Date"]=t.parseDate(k,t.config.dateFormat),F=t.config["_"+(P==="min"?"max":"min")+"Date"];A!==void 0&&(t[P==="min"?"minDateHasTime":"maxDateHasTime"]=A.getHours()>0||A.getMinutes()>0||A.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(U){return Y(U)}),!t.selectedDates.length&&P==="min"&&p(A),xe()),t.daysContainer&&(J(),A!==void 0?t.currentYearElement[P]=A.getFullYear().toString():t.currentYearElement.removeAttribute(P),t.currentYearElement.disabled=!!F&&A!==void 0&&F.getFullYear()===A.getFullYear())}}function ae(){var P=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],k=ht(ht({},JSON.parse(JSON.stringify(n.dataset||{}))),e),A={};t.config.parseDate=k.parseDate,t.config.formatDate=k.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(ye){t.config._enable=Te(ye)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(ye){t.config._disable=Te(ye)}});var F=k.mode==="time";if(!k.dateFormat&&(k.enableTime||F)){var U=lt.defaultConfig.dateFormat||Ui.dateFormat;A.dateFormat=k.noCalendar||F?"H:i"+(k.enableSeconds?":S":""):U+" H:i"+(k.enableSeconds?":S":"")}if(k.altInput&&(k.enableTime||F)&&!k.altFormat){var ne=lt.defaultConfig.altFormat||Ui.altFormat;A.altFormat=k.noCalendar||F?"h:i"+(k.enableSeconds?":S K":" K"):ne+(" h:i"+(k.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ve("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ve("max")});var oe=function(ye){return function(De){t.config[ye==="min"?"_minTime":"_maxTime"]=t.parseDate(De,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:oe("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:oe("max")}),k.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,A,k);for(var ce=0;ce<P.length;ce++)t.config[P[ce]]=t.config[P[ce]]===!0||t.config[P[ce]]==="true";va.filter(function(ye){return t.config[ye]!==void 0}).forEach(function(ye){t.config[ye]=ya(t.config[ye]||[]).map(a)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var ce=0;ce<t.config.plugins.length;ce++){var he=t.config.plugins[ce](t)||{};for(var ge in he)va.indexOf(ge)>-1?t.config[ge]=ya(he[ge]).map(a).concat(t.config[ge]):typeof k[ge]>"u"&&(t.config[ge]=he[ge])}k.altInputClass||(t.config.altInputClass=Se().className+" "+t.config.altInputClass),qe("onParseConfig")}function Se(){return t.config.wrap?n.querySelector("[data-input]"):n}function Pe(){typeof t.config.locale!="object"&&typeof lt.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=ht(ht({},lt.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?lt.l10ns[t.config.locale]:void 0),Mi.D="("+t.l10n.weekdays.shorthand.join("|")+")",Mi.l="("+t.l10n.weekdays.longhand.join("|")+")",Mi.M="("+t.l10n.months.shorthand.join("|")+")",Mi.F="("+t.l10n.months.longhand.join("|")+")",Mi.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var P=ht(ht({},e),JSON.parse(JSON.stringify(n.dataset||{})));P.time_24hr===void 0&<.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Oc(t),t.parseDate=Ca({config:t.config,l10n:t.l10n})}function Be(P){if(typeof t.config.position=="function")return void t.config.position(t,P);if(t.calendarContainer!==void 0){qe("onPreCalendarPosition");var k=P||t._positionElement,A=Array.prototype.reduce.call(t.calendarContainer.children,(function(Di,jx){return Di+jx.offsetHeight}),0),F=t.calendarContainer.offsetWidth,U=t.config.position.split(" "),ne=U[0],oe=U.length>1?U[1]:null,ce=k.getBoundingClientRect(),he=window.innerHeight-ce.bottom,ge=ne==="above"||ne!=="below"&&he<A&&ce.top>A,ye=window.pageYOffset+ce.top+(ge?-A-2:k.offsetHeight+2);if(gt(t.calendarContainer,"arrowTop",!ge),gt(t.calendarContainer,"arrowBottom",ge),!t.config.inline){var De=window.pageXOffset+ce.left,je=!1,Le=!1;oe==="center"?(De-=(F-ce.width)/2,je=!0):oe==="right"&&(De-=F-ce.width,Le=!0),gt(t.calendarContainer,"arrowLeft",!je&&!Le),gt(t.calendarContainer,"arrowCenter",je),gt(t.calendarContainer,"arrowRight",Le);var Je=window.document.body.offsetWidth-(window.pageXOffset+ce.right),Ze=De+F>window.document.body.offsetWidth,at=Je+F>window.document.body.offsetWidth;if(gt(t.calendarContainer,"rightMost",Ze),!t.config.static)if(t.calendarContainer.style.top=ye+"px",!Ze)t.calendarContainer.style.left=De+"px",t.calendarContainer.style.right="auto";else if(!at)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=Je+"px";else{var nt=Ve();if(nt===void 0)return;var bi=window.document.body.offsetWidth,Ti=Math.max(0,bi/2-F/2),li=".flatpickr-calendar.centerMost:before",It=".flatpickr-calendar.centerMost:after",Jt=nt.cssRules.length,Xi="{left:"+ce.left+"px;right:auto;}";gt(t.calendarContainer,"rightMost",!1),gt(t.calendarContainer,"centerMost",!0),nt.insertRule(li+","+It+Xi,Jt),t.calendarContainer.style.left=Ti+"px",t.calendarContainer.style.right="auto"}}}}function Ve(){for(var P=null,k=0;k<document.styleSheets.length;k++){var A=document.styleSheets[k];if(A.cssRules){try{A.cssRules}catch{continue}P=A;break}}return P??le()}function le(){var P=document.createElement("style");return document.head.appendChild(P),P.sheet}function J(){t.config.noCalendar||t.isMobile||(O(),We(),D())}function te(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function pe(P){P.preventDefault(),P.stopPropagation();var k=function(ye){return ye.classList&&ye.classList.contains("flatpickr-day")&&!ye.classList.contains("flatpickr-disabled")&&!ye.classList.contains("notAllowed")},A=Ac(St(P),k);if(A!==void 0){var F=A,U=t.latestSelectedDateObj=new Date(F.dateObj.getTime()),ne=(U.getMonth()<t.currentMonth||U.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=F,t.config.mode==="single")t.selectedDates=[U];else if(t.config.mode==="multiple"){var oe=re(U);oe?t.selectedDates.splice(parseInt(oe),1):t.selectedDates.push(U)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=U,t.selectedDates.push(U),xt(U,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(ye,De){return ye.getTime()-De.getTime()}));if(f(),ne){var ce=t.currentYear!==U.getFullYear();t.currentYear=U.getFullYear(),t.currentMonth=U.getMonth(),ce&&(qe("onYearChange"),O()),qe("onMonthChange")}if(We(),D(),xe(),!ne&&t.config.mode!=="range"&&t.config.showMonths===1?M(F):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var he=t.config.mode==="single"&&!t.config.enableTime,ge=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(he||ge)&&te()}E()}}var de={locale:[Pe,q],showMonths:[j,l,I],minDate:[g],maxDate:[g],positionElement:[ze],clickOpens:[function(){t.config.clickOpens===!0?(m(t._input,"focus",t.open),m(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function ke(P,k){if(P!==null&&typeof P=="object"){Object.assign(t.config,P);for(var A in P)de[A]!==void 0&&de[A].forEach(function(F){return F()})}else t.config[P]=k,de[P]!==void 0?de[P].forEach(function(F){return F()}):va.indexOf(P)>-1&&(t.config[P]=ya(k));t.redraw(),xe(!0)}function Ae(P,k){var A=[];if(P instanceof Array)A=P.map(function(F){return t.parseDate(F,k)});else if(P instanceof Date||typeof P=="number")A=[t.parseDate(P,k)];else if(typeof P=="string")switch(t.config.mode){case"single":case"time":A=[t.parseDate(P,k)];break;case"multiple":A=P.split(t.config.conjunction).map(function(F){return t.parseDate(F,k)});break;case"range":A=P.split(t.l10n.rangeSeparator).map(function(F){return t.parseDate(F,k)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(P)));t.selectedDates=t.config.allowInvalidPreload?A:A.filter(function(F){return F instanceof Date&&Y(F,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(F,U){return F.getTime()-U.getTime()})}function Re(P,k,A){if(k===void 0&&(k=!1),A===void 0&&(A=t.config.dateFormat),P!==0&&!P||P instanceof Array&&P.length===0)return t.clear(k);Ae(P,A),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),g(void 0,k),p(),t.selectedDates.length===0&&t.clear(!1),xe(k),k&&qe("onChange")}function Te(P){return P.slice().map(function(k){return typeof k=="string"||typeof k=="number"||k instanceof Date?t.parseDate(k,void 0,!0):k&&typeof k=="object"&&k.from&&k.to?{from:t.parseDate(k.from,void 0),to:t.parseDate(k.to,void 0)}:k}).filter(function(k){return k})}function me(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var P=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);P&&Ae(P,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function Oe(){if(t.input=Se(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=Ke(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),ze()}function ze(){t._positionElement=t.config.positionElement||t._input}function Kt(){var P=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Ke("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=P,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=P==="datetime-local"?"Y-m-d\\TH:i:S":P==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}m(t.mobileInput,"change",function(k){t.setDate(St(k).value,!1,t.mobileFormatStr),qe("onChange"),qe("onClose")})}function Ht(P){if(t.isOpen===!0)return t.close();t.open(P)}function qe(P,k){if(t.config!==void 0){var A=t.config[P];if(A!==void 0&&A.length>0)for(var F=0;A[F]&&F<A.length;F++)A[F](t.selectedDates,t.input.value,t,k);P==="onChange"&&(t.input.dispatchEvent(Z("change")),t.input.dispatchEvent(Z("input")))}}function Z(P){var k=document.createEvent("Event");return k.initEvent(P,!0,!0),k}function re(P){for(var k=0;k<t.selectedDates.length;k++){var A=t.selectedDates[k];if(A instanceof Date&&xt(A,P)===0)return""+k}return!1}function Ne(P){return t.config.mode!=="range"||t.selectedDates.length<2?!1:xt(P,t.selectedDates[0])>=0&&xt(P,t.selectedDates[1])<=0}function We(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(P,k){var A=new Date(t.currentYear,t.currentMonth,1);A.setMonth(t.currentMonth+k),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[k].textContent=or(A.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=A.getMonth().toString(),P.value=A.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function _e(P){var k=P||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(A){return t.formatDate(A,k)}).filter(function(A,F,U){return t.config.mode!=="range"||t.config.enableTime||U.indexOf(A)===F}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function xe(P){P===void 0&&(P=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=_e(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=_e(t.config.altFormat)),P!==!1&&qe("onValueUpdate")}function mt(P){var k=St(P),A=t.prevMonthNav.contains(k),F=t.nextMonthNav.contains(k);A||F?B(A?-1:1):t.yearElements.indexOf(k)>=0?k.select():k.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):k.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function it(P){P.preventDefault();var k=P.type==="keydown",A=St(P),F=A;t.amPM!==void 0&&A===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ot(t.amPM.textContent===t.l10n.amPM[0])]);var U=parseFloat(F.getAttribute("min")),ne=parseFloat(F.getAttribute("max")),oe=parseFloat(F.getAttribute("step")),ce=parseInt(F.value,10),he=P.delta||(k?P.which===38?1:-1:0),ge=ce+oe*he;if(typeof F.value<"u"&&F.value.length===2){var ye=F===t.hourElement,De=F===t.minuteElement;ge<U?(ge=ne+ge+Ot(!ye)+(Ot(ye)&&Ot(!t.amPM)),De&&v(void 0,-1,t.hourElement)):ge>ne&&(ge=F===t.hourElement?ge-ne-Ot(!t.amPM):U,De&&v(void 0,1,t.hourElement)),t.amPM&&ye&&(oe===1?ge+ce===23:Math.abs(ge-ce)>oe)&&(t.amPM.textContent=t.l10n.amPM[Ot(t.amPM.textContent===t.l10n.amPM[0])]),F.value=Ct(ge)}}return r(),t}function Gi(n,e){for(var t=Array.prototype.slice.call(n).filter(function(a){return a instanceof HTMLElement}),i=[],r=0;r<t.length;r++){var s=t[r];try{if(s.getAttribute("data-fp-omit")!==null)continue;s._flatpickr!==void 0&&(s._flatpickr.destroy(),s._flatpickr=void 0),s._flatpickr=by(s,e||{}),i.push(s._flatpickr)}catch(a){console.error(a)}}return i.length===1?i[0]:i}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(n){return Gi(this,n)},HTMLElement.prototype.flatpickr=function(n){return Gi([this],n)});var lt=function(n,e){return typeof n=="string"?Gi(window.document.querySelectorAll(n),e):n instanceof Node?Gi([n],e):Gi(n,e)};lt.defaultConfig={},lt.l10ns={en:ht({},vn),default:ht({},vn)},lt.localize=function(n){lt.l10ns.default=ht(ht({},lt.l10ns.default),n)},lt.setDefaults=function(n){lt.defaultConfig=ht(ht({},lt.defaultConfig),n)},lt.parseDate=Ca({}),lt.formatDate=Oc({}),lt.compareDates=xt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Gi(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=lt);var wn={exports:{}},vy=wn.exports,Pc;function yy(){return Pc||(Pc=1,(function(n,e){(function(t,i){i(e)})(vy,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],longhand:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},months:{shorthand:["Янв","Фев","Март","Апр","Май","Июнь","Июль","Авг","Сен","Окт","Ноя","Дек"],longhand:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" — ",weekAbbreviation:"Нед.",scrollTitle:"Прокрутите для увеличения",toggleTitle:"Нажмите для переключения",amPM:["ДП","ПП"],yearAriaLabel:"Год",time_24hr:!0};i.l10ns.ru=r;var s=i.l10ns;t.Russian=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(wn,wn.exports)),wn.exports}var wy=yy();const Cy=["value","id","name","disabled","required","placeholder"],Ey=["title"],ky=["title"],Sy=Fe(o.defineComponent({__name:"Flatpickr",props:{modelValue:{default:""},id:{default:"flatpickr-input"},error:{default:""},name:{default:"flatpickr"},placeholder:{default:"Выберите дату"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},config:{default:()=>({})},format:{default:"DD.MM.YYYY"},locale:{default:"ru"},resetTitle:{default:"Очистить"},calendarTitle:{default:"Выбрать дату"},allowInput:{type:Boolean,default:!0},enableTime:{type:Boolean,default:!1},time_24hr:{type:Boolean,default:!0},dateFormat:{default:"d.m.Y"},minDate:{default:void 0},maxDate:{default:void 0},defaultDate:{default:void 0},mode:{default:"single"}},emits:["update:modelValue","change","open","close","ready"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref(),a=o.ref(null),l=o.ref(!1),u=o.ref(""),c=o.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),d=b=>{if(!b)return"";const g=new Date(b);if(isNaN(g.getTime()))return"";const T=String(g.getDate()).padStart(2,"0"),v=String(g.getMonth()+1).padStart(2,"0"),R=g.getFullYear();return i.format==="DD.MM.YYYY"?`${T}.${v}.${R}`:i.format==="MM/DD/YYYY"?`${v}/${T}/${R}`:i.format==="YYYY-MM-DD"?`${R}-${v}-${T}`:`${T}.${v}.${R}`},f=b=>{if(!b)return"";if(/^\d{4}-\d{2}-\d{2}/.test(b))return b;if(i.format==="DD.MM.YYYY"){const g=b.split(".");if(g.length===3){const[T,v,R]=g;return`${R}-${v.padStart(2,"0")}-${T.padStart(2,"0")}`}}if(i.format==="MM/DD/YYYY"){const g=b.split("/");if(g.length===3){const[T,v,R]=g;return`${R}-${T.padStart(2,"0")}-${v.padStart(2,"0")}`}}return i.format==="YYYY-MM-DD",b},p=()=>{if(!s.value)return;const b={locale:i.locale==="ru"?wy.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(g,T,v)=>{const R=g.length>0;if(!(i.modelValue!==T))return!1;if(!R)return h({instance:v}),!1;o.nextTick(()=>{if(i.mode==="multiple"){const M=g.map(C=>d(C));r("update:modelValue",M)}else if(i.mode==="range"){const M=g.map(C=>d(C));r("update:modelValue",M)}else r("update:modelValue",T);r("change",g.map(M=>M.toISOString()),T,v)})},onOpen:g=>{r("open",g)},onReady:g=>{r("ready",g)},...i.config};i.minDate&&i.minDate&&(b.minDate=i.minDate),i.maxDate&&(b.maxDate=i.maxDate),i.defaultDate&&(b.defaultDate=i.defaultDate),a.value=lt(s.value,b),h({instance:a.value})},h=({instance:b})=>{b?._input&&(i.modelValue?o.nextTick(()=>{Array.isArray(i.modelValue)?b._input.value=i.modelValue.map(g=>d(g)).join(", "):b._input.value=d(i.modelValue),l.value=!0}):o.nextTick(()=>{b._input.value="",l.value=!1}))},S=()=>{i.disabled||!a.value||(a.value.clear(),a.value._input.value="",r("update:modelValue",""),l.value=!1)},m=b=>{const g=b.target;u.value=g.value},E=()=>{if(u.value){const b=f(u.value);b&&r("update:modelValue",b)}};return o.watch(()=>i.modelValue,b=>{if(!b){l.value=!1,a.value?._input&&(a.value._input.value=""),u.value="";return}Array.isArray(b)?u.value=b.map(g=>d(g)).join(", "):u.value=d(b),l.value=!0},{deep:!0}),o.watch(()=>i.disabled,b=>{a.value?._input&&(a.value._input.disabled=b)}),o.onMounted(()=>{p()}),o.onBeforeUnmount(()=>{a.value&&a.value.destroy()}),e({datapicker:a}),(b,g)=>(o.openBlock(),o.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[o.createElementVNode("div",{class:o.normalizeClass({"not-valid":c.value.length})},[o.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:b.id,name:b.name,disabled:b.disabled,required:b.required,placeholder:b.placeholder,"data-input":"",onInput:m,onBlur:E},null,40,Cy)],2),l.value&&!b.disabled?(o.openBlock(),o.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:S,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:b.resetTitle},[...g[0]||(g[0]=[o.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Ey)):o.createCommentVNode("",!0),o.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:b.calendarTitle},[...g[1]||(g[1]=[o.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,ky),o.createVNode(ki,{errors:c.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-805e83fd"]]);function xy(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,a=o.ref(""),l=o.ref([]),u=o.ref(!1),c=o.ref(r),d=o.ref(!1),f=o.ref(!1),p=o.computed(()=>a.value&&a.value.length>0&&a.value.length<s?`Введите минимум ${s} символа`:t),h=o.computed(()=>i);return{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:y=>{a.value=y||"",y&&y.length>=s},onSelect:y=>{},clearSearch:()=>{a.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:y=>{l.value=y},setLoading:y=>{u.value=y},setGlobalLoading:y=>{f.value=y}}}const My=["disabled"],Ry={key:1,class:"bi bi-three-dots-vertical"},Ty=Fe(o.defineComponent({__name:"HeaderSearchForm",props:{placeholder:{default:"Поиск..."},searchHint:{default:"Введите минимум 3 символа"},searchTypes:{default:()=>[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}]},defaultSearchType:{default:"partial"},minSearchLength:{default:3},searchTypeName:{default:"searchType"},options:{default:()=>[]},isLoading:{type:Boolean,default:!1},isSearchLoading:{type:Boolean,default:!1}},emits:["search","select","searchTypeChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={placeholder:i.placeholder,searchHint:i.searchHint,searchTypes:i.searchTypes,defaultSearchType:i.defaultSearchType,minSearchLength:i.minSearchLength},{search:a,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:S,onSelect:m,clearSearch:E,toggleSettings:b,hideSettings:g}=xy(s),T=o.ref();o.computed(()=>i.options.length>0?i.options:l.value),o.computed(()=>i.isSearchLoading||u.value),o.computed(()=>i.isLoading||f.value);const v=x=>{const w=x||"";S(w),r("search",w,c.value)},R=x=>{m(x),r("select",x)},y=o.computed(()=>i.searchTypeName);o.watch(c,x=>{r("searchTypeChange",x),g()});const M=x=>{const w=x.target;C.value?.contains(w)||g()},C=o.ref();return o.onMounted(()=>{document.addEventListener("click",M)}),o.onUnmounted(()=>{document.removeEventListener("click",M)}),e({clearSearch:E,setOptions:x=>{l.value=x},setLoading:x=>{u.value=x},setGlobalLoading:x=>{f.value=x},focus:()=>{T.value?.$el?.querySelector("input")?.focus()}}),(x,w)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"wrapperRef",ref:C,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(o.openBlock(),o.createBlock(oi,{ref_key:"selectRef",ref:T,key:o.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:o.unref(a),"onUpdate:modelValue":[w[0]||(w[0]=_=>o.isRef(a)?a.value=_:null),R],reduce:_=>_,options:x.options,placeholder:x.placeholder,onSearch:v,onBlur:o.unref(E),onFocus:o.unref(g),isLoading:x.isSearchLoading,hint:o.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),o.createElementVNode("button",{class:"btn btn-light px-2",onClick:w[1]||(w[1]=(..._)=>o.unref(b)&&o.unref(b)(..._)),disabled:x.isLoading},[x.isLoading?(o.openBlock(),o.createBlock(kr,{key:0,isSmall:!0})):(o.openBlock(),o.createElementBlock("i",Ry))],8,My),o.unref(d)?(o.openBlock(),o.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:w[3]||(w[3]=o.withModifiers(()=>{},["stop"]))},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(h),_=>(o.openBlock(),o.createElementBlock("li",{key:_.value,class:"setting-item"},[o.createVNode(Dc,{name:y.value,label:_.label,modelValue:o.unref(c),"onUpdate:modelValue":w[2]||(w[2]=D=>o.isRef(c)?c.value=D:null),type:"radio",group:y.value,trueValue:_.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):o.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function Dy(n={}){const{loadRegions:e,loadDistricts:t,loadLocalities:i,loadStreets:r,regionKey:s="region_id",districtKey:a="district_id",localityKey:l="locality_id",streetKey:u="street_id",houseKey:c="house",buildingKey:d="building",apartmentKey:f="apartment",regionLabel:p="Регион",districtLabel:h="Район",localityLabel:S="Населенный пункт",streetLabel:m="Улица",houseLabel:E="Дом",buildingLabel:b="Корпус",apartmentLabel:g="Квартира",columnWidth:T="12",prefix:v="",multiLocalities:R=!1,multiStreets:y=!1,showHouseFields:M=!0}=n,C=o.ref({}),x=o.ref(!1),w=o.ref(!1),_=o.ref(!1),D=o.ref(!1),O=o.ref(!1),V=o.ref([]),j=o.ref([]),W=o.ref([]),N=o.ref([]),I=o.computed(()=>`${v}${s}`),q=o.computed(()=>`${v}${a}`),L=o.computed(()=>`${v}${l}`),B=o.computed(()=>`${v}${u}`),G=o.computed(()=>`${v}${c}`),z=o.computed(()=>`${v}${d}`),K=o.computed(()=>`${v}${f}`),Q=o.computed(()=>({region:p,district:h,locality:S,street:m,house:E,building:b,apartment:g})),$=async me=>{if(e){w.value=!0;try{V.value=await e(me)}finally{w.value=!1}}},se=async me=>{if(t){_.value=!0;try{j.value=await t(me)}finally{_.value=!1}}},Y=async me=>{if(i){D.value=!0;try{W.value=await i(me)}finally{D.value=!1}}},H=async me=>{if(r){O.value=!0;try{N.value=await r(me)}finally{O.value=!1}}},ie=me=>{const Oe={...C.value,[I.value]:me,[q.value]:null,[L.value]:null,[B.value]:null,[G.value]:null,[z.value]:null,[K.value]:null};C.value=Oe,j.value=[],W.value=[],N.value=[]},ee=me=>{const Oe={...C.value,[q.value]:me,[L.value]:null,[B.value]:null,[G.value]:null,[z.value]:null,[K.value]:null};C.value=Oe},X=me=>{const Oe={...C.value,[L.value]:me,[B.value]:null,[G.value]:null,[z.value]:null,[K.value]:null};C.value=Oe,N.value=[]},fe=async me=>{ie(me),me&&(await se(me),await Y(me),await H(me))},ue=async me=>{if(ee(me),!me){const Oe=C.value[I.value];Oe&&await fe(Oe);return}await Y(me)},ve=async me=>{X(me),me&&await H(me)},ae=me=>{const Oe={...C.value,[B.value]:me,[G.value]:null,[z.value]:null,[K.value]:null};C.value=Oe},Se=me=>{const Oe=me.target,ze={...C.value,[G.value]:Oe.value};C.value=ze},Pe=me=>{const Oe=me.target,ze={...C.value,[z.value]:Oe.value};C.value=ze},Be=me=>{const Oe=me.target,ze={...C.value,[K.value]:Oe.value};C.value=ze},Ve=o.computed(()=>{const me=C.value[I.value];return me&&V.value.find(Oe=>String(Oe.id)===String(me))?.label||""}),le=o.computed(()=>{const me=C.value[q.value];return me&&j.value.find(Oe=>String(Oe.id)===String(me))?.label||""}),J=o.computed(()=>{const me=C.value[L.value];return me&&W.value.find(Oe=>String(Oe.id)===String(me))?.label||""}),te=o.computed(()=>{const me=C.value[B.value];return me&&N.value.find(Oe=>String(Oe.id)===String(me))?.label||""}),pe=o.computed(()=>{const me=C.value[G.value];return me?`${E} ${me}`:""}),de=o.computed(()=>{const me=C.value[z.value];return me?`${b} ${me}`:""}),ke=o.computed(()=>{const me=C.value[K.value];return me?`${g} ${me}`:""}),Ae=o.computed(()=>[Ve.value,le.value,J.value,te.value,pe.value,de.value,ke.value].filter(Boolean).join(", ")),Re=o.computed(()=>{const me=C.value[L.value];return Array.isArray(me)?me.length>1:!1}),Te=o.computed(()=>y?!1:M);return{modelValue:C,isLoading:x,isRegionLoading:w,isDistrictLoading:_,isLocalityLoading:D,isStreetLoading:O,regionOptions:V,districtOptions:j,localityOptions:W,streetOptions:N,finalRegionKey:I,finalDistrictKey:q,finalLocalityKey:L,finalStreetKey:B,finalHouseKey:G,finalBuildingKey:z,finalApartmentKey:K,labels:Q,selectedRegionLabel:Ve,selectedDistrictLabel:le,selectedLocalityLabel:J,selectedStreetLabel:te,selectedHouseLabel:pe,selectedBuildingLabel:de,selectedApartmentLabel:ke,fullAddress:Ae,isMultiLocalitiesSelected:Re,shouldShowHouseFields:Te,loadRegionOptions:$,loadDistrictOptions:se,loadLocalityOptions:Y,loadStreetOptions:H,onRegionSelect:fe,onDistrictSelect:ue,onLocalitySelect:ve,onStreetSelect:ae,onHouseInput:Se,onBuildingInput:Pe,onApartmentInput:Be,resetFieldsByRegion:ie,resetFieldsByDistrict:ee,resetFieldsByLocality:X}}const _y={class:"address-form"},Ay={class:"row"},Oy={class:"form-label"},Ly={class:"form-label"},Py={class:"form-label"},Fy={class:"form-label"},By={class:"form-label"},Vy=["value","disabled"],Ny={class:"form-label"},Hy=["value","disabled"],Iy={class:"form-label"},zy=["value","disabled"],jy={key:0,class:"mt-3"},Wy={class:"alert alert-info"},Yy=Fe(o.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},regionKey:{default:"region_id"},districtKey:{default:"district_id"},localityKey:{default:"locality_id"},streetKey:{default:"street_id"},houseKey:{default:"house"},buildingKey:{default:"building"},apartmentKey:{default:"apartment"},regionLabel:{default:"Регион"},districtLabel:{default:"Район"},localityLabel:{default:"Населенный пункт"},streetLabel:{default:"Улица"},houseLabel:{default:"Дом"},buildingLabel:{default:"Корпус"},apartmentLabel:{default:"Квартира"},columnWidth:{default:"12"},prefix:{default:""},multiLocalities:{type:Boolean,default:!1},multiStreets:{type:Boolean,default:!1},showHouseFields:{type:Boolean,default:!0},showFullAddress:{type:Boolean,default:!1},disabledFields:{default:()=>({})},allowClear:{default:()=>({})},countryId:{default:void 0},setFilterParamsStringsHandler:{type:Function,default:void 0},filterName:{default:"address"},isParentComponentReady:{type:Boolean,default:!0}},emits:["update:modelValue","change","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,regionLabel:i.regionLabel,districtLabel:i.districtLabel,localityLabel:i.localityLabel,streetLabel:i.streetLabel,houseLabel:i.houseLabel,buildingLabel:i.buildingLabel,apartmentLabel:i.apartmentLabel,columnWidth:i.columnWidth,prefix:i.prefix,multiLocalities:i.multiLocalities,multiStreets:i.multiStreets,showHouseFields:i.showHouseFields},{modelValue:a,isRegionLoading:l,isDistrictLoading:u,isLocalityLoading:c,isStreetLoading:d,regionOptions:f,districtOptions:p,localityOptions:h,streetOptions:S,finalRegionKey:m,finalDistrictKey:E,finalLocalityKey:b,finalStreetKey:g,finalHouseKey:T,finalBuildingKey:v,finalApartmentKey:R,labels:y,selectedRegionLabel:M,selectedDistrictLabel:C,selectedLocalityLabel:x,selectedStreetLabel:w,selectedHouseLabel:_,selectedBuildingLabel:D,selectedApartmentLabel:O,fullAddress:V,isMultiLocalitiesSelected:j,shouldShowHouseFields:W,loadRegionOptions:N,onRegionSelect:I,onDistrictSelect:q,onLocalitySelect:L,onStreetSelect:B,onHouseInput:G,onBuildingInput:z,onApartmentInput:K}=Dy(s);let Q=!1;o.watch(()=>i.modelValue,ae=>{Q||(a.value={...ae})},{immediate:!0,deep:!0}),o.watch(a,ae=>{Q=!0,r("update:modelValue",{...ae}),r("change",{...ae}),o.nextTick(()=>{Q=!1})},{deep:!0});let $=!1;o.watch(()=>i.countryId,async(ae,Se)=>{if(!$&&ae!=null&&i.loadRegions){if(ae!==Se){const Pe={...a.value,[m.value]:null,[E.value]:null,[b.value]:null,[g.value]:null,[T.value]:null,[v.value]:null,[R.value]:null};a.value=Pe}try{$=!0,await N(ae)}catch(Pe){console.error("❌ AddressForm: Error loading regions",Pe)}finally{$=!1}}},{immediate:!0});const se=async ae=>{await I(ae),r("regionChange",ae)},Y=async ae=>{await q(ae),r("districtChange",ae)},H=async ae=>{await L(ae),r("localityChange",ae)},ie=ae=>{B(ae),r("streetChange",ae)},ee=ae=>{G(ae)},X=ae=>{z(ae)},fe=ae=>{K(ae)},ue=o.computed(()=>{if(!i.multiLocalities)return!1;const ae=a.value[g.value];return!Array.isArray(ae)||ae?.length<2});function ve(){return[M.value,C.value,x.value,w.value,_.value,D.value,O.value].filter(Boolean).join(", ")}return o.watch(()=>_.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>D.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>O.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>w.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>x.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>C.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),o.watch(()=>M.value,async ae=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,ve())},{deep:!0}),e({loadRegionOptions:N,resetForm:()=>{a.value={},f.value=[],p.value=[],h.value=[],S.value=[]},getFullAddress:()=>V.value,getValue:()=>ve()}),(ae,Se)=>(o.openBlock(),o.createElementBlock("div",_y,[o.createElementVNode("div",Ay,[o.createElementVNode("div",{class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Oy,o.toDisplayString(o.unref(y).region),1),o.createVNode(oi,{modelValue:ae.modelValue[o.unref(m)],options:o.unref(f),disabled:ae.disabledFields?.region||o.unref(l),"onUpdate:modelValue":se,allowClear:ae.allowClear?.region,isLoading:o.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Ly,o.toDisplayString(o.unref(y).district),1),o.createVNode(oi,{modelValue:ae.modelValue[o.unref(E)],disabled:ae.disabledFields?.district||o.unref(u),options:o.unref(p),"onUpdate:modelValue":Y,allowClear:ae.allowClear?.district,isLoading:o.unref(u)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),o.createElementVNode("div",{class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Py,o.toDisplayString(o.unref(y).locality),1),o.createVNode(oi,{modelValue:ae.modelValue[o.unref(b)],disabled:ae.disabledFields?.locality||o.unref(c),"onUpdate:modelValue":H,options:o.unref(h),name:o.unref(b),showAddButton:ue.value,isLoading:o.unref(c),multiple:ae.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),o.unref(j)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",{class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Fy,o.toDisplayString(o.unref(y).street),1),o.createVNode(oi,{modelValue:ae.modelValue[o.unref(g)],disabled:ae.disabledFields?.street||o.unref(d),options:o.unref(S),"onUpdate:modelValue":ie,allowClear:ae.allowClear?.street,isLoading:o.unref(d),multiple:ae.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),o.unref(W)?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",By,o.toDisplayString(o.unref(y).house),1),o.createElementVNode("input",{type:"text",class:"form-control",value:ae.modelValue[o.unref(T)]||"",disabled:ae.disabledFields?.house,onInput:ee},null,40,Vy)],2)):o.createCommentVNode("",!0),o.unref(W)?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Ny,o.toDisplayString(o.unref(y).building),1),o.createElementVNode("input",{type:"text",class:"form-control",value:ae.modelValue[o.unref(v)]||"",disabled:ae.disabledFields?.building,onInput:X},null,40,Hy)],2)):o.createCommentVNode("",!0),o.unref(W)?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(`col-${ae.columnWidth} mb-2`)},[o.createElementVNode("label",Iy,o.toDisplayString(o.unref(y).apartment),1),o.createElementVNode("input",{type:"text",class:"form-control",value:ae.modelValue[o.unref(R)]||"",disabled:ae.disabledFields?.apartment,onInput:fe},null,40,zy)],2)):o.createCommentVNode("",!0)],64))]),ae.showFullAddress&&o.unref(V)?(o.openBlock(),o.createElementBlock("div",jy,[o.createElementVNode("div",Wy,[Se[0]||(Se[0]=o.createElementVNode("strong",null,"Полный адрес:",-1)),o.createTextVNode(" "+o.toDisplayString(o.unref(V)),1)])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-35914e44"]]),Uy={class:"age-from-to-form"},Gy={class:"form-group"},$y={key:0,class:"form-label mb-2"},qy={class:"row align-items-center mb-2"},Ky={class:"col-auto"},Jy={class:"form-label mb-0"},Xy={class:"col"},Qy={class:"col"},Zy={class:"row align-items-center mb-2"},ew={class:"col-auto"},tw={class:"form-label mb-0"},iw={class:"col"},nw={class:"col"},rw=Fe(o.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:"От"},placeholderTo:{default:"До"},timeTypeOptions:{default:()=>[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}]},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={age_from:null,age_to:null,time_type_from:null,time_type_to:null},a=o.ref({...s}),l=o.computed(()=>{const h=a.value.age_from;if(!h)return null;const S=a.value.time_type_from,m=i.timeTypeOptions.find(({id:E})=>Number(E)===Number(S))?.label;return m?`${h} ${m}`:null}),u=o.computed(()=>{const h=a.value.age_to;if(!h)return null;const S=a.value.time_type_to,m=i.timeTypeOptions.find(({id:E})=>Number(E)===Number(S))?.label;return m?`${h} ${m}`:null}),c=()=>{a.value={...s}},d=()=>{i.onFilterUpdate&&(i.onFilterUpdate(i.nameFrom,l.value),i.onFilterUpdate(i.nameTo,u.value))},f=h=>{if(!h.age_from&&!h.age_to&&!h.time_type_from&&!h.time_type_to){r("update:modelValue",null),r("change",{...s}),d();return}const m=[];h.age_from&&h.time_type_from&&m.push(`age_from[time_type]=${h.time_type_from}&age_from[value]=${h.age_from}`),h.age_to&&h.time_type_to&&m.push(`age_to[time_type]=${h.time_type_to}&age_to[value]=${h.age_to}`);const E=m.length>0?m.join("&")+"&":"";r("update:modelValue",E||null),r("change",{...h}),d()},p=h=>{if(h)try{const S=new URLSearchParams(h),m=S.get("age_from[value]"),E=S.get("age_from[time_type]"),b=S.get("age_to[value]"),g=S.get("age_to[time_type]");a.value={age_from:m?Number(m):null,age_to:b?Number(b):null,time_type_from:E?Number(E):null,time_type_to:g?Number(g):null}}catch(S){console.warn("Error parsing query string:",S)}};return o.watch(()=>i.modelValue,(h,S)=>{h!==S&&(h===null?c():p(h))},{immediate:!0}),o.watch(()=>a.value,h=>{f(h)},{deep:!0}),o.onMounted(()=>{i.modelValue&&p(i.modelValue)}),e({reset:c,getFormData:()=>({age_from:a.value.age_from?Number(a.value.age_from):null,age_to:a.value.age_to?Number(a.value.age_to):null,time_type_from:a.value.time_type_from?Number(a.value.time_type_from):null,time_type_to:a.value.time_type_to?Number(a.value.time_type_to):null}),getFilterStrings:()=>({from:l.value,to:u.value})}),(h,S)=>(o.openBlock(),o.createElementBlock("div",Uy,[o.createElementVNode("div",Gy,[h.title?(o.openBlock(),o.createElementBlock("label",$y,o.toDisplayString(h.title),1)):o.createCommentVNode("",!0),o.createElementVNode("div",qy,[o.createElementVNode("div",Ky,[o.createElementVNode("label",Jy,o.toDisplayString(h.placeholderFrom),1)]),o.createElementVNode("div",Xy,[o.createVNode(er,{modelValue:a.value.age_from,"onUpdate:modelValue":S[0]||(S[0]=m=>a.value.age_from=m),name:h.nameFrom,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderFrom.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",Qy,[o.createVNode(oi,{modelValue:a.value.time_type_from,"onUpdate:modelValue":S[1]||(S[1]=m=>a.value.time_type_from=m),name:`${h.nameFrom}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])]),o.createElementVNode("div",Zy,[o.createElementVNode("div",ew,[o.createElementVNode("label",tw,o.toDisplayString(h.placeholderTo),1)]),o.createElementVNode("div",iw,[o.createVNode(er,{modelValue:a.value.age_to,"onUpdate:modelValue":S[2]||(S[2]=m=>a.value.age_to=m),name:h.nameTo,maskOptions:{regex:"^[0-9]*$"},placeholder:`Введите ${h.placeholderTo.toLowerCase()}`,disabled:h.disabled},null,8,["modelValue","name","placeholder","disabled"])]),o.createElementVNode("div",nw,[o.createVNode(oi,{modelValue:a.value.time_type_to,"onUpdate:modelValue":S[3]||(S[3]=m=>a.value.time_type_to=m),name:`${h.nameTo}_type`,multiple:!1,options:h.timeTypeOptions,allowClear:!1,disabled:h.disabled,placeholder:"Выберите тип"},null,8,["modelValue","name","options","disabled"])])])])]))}}),[["__scopeId","data-v-4b5f9814"]]),sw={key:0,class:"modal-wrapper"},aw={class:"modal-header pb-4 border-bottom-0"},ow={key:0,class:"modal-title"},lw={key:0,class:"modal-body pt-0"},uw={key:1,class:"modal-footer row justify-content-start pt-3"},Fc=Fe(o.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!1},centered:{type:Boolean,default:!0},size:{type:String,default:""},style:{type:String,default:""},modalVisibility:{type:Boolean,default:!1}},emits:["update:modelValue","emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},a=l=>{l.key==="Escape"&&s()};return o.watch(()=>t.modelValue,l=>{l?(document.body.style.overflow="hidden",window.addEventListener("keydown",a)):(document.body.style.overflow="",window.removeEventListener("keydown",a))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",a)}),(l,u)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(o.openBlock(),o.createElementBlock("div",sw,[o.createElementVNode("div",{class:"overlay",onClick:s}),o.createElementVNode("div",{class:o.normalizeClass(["modal-dialog",{"modal-dialog-scrollable":n.scrollable,"modal-dialog-centered":n.centered,"modal-sm":n.size==="sm","modal-lg":n.size==="lg","modal-xl":n.size==="xl"}])},[o.createElementVNode("div",{class:"modal-content p-3",style:o.normalizeStyle(n.style)},[o.createElementVNode("div",aw,[n.title?(o.openBlock(),o.createElementBlock("h4",ow,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),o.unref(r)["modal-body"]||o.unref(r).body?(o.openBlock(),o.createElementBlock("div",lw,[o.renderSlot(l.$slots,"modal-body",{},void 0,!0),o.renderSlot(l.$slots,"body",{},void 0,!0)])):o.createCommentVNode("",!0),o.unref(r)["modal-footer"]||o.unref(r).footer?(o.openBlock(),o.createElementBlock("div",uw,[o.renderSlot(l.$slots,"modal-footer",{},void 0,!0),o.renderSlot(l.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],4)],2)])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-a60564b8"]]),cw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVIt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1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",pw={class:"row mb-3"},mw={class:"col-auto"},gw={class:"image-container",style:{width:"90px",height:"90px"}},bw=["src","alt"],vw=["src"],yw=["src"],ww=["src"],Cw=["src"],Ew={class:"col"},kw={class:"confirmation-content"},Sw={key:0,class:"mb-3"},xw={key:1,class:"text-muted"},Mw={key:0,class:"row"},Rw={class:"col-auto"},Tw=["disabled"],Dw={class:"col"},_w=["disabled"],Aw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Ow=Fe(o.defineComponent({__name:"ConfirmationModal",props:{title:{default:"Подтверждение"},message:{default:""},description:{default:""},modalVisibility:{type:Boolean,default:!1},size:{default:""},confirmText:{default:"Да"},cancelText:{default:"Нет"},imageSrc:{default:""},imageAlt:{default:""},loading:{type:Boolean,default:!1},mode:{default:"confirmation"},showButtons:{type:Boolean,default:!0}},emits:["update:modalVisibility","confirm","cancel"],setup(n,{emit:e}){const t=n,i=e,r=d=>{i("update:modalVisibility",d)},s=()=>{switch(t.mode){case"success":return"btn btn-success";case"warning":return"btn btn-warning";case"error":return"btn btn-danger";default:return"btn btn-primary"}},a=()=>{switch(t.mode){case"success":return"Отлично";case"warning":return"Понятно";case"error":return"Понятно";default:return t.confirmText}},l=()=>{t.loading||i("confirm")},u=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},c=d=>{console.warn("Failed to load image:",d.target.src)};return(d,f)=>(o.openBlock(),o.createBlock(Fc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":o.withCtx(()=>[o.createElementVNode("div",pw,[o.createElementVNode("div",mw,[o.createElementVNode("div",gw,[d.imageSrc?(o.openBlock(),o.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,bw)):d.mode==="success"?(o.openBlock(),o.createElementBlock("img",{key:1,class:"w-100",src:o.unref(fw),alt:"Успех",onError:c},null,40,vw)):d.mode==="warning"?(o.openBlock(),o.createElementBlock("img",{key:2,class:"w-100",src:o.unref(hw),alt:"Предупреждение",onError:c},null,40,yw)):d.mode==="error"?(o.openBlock(),o.createElementBlock("img",{key:3,class:"w-100",src:o.unref(dw),alt:"Ошибка",onError:c},null,40,ww)):(o.openBlock(),o.createElementBlock("img",{key:4,class:"w-100",src:o.unref(cw),alt:"Подтверждение",onError:c},null,40,Cw))])]),o.createElementVNode("div",Ew,[o.createElementVNode("div",kw,[d.message?(o.openBlock(),o.createElementBlock("h5",Sw,o.toDisplayString(d.message),1)):o.createCommentVNode("",!0),d.description?(o.openBlock(),o.createElementBlock("p",xw,o.toDisplayString(d.description),1)):o.createCommentVNode("",!0)])])]),o.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":o.withCtx(()=>[o.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(o.openBlock(),o.createElementBlock("div",Mw,[o.createElementVNode("div",Rw,[d.mode==="confirmation"?(o.openBlock(),o.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},o.toDisplayString(d.cancelText),9,Tw)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Dw,[o.createElementVNode("button",{class:o.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(o.openBlock(),o.createElementBlock("span",Aw)):o.createCommentVNode("",!0),o.createTextVNode(" "+o.toDisplayString(a()),1)],10,_w)])])):o.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-5b40270e"]]),Lw={key:0,class:"filter-modal-wrapper"},Pw={class:"filter-modal-dialog"},Fw={class:"filter-modal-content"},Bw={class:"filter-modal-header"},Vw={key:0,class:"filter-modal-title"},Nw={class:"filter-modal-body"},Hw={class:"filter-modal-footer"},Iw=Fe(o.defineComponent({__name:"TableFilterModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){const t=n,i=e,r=()=>{i("emitModalVisibility",!1)},s=a=>{a.key==="Escape"&&r()};return o.watch(()=>t.modalVisibility,a=>{a?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),o.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(a,l)=>(o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[a.modalVisibility?(o.openBlock(),o.createElementBlock("div",Lw,[o.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),o.createElementVNode("div",Pw,[o.createElementVNode("div",Fw,[o.createElementVNode("div",Bw,[a.title?(o.openBlock(),o.createElementBlock("h4",Vw,o.toDisplayString(a.title),1)):o.createCommentVNode("",!0),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),o.createElementVNode("div",Nw,[o.renderSlot(a.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",Hw,[o.renderSlot(a.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),zw={key:0,class:"px-0"},jw={class:"modal-dialog modal-dialog-centered modal-xl"},Ww={class:"modal-content py-2 px-4"},Yw={class:"modal-header mb-3"},Uw={class:"modal-title"},Gw={class:"modal-body row"},$w={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Bc=Fe(o.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(o.openBlock(),o.createElementBlock("div",zw,[o.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),o.createElementVNode("div",jw,[o.createElementVNode("div",Ww,[o.createElementVNode("div",Yw,[o.createElementVNode("h3",Uw,o.toDisplayString(t.title),1),o.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),o.createElementVNode("div",Gw,[o.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),o.createElementVNode("div",$w,[o.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),qw={class:"row mb-4 mx-0","data-test":"PageTitle"},Kw={class:"col-12"},Jw={class:"row align-items-center"},Xw={class:"col-auto"},Qw={class:"col d-flex justify-content-end"},Zw=Fe(o.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",qw,[o.createElementVNode("div",Kw,[o.createElementVNode("div",Jw,[o.createElementVNode("div",Xw,[o.createElementVNode("h2",{class:o.normalizeClass(["mb-0",e.titleClass]),style:o.normalizeStyle(e.titleStyle)},o.toDisplayString(e.title),7),e.subtitle?(o.openBlock(),o.createElementBlock("p",{key:0,class:o.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:o.normalizeStyle(e.subtitleStyle)},o.toDisplayString(e.subtitle),7)):o.createCommentVNode("",!0)]),o.createElementVNode("div",Qw,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),eC={class:"card-body"},tC={class:"card-text"},iC=Fe({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",n.bodyClass])},[o.createElementVNode("div",eC,[o.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),o.createElementVNode("p",tC,[o.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),nC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},rC=o.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("footer",nC,o.toDisplayString(e.copyrightText)+" "+o.toDisplayString(o.unref(we)().year()),1))}}),sC={class:"custom-dropdown"},aC={style:{"border-bottom":"2px solid #000"}},oC={class:"dropdown-list-wrapper"},lC={key:0,class:"custom-dropdown-menu"},uC=["onClick"],Sa=Fe({__name:"DefaultDropDown",props:{links:{type:Array,required:!0},title:{type:String,default:"Actions"},type:{type:String,default:"actions",validator:function(n){return["actions","profile"].includes(n)}}},setup(n){const e=n,t=o.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},a=o.computed(()=>e.type==="profile");return(l,u)=>(o.openBlock(),o.createElementBlock("div",sC,[a.value?(o.openBlock(),o.createElementBlock("a",{key:0,href:"#",class:"cursor-pointer nav-link dropdown-toggle d-flex align-items-center border rounded p-2",onClick:i,onBlur:s},[u[0]||(u[0]=o.createElementVNode("div",{class:"circl"},null,-1)),o.createTextVNode(" "+o.toDisplayString(n.title),1)],32)):(o.openBlock(),o.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[o.createElementVNode("span",aC,o.toDisplayString(n.title),1),u[1]||(u[1]=o.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),o.createElementVNode("div",oC,[t.value?(o.openBlock(),o.createElementBlock("ul",lC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.links,(c,d)=>(o.openBlock(),o.createElementBlock("li",{key:d},[c.hidden?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onClick:f=>r(c?.action)},o.toDisplayString(c?.title),11,uC))]))),128))])):o.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-efc16eec"]]),cC="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx3gbkmB2u63rFYvEegB4AEFGFiHbq9XrrnE2bS+QzzRxBzjg7AKzQ4fVOp/Ptedk0j8hJM2f45ptvloUQ34WPMfNmqVRayeOck0Huns0ZXrx4sQkgQg4iWpYxT44TQE6a+cSm5phj2/bjM7dkDpGTZj5RS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a5BSW2MAwj8scliAAWghki80snZ8use2xWkY8CXyaihkzMOkhOkPUm/c5pQUThaf0kdsycjGAJ80dMUxfGpN5brctF17w+BO7F3LlxO6zLiahow1dda82APfRT/xNZx6a6vYmxDX318zpYk6caIcluhgeYt3X7Jxi6xWGT8gWu6/bVchkA1fCj6WZd3jy6VNIH3W53TUecjG02Op3O7ZPcwEL+9nAnqNbr9VOtidPLoikdRMVAxMtmNMoYINWooDp4ijiN+mC04OMaXd9fibmLRMqAPbmyGQAw5LhMbyYv76Ab+2vwsZJIep3Nvx3cTlr2UGDmD7KyNjA7o8tiGMaWeq4kiguMk5AzuT9CiNS1Md1ud81xnKdSCBjtQKNivAl4hkTsscHMMemdmVdt277r+/6KYRiWEOJYal0i/HhuZJqdZejmvsc/KPVdh5yYER4v0Notr8Gk+yA40iUL7eQilzwT9+jLn9NjuiE/gxEKBTimjCbZ4fKbL5YhRHjxWep36eZ+G0Cb33xxH+w7QSxFwQxpUA8sPDD18NvvE3fOmbt9z2q12nikLJVKH85qf2Pbtp8juTbNJaI1IcQT0zS/nbRQLsfFxtyR5qwh1cdHzPy9ugeBRB9Ar1gsPhgMBr8AABHdm2b/tRwXC/mT0GaEdA0rcr1/W850nzPzfxGRF3YHbdsGgNETlnPSfKLISTM7lsNFo5Ikk+KmSZt55LjAyJ/uPAPknmkWEVmTSnnCyiIAMMdL7nN8GshJczJILCUaQVXXWN1SKMcng5w0M0DKx6Pqg2bSwjf5bBq1bH7mkqIc54OcNLNjlOyziOh5eG80x3EsmeCMlbBPuyQhx8VBLjnPCCk57yBeNqMWlY4hF6ZN/SSCHBcDmg1qckwDz/P6V69ePQTwN+WjpCJRr1QqPfA87+D0rctxGshJcwL48ccfX129evUDgCUAiymnuqVS6V7+FOZPG7l7doIYVQfgYx1cX75cIcRm/kjA+cC/AdgTzC0pucD7AAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e",dC=["src","alt"],Vc=Fe(o.defineComponent({__name:"Logo",props:{src:{default:cC},alt:{default:"Logo"},width:{default:154},height:{default:50},className:{default:"logo"},style:{default:()=>({})},brandText:{default:void 0},textSize:{default:12},textColor:{default:"#000"},textWeight:{default:"normal"},showText:{type:Boolean,default:!0}},setup(n){const e=n,t=o.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=o.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=o.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=o.computed(()=>"r3ui-logo-container"),a=o.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["r3ui-logo-container",s.value])},[o.createElementVNode("img",{src:t.value,alt:l.alt,class:o.normalizeClass(i.value),style:o.normalizeStyle(r.value)},null,14,dC),l.brandText&&l.brandText.trim()&&l.showText?(o.openBlock(),o.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:o.normalizeStyle(a.value)},o.toDisplayString(l.brandText),5)):o.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),hC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},fC={class:"row align-items-center"},pC={class:"col-auto pe-0"},mC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},gC={class:"row"},bC={class:"col-auto d-flex align-items-center"},vC={key:1,class:"text-muted"},yC={class:"col-auto"},wC=Fe(o.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,a)=>(o.openBlock(),o.createElementBlock("div",hC,[o.createElementVNode("div",{class:o.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[o.createElementVNode("a",{href:"/",onClick:a[0]||(a[0]=o.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[o.createElementVNode("div",fC,[o.createElementVNode("div",pC,[o.renderSlot(s.$slots,"logo",{},()=>[o.createVNode(Vc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),o.createElementVNode("div",mC,o.toDisplayString(t.brandText),1)])]),o.createElementVNode("div",gC,[o.createElementVNode("div",bC,[t.isAuthenticated?(o.openBlock(),o.createBlock(Sa,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):o.createCommentVNode("",!0),t.isAuthenticated?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",vC,o.toDisplayString(t.loginText),1))]),o.createElementVNode("div",yC,[o.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-9b51d3e7"]]),CC={class:"col-12 divider divider__wrapper","data-test":"Divider"},xa={__name:"Divider",props:{height:{type:[Number,String],default:4},className:{type:String,default:"mb-4"},colorHEX:{type:String,default:"#EFEFEF"}},setup(n){const e=n;return(t,i)=>(o.openBlock(),o.createElementBlock("div",CC,[o.createElementVNode("div",{class:o.normalizeClass(e.className),style:o.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},EC=n=>{const e=o.inject("sidebarContentVisibility"),t=o.inject("toggleSidebar"),i=o.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=o.computed(()=>n.value),a=()=>{if(i.value={},!e?.value)return;const l=u=>{u.childrens?.length&&u.childrens.forEach(l),u.isActive&&u.uniqueKey&&r(u.uniqueKey,u.level)};n.value.forEach(l)};return o.provide("expandAccordion",r),o.provide("expandedAccordion",i),o.watch(n,()=>{a()},{deep:!0}),o.watch(()=>e?.value,()=>{a()},{deep:!0}),o.onMounted(()=>{a()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},kC={key:0},SC=["href","target","rel"],xC=["innerHTML"],MC={key:1},RC=["id"],TC=["innerHTML"],DC=["id"],_C={class:"accordion-body"},Nc=Fe(o.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?window.open(a.href,"_blank","noopener,noreferrer"):t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("SidebarLink",!0);return o.openBlock(),o.createElementBlock("div",null,[n.sidebarLink.childrens?.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",kC,[o.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal?"_blank":void 0,rel:n.sidebarLink.isExternal?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=o.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.sidebarLink.level===0?"nested-links":"extended-menu-item",n.sidebarLink.isActive?"fw-bolder":""]]),style:{background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,xC),o.createElementVNode("span",null,o.toDisplayString(n.sidebarLink.label),1)],2)):o.createCommentVNode("",!0)],8,SC)])),n.sidebarLink.childrens?.length?(o.openBlock(),o.createElementBlock("div",MC,[n.sidebarLink.isVisible?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[o.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:o.unref(r)&&o.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>o.unref(i)&&o.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[o.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:o.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,TC),o.createTextVNode(" "+o.toDisplayString(n.sidebarLink.label),1)],2)],8,RC),o.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:o.normalizeClass(["accordion-collapse collapse",{show:o.unref(r)&&o.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[o.createElementVNode("div",_C,[o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.sidebarLink.childrens,c=>(o.openBlock(),o.createElementBlock("li",{key:c.uniqueKey},[o.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,DC)],2)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-33bcf329"]]),AC={key:0},OC={key:0},LC=["title"],PC=["innerHTML"],FC={key:1},BC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},VC={class:"hidden-div"},NC={key:1},HC=["href","target","rel"],IC=["title"],zC=["innerHTML"],jC={key:0,class:"ms-2"},WC={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},YC={key:0,class:"ms-2"},Hc=Fe(o.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=o.inject("expandAccordion"),r=o.inject("expandedAccordion"),s=a=>{a.isExternal&&a.href?window.open(a.href,"_blank","noopener,noreferrer"):t("navigate",a.href)};return(a,l)=>{const u=o.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(o.openBlock(),o.createElementBlock("div",AC,[n.link.childrens?.length?(o.openBlock(),o.createElementBlock("div",OC,[o.createElementVNode("button",{title:n.link.label,class:o.normalizeClass(["btn btn-light w-100 text-start border-0",[n.link.icon?"icon":"text-align-left bg-white"]]),type:"button",onClick:l[0]||(l[0]=c=>o.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(o.openBlock(),o.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,PC)):(o.openBlock(),o.createElementBlock("span",FC,o.toDisplayString(n.link.label),1))],10,LC),o.unref(r)&&o.unref(r)[n.link.level]===n.link.uniqueKey?(o.openBlock(),o.createElementBlock("div",BC,[o.createElementVNode("div",VC,[o.createElementVNode("h5",null,o.toDisplayString(n.link.label),1),l[3]||(l[3]=o.createElementVNode("hr",{size:"1"},null,-1)),o.createElementVNode("ul",null,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.link.childrens,c=>(o.openBlock(),o.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[o.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",NC,[o.createElementVNode("a",{href:n.link.href,target:n.link.isExternal?"_blank":void 0,rel:n.link.isExternal?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=o.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(o.openBlock(),o.createElementBlock("button",{key:0,title:n.link.label,class:"btn btn-light w-100 text-start border-0",type:"button",style:{padding:"15px 20px",background:"#efefef"}},[o.createElementVNode("span",{innerHTML:n.link.icon},null,8,zC),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",jC,"↗")):o.createCommentVNode("",!0)],8,IC)):(o.openBlock(),o.createElementBlock("button",WC,[o.createElementVNode("span",null,o.toDisplayString(n.link.label),1),n.link.isExternal?(o.openBlock(),o.createElementBlock("span",YC,"↗")):o.createCommentVNode("",!0)]))],8,HC)]))])):o.createCommentVNode("",!0)}}}),[["__scopeId","data-v-f38392f3"]]),UC={key:0},GC={class:"accordion accordion-flush",id:"accordionMenu"},$C={key:1},qC={class:"row"},KC={class:"col-12"},JC={class:"sidebar-footer p-3"},Ic=o.defineComponent({__name:"Sidebar",props:{links:{type:Array,required:!0},isCollapsed:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,r=o.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:a}=EC(o.computed(()=>t.links));return(l,u)=>(o.openBlock(),o.createElementBlock("div",{id:"sidebarContent",class:o.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(o.openBlock(),o.createElementBlock("div",UC,[o.createElementVNode("div",GC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(s),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Nc,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):o.createCommentVNode("",!0),r.value?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",$C,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),c=>(o.openBlock(),o.createElementBlock("div",{key:c.uniqueKey},[o.createVNode(Hc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),o.createElementVNode("div",qC,[o.createElementVNode("div",KC,[o.createVNode(xa)])]),o.createElementVNode("div",JC,[o.renderSlot(l.$slots,"footer")])],2))}}),XC=n=>{const e=o.ref(!0),t=o.ref(null),i=o.ref(null),r=o.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},a=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():a()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():a()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;d>0&&f>0&&(i.value=d-f-20)},50)};return o.provide("sidebarContentVisibility",e),o.provide("toggleSidebar",l),o.watch(r,()=>{c()},{deep:!0}),o.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),o.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},QC={class:"container-fluid p-0"},ZC={class:"py-4",style:{"min-height":"90vh"}},e0=o.defineComponent({__name:"MainComponent",props:{sidebarLinks:{type:Array,required:!0},isAuthenticated:{type:Boolean,default:!1}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e,{contentWidth:r,clientWidth:s,sidebarWidth:a,sidebarContentVisibility:l}=XC(o.computed(()=>t.isAuthenticated));return(u,c)=>(o.openBlock(),o.createElementBlock("div",QC,[o.createElementVNode("div",{class:o.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(o.openBlock(),o.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:o.normalizeStyle(`background: #efefef; transition: .2s; width:${o.unref(a)}px;`)},[o.createVNode(Ic,{links:t.sidebarLinks,"is-collapsed":!o.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{id:"content-div",style:o.normalizeStyle(`transition: .2s; width:${o.unref(r)}px;`)},[o.createElementVNode("div",ZC,[o.renderSlot(u.$slots,"breadcrumbs"),o.renderSlot(u.$slots,"default")])],4)],2)]))}}),t0={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},i0={class:"col"},n0={"aria-label":"breadcrumb"},r0={class:"breadcrumb row"},s0=["aria-current"],a0=["href","onClick"],o0={key:1,class:"text-nowrap"},l0=Fe(o.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(o.openBlock(),o.createElementBlock("div",t0,[o.createElementVNode("div",i0,[o.createElementVNode("nav",n0,[o.createElementVNode("ol",r0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.crumbs,(a,l)=>(o.openBlock(),o.createElementBlock("li",{key:l,class:o.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:a.isActive}]),"aria-current":a.isActive?"page":void 0},[a.isActive?(o.openBlock(),o.createElementBlock("span",o0,o.toDisplayString(a.text),1)):(o.openBlock(),o.createElementBlock("a",{key:0,href:a.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:o.withModifiers(()=>i("navigate",a.href),["prevent"])},o.toDisplayString(a.text),9,a0))],10,s0))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),u0={key:0,class:"card-header"},c0={class:"card-title mb-0"},d0={class:"card-body"},h0={class:"row"},f0={class:"row align-items-center"},p0={class:"col-auto label pe-0"},m0={class:"col-auto"},g0={key:0,class:"mt-3"},b0=Fe(o.defineComponent({__name:"CardInfo",props:{title:{default:""},fields:{default:()=>[]},cardClass:{default:""},variant:{default:"default"},size:{default:"md"},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>{const i=["card-info"];return e.variant!=="default"&&i.push(`card-info--${e.variant}`),e.size!=="md"&&i.push(`card-info--${e.size}`),e.bordered&&i.push("card-info--bordered"),e.shadow&&i.push("card-info--shadow"),e.cardClass&&i.push(e.cardClass),i.join(" ")});return(i,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["card",t.value])},[i.title?(o.openBlock(),o.createElementBlock("div",u0,[o.createElementVNode("h5",c0,o.toDisplayString(i.title),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",d0,[o.createElementVNode("div",h0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.fields,(s,a)=>(o.openBlock(),o.createElementBlock("div",{class:"col-12 mb-2",key:a},[o.createElementVNode("div",f0,[o.createElementVNode("div",p0,o.toDisplayString(s.label)+":",1),o.createElementVNode("div",m0,[o.createElementVNode("span",{class:o.normalizeClass(["value",s.valueClass]),style:o.normalizeStyle(s.valueStyle)},o.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(o.openBlock(),o.createElementBlock("div",g0,[o.renderSlot(i.$slots,"default",{},void 0,!0)])):o.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),v0={class:"page-card"},y0={class:"row hide-to-print card-header mx-0 w-100"},w0={class:"col"},C0={class:"row flex-nowrap align-items-center"},E0={class:"col-auto"},k0={key:0,class:"col-auto"},S0={class:"row",style:{padding:"20px"}},x0={class:"d-flex align-items-start"},M0={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},R0=["onClick"],T0={class:"tab-content",id:"v-pills-tabContent"},D0={key:0,class:"title"},_0={key:1},A0={key:0},O0=["title"],L0={class:"row"},P0={class:"col-12"},F0=Fe(o.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=o.ref(0),s=o.ref(!1),a=o.ref(!1),l=o.useSlots(),u=p=>{i("click",p)},c=()=>{a.value=!!l.header&&l.header().length>0},d=()=>{s.value=!!l.footer&&l.footer().length>0},f=p=>{r.value=p,i("active-tab",t.tabs[p])};return o.onMounted(()=>{c(),d()}),(p,h)=>(o.openBlock(),o.createElementBlock("div",v0,[o.createElementVNode("div",y0,[o.createElementVNode("div",w0,[o.createElementVNode("div",C0,[o.createElementVNode("div",E0,[a.value?o.renderSlot(p.$slots,"header",{key:0},void 0,!0):o.createCommentVNode("",!0)])])]),p.actionLinks.length>0?(o.openBlock(),o.createElementBlock("div",k0,[o.createVNode(Sa,{title:p.actionsTitle,links:p.actionLinks,onClick:u},null,8,["title","links"])])):o.createCommentVNode("",!0)]),o.createElementVNode("div",S0,[o.createElementVNode("div",x0,[o.createElementVNode("div",M0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>o.withDirectives((o.openBlock(),o.createElementBlock("button",{key:m,class:o.normalizeClass(["nav-link me-5",[m===r.value?"active":""]]),onClick:E=>f(m)},o.toDisplayString(S.navLink),11,R0)),[[o.vShow,S.navLink]])),128))]),o.createElementVNode("div",T0,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(p.tabs,(S,m)=>(o.openBlock(),o.createElementBlock("div",{key:m,class:o.normalizeClass(["tab-pane fade row",[m===r.value?"show active d-flex":""]])},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.contents,(E,b)=>(o.openBlock(),o.createElementBlock("div",{key:b,class:o.normalizeClass(`col-${p.col} mb-3`)},[E.subtitle?(o.openBlock(),o.createElementBlock("div",D0,o.toDisplayString(E.subtitle)+": ",1)):o.createCommentVNode("",!0),typeof E.text=="string"?(o.openBlock(),o.createElementBlock("div",_0,o.toDisplayString(E.text),1)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:2},o.renderList(E.text,(g,T)=>(o.openBlock(),o.createElementBlock("div",{key:T},[typeof g=="string"?(o.openBlock(),o.createElementBlock("div",A0,o.toDisplayString(g),1)):o.createCommentVNode("",!0),typeof g=="object"?(o.openBlock(),o.createElementBlock("div",{key:1,title:g?.description||""},o.toDisplayString(g.name),9,O0)):o.createCommentVNode("",!0)]))),128))],2))),128))],2))),128))])]),s.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(xa,{class:"mt-3"}),o.createElementVNode("div",L0,[o.createElementVNode("div",P0,[o.renderSlot(p.$slots,"footer",{},void 0,!0)])])],64)):o.createCommentVNode("",!0)])]))}}),[["__scopeId","data-v-89706e0a"]]),B0={key:0,class:"row w-100 parent"},V0={class:"col-12 wrapper w-100"},N0=["innerHTML"],zc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=o.ref(e.message);o.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(o.openBlock(),o.createElementBlock("div",B0,[o.createElementVNode("div",V0,[o.createElementVNode("div",{class:o.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,N0),o.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):o.createCommentVNode("",!0)}},H0={key:0,class:"row","data-test":"ErrorMessageComponent"},I0={class:"col-12",id:"alert"},z0={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},j0=["innerHTML"],W0=Fe(o.defineComponent({__name:"ErrorMessageComponent",props:{message:{default:""},warningIcon:{type:Boolean,default:!1},type:{default:"danger"},asHtml:{type:Boolean,default:!1}},setup(n){const e=n,t=o.computed(()=>e.message===null||e.message===void 0?!1:Array.isArray(e.message)?e.message.length>0:!!(e.message&&typeof e.message=="string"&&e.message.length>0&&e.message.trim()!=="")),i=o.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(o.openBlock(),o.createElementBlock("div",H0,[o.createElementVNode("div",I0,[o.createElementVNode("div",{class:o.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(o.openBlock(),o.createElementBlock("i",z0)):o.createCommentVNode("",!0),r.asHtml?(o.openBlock(),o.createElementBlock("div",{key:1,innerHTML:i.value},null,8,j0)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createTextVNode(o.toDisplayString(i.value),1)],64))],2)])])):o.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),Y0={class:"accordion-header",style:{background:"transparent"}},U0=["aria-expanded","aria-controls"],G0={key:0},$0=["id"],q0={class:"accordion-body px-0"},K0=Fe(o.defineComponent({__name:"DefaultAccordion",props:{title:{},titleFontSize:{default:16},isCollapsed:{type:Boolean,default:!0},isVisibleBorderBottom:{type:Boolean,default:!0},isCollapsedDefault:{type:Boolean,default:!0},isTitleBold:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1}},emits:["update-visibility"],setup(n,{emit:e}){const t=n,i=e,r=o.useSlots(),s=o.ref(Math.random().toString(36).substr(2,9)),a=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return o.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[o.createElementVNode("div",{class:o.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[o.createElementVNode("h2",Y0,[o.createElementVNode("button",{onClick:l,class:o.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:o.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},o.toDisplayString(u.title),15,U0)]),o.createVNode(o.Transition,{name:"fade"},{default:o.withCtx(()=>[a("accordion-body")?(o.openBlock(),o.createElementBlock("div",G0,[o.withDirectives(o.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[o.createElementVNode("div",q0,[o.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,$0),[[o.vShow,!u.isCollapsed]])])):o.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),J0={class:"accordion-header",style:{background:"transparent"}},X0=["onClick"],Q0={class:"d-flex align-items-center w-100"},Z0={class:"d-flex align-items-center flex-grow-1"},eE=["value","id","onChange"],tE={class:"form-check-label ps-2 text-body flex-grow-1"},iE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},nE={class:"col d-flex flex-wrap px-4"},rE={class:"form-check"},sE=["value","id"],aE=["for"],oE=Fe(o.defineComponent({__name:"KindCheckboxesAccordion",props:{checkboxName:{default:"kinds"},kindGroups:{default:()=>[]},defaultSelectedKinds:{default:()=>[]},defaultSelectedKindGroups:{default:()=>[]}},emits:["emitSelectedKinds","emitSelectedKindGroups"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=o.ref([]),a=o.ref([]),l=o.ref(null),u=o.ref([]),c=(S,m)=>{const E=S.target;if(E.tagName==="INPUT"||E.closest(".form-check-input"))return!1;if(E.tagName==="SPAN"||E.closest(".form-check-label"))return l.value!==Number(m)?(l.value=Number(m),!0):(l.value=null,!0);if(l.value!==Number(m))return l.value=Number(m),!0;l.value=null},d=S=>{const m=i.kindGroups.find(b=>b.id===S);if(!m)return;if(s.value.includes(String(S))){const b=m.kinds.map(T=>String(T.id)),g=[...a.value];b.forEach(T=>{g.includes(T)||g.push(T)}),a.value=g}else{const b=m.kinds.map(g=>String(g.id));a.value=a.value.filter(g=>!b.includes(String(g)))}},f=()=>{o.nextTick(()=>{p()})},p=()=>{const S=[];i.kindGroups.forEach((b,g)=>{const T=u.value?.[g];if(!T)return;const v=b.kinds.map(y=>String(y.id)),R=a.value.filter(y=>v.includes(String(y)));R.length===0?(T.indeterminate=!1,T.checked=!1):R.length===v.length?(T.indeterminate=!1,T.checked=!0,S.push(String(b.id))):(T.indeterminate=!0,T.checked=!1)});const m=s.value.map(String).sort(),E=S.map(String).sort();JSON.stringify(m)!==JSON.stringify(E)&&(s.value=S)};o.watch(()=>a.value,S=>{r("emitSelectedKinds",S)},{deep:!0}),o.watch(()=>s.value,S=>{r("emitSelectedKindGroups",S)},{deep:!0}),o.onMounted(()=>{i.defaultSelectedKinds.length>0&&(a.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),o.nextTick(()=>{p()})});const h=o.computed(()=>c);return e({toggleAccordion:c}),(S,m)=>(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups,(E,b)=>(o.openBlock(),o.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:E.id},[S.kindGroups[b].kinds.length>0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",J0,[o.createElementVNode("button",{class:o.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(b)}]),type:"button",style:{background:"transparent"},onClick:g=>h.value(g,b)},[o.createElementVNode("div",Q0,[o.createElementVNode("div",Z0,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${E.id}`,id:`${S.checkboxName}_${b}`,name:"kind_group","onUpdate:modelValue":m[0]||(m[0]=g=>s.value=g),onClick:m[1]||(m[1]=o.withModifiers(()=>{},["stop"])),onChange:g=>d(E.id)},null,40,eE),[[o.vModelCheckbox,s.value]]),o.createElementVNode("span",tE,o.toDisplayString(E.name),1)]),o.createElementVNode("i",{class:o.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(b)}])},null,2)])],10,X0)]),o.withDirectives(o.createElementVNode("div",iE,[o.createElementVNode("div",nE,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(S.kindGroups[b].kinds,(g,T)=>(o.openBlock(),o.createElementBlock("div",{class:"col-6 mb-2",key:T},[o.createElementVNode("div",rE,[o.withDirectives(o.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${g.id}`,id:`${S.checkboxName}_${g.id}`,name:"kinds","onUpdate:modelValue":m[2]||(m[2]=v=>a.value=v),onChange:f},null,40,sE),[[o.vModelCheckbox,a.value]]),o.createElementVNode("label",{class:"form-check-label",for:`${S.checkboxName}_${g.id}`},[o.createElementVNode("small",null,o.toDisplayString(g.name),1)],8,aE)])]))),128))])],512),[[o.vShow,l.value===Number(b)]])],64)):o.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class ct{constructor(e){this.table=e}reloadData(e,t,i){return this.table.dataLoader.load(e,void 0,void 0,void 0,t,i)}langText(){return this.table.modules.localize.getText(...arguments)}langBind(){return this.table.modules.localize.bind(...arguments)}langLocale(){return this.table.modules.localize.getLocale(...arguments)}commsConnections(){return this.table.modules.comms.getConnections(...arguments)}commsSend(){return this.table.modules.comms.send(...arguments)}layoutMode(){return this.table.modules.layout.getMode()}layoutRefresh(e){return this.table.modules.layout.layout(e)}subscribe(){return this.table.eventBus.subscribe(...arguments)}unsubscribe(){return this.table.eventBus.unsubscribe(...arguments)}subscribed(e){return this.table.eventBus.subscribed(e)}subscriptionChange(){return this.table.eventBus.subscriptionChange(...arguments)}dispatch(){return this.table.eventBus.dispatch(...arguments)}chain(){return this.table.eventBus.chain(...arguments)}confirm(){return this.table.eventBus.confirm(...arguments)}dispatchExternal(){return this.table.externalEvents.dispatch(...arguments)}subscribedExternal(e){return this.table.externalEvents.subscribed(e)}subscriptionChangeExternal(){return this.table.externalEvents.subscriptionChange(...arguments)}options(e){return this.table.options[e]}setOption(e,t){return typeof t<"u"&&(this.table.options[e]=t),this.table.options[e]}deprecationCheck(e,t,i){return this.table.deprecationAdvisor.check(e,t,i)}deprecationCheckMsg(e,t){return this.table.deprecationAdvisor.checkMsg(e,t)}deprecationMsg(e){return this.table.deprecationAdvisor.msg(e)}module(e){return this.table.module(e)}}class Qe{static elVisible(e){return!(e.offsetWidth<=0&&e.offsetHeight<=0)}static elOffset(e){var t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset-document.documentElement.clientTop,left:t.left+window.pageXOffset-document.documentElement.clientLeft}}static retrieveNestedData(e,t,i){var r=e?t.split(e):[t],s=r.length,a;for(let l=0;l<s&&(i=i[r[l]],a=i,!!i);l++);return a}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var a in e){let l=e[a],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[a]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[a]=this.deepClone(l,c,i)))}return t}}let lE=class bd extends ct{constructor(e,t,i){super(e),this.element=t,this.container=this._lookupContainer(),this.parent=i,this.reversedX=!1,this.childPopup=null,this.blurable=!1,this.blurCallback=null,this.blurEventsBound=!1,this.renderedCallback=null,this.visible=!1,this.hideable=!0,this.element.classList.add("tabulator-popup-container"),this.blurEvent=this.hide.bind(this,!1),this.escEvent=this._escapeCheck.bind(this),this.destroyBinding=this.tableDestroyed.bind(this),this.destroyed=!1}tableDestroyed(){this.destroyed=!0,this.hide(!0)}_lookupContainer(){var e=this.table.options.popupContainer;return typeof e=="string"?(e=document.querySelector(e),e||console.warn("Menu Error - no container element found matching selector:",this.table.options.popupContainer,"(defaulting to document body)")):e===!0&&(e=this.table.element),e&&!this._checkContainerIsParent(e)&&(e=!1,console.warn("Menu Error - container element does not contain this table:",this.table.options.popupContainer,"(defaulting to document body)")),e||(e=document.body),e}_checkContainerIsParent(e,t=this.table.element){return e===t?!0:t.parentNode?this._checkContainerIsParent(e,t.parentNode):!1}renderCallback(e){this.renderedCallback=e}containerEventCoords(e){var t=!(e instanceof MouseEvent),i=t?e.touches[0].pageX:e.pageX,r=t?e.touches[0].pageY:e.pageY;if(this.container!==document.body){let s=Qe.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Qe.elOffset(e),r,s,a;switch(this.container!==document.body&&(r=Qe.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,a=i.top-1;break;case"bottom":s=i.left,a=i.top+e.offsetHeight;break;case"left":s=i.left,a=i.top-1;break;case"top":s=i.left,a=i.top;break;case"center":s=i.left+e.offsetWidth/2,a=i.top+e.offsetHeight/2;break}return{x:s,y:a,offset:i}}show(e,t){var i,r,s,a,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),a=l.offset,i=l.x,r=l.y):typeof e=="number"?(a={top:0,left:0},i=e,r=t):(l=this.containerEventCoords(e),i=l.x,r=l.y,this.reversedX=!1),this.element.style.top=r+"px",this.element.style.left=i+"px",this.container.appendChild(this.element),typeof this.renderedCallback=="function"&&this.renderedCallback(),this._fitToScreen(i,r,s,a,t),this.visible=!0,this.subscribe("table-destroy",this.destroyBinding),this.element.addEventListener("mousedown",u=>{u.stopPropagation()}),this)}_fitToScreen(e,t,i,r,s){var a=this.container===document.body?document.documentElement.scrollTop:this.container.scrollTop;(e+this.element.offsetWidth>=this.container.offsetWidth||this.reversedX)&&(this.element.style.left="",i?this.element.style.right=this.container.offsetWidth-r.left+"px":this.element.style.right=this.container.offsetWidth-e+"px",this.reversedX=!0);let l=Math.max(this.container.offsetHeight,a?this.container.scrollHeight:0);if(t+this.element.offsetHeight>l)if(i)switch(s){case"bottom":this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight-i.offsetHeight-1+"px";break;default:this.element.style.top=parseInt(this.element.style.top)-this.element.offsetHeight+i.offsetHeight+1+"px"}else this.element.style.height=l+"px"}isVisible(){return this.visible}hideOnBlur(e){return this.blurable=!0,this.visible&&(setTimeout(()=>{this.visible&&(this.table.rowManager.element.addEventListener("scroll",this.blurEvent),this.subscribe("cell-editing",this.blurEvent),document.body.addEventListener("click",this.blurEvent),document.body.addEventListener("contextmenu",this.blurEvent),document.body.addEventListener("mousedown",this.blurEvent),window.addEventListener("resize",this.blurEvent),document.body.addEventListener("keydown",this.escEvent),this.blurEventsBound=!0)},100),this.blurCallback=e),this}_escapeCheck(e){e.keyCode==27&&this.hide()}blockHide(){this.hideable=!1}restoreHide(){this.hideable=!0}hide(e=!1){return this.visible&&this.hideable&&(this.blurable&&this.blurEventsBound&&(document.body.removeEventListener("keydown",this.escEvent),document.body.removeEventListener("click",this.blurEvent),document.body.removeEventListener("contextmenu",this.blurEvent),document.body.removeEventListener("mousedown",this.blurEvent),window.removeEventListener("resize",this.blurEvent),this.table.rowManager.element.removeEventListener("scroll",this.blurEvent),this.unsubscribe("cell-editing",this.blurEvent),this.blurEventsBound=!1),this.childPopup&&this.childPopup.hide(),this.parent&&(this.parent.childPopup=null),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.visible=!1,this.blurCallback&&!e&&this.blurCallback(),this.unsubscribe("table-destroy",this.destroyBinding)),this}child(e){return this.childPopup&&this.childPopup.hide(),this.childPopup=new bd(this.table,e,this),this.childPopup}};class Ie extends ct{constructor(e,t){super(e),this._handler=null}initialize(){}registerTableOption(e,t){this.table.optionsList.register(e,t)}registerColumnOption(e,t){this.table.columnManager.optionsList.register(e,t)}registerTableFunction(e,t){typeof this.table[e]>"u"?this.table[e]=(...i)=>(this.table.initGuard(e),t(...i)):console.warn("Unable to bind table function, name already in use",e)}registerComponentFunction(e,t,i){return this.table.componentFunctionBinder.bind(e,t,i)}registerDataHandler(e,t){this.table.rowManager.registerDataPipelineHandler(e,t),this._handler=e}registerDisplayHandler(e,t){this.table.rowManager.registerDisplayPipelineHandler(e,t),this._handler=e}displayRows(e){var t=this.table.rowManager.displayRows.length-1,i;if(this._handler&&(i=this.table.rowManager.displayPipeline.findIndex(r=>r.handler===this._handler),i>-1&&(t=i)),e&&(t=t+e),this._handler)return t>-1?this.table.rowManager.getDisplayRows(t):this.activeRows()}activeRows(){return this.table.rowManager.activeRows}refreshData(e,t){t||(t=this._handler),t&&this.table.rowManager.refreshActiveData(t,!1,e)}footerAppend(e){return this.table.footerManager.append(e)}footerPrepend(e){return this.table.footerManager.prepend(e)}footerRemove(e){return this.table.footerManager.remove(e)}popup(e,t){return new lE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var uE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class lr extends Ie{static moduleName="accessor";static accessors=uE;constructor(e){super(e),this.allowedTypes=["","data","download","clipboard","print","htmlOutput"],this.registerColumnOption("accessor"),this.registerColumnOption("accessorParams"),this.registerColumnOption("accessorData"),this.registerColumnOption("accessorDataParams"),this.registerColumnOption("accessorDownload"),this.registerColumnOption("accessorDownloadParams"),this.registerColumnOption("accessorClipboard"),this.registerColumnOption("accessorClipboardParams"),this.registerColumnOption("accessorPrint"),this.registerColumnOption("accessorPrintParams"),this.registerColumnOption("accessorHtmlOutput"),this.registerColumnOption("accessorHtmlOutputParams")}initialize(){this.subscribe("column-layout",this.initializeColumn.bind(this)),this.subscribe("row-data-retrieve",this.transformRow.bind(this))}initializeColumn(e){var t=!1,i={};this.allowedTypes.forEach(r=>{var s="accessor"+(r.charAt(0).toUpperCase()+r.slice(1)),a;e.definition[s]&&(a=this.lookupAccessor(e.definition[s]),a&&(t=!0,i[s]={accessor:a,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":lr.accessors[e]?t=lr.accessors[e]:console.warn("Accessor Error - No such accessor found, ignoring: ",e);break;case"function":t=e;break}return t}transformRow(e,t){var i="accessor"+(t.charAt(0).toUpperCase()+t.slice(1)),r=e.getComponent(),s=Qe.deepClone(e.data||{});return this.table.columnManager.traverse(function(a){var l,u,c,d;a.modules.accessor&&(u=a.modules.accessor[i]||a.modules.accessor.accessor||!1,u&&(l=a.getFieldValue(s),l!="undefined"&&(d=a.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,a.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var cE={method:"GET"};function Ma(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ma(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ma(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function dE(n){var e=Ma(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function jc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+dE(t)),n}function hE(n,e,t){var i;return new Promise((r,s)=>{if(n=this.urlGenerator.call(this.table,n,e,t),e.method.toUpperCase()!="GET")if(i=typeof this.table.options.ajaxContentType=="object"?this.table.options.ajaxContentType:this.contentTypeFormatters[this.table.options.ajaxContentType],i){for(var a in i.headers)e.headers||(e.headers={}),typeof e.headers[a]>"u"&&(e.headers[a]=i.headers[a]);e.body=i.body.call(this,n,e,t)}else console.warn("Ajax Error - Invalid ajaxContentType value:",this.table.options.ajaxContentType);n?(typeof e.headers>"u"&&(e.headers={}),typeof e.headers.Accept>"u"&&(e.headers.Accept="application/json"),typeof e.headers["X-Requested-With"]>"u"&&(e.headers["X-Requested-With"]="XMLHttpRequest"),typeof e.mode>"u"&&(e.mode="cors"),e.mode=="cors"?(typeof e.headers.Origin>"u"&&(e.headers.Origin=window.location.origin),typeof e.credentials>"u"&&(e.credentials="same-origin")):typeof e.credentials>"u"&&(e.credentials="include"),fetch(n,e).then(l=>{l.ok?l.json().then(u=>{r(u)}).catch(u=>{s(u),console.warn("Ajax Load Error - Invalid JSON returned",u)}):(console.error("Ajax Load Error - Connection Error: "+l.status,l.statusText),s(l))}).catch(l=>{console.error("Ajax Load Error - Connection Error: ",l),s(l)})):(console.warn("Ajax Load Error - No URL Set"),r([]))})}function Ra(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Ra(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Ra(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var fE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Ra(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class $i extends Ie{static moduleName="ajax";static defaultConfig=cE;static defaultURLGenerator=jc;static defaultLoaderPromise=hE;static contentTypeFormatters=fE;constructor(e){super(e),this.config={},this.url="",this.urlGenerator=!1,this.params=!1,this.loaderPromise=!1,this.registerTableOption("ajaxURL",!1),this.registerTableOption("ajaxURLGenerator",!1),this.registerTableOption("ajaxParams",{}),this.registerTableOption("ajaxConfig","get"),this.registerTableOption("ajaxContentType","form"),this.registerTableOption("ajaxRequestFunc",!1),this.registerTableOption("ajaxRequesting",function(){}),this.registerTableOption("ajaxResponse",!1),this.contentTypeFormatters=$i.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||$i.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||$i.defaultURLGenerator,this.table.options.ajaxURL&&this.setUrl(this.table.options.ajaxURL),this.setDefaultConfig(this.table.options.ajaxConfig),this.registerTableFunction("getAjaxUrl",this.getUrl.bind(this)),this.subscribe("data-loading",this.requestDataCheck.bind(this)),this.subscribe("data-params",this.requestParams.bind(this)),this.subscribe("data-load",this.requestData.bind(this))}requestParams(e,t,i,r){var s=this.table.options.ajaxParams;return s&&(typeof s=="function"&&(s=s.call(this.table)),r=Object.assign(Object.assign({},s),r)),r}requestDataCheck(e,t,i,r){return!!(!e&&this.url||typeof e=="string")}requestData(e,t,i,r,s){var a;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),a=this.generateConfig(i),this.sendRequest(this.url,t,a)):s}setDefaultConfig(e={}){this.config=Object.assign({},$i.defaultConfig),typeof e=="string"?this.config.method=e:Object.assign(this.config,e)}generateConfig(e={}){var t=Object.assign({},this.config);return typeof e=="string"?t.method=e:Object.assign(t,e),t}setUrl(e){this.url=e}getUrl(){return this.url}sendRequest(e,t,i){return this.table.options.ajaxRequesting.call(this.table,e,t)!==!1?this.loaderPromise(e,i,t).then(r=>(this.table.options.ajaxResponse&&(r=this.table.options.ajaxResponse.call(this.table,e,t,r)),r)):Promise.reject()}}var pE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},mE={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
|
|
32
32
|
`),n.forEach(function(a){e.push(a.split(" "))}),e.length&&!(e.length===1&&e[0].length<2)?(e[0].forEach(function(a){var l=i.find(function(u){return a&&u.definition.title&&a.trim()&&u.definition.title.trim()===a.trim()});l?r.push(l):t=!1}),t||(t=!0,r=[],e[0].forEach(function(a){var l=i.find(function(u){return a&&u.field&&a.trim()&&u.field.trim()===a.trim()});l?r.push(l):t=!1}),t||(r=this.table.columnManager.columnsByIndex)),t&&e.shift(),e.forEach(function(a){var l={};a.forEach(function(u,c){r[c]&&(l[r[c].field]=u)}),s.push(l)}),s):!1}},gE={copyToClipboard:["ctrl + 67","meta + 67"]},bE={copyToClipboard:function(n){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},vE={keybindings:{bindings:gE,actions:bE}};class ur extends Ie{static moduleName="clipboard";static moduleExtensions=vE;static pasteActions=pE;static pasteParsers=mE;constructor(e){super(e),this.mode=!0,this.pasteParser=function(){},this.pasteAction=function(){},this.customSelection=!1,this.rowRange=!1,this.blocked=!0,this.registerTableOption("clipboard",!1),this.registerTableOption("clipboardCopyStyled",!0),this.registerTableOption("clipboardCopyConfig",!1),this.registerTableOption("clipboardCopyFormatter",!1),this.registerTableOption("clipboardCopyRowRange","active"),this.registerTableOption("clipboardPasteParser","table"),this.registerTableOption("clipboardPasteAction","insert"),this.registerColumnOption("clipboard"),this.registerColumnOption("titleClipboard")}initialize(){this.mode=this.table.options.clipboard,this.rowRange=this.table.options.clipboardCopyRowRange,(this.mode===!0||this.mode==="copy")&&this.table.element.addEventListener("copy",e=>{var t,i,r;this.blocked||(e.preventDefault(),this.customSelection?(t=this.customSelection,this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t))):(r=this.table.modules.export.generateExportList(this.table.options.clipboardCopyConfig,this.table.options.clipboardCopyStyled,this.rowRange,"clipboard"),i=this.table.modules.export.generateHTMLTable(r),t=i?this.generatePlainContent(r):"",this.table.options.clipboardCopyFormatter&&(t=this.table.options.clipboardCopyFormatter("plain",t),i=this.table.options.clipboardCopyFormatter("html",i))),window.clipboardData&&window.clipboardData.setData?window.clipboardData.setData("Text",t):e.clipboardData&&e.clipboardData.setData?(e.clipboardData.setData("text/plain",t),i&&e.clipboardData.setData("text/html",i)):e.originalEvent&&e.originalEvent.clipboardData.setData&&(e.originalEvent.clipboardData.setData("text/plain",t),i&&e.originalEvent.clipboardData.setData("text/html",i)),this.dispatchExternal("clipboardCopied",t,i),this.reset())}),(this.mode===!0||this.mode==="paste")&&this.table.element.addEventListener("paste",e=>{this.paste(e)}),this.setPasteParser(this.table.options.clipboardPasteParser),this.setPasteAction(this.table.options.clipboardPasteAction),this.registerTableFunction("copyToClipboard",this.copy.bind(this))}reset(){this.blocked=!0,this.customSelection=!1}generatePlainContent(e){var t=[];return e.forEach(i=>{var r=[];i.columns.forEach(s=>{var a="";if(s)if(i.type==="group"&&(s.value=s.component.getKey()),s.value===null)a="";else switch(typeof s.value){case"object":a=JSON.stringify(s.value);break;case"undefined":a="";break;default:a=s.value}r.push(a)}),t.push(r.join(" "))}),t.join(`
|
|
33
33
|
`)}copy(e,t){var i,r;this.blocked=!1,this.customSelection=!1,(this.mode===!0||this.mode==="copy")&&(this.rowRange=e||this.table.options.clipboardCopyRowRange,typeof window.getSelection<"u"&&typeof document.createRange<"u"?(e=document.createRange(),e.selectNodeContents(this.table.element),i=window.getSelection(),i.toString()&&t&&(this.customSelection=i.toString()),i.removeAllRanges(),i.addRange(e)):typeof document.selection<"u"&&typeof document.body.createTextRange<"u"&&(r=document.body.createTextRange(),r.moveToElementText(this.table.element),r.select()),document.execCommand("copy"),i&&i.removeAllRanges())}setPasteAction(e){switch(typeof e){case"string":this.pasteAction=ur.pasteActions[e],this.pasteAction||console.warn("Clipboard Error - No such paste action found:",e);break;case"function":this.pasteAction=e;break}}setPasteParser(e){switch(typeof e){case"string":this.pasteParser=ur.pasteParsers[e],this.pasteParser||console.warn("Clipboard Error - No such paste parser found:",e);break;case"function":this.pasteParser=e;break}}paste(e){var t,i,r;this.checkPasteOrigin(e)&&(t=this.getPasteData(e),i=this.pasteParser.call(this,t),i?(e.preventDefault(),this.table.modExists("mutator")&&(i=this.mutateData(i)),r=this.pasteAction.call(this,i),this.dispatchExternal("clipboardPasted",t,i,r)):this.dispatchExternal("clipboardPasteError",t))}mutateData(e){var t=[];return Array.isArray(e)?e.forEach(i=>{t.push(this.table.modules.mutator.transformRow(i,"clipboard"))}):t=e,t}checkPasteOrigin(e){var t=!0,i=this.confirm("clipboard-paste",[e]);return(i||!["DIV","SPAN"].includes(e.target.tagName))&&(t=!1),t}getPasteData(e){var t;return window.clipboardData&&window.clipboardData.getData?t=window.clipboardData.getData("Text"):e.clipboardData&&e.clipboardData.getData?t=e.clipboardData.getData("text/plain"):e.originalEvent&&e.originalEvent.clipboardData.getData&&(t=e.originalEvent.clipboardData.getData("text/plain")),t}}class yE{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getTable(){return this._row.table}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}_getSelf(){return this._row}}class Wc{constructor(e){return this._cell=e,new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._cell.table.componentFunctionBinder.handle("cell",t._cell,i)}})}getValue(){return this._cell.getValue()}getOldValue(){return this._cell.getOldValue()}getInitialValue(){return this._cell.initialValue}getElement(){return this._cell.getElement()}getRow(){return this._cell.row.getComponent()}getData(e){return this._cell.row.getData(e)}getType(){return"cell"}getField(){return this._cell.column.getField()}getColumn(){return this._cell.column.getComponent()}setValue(e,t){typeof t>"u"&&(t=!0),this._cell.setValue(e,t)}restoreOldValue(){this._cell.setValueActual(this._cell.getOldValue())}restoreInitialValue(){this._cell.setValueActual(this._cell.initialValue)}checkHeight(){this._cell.checkHeight()}getTable(){return this._cell.table}_getSelf(){return this._cell}}class Cn extends ct{constructor(e,t){super(e.table),this.table=e.table,this.column=e,this.row=t,this.element=null,this.value=null,this.initialValue,this.oldValue=null,this.modules={},this.height=null,this.width=null,this.minWidth=null,this.component=null,this.loaded=!1,this.build()}build(){this.generateElement(),this.setWidth(),this._configureCell(),this.setValueActual(this.column.getFieldValue(this.row.data)),this.initialValue=this.value}generateElement(){this.element=document.createElement("div"),this.element.className="tabulator-cell",this.element.setAttribute("role","gridcell"),this.column.isRowHeader&&this.element.classList.add("tabulator-row-header")}_configureCell(){var e=this.element,t=this.column.getField(),i={top:"flex-start",bottom:"flex-end",middle:"center"},r={left:"flex-start",right:"flex-end",center:"center"};if(e.style.textAlign=this.column.hozAlign,this.column.vertAlign&&(e.style.display="inline-flex",e.style.alignItems=i[this.column.vertAlign]||"",this.column.hozAlign&&(e.style.justifyContent=r[this.column.hozAlign]||"")),t&&e.setAttribute("tabulator-field",t),this.column.definition.cssClass){var s=this.column.definition.cssClass.split(" ");s.forEach(a=>{e.classList.add(a)})}this.dispatch("cell-init",this),this.column.visible||this.hide()}_generateContents(){var e;switch(e=this.chain("cell-format",this,null,()=>this.element.innerHTML=this.value),typeof e){case"object":if(e instanceof Node){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.appendChild(e)}else this.element.innerHTML="",e!=null&&console.warn("Format Error - Formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",e);break;case"undefined":this.element.innerHTML="";break;default:this.element.innerHTML=e}}cellRendered(){this.dispatch("cell-rendered",this)}getElement(e){return this.loaded||(this.loaded=!0,e||this.layoutElement()),this.element}getValue(){return this.value}getOldValue(){return this.oldValue}setValue(e,t,i){var r=this.setValueProcessData(e,t,i);r&&(this.dispatch("cell-value-updated",this),this.cellRendered(),this.column.definition.cellEdited&&this.column.definition.cellEdited.call(this.table,this.getComponent()),this.dispatchExternal("cellEdited",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()))}setValueProcessData(e,t,i){var r=!1;return(this.value!==e||i)&&(r=!0,t&&(e=this.chain("cell-value-changing",[this,e],null,e))),this.setValueActual(e),r&&this.dispatch("cell-value-changed",this),r}setValueActual(e){this.oldValue=this.value,this.value=e,this.dispatch("cell-value-save-before",this),this.column.setFieldValue(this.row.data,e),this.dispatch("cell-value-save-after",this),this.loaded&&this.layoutElement()}layoutElement(){this._generateContents(),this.dispatch("cell-layout",this)}setWidth(){this.width=this.column.width,this.element.style.width=this.column.widthStyled}clearWidth(){this.width="",this.element.style.width=""}getWidth(){return this.width||this.element.offsetWidth}setMinWidth(){this.minWidth=this.column.minWidth,this.element.style.minWidth=this.column.minWidthStyled}setMaxWidth(){this.maxWidth=this.column.maxWidth,this.element.style.maxWidth=this.column.maxWidthStyled}checkHeight(){this.row.reinitializeHeight()}clearHeight(){this.element.style.height="",this.height=null,this.dispatch("cell-height",this,"")}setHeight(){this.height=this.row.height,this.element.style.height=this.row.heightStyled,this.dispatch("cell-height",this,this.row.heightStyled)}getHeight(){return this.height||this.element.offsetHeight}show(){this.element.style.display=this.column.vertAlign?"inline-flex":""}hide(){this.element.style.display="none"}delete(){this.dispatch("cell-delete",this),!this.table.rowManager.redrawBlock&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.column.deleteCell(this),this.row.deleteCell(this),this.calcs={}}getIndex(){return this.row.getCellIndex(this)}getComponent(){return this.component||(this.component=new Wc(this)),this.component}}class Yc{constructor(e){return this._column=e,this.type="ColumnComponent",new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._column.table.componentFunctionBinder.handle("column",t._column,i)}})}getElement(){return this._column.getElement()}getDefinition(){return this._column.getDefinition()}getField(){return this._column.getField()}getTitleDownload(){return this._column.getTitleDownload()}getCells(){var e=[];return this._column.cells.forEach(function(t){e.push(t.getComponent())}),e}isVisible(){return this._column.visible}show(){this._column.isGroup?this._column.columns.forEach(function(e){e.show()}):this._column.show()}hide(){this._column.isGroup?this._column.columns.forEach(function(e){e.hide()}):this._column.hide()}toggle(){this._column.visible?this.hide():this.show()}delete(){return this._column.delete()}getSubColumns(){var e=[];return this._column.columns.length&&this._column.columns.forEach(function(t){e.push(t.getComponent())}),e}getParentColumn(){return this._column.getParentComponent()}_getSelf(){return this._column}scrollTo(e,t){return this._column.table.columnManager.scrollToColumn(this._column,e,t)}getTable(){return this._column.table}move(e,t){var i=this._column.table.columnManager.findColumn(e);i?this._column.table.columnManager.moveColumn(this._column,i,t):console.warn("Move Error - No matching column found:",i)}getNextColumn(){var e=this._column.nextColumn();return e?e.getComponent():!1}getPrevColumn(){var e=this._column.prevColumn();return e?e.getComponent():!1}updateDefinition(e){return this._column.updateDefinition(e)}getWidth(){return this._column.getWidth()}setWidth(e){var t;return e===!0?t=this._column.reinitializeWidth(!0):t=this._column.setWidth(e),this._column.table.columnManager.rerenderColumns(!0),t}}var Uc={title:void 0,field:void 0,columns:void 0,visible:void 0,hozAlign:void 0,vertAlign:void 0,width:void 0,minWidth:40,maxWidth:void 0,maxInitialWidth:void 0,cssClass:void 0,variableHeight:void 0,headerVertical:void 0,headerHozAlign:void 0,headerWordWrap:!1,editableTitle:void 0};class $t extends ct{static defaultOptionList=Uc;constructor(e,t,i){super(t.table),this.definition=e,this.parent=t,this.type="column",this.columns=[],this.cells=[],this.isGroup=!1,this.isRowHeader=i,this.element=this.createElement(),this.contentElement=!1,this.titleHolderElement=!1,this.titleElement=!1,this.groupElement=this.createGroupElement(),this.hozAlign="",this.vertAlign="",this.field="",this.fieldStructure="",this.getFieldValue="",this.setFieldValue="",this.titleDownload=null,this.titleFormatterRendered=!1,this.mapDefinitions(),this.setField(this.definition.field),this.modules={},this.width=null,this.widthStyled="",this.maxWidth=null,this.maxWidthStyled="",this.maxInitialWidth=null,this.minWidth=null,this.minWidthStyled="",this.widthFixed=!1,this.visible=!0,this.component=null,this.definition.columns?(this.isGroup=!0,this.definition.columns.forEach((r,s)=>{var a=new $t(r,this);this.attachColumn(a)}),this.checkColumnVisibility()):t.registerColumnField(this),this._initialize()}createElement(){var e=document.createElement("div");switch(e.classList.add("tabulator-col"),e.setAttribute("role","columnheader"),e.setAttribute("aria-sort","none"),this.isRowHeader&&e.classList.add("tabulator-row-header"),this.table.options.columnHeaderVertAlign){case"middle":e.style.justifyContent="center";break;case"bottom":e.style.justifyContent="flex-end";break}return e}createGroupElement(){var e=document.createElement("div");return e.classList.add("tabulator-col-group-cols"),e}mapDefinitions(){var e=this.table.options.columnDefaults;if(e)for(let t in e)typeof this.definition[t]>"u"&&(this.definition[t]=e[t]);this.definition=this.table.columnManager.optionsList.generate($t.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach(e=>{$t.defaultOptionList.indexOf(e)===-1&&console.warn("Invalid column definition option in '"+(this.field||this.definition.title)+"' column:",e)})}setField(e){this.field=e,this.fieldStructure=e?this.table.options.nestedFieldSeparator?e.split(this.table.options.nestedFieldSeparator):[e]:[],this.getFieldValue=this.fieldStructure.length>1?this._getNestedData:this._getFlatData,this.setFieldValue=this.fieldStructure.length>1?this._setNestedData:this._setFlatData}registerColumnPosition(e){this.parent.registerColumnPosition(e)}registerColumnField(e){this.parent.registerColumnField(e)}reRegisterPosition(){this.isGroup?this.columns.forEach(function(e){e.reRegisterPosition()}):this.registerColumnPosition(this)}_initialize(){for(var e=this.definition;this.element.firstChild;)this.element.removeChild(this.element.firstChild);e.headerVertical&&(this.element.classList.add("tabulator-col-vertical"),e.headerVertical==="flip"&&this.element.classList.add("tabulator-col-vertical-flip")),this.contentElement=this._buildColumnHeaderContent(),this.element.appendChild(this.contentElement),this.isGroup?this._buildGroupHeader():this._buildColumnHeader(),this.dispatch("column-init",this)}_buildColumnHeader(){var e=this.definition;if(this.dispatch("column-layout",this),typeof e.visible<"u"&&(e.visible?this.show(!0):this.hide(!0)),e.cssClass){var t=e.cssClass.split(" ");t.forEach(i=>{this.element.classList.add(i)})}e.field&&this.element.setAttribute("tabulator-field",e.field),this.setMinWidth(parseInt(e.minWidth)),e.maxInitialWidth&&(this.maxInitialWidth=parseInt(e.maxInitialWidth)),e.maxWidth&&this.setMaxWidth(parseInt(e.maxWidth)),this.reinitializeWidth(),this.hozAlign=this.definition.hozAlign,this.vertAlign=this.definition.vertAlign,this.titleElement.style.textAlign=this.definition.headerHozAlign}_buildColumnHeaderContent(){var e=document.createElement("div");return e.classList.add("tabulator-col-content"),this.titleHolderElement=document.createElement("div"),this.titleHolderElement.classList.add("tabulator-col-title-holder"),e.appendChild(this.titleHolderElement),this.titleElement=this._buildColumnHeaderTitle(),this.titleHolderElement.appendChild(this.titleElement),e}_buildColumnHeaderTitle(){var e=this.definition,t=document.createElement("div");if(t.classList.add("tabulator-col-title"),e.headerWordWrap&&t.classList.add("tabulator-col-title-wrap"),e.editableTitle){var i=document.createElement("input");i.classList.add("tabulator-title-editor"),i.addEventListener("click",r=>{r.stopPropagation(),i.focus()}),i.addEventListener("mousedown",r=>{r.stopPropagation()}),i.addEventListener("change",()=>{e.title=i.value,this.dispatchExternal("columnTitleChanged",this.getComponent())}),t.appendChild(i),e.field?this.langBind("columns|"+e.field,r=>{i.value=r||e.title||" "}):i.value=e.title||" "}else e.field?this.langBind("columns|"+e.field,r=>{this._formatColumnHeaderTitle(t,r||e.title||" ")}):this._formatColumnHeaderTitle(t,e.title||" ");return t}_formatColumnHeaderTitle(e,t){var i=this.chain("column-format",[this,t,e],null,()=>t);switch(typeof i){case"object":i instanceof Node?e.appendChild(i):(e.innerHTML="",console.warn("Format Error - Title formatter has returned a type of object, the only valid formatter object return is an instance of Node, the formatter returned:",i));break;case"undefined":e.innerHTML="";break;default:e.innerHTML=i}}_buildGroupHeader(){if(this.element.classList.add("tabulator-col-group"),this.element.setAttribute("role","columngroup"),this.element.setAttribute("aria-title",this.definition.title),this.definition.cssClass){var e=this.definition.cssClass.split(" ");e.forEach(t=>{this.element.classList.add(t)})}this.titleElement.style.textAlign=this.definition.headerHozAlign,this.element.appendChild(this.groupElement)}_getFlatData(e){return e[this.field]}_getNestedData(e){var t=e,i=this.fieldStructure,r=i.length,s;for(let a=0;a<r&&(t=t[i[a]],s=t,!!t);a++);return s}_setFlatData(e,t){this.field&&(e[this.field]=t)}_setNestedData(e,t){var i=e,r=this.fieldStructure,s=r.length;for(let a=0;a<s;a++)if(a==s-1)i[r[a]]=t;else{if(!i[r[a]])if(typeof t<"u")i[r[a]]={};else break;i=i[r[a]]}}attachColumn(e){this.groupElement?(this.columns.push(e),this.groupElement.appendChild(e.getElement()),e.columnRendered()):console.warn("Column Warning - Column being attached to another column instead of column group")}verticalAlign(e,t){var i=this.parent.isGroup?this.parent.getGroupElement().clientHeight:t||this.parent.getHeadersElement().clientHeight;this.element.style.height=i+"px",this.dispatch("column-height",this,this.element.style.height),this.isGroup&&(this.groupElement.style.minHeight=i-this.contentElement.offsetHeight+"px"),this.columns.forEach(function(r){r.verticalAlign(e)})}clearVerticalAlign(){this.element.style.paddingTop="",this.element.style.height="",this.element.style.minHeight="",this.groupElement.style.minHeight="",this.columns.forEach(function(e){e.clearVerticalAlign()}),this.dispatch("column-height",this,"")}getElement(){return this.element}getGroupElement(){return this.groupElement}getField(){return this.field}getTitleDownload(){return this.titleDownload}getFirstColumn(){return this.isGroup?this.columns.length?this.columns[0].getFirstColumn():!1:this}getLastColumn(){return this.isGroup?this.columns.length?this.columns[this.columns.length-1].getLastColumn():!1:this}getColumns(e){var t=[];return e?this.columns.forEach(i=>{t.push(i),t=t.concat(i.getColumns(!0))}):t=this.columns,t}getCells(){return this.cells}getTopColumn(){return this.parent.isGroup?this.parent.getTopColumn():this}getDefinition(e){var t=[];return this.isGroup&&e&&(this.columns.forEach(function(i){t.push(i.getDefinition(!0))}),this.definition.columns=t),this.definition}checkColumnVisibility(){var e=!1;this.columns.forEach(function(t){t.visible&&(e=!0)}),e?(this.show(),this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1)):this.hide()}show(e,t){this.visible||(this.visible=!0,this.element.style.display="",this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.show()}),!this.isGroup&&this.width===null&&this.reinitializeWidth(),this.table.columnManager.verticalAlignHeaders(),this.dispatch("column-show",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!0),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}hide(e,t){this.visible&&(this.visible=!1,this.element.style.display="none",this.table.columnManager.verticalAlignHeaders(),this.parent.isGroup&&this.parent.checkColumnVisibility(),this.cells.forEach(function(i){i.hide()}),this.dispatch("column-hide",this,t),e||this.dispatchExternal("columnVisibilityChanged",this.getComponent(),!1),this.parent.isGroup&&this.parent.matchChildWidths(),this.silent||this.table.columnManager.rerenderColumns())}matchChildWidths(){var e=0;this.contentElement&&this.columns.length&&(this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}),this.contentElement.style.maxWidth=e-1+"px",this.table.initialized&&(this.element.style.width=e+"px"),this.parent.isGroup&&this.parent.matchChildWidths())}removeChild(e){var t=this.columns.indexOf(e);t>-1&&this.columns.splice(t,1),this.columns.length||this.delete()}setWidth(e){this.widthFixed=!0,this.setWidthActual(e)}setWidthActual(e){isNaN(e)&&(e=Math.floor(this.table.element.clientWidth/100*parseInt(e))),e=Math.max(this.minWidth,e),this.maxWidth&&(e=Math.min(this.maxWidth,e)),this.width=e,this.widthStyled=e?e+"px":"",this.element.style.width=this.widthStyled,this.isGroup||this.cells.forEach(function(t){t.setWidth()}),this.parent.isGroup&&this.parent.matchChildWidths(),this.dispatch("column-width",this),this.subscribedExternal("columnWidth")&&this.dispatchExternal("columnWidth",this.getComponent())}checkCellHeights(){var e=[];this.cells.forEach(function(t){t.row.heightInitialized&&(t.row.getElement().offsetParent!==null?(e.push(t.row),t.row.clearCellHeight()):t.row.heightInitialized=!1)}),e.forEach(function(t){t.calcHeight()}),e.forEach(function(t){t.setCellHeight()})}getWidth(){var e=0;return this.isGroup?this.columns.forEach(function(t){t.visible&&(e+=t.getWidth())}):e=this.width,e}getLeftOffset(){var e=this.element.offsetLeft;return this.parent.isGroup&&(e+=this.parent.getLeftOffset()),e}getHeight(){return Math.ceil(this.element.getBoundingClientRect().height)}setMinWidth(e){this.maxWidth&&e>this.maxWidth&&(e=this.maxWidth,console.warn("the minWidth ("+e+"px) for column '"+this.field+"' cannot be bigger that its maxWidth ("+this.maxWidthStyled+")")),this.minWidth=e,this.minWidthStyled=e?e+"px":"",this.element.style.minWidth=this.minWidthStyled,this.cells.forEach(function(t){t.setMinWidth()})}setMaxWidth(e){this.minWidth&&e<this.minWidth&&(e=this.minWidth,console.warn("the maxWidth ("+e+"px) for column '"+this.field+"' cannot be smaller that its minWidth ("+this.minWidthStyled+")")),this.maxWidth=e,this.maxWidthStyled=e?e+"px":"",this.element.style.maxWidth=this.maxWidthStyled,this.cells.forEach(function(t){t.setMaxWidth()})}delete(){return new Promise((e,t)=>{this.isGroup&&this.columns.forEach(function(r){r.delete()}),this.dispatch("column-delete",this);var i=this.cells.length;for(let r=0;r<i;r++)this.cells[0].delete();this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=!1,this.contentElement=!1,this.titleElement=!1,this.groupElement=!1,this.parent.isGroup&&this.parent.removeChild(this),this.table.columnManager.deregisterColumn(this),this.table.columnManager.rerenderColumns(!0),this.dispatch("column-deleted",this),e()})}columnRendered(){this.titleFormatterRendered&&this.titleFormatterRendered(),this.dispatch("column-rendered",this)}generateCell(e){var t=new Cn(this,e);return this.cells.push(t),t}nextColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._nextVisibleColumn(e+1):!1}_nextVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._nextVisibleColumn(e+1)}prevColumn(){var e=this.table.columnManager.findColumnIndex(this);return e>-1?this._prevVisibleColumn(e-1):!1}_prevVisibleColumn(e){var t=this.table.columnManager.getColumnByIndex(e);return!t||t.visible?t:this._prevVisibleColumn(e-1)}reinitializeWidth(e){this.widthFixed=!1,typeof this.definition.width<"u"&&!e&&this.setWidth(this.definition.width),this.dispatch("column-width-fit-before",this),this.fitToData(e),this.dispatch("column-width-fit-after",this)}fitToData(e){if(!this.isGroup){this.widthFixed||(this.element.style.width="",this.cells.forEach(r=>{r.clearWidth()}));var t=this.element.offsetWidth;if((!this.width||!this.widthFixed)&&(this.cells.forEach(r=>{var s=r.getWidth();s>t&&(t=s)}),t)){var i=t+1;e?this.setWidth(i):(this.maxInitialWidth&&!e&&(i=Math.min(i,this.maxInitialWidth)),this.setWidthActual(i))}}}updateDefinition(e){var t;return this.isGroup||this.parent.isGroup?(console.error("Column Update Error - The updateDefinition function is only available on ungrouped columns"),Promise.reject("Column Update Error - The updateDefinition function is only available on columns, not column groups")):(t=Object.assign({},this.getDefinition()),t=Object.assign(t,e),this.table.columnManager.addColumn(t,!1,this).then(i=>(t.field==this.field&&(this.field=!1),this.delete().then(()=>i.getComponent()))))}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}getComponent(){return this.component||(this.component=new Yc(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof $t?this.parent.getComponent():!1}}class cr{constructor(e){return this._row=e,new Proxy(this,{get:function(t,i,r){return typeof t[i]<"u"?t[i]:t._row.table.componentFunctionBinder.handle("row",t._row,i)}})}getData(e){return this._row.getData(e)}getElement(){return this._row.getElement()}getCells(){var e=[];return this._row.getCells().forEach(function(t){e.push(t.getComponent())}),e}getCell(e){var t=this._row.getCell(e);return t?t.getComponent():!1}getIndex(){return this._row.getData("data")[this._row.table.options.index]}getPosition(){return this._row.getPosition()}watchPosition(e){return this._row.watchPosition(e)}delete(){return this._row.delete()}scrollTo(e,t){return this._row.table.rowManager.scrollToRow(this._row,e,t)}move(e,t){this._row.moveToRow(e,t)}update(e){return this._row.updateData(e)}normalizeHeight(){this._row.normalizeHeight(!0)}_getSelf(){return this._row}reformat(){return this._row.reinitialize()}getTable(){return this._row.table}getNextRow(){var e=this._row.nextRow();return e&&e.getComponent()}getPrevRow(){var e=this._row.prevRow();return e&&e.getComponent()}}class ft extends ct{constructor(e,t,i="row"){super(t.table),this.parent=t,this.data={},this.type=i,this.element=!1,this.modules={},this.cells=[],this.height=0,this.heightStyled="",this.manualHeight=!1,this.outerHeight=0,this.initialized=!1,this.heightInitialized=!1,this.position=0,this.positionWatchers=[],this.component=null,this.created=!1,this.setData(e)}create(){this.created||(this.created=!0,this.generateElement())}createElement(){var e=document.createElement("div");e.classList.add("tabulator-row"),e.setAttribute("role","row"),this.element=e}getElement(){return this.create(),this.element}detachElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}generateElement(){this.createElement(),this.dispatch("row-init",this)}generateCells(){this.cells=this.table.columnManager.generateCells(this)}initialize(e,t){if(this.create(),!this.initialized||e){for(this.deleteCells();this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.dispatch("row-layout-before",this),this.generateCells(),this.initialized=!0,this.table.columnManager.renderer.renderRowCells(this,t),e&&this.normalizeHeight(),this.dispatch("row-layout",this),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent()),this.dispatch("row-layout-after",this)}else this.table.columnManager.renderer.rerenderRowCells(this,t)}rendered(){this.cells.forEach(e=>{e.cellRendered()})}reinitializeHeight(){this.heightInitialized=!1,this.element&&this.element.offsetParent!==null&&this.normalizeHeight(!0)}deinitialize(){this.initialized=!1}deinitializeHeight(){this.heightInitialized=!1}reinitialize(e){this.initialized=!1,this.heightInitialized=!1,this.manualHeight||(this.height=0,this.heightStyled=""),this.element&&this.element.offsetParent!==null&&this.initialize(!0),this.dispatch("row-relayout",this)}calcHeight(e){var t=0,i=0;this.table.options.rowHeight?this.height=this.table.options.rowHeight:(i=this.calcMinHeight(),t=this.calcMaxHeight(),e?this.height=Math.max(t,i):this.height=this.manualHeight?this.height:Math.max(t,i)),this.heightStyled=this.height?this.height+"px":"",this.outerHeight=this.element.offsetHeight}calcMinHeight(){return this.table.options.resizableRows?this.element.clientHeight:0}calcMaxHeight(){var e=0;return this.cells.forEach(function(t){var i=t.getHeight();i>e&&(e=i)}),e}setCellHeight(){this.cells.forEach(function(e){e.setHeight()}),this.heightInitialized=!0}clearCellHeight(){this.cells.forEach(function(e){e.clearHeight()})}normalizeHeight(e){e&&!this.table.options.rowHeight&&this.clearCellHeight(),this.calcHeight(e),this.setCellHeight()}setHeight(e,t){(this.height!=e||t)&&(this.manualHeight=!0,this.height=e,this.heightStyled=e?e+"px":"",this.setCellHeight(),this.outerHeight=this.element.offsetHeight,this.subscribedExternal("rowHeight")&&this.dispatchExternal("rowHeight",this.getComponent()))}getHeight(){return this.outerHeight}getWidth(){return this.element.offsetWidth}deleteCell(e){var t=this.cells.indexOf(e);t>-1&&this.cells.splice(t,1)}setData(e){this.data=this.chain("row-data-init-before",[this,e],void 0,e),this.dispatch("row-data-init-after",this)}updateData(e){var t=this.element&&Qe.elVisible(this.element),i={},r;return new Promise((s,a)=>{typeof e=="string"&&(e=JSON.parse(e)),this.dispatch("row-data-save-before",this),this.subscribed("row-data-changing")&&(i=Object.assign(i,this.data),i=Object.assign(i,e)),r=this.chain("row-data-changing",[this,i,e],null,e);for(let l in r)this.data[l]=r[l];this.dispatch("row-data-save-after",this);for(let l in e)this.table.columnManager.getColumnsByFieldRoot(l).forEach(c=>{let d=this.getCell(c.getField());if(d){let f=c.getFieldValue(r);d.getValue()!==f&&(d.setValueProcessData(f),t&&d.cellRendered())}});t?(this.normalizeHeight(!0),this.table.options.rowFormatter&&this.table.options.rowFormatter(this.getComponent())):(this.initialized=!1,this.height=0,this.heightStyled=""),this.dispatch("row-data-changed",this,t,e),this.dispatchExternal("rowUpdated",this.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),s()})}getData(e){return e?this.chain("row-data-retrieve",[this,e],null,this.data):this.data}getCell(e){var t=!1;return e=this.table.columnManager.findColumn(e),!this.initialized&&this.cells.length===0&&this.generateCells(),t=this.cells.find(function(i){return i.column===e}),t}getCellIndex(e){return this.cells.findIndex(function(t){return t===e})}findCell(e){return this.cells.find(t=>t.element===e)}getCells(){return!this.initialized&&this.cells.length===0&&this.generateCells(),this.cells}nextRow(){var e=this.table.rowManager.nextDisplayRow(this,!0);return e||!1}prevRow(){var e=this.table.rowManager.prevDisplayRow(this,!0);return e||!1}moveToRow(e,t){var i=this.table.rowManager.findRow(e);i?(this.table.rowManager.moveRowActual(this,i,!t),this.table.rowManager.refreshActiveData("display",!1,!0)):console.warn("Move Error - No matching row found:",e)}delete(){return this.dispatch("row-delete",this),this.deleteActual(),Promise.resolve()}deleteActual(e){this.detachModules(),this.table.rowManager.deleteRow(this,e),this.deleteCells(),this.initialized=!1,this.heightInitialized=!1,this.element=!1,this.dispatch("row-deleted",this)}detachModules(){this.dispatch("row-deleting",this)}deleteCells(){var e=this.cells.length;for(let t=0;t<e;t++)this.cells[0].delete()}wipe(){if(this.detachModules(),this.deleteCells(),this.element){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.element.parentNode&&this.element.parentNode.removeChild(this.element)}this.element=!1,this.modules={}}isDisplayed(){return this.table.rowManager.getDisplayRows().includes(this)}getPosition(){return this.isDisplayed()?this.position:!1}setPosition(e){e!=this.position&&(this.position=e,this.positionWatchers.forEach(t=>{t(this.position)}))}watchPosition(e){this.positionWatchers.push(e),e(this.position)}getGroup(){return this.modules.group||!1}getComponent(){return this.component||(this.component=new cr(this)),this.component}}var wE={avg:function(n,e,t){var i=0,r=typeof t.precision<"u"?t.precision:2;return n.length&&(i=n.reduce(function(s,a){return Number(s)+Number(a)}),i=i/n.length,i=r!==!1?i.toFixed(r):i),parseFloat(i).toString()},max:function(n,e,t){var i=null,r=typeof t.precision<"u"?t.precision:!1;return n.forEach(function(s){s=Number(s),(s>i||i===null)&&(i=s)}),i!==null?r!==!1?i.toFixed(r):i:""},min:function(n,e,t){var i=null,r=typeof t.precision<"u"?t.precision:!1;return n.forEach(function(s){s=Number(s),(s<i||i===null)&&(i=s)}),i!==null?r!==!1?i.toFixed(r):i:""},sum:function(n,e,t){var i=0,r=typeof t.precision<"u"?t.precision:!1;return n.length&&n.forEach(function(s){s=Number(s),i+=isNaN(s)?0:Number(s)}),r!==!1?i.toFixed(r):i},concat:function(n,e,t){var i=0;return n.length&&(i=n.reduce(function(r,s){return String(r)+String(s)})),i},count:function(n,e,t){var i=0;return n.length&&n.forEach(function(r){r&&i++}),i},unique:function(n,e,t){var i=n.filter((r,s)=>(n||r===0)&&n.indexOf(r)===s);return i.length}};class qi extends Ie{static moduleName="columnCalcs";static calculations=wE;constructor(e){super(e),this.topCalcs=[],this.botCalcs=[],this.genColumn=!1,this.topElement=this.createElement(),this.botElement=this.createElement(),this.topRow=!1,this.botRow=!1,this.topInitialized=!1,this.botInitialized=!1,this.blocked=!1,this.recalcAfterBlock=!1,this.registerTableOption("columnCalcs",!0),this.registerColumnOption("topCalc"),this.registerColumnOption("topCalcParams"),this.registerColumnOption("topCalcFormatter"),this.registerColumnOption("topCalcFormatterParams"),this.registerColumnOption("bottomCalc"),this.registerColumnOption("bottomCalcParams"),this.registerColumnOption("bottomCalcFormatter"),this.registerColumnOption("bottomCalcFormatterParams")}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-calcs-holder"),e}initialize(){this.genColumn=new $t({field:"value"},this),this.subscribe("cell-value-changed",this.cellValueChanged.bind(this)),this.subscribe("column-init",this.initializeColumnCheck.bind(this)),this.subscribe("row-deleted",this.rowsUpdated.bind(this)),this.subscribe("scroll-horizontal",this.scrollHorizontal.bind(this)),this.subscribe("row-added",this.rowsUpdated.bind(this)),this.subscribe("column-moved",this.recalcActiveRows.bind(this)),this.subscribe("column-add",this.recalcActiveRows.bind(this)),this.subscribe("data-refreshed",this.recalcActiveRowsRefresh.bind(this)),this.subscribe("table-redraw",this.tableRedraw.bind(this)),this.subscribe("rows-visible",this.visibleRows.bind(this)),this.subscribe("scrollbar-vertical",this.adjustForScrollbar.bind(this)),this.subscribe("redraw-blocked",this.blockRedraw.bind(this)),this.subscribe("redraw-restored",this.restoreRedraw.bind(this)),this.subscribe("table-redrawing",this.resizeHolderWidth.bind(this)),this.subscribe("column-resized",this.resizeHolderWidth.bind(this)),this.subscribe("column-show",this.resizeHolderWidth.bind(this)),this.subscribe("column-hide",this.resizeHolderWidth.bind(this)),this.registerTableFunction("getCalcResults",this.getResults.bind(this)),this.registerTableFunction("recalc",this.userRecalc.bind(this)),this.resizeHolderWidth()}resizeHolderWidth(){this.topElement.style.minWidth=this.table.columnManager.headersElement.offsetWidth+"px"}tableRedraw(e){this.recalc(this.table.rowManager.activeRows),e&&this.redraw()}blockRedraw(){this.blocked=!0,this.recalcAfterBlock=!1}restoreRedraw(){this.blocked=!1,this.recalcAfterBlock&&(this.recalcAfterBlock=!1,this.recalcActiveRowsRefresh())}userRecalc(){this.recalc(this.table.rowManager.activeRows)}blockCheck(){return this.blocked&&(this.recalcAfterBlock=!0),this.blocked}visibleRows(e,t){return this.topRow&&t.unshift(this.topRow),this.botRow&&t.push(this.botRow),t}rowsUpdated(e){this.table.options.groupBy?this.recalcRowGroup(e):this.recalcActiveRows()}recalcActiveRowsRefresh(){this.table.options.groupBy&&this.table.options.dataTreeStartExpanded&&this.table.options.dataTree?this.recalcAll():this.recalcActiveRows()}recalcActiveRows(){this.recalc(this.table.rowManager.activeRows)}cellValueChanged(e){(e.column.definition.topCalc||e.column.definition.bottomCalc)&&(this.table.options.groupBy?((this.table.options.columnCalcs=="table"||this.table.options.columnCalcs=="both")&&this.recalcActiveRows(),this.table.options.columnCalcs!="table"&&this.recalcRowGroup(e.row)):this.recalcActiveRows())}initializeColumnCheck(e){(e.definition.topCalc||e.definition.bottomCalc)&&this.initializeColumn(e)}initializeColumn(e){var t=e.definition,i={topCalcParams:t.topCalcParams||{},botCalcParams:t.bottomCalcParams||{}};if(t.topCalc){switch(typeof t.topCalc){case"string":qi.calculations[t.topCalc]?i.topCalc=qi.calculations[t.topCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.topCalc);break;case"function":i.topCalc=t.topCalc;break}i.topCalc&&(e.modules.columnCalcs=i,this.topCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeTopRow())}if(t.bottomCalc){switch(typeof t.bottomCalc){case"string":qi.calculations[t.bottomCalc]?i.botCalc=qi.calculations[t.bottomCalc]:console.warn("Column Calc Error - No such calculation found, ignoring: ",t.bottomCalc);break;case"function":i.botCalc=t.bottomCalc;break}i.botCalc&&(e.modules.columnCalcs=i,this.botCalcs.push(e),this.table.options.columnCalcs!="group"&&this.initializeBottomRow())}}registerColumnField(){}removeCalcs(){var e=!1;this.topInitialized&&(this.topInitialized=!1,this.topElement.parentNode.removeChild(this.topElement),e=!0),this.botInitialized&&(this.botInitialized=!1,this.footerRemove(this.botElement),e=!0),e&&this.table.rowManager.adjustTableSize()}reinitializeCalcs(){this.topCalcs.length&&this.initializeTopRow(),this.botCalcs.length&&this.initializeBottomRow()}initializeTopRow(){var e=document.createDocumentFragment();this.topInitialized||(e.appendChild(document.createElement("br")),e.appendChild(this.topElement),this.table.columnManager.getContentsElement().insertBefore(e,this.table.columnManager.headersElement.nextSibling),this.topInitialized=!0)}initializeBottomRow(){this.botInitialized||(this.footerPrepend(this.botElement),this.botInitialized=!0)}scrollHorizontal(e){this.botInitialized&&this.botRow&&(this.botElement.scrollLeft=e)}recalc(e){var t,i;if(!this.blockCheck()&&(this.topInitialized||this.botInitialized)){if(t=this.rowsToData(e),this.topInitialized){for(this.topRow&&this.topRow.deleteCells(),i=this.generateRow("top",t),this.topRow=i;this.topElement.firstChild;)this.topElement.removeChild(this.topElement.firstChild);this.topElement.appendChild(i.getElement()),i.initialize(!0)}if(this.botInitialized){for(this.botRow&&this.botRow.deleteCells(),i=this.generateRow("bottom",t),this.botRow=i;this.botElement.firstChild;)this.botElement.removeChild(this.botElement.firstChild);this.botElement.appendChild(i.getElement()),i.initialize(!0)}this.table.rowManager.adjustTableSize(),this.table.modExists("frozenColumns")&&this.table.modules.frozenColumns.layout()}}recalcRowGroup(e){this.recalcGroup(this.table.modules.groupRows.getRowGroup(e))}recalcAll(){if((this.topCalcs.length||this.botCalcs.length)&&(this.table.options.columnCalcs!=="group"&&this.recalcActiveRows(),this.table.options.groupBy&&this.table.options.columnCalcs!=="table")){var e=this.table.modules.groupRows.getChildGroups();e.forEach(t=>{this.recalcGroup(t)})}}recalcGroup(e){var t,i;this.blockCheck()||e&&e.calcs&&(e.calcs.bottom&&(t=this.rowsToData(e.rows),i=this.generateRowData("bottom",t),e.calcs.bottom.updateData(i),e.calcs.bottom.reinitialize()),e.calcs.top&&(t=this.rowsToData(e.rows),i=this.generateRowData("top",t),e.calcs.top.updateData(i),e.calcs.top.reinitialize()))}generateTopRow(e){return this.generateRow("top",this.rowsToData(e))}generateBottomRow(e){return this.generateRow("bottom",this.rowsToData(e))}rowsToData(e){var t=[],i=this.table.options.dataTree&&this.table.options.dataTreeChildColumnCalcs,r=this.table.modules.dataTree;return e.forEach(s=>{t.push(s.getData()),i&&s.modules.dataTree?.open&&this.rowsToData(r.getFilteredTreeChildren(s)).forEach(a=>{t.push(s)})}),t}generateRow(e,t){var i=this.generateRowData(e,t),r;return this.table.modExists("mutator")&&this.table.modules.mutator.disable(),r=new ft(i,this,"calc"),this.table.modExists("mutator")&&this.table.modules.mutator.enable(),r.getElement().classList.add("tabulator-calcs","tabulator-calcs-"+e),r.component=!1,r.getComponent=()=>(r.component||(r.component=new yE(r)),r.component),r.generateCells=()=>{var s=[];this.table.columnManager.columnsByIndex.forEach(a=>{this.genColumn.setField(a.getField()),this.genColumn.hozAlign=a.hozAlign,a.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(a.definition[e+"CalcFormatter"]),params:a.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=a.definition.cssClass;var l=new Cn(this.genColumn,r);l.getElement(),l.column=a,l.setWidth(),a.cells.push(l),s.push(l),a.visible||l.hide()}),r.cells=s},r}generateRowData(e,t){var i={},r=e=="top"?this.topCalcs:this.botCalcs,s=e=="top"?"topCalc":"botCalc",a,l;return r.forEach(function(u){var c=[];u.modules.columnCalcs&&u.modules.columnCalcs[s]&&(t.forEach(function(d){c.push(u.getFieldValue(d))}),l=s+"Params",a=typeof u.modules.columnCalcs[l]=="function"?u.modules.columnCalcs[l](c,t):u.modules.columnCalcs[l],u.setFieldValue(i,u.modules.columnCalcs[s](c,t,a)))}),i}hasTopCalcs(){return!!this.topCalcs.length}hasBottomCalcs(){return!!this.botCalcs.length}redraw(){this.topRow&&this.topRow.normalizeHeight(!0),this.botRow&&this.botRow.normalizeHeight(!0)}getResults(){var e={},t;return this.table.options.groupBy&&this.table.modExists("groupRows")?(t=this.table.modules.groupRows.getGroups(!0),t.forEach(i=>{e[i.getKey()]=this.getGroupResults(i)})):e={top:this.topRow?this.topRow.getData():{},bottom:this.botRow?this.botRow.getData():{}},e}getGroupResults(e){var t=e._getSelf(),i=e.getSubGroups(),r={},s={};return i.forEach(a=>{r[a.getKey()]=this.getGroupResults(a)}),s={top:t.calcs.top?t.calcs.top.getData():{},bottom:t.calcs.bottom?t.calcs.bottom.getData():{},groups:r},s}adjustForScrollbar(e){this.botRow&&(this.table.rtl?this.botElement.style.paddingLeft=e+"px":this.botElement.style.paddingRight=e+"px")}}class CE extends Ie{static moduleName="dataTree";constructor(e){super(e),this.indent=10,this.field="",this.collapseEl=null,this.expandEl=null,this.branchEl=null,this.elementField=!1,this.startOpen=function(){},this.registerTableOption("dataTree",!1),this.registerTableOption("dataTreeFilter",!0),this.registerTableOption("dataTreeSort",!0),this.registerTableOption("dataTreeElementColumn",!1),this.registerTableOption("dataTreeBranchElement",!0),this.registerTableOption("dataTreeChildIndent",9),this.registerTableOption("dataTreeChildField","_children"),this.registerTableOption("dataTreeCollapseElement",!1),this.registerTableOption("dataTreeExpandElement",!1),this.registerTableOption("dataTreeStartExpanded",!1),this.registerTableOption("dataTreeChildColumnCalcs",!1),this.registerTableOption("dataTreeSelectPropagate",!1),this.registerComponentFunction("row","treeCollapse",this.collapseRow.bind(this)),this.registerComponentFunction("row","treeExpand",this.expandRow.bind(this)),this.registerComponentFunction("row","treeToggle",this.toggleRow.bind(this)),this.registerComponentFunction("row","getTreeParent",this.getTreeParent.bind(this)),this.registerComponentFunction("row","getTreeChildren",this.getRowChildren.bind(this)),this.registerComponentFunction("row","addTreeChild",this.addTreeChildRow.bind(this)),this.registerComponentFunction("row","isTreeExpanded",this.isRowExpanded.bind(this))}initialize(){if(this.table.options.dataTree){var e=null,t=this.table.options;switch(this.field=t.dataTreeChildField,this.indent=t.dataTreeChildIndent,this.options("movableRows")&&console.warn("The movableRows option is not available with dataTree enabled, moving of child rows could result in unpredictable behavior"),t.dataTreeBranchElement?t.dataTreeBranchElement===!0?(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch")):typeof t.dataTreeBranchElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeBranchElement,this.branchEl=e.firstChild):this.branchEl=t.dataTreeBranchElement:(this.branchEl=document.createElement("div"),this.branchEl.classList.add("tabulator-data-tree-branch-empty")),t.dataTreeCollapseElement?typeof t.dataTreeCollapseElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeCollapseElement,this.collapseEl=e.firstChild):this.collapseEl=t.dataTreeCollapseElement:(this.collapseEl=document.createElement("div"),this.collapseEl.classList.add("tabulator-data-tree-control"),this.collapseEl.tabIndex=0,this.collapseEl.innerHTML="<div class='tabulator-data-tree-control-collapse'></div>"),t.dataTreeExpandElement?typeof t.dataTreeExpandElement=="string"?(e=document.createElement("div"),e.innerHTML=t.dataTreeExpandElement,this.expandEl=e.firstChild):this.expandEl=t.dataTreeExpandElement:(this.expandEl=document.createElement("div"),this.expandEl.classList.add("tabulator-data-tree-control"),this.expandEl.tabIndex=0,this.expandEl.innerHTML="<div class='tabulator-data-tree-control-expand'></div>"),typeof t.dataTreeStartExpanded){case"boolean":this.startOpen=function(i,r){return t.dataTreeStartExpanded};break;case"function":this.startOpen=t.dataTreeStartExpanded;break;default:this.startOpen=function(i,r){return t.dataTreeStartExpanded[r]};break}this.subscribe("row-init",this.initializeRow.bind(this)),this.subscribe("row-layout-after",this.layoutRow.bind(this)),this.subscribe("row-deleting",this.rowDeleting.bind(this)),this.subscribe("row-deleted",this.rowDelete.bind(this),0),this.subscribe("row-data-changed",this.rowDataChanged.bind(this),10),this.subscribe("cell-value-updated",this.cellValueChanged.bind(this)),this.subscribe("edit-cancelled",this.cellValueChanged.bind(this)),this.subscribe("column-moving-rows",this.columnMoving.bind(this)),this.subscribe("table-built",this.initializeElementField.bind(this)),this.subscribe("table-redrawing",this.tableRedrawing.bind(this)),this.registerDisplayHandler(this.getRows.bind(this),30)}}tableRedrawing(e){var t;e&&(t=this.table.rowManager.getRows(),t.forEach(i=>{this.reinitializeRowChildren(i)}))}initializeElementField(){var e=this.table.columnManager.getFirstVisibleColumn();this.elementField=this.table.options.dataTreeElementColumn||(e?e.field:!1)}getRowChildren(e){return this.getTreeChildren(e,!0)}columnMoving(){var e=[];return this.table.rowManager.rows.forEach(t=>{e=e.concat(this.getTreeChildren(t,!1,!0))}),e}rowDataChanged(e,t,i){this.redrawNeeded(i)&&(this.initializeRow(e),t&&(this.layoutRow(e),this.refreshData(!0)))}cellValueChanged(e){var t=e.column.getField();t===this.elementField&&this.layoutRow(e.row)}initializeRow(e){var t=e.getData()[this.field],i=Array.isArray(t),r=i||!i&&typeof t=="object"&&t!==null;!r&&e.modules.dataTree&&e.modules.dataTree.branchEl&&e.modules.dataTree.branchEl.parentNode.removeChild(e.modules.dataTree.branchEl),!r&&e.modules.dataTree&&e.modules.dataTree.controlEl&&e.modules.dataTree.controlEl.parentNode.removeChild(e.modules.dataTree.controlEl),e.modules.dataTree={index:e.modules.dataTree?e.modules.dataTree.index:0,open:r?e.modules.dataTree?e.modules.dataTree.open:this.startOpen(e.getComponent(),0):!1,controlEl:e.modules.dataTree&&r?e.modules.dataTree.controlEl:!1,branchEl:e.modules.dataTree&&r?e.modules.dataTree.branchEl:!1,parent:e.modules.dataTree?e.modules.dataTree.parent:!1,children:r}}reinitializeRowChildren(e){var t=this.getTreeChildren(e,!1,!0);t.forEach(function(i){i.reinitialize(!0)})}layoutRow(e){var t=this.elementField?e.getCell(this.elementField):e.getCells()[0],i=t.getElement(),r=e.modules.dataTree;r.branchEl&&(r.branchEl.parentNode&&r.branchEl.parentNode.removeChild(r.branchEl),r.branchEl=!1),r.controlEl&&(r.controlEl.parentNode&&r.controlEl.parentNode.removeChild(r.controlEl),r.controlEl=!1),this.generateControlElement(e,i),e.getElement().classList.add("tabulator-tree-level-"+r.index),r.index&&(this.branchEl?(r.branchEl=this.branchEl.cloneNode(!0),i.insertBefore(r.branchEl,i.firstChild),this.table.rtl?r.branchEl.style.marginRight=(r.branchEl.offsetWidth+r.branchEl.style.marginLeft)*(r.index-1)+r.index*this.indent+"px":r.branchEl.style.marginLeft=(r.branchEl.offsetWidth+r.branchEl.style.marginRight)*(r.index-1)+r.index*this.indent+"px"):this.table.rtl?i.style.paddingRight=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-right"))+r.index*this.indent+"px":i.style.paddingLeft=parseInt(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+r.index*this.indent+"px")}generateControlElement(e,t){var i=e.modules.dataTree,r=i.controlEl;t=t||e.getCells()[0].getElement(),i.children!==!1&&(i.open?(i.controlEl=this.collapseEl.cloneNode(!0),i.controlEl.addEventListener("click",s=>{s.stopPropagation(),this.collapseRow(e)})):(i.controlEl=this.expandEl.cloneNode(!0),i.controlEl.addEventListener("click",s=>{s.stopPropagation(),this.expandRow(e)})),i.controlEl.addEventListener("mousedown",s=>{s.stopPropagation()}),r&&r.parentNode===t?r.parentNode.replaceChild(i.controlEl,r):t.insertBefore(i.controlEl,t.firstChild))}getRows(e){var t=[];return e.forEach((i,r)=>{var s,a;t.push(i),i instanceof ft&&(i.create(),s=i.modules.dataTree,!s.index&&s.children!==!1&&(a=this.getChildren(i,!1,!0),a.forEach(l=>{l.create(),t.push(l)})))}),t}getChildren(e,t,i){var r=e.modules.dataTree,s=[],a=[];return r.children!==!1&&(r.open||t)&&(Array.isArray(r.children)||(r.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?s=this.table.modules.filter.filter(r.children):s=r.children,this.table.modExists("sort")&&this.table.options.dataTreeSort&&this.table.modules.sort.sort(s,i),s.forEach(l=>{a.push(l);var u=this.getChildren(l,!1,!0);u.forEach(c=>{a.push(c)})})),a}generateChildren(e){var t=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(r=>{var s=new ft(r||{},this.table.rowManager);s.create(),s.modules.dataTree.index=e.modules.dataTree.index+1,s.modules.dataTree.parent=e,s.modules.dataTree.children&&(s.modules.dataTree.open=this.startOpen(s.getComponent(),s.modules.dataTree.index)),t.push(s)}),t}expandRow(e,t){var i=e.modules.dataTree;i.children!==!1&&(i.open=!0,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowExpanded",e.getComponent(),e.modules.dataTree.index))}collapseRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open=!1,e.reinitialize(),this.refreshData(!0),this.dispatchExternal("dataTreeRowCollapsed",e.getComponent(),e.modules.dataTree.index))}toggleRow(e){var t=e.modules.dataTree;t.children!==!1&&(t.open?this.collapseRow(e):this.expandRow(e))}isRowExpanded(e){return e.modules.dataTree.open}getTreeParent(e){return e.modules.dataTree.parent?e.modules.dataTree.parent.getComponent():!1}getTreeParentRoot(e){return e.modules.dataTree&&e.modules.dataTree.parent?this.getTreeParentRoot(e.modules.dataTree.parent):e}getFilteredTreeChildren(e){var t=e.modules.dataTree,i=[],r;return t.children&&(Array.isArray(t.children)||(t.children=this.generateChildren(e)),this.table.modExists("filter")&&this.table.options.dataTreeFilter?r=this.table.modules.filter.filter(t.children):r=t.children,r.forEach(s=>{s instanceof ft&&i.push(s)})),i}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach(i=>{i instanceof ft&&i.wipe()})}rowDelete(e){var t=e.modules.dataTree.parent,i;t&&(i=this.findChildIndex(e,t),i!==!1&&t.data[this.field].splice(i,1),t.data[this.field].length||delete t.data[this.field],this.initializeRow(t),this.layoutRow(t)),this.refreshData(!0)}addTreeChildRow(e,t,i,r){var s=!1;typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(e.data[this.field])||(e.data[this.field]=[],e.modules.dataTree.open=this.startOpen(e.getComponent(),e.modules.dataTree.index)),typeof r<"u"&&(s=this.findChildIndex(r,e),s!==!1&&e.data[this.field].splice(i?s:s+1,0,t)),s===!1&&(i?e.data[this.field].unshift(t):e.data[this.field].push(t)),this.initializeRow(e),this.layoutRow(e),this.refreshData(!0)}findChildIndex(e,t){var i=!1;return typeof e=="object"?e instanceof ft?i=e.data:e instanceof cr?i=e._getSelf().data:typeof HTMLElement<"u"&&e instanceof HTMLElement?t.modules.dataTree&&(i=t.modules.dataTree.children.find(r=>r instanceof ft?r.element===e:!1),i&&(i=i.data)):e===null&&(i=!1):typeof e>"u"?i=!1:i=t.data[this.field].find(r=>r.data[this.table.options.index]==e),i&&(Array.isArray(t.data[this.field])&&(i=t.data[this.field].indexOf(i)),i==-1&&(i=!1)),i}getTreeChildren(e,t,i){var r=e.modules.dataTree,s=[];return r&&r.children&&(Array.isArray(r.children)||(r.children=this.generateChildren(e)),r.children.forEach(a=>{a instanceof ft&&(s.push(t?a.getComponent():a),i&&this.getTreeChildren(a,t,i).forEach(l=>{s.push(l)}))})),s}getChildField(){return this.field}redrawNeeded(e){return(this.field?typeof e[this.field]<"u":!1)||(this.elementField?typeof e[this.elementField]<"u":!1)}}function EE(n,e={},t){var i=e.delimiter?e.delimiter:",",r=[],s=[];n.forEach(a=>{var l=[];switch(a.type){case"group":console.warn("Download Warning - CSV downloader cannot process row groups");break;case"calc":console.warn("Download Warning - CSV downloader cannot process column calculations");break;case"header":a.columns.forEach((u,c)=>{u&&u.depth===1&&(s[c]=typeof u.value>"u"||u.value===null?"":'"'+String(u.value).split('"').join('""')+'"')});break;case"row":a.columns.forEach(u=>{if(u){switch(typeof u.value){case"object":u.value=u.value!==null?JSON.stringify(u.value):"";break;case"undefined":u.value="";break}l.push('"'+String(u.value).split('"').join('""')+'"')}}),r.push(l.join(i));break}}),s.length&&r.unshift(s.join(i)),r=r.join(`
|
|
34
34
|
`),e.bom&&(r="\uFEFF"+r),t(r,"text/csv")}function kE(n,e,t){var i=[];n.forEach(r=>{var s={};switch(r.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":r.columns.forEach(a=>{a&&(s[a.component.getTitleDownload()||a.component.getField()]=a.value)}),i.push(s);break}}),i=JSON.stringify(i,null," "),t(i,"application/json")}function SE(n,e={},t){var i=[],r=[],s={},a=e.rowGroupStyles||{fontStyle:"bold",fontSize:12,cellPadding:6,fillColor:220},l=e.rowCalcStyles||{fontStyle:"bold",fontSize:10,cellPadding:4,fillColor:232},u=e.jsPDF||{},c=e.title?e.title:"",d,f;u.orientation||(u.orientation=e.orientation||"landscape"),u.unit||(u.unit="pt"),n.forEach(h=>{switch(h.type){case"header":i.push(p(h));break;case"group":r.push(p(h,a));break;case"calc":r.push(p(h,l));break;case"row":r.push(p(h));break}});function p(h,S){var m=[];return h.columns.forEach(E=>{var b;if(E){switch(typeof E.value){case"object":E.value=E.value!==null?JSON.stringify(E.value):"";break;case"undefined":E.value="";break}b={content:E.value,colSpan:E.width,rowSpan:E.height},S&&(b.styles=S),m.push(b)}}),m}d=this.dependencyRegistry.lookup("jspdf","jsPDF"),f=new d(u),e.autoTable&&(typeof e.autoTable=="function"?s=e.autoTable(f)||{}:s=e.autoTable),c&&(s.didDrawPage=function(h){f.text(c,40,30)}),s.head=i,s.body=r,f.autoTable(s),e.documentProcessing&&e.documentProcessing(f),t(f.output("arraybuffer"),"application/pdf")}function xE(n,e,t){var i=this,r=e.sheetName||"Sheet1",s=this.dependencyRegistry.lookup("XLSX"),a=s.utils.book_new(),l=new ct(this),u="compress"in e?e.compress:!0,c=e.writeOptions||{bookType:"xlsx",bookSST:!0,compression:u},d;c.type="binary",a.SheetNames=[],a.Sheets={};function f(){var S=[],m=[],E={},b={s:{c:0,r:0},e:{c:n[0]?n[0].columns.reduce((g,T)=>g+(T&&T.width?T.width:1),0):0,r:n.length}};return n.forEach((g,T)=>{var v=[];g.columns.forEach(function(R,y){R?(v.push(!(R.value instanceof Date)&&typeof R.value=="object"?JSON.stringify(R.value):R.value),(R.width>1||R.height>-1)&&(R.height>1||R.width>1)&&m.push({s:{r:T,c:y},e:{r:T+R.height-1,c:y+R.width-1}})):v.push("")}),S.push(v)}),s.utils.sheet_add_aoa(E,S),E["!ref"]=s.utils.encode_range(b),m.length&&(E["!merges"]=m),E}if(e.sheetOnly){t(f());return}if(e.sheets)for(var p in e.sheets)e.sheets[p]===!0?(a.SheetNames.push(p),a.Sheets[p]=f()):(a.SheetNames.push(p),l.commsSend(e.sheets[p],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(S){a.Sheets[p]=S}}));else a.SheetNames.push(r),a.Sheets[r]=f();e.documentProcessing&&(a=e.documentProcessing(a));function h(S){for(var m=new ArrayBuffer(S.length),E=new Uint8Array(m),b=0;b!=S.length;++b)E[b]=S.charCodeAt(b)&255;return m}d=s.write(a,c),t(h(d),"application/octet-stream")}function ME(n,e,t){this.modExists("export",!0)&&t(this.modules.export.generateHTMLTable(n),"text/html")}function RE(n,e,t){const i=[];n.forEach(r=>{const s={};switch(r.type){case"header":break;case"group":console.warn("Download Warning - JSON downloader cannot process row groups");break;case"calc":console.warn("Download Warning - JSON downloader cannot process column calculations");break;case"row":r.columns.forEach(a=>{a&&(s[a.component.getTitleDownload()||a.component.getField()]=a.value)}),i.push(JSON.stringify(s));break}}),t(i.join(`
|