r3ui-lib 1.2.7 → 1.2.8
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
|
`+A.join("</span><span class='flatpickr-weekday'>")+`
|
|
30
30
|
</span>
|
|
31
|
-
`}}function F(){t.calendarContainer.classList.add("hasWeeks");var B=Je("div","flatpickr-weekwrapper");B.appendChild(Je("span","flatpickr-weekday",t.l10n.weekAbbreviation));var A=Je("div","flatpickr-weeks");return B.appendChild(A),{weekWrapper:B,weekNumbers:A}}function P(B,A){A===void 0&&(A=!0);var O=A?B:B-t.currentMonth;O<0&&t._hidePrevMonthArrow===!0||O>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=O,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Ge("onYearChange"),L()),R(),Ge("onMonthChange"),ze())}function Y(B,A){if(B===void 0&&(B=!0),A===void 0&&(A=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,A===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var O=Fo(t.config),_=O.hours,G=O.minutes,re=O.seconds;h(_,G,re)}t.redraw(),B&&Ge("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")),Ge("onClose")}function J(){t.config!==void 0&&Ge("onDestroy");for(var B=t._handlers.length;B--;)t._handlers[B].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 A=t.calendarContainer.parentNode;if(A.lastChild&&A.removeChild(A.lastChild),A.parentNode){for(;A.firstChild;)A.parentNode.insertBefore(A.firstChild,A);A.parentNode.removeChild(A)}}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(O){try{delete t[O]}catch{}})}function $(B){return t.calendarContainer.contains(B)}function Q(B){if(t.isOpen&&!t.config.inline){var A=St(B),O=$(A),_=A===t.input||A===t.altInput||t.element.contains(A)||B.path&&B.path.indexOf&&(~B.path.indexOf(t.input)||~B.path.indexOf(t.altInput)),G=!_&&!O&&!$(B.relatedTarget),re=!t.config.ignoredFocusElements.some(function(ue){return ue.contains(A)});G&&re&&(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 ae(B){if(!(!B||t.config.minDate&&B<t.config.minDate.getFullYear()||t.config.maxDate&&B>t.config.maxDate.getFullYear())){var A=B,O=t.currentYear!==A;t.currentYear=A||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)),O&&(t.redraw(),Ge("onYearChange"),L())}}function W(B,A){var O;A===void 0&&(A=!0);var _=t.parseDate(B,void 0,A);if(t.config.minDate&&_&&xt(_,t.config.minDate,A!==void 0?A:!t.minDateHasTime)<0||t.config.maxDate&&_&&xt(_,t.config.maxDate,A!==void 0?A:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(_===void 0)return!1;for(var G=!!t.config.enable,re=(O=t.config.enable)!==null&&O!==void 0?O:t.config.disable,ue=0,he=void 0;ue<re.length;ue++){if(he=re[ue],typeof he=="function"&&he(_))return G;if(he instanceof Date&&_!==void 0&&he.getTime()===_.getTime())return G;if(typeof he=="string"){var pe=t.parseDate(he,void 0,!0);return pe&&pe.getTime()===_.getTime()?G:!G}else if(typeof he=="object"&&_!==void 0&&he.from&&he.to&&_.getTime()>=he.from.getTime()&&_.getTime()<=he.to.getTime())return G}return!G}function H(B){return t.daysContainer!==void 0?B.className.indexOf("hidden")===-1&&B.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(B):!1}function ie(B){var A=B.target===t._input,O=t._input.value.trimEnd()!==Oe();A&&O&&!(B.relatedTarget&&$(B.relatedTarget))&&t.setDate(t._input.value,!0,B.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function X(B){var A=St(B),O=t.config.wrap?n.contains(A):A===t._input,_=t.config.allowInput,G=t.isOpen&&(!_||!O),re=t.config.inline&&O&&!_;if(B.keyCode===13&&O){if(_)return t.setDate(t._input.value,!0,A===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),A.blur();t.open()}else if($(A)||G||re){var ue=!!t.timeContainer&&t.timeContainer.contains(A);switch(B.keyCode){case 13:ue?(B.preventDefault(),u(),ne()):me(B);break;case 27:B.preventDefault(),ne();break;case 8:case 46:O&&!t.config.allowInput&&(B.preventDefault(),t.clear());break;case 37:case 39:if(!ue&&!O){B.preventDefault();var he=s();if(t.daysContainer!==void 0&&(_===!1||he&&H(he))){var pe=B.keyCode===39?1:-1;B.ctrlKey?(B.stopPropagation(),P(pe),v(w(1),0)):v(void 0,pe)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:B.preventDefault();var be=B.keyCode===40?1:-1;t.daysContainer&&A.$i!==void 0||A===t.input||A===t.altInput?B.ctrlKey?(B.stopPropagation(),ae(t.currentYear-be),v(w(1),0)):ue||v(void 0,be*7):A===t.currentYearElement?ae(t.currentYear-be):t.config.enableTime&&(!ue&&t.hourElement&&t.hourElement.focus(),u(B),t._debouncedChange());break;case 9:if(ue){var Ce=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Be){return Be}),De=Ce.indexOf(A);if(De!==-1){var We=Ce[De+(B.shiftKey?-1:1)];B.preventDefault(),(We||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(A)&&B.shiftKey&&(B.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&A===t.amPM)switch(B.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),Re();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),Re();break}(O||$(A))&&Ge("onKeyDown",B)}function Z(B,A){if(A===void 0&&(A="flatpickr-day"),!(t.selectedDates.length!==1||B&&(!B.classList.contains(A)||B.classList.contains("flatpickr-disabled")))){for(var O=B?B.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),_=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),G=Math.min(O,t.selectedDates[0].getTime()),re=Math.max(O,t.selectedDates[0].getTime()),ue=!1,he=0,pe=0,be=G;be<re;be+=Ry.DAY)W(new Date(be),!0)||(ue=ue||be>G&&be<re,be<_&&(!he||be>he)?he=be:be>_&&(!pe||be<pe)&&(pe=be));var Ce=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+A));Ce.forEach(function(De){var We=De.dateObj,Be=We.getTime(),qe=he>0&&Be<he||pe>0&&Be>pe;if(qe){De.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Xe){De.classList.remove(Xe)});return}else if(ue&&!qe)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Xe){De.classList.remove(Xe)}),B!==void 0&&(B.classList.add(O<=t.selectedDates[0].getTime()?"startRange":"endRange"),_<O&&Be===_?De.classList.add("startRange"):_>O&&Be===_&&De.classList.add("endRange"),Be>=he&&(pe===0||Be<=pe)&&Sy(Be,_,O)&&De.classList.add("inRange"))})}}function fe(){t.isOpen&&!t.config.static&&!t.config.inline&&_e()}function le(B,A){if(A===void 0&&(A=t._positionElement),t.isMobile===!0){if(B){B.preventDefault();var O=St(B);O&&O.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),Ge("onOpen");return}else if(t._input.disabled||t.config.inline)return;var _=t.isOpen;t.isOpen=!0,_||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),Ge("onOpen"),_e(A)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(B===void 0||!t.timeContainer.contains(B.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ye(B){return function(A){var O=t.config["_"+B+"Date"]=t.parseDate(A,t.config.dateFormat),_=t.config["_"+(B==="min"?"max":"min")+"Date"];O!==void 0&&(t[B==="min"?"minDateHasTime":"maxDateHasTime"]=O.getHours()>0||O.getMinutes()>0||O.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(G){return W(G)}),!t.selectedDates.length&&B==="min"&&p(O),Re()),t.daysContainer&&(q(),O!==void 0?t.currentYearElement[B]=O.getFullYear().toString():t.currentYearElement.removeAttribute(B),t.currentYearElement.disabled=!!_&&O!==void 0&&_.getFullYear()===O.getFullYear())}}function we(){var B=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],A=ft(ft({},JSON.parse(JSON.stringify(n.dataset||{}))),e),O={};t.config.parseDate=A.parseDate,t.config.formatDate=A.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(Ce){t.config._enable=Se(Ce)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(Ce){t.config._disable=Se(Ce)}});var _=A.mode==="time";if(!A.dateFormat&&(A.enableTime||_)){var G=ot.defaultConfig.dateFormat||Qi.dateFormat;O.dateFormat=A.noCalendar||_?"H:i"+(A.enableSeconds?":S":""):G+" H:i"+(A.enableSeconds?":S":"")}if(A.altInput&&(A.enableTime||_)&&!A.altFormat){var re=ot.defaultConfig.altFormat||Qi.altFormat;O.altFormat=A.noCalendar||_?"h:i"+(A.enableSeconds?":S K":" K"):re+(" h:i"+(A.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ye("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ye("max")});var ue=function(Ce){return function(De){t.config[Ce==="min"?"_minTime":"_maxTime"]=t.parseDate(De,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:ue("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:ue("max")}),A.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,O,A);for(var he=0;he<B.length;he++)t.config[B[he]]=t.config[B[he]]===!0||t.config[B[he]]==="true";To.filter(function(Ce){return t.config[Ce]!==void 0}).forEach(function(Ce){t.config[Ce]=Do(t.config[Ce]||[]).map(o)}),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 he=0;he<t.config.plugins.length;he++){var pe=t.config.plugins[he](t)||{};for(var be in pe)To.indexOf(be)>-1?t.config[be]=Do(pe[be]).map(o).concat(t.config[be]):typeof A[be]>"u"&&(t.config[be]=pe[be])}A.altInputClass||(t.config.altInputClass=xe().className+" "+t.config.altInputClass),Ge("onParseConfig")}function xe(){return t.config.wrap?n.querySelector("[data-input]"):n}function Fe(){typeof t.config.locale!="object"&&typeof ot.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=ft(ft({},ot.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?ot.l10ns[t.config.locale]:void 0),Ri.D="("+t.l10n.weekdays.shorthand.join("|")+")",Ri.l="("+t.l10n.weekdays.longhand.join("|")+")",Ri.M="("+t.l10n.months.shorthand.join("|")+")",Ri.F="("+t.l10n.months.longhand.join("|")+")",Ri.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var B=ft(ft({},e),JSON.parse(JSON.stringify(n.dataset||{})));B.time_24hr===void 0&&ot.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Hc(t),t.parseDate=Lo({config:t.config,l10n:t.l10n})}function _e(B){if(typeof t.config.position=="function")return void t.config.position(t,B);if(t.calendarContainer!==void 0){Ge("onPreCalendarPosition");var A=B||t._positionElement,O=Array.prototype.reduce.call(t.calendarContainer.children,(function(Di,wx){return Di+wx.offsetHeight}),0),_=t.calendarContainer.offsetWidth,G=t.config.position.split(" "),re=G[0],ue=G.length>1?G[1]:null,he=A.getBoundingClientRect(),pe=window.innerHeight-he.bottom,be=re==="above"||re!=="below"&&pe<O&&he.top>O,Ce=window.pageYOffset+he.top+(be?-O-2:A.offsetHeight+2);if(gt(t.calendarContainer,"arrowTop",!be),gt(t.calendarContainer,"arrowBottom",be),!t.config.inline){var De=window.pageXOffset+he.left,We=!1,Be=!1;ue==="center"?(De-=(_-he.width)/2,We=!0):ue==="right"&&(De-=_-he.width,Be=!0),gt(t.calendarContainer,"arrowLeft",!We&&!Be),gt(t.calendarContainer,"arrowCenter",We),gt(t.calendarContainer,"arrowRight",Be);var qe=window.document.body.offsetWidth-(window.pageXOffset+he.right),Xe=De+_>window.document.body.offsetWidth,at=qe+_>window.document.body.offsetWidth;if(gt(t.calendarContainer,"rightMost",Xe),!t.config.static)if(t.calendarContainer.style.top=Ce+"px",!Xe)t.calendarContainer.style.left=De+"px",t.calendarContainer.style.right="auto";else if(!at)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=qe+"px";else{var nt=Ne();if(nt===void 0)return;var yi=window.document.body.offsetWidth,Ti=Math.max(0,yi/2-_/2),ci=".flatpickr-calendar.centerMost:before",jt=".flatpickr-calendar.centerMost:after",$t=nt.cssRules.length,Xi="{left:"+he.left+"px;right:auto;}";gt(t.calendarContainer,"rightMost",!1),gt(t.calendarContainer,"centerMost",!0),nt.insertRule(ci+","+jt+Xi,$t),t.calendarContainer.style.left=Ti+"px",t.calendarContainer.style.right="auto"}}}}function Ne(){for(var B=null,A=0;A<document.styleSheets.length;A++){var O=document.styleSheets[A];if(O.cssRules){try{O.cssRules}catch{continue}B=O;break}}return B??ce()}function ce(){var B=document.createElement("style");return document.head.appendChild(B),B.sheet}function q(){t.config.noCalendar||t.isMobile||(L(),ze(),R())}function ne(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function me(B){B.preventDefault(),B.stopPropagation();var A=function(Ce){return Ce.classList&&Ce.classList.contains("flatpickr-day")&&!Ce.classList.contains("flatpickr-disabled")&&!Ce.classList.contains("notAllowed")},O=Ic(St(B),A);if(O!==void 0){var _=O,G=t.latestSelectedDateObj=new Date(_.dateObj.getTime()),re=(G.getMonth()<t.currentMonth||G.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=_,t.config.mode==="single")t.selectedDates=[G];else if(t.config.mode==="multiple"){var ue=se(G);ue?t.selectedDates.splice(parseInt(ue),1):t.selectedDates.push(G)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=G,t.selectedDates.push(G),xt(G,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(Ce,De){return Ce.getTime()-De.getTime()}));if(f(),re){var he=t.currentYear!==G.getFullYear();t.currentYear=G.getFullYear(),t.currentMonth=G.getMonth(),he&&(Ge("onYearChange"),L()),Ge("onMonthChange")}if(ze(),R(),Re(),!re&&t.config.mode!=="range"&&t.config.showMonths===1?k(_):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 pe=t.config.mode==="single"&&!t.config.enableTime,be=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(pe||be)&&ne()}S()}}var de={locale:[Fe,K],showMonths:[j,l,V],minDate:[m],maxDate:[m],positionElement:[je],clickOpens:[function(){t.config.clickOpens===!0?(b(t._input,"focus",t.open),b(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function ke(B,A){if(B!==null&&typeof B=="object"){Object.assign(t.config,B);for(var O in B)de[O]!==void 0&&de[O].forEach(function(_){return _()})}else t.config[B]=A,de[B]!==void 0?de[B].forEach(function(_){return _()}):To.indexOf(B)>-1&&(t.config[B]=Do(A));t.redraw(),Re(!0)}function Me(B,A){var O=[];if(B instanceof Array)O=B.map(function(_){return t.parseDate(_,A)});else if(B instanceof Date||typeof B=="number")O=[t.parseDate(B,A)];else if(typeof B=="string")switch(t.config.mode){case"single":case"time":O=[t.parseDate(B,A)];break;case"multiple":O=B.split(t.config.conjunction).map(function(_){return t.parseDate(_,A)});break;case"range":O=B.split(t.l10n.rangeSeparator).map(function(_){return t.parseDate(_,A)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(B)));t.selectedDates=t.config.allowInvalidPreload?O:O.filter(function(_){return _ instanceof Date&&W(_,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(_,G){return _.getTime()-G.getTime()})}function oe(B,A,O){if(A===void 0&&(A=!1),O===void 0&&(O=t.config.dateFormat),B!==0&&!B||B instanceof Array&&B.length===0)return t.clear(A);Me(B,O),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),m(void 0,A),p(),t.selectedDates.length===0&&t.clear(!1),Re(A),A&&Ge("onChange")}function Se(B){return B.slice().map(function(A){return typeof A=="string"||typeof A=="number"||A instanceof Date?t.parseDate(A,void 0,!0):A&&typeof A=="object"&&A.from&&A.to?{from:t.parseDate(A.from,void 0),to:t.parseDate(A.to,void 0)}:A}).filter(function(A){return A})}function Le(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var B=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);B&&Me(B,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 et(){if(t.input=xe(),!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=Je(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"),je()}function je(){t._positionElement=t.config.positionElement||t._input}function Rt(){var B=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Je("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=B,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=B==="datetime-local"?"Y-m-d\\TH:i:S":B==="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{}b(t.mobileInput,"change",function(A){t.setDate(St(A).value,!1,t.mobileFormatStr),Ge("onChange"),Ge("onClose")})}function At(B){if(t.isOpen===!0)return t.close();t.open(B)}function Ge(B,A){if(t.config!==void 0){var O=t.config[B];if(O!==void 0&&O.length>0)for(var _=0;O[_]&&_<O.length;_++)O[_](t.selectedDates,t.input.value,t,A);B==="onChange"&&(t.input.dispatchEvent(ee("change")),t.input.dispatchEvent(ee("input")))}}function ee(B){var A=document.createEvent("Event");return A.initEvent(B,!0,!0),A}function se(B){for(var A=0;A<t.selectedDates.length;A++){var O=t.selectedDates[A];if(O instanceof Date&&xt(O,B)===0)return""+A}return!1}function Pe(B){return t.config.mode!=="range"||t.selectedDates.length<2?!1:xt(B,t.selectedDates[0])>=0&&xt(B,t.selectedDates[1])<=0}function ze(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(B,A){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+A),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[A].textContent=mr(O.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=O.getMonth().toString(),B.value=O.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 Oe(B){var A=B||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(O){return t.formatDate(O,A)}).filter(function(O,_,G){return t.config.mode!=="range"||t.config.enableTime||G.indexOf(O)===_}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Re(B){B===void 0&&(B=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=Oe(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Oe(t.config.altFormat)),B!==!1&&Ge("onValueUpdate")}function ct(B){var A=St(B),O=t.prevMonthNav.contains(A),_=t.nextMonthNav.contains(A);O||_?P(O?-1:1):t.yearElements.indexOf(A)>=0?A.select():A.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):A.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function ge(B){B.preventDefault();var A=B.type==="keydown",O=St(B),_=O;t.amPM!==void 0&&O===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]);var G=parseFloat(_.getAttribute("min")),re=parseFloat(_.getAttribute("max")),ue=parseFloat(_.getAttribute("step")),he=parseInt(_.value,10),pe=B.delta||(A?B.which===38?1:-1:0),be=he+ue*pe;if(typeof _.value<"u"&&_.value.length===2){var Ce=_===t.hourElement,De=_===t.minuteElement;be<G?(be=re+be+Ft(!Ce)+(Ft(Ce)&&Ft(!t.amPM)),De&&g(void 0,-1,t.hourElement)):be>re&&(be=_===t.hourElement?be-re-Ft(!t.amPM):G,De&&g(void 0,1,t.hourElement)),t.amPM&&Ce&&(ue===1?be+he===23:Math.abs(be-he)>ue)&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]),_.value=Ct(be)}}return r(),t}function Ki(n,e){for(var t=Array.prototype.slice.call(n).filter(function(o){return o 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=Ty(s,e||{}),i.push(s._flatpickr)}catch(o){console.error(o)}}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 Ki(this,n)},HTMLElement.prototype.flatpickr=function(n){return Ki([this],n)});var ot=function(n,e){return typeof n=="string"?Ki(window.document.querySelectorAll(n),e):n instanceof Node?Ki([n],e):Ki(n,e)};ot.defaultConfig={},ot.l10ns={en:ft({},wn),default:ft({},wn)},ot.localize=function(n){ot.l10ns.default=ft(ft({},ot.l10ns.default),n)},ot.setDefaults=function(n){ot.defaultConfig=ft(ft({},ot.defaultConfig),n)},ot.parseDate=Lo({}),ot.formatDate=Hc({}),ot.compareDates=xt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Ki(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=ot);var An={exports:{}},Dy=An.exports,zc;function Oy(){return zc||(zc=1,(function(n,e){(function(t,i){i(e)})(Dy,(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})}))})(An,An.exports)),An.exports}var Ly=Oy();const By=["value","id","name","disabled","required","placeholder"],Fy=["title"],_y=["title"],Py=Ie(a.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=a.ref(),o=a.ref(null),l=a.ref(!1),u=a.ref(""),c=a.ref([]),d=a.ref(!1),f=a.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),p=k=>{if(!k)return null;if(k instanceof Date&&!isNaN(k.getTime()))return k;const w=typeof k=="string"?k.trim():"";if(w){const E=b(w);if(E){const R=new Date(E);if(!isNaN(R.getTime()))return R}const v=ot.parseDate?.(w,i.dateFormat);if(v&&!isNaN(v.getTime()))return v;const T=new Date(w);if(!isNaN(T.getTime()))return T}return null},h=k=>{const w=k instanceof Date?k:p(k);if(!w)return"";const E=String(w.getDate()).padStart(2,"0"),v=String(w.getMonth()+1).padStart(2,"0"),T=w.getFullYear();return i.format==="MM/DD/YYYY"?`${v}/${E}/${T}`:i.format==="YYYY-MM-DD"?`${T}-${v}-${E}`:`${E}.${v}.${T}`},x=k=>{const w=k instanceof Date?k:p(k);if(!w)return"";const E=String(w.getDate()).padStart(2,"0"),v=String(w.getMonth()+1).padStart(2,"0");return`${w.getFullYear()}-${v}-${E}`},b=k=>{if(!k)return"";const w=k.trim(),E=ot.parseDate?.(w,i.dateFormat);if(E&&!isNaN(E.getTime())){const v=E.getFullYear(),T=String(E.getMonth()+1).padStart(2,"0"),R=String(E.getDate()).padStart(2,"0");return`${v}-${T}-${R}`}if(/^\d{4}-\d{2}-\d{2}/.test(w))return w;if(i.format==="MM/DD/YYYY"){const[v,T,R]=w.split("/");if(v&&T&&R)return`${R}-${v.padStart(2,"0")}-${T.padStart(2,"0")}`}if(i.format==="YYYY-MM-DD")return w;if(i.format==="DD.MM.YYYY"){const[v,T,R]=w.split(".");if(v&&T&&R)return`${R}-${T.padStart(2,"0")}-${v.padStart(2,"0")}`}return w},S=k=>k?Array.isArray(k)?k:[k]:[],C=(k,w)=>{const E=S(k),v=E.map(R=>h(R)).filter(Boolean);if(u.value=v.join(", "),l.value=v.length>0,!w?._input)return;if(!v.length){w.clear?.(),w._input.value="";return}const T=E.map(R=>p(R)).filter(R=>!!R);if(!T.length){w.clear?.(),w._input.value=u.value;return}w.setDate?.(T,!1),w._input.value=u.value,(i.mode==="range"||i.mode==="multiple")&&(c.value=w.selectedDates||T)},m=()=>{if(!s.value)return;const k={locale:i.locale==="ru"?Ly.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(w,E,v)=>{const T=w.length>0;if(c.value=w,!T)return D({instance:v}),!1;if(i.mode==="range"||i.mode==="multiple"){const R=w.map(j=>x(j)),L=Array.isArray(i.modelValue)?i.modelValue:[];if(L.length===R.length&&L.every((j,U)=>j===R[U]))return!1}else{const R=x(w[0]);if(!(i.modelValue!==R))return!1}if(d.value=!0,i.mode==="range"||i.mode==="multiple"){const R=w.map(L=>h(L));u.value=R.join(", "),l.value=R.length>0}else u.value=E,l.value=E.length>0;a.nextTick(()=>{if(i.mode==="multiple"){const R=w.map(L=>x(L));r("update:modelValue",R)}else if(i.mode==="range"){const R=w.map(L=>x(L));r("update:modelValue",R)}else{const R=x(w[0]);r("update:modelValue",R)}r("change",w.map(R=>R.toISOString()),E,v),a.nextTick(()=>{d.value=!1})})},onOpen:w=>{r("open",w)},onReady:w=>{r("ready",w)},...i.config};i.minDate&&i.minDate&&(k.minDate=i.minDate),i.maxDate&&(k.maxDate=i.maxDate),i.defaultDate&&(k.defaultDate=i.defaultDate),o.value=ot(s.value,k),D({instance:o.value})},D=({instance:k})=>{C(i.modelValue,k)},g=()=>{if(i.disabled||!o.value)return;o.value.clear(),o.value._input.value="";const k=i.mode==="range"||i.mode==="multiple"?[]:"";u.value="",l.value=!1,c.value=[],r("update:modelValue",k),r("change",[],"",o.value),C(k,o.value)},M=k=>{const w=k.target;u.value=w.value},y=()=>{if(i.mode==="range"||i.mode==="multiple"){if(o.value?.isOpen)return;if((o.value?.selectedDates||[]).length===0&&c.value.length>0){const w=c.value.map(T=>x(T)),E=Array.isArray(i.modelValue)?i.modelValue:[];E.length===w.length&&E.every((T,R)=>T===w[R])||r("update:modelValue",w)}return}if(i.mode==="single"&&u.value){const k=b(u.value);k&&r("update:modelValue",k)}};return a.watch(()=>i.modelValue,k=>{d.value||C(k,o.value)},{deep:!0}),a.watch(()=>i.disabled,k=>{o.value?._input&&(o.value._input.disabled=k)}),a.onMounted(()=>{m()}),a.onBeforeUnmount(()=>{o.value&&o.value.destroy()}),e({datapicker:o}),(k,w)=>(a.openBlock(),a.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[a.createElementVNode("div",{class:a.normalizeClass({"not-valid":f.value.length})},[a.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:k.id,name:k.name,disabled:k.disabled,required:k.required,placeholder:k.placeholder,autocomplete:"off","data-input":"",onInput:M,onBlur:y},null,40,By)],2),l.value&&!k.disabled?(a.openBlock(),a.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:g,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:k.resetTitle},[...w[0]||(w[0]=[a.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Fy)):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:k.calendarTitle},[...w[1]||(w[1]=[a.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,_y),a.createVNode(ki,{errors:f.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-a8bbc430"]]);function Ny(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,o=a.ref(""),l=a.ref([]),u=a.ref(!1),c=a.ref(r),d=a.ref(!1),f=a.ref(!1),p=a.computed(()=>o.value&&o.value.length>0&&o.value.length<s?`Введите минимум ${s} символа`:t),h=a.computed(()=>i);return{search:o,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:y=>{o.value=y||"",y&&y.length>=s},onSelect:y=>{},clearSearch:()=>{o.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 Iy=["disabled"],Hy={key:1,class:"bi bi-three-dots-vertical"},Vy=Ie(a.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:o,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:x,onSelect:b,clearSearch:S,toggleSettings:C,hideSettings:m}=Ny(s),D=a.ref();a.computed(()=>i.options.length>0?i.options:l.value),a.computed(()=>i.isSearchLoading||u.value),a.computed(()=>i.isLoading||f.value);const g=E=>{const v=E||"";x(v),r("search",v,c.value)},M=E=>{b(E),r("select",E)},y=a.computed(()=>i.searchTypeName);a.watch(c,E=>{r("searchTypeChange",E),m()});const k=E=>{const v=E.target;w.value?.contains(v)||m()},w=a.ref();return a.onMounted(()=>{document.addEventListener("click",k)}),a.onUnmounted(()=>{document.removeEventListener("click",k)}),e({clearSearch:S,setOptions:E=>{l.value=E},setLoading:E=>{u.value=E},setGlobalLoading:E=>{f.value=E},focus:()=>{D.value?.$el?.querySelector("input")?.focus()}}),(E,v)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapperRef",ref:w,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(a.openBlock(),a.createBlock(Vt,{ref_key:"selectRef",ref:D,key:a.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:a.unref(o),"onUpdate:modelValue":[v[0]||(v[0]=T=>a.isRef(o)?o.value=T:null),M],reduce:T=>T,options:E.options,placeholder:E.placeholder,onSearch:g,onBlur:a.unref(S),onFocus:a.unref(m),isLoading:E.isSearchLoading,hint:a.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),a.createElementVNode("button",{class:"btn btn-light px-2",onClick:v[1]||(v[1]=(...T)=>a.unref(C)&&a.unref(C)(...T)),disabled:E.isLoading},[E.isLoading?(a.openBlock(),a.createBlock(Or,{key:0,isSmall:!0})):(a.openBlock(),a.createElementBlock("i",Hy))],8,Iy),a.unref(d)?(a.openBlock(),a.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:v[3]||(v[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(h),T=>(a.openBlock(),a.createElementBlock("li",{key:T.value,class:"setting-item"},[a.createVNode(Pc,{name:y.value,label:T.label,modelValue:a.unref(c),"onUpdate:modelValue":v[2]||(v[2]=R=>a.isRef(c)?c.value=R:null),type:"radio",group:y.value,trueValue:T.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function zy(n={}){const{loadCountries:e,loadRegions:t,loadDistricts:i,loadLocalities:r,loadStreets:s,countryKey:o="country_id",regionKey:l="region_id",districtKey:u="district_id",localityKey:c="locality_id",streetKey:d="street_id",houseKey:f="house",buildingKey:p="building",apartmentKey:h="apartment",countryLabel:x="Страна",regionLabel:b="Регион",districtLabel:S="Район",localityLabel:C="Населенный пункт",streetLabel:m="Улица",houseLabel:D="Дом",buildingLabel:g="Корпус",apartmentLabel:M="Квартира",columnWidth:y="12",prefix:k="",multiLocalities:w=!1,multiStreets:E=!1,showHouseFields:v=!0}=n,T=a.ref(!1),R=a.ref({}),L=a.ref(!1),N=a.ref(!1),j=a.ref(!1),U=a.ref(!1),I=a.ref(!1),V=a.ref(!1),K=a.ref([]),F=a.ref([]),P=a.ref([]),Y=a.ref([]),z=a.ref([]),J=a.computed(()=>`${k}${o}`),$=a.computed(()=>`${k}${l}`),Q=a.computed(()=>`${k}${u}`),ae=a.computed(()=>`${k}${c}`),W=a.computed(()=>`${k}${d}`),H=a.computed(()=>`${k}${f}`),ie=a.computed(()=>`${k}${p}`),X=a.computed(()=>`${k}${h}`),Z=a.computed(()=>({country:x,region:b,district:S,locality:C,street:m,house:D,building:g,apartment:M})),fe=async()=>{if(e){N.value=!0;try{K.value=await e()}finally{N.value=!1}}},le=async ge=>{if(t){j.value=!0;try{F.value=await t(ge)}finally{j.value=!1}}},ye=async ge=>{if(i){U.value=!0;try{P.value=await i(ge)}finally{U.value=!1}}},we=async ge=>{if(r){I.value=!0;try{Y.value=await r(ge)}finally{I.value=!1}}},xe=async ge=>{if(s){V.value=!0;try{z.value=await s(ge)}finally{V.value=!1}}},Fe=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[J.value]:ge};R.value=O;return}const A={...R.value,[J.value]:ge,[$.value]:null,[Q.value]:null,[ae.value]:null,[W.value]:null,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A,F.value=[],P.value=[],Y.value=[],z.value=[]},_e=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[$.value]:ge};R.value=O;return}const A={...R.value,[$.value]:ge,[Q.value]:null,[ae.value]:null,[W.value]:null,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A,P.value=[],Y.value=[],z.value=[]},Ne=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[Q.value]:ge};R.value=O;return}const A={...R.value,[Q.value]:ge,[ae.value]:null,[W.value]:null,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A},ce=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[ae.value]:ge};R.value=O;return}const A={...R.value,[ae.value]:ge,[W.value]:null,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A,z.value=[]},q=async ge=>{T.value||(Fe(ge),ge&&await le(ge))},ne=async ge=>{T.value||(_e(ge),ge&&(await ye(ge),await we(ge)))},me=async ge=>{if(!T.value){if(Ne(ge),!ge){const B=R.value[$.value];B&&await ne(B);return}await we(ge)}},de=async ge=>{T.value||(ce(ge),ge&&await xe(ge))},ke=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[W.value]:ge};R.value=O;return}const A={...R.value,[W.value]:ge,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A},Me=ge=>{const B=ge.target,A={...R.value,[H.value]:B.value};R.value=A},oe=ge=>{const B=ge.target,A={...R.value,[ie.value]:B.value};R.value=A},Se=ge=>{const B=ge.target,A={...R.value,[X.value]:B.value};R.value=A},Le=async(ge,B)=>{Object.assign(R.value,ge)},et=async(ge,B)=>{T.value=!0;const A=ge[J.value],O=ge[$.value],_=ge[Q.value],G=ge[ae.value];ge[W.value];try{e&&await fe(),t&&(O||A||B)&&await le(A||B),i&&O&&await ye(O),r&&_?await we(_):r&&O&&await we(O),s&&G&&await xe(G),Object.assign(R.value,ge)}catch(re){console.error("❌ Error during auto-fill (skip reset mode):",re)}finally{a.nextTick(()=>{T.value=!1})}},je=a.computed(()=>{const ge=R.value[J.value];return ge&&K.value.find(A=>String(A.id)===String(ge))?.label||""}),Rt=a.computed(()=>{const ge=R.value[$.value];return ge&&F.value.find(A=>String(A.id)===String(ge))?.label||""}),At=a.computed(()=>{const ge=R.value[Q.value];return ge&&P.value.find(B=>String(B.id)===String(ge))?.label||""}),Ge=a.computed(()=>{const ge=R.value[ae.value];return ge&&Y.value.find(B=>String(B.id)===String(ge))?.label||""}),ee=a.computed(()=>{const ge=R.value[W.value];return ge&&z.value.find(A=>String(A.id)===String(ge))?.label||""}),se=a.computed(()=>{const ge=R.value[H.value];return ge?`${D} ${ge}`:""}),Pe=a.computed(()=>{const ge=R.value[ie.value];return ge?`${g} ${ge}`:""}),ze=a.computed(()=>{const ge=R.value[X.value];return ge?`${M} ${ge}`:""}),Oe=a.computed(()=>[je.value,Rt.value,At.value,Ge.value,ee.value,se.value,Pe.value,ze.value].filter(Boolean).join(", ")),Re=a.computed(()=>{const ge=R.value[ae.value];return Array.isArray(ge)?ge.length>1:!1}),ct=a.computed(()=>E?!1:v);return{modelValue:R,isLoading:L,isCountryLoading:N,isRegionLoading:j,isDistrictLoading:U,isLocalityLoading:I,isStreetLoading:V,countryOptions:K,regionOptions:F,districtOptions:P,localityOptions:Y,streetOptions:z,finalCountryKey:J,finalRegionKey:$,finalDistrictKey:Q,finalLocalityKey:ae,finalStreetKey:W,finalHouseKey:H,finalBuildingKey:ie,finalApartmentKey:X,labels:Z,selectedCountryLabel:je,selectedRegionLabel:Rt,selectedDistrictLabel:At,selectedLocalityLabel:Ge,selectedStreetLabel:ee,selectedHouseLabel:se,selectedBuildingLabel:Pe,selectedApartmentLabel:ze,fullAddress:Oe,isMultiLocalitiesSelected:Re,shouldShowHouseFields:ct,loadCountryOptions:fe,loadRegionOptions:le,loadDistrictOptions:ye,loadLocalityOptions:we,loadStreetOptions:xe,onCountrySelect:q,onRegionSelect:ne,onDistrictSelect:me,onLocalitySelect:de,onStreetSelect:ke,onHouseInput:Me,onBuildingInput:oe,onApartmentInput:Se,resetFieldsByCountry:Fe,resetFieldsByRegion:_e,resetFieldsByDistrict:Ne,resetFieldsByLocality:ce,autoFillForm:Le,autoFillFormSkipReset:et}}const jy={class:"address-form"},Wy={class:"row"},Uy={class:"form-label"},Gy={class:"form-label"},Yy={class:"form-label"},Qy={class:"form-label"},Ky={class:"form-label"},Jy={class:"form-label"},qy=["value","disabled"],$y={class:"form-label"},Zy=["value","disabled"],Xy={class:"form-label"},ew=["value","disabled"],tw={key:0,class:"mt-3"},iw={class:"alert alert-info"},nw=Ie(a.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadCountries:{},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},countryKey:{default:"country_id"},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"},countryLabel:{default:"Страна"},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","countryChange","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadCountries:i.loadCountries,loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,countryKey:i.countryKey,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,countryLabel:i.countryLabel,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:o,isCountryLoading:l,isRegionLoading:u,isDistrictLoading:c,isLocalityLoading:d,isStreetLoading:f,countryOptions:p,regionOptions:h,districtOptions:x,localityOptions:b,streetOptions:S,finalCountryKey:C,finalRegionKey:m,finalDistrictKey:D,finalLocalityKey:g,finalStreetKey:M,finalHouseKey:y,finalBuildingKey:k,finalApartmentKey:w,labels:E,selectedCountryLabel:v,selectedRegionLabel:T,selectedDistrictLabel:R,selectedLocalityLabel:L,selectedStreetLabel:N,selectedHouseLabel:j,selectedBuildingLabel:U,selectedApartmentLabel:I,fullAddress:V,isMultiLocalitiesSelected:K,shouldShowHouseFields:F,loadCountryOptions:P,loadRegionOptions:Y,onCountrySelect:z,onRegionSelect:J,onDistrictSelect:$,onLocalitySelect:Q,onStreetSelect:ae,onHouseInput:W,onBuildingInput:H,onApartmentInput:ie,autoFillForm:X,autoFillFormSkipReset:Z}=zy(s);let fe=!1,le=!1,ye=!1;const we=(oe,Se)=>{if(oe===Se)return!0;if(!oe||!Se||typeof oe!="object"||typeof Se!="object")return!1;const Le=Object.keys(oe),et=Object.keys(Se);if(Le.length!==et.length)return!1;for(const je of Le)if(oe[je]!==Se[je])return!1;return!0};a.watch(()=>i.modelValue,async oe=>{if(fe||le||ye||we(o.value,oe))return;if(oe&&(oe[C.value]||oe[m.value]||oe[D.value]||oe[g.value]||oe[M.value])){if(!le){le=!0;try{await Z(oe,i.countryId)}catch(Le){console.error("❌ Error during auto-fill:",Le)}finally{le=!1}}}else o.value={...oe}},{immediate:!0,deep:!0}),a.watch(o,oe=>{ye||le||we(i.modelValue,oe)||(fe=!0,ye=!0,r("update:modelValue",{...oe}),r("change",{...oe}),a.nextTick(()=>{fe=!1,ye=!1}))},{deep:!0});let xe=!1;a.watch(()=>i.countryId,async(oe,Se)=>{if(!xe&&!le&&oe!=null&&i.loadRegions){if(oe!==Se){const Le={...o.value,[m.value]:null,[D.value]:null,[g.value]:null,[M.value]:null,[y.value]:null,[k.value]:null,[w.value]:null};o.value=Le}try{xe=!0,await Y(oe)}catch(Le){console.error("❌ AddressForm: Error loading regions",Le)}finally{xe=!1}}},{immediate:!0});const Fe=async oe=>{await z(oe),r("countryChange",oe)},_e=async oe=>{await J(oe),r("regionChange",oe)},Ne=async oe=>{await $(oe),r("districtChange",oe)},ce=async oe=>{await Q(oe),r("localityChange",oe)},q=oe=>{ae(oe),r("streetChange",oe)},ne=oe=>{W(oe)},me=oe=>{H(oe)},de=oe=>{ie(oe)},ke=a.computed(()=>{if(!i.multiLocalities)return!1;const oe=o.value[M.value];return!Array.isArray(oe)||oe?.length<2});function Me(){return[v.value,T.value,R.value,L.value,N.value,j.value,U.value,I.value].filter(Boolean).join(", ")}return a.watch(()=>j.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>U.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>I.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>N.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>L.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>R.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>T.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>v.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.onMounted(async()=>{i.loadCountries&&await P()}),e({loadRegionOptions:Y,loadCountryOptions:P,resetForm:()=>{o.value={},p.value=[],h.value=[],x.value=[],b.value=[],S.value=[],r("update:modelValue",{}),i.loadCountries&&P()},getFullAddress:()=>V.value,getValue:()=>Me(),autoFillForm:async oe=>{le=!0;try{await X(oe)}finally{le=!1}},autoFillFormSkipReset:async oe=>{le=!0;try{await Z(oe,i.countryId)}finally{le=!1}}}),(oe,Se)=>(a.openBlock(),a.createElementBlock("div",jy,[a.createElementVNode("div",Wy,[oe.loadCountries?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Uy,a.toDisplayString(a.unref(E).country),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(C)],options:a.unref(p),disabled:oe.disabledFields?.country||a.unref(l),"onUpdate:modelValue":Fe,allowClear:oe.allowClear?.country,isLoading:a.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Gy,a.toDisplayString(a.unref(E).region),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(m)],options:a.unref(h),disabled:oe.disabledFields?.region||a.unref(u),"onUpdate:modelValue":_e,allowClear:oe.allowClear?.region,isLoading:a.unref(u)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Yy,a.toDisplayString(a.unref(E).district),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(D)],disabled:oe.disabledFields?.district||a.unref(c),options:a.unref(x),"onUpdate:modelValue":Ne,allowClear:oe.allowClear?.district,isLoading:a.unref(c)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Qy,a.toDisplayString(a.unref(E).locality),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(g)],disabled:oe.disabledFields?.locality||a.unref(d),"onUpdate:modelValue":ce,options:a.unref(b),name:a.unref(g),showAddButton:ke.value,isLoading:a.unref(d),multiple:oe.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),a.unref(K)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Ky,a.toDisplayString(a.unref(E).street),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(M)],disabled:oe.disabledFields?.street||a.unref(f),options:a.unref(S),"onUpdate:modelValue":q,allowClear:oe.allowClear?.street,isLoading:a.unref(f),multiple:oe.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Jy,a.toDisplayString(a.unref(E).house),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(y)]||"",disabled:oe.disabledFields?.house,onInput:ne},null,40,qy)],2)):a.createCommentVNode("",!0),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",$y,a.toDisplayString(a.unref(E).building),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(k)]||"",disabled:oe.disabledFields?.building,onInput:me},null,40,Zy)],2)):a.createCommentVNode("",!0),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Xy,a.toDisplayString(a.unref(E).apartment),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(w)]||"",disabled:oe.disabledFields?.apartment,onInput:de},null,40,ew)],2)):a.createCommentVNode("",!0)],64))]),oe.showFullAddress&&a.unref(V)?(a.openBlock(),a.createElementBlock("div",tw,[a.createElementVNode("div",iw,[Se[0]||(Se[0]=a.createElementVNode("strong",null,"Полный адрес:",-1)),a.createTextVNode(" "+a.toDisplayString(a.unref(V)),1)])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-dfe07190"]]),rw={class:"age-from-to-form"},sw={class:"form-group"},aw={key:0,class:"form-label mb-2"},ow={class:"row align-items-center mb-2"},lw={key:0,class:"col-auto"},uw={class:"form-label mb-0"},cw={class:"col"},dw={class:"col"},hw={class:"row align-items-center mb-2"},fw={key:0,class:"col-auto"},pw={class:"form-label mb-0"},mw={class:"col"},gw={class:"col"},bw=Ie(a.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:null},placeholderTo:{default:null},timeTypePlaceholder:{default:void 0},timeTypeOptions:{default:void 0},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}],r=n,s=t,o={age_from:null,age_to:null,time_type_from:null,time_type_to:null},l=a.ref({...o}),u=a.computed(()=>r.timeTypeOptions!==void 0&&r.timeTypeOptions!==null?r.timeTypeOptions:i),c=a.computed(()=>r.placeholderFrom??null),d=a.computed(()=>r.placeholderTo??null),f=a.computed(()=>{if(r.timeTypePlaceholder===null||r.timeTypePlaceholder===void 0){console.log("[AgeFromAgeTo] timeTypePlaceholder is null/undefined, placeholder disabled");return}return console.log("[AgeFromAgeTo] timeTypePlaceholder:",r.timeTypePlaceholder),r.timeTypePlaceholder}),p=a.computed(()=>{const m=l.value.age_from;if(!m)return null;const D=l.value.time_type_from,g=u.value.find(({id:M})=>Number(M)===Number(D))?.label;return g?`${m} ${g}`:null}),h=a.computed(()=>{const m=l.value.age_to;if(!m)return null;const D=l.value.time_type_to,g=u.value.find(({id:M})=>Number(M)===Number(D))?.label;return g?`${m} ${g}`:null}),x=()=>{l.value={...o}},b=()=>{r.onFilterUpdate&&(r.onFilterUpdate(r.nameFrom,p.value),r.onFilterUpdate(r.nameTo,h.value))},S=m=>{if(!m.age_from&&!m.age_to&&!m.time_type_from&&!m.time_type_to){s("update:modelValue",null),s("change",{...o}),b();return}const g=[];m.age_from&&m.time_type_from&&g.push(`age_from[time_type]=${m.time_type_from}&age_from[value]=${m.age_from}`),m.age_to&&m.time_type_to&&g.push(`age_to[time_type]=${m.time_type_to}&age_to[value]=${m.age_to}`);const M=g.length>0?g.join("&")+"&":"";s("update:modelValue",M||null),s("change",{...m}),b()},C=m=>{if(m)try{const D=new URLSearchParams(m),g=D.get("age_from[value]"),M=D.get("age_from[time_type]"),y=D.get("age_to[value]"),k=D.get("age_to[time_type]");l.value={age_from:g?Number(g):null,age_to:y?Number(y):null,time_type_from:M?Number(M):null,time_type_to:k?Number(k):null}}catch(D){console.warn("Error parsing query string:",D)}};return a.watch(()=>r.modelValue,(m,D)=>{m!==D&&(m===null?x():C(m))},{immediate:!0}),a.watch(()=>l.value,m=>{S(m)},{deep:!0}),a.onMounted(()=>{r.modelValue&&C(r.modelValue)}),e({reset:x,getFormData:()=>({age_from:l.value.age_from?Number(l.value.age_from):null,age_to:l.value.age_to?Number(l.value.age_to):null,time_type_from:l.value.time_type_from?Number(l.value.time_type_from):null,time_type_to:l.value.time_type_to?Number(l.value.time_type_to):null}),getFilterStrings:()=>({from:p.value,to:h.value})}),(m,D)=>(a.openBlock(),a.createElementBlock("div",rw,[a.createElementVNode("div",sw,[m.title?(a.openBlock(),a.createElementBlock("label",aw,a.toDisplayString(m.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",ow,[c.value?(a.openBlock(),a.createElementBlock("div",lw,[a.createElementVNode("label",uw,a.toDisplayString(c.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",cw,[a.createVNode(lr,{modelValue:l.value.age_from,"onUpdate:modelValue":D[0]||(D[0]=g=>l.value.age_from=g),name:m.nameFrom,maskOptions:{regex:"^[0-9]*$"},disabled:m.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",dw,[a.createVNode(Vt,{modelValue:l.value.time_type_from,"onUpdate:modelValue":D[1]||(D[1]=g=>l.value.time_type_from=g),name:`${m.nameFrom}_type`,multiple:!1,options:u.value,allowClear:!1,disabled:m.disabled,placeholder:f.value},null,8,["modelValue","name","options","disabled","placeholder"])])]),a.createElementVNode("div",hw,[d.value?(a.openBlock(),a.createElementBlock("div",fw,[a.createElementVNode("label",pw,a.toDisplayString(d.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",mw,[a.createVNode(lr,{modelValue:l.value.age_to,"onUpdate:modelValue":D[2]||(D[2]=g=>l.value.age_to=g),name:m.nameTo,maskOptions:{regex:"^[0-9]*$"},disabled:m.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",gw,[a.createVNode(Vt,{modelValue:l.value.time_type_to,"onUpdate:modelValue":D[3]||(D[3]=g=>l.value.time_type_to=g),name:`${m.nameTo}_type`,multiple:!1,options:u.value,allowClear:!1,disabled:m.disabled,placeholder:f.value},null,8,["modelValue","name","options","disabled","placeholder"])])])])]))}}),[["__scopeId","data-v-37fca95f"]]),vw={key:0,class:"r3ui-modal-wrapper"},yw={class:"modal-header pb-4 border-bottom-0"},ww={key:0,class:"modal-title"},Cw={key:0,class:"modal-body pt-0"},Aw={class:"modal-body-content"},Ew={key:1,class:"modal-footer row justify-content-start"},kw={class:"modal-footer-content"},jc=a.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!0},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=a.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},o=x=>{x.key==="Escape"&&s()},l=a.computed(()=>t.modelValue||t.modalVisibility);let u=0,c=!1;const d=()=>{if(u>0){document.body.style.overflow="hidden";return}document.body.style.overflow=""},f=()=>{c||(window.addEventListener("keydown",o),c=!0)},p=()=>{c&&(window.removeEventListener("keydown",o),c=!1)},h=(x,b)=>{if(x&&!b){u+=1,u===1&&f(),d();return}!x&&b&&(u=Math.max(0,u-1),u===0&&p(),d())};return a.watch(l,h,{immediate:!0}),a.onUnmounted(()=>{l.value&&(u=Math.max(0,u-1)),u===0&&p(),d()}),(x,b)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(a.openBlock(),a.createElementBlock("div",vw,[a.createElementVNode("div",{class:"overlay",onClick:s}),a.createElementVNode("div",{class:a.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"}])},[a.createElementVNode("div",{class:"modal-content p-4",style:a.normalizeStyle(n.style)},[a.createElementVNode("div",yw,[n.title?(a.openBlock(),a.createElementBlock("h4",ww,a.toDisplayString(n.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),a.unref(r)["modal-body"]||a.unref(r).body?(a.openBlock(),a.createElementBlock("div",Cw,[a.createElementVNode("div",Aw,[a.renderSlot(x.$slots,"modal-body"),a.renderSlot(x.$slots,"body")])])):a.createCommentVNode("",!0),a.unref(r)["modal-footer"]||a.unref(r).footer?(a.openBlock(),a.createElementBlock("div",Ew,[a.createElementVNode("div",kw,[a.renderSlot(x.$slots,"modal-footer"),a.renderSlot(x.$slots,"footer")])])):a.createCommentVNode("",!0)],4)],2)])):a.createCommentVNode("",!0)]))}}),Sw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVcg8fRXbzl8hF9wirpVItFWAUVgUOoRvCkqATxgr1V0wUGufeKjUaRbQKiV+5Ss7fsFUp2NWkjDn+FbK7+JWIWuYhIThTsCZwEAnzF0r3hn5ZOFFcJFRfNVlo/OECqREe8NoaediLq5WiHTuVwi7ErlDLIjDkkLEkMPVYcqBMnZjh5+GTH9whVnklajoe+qVcuLIqXhz9Avlp3kICPwNGYEHgoFrWII3TwoqwRqprlOzFT8kldR8rRYYfkamuACP4LfBCtSyFSa9lVVgjJPSCxe1l1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p0V+Ym6q4YFZJxueIM0KTGsbXQ0yF+NxwkNueFZjyQTMEthPjFeNBXTe54qSDfzuT5cGfsIG3FPkWfnJBHiPwVp2KaW/Uu5RGwJNlL19dzjnx09lWHaQ2kk8VBx49lht+HamGeLOJZOw4nLKmAUQ0BOv2okXk02R6ZApXbOKFacLMR77tQ3qkZOe0F3jd0wgrp8iz8ZUbL0geuAA6dTyMvNTEtkFHCqMuexRGYqIO5ZMGne12H7Fe3YfqX7Nu8kRDNcdEp09JgvFBVYKDLwUR2SE+uB+QztyYZgBFjEwz2XzfZDF4gIzveh4qBEg8Ky9aiOC1v9/JHz7hx8Hr791iKsOAe2UhGC8vW/SlSmf/DdUpA3Ej1JFEXHPkIVYLTBA+CdERu/h075x5qycW/HPYOHJ0+HAuLHJEQWpgl2haa+1/PTLejk3ztuIzHiadIa+GsHqLpplOkUutOyQIggZbHF7mtPH5jcXN+f/eVnrY3HCbQB6LMxz3yabsFtg4KU447IK5sy4aMtpQl9DWIDFnA5TRKtxgsAqs4m5nlYLIkSeGZexeW5ppq2rYF0QFlaLLnk2OQAnCQy8FHkwkxN9ANOqEcNc1bjhxapLQCDqln+HCj7eEfpuHM9YSxVFojH85BCcJrCKjyInJrydfQhiD81z1Tx0X1p1yYS0Gl4n9eENL1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",Tw={class:"row mb-3 flex-column mx-0"},Dw={class:"col-auto mb-3"},Ow={class:"image-container",style:{width:"90px",height:"90px"}},Lw=["src","alt"],Bw=["src"],Fw=["src"],_w=["src"],Pw=["src"],Nw={class:"col"},Iw={class:"confirmation-content"},Hw={key:0,class:"mb-3"},Vw={key:1,class:"text-muted"},zw={key:0,class:"row"},jw={class:"col-auto"},Ww=["disabled"],Uw={class:"col"},Gw=["disabled"],Yw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Qw=Ie(a.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"}},o=()=>{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)=>(a.openBlock(),a.createBlock(jc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":a.withCtx(()=>[a.createElementVNode("div",Tw,[a.createElementVNode("div",Dw,[a.createElementVNode("div",Ow,[d.imageSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,Lw)):d.mode==="success"?(a.openBlock(),a.createElementBlock("img",{key:1,class:"w-100",src:a.unref(Mw),alt:"Успех",onError:c},null,40,Bw)):d.mode==="warning"?(a.openBlock(),a.createElementBlock("img",{key:2,class:"w-100",src:a.unref(Rw),alt:"Предупреждение",onError:c},null,40,Fw)):d.mode==="error"?(a.openBlock(),a.createElementBlock("img",{key:3,class:"w-100",src:a.unref(xw),alt:"Ошибка",onError:c},null,40,_w)):(a.openBlock(),a.createElementBlock("img",{key:4,class:"w-100",src:a.unref(Sw),alt:"Подтверждение",onError:c},null,40,Pw))])]),a.createElementVNode("div",Nw,[a.createElementVNode("div",Iw,[d.message?(a.openBlock(),a.createElementBlock("h5",Hw,a.toDisplayString(d.message),1)):a.createCommentVNode("",!0),d.description?(a.openBlock(),a.createElementBlock("p",Vw,a.toDisplayString(d.description),1)):a.createCommentVNode("",!0)])])]),a.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":a.withCtx(()=>[a.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(a.openBlock(),a.createElementBlock("div",zw,[a.createElementVNode("div",jw,[d.mode==="confirmation"?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},a.toDisplayString(d.cancelText),9,Ww)):a.createCommentVNode("",!0)]),a.createElementVNode("div",Uw,[a.createElementVNode("button",{class:a.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(a.openBlock(),a.createElementBlock("span",Yw)):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o()),1)],10,Gw)])])):a.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),Kw={key:0,class:"filter-modal-wrapper"},Jw={class:"filter-modal-dialog"},qw={class:"filter-modal-content"},$w={class:"filter-modal-header"},Zw={key:0,class:"filter-modal-title"},Xw={class:"filter-modal-body"},eC={class:"filter-modal-footer"},tC=Ie(a.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=o=>{o.key==="Escape"&&r()};return a.watch(()=>t.modalVisibility,o=>{o?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),a.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(o,l)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[o.modalVisibility?(a.openBlock(),a.createElementBlock("div",Kw,[a.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),a.createElementVNode("div",Jw,[a.createElementVNode("div",qw,[a.createElementVNode("div",$w,[o.title?(a.openBlock(),a.createElementBlock("h4",Zw,a.toDisplayString(o.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),a.createElementVNode("div",Xw,[a.renderSlot(o.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",eC,[a.renderSlot(o.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),iC={key:0,class:"px-0"},nC={class:"modal-dialog modal-dialog-centered modal-xl"},rC={class:"modal-content py-2 px-4"},sC={class:"modal-header mb-3"},aC={class:"modal-title"},oC={class:"modal-body row"},lC={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Wc=Ie(a.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(a.openBlock(),a.createElementBlock("div",iC,[a.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),a.createElementVNode("div",nC,[a.createElementVNode("div",rC,[a.createElementVNode("div",sC,[a.createElementVNode("h3",aC,a.toDisplayString(t.title),1),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),a.createElementVNode("div",oC,[a.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",lC,[a.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),uC={class:"row mb-4 mx-0","data-test":"PageTitle"},cC={class:"col-12"},dC={class:"row align-items-center"},hC={class:"col-auto"},fC={class:"col d-flex justify-content-end"},pC=Ie(a.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",uC,[a.createElementVNode("div",cC,[a.createElementVNode("div",dC,[a.createElementVNode("div",hC,[a.createElementVNode("h2",{class:a.normalizeClass(["mb-0",e.titleClass]),style:a.normalizeStyle(e.titleStyle)},a.toDisplayString(e.title),7),e.subtitle?(a.openBlock(),a.createElementBlock("p",{key:0,class:a.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:a.normalizeStyle(e.subtitleStyle)},a.toDisplayString(e.subtitle),7)):a.createCommentVNode("",!0)]),a.createElementVNode("div",fC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),mC={class:"card-body"},gC={class:"card-text"},bC=Ie({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["card",n.bodyClass])},[a.createElementVNode("div",mC,[a.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),a.createElementVNode("p",gC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),vC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},yC=a.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("footer",vC,a.toDisplayString(e.copyrightText)+" "+a.toDisplayString(a.unref(Ae)().year()),1))}}),wC={class:"custom-dropdown"},CC={style:{"border-bottom":"2px solid #000"}},AC={class:"dropdown-list-wrapper"},EC={key:0,class:"custom-dropdown-menu"},kC=["onMousedown"],_o=Ie({__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=a.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{if(typeof l!="function"){i();return}l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},o=a.computed(()=>e.type==="profile");return(l,u)=>(a.openBlock(),a.createElementBlock("div",wC,[o.value?(a.openBlock(),a.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]=a.createElementVNode("div",{class:"circl"},null,-1)),a.createTextVNode(" "+a.toDisplayString(n.title),1)],32)):(a.openBlock(),a.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[a.createElementVNode("span",CC,a.toDisplayString(n.title),1),u[1]||(u[1]=a.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),a.createElementVNode("div",AC,[t.value?(a.openBlock(),a.createElementBlock("ul",EC,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.links,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:d},[c.hidden?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onMousedown:a.withModifiers(f=>r(c?.action),["prevent"])},a.toDisplayString(c?.title),43,kC))]))),128))])):a.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-2e8e004b"]]),SC="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/IExyNLH0A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1ud81xnKdSCBjtQKNivAl4hkTsscHMMemdmVdt277r+/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",xC=["src","alt"],Uc=Ie(a.defineComponent({__name:"Logo",props:{src:{default:SC},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=a.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=a.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=a.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=a.computed(()=>"r3ui-logo-container"),o=a.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["r3ui-logo-container",s.value])},[a.createElementVNode("img",{src:t.value,alt:l.alt,class:a.normalizeClass(i.value),style:a.normalizeStyle(r.value)},null,14,xC),l.brandText&&l.brandText.trim()&&l.showText?(a.openBlock(),a.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:a.normalizeStyle(o.value)},a.toDisplayString(l.brandText),5)):a.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),RC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},MC={class:"row align-items-center"},TC={class:"col-auto pe-0"},DC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},OC={class:"row"},LC={class:"col-auto d-flex align-items-center"},BC={key:1,class:"text-muted"},FC={class:"col-auto"},_C=Ie(a.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=a.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,o)=>(a.openBlock(),a.createElementBlock("div",RC,[a.createElementVNode("div",{class:a.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[a.createElementVNode("a",{href:"/",onClick:o[0]||(o[0]=a.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[a.createElementVNode("div",MC,[a.createElementVNode("div",TC,[a.renderSlot(s.$slots,"logo",{},()=>[a.createVNode(Uc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),a.createElementVNode("div",DC,a.toDisplayString(t.brandText),1)])]),a.createElementVNode("div",OC,[a.createElementVNode("div",LC,[t.isAuthenticated?(a.openBlock(),a.createBlock(_o,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):a.createCommentVNode("",!0),t.isAuthenticated?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",BC,a.toDisplayString(t.loginText),1))]),a.createElementVNode("div",FC,[a.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-9b51d3e7"]]),PC={class:"col-12 divider divider__wrapper","data-test":"Divider"},Po={__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)=>(a.openBlock(),a.createElementBlock("div",PC,[a.createElementVNode("div",{class:a.normalizeClass(e.className),style:a.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},NC=n=>{const e=a.inject("sidebarContentVisibility"),t=a.inject("toggleSidebar"),i=a.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=a.computed(()=>n.value),o=()=>{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 a.provide("expandAccordion",r),a.provide("expandedAccordion",i),a.watch(n,()=>{o()},{deep:!0}),a.watch(()=>e?.value,()=>{o()},{deep:!0}),a.onMounted(()=>{o()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},IC={key:0},HC=["href","target","rel"],VC=["innerHTML"],zC={key:1},jC=["id"],WC=["innerHTML"],UC=["id"],GC={class:"accordion-body"},Gc=Ie(a.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=a.inject("expandAccordion"),r=a.inject("expandedAccordion"),s=o=>{o.isExternal&&o.href?o.openInNewWindow!==!1?window.open(o.href,"_blank","noopener,noreferrer"):window.location.href=o.href:t("navigate",o.href)};return(o,l)=>{const u=a.resolveComponent("SidebarLink",!0);return a.openBlock(),a.createElementBlock("div",null,[n.sidebarLink.childrens?.length?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",IC,[a.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"_blank":void 0,rel:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=a.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.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"}},[a.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:a.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,VC),a.createElementVNode("span",null,a.toDisplayString(n.sidebarLink.label),1)],2)):a.createCommentVNode("",!0)],8,HC)])),n.sidebarLink.childrens?.length?(a.openBlock(),a.createElementBlock("div",zC,[n.sidebarLink.isVisible?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[a.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:a.unref(r)&&a.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>a.unref(i)&&a.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[a.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:a.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,WC),a.createTextVNode(" "+a.toDisplayString(n.sidebarLink.label),1)],2)],8,jC),a.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:a.normalizeClass(["accordion-collapse collapse",{show:a.unref(r)&&a.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[a.createElementVNode("div",GC,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.sidebarLink.childrens,c=>(a.openBlock(),a.createElementBlock("li",{key:c.uniqueKey},[a.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,UC)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-0a6fd930"]]),YC={key:0},QC={key:0},KC=["title"],JC=["innerHTML"],qC={key:1},$C={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},ZC={class:"hidden-div"},XC={key:1},eA=["href","target","rel"],tA=["title"],iA=["innerHTML"],nA={key:0,class:"ms-2"},rA={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},sA={key:0,class:"ms-2"},Yc=Ie(a.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=a.inject("expandAccordion"),r=a.inject("expandedAccordion"),s=o=>{o.isExternal&&o.href?o.openInNewWindow!==!1?window.open(o.href,"_blank","noopener,noreferrer"):window.location.href=o.href:t("navigate",o.href)};return(o,l)=>{const u=a.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(a.openBlock(),a.createElementBlock("div",YC,[n.link.childrens?.length?(a.openBlock(),a.createElementBlock("div",QC,[a.createElementVNode("button",{title:n.link.label,class:a.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=>a.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(a.openBlock(),a.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,JC)):(a.openBlock(),a.createElementBlock("span",qC,a.toDisplayString(n.link.label),1))],10,KC),a.unref(r)&&a.unref(r)[n.link.level]===n.link.uniqueKey?(a.openBlock(),a.createElementBlock("div",$C,[a.createElementVNode("div",ZC,[a.createElementVNode("h5",null,a.toDisplayString(n.link.label),1),l[3]||(l[3]=a.createElementVNode("hr",{size:"1"},null,-1)),a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.link.childrens,c=>(a.openBlock(),a.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[a.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",XC,[a.createElementVNode("a",{href:n.link.href,target:n.link.isExternal&&n.link.openInNewWindow!==!1?"_blank":void 0,rel:n.link.isExternal&&n.link.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=a.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(a.openBlock(),a.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"}},[a.createElementVNode("span",{innerHTML:n.link.icon},null,8,iA),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",nA,"↗")):a.createCommentVNode("",!0)],8,tA)):(a.openBlock(),a.createElementBlock("button",rA,[a.createElementVNode("span",null,a.toDisplayString(n.link.label),1),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",sA,"↗")):a.createCommentVNode("",!0)]))],8,eA)]))])):a.createCommentVNode("",!0)}}}),[["__scopeId","data-v-6d9f8db2"]]),aA={key:0},oA={class:"accordion accordion-flush",id:"accordionMenu"},lA={key:1},uA={class:"row"},cA={class:"col-12"},dA={class:"sidebar-footer p-3"},Qc=a.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=a.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:o}=NC(a.computed(()=>t.links));return(l,u)=>(a.openBlock(),a.createElementBlock("div",{id:"sidebarContent",class:a.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(a.openBlock(),a.createElementBlock("div",aA,[a.createElementVNode("div",oA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Gc,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",lA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Yc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),a.createElementVNode("div",uA,[a.createElementVNode("div",cA,[a.createVNode(Po)])]),a.createElementVNode("div",dA,[a.renderSlot(l.$slots,"footer")])],2))}}),hA=n=>{const e=a.ref(!0),t=a.ref(null),i=a.ref(null),r=a.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},o=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():o()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():o()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;if(d>0&&f>0){const p=window.innerWidth<768;i.value=p?d:d-f-20}},50)};return a.provide("sidebarContentVisibility",e),a.provide("toggleSidebar",l),a.watch(r,()=>{c()},{deep:!0}),a.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),a.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},fA={class:"container-fluid p-0"},pA={class:"py-4",style:{"min-height":"90vh"}},mA=a.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:o,sidebarContentVisibility:l}=hA(a.computed(()=>t.isAuthenticated));return(u,c)=>(a.openBlock(),a.createElementBlock("div",fA,[a.createElementVNode("div",{class:a.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(a.openBlock(),a.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:a.normalizeStyle(`background: #efefef; transition: .2s; width:${a.unref(o)}px;`)},[a.createVNode(Qc,{links:t.sidebarLinks,"is-collapsed":!a.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):a.createCommentVNode("",!0),a.createElementVNode("div",{id:"content-div",style:a.normalizeStyle(`transition: .2s; width:${a.unref(r)}px;`)},[a.createElementVNode("div",pA,[a.renderSlot(u.$slots,"breadcrumbs"),a.renderSlot(u.$slots,"default")])],4)],2)]))}}),gA={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},bA={class:"col"},vA={"aria-label":"breadcrumb"},yA={class:"breadcrumb row"},wA=["aria-current"],CA=["href","onClick"],AA={key:1,class:"text-nowrap"},EA=Ie(a.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(a.openBlock(),a.createElementBlock("div",gA,[a.createElementVNode("div",bA,[a.createElementVNode("nav",vA,[a.createElementVNode("ol",yA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.crumbs,(o,l)=>(a.openBlock(),a.createElementBlock("li",{key:l,class:a.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:o.isActive}]),"aria-current":o.isActive?"page":void 0},[o.isActive?(a.openBlock(),a.createElementBlock("span",AA,a.toDisplayString(o.text),1)):(a.openBlock(),a.createElementBlock("a",{key:0,href:o.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:a.withModifiers(()=>i("navigate",o.href),["prevent"])},a.toDisplayString(o.text),9,CA))],10,wA))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),kA=a.defineComponent({__name:"LanguageSelector",props:{modelValue:{},options:{},width:{},allowClear:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.computed({get:()=>t.modelValue,set:s=>i("update:modelValue",s)});return(s,o)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({minWidth:s.width||"150px"})},[a.createVNode(Vt,{class:"w-100",modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=l=>r.value=l),options:s.options,"allow-clear":s.allowClear??!1},null,8,["modelValue","options","allow-clear"])],4))}}),SA={key:0,class:"card-header"},xA={class:"card-title mb-0"},RA={class:"card-body"},MA={class:"row"},TA={class:"row align-items-center"},DA={class:"col-auto label pe-0"},OA={class:"col-auto"},LA={key:0,class:"mt-3"},BA=Ie(a.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=a.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)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["card",t.value])},[i.title?(a.openBlock(),a.createElementBlock("div",SA,[a.createElementVNode("h5",xA,a.toDisplayString(i.title),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",RA,[a.createElementVNode("div",MA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.fields,(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:"col-12 mb-2",key:o},[a.createElementVNode("div",TA,[a.createElementVNode("div",DA,a.toDisplayString(s.label)+":",1),a.createElementVNode("div",OA,[a.createElementVNode("span",{class:a.normalizeClass(["value",s.valueClass]),style:a.normalizeStyle(s.valueStyle)},a.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(a.openBlock(),a.createElementBlock("div",LA,[a.renderSlot(i.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),FA={class:"placeholder-glow"},_A={class:"page-card"},PA={class:"row hide-to-print card-header mx-0 w-100"},NA={class:"col"},IA={class:"row flex-nowrap align-items-center"},HA={class:"col-auto"},VA={key:0,class:"col-auto"},zA={class:"row",style:{padding:"20px"}},jA={class:"d-flex align-items-start"},WA={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},UA=["onClick"],GA={class:"tab-content",id:"v-pills-tabContent"},YA={key:0,class:"title"},QA={key:1},KA={key:0},JA={key:0},qA=["title"],$A={key:2},ZA={class:"row"},XA={class:"col-12"},eE=Ie(a.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"},isLoading:{type:Boolean,default:!1}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=a.ref(0),s=a.useSlots(),o=d=>{i("click",d)},l=a.computed(()=>!!s.header),u=a.computed(()=>!!s.footer),c=d=>{r.value=d,i("active-tab",t.tabs[d])};return a.onMounted(()=>{}),(d,f)=>(a.openBlock(),a.createElementBlock("div",null,[a.withDirectives(a.createElementVNode("p",FA,[...f[0]||(f[0]=[a.createElementVNode("span",{class:"placeholder col-12 mb-1",style:{"min-height":"300px","border-radius":"4px"}},null,-1)])],512),[[a.vShow,d.isLoading]]),a.withDirectives(a.createElementVNode("div",_A,[a.createElementVNode("div",PA,[a.createElementVNode("div",NA,[a.createElementVNode("div",IA,[a.createElementVNode("div",HA,[l.value?a.renderSlot(d.$slots,"header",{key:0},void 0,!0):a.createCommentVNode("",!0)])])]),d.actionLinks.length>0?(a.openBlock(),a.createElementBlock("div",VA,[a.createVNode(_o,{title:d.actionsTitle,links:d.actionLinks,onClick:o},null,8,["title","links"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",zA,[a.createElementVNode("div",jA,[a.createElementVNode("div",WA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(p,h)=>a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:h,class:a.normalizeClass(["nav-link me-5",[h===r.value?"active":""]]),onClick:x=>c(h)},a.toDisplayString(p.navLink),11,UA)),[[a.vShow,p.navLink]])),128))]),a.createElementVNode("div",GA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(p,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:a.normalizeClass(["tab-pane fade row",[h===r.value?"show active d-flex":""]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.contents,(x,b)=>(a.openBlock(),a.createElementBlock("div",{key:b,class:a.normalizeClass(`col-${d.col} mb-3`)},[x.subtitle?(a.openBlock(),a.createElementBlock("div",YA,a.toDisplayString(x.subtitle)+": ",1)):a.createCommentVNode("",!0),!x.type||x.type==="text"?(a.openBlock(),a.createElementBlock("div",QA,[typeof x.text=="string"?(a.openBlock(),a.createElementBlock("div",KA,a.toDisplayString(x.text),1)):x.text?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(x.text,(S,C)=>(a.openBlock(),a.createElementBlock("div",{key:C},[typeof S=="string"?(a.openBlock(),a.createElementBlock("div",JA,a.toDisplayString(S),1)):a.createCommentVNode("",!0),typeof S=="object"?(a.openBlock(),a.createElementBlock("div",{key:1,title:S?.description||""},a.toDisplayString(S.name),9,qA)):a.createCommentVNode("",!0)]))),128)):a.createCommentVNode("",!0)])):x.type==="custom"&&x.slotName?(a.openBlock(),a.createElementBlock("div",$A,[a.renderSlot(d.$slots,x.slotName,{content:x},void 0,!0)])):a.createCommentVNode("",!0)],2))),128))],2))),128))])]),u.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(Po,{class:"mt-3"}),a.createElementVNode("div",ZA,[a.createElementVNode("div",XA,[a.renderSlot(d.$slots,"footer",{},void 0,!0)])])],64)):a.createCommentVNode("",!0)])],512),[[a.vShow,!d.isLoading]])]))}}),[["__scopeId","data-v-57cc294f"]]),tE={key:0,class:"row w-100 parent"},iE={class:"col-12 wrapper w-100"},nE=["innerHTML"],Kc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=a.ref(e.message);a.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(a.openBlock(),a.createElementBlock("div",tE,[a.createElementVNode("div",iE,[a.createElementVNode("div",{class:a.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,nE),a.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):a.createCommentVNode("",!0)}},rE={key:0,class:"row","data-test":"ErrorMessageComponent"},sE={class:"col-12",id:"alert"},aE={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},oE=["innerHTML"],lE=Ie(a.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=a.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=a.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(a.openBlock(),a.createElementBlock("div",rE,[a.createElementVNode("div",sE,[a.createElementVNode("div",{class:a.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(a.openBlock(),a.createElementBlock("i",aE)):a.createCommentVNode("",!0),r.asHtml?(a.openBlock(),a.createElementBlock("div",{key:1,innerHTML:i.value},null,8,oE)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(i.value),1)],64))],2)])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),uE={class:"accordion-header",style:{background:"transparent"}},cE=["aria-expanded","aria-controls"],dE={key:0},hE=["id"],fE={class:"accordion-body px-0"},pE=Ie(a.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=a.useSlots(),s=a.ref(Math.random().toString(36).substr(2,9)),o=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return a.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[a.createElementVNode("div",{class:a.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[a.createElementVNode("h2",uE,[a.createElementVNode("button",{onClick:l,class:a.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:a.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},a.toDisplayString(u.title),15,cE)]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[o("accordion-body")?(a.openBlock(),a.createElementBlock("div",dE,[a.withDirectives(a.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[a.createElementVNode("div",fE,[a.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,hE),[[a.vShow,!u.isCollapsed]])])):a.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),mE={class:"accordion-header",style:{background:"transparent"}},gE=["onClick"],bE={class:"d-flex align-items-center w-100"},vE={class:"d-flex align-items-center flex-grow-1"},yE=["value","id","onChange"],wE={class:"form-check-label ps-2 text-body flex-grow-1"},CE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},AE={class:"col d-flex flex-wrap px-4"},EE={class:"form-check"},kE=["value","id"],SE=["for"],xE=Ie(a.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=a.ref([]),o=a.ref([]),l=a.ref(null),u=a.ref([]),c=(x,b)=>{const S=x.target;if(S.tagName==="INPUT"||S.closest(".form-check-input"))return!1;if(S.tagName==="SPAN"||S.closest(".form-check-label"))return l.value!==Number(b)?(l.value=Number(b),!0):(l.value=null,!0);if(l.value!==Number(b))return l.value=Number(b),!0;l.value=null},d=x=>{const b=i.kindGroups.find(C=>C.id===x);if(!b)return;if(s.value.includes(String(x))){const C=b.kinds.map(D=>String(D.id)),m=[...o.value];C.forEach(D=>{m.includes(D)||m.push(D)}),o.value=m}else{const C=b.kinds.map(m=>String(m.id));o.value=o.value.filter(m=>!C.includes(String(m)))}},f=()=>{a.nextTick(()=>{p()})},p=()=>{const x=[];i.kindGroups.forEach((C,m)=>{const D=u.value?.[m];if(!D)return;const g=C.kinds.map(y=>String(y.id)),M=o.value.filter(y=>g.includes(String(y)));M.length===0?(D.indeterminate=!1,D.checked=!1):M.length===g.length?(D.indeterminate=!1,D.checked=!0,x.push(String(C.id))):(D.indeterminate=!0,D.checked=!1)});const b=s.value.map(String).sort(),S=x.map(String).sort();JSON.stringify(b)!==JSON.stringify(S)&&(s.value=x)};a.watch(()=>o.value,x=>{r("emitSelectedKinds",x)},{deep:!0}),a.watch(()=>s.value,x=>{r("emitSelectedKindGroups",x)},{deep:!0}),a.onMounted(()=>{i.defaultSelectedKinds.length>0&&(o.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),a.nextTick(()=>{p()})});const h=a.computed(()=>c);return e({toggleAccordion:c}),(x,b)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.kindGroups,(S,C)=>(a.openBlock(),a.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:S.id},[x.kindGroups[C].kinds.length>0?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",mE,[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(C)}]),type:"button",style:{background:"transparent"},onClick:m=>h.value(m,C)},[a.createElementVNode("div",bE,[a.createElementVNode("div",vE,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${S.id}`,id:`${x.checkboxName}_${C}`,name:"kind_group","onUpdate:modelValue":b[0]||(b[0]=m=>s.value=m),onClick:b[1]||(b[1]=a.withModifiers(()=>{},["stop"])),onChange:m=>d(S.id)},null,40,yE),[[a.vModelCheckbox,s.value]]),a.createElementVNode("span",wE,a.toDisplayString(S.name),1)]),a.createElementVNode("i",{class:a.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(C)}])},null,2)])],10,gE)]),a.withDirectives(a.createElementVNode("div",CE,[a.createElementVNode("div",AE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.kindGroups[C].kinds,(m,D)=>(a.openBlock(),a.createElementBlock("div",{class:"col-6 mb-2",key:D},[a.createElementVNode("div",EE,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${m.id}`,id:`${x.checkboxName}_${m.id}`,name:"kinds","onUpdate:modelValue":b[2]||(b[2]=g=>o.value=g),onChange:f},null,40,kE),[[a.vModelCheckbox,o.value]]),a.createElementVNode("label",{class:"form-check-label",for:`${x.checkboxName}_${m.id}`},[a.createElementVNode("small",null,a.toDisplayString(m.name),1)],8,SE)])]))),128))])],512),[[a.vShow,l.value===Number(C)]])],64)):a.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class dt{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 Ze{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,o;for(let l=0;l<s&&(i=i[r[l]],o=i,!!i);l++);return o}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var o in e){let l=e[o],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[o]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[o]=this.deepClone(l,c,i)))}return t}}let RE=class Td extends dt{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=Ze.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Ze.elOffset(e),r,s,o;switch(this.container!==document.body&&(r=Ze.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,o=i.top-1;break;case"bottom":s=i.left,o=i.top+e.offsetHeight;break;case"left":s=i.left,o=i.top-1;break;case"top":s=i.left,o=i.top;break;case"center":s=i.left+e.offsetWidth/2,o=i.top+e.offsetHeight/2;break}return{x:s,y:o,offset:i}}show(e,t){var i,r,s,o,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),o=l.offset,i=l.x,r=l.y):typeof e=="number"?(o={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,o,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 o=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,o?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 Td(this.table,e,this),this.childPopup}};class Ve extends dt{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 RE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var ME={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class gr extends Ve{static moduleName="accessor";static accessors=ME;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)),o;e.definition[s]&&(o=this.lookupAccessor(e.definition[s]),o&&(t=!0,i[s]={accessor:o,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":gr.accessors[e]?t=gr.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=Ze.deepClone(e.data||{});return this.table.columnManager.traverse(function(o){var l,u,c,d;o.modules.accessor&&(u=o.modules.accessor[i]||o.modules.accessor.accessor||!1,u&&(l=o.getFieldValue(s),l!="undefined"&&(d=o.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,o.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var TE={method:"GET"};function No(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(No(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(No(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function DE(n){var e=No(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 OE(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 o in i.headers)e.headers||(e.headers={}),typeof e.headers[o]>"u"&&(e.headers[o]=i.headers[o]);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 Io(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Io(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Io(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var LE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Io(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class Ji extends Ve{static moduleName="ajax";static defaultConfig=TE;static defaultURLGenerator=Jc;static defaultLoaderPromise=OE;static contentTypeFormatters=LE;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=Ji.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Ji.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Ji.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 o;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),o=this.generateConfig(i),this.sendRequest(this.url,t,o)):s}setDefaultConfig(e={}){this.config=Object.assign({},Ji.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 BE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},FE={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
|
|
31
|
+
`}}function F(){t.calendarContainer.classList.add("hasWeeks");var B=Je("div","flatpickr-weekwrapper");B.appendChild(Je("span","flatpickr-weekday",t.l10n.weekAbbreviation));var A=Je("div","flatpickr-weeks");return B.appendChild(A),{weekWrapper:B,weekNumbers:A}}function P(B,A){A===void 0&&(A=!0);var O=A?B:B-t.currentMonth;O<0&&t._hidePrevMonthArrow===!0||O>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=O,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Ge("onYearChange"),L()),R(),Ge("onMonthChange"),ze())}function Y(B,A){if(B===void 0&&(B=!0),A===void 0&&(A=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,A===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var O=Fo(t.config),_=O.hours,G=O.minutes,re=O.seconds;h(_,G,re)}t.redraw(),B&&Ge("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")),Ge("onClose")}function J(){t.config!==void 0&&Ge("onDestroy");for(var B=t._handlers.length;B--;)t._handlers[B].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 A=t.calendarContainer.parentNode;if(A.lastChild&&A.removeChild(A.lastChild),A.parentNode){for(;A.firstChild;)A.parentNode.insertBefore(A.firstChild,A);A.parentNode.removeChild(A)}}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(O){try{delete t[O]}catch{}})}function $(B){return t.calendarContainer.contains(B)}function Q(B){if(t.isOpen&&!t.config.inline){var A=St(B),O=$(A),_=A===t.input||A===t.altInput||t.element.contains(A)||B.path&&B.path.indexOf&&(~B.path.indexOf(t.input)||~B.path.indexOf(t.altInput)),G=!_&&!O&&!$(B.relatedTarget),re=!t.config.ignoredFocusElements.some(function(ue){return ue.contains(A)});G&&re&&(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 ae(B){if(!(!B||t.config.minDate&&B<t.config.minDate.getFullYear()||t.config.maxDate&&B>t.config.maxDate.getFullYear())){var A=B,O=t.currentYear!==A;t.currentYear=A||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)),O&&(t.redraw(),Ge("onYearChange"),L())}}function W(B,A){var O;A===void 0&&(A=!0);var _=t.parseDate(B,void 0,A);if(t.config.minDate&&_&&xt(_,t.config.minDate,A!==void 0?A:!t.minDateHasTime)<0||t.config.maxDate&&_&&xt(_,t.config.maxDate,A!==void 0?A:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(_===void 0)return!1;for(var G=!!t.config.enable,re=(O=t.config.enable)!==null&&O!==void 0?O:t.config.disable,ue=0,he=void 0;ue<re.length;ue++){if(he=re[ue],typeof he=="function"&&he(_))return G;if(he instanceof Date&&_!==void 0&&he.getTime()===_.getTime())return G;if(typeof he=="string"){var pe=t.parseDate(he,void 0,!0);return pe&&pe.getTime()===_.getTime()?G:!G}else if(typeof he=="object"&&_!==void 0&&he.from&&he.to&&_.getTime()>=he.from.getTime()&&_.getTime()<=he.to.getTime())return G}return!G}function H(B){return t.daysContainer!==void 0?B.className.indexOf("hidden")===-1&&B.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(B):!1}function ie(B){var A=B.target===t._input,O=t._input.value.trimEnd()!==Oe();A&&O&&!(B.relatedTarget&&$(B.relatedTarget))&&t.setDate(t._input.value,!0,B.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function X(B){var A=St(B),O=t.config.wrap?n.contains(A):A===t._input,_=t.config.allowInput,G=t.isOpen&&(!_||!O),re=t.config.inline&&O&&!_;if(B.keyCode===13&&O){if(_)return t.setDate(t._input.value,!0,A===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),A.blur();t.open()}else if($(A)||G||re){var ue=!!t.timeContainer&&t.timeContainer.contains(A);switch(B.keyCode){case 13:ue?(B.preventDefault(),u(),ne()):me(B);break;case 27:B.preventDefault(),ne();break;case 8:case 46:O&&!t.config.allowInput&&(B.preventDefault(),t.clear());break;case 37:case 39:if(!ue&&!O){B.preventDefault();var he=s();if(t.daysContainer!==void 0&&(_===!1||he&&H(he))){var pe=B.keyCode===39?1:-1;B.ctrlKey?(B.stopPropagation(),P(pe),v(w(1),0)):v(void 0,pe)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:B.preventDefault();var be=B.keyCode===40?1:-1;t.daysContainer&&A.$i!==void 0||A===t.input||A===t.altInput?B.ctrlKey?(B.stopPropagation(),ae(t.currentYear-be),v(w(1),0)):ue||v(void 0,be*7):A===t.currentYearElement?ae(t.currentYear-be):t.config.enableTime&&(!ue&&t.hourElement&&t.hourElement.focus(),u(B),t._debouncedChange());break;case 9:if(ue){var Ce=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(Be){return Be}),De=Ce.indexOf(A);if(De!==-1){var We=Ce[De+(B.shiftKey?-1:1)];B.preventDefault(),(We||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(A)&&B.shiftKey&&(B.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&A===t.amPM)switch(B.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],f(),Re();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],f(),Re();break}(O||$(A))&&Ge("onKeyDown",B)}function Z(B,A){if(A===void 0&&(A="flatpickr-day"),!(t.selectedDates.length!==1||B&&(!B.classList.contains(A)||B.classList.contains("flatpickr-disabled")))){for(var O=B?B.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),_=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),G=Math.min(O,t.selectedDates[0].getTime()),re=Math.max(O,t.selectedDates[0].getTime()),ue=!1,he=0,pe=0,be=G;be<re;be+=Ry.DAY)W(new Date(be),!0)||(ue=ue||be>G&&be<re,be<_&&(!he||be>he)?he=be:be>_&&(!pe||be<pe)&&(pe=be));var Ce=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+A));Ce.forEach(function(De){var We=De.dateObj,Be=We.getTime(),qe=he>0&&Be<he||pe>0&&Be>pe;if(qe){De.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(Xe){De.classList.remove(Xe)});return}else if(ue&&!qe)return;["startRange","inRange","endRange","notAllowed"].forEach(function(Xe){De.classList.remove(Xe)}),B!==void 0&&(B.classList.add(O<=t.selectedDates[0].getTime()?"startRange":"endRange"),_<O&&Be===_?De.classList.add("startRange"):_>O&&Be===_&&De.classList.add("endRange"),Be>=he&&(pe===0||Be<=pe)&&Sy(Be,_,O)&&De.classList.add("inRange"))})}}function fe(){t.isOpen&&!t.config.static&&!t.config.inline&&_e()}function le(B,A){if(A===void 0&&(A=t._positionElement),t.isMobile===!0){if(B){B.preventDefault();var O=St(B);O&&O.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),Ge("onOpen");return}else if(t._input.disabled||t.config.inline)return;var _=t.isOpen;t.isOpen=!0,_||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),Ge("onOpen"),_e(A)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(B===void 0||!t.timeContainer.contains(B.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ye(B){return function(A){var O=t.config["_"+B+"Date"]=t.parseDate(A,t.config.dateFormat),_=t.config["_"+(B==="min"?"max":"min")+"Date"];O!==void 0&&(t[B==="min"?"minDateHasTime":"maxDateHasTime"]=O.getHours()>0||O.getMinutes()>0||O.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(G){return W(G)}),!t.selectedDates.length&&B==="min"&&p(O),Re()),t.daysContainer&&(q(),O!==void 0?t.currentYearElement[B]=O.getFullYear().toString():t.currentYearElement.removeAttribute(B),t.currentYearElement.disabled=!!_&&O!==void 0&&_.getFullYear()===O.getFullYear())}}function we(){var B=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],A=ft(ft({},JSON.parse(JSON.stringify(n.dataset||{}))),e),O={};t.config.parseDate=A.parseDate,t.config.formatDate=A.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(Ce){t.config._enable=Se(Ce)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(Ce){t.config._disable=Se(Ce)}});var _=A.mode==="time";if(!A.dateFormat&&(A.enableTime||_)){var G=ot.defaultConfig.dateFormat||Qi.dateFormat;O.dateFormat=A.noCalendar||_?"H:i"+(A.enableSeconds?":S":""):G+" H:i"+(A.enableSeconds?":S":"")}if(A.altInput&&(A.enableTime||_)&&!A.altFormat){var re=ot.defaultConfig.altFormat||Qi.altFormat;O.altFormat=A.noCalendar||_?"h:i"+(A.enableSeconds?":S K":" K"):re+(" h:i"+(A.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ye("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ye("max")});var ue=function(Ce){return function(De){t.config[Ce==="min"?"_minTime":"_maxTime"]=t.parseDate(De,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:ue("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:ue("max")}),A.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,O,A);for(var he=0;he<B.length;he++)t.config[B[he]]=t.config[B[he]]===!0||t.config[B[he]]==="true";To.filter(function(Ce){return t.config[Ce]!==void 0}).forEach(function(Ce){t.config[Ce]=Do(t.config[Ce]||[]).map(o)}),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 he=0;he<t.config.plugins.length;he++){var pe=t.config.plugins[he](t)||{};for(var be in pe)To.indexOf(be)>-1?t.config[be]=Do(pe[be]).map(o).concat(t.config[be]):typeof A[be]>"u"&&(t.config[be]=pe[be])}A.altInputClass||(t.config.altInputClass=xe().className+" "+t.config.altInputClass),Ge("onParseConfig")}function xe(){return t.config.wrap?n.querySelector("[data-input]"):n}function Fe(){typeof t.config.locale!="object"&&typeof ot.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=ft(ft({},ot.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?ot.l10ns[t.config.locale]:void 0),Ri.D="("+t.l10n.weekdays.shorthand.join("|")+")",Ri.l="("+t.l10n.weekdays.longhand.join("|")+")",Ri.M="("+t.l10n.months.shorthand.join("|")+")",Ri.F="("+t.l10n.months.longhand.join("|")+")",Ri.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var B=ft(ft({},e),JSON.parse(JSON.stringify(n.dataset||{})));B.time_24hr===void 0&&ot.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=Hc(t),t.parseDate=Lo({config:t.config,l10n:t.l10n})}function _e(B){if(typeof t.config.position=="function")return void t.config.position(t,B);if(t.calendarContainer!==void 0){Ge("onPreCalendarPosition");var A=B||t._positionElement,O=Array.prototype.reduce.call(t.calendarContainer.children,(function(Di,wx){return Di+wx.offsetHeight}),0),_=t.calendarContainer.offsetWidth,G=t.config.position.split(" "),re=G[0],ue=G.length>1?G[1]:null,he=A.getBoundingClientRect(),pe=window.innerHeight-he.bottom,be=re==="above"||re!=="below"&&pe<O&&he.top>O,Ce=window.pageYOffset+he.top+(be?-O-2:A.offsetHeight+2);if(gt(t.calendarContainer,"arrowTop",!be),gt(t.calendarContainer,"arrowBottom",be),!t.config.inline){var De=window.pageXOffset+he.left,We=!1,Be=!1;ue==="center"?(De-=(_-he.width)/2,We=!0):ue==="right"&&(De-=_-he.width,Be=!0),gt(t.calendarContainer,"arrowLeft",!We&&!Be),gt(t.calendarContainer,"arrowCenter",We),gt(t.calendarContainer,"arrowRight",Be);var qe=window.document.body.offsetWidth-(window.pageXOffset+he.right),Xe=De+_>window.document.body.offsetWidth,at=qe+_>window.document.body.offsetWidth;if(gt(t.calendarContainer,"rightMost",Xe),!t.config.static)if(t.calendarContainer.style.top=Ce+"px",!Xe)t.calendarContainer.style.left=De+"px",t.calendarContainer.style.right="auto";else if(!at)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=qe+"px";else{var nt=Ne();if(nt===void 0)return;var yi=window.document.body.offsetWidth,Ti=Math.max(0,yi/2-_/2),ci=".flatpickr-calendar.centerMost:before",jt=".flatpickr-calendar.centerMost:after",$t=nt.cssRules.length,Xi="{left:"+he.left+"px;right:auto;}";gt(t.calendarContainer,"rightMost",!1),gt(t.calendarContainer,"centerMost",!0),nt.insertRule(ci+","+jt+Xi,$t),t.calendarContainer.style.left=Ti+"px",t.calendarContainer.style.right="auto"}}}}function Ne(){for(var B=null,A=0;A<document.styleSheets.length;A++){var O=document.styleSheets[A];if(O.cssRules){try{O.cssRules}catch{continue}B=O;break}}return B??ce()}function ce(){var B=document.createElement("style");return document.head.appendChild(B),B.sheet}function q(){t.config.noCalendar||t.isMobile||(L(),ze(),R())}function ne(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function me(B){B.preventDefault(),B.stopPropagation();var A=function(Ce){return Ce.classList&&Ce.classList.contains("flatpickr-day")&&!Ce.classList.contains("flatpickr-disabled")&&!Ce.classList.contains("notAllowed")},O=Ic(St(B),A);if(O!==void 0){var _=O,G=t.latestSelectedDateObj=new Date(_.dateObj.getTime()),re=(G.getMonth()<t.currentMonth||G.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=_,t.config.mode==="single")t.selectedDates=[G];else if(t.config.mode==="multiple"){var ue=se(G);ue?t.selectedDates.splice(parseInt(ue),1):t.selectedDates.push(G)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=G,t.selectedDates.push(G),xt(G,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(Ce,De){return Ce.getTime()-De.getTime()}));if(f(),re){var he=t.currentYear!==G.getFullYear();t.currentYear=G.getFullYear(),t.currentMonth=G.getMonth(),he&&(Ge("onYearChange"),L()),Ge("onMonthChange")}if(ze(),R(),Re(),!re&&t.config.mode!=="range"&&t.config.showMonths===1?k(_):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 pe=t.config.mode==="single"&&!t.config.enableTime,be=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(pe||be)&&ne()}S()}}var de={locale:[Fe,K],showMonths:[j,l,V],minDate:[m],maxDate:[m],positionElement:[je],clickOpens:[function(){t.config.clickOpens===!0?(b(t._input,"focus",t.open),b(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function ke(B,A){if(B!==null&&typeof B=="object"){Object.assign(t.config,B);for(var O in B)de[O]!==void 0&&de[O].forEach(function(_){return _()})}else t.config[B]=A,de[B]!==void 0?de[B].forEach(function(_){return _()}):To.indexOf(B)>-1&&(t.config[B]=Do(A));t.redraw(),Re(!0)}function Me(B,A){var O=[];if(B instanceof Array)O=B.map(function(_){return t.parseDate(_,A)});else if(B instanceof Date||typeof B=="number")O=[t.parseDate(B,A)];else if(typeof B=="string")switch(t.config.mode){case"single":case"time":O=[t.parseDate(B,A)];break;case"multiple":O=B.split(t.config.conjunction).map(function(_){return t.parseDate(_,A)});break;case"range":O=B.split(t.l10n.rangeSeparator).map(function(_){return t.parseDate(_,A)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(B)));t.selectedDates=t.config.allowInvalidPreload?O:O.filter(function(_){return _ instanceof Date&&W(_,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(_,G){return _.getTime()-G.getTime()})}function oe(B,A,O){if(A===void 0&&(A=!1),O===void 0&&(O=t.config.dateFormat),B!==0&&!B||B instanceof Array&&B.length===0)return t.clear(A);Me(B,O),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),m(void 0,A),p(),t.selectedDates.length===0&&t.clear(!1),Re(A),A&&Ge("onChange")}function Se(B){return B.slice().map(function(A){return typeof A=="string"||typeof A=="number"||A instanceof Date?t.parseDate(A,void 0,!0):A&&typeof A=="object"&&A.from&&A.to?{from:t.parseDate(A.from,void 0),to:t.parseDate(A.to,void 0)}:A}).filter(function(A){return A})}function Le(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var B=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);B&&Me(B,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 et(){if(t.input=xe(),!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=Je(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"),je()}function je(){t._positionElement=t.config.positionElement||t._input}function Rt(){var B=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Je("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=B,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=B==="datetime-local"?"Y-m-d\\TH:i:S":B==="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{}b(t.mobileInput,"change",function(A){t.setDate(St(A).value,!1,t.mobileFormatStr),Ge("onChange"),Ge("onClose")})}function At(B){if(t.isOpen===!0)return t.close();t.open(B)}function Ge(B,A){if(t.config!==void 0){var O=t.config[B];if(O!==void 0&&O.length>0)for(var _=0;O[_]&&_<O.length;_++)O[_](t.selectedDates,t.input.value,t,A);B==="onChange"&&(t.input.dispatchEvent(ee("change")),t.input.dispatchEvent(ee("input")))}}function ee(B){var A=document.createEvent("Event");return A.initEvent(B,!0,!0),A}function se(B){for(var A=0;A<t.selectedDates.length;A++){var O=t.selectedDates[A];if(O instanceof Date&&xt(O,B)===0)return""+A}return!1}function Pe(B){return t.config.mode!=="range"||t.selectedDates.length<2?!1:xt(B,t.selectedDates[0])>=0&&xt(B,t.selectedDates[1])<=0}function ze(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(B,A){var O=new Date(t.currentYear,t.currentMonth,1);O.setMonth(t.currentMonth+A),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[A].textContent=mr(O.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=O.getMonth().toString(),B.value=O.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 Oe(B){var A=B||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(O){return t.formatDate(O,A)}).filter(function(O,_,G){return t.config.mode!=="range"||t.config.enableTime||G.indexOf(O)===_}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function Re(B){B===void 0&&(B=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=Oe(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Oe(t.config.altFormat)),B!==!1&&Ge("onValueUpdate")}function ct(B){var A=St(B),O=t.prevMonthNav.contains(A),_=t.nextMonthNav.contains(A);O||_?P(O?-1:1):t.yearElements.indexOf(A)>=0?A.select():A.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):A.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function ge(B){B.preventDefault();var A=B.type==="keydown",O=St(B),_=O;t.amPM!==void 0&&O===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]);var G=parseFloat(_.getAttribute("min")),re=parseFloat(_.getAttribute("max")),ue=parseFloat(_.getAttribute("step")),he=parseInt(_.value,10),pe=B.delta||(A?B.which===38?1:-1:0),be=he+ue*pe;if(typeof _.value<"u"&&_.value.length===2){var Ce=_===t.hourElement,De=_===t.minuteElement;be<G?(be=re+be+Ft(!Ce)+(Ft(Ce)&&Ft(!t.amPM)),De&&g(void 0,-1,t.hourElement)):be>re&&(be=_===t.hourElement?be-re-Ft(!t.amPM):G,De&&g(void 0,1,t.hourElement)),t.amPM&&Ce&&(ue===1?be+he===23:Math.abs(be-he)>ue)&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]),_.value=Ct(be)}}return r(),t}function Ki(n,e){for(var t=Array.prototype.slice.call(n).filter(function(o){return o 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=Ty(s,e||{}),i.push(s._flatpickr)}catch(o){console.error(o)}}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 Ki(this,n)},HTMLElement.prototype.flatpickr=function(n){return Ki([this],n)});var ot=function(n,e){return typeof n=="string"?Ki(window.document.querySelectorAll(n),e):n instanceof Node?Ki([n],e):Ki(n,e)};ot.defaultConfig={},ot.l10ns={en:ft({},wn),default:ft({},wn)},ot.localize=function(n){ot.l10ns.default=ft(ft({},ot.l10ns.default),n)},ot.setDefaults=function(n){ot.defaultConfig=ft(ft({},ot.defaultConfig),n)},ot.parseDate=Lo({}),ot.formatDate=Hc({}),ot.compareDates=xt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return Ki(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=ot);var An={exports:{}},Dy=An.exports,zc;function Oy(){return zc||(zc=1,(function(n,e){(function(t,i){i(e)})(Dy,(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})}))})(An,An.exports)),An.exports}var Ly=Oy();const By=["value","id","name","disabled","required","placeholder"],Fy=["title"],_y=["title"],Py=Ie(a.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=a.ref(),o=a.ref(null),l=a.ref(!1),u=a.ref(""),c=a.ref([]),d=a.ref(!1),f=a.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),p=k=>{if(!k)return null;if(k instanceof Date&&!isNaN(k.getTime()))return k;const w=typeof k=="string"?k.trim():"";if(w){const E=b(w);if(E){const R=new Date(E);if(!isNaN(R.getTime()))return R}const v=ot.parseDate?.(w,i.dateFormat);if(v&&!isNaN(v.getTime()))return v;const T=new Date(w);if(!isNaN(T.getTime()))return T}return null},h=k=>{const w=k instanceof Date?k:p(k);if(!w)return"";const E=String(w.getDate()).padStart(2,"0"),v=String(w.getMonth()+1).padStart(2,"0"),T=w.getFullYear();return i.format==="MM/DD/YYYY"?`${v}/${E}/${T}`:i.format==="YYYY-MM-DD"?`${T}-${v}-${E}`:`${E}.${v}.${T}`},x=k=>{const w=k instanceof Date?k:p(k);if(!w)return"";const E=String(w.getDate()).padStart(2,"0"),v=String(w.getMonth()+1).padStart(2,"0");return`${w.getFullYear()}-${v}-${E}`},b=k=>{if(!k)return"";const w=k.trim(),E=ot.parseDate?.(w,i.dateFormat);if(E&&!isNaN(E.getTime())){const v=E.getFullYear(),T=String(E.getMonth()+1).padStart(2,"0"),R=String(E.getDate()).padStart(2,"0");return`${v}-${T}-${R}`}if(/^\d{4}-\d{2}-\d{2}/.test(w))return w;if(i.format==="MM/DD/YYYY"){const[v,T,R]=w.split("/");if(v&&T&&R)return`${R}-${v.padStart(2,"0")}-${T.padStart(2,"0")}`}if(i.format==="YYYY-MM-DD")return w;if(i.format==="DD.MM.YYYY"){const[v,T,R]=w.split(".");if(v&&T&&R)return`${R}-${T.padStart(2,"0")}-${v.padStart(2,"0")}`}return w},S=k=>k?Array.isArray(k)?k:[k]:[],C=(k,w)=>{const E=S(k),v=E.map(R=>h(R)).filter(Boolean);if(u.value=v.join(", "),l.value=v.length>0,!w?._input)return;if(!v.length){w.clear?.(),w._input.value="";return}const T=E.map(R=>p(R)).filter(R=>!!R);if(!T.length){w.clear?.(),w._input.value=u.value;return}w.setDate?.(T,!1),w._input.value=u.value,(i.mode==="range"||i.mode==="multiple")&&(c.value=w.selectedDates||T)},m=()=>{if(!s.value)return;const k={locale:i.locale==="ru"?Ly.Russian:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(w,E,v)=>{const T=w.length>0;if(c.value=w,!T)return D({instance:v}),!1;if(i.mode==="range"||i.mode==="multiple"){const R=w.map(j=>x(j)),L=Array.isArray(i.modelValue)?i.modelValue:[];if(L.length===R.length&&L.every((j,U)=>j===R[U]))return!1}else{const R=x(w[0]);if(!(i.modelValue!==R))return!1}if(d.value=!0,i.mode==="range"||i.mode==="multiple"){const R=w.map(L=>h(L));u.value=R.join(", "),l.value=R.length>0}else u.value=E,l.value=E.length>0;a.nextTick(()=>{if(i.mode==="multiple"){const R=w.map(L=>x(L));r("update:modelValue",R)}else if(i.mode==="range"){const R=w.map(L=>x(L));r("update:modelValue",R)}else{const R=x(w[0]);r("update:modelValue",R)}r("change",w.map(R=>R.toISOString()),E,v),a.nextTick(()=>{d.value=!1})})},onOpen:w=>{r("open",w)},onReady:w=>{r("ready",w)},...i.config};i.minDate&&i.minDate&&(k.minDate=i.minDate),i.maxDate&&(k.maxDate=i.maxDate),i.defaultDate&&(k.defaultDate=i.defaultDate),o.value=ot(s.value,k),D({instance:o.value})},D=({instance:k})=>{C(i.modelValue,k)},g=()=>{if(i.disabled||!o.value)return;o.value.clear(),o.value._input.value="";const k=i.mode==="range"||i.mode==="multiple"?[]:"";u.value="",l.value=!1,c.value=[],r("update:modelValue",k),r("change",[],"",o.value),C(k,o.value)},M=k=>{const w=k.target;u.value=w.value},y=()=>{if(i.mode==="range"||i.mode==="multiple"){if(o.value?.isOpen)return;if((o.value?.selectedDates||[]).length===0&&c.value.length>0){const w=c.value.map(T=>x(T)),E=Array.isArray(i.modelValue)?i.modelValue:[];E.length===w.length&&E.every((T,R)=>T===w[R])||r("update:modelValue",w)}return}if(i.mode==="single"&&u.value){const k=b(u.value);k&&r("update:modelValue",k)}};return a.watch(()=>i.modelValue,k=>{d.value||C(k,o.value)},{deep:!0}),a.watch(()=>i.disabled,k=>{o.value?._input&&(o.value._input.disabled=k)}),a.onMounted(()=>{m()}),a.onBeforeUnmount(()=>{o.value&&o.value.destroy()}),e({datapicker:o}),(k,w)=>(a.openBlock(),a.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[a.createElementVNode("div",{class:a.normalizeClass({"not-valid":f.value.length})},[a.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:u.value,id:k.id,name:k.name,disabled:k.disabled,required:k.required,placeholder:k.placeholder,autocomplete:"off","data-input":"",onInput:M,onBlur:y},null,40,By)],2),l.value&&!k.disabled?(a.openBlock(),a.createElementBlock("a",{key:0,class:"remove-button text-dark",onClick:g,style:{position:"absolute",right:"40px",top:"8px","font-size":"16px",cursor:"pointer"},"data-toggle":"",title:k.resetTitle},[...w[0]||(w[0]=[a.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Fy)):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"remove-button text-dark",style:{position:"absolute",right:"10px",top:"4px","font-size":"20px",cursor:"pointer"},"data-toggle":"",title:k.calendarTitle},[...w[1]||(w[1]=[a.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,_y),a.createVNode(ki,{errors:f.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-a8bbc430"]]);function Ny(n={}){const{placeholder:e="Поиск...",searchHint:t="Введите минимум 3 символа",searchTypes:i=[{value:"partial",label:"По частичному совпадению"},{value:"exact",label:"По полному совпадению"}],defaultSearchType:r="partial",minSearchLength:s=3}=n,o=a.ref(""),l=a.ref([]),u=a.ref(!1),c=a.ref(r),d=a.ref(!1),f=a.ref(!1),p=a.computed(()=>o.value&&o.value.length>0&&o.value.length<s?`Введите минимум ${s} символа`:t),h=a.computed(()=>i);return{search:o,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:y=>{o.value=y||"",y&&y.length>=s},onSelect:y=>{},clearSearch:()=>{o.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 Iy=["disabled"],Hy={key:1,class:"bi bi-three-dots-vertical"},Vy=Ie(a.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:o,options:l,isSearchLoading:u,searchType:c,showSettings:d,isLoading:f,enterCharacterMessage:p,filteredSearchTypes:h,onSearch:x,onSelect:b,clearSearch:S,toggleSettings:C,hideSettings:m}=Ny(s),D=a.ref();a.computed(()=>i.options.length>0?i.options:l.value),a.computed(()=>i.isSearchLoading||u.value),a.computed(()=>i.isLoading||f.value);const g=E=>{const v=E||"";x(v),r("search",v,c.value)},M=E=>{b(E),r("select",E)},y=a.computed(()=>i.searchTypeName);a.watch(c,E=>{r("searchTypeChange",E),m()});const k=E=>{const v=E.target;w.value?.contains(v)||m()},w=a.ref();return a.onMounted(()=>{document.addEventListener("click",k)}),a.onUnmounted(()=>{document.removeEventListener("click",k)}),e({clearSearch:S,setOptions:E=>{l.value=E},setLoading:E=>{u.value=E},setGlobalLoading:E=>{f.value=E},focus:()=>{D.value?.$el?.querySelector("input")?.focus()}}),(E,v)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapperRef",ref:w,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(a.openBlock(),a.createBlock(Vt,{ref_key:"selectRef",ref:D,key:a.unref(c),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:a.unref(o),"onUpdate:modelValue":[v[0]||(v[0]=T=>a.isRef(o)?o.value=T:null),M],reduce:T=>T,options:E.options,placeholder:E.placeholder,onSearch:g,onBlur:a.unref(S),onFocus:a.unref(m),isLoading:E.isSearchLoading,hint:a.unref(p)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),a.createElementVNode("button",{class:"btn btn-light px-2",onClick:v[1]||(v[1]=(...T)=>a.unref(C)&&a.unref(C)(...T)),disabled:E.isLoading},[E.isLoading?(a.openBlock(),a.createBlock(Or,{key:0,isSmall:!0})):(a.openBlock(),a.createElementBlock("i",Hy))],8,Iy),a.unref(d)?(a.openBlock(),a.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:v[3]||(v[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(h),T=>(a.openBlock(),a.createElementBlock("li",{key:T.value,class:"setting-item"},[a.createVNode(Pc,{name:y.value,label:T.label,modelValue:a.unref(c),"onUpdate:modelValue":v[2]||(v[2]=R=>a.isRef(c)?c.value=R:null),type:"radio",group:y.value,trueValue:T.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-060eb2dc"]]);function zy(n={}){const{loadCountries:e,loadRegions:t,loadDistricts:i,loadLocalities:r,loadStreets:s,countryKey:o="country_id",regionKey:l="region_id",districtKey:u="district_id",localityKey:c="locality_id",streetKey:d="street_id",houseKey:f="house",buildingKey:p="building",apartmentKey:h="apartment",countryLabel:x="Страна",regionLabel:b="Регион",districtLabel:S="Район",localityLabel:C="Населенный пункт",streetLabel:m="Улица",houseLabel:D="Дом",buildingLabel:g="Корпус",apartmentLabel:M="Квартира",columnWidth:y="12",prefix:k="",multiLocalities:w=!1,multiStreets:E=!1,showHouseFields:v=!0}=n,T=a.ref(!1),R=a.ref({}),L=a.ref(!1),N=a.ref(!1),j=a.ref(!1),U=a.ref(!1),I=a.ref(!1),V=a.ref(!1),K=a.ref([]),F=a.ref([]),P=a.ref([]),Y=a.ref([]),z=a.ref([]),J=a.computed(()=>`${k}${o}`),$=a.computed(()=>`${k}${l}`),Q=a.computed(()=>`${k}${u}`),ae=a.computed(()=>`${k}${c}`),W=a.computed(()=>`${k}${d}`),H=a.computed(()=>`${k}${f}`),ie=a.computed(()=>`${k}${p}`),X=a.computed(()=>`${k}${h}`),Z=a.computed(()=>({country:x,region:b,district:S,locality:C,street:m,house:D,building:g,apartment:M})),fe=async()=>{if(e){N.value=!0;try{K.value=await e()}finally{N.value=!1}}},le=async ge=>{if(t){j.value=!0;try{F.value=await t(ge)}finally{j.value=!1}}},ye=async ge=>{if(i){U.value=!0;try{P.value=await i(ge)}finally{U.value=!1}}},we=async ge=>{if(r){I.value=!0;try{Y.value=await r(ge)}finally{I.value=!1}}},xe=async ge=>{if(s){V.value=!0;try{z.value=await s(ge)}finally{V.value=!1}}},Fe=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[J.value]:ge};R.value=O;return}const A={...R.value,[J.value]:ge,[$.value]:null,[Q.value]:null,[ae.value]:null,[W.value]:null,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A,F.value=[],P.value=[],Y.value=[],z.value=[]},_e=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[$.value]:ge};R.value=O;return}const A={...R.value,[$.value]:ge,[Q.value]:null,[ae.value]:null,[W.value]:null,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A,P.value=[],Y.value=[],z.value=[]},Ne=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[Q.value]:ge};R.value=O;return}const A={...R.value,[Q.value]:ge,[ae.value]:null,[W.value]:null,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A},ce=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[ae.value]:ge};R.value=O;return}const A={...R.value,[ae.value]:ge,[W.value]:null,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A,z.value=[]},q=async ge=>{T.value||(Fe(ge),ge&&await le(ge))},ne=async ge=>{T.value||(_e(ge),ge&&(await ye(ge),await we(ge)))},me=async ge=>{if(!T.value){if(Ne(ge),!ge){const B=R.value[$.value];B&&await ne(B);return}await we(ge)}},de=async ge=>{T.value||(ce(ge),ge&&await xe(ge))},ke=(ge,B=!1)=>{if(T.value)return;if(B){const O={...R.value,[W.value]:ge};R.value=O;return}const A={...R.value,[W.value]:ge,[H.value]:null,[ie.value]:null,[X.value]:null};R.value=A},Me=ge=>{const B=ge.target,A={...R.value,[H.value]:B.value};R.value=A},oe=ge=>{const B=ge.target,A={...R.value,[ie.value]:B.value};R.value=A},Se=ge=>{const B=ge.target,A={...R.value,[X.value]:B.value};R.value=A},Le=async(ge,B)=>{Object.assign(R.value,ge)},et=async(ge,B)=>{T.value=!0;const A=ge[J.value],O=ge[$.value],_=ge[Q.value],G=ge[ae.value];ge[W.value];try{e&&await fe(),t&&(O||A||B)&&await le(A||B),i&&O&&await ye(O),r&&_?await we(_):r&&O&&await we(O),s&&G&&await xe(G),Object.assign(R.value,ge)}catch(re){console.error("❌ Error during auto-fill (skip reset mode):",re)}finally{a.nextTick(()=>{T.value=!1})}},je=a.computed(()=>{const ge=R.value[J.value];return ge&&K.value.find(A=>String(A.id)===String(ge))?.label||""}),Rt=a.computed(()=>{const ge=R.value[$.value];return ge&&F.value.find(A=>String(A.id)===String(ge))?.label||""}),At=a.computed(()=>{const ge=R.value[Q.value];return ge&&P.value.find(B=>String(B.id)===String(ge))?.label||""}),Ge=a.computed(()=>{const ge=R.value[ae.value];return ge&&Y.value.find(B=>String(B.id)===String(ge))?.label||""}),ee=a.computed(()=>{const ge=R.value[W.value];return ge&&z.value.find(A=>String(A.id)===String(ge))?.label||""}),se=a.computed(()=>{const ge=R.value[H.value];return ge?`${D} ${ge}`:""}),Pe=a.computed(()=>{const ge=R.value[ie.value];return ge?`${g} ${ge}`:""}),ze=a.computed(()=>{const ge=R.value[X.value];return ge?`${M} ${ge}`:""}),Oe=a.computed(()=>[je.value,Rt.value,At.value,Ge.value,ee.value,se.value,Pe.value,ze.value].filter(Boolean).join(", ")),Re=a.computed(()=>{const ge=R.value[ae.value];return Array.isArray(ge)?ge.length>1:!1}),ct=a.computed(()=>E?!1:v);return{modelValue:R,isLoading:L,isCountryLoading:N,isRegionLoading:j,isDistrictLoading:U,isLocalityLoading:I,isStreetLoading:V,countryOptions:K,regionOptions:F,districtOptions:P,localityOptions:Y,streetOptions:z,finalCountryKey:J,finalRegionKey:$,finalDistrictKey:Q,finalLocalityKey:ae,finalStreetKey:W,finalHouseKey:H,finalBuildingKey:ie,finalApartmentKey:X,labels:Z,selectedCountryLabel:je,selectedRegionLabel:Rt,selectedDistrictLabel:At,selectedLocalityLabel:Ge,selectedStreetLabel:ee,selectedHouseLabel:se,selectedBuildingLabel:Pe,selectedApartmentLabel:ze,fullAddress:Oe,isMultiLocalitiesSelected:Re,shouldShowHouseFields:ct,loadCountryOptions:fe,loadRegionOptions:le,loadDistrictOptions:ye,loadLocalityOptions:we,loadStreetOptions:xe,onCountrySelect:q,onRegionSelect:ne,onDistrictSelect:me,onLocalitySelect:de,onStreetSelect:ke,onHouseInput:Me,onBuildingInput:oe,onApartmentInput:Se,resetFieldsByCountry:Fe,resetFieldsByRegion:_e,resetFieldsByDistrict:Ne,resetFieldsByLocality:ce,autoFillForm:Le,autoFillFormSkipReset:et}}const jy={class:"address-form"},Wy={class:"row"},Uy={class:"form-label"},Gy={class:"form-label"},Yy={class:"form-label"},Qy={class:"form-label"},Ky={class:"form-label"},Jy={class:"form-label"},qy=["value","disabled"],$y={class:"form-label"},Zy=["value","disabled"],Xy={class:"form-label"},ew=["value","disabled"],tw={key:0,class:"mt-3"},iw={class:"alert alert-info"},nw=Ie(a.defineComponent({__name:"AddressForm",props:{modelValue:{default:()=>({})},loadCountries:{},loadRegions:{},loadDistricts:{},loadLocalities:{},loadStreets:{},countryKey:{default:"country_id"},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"},countryLabel:{default:"Страна"},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","countryChange","regionChange","districtChange","localityChange","streetChange"],setup(n,{expose:e,emit:t}){const i=n,r=t,s={loadCountries:i.loadCountries,loadRegions:i.loadRegions,loadDistricts:i.loadDistricts,loadLocalities:i.loadLocalities,loadStreets:i.loadStreets,countryKey:i.countryKey,regionKey:i.regionKey,districtKey:i.districtKey,localityKey:i.localityKey,streetKey:i.streetKey,houseKey:i.houseKey,buildingKey:i.buildingKey,apartmentKey:i.apartmentKey,countryLabel:i.countryLabel,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:o,isCountryLoading:l,isRegionLoading:u,isDistrictLoading:c,isLocalityLoading:d,isStreetLoading:f,countryOptions:p,regionOptions:h,districtOptions:x,localityOptions:b,streetOptions:S,finalCountryKey:C,finalRegionKey:m,finalDistrictKey:D,finalLocalityKey:g,finalStreetKey:M,finalHouseKey:y,finalBuildingKey:k,finalApartmentKey:w,labels:E,selectedCountryLabel:v,selectedRegionLabel:T,selectedDistrictLabel:R,selectedLocalityLabel:L,selectedStreetLabel:N,selectedHouseLabel:j,selectedBuildingLabel:U,selectedApartmentLabel:I,fullAddress:V,isMultiLocalitiesSelected:K,shouldShowHouseFields:F,loadCountryOptions:P,loadRegionOptions:Y,onCountrySelect:z,onRegionSelect:J,onDistrictSelect:$,onLocalitySelect:Q,onStreetSelect:ae,onHouseInput:W,onBuildingInput:H,onApartmentInput:ie,autoFillForm:X,autoFillFormSkipReset:Z}=zy(s);let fe=!1,le=!1,ye=!1;const we=(oe,Se)=>{if(oe===Se)return!0;if(!oe||!Se||typeof oe!="object"||typeof Se!="object")return!1;const Le=Object.keys(oe),et=Object.keys(Se);if(Le.length!==et.length)return!1;for(const je of Le)if(oe[je]!==Se[je])return!1;return!0};a.watch(()=>i.modelValue,async oe=>{if(fe||le||ye||we(o.value,oe))return;if(oe&&(oe[C.value]||oe[m.value]||oe[D.value]||oe[g.value]||oe[M.value])){if(!le){le=!0;try{await Z(oe,i.countryId)}catch(Le){console.error("❌ Error during auto-fill:",Le)}finally{le=!1}}}else o.value={...oe}},{immediate:!0,deep:!0}),a.watch(o,oe=>{ye||le||we(i.modelValue,oe)||(fe=!0,ye=!0,r("update:modelValue",{...oe}),r("change",{...oe}),a.nextTick(()=>{fe=!1,ye=!1}))},{deep:!0});let xe=!1;a.watch(()=>i.countryId,async(oe,Se)=>{if(!xe&&!le&&oe!=null&&i.loadRegions){if(oe!==Se){const Le={...o.value,[m.value]:null,[D.value]:null,[g.value]:null,[M.value]:null,[y.value]:null,[k.value]:null,[w.value]:null};o.value=Le}try{xe=!0,await Y(oe)}catch(Le){console.error("❌ AddressForm: Error loading regions",Le)}finally{xe=!1}}},{immediate:!0});const Fe=async oe=>{await z(oe),r("countryChange",oe)},_e=async oe=>{await J(oe),r("regionChange",oe)},Ne=async oe=>{await $(oe),r("districtChange",oe)},ce=async oe=>{await Q(oe),r("localityChange",oe)},q=oe=>{ae(oe),r("streetChange",oe)},ne=oe=>{W(oe)},me=oe=>{H(oe)},de=oe=>{ie(oe)},ke=a.computed(()=>{if(!i.multiLocalities)return!1;const oe=o.value[M.value];return!Array.isArray(oe)||oe?.length<2});function Me(){return[v.value,T.value,R.value,L.value,N.value,j.value,U.value,I.value].filter(Boolean).join(", ")}return a.watch(()=>j.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>U.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>I.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>N.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>L.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>R.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>T.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>v.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.onMounted(async()=>{i.loadCountries&&await P()}),e({loadRegionOptions:Y,loadCountryOptions:P,resetForm:()=>{o.value={},p.value=[],h.value=[],x.value=[],b.value=[],S.value=[],r("update:modelValue",{}),i.loadCountries&&P()},getFullAddress:()=>V.value,getValue:()=>Me(),autoFillForm:async oe=>{le=!0;try{await X(oe)}finally{le=!1}},autoFillFormSkipReset:async oe=>{le=!0;try{await Z(oe,i.countryId)}finally{le=!1}}}),(oe,Se)=>(a.openBlock(),a.createElementBlock("div",jy,[a.createElementVNode("div",Wy,[oe.loadCountries?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Uy,a.toDisplayString(a.unref(E).country),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(C)],options:a.unref(p),disabled:oe.disabledFields?.country||a.unref(l),"onUpdate:modelValue":Fe,allowClear:oe.allowClear?.country,isLoading:a.unref(l)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2)):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Gy,a.toDisplayString(a.unref(E).region),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(m)],options:a.unref(h),disabled:oe.disabledFields?.region||a.unref(u),"onUpdate:modelValue":_e,allowClear:oe.allowClear?.region,isLoading:a.unref(u)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Yy,a.toDisplayString(a.unref(E).district),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(D)],disabled:oe.disabledFields?.district||a.unref(c),options:a.unref(x),"onUpdate:modelValue":Ne,allowClear:oe.allowClear?.district,isLoading:a.unref(c)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Qy,a.toDisplayString(a.unref(E).locality),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(g)],disabled:oe.disabledFields?.locality||a.unref(d),"onUpdate:modelValue":ce,options:a.unref(b),name:a.unref(g),showAddButton:ke.value,isLoading:a.unref(d),multiple:oe.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),a.unref(K)?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Ky,a.toDisplayString(a.unref(E).street),1),a.createVNode(Vt,{modelValue:oe.modelValue[a.unref(M)],disabled:oe.disabledFields?.street||a.unref(f),options:a.unref(S),"onUpdate:modelValue":q,allowClear:oe.allowClear?.street,isLoading:a.unref(f),multiple:oe.multiStreets},null,8,["modelValue","disabled","options","allowClear","isLoading","multiple"])],2),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Jy,a.toDisplayString(a.unref(E).house),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(y)]||"",disabled:oe.disabledFields?.house,onInput:ne},null,40,qy)],2)):a.createCommentVNode("",!0),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:1,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",$y,a.toDisplayString(a.unref(E).building),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(k)]||"",disabled:oe.disabledFields?.building,onInput:me},null,40,Zy)],2)):a.createCommentVNode("",!0),a.unref(F)?(a.openBlock(),a.createElementBlock("div",{key:2,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",Xy,a.toDisplayString(a.unref(E).apartment),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(w)]||"",disabled:oe.disabledFields?.apartment,onInput:de},null,40,ew)],2)):a.createCommentVNode("",!0)],64))]),oe.showFullAddress&&a.unref(V)?(a.openBlock(),a.createElementBlock("div",tw,[a.createElementVNode("div",iw,[Se[0]||(Se[0]=a.createElementVNode("strong",null,"Полный адрес:",-1)),a.createTextVNode(" "+a.toDisplayString(a.unref(V)),1)])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-dfe07190"]]),rw={class:"age-from-to-form"},sw={class:"form-group"},aw={key:0,class:"form-label mb-2"},ow={class:"row align-items-center mb-2"},lw={key:0,class:"col-auto"},uw={class:"form-label mb-0"},cw={class:"col"},dw={class:"col"},hw={class:"row align-items-center mb-2"},fw={key:0,class:"col-auto"},pw={class:"form-label mb-0"},mw={class:"col"},gw={class:"col"},bw=Ie(a.defineComponent({__name:"AgeFromAgeTo",props:{modelValue:{default:null},title:{default:""},nameFrom:{default:"age_from"},nameTo:{default:"age_to"},placeholderFrom:{default:null},placeholderTo:{default:null},timeTypePlaceholder:{default:void 0},timeTypeOptions:{default:void 0},disabled:{type:Boolean,default:!1},onFilterUpdate:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(n,{expose:e,emit:t}){const i=[{id:1,label:"Дней",value:"days"},{id:2,label:"Недель",value:"weeks"},{id:3,label:"Месяцев",value:"months"},{id:4,label:"Лет",value:"years"}],r=n,s=t,o={age_from:null,age_to:null,time_type_from:null,time_type_to:null},l=a.ref({...o}),u=a.computed(()=>r.timeTypeOptions!==void 0&&r.timeTypeOptions!==null?r.timeTypeOptions:i),c=a.computed(()=>r.placeholderFrom??null),d=a.computed(()=>r.placeholderTo??null),f=a.computed(()=>{if(r.timeTypePlaceholder===null||r.timeTypePlaceholder===void 0){console.log("[AgeFromAgeTo] timeTypePlaceholder is null/undefined, placeholder disabled");return}return console.log("[AgeFromAgeTo] timeTypePlaceholder:",r.timeTypePlaceholder),r.timeTypePlaceholder}),p=a.computed(()=>{const m=l.value.age_from;if(!m)return null;const D=l.value.time_type_from,g=u.value.find(({id:M})=>Number(M)===Number(D))?.label;return g?`${m} ${g}`:null}),h=a.computed(()=>{const m=l.value.age_to;if(!m)return null;const D=l.value.time_type_to,g=u.value.find(({id:M})=>Number(M)===Number(D))?.label;return g?`${m} ${g}`:null}),x=()=>{l.value={...o}},b=()=>{r.onFilterUpdate&&(r.onFilterUpdate(r.nameFrom,p.value),r.onFilterUpdate(r.nameTo,h.value))},S=m=>{if(!m.age_from&&!m.age_to&&!m.time_type_from&&!m.time_type_to){s("update:modelValue",null),s("change",{...o}),b();return}const g=[];m.age_from&&m.time_type_from&&g.push(`age_from[time_type]=${m.time_type_from}&age_from[value]=${m.age_from}`),m.age_to&&m.time_type_to&&g.push(`age_to[time_type]=${m.time_type_to}&age_to[value]=${m.age_to}`);const M=g.length>0?g.join("&")+"&":"";s("update:modelValue",M||null),s("change",{...m}),b()},C=m=>{if(m)try{const D=new URLSearchParams(m),g=D.get("age_from[value]"),M=D.get("age_from[time_type]"),y=D.get("age_to[value]"),k=D.get("age_to[time_type]");l.value={age_from:g?Number(g):null,age_to:y?Number(y):null,time_type_from:M?Number(M):null,time_type_to:k?Number(k):null}}catch(D){console.warn("Error parsing query string:",D)}};return a.watch(()=>r.modelValue,(m,D)=>{m!==D&&(m===null?x():C(m))},{immediate:!0}),a.watch(()=>l.value,m=>{S(m)},{deep:!0}),a.onMounted(()=>{r.modelValue&&C(r.modelValue)}),e({reset:x,getFormData:()=>({age_from:l.value.age_from?Number(l.value.age_from):null,age_to:l.value.age_to?Number(l.value.age_to):null,time_type_from:l.value.time_type_from?Number(l.value.time_type_from):null,time_type_to:l.value.time_type_to?Number(l.value.time_type_to):null}),getFilterStrings:()=>({from:p.value,to:h.value})}),(m,D)=>(a.openBlock(),a.createElementBlock("div",rw,[a.createElementVNode("div",sw,[m.title?(a.openBlock(),a.createElementBlock("label",aw,a.toDisplayString(m.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",ow,[c.value?(a.openBlock(),a.createElementBlock("div",lw,[a.createElementVNode("label",uw,a.toDisplayString(c.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",cw,[a.createVNode(lr,{modelValue:l.value.age_from,"onUpdate:modelValue":D[0]||(D[0]=g=>l.value.age_from=g),name:m.nameFrom,maskOptions:{regex:"^[0-9]*$"},disabled:m.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",dw,[a.createVNode(Vt,{modelValue:l.value.time_type_from,"onUpdate:modelValue":D[1]||(D[1]=g=>l.value.time_type_from=g),name:`${m.nameFrom}_type`,multiple:!1,options:u.value,allowClear:!1,disabled:m.disabled,placeholder:f.value},null,8,["modelValue","name","options","disabled","placeholder"])])]),a.createElementVNode("div",hw,[d.value?(a.openBlock(),a.createElementBlock("div",fw,[a.createElementVNode("label",pw,a.toDisplayString(d.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",mw,[a.createVNode(lr,{modelValue:l.value.age_to,"onUpdate:modelValue":D[2]||(D[2]=g=>l.value.age_to=g),name:m.nameTo,maskOptions:{regex:"^[0-9]*$"},disabled:m.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",gw,[a.createVNode(Vt,{modelValue:l.value.time_type_to,"onUpdate:modelValue":D[3]||(D[3]=g=>l.value.time_type_to=g),name:`${m.nameTo}_type`,multiple:!1,options:u.value,allowClear:!1,disabled:m.disabled,placeholder:f.value},null,8,["modelValue","name","options","disabled","placeholder"])])])])]))}}),[["__scopeId","data-v-37fca95f"]]),vw={key:0,class:"r3ui-modal-wrapper"},yw={class:"modal-header pb-4 border-bottom-0"},ww={key:0,class:"modal-title"},Cw={key:0,class:"modal-body pt-0"},Aw={class:"modal-body-content"},Ew={key:1,class:"modal-footer row justify-content-start"},kw={class:"modal-footer-content"},jc=a.defineComponent({__name:"DefaultModal",props:{modelValue:{type:Boolean,default:!1},title:{type:String,default:""},scrollable:{type:Boolean,default:!0},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=a.useSlots(),s=()=>{i("update:modelValue",!1),i("emitModalVisibility",!1)},o=x=>{x.key==="Escape"&&s()},l=a.computed(()=>t.modelValue||t.modalVisibility);let u=0,c=!1;const d=()=>{if(u>0){document.body.style.overflow="hidden";return}document.body.style.overflow=""},f=()=>{c||(window.addEventListener("keydown",o),c=!0)},p=()=>{c&&(window.removeEventListener("keydown",o),c=!1)},h=(x,b)=>{if(x&&!b){u+=1,u===1&&f(),d();return}!x&&b&&(u=Math.max(0,u-1),u===0&&p(),d())};return a.watch(l,h,{immediate:!0}),a.onUnmounted(()=>{l.value&&(u=Math.max(0,u-1)),u===0&&p(),d()}),(x,b)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(a.openBlock(),a.createElementBlock("div",vw,[a.createElementVNode("div",{class:"overlay",onClick:s}),a.createElementVNode("div",{class:a.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"}])},[a.createElementVNode("div",{class:"modal-content p-4",style:a.normalizeStyle(n.style)},[a.createElementVNode("div",yw,[n.title?(a.openBlock(),a.createElementBlock("h4",ww,a.toDisplayString(n.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:s})]),a.unref(r)["modal-body"]||a.unref(r).body?(a.openBlock(),a.createElementBlock("div",Cw,[a.createElementVNode("div",Aw,[a.renderSlot(x.$slots,"modal-body"),a.renderSlot(x.$slots,"body")])])):a.createCommentVNode("",!0),a.unref(r)["modal-footer"]||a.unref(r).footer?(a.openBlock(),a.createElementBlock("div",Ew,[a.createElementVNode("div",kw,[a.renderSlot(x.$slots,"modal-footer"),a.renderSlot(x.$slots,"footer")])])):a.createCommentVNode("",!0)],4)],2)])):a.createCommentVNode("",!0)]))}}),Sw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVc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tKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",Tw={class:"row mb-3 flex-column mx-0"},Dw={class:"col-auto mb-3"},Ow={class:"image-container",style:{width:"90px",height:"90px"}},Lw=["src","alt"],Bw=["src"],Fw=["src"],_w=["src"],Pw=["src"],Nw={class:"col"},Iw={class:"confirmation-content"},Hw={key:0,class:"mb-3"},Vw={key:1,class:"text-muted"},zw={key:0,class:"row"},jw={class:"col-auto"},Ww=["disabled"],Uw={class:"col"},Gw=["disabled"],Yw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Qw=Ie(a.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"}},o=()=>{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)=>(a.openBlock(),a.createBlock(jc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":a.withCtx(()=>[a.createElementVNode("div",Tw,[a.createElementVNode("div",Dw,[a.createElementVNode("div",Ow,[d.imageSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,Lw)):d.mode==="success"?(a.openBlock(),a.createElementBlock("img",{key:1,class:"w-100",src:a.unref(Mw),alt:"Успех",onError:c},null,40,Bw)):d.mode==="warning"?(a.openBlock(),a.createElementBlock("img",{key:2,class:"w-100",src:a.unref(Rw),alt:"Предупреждение",onError:c},null,40,Fw)):d.mode==="error"?(a.openBlock(),a.createElementBlock("img",{key:3,class:"w-100",src:a.unref(xw),alt:"Ошибка",onError:c},null,40,_w)):(a.openBlock(),a.createElementBlock("img",{key:4,class:"w-100",src:a.unref(Sw),alt:"Подтверждение",onError:c},null,40,Pw))])]),a.createElementVNode("div",Nw,[a.createElementVNode("div",Iw,[d.message?(a.openBlock(),a.createElementBlock("h5",Hw,a.toDisplayString(d.message),1)):a.createCommentVNode("",!0),d.description?(a.openBlock(),a.createElementBlock("p",Vw,a.toDisplayString(d.description),1)):a.createCommentVNode("",!0)])])]),a.renderSlot(d.$slots,"modal-body",{},void 0,!0)]),"modal-footer":a.withCtx(()=>[a.renderSlot(d.$slots,"modal-footer",{},()=>[d.showButtons?(a.openBlock(),a.createElementBlock("div",zw,[a.createElementVNode("div",jw,[d.mode==="confirmation"?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},a.toDisplayString(d.cancelText),9,Ww)):a.createCommentVNode("",!0)]),a.createElementVNode("div",Uw,[a.createElementVNode("button",{class:a.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(a.openBlock(),a.createElementBlock("span",Yw)):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o()),1)],10,Gw)])])):a.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),Kw={key:0,class:"filter-modal-wrapper"},Jw={class:"filter-modal-dialog"},qw={class:"filter-modal-content"},$w={class:"filter-modal-header"},Zw={key:0,class:"filter-modal-title"},Xw={class:"filter-modal-body"},eC={class:"filter-modal-footer"},tC=Ie(a.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=o=>{o.key==="Escape"&&r()};return a.watch(()=>t.modalVisibility,o=>{o?(document.body.style.overflow="hidden",window.addEventListener("keydown",s)):(document.body.style.overflow="",window.removeEventListener("keydown",s))},{immediate:!0}),a.onUnmounted(()=>{document.body.style.overflow="",window.removeEventListener("keydown",s)}),(o,l)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[o.modalVisibility?(a.openBlock(),a.createElementBlock("div",Kw,[a.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),a.createElementVNode("div",Jw,[a.createElementVNode("div",qw,[a.createElementVNode("div",$w,[o.title?(a.openBlock(),a.createElementBlock("h4",Zw,a.toDisplayString(o.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),a.createElementVNode("div",Xw,[a.renderSlot(o.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",eC,[a.renderSlot(o.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),iC={key:0,class:"px-0"},nC={class:"modal-dialog modal-dialog-centered modal-xl"},rC={class:"modal-content py-2 px-4"},sC={class:"modal-header mb-3"},aC={class:"modal-title"},oC={class:"modal-body row"},lC={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Wc=Ie(a.defineComponent({__name:"EditTableColumnsModalComponent",props:{title:{default:""},modalVisibility:{type:Boolean,default:!1}},emits:["emitModalVisibility"],setup(n,{emit:e}){return(t,i)=>t.modalVisibility?(a.openBlock(),a.createElementBlock("div",iC,[a.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),a.createElementVNode("div",nC,[a.createElementVNode("div",rC,[a.createElementVNode("div",sC,[a.createElementVNode("h3",aC,a.toDisplayString(t.title),1),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:i[1]||(i[1]=r=>t.$emit("emitModalVisibility",!1))})]),a.createElementVNode("div",oC,[a.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",lC,[a.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),uC={class:"row mb-4 mx-0","data-test":"PageTitle"},cC={class:"col-12"},dC={class:"row align-items-center"},hC={class:"col-auto"},fC={class:"col d-flex justify-content-end"},pC=Ie(a.defineComponent({__name:"PageTitle",props:{title:{},subtitle:{default:""},titleClass:{default:""},subtitleClass:{default:""},titleStyle:{default:""},subtitleStyle:{default:""}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",uC,[a.createElementVNode("div",cC,[a.createElementVNode("div",dC,[a.createElementVNode("div",hC,[a.createElementVNode("h2",{class:a.normalizeClass(["mb-0",e.titleClass]),style:a.normalizeStyle(e.titleStyle)},a.toDisplayString(e.title),7),e.subtitle?(a.openBlock(),a.createElementBlock("p",{key:0,class:a.normalizeClass(["text-muted mb-0 mt-1",e.subtitleClass]),style:a.normalizeStyle(e.subtitleStyle)},a.toDisplayString(e.subtitle),7)):a.createCommentVNode("",!0)]),a.createElementVNode("div",fC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),mC={class:"card-body"},gC={class:"card-text"},bC=Ie({__name:"Card",props:{title:{type:String,default:""},bodyClass:{type:String,default:"bg-gray-light"}},setup(n){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["card",n.bodyClass])},[a.createElementVNode("div",mC,[a.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),a.createElementVNode("p",gC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),vC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},yC=a.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("footer",vC,a.toDisplayString(e.copyrightText)+" "+a.toDisplayString(a.unref(Ae)().year()),1))}}),wC={class:"custom-dropdown"},CC={style:{"border-bottom":"2px solid #000"}},AC={class:"dropdown-list-wrapper"},EC={key:0,class:"custom-dropdown-menu"},kC=["onMousedown"],_o=Ie({__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=a.ref(!1),i=l=>{l&&(l.preventDefault(),l.stopPropagation()),t.value=!t.value},r=l=>{if(typeof l!="function"){i();return}l(),i()},s=l=>{l&&(l.preventDefault(),l.stopPropagation()),setTimeout(()=>{t.value=!1},100)},o=a.computed(()=>e.type==="profile");return(l,u)=>(a.openBlock(),a.createElementBlock("div",wC,[o.value?(a.openBlock(),a.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]=a.createElementVNode("div",{class:"circl"},null,-1)),a.createTextVNode(" "+a.toDisplayString(n.title),1)],32)):(a.openBlock(),a.createElementBlock("a",{key:1,href:"#",class:"link-dark",type:"button",onClick:i,onBlur:s},[a.createElementVNode("span",CC,a.toDisplayString(n.title),1),u[1]||(u[1]=a.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-left":"5px"}},null,-1))],32)),a.createElementVNode("div",AC,[t.value?(a.openBlock(),a.createElementBlock("ul",EC,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.links,(c,d)=>(a.openBlock(),a.createElementBlock("li",{key:d},[c.hidden?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["dropdown-item",{disabled:c?.disabled}]),style:{cursor:"pointer"},onMousedown:a.withModifiers(f=>r(c?.action),["prevent"])},a.toDisplayString(c?.title),43,kC))]))),128))])):a.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-2e8e004b"]]),SC="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+/vrr6pkYNKfISTMnsG27KeXmJNdsj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xfGpN5brctF17w+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",xC=["src","alt"],Uc=Ie(a.defineComponent({__name:"Logo",props:{src:{default:SC},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=a.computed(()=>e.src?.startsWith("~/")?e.src.replace("~/","/"):e.src),i=a.computed(()=>{const l="r3ui-logo";return e.className?`${l} ${e.className}`:l}),r=a.computed(()=>({width:typeof e.width=="number"?`${e.width}px`:e.width,height:typeof e.height=="number"?`${e.height}px`:e.height,...e.style})),s=a.computed(()=>"r3ui-logo-container"),o=a.computed(()=>({fontSize:typeof e.textSize=="number"?`${e.textSize}px`:e.textSize,color:e.textColor,fontWeight:e.textWeight}));return(l,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["r3ui-logo-container",s.value])},[a.createElementVNode("img",{src:t.value,alt:l.alt,class:a.normalizeClass(i.value),style:a.normalizeStyle(r.value)},null,14,xC),l.brandText&&l.brandText.trim()&&l.showText?(a.openBlock(),a.createElementBlock("span",{key:0,class:"r3ui-logo-text",style:a.normalizeStyle(o.value)},a.toDisplayString(l.brandText),5)):a.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-57bc5457"]]),RC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},MC={class:"row align-items-center"},TC={class:"col-auto pe-0"},DC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},OC={class:"row"},LC={class:"col-auto d-flex align-items-center"},BC={key:1,class:"text-muted"},FC={class:"col-auto"},_C=Ie(a.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=a.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:s.name.includes("http")?{...s,action:()=>i("navigate",s.name,{external:!0})}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,o)=>(a.openBlock(),a.createElementBlock("div",RC,[a.createElementVNode("div",{class:a.normalizeClass([t.isAuthenticated?"container-fluid":"container"])},[a.createElementVNode("a",{href:"/",onClick:o[0]||(o[0]=a.withModifiers(()=>i("navigate","/"),["prevent"])),class:"text-decoration-none r3ui-header-link"},[a.createElementVNode("div",MC,[a.createElementVNode("div",TC,[a.renderSlot(s.$slots,"logo",{},()=>[a.createVNode(Uc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),a.createElementVNode("div",DC,a.toDisplayString(t.brandText),1)])]),a.createElementVNode("div",OC,[a.createElementVNode("div",LC,[t.isAuthenticated?(a.openBlock(),a.createBlock(_o,{key:0,type:"profile",title:t.user?.name||"",links:r.value},null,8,["title","links"])):a.createCommentVNode("",!0),t.isAuthenticated?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",BC,a.toDisplayString(t.loginText),1))]),a.createElementVNode("div",FC,[a.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-a63a7e7f"]]),PC={class:"col-12 divider divider__wrapper","data-test":"Divider"},Po={__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)=>(a.openBlock(),a.createElementBlock("div",PC,[a.createElementVNode("div",{class:a.normalizeClass(e.className),style:a.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},NC=n=>{const e=a.inject("sidebarContentVisibility"),t=a.inject("toggleSidebar"),i=a.ref({}),r=(l,u)=>{i.value[u]===l?i.value[u]=null:i.value[u]=l},s=a.computed(()=>n.value),o=()=>{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 a.provide("expandAccordion",r),a.provide("expandedAccordion",i),a.watch(n,()=>{o()},{deep:!0}),a.watch(()=>e?.value,()=>{o()},{deep:!0}),a.onMounted(()=>{o()}),{expandedAccordion:i,expandAccordion:r,sidebarLinks:n,collapsedSidebarLinks:s,toggleSidebar:t,sidebarContentVisibility:e}},IC={key:0},HC=["href","target","rel"],VC=["innerHTML"],zC={key:1},jC=["id"],WC=["innerHTML"],UC=["id"],GC={class:"accordion-body"},Gc=Ie(a.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=a.inject("expandAccordion"),r=a.inject("expandedAccordion"),s=o=>{o.isExternal&&o.href?o.openInNewWindow!==!1?window.open(o.href,"_blank","noopener,noreferrer"):window.location.href=o.href:t("navigate",o.href)};return(o,l)=>{const u=a.resolveComponent("SidebarLink",!0);return a.openBlock(),a.createElementBlock("div",null,[n.sidebarLink.childrens?.length?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",IC,[a.createElementVNode("a",{href:n.sidebarLink.href,target:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"_blank":void 0,rel:n.sidebarLink.isExternal&&n.sidebarLink.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[0]||(l[0]=a.withModifiers(()=>s(n.sidebarLink),["prevent"])),class:"sidebar-link-item"},[n.sidebarLink.isVisible?(a.openBlock(),a.createElementBlock("span",{key:0,class:a.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"}},[a.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:a.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,VC),a.createElementVNode("span",null,a.toDisplayString(n.sidebarLink.label),1)],2)):a.createCommentVNode("",!0)],8,HC)])),n.sidebarLink.childrens?.length?(a.openBlock(),a.createElementBlock("div",zC,[n.sidebarLink.isVisible?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["accordion-item bg-transparent border-0",[n.sidebarLink.level>0?"extended-menu-item":""]])},[a.createElementVNode("h2",{class:"accordion-header",id:`heading-${n.sidebarLink.uniqueKey}`},[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button outline-none rounded",{"fw-bolder":n.sidebarLink.isActive,collapsed:a.unref(r)&&a.unref(r)[n.sidebarLink.level]!==n.sidebarLink.uniqueKey}]),type:"button",onClick:l[1]||(l[1]=c=>a.unref(i)&&a.unref(i)(n.sidebarLink.uniqueKey,n.sidebarLink.level))},[a.createElementVNode("span",{innerHTML:n.sidebarLink.icon,class:a.normalizeClass([n.sidebarLink.level===0?"pe-3":""])},null,10,WC),a.createTextVNode(" "+a.toDisplayString(n.sidebarLink.label),1)],2)],8,jC),a.createElementVNode("div",{id:`flush-${n.sidebarLink.uniqueKey}`,class:a.normalizeClass(["accordion-collapse collapse",{show:a.unref(r)&&a.unref(r)[n.sidebarLink.level]===n.sidebarLink.uniqueKey}]),style:{transition:"0.5s"}},[a.createElementVNode("div",GC,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.sidebarLink.childrens,c=>(a.openBlock(),a.createElementBlock("li",{key:c.uniqueKey},[a.createVNode(u,{sidebarLink:c,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,UC)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-0a6fd930"]]),YC={key:0},QC={key:0},KC=["title"],JC=["innerHTML"],qC={key:1},$C={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},ZC={class:"hidden-div"},XC={key:1},eA=["href","target","rel"],tA=["title"],iA=["innerHTML"],nA={key:0,class:"ms-2"},rA={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},sA={key:0,class:"ms-2"},Yc=Ie(a.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=a.inject("expandAccordion"),r=a.inject("expandedAccordion"),s=o=>{o.isExternal&&o.href?o.openInNewWindow!==!1?window.open(o.href,"_blank","noopener,noreferrer"):window.location.href=o.href:t("navigate",o.href)};return(o,l)=>{const u=a.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(a.openBlock(),a.createElementBlock("div",YC,[n.link.childrens?.length?(a.openBlock(),a.createElementBlock("div",QC,[a.createElementVNode("button",{title:n.link.label,class:a.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=>a.unref(i)?.(n.link.uniqueKey,n.link.level))},[n.link.icon?(a.openBlock(),a.createElementBlock("span",{key:0,innerHTML:n.link.icon},null,8,JC)):(a.openBlock(),a.createElementBlock("span",qC,a.toDisplayString(n.link.label),1))],10,KC),a.unref(r)&&a.unref(r)[n.link.level]===n.link.uniqueKey?(a.openBlock(),a.createElementBlock("div",$C,[a.createElementVNode("div",ZC,[a.createElementVNode("h5",null,a.toDisplayString(n.link.label),1),l[3]||(l[3]=a.createElementVNode("hr",{size:"1"},null,-1)),a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.link.childrens,c=>(a.openBlock(),a.createElementBlock("li",{class:"mb-0",key:c.uniqueKey},[a.createVNode(u,{link:c,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",XC,[a.createElementVNode("a",{href:n.link.href,target:n.link.isExternal&&n.link.openInNewWindow!==!1?"_blank":void 0,rel:n.link.isExternal&&n.link.openInNewWindow!==!1?"noopener noreferrer":void 0,onClick:l[2]||(l[2]=a.withModifiers(()=>s(n.link),["prevent"]))},[n.link.level<1?(a.openBlock(),a.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"}},[a.createElementVNode("span",{innerHTML:n.link.icon},null,8,iA),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",nA,"↗")):a.createCommentVNode("",!0)],8,tA)):(a.openBlock(),a.createElementBlock("button",rA,[a.createElementVNode("span",null,a.toDisplayString(n.link.label),1),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",sA,"↗")):a.createCommentVNode("",!0)]))],8,eA)]))])):a.createCommentVNode("",!0)}}}),[["__scopeId","data-v-6d9f8db2"]]),aA={key:0},oA={class:"accordion accordion-flush",id:"accordionMenu"},lA={key:1},uA={class:"row"},cA={class:"col-12"},dA={class:"sidebar-footer p-3"},Qc=a.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=a.computed(()=>!t.isCollapsed),{sidebarLinks:s,collapsedSidebarLinks:o}=NC(a.computed(()=>t.links));return(l,u)=>(a.openBlock(),a.createElementBlock("div",{id:"sidebarContent",class:a.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(a.openBlock(),a.createElementBlock("div",aA,[a.createElementVNode("div",oA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Gc,{sidebarLink:c,onNavigate:u[0]||(u[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",lA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Yc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),a.createElementVNode("div",uA,[a.createElementVNode("div",cA,[a.createVNode(Po)])]),a.createElementVNode("div",dA,[a.renderSlot(l.$slots,"footer")])],2))}}),hA=n=>{const e=a.ref(!0),t=a.ref(null),i=a.ref(null),r=a.ref(320),s=()=>{e.value=!1,r.value=60,localStorage.setItem("sideBarVisibility","0")},o=()=>{e.value=!0,r.value=320,localStorage.setItem("sideBarVisibility","1")},l=()=>{e.value?s():o()},u=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():o()},c=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,f=r.value||0;if(d>0&&f>0){const p=window.innerWidth<768;i.value=p?d:d-f-20}},50)};return a.provide("sidebarContentVisibility",e),a.provide("toggleSidebar",l),a.watch(r,()=>{c()},{deep:!0}),a.onMounted(()=>{u(),c(),window.addEventListener("resize",c,!0)}),a.onBeforeUnmount(()=>{window.removeEventListener("resize",c,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},fA={class:"container-fluid p-0"},pA={class:"py-4",style:{"min-height":"90vh"}},mA=a.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:o,sidebarContentVisibility:l}=hA(a.computed(()=>t.isAuthenticated));return(u,c)=>(a.openBlock(),a.createElementBlock("div",fA,[a.createElementVNode("div",{class:a.normalizeClass(["d-flex",{"justify-content-center":!t.isAuthenticated}]),ref_key:"clientWidth",ref:s},[t.isAuthenticated?(a.openBlock(),a.createElementBlock("div",{key:0,id:"sidebar",class:"pt-3 sidebar px-0 hide-to-print",style:a.normalizeStyle(`background: #efefef; transition: .2s; width:${a.unref(o)}px;`)},[a.createVNode(Qc,{links:t.sidebarLinks,"is-collapsed":!a.unref(l),onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["links","is-collapsed"])],4)):a.createCommentVNode("",!0),a.createElementVNode("div",{id:"content-div",style:a.normalizeStyle(`transition: .2s; width:${a.unref(r)}px;`)},[a.createElementVNode("div",pA,[a.renderSlot(u.$slots,"breadcrumbs"),a.renderSlot(u.$slots,"default")])],4)],2)]))}}),gA={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},bA={class:"col"},vA={"aria-label":"breadcrumb"},yA={class:"breadcrumb row"},wA=["aria-current"],CA=["href","onClick"],AA={key:1,class:"text-nowrap"},EA=Ie(a.defineComponent({__name:"Breadcrumbs",props:{crumbs:{type:Array,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=n,i=e;return(r,s)=>(a.openBlock(),a.createElementBlock("div",gA,[a.createElementVNode("div",bA,[a.createElementVNode("nav",vA,[a.createElementVNode("ol",yA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.crumbs,(o,l)=>(a.openBlock(),a.createElementBlock("li",{key:l,class:a.normalizeClass(["breadcrumb-item text-nowrap col-auto",{active:o.isActive}]),"aria-current":o.isActive?"page":void 0},[o.isActive?(a.openBlock(),a.createElementBlock("span",AA,a.toDisplayString(o.text),1)):(a.openBlock(),a.createElementBlock("a",{key:0,href:o.href,class:"text-decoration-none text-black-40 cursor-pointer text-nowrap",onClick:a.withModifiers(()=>i("navigate",o.href),["prevent"])},a.toDisplayString(o.text),9,CA))],10,wA))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),kA=a.defineComponent({__name:"LanguageSelector",props:{modelValue:{},options:{},width:{},allowClear:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:e}){const t=n,i=e,r=a.computed({get:()=>t.modelValue,set:s=>i("update:modelValue",s)});return(s,o)=>(a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle({minWidth:s.width||"150px"})},[a.createVNode(Vt,{class:"w-100",modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=l=>r.value=l),options:s.options,"allow-clear":s.allowClear??!1},null,8,["modelValue","options","allow-clear"])],4))}}),SA={key:0,class:"card-header"},xA={class:"card-title mb-0"},RA={class:"card-body"},MA={class:"row"},TA={class:"row align-items-center"},DA={class:"col-auto label pe-0"},OA={class:"col-auto"},LA={key:0,class:"mt-3"},BA=Ie(a.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=a.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)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["card",t.value])},[i.title?(a.openBlock(),a.createElementBlock("div",SA,[a.createElementVNode("h5",xA,a.toDisplayString(i.title),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",RA,[a.createElementVNode("div",MA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.fields,(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:"col-12 mb-2",key:o},[a.createElementVNode("div",TA,[a.createElementVNode("div",DA,a.toDisplayString(s.label)+":",1),a.createElementVNode("div",OA,[a.createElementVNode("span",{class:a.normalizeClass(["value",s.valueClass]),style:a.normalizeStyle(s.valueStyle)},a.toDisplayString(s.value),7)])])]))),128))]),i.$slots.default?(a.openBlock(),a.createElementBlock("div",LA,[a.renderSlot(i.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),FA={class:"placeholder-glow"},_A={class:"page-card"},PA={class:"row hide-to-print card-header mx-0 w-100"},NA={class:"col"},IA={class:"row flex-nowrap align-items-center"},HA={class:"col-auto"},VA={key:0,class:"col-auto"},zA={class:"row",style:{padding:"20px"}},jA={class:"d-flex align-items-start"},WA={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},UA=["onClick"],GA={class:"tab-content",id:"v-pills-tabContent"},YA={key:0,class:"title"},QA={key:1},KA={key:0},JA={key:0},qA=["title"],$A={key:2},ZA={class:"row"},XA={class:"col-12"},eE=Ie(a.defineComponent({__name:"PageCard",props:{actionLinks:{default:()=>[]},tabs:{default:()=>[]},col:{default:"auto"},actionsTitle:{default:"Действия"},isLoading:{type:Boolean,default:!1}},emits:["click","active-tab"],setup(n,{emit:e}){const t=n,i=e,r=a.ref(0),s=a.useSlots(),o=d=>{i("click",d)},l=a.computed(()=>!!s.header),u=a.computed(()=>!!s.footer),c=d=>{r.value=d,i("active-tab",t.tabs[d])};return a.onMounted(()=>{}),(d,f)=>(a.openBlock(),a.createElementBlock("div",null,[a.withDirectives(a.createElementVNode("p",FA,[...f[0]||(f[0]=[a.createElementVNode("span",{class:"placeholder col-12 mb-1",style:{"min-height":"300px","border-radius":"4px"}},null,-1)])],512),[[a.vShow,d.isLoading]]),a.withDirectives(a.createElementVNode("div",_A,[a.createElementVNode("div",PA,[a.createElementVNode("div",NA,[a.createElementVNode("div",IA,[a.createElementVNode("div",HA,[l.value?a.renderSlot(d.$slots,"header",{key:0},void 0,!0):a.createCommentVNode("",!0)])])]),d.actionLinks.length>0?(a.openBlock(),a.createElementBlock("div",VA,[a.createVNode(_o,{title:d.actionsTitle,links:d.actionLinks,onClick:o},null,8,["title","links"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",zA,[a.createElementVNode("div",jA,[a.createElementVNode("div",WA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(p,h)=>a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:h,class:a.normalizeClass(["nav-link me-5",[h===r.value?"active":""]]),onClick:x=>c(h)},a.toDisplayString(p.navLink),11,UA)),[[a.vShow,p.navLink]])),128))]),a.createElementVNode("div",GA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(p,h)=>(a.openBlock(),a.createElementBlock("div",{key:h,class:a.normalizeClass(["tab-pane fade row",[h===r.value?"show active d-flex":""]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.contents,(x,b)=>(a.openBlock(),a.createElementBlock("div",{key:b,class:a.normalizeClass(`col-${d.col} mb-3`)},[x.subtitle?(a.openBlock(),a.createElementBlock("div",YA,a.toDisplayString(x.subtitle)+": ",1)):a.createCommentVNode("",!0),!x.type||x.type==="text"?(a.openBlock(),a.createElementBlock("div",QA,[typeof x.text=="string"?(a.openBlock(),a.createElementBlock("div",KA,a.toDisplayString(x.text),1)):x.text?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(x.text,(S,C)=>(a.openBlock(),a.createElementBlock("div",{key:C},[typeof S=="string"?(a.openBlock(),a.createElementBlock("div",JA,a.toDisplayString(S),1)):a.createCommentVNode("",!0),typeof S=="object"?(a.openBlock(),a.createElementBlock("div",{key:1,title:S?.description||""},a.toDisplayString(S.name),9,qA)):a.createCommentVNode("",!0)]))),128)):a.createCommentVNode("",!0)])):x.type==="custom"&&x.slotName?(a.openBlock(),a.createElementBlock("div",$A,[a.renderSlot(d.$slots,x.slotName,{content:x},void 0,!0)])):a.createCommentVNode("",!0)],2))),128))],2))),128))])]),u.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(Po,{class:"mt-3"}),a.createElementVNode("div",ZA,[a.createElementVNode("div",XA,[a.renderSlot(d.$slots,"footer",{},void 0,!0)])])],64)):a.createCommentVNode("",!0)])],512),[[a.vShow,!d.isLoading]])]))}}),[["__scopeId","data-v-57cc294f"]]),tE={key:0,class:"row w-100 parent"},iE={class:"col-12 wrapper w-100"},nE=["innerHTML"],Kc={__name:"Toast",props:{message:{type:String,default:""},isError:{type:Boolean,default:!1}},setup(n){const e=n,t=a.ref(e.message);a.watch(()=>e.message,r=>{t.value=r});const i=()=>{t.value=""};return(r,s)=>t.value&&t.value.length>0?(a.openBlock(),a.createElementBlock("div",tE,[a.createElementVNode("div",iE,[a.createElementVNode("div",{class:a.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,nE),a.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):a.createCommentVNode("",!0)}},rE={key:0,class:"row","data-test":"ErrorMessageComponent"},sE={class:"col-12",id:"alert"},aE={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},oE=["innerHTML"],lE=Ie(a.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=a.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=a.computed(()=>Array.isArray(e.message)?e.message.join(", "):e.message||"");return(r,s)=>t.value?(a.openBlock(),a.createElementBlock("div",rE,[a.createElementVNode("div",sE,[a.createElementVNode("div",{class:a.normalizeClass([i.value?`alert alert-${r.type}`:"",{"d-flex align-items-center":r.warningIcon}])},[i.value&&r.warningIcon?(a.openBlock(),a.createElementBlock("i",aE)):a.createCommentVNode("",!0),r.asHtml?(a.openBlock(),a.createElementBlock("div",{key:1,innerHTML:i.value},null,8,oE)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(i.value),1)],64))],2)])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),uE={class:"accordion-header",style:{background:"transparent"}},cE=["aria-expanded","aria-controls"],dE={key:0},hE=["id"],fE={class:"accordion-body px-0"},pE=Ie(a.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=a.useSlots(),s=a.ref(Math.random().toString(36).substr(2,9)),o=u=>!!r[u],l=()=>{const u=!t.isCollapsed;i("update-visibility",u)};return a.watch(()=>t.isCollapsedDefault,u=>{i("update-visibility",u)},{deep:!0}),(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["accordion accordion-flush",{"w-100":u.fullWidth}]),style:{background:"transparent"}},[a.createElementVNode("div",{class:a.normalizeClass(["accordion-item",{"border-bottom":u.isVisibleBorderBottom}]),style:{background:"transparent"}},[a.createElementVNode("h2",uE,[a.createElementVNode("button",{onClick:l,class:a.normalizeClass(["accordion-button collapsed ps-0",{visible:!u.isCollapsed,"fw-bolder":u.isTitleBold}]),style:a.normalizeStyle(`font-size:${u.titleFontSize}px;`),type:"button","aria-expanded":!u.isCollapsed,"aria-controls":`accordion-${s.value}`},a.toDisplayString(u.title),15,cE)]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[o("accordion-body")?(a.openBlock(),a.createElementBlock("div",dE,[a.withDirectives(a.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[a.createElementVNode("div",fE,[a.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,hE),[[a.vShow,!u.isCollapsed]])])):a.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),mE={class:"accordion-header",style:{background:"transparent"}},gE=["onClick"],bE={class:"d-flex align-items-center w-100"},vE={class:"d-flex align-items-center flex-grow-1"},yE=["value","id","onChange"],wE={class:"form-check-label ps-2 text-body flex-grow-1"},CE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},AE={class:"col d-flex flex-wrap px-4"},EE={class:"form-check"},kE=["value","id"],SE=["for"],xE=Ie(a.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=a.ref([]),o=a.ref([]),l=a.ref(null),u=a.ref([]),c=(x,b)=>{const S=x.target;if(S.tagName==="INPUT"||S.closest(".form-check-input"))return!1;if(S.tagName==="SPAN"||S.closest(".form-check-label"))return l.value!==Number(b)?(l.value=Number(b),!0):(l.value=null,!0);if(l.value!==Number(b))return l.value=Number(b),!0;l.value=null},d=x=>{const b=i.kindGroups.find(C=>C.id===x);if(!b)return;if(s.value.includes(String(x))){const C=b.kinds.map(D=>String(D.id)),m=[...o.value];C.forEach(D=>{m.includes(D)||m.push(D)}),o.value=m}else{const C=b.kinds.map(m=>String(m.id));o.value=o.value.filter(m=>!C.includes(String(m)))}},f=()=>{a.nextTick(()=>{p()})},p=()=>{const x=[];i.kindGroups.forEach((C,m)=>{const D=u.value?.[m];if(!D)return;const g=C.kinds.map(y=>String(y.id)),M=o.value.filter(y=>g.includes(String(y)));M.length===0?(D.indeterminate=!1,D.checked=!1):M.length===g.length?(D.indeterminate=!1,D.checked=!0,x.push(String(C.id))):(D.indeterminate=!0,D.checked=!1)});const b=s.value.map(String).sort(),S=x.map(String).sort();JSON.stringify(b)!==JSON.stringify(S)&&(s.value=x)};a.watch(()=>o.value,x=>{r("emitSelectedKinds",x)},{deep:!0}),a.watch(()=>s.value,x=>{r("emitSelectedKindGroups",x)},{deep:!0}),a.onMounted(()=>{i.defaultSelectedKinds.length>0&&(o.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),a.nextTick(()=>{p()})});const h=a.computed(()=>c);return e({toggleAccordion:c}),(x,b)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.kindGroups,(S,C)=>(a.openBlock(),a.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:S.id},[x.kindGroups[C].kinds.length>0?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",mE,[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(C)}]),type:"button",style:{background:"transparent"},onClick:m=>h.value(m,C)},[a.createElementVNode("div",bE,[a.createElementVNode("div",vE,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:u,value:`${S.id}`,id:`${x.checkboxName}_${C}`,name:"kind_group","onUpdate:modelValue":b[0]||(b[0]=m=>s.value=m),onClick:b[1]||(b[1]=a.withModifiers(()=>{},["stop"])),onChange:m=>d(S.id)},null,40,yE),[[a.vModelCheckbox,s.value]]),a.createElementVNode("span",wE,a.toDisplayString(S.name),1)]),a.createElementVNode("i",{class:a.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(C)}])},null,2)])],10,gE)]),a.withDirectives(a.createElementVNode("div",CE,[a.createElementVNode("div",AE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(x.kindGroups[C].kinds,(m,D)=>(a.openBlock(),a.createElementBlock("div",{class:"col-6 mb-2",key:D},[a.createElementVNode("div",EE,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${m.id}`,id:`${x.checkboxName}_${m.id}`,name:"kinds","onUpdate:modelValue":b[2]||(b[2]=g=>o.value=g),onChange:f},null,40,kE),[[a.vModelCheckbox,o.value]]),a.createElementVNode("label",{class:"form-check-label",for:`${x.checkboxName}_${m.id}`},[a.createElementVNode("small",null,a.toDisplayString(m.name),1)],8,SE)])]))),128))])],512),[[a.vShow,l.value===Number(C)]])],64)):a.createCommentVNode("",!0)]))),128))}}),[["__scopeId","data-v-c0a701d5"]]);class dt{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 Ze{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,o;for(let l=0;l<s&&(i=i[r[l]],o=i,!!i);l++);return o}static deepClone(e,t,i=[]){var r={}.__proto__,s=[].__proto__;t||(t=Object.assign(Array.isArray(e)?[]:{},e));for(var o in e){let l=e[o],u,c;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(u=i.findIndex(d=>d.subject===l),u>-1?t[o]=i[u].copy:(c=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:c}),t[o]=this.deepClone(l,c,i)))}return t}}let RE=class Td extends dt{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=Ze.elOffset(this.container);i-=s.left,r-=s.top}return{x:i,y:r}}elementPositionCoords(e,t="right"){var i=Ze.elOffset(e),r,s,o;switch(this.container!==document.body&&(r=Ze.elOffset(this.container),i.left-=r.left,i.top-=r.top),t){case"right":s=i.left+e.offsetWidth,o=i.top-1;break;case"bottom":s=i.left,o=i.top+e.offsetHeight;break;case"left":s=i.left,o=i.top-1;break;case"top":s=i.left,o=i.top;break;case"center":s=i.left+e.offsetWidth/2,o=i.top+e.offsetHeight/2;break}return{x:s,y:o,offset:i}}show(e,t){var i,r,s,o,l;return this.destroyed||this.table.destroyed?this:(e instanceof HTMLElement?(s=e,l=this.elementPositionCoords(e,t),o=l.offset,i=l.x,r=l.y):typeof e=="number"?(o={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,o,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 o=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,o?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 Td(this.table,e,this),this.childPopup}};class Ve extends dt{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 RE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var ME={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class gr extends Ve{static moduleName="accessor";static accessors=ME;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)),o;e.definition[s]&&(o=this.lookupAccessor(e.definition[s]),o&&(t=!0,i[s]={accessor:o,params:e.definition[s+"Params"]||{}}))}),t&&(e.modules.accessor=i)}lookupAccessor(e){var t=!1;switch(typeof e){case"string":gr.accessors[e]?t=gr.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=Ze.deepClone(e.data||{});return this.table.columnManager.traverse(function(o){var l,u,c,d;o.modules.accessor&&(u=o.modules.accessor[i]||o.modules.accessor.accessor||!1,u&&(l=o.getFieldValue(s),l!="undefined"&&(d=o.getComponent(),c=typeof u.params=="function"?u.params(l,s,t,d,r):u.params,o.setFieldValue(s,u.accessor(l,s,t,c,d,r)))))}),s}}var TE={method:"GET"};function No(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(No(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(No(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function DE(n){var e=No(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 OE(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 o in i.headers)e.headers||(e.headers={}),typeof e.headers[o]>"u"&&(e.headers[o]=i.headers[o]);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 Io(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Io(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Io(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var LE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=Io(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class Ji extends Ve{static moduleName="ajax";static defaultConfig=TE;static defaultURLGenerator=Jc;static defaultLoaderPromise=OE;static contentTypeFormatters=LE;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=Ji.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Ji.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Ji.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 o;return!s&&this.requestDataCheck(e)?(e&&this.setUrl(e),o=this.generateConfig(i),this.sendRequest(this.url,t,o)):s}setDefaultConfig(e={}){this.config=Object.assign({},Ji.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 BE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},FE={table:function(n){var e=[],t=!0,i=this.table.columnManager.columns,r=[],s=[];return n=n.split(`
|
|
32
32
|
`),n.forEach(function(o){e.push(o.split(" "))}),e.length&&!(e.length===1&&e[0].length<2)?(e[0].forEach(function(o){var l=i.find(function(u){return o&&u.definition.title&&o.trim()&&u.definition.title.trim()===o.trim()});l?r.push(l):t=!1}),t||(t=!0,r=[],e[0].forEach(function(o){var l=i.find(function(u){return o&&u.field&&o.trim()&&u.field.trim()===o.trim()});l?r.push(l):t=!1}),t||(r=this.table.columnManager.columnsByIndex)),t&&e.shift(),e.forEach(function(o){var l={};o.forEach(function(u,c){r[c]&&(l[r[c].field]=u)}),s.push(l)}),s):!1}},_E={copyToClipboard:["ctrl + 67","meta + 67"]},PE={copyToClipboard:function(n){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},NE={keybindings:{bindings:_E,actions:PE}};class br extends Ve{static moduleName="clipboard";static moduleExtensions=NE;static pasteActions=BE;static pasteParsers=FE;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 o="";if(s)if(i.type==="group"&&(s.value=s.component.getKey()),s.value===null)o="";else switch(typeof s.value){case"object":o=JSON.stringify(s.value);break;case"undefined":o="";break;default:o=s.value}r.push(o)}),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=br.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=br.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 IE{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 qc{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 En extends dt{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(o=>{e.classList.add(o)})}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 qc(this)),this.component}}class $c{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 Zc={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 Jt extends dt{static defaultOptionList=Zc;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 o=new Jt(r,this);this.attachColumn(o)}),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(Jt.defaultOptionList,this.definition)}checkDefinition(){Object.keys(this.definition).forEach(e=>{Jt.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 o=0;o<r&&(t=t[i[o]],s=t,!!t);o++);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 o=0;o<s;o++)if(o==s-1)i[r[o]]=t;else{if(!i[r[o]])if(typeof t<"u")i[r[o]]={};else break;i=i[r[o]]}}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 En(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 $c(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof Jt?this.parent.getComponent():!1}}class vr{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 pt extends dt{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&&Ze.elVisible(this.element),i={},r;return new Promise((s,o)=>{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 vr(this)),this.component}}var HE={avg:function(n,e,t){var i=0,r=typeof t.precision<"u"?t.precision:2;return n.length&&(i=n.reduce(function(s,o){return Number(s)+Number(o)}),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 Ve{static moduleName="columnCalcs";static calculations=HE;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 Jt({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(o=>{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 pt(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 IE(r)),r.component),r.generateCells=()=>{var s=[];this.table.columnManager.columnsByIndex.forEach(o=>{this.genColumn.setField(o.getField()),this.genColumn.hozAlign=o.hozAlign,o.definition[e+"CalcFormatter"]&&this.table.modExists("format")?this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter(o.definition[e+"CalcFormatter"]),params:o.definition[e+"CalcFormatterParams"]||{}}:this.genColumn.modules.format={formatter:this.table.modules.format.lookupFormatter("plaintext"),params:{}},this.genColumn.definition.cssClass=o.definition.cssClass;var l=new En(this.genColumn,r);l.getElement(),l.column=o,l.setWidth(),o.cells.push(l),s.push(l),o.visible||l.hide()}),r.cells=s},r}generateRowData(e,t){var i={},r=e=="top"?this.topCalcs:this.botCalcs,s=e=="top"?"topCalc":"botCalc",o,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",o=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,o)))}),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(o=>{r[o.getKey()]=this.getGroupResults(o)}),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 VE extends Ve{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,o;t.push(i),i instanceof pt&&(i.create(),s=i.modules.dataTree,!s.index&&s.children!==!1&&(o=this.getChildren(i,!1,!0),o.forEach(l=>{l.create(),t.push(l)})))}),t}getChildren(e,t,i){var r=e.modules.dataTree,s=[],o=[];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=>{o.push(l);var u=this.getChildren(l,!1,!0);u.forEach(c=>{o.push(c)})})),o}generateChildren(e){var t=[],i=e.getData()[this.field];return Array.isArray(i)||(i=[i]),i.forEach(r=>{var s=new pt(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 pt&&i.push(s)})),i}rowDeleting(e){var t=e.modules.dataTree;t&&t.children&&Array.isArray(t.children)&&t.children.forEach(i=>{i instanceof pt&&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 pt?i=e.data:e instanceof vr?i=e._getSelf().data:typeof HTMLElement<"u"&&e instanceof HTMLElement?t.modules.dataTree&&(i=t.modules.dataTree.children.find(r=>r instanceof pt?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(o=>{o instanceof pt&&(s.push(t?o.getComponent():o),i&&this.getTreeChildren(o,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 zE(n,e={},t){var i=e.delimiter?e.delimiter:",",r=[],s=[];n.forEach(o=>{var l=[];switch(o.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":o.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":o.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 jE(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(o=>{o&&(s[o.component.getTitleDownload()||o.component.getField()]=o.value)}),i.push(s);break}}),i=JSON.stringify(i,null," "),t(i,"application/json")}function WE(n,e={},t){var i=[],r=[],s={},o=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,o));break;case"calc":r.push(p(h,l));break;case"row":r.push(p(h));break}});function p(h,x){var b=[];return h.columns.forEach(S=>{var C;if(S){switch(typeof S.value){case"object":S.value=S.value!==null?JSON.stringify(S.value):"";break;case"undefined":S.value="";break}C={content:S.value,colSpan:S.width,rowSpan:S.height},x&&(C.styles=x),b.push(C)}}),b}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 UE(n,e,t){var i=this,r=e.sheetName||"Sheet1",s=this.dependencyRegistry.lookup("XLSX"),o=s.utils.book_new(),l=new dt(this),u="compress"in e?e.compress:!0,c=e.writeOptions||{bookType:"xlsx",bookSST:!0,compression:u},d;c.type="binary",o.SheetNames=[],o.Sheets={};function f(){var x=[],b=[],S={},C={s:{c:0,r:0},e:{c:n[0]?n[0].columns.reduce((m,D)=>m+(D&&D.width?D.width:1),0):0,r:n.length}};return n.forEach((m,D)=>{var g=[];m.columns.forEach(function(M,y){M?(g.push(!(M.value instanceof Date)&&typeof M.value=="object"?JSON.stringify(M.value):M.value),(M.width>1||M.height>-1)&&(M.height>1||M.width>1)&&b.push({s:{r:D,c:y},e:{r:D+M.height-1,c:y+M.width-1}})):g.push("")}),x.push(g)}),s.utils.sheet_add_aoa(S,x),S["!ref"]=s.utils.encode_range(C),b.length&&(S["!merges"]=b),S}if(e.sheetOnly){t(f());return}if(e.sheets)for(var p in e.sheets)e.sheets[p]===!0?(o.SheetNames.push(p),o.Sheets[p]=f()):(o.SheetNames.push(p),l.commsSend(e.sheets[p],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(x){o.Sheets[p]=x}}));else o.SheetNames.push(r),o.Sheets[r]=f();e.documentProcessing&&(o=e.documentProcessing(o));function h(x){for(var b=new ArrayBuffer(x.length),S=new Uint8Array(b),C=0;C!=x.length;++C)S[C]=x.charCodeAt(C)&255;return b}d=s.write(o,c),t(h(d),"application/octet-stream")}function GE(n,e,t){this.modExists("export",!0)&&t(this.modules.export.generateHTMLTable(n),"text/html")}function YE(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(o=>{o&&(s[o.component.getTitleDownload()||o.component.getField()]=o.value)}),i.push(JSON.stringify(s));break}}),t(i.join(`
|