r3ui-lib 1.2.4 → 1.2.5
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=Bo(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 te(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(),ie()):me(B);break;case 27:B.preventDefault(),ie();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+=Sy.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)&&Ey(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";Mo.filter(function(Ce){return t.config[Ce]!==void 0}).forEach(function(Ce){t.config[Ce]=To(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)Mo.indexOf(be)>-1?t.config[be]=To(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=Ic(t),t.parseDate=Oo({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,fx){return Di+fx.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 ie(){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=Nc(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)&&ie()}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 _()}):Mo.indexOf(B)>-1&&(t.config[B]=To(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=pr(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=Ry(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=Oo({}),ot.formatDate=Ic({}),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:{}},My=An.exports,Vc;function Ty(){return Vc||(Vc=1,(function(n,e){(function(t,i){i(e)})(My,(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 Dy=Ty();const Oy=["value","id","name","disabled","required","placeholder"],Ly=["title"],By=["title"],Fy=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"?Dy.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,Oy)],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,Ly)):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,By),a.createVNode(ki,{errors:f.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-a8bbc430"]]);function _y(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 Py=["disabled"],Ny={key:1,class:"bi bi-three-dots-vertical"},Iy=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}=_y(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(Dr,{key:0,isSmall:!0})):(a.openBlock(),a.createElementBlock("i",Ny))],8,Py),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(_c,{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 Hy(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}`),te=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,[te.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,[te.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,[te.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,[te.value]:null,[X.value]:null};R.value=A,z.value=[]},q=async ge=>{T.value||(Fe(ge),ge&&await le(ge))},ie=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 ie(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,[te.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,[te.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[te.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:te,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:ie,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 Vy={class:"address-form"},zy={class:"row"},jy={class:"form-label"},Wy={class:"form-label"},Uy={class:"form-label"},Gy={class:"form-label"},Yy={class:"form-label"},Qy={class:"form-label"},Ky=["value","disabled"],Jy={class:"form-label"},qy=["value","disabled"],$y={class:"form-label"},Zy=["value","disabled"],Xy={key:0,class:"mt-3"},ew={class:"alert alert-info"},tw=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:te,autoFillForm:X,autoFillFormSkipReset:Z}=Hy(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)},ie=oe=>{W(oe)},me=oe=>{H(oe)},de=oe=>{te(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",Vy,[a.createElementVNode("div",zy,[oe.loadCountries?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",jy,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",Wy,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",Uy,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",Gy,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",Yy,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",Qy,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:ie},null,40,Ky)],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",Jy,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,qy)],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",$y,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,Zy)],2)):a.createCommentVNode("",!0)],64))]),oe.showFullAddress&&a.unref(V)?(a.openBlock(),a.createElementBlock("div",Xy,[a.createElementVNode("div",ew,[Se[0]||(Se[0]=a.createElementVNode("strong",null,"Полный адрес:",-1)),a.createTextVNode(" "+a.toDisplayString(a.unref(V)),1)])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-dfe07190"]]),iw={class:"age-from-to-form"},nw={class:"form-group"},rw={key:0,class:"form-label mb-2"},sw={class:"row align-items-center mb-2"},aw={key:0,class:"col-auto"},ow={class:"form-label mb-0"},lw={class:"col"},uw={class:"col"},cw={class:"row align-items-center mb-2"},dw={key:0,class:"col-auto"},hw={class:"form-label mb-0"},fw={class:"col"},pw={class:"col"},mw=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",iw,[a.createElementVNode("div",nw,[m.title?(a.openBlock(),a.createElementBlock("label",rw,a.toDisplayString(m.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",sw,[c.value?(a.openBlock(),a.createElementBlock("div",aw,[a.createElementVNode("label",ow,a.toDisplayString(c.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",lw,[a.createVNode(or,{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",uw,[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",cw,[d.value?(a.openBlock(),a.createElementBlock("div",dw,[a.createElementVNode("label",hw,a.toDisplayString(d.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",fw,[a.createVNode(or,{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",pw,[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"]]),gw={key:0,class:"r3ui-modal-wrapper"},bw={class:"modal-header pb-4 border-bottom-0"},vw={key:0,class:"modal-title"},yw={key:0,class:"modal-body pt-0"},ww={class:"modal-body-content"},Cw={key:1,class:"modal-footer row justify-content-start"},Aw={class:"modal-footer-content"},zc=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",gw,[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",bw,[n.title?(a.openBlock(),a.createElementBlock("h4",vw,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",yw,[a.createElementVNode("div",ww,[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",Cw,[a.createElementVNode("div",Aw,[a.renderSlot(x.$slots,"modal-footer"),a.renderSlot(x.$slots,"footer")])])):a.createCommentVNode("",!0)],4)],2)])):a.createCommentVNode("",!0)]))}}),Ew="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVcg8fRXbzl8hF9wirpVItFWAUVgUOoRvCkqATxgr1V0wUGufeKjUaRbQKiV+5Ss7fsFUp2NWkjDn+FbK7+JWIWuYhIThTsCZwEAnzF0r3hn5ZOFFcJFRfNVlo/OECqREe8NoaediLq5WiHTuVwi7ErlDLIjDkkLEkMPVYcqBMnZjh5+GTH9whVnklajoe+qVcuLIqXhz9Avlp3kICPwNGYEHgoFrWII3TwoqwRqprlOzFT8kldR8rRYYfkamuACP4LfBCtSyFSa9lVVgjJPSCxe1l1KPpM6/7rfRw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ZJxueIM0KTGsbXQ0yF+NxwkNueFZjyQTMEthPjFeNBXTe54qSDfzuT5cGfsIG3FPkWfnJBHiPwVp2KaW/Uu5RGwJNlL19dzjnx09lWHaQ2kk8VBx49lht+HamGeLOJZOw4nLKmAUQ0BOv2okXk02R6ZApXbOKFacLMR77tQ3qkZOe0F3jd0wgrp8iz8ZUbL0geuAA6dTyMvNTEtkFHCqMuexRGYqIO5ZMGne12H7Fe3YfqX7Nu8kRDNcdEp09JgvFBVYKDLwUR2SE+uB+QztyYZgBFjEwz2XzfZDF4gIzveh4qBEg8Ky9aiOC1v9/JHz7hx8Hr791iKsOAe2UhGC8vW/SlSmf/DdUpA3Ej1JFEXHPkIVYLTBA+CdERu/h075x5qycW/HPYOHJ0+HAuLHJEQWpgl2haa+1/PTLejk3ztuIzHiadIa+GsHqLpplOkUutOyQIggZbHF7mtPH5jcXN+f/eVnrY3HCbQB6LMxz3yabsFtg4KU447IK5sy4aMtpQl9DWIDFnA5TRKtxgsAqs4m5nlYLIkSeGZexeW5ppq2rYF0QFlaLLnk2OQAnCQy8FHkwkxN9ANOqEcNc1bjhxapLQCDqln+HCj7eEfpuHM9YSxVFojH85BCcJrCKjyInJrydfQhiD81z1Tx0X1p1yYS0Gl4n9eENL1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",Rw={class:"row mb-3 flex-column mx-0"},Mw={class:"col-auto mb-3"},Tw={class:"image-container",style:{width:"90px",height:"90px"}},Dw=["src","alt"],Ow=["src"],Lw=["src"],Bw=["src"],Fw=["src"],_w={class:"col"},Pw={class:"confirmation-content"},Nw={key:0,class:"mb-3"},Iw={key:1,class:"text-muted"},Hw={key:0,class:"row"},Vw={class:"col-auto"},zw=["disabled"],jw={class:"col"},Ww=["disabled"],Uw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Gw=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(zc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":a.withCtx(()=>[a.createElementVNode("div",Rw,[a.createElementVNode("div",Mw,[a.createElementVNode("div",Tw,[d.imageSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,Dw)):d.mode==="success"?(a.openBlock(),a.createElementBlock("img",{key:1,class:"w-100",src:a.unref(xw),alt:"Успех",onError:c},null,40,Ow)):d.mode==="warning"?(a.openBlock(),a.createElementBlock("img",{key:2,class:"w-100",src:a.unref(Sw),alt:"Предупреждение",onError:c},null,40,Lw)):d.mode==="error"?(a.openBlock(),a.createElementBlock("img",{key:3,class:"w-100",src:a.unref(kw),alt:"Ошибка",onError:c},null,40,Bw)):(a.openBlock(),a.createElementBlock("img",{key:4,class:"w-100",src:a.unref(Ew),alt:"Подтверждение",onError:c},null,40,Fw))])]),a.createElementVNode("div",_w,[a.createElementVNode("div",Pw,[d.message?(a.openBlock(),a.createElementBlock("h5",Nw,a.toDisplayString(d.message),1)):a.createCommentVNode("",!0),d.description?(a.openBlock(),a.createElementBlock("p",Iw,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",Hw,[a.createElementVNode("div",Vw,[d.mode==="confirmation"?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},a.toDisplayString(d.cancelText),9,zw)):a.createCommentVNode("",!0)]),a.createElementVNode("div",jw,[a.createElementVNode("button",{class:a.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(a.openBlock(),a.createElementBlock("span",Uw)):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o()),1)],10,Ww)])])):a.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),Yw={key:0,class:"filter-modal-wrapper"},Qw={class:"filter-modal-dialog"},Kw={class:"filter-modal-content"},Jw={class:"filter-modal-header"},qw={key:0,class:"filter-modal-title"},$w={class:"filter-modal-body"},Zw={class:"filter-modal-footer"},Xw=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",Yw,[a.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),a.createElementVNode("div",Qw,[a.createElementVNode("div",Kw,[a.createElementVNode("div",Jw,[o.title?(a.openBlock(),a.createElementBlock("h4",qw,a.toDisplayString(o.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),a.createElementVNode("div",$w,[a.renderSlot(o.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",Zw,[a.renderSlot(o.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),eC={key:0,class:"px-0"},tC={class:"modal-dialog modal-dialog-centered modal-xl"},iC={class:"modal-content py-2 px-4"},nC={class:"modal-header mb-3"},rC={class:"modal-title"},sC={class:"modal-body row"},aC={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},jc=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",eC,[a.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),a.createElementVNode("div",tC,[a.createElementVNode("div",iC,[a.createElementVNode("div",nC,[a.createElementVNode("h3",rC,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",sC,[a.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",aC,[a.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),oC={class:"row mb-4 mx-0","data-test":"PageTitle"},lC={class:"col-12"},uC={class:"row align-items-center"},cC={class:"col-auto"},dC={class:"col d-flex justify-content-end"},hC=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",oC,[a.createElementVNode("div",lC,[a.createElementVNode("div",uC,[a.createElementVNode("div",cC,[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",dC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),fC={class:"card-body"},pC={class:"card-text"},mC=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",fC,[a.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),a.createElementVNode("p",pC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),gC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},bC=a.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("footer",gC,a.toDisplayString(e.copyrightText)+" "+a.toDisplayString(a.unref(Ae)().year()),1))}}),vC={class:"custom-dropdown"},yC={style:{"border-bottom":"2px solid #000"}},wC={class:"dropdown-list-wrapper"},CC={key:0,class:"custom-dropdown-menu"},AC=["onMousedown"],Fo=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",vC,[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",yC,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",wC,[t.value?(a.openBlock(),a.createElementBlock("ul",CC,[(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,AC))]))),128))])):a.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-2e8e004b"]]),EC="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx3gbkmB2u63rFYvEegB4AEFGFiHbq9XrrnE2bS+QzzRxBzjg7AKzQ4fVOp/Ptedk0j8hJM2f45ptvloUQ34WPMfNmqVRayeOck0Huns0ZXrx4sQkgQg4iWpYxT44TQE6a+cSm5phj2/bjM7dkDpGTZj5RSTjerNfrzplaMofISTNncBynAiCRGMy8eobmzCVy0swRQonO1NO+/vrr6pkYNKfISTMnsG27KeXmJNdsjFKpdOsMTJpbFM7bgBzHh+M41uHh4UPDMJrIQJYRhBB5fdoMyEnziWFpaalCRPcNw1geDAZVwzCsyd+KYH17e3vrVIz7gyBPbl5gOI5jDYfDqu/7t4ioSkQOpphRFPSZeb3b7a6dpI1/ROSkuSCo1WpVZr4ryVFFQI5pZxEVfQA9IcTmwsLC07wi4GSQk+YcUa/XHWa+D6CB2QkCAB4z95jZBdDL3bDTQU6ac4AkyypS8ikZMCYIEXmlUmkrn0nOBjlpzhAyj/IExyNLH0AbQI+Z3W63++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BjtQKNivAl4hkTsscHMMemdmVdt277r+/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",kC=["src","alt"],Wc=Ie(a.defineComponent({__name:"Logo",props:{src:{default:EC},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,kC),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"]]),SC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},xC={class:"row align-items-center"},RC={class:"col-auto pe-0"},MC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},TC={class:"row"},DC={class:"col-auto d-flex align-items-center"},OC={key:1,class:"text-muted"},LC={class:"col-auto"},BC=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",SC,[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",xC,[a.createElementVNode("div",RC,[a.renderSlot(s.$slots,"logo",{},()=>[a.createVNode(Wc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),a.createElementVNode("div",MC,a.toDisplayString(t.brandText),1)])]),a.createElementVNode("div",TC,[a.createElementVNode("div",DC,[t.isAuthenticated?(a.openBlock(),a.createBlock(Fo,{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",OC,a.toDisplayString(t.loginText),1))]),a.createElementVNode("div",LC,[a.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-9b51d3e7"]]),FC={class:"col-12 divider divider__wrapper","data-test":"Divider"},_o={__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",FC,[a.createElementVNode("div",{class:a.normalizeClass(e.className),style:a.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},_C=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}},PC={key:0},NC=["href","target","rel"],IC=["innerHTML"],HC={key:1},VC=["id"],zC=["innerHTML"],jC=["id"],WC={class:"accordion-body"},Uc=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",PC,[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,IC),a.createElementVNode("span",null,a.toDisplayString(n.sidebarLink.label),1)],2)):a.createCommentVNode("",!0)],8,NC)])),n.sidebarLink.childrens?.length?(a.openBlock(),a.createElementBlock("div",HC,[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,zC),a.createTextVNode(" "+a.toDisplayString(n.sidebarLink.label),1)],2)],8,VC),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",WC,[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,jC)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-0a6fd930"]]),UC={key:0},GC={key:0},YC=["title"],QC=["innerHTML"],KC={key:1},JC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},qC={class:"hidden-div"},$C={key:1},ZC=["href","target","rel"],XC=["title"],eA=["innerHTML"],tA={key:0,class:"ms-2"},iA={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},nA={key:0,class:"ms-2"},Gc=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",UC,[n.link.childrens?.length?(a.openBlock(),a.createElementBlock("div",GC,[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,QC)):(a.openBlock(),a.createElementBlock("span",KC,a.toDisplayString(n.link.label),1))],10,YC),a.unref(r)&&a.unref(r)[n.link.level]===n.link.uniqueKey?(a.openBlock(),a.createElementBlock("div",JC,[a.createElementVNode("div",qC,[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",$C,[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,eA),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",tA,"↗")):a.createCommentVNode("",!0)],8,XC)):(a.openBlock(),a.createElementBlock("button",iA,[a.createElementVNode("span",null,a.toDisplayString(n.link.label),1),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",nA,"↗")):a.createCommentVNode("",!0)]))],8,ZC)]))])):a.createCommentVNode("",!0)}}}),[["__scopeId","data-v-6d9f8db2"]]),rA={key:0},sA={class:"accordion accordion-flush",id:"accordionMenu"},aA={key:1},oA={class:"row"},lA={class:"col-12"},uA={class:"sidebar-footer p-3"},Yc=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}=_C(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",rA,[a.createElementVNode("div",sA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Uc,{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",aA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Gc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),a.createElementVNode("div",oA,[a.createElementVNode("div",lA,[a.createVNode(_o)])]),a.createElementVNode("div",uA,[a.renderSlot(l.$slots,"footer")])],2))}}),cA=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}},dA={class:"container-fluid p-0"},hA={class:"py-4",style:{"min-height":"90vh"}},fA=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}=cA(a.computed(()=>t.isAuthenticated));return(u,c)=>(a.openBlock(),a.createElementBlock("div",dA,[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(Yc,{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",hA,[a.renderSlot(u.$slots,"breadcrumbs"),a.renderSlot(u.$slots,"default")])],4)],2)]))}}),pA={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},mA={class:"col"},gA={"aria-label":"breadcrumb"},bA={class:"breadcrumb row"},vA=["aria-current"],yA=["href","onClick"],wA={key:1,class:"text-nowrap"},CA=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",pA,[a.createElementVNode("div",mA,[a.createElementVNode("nav",gA,[a.createElementVNode("ol",bA,[(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",wA,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,yA))],10,vA))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),AA=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))}}),EA={key:0,class:"card-header"},kA={class:"card-title mb-0"},SA={class:"card-body"},xA={class:"row"},RA={class:"row align-items-center"},MA={class:"col-auto label pe-0"},TA={class:"col-auto"},DA={key:0,class:"mt-3"},OA=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",EA,[a.createElementVNode("h5",kA,a.toDisplayString(i.title),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",SA,[a.createElementVNode("div",xA,[(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",RA,[a.createElementVNode("div",MA,a.toDisplayString(s.label)+":",1),a.createElementVNode("div",TA,[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",DA,[a.renderSlot(i.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),LA={class:"placeholder-glow"},BA={class:"page-card"},FA={class:"row hide-to-print card-header mx-0 w-100"},_A={class:"col"},PA={class:"row flex-nowrap align-items-center"},NA={class:"col-auto"},IA={key:0,class:"col-auto"},HA={class:"row",style:{padding:"20px"}},VA={class:"d-flex align-items-start"},zA={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},jA=["onClick"],WA={class:"tab-content",id:"v-pills-tabContent"},UA={key:0,class:"title"},GA={key:1},YA={key:0},QA={key:0},KA=["title"],JA={key:2},qA={class:"row"},$A={class:"col-12"},ZA=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",LA,[...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",BA,[a.createElementVNode("div",FA,[a.createElementVNode("div",_A,[a.createElementVNode("div",PA,[a.createElementVNode("div",NA,[l.value?a.renderSlot(d.$slots,"header",{key:0},void 0,!0):a.createCommentVNode("",!0)])])]),d.actionLinks.length>0?(a.openBlock(),a.createElementBlock("div",IA,[a.createVNode(Fo,{title:d.actionsTitle,links:d.actionLinks,onClick:o},null,8,["title","links"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",HA,[a.createElementVNode("div",VA,[a.createElementVNode("div",zA,[(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,jA)),[[a.vShow,p.navLink]])),128))]),a.createElementVNode("div",WA,[(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",UA,a.toDisplayString(x.subtitle)+": ",1)):a.createCommentVNode("",!0),!x.type||x.type==="text"?(a.openBlock(),a.createElementBlock("div",GA,[typeof x.text=="string"?(a.openBlock(),a.createElementBlock("div",YA,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",QA,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,KA)):a.createCommentVNode("",!0)]))),128)):a.createCommentVNode("",!0)])):x.type==="custom"&&x.slotName?(a.openBlock(),a.createElementBlock("div",JA,[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(_o,{class:"mt-3"}),a.createElementVNode("div",qA,[a.createElementVNode("div",$A,[a.renderSlot(d.$slots,"footer",{},void 0,!0)])])],64)):a.createCommentVNode("",!0)])],512),[[a.vShow,!d.isLoading]])]))}}),[["__scopeId","data-v-57cc294f"]]),XA={key:0,class:"row w-100 parent"},eE={class:"col-12 wrapper w-100"},tE=["innerHTML"],Qc={__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",XA,[a.createElementVNode("div",eE,[a.createElementVNode("div",{class:a.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,tE),a.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):a.createCommentVNode("",!0)}},iE={key:0,class:"row","data-test":"ErrorMessageComponent"},nE={class:"col-12",id:"alert"},rE={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},sE=["innerHTML"],aE=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",iE,[a.createElementVNode("div",nE,[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",rE)):a.createCommentVNode("",!0),r.asHtml?(a.openBlock(),a.createElementBlock("div",{key:1,innerHTML:i.value},null,8,sE)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(i.value),1)],64))],2)])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),oE={class:"accordion-header",style:{background:"transparent"}},lE=["aria-expanded","aria-controls"],uE={key:0},cE=["id"],dE={class:"accordion-body px-0"},hE=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",oE,[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,lE)]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[o("accordion-body")?(a.openBlock(),a.createElementBlock("div",uE,[a.withDirectives(a.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[a.createElementVNode("div",dE,[a.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,cE),[[a.vShow,!u.isCollapsed]])])):a.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),fE={class:"accordion-header",style:{background:"transparent"}},pE=["onClick"],mE={class:"d-flex align-items-center w-100"},gE={class:"d-flex align-items-center flex-grow-1"},bE=["value","id","onChange"],vE={class:"form-check-label ps-2 text-body flex-grow-1"},yE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},wE={class:"col d-flex flex-wrap px-4"},CE={class:"form-check"},AE=["value","id"],EE=["for"],kE=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",fE,[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",mE,[a.createElementVNode("div",gE,[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,bE),[[a.vModelCheckbox,s.value]]),a.createElementVNode("span",vE,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,pE)]),a.withDirectives(a.createElementVNode("div",yE,[a.createElementVNode("div",wE,[(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",CE,[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,AE),[[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,EE)])]))),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 SE=class Rd 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 Rd(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 SE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var xE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class mr extends Ve{static moduleName="accessor";static accessors=xE;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":mr.accessors[e]?t=mr.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 RE={method:"GET"};function Po(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Po(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Po(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function ME(n){var e=Po(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function Kc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+ME(t)),n}function TE(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 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}var DE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=No(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=RE;static defaultURLGenerator=Kc;static defaultLoaderPromise=TE;static contentTypeFormatters=DE;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 OE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},LE={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=Bo(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 te(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(),ie()):me(B);break;case 27:B.preventDefault(),ie();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+=Sy.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)&&Ey(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";Mo.filter(function(Ce){return t.config[Ce]!==void 0}).forEach(function(Ce){t.config[Ce]=To(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)Mo.indexOf(be)>-1?t.config[be]=To(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=Ic(t),t.parseDate=Oo({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,mx){return Di+mx.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 ie(){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=Nc(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)&&ie()}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 _()}):Mo.indexOf(B)>-1&&(t.config[B]=To(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=pr(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=Ry(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=Oo({}),ot.formatDate=Ic({}),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:{}},My=An.exports,Vc;function Ty(){return Vc||(Vc=1,(function(n,e){(function(t,i){i(e)})(My,(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 Dy=Ty();const Oy=["value","id","name","disabled","required","placeholder"],Ly=["title"],By=["title"],Fy=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"?Dy.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,Oy)],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,Ly)):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,By),a.createVNode(ki,{errors:f.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-a8bbc430"]]);function _y(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 Py=["disabled"],Ny={key:1,class:"bi bi-three-dots-vertical"},Iy=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}=_y(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(Dr,{key:0,isSmall:!0})):(a.openBlock(),a.createElementBlock("i",Ny))],8,Py),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(_c,{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 Hy(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}`),te=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,[te.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,[te.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,[te.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,[te.value]:null,[X.value]:null};R.value=A,z.value=[]},q=async ge=>{T.value||(Fe(ge),ge&&await le(ge))},ie=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 ie(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,[te.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,[te.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[te.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:te,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:ie,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 Vy={class:"address-form"},zy={class:"row"},jy={class:"form-label"},Wy={class:"form-label"},Uy={class:"form-label"},Gy={class:"form-label"},Yy={class:"form-label"},Qy={class:"form-label"},Ky=["value","disabled"],Jy={class:"form-label"},qy=["value","disabled"],$y={class:"form-label"},Zy=["value","disabled"],Xy={key:0,class:"mt-3"},ew={class:"alert alert-info"},tw=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:te,autoFillForm:X,autoFillFormSkipReset:Z}=Hy(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)},ie=oe=>{W(oe)},me=oe=>{H(oe)},de=oe=>{te(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",Vy,[a.createElementVNode("div",zy,[oe.loadCountries?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",jy,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",Wy,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",Uy,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",Gy,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",Yy,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",Qy,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:ie},null,40,Ky)],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",Jy,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,qy)],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",$y,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,Zy)],2)):a.createCommentVNode("",!0)],64))]),oe.showFullAddress&&a.unref(V)?(a.openBlock(),a.createElementBlock("div",Xy,[a.createElementVNode("div",ew,[Se[0]||(Se[0]=a.createElementVNode("strong",null,"Полный адрес:",-1)),a.createTextVNode(" "+a.toDisplayString(a.unref(V)),1)])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-dfe07190"]]),iw={class:"age-from-to-form"},nw={class:"form-group"},rw={key:0,class:"form-label mb-2"},sw={class:"row align-items-center mb-2"},aw={key:0,class:"col-auto"},ow={class:"form-label mb-0"},lw={class:"col"},uw={class:"col"},cw={class:"row align-items-center mb-2"},dw={key:0,class:"col-auto"},hw={class:"form-label mb-0"},fw={class:"col"},pw={class:"col"},mw=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",iw,[a.createElementVNode("div",nw,[m.title?(a.openBlock(),a.createElementBlock("label",rw,a.toDisplayString(m.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",sw,[c.value?(a.openBlock(),a.createElementBlock("div",aw,[a.createElementVNode("label",ow,a.toDisplayString(c.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",lw,[a.createVNode(or,{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",uw,[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",cw,[d.value?(a.openBlock(),a.createElementBlock("div",dw,[a.createElementVNode("label",hw,a.toDisplayString(d.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",fw,[a.createVNode(or,{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",pw,[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"]]),gw={key:0,class:"r3ui-modal-wrapper"},bw={class:"modal-header pb-4 border-bottom-0"},vw={key:0,class:"modal-title"},yw={key:0,class:"modal-body pt-0"},ww={class:"modal-body-content"},Cw={key:1,class:"modal-footer row justify-content-start"},Aw={class:"modal-footer-content"},zc=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",gw,[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",bw,[n.title?(a.openBlock(),a.createElementBlock("h4",vw,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",yw,[a.createElementVNode("div",ww,[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",Cw,[a.createElementVNode("div",Aw,[a.renderSlot(x.$slots,"modal-footer"),a.renderSlot(x.$slots,"footer")])])):a.createCommentVNode("",!0)],4)],2)])):a.createCommentVNode("",!0)]))}}),Ew="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVcg8fRXbzl8hF9wirpVItF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ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",Rw={class:"row mb-3 flex-column mx-0"},Mw={class:"col-auto mb-3"},Tw={class:"image-container",style:{width:"90px",height:"90px"}},Dw=["src","alt"],Ow=["src"],Lw=["src"],Bw=["src"],Fw=["src"],_w={class:"col"},Pw={class:"confirmation-content"},Nw={key:0,class:"mb-3"},Iw={key:1,class:"text-muted"},Hw={key:0,class:"row"},Vw={class:"col-auto"},zw=["disabled"],jw={class:"col"},Ww=["disabled"],Uw={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},Gw=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(zc,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":a.withCtx(()=>[a.createElementVNode("div",Rw,[a.createElementVNode("div",Mw,[a.createElementVNode("div",Tw,[d.imageSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,Dw)):d.mode==="success"?(a.openBlock(),a.createElementBlock("img",{key:1,class:"w-100",src:a.unref(xw),alt:"Успех",onError:c},null,40,Ow)):d.mode==="warning"?(a.openBlock(),a.createElementBlock("img",{key:2,class:"w-100",src:a.unref(Sw),alt:"Предупреждение",onError:c},null,40,Lw)):d.mode==="error"?(a.openBlock(),a.createElementBlock("img",{key:3,class:"w-100",src:a.unref(kw),alt:"Ошибка",onError:c},null,40,Bw)):(a.openBlock(),a.createElementBlock("img",{key:4,class:"w-100",src:a.unref(Ew),alt:"Подтверждение",onError:c},null,40,Fw))])]),a.createElementVNode("div",_w,[a.createElementVNode("div",Pw,[d.message?(a.openBlock(),a.createElementBlock("h5",Nw,a.toDisplayString(d.message),1)):a.createCommentVNode("",!0),d.description?(a.openBlock(),a.createElementBlock("p",Iw,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",Hw,[a.createElementVNode("div",Vw,[d.mode==="confirmation"?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light",onClick:u,disabled:d.loading},a.toDisplayString(d.cancelText),9,zw)):a.createCommentVNode("",!0)]),a.createElementVNode("div",jw,[a.createElementVNode("button",{class:a.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(a.openBlock(),a.createElementBlock("span",Uw)):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o()),1)],10,Ww)])])):a.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),Yw={key:0,class:"filter-modal-wrapper"},Qw={class:"filter-modal-dialog"},Kw={class:"filter-modal-content"},Jw={class:"filter-modal-header"},qw={key:0,class:"filter-modal-title"},$w={class:"filter-modal-body"},Zw={class:"filter-modal-footer"},Xw=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",Yw,[a.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),a.createElementVNode("div",Qw,[a.createElementVNode("div",Kw,[a.createElementVNode("div",Jw,[o.title?(a.openBlock(),a.createElementBlock("h4",qw,a.toDisplayString(o.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),a.createElementVNode("div",$w,[a.renderSlot(o.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",Zw,[a.renderSlot(o.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),eC={key:0,class:"px-0"},tC={class:"modal-dialog modal-dialog-centered modal-xl"},iC={class:"modal-content py-2 px-4"},nC={class:"modal-header mb-3"},rC={class:"modal-title"},sC={class:"modal-body row"},aC={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},jc=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",eC,[a.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),a.createElementVNode("div",tC,[a.createElementVNode("div",iC,[a.createElementVNode("div",nC,[a.createElementVNode("h3",rC,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",sC,[a.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",aC,[a.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),oC={class:"row mb-4 mx-0","data-test":"PageTitle"},lC={class:"col-12"},uC={class:"row align-items-center"},cC={class:"col-auto"},dC={class:"col d-flex justify-content-end"},hC=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",oC,[a.createElementVNode("div",lC,[a.createElementVNode("div",uC,[a.createElementVNode("div",cC,[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",dC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),fC={class:"card-body"},pC={class:"card-text"},mC=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",fC,[a.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),a.createElementVNode("p",pC,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),gC={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},bC=a.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("footer",gC,a.toDisplayString(e.copyrightText)+" "+a.toDisplayString(a.unref(Ae)().year()),1))}}),vC={class:"custom-dropdown"},yC={style:{"border-bottom":"2px solid #000"}},wC={class:"dropdown-list-wrapper"},CC={key:0,class:"custom-dropdown-menu"},AC=["onMousedown"],Fo=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",vC,[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",yC,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",wC,[t.value?(a.openBlock(),a.createElementBlock("ul",CC,[(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,AC))]))),128))])):a.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-2e8e004b"]]),EC="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+/vrr6pkYNKfISTMnsG27KeXmJNdsjFKpdOsMTJpbFM7bgB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LlxO6zLiahow1dda82APfRT/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",kC=["src","alt"],Wc=Ie(a.defineComponent({__name:"Logo",props:{src:{default:EC},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,kC),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"]]),SC={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},xC={class:"row align-items-center"},RC={class:"col-auto pe-0"},MC={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},TC={class:"row"},DC={class:"col-auto d-flex align-items-center"},OC={key:1,class:"text-muted"},LC={class:"col-auto"},BC=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",SC,[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",xC,[a.createElementVNode("div",RC,[a.renderSlot(s.$slots,"logo",{},()=>[a.createVNode(Wc,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),a.createElementVNode("div",MC,a.toDisplayString(t.brandText),1)])]),a.createElementVNode("div",TC,[a.createElementVNode("div",DC,[t.isAuthenticated?(a.openBlock(),a.createBlock(Fo,{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",OC,a.toDisplayString(t.loginText),1))]),a.createElementVNode("div",LC,[a.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-9b51d3e7"]]),FC={class:"col-12 divider divider__wrapper","data-test":"Divider"},_o={__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",FC,[a.createElementVNode("div",{class:a.normalizeClass(e.className),style:a.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},_C=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}},PC={key:0},NC=["href","target","rel"],IC=["innerHTML"],HC={key:1},VC=["id"],zC=["innerHTML"],jC=["id"],WC={class:"accordion-body"},Uc=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",PC,[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,IC),a.createElementVNode("span",null,a.toDisplayString(n.sidebarLink.label),1)],2)):a.createCommentVNode("",!0)],8,NC)])),n.sidebarLink.childrens?.length?(a.openBlock(),a.createElementBlock("div",HC,[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,zC),a.createTextVNode(" "+a.toDisplayString(n.sidebarLink.label),1)],2)],8,VC),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",WC,[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,jC)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-0a6fd930"]]),UC={key:0},GC={key:0},YC=["title"],QC=["innerHTML"],KC={key:1},JC={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},qC={class:"hidden-div"},$C={key:1},ZC=["href","target","rel"],XC=["title"],eA=["innerHTML"],tA={key:0,class:"ms-2"},iA={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},nA={key:0,class:"ms-2"},Gc=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",UC,[n.link.childrens?.length?(a.openBlock(),a.createElementBlock("div",GC,[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,QC)):(a.openBlock(),a.createElementBlock("span",KC,a.toDisplayString(n.link.label),1))],10,YC),a.unref(r)&&a.unref(r)[n.link.level]===n.link.uniqueKey?(a.openBlock(),a.createElementBlock("div",JC,[a.createElementVNode("div",qC,[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",$C,[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,eA),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",tA,"↗")):a.createCommentVNode("",!0)],8,XC)):(a.openBlock(),a.createElementBlock("button",iA,[a.createElementVNode("span",null,a.toDisplayString(n.link.label),1),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",nA,"↗")):a.createCommentVNode("",!0)]))],8,ZC)]))])):a.createCommentVNode("",!0)}}}),[["__scopeId","data-v-6d9f8db2"]]),rA={key:0},sA={class:"accordion accordion-flush",id:"accordionMenu"},aA={key:1},oA={class:"row"},lA={class:"col-12"},uA={class:"sidebar-footer p-3"},Yc=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}=_C(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",rA,[a.createElementVNode("div",sA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Uc,{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",aA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),c=>(a.openBlock(),a.createElementBlock("div",{key:c.uniqueKey},[a.createVNode(Gc,{link:c,onNavigate:u[1]||(u[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),a.createElementVNode("div",oA,[a.createElementVNode("div",lA,[a.createVNode(_o)])]),a.createElementVNode("div",uA,[a.renderSlot(l.$slots,"footer")])],2))}}),cA=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}},dA={class:"container-fluid p-0"},hA={class:"py-4",style:{"min-height":"90vh"}},fA=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}=cA(a.computed(()=>t.isAuthenticated));return(u,c)=>(a.openBlock(),a.createElementBlock("div",dA,[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(Yc,{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",hA,[a.renderSlot(u.$slots,"breadcrumbs"),a.renderSlot(u.$slots,"default")])],4)],2)]))}}),pA={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},mA={class:"col"},gA={"aria-label":"breadcrumb"},bA={class:"breadcrumb row"},vA=["aria-current"],yA=["href","onClick"],wA={key:1,class:"text-nowrap"},CA=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",pA,[a.createElementVNode("div",mA,[a.createElementVNode("nav",gA,[a.createElementVNode("ol",bA,[(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",wA,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,yA))],10,vA))),128))])])])]))}}),[["__scopeId","data-v-cff07bcc"]]),AA=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))}}),EA={key:0,class:"card-header"},kA={class:"card-title mb-0"},SA={class:"card-body"},xA={class:"row"},RA={class:"row align-items-center"},MA={class:"col-auto label pe-0"},TA={class:"col-auto"},DA={key:0,class:"mt-3"},OA=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",EA,[a.createElementVNode("h5",kA,a.toDisplayString(i.title),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",SA,[a.createElementVNode("div",xA,[(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",RA,[a.createElementVNode("div",MA,a.toDisplayString(s.label)+":",1),a.createElementVNode("div",TA,[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",DA,[a.renderSlot(i.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),LA={class:"placeholder-glow"},BA={class:"page-card"},FA={class:"row hide-to-print card-header mx-0 w-100"},_A={class:"col"},PA={class:"row flex-nowrap align-items-center"},NA={class:"col-auto"},IA={key:0,class:"col-auto"},HA={class:"row",style:{padding:"20px"}},VA={class:"d-flex align-items-start"},zA={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},jA=["onClick"],WA={class:"tab-content",id:"v-pills-tabContent"},UA={key:0,class:"title"},GA={key:1},YA={key:0},QA={key:0},KA=["title"],JA={key:2},qA={class:"row"},$A={class:"col-12"},ZA=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",LA,[...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",BA,[a.createElementVNode("div",FA,[a.createElementVNode("div",_A,[a.createElementVNode("div",PA,[a.createElementVNode("div",NA,[l.value?a.renderSlot(d.$slots,"header",{key:0},void 0,!0):a.createCommentVNode("",!0)])])]),d.actionLinks.length>0?(a.openBlock(),a.createElementBlock("div",IA,[a.createVNode(Fo,{title:d.actionsTitle,links:d.actionLinks,onClick:o},null,8,["title","links"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",HA,[a.createElementVNode("div",VA,[a.createElementVNode("div",zA,[(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,jA)),[[a.vShow,p.navLink]])),128))]),a.createElementVNode("div",WA,[(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",UA,a.toDisplayString(x.subtitle)+": ",1)):a.createCommentVNode("",!0),!x.type||x.type==="text"?(a.openBlock(),a.createElementBlock("div",GA,[typeof x.text=="string"?(a.openBlock(),a.createElementBlock("div",YA,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",QA,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,KA)):a.createCommentVNode("",!0)]))),128)):a.createCommentVNode("",!0)])):x.type==="custom"&&x.slotName?(a.openBlock(),a.createElementBlock("div",JA,[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(_o,{class:"mt-3"}),a.createElementVNode("div",qA,[a.createElementVNode("div",$A,[a.renderSlot(d.$slots,"footer",{},void 0,!0)])])],64)):a.createCommentVNode("",!0)])],512),[[a.vShow,!d.isLoading]])]))}}),[["__scopeId","data-v-57cc294f"]]),XA={key:0,class:"row w-100 parent"},eE={class:"col-12 wrapper w-100"},tE=["innerHTML"],Qc={__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",XA,[a.createElementVNode("div",eE,[a.createElementVNode("div",{class:a.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,tE),a.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):a.createCommentVNode("",!0)}},iE={key:0,class:"row","data-test":"ErrorMessageComponent"},nE={class:"col-12",id:"alert"},rE={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},sE=["innerHTML"],aE=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",iE,[a.createElementVNode("div",nE,[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",rE)):a.createCommentVNode("",!0),r.asHtml?(a.openBlock(),a.createElementBlock("div",{key:1,innerHTML:i.value},null,8,sE)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(i.value),1)],64))],2)])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),oE={class:"accordion-header",style:{background:"transparent"}},lE=["aria-expanded","aria-controls"],uE={key:0},cE=["id"],dE={class:"accordion-body px-0"},hE=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",oE,[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,lE)]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[o("accordion-body")?(a.openBlock(),a.createElementBlock("div",uE,[a.withDirectives(a.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[a.createElementVNode("div",dE,[a.renderSlot(u.$slots,"accordion-body",{},void 0,!0)])],8,cE),[[a.vShow,!u.isCollapsed]])])):a.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),fE={class:"accordion-header",style:{background:"transparent"}},pE=["onClick"],mE={class:"d-flex align-items-center w-100"},gE={class:"d-flex align-items-center flex-grow-1"},bE=["value","id","onChange"],vE={class:"form-check-label ps-2 text-body flex-grow-1"},yE={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},wE={class:"col d-flex flex-wrap px-4"},CE={class:"form-check"},AE=["value","id"],EE=["for"],kE=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",fE,[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",mE,[a.createElementVNode("div",gE,[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,bE),[[a.vModelCheckbox,s.value]]),a.createElementVNode("span",vE,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,pE)]),a.withDirectives(a.createElementVNode("div",yE,[a.createElementVNode("div",wE,[(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",CE,[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,AE),[[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,EE)])]))),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 SE=class Rd 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 Rd(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 SE(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var xE={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class mr extends Ve{static moduleName="accessor";static accessors=xE;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":mr.accessors[e]?t=mr.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 RE={method:"GET"};function Po(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(Po(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(Po(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function ME(n){var e=Po(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function Kc(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+ME(t)),n}function TE(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 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}var DE={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=No(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=RE;static defaultURLGenerator=Kc;static defaultLoaderPromise=TE;static contentTypeFormatters=DE;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 OE={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},LE={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}},BE={copyToClipboard:["ctrl + 67","meta + 67"]},FE={copyToClipboard:function(n){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},_E={keybindings:{bindings:BE,actions:FE}};class gr extends Ve{static moduleName="clipboard";static moduleExtensions=_E;static pasteActions=OE;static pasteParsers=LE;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=gr.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=gr.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 PE{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 Jc{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 Jc(this)),this.component}}class qc{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 $c={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=$c;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 qc(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof Jt?this.parent.getComponent():!1}}class br{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 br(this)),this.component}}var NE={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=NE;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 PE(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 IE 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 br?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 HE(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 VE(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 zE(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 jE(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 WE(n,e,t){this.modExists("export",!0)&&t(this.modules.export.generateHTMLTable(n),"text/html")}function UE(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(`
|
|
@@ -51,4 +51,4 @@ Data: `,e),!1}loadData(e){var t={data:e};this.loadSheet(this.newSheet(t))}de
|
|
|
51
51
|
Expecting: array
|
|
52
52
|
Received: `,typeof e,`
|
|
53
53
|
Data: `,e)}_wipeElements(){this.dispatch("rows-wipe"),this.destroy(),this.adjustTableSize(),this.dispatch("rows-wiped")}destroy(){this.rows.forEach(e=>{e.wipe()}),this.rows=[],this.activeRows=[],this.activeRowsPipeline=[],this.activeRowsCount=0,this.displayRows=[],this.displayRowsCount=0}deleteRow(e,t){var i=this.rows.indexOf(e),r=this.activeRows.indexOf(e);r>-1&&this.activeRows.splice(r,1),i>-1&&this.rows.splice(i,1),this.setActiveRows(this.activeRows),this.displayRowIterator(s=>{var o=s.indexOf(e);o>-1&&s.splice(o,1)}),t||this.reRenderInPosition(),this.regenerateRowPositions(),this.dispatchExternal("rowDeleted",e.getComponent()),this.displayRowsCount||this.tableEmpty(),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.getData())}addRow(e,t,i,r){var s=this.addRowActual(e,t,i,r);return s}addRows(e,t,i,r){var s=[];return new Promise((o,l)=>{t=this.findAddRowPos(t),Array.isArray(e)||(e=[e]),(typeof i>"u"&&t||typeof i<"u"&&!t)&&e.reverse(),e.forEach((u,c)=>{var d=this.addRow(u,t,i,!0);s.push(d),this.dispatch("row-added",d,u,t,i)}),this.refreshActiveData(r?"displayPipeline":!1,!1,!0),this.regenerateRowPositions(),this.displayRowsCount&&this._clearPlaceholder(),o(s)})}findAddRowPos(e){return typeof e>"u"&&(e=this.table.options.addRowPos),e==="pos"&&(e=!0),e==="bottom"&&(e=!1),e}addRowActual(e,t,i,r){var s=e instanceof pt?e:new pt(e||{},this),o=this.findAddRowPos(t),l=-1,u,c;return i||(c=this.chain("row-adding-position",[s,o],null,{index:i,top:o}),i=c.index,o=c.top),typeof i<"u"&&(i=this.findRow(i)),i=this.chain("row-adding-index",[s,i,o],null,i),i&&(l=this.rows.indexOf(i)),i&&l>-1?(u=this.activeRows.indexOf(i),this.displayRowIterator(function(d){var f=d.indexOf(i);f>-1&&d.splice(o?f:f+1,0,s)}),u>-1&&this.activeRows.splice(o?u:u+1,0,s),this.rows.splice(o?l:l+1,0,s)):o?(this.displayRowIterator(function(d){d.unshift(s)}),this.activeRows.unshift(s),this.rows.unshift(s)):(this.displayRowIterator(function(d){d.push(s)}),this.activeRows.push(s),this.rows.push(s)),this.setActiveRows(this.activeRows),this.dispatchExternal("rowAdded",s.getComponent()),this.subscribedExternal("dataChanged")&&this.dispatchExternal("dataChanged",this.table.rowManager.getData()),r||this.reRenderInPosition(),s}moveRow(e,t,i){this.dispatch("row-move",e,t,i),this.moveRowActual(e,t,i),this.regenerateRowPositions(),this.dispatch("row-moved",e,t,i),this.dispatchExternal("rowMoved",e.getComponent())}moveRowActual(e,t,i){this.moveRowInArray(this.rows,e,t,i),this.moveRowInArray(this.activeRows,e,t,i),this.displayRowIterator(r=>{this.moveRowInArray(r,e,t,i)}),this.dispatch("row-moving",e,t,i)}moveRowInArray(e,t,i,r){var s,o,l,u;if(t!==i&&(s=e.indexOf(t),s>-1&&(e.splice(s,1),o=e.indexOf(i),o>-1?r?e.splice(o+1,0,t):e.splice(o,0,t):e.splice(s,0,t)),e===this.getDisplayRows())){l=s<o?s:o,u=o>s?o:s+1;for(let c=l;c<=u;c++)e[c]&&this.styleRow(e[c],c)}}clearData(){this.setData([])}getRowIndex(e){return this.findRowIndex(e,this.rows)}getDisplayRowIndex(e){var t=this.getDisplayRows().indexOf(e);return t>-1?t:!1}nextDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i!==!1&&i<this.displayRowsCount-1&&(r=this.getDisplayRows()[i+1]),r&&(!(r instanceof pt)||r.type!="row")?this.nextDisplayRow(r,t):r}prevDisplayRow(e,t){var i=this.getDisplayRowIndex(e),r=!1;return i&&(r=this.getDisplayRows()[i-1]),t&&r&&(!(r instanceof pt)||r.type!="row")?this.prevDisplayRow(r,t):r}findRowIndex(e,t){var i;return e=this.findRow(e),e&&(i=t.indexOf(e),i>-1)?i:!1}getData(e,t){var i=[],r=this.getRows(e);return r.forEach(function(s){s.type=="row"&&i.push(s.getData(t||"data"))}),i}getComponents(e){var t=[],i=this.getRows(e);return i.forEach(function(r){t.push(r.getComponent())}),t}getDataCount(e){var t=this.getRows(e);return t.length}scrollHorizontal(e){this.scrollLeft=e,this.element.scrollLeft=e,this.dispatch("scroll-horizontal",e)}registerDataPipelineHandler(e,t){typeof t<"u"?(this.dataPipeline.push({handler:e,priority:t}),this.dataPipeline.sort((i,r)=>i.priority-r.priority)):console.error("Data pipeline handlers must have a priority in order to be registered")}registerDisplayPipelineHandler(e,t){typeof t<"u"?(this.displayPipeline.push({handler:e,priority:t}),this.displayPipeline.sort((i,r)=>i.priority-r.priority)):console.error("Display pipeline handlers must have a priority in order to be registered")}refreshActiveData(e,t,i){var r=this.table,s="",o=0,l=["all","dataPipeline","display","displayPipeline","end"];if(!this.table.destroyed){if(typeof e=="function")if(o=this.dataPipeline.findIndex(u=>u.handler===e),o>-1)s="dataPipeline",t&&(o==this.dataPipeline.length-1?s="display":o++);else if(o=this.displayPipeline.findIndex(u=>u.handler===e),o>-1)s="displayPipeline",t&&(o==this.displayPipeline.length-1?s="end":o++);else{console.error("Unable to refresh data, invalid handler provided",e);return}else s=e||"all",o=0;if(this.redrawBlock){(!this.redrawBlockRestoreConfig||this.redrawBlockRestoreConfig&&(this.redrawBlockRestoreConfig.stage===s&&o<this.redrawBlockRestoreConfig.index||l.indexOf(s)<l.indexOf(this.redrawBlockRestoreConfig.stage)))&&(this.redrawBlockRestoreConfig={handler:e,skipStage:t,renderInPosition:i,stage:s,index:o});return}else Ze.elVisible(this.element)?i?this.reRenderInPosition(this.refreshPipelines.bind(this,e,s,o,i)):(this.refreshPipelines(e,s,o,i),e||this.table.columnManager.renderer.renderColumns(),this.renderTable(),r.options.layoutColumnsOnNewData&&this.table.columnManager.redraw(!0)):this.refreshPipelines(e,s,o,i),this.dispatch("data-refreshed")}}refreshPipelines(e,t,i,r){switch(this.dispatch("data-refreshing"),(!e||!this.activeRowsPipeline[0])&&(this.activeRowsPipeline[0]=this.rows.slice(0)),t){case"all":case"dataPipeline":for(let s=i;s<this.dataPipeline.length;s++){let o=this.dataPipeline[s].handler(this.activeRowsPipeline[s].slice(0));this.activeRowsPipeline[s+1]=o||this.activeRowsPipeline[s].slice(0)}this.setActiveRows(this.activeRowsPipeline[this.dataPipeline.length]);case"display":i=0,this.resetDisplayRows();case"displayPipeline":for(let s=i;s<this.displayPipeline.length;s++){let o=this.displayPipeline[s].handler((s?this.getDisplayRows(s-1):this.activeRows).slice(0),r);this.setDisplayRows(o||this.getDisplayRows(s-1).slice(0),s)}case"end":this.regenerateRowPositions()}this.getDisplayRows().length&&this._clearPlaceholder()}regenerateRowPositions(){var e=this.getDisplayRows(),t=1;e.forEach(i=>{i.type==="row"&&(i.setPosition(t),t++)})}setActiveRows(e){this.activeRows=this.activeRows=Object.assign([],e),this.activeRowsCount=this.activeRows.length}resetDisplayRows(){this.displayRows=[],this.displayRows.push(this.activeRows.slice(0)),this.displayRowsCount=this.displayRows[0].length}setDisplayRows(e,t){this.displayRows[t]=e,t==this.displayRows.length-1&&(this.displayRowsCount=this.displayRows[this.displayRows.length-1].length)}getDisplayRows(e){return typeof e>"u"?this.displayRows.length?this.displayRows[this.displayRows.length-1]:[]:this.displayRows[e]||[]}getVisibleRows(e,t){var i=Object.assign([],this.renderer.visibleRows(!t));return e&&(i=this.chain("rows-visible",[t],i,i)),i}displayRowIterator(e){this.activeRowsPipeline.forEach(e),this.displayRows.forEach(e),this.displayRowsCount=this.displayRows[this.displayRows.length-1].length}getRows(e){var t=[];switch(e){case"active":t=this.activeRows;break;case"display":t=this.table.rowManager.getDisplayRows();break;case"visible":t=this.getVisibleRows(!1,!0);break;default:t=this.chain("rows-retrieve",e,null,this.rows)||this.rows}return t}reRenderInPosition(e){this.redrawBlock?e?e():this.redrawBlockRenderInPosition=!0:(this.dispatchExternal("renderStarted"),this.renderer.rerenderRows(e),this.fixedHeight||this.adjustTableSize(),this.scrollBarCheck(),this.dispatchExternal("renderComplete"))}scrollBarCheck(){var e=0;this.element.scrollHeight>this.element.clientHeight&&(e=this.element.offsetWidth-this.element.clientWidth),e!==this.scrollbarWidth&&(this.scrollbarWidth=e,this.dispatch("scrollbar-vertical",e))}initializeRenderer(){var e,t={virtual:Yk,basic:Gk};typeof this.table.options.renderVertical=="string"?e=t[this.table.options.renderVertical]:e=this.table.options.renderVertical,e?(this.renderMode=this.table.options.renderVertical,this.renderer=new e(this.table,this.element,this.tableElement),this.renderer.initialize(),(this.table.element.clientHeight||this.table.options.height)&&!(this.table.options.minHeight&&this.table.options.maxHeight)?this.fixedHeight=!0:this.fixedHeight=!1):console.error("Unable to find matching renderer:",this.table.options.renderVertical)}getRenderMode(){return this.renderMode}renderTable(){this.dispatchExternal("renderStarted"),this.element.scrollTop=0,this._clearTable(),this.displayRowsCount?(this.renderer.renderRows(),this.firstRender&&(this.firstRender=!1,this.fixedHeight||this.adjustTableSize(),this.layoutRefresh(!0))):this.renderEmptyScroll(),this.fixedHeight||this.adjustTableSize(),this.dispatch("table-layout"),this.displayRowsCount||this._showPlaceholder(),this.scrollBarCheck(),this.dispatchExternal("renderComplete")}renderEmptyScroll(){this.placeholder?this.tableElement.style.display="none":this.tableElement.style.minWidth=this.table.columnManager.getWidth()+"px"}_clearTable(){this._clearPlaceholder(),this.scrollTop=0,this.scrollLeft=0,this.renderer.clearRows()}tableEmpty(){this.renderEmptyScroll(),this._showPlaceholder()}checkPlaceholder(){this.displayRowsCount?this._clearPlaceholder():this.tableEmpty()}_showPlaceholder(){this.placeholder&&(this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.initializePlaceholder(),this.placeholder.setAttribute("tabulator-render-mode",this.renderMode),this.getElement().appendChild(this.placeholder),this._positionPlaceholder(),this.adjustTableSize())}_clearPlaceholder(){this.placeholder&&this.placeholder.parentNode&&this.placeholder.parentNode.removeChild(this.placeholder),this.tableElement.style.minWidth="",this.tableElement.style.display=""}_positionPlaceholder(){this.placeholder&&this.placeholder.parentNode&&(this.placeholder.style.width=this.table.columnManager.getWidth()+"px",this.placeholderContents.style.width=this.table.rowManager.element.clientWidth+"px",this.placeholderContents.style.marginLeft=this.scrollLeft+"px")}styleRow(e,t){var i=e.getElement();t%2?(i.classList.add("tabulator-row-even"),i.classList.remove("tabulator-row-odd")):(i.classList.add("tabulator-row-odd"),i.classList.remove("tabulator-row-even"))}normalizeHeight(e){this.activeRows.forEach(function(t){t.normalizeHeight(e)})}adjustTableSize(){let e=this.element.clientHeight,t,i=!1;if(this.renderer.verticalFillMode==="fill"){let r=Math.floor(this.table.columnManager.getElement().getBoundingClientRect().height+(this.table.footerManager&&this.table.footerManager.active&&!this.table.footerManager.external?this.table.footerManager.getElement().getBoundingClientRect().height:0));if(this.fixedHeight){t=isNaN(this.table.options.minHeight)?this.table.options.minHeight:this.table.options.minHeight+"px";const s="calc(100% - "+r+"px)";this.element.style.minHeight=t||"calc(100% - "+r+"px)",this.element.style.height=s,this.element.style.maxHeight=s}else this.element.style.height="",this.element.style.height=this.table.element.clientHeight-r+"px",this.element.scrollTop=this.scrollTop;this.renderer.resize(),!this.fixedHeight&&e!=this.element.clientHeight&&(i=!0,this.subscribed("table-resize")?this.dispatch("table-resize"):this.redraw()),this.scrollBarCheck()}return this._positionPlaceholder(),i}reinitialize(){this.rows.forEach(function(e){e.reinitialize(!0)})}blockRedraw(){this.redrawBlock=!0,this.redrawBlockRestoreConfig=!1}restoreRedraw(){this.redrawBlock=!1,this.redrawBlockRestoreConfig?(this.refreshActiveData(this.redrawBlockRestoreConfig.handler,this.redrawBlockRestoreConfig.skipStage,this.redrawBlockRestoreConfig.renderInPosition),this.redrawBlockRestoreConfig=!1):this.redrawBlockRenderInPosition&&this.reRenderInPosition(),this.redrawBlockRenderInPosition=!1}redraw(e){this.adjustTableSize(),this.table.tableWidth=this.table.element.clientWidth,e?this.renderTable():(this.reRenderInPosition(),this.scrollHorizontal(this.scrollLeft))}resetScroll(){if(this.element.scrollLeft=0,this.element.scrollTop=0,this.table.browser==="ie"){var e=document.createEvent("Event");e.initEvent("scroll",!1,!0),this.element.dispatchEvent(e)}else this.element.dispatchEvent(new Event("scroll"))}}class Kk extends dt{constructor(e){super(e),this.active=!1,this.element=this.createElement(),this.containerElement=this.createContainerElement(),this.external=!1}initialize(){this.initializeElement()}createElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer"),e}createContainerElement(){var e=document.createElement("div");return e.classList.add("tabulator-footer-contents"),this.element.appendChild(e),e}initializeElement(){if(this.table.options.footerElement)switch(typeof this.table.options.footerElement){case"string":this.table.options.footerElement[0]==="<"?this.containerElement.innerHTML=this.table.options.footerElement:(this.external=!0,this.containerElement=document.querySelector(this.table.options.footerElement));break;default:this.element=this.table.options.footerElement;break}}getElement(){return this.element}append(e){this.activate(),this.containerElement.appendChild(e),this.table.rowManager.adjustTableSize()}prepend(e){this.activate(),this.element.insertBefore(e,this.element.firstChild),this.table.rowManager.adjustTableSize()}remove(e){e.parentNode.removeChild(e),this.deactivate()}deactivate(e){(!this.element.firstChild||e)&&(this.external||this.element.parentNode.removeChild(this.element),this.active=!1)}activate(){this.active||(this.active=!0,this.external||(this.table.element.appendChild(this.getElement()),this.table.element.style.display=""))}redraw(){this.dispatch("footer-redraw")}}class Jk extends dt{constructor(e){super(e),this.el=null,this.abortClasses=["tabulator-headers","tabulator-table"],this.previousTargets={},this.listeners=["click","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","mouseup","mousedown","touchstart","touchend"],this.componentMap={"tabulator-cell":"cell","tabulator-row":"row","tabulator-group":"group","tabulator-col":"column"},this.pseudoTrackers={row:{subscriber:null,target:null},cell:{subscriber:null,target:null},group:{subscriber:null,target:null},column:{subscriber:null,target:null}},this.pseudoTracking=!1}initialize(){this.el=this.table.element,this.buildListenerMap(),this.bindSubscriptionWatchers()}buildListenerMap(){var e={};this.listeners.forEach(t=>{e[t]={handler:null,components:[]}}),this.listeners=e}bindPseudoEvents(){Object.keys(this.pseudoTrackers).forEach(e=>{this.pseudoTrackers[e].subscriber=this.pseudoMouseEnter.bind(this,e),this.subscribe(e+"-mouseover",this.pseudoTrackers[e].subscriber)}),this.pseudoTracking=!0}pseudoMouseEnter(e,t,i){this.pseudoTrackers[e].target!==i&&(this.pseudoTrackers[e].target&&this.dispatch(e+"-mouseleave",t,this.pseudoTrackers[e].target),this.pseudoMouseLeave(e,t),this.pseudoTrackers[e].target=i,this.dispatch(e+"-mouseenter",t,i))}pseudoMouseLeave(e,t){var i=Object.keys(this.pseudoTrackers),r={row:["cell"],cell:["row"]};i=i.filter(s=>{var o=r[e];return s!==e&&(!o||o&&!o.includes(s))}),i.forEach(s=>{var o=this.pseudoTrackers[s].target;this.pseudoTrackers[s].target&&(this.dispatch(s+"-mouseleave",t,o),this.pseudoTrackers[s].target=null)})}bindSubscriptionWatchers(){var e=Object.keys(this.listeners),t=Object.values(this.componentMap);for(let i of t)for(let r of e){let s=i+"-"+r;this.subscriptionChange(s,this.subscriptionChanged.bind(this,i,r))}this.subscribe("table-destroy",this.clearWatchers.bind(this))}subscriptionChanged(e,t,i){var r=this.listeners[t].components,s=r.indexOf(e),o=!1;i?s===-1&&(r.push(e),o=!0):this.subscribed(e+"-"+t)||s>-1&&(r.splice(s,1),o=!0),(t==="mouseenter"||t==="mouseleave")&&!this.pseudoTracking&&this.bindPseudoEvents(),o&&this.updateEventListeners()}updateEventListeners(){for(let e in this.listeners){let t=this.listeners[e];t.components.length?t.handler||(t.handler=this.track.bind(this,e),this.el.addEventListener(e,t.handler)):t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}track(e,t){var i=t.composedPath&&t.composedPath()||t.path,r=this.findTargets(i);r=this.bindComponents(e,r),this.triggerEvents(e,t,r),this.pseudoTracking&&(e=="mouseover"||e=="mouseleave")&&!Object.keys(r).length&&this.pseudoMouseLeave("none",t)}findTargets(e){var t={};let i=Object.keys(this.componentMap);for(let r of e){let s=r.classList?[...r.classList]:[];if(s.filter(u=>this.abortClasses.includes(u)).length)break;let l=s.filter(u=>i.includes(u));for(let u of l)t[this.componentMap[u]]||(t[this.componentMap[u]]=r)}return t.group&&t.group===t.row&&delete t.row,t}bindComponents(e,t){var i=Object.keys(t).reverse(),r=this.listeners[e],s={},o={},l={};for(let u of i){let c,d=t[u],f=this.previousTargets[u];if(f&&f.target===d)c=f.component;else switch(u){case"row":case"group":(r.components.includes("row")||r.components.includes("cell")||r.components.includes("group"))&&(c=this.table.rowManager.getVisibleRows(!0).find(h=>h.getElement()===d),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[u]=!1));break;case"column":r.components.includes("column")&&(c=this.table.columnManager.findColumn(d));break;case"cell":r.components.includes("cell")&&(s.row instanceof pt?c=s.row.findCell(d):t.row&&console.warn("Event Target Lookup Error - The row this cell is attached to cannot be found, has the table been reinitialized without being destroyed first?"));break}c&&(s[u]=c,l[u]={target:d,component:c})}return this.previousTargets=l,Object.keys(t).forEach(u=>{let c=s[u];o[u]=c}),o}triggerEvents(e,t,i){var r=this.listeners[e];for(let s in i)i[s]&&r.components.includes(s)&&this.dispatch(s+"-"+e,t,i[s])}clearWatchers(){for(let e in this.listeners){let t=this.listeners[e];t.handler&&(this.el.removeEventListener(e,t.handler),t.handler=null)}}}class qk{constructor(e){this.table=e,this.bindings={}}bind(e,t,i){this.bindings[e]||(this.bindings[e]={}),this.bindings[e][t]?console.warn("Unable to bind component handler, a matching function name is already bound",e,t,i):this.bindings[e][t]=i}handle(e,t,i){if(this.bindings[e]&&this.bindings[e][i]&&typeof this.bindings[e][i].bind=="function")return this.bindings[e][i].bind(null,t);i!=="then"&&typeof i=="string"&&!i.startsWith("_")&&this.table.options.debugInvalidComponentFuncs&&console.error("The "+e+" component does not have a "+i+" function, have you checked that you have the correct Tabulator module installed?")}}class $k extends dt{constructor(e){super(e),this.requestOrder=0,this.loading=!1}initialize(){}load(e,t,i,r,s,o){var l=++this.requestOrder;if(this.table.destroyed)return Promise.resolve();if(this.dispatchExternal("dataLoading",e),e&&(e.indexOf("{")==0||e.indexOf("[")==0)&&(e=JSON.parse(e)),this.confirm("data-loading",[e,t,i,s])){this.loading=!0,s||this.alertLoader(),t=this.chain("data-params",[e,i,s],t||{},t||{}),t=this.mapParams(t,this.table.options.dataSendParams);var u=this.chain("data-load",[e,t,i,s],!1,Promise.resolve([]));return u.then(c=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(c)&&typeof c=="object"&&(c=this.mapParams(c,this.objectInvert(this.table.options.dataReceiveParams)));var d=this.chain("data-loaded",[c],null,c);l==this.requestOrder?(this.clearAlert(),d!==!1&&(this.dispatchExternal("dataLoaded",d),this.table.rowManager.setData(d,r,typeof o>"u"?!r:o))):console.warn("Data Load Response Blocked - An active data load request was blocked by an attempt to change table data while the request was being made")}}).catch(c=>{console.error("Data Load Error: ",c),this.dispatchExternal("dataLoadError",c),s||this.alertError(),setTimeout(()=>{this.clearAlert()},this.table.options.dataLoaderErrorTimeout)}).finally(()=>{this.loading=!1})}else return this.dispatchExternal("dataLoaded",e),e||(e=[]),this.table.rowManager.setData(e,r,typeof o>"u"?!r:o),Promise.resolve()}mapParams(e,t){var i={};for(let r in e)i[t.hasOwnProperty(r)?t[r]:r]=e[r];return i}objectInvert(e){var t={};for(let i in e)t[e[i]]=i;return t}blockActiveLoad(){this.requestOrder++}alertLoader(){var e=typeof this.table.options.dataLoader=="function"?this.table.options.dataLoader():this.table.options.dataLoader;e&&this.table.alertManager.alert(this.table.options.dataLoaderLoading||this.langText("data|loading"))}alertError(){this.table.alertManager.alert(this.table.options.dataLoaderError||this.langText("data|error"),"error")}clearAlert(){this.table.alertManager.clear()}}class Zk{constructor(e,t,i){this.table=e,this.events={},this.optionsList=t||{},this.subscriptionNotifiers={},this.dispatch=i?this._debugDispatch.bind(this):this._dispatch.bind(this),this.debug=i}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t){this.events[e]||(this.events[e]=[]),this.events[e].push(t),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e])if(t)if(i=this.events[e].findIndex(r=>r===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}else delete this.events[e];else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift(),i;return this.events[t]&&this.events[t].forEach((r,s)=>{let o=r.apply(this.table,e);s||(i=o)}),i}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="ExternalEvent:"+e[0],(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}}class Xk{constructor(e){this.events={},this.subscriptionNotifiers={},this.dispatch=e?this._debugDispatch.bind(this):this._dispatch.bind(this),this.chain=e?this._debugChain.bind(this):this._chain.bind(this),this.confirm=e?this._debugConfirm.bind(this):this._confirm.bind(this),this.debug=e}subscriptionChange(e,t){this.subscriptionNotifiers[e]||(this.subscriptionNotifiers[e]=[]),this.subscriptionNotifiers[e].push(t),this.subscribed(e)&&this._notifySubscriptionChange(e,!0)}subscribe(e,t,i=1e4){this.events[e]||(this.events[e]=[]),this.events[e].push({callback:t,priority:i}),this.events[e].sort((r,s)=>r.priority-s.priority),this._notifySubscriptionChange(e,!0)}unsubscribe(e,t){var i;if(this.events[e]){if(t)if(i=this.events[e].findIndex(r=>r.callback===t),i>-1)this.events[e].splice(i,1);else{console.warn("Cannot remove event, no matching event found:",e,t);return}}else{console.warn("Cannot remove event, no events set on:",e);return}this._notifySubscriptionChange(e,!1)}subscribed(e){return this.events[e]&&this.events[e].length}_chain(e,t,i,r){var s=i;return Array.isArray(t)||(t=[t]),this.subscribed(e)?(this.events[e].forEach((o,l)=>{s=o.callback.apply(this,t.concat([s]))}),s):typeof r=="function"?r():r}_confirm(e,t){var i=!1;return Array.isArray(t)||(t=[t]),this.subscribed(e)&&this.events[e].forEach((r,s)=>{r.callback.apply(this,t)&&(i=!0)}),i}_notifySubscriptionChange(e,t){var i=this.subscriptionNotifiers[e];i&&i.forEach(r=>{r(t)})}_dispatch(){var e=Array.from(arguments),t=e.shift();this.events[t]&&this.events[t].forEach(i=>{i.callback.apply(this,e)})}_debugDispatch(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._dispatch(...arguments)}_debugChain(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._chain(...arguments)}_debugConfirm(){var e=Array.from(arguments),t=e[0];return e[0]="InternalEvent:"+t,(this.debug===!0||this.debug.includes(t))&&console.log(...e),this._confirm(...arguments)}}class eS extends dt{constructor(e){super(e)}_warnUser(){this.options("debugDeprecation")&&console.warn(...arguments)}check(e,t,i){var r="";return typeof this.options(e)<"u"?(r="Deprecated Setup Option - Use of the %c"+e+"%c option is now deprecated",t?(r=r+", Please use the %c"+t+"%c option instead",this._warnUser(r,"font-weight: bold;","font-weight: normal;","font-weight: bold;","font-weight: normal;"),i&&(this.table.options[t]=this.table.options[e])):this._warnUser(r,"font-weight: bold;","font-weight: normal;"),!1):!0}checkMsg(e,t){return typeof this.options(e)<"u"?(this._warnUser("%cDeprecated Setup Option - Use of the %c"+e+" %c option is now deprecated, "+t,"font-weight: normal;","font-weight: bold;","font-weight: normal;"),!1):!0}msg(e){this._warnUser(e)}}class tS extends dt{constructor(e){super(e),this.deps={},this.props={}}initialize(){this.deps=Object.assign({},this.options("dependencies"))}lookup(e,t,i){if(Array.isArray(e)){for(const s of e){var r=this.lookup(s,t,!0);if(r)break}if(r)return r;this.error(e)}else return t?this.lookupProp(e,t,i):this.lookupKey(e,i)}lookupProp(e,t,i){var r;if(this.props[e]&&this.props[e][t])return this.props[e][t];if(r=this.lookupKey(e,i),r)return this.props[e]||(this.props[e]={}),this.props[e][t]=r[t]||r,this.props[e][t]}lookupKey(e,t){var i;return this.deps[e]?i=this.deps[e]:window[e]?(this.deps[e]=window[e],i=this.deps[e]):t||this.error(e),i}error(e){console.error("Unable to find dependency",e,"Please check documentation and ensure you have imported the required library into your project")}}function iS(n,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function id(n,e){n.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function nS(n,e){var t=0,i=this.table.rowManager.element.clientWidth,r=0,s=!1;n.forEach((o,l)=>{o.widthFixed||o.reinitializeWidth(),(this.table.options.responsiveLayout?o.modules.responsive.visible:o.visible)&&(s=o),o.visible&&(t+=o.getWidth())}),s?(r=i-t+s.getWidth(),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&(s.setWidth(0),this.table.modules.responsiveLayout.update()),r>0?s.setWidth(r):s.reinitializeWidth()):this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function rS(n,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,r=0,s=0,o=0,l=[],u=[],c=0,d=0,f=0;function p(x){var b;return typeof x=="string"?x.indexOf("%")>-1?b=t/100*parseInt(x):b=parseInt(x):b=x,b}function h(x,b,S,C){var m=[],D=0,g=0,M=0,y=s,k=0,w=0,E=[];function v(R){return S*(R.column.definition.widthGrow||1)}function T(R){return p(R.width)-S*(R.column.definition.widthShrink||0)}return x.forEach(function(R,L){var N=C?T(R):v(R);R.column.minWidth>=N?m.push(R):R.column.maxWidth&&R.column.maxWidth<N?(R.width=R.column.maxWidth,b-=R.column.maxWidth,y-=C?R.column.definition.widthShrink||1:R.column.definition.widthGrow||1,y&&(S=Math.floor(b/y))):(E.push(R),w+=C?R.column.definition.widthShrink||1:R.column.definition.widthGrow||1)}),m.length?(m.forEach(function(R){D+=C?R.width-R.column.minWidth:R.column.minWidth,R.width=R.column.minWidth}),g=b-D,M=w?Math.floor(g/w):g,k=h(E,g,M,C)):(k=w?b-Math.floor(b/w)*w:b,E.forEach(function(R){R.width=C?T(R):v(R)})),k}this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update(),this.table.rowManager.element.scrollHeight>this.table.rowManager.element.clientHeight&&(t-=this.table.rowManager.element.offsetWidth-this.table.rowManager.element.clientWidth),n.forEach(function(x){var b,S,C;x.visible&&(b=x.definition.width,S=parseInt(x.minWidth),b?(C=p(b),i+=C>S?C:S,x.definition.widthShrink&&(u.push({column:x,width:C>S?C:S}),c+=x.definition.widthShrink)):(l.push({column:x,width:0}),s+=x.definition.widthGrow||1))}),r=t-i,o=Math.floor(r/s),f=h(l,r,o,!1),l.length&&f>0&&(l[l.length-1].width+=f),l.forEach(function(x){r-=x.width}),d=Math.abs(f)+r,d>0&&c&&(f=h(u,d,Math.floor(d/c),!0)),f&&u.length&&(u[u.length-1].width-=f),l.forEach(function(x){x.column.setWidth(x.width)}),u.forEach(function(x){x.column.setWidth(x.width)})}var sS={fitData:iS,fitDataFill:id,fitDataTable:id,fitDataStretch:nS,fitColumns:rS};class kr extends Ve{static moduleName="layout";static modes=sS;constructor(e){super(e,"layout"),this.mode=null,this.registerTableOption("layout","fitData"),this.registerTableOption("layoutColumnsOnNewData",!1),this.registerColumnOption("widthGrow"),this.registerColumnOption("widthShrink")}initialize(){var e=this.table.options.layout;kr.modes[e]?this.mode=e:(console.warn("Layout Error - invalid mode set, defaulting to 'fitData' : "+e),this.mode="fitData"),this.table.element.setAttribute("tabulator-layout",this.mode),this.subscribe("column-init",this.initializeColumn.bind(this))}initializeColumn(e){e.definition.widthGrow&&(e.definition.widthGrow=Number(e.definition.widthGrow)),e.definition.widthShrink&&(e.definition.widthShrink=Number(e.definition.widthShrink))}getMode(){return this.mode}layout(e){var t=this.table.columnManager.columnsByIndex.find(i=>i.definition.variableHeight||i.definition.formatter==="textarea");this.dispatch("layout-refreshing"),kr.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}}var aS={default:{groups:{item:"item",items:"items"},columns:{},data:{loading:"Loading",error:"Error"},pagination:{page_size:"Page Size",page_title:"Show Page",first:"First",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},headerFilters:{default:"filter column...",columns:{}}}};class Go extends Ve{static moduleName="localize";static langs=aS;constructor(e){super(e),this.locale="default",this.lang=!1,this.bindings={},this.langList={},this.registerTableOption("locale",!1),this.registerTableOption("langs",{})}initialize(){this.langList=Ze.deepClone(Go.langs),this.table.options.columnDefaults.headerFilterPlaceholder!==!1&&this.setHeaderFilterPlaceholder(this.table.options.columnDefaults.headerFilterPlaceholder);for(let e in this.table.options.langs)this.installLang(e,this.table.options.langs[e]);this.setLocale(this.table.options.locale),this.registerTableFunction("setLocale",this.setLocale.bind(this)),this.registerTableFunction("getLocale",this.getLocale.bind(this)),this.registerTableFunction("getLang",this.getLang.bind(this))}setHeaderFilterPlaceholder(e){this.langList.default.headerFilters.default=e}installLang(e,t){this.langList[e]?this._setLangProp(this.langList[e],t):this.langList[e]=t}_setLangProp(e,t){for(let i in t)e[i]&&typeof e[i]=="object"?this._setLangProp(e[i],t[i]):e[i]=t[i]}setLocale(e){e=e||"default";function t(i,r){for(var s in i)typeof i[s]=="object"?(r[s]||(r[s]={}),t(i[s],r[s])):r[s]=i[s]}if(e===!0&&navigator.language&&(e=navigator.language.toLowerCase()),e&&!this.langList[e]){let i=e.split("-")[0];this.langList[i]?(console.warn("Localization Error - Exact matching locale not found, using closest match: ",e,i),e=i):(console.warn("Localization Error - Matching locale not found, using default: ",e),e="default")}this.locale=e,this.lang=Ze.deepClone(this.langList.default||{}),e!="default"&&t(this.langList[e],this.lang),this.dispatchExternal("localized",this.locale,this.lang),this._executeBindings()}getLocale(e){return this.locale}getLang(e){return e?this.langList[e]:this.lang}getText(e,t){var i=t?e+"|"+t:e,r=i.split("|"),s=this._getLangElement(r,this.locale);return s||""}_getLangElement(e,t){var i=this.lang;return e.forEach(function(r){var s;i&&(s=i[r],typeof s<"u"?i=s:i=!1)}),i}bind(e,t){this.bindings[e]||(this.bindings[e]=[]),this.bindings[e].push(t),t(this.getText(e),this.lang)}_executeBindings(){for(let e in this.bindings)this.bindings[e].forEach(t=>{t(this.getText(e),this.lang)})}}class oS extends Ve{static moduleName="comms";constructor(e){super(e)}initialize(){this.registerTableFunction("tableComms",this.receive.bind(this))}getConnections(e){var t=[],i;return i=this.table.constructor.registry.lookupTable(e),i.forEach(r=>{this.table!==r&&t.push(r)}),t}send(e,t,i,r){var s=this.getConnections(e);s.forEach(o=>{o.tableComms(this.table.element,t,i,r)}),!s.length&&e&&console.warn("Table Connection Error - No tables matching selector found",e)}receive(e,t,i,r){if(this.table.modExists(t))return this.table.modules[t].commsReceived(e,i,r);console.warn("Inter-table Comms Error - no such module:",t)}}var lS=Object.freeze({__proto__:null,CommsModule:oS,LayoutModule:kr,LocalizeModule:Go});class _t{static registry={tables:[],register(e){_t.registry.tables.push(e)},deregister(e){var t=_t.registry.tables.indexOf(e);t>-1&&_t.registry.tables.splice(t,1)},lookupTable(e,t){var i=[],r,s;if(typeof e=="string"){if(r=document.querySelectorAll(e),r.length)for(var o=0;o<r.length;o++)s=_t.registry.matchElement(r[o]),s&&i.push(s)}else typeof HTMLElement<"u"&&e instanceof HTMLElement||e instanceof _t?(s=_t.registry.matchElement(e),s&&i.push(s)):Array.isArray(e)?e.forEach(function(l){i=i.concat(_t.registry.lookupTable(l))}):t||console.warn("Table Connection Error - Invalid Selector",e);return i},matchElement(e){return _t.registry.tables.find(function(t){return e instanceof _t?t===e:t.element===e})}};static findTable(e){var t=_t.registry.lookupTable(e,!0);return Array.isArray(t)&&!t.length?!1:t}}class st extends _t{static moduleBindings={};static moduleExtensions={};static modulesRegistered=!1;static defaultModules=!1;constructor(){super()}static initializeModuleBinder(e){st.modulesRegistered||(st.modulesRegistered=!0,st._registerModules(lS,!0),e&&st._registerModules(e))}static _extendModule(e,t,i){if(st.moduleBindings[e]){var r=st.moduleBindings[e][t];if(r)if(typeof i=="object")for(let s in i)r[s]=i[s];else console.warn("Module Error - Invalid value type, it must be an object");else console.warn("Module Error - property does not exist:",t)}else console.warn("Module Error - module does not exist:",e)}static _registerModules(e,t){var i=Object.values(e);t&&i.forEach(r=>{r.prototype.moduleCore=!0}),st._registerModule(i)}static _registerModule(e){Array.isArray(e)||(e=[e]),e.forEach(t=>{st._registerModuleBinding(t),st._registerModuleExtensions(t)})}static _registerModuleBinding(e){e.moduleName?st.moduleBindings[e.moduleName]=e:console.error("Unable to bind module, no moduleName defined",e.moduleName)}static _registerModuleExtensions(e){var t=e.moduleExtensions;if(e.moduleExtensions)for(let i in t){let r=t[i];if(st.moduleBindings[i])for(let s in r)st._extendModule(i,s,r[s]);else{st.moduleExtensions[i]||(st.moduleExtensions[i]={});for(let s in r)st.moduleExtensions[i][s]||(st.moduleExtensions[i][s]={}),Object.assign(st.moduleExtensions[i][s],r[s])}}st._extendModuleFromQueue(e)}static _extendModuleFromQueue(e){var t=st.moduleExtensions[e.moduleName];if(t)for(let i in t)st._extendModule(e.moduleName,i,t[i])}_bindModules(){var e=[],t=[],i=[];this.modules={};for(var r in st.moduleBindings){let s=st.moduleBindings[r],o=new s(this);this.modules[r]=o,s.prototype.moduleCore?this.modulesCore.push(o):s.moduleInitOrder?s.moduleInitOrder<0?e.push(o):t.push(o):i.push(o)}e.sort((s,o)=>s.moduleInitOrder>o.moduleInitOrder?1:-1),t.sort((s,o)=>s.moduleInitOrder>o.moduleInitOrder?1:-1),this.modulesRegular=e.concat(i.concat(t))}}class uS extends dt{constructor(e){super(e),this.element=this._createAlertElement(),this.msgElement=this._createMsgElement(),this.type=null,this.element.appendChild(this.msgElement)}_createAlertElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert"),e}_createMsgElement(){var e=document.createElement("div");return e.classList.add("tabulator-alert-msg"),e.setAttribute("role","alert"),e}_typeClass(){return"tabulator-alert-state-"+this.type}alert(e,t="msg"){if(e){for(this.clear(),this.dispatch("alert-show",t),this.type=t;this.msgElement.firstChild;)this.msgElement.removeChild(this.msgElement.firstChild);this.msgElement.classList.add(this._typeClass()),typeof e=="function"&&(e=e()),e instanceof HTMLElement?this.msgElement.appendChild(e):this.msgElement.innerHTML=e,this.table.element.appendChild(this.element)}}clear(){this.dispatch("alert-hide",this.type),this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.msgElement.classList.remove(this._typeClass())}}class gi extends st{static defaultOptions=zk;static extendModule(){gi.initializeModuleBinder(),gi._extendModule(...arguments)}static registerModule(){gi.initializeModuleBinder(),gi._registerModule(...arguments)}constructor(e,t,i){super(),gi.initializeModuleBinder(i),this.options={},this.columnManager=null,this.rowManager=null,this.footerManager=null,this.alertManager=null,this.vdomHoz=null,this.externalEvents=null,this.eventBus=null,this.interactionMonitor=!1,this.browser="",this.browserSlow=!1,this.browserMobile=!1,this.rtl=!1,this.originalElement=null,this.componentFunctionBinder=new qk(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new eS(this),this.optionsList=new td(this,"table constructor"),this.dependencyRegistry=new tS(this),this.initialized=!1,this.destroyed=!1,this.initializeElement(e)&&(this.initializeCoreSystems(t),setTimeout(()=>{this._create()})),this.constructor.registry.register(this)}initializeElement(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement?(this.element=e,!0):typeof e=="string"?(this.element=document.querySelector(e),this.element?!0:(console.error("Tabulator Creation Error - no element found matching selector: ",e),!1)):(console.error("Tabulator Creation Error - Invalid element provided:",e),!1)}initializeCoreSystems(e){this.columnManager=new Uk(this),this.rowManager=new Qk(this),this.footerManager=new Kk(this),this.dataLoader=new $k(this),this.alertManager=new uS(this),this._bindModules(),this.options=this.optionsList.generate(gi.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new Zk(this,this.options,this.options.debugEventsExternal),this.eventBus=new Xk(this.options.debugEventsInternal),this.interactionMonitor=new Jk(this),this.dataLoader.initialize(),this.footerManager.initialize(),this.dependencyRegistry.initialize()}_mapDeprecatedFunctionality(){}_clearSelection(){this.element.classList.add("tabulator-block-select"),window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty(),this.element.classList.remove("tabulator-block-select")}_create(){this.externalEvents.dispatch("tableBuilding"),this.eventBus.dispatch("table-building"),this._rtlCheck(),this._buildElement(),this._initializeTable(),this.initialized=!0,this._loadInitialData().finally(()=>{this.eventBus.dispatch("table-initialized"),this.externalEvents.dispatch("tableBuilt")})}_rtlCheck(){var e=window.getComputedStyle(this.element);switch(this.options.textDirection){case"auto":if(e.direction!=="rtl")break;case"rtl":this.element.classList.add("tabulator-rtl"),this.rtl=!0;break;case"ltr":this.element.classList.add("tabulator-ltr");default:this.rtl=!1}}_clearObjectPointers(){this.options.columns=this.options.columns.slice(0),Array.isArray(this.options.data)&&!this.options.reactiveData&&(this.options.data=this.options.data.slice(0))}_buildElement(){var e=this.element,t=this.options,i;if(e.tagName==="TABLE"){this.originalElement=this.element,i=document.createElement("div");var r=e.attributes;for(var s in r)typeof r[s]=="object"&&i.setAttribute(r[s].name,r[s].value);e.parentNode.replaceChild(i,e),this.element=e=i}for(e.classList.add("tabulator"),e.setAttribute("role","grid");e.firstChild;)e.removeChild(e.firstChild);t.height&&(t.height=isNaN(t.height)?t.height:t.height+"px",e.style.height=t.height),t.minHeight!==!1&&(t.minHeight=isNaN(t.minHeight)?t.minHeight:t.minHeight+"px",e.style.minHeight=t.minHeight),t.maxHeight!==!1&&(t.maxHeight=isNaN(t.maxHeight)?t.maxHeight:t.maxHeight+"px",e.style.maxHeight=t.maxHeight)}_initializeTable(){var e=this.element,t=this.options;this.interactionMonitor.initialize(),this.columnManager.initialize(),this.rowManager.initialize(),this._detectBrowser(),this.modulesCore.forEach(i=>{i.initialize()}),e.appendChild(this.columnManager.getElement()),e.appendChild(this.rowManager.getElement()),t.footerElement&&this.footerManager.activate(),t.autoColumns&&t.data&&this.columnManager.generateColumnsFromRowData(this.options.data),this.modulesRegular.forEach(i=>{i.initialize()}),this.columnManager.setColumns(t.columns),this.eventBus.dispatch("table-built")}_loadInitialData(){return this.dataLoader.load(this.options.data).finally(()=>{this.columnManager.verticalAlignHeaders()})}destroy(){var e=this.element;for(this.destroyed=!0,this.constructor.registry.deregister(this),this.eventBus.dispatch("table-destroy"),this.rowManager.destroy();e.firstChild;)e.removeChild(e.firstChild);e.classList.remove("tabulator"),this.externalEvents.dispatch("tableDestroyed")}_detectBrowser(){var e=navigator.userAgent||navigator.vendor||window.opera;e.indexOf("Trident")>-1?(this.browser="ie",this.browserSlow=!0):e.indexOf("Edge")>-1?(this.browser="edge",this.browserSlow=!0):e.indexOf("Firefox")>-1?(this.browser="firefox",this.browserSlow=!1):e.indexOf("Mac OS")>-1?(this.browser="safari",this.browserSlow=!1):(this.browser="other",this.browserSlow=!1),this.browserMobile=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.slice(0,4))}initGuard(e,t){var i,r;return this.options.debugInitialization&&!this.initialized&&(e||(i=new Error().stack.split(`
|
|
54
|
-
`),r=i[0]=="Error"?i[2]:i[1],r[0]==" "?e=r.trim().split(" ")[1].split(".")[1]:e=r.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,i){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,i,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,i){return this.initGuard(),this.dataLoader.load(e,t,i,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise((i,r)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(s=>{var o=this.rowManager.findRow(s[this.options.index]);o?(t++,o.updateData(s).then(()=>{t--,t||i()}).catch(l=>{r("Update Error - Unable to update row",s,l)})):r("Update Error - Unable to find row",s)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(o=>{var l=[];o.forEach(function(u){l.push(u.getComponent())}),r(l)}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(o=>{var l=this.rowManager.findRow(o[this.options.index]);i++,l?l.updateData(o).then(()=>{i--,t.push(l.getComponent()),i||r(t)}):this.rowManager.addRows(o).then(u=>{i--,t.push(u[0].getComponent()),i||r(t)})}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let i of e){let r=this.rowManager.findRow(i,!0);if(r)t.push(r);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,r)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(r)?1:-1),t.forEach(i=>{i.delete()}),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,i){return this.initGuard(),typeof e=="string"&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,i,!0).then(r=>r[0].getComponent())}updateOrAddRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>i.getComponent()):this.rowManager.addRows(t).then(r=>r[0].getComponent())}updateRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>Promise.resolve(i.getComponent())):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,i){var r=this.rowManager.findRow(e);return r?this.rowManager.scrollToRow(r,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var r=this.rowManager.findRow(e);this.initGuard(),r?r.moveToRow(t,i):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.show();else return console.warn("Column Show Error - No matching column found:",e),!1}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.hide();else return console.warn("Column Hide Error - No matching column found:",e),!1}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.visible?t.hide():t.show();else return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1}addColumn(e,t,i){var r=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,r).then(s=>s.getComponent())}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var i=this.columnManager.findColumn(e);return this.initGuard(),i?i.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,i){var r=this.columnManager.findColumn(e),s=this.columnManager.findColumn(t);this.initGuard(),r?s?this.columnManager.moveColumn(r,s,i):console.warn("Move Error - No matching column found:",s):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((r,s)=>{var o=this.columnManager.findColumn(e);return o?this.columnManager.scrollToColumn(o,t,i):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))})}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){var e=Array.from(arguments);e.shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return this.modules[e]?!0:(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}}var Rn=gi;class cS extends Rn{static extendModule(){Rn.initializeModuleBinder(Uo),Rn._extendModule(...arguments)}static registerModule(){Rn.initializeModuleBinder(Uo),Rn._registerModule(...arguments)}constructor(e,t,i){super(e,t,Uo)}}var dS=cS;const hS={key:0,class:"bi bi-chevron-up"},fS={key:1,class:"bi bi-chevron-down"},nd=Ie({__name:"SubFilterToggleBtn",props:["modelValue"],emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=n,r=()=>{t("update:modelValue",!i.modelValue)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:"icon",onClick:r},[n.modelValue?(a.openBlock(),a.createElementBlock("i",hS)):(a.openBlock(),a.createElementBlock("i",fS))]))}},[["__scopeId","data-v-4810f2ed"]]),Yo={gender:{MALE:1,FEMALE:2},timeTypes:{HOUR:1,DAY:2,WEEK:3,MONTH:4,YEAR:5},customPerPageOptions:[{id:10,label:10},{id:40,label:40},{id:100,label:100},{id:150,label:150},{id:200,label:200}],mask_regex:{INTEGER:"^[0-9]*$",DECIMAL:"^[0-9]{1,10}[.]?[0-9]{1}$",HUNDREDTHS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,2})$",THOUSANDS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,3})$",NO_LIMIT_AFTER_DOT:"^[0-9]{1,10}[.]?[0-9]*$",ABOVE_ONE:"^[1-9]+[0-9]*$",NO_START_SPACE:"^[^ ]+.*$",NO_SPACE:"[^ ]*"}};Object.preventExtensions(Yo);const pS=()=>({"en-en":{pagination:{first:"First11",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},data:{loading:"Loading...",error:"Error loading data."}},"ru-ru":{pagination:{first:"Первая",first_title:"Первая страница",last:"Последняя",last_title:"Последняя страница",prev:"Пред",prev_title:"Предыдущая страница",next:"След",next_title:"Следующая страница",all:"Все",counter:{showing:"Показано",of:"из",rows:"записей",pages:"страниц"}},data:{loading:"Загрузка...",error:"Ошибка загрузки данных."}}}),mS="data:image/gif;base64,R0lGODlhQABAANUAAAQCBISGhMTGxERCROTm5KSmpCQiJGRiZNTW1LS2tPT29BQSFJSWlFRSVDQyNHR2dMzOzOzu7KyurGxqbNze3Ly+vFxaXAwKDIyOjCwqLPz+/BweHKSipDw6PMzKzExKTOzq7KyqrCQmJGRmZNza3Ly6vPz6/BQWFJyanFRWVDQ2NHx+fNTS1PTy9LSytGxubOTi5MTCxFxeXAwODJSSlP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAgA1ACwAAAAAQABAAAAG/sCacEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvteikPiHfcAGxa424AAFilua0NG/behtipulbTYcf0WRBsDiaAWCNsKIZXBDMAJ2iLVRhsLpJHFA0BCkomBymRezAInE0PbBshGpIgHgIeFE4QcmwdYnotCAK7HqFMLStsbCMgaQoUvB4whVEwKcIzGMxaJgSuHjGkVjEOwgdcyLssEVkKKCcAFlwkryDTWREJvlgm7pf3+Pn6+/yLFAkAAwZkUYcAhYMIEc4TEuGCsIfC/owhgIFGxYsWK5Yi0hAiRIleKGIYSRLjRiL/BAq8lQYECRgvY5KgsLCfzZs4c+oE1MJF+80qCiD8pGLiXDouGFIcqPCuCjdvXBg0SN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em8FpsTDruXQ8gh8WRUWCSocglgLeReJVzAyCQZojlUveRCVRxUJAZRIKQssn1kpCAIwTioAAB0iiIkpMQoiIplNEB2sADa3dhMXtQQvE08wNLsAJHVjDBC1IhItKVIxJrs1D9RbphLQqFYzFLsGXCDQCsVYDCgrABZcAtEVsFoTCqncBaSa/f7/AAMKtFNBgcGDB1vYiYGgoUOH6opMyJCsIoAZaSo00NCgo8eOKvIRmWgxGcYxGjtyXMkx5CaEMH2NKfCwJrOBOHPq3MlTE/6MFyKzMJgRFEuKdu+40PAQQUK9cONYldsSgIIHDzJkVrvGKts2LSkIhLDqAUMBKQyQ7SJxdsyED1cp2EDBT0muXb0EIdBw1YOLEqpYufrKh4MCFx4oLHBSolNdIikMWCiaBIYFEoSNMNigIgaXB6xeOJHAao+mETUArIg4RMBJIjDc1biZiAQrFEYgsNJ6AwUrEpV0A6BQ9wQrBUZSROU9hsMAVo2MKDh+5AIrG0/TiGBlAsl0AMiPcHVjh4EuAJ6PfA9vpILgx1RZ0UiyPonaAHYStKI8pD4S8wAkYEcJKjDXH3VJQKACYAL511MRDj44RAUZ1CCGhBLRhuGGHAPiFAQAOw==",gS={class:"position-relative",style:{"min-height":"300px"}},bS={class:"placeholder-glow"},vS={class:"tabulator hide-to-print sticky-bottom bg-white"},yS={class:"row"},wS={key:0,class:"col-auto"},CS={class:"col"},AS={class:"tabulator-footer",ref:"footer"},ES=["id"],kS=["disabled"],SS={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},xS=a.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"ru-ru"},columnHide:{type:String,default:""},columnShow:{type:String,default:""},options:{type:Object,default:()=>({}),required:!0},filters:{type:[Array,Function,Object],default:()=>[]},tableData:{type:Array,default:()=>[]},showAllColumnsIfAllHidden:{type:Boolean,default:!1},parentComponent:{type:Object,default:()=>({})},selectedRowsStorage:{type:Array,default:()=>[]},isVisibleColumnSubFilter:{type:Boolean,default:null},loadMoreText:{type:String,default:"Load More"},noDataText:{type:String,default:"No data found"},paginationLimitText:{type:String,default:"Please use pagination to navigate"}},emits:["selectedRow","unselectedRow","updateSelectedRows","updateUnselectedRows","updateTable","onHideColumn","onShowColumn","onTableRowClick","onCellClick","onTableRowMoved","pageLoaded","savePaginationPage","updateIsVisibleColumnSubFilter"],setup(n,{emit:e}){const t=n,i=e,r=a.inject("selectedTabIndex",a.ref()),s=a.inject("selectAll",a.ref(0)),o=a.ref(""),l=a.ref(null),u=a.ref({data:[],rows:[]}),c=a.ref(new Set(t.selectedRowsStorage)),d=a.ref(!1),f=a.ref(pi()),p=a.ref(null),h=a.ref(null),x=a.ref(!1),b=a.ref(!1),S=a.computed(()=>t.options?.paginationMode==="remote"),C=a.computed(()=>Yo.customPerPageOptions),m=a.useSlots(),D=H=>!!m[H],g=()=>{o.value=""},M=H=>!H||!H.length?[]:H.map(te=>te),y=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");!H||t.isVisibleColumnSubFilter===null||zi(H,nd,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":te=>i("updateIsVisibleColumnSubFilter",te)})},k=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");H&&(H.classList.add("position-relative"),y())},w=()=>{if(!h.value)return;const H=p.value?.parentNode?.querySelector(".tabulator-footer"),te=h.value.last_page;if(!te||isNaN(+te)){H&&H.classList.add("d-none");return}te>1?H&&H.classList.remove("d-none"):H&&H.classList.add("d-none")},E=()=>{b.value||(x.value=!0)},v=()=>{b.value},T=H=>{x.value=!1,b.value},R=()=>{b.value||(d.value=!0,i("updateTable",h.value),h.value&&h.value.selectRow(Array.from(c.value)))},L=H=>{b.value||(setTimeout(()=>{b.value||i("savePaginationPage",H)}),S.value&&w(),s.value>0&&i("pageLoaded"),k())},N=H=>{if(b.value)return;const te=H.getData(),X=h.value?.options?.index||"id",Z=te[X]??null;Z!==null&&(c.value.add(Z),u.value.data.push(te),u.value.rows.push(H),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:te,row:H}))},j=H=>{if(b.value)return;const te=H.getData(),X=h.value?.options?.index||"id",Z=te[X]??null;if(Z===null)return;c.value.delete(Z);const fe=u.value.data.findIndex(le=>le[X]===Z);fe!==-1&&(u.value.data.splice(fe,1),u.value.rows.splice(fe,1)),i("updateUnselectedRows",{data:te,row:H}),i("unselectedRow",{data:te,row:H})},U=function(){b.value||(h.value&&h.value.selectRow(Array.from(c.value)),x.value=!1)},I=(H,te)=>{if(b.value)return;if(te?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",H,te);return}const X=[],Z=H.target;for(let fe=0;fe<Z.childNodes.length;fe++){const le=Z.childNodes[fe];le.nodeName==="INPUT"&&le.type==="checkbox"&&X.push("checkbox")}X.includes("checkbox")||i("onTableRowClick",H,te._cell.row,t.parentComponent)},V=H=>{b.value||h.value&&i("onTableRowMoved",h.value.getColumnLayout())},K=()=>{b.value||setTimeout(()=>{b.value})},F=()=>{b.value||setTimeout(()=>{b.value||W()})},P=()=>{d.value=!1},Y=()=>{if(!p.value||S.value&&!t.options.ajaxResponse||h.value)return;x.value=!0;const H={...t.options,...S.value?{}:{data:t.tableData},langs:pS(),locale:t.locale,columns:M(t.options.columns),dataLoaderLoading:`<img alt="" src="${mS}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};S.value&&(delete H.ajaxURL,H.footerElement=`#tabulator-footer${f.value}`),h.value=new dS(p.value,H),h.value.on("dataLoading",E),h.value.on("dataLoaded",v),h.value.on("dataLoadError",T),h.value.on("tableBuilt",R),h.value.on("pageLoaded",L),h.value.on("rowSelected",N),h.value.on("rowDeselected",j),h.value.on("dataProcessed",U),h.value.on("cellClick",I),h.value.on("columnMoved",V),h.value.on("renderStarted",K),h.value.on("renderComplete",F),h.value.on("tableDestroyed",P)},z=H=>{if(b.value||!d.value||!H||!h.value)return;const te=h.value.options.ajaxParams;te&&(te.per_page=Number(H)),h.value.options.paginationSize=Number(H),h.value.setPageSize(H)},J=()=>{if(b.value||!h.value)return;const H=640,te=h.value.options;if(S.value)te.ajaxParams?.per_page<H&&(te.ajaxParams.per_page+=40),h.value.setData();else{const X=h.value.getPageSize();typeof X=="number"&&X<H&&h.value.setPageSize(X+40)}te.paginationSize>=H&&(o.value=t.paginationLimitText)},$=H=>{b.value||H===""||!h.value||(h.value.showColumn(H),i("onShowColumn",h.value.getColumnLayout()))},Q=H=>{b.value||H===""||!h.value||(h.value.hideColumn(H),i("onHideColumn",h.value.getColumnLayout()))},ae=H=>{b.value||!h.value||(H.filter(({visible:te})=>!te).length===H.length?H.map(({field:te})=>{a.nextTick(()=>{!b.value&&h.value&&h.value.showColumn(te)})}):H.map(({field:te,visible:X})=>{!b.value&&h.value&&(X?h.value.showColumn(te):h.value.hideColumn(te))}))},W=()=>{a.nextTick(()=>{if(b.value||!h.value||h.value.getPage()!==1||!t.paginationPage||t.paginationPage===h.value.getPage())return!1;h.value.setPage(t.paginationPage)})};return a.onMounted(()=>{Y()}),a.onBeforeUnmount(()=>{b.value=!0,h.value&&(h.value.destroy(),h.value=null)}),a.watch(()=>t.columnShow,H=>{H&&$(H)}),a.watch(()=>t.columnHide,H=>{H&&Q(H)}),a.watch(()=>t.filters,H=>{b.value||!h.value||h.value.setFilter(H)},{deep:!0}),a.watch(()=>t.tableData,H=>{b.value||!h.value||S.value||h.value.setData(H)},{deep:!1}),a.watch(()=>t.options.ajaxResponse,H=>{b.value||(h.value&&H?h.value.options.ajaxResponse=H:S.value&&H&&!h.value&&a.nextTick(()=>{b.value||!p.value||Y()}))}),a.watch(()=>t.options,H=>{b.value||S.value&&H.ajaxResponse&&!h.value&&a.nextTick(()=>{b.value||!p.value||Y()})},{deep:!0}),a.watch(r,()=>{b.value||!h.value||h.value.deselectRow()}),a.watch(s,H=>{b.value||H<=0||!h.value||h.value.selectRow()}),a.watch(()=>t.options.columns,H=>{b.value||!d.value||!h.value||!H||(!H.find(({visible:te})=>te)&&t.showAllColumnsIfAllHidden?ae(H):h.value.setColumns(H))},{deep:!0}),a.watch(()=>t.selectedRowsStorage,H=>{b.value||!H||(c.value=new Set(H))},{deep:!0}),a.watch(d,H=>{b.value||!H||(t.showAllColumnsIfAllHidden&&ae(t.options.columns||[]),t.tableData.length>0&&!S.value&&h.value&&h.value.setData(t.tableData))},{deep:!0}),(H,te)=>(a.openBlock(),a.createElementBlock("div",gS,[a.withDirectives(a.createElementVNode("p",bS,[...te[2]||(te[2]=[a.createStaticVNode('<span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span>',10)])],512),[[a.vShow,x.value]]),a.withDirectives(a.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),[[a.vShow,!x.value]]),a.withDirectives(a.createElementVNode("div",vS,[a.createElementVNode("div",yS,[D("table-footer-left")?(a.openBlock(),a.createElementBlock("div",wS,[a.renderSlot(H.$slots,"table-footer-left")])):a.createCommentVNode("",!0),a.createElementVNode("div",CS,[a.createElementVNode("div",AS,[a.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${f.value}`},[a.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:J,disabled:x.value},[a.createTextVNode(a.toDisplayString(n.loadMoreText)+" ",1),te[3]||(te[3]=a.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),x.value?(a.openBlock(),a.createElementBlock("div",SS)):a.createCommentVNode("",!0)],8,kS),a.createVNode(Vt,{class:"me-3",style:{"min-width":"150px"},modelValue:l.value,"onUpdate:modelValue":[te[0]||(te[0]=X=>l.value=X),te[1]||(te[1]=X=>z(X))],allowClear:!1,options:C.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,ES)],512)])])],512),[[a.vShow,S.value&&!x.value]]),a.createVNode(Qc,{message:o.value,onClearMessage:g},null,8,["message"])]))}}),RS={class:"r3-table-count__wrapper px-3"},MS={class:"r3-table-count__label pe-2"},TS={class:"r3-table-count__value"},DS=Ie(a.defineComponent({__name:"TableCount",props:{label:{default:""},count:{default:0},defaultLabel:{default:"-"},defaultCount:{default:"-"},size:{default:"medium"},showSeparator:{type:Boolean,default:!0}},setup(n){const e=n,t=a.computed(()=>e.label||e.defaultLabel),i=a.computed(()=>e.count===null||e.count===void 0||e.count===""?e.defaultCount:e.count);return(r,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["r3-table-count",[`r3-table-count--${r.size}`]])},[a.createElementVNode("div",RS,[a.createElementVNode("span",MS,a.toDisplayString(t.value)+":",1),a.createElementVNode("span",TS,a.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-87be8b13"]]),OS=Ie(a.defineComponent({__name:"ColumnSubFilter",props:{tableRefEl:{default:void 0},columnField:{default:""},mountedComponent:{default:void 0},dataProps:{default:()=>({})},table:{default:void 0},isVisible:{type:Boolean,default:!1}},setup(n){const e=n;function t(){if(!e?.tableRefEl)return!1;const i=`[tabulator-field='${e.columnField}']`,r=e.tableRefEl?.querySelector(i);if(!e.table||!r)return!1;if(e.isVisible&&r&&e.mountedComponent)return zi(r,e.mountedComponent,e.dataProps),!1;zi(r,null,{},!0)}return a.watch(()=>e,()=>{t()},{deep:!0}),a.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),LS=Ie(a.defineComponent({__name:"TableAppliedFiltersStorage",props:{tableName:{},filters:{}},emits:["update:filters"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.computed(()=>"default-page"),o=a.toRef(i,"filters");function l(){let p=localStorage.getItem("filters"),h=p?JSON.parse(p):{};h={...oi(h),[s.value]:{[i.tableName]:d(o.value)}};const x=JSON.stringify(h);return localStorage.setItem("filters",x),p=localStorage.getItem("filters"),p?JSON.parse(p):{}}function u(p){return!(!p||!p[s.value]||!p[s.value][i.tableName])}function c(p){const h=JSON.parse(p);return u(h)?(p=localStorage.getItem("filters")||"{}",JSON.parse(p)):l()}function d(p){const h={};for(const[x,b]of Object.entries(p))h[x]=oi(b._value||b);return h}function f(){let p=localStorage.getItem("filters");if(!p)return r("update:filters",{}),!1;let h=c(p);if(!h[s.value]||!h[s.value][i.tableName])return r("update:filters",{}),!1;const x=d(h[s.value][i.tableName]);return r("update:filters",{...x}),!0}return e({getFilters:f,saveFilters:l}),(p,h)=>a.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),BS={class:"row pt-3"},FS={class:"col-12"},_S=["onClick"],PS=Ie(a.defineComponent({__name:"TableQuickFilterComponent",props:{filterList:{},defaultSelected:{default:""}},emits:["emitSelected"],setup(n,{emit:e}){const t=e,i=r=>{t("emitSelected",r)};return(r,s)=>(a.openBlock(),a.createElementBlock("div",BS,[a.createElementVNode("div",FS,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.filterList,(o,l)=>(a.openBlock(),a.createElementBlock("button",{onClick:u=>i(o.name),class:a.normalizeClass(["btn filter-item",{active:r.defaultSelected===o.name,disabled:o.disabled}]),key:l},a.toDisplayString(o.title),11,_S))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),NS={key:0,class:"col-4 mb-2"},IS={class:"form-check"},HS=["checked","id","onChange"],VS=["for"],zS=["innerHTML"],jS={class:"col-auto"},WS={class:"col-auto ps-0"},US={class:"col-auto ps-0"},Qo=Ie(a.defineComponent({__name:"EditTableColumns",props:{title:{default:"Table Data"},modalVisibility:{type:Boolean,default:!1},columns:{default:()=>[]},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["emitModalVisibility","columnVisibilityChange","apply","selectAll","unselectAll"],setup(n,{emit:e}){const t=n,i=e,r=a.ref([...t.columns]),s=a.ref([...t.columns]);a.watch(()=>t.columns,h=>{JSON.stringify(h)!==JSON.stringify(s.value)&&(r.value=[...h],s.value=[...h],l())},{deep:!0});const o=a.ref(!0);function l(){const x=r.value.filter(b=>b.title).some(b=>!b.visible);o.value=x,a.triggerRef(o)}l();const u=h=>{i("emitModalVisibility",h)},c=(h,x)=>{const b=h.target,S=r.value.findIndex(C=>C.field===x);S!==-1&&(r.value[S].visible=b.checked,l()),i("columnVisibilityChange",h,x)},d=()=>{i("apply",r.value)},f=()=>{const h=r.value.map(x=>({...x,visible:x.title?!0:x.visible}));r.value=h,s.value=[...h],l(),i("selectAll")},p=()=>{const h=r.value.map(x=>({...x,visible:x.title?!1:x.visible}));r.value=h,s.value=[...h],l(),i("unselectAll")};return(h,x)=>(a.openBlock(),a.createBlock(jc,{title:h.title,"modal-visibility":h.modalVisibility,onEmitModalVisibility:u},{"modal-body":a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(b,S)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:S},[b.title?(a.openBlock(),a.createElementBlock("div",NS,[a.createElementVNode("div",IS,[a.createElementVNode("input",{checked:b.visible,class:"form-check-input",type:"checkbox",id:b.field,ref_for:!0,ref:"editColumns",onChange:C=>c(C,b.field)},null,40,HS),a.createElementVNode("label",{class:"form-check-label",for:b.field},[a.createElementVNode("span",{class:"lh-sm",innerHTML:b.title},null,8,zS)],8,VS)])])):a.createCommentVNode("",!0)],64))),128))]),"modal-footer":a.withCtx(()=>[a.createElementVNode("div",jS,[a.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},a.toDisplayString(h.applyText),1)]),a.createElementVNode("div",WS,[a.createElementVNode("div",US,[o.value?(a.openBlock(),a.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:f},a.toDisplayString(h.selectAllText),1)):a.createCommentVNode("",!0),o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:"unselect-all",type:"button",class:"btn btn-light",onClick:p},a.toDisplayString(h.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function Ko(n,e){const t=a.ref(!1),i=a.ref([...n]);a.watch(()=>n,x=>{i.value=[...x]},{deep:!0});function r(x){t.value=x}function s(x,b){const S=x.target,C=i.value.map(m=>m.field===b?{...m,visible:S.checked}:m);i.value=C,e&&e.value&&(e.value.columns=C)}function o(x){console.log("useTableColumns handleColumnsApply called, received columns:",x),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(x),u()}function l(x){x&&(i.value=[...x],console.log("useTableColumns tableColumns after update:",i.value))}function u(){if(!e||!e.value){console.log("useTableColumns tableOptions not available");return}console.log("useTableColumns updating tableOptions.columns:",i.value),e.value.columns=i.value,console.log("useTableColumns tableOptions.columns after update:",e.value.columns)}function c(){const x=i.value.map(b=>({...b,visible:b.title?!0:b.visible}));i.value=x,e&&e.value&&(e.value.columns=x)}function d(){const x=i.value.map(b=>({...b,visible:b.title?!1:b.visible}));i.value=x,e&&e.value&&(e.value.columns=x)}const f=a.computed(()=>i.value.filter(x=>x.visible));function p(x){i.value=[...x],e&&e.value&&(e.value.columns=x)}function h(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:f,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:o,handleColumnsSelectAll:c,handleColumnsUnselectAll:d,updateColumns:p,resetColumns:h}}const GS=a.defineComponent({__name:"TableColumnsButton",props:{columns:{},tableOptions:{},title:{default:"Table Columns Settings"},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:o,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Ko(t.columns,t.tableOptions);a.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,x)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Lr,{styles:"light",onSubmit:f,icon:"gear-fill"}),a.createVNode(Qo,{title:h.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:p,onSelectAll:a.unref(u),onUnselectAll:a.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),YS=a.defineComponent({__name:"TableColumnsModal",props:{columns:{},tableOptions:{},title:{default:"Настройка колонок таблицы"},applyText:{default:"Применить"},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:o,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Ko(t.columns,t.tableOptions);a.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,x)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Lr,{styles:"light",onSubmit:f,icon:"gear-fill"}),a.createVNode(Qo,{title:h.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:p,onSelectAll:a.unref(u),onUnselectAll:a.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),QS={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},KS={key:2,class:"selected-count"},JS=Ie(a.defineComponent({__name:"ToggleAllTableRowButtons",props:{selectedRows:{default:()=>[]},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"},selectedText:{default:"Выбрано"},showCount:{type:Boolean,default:!0}},emits:["selectAll","unselectAll"],setup(n,{emit:e}){const t=e,i=()=>{t("selectAll")},r=()=>{t("unselectAll")};return(s,o)=>(a.openBlock(),a.createElementBlock("div",QS,[s.selectedRows.length>0?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light me-3",onClick:r},a.toDisplayString(s.unselectAllText),1)):a.createCommentVNode("",!0),s.selectedRows.length===0?(a.openBlock(),a.createElementBlock("button",{key:1,class:"btn btn-primary me-3",onClick:i},a.toDisplayString(s.selectAllText),1)):a.createCommentVNode("",!0),s.showCount?(a.openBlock(),a.createElementBlock("div",KS,a.toDisplayString(s.selectedText)+": "+a.toDisplayString(s.selectedRows.length),1)):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),qS={class:"row pt-3"},$S={class:"col-12"},ZS=["onClick"],XS=Ie(a.defineComponent({__name:"MultipleQuickFilterComponent",props:{filterList:{},defaultSelected:{default:()=>({})}},emits:["emitSelected"],setup(n,{emit:e}){const t=n,i=e,r=s=>{t.filterList[s].disabled||(t.filterList[s].value=!t.filterList[s].value,i("emitSelected",t.filterList))};return a.watch(()=>t.defaultSelected,s=>{s&&Object.keys(s).length>0&&t.filterList.forEach((o,l)=>{const u=Object.keys(s)[l];u&&s[u]!==void 0&&(o.value=s[u])})},{immediate:!0}),(s,o)=>(a.openBlock(),a.createElementBlock("div",qS,[a.createElementVNode("div",$S,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.filterList,(l,u)=>(a.openBlock(),a.createElementBlock("button",{onClick:c=>r(u),class:a.normalizeClass(["btn filter-item",{active:s.filterList[u].value,disabled:s.filterList[u].disabled}]),key:u},a.toDisplayString(l.title),11,ZS))),128))])]))}}),[["__scopeId","data-v-1a1bfba2"]]);var bi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(bi||(bi={}));var bt;(function(n){n[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue"})(bt||(bt={}));function e1(n){return Sr(n)&&typeof n.from=="function"}function Sr(n){return typeof n=="object"&&typeof n.to=="function"}function rd(n){n.parentElement.removeChild(n)}function Jo(n){return n!=null}function sd(n){n.preventDefault()}function t1(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function i1(n,e){return Math.round(n/e)*e}function n1(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=ld(i);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),e?t.top+s.y-r.clientTop:t.left+s.x-r.clientLeft}function zt(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function ad(n,e,t){t>0&&(mt(n,e),setTimeout(function(){Rr(n,e)},t))}function od(n){return Math.max(Math.min(n,100),0)}function xr(n){return Array.isArray(n)?n:[n]}function r1(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function mt(n,e){n.classList&&!/\s/.test(e)?n.classList.add(e):n.className+=" "+e}function Rr(n,e){n.classList&&!/\s/.test(e)?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function s1(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function ld(n){var e=window.pageXOffset!==void 0,t=(n.compatMode||"")==="CSS1Compat",i=e?window.pageXOffset:t?n.documentElement.scrollLeft:n.body.scrollLeft,r=e?window.pageYOffset:t?n.documentElement.scrollTop:n.body.scrollTop;return{x:i,y:r}}function a1(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function o1(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function l1(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function qo(n,e){return 100/(e-n)}function $o(n,e,t){return e*100/(n[t+1]-n[t])}function u1(n,e){return $o(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function c1(n,e){return e*(n[1]-n[0])/100+n[0]}function Mn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function d1(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=Mn(t,n),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return o+u1([r,s],t)/qo(o,l)}function h1(n,e,t){if(t>=100)return n.slice(-1)[0];var i=Mn(t,e),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return c1([r,s],(t-o)*qo(o,l))}function f1(n,e,t,i){if(i===100)return i;var r=Mn(i,n),s=n[r-1],o=n[r];return t?i-s>(o-s)/2?o:s:e[r-1]?n[r-1]+i1(i-n[r-1],e[r-1]):i}var ud=(function(){function n(e,t,i){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var r,s=[];for(Object.keys(e).forEach(function(o){s.push([xr(e[o]),o])}),s.sort(function(o,l){return o[0][0]-l[0][0]}),r=0;r<s.length;r++)this.handleEntryPoint(s[r][1],s[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return n.prototype.getDistance=function(e){for(var t=[],i=0;i<this.xNumSteps.length-1;i++)t[i]=$o(this.xVal,e,i);return t},n.prototype.getAbsoluteDistance=function(e,t,i){var r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!i&&e===this.xPct[r+1]&&r++,t===null&&(t=[]);var s,o=1,l=t[r],u=0,c=0,d=0,f=0;for(i?s=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):s=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);l>0;)u=this.xPct[r+1+f]-this.xPct[r+f],t[r+f]*o+100-s*100>100?(c=u*s,o=(l-100*s)/t[r+f],s=1):(c=t[r+f]*u/100*o,o=0),i?(d=d-c,this.xPct.length+f>=1&&f--):(d=d+c,this.xPct.length-f>=1&&f++),l=t[r+f]*o;return e+d},n.prototype.toStepping=function(e){return e=d1(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return h1(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=f1(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=Mn(e,this.xPct);return(e===100||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},n.prototype.getNearbySteps=function(e){var t=Mn(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(r1);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var i;if(e==="min"?i=0:e==="max"?i=100:i=parseFloat(e),!zt(i)||!zt(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var r=Number(t[1]);i?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=$o([this.xVal[e],this.xVal[e+1]],t,0)/qo(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(i.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=s}},n})(),cd={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},dd={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},vi={tooltips:".__tooltips",aria:".__aria"};function p1(n,e){if(!zt(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function m1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function g1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function b1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function v1(n,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new ud(e,n.snap||!1,n.singleStep)}function y1(n,e){if(e=xr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function w1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function C1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function A1(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function hd(n,e){var t=[!1],i;if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(i=1;i<n.handles;i++)t.push(e);t.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=e}n.connect=t}function E1(n,e){switch(e){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function fd(n,e){if(!zt(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function k1(n,e){if(!zt(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(e),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function S1(n,e){var t;if(!zt(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||zt(e[0])||zt(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),n.padding=[n.spectrum.getDistance(e[0]),n.spectrum.getDistance(e[1])],t=0;t<n.spectrum.xNumSteps.length-1;t++)if(n.padding[0][t]<0||n.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1],r=n.spectrum.xVal[0],s=n.spectrum.xVal[n.spectrum.xVal.length-1];if(i/(s-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function x1(n,e){switch(e){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function R1(n,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=e.indexOf("tap")>=0,i=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,s=e.indexOf("snap")>=0,o=e.indexOf("hover")>=0,l=e.indexOf("unconstrained")>=0,u=e.indexOf("invert-connects")>=0,c=e.indexOf("drag-all")>=0,d=e.indexOf("smooth-steps")>=0;if(r){if(n.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");fd(n,n.start[1]-n.start[0])}if(u&&n.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(l&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:t||s,drag:i,dragAll:c,smoothSteps:d,fixed:r,snap:s,hover:o,unconstrained:l,invertConnects:u}}function M1(n,e){if(e!==!1)if(e===!0||Sr(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=xr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!Sr(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function T1(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function D1(n,e){if(!Sr(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function O1(n,e){if(!e1(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function L1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function B1(n,e){n.documentElement=e}function F1(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function _1(n,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof n.cssPrefix=="string"?(n.cssClasses={},Object.keys(e).forEach(function(t){n.cssClasses[t]=n.cssPrefix+e[t]})):n.cssClasses=e}function pd(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:cd,format:cd},t={step:{r:!1,t:p1},keyboardPageMultiplier:{r:!1,t:m1},keyboardMultiplier:{r:!1,t:g1},keyboardDefaultStep:{r:!1,t:b1},start:{r:!0,t:y1},connect:{r:!0,t:hd},direction:{r:!0,t:x1},snap:{r:!1,t:w1},animate:{r:!1,t:C1},animationDuration:{r:!1,t:A1},range:{r:!0,t:v1},orientation:{r:!1,t:E1},margin:{r:!1,t:fd},limit:{r:!1,t:k1},padding:{r:!1,t:S1},behaviour:{r:!0,t:R1},ariaFormat:{r:!1,t:D1},format:{r:!1,t:O1},tooltips:{r:!1,t:M1},keyboardSupport:{r:!0,t:L1},documentElement:{r:!1,t:B1},cssPrefix:{r:!0,t:F1},cssClasses:{r:!0,t:_1},handleAttributes:{r:!1,t:T1}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:dd,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(u){if(!Jo(n[u])&&i[u]===void 0){if(t[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return}t[u].t(e,Jo(n[u])?n[u]:i[u])}),e.pips=n.pips;var r=document.createElement("div"),s=r.style.msTransform!==void 0,o=r.style.transform!==void 0;e.transformRule=o?"transform":s?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function P1(n,e,t){var i=a1(),r=l1(),s=r&&o1(),o=n,l,u,c,d,f,p,h=e.spectrum,x=[],b=[],S=[],C=0,m={},D=!1,g=n.ownerDocument,M=e.documentElement||g.documentElement,y=g.body,k=g.dir==="rtl"||e.ort===1?0:100;function w(A,O){var _=g.createElement("div");return O&&mt(_,O),A.appendChild(_),_}function E(A,O){var _=w(A,e.cssClasses.origin),G=w(_,e.cssClasses.handle);if(w(G,e.cssClasses.touchArea),G.setAttribute("data-handle",String(O)),e.keyboardSupport&&(G.setAttribute("tabindex","0"),G.addEventListener("keydown",function(ue){return Fe(ue,O)})),e.handleAttributes!==void 0){var re=e.handleAttributes[O];Object.keys(re).forEach(function(ue){G.setAttribute(ue,re[ue])})}return G.setAttribute("role","slider"),G.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),O===0?mt(G,e.cssClasses.handleLower):O===e.handles-1&&mt(G,e.cssClasses.handleUpper),_.handle=G,_}function v(A,O){return O?w(A,e.cssClasses.connect):!1}function T(A,O){u=w(O,e.cssClasses.connects),c=[],d=[],d.push(v(u,A[0]));for(var _=0;_<e.handles;_++)c.push(E(O,_)),S[_]=_,d.push(v(u,A[_+1]))}function R(A){mt(A,e.cssClasses.target),e.dir===0?mt(A,e.cssClasses.ltr):mt(A,e.cssClasses.rtl),e.ort===0?mt(A,e.cssClasses.horizontal):mt(A,e.cssClasses.vertical);var O=getComputedStyle(A).direction;return O==="rtl"?mt(A,e.cssClasses.textDirectionRtl):mt(A,e.cssClasses.textDirectionLtr),w(A,e.cssClasses.base)}function L(A,O){return!e.tooltips||!e.tooltips[O]?!1:w(A.firstChild,e.cssClasses.tooltip)}function N(){return o.hasAttribute("disabled")}function j(A){var O=c[A];return O.hasAttribute("disabled")}function U(A){A!=null?(c[A].setAttribute("disabled",""),c[A].handle.removeAttribute("tabindex")):(o.setAttribute("disabled",""),c.forEach(function(O){O.handle.removeAttribute("tabindex")}))}function I(A){A!=null?(c[A].removeAttribute("disabled"),c[A].handle.setAttribute("tabindex","0")):(o.removeAttribute("disabled"),c.forEach(function(O){O.removeAttribute("disabled"),O.handle.setAttribute("tabindex","0")}))}function V(){p&&(q("update"+vi.tooltips),p.forEach(function(A){A&&rd(A)}),p=null)}function K(){V(),p=c.map(L),Ne("update"+vi.tooltips,function(A,O,_){if(!(!p||!e.tooltips)&&p[O]!==!1){var G=A[O];e.tooltips[O]!==!0&&(G=e.tooltips[O].to(_[O])),p[O].innerHTML=G}})}function F(){q("update"+vi.aria),Ne("update"+vi.aria,function(A,O,_,G,re){S.forEach(function(ue){var he=c[ue],pe=me(b,ue,0,!0,!0,!0),be=me(b,ue,100,!0,!0,!0),Ce=re[ue],De=String(e.ariaFormat.to(_[ue]));pe=h.fromStepping(pe).toFixed(1),be=h.fromStepping(be).toFixed(1),Ce=h.fromStepping(Ce).toFixed(1),he.children[0].setAttribute("aria-valuemin",pe),he.children[0].setAttribute("aria-valuemax",be),he.children[0].setAttribute("aria-valuenow",Ce),he.children[0].setAttribute("aria-valuetext",De)})})}function P(A){if(A.mode===bi.Range||A.mode===bi.Steps)return h.xVal;if(A.mode===bi.Count){if(A.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var O=A.values-1,_=100/O,G=[];O--;)G[O]=O*_;return G.push(100),Y(G,A.stepped)}return A.mode===bi.Positions?Y(A.values,A.stepped):A.mode===bi.Values?A.stepped?A.values.map(function(re){return h.fromStepping(h.getStep(h.toStepping(re)))}):A.values:[]}function Y(A,O){return A.map(function(_){return h.fromStepping(O?h.getStep(_):_)})}function z(A){function O(Ce,De){return Number((Ce+De).toFixed(7))}var _=P(A),G={},re=h.xVal[0],ue=h.xVal[h.xVal.length-1],he=!1,pe=!1,be=0;return _=t1(_.slice().sort(function(Ce,De){return Ce-De})),_[0]!==re&&(_.unshift(re),he=!0),_[_.length-1]!==ue&&(_.push(ue),pe=!0),_.forEach(function(Ce,De){var We,Be,qe,Xe=Ce,at=_[De+1],nt,yi,Ti,ci,jt,$t,Xi,Di=A.mode===bi.Steps;for(Di&&(We=h.xNumSteps[De]),We||(We=at-Xe),at===void 0&&(at=Xe),We=Math.max(We,1e-7),Be=Xe;Be<=at;Be=O(Be,We)){for(nt=h.toStepping(Be),yi=nt-be,jt=yi/(A.density||1),$t=Math.round(jt),Xi=yi/$t,qe=1;qe<=$t;qe+=1)Ti=be+qe*Xi,G[Ti.toFixed(5)]=[h.fromStepping(Ti),0];ci=_.indexOf(Be)>-1?bt.LargeValue:Di?bt.SmallValue:bt.NoValue,!De&&he&&Be!==at&&(ci=0),Be===at&&pe||(G[nt.toFixed(5)]=[Be,ci]),be=nt}}),G}function J(A,O,_){var G,re,ue=g.createElement("div"),he=(G={},G[bt.None]="",G[bt.NoValue]=e.cssClasses.valueNormal,G[bt.LargeValue]=e.cssClasses.valueLarge,G[bt.SmallValue]=e.cssClasses.valueSub,G),pe=(re={},re[bt.None]="",re[bt.NoValue]=e.cssClasses.markerNormal,re[bt.LargeValue]=e.cssClasses.markerLarge,re[bt.SmallValue]=e.cssClasses.markerSub,re),be=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],Ce=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];mt(ue,e.cssClasses.pips),mt(ue,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function De(Be,qe){var Xe=qe===e.cssClasses.value,at=Xe?be:Ce,nt=Xe?he:pe;return qe+" "+at[e.ort]+" "+nt[Be]}function We(Be,qe,Xe){if(Xe=O?O(qe,Xe):Xe,Xe!==bt.None){var at=w(ue,!1);at.className=De(Xe,e.cssClasses.marker),at.style[e.style]=Be+"%",Xe>bt.NoValue&&(at=w(ue,!1),at.className=De(Xe,e.cssClasses.value),at.setAttribute("data-value",String(qe)),at.style[e.style]=Be+"%",at.innerHTML=String(_.to(qe)))}}return Object.keys(A).forEach(function(Be){We(Be,A[Be][0],A[Be][1])}),ue}function $(){f&&(rd(f),f=null)}function Q(A){$();var O=z(A),_=A.filter,G=A.format||{to:function(re){return String(Math.round(re))}};return f=o.appendChild(J(O,_,G)),f}function ae(){var A=l.getBoundingClientRect(),O="offset"+["Width","Height"][e.ort];return e.ort===0?A.width||l[O]:A.height||l[O]}function W(A,O,_,G){var re=function(he){var pe=H(he,G.pageOffset,G.target||O);if(!pe||N()&&!G.doNotReject||s1(o,e.cssClasses.tap)&&!G.doNotReject||A===i.start&&pe.buttons!==void 0&&pe.buttons>1||G.hover&&pe.buttons)return!1;s||pe.preventDefault(),pe.calcPoint=pe.points[e.ort],_(pe,G)},ue=[];return A.split(" ").forEach(function(he){O.addEventListener(he,re,s?{passive:!0}:!1),ue.push([he,re])}),ue}function H(A,O,_){var G=A.type.indexOf("touch")===0,re=A.type.indexOf("mouse")===0,ue=A.type.indexOf("pointer")===0,he=0,pe=0;if(A.type.indexOf("MSPointer")===0&&(ue=!0),A.type==="mousedown"&&!A.buttons&&!A.touches)return!1;if(G){var be=function(We){var Be=We.target;return Be===_||_.contains(Be)||A.composed&&A.composedPath().shift()===_};if(A.type==="touchstart"){var Ce=Array.prototype.filter.call(A.touches,be);if(Ce.length>1)return!1;he=Ce[0].pageX,pe=Ce[0].pageY}else{var De=Array.prototype.find.call(A.changedTouches,be);if(!De)return!1;he=De.pageX,pe=De.pageY}}return O=O||ld(g),(re||ue)&&(he=A.clientX+O.x,pe=A.clientY+O.y),A.pageOffset=O,A.points=[he,pe],A.cursor=re||ue,A}function te(A){var O=A-n1(l,e.ort),_=O*100/ae();return _=od(_),e.dir?100-_:_}function X(A){var O=100,_=!1;return c.forEach(function(G,re){if(!j(re)){var ue=b[re],he=Math.abs(ue-A),pe=he===100&&O===100,be=he<O,Ce=he<=O&&A>ue;(be||Ce||pe)&&(_=re,O=he)}}),_}function Z(A,O){A.type==="mouseout"&&A.target.nodeName==="HTML"&&A.relatedTarget===null&&le(A,O)}function fe(A,O){if(navigator.appVersion.indexOf("MSIE 9")===-1&&A.buttons===0&&O.buttonsProperty!==0)return le(A,O);var _=(e.dir?-1:1)*(A.calcPoint-O.startCalcPoint),G=_*100/O.baseSize;ke(_>0,G,O.locations,O.handleNumbers,O.connect)}function le(A,O){O.handle&&(Rr(O.handle,e.cssClasses.active),C-=1),O.listeners.forEach(function(_){M.removeEventListener(_[0],_[1])}),C===0&&(Rr(o,e.cssClasses.drag),Se(),A.cursor&&(y.style.cursor="",y.removeEventListener("selectstart",sd))),e.events.smoothSteps&&(O.handleNumbers.forEach(function(_){Le(_,b[_],!0,!0,!1,!1)}),O.handleNumbers.forEach(function(_){ie("update",_)})),O.handleNumbers.forEach(function(_){ie("change",_),ie("set",_),ie("end",_)})}function ye(A,O){if(!O.handleNumbers.some(j)){var _;if(O.handleNumbers.length===1){var G=c[O.handleNumbers[0]];_=G.children[0],C+=1,mt(_,e.cssClasses.active)}A.stopPropagation();var re=[],ue=W(i.move,M,fe,{target:A.target,handle:_,connect:O.connect,listeners:re,startCalcPoint:A.calcPoint,baseSize:ae(),pageOffset:A.pageOffset,handleNumbers:O.handleNumbers,buttonsProperty:A.buttons,locations:b.slice()}),he=W(i.end,M,le,{target:A.target,handle:_,listeners:re,doNotReject:!0,handleNumbers:O.handleNumbers}),pe=W("mouseout",M,Z,{target:A.target,handle:_,listeners:re,doNotReject:!0,handleNumbers:O.handleNumbers});re.push.apply(re,ue.concat(he,pe)),A.cursor&&(y.style.cursor=getComputedStyle(A.target).cursor,c.length>1&&mt(o,e.cssClasses.drag),y.addEventListener("selectstart",sd,!1)),O.handleNumbers.forEach(function(be){ie("start",be)})}}function we(A){A.stopPropagation();var O=te(A.calcPoint),_=X(O);_!==!1&&(e.events.snap||ad(o,e.cssClasses.tap,e.animationDuration),Le(_,O,!0,!0),Se(),ie("slide",_,!0),ie("update",_,!0),e.events.snap?ye(A,{handleNumbers:[_]}):(ie("change",_,!0),ie("set",_,!0)))}function xe(A){var O=te(A.calcPoint),_=h.getStep(O),G=h.fromStepping(_);Object.keys(m).forEach(function(re){re.split(".")[0]==="hover"&&m[re].forEach(function(ue){ue.call(B,G)})})}function Fe(A,O){if(N()||j(O))return!1;var _=["Left","Right"],G=["Down","Up"],re=["PageDown","PageUp"],ue=["Home","End"];e.dir&&!e.ort?_.reverse():e.ort&&!e.dir&&(G.reverse(),re.reverse());var he=A.key.replace("Arrow",""),pe=he===re[0],be=he===re[1],Ce=he===G[0]||he===_[0]||pe,De=he===G[1]||he===_[1]||be,We=he===ue[0],Be=he===ue[1];if(!Ce&&!De&&!We&&!Be)return!0;A.preventDefault();var qe;if(De||Ce){var Xe=Ce?0:1,at=Pe(O),nt=at[Xe];if(nt===null)return!1;nt===!1&&(nt=h.getDefaultStep(b[O],Ce,e.keyboardDefaultStep)),be||pe?nt*=e.keyboardPageMultiplier:nt*=e.keyboardMultiplier,nt=Math.max(nt,1e-7),nt=(Ce?-1:1)*nt,qe=x[O]+nt}else Be?qe=e.spectrum.xVal[e.spectrum.xVal.length-1]:qe=e.spectrum.xVal[0];return Le(O,h.toStepping(qe),!0,!0),ie("slide",O),ie("update",O),ie("change",O),ie("set",O),!1}function _e(A){A.fixed||c.forEach(function(O,_){W(i.start,O.children[0],ye,{handleNumbers:[_]})}),A.tap&&W(i.start,l,we,{}),A.hover&&W(i.move,l,xe,{hover:!0}),A.drag&&d.forEach(function(O,_){if(!(O===!1||_===0||_===d.length-1)){var G=c[_-1],re=c[_],ue=[O],he=[G,re],pe=[_-1,_];mt(O,e.cssClasses.draggable),A.fixed&&(ue.push(G.children[0]),ue.push(re.children[0])),A.dragAll&&(he=c,pe=S),ue.forEach(function(be){W(i.start,be,ye,{handles:he,handleNumbers:pe,connect:O})})}})}function Ne(A,O){m[A]=m[A]||[],m[A].push(O),A.split(".")[0]==="update"&&c.forEach(function(_,G){ie("update",G)})}function ce(A){return A===vi.aria||A===vi.tooltips}function q(A){var O=A&&A.split(".")[0],_=O?A.substring(O.length):A;Object.keys(m).forEach(function(G){var re=G.split(".")[0],ue=G.substring(re.length);(!O||O===re)&&(!_||_===ue)&&(!ce(ue)||_===ue)&&delete m[G]})}function ie(A,O,_){Object.keys(m).forEach(function(G){var re=G.split(".")[0];A===re&&m[G].forEach(function(ue){ue.call(B,x.map(e.format.to),O,x.slice(),_||!1,b.slice(),B)})})}function me(A,O,_,G,re,ue,he){var pe;return c.length>1&&!e.events.unconstrained&&(G&&O>0&&(pe=h.getAbsoluteDistance(A[O-1],e.margin,!1),_=Math.max(_,pe)),re&&O<c.length-1&&(pe=h.getAbsoluteDistance(A[O+1],e.margin,!0),_=Math.min(_,pe))),c.length>1&&e.limit&&(G&&O>0&&(pe=h.getAbsoluteDistance(A[O-1],e.limit,!1),_=Math.min(_,pe)),re&&O<c.length-1&&(pe=h.getAbsoluteDistance(A[O+1],e.limit,!0),_=Math.max(_,pe))),e.padding&&(O===0&&(pe=h.getAbsoluteDistance(0,e.padding[0],!1),_=Math.max(_,pe)),O===c.length-1&&(pe=h.getAbsoluteDistance(100,e.padding[1],!0),_=Math.min(_,pe))),he||(_=h.getStep(_)),_=od(_),_===A[O]&&!ue?!1:_}function de(A,O){var _=e.ort;return(_?O:A)+", "+(_?A:O)}function ke(A,O,_,G,re){var ue=_.slice(),he=G[0],pe=e.events.smoothSteps,be=[!A,A],Ce=[A,!A];G=G.slice(),A&&G.reverse(),G.length>1?G.forEach(function(We,Be){var qe=me(ue,We,ue[We]+O,be[Be],Ce[Be],!1,pe);qe===!1?O=0:(O=qe-ue[We],ue[We]=qe)}):be=Ce=[!0];var De=!1;G.forEach(function(We,Be){De=Le(We,_[We]+O,be[Be],Ce[Be],!1,pe)||De}),De&&(G.forEach(function(We){ie("update",We),ie("slide",We)}),re!=null&&ie("drag",he))}function Me(A,O){return e.dir?100-A-O:A}function oe(A,O){b[A]=O,x[A]=h.fromStepping(O);var _=Me(O,0)-k,G="translate("+de(_+"%","0")+")";if(c[A].style[e.transformRule]=G,e.events.invertConnects&&b.length>1){var re=b.every(function(ue,he,pe){return he===0||ue>=pe[he-1]});if(D!==!re){ct();return}}et(A),et(A+1),D&&(et(A-1),et(A+2))}function Se(){S.forEach(function(A){var O=b[A]>50?-1:1,_=3+(c.length+O*A);c[A].style.zIndex=String(_)})}function Le(A,O,_,G,re,ue){return re||(O=me(b,A,O,_,G,!1,ue)),O===!1?!1:(oe(A,O),!0)}function et(A){if(d[A]){var O=b.slice();D&&O.sort(function(pe,be){return pe-be});var _=0,G=100;A!==0&&(_=O[A-1]),A!==d.length-1&&(G=O[A]);var re=G-_,ue="translate("+de(Me(_,re)+"%","0")+")",he="scale("+de(re/100,"1")+")";d[A].style[e.transformRule]=ue+" "+he}}function je(A,O){return A===null||A===!1||A===void 0||(typeof A=="number"&&(A=String(A)),A=e.format.from(A),A!==!1&&(A=h.toStepping(A)),A===!1||isNaN(A))?b[O]:A}function Rt(A,O,_){var G=xr(A),re=b[0]===void 0;O=O===void 0?!0:O,e.animate&&!re&&ad(o,e.cssClasses.tap,e.animationDuration),S.forEach(function(pe){Le(pe,je(G[pe],pe),!0,!1,_)});var ue=S.length===1?0:1;if(re&&h.hasNoSize()&&(_=!0,b[0]=0,S.length>1)){var he=100/(S.length-1);S.forEach(function(pe){b[pe]=pe*he})}for(;ue<S.length;++ue)S.forEach(function(pe){Le(pe,b[pe],!0,!0,_)});Se(),S.forEach(function(pe){ie("update",pe),G[pe]!==null&&O&&ie("set",pe)})}function At(A){Rt(e.start,A)}function Ge(A,O,_,G){if(A=Number(A),!(A>=0&&A<S.length))throw new Error("noUiSlider: invalid handle number, got: "+A);Le(A,je(O,A),!0,!0,G),ie("update",A),_&&ie("set",A)}function ee(A){if(A===void 0&&(A=!1),A)return x.length===1?x[0]:x.slice(0);var O=x.map(e.format.to);return O.length===1?O[0]:O}function se(){for(q(vi.aria),q(vi.tooltips),Object.keys(e.cssClasses).forEach(function(A){Rr(o,e.cssClasses[A])});o.firstChild;)o.removeChild(o.firstChild);delete o.noUiSlider}function Pe(A){var O=b[A],_=h.getNearbySteps(O),G=x[A],re=_.thisStep.step,ue=null;if(e.snap)return[G-_.stepBefore.startValue||null,_.stepAfter.startValue-G||null];re!==!1&&G+re>_.stepAfter.startValue&&(re=_.stepAfter.startValue-G),G>_.thisStep.startValue?ue=_.thisStep.step:_.stepBefore.step===!1?ue=!1:ue=G-_.stepBefore.highestStep,O===100?re=null:O===0&&(ue=null);var he=h.countStepDecimals();return re!==null&&re!==!1&&(re=Number(re.toFixed(he))),ue!==null&&ue!==!1&&(ue=Number(ue.toFixed(he))),[ue,re]}function ze(){return S.map(Pe)}function Oe(A,O){var _=ee(),G=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];G.forEach(function(ue){A[ue]!==void 0&&(t[ue]=A[ue])});var re=pd(t);G.forEach(function(ue){A[ue]!==void 0&&(e[ue]=re[ue])}),h=re.spectrum,e.margin=re.margin,e.limit=re.limit,e.padding=re.padding,e.pips?Q(e.pips):$(),e.tooltips?K():V(),b=[],Rt(Jo(A.start)?A.start:_,O),A.connect&&Re()}function Re(){for(;u.firstChild;)u.removeChild(u.firstChild);for(var A=0;A<=e.handles;A++)d[A]=v(u,e.connect[A]),et(A);_e({drag:e.events.drag,fixed:!0})}function ct(){D=!D,hd(e,e.connect.map(function(A){return!A})),Re()}function ge(){l=R(o),T(e.connect,l),_e(e.events),Rt(e.start),e.pips&&Q(e.pips),e.tooltips&&K(),F()}ge();var B={destroy:se,steps:ze,on:Ne,off:q,get:ee,set:Rt,setHandle:Ge,reset:At,disable:U,enable:I,__moveHandles:function(A,O,_){ke(A,O,b,_)},options:t,updateOptions:Oe,target:o,removePips:$,removeTooltips:V,getPositions:function(){return b.slice()},getTooltips:function(){return p},getOrigins:function(){return c},pips:Q};return B}function N1(n,e){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=pd(e),i=P1(n,t,e);return n.noUiSlider=i,i}const I1={__spectrum:ud,cssClasses:dd,create:N1},H1={class:"slider-container"},V1={class:"slider-wrapper",style:{position:"relative"}},z1=["id"],j1=["value"],W1=["value"],U1=Ie(a.defineComponent({__name:"Slider",props:{minCount:{default:0},maxCount:{default:100},minValue:{default:0},maxValue:{default:100},step:{default:1},tooltips:{type:Boolean,default:!0},connect:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},sliderId:{default:"slider-range"}},emits:["updateMinValue","updateMaxValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.ref(null),o=a.ref(null),l=a.ref(null);let u=null;const c=a.ref(i.minValue),d=a.ref(i.maxValue),f=()=>{if(!s.value)return;u&&u.destroy();const b=Array(i.maxCount-i.minCount+1).fill(0).map((C,m)=>i.minCount+m),S={to:C=>{const m=Math.round(C);return b[m]||b[0]},from:C=>{const m=Number(C);return b.indexOf(m)}};try{u=I1.create(s.value,{start:[c.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:S,range:{min:0,max:b.length-1}}),u.on("change",C=>{const m=Number(C[0]),D=Number(C[1]);c.value!==m&&(c.value=m,r("updateMinValue",m)),d.value!==D&&(d.value=D,r("updateMaxValue",D)),r("change",[m,D])}),u.on("update",C=>{const m=Number(C[0]),D=Number(C[1]);c.value=m,d.value=D})}catch(C){console.error("Error creating slider:",C)}},p=()=>{a.nextTick(()=>{f()})},h=(b,S)=>{if(u)try{u.set([b,S])}catch(C){console.error("Error updating slider values:",C)}},x=b=>{u&&(b?u.disable():u.enable())};return a.watch(()=>[i.minValue,i.maxValue],([b,S])=>{(b!==c.value||S!==d.value)&&(c.value=b,d.value=S,h(b,S))},{immediate:!1}),a.watch(()=>i.disabled,b=>{x(b)}),a.watch(()=>[i.minCount,i.maxCount],()=>{p()}),a.onMounted(()=>{p()}),a.onUnmounted(()=>{u&&(u.destroy(),u=null)}),e({updateValues:h,getValues:()=>u?.get(),reset:()=>{u&&u.reset()},destroy:()=>{u&&(u.destroy(),u=null)}}),(b,S)=>(a.openBlock(),a.createElementBlock("div",H1,[a.createElementVNode("div",V1,[a.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:b.sliderId},null,8,z1)]),a.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:o,value:b.minValue},null,8,j1),a.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:b.maxValue},null,8,W1)]))}}),[["__scopeId","data-v-892dca90"]]),G1=["title"],Y1=Ie(a.defineComponent({__name:"QuestionIcon",props:{title:{default:""},size:{default:"md"},color:{default:"#999999"},iconClass:{default:""},tooltipPosition:{default:"top"},clickToShow:{type:Boolean,default:!0}},setup(n){const e=n,t=a.ref(),i=a.ref(!1),r=a.computed(()=>({color:e.color})),s=a.computed(()=>{switch(e.size){case"sm":return"question-icon--sm";case"lg":return"question-icon--lg";default:return"question-icon--md"}}),o=a.computed(()=>`question-tooltip--${e.tooltipPosition}`),l=()=>{e.clickToShow&&e.title&&(i.value=!i.value)},u=c=>{t.value&&!t.value.contains(c.target)&&(i.value=!1)};return a.onMounted(()=>{e.clickToShow&&document.addEventListener("click",u)}),a.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",u)}),(c,d)=>(a.openBlock(),a.createElementBlock("div",{class:"question-icon-wrapper",ref_key:"wrapperRef",ref:t},[a.createElementVNode("i",{class:a.normalizeClass(["bi bi-question-circle-fill question-icon",[c.iconClass,s.value]]),title:c.title,style:a.normalizeStyle(r.value),onClick:l},null,14,G1),i.value&&c.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["question-tooltip",o.value])},[a.createTextVNode(a.toDisplayString(c.title)+" ",1),d[0]||(d[0]=a.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),Q1={class:"container-fluid rounded overflow-hidden bg-light"},K1={class:"row w-100"},J1={class:"text-secondary"},q1={class:"d-flex py-3 px-2 onlyPrint"},$1={class:"row w-100"},Z1={class:"text-secondary"},X1={class:"row"},ex=Ie(a.defineComponent({__name:"FilterValuesPanel",props:{filterValues:{default:null},filterTitles:{}},emits:["showFilter"],setup(n,{emit:e}){const t=n,i=a.ref(!1),r=a.ref([]);a.computed(()=>t.filterValues?Object.entries(t.filterValues).filter(([o,l])=>l).map(([o,l])=>({name:t.filterTitles[o]||o,value:String(l),key:o})):[]);function s(o){if(!o){r.value=[];return}r.value=Object.entries(o).filter(([l,u])=>u).map(([l,u])=>({name:t.filterTitles[l]||l,value:String(u),key:l}))}return a.watch(()=>t.filterValues,o=>{const l=a.isRef(o)?o.value:o;s(l)},{deep:!0,immediate:!0}),(o,l)=>(a.openBlock(),a.createElementBlock("div",Q1,[a.createElementVNode("div",{style:a.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[a.createElementVNode("div",K1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",c===r.value.length-1?"col":"col-auto"]),key:u.key},[a.createElementVNode("div",J1,a.toDisplayString(u.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(u.value),1)])],2))),128))]),a.createElementVNode("div",null,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-right rounded",onClick:l[0]||(l[0]=u=>o.$emit("showFilter"))},[...l[2]||(l[2]=[a.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),a.createElementVNode("div",q1,[a.createElementVNode("div",$1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",c===r.value.length-1?"col":"col-auto"]),key:u.key},[a.createElementVNode("div",Z1,a.toDisplayString(u.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(u.value),1)])],2))),128))])]),a.createElementVNode("div",X1,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:l[1]||(l[1]=u=>i.value=!i.value)},[a.createElementVNode("i",{class:a.normalizeClass({"bi lh-normal":!0,"bi-chevron-down":!i.value,"bi-chevron-up":i.value})},null,2)])])]))}}),[["__scopeId","data-v-5fb2b7d8"]]),md=(n={})=>{n.hasOwnProperty("KEY")||(n.KEY="tables");const{KEY:e}=n;function t(o,l){const u=localStorage.getItem(e);let c=JSON.parse(u);return c={...c,[o]:l},localStorage.setItem(e,JSON.stringify(c)),!0}function i(o){return o?(localStorage.setItem(e,JSON.stringify(o)),!0):!1}function r(o){const l=localStorage.getItem(e),u=JSON.parse(l);return u?.hasOwnProperty(o)&&delete u[o],i(u),!0}function s(o){const l=localStorage.getItem(e);return(JSON.parse(l)||{})[o]||null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}},tx=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:o=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const u=a.ref({}),c=a.ref(0),d=a.ref(""),f=a.ref(""),p=a.ref({}),h=a.ref(!1),x=a.ref(!1),b=a.ref(!1),S=a.ref(s()),C=a.ref(!1),{setItemStorage:m,removeItemStorage:D,getItemStorage:g}=md();async function M(){S.value=s(),p.value={}}function y(Q){if(!n)return!1;m(n,Q)}const k=a.readonly({...o()});function w(Q,ae){p.value[Q]=ae}const E=a.computed(()=>Object.values(p.value).some(Boolean));function v(){c.value+=1}async function T(Q){if(!Q||!Q.options)return;const ae=r.value.ajaxURL;ae&&(Q.options.ajaxURL=ae),r.value.columns&&(Q.options.columns=r.value.columns,Q.setColumns(r.value.columns),await R(Q)),ae&&Q.replaceData(ae)}async function R(Q){const ae=typeof Q.hideColumn=="function",W=typeof Q.showColumn=="function";if(!ae||!W){v();return}for(const H of r.value.columns)H.visible===!1?Q.hideColumn(H.field):Q.showColumn(H.field)}function L(Q){if(!n)return!1;m(n,j(Q))}async function N(Q){const ae=r.value?.paginationMode==="remote";if(!(ae&&(!Q||!Q.replaceData))&&!(C.value||x.value)){x.value=!0;try{if(await V(),C.value||(await a.nextTick(),C.value))return;if(!ae){v();return}await T(Q),h.value=!1}finally{x.value=!1}}}function j(Q){return Q.map(W=>{let H=JSON.parse(JSON.stringify(W));return W.visible===!1&&(delete H.width,delete H.minWidth),H})}function U(Q){if(!n)return!1;m(n,j(Q))}function I(){const Q={};for(const[ae,W]of Object.entries({...S.value}))!W||W?.length<1||Array.isArray(W)&&(W[0]===null||W[0]===void 0||W[0]==="")||(Q[ae]=W);return Q}async function V(){if(C.value)return;const Q=e(),ae=await t();if(C.value)return;const W=Y();r.value={...r.value,ajaxURL:Q,ajaxResponse:ae,columns:W,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const K=a.computed(()=>{let Q=[];return r.value.columns.map(ae=>{ae.title&&Q.push(ae.visible)}),Q.includes(!1)});async function F(Q,ae){Q.target.checked==!1?(d.value=ae,f.value=""):(f.value=ae,d.value="")}async function P(){D(n),r.value.columns=Y()}function Y(){const Q=g(n);return Q||i({selectedQuickFilter:l?.value})}async function z(){D(n),r.value.columns.map(Q=>Q.visible=!1),U(r.value.columns)}function J(Q){r.value.columns=Q,n&&m(n,Q)}function $(){r.value.columns=r.value.columns}return a.onBeforeUnmount(()=>{C.value=!0}),a.provide("setFilterParamsStrings",w),a.provide("selectedFilterTitles",k),a.provide("tableFilters",S),a.provide("filterModalVisibility",h),a.provide("resetFilters",M),a.provide("applyFilters",N),a.provide("editTableColumnsModalVisibility",b),a.provide("tableOptions",r),a.provide("editTableColumnVisibility",F),a.provide("isTableCoumnsHidden",K),a.provide("unselectAllTableColumnCheckboxes",z),a.provide("selectAllTableColumnCheckboxes",P),a.provide("handleColumnsChanged",J),a.provide("handleColumnsApply",$),a.provide("table",u),{selectAllTableColumnCheckboxes:P,unselectAllTableColumnCheckboxes:z,isTableCoumnsHidden:K,editTableColumnVisibility:F,fetchData:V,onHideColumn:U,getFilterData:I,applyFilters:N,reRenderTable:v,resetFilters:M,onTableRowMoved:y,onShowColumn:L,table:u,tableKey:c,columnHide:d,columnShow:f,selectedFilterTitles:k,setFilterParamsStrings:w,filterParamsStrings:p,isSelectedFiltersVisible:E,filterModalVisibility:h,editTableColumnsModalVisibility:b,tableFilters:S,tableOptions:r,handleColumnsChanged:J,handleColumnsApply:$}};function gd(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function bd(n){return n.filter(e=>e.visible===!0)}function vd(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Mr(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function Zo(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Tn(n){if(!Array.isArray(n))return console.warn("validateColumns: columns must be an array"),!1;for(const e of n){if(!e.field||typeof e.field!="string")return console.warn("validateColumns: column.field must be a non-empty string",e),!1;if(typeof e.visible!="boolean")return console.warn("validateColumns: column.visible must be a boolean",e),!1}return!0}function yd(n){return n.some(e=>e.title&&!e.visible)}function wd(n,e){return n.find(t=>t.field===e)}function Tr(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const ix=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:wd,getVisibleColumns:bd,hasHiddenColumns:yd,hideAllColumns:Zo,prepareColumnsToSave:gd,resetColumnsToDefault:Mr,toggleColumnVisibility:vd,updateColumn:Tr,validateColumns:Tn},Symbol.toStringTag,{value:"Module"}));function Cd(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:o,validateOnChange:l=!0}=n;Tn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const u=a.ref(!1),c=a.ref([...e]),d=a.ref(!1);if(t&&typeof window<"u")try{const I=localStorage.getItem(t);if(I){const V=JSON.parse(I);Tn(V)&&(c.value=V)}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}const f=a.computed(()=>bd(c.value)),p=a.computed(()=>yd(c.value)),h=a.computed(()=>c.value.length),x=a.computed(()=>f.value.length);function b(I){if(!(!t||typeof window>"u"||!r))try{const V=gd(I);localStorage.setItem(t,JSON.stringify(V))}catch(V){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",V)}}function S(){if(!t||typeof window>"u")return null;try{const I=localStorage.getItem(t);if(I){const V=JSON.parse(I);if(Tn(V))return V}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}return null}function C(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(I){console.warn("useTableColumnsEnhanced: failed to clear localStorage",I)}}function m(I){if(l&&!Tn(I)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}c.value=[...I],b(I),s?.(I)}function D(I,V){const K=I.target,F=Tr(c.value,V,{visible:K.checked});m(F)}function g(I){u.value=I}function M(I){const V=I||c.value;m(V),u.value=!1,o?.(V)}function y(){const I=Mr(c.value);m(I)}function k(){const I=Zo(c.value);m(I)}function w(I){const V=vd(c.value,I);m(V)}function E(I){const V=Tr(c.value,I,{visible:!0});m(V)}function v(I){const V=Tr(c.value,I,{visible:!1});m(V)}function T(){const I=Mr(e);m(I)}function R(){const I=Mr(c.value);m(I)}function L(){const I=Zo(c.value);m(I)}function N(I){return wd(c.value,I)}function j(I){return N(I)?.visible??!1}function U(){i?.value&&(i.value.columns=c.value)}return a.watch(c,()=>{U()},{deep:!0}),a.watch(()=>e,I=>{d.value||(c.value=[...I],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,U()),{columnsModalVisibility:u,tableColumns:c,visibleColumns:f,hasHidden:p,columnsCount:h,visibleCount:x,isInitialized:d,handleColumnsModalVisibility:g,handleColumnVisibilityChange:D,handleColumnsApply:M,handleColumnsSelectAll:y,handleColumnsUnselectAll:k,updateColumns:m,toggleColumn:w,showColumn:E,hideColumn:v,resetToDefault:T,showAll:R,hideAll:L,getColumn:N,isColumnVisible:j,saveToLocalStorage:b,loadFromLocalStorage:S,clearLocalStorage:C,syncWithTableOptions:U}}function nx(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:o}=n,l=Cd({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:h=>{s?.(h),r?.applyFilters&&r.applyFilters()},onApply:h=>{o?.(h),r?.applyFilters&&r.applyFilters()}});function u(h){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",h),l.updateColumns(h)}function c(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const h=r.onShowColumn;r.onShowColumn=x=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",x),l.updateColumns(x),h?.(x)}}if(r.onHideColumn){const h=r.onHideColumn;r.onHideColumn=x=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",x),l.updateColumns(x),h?.(x)}}}}function f(){i?.value&&(i.value.columns=l.tableColumns.value)}function p(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return a.watch(()=>t(),h=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",h),l.updateColumns(h)},{deep:!0}),d(),{...l,handleColumnsChanged:u,handleColumnsApply:c,syncWithTableOptions:f,syncWithTable:p,setupTableDefaultIntegration:d}}function rx(n){const{tableColumns:e,tableOptions:t,tableDefault:i,onApply:r}=n;function s(l){console.log("createColumnHandlers handleColumnsChanged called, received columns:",l),e.value=l,t.value.columns=l,i?.tableOptions&&(i.tableOptions.columns=l)}function o(){console.log("createColumnHandlers handleColumnsApply called"),console.log("createColumnHandlers current tableColumns:",e.value),t.value.columns=e.value,i?.tableOptions&&(i.tableOptions.columns=e.value),r?.()}return{handleColumnsChanged:s,handleColumnsApply:o}}const sx=(n={})=>{const{navigate:e=b=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=b=>b,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,o=a.ref([]);function l(b){e(b)}function u(b,S){if(!Array.isArray(b))return[];const C=JSON.parse(JSON.stringify(b));return C.length>S&&C.splice(0,C.length-S),C}function c(){const b=i(),S={path:b.path,name:b.name},C=o.value||[],m=C[C.length-1];if(JSON.stringify(m)===JSON.stringify(S))return!1;C.push(S),o.value=u(C,r),localStorage.setItem(s,JSON.stringify(o.value))}function d(){const b=JSON.parse(localStorage.getItem(s)||"[]");b?.length||c(),o.value=b}const f=a.computed(()=>o.value.map((b,S)=>({text:t(`routes.${b.name}`),href:b.path,isActive:S===o.value.length-1})));function p(){c()}function h(){o.value=[],localStorage.removeItem(s)}function x(b){const S=o.value||[];S.push(b),o.value=u(S,r),localStorage.setItem(s,JSON.stringify(o.value))}return a.onMounted(()=>{d()}),{goTo:l,crumbs:f,breadcrumbs:o,updateBreadcrumbs:p,clearBreadcrumbs:h,addBreadcrumb:x}},ui={country:"country",region:"region",district:"district",locality:"locality",street:"street",house:"house",building:"building",apartment:"apartment"};function ax(n){return{countryLabel:n(ui.country),regionLabel:n(ui.region),districtLabel:n(ui.district),localityLabel:n(ui.locality),streetLabel:n(ui.street),houseLabel:n(ui.house),buildingLabel:n(ui.building),apartmentLabel:n(ui.apartment)}}const Xo={expandAll:"accordion.expand_all",collapseAll:"accordion.collapse_all"};function ox(n){return{expandText:n(Xo.expandAll),collapseText:n(Xo.collapseAll)}}async function lx(n){const{logOutSSO:e,nextTick:t,navigateTo:i,redirect:r,onReset:s,redirectPath:o="/login",onError:l=c=>console.error(c)}=n,u=typeof e=="function"?e:async()=>{};try{await u()}catch(c){l(c)}finally{const c=r??i;if(r){s(),c(o);return}await t(()=>{s(),c(o)})}}const Ad="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function Ed(){const n=globalThis.crypto;if(!n)throw new Error("Web Crypto API is not available.");if(!n.getRandomValues)throw new Error("Web Crypto getRandomValues is not available.");if(!n.subtle?.digest)throw new Error("Web Crypto subtle digest is not available.");return n}function kd(n){const e=Ed(),t=new Uint8Array(n);e.getRandomValues(t);let i="";return t.forEach(r=>{i+=Ad[r%Ad.length]}),i}function ux(n){const e=new Uint8Array(n);let t="";return e.forEach(i=>{t+=String.fromCharCode(i)}),btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function Sd(n=64){if(!Number.isInteger(n)||n<43||n>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return kd(n)}async function xd(n){const e=Ed(),i=new TextEncoder().encode(n),r=await e.subtle.digest("SHA-256",i);return ux(r)}async function cx(n=64){const e=Sd(n),t=await xd(e);return{codeVerifier:e,codeChallenge:t}}function dx(n=32){if(!Number.isInteger(n)||n<16||n>128)throw new Error("OAuth state length must be between 16 and 128.");return kd(n)}const hx=n=>({searchCountries:(e={})=>n("/handbook/overpass/countries",{method:"GET",params:e}),getRegionsByCountry:e=>n(`/handbook/overpass/countries/${e}/regions`,{method:"GET"}),getDistrictsByRegion:e=>n(`/handbook/overpass/regions/${e}/districts`,{method:"GET"}),getLocalitiesByDistrict:e=>n(`/handbook/overpass/districts/${e}/cities`,{method:"GET"}),getStreetsByLocality:e=>n(`/handbook/overpass/cities/${e}/streets`,{method:"GET"})});ne.ACCORDION_LOCALIZATION_KEYS=Xo,ne.ADDRESS_FORM_TRANSLATIONS=ui,ne.AddButton=el,ne.AddressForm=tw,ne.AgeFromAgeTo=mw,ne.BooleanCheckbox=_c,ne.Breadcrumbs=CA,ne.Card=mC,ne.CardInfo=OA,ne.Checkbox=ab,ne.ClearFormButton=Hd,ne.CollapseButton=Fd,ne.CollapsedSidebarLink=Gc,ne.ColumnSubFilter=OS,ne.ConfirmationModal=Gw,ne.CustomInput=or,ne.DefaultAccordion=hE,ne.DefaultButton=Lr,ne.DefaultDropDown=Fo,ne.DefaultModal=zc,ne.Divider=_o,ne.EditTableColumns=Qo,ne.EditTableColumnsModalComponent=jc,ne.ErrorMessageComponent=aE,ne.ExportButton=_d,ne.ExportComponent=Rh,ne.FilterValuesPanel=ex,ne.Flatpickr=Fy,ne.Footer=bC,ne.FormError=ki,ne.Header=BC,ne.HeaderSearchForm=Iy,ne.Icon=Or,ne.KindCheckboxesAccordion=kE,ne.LanguageSelector=AA,ne.Logo=Wc,ne.MainComponent=fA,ne.MultiCheckbox=gy,ne.MultiInput=Cy,ne.MultipleQuickFilterComponent=XS,ne.PageCard=ZA,ne.PageTitle=hC,ne.PasswordInput=ib,ne.PrintButton=Pd,ne.QuestionIcon=Y1,ne.Sidebar=Yc,ne.SidebarLink=Uc,ne.Slider=U1,ne.Spinner=Dr,ne.SubFilterToggleBtn=nd,ne.Table=xS,ne.TableAppliedFiltersStorage=LS,ne.TableColumnsButton=GS,ne.TableColumnsModal=YS,ne.TableCount=DS,ne.TableFilterModalComponent=Xw,ne.TableQuickFilterComponent=PS,ne.Toast=Qc,ne.ToggleAllTableRowButtons=JS,ne.ToggleButtons=jd,ne.VSelect=Vt,ne.addDays=Ma,ne.addMonths=Ta,ne.addYears=Da,ne.areArraysEqual=Qa,ne.arrayToCutString=Va,ne.camelCase=Fa,ne.capitalize=Ba,ne.chunk=Ua,ne.clamp=co,ne.constants=Yo,ne.createAddressService=hx,ne.createColumnHandlers=rx,ne.cutString=Ha,ne.debounce=hn,ne.findAll=ca,ne.findOne=ua,ne.firstToUppercase=La,ne.flattenObject=ar,ne.formatDate=Sa,ne.formatMoney=xa,ne.generateCodeChallenge=xd,ne.generateCodeVerifier=Sd,ne.generateId=$a,ne.generatePkcePair=cx,ne.generateState=dx,ne.getAccordionLocalization=ox,ne.getAddressFormLabels=ax,ne.getBrowserLocale=pa,ne.getDeclinationFromNumber=Oa,ne.getDeepCopyObject=oi,ne.getLocalStorage=no,ne.getNowDate=Ra,ne.getSessionStorage=ao,ne.getSupportedLocales=ir,ne.getUniqueKey=pi,ne.getValueFromArr=ba,ne.getValueFromObjectItem=nr,ne.groupBy=ja,ne.hasMatch=go,ne.hasRole=mo,ne.helpers=qg,ne.initEmailMask=ya,ne.initInnMask=Ca,ne.initKppMask=Aa,ne.initPassportMask=ka,ne.initPhoneMask=wa,ne.initSnilsMask=Ea,ne.isArraysEqual=Ya,ne.isEqual=sr,ne.isObject=Ga,ne.isValidDate=rr,ne.isValidEmail=Xa,ne.isValidLocale=ma,ne.isValidPhone=eo,ne.isValidUrl=to,ne.kebabCase=_a,ne.lerp=ho,ne.maskDate=Ia,ne.memoize=lo,ne.mountSubFilter=zi,ne.omit=qa,ne.once=uo,ne.pick=Ja,ne.prepareResponse=bo,ne.prepareSelectOptions=da,ne.random=fo,ne.removeLocalStorage=ro,ne.removeSessionStorage=oo,ne.required=Za,ne.roundToDecimals=po,ne.runLogoutFlow=lx,ne.scrollToElement=fa,ne.scrollToError=ha,ne.setLocalStorage=io,ne.setSessionStorage=so,ne.snakeCase=Pa,ne.sortBy=Wa,ne.sumOfArrayNumbers=va,ne.tableColumnsUtils=ix,ne.throttle=ga,ne.truncate=Na,ne.unflatenObject=Ka,ne.unique=za,ne.useBreadcrumbs=sx,ne.useTableColumns=Ko,ne.useTableColumnsEnhanced=Cd,ne.useTableColumnsIntegration=nx,ne.useTableDefault=tx,ne.useTableStorage=md,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})}));
|
|
54
|
+
`),r=i[0]=="Error"?i[2]:i[1],r[0]==" "?e=r.trim().split(" ")[1].split(".")[1]:e=r.trim().split("@")[0]),console.warn("Table Not Initialized - Calling the "+e+" function before the table is initialized may result in inconsistent behavior, Please wait for the `tableBuilt` event before calling this function."+(t?" "+t:""))),this.initialized}blockRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-blocking"),this.rowManager.blockRedraw(),this.columnManager.blockRedraw(),this.eventBus.dispatch("redraw-blocked")}restoreRedraw(){this.initGuard(),this.eventBus.dispatch("redraw-restoring"),this.rowManager.restoreRedraw(),this.columnManager.restoreRedraw(),this.eventBus.dispatch("redraw-restored")}setData(e,t,i){return this.initGuard(!1,"To set initial data please use the 'data' property in the table constructor."),this.dataLoader.load(e,t,i,!1)}clearData(){this.initGuard(),this.dataLoader.blockActiveLoad(),this.rowManager.clearData()}getData(e){return this.rowManager.getData(e)}getDataCount(e){return this.rowManager.getDataCount(e)}replaceData(e,t,i){return this.initGuard(),this.dataLoader.load(e,t,i,!0,!0)}updateData(e){var t=0;return this.initGuard(),new Promise((i,r)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(s=>{var o=this.rowManager.findRow(s[this.options.index]);o?(t++,o.updateData(s).then(()=>{t--,t||i()}).catch(l=>{r("Update Error - Unable to update row",s,l)})):r("Update Error - Unable to find row",s)}):(console.warn("Update Error - No data provided"),r("Update Error - No data provided"))})}addData(e,t,i){return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e?this.rowManager.addRows(e,t,i).then(o=>{var l=[];o.forEach(function(u){l.push(u.getComponent())}),r(l)}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}updateOrAddData(e){var t=[],i=0;return this.initGuard(),new Promise((r,s)=>{this.dataLoader.blockActiveLoad(),typeof e=="string"&&(e=JSON.parse(e)),e&&e.length>0?e.forEach(o=>{var l=this.rowManager.findRow(o[this.options.index]);i++,l?l.updateData(o).then(()=>{i--,t.push(l.getComponent()),i||r(t)}):this.rowManager.addRows(o).then(u=>{i--,t.push(u[0].getComponent()),i||r(t)})}):(console.warn("Update Error - No data provided"),s("Update Error - No data provided"))})}getRow(e){var t=this.rowManager.findRow(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}getRowFromPosition(e){var t=this.rowManager.getRowFromPosition(e);return t?t.getComponent():(console.warn("Find Error - No matching row found:",e),!1)}deleteRow(e){var t=[];this.initGuard(),Array.isArray(e)||(e=[e]);for(let i of e){let r=this.rowManager.findRow(i,!0);if(r)t.push(r);else return console.error("Delete Error - No matching row found:",i),Promise.reject("Delete Error - No matching row found")}return t.sort((i,r)=>this.rowManager.rows.indexOf(i)>this.rowManager.rows.indexOf(r)?1:-1),t.forEach(i=>{i.delete()}),this.rowManager.reRenderInPosition(),Promise.resolve()}addRow(e,t,i){return this.initGuard(),typeof e=="string"&&(e=JSON.parse(e)),this.rowManager.addRows(e,t,i,!0).then(r=>r[0].getComponent())}updateOrAddRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>i.getComponent()):this.rowManager.addRows(t).then(r=>r[0].getComponent())}updateRow(e,t){var i=this.rowManager.findRow(e);return this.initGuard(),typeof t=="string"&&(t=JSON.parse(t)),i?i.updateData(t).then(()=>Promise.resolve(i.getComponent())):(console.warn("Update Error - No matching row found:",e),Promise.reject("Update Error - No matching row found"))}scrollToRow(e,t,i){var r=this.rowManager.findRow(e);return r?this.rowManager.scrollToRow(r,t,i):(console.warn("Scroll Error - No matching row found:",e),Promise.reject("Scroll Error - No matching row found"))}moveRow(e,t,i){var r=this.rowManager.findRow(e);this.initGuard(),r?r.moveToRow(t,i):console.warn("Move Error - No matching row found:",e)}getRows(e){return this.rowManager.getComponents(e)}getRowPosition(e){var t=this.rowManager.findRow(e);return t?t.getPosition():(console.warn("Position Error - No matching row found:",e),!1)}setColumns(e){this.initGuard(!1,"To set initial columns please use the 'columns' property in the table constructor"),this.columnManager.setColumns(e)}getColumns(e){return this.columnManager.getComponents(e)}getColumn(e){var t=this.columnManager.findColumn(e);return t?t.getComponent():(console.warn("Find Error - No matching column found:",e),!1)}getColumnDefinitions(){return this.columnManager.getDefinitionTree()}showColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.show();else return console.warn("Column Show Error - No matching column found:",e),!1}hideColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.hide();else return console.warn("Column Hide Error - No matching column found:",e),!1}toggleColumn(e){var t=this.columnManager.findColumn(e);if(this.initGuard(),t)t.visible?t.hide():t.show();else return console.warn("Column Visibility Toggle Error - No matching column found:",e),!1}addColumn(e,t,i){var r=this.columnManager.findColumn(i);return this.initGuard(),this.columnManager.addColumn(e,t,r).then(s=>s.getComponent())}deleteColumn(e){var t=this.columnManager.findColumn(e);return this.initGuard(),t?t.delete():(console.warn("Column Delete Error - No matching column found:",e),Promise.reject())}updateColumnDefinition(e,t){var i=this.columnManager.findColumn(e);return this.initGuard(),i?i.updateDefinition(t):(console.warn("Column Update Error - No matching column found:",e),Promise.reject())}moveColumn(e,t,i){var r=this.columnManager.findColumn(e),s=this.columnManager.findColumn(t);this.initGuard(),r?s?this.columnManager.moveColumn(r,s,i):console.warn("Move Error - No matching column found:",s):console.warn("Move Error - No matching column found:",e)}scrollToColumn(e,t,i){return new Promise((r,s)=>{var o=this.columnManager.findColumn(e);return o?this.columnManager.scrollToColumn(o,t,i):(console.warn("Scroll Error - No matching column found:",e),Promise.reject("Scroll Error - No matching column found"))})}redraw(e){this.initGuard(),this.columnManager.redraw(e),this.rowManager.redraw(e)}setHeight(e){this.options.height=isNaN(e)?e:e+"px",this.element.style.height=this.options.height,this.rowManager.initializeRenderer(),this.rowManager.redraw(!0)}on(e,t){this.externalEvents.subscribe(e,t)}off(e,t){this.externalEvents.unsubscribe(e,t)}dispatchEvent(){var e=Array.from(arguments);e.shift(),this.externalEvents.dispatch(...arguments)}alert(e,t){this.initGuard(),this.alertManager.alert(e,t)}clearAlert(){this.initGuard(),this.alertManager.clear()}modExists(e,t){return this.modules[e]?!0:(t&&console.error("Tabulator Module Not Installed: "+e),!1)}module(e){var t=this.modules[e];return t||console.error("Tabulator module not installed: "+e),t}}var Rn=gi;class cS extends Rn{static extendModule(){Rn.initializeModuleBinder(Uo),Rn._extendModule(...arguments)}static registerModule(){Rn.initializeModuleBinder(Uo),Rn._registerModule(...arguments)}constructor(e,t,i){super(e,t,Uo)}}var dS=cS;const hS={key:0,class:"bi bi-chevron-up"},fS={key:1,class:"bi bi-chevron-down"},nd=Ie({__name:"SubFilterToggleBtn",props:["modelValue"],emits:["update:modelValue"],setup(n,{emit:e}){const t=e,i=n,r=()=>{t("update:modelValue",!i.modelValue)};return(s,o)=>(a.openBlock(),a.createElementBlock("div",{class:"icon",onClick:r},[n.modelValue?(a.openBlock(),a.createElementBlock("i",hS)):(a.openBlock(),a.createElementBlock("i",fS))]))}},[["__scopeId","data-v-4810f2ed"]]),Yo={gender:{MALE:1,FEMALE:2},timeTypes:{HOUR:1,DAY:2,WEEK:3,MONTH:4,YEAR:5},customPerPageOptions:[{id:10,label:10},{id:40,label:40},{id:100,label:100},{id:150,label:150},{id:200,label:200}],mask_regex:{INTEGER:"^[0-9]*$",DECIMAL:"^[0-9]{1,10}[.]?[0-9]{1}$",HUNDREDTHS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,2})$",THOUSANDS:"^([0]{1}[.][0-9]{1,2}|[1-9][0-9]*[.]?[0-9]{1,3})$",NO_LIMIT_AFTER_DOT:"^[0-9]{1,10}[.]?[0-9]*$",ABOVE_ONE:"^[1-9]+[0-9]*$",NO_START_SPACE:"^[^ ]+.*$",NO_SPACE:"[^ ]*"}};Object.preventExtensions(Yo);const pS=()=>({"en-en":{pagination:{first:"First11",first_title:"First Page",last:"Last",last_title:"Last Page",prev:"Prev",prev_title:"Prev Page",next:"Next",next_title:"Next Page",all:"All",counter:{showing:"Showing",of:"of",rows:"rows",pages:"pages"}},data:{loading:"Loading...",error:"Error loading data."}},"ru-ru":{pagination:{first:"Первая",first_title:"Первая страница",last:"Последняя",last_title:"Последняя страница",prev:"Пред",prev_title:"Предыдущая страница",next:"След",next_title:"Следующая страница",all:"Все",counter:{showing:"Показано",of:"из",rows:"записей",pages:"страниц"}},data:{loading:"Загрузка...",error:"Ошибка загрузки данных."}}}),mS="data:image/gif;base64,R0lGODlhQABAANUAAAQCBISGhMTGxERCROTm5KSmpCQiJGRiZNTW1LS2tPT29BQSFJSWlFRSVDQyNHR2dMzOzO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A6BQ9wQrBUZSROU9hsMAVo2MKDh+5AIrG0/TiGBlAsl0AMiPcHVjh4EuAJ6PfA9vpILgx1RZ0UiyPonaAHYStKI8pD4S8wAkYEcJKjDXH3VJQKACYAL511MRDj44RAUZ1CCGhBLRhuGGHAPiFAQAOw==",gS={class:"position-relative",style:{"min-height":"300px"}},bS={class:"placeholder-glow"},vS={class:"tabulator hide-to-print sticky-bottom bg-white"},yS={class:"row"},wS={key:0,class:"col-auto"},CS={class:"col"},AS={class:"tabulator-footer",ref:"footer"},ES=["id"],kS=["disabled"],SS={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},xS=a.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"ru-ru"},columnHide:{type:String,default:""},columnShow:{type:String,default:""},options:{type:Object,default:()=>({}),required:!0},filters:{type:[Array,Function,Object],default:()=>[]},tableData:{type:Array,default:()=>[]},showAllColumnsIfAllHidden:{type:Boolean,default:!1},parentComponent:{type:Object,default:()=>({})},selectedRowsStorage:{type:Array,default:()=>[]},isVisibleColumnSubFilter:{type:Boolean,default:null},loadMoreText:{type:String,default:"Load More"},noDataText:{type:String,default:"No data found"},paginationLimitText:{type:String,default:"Please use pagination to navigate"}},emits:["selectedRow","unselectedRow","updateSelectedRows","updateUnselectedRows","updateTable","onHideColumn","onShowColumn","onTableRowClick","onCellClick","onTableRowMoved","pageLoaded","savePaginationPage","updateIsVisibleColumnSubFilter"],setup(n,{emit:e}){const t=n,i=e,r=a.inject("selectedTabIndex",a.ref()),s=a.inject("selectAll",a.ref(0)),o=a.ref(""),l=a.ref(null),u=a.ref({data:[],rows:[]}),c=a.ref(new Set(t.selectedRowsStorage)),d=a.ref(!1),f=a.ref(pi()),p=a.ref(null),h=a.ref(null),x=a.ref(!1),b=a.ref(!1),S=a.computed(()=>t.options?.paginationMode==="remote"),C=a.computed(()=>Yo.customPerPageOptions),m=a.useSlots(),D=H=>!!m[H],g=()=>{o.value=""},M=H=>!H||!H.length?[]:H.map(te=>te),y=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");!H||t.isVisibleColumnSubFilter===null||zi(H,nd,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":te=>i("updateIsVisibleColumnSubFilter",te)})},k=()=>{if(!p.value)return;const H=p.value.querySelector(".tabulator-header");H&&(H.classList.add("position-relative"),y())},w=()=>{if(!h.value)return;const H=p.value?.parentNode?.querySelector(".tabulator-footer"),te=h.value.last_page;if(!te||isNaN(+te)){H&&H.classList.add("d-none");return}te>1?H&&H.classList.remove("d-none"):H&&H.classList.add("d-none")},E=()=>{b.value||(x.value=!0)},v=()=>{b.value},T=H=>{x.value=!1,b.value},R=()=>{b.value||(d.value=!0,i("updateTable",h.value),h.value&&h.value.selectRow(Array.from(c.value)))},L=H=>{b.value||(setTimeout(()=>{b.value||i("savePaginationPage",H)}),S.value&&w(),s.value>0&&i("pageLoaded"),k())},N=H=>{if(b.value)return;const te=H.getData(),X=h.value?.options?.index||"id",Z=te[X]??null;Z!==null&&(c.value.add(Z),u.value.data.push(te),u.value.rows.push(H),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:te,row:H}))},j=H=>{if(b.value)return;const te=H.getData(),X=h.value?.options?.index||"id",Z=te[X]??null;if(Z===null)return;c.value.delete(Z);const fe=u.value.data.findIndex(le=>le[X]===Z);fe!==-1&&(u.value.data.splice(fe,1),u.value.rows.splice(fe,1)),i("updateUnselectedRows",{data:te,row:H}),i("unselectedRow",{data:te,row:H})},U=function(){b.value||(h.value&&h.value.selectRow(Array.from(c.value)),x.value=!1)},I=(H,te)=>{if(b.value)return;if(te?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",H,te);return}const X=[],Z=H.target;for(let fe=0;fe<Z.childNodes.length;fe++){const le=Z.childNodes[fe];le.nodeName==="INPUT"&&le.type==="checkbox"&&X.push("checkbox")}X.includes("checkbox")||i("onTableRowClick",H,te._cell.row,t.parentComponent)},V=H=>{b.value||h.value&&i("onTableRowMoved",h.value.getColumnLayout())},K=()=>{b.value||setTimeout(()=>{b.value})},F=()=>{b.value||setTimeout(()=>{b.value||W()})},P=()=>{d.value=!1},Y=()=>{if(!p.value||S.value&&!t.options.ajaxResponse||h.value)return;x.value=!0;const H={...t.options,...S.value?{}:{data:t.tableData},langs:pS(),locale:t.locale,columns:M(t.options.columns),dataLoaderLoading:`<img alt="" src="${mS}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};S.value&&(delete H.ajaxURL,H.footerElement=`#tabulator-footer${f.value}`),h.value=new dS(p.value,H),h.value.on("dataLoading",E),h.value.on("dataLoaded",v),h.value.on("dataLoadError",T),h.value.on("tableBuilt",R),h.value.on("pageLoaded",L),h.value.on("rowSelected",N),h.value.on("rowDeselected",j),h.value.on("dataProcessed",U),h.value.on("cellClick",I),h.value.on("columnMoved",V),h.value.on("renderStarted",K),h.value.on("renderComplete",F),h.value.on("tableDestroyed",P)},z=H=>{if(b.value||!d.value||!H||!h.value)return;const te=h.value.options.ajaxParams;te&&(te.per_page=Number(H)),h.value.options.paginationSize=Number(H),h.value.setPageSize(H)},J=()=>{if(b.value||!h.value)return;const H=640,te=h.value.options;if(S.value)te.ajaxParams?.per_page<H&&(te.ajaxParams.per_page+=40),h.value.setData();else{const X=h.value.getPageSize();typeof X=="number"&&X<H&&h.value.setPageSize(X+40)}te.paginationSize>=H&&(o.value=t.paginationLimitText)},$=H=>{b.value||H===""||!h.value||(h.value.showColumn(H),i("onShowColumn",h.value.getColumnLayout()))},Q=H=>{b.value||H===""||!h.value||(h.value.hideColumn(H),i("onHideColumn",h.value.getColumnLayout()))},ae=H=>{b.value||!h.value||(H.filter(({visible:te})=>!te).length===H.length?H.map(({field:te})=>{a.nextTick(()=>{!b.value&&h.value&&h.value.showColumn(te)})}):H.map(({field:te,visible:X})=>{!b.value&&h.value&&(X?h.value.showColumn(te):h.value.hideColumn(te))}))},W=()=>{a.nextTick(()=>{if(b.value||!h.value||h.value.getPage()!==1||!t.paginationPage||t.paginationPage===h.value.getPage())return!1;h.value.setPage(t.paginationPage)})};return a.onMounted(()=>{Y()}),a.onBeforeUnmount(()=>{b.value=!0,h.value&&(h.value.destroy(),h.value=null)}),a.watch(()=>t.columnShow,H=>{H&&$(H)}),a.watch(()=>t.columnHide,H=>{H&&Q(H)}),a.watch(()=>t.filters,H=>{b.value||!h.value||h.value.setFilter(H)},{deep:!0}),a.watch(()=>t.tableData,H=>{b.value||!h.value||S.value||h.value.setData(H)},{deep:!1}),a.watch(()=>t.options.ajaxResponse,H=>{b.value||(h.value&&H?h.value.options.ajaxResponse=H:S.value&&H&&!h.value&&a.nextTick(()=>{b.value||!p.value||Y()}))}),a.watch(()=>t.options,H=>{b.value||S.value&&H.ajaxResponse&&!h.value&&a.nextTick(()=>{b.value||!p.value||Y()})},{deep:!0}),a.watch(r,()=>{b.value||!h.value||h.value.deselectRow()}),a.watch(s,H=>{b.value||H<=0||!h.value||h.value.selectRow()}),a.watch(()=>t.options.columns,H=>{b.value||!d.value||!h.value||!H||(!H.find(({visible:te})=>te)&&t.showAllColumnsIfAllHidden?ae(H):h.value.setColumns(H))},{deep:!0}),a.watch(()=>t.selectedRowsStorage,H=>{b.value||!H||(c.value=new Set(H))},{deep:!0}),a.watch(d,H=>{b.value||!H||(t.showAllColumnsIfAllHidden&&ae(t.options.columns||[]),t.tableData.length>0&&!S.value&&h.value&&h.value.setData(t.tableData))},{deep:!0}),(H,te)=>(a.openBlock(),a.createElementBlock("div",gS,[a.withDirectives(a.createElementVNode("p",bS,[...te[2]||(te[2]=[a.createStaticVNode('<span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span><span class="placeholder col-12 mb-1" style="min-height:50px;"></span>',10)])],512),[[a.vShow,x.value]]),a.withDirectives(a.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),[[a.vShow,!x.value]]),a.withDirectives(a.createElementVNode("div",vS,[a.createElementVNode("div",yS,[D("table-footer-left")?(a.openBlock(),a.createElementBlock("div",wS,[a.renderSlot(H.$slots,"table-footer-left")])):a.createCommentVNode("",!0),a.createElementVNode("div",CS,[a.createElementVNode("div",AS,[a.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${f.value}`},[a.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:J,disabled:x.value},[a.createTextVNode(a.toDisplayString(n.loadMoreText)+" ",1),te[3]||(te[3]=a.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),x.value?(a.openBlock(),a.createElementBlock("div",SS)):a.createCommentVNode("",!0)],8,kS),a.createVNode(Vt,{class:"me-3",style:{"min-width":"150px"},modelValue:l.value,"onUpdate:modelValue":[te[0]||(te[0]=X=>l.value=X),te[1]||(te[1]=X=>z(X))],allowClear:!1,options:C.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,ES)],512)])])],512),[[a.vShow,S.value&&!x.value]]),a.createVNode(Qc,{message:o.value,onClearMessage:g},null,8,["message"])]))}}),RS={class:"r3-table-count__wrapper px-3"},MS={class:"r3-table-count__label pe-2"},TS={class:"r3-table-count__value"},DS=Ie(a.defineComponent({__name:"TableCount",props:{label:{default:""},count:{default:0},defaultLabel:{default:"-"},defaultCount:{default:"-"},size:{default:"medium"},showSeparator:{type:Boolean,default:!0}},setup(n){const e=n,t=a.computed(()=>e.label||e.defaultLabel),i=a.computed(()=>e.count===null||e.count===void 0||e.count===""?e.defaultCount:e.count);return(r,s)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["r3-table-count",[`r3-table-count--${r.size}`]])},[a.createElementVNode("div",RS,[a.createElementVNode("span",MS,a.toDisplayString(t.value)+":",1),a.createElementVNode("span",TS,a.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-87be8b13"]]),OS=Ie(a.defineComponent({__name:"ColumnSubFilter",props:{tableRefEl:{default:void 0},columnField:{default:""},mountedComponent:{default:void 0},dataProps:{default:()=>({})},table:{default:void 0},isVisible:{type:Boolean,default:!1}},setup(n){const e=n;function t(){if(!e?.tableRefEl)return!1;const i=`[tabulator-field='${e.columnField}']`,r=e.tableRefEl?.querySelector(i);if(!e.table||!r)return!1;if(e.isVisible&&r&&e.mountedComponent)return zi(r,e.mountedComponent,e.dataProps),!1;zi(r,null,{},!0)}return a.watch(()=>e,()=>{t()},{deep:!0}),a.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),LS=Ie(a.defineComponent({__name:"TableAppliedFiltersStorage",props:{tableName:{},filters:{}},emits:["update:filters"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.computed(()=>"default-page"),o=a.toRef(i,"filters");function l(){let p=localStorage.getItem("filters"),h=p?JSON.parse(p):{};h={...oi(h),[s.value]:{[i.tableName]:d(o.value)}};const x=JSON.stringify(h);return localStorage.setItem("filters",x),p=localStorage.getItem("filters"),p?JSON.parse(p):{}}function u(p){return!(!p||!p[s.value]||!p[s.value][i.tableName])}function c(p){const h=JSON.parse(p);return u(h)?(p=localStorage.getItem("filters")||"{}",JSON.parse(p)):l()}function d(p){const h={};for(const[x,b]of Object.entries(p))h[x]=oi(b._value||b);return h}function f(){let p=localStorage.getItem("filters");if(!p)return r("update:filters",{}),!1;let h=c(p);if(!h[s.value]||!h[s.value][i.tableName])return r("update:filters",{}),!1;const x=d(h[s.value][i.tableName]);return r("update:filters",{...x}),!0}return e({getFilters:f,saveFilters:l}),(p,h)=>a.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),BS={class:"row pt-3"},FS={class:"col-12"},_S=["onClick"],PS=Ie(a.defineComponent({__name:"TableQuickFilterComponent",props:{filterList:{},defaultSelected:{default:""}},emits:["emitSelected"],setup(n,{emit:e}){const t=e,i=r=>{t("emitSelected",r)};return(r,s)=>(a.openBlock(),a.createElementBlock("div",BS,[a.createElementVNode("div",FS,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.filterList,(o,l)=>(a.openBlock(),a.createElementBlock("button",{onClick:u=>i(o.name),class:a.normalizeClass(["btn filter-item",{active:r.defaultSelected===o.name,disabled:o.disabled}]),key:l},a.toDisplayString(o.title),11,_S))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),NS={key:0,class:"col-4 mb-2"},IS={class:"form-check"},HS=["checked","id","onChange"],VS=["for"],zS=["innerHTML"],jS={class:"col-auto"},WS={class:"col-auto ps-0"},US={class:"col-auto ps-0"},Qo=Ie(a.defineComponent({__name:"EditTableColumns",props:{title:{default:"Table Data"},modalVisibility:{type:Boolean,default:!1},columns:{default:()=>[]},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["emitModalVisibility","columnVisibilityChange","apply","selectAll","unselectAll"],setup(n,{emit:e}){const t=n,i=e,r=a.ref([...t.columns]),s=a.ref([...t.columns]);a.watch(()=>t.columns,h=>{JSON.stringify(h)!==JSON.stringify(s.value)&&(r.value=[...h],s.value=[...h],l())},{deep:!0});const o=a.ref(!0);function l(){const x=r.value.filter(b=>b.title).some(b=>!b.visible);o.value=x,a.triggerRef(o)}l();const u=h=>{i("emitModalVisibility",h)},c=(h,x)=>{const b=h.target,S=r.value.findIndex(C=>C.field===x);S!==-1&&(r.value[S].visible=b.checked,l()),i("columnVisibilityChange",h,x)},d=()=>{i("apply",r.value)},f=()=>{const h=r.value.map(x=>({...x,visible:x.title?!0:x.visible}));r.value=h,s.value=[...h],l(),i("selectAll")},p=()=>{const h=r.value.map(x=>({...x,visible:x.title?!1:x.visible}));r.value=h,s.value=[...h],l(),i("unselectAll")};return(h,x)=>(a.openBlock(),a.createBlock(jc,{title:h.title,"modal-visibility":h.modalVisibility,onEmitModalVisibility:u},{"modal-body":a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(b,S)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:S},[b.title?(a.openBlock(),a.createElementBlock("div",NS,[a.createElementVNode("div",IS,[a.createElementVNode("input",{checked:b.visible,class:"form-check-input",type:"checkbox",id:b.field,ref_for:!0,ref:"editColumns",onChange:C=>c(C,b.field)},null,40,HS),a.createElementVNode("label",{class:"form-check-label",for:b.field},[a.createElementVNode("span",{class:"lh-sm",innerHTML:b.title},null,8,zS)],8,VS)])])):a.createCommentVNode("",!0)],64))),128))]),"modal-footer":a.withCtx(()=>[a.createElementVNode("div",jS,[a.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},a.toDisplayString(h.applyText),1)]),a.createElementVNode("div",WS,[a.createElementVNode("div",US,[o.value?(a.openBlock(),a.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:f},a.toDisplayString(h.selectAllText),1)):a.createCommentVNode("",!0),o.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:"unselect-all",type:"button",class:"btn btn-light",onClick:p},a.toDisplayString(h.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function Ko(n,e){const t=a.ref(!1),i=a.ref([...n]);a.watch(()=>n,x=>{i.value=[...x]},{deep:!0});function r(x){t.value=x}function s(x,b){const S=x.target,C=i.value.map(m=>m.field===b?{...m,visible:S.checked}:m);i.value=C,e&&e.value&&(e.value.columns=C)}function o(x){console.log("useTableColumns handleColumnsApply called, received columns:",x),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(x),u()}function l(x){x&&(i.value=[...x],console.log("useTableColumns tableColumns after update:",i.value))}function u(){if(!e||!e.value){console.log("useTableColumns tableOptions not available");return}console.log("useTableColumns updating tableOptions.columns:",i.value),e.value.columns=i.value,console.log("useTableColumns tableOptions.columns after update:",e.value.columns)}function c(){const x=i.value.map(b=>({...b,visible:b.title?!0:b.visible}));i.value=x,e&&e.value&&(e.value.columns=x)}function d(){const x=i.value.map(b=>({...b,visible:b.title?!1:b.visible}));i.value=x,e&&e.value&&(e.value.columns=x)}const f=a.computed(()=>i.value.filter(x=>x.visible));function p(x){i.value=[...x],e&&e.value&&(e.value.columns=x)}function h(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:f,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:o,handleColumnsSelectAll:c,handleColumnsUnselectAll:d,updateColumns:p,resetColumns:h}}const GS=a.defineComponent({__name:"TableColumnsButton",props:{columns:{},tableOptions:{},title:{default:"Table Columns Settings"},applyText:{default:"Apply"},selectAllText:{default:"Select All"},unselectAllText:{default:"Unselect All"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:o,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Ko(t.columns,t.tableOptions);a.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,x)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Lr,{styles:"light",onSubmit:f,icon:"gear-fill"}),a.createVNode(Qo,{title:h.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:p,onSelectAll:a.unref(u),onUnselectAll:a.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),YS=a.defineComponent({__name:"TableColumnsModal",props:{columns:{},tableOptions:{},title:{default:"Настройка колонок таблицы"},applyText:{default:"Применить"},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"}},emits:["columns-changed","apply"],setup(n,{emit:e}){const t=n,i=e,{columnsModalVisibility:r,tableColumns:s,handleColumnsModalVisibility:o,handleColumnVisibilityChange:l,handleColumnsSelectAll:u,handleColumnsUnselectAll:c,updateColumns:d}=Ko(t.columns,t.tableOptions);a.watch(()=>t.columns,h=>{d(h)},{deep:!0});function f(){r.value=!0}function p(h){r.value=!1,h&&Array.isArray(h)&&(s.value=[...h],i("columns-changed",h)),i("apply")}return(h,x)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Lr,{styles:"light",onSubmit:f,icon:"gear-fill"}),a.createVNode(Qo,{title:h.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":h.applyText,"select-all-text":h.selectAllText,"unselect-all-text":h.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:p,onSelectAll:a.unref(u),onUnselectAll:a.unref(c)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),QS={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},KS={key:2,class:"selected-count"},JS=Ie(a.defineComponent({__name:"ToggleAllTableRowButtons",props:{selectedRows:{default:()=>[]},selectAllText:{default:"Выбрать все"},unselectAllText:{default:"Снять все"},selectedText:{default:"Выбрано"},showCount:{type:Boolean,default:!0}},emits:["selectAll","unselectAll"],setup(n,{emit:e}){const t=e,i=()=>{t("selectAll")},r=()=>{t("unselectAll")};return(s,o)=>(a.openBlock(),a.createElementBlock("div",QS,[s.selectedRows.length>0?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light me-3",onClick:r},a.toDisplayString(s.unselectAllText),1)):a.createCommentVNode("",!0),s.selectedRows.length===0?(a.openBlock(),a.createElementBlock("button",{key:1,class:"btn btn-primary me-3",onClick:i},a.toDisplayString(s.selectAllText),1)):a.createCommentVNode("",!0),s.showCount?(a.openBlock(),a.createElementBlock("div",KS,a.toDisplayString(s.selectedText)+": "+a.toDisplayString(s.selectedRows.length),1)):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),qS={class:"row pt-3"},$S={class:"col-12"},ZS=["onClick"],XS=Ie(a.defineComponent({__name:"MultipleQuickFilterComponent",props:{filterList:{},defaultSelected:{default:()=>({})}},emits:["emitSelected"],setup(n,{emit:e}){const t=n,i=e,r=s=>{t.filterList[s].disabled||(t.filterList[s].value=!t.filterList[s].value,i("emitSelected",t.filterList))};return a.watch(()=>t.defaultSelected,s=>{s&&Object.keys(s).length>0&&t.filterList.forEach((o,l)=>{const u=Object.keys(s)[l];u&&s[u]!==void 0&&(o.value=s[u])})},{immediate:!0}),(s,o)=>(a.openBlock(),a.createElementBlock("div",qS,[a.createElementVNode("div",$S,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.filterList,(l,u)=>(a.openBlock(),a.createElementBlock("button",{onClick:c=>r(u),class:a.normalizeClass(["btn filter-item",{active:s.filterList[u].value,disabled:s.filterList[u].disabled}]),key:u},a.toDisplayString(l.title),11,ZS))),128))])]))}}),[["__scopeId","data-v-1a1bfba2"]]);var bi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(bi||(bi={}));var bt;(function(n){n[n.None=-1]="None",n[n.NoValue=0]="NoValue",n[n.LargeValue=1]="LargeValue",n[n.SmallValue=2]="SmallValue"})(bt||(bt={}));function e1(n){return Sr(n)&&typeof n.from=="function"}function Sr(n){return typeof n=="object"&&typeof n.to=="function"}function rd(n){n.parentElement.removeChild(n)}function Jo(n){return n!=null}function sd(n){n.preventDefault()}function t1(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function i1(n,e){return Math.round(n/e)*e}function n1(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=ld(i);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),e?t.top+s.y-r.clientTop:t.left+s.x-r.clientLeft}function zt(n){return typeof n=="number"&&!isNaN(n)&&isFinite(n)}function ad(n,e,t){t>0&&(mt(n,e),setTimeout(function(){Rr(n,e)},t))}function od(n){return Math.max(Math.min(n,100),0)}function xr(n){return Array.isArray(n)?n:[n]}function r1(n){n=String(n);var e=n.split(".");return e.length>1?e[1].length:0}function mt(n,e){n.classList&&!/\s/.test(e)?n.classList.add(e):n.className+=" "+e}function Rr(n,e){n.classList&&!/\s/.test(e)?n.classList.remove(e):n.className=n.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function s1(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function ld(n){var e=window.pageXOffset!==void 0,t=(n.compatMode||"")==="CSS1Compat",i=e?window.pageXOffset:t?n.documentElement.scrollLeft:n.body.scrollLeft,r=e?window.pageYOffset:t?n.documentElement.scrollTop:n.body.scrollTop;return{x:i,y:r}}function a1(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function o1(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function l1(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function qo(n,e){return 100/(e-n)}function $o(n,e,t){return e*100/(n[t+1]-n[t])}function u1(n,e){return $o(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function c1(n,e){return e*(n[1]-n[0])/100+n[0]}function Mn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function d1(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=Mn(t,n),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return o+u1([r,s],t)/qo(o,l)}function h1(n,e,t){if(t>=100)return n.slice(-1)[0];var i=Mn(t,e),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return c1([r,s],(t-o)*qo(o,l))}function f1(n,e,t,i){if(i===100)return i;var r=Mn(i,n),s=n[r-1],o=n[r];return t?i-s>(o-s)/2?o:s:e[r-1]?n[r-1]+i1(i-n[r-1],e[r-1]):i}var ud=(function(){function n(e,t,i){this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.snap=t;var r,s=[];for(Object.keys(e).forEach(function(o){s.push([xr(e[o]),o])}),s.sort(function(o,l){return o[0][0]-l[0][0]}),r=0;r<s.length;r++)this.handleEntryPoint(s[r][1],s[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return n.prototype.getDistance=function(e){for(var t=[],i=0;i<this.xNumSteps.length-1;i++)t[i]=$o(this.xVal,e,i);return t},n.prototype.getAbsoluteDistance=function(e,t,i){var r=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[r+1];)r++;else e===this.xPct[this.xPct.length-1]&&(r=this.xPct.length-2);!i&&e===this.xPct[r+1]&&r++,t===null&&(t=[]);var s,o=1,l=t[r],u=0,c=0,d=0,f=0;for(i?s=(e-this.xPct[r])/(this.xPct[r+1]-this.xPct[r]):s=(this.xPct[r+1]-e)/(this.xPct[r+1]-this.xPct[r]);l>0;)u=this.xPct[r+1+f]-this.xPct[r+f],t[r+f]*o+100-s*100>100?(c=u*s,o=(l-100*s)/t[r+f],s=1):(c=t[r+f]*u/100*o,o=0),i?(d=d-c,this.xPct.length+f>=1&&f--):(d=d+c,this.xPct.length-f>=1&&f++),l=t[r+f]*o;return e+d},n.prototype.toStepping=function(e){return e=d1(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return h1(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=f1(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=Mn(e,this.xPct);return(e===100||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/i},n.prototype.getNearbySteps=function(e){var t=Mn(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},n.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(r1);return Math.max.apply(null,e)},n.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},n.prototype.convert=function(e){return this.getStep(this.toStepping(e))},n.prototype.handleEntryPoint=function(e,t){var i;if(e==="min"?i=0:e==="max"?i=100:i=parseFloat(e),!zt(i)||!zt(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(i),this.xVal.push(t[0]);var r=Number(t[1]);i?this.xSteps.push(isNaN(r)?!1:r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},n.prototype.handleStepPoint=function(e,t){if(t){if(this.xVal[e]===this.xVal[e+1]){this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e];return}this.xSteps[e]=$o([this.xVal[e],this.xVal[e+1]],t,0)/qo(this.xPct[e],this.xPct[e+1]);var i=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(i.toFixed(3))-1),s=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=s}},n})(),cd={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},dd={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},vi={tooltips:".__tooltips",aria:".__aria"};function p1(n,e){if(!zt(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function m1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function g1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function b1(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function v1(n,e){if(typeof e!="object"||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(e.min===void 0||e.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");n.spectrum=new ud(e,n.snap||!1,n.singleStep)}function y1(n,e){if(e=xr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function w1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function C1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function A1(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function hd(n,e){var t=[!1],i;if(e==="lower"?e=[!0,!1]:e==="upper"&&(e=[!1,!0]),e===!0||e===!1){for(i=1;i<n.handles;i++)t.push(e);t.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==n.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");t=e}n.connect=t}function E1(n,e){switch(e){case"horizontal":n.ort=0;break;case"vertical":n.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function fd(n,e){if(!zt(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function k1(n,e){if(!zt(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(n.limit=n.spectrum.getDistance(e),!n.limit||n.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function S1(n,e){var t;if(!zt(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&!(e.length===2||zt(e[0])||zt(e[1])))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(e!==0){for(Array.isArray(e)||(e=[e,e]),n.padding=[n.spectrum.getDistance(e[0]),n.spectrum.getDistance(e[1])],t=0;t<n.spectrum.xNumSteps.length-1;t++)if(n.padding[0][t]<0||n.padding[1][t]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var i=e[0]+e[1],r=n.spectrum.xVal[0],s=n.spectrum.xVal[n.spectrum.xVal.length-1];if(i/(s-r)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function x1(n,e){switch(e){case"ltr":n.dir=0;break;case"rtl":n.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function R1(n,e){if(typeof e!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var t=e.indexOf("tap")>=0,i=e.indexOf("drag")>=0,r=e.indexOf("fixed")>=0,s=e.indexOf("snap")>=0,o=e.indexOf("hover")>=0,l=e.indexOf("unconstrained")>=0,u=e.indexOf("invert-connects")>=0,c=e.indexOf("drag-all")>=0,d=e.indexOf("smooth-steps")>=0;if(r){if(n.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");fd(n,n.start[1]-n.start[0])}if(u&&n.handles!==2)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(l&&(n.margin||n.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");n.events={tap:t||s,drag:i,dragAll:c,smoothSteps:d,fixed:r,snap:s,hover:o,unconstrained:l,invertConnects:u}}function M1(n,e){if(e!==!1)if(e===!0||Sr(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=xr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!Sr(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function T1(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function D1(n,e){if(!Sr(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function O1(n,e){if(!e1(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function L1(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function B1(n,e){n.documentElement=e}function F1(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function _1(n,e){if(typeof e!="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof n.cssPrefix=="string"?(n.cssClasses={},Object.keys(e).forEach(function(t){n.cssClasses[t]=n.cssPrefix+e[t]})):n.cssClasses=e}function pd(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:cd,format:cd},t={step:{r:!1,t:p1},keyboardPageMultiplier:{r:!1,t:m1},keyboardMultiplier:{r:!1,t:g1},keyboardDefaultStep:{r:!1,t:b1},start:{r:!0,t:y1},connect:{r:!0,t:hd},direction:{r:!0,t:x1},snap:{r:!1,t:w1},animate:{r:!1,t:C1},animationDuration:{r:!1,t:A1},range:{r:!0,t:v1},orientation:{r:!1,t:E1},margin:{r:!1,t:fd},limit:{r:!1,t:k1},padding:{r:!1,t:S1},behaviour:{r:!0,t:R1},ariaFormat:{r:!1,t:D1},format:{r:!1,t:O1},tooltips:{r:!1,t:M1},keyboardSupport:{r:!0,t:L1},documentElement:{r:!1,t:B1},cssPrefix:{r:!0,t:F1},cssClasses:{r:!0,t:_1},handleAttributes:{r:!1,t:T1}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:dd,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(u){if(!Jo(n[u])&&i[u]===void 0){if(t[u].r)throw new Error("noUiSlider: '"+u+"' is required.");return}t[u].t(e,Jo(n[u])?n[u]:i[u])}),e.pips=n.pips;var r=document.createElement("div"),s=r.style.msTransform!==void 0,o=r.style.transform!==void 0;e.transformRule=o?"transform":s?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function P1(n,e,t){var i=a1(),r=l1(),s=r&&o1(),o=n,l,u,c,d,f,p,h=e.spectrum,x=[],b=[],S=[],C=0,m={},D=!1,g=n.ownerDocument,M=e.documentElement||g.documentElement,y=g.body,k=g.dir==="rtl"||e.ort===1?0:100;function w(A,O){var _=g.createElement("div");return O&&mt(_,O),A.appendChild(_),_}function E(A,O){var _=w(A,e.cssClasses.origin),G=w(_,e.cssClasses.handle);if(w(G,e.cssClasses.touchArea),G.setAttribute("data-handle",String(O)),e.keyboardSupport&&(G.setAttribute("tabindex","0"),G.addEventListener("keydown",function(ue){return Fe(ue,O)})),e.handleAttributes!==void 0){var re=e.handleAttributes[O];Object.keys(re).forEach(function(ue){G.setAttribute(ue,re[ue])})}return G.setAttribute("role","slider"),G.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),O===0?mt(G,e.cssClasses.handleLower):O===e.handles-1&&mt(G,e.cssClasses.handleUpper),_.handle=G,_}function v(A,O){return O?w(A,e.cssClasses.connect):!1}function T(A,O){u=w(O,e.cssClasses.connects),c=[],d=[],d.push(v(u,A[0]));for(var _=0;_<e.handles;_++)c.push(E(O,_)),S[_]=_,d.push(v(u,A[_+1]))}function R(A){mt(A,e.cssClasses.target),e.dir===0?mt(A,e.cssClasses.ltr):mt(A,e.cssClasses.rtl),e.ort===0?mt(A,e.cssClasses.horizontal):mt(A,e.cssClasses.vertical);var O=getComputedStyle(A).direction;return O==="rtl"?mt(A,e.cssClasses.textDirectionRtl):mt(A,e.cssClasses.textDirectionLtr),w(A,e.cssClasses.base)}function L(A,O){return!e.tooltips||!e.tooltips[O]?!1:w(A.firstChild,e.cssClasses.tooltip)}function N(){return o.hasAttribute("disabled")}function j(A){var O=c[A];return O.hasAttribute("disabled")}function U(A){A!=null?(c[A].setAttribute("disabled",""),c[A].handle.removeAttribute("tabindex")):(o.setAttribute("disabled",""),c.forEach(function(O){O.handle.removeAttribute("tabindex")}))}function I(A){A!=null?(c[A].removeAttribute("disabled"),c[A].handle.setAttribute("tabindex","0")):(o.removeAttribute("disabled"),c.forEach(function(O){O.removeAttribute("disabled"),O.handle.setAttribute("tabindex","0")}))}function V(){p&&(q("update"+vi.tooltips),p.forEach(function(A){A&&rd(A)}),p=null)}function K(){V(),p=c.map(L),Ne("update"+vi.tooltips,function(A,O,_){if(!(!p||!e.tooltips)&&p[O]!==!1){var G=A[O];e.tooltips[O]!==!0&&(G=e.tooltips[O].to(_[O])),p[O].innerHTML=G}})}function F(){q("update"+vi.aria),Ne("update"+vi.aria,function(A,O,_,G,re){S.forEach(function(ue){var he=c[ue],pe=me(b,ue,0,!0,!0,!0),be=me(b,ue,100,!0,!0,!0),Ce=re[ue],De=String(e.ariaFormat.to(_[ue]));pe=h.fromStepping(pe).toFixed(1),be=h.fromStepping(be).toFixed(1),Ce=h.fromStepping(Ce).toFixed(1),he.children[0].setAttribute("aria-valuemin",pe),he.children[0].setAttribute("aria-valuemax",be),he.children[0].setAttribute("aria-valuenow",Ce),he.children[0].setAttribute("aria-valuetext",De)})})}function P(A){if(A.mode===bi.Range||A.mode===bi.Steps)return h.xVal;if(A.mode===bi.Count){if(A.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var O=A.values-1,_=100/O,G=[];O--;)G[O]=O*_;return G.push(100),Y(G,A.stepped)}return A.mode===bi.Positions?Y(A.values,A.stepped):A.mode===bi.Values?A.stepped?A.values.map(function(re){return h.fromStepping(h.getStep(h.toStepping(re)))}):A.values:[]}function Y(A,O){return A.map(function(_){return h.fromStepping(O?h.getStep(_):_)})}function z(A){function O(Ce,De){return Number((Ce+De).toFixed(7))}var _=P(A),G={},re=h.xVal[0],ue=h.xVal[h.xVal.length-1],he=!1,pe=!1,be=0;return _=t1(_.slice().sort(function(Ce,De){return Ce-De})),_[0]!==re&&(_.unshift(re),he=!0),_[_.length-1]!==ue&&(_.push(ue),pe=!0),_.forEach(function(Ce,De){var We,Be,qe,Xe=Ce,at=_[De+1],nt,yi,Ti,ci,jt,$t,Xi,Di=A.mode===bi.Steps;for(Di&&(We=h.xNumSteps[De]),We||(We=at-Xe),at===void 0&&(at=Xe),We=Math.max(We,1e-7),Be=Xe;Be<=at;Be=O(Be,We)){for(nt=h.toStepping(Be),yi=nt-be,jt=yi/(A.density||1),$t=Math.round(jt),Xi=yi/$t,qe=1;qe<=$t;qe+=1)Ti=be+qe*Xi,G[Ti.toFixed(5)]=[h.fromStepping(Ti),0];ci=_.indexOf(Be)>-1?bt.LargeValue:Di?bt.SmallValue:bt.NoValue,!De&&he&&Be!==at&&(ci=0),Be===at&&pe||(G[nt.toFixed(5)]=[Be,ci]),be=nt}}),G}function J(A,O,_){var G,re,ue=g.createElement("div"),he=(G={},G[bt.None]="",G[bt.NoValue]=e.cssClasses.valueNormal,G[bt.LargeValue]=e.cssClasses.valueLarge,G[bt.SmallValue]=e.cssClasses.valueSub,G),pe=(re={},re[bt.None]="",re[bt.NoValue]=e.cssClasses.markerNormal,re[bt.LargeValue]=e.cssClasses.markerLarge,re[bt.SmallValue]=e.cssClasses.markerSub,re),be=[e.cssClasses.valueHorizontal,e.cssClasses.valueVertical],Ce=[e.cssClasses.markerHorizontal,e.cssClasses.markerVertical];mt(ue,e.cssClasses.pips),mt(ue,e.ort===0?e.cssClasses.pipsHorizontal:e.cssClasses.pipsVertical);function De(Be,qe){var Xe=qe===e.cssClasses.value,at=Xe?be:Ce,nt=Xe?he:pe;return qe+" "+at[e.ort]+" "+nt[Be]}function We(Be,qe,Xe){if(Xe=O?O(qe,Xe):Xe,Xe!==bt.None){var at=w(ue,!1);at.className=De(Xe,e.cssClasses.marker),at.style[e.style]=Be+"%",Xe>bt.NoValue&&(at=w(ue,!1),at.className=De(Xe,e.cssClasses.value),at.setAttribute("data-value",String(qe)),at.style[e.style]=Be+"%",at.innerHTML=String(_.to(qe)))}}return Object.keys(A).forEach(function(Be){We(Be,A[Be][0],A[Be][1])}),ue}function $(){f&&(rd(f),f=null)}function Q(A){$();var O=z(A),_=A.filter,G=A.format||{to:function(re){return String(Math.round(re))}};return f=o.appendChild(J(O,_,G)),f}function ae(){var A=l.getBoundingClientRect(),O="offset"+["Width","Height"][e.ort];return e.ort===0?A.width||l[O]:A.height||l[O]}function W(A,O,_,G){var re=function(he){var pe=H(he,G.pageOffset,G.target||O);if(!pe||N()&&!G.doNotReject||s1(o,e.cssClasses.tap)&&!G.doNotReject||A===i.start&&pe.buttons!==void 0&&pe.buttons>1||G.hover&&pe.buttons)return!1;s||pe.preventDefault(),pe.calcPoint=pe.points[e.ort],_(pe,G)},ue=[];return A.split(" ").forEach(function(he){O.addEventListener(he,re,s?{passive:!0}:!1),ue.push([he,re])}),ue}function H(A,O,_){var G=A.type.indexOf("touch")===0,re=A.type.indexOf("mouse")===0,ue=A.type.indexOf("pointer")===0,he=0,pe=0;if(A.type.indexOf("MSPointer")===0&&(ue=!0),A.type==="mousedown"&&!A.buttons&&!A.touches)return!1;if(G){var be=function(We){var Be=We.target;return Be===_||_.contains(Be)||A.composed&&A.composedPath().shift()===_};if(A.type==="touchstart"){var Ce=Array.prototype.filter.call(A.touches,be);if(Ce.length>1)return!1;he=Ce[0].pageX,pe=Ce[0].pageY}else{var De=Array.prototype.find.call(A.changedTouches,be);if(!De)return!1;he=De.pageX,pe=De.pageY}}return O=O||ld(g),(re||ue)&&(he=A.clientX+O.x,pe=A.clientY+O.y),A.pageOffset=O,A.points=[he,pe],A.cursor=re||ue,A}function te(A){var O=A-n1(l,e.ort),_=O*100/ae();return _=od(_),e.dir?100-_:_}function X(A){var O=100,_=!1;return c.forEach(function(G,re){if(!j(re)){var ue=b[re],he=Math.abs(ue-A),pe=he===100&&O===100,be=he<O,Ce=he<=O&&A>ue;(be||Ce||pe)&&(_=re,O=he)}}),_}function Z(A,O){A.type==="mouseout"&&A.target.nodeName==="HTML"&&A.relatedTarget===null&&le(A,O)}function fe(A,O){if(navigator.appVersion.indexOf("MSIE 9")===-1&&A.buttons===0&&O.buttonsProperty!==0)return le(A,O);var _=(e.dir?-1:1)*(A.calcPoint-O.startCalcPoint),G=_*100/O.baseSize;ke(_>0,G,O.locations,O.handleNumbers,O.connect)}function le(A,O){O.handle&&(Rr(O.handle,e.cssClasses.active),C-=1),O.listeners.forEach(function(_){M.removeEventListener(_[0],_[1])}),C===0&&(Rr(o,e.cssClasses.drag),Se(),A.cursor&&(y.style.cursor="",y.removeEventListener("selectstart",sd))),e.events.smoothSteps&&(O.handleNumbers.forEach(function(_){Le(_,b[_],!0,!0,!1,!1)}),O.handleNumbers.forEach(function(_){ie("update",_)})),O.handleNumbers.forEach(function(_){ie("change",_),ie("set",_),ie("end",_)})}function ye(A,O){if(!O.handleNumbers.some(j)){var _;if(O.handleNumbers.length===1){var G=c[O.handleNumbers[0]];_=G.children[0],C+=1,mt(_,e.cssClasses.active)}A.stopPropagation();var re=[],ue=W(i.move,M,fe,{target:A.target,handle:_,connect:O.connect,listeners:re,startCalcPoint:A.calcPoint,baseSize:ae(),pageOffset:A.pageOffset,handleNumbers:O.handleNumbers,buttonsProperty:A.buttons,locations:b.slice()}),he=W(i.end,M,le,{target:A.target,handle:_,listeners:re,doNotReject:!0,handleNumbers:O.handleNumbers}),pe=W("mouseout",M,Z,{target:A.target,handle:_,listeners:re,doNotReject:!0,handleNumbers:O.handleNumbers});re.push.apply(re,ue.concat(he,pe)),A.cursor&&(y.style.cursor=getComputedStyle(A.target).cursor,c.length>1&&mt(o,e.cssClasses.drag),y.addEventListener("selectstart",sd,!1)),O.handleNumbers.forEach(function(be){ie("start",be)})}}function we(A){A.stopPropagation();var O=te(A.calcPoint),_=X(O);_!==!1&&(e.events.snap||ad(o,e.cssClasses.tap,e.animationDuration),Le(_,O,!0,!0),Se(),ie("slide",_,!0),ie("update",_,!0),e.events.snap?ye(A,{handleNumbers:[_]}):(ie("change",_,!0),ie("set",_,!0)))}function xe(A){var O=te(A.calcPoint),_=h.getStep(O),G=h.fromStepping(_);Object.keys(m).forEach(function(re){re.split(".")[0]==="hover"&&m[re].forEach(function(ue){ue.call(B,G)})})}function Fe(A,O){if(N()||j(O))return!1;var _=["Left","Right"],G=["Down","Up"],re=["PageDown","PageUp"],ue=["Home","End"];e.dir&&!e.ort?_.reverse():e.ort&&!e.dir&&(G.reverse(),re.reverse());var he=A.key.replace("Arrow",""),pe=he===re[0],be=he===re[1],Ce=he===G[0]||he===_[0]||pe,De=he===G[1]||he===_[1]||be,We=he===ue[0],Be=he===ue[1];if(!Ce&&!De&&!We&&!Be)return!0;A.preventDefault();var qe;if(De||Ce){var Xe=Ce?0:1,at=Pe(O),nt=at[Xe];if(nt===null)return!1;nt===!1&&(nt=h.getDefaultStep(b[O],Ce,e.keyboardDefaultStep)),be||pe?nt*=e.keyboardPageMultiplier:nt*=e.keyboardMultiplier,nt=Math.max(nt,1e-7),nt=(Ce?-1:1)*nt,qe=x[O]+nt}else Be?qe=e.spectrum.xVal[e.spectrum.xVal.length-1]:qe=e.spectrum.xVal[0];return Le(O,h.toStepping(qe),!0,!0),ie("slide",O),ie("update",O),ie("change",O),ie("set",O),!1}function _e(A){A.fixed||c.forEach(function(O,_){W(i.start,O.children[0],ye,{handleNumbers:[_]})}),A.tap&&W(i.start,l,we,{}),A.hover&&W(i.move,l,xe,{hover:!0}),A.drag&&d.forEach(function(O,_){if(!(O===!1||_===0||_===d.length-1)){var G=c[_-1],re=c[_],ue=[O],he=[G,re],pe=[_-1,_];mt(O,e.cssClasses.draggable),A.fixed&&(ue.push(G.children[0]),ue.push(re.children[0])),A.dragAll&&(he=c,pe=S),ue.forEach(function(be){W(i.start,be,ye,{handles:he,handleNumbers:pe,connect:O})})}})}function Ne(A,O){m[A]=m[A]||[],m[A].push(O),A.split(".")[0]==="update"&&c.forEach(function(_,G){ie("update",G)})}function ce(A){return A===vi.aria||A===vi.tooltips}function q(A){var O=A&&A.split(".")[0],_=O?A.substring(O.length):A;Object.keys(m).forEach(function(G){var re=G.split(".")[0],ue=G.substring(re.length);(!O||O===re)&&(!_||_===ue)&&(!ce(ue)||_===ue)&&delete m[G]})}function ie(A,O,_){Object.keys(m).forEach(function(G){var re=G.split(".")[0];A===re&&m[G].forEach(function(ue){ue.call(B,x.map(e.format.to),O,x.slice(),_||!1,b.slice(),B)})})}function me(A,O,_,G,re,ue,he){var pe;return c.length>1&&!e.events.unconstrained&&(G&&O>0&&(pe=h.getAbsoluteDistance(A[O-1],e.margin,!1),_=Math.max(_,pe)),re&&O<c.length-1&&(pe=h.getAbsoluteDistance(A[O+1],e.margin,!0),_=Math.min(_,pe))),c.length>1&&e.limit&&(G&&O>0&&(pe=h.getAbsoluteDistance(A[O-1],e.limit,!1),_=Math.min(_,pe)),re&&O<c.length-1&&(pe=h.getAbsoluteDistance(A[O+1],e.limit,!0),_=Math.max(_,pe))),e.padding&&(O===0&&(pe=h.getAbsoluteDistance(0,e.padding[0],!1),_=Math.max(_,pe)),O===c.length-1&&(pe=h.getAbsoluteDistance(100,e.padding[1],!0),_=Math.min(_,pe))),he||(_=h.getStep(_)),_=od(_),_===A[O]&&!ue?!1:_}function de(A,O){var _=e.ort;return(_?O:A)+", "+(_?A:O)}function ke(A,O,_,G,re){var ue=_.slice(),he=G[0],pe=e.events.smoothSteps,be=[!A,A],Ce=[A,!A];G=G.slice(),A&&G.reverse(),G.length>1?G.forEach(function(We,Be){var qe=me(ue,We,ue[We]+O,be[Be],Ce[Be],!1,pe);qe===!1?O=0:(O=qe-ue[We],ue[We]=qe)}):be=Ce=[!0];var De=!1;G.forEach(function(We,Be){De=Le(We,_[We]+O,be[Be],Ce[Be],!1,pe)||De}),De&&(G.forEach(function(We){ie("update",We),ie("slide",We)}),re!=null&&ie("drag",he))}function Me(A,O){return e.dir?100-A-O:A}function oe(A,O){b[A]=O,x[A]=h.fromStepping(O);var _=Me(O,0)-k,G="translate("+de(_+"%","0")+")";if(c[A].style[e.transformRule]=G,e.events.invertConnects&&b.length>1){var re=b.every(function(ue,he,pe){return he===0||ue>=pe[he-1]});if(D!==!re){ct();return}}et(A),et(A+1),D&&(et(A-1),et(A+2))}function Se(){S.forEach(function(A){var O=b[A]>50?-1:1,_=3+(c.length+O*A);c[A].style.zIndex=String(_)})}function Le(A,O,_,G,re,ue){return re||(O=me(b,A,O,_,G,!1,ue)),O===!1?!1:(oe(A,O),!0)}function et(A){if(d[A]){var O=b.slice();D&&O.sort(function(pe,be){return pe-be});var _=0,G=100;A!==0&&(_=O[A-1]),A!==d.length-1&&(G=O[A]);var re=G-_,ue="translate("+de(Me(_,re)+"%","0")+")",he="scale("+de(re/100,"1")+")";d[A].style[e.transformRule]=ue+" "+he}}function je(A,O){return A===null||A===!1||A===void 0||(typeof A=="number"&&(A=String(A)),A=e.format.from(A),A!==!1&&(A=h.toStepping(A)),A===!1||isNaN(A))?b[O]:A}function Rt(A,O,_){var G=xr(A),re=b[0]===void 0;O=O===void 0?!0:O,e.animate&&!re&&ad(o,e.cssClasses.tap,e.animationDuration),S.forEach(function(pe){Le(pe,je(G[pe],pe),!0,!1,_)});var ue=S.length===1?0:1;if(re&&h.hasNoSize()&&(_=!0,b[0]=0,S.length>1)){var he=100/(S.length-1);S.forEach(function(pe){b[pe]=pe*he})}for(;ue<S.length;++ue)S.forEach(function(pe){Le(pe,b[pe],!0,!0,_)});Se(),S.forEach(function(pe){ie("update",pe),G[pe]!==null&&O&&ie("set",pe)})}function At(A){Rt(e.start,A)}function Ge(A,O,_,G){if(A=Number(A),!(A>=0&&A<S.length))throw new Error("noUiSlider: invalid handle number, got: "+A);Le(A,je(O,A),!0,!0,G),ie("update",A),_&&ie("set",A)}function ee(A){if(A===void 0&&(A=!1),A)return x.length===1?x[0]:x.slice(0);var O=x.map(e.format.to);return O.length===1?O[0]:O}function se(){for(q(vi.aria),q(vi.tooltips),Object.keys(e.cssClasses).forEach(function(A){Rr(o,e.cssClasses[A])});o.firstChild;)o.removeChild(o.firstChild);delete o.noUiSlider}function Pe(A){var O=b[A],_=h.getNearbySteps(O),G=x[A],re=_.thisStep.step,ue=null;if(e.snap)return[G-_.stepBefore.startValue||null,_.stepAfter.startValue-G||null];re!==!1&&G+re>_.stepAfter.startValue&&(re=_.stepAfter.startValue-G),G>_.thisStep.startValue?ue=_.thisStep.step:_.stepBefore.step===!1?ue=!1:ue=G-_.stepBefore.highestStep,O===100?re=null:O===0&&(ue=null);var he=h.countStepDecimals();return re!==null&&re!==!1&&(re=Number(re.toFixed(he))),ue!==null&&ue!==!1&&(ue=Number(ue.toFixed(he))),[ue,re]}function ze(){return S.map(Pe)}function Oe(A,O){var _=ee(),G=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];G.forEach(function(ue){A[ue]!==void 0&&(t[ue]=A[ue])});var re=pd(t);G.forEach(function(ue){A[ue]!==void 0&&(e[ue]=re[ue])}),h=re.spectrum,e.margin=re.margin,e.limit=re.limit,e.padding=re.padding,e.pips?Q(e.pips):$(),e.tooltips?K():V(),b=[],Rt(Jo(A.start)?A.start:_,O),A.connect&&Re()}function Re(){for(;u.firstChild;)u.removeChild(u.firstChild);for(var A=0;A<=e.handles;A++)d[A]=v(u,e.connect[A]),et(A);_e({drag:e.events.drag,fixed:!0})}function ct(){D=!D,hd(e,e.connect.map(function(A){return!A})),Re()}function ge(){l=R(o),T(e.connect,l),_e(e.events),Rt(e.start),e.pips&&Q(e.pips),e.tooltips&&K(),F()}ge();var B={destroy:se,steps:ze,on:Ne,off:q,get:ee,set:Rt,setHandle:Ge,reset:At,disable:U,enable:I,__moveHandles:function(A,O,_){ke(A,O,b,_)},options:t,updateOptions:Oe,target:o,removePips:$,removeTooltips:V,getPositions:function(){return b.slice()},getTooltips:function(){return p},getOrigins:function(){return c},pips:Q};return B}function N1(n,e){if(!n||!n.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+n);if(n.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var t=pd(e),i=P1(n,t,e);return n.noUiSlider=i,i}const I1={__spectrum:ud,cssClasses:dd,create:N1},H1={class:"slider-container"},V1={class:"slider-wrapper",style:{position:"relative"}},z1=["id"],j1=["value"],W1=["value"],U1=Ie(a.defineComponent({__name:"Slider",props:{minCount:{default:0},maxCount:{default:100},minValue:{default:0},maxValue:{default:100},step:{default:1},tooltips:{type:Boolean,default:!0},connect:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},sliderId:{default:"slider-range"}},emits:["updateMinValue","updateMaxValue","change"],setup(n,{expose:e,emit:t}){const i=n,r=t,s=a.ref(null),o=a.ref(null),l=a.ref(null);let u=null;const c=a.ref(i.minValue),d=a.ref(i.maxValue),f=()=>{if(!s.value)return;u&&u.destroy();const b=Array(i.maxCount-i.minCount+1).fill(0).map((C,m)=>i.minCount+m),S={to:C=>{const m=Math.round(C);return b[m]||b[0]},from:C=>{const m=Number(C);return b.indexOf(m)}};try{u=I1.create(s.value,{start:[c.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:S,range:{min:0,max:b.length-1}}),u.on("change",C=>{const m=Number(C[0]),D=Number(C[1]);c.value!==m&&(c.value=m,r("updateMinValue",m)),d.value!==D&&(d.value=D,r("updateMaxValue",D)),r("change",[m,D])}),u.on("update",C=>{const m=Number(C[0]),D=Number(C[1]);c.value=m,d.value=D})}catch(C){console.error("Error creating slider:",C)}},p=()=>{a.nextTick(()=>{f()})},h=(b,S)=>{if(u)try{u.set([b,S])}catch(C){console.error("Error updating slider values:",C)}},x=b=>{u&&(b?u.disable():u.enable())};return a.watch(()=>[i.minValue,i.maxValue],([b,S])=>{(b!==c.value||S!==d.value)&&(c.value=b,d.value=S,h(b,S))},{immediate:!1}),a.watch(()=>i.disabled,b=>{x(b)}),a.watch(()=>[i.minCount,i.maxCount],()=>{p()}),a.onMounted(()=>{p()}),a.onUnmounted(()=>{u&&(u.destroy(),u=null)}),e({updateValues:h,getValues:()=>u?.get(),reset:()=>{u&&u.reset()},destroy:()=>{u&&(u.destroy(),u=null)}}),(b,S)=>(a.openBlock(),a.createElementBlock("div",H1,[a.createElementVNode("div",V1,[a.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:b.sliderId},null,8,z1)]),a.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:o,value:b.minValue},null,8,j1),a.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:b.maxValue},null,8,W1)]))}}),[["__scopeId","data-v-892dca90"]]),G1=["title"],Y1=Ie(a.defineComponent({__name:"QuestionIcon",props:{title:{default:""},size:{default:"md"},color:{default:"#999999"},iconClass:{default:""},tooltipPosition:{default:"top"},clickToShow:{type:Boolean,default:!0}},setup(n){const e=n,t=a.ref(),i=a.ref(!1),r=a.computed(()=>({color:e.color})),s=a.computed(()=>{switch(e.size){case"sm":return"question-icon--sm";case"lg":return"question-icon--lg";default:return"question-icon--md"}}),o=a.computed(()=>`question-tooltip--${e.tooltipPosition}`),l=()=>{e.clickToShow&&e.title&&(i.value=!i.value)},u=c=>{t.value&&!t.value.contains(c.target)&&(i.value=!1)};return a.onMounted(()=>{e.clickToShow&&document.addEventListener("click",u)}),a.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",u)}),(c,d)=>(a.openBlock(),a.createElementBlock("div",{class:"question-icon-wrapper",ref_key:"wrapperRef",ref:t},[a.createElementVNode("i",{class:a.normalizeClass(["bi bi-question-circle-fill question-icon",[c.iconClass,s.value]]),title:c.title,style:a.normalizeStyle(r.value),onClick:l},null,14,G1),i.value&&c.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["question-tooltip",o.value])},[a.createTextVNode(a.toDisplayString(c.title)+" ",1),d[0]||(d[0]=a.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),Q1={class:"container-fluid rounded overflow-hidden bg-light"},K1={class:"row w-100"},J1={class:"text-secondary"},q1={class:"d-flex py-3 px-2 onlyPrint"},$1={class:"row w-100"},Z1={class:"text-secondary"},X1={class:"row"},ex=Ie(a.defineComponent({__name:"FilterValuesPanel",props:{filterValues:{default:null},filterTitles:{}},emits:["showFilter"],setup(n,{emit:e}){const t=n,i=a.ref(!1),r=a.ref([]);a.computed(()=>t.filterValues?Object.entries(t.filterValues).filter(([o,l])=>l).map(([o,l])=>({name:t.filterTitles[o]||o,value:String(l),key:o})):[]);function s(o){if(!o){r.value=[];return}r.value=Object.entries(o).filter(([l,u])=>u).map(([l,u])=>({name:t.filterTitles[l]||l,value:String(u),key:l}))}return a.watch(()=>t.filterValues,o=>{const l=a.isRef(o)?o.value:o;s(l)},{deep:!0,immediate:!0}),(o,l)=>(a.openBlock(),a.createElementBlock("div",Q1,[a.createElementVNode("div",{style:a.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[a.createElementVNode("div",K1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",c===r.value.length-1?"col":"col-auto"]),key:u.key},[a.createElementVNode("div",J1,a.toDisplayString(u.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(u.value),1)])],2))),128))]),a.createElementVNode("div",null,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-right rounded",onClick:l[0]||(l[0]=u=>o.$emit("showFilter"))},[...l[2]||(l[2]=[a.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),a.createElementVNode("div",q1,[a.createElementVNode("div",$1,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(u,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",c===r.value.length-1?"col":"col-auto"]),key:u.key},[a.createElementVNode("div",Z1,a.toDisplayString(u.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(u.value),1)])],2))),128))])]),a.createElementVNode("div",X1,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:l[1]||(l[1]=u=>i.value=!i.value)},[a.createElementVNode("i",{class:a.normalizeClass({"bi lh-normal":!0,"bi-chevron-down":!i.value,"bi-chevron-up":i.value})},null,2)])])]))}}),[["__scopeId","data-v-5fb2b7d8"]]),md=(n={})=>{n.hasOwnProperty("KEY")||(n.KEY="tables");const{KEY:e}=n;function t(o,l){const u=localStorage.getItem(e);let c=JSON.parse(u);return c={...c,[o]:l},localStorage.setItem(e,JSON.stringify(c)),!0}function i(o){return o?(localStorage.setItem(e,JSON.stringify(o)),!0):!1}function r(o){const l=localStorage.getItem(e),u=JSON.parse(l);return u?.hasOwnProperty(o)&&delete u[o],i(u),!0}function s(o){const l=localStorage.getItem(e);return(JSON.parse(l)||{})[o]||null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}},tx=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:o=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const u=a.ref({}),c=a.ref(0),d=a.ref(""),f=a.ref(""),p=a.ref({}),h=a.ref(!1),x=a.ref(!1),b=a.ref(!1),S=a.ref(s()),C=a.ref(!1),{setItemStorage:m,removeItemStorage:D,getItemStorage:g}=md();async function M(){S.value=s(),p.value={}}function y(Q){if(!n)return!1;m(n,Q)}const k=a.readonly({...o()});function w(Q,ae){p.value[Q]=ae}const E=a.computed(()=>Object.values(p.value).some(Boolean));function v(){c.value+=1}async function T(Q){if(!Q||!Q.options)return;const ae=r.value.ajaxURL;ae&&(Q.options.ajaxURL=ae),r.value.columns&&(Q.options.columns=r.value.columns,Q.setColumns(r.value.columns),await R(Q)),ae&&Q.replaceData(ae)}async function R(Q){const ae=typeof Q.hideColumn=="function",W=typeof Q.showColumn=="function";if(!ae||!W){v();return}for(const H of r.value.columns)H.visible===!1?Q.hideColumn(H.field):Q.showColumn(H.field)}function L(Q){if(!n)return!1;m(n,j(Q))}async function N(Q){const ae=r.value?.paginationMode==="remote";if(!(ae&&(!Q||!Q.replaceData))&&!(C.value||x.value)){x.value=!0;try{if(await V(),C.value||(await a.nextTick(),C.value))return;if(!ae){v();return}await T(Q),h.value=!1}finally{x.value=!1}}}function j(Q){return Q.map(W=>{let H=JSON.parse(JSON.stringify(W));return W.visible===!1&&(delete H.width,delete H.minWidth),H})}function U(Q){if(!n)return!1;m(n,j(Q))}function I(){const Q={};for(const[ae,W]of Object.entries({...S.value}))!W||W?.length<1||Array.isArray(W)&&(W[0]===null||W[0]===void 0||W[0]==="")||(Q[ae]=W);return Q}async function V(){if(C.value)return;const Q=e(),ae=await t();if(C.value)return;const W=Y();r.value={...r.value,ajaxURL:Q,ajaxResponse:ae,columns:W,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const K=a.computed(()=>{let Q=[];return r.value.columns.map(ae=>{ae.title&&Q.push(ae.visible)}),Q.includes(!1)});async function F(Q,ae){Q.target.checked==!1?(d.value=ae,f.value=""):(f.value=ae,d.value="")}async function P(){D(n),r.value.columns=Y()}function Y(){const Q=g(n);return Q||i({selectedQuickFilter:l?.value})}async function z(){D(n),r.value.columns.map(Q=>Q.visible=!1),U(r.value.columns)}function J(Q){r.value.columns=Q,n&&m(n,Q)}function $(){r.value.columns=r.value.columns}return a.onBeforeUnmount(()=>{C.value=!0}),a.provide("setFilterParamsStrings",w),a.provide("selectedFilterTitles",k),a.provide("tableFilters",S),a.provide("filterModalVisibility",h),a.provide("resetFilters",M),a.provide("applyFilters",N),a.provide("editTableColumnsModalVisibility",b),a.provide("tableOptions",r),a.provide("editTableColumnVisibility",F),a.provide("isTableCoumnsHidden",K),a.provide("unselectAllTableColumnCheckboxes",z),a.provide("selectAllTableColumnCheckboxes",P),a.provide("handleColumnsChanged",J),a.provide("handleColumnsApply",$),a.provide("table",u),{selectAllTableColumnCheckboxes:P,unselectAllTableColumnCheckboxes:z,isTableCoumnsHidden:K,editTableColumnVisibility:F,fetchData:V,onHideColumn:U,getFilterData:I,applyFilters:N,reRenderTable:v,resetFilters:M,onTableRowMoved:y,onShowColumn:L,table:u,tableKey:c,columnHide:d,columnShow:f,selectedFilterTitles:k,setFilterParamsStrings:w,filterParamsStrings:p,isSelectedFiltersVisible:E,filterModalVisibility:h,editTableColumnsModalVisibility:b,tableFilters:S,tableOptions:r,handleColumnsChanged:J,handleColumnsApply:$}};function gd(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function bd(n){return n.filter(e=>e.visible===!0)}function vd(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Mr(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function Zo(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Tn(n){if(!Array.isArray(n))return console.warn("validateColumns: columns must be an array"),!1;for(const e of n){if(!e.field||typeof e.field!="string")return console.warn("validateColumns: column.field must be a non-empty string",e),!1;if(typeof e.visible!="boolean")return console.warn("validateColumns: column.visible must be a boolean",e),!1}return!0}function yd(n){return n.some(e=>e.title&&!e.visible)}function wd(n,e){return n.find(t=>t.field===e)}function Tr(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const ix=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:wd,getVisibleColumns:bd,hasHiddenColumns:yd,hideAllColumns:Zo,prepareColumnsToSave:gd,resetColumnsToDefault:Mr,toggleColumnVisibility:vd,updateColumn:Tr,validateColumns:Tn},Symbol.toStringTag,{value:"Module"}));function Cd(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:o,validateOnChange:l=!0}=n;Tn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const u=a.ref(!1),c=a.ref([...e]),d=a.ref(!1);if(t&&typeof window<"u")try{const I=localStorage.getItem(t);if(I){const V=JSON.parse(I);Tn(V)&&(c.value=V)}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}const f=a.computed(()=>bd(c.value)),p=a.computed(()=>yd(c.value)),h=a.computed(()=>c.value.length),x=a.computed(()=>f.value.length);function b(I){if(!(!t||typeof window>"u"||!r))try{const V=gd(I);localStorage.setItem(t,JSON.stringify(V))}catch(V){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",V)}}function S(){if(!t||typeof window>"u")return null;try{const I=localStorage.getItem(t);if(I){const V=JSON.parse(I);if(Tn(V))return V}}catch(I){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",I)}return null}function C(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(I){console.warn("useTableColumnsEnhanced: failed to clear localStorage",I)}}function m(I){if(l&&!Tn(I)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}c.value=[...I],b(I),s?.(I)}function D(I,V){const K=I.target,F=Tr(c.value,V,{visible:K.checked});m(F)}function g(I){u.value=I}function M(I){const V=I||c.value;m(V),u.value=!1,o?.(V)}function y(){const I=Mr(c.value);m(I)}function k(){const I=Zo(c.value);m(I)}function w(I){const V=vd(c.value,I);m(V)}function E(I){const V=Tr(c.value,I,{visible:!0});m(V)}function v(I){const V=Tr(c.value,I,{visible:!1});m(V)}function T(){const I=Mr(e);m(I)}function R(){const I=Mr(c.value);m(I)}function L(){const I=Zo(c.value);m(I)}function N(I){return wd(c.value,I)}function j(I){return N(I)?.visible??!1}function U(){i?.value&&(i.value.columns=c.value)}return a.watch(c,()=>{U()},{deep:!0}),a.watch(()=>e,I=>{d.value||(c.value=[...I],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,U()),{columnsModalVisibility:u,tableColumns:c,visibleColumns:f,hasHidden:p,columnsCount:h,visibleCount:x,isInitialized:d,handleColumnsModalVisibility:g,handleColumnVisibilityChange:D,handleColumnsApply:M,handleColumnsSelectAll:y,handleColumnsUnselectAll:k,updateColumns:m,toggleColumn:w,showColumn:E,hideColumn:v,resetToDefault:T,showAll:R,hideAll:L,getColumn:N,isColumnVisible:j,saveToLocalStorage:b,loadFromLocalStorage:S,clearLocalStorage:C,syncWithTableOptions:U}}function nx(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:o}=n,l=Cd({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:h=>{s?.(h),r?.applyFilters&&r.applyFilters()},onApply:h=>{o?.(h),r?.applyFilters&&r.applyFilters()}});function u(h){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",h),l.updateColumns(h)}function c(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const h=r.onShowColumn;r.onShowColumn=x=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",x),l.updateColumns(x),h?.(x)}}if(r.onHideColumn){const h=r.onHideColumn;r.onHideColumn=x=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",x),l.updateColumns(x),h?.(x)}}}}function f(){i?.value&&(i.value.columns=l.tableColumns.value)}function p(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return a.watch(()=>t(),h=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",h),l.updateColumns(h)},{deep:!0}),d(),{...l,handleColumnsChanged:u,handleColumnsApply:c,syncWithTableOptions:f,syncWithTable:p,setupTableDefaultIntegration:d}}function rx(n){const{tableColumns:e,tableOptions:t,tableDefault:i,onApply:r}=n;function s(l){console.log("createColumnHandlers handleColumnsChanged called, received columns:",l),e.value=l,t.value.columns=l,i?.tableOptions&&(i.tableOptions.columns=l)}function o(){console.log("createColumnHandlers handleColumnsApply called"),console.log("createColumnHandlers current tableColumns:",e.value),t.value.columns=e.value,i?.tableOptions&&(i.tableOptions.columns=e.value),r?.()}return{handleColumnsChanged:s,handleColumnsApply:o}}const sx=(n={})=>{const{navigate:e=b=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=b=>b,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,o=a.ref([]);function l(b){e(b)}function u(b,S){if(!Array.isArray(b))return[];const C=JSON.parse(JSON.stringify(b));return C.length>S&&C.splice(0,C.length-S),C}function c(){const b=i(),S={path:b.path,name:b.name},C=o.value||[],m=C[C.length-1];if(JSON.stringify(m)===JSON.stringify(S))return!1;C.push(S),o.value=u(C,r),localStorage.setItem(s,JSON.stringify(o.value))}function d(){const b=JSON.parse(localStorage.getItem(s)||"[]");b?.length||c(),o.value=b}const f=a.computed(()=>o.value.map((b,S)=>({text:t(`routes.${b.name}`),href:b.path,isActive:S===o.value.length-1})));function p(){c()}function h(){o.value=[],localStorage.removeItem(s)}function x(b){const S=o.value||[];S.push(b),o.value=u(S,r),localStorage.setItem(s,JSON.stringify(o.value))}return a.onMounted(()=>{d()}),{goTo:l,crumbs:f,breadcrumbs:o,updateBreadcrumbs:p,clearBreadcrumbs:h,addBreadcrumb:x}},ui={country:"country",region:"region",district:"district",locality:"locality",street:"street",house:"house",building:"building",apartment:"apartment"};function ax(n){return{countryLabel:n(ui.country),regionLabel:n(ui.region),districtLabel:n(ui.district),localityLabel:n(ui.locality),streetLabel:n(ui.street),houseLabel:n(ui.house),buildingLabel:n(ui.building),apartmentLabel:n(ui.apartment)}}const Xo={expandAll:"accordion.expand_all",collapseAll:"accordion.collapse_all"};function ox(n){return{expandText:n(Xo.expandAll),collapseText:n(Xo.collapseAll)}}async function lx(n){const{logOutSSO:e,nextTick:t,navigateTo:i,redirect:r,onReset:s,redirectPath:o="/login",onError:l=c=>console.error(c)}=n,u=typeof e=="function"?e:async()=>{};try{await u()}catch(c){l(c)}finally{const c=r??i;if(r){s(),c(o);return}await t(()=>{s(),c(o)})}}const Ad="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function Ed(){const n=globalThis.crypto;if(!n)throw new Error("Web Crypto API is not available.");if(!n.getRandomValues)throw new Error("Web Crypto getRandomValues is not available.");if(!n.subtle?.digest)throw new Error("Web Crypto subtle digest is not available.");return n}function kd(n){const e=Ed(),t=new Uint8Array(n);e.getRandomValues(t);let i="";return t.forEach(r=>{i+=Ad[r%Ad.length]}),i}function ux(n){const e=new Uint8Array(n);let t="";return e.forEach(i=>{t+=String.fromCharCode(i)}),btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")}function Sd(n=64){if(!Number.isInteger(n)||n<43||n>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return kd(n)}async function xd(n){const e=Ed(),i=new TextEncoder().encode(n),r=await e.subtle.digest("SHA-256",i);return ux(r)}async function cx(n=64){const e=Sd(n),t=await xd(e);return{codeVerifier:e,codeChallenge:t}}function dx(n=32){if(!Number.isInteger(n)||n<16||n>128)throw new Error("OAuth state length must be between 16 and 128.");return kd(n)}function hx(n,e,t){return{current_page:e,data:[],first_page_url:n,from:0,last_page:1,last_page_url:n,links:[],next_page_url:null,path:n,per_page:t,prev_page_url:null,to:0,total:0}}function fx(n={}){return async(e,t,i)=>{const r=await fetch(e,t);if(r.status===401)throw n.onUnauthorized?.(r),r;if(r.status===404&&n.onNotFound)return n.onNotFound({url:e,params:i,response:r});if(!r.ok)throw r;return await r.json()}}const px=n=>({searchCountries:(e={})=>n("/handbook/overpass/countries",{method:"GET",params:e}),getRegionsByCountry:e=>n(`/handbook/overpass/countries/${e}/regions`,{method:"GET"}),getDistrictsByRegion:e=>n(`/handbook/overpass/regions/${e}/districts`,{method:"GET"}),getLocalitiesByDistrict:e=>n(`/handbook/overpass/districts/${e}/cities`,{method:"GET"}),getStreetsByLocality:e=>n(`/handbook/overpass/cities/${e}/streets`,{method:"GET"})});ne.ACCORDION_LOCALIZATION_KEYS=Xo,ne.ADDRESS_FORM_TRANSLATIONS=ui,ne.AddButton=el,ne.AddressForm=tw,ne.AgeFromAgeTo=mw,ne.BooleanCheckbox=_c,ne.Breadcrumbs=CA,ne.Card=mC,ne.CardInfo=OA,ne.Checkbox=ab,ne.ClearFormButton=Hd,ne.CollapseButton=Fd,ne.CollapsedSidebarLink=Gc,ne.ColumnSubFilter=OS,ne.ConfirmationModal=Gw,ne.CustomInput=or,ne.DefaultAccordion=hE,ne.DefaultButton=Lr,ne.DefaultDropDown=Fo,ne.DefaultModal=zc,ne.Divider=_o,ne.EditTableColumns=Qo,ne.EditTableColumnsModalComponent=jc,ne.ErrorMessageComponent=aE,ne.ExportButton=_d,ne.ExportComponent=Rh,ne.FilterValuesPanel=ex,ne.Flatpickr=Fy,ne.Footer=bC,ne.FormError=ki,ne.Header=BC,ne.HeaderSearchForm=Iy,ne.Icon=Or,ne.KindCheckboxesAccordion=kE,ne.LanguageSelector=AA,ne.Logo=Wc,ne.MainComponent=fA,ne.MultiCheckbox=gy,ne.MultiInput=Cy,ne.MultipleQuickFilterComponent=XS,ne.PageCard=ZA,ne.PageTitle=hC,ne.PasswordInput=ib,ne.PrintButton=Pd,ne.QuestionIcon=Y1,ne.Sidebar=Yc,ne.SidebarLink=Uc,ne.Slider=U1,ne.Spinner=Dr,ne.SubFilterToggleBtn=nd,ne.Table=xS,ne.TableAppliedFiltersStorage=LS,ne.TableColumnsButton=GS,ne.TableColumnsModal=YS,ne.TableCount=DS,ne.TableFilterModalComponent=Xw,ne.TableQuickFilterComponent=PS,ne.Toast=Qc,ne.ToggleAllTableRowButtons=JS,ne.ToggleButtons=jd,ne.VSelect=Vt,ne.addDays=Ma,ne.addMonths=Ta,ne.addYears=Da,ne.areArraysEqual=Qa,ne.arrayToCutString=Va,ne.camelCase=Fa,ne.capitalize=Ba,ne.chunk=Ua,ne.clamp=co,ne.constants=Yo,ne.createAddressService=px,ne.createColumnHandlers=rx,ne.createEmptyRemotePageResponse=hx,ne.createTableAjaxRequestFunc=fx,ne.cutString=Ha,ne.debounce=hn,ne.findAll=ca,ne.findOne=ua,ne.firstToUppercase=La,ne.flattenObject=ar,ne.formatDate=Sa,ne.formatMoney=xa,ne.generateCodeChallenge=xd,ne.generateCodeVerifier=Sd,ne.generateId=$a,ne.generatePkcePair=cx,ne.generateState=dx,ne.getAccordionLocalization=ox,ne.getAddressFormLabels=ax,ne.getBrowserLocale=pa,ne.getDeclinationFromNumber=Oa,ne.getDeepCopyObject=oi,ne.getLocalStorage=no,ne.getNowDate=Ra,ne.getSessionStorage=ao,ne.getSupportedLocales=ir,ne.getUniqueKey=pi,ne.getValueFromArr=ba,ne.getValueFromObjectItem=nr,ne.groupBy=ja,ne.hasMatch=go,ne.hasRole=mo,ne.helpers=qg,ne.initEmailMask=ya,ne.initInnMask=Ca,ne.initKppMask=Aa,ne.initPassportMask=ka,ne.initPhoneMask=wa,ne.initSnilsMask=Ea,ne.isArraysEqual=Ya,ne.isEqual=sr,ne.isObject=Ga,ne.isValidDate=rr,ne.isValidEmail=Xa,ne.isValidLocale=ma,ne.isValidPhone=eo,ne.isValidUrl=to,ne.kebabCase=_a,ne.lerp=ho,ne.maskDate=Ia,ne.memoize=lo,ne.mountSubFilter=zi,ne.omit=qa,ne.once=uo,ne.pick=Ja,ne.prepareResponse=bo,ne.prepareSelectOptions=da,ne.random=fo,ne.removeLocalStorage=ro,ne.removeSessionStorage=oo,ne.required=Za,ne.roundToDecimals=po,ne.runLogoutFlow=lx,ne.scrollToElement=fa,ne.scrollToError=ha,ne.setLocalStorage=io,ne.setSessionStorage=so,ne.snakeCase=Pa,ne.sortBy=Wa,ne.sumOfArrayNumbers=va,ne.tableColumnsUtils=ix,ne.throttle=ga,ne.truncate=Na,ne.unflatenObject=Ka,ne.unique=za,ne.useBreadcrumbs=sx,ne.useTableColumns=Ko,ne.useTableColumnsEnhanced=Cd,ne.useTableColumnsIntegration=nx,ne.useTableDefault=tx,ne.useTableStorage=md,Object.defineProperty(ne,Symbol.toStringTag,{value:"Module"})}));
|