r3ui-lib 1.3.4 → 1.3.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.
@@ -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
  `+E.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 E=Je("div","flatpickr-weeks");return B.appendChild(E),{weekWrapper:B,weekNumbers:E}}function N(B,E){E===void 0&&(E=!0);var L=E?B:B-t.currentMonth;L<0&&t._hidePrevMonthArrow===!0||L>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=L,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Ge("onYearChange"),O()),x(),Ge("onMonthChange"),ze())}function K(B,E){if(B===void 0&&(B=!0),E===void 0&&(E=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,E===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var L=Qo(t.config),_=L.hours,G=L.minutes,se=L.seconds;p(_,G,se)}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 $(){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 E=t.calendarContainer.parentNode;if(E.lastChild&&E.removeChild(E.lastChild),E.parentNode){for(;E.firstChild;)E.parentNode.insertBefore(E.firstChild,E);E.parentNode.removeChild(E)}}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(L){try{delete t[L]}catch{}})}function te(B){return t.calendarContainer.contains(B)}function le(B){if(t.isOpen&&!t.config.inline){var E=St(B),L=te(E),_=E===t.input||E===t.altInput||t.element.contains(E)||B.path&&B.path.indexOf&&(~B.path.indexOf(t.input)||~B.path.indexOf(t.altInput)),G=!_&&!L&&!te(B.relatedTarget),se=!t.config.ignoredFocusElements.some(function(ue){return ue.contains(E)});G&&se&&(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&&c(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function ce(B){if(!(!B||t.config.minDate&&B<t.config.minDate.getFullYear()||t.config.maxDate&&B>t.config.maxDate.getFullYear())){var E=B,L=t.currentYear!==E;t.currentYear=E||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)),L&&(t.redraw(),Ge("onYearChange"),O())}}function Y(B,E){var L;E===void 0&&(E=!0);var _=t.parseDate(B,void 0,E);if(t.config.minDate&&_&&Rt(_,t.config.minDate,E!==void 0?E:!t.minDateHasTime)<0||t.config.maxDate&&_&&Rt(_,t.config.maxDate,E!==void 0?E:!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,se=(L=t.config.enable)!==null&&L!==void 0?L:t.config.disable,ue=0,fe=void 0;ue<se.length;ue++){if(fe=se[ue],typeof fe=="function"&&fe(_))return G;if(fe instanceof Date&&_!==void 0&&fe.getTime()===_.getTime())return G;if(typeof fe=="string"){var pe=t.parseDate(fe,void 0,!0);return pe&&pe.getTime()===_.getTime()?G:!G}else if(typeof fe=="object"&&_!==void 0&&fe.from&&fe.to&&_.getTime()>=fe.from.getTime()&&_.getTime()<=fe.to.getTime())return G}return!G}function ie(B){return t.daysContainer!==void 0?B.className.indexOf("hidden")===-1&&B.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(B):!1}function Z(B){var E=B.target===t._input,L=t._input.value.trimEnd()!==Le();E&&L&&!(B.relatedTarget&&te(B.relatedTarget))&&t.setDate(t._input.value,!0,B.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function Q(B){var E=St(B),L=t.config.wrap?n.contains(E):E===t._input,_=t.config.allowInput,G=t.isOpen&&(!_||!L),se=t.config.inline&&L&&!_;if(B.keyCode===13&&L){if(_)return t.setDate(t._input.value,!0,E===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),E.blur();t.open()}else if(te(E)||G||se){var ue=!!t.timeContainer&&t.timeContainer.contains(E);switch(B.keyCode){case 13:ue?(B.preventDefault(),c(),re()):me(B);break;case 27:B.preventDefault(),re();break;case 8:case 46:L&&!t.config.allowInput&&(B.preventDefault(),t.clear());break;case 37:case 39:if(!ue&&!L){B.preventDefault();var fe=s();if(t.daysContainer!==void 0&&(_===!1||fe&&ie(fe))){var pe=B.keyCode===39?1:-1;B.ctrlKey?(B.stopPropagation(),N(pe),y(C(1),0)):y(void 0,pe)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:B.preventDefault();var ve=B.keyCode===40?1:-1;t.daysContainer&&E.$i!==void 0||E===t.input||E===t.altInput?B.ctrlKey?(B.stopPropagation(),ce(t.currentYear-ve),y(C(1),0)):ue||y(void 0,ve*7):E===t.currentYearElement?ce(t.currentYear-ve):t.config.enableTime&&(!ue&&t.hourElement&&t.hourElement.focus(),c(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(E);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(E)&&B.shiftKey&&(B.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&E===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],h(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],h(),xe();break}(L||te(E))&&Ge("onKeyDown",B)}function P(B,E){if(E===void 0&&(E="flatpickr-day"),!(t.selectedDates.length!==1||B&&(!B.classList.contains(E)||B.classList.contains("flatpickr-disabled")))){for(var L=B?B.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),_=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),G=Math.min(L,t.selectedDates[0].getTime()),se=Math.max(L,t.selectedDates[0].getTime()),ue=!1,fe=0,pe=0,ve=G;ve<se;ve+=Vw.DAY)Y(new Date(ve),!0)||(ue=ue||ve>G&&ve<se,ve<_&&(!fe||ve>fe)?fe=ve:ve>_&&(!pe||ve<pe)&&(pe=ve));var Ce=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+E));Ce.forEach(function(De){var We=De.dateObj,Be=We.getTime(),qe=fe>0&&Be<fe||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(L<=t.selectedDates[0].getTime()?"startRange":"endRange"),_<L&&Be===_?De.classList.add("startRange"):_>L&&Be===_&&De.classList.add("endRange"),Be>=fe&&(pe===0||Be<=pe)&&Nw(Be,_,L)&&De.classList.add("inRange"))})}}function J(){t.isOpen&&!t.config.static&&!t.config.inline&&_e()}function ee(B,E){if(E===void 0&&(E=t._positionElement),t.isMobile===!0){if(B){B.preventDefault();var L=St(B);L&&L.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(E)),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 be(B){return function(E){var L=t.config["_"+B+"Date"]=t.parseDate(E,t.config.dateFormat),_=t.config["_"+(B==="min"?"max":"min")+"Date"];L!==void 0&&(t[B==="min"?"minDateHasTime":"maxDateHasTime"]=L.getHours()>0||L.getMinutes()>0||L.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(G){return Y(G)}),!t.selectedDates.length&&B==="min"&&m(L),xe()),t.daysContainer&&(X(),L!==void 0?t.currentYearElement[B]=L.getFullYear().toString():t.currentYearElement.removeAttribute(B),t.currentYearElement.disabled=!!_&&L!==void 0&&_.getFullYear()===L.getFullYear())}}function we(){var B=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],E=ft(ft({},JSON.parse(JSON.stringify(n.dataset||{}))),e),L={};t.config.parseDate=E.parseDate,t.config.formatDate=E.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(Ce){t.config._enable=Re(Ce)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(Ce){t.config._disable=Re(Ce)}});var _=E.mode==="time";if(!E.dateFormat&&(E.enableTime||_)){var G=ot.defaultConfig.dateFormat||qi.dateFormat;L.dateFormat=E.noCalendar||_?"H:i"+(E.enableSeconds?":S":""):G+" H:i"+(E.enableSeconds?":S":"")}if(E.altInput&&(E.enableTime||_)&&!E.altFormat){var se=ot.defaultConfig.altFormat||qi.altFormat;L.altFormat=E.noCalendar||_?"h:i"+(E.enableSeconds?":S K":" K"):se+(" h:i"+(E.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:be("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:be("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")}),E.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,L,E);for(var fe=0;fe<B.length;fe++)t.config[B[fe]]=t.config[B[fe]]===!0||t.config[B[fe]]==="true";jo.filter(function(Ce){return t.config[Ce]!==void 0}).forEach(function(Ce){t.config[Ce]=Wo(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 fe=0;fe<t.config.plugins.length;fe++){var pe=t.config.plugins[fe](t)||{};for(var ve in pe)jo.indexOf(ve)>-1?t.config[ve]=Wo(pe[ve]).map(o).concat(t.config[ve]):typeof E[ve]>"u"&&(t.config[ve]=pe[ve])}E.altInputClass||(t.config.altInputClass=Ae().className+" "+t.config.altInputClass),Ge("onParseConfig")}function Ae(){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),Mi.D="("+t.l10n.weekdays.shorthand.join("|")+")",Mi.l="("+t.l10n.weekdays.longhand.join("|")+")",Mi.M="("+t.l10n.months.shorthand.join("|")+")",Mi.F="("+t.l10n.months.longhand.join("|")+")",Mi.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var 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=yd(t),t.parseDate=Go({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 E=B||t._positionElement,L=Array.prototype.reduce.call(t.calendarContainer.children,(function(Oi,aM){return Oi+aM.offsetHeight}),0),_=t.calendarContainer.offsetWidth,G=t.config.position.split(" "),se=G[0],ue=G.length>1?G[1]:null,fe=E.getBoundingClientRect(),pe=window.innerHeight-fe.bottom,ve=se==="above"||se!=="below"&&pe<L&&fe.top>L,Ce=window.pageYOffset+fe.top+(ve?-L-2:E.offsetHeight+2);if(gt(t.calendarContainer,"arrowTop",!ve),gt(t.calendarContainer,"arrowBottom",ve),!t.config.inline){var De=window.pageXOffset+fe.left,We=!1,Be=!1;ue==="center"?(De-=(_-fe.width)/2,We=!0):ue==="right"&&(De-=_-fe.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+fe.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=Ie();if(nt===void 0)return;var wi=window.document.body.offsetWidth,Li=Math.max(0,wi/2-_/2),di=".flatpickr-calendar.centerMost:before",jt=".flatpickr-calendar.centerMost:after",$t=nt.cssRules.length,rn="{left:"+fe.left+"px;right:auto;}";gt(t.calendarContainer,"rightMost",!1),gt(t.calendarContainer,"centerMost",!0),nt.insertRule(di+","+jt+rn,$t),t.calendarContainer.style.left=Li+"px",t.calendarContainer.style.right="auto"}}}}function Ie(){for(var B=null,E=0;E<document.styleSheets.length;E++){var L=document.styleSheets[E];if(L.cssRules){try{L.cssRules}catch{continue}B=L;break}}return B??de()}function de(){var B=document.createElement("style");return document.head.appendChild(B),B.sheet}function X(){t.config.noCalendar||t.isMobile||(O(),ze(),x())}function re(){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 E=function(Ce){return Ce.classList&&Ce.classList.contains("flatpickr-day")&&!Ce.classList.contains("flatpickr-disabled")&&!Ce.classList.contains("notAllowed")},L=vd(St(B),E);if(L!==void 0){var _=L,G=t.latestSelectedDateObj=new Date(_.dateObj.getTime()),se=(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=ae(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),Rt(G,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(Ce,De){return Ce.getTime()-De.getTime()}));if(h(),se){var fe=t.currentYear!==G.getFullYear();t.currentYear=G.getFullYear(),t.currentMonth=G.getMonth(),fe&&(Ge("onYearChange"),O()),Ge("onMonthChange")}if(ze(),x(),xe(),!se&&t.config.mode!=="range"&&t.config.showMonths===1?S(_):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,ve=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(pe||ve)&&re()}R()}}var he={locale:[Fe,q],showMonths:[j,l,H],minDate:[f],maxDate:[f],positionElement:[je],clickOpens:[function(){t.config.clickOpens===!0?(A(t._input,"focus",t.open),A(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function Se(B,E){if(B!==null&&typeof B=="object"){Object.assign(t.config,B);for(var L in B)he[L]!==void 0&&he[L].forEach(function(_){return _()})}else t.config[B]=E,he[B]!==void 0?he[B].forEach(function(_){return _()}):jo.indexOf(B)>-1&&(t.config[B]=Wo(E));t.redraw(),xe(!0)}function Me(B,E){var L=[];if(B instanceof Array)L=B.map(function(_){return t.parseDate(_,E)});else if(B instanceof Date||typeof B=="number")L=[t.parseDate(B,E)];else if(typeof B=="string")switch(t.config.mode){case"single":case"time":L=[t.parseDate(B,E)];break;case"multiple":L=B.split(t.config.conjunction).map(function(_){return t.parseDate(_,E)});break;case"range":L=B.split(t.l10n.rangeSeparator).map(function(_){return t.parseDate(_,E)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(B)));t.selectedDates=t.config.allowInvalidPreload?L:L.filter(function(_){return _ instanceof Date&&Y(_,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(_,G){return _.getTime()-G.getTime()})}function oe(B,E,L){if(E===void 0&&(E=!1),L===void 0&&(L=t.config.dateFormat),B!==0&&!B||B instanceof Array&&B.length===0)return t.clear(E);Me(B,L),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),f(void 0,E),m(),t.selectedDates.length===0&&t.clear(!1),xe(E),E&&Ge("onChange")}function Re(B){return B.slice().map(function(E){return typeof E=="string"||typeof E=="number"||E instanceof Date?t.parseDate(E,void 0,!0):E&&typeof E=="object"&&E.from&&E.to?{from:t.parseDate(E.from,void 0),to:t.parseDate(E.to,void 0)}:E}).filter(function(E){return E})}function Oe(){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=Ae(),!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 xt(){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{}A(t.mobileInput,"change",function(E){t.setDate(St(E).value,!1,t.mobileFormatStr),Ge("onChange"),Ge("onClose")})}function At(B){if(t.isOpen===!0)return t.close();t.open(B)}function Ge(B,E){if(t.config!==void 0){var L=t.config[B];if(L!==void 0&&L.length>0)for(var _=0;L[_]&&_<L.length;_++)L[_](t.selectedDates,t.input.value,t,E);B==="onChange"&&(t.input.dispatchEvent(ne("change")),t.input.dispatchEvent(ne("input")))}}function ne(B){var E=document.createEvent("Event");return E.initEvent(B,!0,!0),E}function ae(B){for(var E=0;E<t.selectedDates.length;E++){var L=t.selectedDates[E];if(L instanceof Date&&Rt(L,B)===0)return""+E}return!1}function Pe(B){return t.config.mode!=="range"||t.selectedDates.length<2?!1:Rt(B,t.selectedDates[0])>=0&&Rt(B,t.selectedDates[1])<=0}function ze(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(B,E){var L=new Date(t.currentYear,t.currentMonth,1);L.setMonth(t.currentMonth+E),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[E].textContent=kr(L.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=L.getMonth().toString(),B.value=L.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 Le(B){var E=B||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(L){return t.formatDate(L,E)}).filter(function(L,_,G){return t.config.mode!=="range"||t.config.enableTime||G.indexOf(L)===_}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function xe(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=Le(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Le(t.config.altFormat)),B!==!1&&Ge("onValueUpdate")}function ut(B){var E=St(B),L=t.prevMonthNav.contains(E),_=t.nextMonthNav.contains(E);L||_?N(L?-1:1):t.yearElements.indexOf(E)>=0?E.select():E.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):E.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function ge(B){B.preventDefault();var E=B.type==="keydown",L=St(B),_=L;t.amPM!==void 0&&L===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]);var G=parseFloat(_.getAttribute("min")),se=parseFloat(_.getAttribute("max")),ue=parseFloat(_.getAttribute("step")),fe=parseInt(_.value,10),pe=B.delta||(E?B.which===38?1:-1:0),ve=fe+ue*pe;if(typeof _.value<"u"&&_.value.length===2){var Ce=_===t.hourElement,De=_===t.minuteElement;ve<G?(ve=se+ve+Ft(!Ce)+(Ft(Ce)&&Ft(!t.amPM)),De&&b(void 0,-1,t.hourElement)):ve>se&&(ve=_===t.hourElement?ve-se-Ft(!t.amPM):G,De&&b(void 0,1,t.hourElement)),t.amPM&&Ce&&(ue===1?ve+fe===23:Math.abs(ve-fe)>ue)&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]),_.value=Ct(ve)}}return r(),t}function $i(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=zw(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 $i(this,n)},HTMLElement.prototype.flatpickr=function(n){return $i([this],n)});var ot=function(n,e){return typeof n=="string"?$i(window.document.querySelectorAll(n),e):n instanceof Node?$i([n],e):$i(n,e)};ot.defaultConfig={},ot.l10ns={en:ft({},kn),default:ft({},kn)},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=Go({}),ot.formatDate=yd({}),ot.compareDates=Rt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return $i(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 Rn={exports:{}},jw=Rn.exports,Cd;function Ww(){return Cd||(Cd=1,(function(n,e){(function(t,i){i(e)})(jw,(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})}))})(Rn,Rn.exports)),Rn.exports}var Uw=Ww(),xn={exports:{}},Gw=xn.exports,Ad;function Yw(){return Ad||(Ad=1,(function(n,e){(function(t,i){i(e)})(Gw,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["א","ב","ג","ד","ה","ו","ש"],longhand:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"]},months:{shorthand:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],longhand:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},rangeSeparator:" אל ",time_24hr:!0};i.l10ns.he=r;var s=i.l10ns;t.Hebrew=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(xn,xn.exports)),xn.exports}var Qw=Yw();const Kw=["value","id","name","disabled","required","placeholder"],Jw=["title"],qw=["title"],$w=Ne(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),c=a.ref(""),u=a.ref([]),d=a.ref(!1),h=a.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),m=S=>{if(!S)return null;if(S instanceof Date&&!isNaN(S.getTime()))return S;const C=typeof S=="string"?S.trim():"";if(C){const k=A(C);if(k){const x=new Date(k);if(!isNaN(x.getTime()))return x}const y=ot.parseDate?.(C,i.dateFormat);if(y&&!isNaN(y.getTime()))return y;const D=new Date(C);if(!isNaN(D.getTime()))return D}return null},p=S=>{const C=S instanceof Date?S:m(S);if(!C)return"";const k=String(C.getDate()).padStart(2,"0"),y=String(C.getMonth()+1).padStart(2,"0"),D=C.getFullYear();return i.format==="MM/DD/YYYY"?`${y}/${k}/${D}`:i.format==="YYYY-MM-DD"?`${D}-${y}-${k}`:`${k}.${y}.${D}`},g=S=>{const C=S instanceof Date?S:m(S);if(!C)return"";const k=String(C.getDate()).padStart(2,"0"),y=String(C.getMonth()+1).padStart(2,"0");return`${C.getFullYear()}-${y}-${k}`},A=S=>{if(!S)return"";const C=S.trim(),k=ot.parseDate?.(C,i.dateFormat);if(k&&!isNaN(k.getTime())){const y=k.getFullYear(),D=String(k.getMonth()+1).padStart(2,"0"),x=String(k.getDate()).padStart(2,"0");return`${y}-${D}-${x}`}if(/^\d{4}-\d{2}-\d{2}/.test(C))return C;if(i.format==="MM/DD/YYYY"){const[y,D,x]=C.split("/");if(y&&D&&x)return`${x}-${y.padStart(2,"0")}-${D.padStart(2,"0")}`}if(i.format==="YYYY-MM-DD")return C;if(i.format==="DD.MM.YYYY"){const[y,D,x]=C.split(".");if(y&&D&&x)return`${x}-${D.padStart(2,"0")}-${y.padStart(2,"0")}`}return C},R=S=>S?Array.isArray(S)?S:[S]:[],v=(S,C)=>{const k=R(S),y=k.map(x=>p(x)).filter(Boolean);if(c.value=y.join(", "),l.value=y.length>0,!C?._input)return;if(!y.length){C.clear?.(),C._input.value="";return}const D=k.map(x=>m(x)).filter(x=>!!x);if(!D.length){C.clear?.(),C._input.value=c.value;return}C.setDate?.(D,!1),C._input.value=c.value,(i.mode==="range"||i.mode==="multiple")&&(u.value=C.selectedDates||D)},f=()=>{if(!s.value)return;const S={locale:i.locale==="ru"?Uw.Russian:i.locale==="he"?Qw.Hebrew:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(C,k,y)=>{const D=C.length>0;if(u.value=C,!D)return T({instance:y}),!1;if(i.mode==="range"||i.mode==="multiple"){const x=C.map(j=>g(j)),O=Array.isArray(i.modelValue)?i.modelValue:[];if(O.length===x.length&&O.every((j,U)=>j===x[U]))return!1}else{const x=g(C[0]);if(!(i.modelValue!==x))return!1}if(d.value=!0,i.mode==="range"||i.mode==="multiple"){const x=C.map(O=>p(O));c.value=x.join(", "),l.value=x.length>0}else c.value=k,l.value=k.length>0;a.nextTick(()=>{if(i.mode==="multiple"){const x=C.map(O=>g(O));r("update:modelValue",x)}else if(i.mode==="range"){const x=C.map(O=>g(O));r("update:modelValue",x)}else{const x=g(C[0]);r("update:modelValue",x)}r("change",C.map(x=>x.toISOString()),k,y),a.nextTick(()=>{d.value=!1})})},onOpen:C=>{r("open",C)},onReady:C=>{r("ready",C)},...i.config};i.minDate&&i.minDate&&(S.minDate=i.minDate),i.maxDate&&(S.maxDate=i.maxDate),i.defaultDate&&(S.defaultDate=i.defaultDate),o.value=ot(s.value,S),T({instance:o.value})},T=({instance:S})=>{v(i.modelValue,S)},b=()=>{if(i.disabled||!o.value)return;o.value.clear(),o.value._input.value="";const S=i.mode==="range"||i.mode==="multiple"?[]:"";c.value="",l.value=!1,u.value=[],r("update:modelValue",S),r("change",[],"",o.value),v(S,o.value)},M=S=>{const C=S.target;c.value=C.value},w=()=>{if(i.mode==="range"||i.mode==="multiple"){if(o.value?.isOpen)return;if((o.value?.selectedDates||[]).length===0&&u.value.length>0){const C=u.value.map(D=>g(D)),k=Array.isArray(i.modelValue)?i.modelValue:[];k.length===C.length&&k.every((D,x)=>D===C[x])||r("update:modelValue",C)}return}if(i.mode==="single"&&c.value){const S=A(c.value);S&&r("update:modelValue",S)}};return a.watch(()=>i.modelValue,S=>{d.value||v(S,o.value)},{deep:!0}),a.watch(()=>i.disabled,S=>{o.value?._input&&(o.value._input.disabled=S)}),a.onMounted(()=>{f()}),a.onBeforeUnmount(()=>{o.value&&o.value.destroy()}),e({datapicker:o}),(S,C)=>(a.openBlock(),a.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[a.createElementVNode("div",{class:a.normalizeClass({"not-valid":h.value.length})},[a.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:c.value,id:S.id,name:S.name,disabled:S.disabled,required:S.required,placeholder:S.placeholder,autocomplete:"off","data-input":"",onInput:M,onBlur:w},null,40,Kw)],2),l.value&&!S.disabled?(a.openBlock(),a.createElementBlock("a",{key:0,class:"remove-button text-dark flatpickr-reset-btn",onClick:b,"data-toggle":"",title:S.resetTitle},[...C[0]||(C[0]=[a.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Jw)):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"remove-button text-dark flatpickr-calendar-btn","data-toggle":"",title:S.calendarTitle},[...C[1]||(C[1]=[a.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,qw),a.createVNode(Si,{errors:h.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-3ee664b8"]]);function Zw(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([]),c=a.ref(!1),u=a.ref(r),d=a.ref(!1),h=a.ref(!1),m=a.computed(()=>o.value&&o.value.length>0&&o.value.length<s?`Введите минимум ${s} символа`:t),p=a.computed(()=>i);return{search:o,options:l,isSearchLoading:c,searchType:u,showSettings:d,isLoading:h,enterCharacterMessage:m,filteredSearchTypes:p,onSearch:w=>{o.value=w||"",w&&w.length>=s},onSelect:w=>{},clearSearch:()=>{o.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:w=>{l.value=w},setLoading:w=>{c.value=w},setGlobalLoading:w=>{h.value=w}}}const Xw=["disabled"],eC={key:1,class:"bi bi-three-dots-vertical"},tC=Ne(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:c,searchType:u,showSettings:d,isLoading:h,enterCharacterMessage:m,filteredSearchTypes:p,onSearch:g,onSelect:A,clearSearch:R,toggleSettings:v,hideSettings:f}=Zw(s),T=a.ref();a.computed(()=>i.options.length>0?i.options:l.value),a.computed(()=>i.isSearchLoading||c.value),a.computed(()=>i.isLoading||h.value);const b=k=>{const y=k||"";g(y),r("search",y,u.value)},M=k=>{A(k),r("select",k)},w=a.computed(()=>i.searchTypeName);a.watch(u,k=>{r("searchTypeChange",k),f()});const S=k=>{const y=k.target;C.value?.contains(y)||f()},C=a.ref();return a.onMounted(()=>{document.addEventListener("click",S)}),a.onUnmounted(()=>{document.removeEventListener("click",S)}),e({clearSearch:R,setOptions:k=>{l.value=k},setLoading:k=>{c.value=k},setGlobalLoading:k=>{h.value=k},focus:()=>{T.value?.$el?.querySelector("input")?.focus()}}),(k,y)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapperRef",ref:C,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(a.openBlock(),a.createBlock(Ht,{ref_key:"selectRef",ref:T,key:a.unref(u),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:a.unref(o),"onUpdate:modelValue":[y[0]||(y[0]=D=>a.isRef(o)?o.value=D:null),M],reduce:D=>D,options:k.options,placeholder:k.placeholder,onSearch:b,onBlur:a.unref(R),onFocus:a.unref(f),isLoading:k.isSearchLoading,hint:a.unref(m)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),a.createElementVNode("button",{class:"btn btn-light px-2",onClick:y[1]||(y[1]=(...D)=>a.unref(v)&&a.unref(v)(...D)),disabled:k.isLoading},[k.isLoading?(a.openBlock(),a.createBlock(In,{key:0,isSmall:!0})):(a.openBlock(),a.createElementBlock("i",eC))],8,Xw),a.unref(d)?(a.openBlock(),a.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:y[3]||(y[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(p),D=>(a.openBlock(),a.createElementBlock("li",{key:D.value,class:"setting-item"},[a.createVNode(gd,{name:w.value,label:D.label,modelValue:a.unref(u),"onUpdate:modelValue":y[2]||(y[2]=x=>a.isRef(u)?u.value=x:null),type:"radio",group:w.value,trueValue:D.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-d22a7d18"]]);function iC(n={}){const{loadCountries:e,loadRegions:t,loadDistricts:i,loadLocalities:r,loadStreets:s,countryKey:o="country_id",regionKey:l="region_id",districtKey:c="district_id",localityKey:u="locality_id",streetKey:d="street_id",houseKey:h="house",buildingKey:m="building",apartmentKey:p="apartment",countryLabel:g="Страна",regionLabel:A="Регион",districtLabel:R="Район",localityLabel:v="Населенный пункт",streetLabel:f="Улица",houseLabel:T="Дом",buildingLabel:b="Корпус",apartmentLabel:M="Квартира",columnWidth:w="12",prefix:S="",multiLocalities:C=!1,multiStreets:k=!1,showHouseFields:y=!0}=n,D=a.ref(!1),x=a.ref({}),O=a.ref(!1),I=a.ref(!1),j=a.ref(!1),U=a.ref(!1),V=a.ref(!1),H=a.ref(!1),q=a.ref([]),F=a.ref([]),N=a.ref([]),K=a.ref([]),z=a.ref([]),$=a.computed(()=>`${S}${o}`),te=a.computed(()=>`${S}${l}`),le=a.computed(()=>`${S}${c}`),ce=a.computed(()=>`${S}${u}`),Y=a.computed(()=>`${S}${d}`),ie=a.computed(()=>`${S}${h}`),Z=a.computed(()=>`${S}${m}`),Q=a.computed(()=>`${S}${p}`),P=a.computed(()=>({country:g,region:A,district:R,locality:v,street:f,house:T,building:b,apartment:M})),J=async()=>{if(e){I.value=!0;try{q.value=await e()}finally{I.value=!1}}},ee=async ge=>{if(t){j.value=!0;try{F.value=await t(ge)}finally{j.value=!1}}},be=async ge=>{if(i){U.value=!0;try{N.value=await i(ge)}finally{U.value=!1}}},we=async ge=>{if(r){V.value=!0;try{K.value=await r(ge)}finally{V.value=!1}}},Ae=async ge=>{if(s){H.value=!0;try{z.value=await s(ge)}finally{H.value=!1}}},Fe=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[$.value]:ge};x.value=L;return}const E={...x.value,[$.value]:ge,[te.value]:null,[le.value]:null,[ce.value]:null,[Y.value]:null,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E,F.value=[],N.value=[],K.value=[],z.value=[]},_e=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[te.value]:ge};x.value=L;return}const E={...x.value,[te.value]:ge,[le.value]:null,[ce.value]:null,[Y.value]:null,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E,N.value=[],K.value=[],z.value=[]},Ie=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[le.value]:ge};x.value=L;return}const E={...x.value,[le.value]:ge,[ce.value]:null,[Y.value]:null,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E},de=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[ce.value]:ge};x.value=L;return}const E={...x.value,[ce.value]:ge,[Y.value]:null,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E,z.value=[]},X=async ge=>{D.value||(Fe(ge),ge&&await ee(ge))},re=async ge=>{D.value||(_e(ge),ge&&(await be(ge),await we(ge)))},me=async ge=>{if(!D.value){if(Ie(ge),!ge){const B=x.value[te.value];B&&await re(B);return}await we(ge)}},he=async ge=>{D.value||(de(ge),ge&&await Ae(ge))},Se=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[Y.value]:ge};x.value=L;return}const E={...x.value,[Y.value]:ge,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E},Me=ge=>{const B=ge.target,E={...x.value,[ie.value]:B.value};x.value=E},oe=ge=>{const B=ge.target,E={...x.value,[Z.value]:B.value};x.value=E},Re=ge=>{const B=ge.target,E={...x.value,[Q.value]:B.value};x.value=E},Oe=async(ge,B)=>{Object.assign(x.value,ge)},et=async(ge,B)=>{D.value=!0;const E=ge[$.value],L=ge[te.value],_=ge[le.value],G=ge[ce.value];ge[Y.value];try{e&&await J(),t&&(L||E||B)&&await ee(E||B),i&&L&&await be(L),r&&_?await we(_):r&&L&&await we(L),s&&G&&await Ae(G),Object.assign(x.value,ge)}catch(se){console.error("❌ Error during auto-fill (skip reset mode):",se)}finally{a.nextTick(()=>{D.value=!1})}},je=a.computed(()=>{const ge=x.value[$.value];return ge&&q.value.find(E=>String(E.id)===String(ge))?.label||""}),xt=a.computed(()=>{const ge=x.value[te.value];return ge&&F.value.find(E=>String(E.id)===String(ge))?.label||""}),At=a.computed(()=>{const ge=x.value[le.value];return ge&&N.value.find(B=>String(B.id)===String(ge))?.label||""}),Ge=a.computed(()=>{const ge=x.value[ce.value];return ge&&K.value.find(B=>String(B.id)===String(ge))?.label||""}),ne=a.computed(()=>{const ge=x.value[Y.value];return ge&&z.value.find(E=>String(E.id)===String(ge))?.label||""}),ae=a.computed(()=>{const ge=x.value[ie.value];return ge?`${T} ${ge}`:""}),Pe=a.computed(()=>{const ge=x.value[Z.value];return ge?`${b} ${ge}`:""}),ze=a.computed(()=>{const ge=x.value[Q.value];return ge?`${M} ${ge}`:""}),Le=a.computed(()=>[je.value,xt.value,At.value,Ge.value,ne.value,ae.value,Pe.value,ze.value].filter(Boolean).join(", ")),xe=a.computed(()=>{const ge=x.value[ce.value];return Array.isArray(ge)?ge.length>1:!1}),ut=a.computed(()=>k?!1:y);return{modelValue:x,isLoading:O,isCountryLoading:I,isRegionLoading:j,isDistrictLoading:U,isLocalityLoading:V,isStreetLoading:H,countryOptions:q,regionOptions:F,districtOptions:N,localityOptions:K,streetOptions:z,finalCountryKey:$,finalRegionKey:te,finalDistrictKey:le,finalLocalityKey:ce,finalStreetKey:Y,finalHouseKey:ie,finalBuildingKey:Z,finalApartmentKey:Q,labels:P,selectedCountryLabel:je,selectedRegionLabel:xt,selectedDistrictLabel:At,selectedLocalityLabel:Ge,selectedStreetLabel:ne,selectedHouseLabel:ae,selectedBuildingLabel:Pe,selectedApartmentLabel:ze,fullAddress:Le,isMultiLocalitiesSelected:xe,shouldShowHouseFields:ut,loadCountryOptions:J,loadRegionOptions:ee,loadDistrictOptions:be,loadLocalityOptions:we,loadStreetOptions:Ae,onCountrySelect:X,onRegionSelect:re,onDistrictSelect:me,onLocalitySelect:he,onStreetSelect:Se,onHouseInput:Me,onBuildingInput:oe,onApartmentInput:Re,resetFieldsByCountry:Fe,resetFieldsByRegion:_e,resetFieldsByDistrict:Ie,resetFieldsByLocality:de,autoFillForm:Oe,autoFillFormSkipReset:et}}const nC={class:"address-form"},rC={class:"row"},sC={class:"form-label"},aC={class:"form-label"},oC={class:"form-label"},lC={class:"form-label"},cC={class:"form-label"},uC={class:"form-label"},dC=["value","disabled"],hC={class:"form-label"},fC=["value","disabled"],pC={class:"form-label"},mC=["value","disabled"],gC={key:0,class:"mt-3"},bC={class:"alert alert-info"},vC=Ne(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:c,isDistrictLoading:u,isLocalityLoading:d,isStreetLoading:h,countryOptions:m,regionOptions:p,districtOptions:g,localityOptions:A,streetOptions:R,finalCountryKey:v,finalRegionKey:f,finalDistrictKey:T,finalLocalityKey:b,finalStreetKey:M,finalHouseKey:w,finalBuildingKey:S,finalApartmentKey:C,labels:k,selectedCountryLabel:y,selectedRegionLabel:D,selectedDistrictLabel:x,selectedLocalityLabel:O,selectedStreetLabel:I,selectedHouseLabel:j,selectedBuildingLabel:U,selectedApartmentLabel:V,fullAddress:H,isMultiLocalitiesSelected:q,shouldShowHouseFields:F,loadCountryOptions:N,loadRegionOptions:K,onCountrySelect:z,onRegionSelect:$,onDistrictSelect:te,onLocalitySelect:le,onStreetSelect:ce,onHouseInput:Y,onBuildingInput:ie,onApartmentInput:Z,autoFillForm:Q,autoFillFormSkipReset:P}=iC(s);let J=!1,ee=!1,be=!1;const we=(oe,Re)=>{if(oe===Re)return!0;if(!oe||!Re||typeof oe!="object"||typeof Re!="object")return!1;const Oe=Object.keys(oe),et=Object.keys(Re);if(Oe.length!==et.length)return!1;for(const je of Oe)if(oe[je]!==Re[je])return!1;return!0};a.watch(()=>i.modelValue,async oe=>{if(J||ee||be||we(o.value,oe))return;if(oe&&(oe[v.value]||oe[f.value]||oe[T.value]||oe[b.value]||oe[M.value])){if(!ee){ee=!0;try{await P(oe,i.countryId)}catch(Oe){console.error("❌ Error during auto-fill:",Oe)}finally{ee=!1}}}else o.value={...oe}},{immediate:!0,deep:!0}),a.watch(o,oe=>{be||ee||we(i.modelValue,oe)||(J=!0,be=!0,r("update:modelValue",{...oe}),r("change",{...oe}),a.nextTick(()=>{J=!1,be=!1}))},{deep:!0});let Ae=!1;a.watch(()=>i.countryId,async(oe,Re)=>{if(!Ae&&!ee&&oe!=null&&i.loadRegions){if(oe!==Re){const Oe={...o.value,[f.value]:null,[T.value]:null,[b.value]:null,[M.value]:null,[w.value]:null,[S.value]:null,[C.value]:null};o.value=Oe}try{Ae=!0,await K(oe)}catch(Oe){console.error("❌ AddressForm: Error loading regions",Oe)}finally{Ae=!1}}},{immediate:!0});const Fe=async oe=>{await z(oe),r("countryChange",oe)},_e=async oe=>{await $(oe),r("regionChange",oe)},Ie=async oe=>{await te(oe),r("districtChange",oe)},de=async oe=>{await le(oe),r("localityChange",oe)},X=oe=>{ce(oe),r("streetChange",oe)},re=oe=>{Y(oe)},me=oe=>{ie(oe)},he=oe=>{Z(oe)},Se=a.computed(()=>{if(!i.multiLocalities)return!1;const oe=o.value[M.value];return!Array.isArray(oe)||oe?.length<2});function Me(){return[y.value,D.value,x.value,O.value,I.value,j.value,U.value,V.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(()=>V.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(()=>O.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>x.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>D.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>y.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.onMounted(async()=>{i.loadCountries&&await N()}),e({loadRegionOptions:K,loadCountryOptions:N,resetForm:()=>{o.value={},m.value=[],p.value=[],g.value=[],A.value=[],R.value=[],r("update:modelValue",{}),i.loadCountries&&N()},getFullAddress:()=>H.value,getValue:()=>Me(),autoFillForm:async oe=>{ee=!0;try{await Q(oe)}finally{ee=!1}},autoFillFormSkipReset:async oe=>{ee=!0;try{await P(oe,i.countryId)}finally{ee=!1}}}),(oe,Re)=>(a.openBlock(),a.createElementBlock("div",nC,[a.createElementVNode("div",rC,[oe.loadCountries?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",sC,a.toDisplayString(a.unref(k).country),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(v)],options:a.unref(m),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",aC,a.toDisplayString(a.unref(k).region),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(f)],options:a.unref(p),disabled:oe.disabledFields?.region||a.unref(c),"onUpdate:modelValue":_e,allowClear:oe.allowClear?.region,isLoading:a.unref(c)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",oC,a.toDisplayString(a.unref(k).district),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(T)],disabled:oe.disabledFields?.district||a.unref(u),options:a.unref(g),"onUpdate:modelValue":Ie,allowClear:oe.allowClear?.district,isLoading:a.unref(u)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",lC,a.toDisplayString(a.unref(k).locality),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(b)],disabled:oe.disabledFields?.locality||a.unref(d),"onUpdate:modelValue":de,options:a.unref(A),name:a.unref(b),showAddButton:Se.value,isLoading:a.unref(d),multiple:oe.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),a.unref(q)?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",cC,a.toDisplayString(a.unref(k).street),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(M)],disabled:oe.disabledFields?.street||a.unref(h),options:a.unref(R),"onUpdate:modelValue":X,allowClear:oe.allowClear?.street,isLoading:a.unref(h),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",uC,a.toDisplayString(a.unref(k).house),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(w)]||"",disabled:oe.disabledFields?.house,onInput:re},null,40,dC)],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",hC,a.toDisplayString(a.unref(k).building),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(S)]||"",disabled:oe.disabledFields?.building,onInput:me},null,40,fC)],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",pC,a.toDisplayString(a.unref(k).apartment),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(C)]||"",disabled:oe.disabledFields?.apartment,onInput:he},null,40,mC)],2)):a.createCommentVNode("",!0)],64))]),oe.showFullAddress&&a.unref(H)?(a.openBlock(),a.createElementBlock("div",gC,[a.createElementVNode("div",bC,[Re[0]||(Re[0]=a.createElementVNode("strong",null,"Полный адрес:",-1)),a.createTextVNode(" "+a.toDisplayString(a.unref(H)),1)])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-dfe07190"]]),yC={class:"age-from-to-form"},wC={class:"form-group"},CC={key:0,class:"form-label mb-2"},AC={class:"row align-items-center mb-2"},EC={key:0,class:"col-auto"},kC={class:"form-label mb-0"},SC={class:"col"},RC={class:"col"},xC={class:"row align-items-center mb-2"},MC={key:0,class:"col-auto"},TC={class:"form-label mb-0"},DC={class:"col"},LC={class:"col"},OC=Ne(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}),c=a.computed(()=>r.timeTypeOptions!==void 0&&r.timeTypeOptions!==null?r.timeTypeOptions:i),u=a.computed(()=>r.placeholderFrom??null),d=a.computed(()=>r.placeholderTo??null),h=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}),m=a.computed(()=>{const f=l.value.age_from;if(!f)return null;const T=l.value.time_type_from,b=c.value.find(({id:M})=>Number(M)===Number(T))?.label;return b?`${f} ${b}`:null}),p=a.computed(()=>{const f=l.value.age_to;if(!f)return null;const T=l.value.time_type_to,b=c.value.find(({id:M})=>Number(M)===Number(T))?.label;return b?`${f} ${b}`:null}),g=()=>{l.value={...o}},A=()=>{r.onFilterUpdate&&(r.onFilterUpdate(r.nameFrom,m.value),r.onFilterUpdate(r.nameTo,p.value))},R=f=>{if(!f.age_from&&!f.age_to&&!f.time_type_from&&!f.time_type_to){s("update:modelValue",null),s("change",{...o}),A();return}const b=[];f.age_from&&f.time_type_from&&b.push(`age_from[time_type]=${f.time_type_from}&age_from[value]=${f.age_from}`),f.age_to&&f.time_type_to&&b.push(`age_to[time_type]=${f.time_type_to}&age_to[value]=${f.age_to}`);const M=b.length>0?b.join("&")+"&":"";s("update:modelValue",M||null),s("change",{...f}),A()},v=f=>{if(f)try{const T=new URLSearchParams(f),b=T.get("age_from[value]"),M=T.get("age_from[time_type]"),w=T.get("age_to[value]"),S=T.get("age_to[time_type]");l.value={age_from:b?Number(b):null,age_to:w?Number(w):null,time_type_from:M?Number(M):null,time_type_to:S?Number(S):null}}catch(T){console.warn("Error parsing query string:",T)}};return a.watch(()=>r.modelValue,(f,T)=>{f!==T&&(f===null?g():v(f))},{immediate:!0}),a.watch(()=>l.value,f=>{R(f)},{deep:!0}),a.onMounted(()=>{r.modelValue&&v(r.modelValue)}),e({reset:g,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:m.value,to:p.value})}),(f,T)=>(a.openBlock(),a.createElementBlock("div",yC,[a.createElementVNode("div",wC,[f.title?(a.openBlock(),a.createElementBlock("label",CC,a.toDisplayString(f.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",AC,[u.value?(a.openBlock(),a.createElementBlock("div",EC,[a.createElementVNode("label",kC,a.toDisplayString(u.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",SC,[a.createVNode(br,{modelValue:l.value.age_from,"onUpdate:modelValue":T[0]||(T[0]=b=>l.value.age_from=b),name:f.nameFrom,maskOptions:{regex:"^[0-9]*$"},disabled:f.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",RC,[a.createVNode(Ht,{modelValue:l.value.time_type_from,"onUpdate:modelValue":T[1]||(T[1]=b=>l.value.time_type_from=b),name:`${f.nameFrom}_type`,multiple:!1,options:c.value,allowClear:!1,disabled:f.disabled,placeholder:h.value},null,8,["modelValue","name","options","disabled","placeholder"])])]),a.createElementVNode("div",xC,[d.value?(a.openBlock(),a.createElementBlock("div",MC,[a.createElementVNode("label",TC,a.toDisplayString(d.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",DC,[a.createVNode(br,{modelValue:l.value.age_to,"onUpdate:modelValue":T[2]||(T[2]=b=>l.value.age_to=b),name:f.nameTo,maskOptions:{regex:"^[0-9]*$"},disabled:f.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",LC,[a.createVNode(Ht,{modelValue:l.value.time_type_to,"onUpdate:modelValue":T[3]||(T[3]=b=>l.value.time_type_to=b),name:`${f.nameTo}_type`,multiple:!1,options:c.value,allowClear:!1,disabled:f.disabled,placeholder:h.value},null,8,["modelValue","name","options","disabled","placeholder"])])])])]))}}),[["__scopeId","data-v-37fca95f"]]),BC={class:"modal-header pb-4 border-bottom-0"},FC={key:0,class:"modal-title"},_C={key:0,class:"modal-body pt-0"},PC={class:"modal-body-content"},NC={key:1,class:"modal-footer row justify-content-start"},IC={class:"modal-footer-content"},Ed=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:""},fullscreen:{type:Boolean,default:!1},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=g=>{g.key==="Escape"&&s()},l=a.computed(()=>t.modelValue||t.modalVisibility);let c=0,u=!1;const d=()=>{if(c>0){document.body.style.overflow="hidden";return}document.body.style.overflow=""},h=()=>{u||(window.addEventListener("keydown",o),u=!0)},m=()=>{u&&(window.removeEventListener("keydown",o),u=!1)},p=(g,A)=>{if(g&&!A){c+=1,c===1&&h(),d();return}!g&&A&&(c=Math.max(0,c-1),c===0&&m(),d())};return a.watch(l,p,{immediate:!0}),a.onUnmounted(()=>{l.value&&(c=Math.max(0,c-1)),c===0&&m(),d()}),(g,A)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["r3ui-modal-wrapper",{"r3ui-modal-wrapper--fullscreen":n.fullscreen}])},[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&&!n.fullscreen,"modal-sm":n.size==="sm"&&!n.fullscreen,"modal-lg":n.size==="lg"&&!n.fullscreen,"modal-xl":n.size==="xl"&&!n.fullscreen}])},[a.createElementVNode("div",{class:"modal-content p-4",style:a.normalizeStyle(n.style)},[a.createElementVNode("div",BC,[n.title?(a.openBlock(),a.createElementBlock("h4",FC,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",_C,[a.createElementVNode("div",PC,[a.renderSlot(g.$slots,"modal-body"),a.renderSlot(g.$slots,"body")])])):a.createCommentVNode("",!0),a.unref(r)["modal-footer"]||a.unref(r).footer?(a.openBlock(),a.createElementBlock("div",NC,[a.createElementVNode("div",IC,[a.renderSlot(g.$slots,"modal-footer"),a.renderSlot(g.$slots,"footer")])])):a.createCommentVNode("",!0)],4)],2)],2)):a.createCommentVNode("",!0)]))}}),VC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCC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U447IK5sy4aMtpQl9DWIDFnA5TRKtxgsAqs4m5nlYLIkSeGZexeW5ppq2rYF0QFlaLLnk2OQAnCQy8FHkwkxN9ANOqEcNc1bjhxapLQCDqln+HCj7eEfpuHM9YSxVFojH85BCcJrCKjyInJrydfQhiD81z1Tx0X1p1yYS0Gl4n9eENL1kdzN++J5iPQ3Vx5rIsVRQZa6vIYThVYJViilizrysfxspY/2w6hwTluNhiYD8KIBMukqWy4qv708gQhCQyyDOCVBTIVtAFQVWqyKHCJhs4mlqulAtKkW0u+BngFftIwB31Msy1ZL2oW6LfW1fWV7twehfdGXjQvmh5gHRmRO8EeOs4WV8R/drQGSG7SGaBWdS7nFC8FLlXol/0637U0fIaNAUCXoy+ovgpSQUVCAQCgUAgEAgEAoFAIBAIBAKBQCDgytcDGZ2xDzhdwgAAAABJRU5ErkJggg==",WC={class:"row mb-3 flex-column mx-0"},UC={class:"col-auto mb-3"},GC={class:"image-container",style:{width:"90px",height:"90px"}},YC=["src","alt"],QC=["src"],KC=["src"],JC=["src"],qC=["src"],$C={class:"col"},ZC={class:"confirmation-content"},XC={key:0,class:"mb-3"},eA={key:1,class:"text-muted"},tA={key:0,class:"row"},iA={class:"col-auto"},nA=["disabled"],rA={class:"col"},sA=["disabled"],aA={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},oA=Ne(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")},c=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},u=d=>{console.warn("Failed to load image:",d.target.src)};return(d,h)=>(a.openBlock(),a.createBlock(Ed,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":a.withCtx(()=>[a.createElementVNode("div",WC,[a.createElementVNode("div",UC,[a.createElementVNode("div",GC,[d.imageSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,YC)):d.mode==="success"?(a.openBlock(),a.createElementBlock("img",{key:1,class:"w-100",src:a.unref(jC),alt:"Успех",onError:u},null,40,QC)):d.mode==="warning"?(a.openBlock(),a.createElementBlock("img",{key:2,class:"w-100",src:a.unref(zC),alt:"Предупреждение",onError:u},null,40,KC)):d.mode==="error"?(a.openBlock(),a.createElementBlock("img",{key:3,class:"w-100",src:a.unref(HC),alt:"Ошибка",onError:u},null,40,JC)):(a.openBlock(),a.createElementBlock("img",{key:4,class:"w-100",src:a.unref(VC),alt:"Подтверждение",onError:u},null,40,qC))])]),a.createElementVNode("div",$C,[a.createElementVNode("div",ZC,[d.message?(a.openBlock(),a.createElementBlock("h5",XC,a.toDisplayString(d.message),1)):a.createCommentVNode("",!0),d.description?(a.openBlock(),a.createElementBlock("p",eA,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",tA,[a.createElementVNode("div",iA,[d.mode==="confirmation"?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light",onClick:c,disabled:d.loading},a.toDisplayString(d.cancelText),9,nA)):a.createCommentVNode("",!0)]),a.createElementVNode("div",rA,[a.createElementVNode("button",{class:a.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(a.openBlock(),a.createElementBlock("span",aA)):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o()),1)],10,sA)])])):a.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),lA={key:0,class:"filter-modal-wrapper"},cA={class:"filter-modal-dialog"},uA={class:"filter-modal-content"},dA={class:"filter-modal-header"},hA={key:0,class:"filter-modal-title"},fA={class:"filter-modal-body"},pA={class:"filter-modal-footer"},kd=Ne(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",lA,[a.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),a.createElementVNode("div",cA,[a.createElementVNode("div",uA,[a.createElementVNode("div",dA,[o.title?(a.openBlock(),a.createElementBlock("h4",hA,a.toDisplayString(o.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),a.createElementVNode("div",fA,[a.renderSlot(o.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",pA,[a.renderSlot(o.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),Ko=Symbol("r3uiTableDefaultApi"),Jo=Symbol("setFilterParamsStrings"),qo=Symbol("selectedFilterTitles"),$o=Symbol("tableFilters"),Zo=Symbol("filterModalVisibility"),Xo=Symbol("resetFilters"),el=Symbol("applyFilters"),Sd=Symbol("editTableColumnsModalVisibility"),Rd=Symbol("tableOptions"),xd=Symbol("editTableColumnVisibility"),Md=Symbol("isTableCoumnsHidden"),Td=Symbol("unselectAllTableColumnCheckboxes"),Dd=Symbol("selectAllTableColumnCheckboxes"),Ld=Symbol("handleColumnsChanged"),Od=Symbol("handleColumnsApply"),tl=Symbol("table");function Bd(){const n=a.inject(Ko,null);if(n)return n;const e=a.inject(Zo,null)??a.inject("filterModalVisibility"),t=a.inject(qo,null)??a.inject("selectedFilterTitles"),i=a.inject(Jo,null)??a.inject("setFilterParamsStrings"),r=a.inject(el,null)??a.inject("applyFilters"),s=a.inject(Xo,null)??a.inject("resetFilters"),o=a.inject($o,null)??a.inject("tableFilters"),l=a.inject(tl,null)??a.inject("table");if(!e||!t||!i||!r||!s||!o||!l)throw new Error("useR3uiTableDefaultInject: контекст useTableDefault не найден");const c={filterModalVisibility:e,selectedFilterTitles:t,setFilterParamsStrings:i,applyFilters:r,resetFilters:s,tableFilters:o,table:l};return a.provide(Ko,c),c}const mA={class:"row"},gA={class:"col-auto"},bA={class:"col-auto ps-0"},vA=a.defineComponent({__name:"TableFilterModalShell",props:{filterLabel:{default:"Filters"},applyLabel:{default:"Apply"},resetLabel:{default:"Reset"},modalTitle:{default:"Filters"}},emits:["reset"],setup(n,{emit:e}){const t=n,{filterModalVisibility:i,applyFilters:r,resetFilters:s,table:o}=Bd(),l=e;function c(){s?.(),l("reset")}function u(){const d=o?.value!==void 0?o.value:o;r?.(d),i.value=!1}return(d,h)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(Bi,{styles:"light",label:t.filterLabel,icon:"sliders2","icon-position":"right",onSubmit:h[0]||(h[0]=m=>i.value=!0)},null,8,["label"]),a.createVNode(kd,{title:t.modalTitle,"modal-visibility":a.unref(i),onEmitModalVisibility:h[1]||(h[1]=m=>i.value=m)},{"modal-body":a.withCtx(()=>[a.renderSlot(d.$slots,"fields")]),"modal-footer":a.withCtx(()=>[a.renderSlot(d.$slots,"footer",{reset:c,apply:u},()=>[a.createElementVNode("div",mA,[a.createElementVNode("div",gA,[a.createVNode(Bi,{label:t.applyLabel,onSubmit:u},null,8,["label"])]),a.createElementVNode("div",bA,[a.createVNode(Bi,{styles:"light",label:t.resetLabel,icon:"x-lg","icon-position":"right",onSubmit:c},null,8,["label"])])])])]),_:3},8,["title","modal-visibility"])],64))}}),yA={key:0,class:"px-0"},wA={class:"modal-dialog modal-dialog-centered modal-xl"},CA={class:"modal-content py-2 px-4"},AA={class:"modal-header mb-3"},EA={class:"modal-title"},kA={class:"modal-body row"},SA={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Fd=Ne(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",yA,[a.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),a.createElementVNode("div",wA,[a.createElementVNode("div",CA,[a.createElementVNode("div",AA,[a.createElementVNode("h3",EA,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",kA,[a.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",SA,[a.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),RA={class:"row mb-4 mx-0","data-test":"PageTitle"},xA={class:"col-12"},MA={class:"row align-items-center"},TA={class:"col-auto"},DA={class:"col d-flex justify-content-end"},LA=Ne(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",RA,[a.createElementVNode("div",xA,[a.createElementVNode("div",MA,[a.createElementVNode("div",TA,[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",DA,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),OA={class:"card-body"},BA={class:"card-text"},FA=Ne({__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",OA,[a.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),a.createElementVNode("p",BA,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),_A={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},PA=a.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("footer",_A,a.toDisplayString(e.copyrightText)+" "+a.toDisplayString(a.unref(Ee)().year()),1))}}),NA={class:"custom-dropdown"},IA={style:{"border-bottom":"2px solid #000"}},VA={class:"dropdown-list-wrapper"},HA={key:0,class:"custom-dropdown-menu"},zA=["disabled","onClick","onKeydown"],il=Ne({__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,c)=>(a.openBlock(),a.createElementBlock("div",NA,[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},[c[1]||(c[1]=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",IA,a.toDisplayString(n.title),1),c[2]||(c[2]=a.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-inline-start":"5px"}},null,-1))],32)),a.createElementVNode("div",VA,[t.value?(a.openBlock(),a.createElementBlock("ul",HA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.links,(u,d)=>(a.openBlock(),a.createElementBlock("li",{key:d},[u.hidden?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:a.normalizeClass(["dropdown-item",{disabled:u?.disabled}]),disabled:!!u?.disabled,onMousedown:c[0]||(c[0]=a.withModifiers(()=>{},["prevent"])),onClick:h=>r(u?.action),onKeydown:[a.withKeys(a.withModifiers(h=>r(u?.action),["prevent"]),["enter"]),a.withKeys(a.withModifiers(h=>r(u?.action),["prevent"]),["space"])]},a.toDisplayString(u?.title),43,zA))]))),128))])):a.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-93106856"]]),jA="data:image/svg+xml,%3csvg%20width='222'%20height='72'%20viewBox='0%200%20222%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='222'%20height='72'%20fill='url(%23pattern0)'/%3e%3cdefs%3e%3cpattern%20id='pattern0'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_3427_23538'%20transform='matrix(0.00490002%200%200%200.0151084%200%20-0.00125339)'/%3e%3c/pattern%3e%3cimage%20id='image0_3427_23538'%20width='205'%20height='59'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAA7CAYAAADYdw5tAAAQ9UlEQVR4nO1dzW7bSLb+DinJns69uOzF4CodIKMM0EkHdxFl0YAjqhFmN7s4TxD5CaJ+AstPEPsJojxBO08QGonkAFlYvRh42hlMGDQa7eAuWsHt221bYp1ZsKSQxSJFWf6Lmh+ghSiqeETVV3XOd04VCTk+KTiOYw0Gg3VmZsMwnr58+dI9b5v+aKDzNiDH8VCr1VaJqMXMHhG1Op3O0/O26Y+CnDSfMGq1WoOIHgOwmNkTQtx79eqVd952zTty0nzicBynMhgMngOoyEPrxWJxzXXd/nnaNc/ISTMHkMT5DkAVAJjZA/Cg2+32ztey+YRx3gbkmB2u63rFYvEegB4AEFGFiHbq9XrrnE2bS+QzzRxBzjg7AKzQ4fVOp/Ptedk0j8hJM2f45ptvloUQ34WPMfNmqVRayeOck0Huns0ZXrx4sQkgQg4iWpYxT44TQE6a+cSm5phj2/bjM7dkDpGTZj5RSTjerNfrzplaMofISTNncBynAiCRGMy8eobmzCVy0swRQonO1NO+/vrr6pkYNKfISTMnsG27KeXmJNdsjFKpdOsMTJpbFM7bgBzHh+M41uHh4UPDMJrIQJYRhBB5fdoMyEnziWFpaalCRPcNw1geDAZVwzCsyd+KYH17e3vrVIz7gyBPbl5gOI5jDYfDqu/7t4ioSkQOpphRFPSZeb3b7a6dpI1/ROSkuSCo1WpVZr4ryVFFQI5pZxEVfQA9IcTmwsLC07wi4GSQk+YcUa/XHWa+D6CB2QkCAB4z95jZBdDL3bDTQU6ac4AkyypS8ikZMCYIEXmlUmkrn0nOBjlpzhAyj/IExyNLH0AbQI+Z3W63++5krcuRFTlpzgi2bTcBrGJ6N8wVQrRyV+viICfNGaBer7eOUb7i+r6/kq/5v3jISXPKmJYwzOwxcyOfWS4uY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iUL7eQilzwT9+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",WA=["src","alt"],_d=Ne(a.defineComponent({__name:"Logo",props:{src:{default:jA},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,c)=>(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,WA),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"]]),UA={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},GA={class:"row align-items-center"},YA={class:"col-auto pe-0"},QA={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},KA={class:"row"},JA={class:"col-auto d-flex align-items-center"},qA={key:1,class:"text-muted"},$A={class:"col-auto"},ZA=Ne(a.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:s.name.includes("http")?{...s,action:()=>i("navigate",s.name,{external:!0})}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,o)=>(a.openBlock(),a.createElementBlock("div",UA,[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",GA,[a.createElementVNode("div",YA,[a.renderSlot(s.$slots,"logo",{},()=>[a.createVNode(_d,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),a.createElementVNode("div",QA,a.toDisplayString(t.brandText),1)])]),a.createElementVNode("div",KA,[a.createElementVNode("div",JA,[t.isAuthenticated?(a.openBlock(),a.createBlock(il,{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",qA,a.toDisplayString(t.loginText),1))]),a.createElementVNode("div",$A,[a.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-a63a7e7f"]]),XA={class:"col-12 divider divider__wrapper","data-test":"Divider"},nl={__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",XA,[a.createElementVNode("div",{class:a.normalizeClass(e.className),style:a.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},rl=Symbol("expandAccordion"),sl=Symbol("expandedAccordion"),al=Symbol("sidebarContentVisibility"),ol=Symbol("toggleSidebar"),Pd=Symbol("showSpinner"),Nd=Symbol("hideSpinner"),Id=Symbol("addToLocalStorage");function ll(){return a.inject(rl,null)??a.inject("expandAccordion")}function cl(){return a.inject(sl,null)??a.inject("expandedAccordion")}function Vd(){return a.inject(al,null)??a.inject("sidebarContentVisibility")}function Hd(){return a.inject(ol,null)??a.inject("toggleSidebar")}function eE(){return a.inject(Pd,null)??a.inject("showSpinner")}function tE(){return a.inject(Nd,null)??a.inject("hideSpinner")}function iE(){return a.inject(Id,null)??a.inject("addToLocalStorage")}const nE=n=>{const e=Vd(),t=Hd(),i=a.ref({}),r=(l,c)=>{i.value[c]===l?i.value[c]=null:i.value[c]=l},s=a.computed(()=>n.value),o=()=>{if(i.value={},!e?.value)return;const l=c=>{c.childrens?.length&&c.childrens.forEach(l),c.isActive&&c.uniqueKey&&r(c.uniqueKey,c.level)};n.value.forEach(l)};return a.provide(rl,r),a.provide("expandAccordion",r),a.provide(sl,i),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}},rE={key:0},sE=["href","target","rel"],aE=["innerHTML"],oE={key:1},lE=["id"],cE=["innerHTML"],uE=["id"],dE={class:"accordion-body"},zd=Ne(a.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=ll(),r=cl(),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 c=a.resolveComponent("SidebarLink",!0);return a.openBlock(),a.createElementBlock("div",null,[n.sidebarLink.childrens?.length?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",rE,[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?"sidebar-link-icon":""])},null,10,aE),a.createElementVNode("span",null,a.toDisplayString(n.sidebarLink.label),1)],2)):a.createCommentVNode("",!0)],8,sE)])),n.sidebarLink.childrens?.length?(a.openBlock(),a.createElementBlock("div",oE,[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]=u=>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?"sidebar-link-icon":""])},null,10,cE),a.createTextVNode(" "+a.toDisplayString(n.sidebarLink.label),1)],2)],8,lE),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",dE,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.sidebarLink.childrens,u=>(a.openBlock(),a.createElementBlock("li",{key:u.uniqueKey},[a.createVNode(c,{sidebarLink:u,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,uE)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-859907dd"]]),hE={key:0},fE={key:0},pE=["title"],mE=["innerHTML"],gE={key:1},bE={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},vE={class:"hidden-div"},yE={key:1},wE=["href","target","rel"],CE=["title"],AE=["innerHTML"],EE={key:0,class:"ms-2"},kE={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},SE={key:0,class:"ms-2"},jd=Ne(a.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=ll(),r=cl(),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 c=a.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(a.openBlock(),a.createElementBlock("div",hE,[n.link.childrens?.length?(a.openBlock(),a.createElementBlock("div",fE,[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]=u=>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,mE)):(a.openBlock(),a.createElementBlock("span",gE,a.toDisplayString(n.link.label),1))],10,pE),a.unref(r)&&a.unref(r)[n.link.level]===n.link.uniqueKey?(a.openBlock(),a.createElementBlock("div",bE,[a.createElementVNode("div",vE,[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,u=>(a.openBlock(),a.createElementBlock("li",{class:"mb-0",key:u.uniqueKey},[a.createVNode(c,{link:u,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",yE,[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,AE),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",EE,"↗")):a.createCommentVNode("",!0)],8,CE)):(a.openBlock(),a.createElementBlock("button",kE,[a.createElementVNode("span",null,a.toDisplayString(n.link.label),1),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",SE,"↗")):a.createCommentVNode("",!0)]))],8,wE)]))])):a.createCommentVNode("",!0)}}}),[["__scopeId","data-v-f180b3df"]]),RE={key:0},xE={class:"accordion accordion-flush",id:"accordionMenu"},ME={key:1},TE={class:"row"},DE={class:"col-12"},LE={class:"sidebar-footer p-3"},Wd=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}=nE(a.computed(()=>t.links));return(l,c)=>(a.openBlock(),a.createElementBlock("div",{id:"sidebarContent",class:a.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(a.openBlock(),a.createElementBlock("div",RE,[a.createElementVNode("div",xE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),u=>(a.openBlock(),a.createElementBlock("div",{key:u.uniqueKey},[a.createVNode(zd,{sidebarLink:u,onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",ME,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),u=>(a.openBlock(),a.createElementBlock("div",{key:u.uniqueKey},[a.createVNode(jd,{link:u,onNavigate:c[1]||(c[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),a.createElementVNode("div",TE,[a.createElementVNode("div",DE,[a.createVNode(nl)])]),a.createElementVNode("div",LE,[a.renderSlot(l.$slots,"footer")])],2))}}),OE=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()},c=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():o()},u=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,h=r.value||0;if(d>0&&h>0){const m=window.innerWidth<768;i.value=m?d:d-h-20}},50)};return a.provide(al,e),a.provide("sidebarContentVisibility",e),a.provide(ol,l),a.provide("toggleSidebar",l),a.watch(r,()=>{u()},{deep:!0}),a.onMounted(()=>{c(),u(),window.addEventListener("resize",u,!0)}),a.onBeforeUnmount(()=>{window.removeEventListener("resize",u,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},BE={class:"container-fluid p-0"},FE={class:"py-4",style:{"min-height":"90vh"}},_E=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}=OE(a.computed(()=>t.isAuthenticated));return(c,u)=>(a.openBlock(),a.createElementBlock("div",BE,[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(Wd,{links:t.sidebarLinks,"is-collapsed":!a.unref(l),onNavigate:u[0]||(u[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",FE,[a.renderSlot(c.$slots,"breadcrumbs"),a.renderSlot(c.$slots,"default")])],4)],2)]))}}),PE={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},NE={class:"col"},IE={"aria-label":"breadcrumb"},VE={class:"breadcrumb row"},HE=["aria-current"],zE=["href","onClick"],jE={key:1,class:"text-nowrap"},WE=Ne(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",PE,[a.createElementVNode("div",NE,[a.createElementVNode("nav",IE,[a.createElementVNode("ol",VE,[(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",jE,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,zE))],10,HE))),128))])])])]))}}),[["__scopeId","data-v-d57a38db"]]),UE=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(Ht,{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))}}),GE={key:0,class:"card-header"},YE={class:"card-title mb-0"},QE={class:"card-body"},KE={class:"row"},JE={class:"row align-items-center"},qE={class:"col-auto label pe-0"},$E={class:"col-auto"},ZE={key:0,class:"mt-3"},XE=Ne(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",GE,[a.createElementVNode("h5",YE,a.toDisplayString(i.title),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",QE,[a.createElementVNode("div",KE,[(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",JE,[a.createElementVNode("div",qE,a.toDisplayString(s.label)+":",1),a.createElementVNode("div",$E,[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",ZE,[a.renderSlot(i.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),e0={class:"placeholder-glow"},t0={class:"page-card"},i0={class:"row hide-to-print card-header mx-0 w-100"},n0={class:"col"},r0={class:"row flex-nowrap align-items-center"},s0={class:"col-auto"},a0={key:0,class:"col-auto"},o0={class:"row",style:{padding:"20px"}},l0={class:"d-flex align-items-start"},c0={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},u0=["onClick"],d0={class:"tab-content",id:"v-pills-tabContent"},h0={key:0,class:"title"},f0={key:1},p0={key:0},m0={key:0},g0=["title"],b0={key:2},v0={class:"row"},y0={class:"col-12"},w0=Ne(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),c=a.computed(()=>!!s.footer),u=d=>{r.value=d,i("active-tab",t.tabs[d])};return a.onMounted(()=>{}),(d,h)=>(a.openBlock(),a.createElementBlock("div",null,[a.withDirectives(a.createElementVNode("p",e0,[...h[0]||(h[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",t0,[a.createElementVNode("div",i0,[a.createElementVNode("div",n0,[a.createElementVNode("div",r0,[a.createElementVNode("div",s0,[l.value?a.renderSlot(d.$slots,"header",{key:0},void 0,!0):a.createCommentVNode("",!0)])])]),d.actionLinks.length>0?(a.openBlock(),a.createElementBlock("div",a0,[a.createVNode(il,{title:d.actionsTitle,links:d.actionLinks,onClick:o},null,8,["title","links"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",o0,[a.createElementVNode("div",l0,[a.createElementVNode("div",c0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(m,p)=>a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:p,class:a.normalizeClass(["nav-link me-5",[p===r.value?"active":""]]),onClick:g=>u(p)},a.toDisplayString(m.navLink),11,u0)),[[a.vShow,m.navLink]])),128))]),a.createElementVNode("div",d0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(m,p)=>(a.openBlock(),a.createElementBlock("div",{key:p,class:a.normalizeClass(["tab-pane fade row",[p===r.value?"show active d-flex":""]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.contents,(g,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:a.normalizeClass(`col-${d.col} mb-3`)},[g.subtitle?(a.openBlock(),a.createElementBlock("div",h0,a.toDisplayString(g.subtitle)+": ",1)):a.createCommentVNode("",!0),!g.type||g.type==="text"?(a.openBlock(),a.createElementBlock("div",f0,[typeof g.text=="string"?(a.openBlock(),a.createElementBlock("div",p0,a.toDisplayString(g.text),1)):g.text?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(g.text,(R,v)=>(a.openBlock(),a.createElementBlock("div",{key:v},[typeof R=="string"?(a.openBlock(),a.createElementBlock("div",m0,a.toDisplayString(R),1)):a.createCommentVNode("",!0),typeof R=="object"?(a.openBlock(),a.createElementBlock("div",{key:1,title:R?.description||""},a.toDisplayString(R.name),9,g0)):a.createCommentVNode("",!0)]))),128)):a.createCommentVNode("",!0)])):g.type==="custom"&&g.slotName?(a.openBlock(),a.createElementBlock("div",b0,[a.renderSlot(d.$slots,g.slotName,{content:g},void 0,!0)])):a.createCommentVNode("",!0)],2))),128))],2))),128))])]),c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(nl,{class:"mt-3"}),a.createElementVNode("div",v0,[a.createElementVNode("div",y0,[a.renderSlot(d.$slots,"footer",{},void 0,!0)])])],64)):a.createCommentVNode("",!0)])],512),[[a.vShow,!d.isLoading]])]))}}),[["__scopeId","data-v-da7fe9dd"]]),C0={key:0,class:"row w-100 parent"},A0={class:"col-12 wrapper w-100"},E0=["innerHTML"],Ud={__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",C0,[a.createElementVNode("div",A0,[a.createElementVNode("div",{class:a.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,E0),a.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):a.createCommentVNode("",!0)}},k0={key:0,class:"row","data-test":"ErrorMessageComponent"},S0={class:"col-12",id:"alert"},R0={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},x0=["innerHTML"],M0=Ne(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",k0,[a.createElementVNode("div",S0,[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",R0)):a.createCommentVNode("",!0),r.asHtml?(a.openBlock(),a.createElementBlock("div",{key:1,innerHTML:i.value},null,8,x0)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(i.value),1)],64))],2)])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),T0={class:"accordion-header",style:{background:"transparent"}},D0=["aria-expanded","aria-controls"],L0={key:0},O0=["id"],B0={class:"accordion-body px-0"},F0=Ne(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=c=>!!r[c],l=()=>{const c=!t.isCollapsed;i("update-visibility",c)};return a.watch(()=>t.isCollapsedDefault,c=>{i("update-visibility",c)},{deep:!0}),(c,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["accordion accordion-flush",{"w-100":c.fullWidth}]),style:{background:"transparent"}},[a.createElementVNode("div",{class:a.normalizeClass(["accordion-item",{"border-bottom":c.isVisibleBorderBottom}]),style:{background:"transparent"}},[a.createElementVNode("h2",T0,[a.createElementVNode("button",{onClick:l,class:a.normalizeClass(["accordion-button collapsed ps-0",{visible:!c.isCollapsed,"fw-bolder":c.isTitleBold}]),style:a.normalizeStyle(`font-size:${c.titleFontSize}px;`),type:"button","aria-expanded":!c.isCollapsed,"aria-controls":`accordion-${s.value}`},a.toDisplayString(c.title),15,D0)]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[o("accordion-body")?(a.openBlock(),a.createElementBlock("div",L0,[a.withDirectives(a.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[a.createElementVNode("div",B0,[a.renderSlot(c.$slots,"accordion-body",{},void 0,!0)])],8,O0),[[a.vShow,!c.isCollapsed]])])):a.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),_0={class:"accordion-header",style:{background:"transparent"}},P0=["onClick"],N0={class:"d-flex align-items-center w-100"},I0={class:"d-flex align-items-center flex-grow-1"},V0=["value","id","onChange"],H0={class:"form-check-label ps-2 text-body flex-grow-1"},z0={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},j0={class:"col d-flex flex-wrap px-4"},W0={class:"form-check"},U0=["value","id"],G0=["for"],Y0=Ne(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),c=a.ref([]),u=(g,A)=>{const R=g.target;if(R.tagName==="INPUT"||R.closest(".form-check-input"))return!1;if(R.tagName==="SPAN"||R.closest(".form-check-label"))return l.value!==Number(A)?(l.value=Number(A),!0):(l.value=null,!0);if(l.value!==Number(A))return l.value=Number(A),!0;l.value=null},d=g=>{const A=i.kindGroups.find(v=>v.id===g);if(!A)return;if(s.value.includes(String(g))){const v=A.kinds.map(T=>String(T.id)),f=[...o.value];v.forEach(T=>{f.includes(T)||f.push(T)}),o.value=f}else{const v=A.kinds.map(f=>String(f.id));o.value=o.value.filter(f=>!v.includes(String(f)))}},h=()=>{a.nextTick(()=>{m()})},m=()=>{const g=[];i.kindGroups.forEach((v,f)=>{const T=c.value?.[f];if(!T)return;const b=v.kinds.map(w=>String(w.id)),M=o.value.filter(w=>b.includes(String(w)));M.length===0?(T.indeterminate=!1,T.checked=!1):M.length===b.length?(T.indeterminate=!1,T.checked=!0,g.push(String(v.id))):(T.indeterminate=!0,T.checked=!1)});const A=s.value.map(String).sort(),R=g.map(String).sort();JSON.stringify(A)!==JSON.stringify(R)&&(s.value=g)};a.watch(()=>o.value,g=>{r("emitSelectedKinds",g)},{deep:!0}),a.watch(()=>s.value,g=>{r("emitSelectedKindGroups",g)},{deep:!0}),a.onMounted(()=>{i.defaultSelectedKinds.length>0&&(o.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),a.nextTick(()=>{m()})});const p=a.computed(()=>u);return e({toggleAccordion:u}),(g,A)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.kindGroups,(R,v)=>(a.openBlock(),a.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:R.id},[g.kindGroups[v].kinds.length>0?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",_0,[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(v)}]),type:"button",style:{background:"transparent"},onClick:f=>p.value(f,v)},[a.createElementVNode("div",N0,[a.createElementVNode("div",I0,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:c,value:`${R.id}`,id:`${g.checkboxName}_${v}`,name:"kind_group","onUpdate:modelValue":A[0]||(A[0]=f=>s.value=f),onClick:A[1]||(A[1]=a.withModifiers(()=>{},["stop"])),onChange:f=>d(R.id)},null,40,V0),[[a.vModelCheckbox,s.value]]),a.createElementVNode("span",H0,a.toDisplayString(R.name),1)]),a.createElementVNode("i",{class:a.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(v)}])},null,2)])],10,P0)]),a.withDirectives(a.createElementVNode("div",z0,[a.createElementVNode("div",j0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.kindGroups[v].kinds,(f,T)=>(a.openBlock(),a.createElementBlock("div",{class:"col-6 mb-2",key:T},[a.createElementVNode("div",W0,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${f.id}`,id:`${g.checkboxName}_${f.id}`,name:"kinds","onUpdate:modelValue":A[2]||(A[2]=b=>o.value=b),onChange:h},null,40,U0),[[a.vModelCheckbox,o.value]]),a.createElementVNode("label",{class:"form-check-label",for:`${g.checkboxName}_${f.id}`},[a.createElementVNode("small",null,a.toDisplayString(f.name),1)],8,G0)])]))),128))])],512),[[a.vShow,l.value===Number(v)]])],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],c,u;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(c=i.findIndex(d=>d.subject===l),c>-1?t[o]=i[c].copy:(u=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:u}),t[o]=this.deepClone(l,u,i)))}return t}}let Q0=class Vh 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",c=>{c.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 Vh(this.table,e,this),this.childPopup}};class He 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 Q0(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var K0={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class Sr extends He{static moduleName="accessor";static accessors=K0;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":Sr.accessors[e]?t=Sr.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,c,u,d;o.modules.accessor&&(c=o.modules.accessor[i]||o.modules.accessor.accessor||!1,c&&(l=o.getFieldValue(s),l!="undefined"&&(d=o.getComponent(),u=typeof c.params=="function"?c.params(l,s,t,d,r):c.params,o.setFieldValue(s,c.accessor(l,s,t,u,d,r)))))}),s}}var J0={method:"GET"};function ul(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(ul(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(ul(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function q0(n){var e=ul(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function Gd(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+q0(t)),n}function $0(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(c=>{r(c)}).catch(c=>{s(c),console.warn("Ajax Load Error - Invalid JSON returned",c)}):(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 dl(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(dl(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(dl(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var Z0={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=dl(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class Zi extends He{static moduleName="ajax";static defaultConfig=J0;static defaultURLGenerator=Gd;static defaultLoaderPromise=$0;static contentTypeFormatters=Z0;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=Zi.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Zi.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Zi.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({},Zi.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 X0={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},ek={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 E=Je("div","flatpickr-weeks");return B.appendChild(E),{weekWrapper:B,weekNumbers:E}}function N(B,E){E===void 0&&(E=!0);var L=E?B:B-t.currentMonth;L<0&&t._hidePrevMonthArrow===!0||L>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=L,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,Ge("onYearChange"),O()),x(),Ge("onMonthChange"),ze())}function K(B,E){if(B===void 0&&(B=!0),E===void 0&&(E=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,E===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var L=Qo(t.config),_=L.hours,G=L.minutes,se=L.seconds;p(_,G,se)}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 $(){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 E=t.calendarContainer.parentNode;if(E.lastChild&&E.removeChild(E.lastChild),E.parentNode){for(;E.firstChild;)E.parentNode.insertBefore(E.firstChild,E);E.parentNode.removeChild(E)}}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(L){try{delete t[L]}catch{}})}function te(B){return t.calendarContainer.contains(B)}function le(B){if(t.isOpen&&!t.config.inline){var E=St(B),L=te(E),_=E===t.input||E===t.altInput||t.element.contains(E)||B.path&&B.path.indexOf&&(~B.path.indexOf(t.input)||~B.path.indexOf(t.altInput)),G=!_&&!L&&!te(B.relatedTarget),se=!t.config.ignoredFocusElements.some(function(ue){return ue.contains(E)});G&&se&&(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&&c(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function ce(B){if(!(!B||t.config.minDate&&B<t.config.minDate.getFullYear()||t.config.maxDate&&B>t.config.maxDate.getFullYear())){var E=B,L=t.currentYear!==E;t.currentYear=E||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)),L&&(t.redraw(),Ge("onYearChange"),O())}}function Y(B,E){var L;E===void 0&&(E=!0);var _=t.parseDate(B,void 0,E);if(t.config.minDate&&_&&Rt(_,t.config.minDate,E!==void 0?E:!t.minDateHasTime)<0||t.config.maxDate&&_&&Rt(_,t.config.maxDate,E!==void 0?E:!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,se=(L=t.config.enable)!==null&&L!==void 0?L:t.config.disable,ue=0,fe=void 0;ue<se.length;ue++){if(fe=se[ue],typeof fe=="function"&&fe(_))return G;if(fe instanceof Date&&_!==void 0&&fe.getTime()===_.getTime())return G;if(typeof fe=="string"){var pe=t.parseDate(fe,void 0,!0);return pe&&pe.getTime()===_.getTime()?G:!G}else if(typeof fe=="object"&&_!==void 0&&fe.from&&fe.to&&_.getTime()>=fe.from.getTime()&&_.getTime()<=fe.to.getTime())return G}return!G}function ie(B){return t.daysContainer!==void 0?B.className.indexOf("hidden")===-1&&B.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(B):!1}function Z(B){var E=B.target===t._input,L=t._input.value.trimEnd()!==Le();E&&L&&!(B.relatedTarget&&te(B.relatedTarget))&&t.setDate(t._input.value,!0,B.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function Q(B){var E=St(B),L=t.config.wrap?n.contains(E):E===t._input,_=t.config.allowInput,G=t.isOpen&&(!_||!L),se=t.config.inline&&L&&!_;if(B.keyCode===13&&L){if(_)return t.setDate(t._input.value,!0,E===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),E.blur();t.open()}else if(te(E)||G||se){var ue=!!t.timeContainer&&t.timeContainer.contains(E);switch(B.keyCode){case 13:ue?(B.preventDefault(),c(),re()):me(B);break;case 27:B.preventDefault(),re();break;case 8:case 46:L&&!t.config.allowInput&&(B.preventDefault(),t.clear());break;case 37:case 39:if(!ue&&!L){B.preventDefault();var fe=s();if(t.daysContainer!==void 0&&(_===!1||fe&&ie(fe))){var pe=B.keyCode===39?1:-1;B.ctrlKey?(B.stopPropagation(),N(pe),y(C(1),0)):y(void 0,pe)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:B.preventDefault();var ve=B.keyCode===40?1:-1;t.daysContainer&&E.$i!==void 0||E===t.input||E===t.altInput?B.ctrlKey?(B.stopPropagation(),ce(t.currentYear-ve),y(C(1),0)):ue||y(void 0,ve*7):E===t.currentYearElement?ce(t.currentYear-ve):t.config.enableTime&&(!ue&&t.hourElement&&t.hourElement.focus(),c(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(E);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(E)&&B.shiftKey&&(B.preventDefault(),t._input.focus());break}}if(t.amPM!==void 0&&E===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],h(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],h(),xe();break}(L||te(E))&&Ge("onKeyDown",B)}function P(B,E){if(E===void 0&&(E="flatpickr-day"),!(t.selectedDates.length!==1||B&&(!B.classList.contains(E)||B.classList.contains("flatpickr-disabled")))){for(var L=B?B.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),_=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),G=Math.min(L,t.selectedDates[0].getTime()),se=Math.max(L,t.selectedDates[0].getTime()),ue=!1,fe=0,pe=0,ve=G;ve<se;ve+=Vw.DAY)Y(new Date(ve),!0)||(ue=ue||ve>G&&ve<se,ve<_&&(!fe||ve>fe)?fe=ve:ve>_&&(!pe||ve<pe)&&(pe=ve));var Ce=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+E));Ce.forEach(function(De){var We=De.dateObj,Be=We.getTime(),qe=fe>0&&Be<fe||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(L<=t.selectedDates[0].getTime()?"startRange":"endRange"),_<L&&Be===_?De.classList.add("startRange"):_>L&&Be===_&&De.classList.add("endRange"),Be>=fe&&(pe===0||Be<=pe)&&Nw(Be,_,L)&&De.classList.add("inRange"))})}}function J(){t.isOpen&&!t.config.static&&!t.config.inline&&_e()}function ee(B,E){if(E===void 0&&(E=t._positionElement),t.isMobile===!0){if(B){B.preventDefault();var L=St(B);L&&L.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(E)),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 be(B){return function(E){var L=t.config["_"+B+"Date"]=t.parseDate(E,t.config.dateFormat),_=t.config["_"+(B==="min"?"max":"min")+"Date"];L!==void 0&&(t[B==="min"?"minDateHasTime":"maxDateHasTime"]=L.getHours()>0||L.getMinutes()>0||L.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(G){return Y(G)}),!t.selectedDates.length&&B==="min"&&m(L),xe()),t.daysContainer&&(X(),L!==void 0?t.currentYearElement[B]=L.getFullYear().toString():t.currentYearElement.removeAttribute(B),t.currentYearElement.disabled=!!_&&L!==void 0&&_.getFullYear()===L.getFullYear())}}function we(){var B=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],E=ft(ft({},JSON.parse(JSON.stringify(n.dataset||{}))),e),L={};t.config.parseDate=E.parseDate,t.config.formatDate=E.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(Ce){t.config._enable=Re(Ce)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(Ce){t.config._disable=Re(Ce)}});var _=E.mode==="time";if(!E.dateFormat&&(E.enableTime||_)){var G=ot.defaultConfig.dateFormat||qi.dateFormat;L.dateFormat=E.noCalendar||_?"H:i"+(E.enableSeconds?":S":""):G+" H:i"+(E.enableSeconds?":S":"")}if(E.altInput&&(E.enableTime||_)&&!E.altFormat){var se=ot.defaultConfig.altFormat||qi.altFormat;L.altFormat=E.noCalendar||_?"h:i"+(E.enableSeconds?":S K":" K"):se+(" h:i"+(E.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:be("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:be("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")}),E.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,L,E);for(var fe=0;fe<B.length;fe++)t.config[B[fe]]=t.config[B[fe]]===!0||t.config[B[fe]]==="true";jo.filter(function(Ce){return t.config[Ce]!==void 0}).forEach(function(Ce){t.config[Ce]=Wo(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 fe=0;fe<t.config.plugins.length;fe++){var pe=t.config.plugins[fe](t)||{};for(var ve in pe)jo.indexOf(ve)>-1?t.config[ve]=Wo(pe[ve]).map(o).concat(t.config[ve]):typeof E[ve]>"u"&&(t.config[ve]=pe[ve])}E.altInputClass||(t.config.altInputClass=Ae().className+" "+t.config.altInputClass),Ge("onParseConfig")}function Ae(){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),Mi.D="("+t.l10n.weekdays.shorthand.join("|")+")",Mi.l="("+t.l10n.weekdays.longhand.join("|")+")",Mi.M="("+t.l10n.months.shorthand.join("|")+")",Mi.F="("+t.l10n.months.longhand.join("|")+")",Mi.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var 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=yd(t),t.parseDate=Go({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 E=B||t._positionElement,L=Array.prototype.reduce.call(t.calendarContainer.children,(function(Oi,lM){return Oi+lM.offsetHeight}),0),_=t.calendarContainer.offsetWidth,G=t.config.position.split(" "),se=G[0],ue=G.length>1?G[1]:null,fe=E.getBoundingClientRect(),pe=window.innerHeight-fe.bottom,ve=se==="above"||se!=="below"&&pe<L&&fe.top>L,Ce=window.pageYOffset+fe.top+(ve?-L-2:E.offsetHeight+2);if(gt(t.calendarContainer,"arrowTop",!ve),gt(t.calendarContainer,"arrowBottom",ve),!t.config.inline){var De=window.pageXOffset+fe.left,We=!1,Be=!1;ue==="center"?(De-=(_-fe.width)/2,We=!0):ue==="right"&&(De-=_-fe.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+fe.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=Ie();if(nt===void 0)return;var wi=window.document.body.offsetWidth,Li=Math.max(0,wi/2-_/2),di=".flatpickr-calendar.centerMost:before",jt=".flatpickr-calendar.centerMost:after",$t=nt.cssRules.length,rn="{left:"+fe.left+"px;right:auto;}";gt(t.calendarContainer,"rightMost",!1),gt(t.calendarContainer,"centerMost",!0),nt.insertRule(di+","+jt+rn,$t),t.calendarContainer.style.left=Li+"px",t.calendarContainer.style.right="auto"}}}}function Ie(){for(var B=null,E=0;E<document.styleSheets.length;E++){var L=document.styleSheets[E];if(L.cssRules){try{L.cssRules}catch{continue}B=L;break}}return B??de()}function de(){var B=document.createElement("style");return document.head.appendChild(B),B.sheet}function X(){t.config.noCalendar||t.isMobile||(O(),ze(),x())}function re(){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 E=function(Ce){return Ce.classList&&Ce.classList.contains("flatpickr-day")&&!Ce.classList.contains("flatpickr-disabled")&&!Ce.classList.contains("notAllowed")},L=vd(St(B),E);if(L!==void 0){var _=L,G=t.latestSelectedDateObj=new Date(_.dateObj.getTime()),se=(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=ae(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),Rt(G,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(Ce,De){return Ce.getTime()-De.getTime()}));if(h(),se){var fe=t.currentYear!==G.getFullYear();t.currentYear=G.getFullYear(),t.currentMonth=G.getMonth(),fe&&(Ge("onYearChange"),O()),Ge("onMonthChange")}if(ze(),x(),xe(),!se&&t.config.mode!=="range"&&t.config.showMonths===1?S(_):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,ve=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(pe||ve)&&re()}R()}}var he={locale:[Fe,q],showMonths:[j,l,H],minDate:[f],maxDate:[f],positionElement:[je],clickOpens:[function(){t.config.clickOpens===!0?(A(t._input,"focus",t.open),A(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function Se(B,E){if(B!==null&&typeof B=="object"){Object.assign(t.config,B);for(var L in B)he[L]!==void 0&&he[L].forEach(function(_){return _()})}else t.config[B]=E,he[B]!==void 0?he[B].forEach(function(_){return _()}):jo.indexOf(B)>-1&&(t.config[B]=Wo(E));t.redraw(),xe(!0)}function Me(B,E){var L=[];if(B instanceof Array)L=B.map(function(_){return t.parseDate(_,E)});else if(B instanceof Date||typeof B=="number")L=[t.parseDate(B,E)];else if(typeof B=="string")switch(t.config.mode){case"single":case"time":L=[t.parseDate(B,E)];break;case"multiple":L=B.split(t.config.conjunction).map(function(_){return t.parseDate(_,E)});break;case"range":L=B.split(t.l10n.rangeSeparator).map(function(_){return t.parseDate(_,E)});break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(B)));t.selectedDates=t.config.allowInvalidPreload?L:L.filter(function(_){return _ instanceof Date&&Y(_,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(_,G){return _.getTime()-G.getTime()})}function oe(B,E,L){if(E===void 0&&(E=!1),L===void 0&&(L=t.config.dateFormat),B!==0&&!B||B instanceof Array&&B.length===0)return t.clear(E);Me(B,L),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),f(void 0,E),m(),t.selectedDates.length===0&&t.clear(!1),xe(E),E&&Ge("onChange")}function Re(B){return B.slice().map(function(E){return typeof E=="string"||typeof E=="number"||E instanceof Date?t.parseDate(E,void 0,!0):E&&typeof E=="object"&&E.from&&E.to?{from:t.parseDate(E.from,void 0),to:t.parseDate(E.to,void 0)}:E}).filter(function(E){return E})}function Oe(){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=Ae(),!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 xt(){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{}A(t.mobileInput,"change",function(E){t.setDate(St(E).value,!1,t.mobileFormatStr),Ge("onChange"),Ge("onClose")})}function At(B){if(t.isOpen===!0)return t.close();t.open(B)}function Ge(B,E){if(t.config!==void 0){var L=t.config[B];if(L!==void 0&&L.length>0)for(var _=0;L[_]&&_<L.length;_++)L[_](t.selectedDates,t.input.value,t,E);B==="onChange"&&(t.input.dispatchEvent(ne("change")),t.input.dispatchEvent(ne("input")))}}function ne(B){var E=document.createEvent("Event");return E.initEvent(B,!0,!0),E}function ae(B){for(var E=0;E<t.selectedDates.length;E++){var L=t.selectedDates[E];if(L instanceof Date&&Rt(L,B)===0)return""+E}return!1}function Pe(B){return t.config.mode!=="range"||t.selectedDates.length<2?!1:Rt(B,t.selectedDates[0])>=0&&Rt(B,t.selectedDates[1])<=0}function ze(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(B,E){var L=new Date(t.currentYear,t.currentMonth,1);L.setMonth(t.currentMonth+E),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[E].textContent=kr(L.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=L.getMonth().toString(),B.value=L.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 Le(B){var E=B||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(L){return t.formatDate(L,E)}).filter(function(L,_,G){return t.config.mode!=="range"||t.config.enableTime||G.indexOf(L)===_}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function xe(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=Le(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Le(t.config.altFormat)),B!==!1&&Ge("onValueUpdate")}function ut(B){var E=St(B),L=t.prevMonthNav.contains(E),_=t.nextMonthNav.contains(E);L||_?N(L?-1:1):t.yearElements.indexOf(E)>=0?E.select():E.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):E.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function ge(B){B.preventDefault();var E=B.type==="keydown",L=St(B),_=L;t.amPM!==void 0&&L===t.amPM&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]);var G=parseFloat(_.getAttribute("min")),se=parseFloat(_.getAttribute("max")),ue=parseFloat(_.getAttribute("step")),fe=parseInt(_.value,10),pe=B.delta||(E?B.which===38?1:-1:0),ve=fe+ue*pe;if(typeof _.value<"u"&&_.value.length===2){var Ce=_===t.hourElement,De=_===t.minuteElement;ve<G?(ve=se+ve+Ft(!Ce)+(Ft(Ce)&&Ft(!t.amPM)),De&&b(void 0,-1,t.hourElement)):ve>se&&(ve=_===t.hourElement?ve-se-Ft(!t.amPM):G,De&&b(void 0,1,t.hourElement)),t.amPM&&Ce&&(ue===1?ve+fe===23:Math.abs(ve-fe)>ue)&&(t.amPM.textContent=t.l10n.amPM[Ft(t.amPM.textContent===t.l10n.amPM[0])]),_.value=Ct(ve)}}return r(),t}function $i(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=zw(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 $i(this,n)},HTMLElement.prototype.flatpickr=function(n){return $i([this],n)});var ot=function(n,e){return typeof n=="string"?$i(window.document.querySelectorAll(n),e):n instanceof Node?$i([n],e):$i(n,e)};ot.defaultConfig={},ot.l10ns={en:ft({},kn),default:ft({},kn)},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=Go({}),ot.formatDate=yd({}),ot.compareDates=Rt,typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(n){return $i(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 Rn={exports:{}},jw=Rn.exports,Cd;function Ww(){return Cd||(Cd=1,(function(n,e){(function(t,i){i(e)})(jw,(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})}))})(Rn,Rn.exports)),Rn.exports}var Uw=Ww(),xn={exports:{}},Gw=xn.exports,Ad;function Yw(){return Ad||(Ad=1,(function(n,e){(function(t,i){i(e)})(Gw,(function(t){var i=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["א","ב","ג","ד","ה","ו","ש"],longhand:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"]},months:{shorthand:["ינו׳","פבר׳","מרץ","אפר׳","מאי","יוני","יולי","אוג׳","ספט׳","אוק׳","נוב׳","דצמ׳"],longhand:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"]},rangeSeparator:" אל ",time_24hr:!0};i.l10ns.he=r;var s=i.l10ns;t.Hebrew=r,t.default=s,Object.defineProperty(t,"__esModule",{value:!0})}))})(xn,xn.exports)),xn.exports}var Qw=Yw();const Kw=["value","id","name","disabled","required","placeholder"],Jw=["title"],qw=["title"],$w=Ne(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),c=a.ref(""),u=a.ref([]),d=a.ref(!1),h=a.computed(()=>Array.isArray(i.error)?i.error?.filter(Boolean)||[]:typeof i.error=="string"&&i.error?[i.error]:[]),m=S=>{if(!S)return null;if(S instanceof Date&&!isNaN(S.getTime()))return S;const C=typeof S=="string"?S.trim():"";if(C){const k=A(C);if(k){const x=new Date(k);if(!isNaN(x.getTime()))return x}const y=ot.parseDate?.(C,i.dateFormat);if(y&&!isNaN(y.getTime()))return y;const D=new Date(C);if(!isNaN(D.getTime()))return D}return null},p=S=>{const C=S instanceof Date?S:m(S);if(!C)return"";const k=String(C.getDate()).padStart(2,"0"),y=String(C.getMonth()+1).padStart(2,"0"),D=C.getFullYear();return i.format==="MM/DD/YYYY"?`${y}/${k}/${D}`:i.format==="YYYY-MM-DD"?`${D}-${y}-${k}`:`${k}.${y}.${D}`},g=S=>{const C=S instanceof Date?S:m(S);if(!C)return"";const k=String(C.getDate()).padStart(2,"0"),y=String(C.getMonth()+1).padStart(2,"0");return`${C.getFullYear()}-${y}-${k}`},A=S=>{if(!S)return"";const C=S.trim(),k=ot.parseDate?.(C,i.dateFormat);if(k&&!isNaN(k.getTime())){const y=k.getFullYear(),D=String(k.getMonth()+1).padStart(2,"0"),x=String(k.getDate()).padStart(2,"0");return`${y}-${D}-${x}`}if(/^\d{4}-\d{2}-\d{2}/.test(C))return C;if(i.format==="MM/DD/YYYY"){const[y,D,x]=C.split("/");if(y&&D&&x)return`${x}-${y.padStart(2,"0")}-${D.padStart(2,"0")}`}if(i.format==="YYYY-MM-DD")return C;if(i.format==="DD.MM.YYYY"){const[y,D,x]=C.split(".");if(y&&D&&x)return`${x}-${D.padStart(2,"0")}-${y.padStart(2,"0")}`}return C},R=S=>S?Array.isArray(S)?S:[S]:[],v=(S,C)=>{const k=R(S),y=k.map(x=>p(x)).filter(Boolean);if(c.value=y.join(", "),l.value=y.length>0,!C?._input)return;if(!y.length){C.clear?.(),C._input.value="";return}const D=k.map(x=>m(x)).filter(x=>!!x);if(!D.length){C.clear?.(),C._input.value=c.value;return}C.setDate?.(D,!1),C._input.value=c.value,(i.mode==="range"||i.mode==="multiple")&&(u.value=C.selectedDates||D)},f=()=>{if(!s.value)return;const S={locale:i.locale==="ru"?Uw.Russian:i.locale==="he"?Qw.Hebrew:void 0,allowInput:i.allowInput,enableTime:i.enableTime,time_24hr:i.time_24hr,dateFormat:i.dateFormat,mode:i.mode,wrap:!0,onClose:(C,k,y)=>{const D=C.length>0;if(u.value=C,!D)return T({instance:y}),!1;if(i.mode==="range"||i.mode==="multiple"){const x=C.map(j=>g(j)),O=Array.isArray(i.modelValue)?i.modelValue:[];if(O.length===x.length&&O.every((j,U)=>j===x[U]))return!1}else{const x=g(C[0]);if(!(i.modelValue!==x))return!1}if(d.value=!0,i.mode==="range"||i.mode==="multiple"){const x=C.map(O=>p(O));c.value=x.join(", "),l.value=x.length>0}else c.value=k,l.value=k.length>0;a.nextTick(()=>{if(i.mode==="multiple"){const x=C.map(O=>g(O));r("update:modelValue",x)}else if(i.mode==="range"){const x=C.map(O=>g(O));r("update:modelValue",x)}else{const x=g(C[0]);r("update:modelValue",x)}r("change",C.map(x=>x.toISOString()),k,y),a.nextTick(()=>{d.value=!1})})},onOpen:C=>{r("open",C)},onReady:C=>{r("ready",C)},...i.config};i.minDate&&i.minDate&&(S.minDate=i.minDate),i.maxDate&&(S.maxDate=i.maxDate),i.defaultDate&&(S.defaultDate=i.defaultDate),o.value=ot(s.value,S),T({instance:o.value})},T=({instance:S})=>{v(i.modelValue,S)},b=()=>{if(i.disabled||!o.value)return;o.value.clear(),o.value._input.value="";const S=i.mode==="range"||i.mode==="multiple"?[]:"";c.value="",l.value=!1,u.value=[],r("update:modelValue",S),r("change",[],"",o.value),v(S,o.value)},M=S=>{const C=S.target;c.value=C.value},w=()=>{if(i.mode==="range"||i.mode==="multiple"){if(o.value?.isOpen)return;if((o.value?.selectedDates||[]).length===0&&u.value.length>0){const C=u.value.map(D=>g(D)),k=Array.isArray(i.modelValue)?i.modelValue:[];k.length===C.length&&k.every((D,x)=>D===C[x])||r("update:modelValue",C)}return}if(i.mode==="single"&&c.value){const S=A(c.value);S&&r("update:modelValue",S)}};return a.watch(()=>i.modelValue,S=>{d.value||v(S,o.value)},{deep:!0}),a.watch(()=>i.disabled,S=>{o.value?._input&&(o.value._input.disabled=S)}),a.onMounted(()=>{f()}),a.onBeforeUnmount(()=>{o.value&&o.value.destroy()}),e({datapicker:o}),(S,C)=>(a.openBlock(),a.createElementBlock("div",{style:{position:"relative"},ref_key:"input",ref:s},[a.createElementVNode("div",{class:a.normalizeClass({"not-valid":h.value.length})},[a.createElementVNode("input",{type:"text",class:"form-control flatpickr",value:c.value,id:S.id,name:S.name,disabled:S.disabled,required:S.required,placeholder:S.placeholder,autocomplete:"off","data-input":"",onInput:M,onBlur:w},null,40,Kw)],2),l.value&&!S.disabled?(a.openBlock(),a.createElementBlock("a",{key:0,class:"remove-button text-dark flatpickr-reset-btn",onClick:b,"data-toggle":"",title:S.resetTitle},[...C[0]||(C[0]=[a.createElementVNode("i",{class:"bi bi-x-lg"},null,-1)])],8,Jw)):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"remove-button text-dark flatpickr-calendar-btn","data-toggle":"",title:S.calendarTitle},[...C[1]||(C[1]=[a.createElementVNode("i",{class:"bi bi-calendar3"},null,-1)])],8,qw),a.createVNode(Si,{errors:h.value},null,8,["errors"])],512))}}),[["__scopeId","data-v-3ee664b8"]]);function Zw(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([]),c=a.ref(!1),u=a.ref(r),d=a.ref(!1),h=a.ref(!1),m=a.computed(()=>o.value&&o.value.length>0&&o.value.length<s?`Введите минимум ${s} символа`:t),p=a.computed(()=>i);return{search:o,options:l,isSearchLoading:c,searchType:u,showSettings:d,isLoading:h,enterCharacterMessage:m,filteredSearchTypes:p,onSearch:w=>{o.value=w||"",w&&w.length>=s},onSelect:w=>{},clearSearch:()=>{o.value="",l.value=[]},toggleSettings:()=>{d.value=!d.value},hideSettings:()=>{d.value=!1},setOptions:w=>{l.value=w},setLoading:w=>{c.value=w},setGlobalLoading:w=>{h.value=w}}}const Xw=["disabled"],eC={key:1,class:"bi bi-three-dots-vertical"},tC=Ne(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:c,searchType:u,showSettings:d,isLoading:h,enterCharacterMessage:m,filteredSearchTypes:p,onSearch:g,onSelect:A,clearSearch:R,toggleSettings:v,hideSettings:f}=Zw(s),T=a.ref();a.computed(()=>i.options.length>0?i.options:l.value),a.computed(()=>i.isSearchLoading||c.value),a.computed(()=>i.isLoading||h.value);const b=k=>{const y=k||"";g(y),r("search",y,u.value)},M=k=>{A(k),r("select",k)},w=a.computed(()=>i.searchTypeName);a.watch(u,k=>{r("searchTypeChange",k),f()});const S=k=>{const y=k.target;C.value?.contains(y)||f()},C=a.ref();return a.onMounted(()=>{document.addEventListener("click",S)}),a.onUnmounted(()=>{document.removeEventListener("click",S)}),e({clearSearch:R,setOptions:k=>{l.value=k},setLoading:k=>{c.value=k},setGlobalLoading:k=>{h.value=k},focus:()=>{T.value?.$el?.querySelector("input")?.focus()}}),(k,y)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"wrapperRef",ref:C,class:"position-relative d-flex align-items-center rounded search-select-wrapper"},[(a.openBlock(),a.createBlock(Ht,{ref_key:"selectRef",ref:T,key:a.unref(u),classes:["border-0","outline-none"],style:{maxWidth:"500px",minWidth:"500px"},modelValue:a.unref(o),"onUpdate:modelValue":[y[0]||(y[0]=D=>a.isRef(o)?o.value=D:null),M],reduce:D=>D,options:k.options,placeholder:k.placeholder,onSearch:b,onBlur:a.unref(R),onFocus:a.unref(f),isLoading:k.isSearchLoading,hint:a.unref(m)},null,8,["modelValue","reduce","options","placeholder","onBlur","onFocus","isLoading","hint"])),a.createElementVNode("button",{class:"btn btn-light px-2",onClick:y[1]||(y[1]=(...D)=>a.unref(v)&&a.unref(v)(...D)),disabled:k.isLoading},[k.isLoading?(a.openBlock(),a.createBlock(In,{key:0,isSmall:!0})):(a.openBlock(),a.createElementBlock("i",eC))],8,Xw),a.unref(d)?(a.openBlock(),a.createElementBlock("ul",{key:0,class:"position-absolute setting-list",onClick:y[3]||(y[3]=a.withModifiers(()=>{},["stop"]))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(p),D=>(a.openBlock(),a.createElementBlock("li",{key:D.value,class:"setting-item"},[a.createVNode(gd,{name:w.value,label:D.label,modelValue:a.unref(u),"onUpdate:modelValue":y[2]||(y[2]=x=>a.isRef(u)?u.value=x:null),type:"radio",group:w.value,trueValue:D.value},null,8,["name","label","modelValue","group","trueValue"])]))),128))])):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-d22a7d18"]]);function iC(n={}){const{loadCountries:e,loadRegions:t,loadDistricts:i,loadLocalities:r,loadStreets:s,countryKey:o="country_id",regionKey:l="region_id",districtKey:c="district_id",localityKey:u="locality_id",streetKey:d="street_id",houseKey:h="house",buildingKey:m="building",apartmentKey:p="apartment",countryLabel:g="Страна",regionLabel:A="Регион",districtLabel:R="Район",localityLabel:v="Населенный пункт",streetLabel:f="Улица",houseLabel:T="Дом",buildingLabel:b="Корпус",apartmentLabel:M="Квартира",columnWidth:w="12",prefix:S="",multiLocalities:C=!1,multiStreets:k=!1,showHouseFields:y=!0}=n,D=a.ref(!1),x=a.ref({}),O=a.ref(!1),I=a.ref(!1),j=a.ref(!1),U=a.ref(!1),V=a.ref(!1),H=a.ref(!1),q=a.ref([]),F=a.ref([]),N=a.ref([]),K=a.ref([]),z=a.ref([]),$=a.computed(()=>`${S}${o}`),te=a.computed(()=>`${S}${l}`),le=a.computed(()=>`${S}${c}`),ce=a.computed(()=>`${S}${u}`),Y=a.computed(()=>`${S}${d}`),ie=a.computed(()=>`${S}${h}`),Z=a.computed(()=>`${S}${m}`),Q=a.computed(()=>`${S}${p}`),P=a.computed(()=>({country:g,region:A,district:R,locality:v,street:f,house:T,building:b,apartment:M})),J=async()=>{if(e){I.value=!0;try{q.value=await e()}finally{I.value=!1}}},ee=async ge=>{if(t){j.value=!0;try{F.value=await t(ge)}finally{j.value=!1}}},be=async ge=>{if(i){U.value=!0;try{N.value=await i(ge)}finally{U.value=!1}}},we=async ge=>{if(r){V.value=!0;try{K.value=await r(ge)}finally{V.value=!1}}},Ae=async ge=>{if(s){H.value=!0;try{z.value=await s(ge)}finally{H.value=!1}}},Fe=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[$.value]:ge};x.value=L;return}const E={...x.value,[$.value]:ge,[te.value]:null,[le.value]:null,[ce.value]:null,[Y.value]:null,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E,F.value=[],N.value=[],K.value=[],z.value=[]},_e=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[te.value]:ge};x.value=L;return}const E={...x.value,[te.value]:ge,[le.value]:null,[ce.value]:null,[Y.value]:null,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E,N.value=[],K.value=[],z.value=[]},Ie=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[le.value]:ge};x.value=L;return}const E={...x.value,[le.value]:ge,[ce.value]:null,[Y.value]:null,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E},de=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[ce.value]:ge};x.value=L;return}const E={...x.value,[ce.value]:ge,[Y.value]:null,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E,z.value=[]},X=async ge=>{D.value||(Fe(ge),ge&&await ee(ge))},re=async ge=>{D.value||(_e(ge),ge&&(await be(ge),await we(ge)))},me=async ge=>{if(!D.value){if(Ie(ge),!ge){const B=x.value[te.value];B&&await re(B);return}await we(ge)}},he=async ge=>{D.value||(de(ge),ge&&await Ae(ge))},Se=(ge,B=!1)=>{if(D.value)return;if(B){const L={...x.value,[Y.value]:ge};x.value=L;return}const E={...x.value,[Y.value]:ge,[ie.value]:null,[Z.value]:null,[Q.value]:null};x.value=E},Me=ge=>{const B=ge.target,E={...x.value,[ie.value]:B.value};x.value=E},oe=ge=>{const B=ge.target,E={...x.value,[Z.value]:B.value};x.value=E},Re=ge=>{const B=ge.target,E={...x.value,[Q.value]:B.value};x.value=E},Oe=async(ge,B)=>{Object.assign(x.value,ge)},et=async(ge,B)=>{D.value=!0;const E=ge[$.value],L=ge[te.value],_=ge[le.value],G=ge[ce.value];ge[Y.value];try{e&&await J(),t&&(L||E||B)&&await ee(E||B),i&&L&&await be(L),r&&_?await we(_):r&&L&&await we(L),s&&G&&await Ae(G),Object.assign(x.value,ge)}catch(se){console.error("❌ Error during auto-fill (skip reset mode):",se)}finally{a.nextTick(()=>{D.value=!1})}},je=a.computed(()=>{const ge=x.value[$.value];return ge&&q.value.find(E=>String(E.id)===String(ge))?.label||""}),xt=a.computed(()=>{const ge=x.value[te.value];return ge&&F.value.find(E=>String(E.id)===String(ge))?.label||""}),At=a.computed(()=>{const ge=x.value[le.value];return ge&&N.value.find(B=>String(B.id)===String(ge))?.label||""}),Ge=a.computed(()=>{const ge=x.value[ce.value];return ge&&K.value.find(B=>String(B.id)===String(ge))?.label||""}),ne=a.computed(()=>{const ge=x.value[Y.value];return ge&&z.value.find(E=>String(E.id)===String(ge))?.label||""}),ae=a.computed(()=>{const ge=x.value[ie.value];return ge?`${T} ${ge}`:""}),Pe=a.computed(()=>{const ge=x.value[Z.value];return ge?`${b} ${ge}`:""}),ze=a.computed(()=>{const ge=x.value[Q.value];return ge?`${M} ${ge}`:""}),Le=a.computed(()=>[je.value,xt.value,At.value,Ge.value,ne.value,ae.value,Pe.value,ze.value].filter(Boolean).join(", ")),xe=a.computed(()=>{const ge=x.value[ce.value];return Array.isArray(ge)?ge.length>1:!1}),ut=a.computed(()=>k?!1:y);return{modelValue:x,isLoading:O,isCountryLoading:I,isRegionLoading:j,isDistrictLoading:U,isLocalityLoading:V,isStreetLoading:H,countryOptions:q,regionOptions:F,districtOptions:N,localityOptions:K,streetOptions:z,finalCountryKey:$,finalRegionKey:te,finalDistrictKey:le,finalLocalityKey:ce,finalStreetKey:Y,finalHouseKey:ie,finalBuildingKey:Z,finalApartmentKey:Q,labels:P,selectedCountryLabel:je,selectedRegionLabel:xt,selectedDistrictLabel:At,selectedLocalityLabel:Ge,selectedStreetLabel:ne,selectedHouseLabel:ae,selectedBuildingLabel:Pe,selectedApartmentLabel:ze,fullAddress:Le,isMultiLocalitiesSelected:xe,shouldShowHouseFields:ut,loadCountryOptions:J,loadRegionOptions:ee,loadDistrictOptions:be,loadLocalityOptions:we,loadStreetOptions:Ae,onCountrySelect:X,onRegionSelect:re,onDistrictSelect:me,onLocalitySelect:he,onStreetSelect:Se,onHouseInput:Me,onBuildingInput:oe,onApartmentInput:Re,resetFieldsByCountry:Fe,resetFieldsByRegion:_e,resetFieldsByDistrict:Ie,resetFieldsByLocality:de,autoFillForm:Oe,autoFillFormSkipReset:et}}const nC={class:"address-form"},rC={class:"row"},sC={class:"form-label"},aC={class:"form-label"},oC={class:"form-label"},lC={class:"form-label"},cC={class:"form-label"},uC={class:"form-label"},dC=["value","disabled"],hC={class:"form-label"},fC=["value","disabled"],pC={class:"form-label"},mC=["value","disabled"],gC={key:0,class:"mt-3"},bC={class:"alert alert-info"},vC=Ne(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:c,isDistrictLoading:u,isLocalityLoading:d,isStreetLoading:h,countryOptions:m,regionOptions:p,districtOptions:g,localityOptions:A,streetOptions:R,finalCountryKey:v,finalRegionKey:f,finalDistrictKey:T,finalLocalityKey:b,finalStreetKey:M,finalHouseKey:w,finalBuildingKey:S,finalApartmentKey:C,labels:k,selectedCountryLabel:y,selectedRegionLabel:D,selectedDistrictLabel:x,selectedLocalityLabel:O,selectedStreetLabel:I,selectedHouseLabel:j,selectedBuildingLabel:U,selectedApartmentLabel:V,fullAddress:H,isMultiLocalitiesSelected:q,shouldShowHouseFields:F,loadCountryOptions:N,loadRegionOptions:K,onCountrySelect:z,onRegionSelect:$,onDistrictSelect:te,onLocalitySelect:le,onStreetSelect:ce,onHouseInput:Y,onBuildingInput:ie,onApartmentInput:Z,autoFillForm:Q,autoFillFormSkipReset:P}=iC(s);let J=!1,ee=!1,be=!1;const we=(oe,Re)=>{if(oe===Re)return!0;if(!oe||!Re||typeof oe!="object"||typeof Re!="object")return!1;const Oe=Object.keys(oe),et=Object.keys(Re);if(Oe.length!==et.length)return!1;for(const je of Oe)if(oe[je]!==Re[je])return!1;return!0};a.watch(()=>i.modelValue,async oe=>{if(J||ee||be||we(o.value,oe))return;if(oe&&(oe[v.value]||oe[f.value]||oe[T.value]||oe[b.value]||oe[M.value])){if(!ee){ee=!0;try{await P(oe,i.countryId)}catch(Oe){console.error("❌ Error during auto-fill:",Oe)}finally{ee=!1}}}else o.value={...oe}},{immediate:!0,deep:!0}),a.watch(o,oe=>{be||ee||we(i.modelValue,oe)||(J=!0,be=!0,r("update:modelValue",{...oe}),r("change",{...oe}),a.nextTick(()=>{J=!1,be=!1}))},{deep:!0});let Ae=!1;a.watch(()=>i.countryId,async(oe,Re)=>{if(!Ae&&!ee&&oe!=null&&i.loadRegions){if(oe!==Re){const Oe={...o.value,[f.value]:null,[T.value]:null,[b.value]:null,[M.value]:null,[w.value]:null,[S.value]:null,[C.value]:null};o.value=Oe}try{Ae=!0,await K(oe)}catch(Oe){console.error("❌ AddressForm: Error loading regions",Oe)}finally{Ae=!1}}},{immediate:!0});const Fe=async oe=>{await z(oe),r("countryChange",oe)},_e=async oe=>{await $(oe),r("regionChange",oe)},Ie=async oe=>{await te(oe),r("districtChange",oe)},de=async oe=>{await le(oe),r("localityChange",oe)},X=oe=>{ce(oe),r("streetChange",oe)},re=oe=>{Y(oe)},me=oe=>{ie(oe)},he=oe=>{Z(oe)},Se=a.computed(()=>{if(!i.multiLocalities)return!1;const oe=o.value[M.value];return!Array.isArray(oe)||oe?.length<2});function Me(){return[y.value,D.value,x.value,O.value,I.value,j.value,U.value,V.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(()=>V.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(()=>O.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>x.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>D.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.watch(()=>y.value,async oe=>{if(!i.setFilterParamsStringsHandler||!i.isParentComponentReady)return!1;i.setFilterParamsStringsHandler(i.filterName,Me())},{deep:!0}),a.onMounted(async()=>{i.loadCountries&&await N()}),e({loadRegionOptions:K,loadCountryOptions:N,resetForm:()=>{o.value={},m.value=[],p.value=[],g.value=[],A.value=[],R.value=[],r("update:modelValue",{}),i.loadCountries&&N()},getFullAddress:()=>H.value,getValue:()=>Me(),autoFillForm:async oe=>{ee=!0;try{await Q(oe)}finally{ee=!1}},autoFillFormSkipReset:async oe=>{ee=!0;try{await P(oe,i.countryId)}finally{ee=!1}}}),(oe,Re)=>(a.openBlock(),a.createElementBlock("div",nC,[a.createElementVNode("div",rC,[oe.loadCountries?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",sC,a.toDisplayString(a.unref(k).country),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(v)],options:a.unref(m),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",aC,a.toDisplayString(a.unref(k).region),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(f)],options:a.unref(p),disabled:oe.disabledFields?.region||a.unref(c),"onUpdate:modelValue":_e,allowClear:oe.allowClear?.region,isLoading:a.unref(c)},null,8,["modelValue","options","disabled","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",oC,a.toDisplayString(a.unref(k).district),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(T)],disabled:oe.disabledFields?.district||a.unref(u),options:a.unref(g),"onUpdate:modelValue":Ie,allowClear:oe.allowClear?.district,isLoading:a.unref(u)},null,8,["modelValue","disabled","options","allowClear","isLoading"])],2),a.createElementVNode("div",{class:a.normalizeClass(`col-${oe.columnWidth} mb-2`)},[a.createElementVNode("label",lC,a.toDisplayString(a.unref(k).locality),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(b)],disabled:oe.disabledFields?.locality||a.unref(d),"onUpdate:modelValue":de,options:a.unref(A),name:a.unref(b),showAddButton:Se.value,isLoading:a.unref(d),multiple:oe.multiLocalities},null,8,["modelValue","disabled","options","name","showAddButton","isLoading","multiple"])],2),a.unref(q)?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",cC,a.toDisplayString(a.unref(k).street),1),a.createVNode(Ht,{modelValue:oe.modelValue[a.unref(M)],disabled:oe.disabledFields?.street||a.unref(h),options:a.unref(R),"onUpdate:modelValue":X,allowClear:oe.allowClear?.street,isLoading:a.unref(h),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",uC,a.toDisplayString(a.unref(k).house),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(w)]||"",disabled:oe.disabledFields?.house,onInput:re},null,40,dC)],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",hC,a.toDisplayString(a.unref(k).building),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(S)]||"",disabled:oe.disabledFields?.building,onInput:me},null,40,fC)],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",pC,a.toDisplayString(a.unref(k).apartment),1),a.createElementVNode("input",{type:"text",class:"form-control",value:oe.modelValue[a.unref(C)]||"",disabled:oe.disabledFields?.apartment,onInput:he},null,40,mC)],2)):a.createCommentVNode("",!0)],64))]),oe.showFullAddress&&a.unref(H)?(a.openBlock(),a.createElementBlock("div",gC,[a.createElementVNode("div",bC,[Re[0]||(Re[0]=a.createElementVNode("strong",null,"Полный адрес:",-1)),a.createTextVNode(" "+a.toDisplayString(a.unref(H)),1)])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-dfe07190"]]),yC={class:"age-from-to-form"},wC={class:"form-group"},CC={key:0,class:"form-label mb-2"},AC={class:"row align-items-center mb-2"},EC={key:0,class:"col-auto"},kC={class:"form-label mb-0"},SC={class:"col"},RC={class:"col"},xC={class:"row align-items-center mb-2"},MC={key:0,class:"col-auto"},TC={class:"form-label mb-0"},DC={class:"col"},LC={class:"col"},OC=Ne(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}),c=a.computed(()=>r.timeTypeOptions!==void 0&&r.timeTypeOptions!==null?r.timeTypeOptions:i),u=a.computed(()=>r.placeholderFrom??null),d=a.computed(()=>r.placeholderTo??null),h=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}),m=a.computed(()=>{const f=l.value.age_from;if(!f)return null;const T=l.value.time_type_from,b=c.value.find(({id:M})=>Number(M)===Number(T))?.label;return b?`${f} ${b}`:null}),p=a.computed(()=>{const f=l.value.age_to;if(!f)return null;const T=l.value.time_type_to,b=c.value.find(({id:M})=>Number(M)===Number(T))?.label;return b?`${f} ${b}`:null}),g=()=>{l.value={...o}},A=()=>{r.onFilterUpdate&&(r.onFilterUpdate(r.nameFrom,m.value),r.onFilterUpdate(r.nameTo,p.value))},R=f=>{if(!f.age_from&&!f.age_to&&!f.time_type_from&&!f.time_type_to){s("update:modelValue",null),s("change",{...o}),A();return}const b=[];f.age_from&&f.time_type_from&&b.push(`age_from[time_type]=${f.time_type_from}&age_from[value]=${f.age_from}`),f.age_to&&f.time_type_to&&b.push(`age_to[time_type]=${f.time_type_to}&age_to[value]=${f.age_to}`);const M=b.length>0?b.join("&")+"&":"";s("update:modelValue",M||null),s("change",{...f}),A()},v=f=>{if(f)try{const T=new URLSearchParams(f),b=T.get("age_from[value]"),M=T.get("age_from[time_type]"),w=T.get("age_to[value]"),S=T.get("age_to[time_type]");l.value={age_from:b?Number(b):null,age_to:w?Number(w):null,time_type_from:M?Number(M):null,time_type_to:S?Number(S):null}}catch(T){console.warn("Error parsing query string:",T)}};return a.watch(()=>r.modelValue,(f,T)=>{f!==T&&(f===null?g():v(f))},{immediate:!0}),a.watch(()=>l.value,f=>{R(f)},{deep:!0}),a.onMounted(()=>{r.modelValue&&v(r.modelValue)}),e({reset:g,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:m.value,to:p.value})}),(f,T)=>(a.openBlock(),a.createElementBlock("div",yC,[a.createElementVNode("div",wC,[f.title?(a.openBlock(),a.createElementBlock("label",CC,a.toDisplayString(f.title),1)):a.createCommentVNode("",!0),a.createElementVNode("div",AC,[u.value?(a.openBlock(),a.createElementBlock("div",EC,[a.createElementVNode("label",kC,a.toDisplayString(u.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",SC,[a.createVNode(br,{modelValue:l.value.age_from,"onUpdate:modelValue":T[0]||(T[0]=b=>l.value.age_from=b),name:f.nameFrom,maskOptions:{regex:"^[0-9]*$"},disabled:f.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",RC,[a.createVNode(Ht,{modelValue:l.value.time_type_from,"onUpdate:modelValue":T[1]||(T[1]=b=>l.value.time_type_from=b),name:`${f.nameFrom}_type`,multiple:!1,options:c.value,allowClear:!1,disabled:f.disabled,placeholder:h.value},null,8,["modelValue","name","options","disabled","placeholder"])])]),a.createElementVNode("div",xC,[d.value?(a.openBlock(),a.createElementBlock("div",MC,[a.createElementVNode("label",TC,a.toDisplayString(d.value),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",DC,[a.createVNode(br,{modelValue:l.value.age_to,"onUpdate:modelValue":T[2]||(T[2]=b=>l.value.age_to=b),name:f.nameTo,maskOptions:{regex:"^[0-9]*$"},disabled:f.disabled},null,8,["modelValue","name","disabled"])]),a.createElementVNode("div",LC,[a.createVNode(Ht,{modelValue:l.value.time_type_to,"onUpdate:modelValue":T[3]||(T[3]=b=>l.value.time_type_to=b),name:`${f.nameTo}_type`,multiple:!1,options:c.value,allowClear:!1,disabled:f.disabled,placeholder:h.value},null,8,["modelValue","name","options","disabled","placeholder"])])])])]))}}),[["__scopeId","data-v-37fca95f"]]),BC={class:"modal-header pb-4 border-bottom-0"},FC={key:0,class:"modal-title"},_C={key:0,class:"modal-body pt-0"},PC={class:"modal-body-content"},NC={key:1,class:"modal-footer row justify-content-start"},IC={class:"modal-footer-content"},Ed=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:""},fullscreen:{type:Boolean,default:!1},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=g=>{g.key==="Escape"&&s()},l=a.computed(()=>t.modelValue||t.modalVisibility);let c=0,u=!1;const d=()=>{if(c>0){document.body.style.overflow="hidden";return}document.body.style.overflow=""},h=()=>{u||(window.addEventListener("keydown",o),u=!0)},m=()=>{u&&(window.removeEventListener("keydown",o),u=!1)},p=(g,A)=>{if(g&&!A){c+=1,c===1&&h(),d();return}!g&&A&&(c=Math.max(0,c-1),c===0&&m(),d())};return a.watch(l,p,{immediate:!0}),a.onUnmounted(()=>{l.value&&(c=Math.max(0,c-1)),c===0&&m(),d()}),(g,A)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[n.modelValue||n.modalVisibility?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["r3ui-modal-wrapper",{"r3ui-modal-wrapper--fullscreen":n.fullscreen}])},[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&&!n.fullscreen,"modal-sm":n.size==="sm"&&!n.fullscreen,"modal-lg":n.size==="lg"&&!n.fullscreen,"modal-xl":n.size==="xl"&&!n.fullscreen}])},[a.createElementVNode("div",{class:"modal-content p-4",style:a.normalizeStyle(n.style)},[a.createElementVNode("div",BC,[n.title?(a.openBlock(),a.createElementBlock("h4",FC,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",_C,[a.createElementVNode("div",PC,[a.renderSlot(g.$slots,"modal-body"),a.renderSlot(g.$slots,"body")])])):a.createCommentVNode("",!0),a.unref(r)["modal-footer"]||a.unref(r).footer?(a.openBlock(),a.createElementBlock("div",NC,[a.createElementVNode("div",IC,[a.renderSlot(g.$slots,"modal-footer"),a.renderSlot(g.$slots,"footer")])])):a.createCommentVNode("",!0)],4)],2)],2)):a.createCommentVNode("",!0)]))}}),VC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0RSURBVHgB7Z0NcFTVFcf/770NFQYVTHRECFk+DIJCgoqViLASR21N8KOCoB0Jgh21HZFaO7RSxdFarU1R62CnYk0cRcFaEFKr0OBCJWmH0gStoUbADYtCCZEvh2A2b1/f6WbT996+Jcn7vJvc38yd5d5sJsv77z333HPPvRfgcDgcDofD4XA4HA6Hw+FwOBwOh8OxgYDewyC1BNVSqJaCjnphx2uyaDnSUSKa1ya11HeUI+gFZLLAJFhILdM6XgvhLCRyWC2bO157heCsQ6Ler5b31XJYLYqHhf5mGVItAccBQmpZBu9FTVdehvMWwxVYN9EhtTzS8dolZwxEy8jhaDz3bOFQ3hChZVQQLQXj0JI7VGrNz8MJ7XsbmzAg+rncf0cDslu+xIAdnyjD9uxVcg8fRXbzl8hF9wirpVItFWAUVgUOoRvCkqATxgr1V0wUGufeKjUaRbQKiV+5Ss7fsFUp2NWkjDn+FbK7+JWIWuYhIThTsCZwEAnzF0r3hn5ZOFFcJFRfNVlo/OECqREe8NoaediLq5WiHTuVwi7ErlDLIjDkkLEkMPVYcqBMnZjh5+GTH9wh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"row mb-3 flex-column mx-0"},UC={class:"col-auto mb-3"},GC={class:"image-container",style:{width:"90px",height:"90px"}},YC=["src","alt"],QC=["src"],KC=["src"],JC=["src"],qC=["src"],$C={class:"col"},ZC={class:"confirmation-content"},XC={key:0,class:"mb-3"},eA={key:1,class:"text-muted"},tA={key:0,class:"row"},iA={class:"col-auto"},nA=["disabled"],rA={class:"col"},sA=["disabled"],aA={key:0,class:"spinner-border spinner-border-sm me-2",role:"status"},oA=Ne(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")},c=()=>{t.loading||(i("cancel"),i("update:modalVisibility",!1))},u=d=>{console.warn("Failed to load image:",d.target.src)};return(d,h)=>(a.openBlock(),a.createBlock(Ed,{"model-value":d.modalVisibility,"onUpdate:modelValue":r,size:d.size,title:d.title},{"modal-body":a.withCtx(()=>[a.createElementVNode("div",WC,[a.createElementVNode("div",UC,[a.createElementVNode("div",GC,[d.imageSrc?(a.openBlock(),a.createElementBlock("img",{key:0,class:"w-100",src:d.imageSrc,alt:d.imageAlt||"Изображение"},null,8,YC)):d.mode==="success"?(a.openBlock(),a.createElementBlock("img",{key:1,class:"w-100",src:a.unref(jC),alt:"Успех",onError:u},null,40,QC)):d.mode==="warning"?(a.openBlock(),a.createElementBlock("img",{key:2,class:"w-100",src:a.unref(zC),alt:"Предупреждение",onError:u},null,40,KC)):d.mode==="error"?(a.openBlock(),a.createElementBlock("img",{key:3,class:"w-100",src:a.unref(HC),alt:"Ошибка",onError:u},null,40,JC)):(a.openBlock(),a.createElementBlock("img",{key:4,class:"w-100",src:a.unref(VC),alt:"Подтверждение",onError:u},null,40,qC))])]),a.createElementVNode("div",$C,[a.createElementVNode("div",ZC,[d.message?(a.openBlock(),a.createElementBlock("h5",XC,a.toDisplayString(d.message),1)):a.createCommentVNode("",!0),d.description?(a.openBlock(),a.createElementBlock("p",eA,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",tA,[a.createElementVNode("div",iA,[d.mode==="confirmation"?(a.openBlock(),a.createElementBlock("button",{key:0,class:"btn btn-light",onClick:c,disabled:d.loading},a.toDisplayString(d.cancelText),9,nA)):a.createCommentVNode("",!0)]),a.createElementVNode("div",rA,[a.createElementVNode("button",{class:a.normalizeClass([s(),"w-100"]),onClick:l,disabled:d.loading},[d.loading?(a.openBlock(),a.createElementBlock("span",aA)):a.createCommentVNode("",!0),a.createTextVNode(" "+a.toDisplayString(o()),1)],10,sA)])])):a.createCommentVNode("",!0)],!0)]),_:3},8,["model-value","size","title"]))}}),[["__scopeId","data-v-d29a06ff"]]),lA={key:0,class:"filter-modal-wrapper"},cA={class:"filter-modal-dialog"},uA={class:"filter-modal-content"},dA={class:"filter-modal-header"},hA={key:0,class:"filter-modal-title"},fA={class:"filter-modal-body"},pA={class:"filter-modal-footer"},kd=Ne(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",lA,[a.createElementVNode("div",{class:"filter-modal-overlay",onClick:r}),a.createElementVNode("div",cA,[a.createElementVNode("div",uA,[a.createElementVNode("div",dA,[o.title?(a.openBlock(),a.createElementBlock("h4",hA,a.toDisplayString(o.title),1)):a.createCommentVNode("",!0),a.createElementVNode("button",{type:"button",class:"btn-close",onClick:r})]),a.createElementVNode("div",fA,[a.renderSlot(o.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",pA,[a.renderSlot(o.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-fc16a7b7"]]),Ko=Symbol("r3uiTableDefaultApi"),Jo=Symbol("setFilterParamsStrings"),qo=Symbol("selectedFilterTitles"),$o=Symbol("tableFilters"),Zo=Symbol("filterModalVisibility"),Xo=Symbol("resetFilters"),el=Symbol("applyFilters"),Sd=Symbol("editTableColumnsModalVisibility"),Rd=Symbol("tableOptions"),xd=Symbol("editTableColumnVisibility"),Md=Symbol("isTableCoumnsHidden"),Td=Symbol("unselectAllTableColumnCheckboxes"),Dd=Symbol("selectAllTableColumnCheckboxes"),Ld=Symbol("handleColumnsChanged"),Od=Symbol("handleColumnsApply"),tl=Symbol("table");function Bd(){const n=a.inject(Ko,null);if(n)return n;const e=a.inject(Zo,null)??a.inject("filterModalVisibility"),t=a.inject(qo,null)??a.inject("selectedFilterTitles"),i=a.inject(Jo,null)??a.inject("setFilterParamsStrings"),r=a.inject(el,null)??a.inject("applyFilters"),s=a.inject(Xo,null)??a.inject("resetFilters"),o=a.inject($o,null)??a.inject("tableFilters"),l=a.inject(tl,null)??a.inject("table");if(!e||!t||!i||!r||!s||!o||!l)throw new Error("useR3uiTableDefaultInject: контекст useTableDefault не найден");const c={filterModalVisibility:e,selectedFilterTitles:t,setFilterParamsStrings:i,applyFilters:r,resetFilters:s,tableFilters:o,table:l};return a.provide(Ko,c),c}const mA={class:"row"},gA={class:"col-auto"},bA={class:"col-auto ps-0"},vA=a.defineComponent({__name:"TableFilterModalShell",props:{filterLabel:{default:"Filters"},applyLabel:{default:"Apply"},resetLabel:{default:"Reset"},modalTitle:{default:"Filters"}},emits:["reset"],setup(n,{emit:e}){const t=n,{filterModalVisibility:i,applyFilters:r,resetFilters:s,table:o}=Bd(),l=e;function c(){s?.(),l("reset")}function u(){const d=o?.value!==void 0?o.value:o;r?.(d),i.value=!1}return(d,h)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createVNode(Bi,{styles:"light",label:t.filterLabel,icon:"sliders2","icon-position":"right",onSubmit:h[0]||(h[0]=m=>i.value=!0)},null,8,["label"]),a.createVNode(kd,{title:t.modalTitle,"modal-visibility":a.unref(i),onEmitModalVisibility:h[1]||(h[1]=m=>i.value=m)},{"modal-body":a.withCtx(()=>[a.renderSlot(d.$slots,"fields")]),"modal-footer":a.withCtx(()=>[a.renderSlot(d.$slots,"footer",{reset:c,apply:u},()=>[a.createElementVNode("div",mA,[a.createElementVNode("div",gA,[a.createVNode(Bi,{label:t.applyLabel,onSubmit:u},null,8,["label"])]),a.createElementVNode("div",bA,[a.createVNode(Bi,{styles:"light",label:t.resetLabel,icon:"x-lg","icon-position":"right",onSubmit:c},null,8,["label"])])])])]),_:3},8,["title","modal-visibility"])],64))}}),yA={key:0,class:"px-0"},wA={class:"modal-dialog modal-dialog-centered modal-xl"},CA={class:"modal-content py-2 px-4"},AA={class:"modal-header mb-3"},EA={class:"modal-title"},kA={class:"modal-body row"},SA={class:"modal-footer border-0 row justify-content-start pt-0 pb-3"},Fd=Ne(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",yA,[a.createElementVNode("div",{class:"overlay",onClick:i[0]||(i[0]=r=>t.$emit("emitModalVisibility",!1))}),a.createElementVNode("div",wA,[a.createElementVNode("div",CA,[a.createElementVNode("div",AA,[a.createElementVNode("h3",EA,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",kA,[a.renderSlot(t.$slots,"modal-body",{},void 0,!0)]),a.createElementVNode("div",SA,[a.renderSlot(t.$slots,"modal-footer",{},void 0,!0)])])])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-420e2861"]]),RA={class:"row mb-4 mx-0","data-test":"PageTitle"},xA={class:"col-12"},MA={class:"row align-items-center"},TA={class:"col-auto"},DA={class:"col d-flex justify-content-end"},LA=Ne(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",RA,[a.createElementVNode("div",xA,[a.createElementVNode("div",MA,[a.createElementVNode("div",TA,[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",DA,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])])]))}}),[["__scopeId","data-v-fd1eb9a3"]]),OA={class:"card-body"},BA={class:"card-text"},FA=Ne({__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",OA,[a.renderSlot(e.$slots,"bodyHeader",{},void 0,!0),a.createElementVNode("p",BA,[a.renderSlot(e.$slots,"default",{},void 0,!0)])])],2))}},[["__scopeId","data-v-5fa81802"]]),_A={class:"d-flex align-items-center justify-content-center bg-white shadow-sm py-3"},PA=a.defineComponent({__name:"Footer",props:{copyrightText:{type:String,required:!0}},setup(n){const e=n;return(t,i)=>(a.openBlock(),a.createElementBlock("footer",_A,a.toDisplayString(e.copyrightText)+" "+a.toDisplayString(a.unref(Ee)().year()),1))}}),NA={class:"custom-dropdown"},IA={style:{"border-bottom":"2px solid #000"}},VA={class:"dropdown-list-wrapper"},HA={key:0,class:"custom-dropdown-menu"},zA=["disabled","onClick","onKeydown"],il=Ne({__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,c)=>(a.openBlock(),a.createElementBlock("div",NA,[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},[c[1]||(c[1]=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",IA,a.toDisplayString(n.title),1),c[2]||(c[2]=a.createElementVNode("i",{class:"bi bi-chevron-up dropdown-edit",style:{"font-size":"12px","padding-inline-start":"5px"}},null,-1))],32)),a.createElementVNode("div",VA,[t.value?(a.openBlock(),a.createElementBlock("ul",HA,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.links,(u,d)=>(a.openBlock(),a.createElementBlock("li",{key:d},[u.hidden?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,type:"button",class:a.normalizeClass(["dropdown-item",{disabled:u?.disabled}]),disabled:!!u?.disabled,onMousedown:c[0]||(c[0]=a.withModifiers(()=>{},["prevent"])),onClick:h=>r(u?.action),onKeydown:[a.withKeys(a.withModifiers(h=>r(u?.action),["prevent"]),["enter"]),a.withKeys(a.withModifiers(h=>r(u?.action),["prevent"]),["space"])]},a.toDisplayString(u?.title),43,zA))]))),128))])):a.createCommentVNode("",!0)])]))}},[["__scopeId","data-v-93106856"]]),jA="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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D0rctxGshJcwL48ccfX129evUDgCUAiymnuqVS6V7+FOZPG7l7doIYVQfgYx1cX75cIcRm/kjA+cC/AdgTzC0pucD7AAAAAElFTkSuQmCC'/%3e%3c/defs%3e%3c/svg%3e",WA=["src","alt"],_d=Ne(a.defineComponent({__name:"Logo",props:{src:{default:jA},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,c)=>(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,WA),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"]]),UA={class:"navbar navbar-expand-md navbar-light bg-white border-bottom hide-to-print r3ui-header"},GA={class:"row align-items-center"},YA={class:"col-auto pe-0"},QA={class:"col-auto ps-0 text-wrap mx-3 r3ui-header-label"},KA={class:"row"},JA={class:"col-auto d-flex align-items-center"},qA={key:1,class:"text-muted"},$A={class:"col-auto"},ZA=Ne(a.defineComponent({__name:"Header",props:{isAuthenticated:{type:Boolean,default:!1},user:{type:Object,default:null},brandText:{type:String,required:!0},loginText:{type:String,default:"Authorization"},rawDropdownLinks:{type:Array,default:()=>[]}},emits:["navigate","logout"],setup(n,{emit:e}){const t=n,i=e,r=a.computed(()=>t.rawDropdownLinks.map(s=>s.name==="logout"?{...s,action:()=>i("logout")}:s.name.includes("http")?{...s,action:()=>i("navigate",s.name,{external:!0})}:{...s,action:()=>i("navigate",`/${s.name}`)}));return(s,o)=>(a.openBlock(),a.createElementBlock("div",UA,[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",GA,[a.createElementVNode("div",YA,[a.renderSlot(s.$slots,"logo",{},()=>[a.createVNode(_d,{class:"r3ui-header-logo",brandText:t.brandText},null,8,["brandText"])],!0)]),a.createElementVNode("div",QA,a.toDisplayString(t.brandText),1)])]),a.createElementVNode("div",KA,[a.createElementVNode("div",JA,[t.isAuthenticated?(a.openBlock(),a.createBlock(il,{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",qA,a.toDisplayString(t.loginText),1))]),a.createElementVNode("div",$A,[a.renderSlot(s.$slots,"language-selector",{},void 0,!0)])])],2)]))}}),[["__scopeId","data-v-a63a7e7f"]]),XA={class:"col-12 divider divider__wrapper","data-test":"Divider"},nl={__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",XA,[a.createElementVNode("div",{class:a.normalizeClass(e.className),style:a.normalizeStyle(`height: ${e.height}px ; background-color:${e.colorHEX};`)},null,6)]))}},rl=Symbol("expandAccordion"),sl=Symbol("expandedAccordion"),al=Symbol("sidebarContentVisibility"),ol=Symbol("toggleSidebar"),Pd=Symbol("showSpinner"),Nd=Symbol("hideSpinner"),Id=Symbol("addToLocalStorage");function ll(){return a.inject(rl,null)??a.inject("expandAccordion")}function cl(){return a.inject(sl,null)??a.inject("expandedAccordion")}function Vd(){return a.inject(al,null)??a.inject("sidebarContentVisibility")}function Hd(){return a.inject(ol,null)??a.inject("toggleSidebar")}function eE(){return a.inject(Pd,null)??a.inject("showSpinner")}function tE(){return a.inject(Nd,null)??a.inject("hideSpinner")}function iE(){return a.inject(Id,null)??a.inject("addToLocalStorage")}const nE=n=>{const e=Vd(),t=Hd(),i=a.ref({}),r=(l,c)=>{i.value[c]===l?i.value[c]=null:i.value[c]=l},s=a.computed(()=>n.value),o=()=>{if(i.value={},!e?.value)return;const l=c=>{c.childrens?.length&&c.childrens.forEach(l),c.isActive&&c.uniqueKey&&r(c.uniqueKey,c.level)};n.value.forEach(l)};return a.provide(rl,r),a.provide("expandAccordion",r),a.provide(sl,i),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}},rE={key:0},sE=["href","target","rel"],aE=["innerHTML"],oE={key:1},lE=["id"],cE=["innerHTML"],uE=["id"],dE={class:"accordion-body"},zd=Ne(a.defineComponent({name:"SidebarLink",__name:"SidebarLink",props:{sidebarLink:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=ll(),r=cl(),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 c=a.resolveComponent("SidebarLink",!0);return a.openBlock(),a.createElementBlock("div",null,[n.sidebarLink.childrens?.length?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",rE,[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?"sidebar-link-icon":""])},null,10,aE),a.createElementVNode("span",null,a.toDisplayString(n.sidebarLink.label),1)],2)):a.createCommentVNode("",!0)],8,sE)])),n.sidebarLink.childrens?.length?(a.openBlock(),a.createElementBlock("div",oE,[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]=u=>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?"sidebar-link-icon":""])},null,10,cE),a.createTextVNode(" "+a.toDisplayString(n.sidebarLink.label),1)],2)],8,lE),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",dE,[a.createElementVNode("ul",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.sidebarLink.childrens,u=>(a.openBlock(),a.createElementBlock("li",{key:u.uniqueKey},[a.createVNode(c,{sidebarLink:u,onNavigate:l[2]||(l[2]=d=>t("navigate",d))},null,8,["sidebarLink"])]))),128))])])],10,uE)],2)):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-859907dd"]]),hE={key:0},fE={key:0},pE=["title"],mE=["innerHTML"],gE={key:1},bE={key:0,class:"d-flex position-relative",style:{"z-index":"999",top:"-50px"}},vE={class:"hidden-div"},yE={key:1},wE=["href","target","rel"],CE=["title"],AE=["innerHTML"],EE={key:0,class:"ms-2"},kE={key:1,class:"btn btn-light w-100 text-align-left border-0 py-3 bg-white",type:"button"},SE={key:0,class:"ms-2"},jd=Ne(a.defineComponent({name:"CollapsedSidebarLink",__name:"CollapsedSidebarLink",props:{link:{type:Object,required:!0}},emits:["navigate"],setup(n,{emit:e}){const t=e,i=ll(),r=cl(),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 c=a.resolveComponent("CollapsedSidebarLink",!0);return n.link.isVisible?(a.openBlock(),a.createElementBlock("div",hE,[n.link.childrens?.length?(a.openBlock(),a.createElementBlock("div",fE,[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]=u=>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,mE)):(a.openBlock(),a.createElementBlock("span",gE,a.toDisplayString(n.link.label),1))],10,pE),a.unref(r)&&a.unref(r)[n.link.level]===n.link.uniqueKey?(a.openBlock(),a.createElementBlock("div",bE,[a.createElementVNode("div",vE,[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,u=>(a.openBlock(),a.createElementBlock("li",{class:"mb-0",key:u.uniqueKey},[a.createVNode(c,{link:u,onNavigate:l[1]||(l[1]=d=>t("navigate",d))},null,8,["link"])]))),128))])])])):a.createCommentVNode("",!0)])):(a.openBlock(),a.createElementBlock("div",yE,[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,AE),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",EE,"↗")):a.createCommentVNode("",!0)],8,CE)):(a.openBlock(),a.createElementBlock("button",kE,[a.createElementVNode("span",null,a.toDisplayString(n.link.label),1),n.link.isExternal?(a.openBlock(),a.createElementBlock("span",SE,"↗")):a.createCommentVNode("",!0)]))],8,wE)]))])):a.createCommentVNode("",!0)}}}),[["__scopeId","data-v-f180b3df"]]),RE={key:0},xE={class:"accordion accordion-flush",id:"accordionMenu"},ME={key:1},TE={class:"row"},DE={class:"col-12"},LE={class:"sidebar-footer p-3"},Wd=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}=nE(a.computed(()=>t.links));return(l,c)=>(a.openBlock(),a.createElementBlock("div",{id:"sidebarContent",class:a.normalizeClass(["sidebar sidebarContent",{"collapse-width":!r.value}])},[r.value?(a.openBlock(),a.createElementBlock("div",RE,[a.createElementVNode("div",xE,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),u=>(a.openBlock(),a.createElementBlock("div",{key:u.uniqueKey},[a.createVNode(zd,{sidebarLink:u,onNavigate:c[0]||(c[0]=d=>i("navigate",d))},null,8,["sidebarLink"])]))),128))])])):a.createCommentVNode("",!0),r.value?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("div",ME,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),u=>(a.openBlock(),a.createElementBlock("div",{key:u.uniqueKey},[a.createVNode(jd,{link:u,onNavigate:c[1]||(c[1]=d=>i("navigate",d))},null,8,["link"])]))),128))])),a.createElementVNode("div",TE,[a.createElementVNode("div",DE,[a.createVNode(nl)])]),a.createElementVNode("div",LE,[a.renderSlot(l.$slots,"footer")])],2))}}),OE=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()},c=()=>{localStorage.getItem("sideBarVisibility")==="0"?s():o()},u=()=>{setTimeout(()=>{const d=t.value?.offsetWidth||0,h=r.value||0;if(d>0&&h>0){const m=window.innerWidth<768;i.value=m?d:d-h-20}},50)};return a.provide(al,e),a.provide("sidebarContentVisibility",e),a.provide(ol,l),a.provide("toggleSidebar",l),a.watch(r,()=>{u()},{deep:!0}),a.onMounted(()=>{c(),u(),window.addEventListener("resize",u,!0)}),a.onBeforeUnmount(()=>{window.removeEventListener("resize",u,!0)}),{isAuthenticated:n,contentWidth:i,clientWidth:t,sidebarWidth:r,toggleSidebar:l,sidebarContentVisibility:e}},BE={class:"container-fluid p-0"},FE={class:"py-4",style:{"min-height":"90vh"}},_E=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}=OE(a.computed(()=>t.isAuthenticated));return(c,u)=>(a.openBlock(),a.createElementBlock("div",BE,[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(Wd,{links:t.sidebarLinks,"is-collapsed":!a.unref(l),onNavigate:u[0]||(u[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",FE,[a.renderSlot(c.$slots,"breadcrumbs"),a.renderSlot(c.$slots,"default")])],4)],2)]))}}),PE={class:"row hide-to-print m-0","data-test":"Breadcrumbs"},NE={class:"col"},IE={"aria-label":"breadcrumb"},VE={class:"breadcrumb row"},HE=["aria-current"],zE=["href","onClick"],jE={key:1,class:"text-nowrap"},WE=Ne(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",PE,[a.createElementVNode("div",NE,[a.createElementVNode("nav",IE,[a.createElementVNode("ol",VE,[(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",jE,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,zE))],10,HE))),128))])])])]))}}),[["__scopeId","data-v-d57a38db"]]),UE=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(Ht,{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))}}),GE={key:0,class:"card-header"},YE={class:"card-title mb-0"},QE={class:"card-body"},KE={class:"row"},JE={class:"row align-items-center"},qE={class:"col-auto label pe-0"},$E={class:"col-auto"},ZE={key:0,class:"mt-3"},XE=Ne(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",GE,[a.createElementVNode("h5",YE,a.toDisplayString(i.title),1)])):a.createCommentVNode("",!0),a.createElementVNode("div",QE,[a.createElementVNode("div",KE,[(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",JE,[a.createElementVNode("div",qE,a.toDisplayString(s.label)+":",1),a.createElementVNode("div",$E,[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",ZE,[a.renderSlot(i.$slots,"default",{},void 0,!0)])):a.createCommentVNode("",!0)])],2))}}),[["__scopeId","data-v-cdf01ae2"]]),e0={class:"placeholder-glow"},t0={class:"page-card"},i0={class:"row hide-to-print card-header mx-0 w-100"},n0={class:"col"},r0={class:"row flex-nowrap align-items-center"},s0={class:"col-auto"},a0={key:0,class:"col-auto"},o0={class:"row",style:{padding:"20px"}},l0={class:"d-flex align-items-start"},c0={class:"nav flex-column nav-pills",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},u0=["onClick"],d0={class:"tab-content",id:"v-pills-tabContent"},h0={key:0,class:"title"},f0={key:1},p0={key:0},m0={key:0},g0=["title"],b0={key:2},v0={class:"row"},y0={class:"col-12"},w0=Ne(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),c=a.computed(()=>!!s.footer),u=d=>{r.value=d,i("active-tab",t.tabs[d])};return a.onMounted(()=>{}),(d,h)=>(a.openBlock(),a.createElementBlock("div",null,[a.withDirectives(a.createElementVNode("p",e0,[...h[0]||(h[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",t0,[a.createElementVNode("div",i0,[a.createElementVNode("div",n0,[a.createElementVNode("div",r0,[a.createElementVNode("div",s0,[l.value?a.renderSlot(d.$slots,"header",{key:0},void 0,!0):a.createCommentVNode("",!0)])])]),d.actionLinks.length>0?(a.openBlock(),a.createElementBlock("div",a0,[a.createVNode(il,{title:d.actionsTitle,links:d.actionLinks,onClick:o},null,8,["title","links"])])):a.createCommentVNode("",!0)]),a.createElementVNode("div",o0,[a.createElementVNode("div",l0,[a.createElementVNode("div",c0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(m,p)=>a.withDirectives((a.openBlock(),a.createElementBlock("button",{key:p,class:a.normalizeClass(["nav-link me-5",[p===r.value?"active":""]]),onClick:g=>u(p)},a.toDisplayString(m.navLink),11,u0)),[[a.vShow,m.navLink]])),128))]),a.createElementVNode("div",d0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(d.tabs,(m,p)=>(a.openBlock(),a.createElementBlock("div",{key:p,class:a.normalizeClass(["tab-pane fade row",[p===r.value?"show active d-flex":""]])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(m.contents,(g,A)=>(a.openBlock(),a.createElementBlock("div",{key:A,class:a.normalizeClass(`col-${d.col} mb-3`)},[g.subtitle?(a.openBlock(),a.createElementBlock("div",h0,a.toDisplayString(g.subtitle)+": ",1)):a.createCommentVNode("",!0),!g.type||g.type==="text"?(a.openBlock(),a.createElementBlock("div",f0,[typeof g.text=="string"?(a.openBlock(),a.createElementBlock("div",p0,a.toDisplayString(g.text),1)):g.text?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(g.text,(R,v)=>(a.openBlock(),a.createElementBlock("div",{key:v},[typeof R=="string"?(a.openBlock(),a.createElementBlock("div",m0,a.toDisplayString(R),1)):a.createCommentVNode("",!0),typeof R=="object"?(a.openBlock(),a.createElementBlock("div",{key:1,title:R?.description||""},a.toDisplayString(R.name),9,g0)):a.createCommentVNode("",!0)]))),128)):a.createCommentVNode("",!0)])):g.type==="custom"&&g.slotName?(a.openBlock(),a.createElementBlock("div",b0,[a.renderSlot(d.$slots,g.slotName,{content:g},void 0,!0)])):a.createCommentVNode("",!0)],2))),128))],2))),128))])]),c.value?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createVNode(nl,{class:"mt-3"}),a.createElementVNode("div",v0,[a.createElementVNode("div",y0,[a.renderSlot(d.$slots,"footer",{},void 0,!0)])])],64)):a.createCommentVNode("",!0)])],512),[[a.vShow,!d.isLoading]])]))}}),[["__scopeId","data-v-da7fe9dd"]]),C0={key:0,class:"row w-100 parent"},A0={class:"col-12 wrapper w-100"},E0=["innerHTML"],Ud={__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",C0,[a.createElementVNode("div",A0,[a.createElementVNode("div",{class:a.normalizeClass(["alert align-items-center message",[e.isError?"alert-danger":"alert-success"]]),innerHTML:t.value},null,10,E0),a.createElementVNode("i",{class:"bi bi-x-lg",onClick:i})])])):a.createCommentVNode("",!0)}},k0={key:0,class:"row","data-test":"ErrorMessageComponent"},S0={class:"col-12",id:"alert"},R0={key:0,class:"bi bi-exclamation-triangle pe-2","aria-hidden":"true"},x0=["innerHTML"],M0=Ne(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",k0,[a.createElementVNode("div",S0,[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",R0)):a.createCommentVNode("",!0),r.asHtml?(a.openBlock(),a.createElementBlock("div",{key:1,innerHTML:i.value},null,8,x0)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(i.value),1)],64))],2)])])):a.createCommentVNode("",!0)}}),[["__scopeId","data-v-8fc0656d"]]),T0={class:"accordion-header",style:{background:"transparent"}},D0=["aria-expanded","aria-controls"],L0={key:0},O0=["id"],B0={class:"accordion-body px-0"},F0=Ne(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=c=>!!r[c],l=()=>{const c=!t.isCollapsed;i("update-visibility",c)};return a.watch(()=>t.isCollapsedDefault,c=>{i("update-visibility",c)},{deep:!0}),(c,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["accordion accordion-flush",{"w-100":c.fullWidth}]),style:{background:"transparent"}},[a.createElementVNode("div",{class:a.normalizeClass(["accordion-item",{"border-bottom":c.isVisibleBorderBottom}]),style:{background:"transparent"}},[a.createElementVNode("h2",T0,[a.createElementVNode("button",{onClick:l,class:a.normalizeClass(["accordion-button collapsed ps-0",{visible:!c.isCollapsed,"fw-bolder":c.isTitleBold}]),style:a.normalizeStyle(`font-size:${c.titleFontSize}px;`),type:"button","aria-expanded":!c.isCollapsed,"aria-controls":`accordion-${s.value}`},a.toDisplayString(c.title),15,D0)]),a.createVNode(a.Transition,{name:"fade"},{default:a.withCtx(()=>[o("accordion-body")?(a.openBlock(),a.createElementBlock("div",L0,[a.withDirectives(a.createElementVNode("div",{class:"accordion-collapse collapse show",id:`accordion-${s.value}`},[a.createElementVNode("div",B0,[a.renderSlot(c.$slots,"accordion-body",{},void 0,!0)])],8,O0),[[a.vShow,!c.isCollapsed]])])):a.createCommentVNode("",!0)]),_:3})],2)],2))}}),[["__scopeId","data-v-99bfaf08"]]),_0={class:"accordion-header",style:{background:"transparent"}},P0=["onClick"],N0={class:"d-flex align-items-center w-100"},I0={class:"d-flex align-items-center flex-grow-1"},V0=["value","id","onChange"],H0={class:"form-check-label ps-2 text-body flex-grow-1"},z0={class:"accordion-collapse collapse show","aria-labelledby":"flush-animal-type","data-bs-parent":""},j0={class:"col d-flex flex-wrap px-4"},W0={class:"form-check"},U0=["value","id"],G0=["for"],Y0=Ne(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),c=a.ref([]),u=(g,A)=>{const R=g.target;if(R.tagName==="INPUT"||R.closest(".form-check-input"))return!1;if(R.tagName==="SPAN"||R.closest(".form-check-label"))return l.value!==Number(A)?(l.value=Number(A),!0):(l.value=null,!0);if(l.value!==Number(A))return l.value=Number(A),!0;l.value=null},d=g=>{const A=i.kindGroups.find(v=>v.id===g);if(!A)return;if(s.value.includes(String(g))){const v=A.kinds.map(T=>String(T.id)),f=[...o.value];v.forEach(T=>{f.includes(T)||f.push(T)}),o.value=f}else{const v=A.kinds.map(f=>String(f.id));o.value=o.value.filter(f=>!v.includes(String(f)))}},h=()=>{a.nextTick(()=>{m()})},m=()=>{const g=[];i.kindGroups.forEach((v,f)=>{const T=c.value?.[f];if(!T)return;const b=v.kinds.map(w=>String(w.id)),M=o.value.filter(w=>b.includes(String(w)));M.length===0?(T.indeterminate=!1,T.checked=!1):M.length===b.length?(T.indeterminate=!1,T.checked=!0,g.push(String(v.id))):(T.indeterminate=!0,T.checked=!1)});const A=s.value.map(String).sort(),R=g.map(String).sort();JSON.stringify(A)!==JSON.stringify(R)&&(s.value=g)};a.watch(()=>o.value,g=>{r("emitSelectedKinds",g)},{deep:!0}),a.watch(()=>s.value,g=>{r("emitSelectedKindGroups",g)},{deep:!0}),a.onMounted(()=>{i.defaultSelectedKinds.length>0&&(o.value=[...i.defaultSelectedKinds]),i.defaultSelectedKindGroups.length>0&&(s.value=[...i.defaultSelectedKindGroups]),a.nextTick(()=>{m()})});const p=a.computed(()=>u);return e({toggleAccordion:u}),(g,A)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.kindGroups,(R,v)=>(a.openBlock(),a.createElementBlock("div",{class:"accordion-item border-bottom",style:{background:"transparent"},key:R.id},[g.kindGroups[v].kinds.length>0?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("div",_0,[a.createElementVNode("button",{class:a.normalizeClass(["accordion-button ps-0",{collapsed:l.value===Number(v)}]),type:"button",style:{background:"transparent"},onClick:f=>p.value(f,v)},[a.createElementVNode("div",N0,[a.createElementVNode("div",I0,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input m-0",type:"checkbox",ref_for:!0,ref_key:"groupCheckbox",ref:c,value:`${R.id}`,id:`${g.checkboxName}_${v}`,name:"kind_group","onUpdate:modelValue":A[0]||(A[0]=f=>s.value=f),onClick:A[1]||(A[1]=a.withModifiers(()=>{},["stop"])),onChange:f=>d(R.id)},null,40,V0),[[a.vModelCheckbox,s.value]]),a.createElementVNode("span",H0,a.toDisplayString(R.name),1)]),a.createElementVNode("i",{class:a.normalizeClass(["bi bi-chevron-down accordion-icon",{rotated:l.value===Number(v)}])},null,2)])],10,P0)]),a.withDirectives(a.createElementVNode("div",z0,[a.createElementVNode("div",j0,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(g.kindGroups[v].kinds,(f,T)=>(a.openBlock(),a.createElementBlock("div",{class:"col-6 mb-2",key:T},[a.createElementVNode("div",W0,[a.withDirectives(a.createElementVNode("input",{class:"form-check-input",type:"checkbox",value:`${f.id}`,id:`${g.checkboxName}_${f.id}`,name:"kinds","onUpdate:modelValue":A[2]||(A[2]=b=>o.value=b),onChange:h},null,40,U0),[[a.vModelCheckbox,o.value]]),a.createElementVNode("label",{class:"form-check-label",for:`${g.checkboxName}_${f.id}`},[a.createElementVNode("small",null,a.toDisplayString(f.name),1)],8,G0)])]))),128))])],512),[[a.vShow,l.value===Number(v)]])],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],c,u;l!=null&&typeof l=="object"&&(l.__proto__===r||l.__proto__===s)&&(c=i.findIndex(d=>d.subject===l),c>-1?t[o]=i[c].copy:(u=Object.assign(Array.isArray(l)?[]:{},l),i.unshift({subject:l,copy:u}),t[o]=this.deepClone(l,u,i)))}return t}}let Q0=class Vh 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",c=>{c.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 Vh(this.table,e,this),this.childPopup}};class He 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 Q0(this.table,e,t)}alert(e,t){return this.table.alertManager.alert(e,t)}clearAlert(){return this.table.alertManager.clear()}}var K0={rownum:function(n,e,t,i,r,s){return s.getPosition()}};class Sr extends He{static moduleName="accessor";static accessors=K0;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":Sr.accessors[e]?t=Sr.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,c,u,d;o.modules.accessor&&(c=o.modules.accessor[i]||o.modules.accessor.accessor||!1,c&&(l=o.getFieldValue(s),l!="undefined"&&(d=o.getComponent(),u=typeof c.params=="function"?c.params(l,s,t,d,r):c.params,o.setFieldValue(s,c.accessor(l,s,t,u,d,r)))))}),s}}var J0={method:"GET"};function ul(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(ul(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(ul(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}function q0(n){var e=ul(n),t=[];return e.forEach(function(i){t.push(encodeURIComponent(i.key)+"="+encodeURIComponent(i.value))}),t.join("&")}function Gd(n,e,t){return n&&t&&Object.keys(t).length&&(!e.method||e.method.toLowerCase()=="get")&&(e.method="get",n+=(n.includes("?")?"&":"?")+q0(t)),n}function $0(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(c=>{r(c)}).catch(c=>{s(c),console.warn("Ajax Load Error - Invalid JSON returned",c)}):(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 dl(n,e){var t=[];if(e=e||"",Array.isArray(n))n.forEach((r,s)=>{t=t.concat(dl(r,e?e+"["+s+"]":s))});else if(typeof n=="object")for(var i in n)t=t.concat(dl(n[i],e?e+"["+i+"]":i));else t.push({key:e,value:n});return t}var Z0={json:{headers:{"Content-Type":"application/json"},body:function(n,e,t){return JSON.stringify(t)}},form:{headers:{},body:function(n,e,t){var i=dl(t),r=new FormData;return i.forEach(function(s){r.append(s.key,s.value)}),r}}};class Zi extends He{static moduleName="ajax";static defaultConfig=J0;static defaultURLGenerator=Gd;static defaultLoaderPromise=$0;static contentTypeFormatters=Z0;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=Zi.contentTypeFormatters}initialize(){this.loaderPromise=this.table.options.ajaxRequestFunc||Zi.defaultLoaderPromise,this.urlGenerator=this.table.options.ajaxURLGenerator||Zi.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({},Zi.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 X0={replace:function(n){return this.table.setData(n)},update:function(n){return this.table.updateOrAddData(n)},insert:function(n){return this.table.addData(n)}},ek={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(c){return o&&c.definition.title&&o.trim()&&c.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(c){return o&&c.field&&o.trim()&&c.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(c,u){r[u]&&(l[r[u].field]=c)}),s.push(l)}),s):!1}},tk={copyToClipboard:["ctrl + 67","meta + 67"]},ik={copyToClipboard:function(n){this.table.modules.edit.currentCell||this.table.modExists("clipboard",!0)&&this.table.modules.clipboard.copy(!1,!0)}},nk={keybindings:{bindings:tk,actions:ik}};class Rr extends He{static moduleName="clipboard";static moduleExtensions=nk;static pasteActions=X0;static pasteParsers=ek;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=Rr.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=Rr.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 rk{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 Yd{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 Mn 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 Yd(this)),this.component}}class Qd{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 Kd={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=Kd;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||"&nbsp;"}):i.value=e.title||"&nbsp;"}else e.field?this.langBind("columns|"+e.field,r=>{this._formatColumnHeaderTitle(t,r||e.title||"&nbsp;")}):this._formatColumnHeaderTitle(t,e.title||"&nbsp;");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 Mn(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 Qd(this)),this.component}getPosition(){return this.table.columnManager.getVisibleColumnsByIndex().indexOf(this)+1}getParentComponent(){return this.parent instanceof Jt?this.parent.getComponent():!1}}class xr{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(u=>{let d=this.getCell(u.getField());if(d){let h=u.getFieldValue(r);d.getValue()!==h&&(d.setValueProcessData(h),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 xr(this)),this.component}}var sk={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 Xi extends He{static moduleName="columnCalcs";static calculations=sk;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":Xi.calculations[t.topCalc]?i.topCalc=Xi.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":Xi.calculations[t.bottomCalc]?i.botCalc=Xi.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 rk(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 Mn(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(c){var u=[];c.modules.columnCalcs&&c.modules.columnCalcs[s]&&(t.forEach(function(d){u.push(c.getFieldValue(d))}),l=s+"Params",o=typeof c.modules.columnCalcs[l]=="function"?c.modules.columnCalcs[l](u,t):c.modules.columnCalcs[l],c.setFieldValue(i,c.modules.columnCalcs[s](u,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 ak extends He{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 c=this.getChildren(l,!1,!0);c.forEach(u=>{o.push(u)})})),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 xr?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 ok(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((c,u)=>{c&&c.depth===1&&(s[u]=typeof c.value>"u"||c.value===null?"":'"'+String(c.value).split('"').join('""')+'"')});break;case"row":o.columns.forEach(c=>{if(c){switch(typeof c.value){case"object":c.value=c.value!==null?JSON.stringify(c.value):"";break;case"undefined":c.value="";break}l.push('"'+String(c.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 lk(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 ck(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},c=e.jsPDF||{},u=e.title?e.title:"",d,h;c.orientation||(c.orientation=e.orientation||"landscape"),c.unit||(c.unit="pt"),n.forEach(p=>{switch(p.type){case"header":i.push(m(p));break;case"group":r.push(m(p,o));break;case"calc":r.push(m(p,l));break;case"row":r.push(m(p));break}});function m(p,g){var A=[];return p.columns.forEach(R=>{var v;if(R){switch(typeof R.value){case"object":R.value=R.value!==null?JSON.stringify(R.value):"";break;case"undefined":R.value="";break}v={content:R.value,colSpan:R.width,rowSpan:R.height},g&&(v.styles=g),A.push(v)}}),A}d=this.dependencyRegistry.lookup("jspdf","jsPDF"),h=new d(c),e.autoTable&&(typeof e.autoTable=="function"?s=e.autoTable(h)||{}:s=e.autoTable),u&&(s.didDrawPage=function(p){h.text(u,40,30)}),s.head=i,s.body=r,h.autoTable(s),e.documentProcessing&&e.documentProcessing(h),t(h.output("arraybuffer"),"application/pdf")}function uk(n,e,t){var i=this,r=e.sheetName||"Sheet1",s=this.dependencyRegistry.lookup("XLSX"),o=s.utils.book_new(),l=new dt(this),c="compress"in e?e.compress:!0,u=e.writeOptions||{bookType:"xlsx",bookSST:!0,compression:c},d;u.type="binary",o.SheetNames=[],o.Sheets={};function h(){var g=[],A=[],R={},v={s:{c:0,r:0},e:{c:n[0]?n[0].columns.reduce((f,T)=>f+(T&&T.width?T.width:1),0):0,r:n.length}};return n.forEach((f,T)=>{var b=[];f.columns.forEach(function(M,w){M?(b.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)&&A.push({s:{r:T,c:w},e:{r:T+M.height-1,c:w+M.width-1}})):b.push("")}),g.push(b)}),s.utils.sheet_add_aoa(R,g),R["!ref"]=s.utils.encode_range(v),A.length&&(R["!merges"]=A),R}if(e.sheetOnly){t(h());return}if(e.sheets)for(var m in e.sheets)e.sheets[m]===!0?(o.SheetNames.push(m),o.Sheets[m]=h()):(o.SheetNames.push(m),l.commsSend(e.sheets[m],"download","intercept",{type:"xlsx",options:{sheetOnly:!0},active:i.active,intercept:function(g){o.Sheets[m]=g}}));else o.SheetNames.push(r),o.Sheets[r]=h();e.documentProcessing&&(o=e.documentProcessing(o));function p(g){for(var A=new ArrayBuffer(g.length),R=new Uint8Array(A),v=0;v!=g.length;++v)R[v]=g.charCodeAt(v)&255;return A}d=s.write(o,u),t(p(d),"application/octet-stream")}function dk(n,e,t){this.modExists("export",!0)&&t(this.modules.export.generateHTMLTable(n),"text/html")}function hk(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((c,u)=>{var d=this.addRow(c,t,i,!0);s.push(d),this.dispatch("row-added",d,c,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,c,u;return i||(u=this.chain("row-adding-position",[s,o],null,{index:i,top:o}),i=u.index,o=u.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?(c=this.activeRows.indexOf(i),this.displayRowIterator(function(d){var h=d.indexOf(i);h>-1&&d.splice(o?h:h+1,0,s)}),c>-1&&this.activeRows.splice(o?c:c+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,c;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,c=o>s?o:s+1;for(let u=l;u<=c;u++)e[u]&&this.styleRow(e[u],u)}}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(c=>c.handler===e),o>-1)s="dataPipeline",t&&(o==this.dataPipeline.length-1?s="display":o++);else if(o=this.displayPipeline.findIndex(c=>c.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:p1,basic:f1};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 g1 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 b1 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(c=>this.abortClasses.includes(c)).length)break;let l=s.filter(c=>i.includes(c));for(let c of l)t[this.componentMap[c]]||(t[this.componentMap[c]]=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 c of i){let u,d=t[c],h=this.previousTargets[c];if(h&&h.target===d)u=h.component;else switch(c){case"row":case"group":(r.components.includes("row")||r.components.includes("cell")||r.components.includes("group"))&&(u=this.table.rowManager.getVisibleRows(!0).find(p=>p.getElement()===d),t.row&&t.row.parentNode&&t.row.parentNode.closest(".tabulator-row")&&(t[c]=!1));break;case"column":r.components.includes("column")&&(u=this.table.columnManager.findColumn(d));break;case"cell":r.components.includes("cell")&&(s.row instanceof pt?u=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}u&&(s[c]=u,l[c]={target:d,component:u})}return this.previousTargets=l,Object.keys(t).forEach(c=>{let u=s[c];o[c]=u}),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 v1{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 y1 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 c=this.chain("data-load",[e,t,i,s],!1,Promise.resolve([]));return c.then(u=>{if(this.table.destroyed)console.warn("Data Load Response Blocked - Table has been destroyed");else{!Array.isArray(u)&&typeof u=="object"&&(u=this.mapParams(u,this.objectInvert(this.table.options.dataReceiveParams)));var d=this.chain("data-loaded",[u],null,u);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(u=>{console.error("Data Load Error: ",u),this.dispatchExternal("dataLoadError",u),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 w1{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 C1{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 A1 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 E1 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 k1(n,e){e&&this.table.columnManager.renderer.reinitializeColumnWidths(n),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function Xd(n,e){n.forEach(function(t){t.reinitializeWidth()}),this.table.options.responsiveLayout&&this.table.modExists("responsiveLayout",!0)&&this.table.modules.responsiveLayout.update()}function S1(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 R1(n,e){var t=this.table.rowManager.element.getBoundingClientRect().width,i=0,r=0,s=0,o=0,l=[],c=[],u=0,d=0,h=0;function m(g){var A;return typeof g=="string"?g.indexOf("%")>-1?A=t/100*parseInt(g):A=parseInt(g):A=g,A}function p(g,A,R,v){var f=[],T=0,b=0,M=0,w=s,S=0,C=0,k=[];function y(x){return R*(x.column.definition.widthGrow||1)}function D(x){return m(x.width)-R*(x.column.definition.widthShrink||0)}return g.forEach(function(x,O){var I=v?D(x):y(x);x.column.minWidth>=I?f.push(x):x.column.maxWidth&&x.column.maxWidth<I?(x.width=x.column.maxWidth,A-=x.column.maxWidth,w-=v?x.column.definition.widthShrink||1:x.column.definition.widthGrow||1,w&&(R=Math.floor(A/w))):(k.push(x),C+=v?x.column.definition.widthShrink||1:x.column.definition.widthGrow||1)}),f.length?(f.forEach(function(x){T+=v?x.width-x.column.minWidth:x.column.minWidth,x.width=x.column.minWidth}),b=A-T,M=C?Math.floor(b/C):b,S=p(k,b,M,v)):(S=C?A-Math.floor(A/C)*C:A,k.forEach(function(x){x.width=v?D(x):y(x)})),S}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(g){var A,R,v;g.visible&&(A=g.definition.width,R=parseInt(g.minWidth),A?(v=m(A),i+=v>R?v:R,g.definition.widthShrink&&(c.push({column:g,width:v>R?v:R}),u+=g.definition.widthShrink)):(l.push({column:g,width:0}),s+=g.definition.widthGrow||1))}),r=t-i,o=Math.floor(r/s),h=p(l,r,o,!1),l.length&&h>0&&(l[l.length-1].width+=h),l.forEach(function(g){r-=g.width}),d=Math.abs(h)+r,d>0&&u&&(h=p(c,d,Math.floor(d/u),!0)),h&&c.length&&(c[c.length-1].width-=h),l.forEach(function(g){g.column.setWidth(g.width)}),c.forEach(function(g){g.column.setWidth(g.width)})}var x1={fitData:k1,fitDataFill:Xd,fitDataTable:Xd,fitDataStretch:S1,fitColumns:R1};class Fr extends He{static moduleName="layout";static modes=x1;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;Fr.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"),Fr.modes[this.mode].call(this,this.table.columnManager.columnsByIndex,e),t&&this.table.rowManager.normalizeHeight(!0),this.dispatch("layout-refreshed")}}var M1={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 yl extends He{static moduleName="localize";static langs=M1;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(yl.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 T1 extends He{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 D1=Object.freeze({__proto__:null,CommsModule:T1,LayoutModule:Fr,LocalizeModule:yl});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(D1,!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 L1 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 bi extends st{static defaultOptions=c1;static extendModule(){bi.initializeModuleBinder(),bi._extendModule(...arguments)}static registerModule(){bi.initializeModuleBinder(),bi._registerModule(...arguments)}constructor(e,t,i){super(),bi.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 v1(this),this.dataLoader=!1,this.modules={},this.modulesCore=[],this.modulesRegular=[],this.deprecationAdvisor=new A1(this),this.optionsList=new Zd(this,"table constructor"),this.dependencyRegistry=new E1(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 h1(this),this.rowManager=new m1(this),this.footerManager=new g1(this),this.dataLoader=new y1(this),this.alertManager=new L1(this),this._bindModules(),this.options=this.optionsList.generate(bi.defaultOptions,e),this._clearObjectPointers(),this._mapDeprecatedFunctionality(),this.externalEvents=new w1(this,this.options,this.options.debugEventsExternal),this.eventBus=new C1(this.options.debugEventsInternal),this.interactionMonitor=new b1(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(c){l.push(c.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(c=>{i--,t.push(c[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 On=bi;class O1 extends On{static extendModule(){On.initializeModuleBinder(vl),On._extendModule(...arguments)}static registerModule(){On.initializeModuleBinder(vl),On._registerModule(...arguments)}constructor(e,t,i){super(e,t,vl)}}var B1=O1;const F1={key:0,class:"bi bi-chevron-up"},_1={key:1,class:"bi bi-chevron-down"},eh=Ne({__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",F1)):(a.openBlock(),a.createElementBlock("i",_1))]))}},[["__scopeId","data-v-4810f2ed"]]),wl={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(wl);function P1(){return{}}const N1="data:image/gif;base64,R0lGODlhQABAANUAAAQCBISGhMTGxERCROTm5KSmpCQiJGRiZNTW1LS2tPT29BQSFJSWlFRSVDQyNHR2dMzOzOzu7KyurGxqbNze3Ly+vFxaXAwKDIyOjCwqLPz+/BweHKSipDw6PMzKzExKTOzq7KyqrCQmJGRmZNza3Ly6vPz6/BQWFJyanFRWVDQ2NHx+fNTS1PTy9LSytGxubOTi5MTCxFxeXAwODJSSlP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAgA1ACwAAAAAQABAAAAG/sCacEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvteikPiHfcAGxa424AAFilua0NG/behtipulbTYcf0W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kZGJkJCIk1NbUVFJUtLa0lJaU9Pb0dHJ0FBIUjI6MzM7MTEpMrK6s7O7sNDI03N7cXFpcvL68fHp8DAoMbGpspKKk/P78HB4cPDo8jIqMzMrMREZErKqs7OrsZGZk3NrcVFZUvLq8nJqc/Pr8dHZ0FBYUlJKU1NLUTE5MtLK09PL05OLkXF5cxMLEfH58DA4MPD48////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv7Am3BILBqPyKRyyWw6n9CodEqtWq/YrHbL7XoLhIp3/EiQGOOuJGESpbkpTcIyem8FpsTDruXQ8gh8WRUWCSocglgLeReJVzAyCQZojlUveRCVRxUJAZRIKQssn1kpCAIwTioAAB0iiIkpMQoiIplNEB2sADa3dhMXtQQvE08wNLsAJHVjDBC1IhItKVIxJrs1D9RbphLQqFYzFLsGXCDQCsVYDCgrABZcAtEVsFoTCqncBaSa/f7/AAMKtFNBgcGDB1vYiYGgoUOH6opMyJCsIoAZaSo00NCgo8eOKvIRmWgxGcYxGjtyXMkx5CaEMH2NKfCwJrOBOHPq3MlTE/6MFyKzMJgRFEuKdu+40PAQQUK9cONYldsSgIIHDzJkVrvGKts2LSkIhLDqAUMBKQyQ7SJxdsyED1cp2EDBT0muXb0EIdBw1YOLEqpYufrKh4MCFx4oLHBSolNdIikMWCiaBIYFEoSNMNigIgaXB6xeOJHAao+mETUArIg4RMBJIjDc1biZiAQrFEYgsNJ6AwUrEpV0A6BQ9wQrBUZSROU9hsMAVo2MKDh+5AIrG0/TiGBlAsl0AMiPcHVjh4EuAJ6PfA9vpILgx1RZ0UiyPonaAHYStKI8pD4S8wAkYEcJKjDXH3VJQKACYAL511MRDj44RAUZ1CCGhBLRhuGGHAPiFAQAOw==",I1={class:"placeholder-glow"},V1={key:0,class:"alert alert-danger mt-2 table-load-error",role:"alert"},H1={class:"tabulator hide-to-print sticky-bottom bg-white"},z1={class:"row"},j1={key:0,class:"col-auto"},W1={class:"col"},U1={class:"tabulator-footer",ref:"footer"},G1=["id"],Y1=["disabled"],Q1={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},K1=a.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"en-en"},rtl:{type:Boolean,default:!1},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","loadError"],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(""),c=a.ref(null),u=a.ref({data:[],rows:[]}),d=a.ref(new Set(t.selectedRowsStorage)),h=a.ref(!1),m=a.ref(mi()),p=a.ref(null),g=a.ref(null),A=a.ref(!1),R=a.ref(null),v=a.ref(!1),f=a.computed(()=>t.options?.paginationMode==="remote"),T=a.computed(()=>wl.customPerPageOptions),b=a.useSlots(),M=P=>!!b[P],w=()=>{o.value=""},S=P=>!P||!P.length?[]:P.map(J=>J),C=()=>{if(!p.value)return;const P=p.value.querySelector(".tabulator-header");!P||t.isVisibleColumnSubFilter===null||Ui(P,eh,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":J=>i("updateIsVisibleColumnSubFilter",J)})},k=()=>{if(!p.value)return;const P=p.value.querySelector(".tabulator-header");P&&(P.classList.add("position-relative"),C())},y=()=>{if(!g.value)return null;const P=g.value;if(typeof P.getPageMax=="function"){const ee=P.getPageMax();if(ee!=null&&!Number.isNaN(Number(ee)))return Number(ee)}const J=P.last_page;return J!=null&&J!==""&&!Number.isNaN(Number(J))?Number(J):null},D=()=>{if(!g.value)return;const P=p.value?.parentNode?.querySelector(".tabulator-footer"),J=p.value?.parentNode?.querySelector(".tabulator-pages"),ee=y();if(ee==null||ee<1||Number.isNaN(ee)){P&&P.classList.add("d-none");return}ee>1?(P&&P.classList.remove("d-none"),J&&J.style.display==="none"&&(J.style.display="")):P&&P.classList.add("d-none")},x=()=>{v.value||(A.value=!0,l.value="")},O=()=>{v.value},I=P=>{if(A.value=!1,v.value)return;const J=P instanceof Error&&P.message?P.message:typeof P=="string"&&P?P:"Failed to load data";l.value=J,i("loadError",P)},j=()=>{v.value||(h.value=!0,i("updateTable",g.value),g.value&&g.value.selectRow(Array.from(d.value)))},U=P=>{v.value||(setTimeout(()=>{v.value||i("savePaginationPage",P)}),f.value&&D(),s.value>0&&i("pageLoaded"),k())},V=P=>{if(v.value)return;const J=P.getData(),ee=g.value?.options?.index||"id",be=J[ee]??null;be!==null&&(d.value.add(be),u.value.data.push(J),u.value.rows.push(P),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:J,row:P}))},H=P=>{if(v.value)return;const J=P.getData(),ee=g.value?.options?.index||"id",be=J[ee]??null;if(be===null)return;d.value.delete(be);const we=u.value.data.findIndex(Ae=>Ae[ee]===be);we!==-1&&(u.value.data.splice(we,1),u.value.rows.splice(we,1)),i("updateUnselectedRows",{data:J,row:P}),i("unselectedRow",{data:J,row:P})},q=function(){v.value||(g.value&&g.value.selectRow(Array.from(d.value)),A.value=!1,f.value&&D())},F=(P,J)=>{if(v.value)return;if(J?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",P,J);return}const ee=[],be=P.target;for(let we=0;we<be.childNodes.length;we++){const Ae=be.childNodes[we];Ae.nodeName==="INPUT"&&Ae.type==="checkbox"&&ee.push("checkbox")}ee.includes("checkbox")||i("onTableRowClick",P,J._cell.row,t.parentComponent)},N=P=>{v.value||g.value&&i("onTableRowMoved",g.value.getColumnLayout())},K=()=>{v.value||setTimeout(()=>{v.value})},z=()=>{v.value||setTimeout(()=>{if(v.value)return;const P=p.value?.parentElement?.querySelector(".tabulator-paginator");P&&!R.value&&(R.value=new MutationObserver(()=>{const J=p.value?.parentElement?.querySelector(".tabulator-pages"),ee=y();J&&ee!=null&&!Number.isNaN(ee)&&ee>1&&J.style.display==="none"&&(J.style.display="")}),R.value.observe(P,{childList:!0,subtree:!0,attributes:!0})),Q()})},$=()=>{h.value=!1},te=()=>{if(!p.value||f.value&&!t.options.ajaxResponse||g.value)return;A.value=!0;const P=P1(),J=t.langs&&typeof t.langs=="object"?t.langs:{},ee={...t.options,...f.value?{}:{data:t.tableData},langs:{...P,...J},locale:t.locale,textDirection:t.rtl?"rtl":"ltr",columns:S(t.options.columns),dataLoaderLoading:`<img alt="" src="${N1}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};f.value&&(delete ee.ajaxURL,ee.footerElement=`#tabulator-footer${m.value}`),g.value=new B1(p.value,ee),g.value.on("dataLoading",x),g.value.on("dataLoaded",O),g.value.on("dataLoadError",I),g.value.on("tableBuilt",j),g.value.on("pageLoaded",U),g.value.on("rowSelected",V),g.value.on("rowDeselected",H),g.value.on("dataProcessed",q),g.value.on("cellClick",F),g.value.on("columnMoved",N),g.value.on("renderStarted",K),g.value.on("renderComplete",z),g.value.on("tableDestroyed",$)},le=P=>{if(v.value||!h.value||!P||!g.value)return;const J=g.value.options.ajaxParams;J&&(J.per_page=Number(P)),g.value.options.paginationSize=Number(P),g.value.setPageSize(P)},ce=()=>{if(v.value||!g.value)return;const P=640,J=g.value.options;if(f.value){const ee=J.ajaxParams?.per_page??J.paginationSize??g.value.getPageSize()??10,be=Number(ee);if(!Number.isFinite(be)||be<1)return;if(be>=P){o.value=t.paginationLimitText;return}const Ae=Math.min(be+be,P);J.ajaxParams||(J.ajaxParams={}),J.ajaxParams.per_page=Ae,J.paginationSize=Ae,g.value.setPageSize(Ae),Ae>=P&&(o.value=t.paginationLimitText);return}else{const ee=g.value.getPageSize();if(typeof ee=="number"&&ee<P){const be=ee;g.value.setPageSize(Math.min(ee+be,P))}}J.paginationSize>=P&&(o.value=t.paginationLimitText)},Y=P=>{v.value||P===""||!g.value||(g.value.showColumn(P),i("onShowColumn",g.value.getColumnLayout()))},ie=P=>{v.value||P===""||!g.value||(g.value.hideColumn(P),i("onHideColumn",g.value.getColumnLayout()))},Z=P=>{v.value||!g.value||(P.filter(({visible:J})=>!J).length===P.length?P.map(({field:J})=>{a.nextTick(()=>{!v.value&&g.value&&g.value.showColumn(J)})}):P.map(({field:J,visible:ee})=>{!v.value&&g.value&&(ee?g.value.showColumn(J):g.value.hideColumn(J))}))},Q=()=>{a.nextTick(()=>{if(v.value||!g.value||g.value.getPage()!==1||!t.paginationPage||t.paginationPage===g.value.getPage())return!1;g.value.setPage(t.paginationPage)})};return a.onMounted(()=>{te()}),a.onBeforeUnmount(()=>{v.value=!0,R.value&&(R.value.disconnect(),R.value=null),g.value&&(g.value.destroy(),g.value=null)}),a.watch(()=>t.columnShow,P=>{P&&Y(P)}),a.watch(()=>t.columnHide,P=>{P&&ie(P)}),a.watch(()=>t.filters,P=>{v.value||!g.value||g.value.setFilter(P)},{deep:!0}),a.watch(()=>t.tableData,P=>{v.value||!g.value||f.value||g.value.setData(P)},{deep:!1}),a.watch(()=>t.options.ajaxResponse,P=>{v.value||(g.value&&P?g.value.options.ajaxResponse=P:f.value&&P&&!g.value&&a.nextTick(()=>{v.value||!p.value||te()}))}),a.watch(()=>t.options,P=>{v.value||f.value&&P.ajaxResponse&&!g.value&&a.nextTick(()=>{v.value||!p.value||te()})},{deep:!0}),a.watch(r,()=>{v.value||!g.value||g.value.deselectRow()}),a.watch(s,P=>{v.value||P<=0||!g.value||g.value.selectRow()}),a.watch(()=>t.options.columns,P=>{v.value||!h.value||!g.value||!P||(!P.find(({visible:J})=>J)&&t.showAllColumnsIfAllHidden?Z(P):g.value.setColumns(P))},{deep:!0}),a.watch(()=>t.selectedRowsStorage,P=>{v.value||!P||(d.value=new Set(P))},{deep:!0}),a.watch(h,P=>{v.value||!P||(t.showAllColumnsIfAllHidden&&Z(t.options.columns||[]),t.tableData.length>0&&!f.value&&g.value&&g.value.setData(t.tableData))},{deep:!0}),(P,J)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["position-relative",{"table-has-load-error":!!l.value}]),style:{"min-height":"300px"}},[a.withDirectives(a.createElementVNode("p",I1,[...J[2]||(J[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,A.value]]),a.withDirectives(a.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),[[a.vShow,!A.value]]),l.value?(a.openBlock(),a.createElementBlock("div",V1,a.toDisplayString(l.value),1)):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",H1,[a.createElementVNode("div",z1,[M("table-footer-left")?(a.openBlock(),a.createElementBlock("div",j1,[a.renderSlot(P.$slots,"table-footer-left")])):a.createCommentVNode("",!0),a.createElementVNode("div",W1,[a.createElementVNode("div",U1,[a.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${m.value}`},[a.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:ce,disabled:A.value},[a.createTextVNode(a.toDisplayString(n.loadMoreText)+" ",1),J[3]||(J[3]=a.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),A.value?(a.openBlock(),a.createElementBlock("div",Q1)):a.createCommentVNode("",!0)],8,Y1),a.createVNode(Ht,{class:"me-3",style:{"min-width":"150px"},modelValue:c.value,"onUpdate:modelValue":[J[0]||(J[0]=ee=>c.value=ee),J[1]||(J[1]=ee=>le(ee))],allowClear:!1,options:T.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,G1)],512)])])],512),[[a.vShow,f.value]]),a.createVNode(Ud,{message:o.value,onClearMessage:w},null,8,["message"])],2))}}),J1={class:"r3-table-count__wrapper px-3"},q1={class:"r3-table-count__label pe-2"},$1={class:"r3-table-count__value"},Z1=Ne(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",J1,[a.createElementVNode("span",q1,a.toDisplayString(t.value)+":",1),a.createElementVNode("span",$1,a.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-f830d5b6"]]),X1=Ne(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 Ui(r,e.mountedComponent,e.dataProps),!1;Ui(r,null,{},!0)}return a.watch(()=>e,()=>{t()},{deep:!0}),a.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),eR=Ne(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 m=localStorage.getItem("filters"),p=m?JSON.parse(m):{};p={...oi(p),[s.value]:{[i.tableName]:d(o.value)}};const g=JSON.stringify(p);return localStorage.setItem("filters",g),m=localStorage.getItem("filters"),m?JSON.parse(m):{}}function c(m){return!(!m||!m[s.value]||!m[s.value][i.tableName])}function u(m){const p=JSON.parse(m);return c(p)?(m=localStorage.getItem("filters")||"{}",JSON.parse(m)):l()}function d(m){const p={};for(const[g,A]of Object.entries(m))p[g]=oi(A._value||A);return p}function h(){let m=localStorage.getItem("filters");if(!m)return r("update:filters",{}),!1;let p=u(m);if(!p[s.value]||!p[s.value][i.tableName])return r("update:filters",{}),!1;const g=d(p[s.value][i.tableName]);return r("update:filters",{...g}),!0}return e({getFilters:h,saveFilters:l}),(m,p)=>a.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),tR={class:"row pt-3"},iR={class:"col-12"},nR=["onClick"],rR=Ne(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",tR,[a.createElementVNode("div",iR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.filterList,(o,l)=>(a.openBlock(),a.createElementBlock("button",{onClick:c=>i(o.name),class:a.normalizeClass(["btn filter-item",{active:r.defaultSelected===o.name,disabled:o.disabled}]),key:l},a.toDisplayString(o.title),11,nR))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),sR={key:0,class:"col-4 mb-2"},aR={class:"form-check"},oR=["checked","id","onChange"],lR=["for"],cR=["innerHTML"],uR={class:"col-auto"},dR={class:"col-auto ps-0"},hR={class:"col-auto ps-0"},Cl=Ne(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,p=>{JSON.stringify(p)!==JSON.stringify(s.value)&&(r.value=[...p],s.value=[...p],l())},{deep:!0});const o=a.ref(!0);function l(){const g=r.value.filter(A=>A.title).some(A=>!A.visible);o.value=g,a.triggerRef(o)}l();const c=p=>{i("emitModalVisibility",p)},u=(p,g)=>{const A=p.target,R=r.value.findIndex(v=>v.field===g);R!==-1&&(r.value[R].visible=A.checked,l()),i("columnVisibilityChange",p,g)},d=()=>{i("apply",r.value)},h=()=>{const p=r.value.map(g=>({...g,visible:g.title?!0:g.visible}));r.value=p,s.value=[...p],l(),i("selectAll")},m=()=>{const p=r.value.map(g=>({...g,visible:g.title?!1:g.visible}));r.value=p,s.value=[...p],l(),i("unselectAll")};return(p,g)=>(a.openBlock(),a.createBlock(Fd,{title:p.title,"modal-visibility":p.modalVisibility,onEmitModalVisibility:c},{"modal-body":a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(A,R)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:R},[A.title?(a.openBlock(),a.createElementBlock("div",sR,[a.createElementVNode("div",aR,[a.createElementVNode("input",{checked:A.visible,class:"form-check-input",type:"checkbox",id:A.field,ref_for:!0,ref:"editColumns",onChange:v=>u(v,A.field)},null,40,oR),a.createElementVNode("label",{class:"form-check-label",for:A.field},[a.createElementVNode("span",{class:"lh-sm",innerHTML:A.title},null,8,cR)],8,lR)])])):a.createCommentVNode("",!0)],64))),128))]),"modal-footer":a.withCtx(()=>[a.createElementVNode("div",uR,[a.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},a.toDisplayString(p.applyText),1)]),a.createElementVNode("div",dR,[a.createElementVNode("div",hR,[o.value?(a.openBlock(),a.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:h},a.toDisplayString(p.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:m},a.toDisplayString(p.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function Al(n,e){const t=a.ref(!1),i=a.ref([...n]);a.watch(()=>n,g=>{i.value=[...g]},{deep:!0});function r(g){t.value=g}function s(g,A){const R=g.target,v=i.value.map(f=>f.field===A?{...f,visible:R.checked}:f);i.value=v,e&&e.value&&(e.value.columns=v)}function o(g){console.log("useTableColumns handleColumnsApply called, received columns:",g),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(g),c()}function l(g){g&&(i.value=[...g],console.log("useTableColumns tableColumns after update:",i.value))}function c(){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 u(){const g=i.value.map(A=>({...A,visible:A.title?!0:A.visible}));i.value=g,e&&e.value&&(e.value.columns=g)}function d(){const g=i.value.map(A=>({...A,visible:A.title?!1:A.visible}));i.value=g,e&&e.value&&(e.value.columns=g)}const h=a.computed(()=>i.value.filter(g=>g.visible));function m(g){i.value=[...g],e&&e.value&&(e.value.columns=g)}function p(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:h,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:o,handleColumnsSelectAll:u,handleColumnsUnselectAll:d,updateColumns:m,resetColumns:p}}const fR=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:c,handleColumnsUnselectAll:u,updateColumns:d}=Al(t.columns,t.tableOptions);a.watch(()=>t.columns,p=>{d(p)},{deep:!0});function h(){r.value=!0}function m(p){r.value=!1,p&&Array.isArray(p)&&(s.value=[...p],i("columns-changed",p)),i("apply")}return(p,g)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Bi,{styles:"light",icon:"gear-fill",ariaLabel:p.title,onSubmit:h},null,8,["ariaLabel"]),a.createVNode(Cl,{title:p.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":p.applyText,"select-all-text":p.selectAllText,"unselect-all-text":p.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:m,onSelectAll:a.unref(c),onUnselectAll:a.unref(u)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),pR=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:c,handleColumnsUnselectAll:u,updateColumns:d}=Al(t.columns,t.tableOptions);a.watch(()=>t.columns,p=>{d(p)},{deep:!0});function h(){r.value=!0}function m(p){r.value=!1,p&&Array.isArray(p)&&(s.value=[...p],i("columns-changed",p)),i("apply")}return(p,g)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Bi,{styles:"light",onSubmit:h,icon:"gear-fill"}),a.createVNode(Cl,{title:p.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":p.applyText,"select-all-text":p.selectAllText,"unselect-all-text":p.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:m,onSelectAll:a.unref(c),onUnselectAll:a.unref(u)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),mR={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},gR={key:2,class:"selected-count"},bR=Ne(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",mR,[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",gR,a.toDisplayString(s.selectedText)+": "+a.toDisplayString(s.selectedRows.length),1)):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),vR={class:"row pt-3"},yR={class:"col-12"},wR=["onClick"],CR=Ne(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 c=Object.keys(s)[l];c&&s[c]!==void 0&&(o.value=s[c])})},{immediate:!0}),(s,o)=>(a.openBlock(),a.createElementBlock("div",vR,[a.createElementVNode("div",yR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.filterList,(l,c)=>(a.openBlock(),a.createElementBlock("button",{onClick:u=>r(c),class:a.normalizeClass(["btn filter-item",{active:s.filterList[c].value,disabled:s.filterList[c].disabled}]),key:c},a.toDisplayString(l.title),11,wR))),128))])]))}}),[["__scopeId","data-v-f65c1c64"]]),AR={class:"container","data-test":"SsoLoginPending"},ER={class:"row justify-content-center"},kR={class:"col-md-8"},SR={class:"card"},RR={class:"card-header"},xR={class:"card-body"},MR={class:"login-spinner text-center",role:"status","aria-live":"polite"},TR={class:"visually-hidden","data-test":"SsoLoginPending-status"},DR=Ne(a.defineComponent({__name:"SsoLoginPending",props:{title:{},statusText:{}},setup(n){const e=n;if(!e.title.trim())throw new Error("SsoLoginPending: title обязателен");if(!e.statusText.trim())throw new Error("SsoLoginPending: statusText обязателен");return(t,i)=>(a.openBlock(),a.createElementBlock("div",AR,[a.createElementVNode("div",ER,[a.createElementVNode("div",kR,[a.createElementVNode("div",SR,[a.createElementVNode("div",RR,a.toDisplayString(t.title),1),a.createElementVNode("div",xR,[a.createElementVNode("div",MR,[a.createVNode(In),a.createElementVNode("span",TR,a.toDisplayString(t.statusText),1)])])])])])]))}}),[["__scopeId","data-v-6eb41b83"]]);var vi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(vi||(vi={}));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 LR(n){return _r(n)&&typeof n.from=="function"}function _r(n){return typeof n=="object"&&typeof n.to=="function"}function th(n){n.parentElement.removeChild(n)}function El(n){return n!=null}function ih(n){n.preventDefault()}function OR(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function BR(n,e){return Math.round(n/e)*e}function FR(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=sh(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 nh(n,e,t){t>0&&(mt(n,e),setTimeout(function(){Nr(n,e)},t))}function rh(n){return Math.max(Math.min(n,100),0)}function Pr(n){return Array.isArray(n)?n:[n]}function _R(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 Nr(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 PR(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function sh(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 NR(){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 IR(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function VR(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function kl(n,e){return 100/(e-n)}function Sl(n,e,t){return e*100/(n[t+1]-n[t])}function HR(n,e){return Sl(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function zR(n,e){return e*(n[1]-n[0])/100+n[0]}function Bn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function jR(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=Bn(t,n),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return o+HR([r,s],t)/kl(o,l)}function WR(n,e,t){if(t>=100)return n.slice(-1)[0];var i=Bn(t,e),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return zR([r,s],(t-o)*kl(o,l))}function UR(n,e,t,i){if(i===100)return i;var r=Bn(i,n),s=n[r-1],o=n[r];return t?i-s>(o-s)/2?o:s:e[r-1]?n[r-1]+BR(i-n[r-1],e[r-1]):i}var ah=(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([Pr(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]=Sl(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],c=0,u=0,d=0,h=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;)c=this.xPct[r+1+h]-this.xPct[r+h],t[r+h]*o+100-s*100>100?(u=c*s,o=(l-100*s)/t[r+h],s=1):(u=t[r+h]*c/100*o,o=0),i?(d=d-u,this.xPct.length+h>=1&&h--):(d=d+u,this.xPct.length-h>=1&&h++),l=t[r+h]*o;return e+d},n.prototype.toStepping=function(e){return e=jR(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return WR(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=UR(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=Bn(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=Bn(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(_R);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]=Sl([this.xVal[e],this.xVal[e+1]],t,0)/kl(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})(),oh={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},lh={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"},yi={tooltips:".__tooltips",aria:".__aria"};function GR(n,e){if(!zt(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function YR(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function QR(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function KR(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function JR(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 ah(e,n.snap||!1,n.singleStep)}function qR(n,e){if(e=Pr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function $R(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function ZR(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function XR(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function ch(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 ex(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 uh(n,e){if(!zt(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function tx(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 ix(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 nx(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 rx(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,c=e.indexOf("invert-connects")>=0,u=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");uh(n,n.start[1]-n.start[0])}if(c&&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:u,smoothSteps:d,fixed:r,snap:s,hover:o,unconstrained:l,invertConnects:c}}function sx(n,e){if(e!==!1)if(e===!0||_r(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=Pr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!_r(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function ax(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function ox(n,e){if(!_r(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function lx(n,e){if(!LR(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function cx(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function ux(n,e){n.documentElement=e}function dx(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function hx(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 dh(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:oh,format:oh},t={step:{r:!1,t:GR},keyboardPageMultiplier:{r:!1,t:YR},keyboardMultiplier:{r:!1,t:QR},keyboardDefaultStep:{r:!1,t:KR},start:{r:!0,t:qR},connect:{r:!0,t:ch},direction:{r:!0,t:nx},snap:{r:!1,t:$R},animate:{r:!1,t:ZR},animationDuration:{r:!1,t:XR},range:{r:!0,t:JR},orientation:{r:!1,t:ex},margin:{r:!1,t:uh},limit:{r:!1,t:tx},padding:{r:!1,t:ix},behaviour:{r:!0,t:rx},ariaFormat:{r:!1,t:ox},format:{r:!1,t:lx},tooltips:{r:!1,t:sx},keyboardSupport:{r:!0,t:cx},documentElement:{r:!1,t:ux},cssPrefix:{r:!0,t:dx},cssClasses:{r:!0,t:hx},handleAttributes:{r:!1,t:ax}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:lh,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(c){if(!El(n[c])&&i[c]===void 0){if(t[c].r)throw new Error("noUiSlider: '"+c+"' is required.");return}t[c].t(e,El(n[c])?n[c]:i[c])}),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 fx(n,e,t){var i=NR(),r=VR(),s=r&&IR(),o=n,l,c,u,d,h,m,p=e.spectrum,g=[],A=[],R=[],v=0,f={},T=!1,b=n.ownerDocument,M=e.documentElement||b.documentElement,w=b.body,S=b.dir==="rtl"||e.ort===1?0:100;function C(E,L){var _=b.createElement("div");return L&&mt(_,L),E.appendChild(_),_}function k(E,L){var _=C(E,e.cssClasses.origin),G=C(_,e.cssClasses.handle);if(C(G,e.cssClasses.touchArea),G.setAttribute("data-handle",String(L)),e.keyboardSupport&&(G.setAttribute("tabindex","0"),G.addEventListener("keydown",function(ue){return Fe(ue,L)})),e.handleAttributes!==void 0){var se=e.handleAttributes[L];Object.keys(se).forEach(function(ue){G.setAttribute(ue,se[ue])})}return G.setAttribute("role","slider"),G.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),L===0?mt(G,e.cssClasses.handleLower):L===e.handles-1&&mt(G,e.cssClasses.handleUpper),_.handle=G,_}function y(E,L){return L?C(E,e.cssClasses.connect):!1}function D(E,L){c=C(L,e.cssClasses.connects),u=[],d=[],d.push(y(c,E[0]));for(var _=0;_<e.handles;_++)u.push(k(L,_)),R[_]=_,d.push(y(c,E[_+1]))}function x(E){mt(E,e.cssClasses.target),e.dir===0?mt(E,e.cssClasses.ltr):mt(E,e.cssClasses.rtl),e.ort===0?mt(E,e.cssClasses.horizontal):mt(E,e.cssClasses.vertical);var L=getComputedStyle(E).direction;return L==="rtl"?mt(E,e.cssClasses.textDirectionRtl):mt(E,e.cssClasses.textDirectionLtr),C(E,e.cssClasses.base)}function O(E,L){return!e.tooltips||!e.tooltips[L]?!1:C(E.firstChild,e.cssClasses.tooltip)}function I(){return o.hasAttribute("disabled")}function j(E){var L=u[E];return L.hasAttribute("disabled")}function U(E){E!=null?(u[E].setAttribute("disabled",""),u[E].handle.removeAttribute("tabindex")):(o.setAttribute("disabled",""),u.forEach(function(L){L.handle.removeAttribute("tabindex")}))}function V(E){E!=null?(u[E].removeAttribute("disabled"),u[E].handle.setAttribute("tabindex","0")):(o.removeAttribute("disabled"),u.forEach(function(L){L.removeAttribute("disabled"),L.handle.setAttribute("tabindex","0")}))}function H(){m&&(X("update"+yi.tooltips),m.forEach(function(E){E&&th(E)}),m=null)}function q(){H(),m=u.map(O),Ie("update"+yi.tooltips,function(E,L,_){if(!(!m||!e.tooltips)&&m[L]!==!1){var G=E[L];e.tooltips[L]!==!0&&(G=e.tooltips[L].to(_[L])),m[L].innerHTML=G}})}function F(){X("update"+yi.aria),Ie("update"+yi.aria,function(E,L,_,G,se){R.forEach(function(ue){var fe=u[ue],pe=me(A,ue,0,!0,!0,!0),ve=me(A,ue,100,!0,!0,!0),Ce=se[ue],De=String(e.ariaFormat.to(_[ue]));pe=p.fromStepping(pe).toFixed(1),ve=p.fromStepping(ve).toFixed(1),Ce=p.fromStepping(Ce).toFixed(1),fe.children[0].setAttribute("aria-valuemin",pe),fe.children[0].setAttribute("aria-valuemax",ve),fe.children[0].setAttribute("aria-valuenow",Ce),fe.children[0].setAttribute("aria-valuetext",De)})})}function N(E){if(E.mode===vi.Range||E.mode===vi.Steps)return p.xVal;if(E.mode===vi.Count){if(E.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var L=E.values-1,_=100/L,G=[];L--;)G[L]=L*_;return G.push(100),K(G,E.stepped)}return E.mode===vi.Positions?K(E.values,E.stepped):E.mode===vi.Values?E.stepped?E.values.map(function(se){return p.fromStepping(p.getStep(p.toStepping(se)))}):E.values:[]}function K(E,L){return E.map(function(_){return p.fromStepping(L?p.getStep(_):_)})}function z(E){function L(Ce,De){return Number((Ce+De).toFixed(7))}var _=N(E),G={},se=p.xVal[0],ue=p.xVal[p.xVal.length-1],fe=!1,pe=!1,ve=0;return _=OR(_.slice().sort(function(Ce,De){return Ce-De})),_[0]!==se&&(_.unshift(se),fe=!0),_[_.length-1]!==ue&&(_.push(ue),pe=!0),_.forEach(function(Ce,De){var We,Be,qe,Xe=Ce,at=_[De+1],nt,wi,Li,di,jt,$t,rn,Oi=E.mode===vi.Steps;for(Oi&&(We=p.xNumSteps[De]),We||(We=at-Xe),at===void 0&&(at=Xe),We=Math.max(We,1e-7),Be=Xe;Be<=at;Be=L(Be,We)){for(nt=p.toStepping(Be),wi=nt-ve,jt=wi/(E.density||1),$t=Math.round(jt),rn=wi/$t,qe=1;qe<=$t;qe+=1)Li=ve+qe*rn,G[Li.toFixed(5)]=[p.fromStepping(Li),0];di=_.indexOf(Be)>-1?bt.LargeValue:Oi?bt.SmallValue:bt.NoValue,!De&&fe&&Be!==at&&(di=0),Be===at&&pe||(G[nt.toFixed(5)]=[Be,di]),ve=nt}}),G}function $(E,L,_){var G,se,ue=b.createElement("div"),fe=(G={},G[bt.None]="",G[bt.NoValue]=e.cssClasses.valueNormal,G[bt.LargeValue]=e.cssClasses.valueLarge,G[bt.SmallValue]=e.cssClasses.valueSub,G),pe=(se={},se[bt.None]="",se[bt.NoValue]=e.cssClasses.markerNormal,se[bt.LargeValue]=e.cssClasses.markerLarge,se[bt.SmallValue]=e.cssClasses.markerSub,se),ve=[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?ve:Ce,nt=Xe?fe:pe;return qe+" "+at[e.ort]+" "+nt[Be]}function We(Be,qe,Xe){if(Xe=L?L(qe,Xe):Xe,Xe!==bt.None){var at=C(ue,!1);at.className=De(Xe,e.cssClasses.marker),at.style[e.style]=Be+"%",Xe>bt.NoValue&&(at=C(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(E).forEach(function(Be){We(Be,E[Be][0],E[Be][1])}),ue}function te(){h&&(th(h),h=null)}function le(E){te();var L=z(E),_=E.filter,G=E.format||{to:function(se){return String(Math.round(se))}};return h=o.appendChild($(L,_,G)),h}function ce(){var E=l.getBoundingClientRect(),L="offset"+["Width","Height"][e.ort];return e.ort===0?E.width||l[L]:E.height||l[L]}function Y(E,L,_,G){var se=function(fe){var pe=ie(fe,G.pageOffset,G.target||L);if(!pe||I()&&!G.doNotReject||PR(o,e.cssClasses.tap)&&!G.doNotReject||E===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 E.split(" ").forEach(function(fe){L.addEventListener(fe,se,s?{passive:!0}:!1),ue.push([fe,se])}),ue}function ie(E,L,_){var G=E.type.indexOf("touch")===0,se=E.type.indexOf("mouse")===0,ue=E.type.indexOf("pointer")===0,fe=0,pe=0;if(E.type.indexOf("MSPointer")===0&&(ue=!0),E.type==="mousedown"&&!E.buttons&&!E.touches)return!1;if(G){var ve=function(We){var Be=We.target;return Be===_||_.contains(Be)||E.composed&&E.composedPath().shift()===_};if(E.type==="touchstart"){var Ce=Array.prototype.filter.call(E.touches,ve);if(Ce.length>1)return!1;fe=Ce[0].pageX,pe=Ce[0].pageY}else{var De=Array.prototype.find.call(E.changedTouches,ve);if(!De)return!1;fe=De.pageX,pe=De.pageY}}return L=L||sh(b),(se||ue)&&(fe=E.clientX+L.x,pe=E.clientY+L.y),E.pageOffset=L,E.points=[fe,pe],E.cursor=se||ue,E}function Z(E){var L=E-FR(l,e.ort),_=L*100/ce();return _=rh(_),e.dir?100-_:_}function Q(E){var L=100,_=!1;return u.forEach(function(G,se){if(!j(se)){var ue=A[se],fe=Math.abs(ue-E),pe=fe===100&&L===100,ve=fe<L,Ce=fe<=L&&E>ue;(ve||Ce||pe)&&(_=se,L=fe)}}),_}function P(E,L){E.type==="mouseout"&&E.target.nodeName==="HTML"&&E.relatedTarget===null&&ee(E,L)}function J(E,L){if(navigator.appVersion.indexOf("MSIE 9")===-1&&E.buttons===0&&L.buttonsProperty!==0)return ee(E,L);var _=(e.dir?-1:1)*(E.calcPoint-L.startCalcPoint),G=_*100/L.baseSize;Se(_>0,G,L.locations,L.handleNumbers,L.connect)}function ee(E,L){L.handle&&(Nr(L.handle,e.cssClasses.active),v-=1),L.listeners.forEach(function(_){M.removeEventListener(_[0],_[1])}),v===0&&(Nr(o,e.cssClasses.drag),Re(),E.cursor&&(w.style.cursor="",w.removeEventListener("selectstart",ih))),e.events.smoothSteps&&(L.handleNumbers.forEach(function(_){Oe(_,A[_],!0,!0,!1,!1)}),L.handleNumbers.forEach(function(_){re("update",_)})),L.handleNumbers.forEach(function(_){re("change",_),re("set",_),re("end",_)})}function be(E,L){if(!L.handleNumbers.some(j)){var _;if(L.handleNumbers.length===1){var G=u[L.handleNumbers[0]];_=G.children[0],v+=1,mt(_,e.cssClasses.active)}E.stopPropagation();var se=[],ue=Y(i.move,M,J,{target:E.target,handle:_,connect:L.connect,listeners:se,startCalcPoint:E.calcPoint,baseSize:ce(),pageOffset:E.pageOffset,handleNumbers:L.handleNumbers,buttonsProperty:E.buttons,locations:A.slice()}),fe=Y(i.end,M,ee,{target:E.target,handle:_,listeners:se,doNotReject:!0,handleNumbers:L.handleNumbers}),pe=Y("mouseout",M,P,{target:E.target,handle:_,listeners:se,doNotReject:!0,handleNumbers:L.handleNumbers});se.push.apply(se,ue.concat(fe,pe)),E.cursor&&(w.style.cursor=getComputedStyle(E.target).cursor,u.length>1&&mt(o,e.cssClasses.drag),w.addEventListener("selectstart",ih,!1)),L.handleNumbers.forEach(function(ve){re("start",ve)})}}function we(E){E.stopPropagation();var L=Z(E.calcPoint),_=Q(L);_!==!1&&(e.events.snap||nh(o,e.cssClasses.tap,e.animationDuration),Oe(_,L,!0,!0),Re(),re("slide",_,!0),re("update",_,!0),e.events.snap?be(E,{handleNumbers:[_]}):(re("change",_,!0),re("set",_,!0)))}function Ae(E){var L=Z(E.calcPoint),_=p.getStep(L),G=p.fromStepping(_);Object.keys(f).forEach(function(se){se.split(".")[0]==="hover"&&f[se].forEach(function(ue){ue.call(B,G)})})}function Fe(E,L){if(I()||j(L))return!1;var _=["Left","Right"],G=["Down","Up"],se=["PageDown","PageUp"],ue=["Home","End"];e.dir&&!e.ort?_.reverse():e.ort&&!e.dir&&(G.reverse(),se.reverse());var fe=E.key.replace("Arrow",""),pe=fe===se[0],ve=fe===se[1],Ce=fe===G[0]||fe===_[0]||pe,De=fe===G[1]||fe===_[1]||ve,We=fe===ue[0],Be=fe===ue[1];if(!Ce&&!De&&!We&&!Be)return!0;E.preventDefault();var qe;if(De||Ce){var Xe=Ce?0:1,at=Pe(L),nt=at[Xe];if(nt===null)return!1;nt===!1&&(nt=p.getDefaultStep(A[L],Ce,e.keyboardDefaultStep)),ve||pe?nt*=e.keyboardPageMultiplier:nt*=e.keyboardMultiplier,nt=Math.max(nt,1e-7),nt=(Ce?-1:1)*nt,qe=g[L]+nt}else Be?qe=e.spectrum.xVal[e.spectrum.xVal.length-1]:qe=e.spectrum.xVal[0];return Oe(L,p.toStepping(qe),!0,!0),re("slide",L),re("update",L),re("change",L),re("set",L),!1}function _e(E){E.fixed||u.forEach(function(L,_){Y(i.start,L.children[0],be,{handleNumbers:[_]})}),E.tap&&Y(i.start,l,we,{}),E.hover&&Y(i.move,l,Ae,{hover:!0}),E.drag&&d.forEach(function(L,_){if(!(L===!1||_===0||_===d.length-1)){var G=u[_-1],se=u[_],ue=[L],fe=[G,se],pe=[_-1,_];mt(L,e.cssClasses.draggable),E.fixed&&(ue.push(G.children[0]),ue.push(se.children[0])),E.dragAll&&(fe=u,pe=R),ue.forEach(function(ve){Y(i.start,ve,be,{handles:fe,handleNumbers:pe,connect:L})})}})}function Ie(E,L){f[E]=f[E]||[],f[E].push(L),E.split(".")[0]==="update"&&u.forEach(function(_,G){re("update",G)})}function de(E){return E===yi.aria||E===yi.tooltips}function X(E){var L=E&&E.split(".")[0],_=L?E.substring(L.length):E;Object.keys(f).forEach(function(G){var se=G.split(".")[0],ue=G.substring(se.length);(!L||L===se)&&(!_||_===ue)&&(!de(ue)||_===ue)&&delete f[G]})}function re(E,L,_){Object.keys(f).forEach(function(G){var se=G.split(".")[0];E===se&&f[G].forEach(function(ue){ue.call(B,g.map(e.format.to),L,g.slice(),_||!1,A.slice(),B)})})}function me(E,L,_,G,se,ue,fe){var pe;return u.length>1&&!e.events.unconstrained&&(G&&L>0&&(pe=p.getAbsoluteDistance(E[L-1],e.margin,!1),_=Math.max(_,pe)),se&&L<u.length-1&&(pe=p.getAbsoluteDistance(E[L+1],e.margin,!0),_=Math.min(_,pe))),u.length>1&&e.limit&&(G&&L>0&&(pe=p.getAbsoluteDistance(E[L-1],e.limit,!1),_=Math.min(_,pe)),se&&L<u.length-1&&(pe=p.getAbsoluteDistance(E[L+1],e.limit,!0),_=Math.max(_,pe))),e.padding&&(L===0&&(pe=p.getAbsoluteDistance(0,e.padding[0],!1),_=Math.max(_,pe)),L===u.length-1&&(pe=p.getAbsoluteDistance(100,e.padding[1],!0),_=Math.min(_,pe))),fe||(_=p.getStep(_)),_=rh(_),_===E[L]&&!ue?!1:_}function he(E,L){var _=e.ort;return(_?L:E)+", "+(_?E:L)}function Se(E,L,_,G,se){var ue=_.slice(),fe=G[0],pe=e.events.smoothSteps,ve=[!E,E],Ce=[E,!E];G=G.slice(),E&&G.reverse(),G.length>1?G.forEach(function(We,Be){var qe=me(ue,We,ue[We]+L,ve[Be],Ce[Be],!1,pe);qe===!1?L=0:(L=qe-ue[We],ue[We]=qe)}):ve=Ce=[!0];var De=!1;G.forEach(function(We,Be){De=Oe(We,_[We]+L,ve[Be],Ce[Be],!1,pe)||De}),De&&(G.forEach(function(We){re("update",We),re("slide",We)}),se!=null&&re("drag",fe))}function Me(E,L){return e.dir?100-E-L:E}function oe(E,L){A[E]=L,g[E]=p.fromStepping(L);var _=Me(L,0)-S,G="translate("+he(_+"%","0")+")";if(u[E].style[e.transformRule]=G,e.events.invertConnects&&A.length>1){var se=A.every(function(ue,fe,pe){return fe===0||ue>=pe[fe-1]});if(T!==!se){ut();return}}et(E),et(E+1),T&&(et(E-1),et(E+2))}function Re(){R.forEach(function(E){var L=A[E]>50?-1:1,_=3+(u.length+L*E);u[E].style.zIndex=String(_)})}function Oe(E,L,_,G,se,ue){return se||(L=me(A,E,L,_,G,!1,ue)),L===!1?!1:(oe(E,L),!0)}function et(E){if(d[E]){var L=A.slice();T&&L.sort(function(pe,ve){return pe-ve});var _=0,G=100;E!==0&&(_=L[E-1]),E!==d.length-1&&(G=L[E]);var se=G-_,ue="translate("+he(Me(_,se)+"%","0")+")",fe="scale("+he(se/100,"1")+")";d[E].style[e.transformRule]=ue+" "+fe}}function je(E,L){return E===null||E===!1||E===void 0||(typeof E=="number"&&(E=String(E)),E=e.format.from(E),E!==!1&&(E=p.toStepping(E)),E===!1||isNaN(E))?A[L]:E}function xt(E,L,_){var G=Pr(E),se=A[0]===void 0;L=L===void 0?!0:L,e.animate&&!se&&nh(o,e.cssClasses.tap,e.animationDuration),R.forEach(function(pe){Oe(pe,je(G[pe],pe),!0,!1,_)});var ue=R.length===1?0:1;if(se&&p.hasNoSize()&&(_=!0,A[0]=0,R.length>1)){var fe=100/(R.length-1);R.forEach(function(pe){A[pe]=pe*fe})}for(;ue<R.length;++ue)R.forEach(function(pe){Oe(pe,A[pe],!0,!0,_)});Re(),R.forEach(function(pe){re("update",pe),G[pe]!==null&&L&&re("set",pe)})}function At(E){xt(e.start,E)}function Ge(E,L,_,G){if(E=Number(E),!(E>=0&&E<R.length))throw new Error("noUiSlider: invalid handle number, got: "+E);Oe(E,je(L,E),!0,!0,G),re("update",E),_&&re("set",E)}function ne(E){if(E===void 0&&(E=!1),E)return g.length===1?g[0]:g.slice(0);var L=g.map(e.format.to);return L.length===1?L[0]:L}function ae(){for(X(yi.aria),X(yi.tooltips),Object.keys(e.cssClasses).forEach(function(E){Nr(o,e.cssClasses[E])});o.firstChild;)o.removeChild(o.firstChild);delete o.noUiSlider}function Pe(E){var L=A[E],_=p.getNearbySteps(L),G=g[E],se=_.thisStep.step,ue=null;if(e.snap)return[G-_.stepBefore.startValue||null,_.stepAfter.startValue-G||null];se!==!1&&G+se>_.stepAfter.startValue&&(se=_.stepAfter.startValue-G),G>_.thisStep.startValue?ue=_.thisStep.step:_.stepBefore.step===!1?ue=!1:ue=G-_.stepBefore.highestStep,L===100?se=null:L===0&&(ue=null);var fe=p.countStepDecimals();return se!==null&&se!==!1&&(se=Number(se.toFixed(fe))),ue!==null&&ue!==!1&&(ue=Number(ue.toFixed(fe))),[ue,se]}function ze(){return R.map(Pe)}function Le(E,L){var _=ne(),G=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];G.forEach(function(ue){E[ue]!==void 0&&(t[ue]=E[ue])});var se=dh(t);G.forEach(function(ue){E[ue]!==void 0&&(e[ue]=se[ue])}),p=se.spectrum,e.margin=se.margin,e.limit=se.limit,e.padding=se.padding,e.pips?le(e.pips):te(),e.tooltips?q():H(),A=[],xt(El(E.start)?E.start:_,L),E.connect&&xe()}function xe(){for(;c.firstChild;)c.removeChild(c.firstChild);for(var E=0;E<=e.handles;E++)d[E]=y(c,e.connect[E]),et(E);_e({drag:e.events.drag,fixed:!0})}function ut(){T=!T,ch(e,e.connect.map(function(E){return!E})),xe()}function ge(){l=x(o),D(e.connect,l),_e(e.events),xt(e.start),e.pips&&le(e.pips),e.tooltips&&q(),F()}ge();var B={destroy:ae,steps:ze,on:Ie,off:X,get:ne,set:xt,setHandle:Ge,reset:At,disable:U,enable:V,__moveHandles:function(E,L,_){Se(E,L,A,_)},options:t,updateOptions:Le,target:o,removePips:te,removeTooltips:H,getPositions:function(){return A.slice()},getTooltips:function(){return m},getOrigins:function(){return u},pips:le};return B}function px(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=dh(e),i=fx(n,t,e);return n.noUiSlider=i,i}const mx={__spectrum:ah,cssClasses:lh,create:px},gx={class:"slider-container"},bx={class:"slider-wrapper",style:{position:"relative"}},vx=["id"],yx=["value"],wx=["value"],Cx=Ne(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 c=null;const u=a.ref(i.minValue),d=a.ref(i.maxValue),h=()=>{if(!s.value)return;c&&c.destroy();const A=Array(i.maxCount-i.minCount+1).fill(0).map((v,f)=>i.minCount+f),R={to:v=>{const f=Math.round(v);return A[f]||A[0]},from:v=>{const f=Number(v);return A.indexOf(f)}};try{c=mx.create(s.value,{start:[u.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:R,range:{min:0,max:A.length-1}}),c.on("change",v=>{const f=Number(v[0]),T=Number(v[1]);u.value!==f&&(u.value=f,r("updateMinValue",f)),d.value!==T&&(d.value=T,r("updateMaxValue",T)),r("change",[f,T])}),c.on("update",v=>{const f=Number(v[0]),T=Number(v[1]);u.value=f,d.value=T})}catch(v){console.error("Error creating slider:",v)}},m=()=>{a.nextTick(()=>{h()})},p=(A,R)=>{if(c)try{c.set([A,R])}catch(v){console.error("Error updating slider values:",v)}},g=A=>{c&&(A?c.disable():c.enable())};return a.watch(()=>[i.minValue,i.maxValue],([A,R])=>{(A!==u.value||R!==d.value)&&(u.value=A,d.value=R,p(A,R))},{immediate:!1}),a.watch(()=>i.disabled,A=>{g(A)}),a.watch(()=>[i.minCount,i.maxCount],()=>{m()}),a.onMounted(()=>{m()}),a.onUnmounted(()=>{c&&(c.destroy(),c=null)}),e({updateValues:p,getValues:()=>c?.get(),reset:()=>{c&&c.reset()},destroy:()=>{c&&(c.destroy(),c=null)}}),(A,R)=>(a.openBlock(),a.createElementBlock("div",gx,[a.createElementVNode("div",bx,[a.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:A.sliderId},null,8,vx)]),a.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:o,value:A.minValue},null,8,yx),a.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:A.maxValue},null,8,wx)]))}}),[["__scopeId","data-v-892dca90"]]),Ax=["title"],Ex=Ne(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)},c=u=>{t.value&&!t.value.contains(u.target)&&(i.value=!1)};return a.onMounted(()=>{e.clickToShow&&document.addEventListener("click",c)}),a.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",c)}),(u,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",[u.iconClass,s.value]]),title:u.title,style:a.normalizeStyle(r.value),onClick:l},null,14,Ax),i.value&&u.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["question-tooltip",o.value])},[a.createTextVNode(a.toDisplayString(u.title)+" ",1),d[0]||(d[0]=a.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),kx={class:"container-fluid rounded overflow-hidden bg-light"},Sx={class:"row w-100"},Rx={class:"text-secondary"},xx={class:"d-flex py-3 px-2 onlyPrint"},Mx={class:"row w-100"},Tx={class:"text-secondary"},Dx={class:"row"},Lx=Ne(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,c])=>c).map(([l,c])=>({name:t.filterTitles[l]||l,value:String(c),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",kx,[a.createElementVNode("div",{style:a.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[a.createElementVNode("div",Sx,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(c,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:c.key},[a.createElementVNode("div",Rx,a.toDisplayString(c.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(c.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]=c=>o.$emit("showFilter"))},[...l[2]||(l[2]=[a.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),a.createElementVNode("div",xx,[a.createElementVNode("div",Mx,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(c,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:c.key},[a.createElementVNode("div",Tx,a.toDisplayString(c.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(c.value),1)])],2))),128))])]),a.createElementVNode("div",Dx,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:l[1]||(l[1]=c=>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-1b76e3f3"]]);function Rl(n){const e=localStorage.getItem(n);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError("r3ui.table.storage_invalid");return t}function hh(n={}){const e=n.KEY??"tables";function t(o,l){const c={...Rl(e),[o]:l};return 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=Rl(e);if(!Object.prototype.hasOwnProperty.call(l,o))return!0;const{[o]:c,...u}=l;return i(u),!0}function s(o){return Rl(e)[o]??null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}}const fh=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:o=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const c=a.ref({}),u=a.ref(0),d=a.ref(""),h=a.ref(""),m=a.ref({}),p=a.ref(!1),g=a.ref(!1),A=a.ref(!1),R=a.ref(s()),v=a.ref(!1),{setItemStorage:f,removeItemStorage:T,getItemStorage:b}=hh(),M=()=>n==null?null:a.toValue(n),w="[object Object]";function S(){T(w)}function C(Z,Q){const P=new Map(Z.map(J=>[J.field,J]));return Q.map(J=>{const ee=P.get(J.field);return ee?{...J,visible:ee.visible,...ee.width!==void 0?{width:ee.width}:{},...ee.minWidth!==void 0?{minWidth:ee.minWidth}:{}}:J})}S();async function k(){R.value=s(),m.value={}}function y(Z){const Q=M();if(!Q)return!1;f(Q,Z)}const D=a.readonly({...o()});function x(Z,Q){m.value[Z]=Q}const O=a.computed(()=>Object.values(m.value).some(Boolean));function I(){u.value+=1}async function j(Z){if(!Z||!Z.options)return;const Q=r.value.ajaxURL;Q&&(Z.options.ajaxURL=Q),r.value.columns&&(Z.options.columns=r.value.columns,Z.setColumns(r.value.columns),await U(Z)),Q&&Z.replaceData(Q)}async function U(Z){const Q=typeof Z.hideColumn=="function",P=typeof Z.showColumn=="function";if(!Q||!P){I();return}for(const J of r.value.columns)J.visible===!1?Z.hideColumn(J.field):Z.showColumn(J.field)}function V(Z){const Q=M();if(!Q)return!1;f(Q,q(Z))}async function H(Z){const Q=r.value?.paginationMode==="remote";if(!(Q&&(!Z||!Z.replaceData))&&!(v.value||g.value)){g.value=!0;try{if(await K(),v.value||(await a.nextTick(),v.value))return;if(!Q){I();return}await j(Z),p.value=!1}finally{g.value=!1}}}function q(Z){return Z.map(P=>{let J=JSON.parse(JSON.stringify(P));return P.visible===!1&&(delete J.width,delete J.minWidth),J})}function F(Z){const Q=M();if(!Q)return!1;f(Q,q(Z))}function N(){const Z={};for(const[Q,P]of Object.entries({...R.value}))!P||P?.length<1||Array.isArray(P)&&(P[0]===null||P[0]===void 0||P[0]==="")||(Z[Q]=P);return Z}async function K(){if(v.value)return;const Z=e(),Q=await t();if(v.value)return;const P=le();r.value={...r.value,ajaxURL:Z,ajaxResponse:Q,columns:P,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const z=a.computed(()=>{let Z=[];return r.value.columns.map(Q=>{Q.title&&Z.push(Q.visible)}),Z.includes(!1)});async function $(Z,Q){Z.target.checked==!1?(d.value=Q,h.value=""):(h.value=Q,d.value="")}async function te(){const Z=M();Z&&T(Z),r.value.columns=le()}function le(){const Z=M(),Q=i({selectedQuickFilter:l?.value});if(!Z)return Q;const P=b(Z);if(!P)return Q;if(!Array.isArray(P))throw new TypeError("r3ui.table.columns_storage_invalid");return C(P,Q)}async function ce(){const Z=M();Z&&T(Z),r.value.columns.map(Q=>Q.visible=!1),F(r.value.columns)}function Y(Z){r.value.columns=Z;const Q=M();Q&&f(Q,Z)}function ie(){r.value.columns=r.value.columns}return a.onBeforeUnmount(()=>{v.value=!0}),a.provide("setFilterParamsStrings",x),a.provide(Jo,x),a.provide("selectedFilterTitles",D),a.provide(qo,D),a.provide("tableFilters",R),a.provide($o,R),a.provide("filterModalVisibility",p),a.provide(Zo,p),a.provide("resetFilters",k),a.provide(Xo,k),a.provide("applyFilters",H),a.provide(el,H),a.provide("editTableColumnsModalVisibility",A),a.provide(Sd,A),a.provide("tableOptions",r),a.provide(Rd,r),a.provide("editTableColumnVisibility",$),a.provide(xd,$),a.provide("isTableCoumnsHidden",z),a.provide(Md,z),a.provide("unselectAllTableColumnCheckboxes",ce),a.provide(Td,ce),a.provide("selectAllTableColumnCheckboxes",te),a.provide(Dd,te),a.provide("handleColumnsChanged",Y),a.provide(Ld,Y),a.provide("handleColumnsApply",ie),a.provide(Od,ie),a.provide("table",c),a.provide(tl,c),{selectAllTableColumnCheckboxes:te,unselectAllTableColumnCheckboxes:ce,isTableCoumnsHidden:z,editTableColumnVisibility:$,fetchData:K,onHideColumn:F,getFilterData:N,applyFilters:H,reRenderTable:I,resetFilters:k,onTableRowMoved:y,onShowColumn:V,table:c,tableKey:u,columnHide:d,columnShow:h,selectedFilterTitles:D,setFilterParamsStrings:x,filterParamsStrings:m,isSelectedFiltersVisible:O,filterModalVisibility:p,editTableColumnsModalVisibility:A,tableFilters:R,tableOptions:r,handleColumnsChanged:Y,handleColumnsApply:ie}};function ph(n,e){return{[`${e}-${e}`]:{pagination:{first:n("table_pagination.first"),first_title:n("table_pagination.first_title"),last:n("table_pagination.last"),last_title:n("table_pagination.last_title"),prev:n("table_pagination.prev"),prev_title:n("table_pagination.prev_title"),next:n("table_pagination.next"),next_title:n("table_pagination.next_title"),all:n("table_pagination.all"),counter:{showing:n("table_pagination.showing"),of:n("table_pagination.of"),rows:n("table_pagination.rows"),pages:n("table_pagination.pages")}},data:{loading:n("table_pagination.loading"),error:n("table_pagination.error")}}}}function mh(n,e){return{locale:`${e}-${e}`,langs:ph(n,e),rtl:e==="he",loadMoreText:n("table_pagination.load_more"),noDataText:n("table_pagination.no_data"),paginationLimitText:n("table_pagination.pagination_limit")}}function gh(n,e){return a.computed(()=>mh(n,a.unref(e)))}function bh(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 vh(n={}){const e=(i,r)=>i==null||i===""?[]:Array.isArray(i)?i.flatMap((s,o)=>e(s,r?`${r}[${o}]`:String(o))):typeof i=="object"?Object.entries(i).flatMap(([s,o])=>e(o,r?`${r}[${s}]`:s)):r?[{key:r,value:String(i)}]:[],t=i=>i==null||i===""?!0:Array.isArray(i)?i.length===0:typeof i=="object"?Object.keys(i).length===0:!1;return async(i,r,s)=>{const o=(r.method||"GET").toUpperCase();let l=i;if(o==="GET"&&s&&typeof s=="object"){const u=new URL(i,typeof window<"u"?window.location.origin:"http://localhost");Object.entries(s).forEach(([d,h])=>{if(t(h))return;e(h,d).forEach(({key:p,value:g})=>{u.searchParams.set(p,g)})}),l=u.toString()}let c;try{c=await fetch(l,r)}catch(u){throw n.onError?.(u),u}if(c.status===401)throw n.onUnauthorized?.(c),c;if(c.status===404&&n.onNotFound)return n.onNotFound({url:l,params:s,response:c});if(!c.ok){const u=await Ox(c);throw n.onError?.(u),u}try{return await c.json()}catch(u){const d=Object.assign(u instanceof Error?u:new Error("Malformed JSON"),{kind:"malformed",status:502,statusCode:502});throw n.onError?.(d),d}}}async function Ox(n){const e=await Bx(n);return Object.assign(new Error(`HTTP ${n.status}`),{status:n.status,statusCode:n.status,data:e,headers:n.headers,response:n})}async function Bx(n){const e=n.clone();try{return await e.json()}catch{return await n.clone().text()}}function Fx(n){const e=gh(n.t,n.locale),t=a.ref(0),i=a.ref(n.getColumns()),r=a.ref(!1),s=n.createAjaxResponse(t),o=a.ref({...n.defaultTableOptions??{},columns:n.getColumns(),ajaxResponse:s,ajaxRequestFunc:vh({onUnauthorized:n.onUnauthorized,onError:n.onError,onNotFound:n.notFound==="empty"?({url:T,params:b})=>bh(T,Number(b.page||1),Number(b.per_page||10)):void 0})}),l=typeof n.localStorageKey=="string"?a.ref(n.localStorageKey):n.localStorageKey,c=fh({localStorageKey:l,getAjaxResponse:async()=>s,getAjaxUrl:()=>n.getAjaxUrl(()=>c.getFilterData()),tableOptions:o,initialFilters:n.initialFilters,getColumns:n.getColumns,initialFilterTitles:n.initialFilterTitles}),{tableKey:u,columnHide:d,columnShow:h,table:m,onTableRowMoved:p,onShowColumn:g,onHideColumn:A,handleColumnsChanged:R,handleColumnsApply:v}=c;async function f(T){m.value=T,r.value&&n.applyFiltersOnReady!==!1&&m.value&&await c.applyFilters(m.value)}if(n.filtersContextKey){const T={total:t,tableDefault:c},b=n.extendFiltersContext?{...T,...n.extendFiltersContext(T)}:T;a.provide(n.filtersContextKey,b)}return n.watchQuickFilter&&a.watch(()=>n.watchQuickFilter.value,async(T,b)=>{T!==b&&m.value&&r.value&&await c.applyFilters(m.value)},{deep:!0}),a.onMounted(async()=>{n.onMountedExtra&&await n.onMountedExtra(),r.value=!0,m.value&&n.applyFiltersOnReady!==!1&&await c.applyFilters(m.value)}),{tableOptions:o,tableColumns:i,tableKey:u,columnHide:d,columnShow:h,tableLocalizations:e,handleTableReady:f,onTableRowMoved:p,onShowColumn:g,onHideColumn:A,handleColumnsChanged:R,handleColumnsApply:v,total:t,tableDefault:c,table:m,isInitDone:r}}function yh(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function wh(n){return n.filter(e=>e.visible===!0)}function Ch(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Ir(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function xl(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Fn(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 Ah(n){return n.some(e=>e.title&&!e.visible)}function Eh(n,e){return n.find(t=>t.field===e)}function Vr(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const _x=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:Eh,getVisibleColumns:wh,hasHiddenColumns:Ah,hideAllColumns:xl,prepareColumnsToSave:yh,resetColumnsToDefault:Ir,toggleColumnVisibility:Ch,updateColumn:Vr,validateColumns:Fn},Symbol.toStringTag,{value:"Module"}));function kh(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:o,validateOnChange:l=!0}=n;Fn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const c=a.ref(!1),u=a.ref([...e]),d=a.ref(!1);if(t&&typeof window<"u")try{const V=localStorage.getItem(t);if(V){const H=JSON.parse(V);Fn(H)&&(u.value=H)}}catch(V){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",V)}const h=a.computed(()=>wh(u.value)),m=a.computed(()=>Ah(u.value)),p=a.computed(()=>u.value.length),g=a.computed(()=>h.value.length);function A(V){if(!(!t||typeof window>"u"||!r))try{const H=yh(V);localStorage.setItem(t,JSON.stringify(H))}catch(H){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",H)}}function R(){if(!t||typeof window>"u")return null;try{const V=localStorage.getItem(t);if(V){const H=JSON.parse(V);if(Fn(H))return H}}catch(V){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",V)}return null}function v(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(V){console.warn("useTableColumnsEnhanced: failed to clear localStorage",V)}}function f(V){if(l&&!Fn(V)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}u.value=[...V],A(V),s?.(V)}function T(V,H){const q=V.target,F=Vr(u.value,H,{visible:q.checked});f(F)}function b(V){c.value=V}function M(V){const H=V||u.value;f(H),c.value=!1,o?.(H)}function w(){const V=Ir(u.value);f(V)}function S(){const V=xl(u.value);f(V)}function C(V){const H=Ch(u.value,V);f(H)}function k(V){const H=Vr(u.value,V,{visible:!0});f(H)}function y(V){const H=Vr(u.value,V,{visible:!1});f(H)}function D(){const V=Ir(e);f(V)}function x(){const V=Ir(u.value);f(V)}function O(){const V=xl(u.value);f(V)}function I(V){return Eh(u.value,V)}function j(V){return I(V)?.visible??!1}function U(){i?.value&&(i.value.columns=u.value)}return a.watch(u,()=>{U()},{deep:!0}),a.watch(()=>e,V=>{d.value||(u.value=[...V],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,U()),{columnsModalVisibility:c,tableColumns:u,visibleColumns:h,hasHidden:m,columnsCount:p,visibleCount:g,isInitialized:d,handleColumnsModalVisibility:b,handleColumnVisibilityChange:T,handleColumnsApply:M,handleColumnsSelectAll:w,handleColumnsUnselectAll:S,updateColumns:f,toggleColumn:C,showColumn:k,hideColumn:y,resetToDefault:D,showAll:x,hideAll:O,getColumn:I,isColumnVisible:j,saveToLocalStorage:A,loadFromLocalStorage:R,clearLocalStorage:v,syncWithTableOptions:U}}function Px(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:o}=n,l=kh({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:p=>{s?.(p),r?.applyFilters&&r.applyFilters()},onApply:p=>{o?.(p),r?.applyFilters&&r.applyFilters()}});function c(p){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",p),l.updateColumns(p)}function u(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const p=r.onShowColumn;r.onShowColumn=g=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",g),l.updateColumns(g),p?.(g)}}if(r.onHideColumn){const p=r.onHideColumn;r.onHideColumn=g=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",g),l.updateColumns(g),p?.(g)}}}}function h(){i?.value&&(i.value.columns=l.tableColumns.value)}function m(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return a.watch(()=>t(),p=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",p),l.updateColumns(p)},{deep:!0}),d(),{...l,handleColumnsChanged:c,handleColumnsApply:u,syncWithTableOptions:h,syncWithTable:m,setupTableDefaultIntegration:d}}function Nx(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 Ix=(n={})=>{const{navigate:e=v=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=v=>v,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,o=a.ref([]);function l(v){e(v)}function c(v,f){if(!Array.isArray(v))return[];const T=JSON.parse(JSON.stringify(v));return T.length>f&&T.splice(0,T.length-f),T}function u(){const v=i();if(typeof v.path!="string"||!v.path)throw new TypeError("useBreadcrumbs: path обязателен");if(typeof v.name!="string"||!v.name)throw new TypeError("useBreadcrumbs: name обязателен");return{path:v.path,name:v.name}}function d(){const v=localStorage.getItem(s);if(v===null||v==="")return[];let f;try{f=JSON.parse(v)}catch{throw new TypeError("useBreadcrumbs: невалидный JSON в storage")}if(!Array.isArray(f))throw new TypeError("useBreadcrumbs: storage должен быть массивом");return f}function h(){const v=u(),f=o.value||[],T=f[f.length-1];if(JSON.stringify(T)===JSON.stringify(v))return!1;f.push(v),o.value=c(f,r),localStorage.setItem(s,JSON.stringify(o.value))}function m(){o.value=d(),h()}const p=a.computed(()=>o.value.map((v,f)=>({text:t(`routes.${v.name}`),href:v.path,isActive:f===o.value.length-1})));function g(){h()}function A(){o.value=[],localStorage.removeItem(s)}function R(v){const f=o.value||[];f.push(v),o.value=c(f,r),localStorage.setItem(s,JSON.stringify(o.value))}return typeof localStorage<"u"&&m(),a.onMounted(()=>{o.value.length===0&&typeof localStorage<"u"&&m()}),{goTo:l,crumbs:p,breadcrumbs:o,updateBreadcrumbs:g,clearBreadcrumbs:A,addBreadcrumb:R}};function Vx(n){return n?.length?n.map(e=>typeof e=="string"?e:e?.name??"").filter(e=>!!e):[]}function Hx(n){const e=a.computed(()=>{const t=a.toValue(n);return Vx(t)});return t=>gr(t,e.value)}const ci={country:"country",region:"region",district:"district",locality:"locality",street:"street",house:"house",building:"building",apartment:"apartment"};function zx(n){return{countryLabel:n(ci.country),regionLabel:n(ci.region),districtLabel:n(ci.district),localityLabel:n(ci.locality),streetLabel:n(ci.street),houseLabel:n(ci.house),buildingLabel:n(ci.building),apartmentLabel:n(ci.apartment)}}const Ml={expandAll:"accordion.expand_all",collapseAll:"accordion.collapse_all"};function jx(n){return{expandText:n(Ml.expandAll),collapseText:n(Ml.collapseAll)}}const Sh=["create-object-access-request","cancel-own-object-access-request","decide-object-access-request"],Tl=[{permission:"view-users",href:"/users"},{permission:"view-organizations",href:"/organizations"},{permissions:Sh,href:"/access-requests"}],Rh=["sidebar-view-auth",...Tl.flatMap(n=>n.permissions?[...n.permissions]:n.permission?[n.permission]:[])];function xh(n,e){return e.permissions?.length?e.permissions.some(n):e.permission?n(e.permission):!1}function Wx(n){return Rh.some(n)}function Ux(n){return Tl.some(e=>xh(n,e))}async function Gx(n){const{logOutSSO:e,nextTick:t,navigateTo:i,redirect:r,onReset:s,redirectPath:o="/login",onError:l}=n;if(typeof l!="function")throw new Error("runLogoutFlow: onError обязателен");const c=typeof e=="function"?e:async()=>{};try{await c()}catch(u){l(u)}finally{const u=r??i;if(r){s(),u(o);return}await t(()=>{s(),u(o)})}}const Mh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function Th(){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 Dh(n){const e=Th(),t=new Uint8Array(n);e.getRandomValues(t);let i="";return t.forEach(r=>{i+=Mh[r%Mh.length]}),i}function Yx(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 Lh(n=64){if(!Number.isInteger(n)||n<43||n>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return Dh(n)}async function Oh(n){const e=Th(),i=new TextEncoder().encode(n),r=await e.subtle.digest("SHA-256",i);return Yx(r)}async function Bh(n=64){const e=Lh(n),t=await Oh(e);return{codeVerifier:e,codeChallenge:t}}function Fh(n=32){if(!Number.isInteger(n)||n<16||n>128)throw new Error("OAuth state length must be between 16 and 128.");return Dh(n)}function Hr(n){return Number.isInteger(n)&&Number(n)>=400&&Number(n)<600}function Dl(n,e=new Set){if(n==null)return;if(typeof n=="number")return Hr(n)?n:void 0;if(typeof n!="object"||e.has(n))return;if(e.add(n),typeof Response<"u"&&n instanceof Response)return Hr(n.status)?n.status:void 0;const t=n;if(Hr(t.status))return t.status;if(Hr(t.statusCode))return t.statusCode;const i=Dl(t.response,e);return i!==void 0?i:Dl(t.cause,e)}function _n(n){return n===400?"Bad Request":n===401?"Unauthorized":n===403?"Forbidden":n===404?"Not Found":n===409?"Conflict":n===422?"Unprocessable Entity":n===429?"Too Many Requests":n===502?"Bad Gateway":n===503?"Service Unavailable":n===504?"Gateway Timeout":n>=500?"Internal Server Error":"Request failed"}function zr(n,e=500){return Dl(n)??e}const Qx="Web Crypto API недоступен. Используйте HTTPS или обновите браузер.",Kx="NUXT_PUBLIC_ORIGIN не совпадает с адресом вкладки. Откройте приложение по origin из конфига.",Ll="r3ui-sso-start-lock",Ol="r3ui-sso-auth-url";let Pn=!1;function Jx(){try{return sessionStorage.getItem(Ll)==="1"}catch{return!1}}function qx(){try{const n=sessionStorage.getItem(Ol);return typeof n=="string"&&n.length>0?n:null}catch{return null}}function _h(){try{sessionStorage.setItem(Ll,"1")}catch{}}function $x(n){try{sessionStorage.setItem(Ol,n)}catch{}}function jr(){Pn=!1;try{sessionStorage.removeItem(Ll),sessionStorage.removeItem(Ol)}catch{}}function Zx(){jr()}function Xx(){Pn=!1}async function eM(n){if(!n||typeof n.setLoading!="function")throw new Error("signInWithSSO: deps.setLoading обязателен");if(typeof n.getPublicConfig!="function")throw new Error("signInWithSSO: deps.getPublicConfig обязателен");if(typeof n.useCookie!="function")throw new Error("signInWithSSO: deps.useCookie обязателен");if(typeof n.showError!="function")throw new Error("signInWithSSO: deps.showError обязателен");if(typeof window>"u")return;const e=n.redirectTo??(c=>{window.location.href=c}),i={maxAge:300,sameSite:"lax",secure:(n.isSecure??(()=>window.location.protocol==="https:"))(),path:"/"},r=()=>{const c=n.useCookie("pkce_state",i).value;return typeof c=="string"&&c.length>0?c:null},s=()=>{const c=qx();return r()?(Pn=!0,_h(),c&&e(c),!0):!1};if(Pn)return;if(Jx()){if(s())return;jr()}n.setLoading(!0);const o=n.generatePkcePair??Bh,l=n.generateState??Fh;try{const{authApiUrl:c,ssoClientId:u,origin:d}=n.getPublicConfig();if(!c||!u)throw new Error("Не настроены CLIENT_ID или NUXT_AUTH_API_URL");if(typeof d!="string"||d!==window.location.origin){n.setLoading(!1),n.showError({statusCode:400,statusMessage:Kx});return}if(s()){n.setLoading(!1);return}Pn=!0,_h();let h,m,p;try{({codeVerifier:h,codeChallenge:m}=await o()),p=l()}catch{jr(),n.setLoading(!1),n.showError({statusCode:500,statusMessage:Qx});return}n.useCookie("pkce_verifier",i).value=h,n.useCookie("pkce_state",i).value=p;const g=`${d}/api/auth/callback`,A=`${c}/oauth/authorize?`+new URLSearchParams({client_id:u,redirect_uri:g,response_type:"code",scope:"*",code_challenge:m,code_challenge_method:"S256",state:p});$x(A),e(A)}catch(c){jr(),n.setLoading(!1);const u=zr(c,500),d=c instanceof Error&&c.message.trim()?c.message:_n(u);n.showError({statusCode:u,statusMessage:d,cause:c})}}const Ph=n=>{if(typeof n=="string"&&n.length!==0&&!n.toLowerCase().includes("localhost"))return n},Bl=({origin:n,authCookieDomain:e,httpOnly:t})=>{const i=Ph(e);return{path:"/",sameSite:"lax",secure:n?.startsWith("https://")??!1,...typeof t=="boolean"?{httpOnly:t}:{},...i?{domain:i}:{}}};function Di(n,e){if(typeof n!="function")throw new Error(`handlePkceCallback: deps.${e} обязателен`)}function ui(n,e,t,i){throw n({statusCode:e,statusMessage:t,...i!==void 0?{cause:i}:{}})}function Wr(n){if(!(typeof n!="string"||n.length===0))return n}function Nh(n){return!!n&&typeof n=="object"&&!Array.isArray(n)}async function tM(n){if(!n)throw new Error("handlePkceCallback: deps обязателен");if(Di(n.getQuery,"getQuery"),Di(n.getCookie,"getCookie"),Di(n.setCookie,"setCookie"),Di(n.deleteCookie,"deleteCookie"),Di(n.createError,"createError"),Di(n.sendRedirect,"sendRedirect"),Di(n.fetchToken,"fetchToken"),!Nh(n.publicConfig))throw new Error("handlePkceCallback: deps.publicConfig обязателен");const e=n.publicConfig.authApiUrl,t=n.publicConfig.ssoClientId,i=n.publicConfig.origin;(typeof e!="string"||e.length===0)&&ui(n.createError,500,"Internal Server Error: Could not exchange code for token."),(typeof t!="string"||t.length===0)&&ui(n.createError,500,"Internal Server Error: Could not exchange code for token."),(typeof i!="string"||i.length===0)&&ui(n.createError,500,"Internal Server Error: Could not exchange code for token.");const r=n.getQuery(n.event);Nh(r)||ui(n.createError,500,"Internal Server Error: Could not exchange code for token.");const s=Wr(r.code),o=Wr(r.state),l=Wr(n.getCookie(n.event,"pkce_state")),c=Wr(n.getCookie(n.event,"pkce_verifier"));s||ui(n.createError,400,"Authorization code is missing."),(!o||!l||o!==l)&&ui(n.createError,400,"OAuth state is invalid."),c||ui(n.createError,400,"PKCE code_verifier is missing.");const u=Bl({origin:i,authCookieDomain:n.publicConfig.authCookieDomain,httpOnly:!1});let d;try{d=await n.fetchToken(`${e}/oauth/token`,{method:"POST",body:{grant_type:"authorization_code",client_id:t,redirect_uri:`${i}/api/auth/callback`,code:s,code_verifier:c},headers:{Accept:"application/json"}})}catch(m){const p=zr(m,500);ui(n.createError,p,_n(p),m)}const h=d&&typeof d=="object"&&"access_token"in d?d.access_token:void 0;return(typeof h!="string"||h.length===0)&&ui(n.createError,500,"Internal Server Error: Could not exchange code for token."),n.setCookie(n.event,"auth_token",h,{...u}),n.deleteCookie(n.event,"pkce_verifier"),n.deleteCookie(n.event,"pkce_state"),n.sendRedirect(n.event,"/")}function Fl(n,e){if(typeof n!="function")throw new Error(`exchangePasswordToken: deps.${e} обязателен`)}function nn(n,e,t){throw n({statusCode:e,statusMessage:t})}async function iM(n){if(!n)throw new Error("exchangePasswordToken: deps обязателен");Fl(n.readBody,"readBody"),Fl(n.fetchToken,"fetchToken"),Fl(n.createError,"createError");const e=await n.readBody(n.event);(!e||typeof e!="object"||Array.isArray(e))&&nn(n.createError,400,"Request body must be an object."),(typeof n.tokenUrl!="string"||n.tokenUrl.length===0)&&nn(n.createError,500,"Internal Server Error: OAuth token URL is missing."),(typeof n.clientId!="string"||n.clientId.length===0)&&nn(n.createError,500,"Internal Server Error: OAuth client_id is missing."),(typeof n.clientSecret!="string"||n.clientSecret.length===0)&&nn(n.createError,500,"Internal Server Error: OAuth client_secret is missing.");try{const t=await n.fetchToken(n.tokenUrl,{method:"POST",body:{...e,grant_type:"password",scope:"*",client_id:n.clientId,client_secret:n.clientSecret}});if(typeof t=="string")try{return JSON.parse(t)}catch{nn(n.createError,502,_n(502))}return t}catch(t){const i=zr(t,500);nn(n.createError,i,_n(i))}}function Ur(n,e){if(typeof n!="function")throw new Error(`runLogoutHandler: deps.${e} обязателен`)}function Ih(n,e,t,i){throw n({statusCode:e,statusMessage:t,...i!==void 0?{cause:i}:{}})}function nM(n){return!!n&&typeof n=="object"&&!Array.isArray(n)}async function rM(n){if(!n)throw new Error("runLogoutHandler: deps обязателен");if(Ur(n.getCookie,"getCookie"),Ur(n.deleteCookie,"deleteCookie"),Ur(n.createError,"createError"),Ur(n.fetchLogout,"fetchLogout"),!nM(n.publicConfig))throw new Error("runLogoutHandler: deps.publicConfig обязателен");const e=typeof n.publicConfig.origin=="string"?n.publicConfig.origin:void 0,t=Bl({origin:e,authCookieDomain:n.publicConfig.authCookieDomain}),i=n.publicConfig.authApiUrl;let r;try{if(typeof i=="string"&&i.length>0){const s=n.getCookie(n.event,"auth_token");await n.fetchLogout(`${i}/api/logout`,{method:"POST",headers:{Accept:"application/json",Authorization:`Bearer ${s}`}})}}catch(s){r=s}finally{n.deleteCookie(n.event,"auth_token",{...t}),n.deleteCookie(n.event,"laravel_session"),n.deleteCookie(n.event,"sessionId"),n.deleteCookie(n.event,"XSRF-TOKEN")}if((typeof i!="string"||i.length===0)&&Ih(n.createError,500,"Internal Server Error: Could not clear session."),r!==void 0){const s=zr(r,500);Ih(n.createError,s,_n(s),r)}return!0}const Nn="/api/services/handbook/overpass/",sM=n=>({searchCountries:(e={})=>n(`${Nn}countries`,{method:"GET",params:e}),getRegionsByCountry:e=>n(`${Nn}countries/${e}/regions`,{method:"GET"}),getDistrictsByRegion:e=>n(`${Nn}regions/${e}/districts`,{method:"GET"}),getLocalitiesByDistrict:e=>n(`${Nn}districts/${e}/cities`,{method:"GET"}),getStreetsByLocality:e=>n(`${Nn}cities/${e}/streets`,{method:"GET"})});W.ACCESS_REQUEST_ACTION_PERMISSIONS=Sh,W.ACCORDION_LOCALIZATION_KEYS=Ml,W.ADDRESS_FORM_TRANSLATIONS=ci,W.AUTH_SIDEBAR_EXTERNAL_LINK_PERMISSIONS=Rh,W.AUTH_SIDEBAR_NAV_ITEMS=Tl,W.AddButton=_l,W.AddressForm=vC,W.AgeFromAgeTo=OC,W.BooleanCheckbox=gd,W.Breadcrumbs=WE,W.Card=FA,W.CardInfo=XE,W.Checkbox=yv,W.ClearFormButton=Zh,W.CollapseButton=Qh,W.CollapsedSidebarLink=jd,W.ColumnSubFilter=X1,W.ConfirmationModal=oA,W.CustomInput=br,W.DefaultAccordion=F0,W.DefaultButton=Bi,W.DefaultDropDown=il,W.DefaultModal=Ed,W.Divider=nl,W.EditTableColumns=Cl,W.EditTableColumnsModalComponent=Fd,W.ErrorMessageComponent=M0,W.ExportButton=Kh,W.ExportComponent=zf,W.FilterValuesPanel=Lx,W.Flatpickr=$w,W.Footer=PA,W.FormError=Si,W.Header=ZA,W.HeaderSearchForm=tC,W.Icon=Gr,W.KindCheckboxesAccordion=Y0,W.LanguageSelector=UE,W.Logo=_d,W.MainComponent=_E,W.MultiCheckbox=Dw,W.MultiInput=_w,W.MultipleQuickFilterComponent=CR,W.PageCard=w0,W.PageTitle=LA,W.PasswordInput=mv,W.PrintButton=Jh,W.QuestionIcon=Ex,W.Sidebar=Wd,W.SidebarLink=zd,W.Slider=Cx,W.Spinner=In,W.SsoLoginPending=DR,W.SubFilterToggleBtn=eh,W.Table=K1,W.TableAppliedFiltersStorage=eR,W.TableColumnsButton=fR,W.TableColumnsModal=pR,W.TableCount=Z1,W.TableFilterModalComponent=kd,W.TableFilterModalShell=vA,W.TableQuickFilterComponent=rR,W.Toast=Ud,W.ToggleAllTableRowButtons=bR,W.ToggleButtons=tf,W.VSelect=Ht,W.addDays=za,W.addMonths=ja,W.addToLocalStorageKey=Id,W.addYears=Wa,W.applyFiltersKey=el,W.areArraysEqual=oo,W.arrayToCutString=Xa,W.camelCase=Qa,W.canViewAuthSidebarExternalLink=Wx,W.canViewAuthSidebarNavItem=xh,W.canViewAuthSidebarSection=Ux,W.capitalize=Ya,W.chunk=no,W.clamp=So,W.constants=wl,W.createAddressService=sM,W.createColumnHandlers=Nx,W.createEmptyRemotePageResponse=bh,W.createTableAjaxRequestFunc=vh,W.createTabulatorLangsFromT=ph,W.createTabulatorTableProps=mh,W.cutString=Za,W.debounce=gn,W.editTableColumnVisibilityKey=xd,W.editTableColumnsModalVisibilityKey=Sd,W.exchangePasswordToken=iM,W.expandAccordionKey=rl,W.expandedAccordionKey=sl,W.filterModalVisibilityKey=Zo,W.findAll=Ea,W.findOne=Aa,W.firstToUppercase=Ga,W.flattenObject=mr,W.formatDate=Ia,W.formatMoney=Va,W.generateCodeChallenge=Oh,W.generateCodeVerifier=Lh,W.generateId=ho,W.generatePkcePair=Bh,W.generateState=Fh,W.getAccordionLocalization=jx,W.getAddressFormLabels=zx,W.getAuthCookieOptions=Bl,W.getBrowserLocale=xa,W.getDeclinationFromNumber=Ua,W.getDeepCopyObject=oi,W.getLocalStorage=vo,W.getNowDate=Ha,W.getSessionStorage=Co,W.getSharedCookieDomain=Ph,W.getSupportedLocales=dr,W.getUniqueKey=mi,W.getValueFromArr=Da,W.getValueFromObjectItem=hr,W.groupBy=to,W.handleColumnsApplyKey=Od,W.handleColumnsChangedKey=Ld,W.handlePkceCallback=tM,W.hasMatch=Do,W.hasPermission=gr,W.hasRole=To,W.helpers=cv,W.hideSpinnerKey=Nd,W.initEmailMask=Oa,W.initInnMask=Fa,W.initKppMask=_a,W.initPassportMask=Na,W.initPhoneMask=Ba,W.initSnilsMask=Pa,W.injectAddToLocalStorage=iE,W.injectExpandAccordion=ll,W.injectExpandedAccordion=cl,W.injectHideSpinner=tE,W.injectShowSpinner=eE,W.injectSidebarContentVisibility=Vd,W.injectToggleSidebar=Hd,W.isArraysEqual=ao,W.isEqual=pr,W.isObject=ro,W.isTableCoumnsHiddenKey=Md,W.isValidDate=fr,W.isValidEmail=po,W.isValidLocale=Ma,W.isValidPhone=mo,W.isValidUrl=go,W.kebabCase=Ka,W.lerp=Ro,W.maskDate=$a,W.memoize=Eo,W.mountSubFilter=Ui,W.omit=uo,W.once=ko,W.pick=co,W.prepareResponse=Lo,W.prepareSelectOptions=ka,W.r3uiTableDefaultApiKey=Ko,W.random=xo,W.removeLocalStorage=yo,W.removeSessionStorage=Ao,W.required=fo,W.resetFiltersKey=Xo,W.resetSignInWithSSOLock=Zx,W.roundToDecimals=Mo,W.runLogoutFlow=Gx,W.runLogoutHandler=rM,W.scrollToElement=Ra,W.scrollToError=Sa,W.selectAllTableColumnCheckboxesKey=Dd,W.selectedFilterTitlesKey=qo,W.setFilterParamsStringsKey=Jo,W.setLocalStorage=bo,W.setSessionStorage=wo,W.showSpinnerKey=Pd,W.sidebarContentVisibilityKey=al,W.signInWithSSO=eM,W.simulateSignInWithSSOHmr=Xx,W.snakeCase=Ja,W.sortBy=io,W.sumOfArrayNumbers=La,W.tableColumnsUtils=_x,W.tableFiltersRefKey=$o,W.tableOptionsKey=Rd,W.tableRefKey=tl,W.throttle=Ta,W.toggleSidebarKey=ol,W.truncate=qa,W.unflatenObject=lo,W.unique=eo,W.unselectAllTableColumnCheckboxesKey=Td,W.useBreadcrumbs=Ix,W.usePermissionChecker=Hx,W.useR3uiTableDefaultInject=Bd,W.useRemoteTable=Fx,W.useTableColumns=Al,W.useTableColumnsEnhanced=kh,W.useTableColumnsIntegration=Px,W.useTableDefault=fh,W.useTableStorage=hh,W.useTabulatorTableProps=gh,Object.defineProperty(W,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(c){l.push(c.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(c=>{i--,t.push(c[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 On=bi;class O1 extends On{static extendModule(){On.initializeModuleBinder(vl),On._extendModule(...arguments)}static registerModule(){On.initializeModuleBinder(vl),On._registerModule(...arguments)}constructor(e,t,i){super(e,t,vl)}}var B1=O1;const F1={key:0,class:"bi bi-chevron-up"},_1={key:1,class:"bi bi-chevron-down"},eh=Ne({__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",F1)):(a.openBlock(),a.createElementBlock("i",_1))]))}},[["__scopeId","data-v-4810f2ed"]]),wl={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(wl);function P1(){return{}}const N1="data:image/gif;base64,R0lGODlhQABAANUAAAQCBISGhMTGxERCROTm5KSmpCQiJGRiZNTW1LS2tPT29BQSFJSWlFRSVDQyNHR2dMzOzOzu7KyurGxqbNze3Ly+vFxaXAwKDIyOjCwqLPz+/BweHKSipDw6PMzKzExKTOzq7KyqrCQmJGRmZNza3Ly6vPz6/BQWFJyanFRWVDQ2NHx+fNTS1PTy9LSytGxubOTi5MTCxFxeXAwODJSSlP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAgA1ACwAAAAAQABAAAAG/sCacEgsGo/IpHLJbDqf0Kh0Sq1ar9isdsvteikPiHfcAGxa424AAFilua0NG/behtipulbTYcf0WRBsDiaAWCNsKIZXBDMAJ2iLVRhsLpJHFA0BCkomBymRezAInE0PbBshGpIgHgIeFE4QcmwdYnotCAK7HqFMLStsbCMgaQoUvB4whVEwKcIzGMxaJgSuHjGkVjEOwgdcyLssEVkKKCcAFlwkryDTWREJvlgm7pf3+Pn6+/yLFAkAAwZkUYcAhYMIEc4TEuGCsIfC/owhgIFGxYsWK5Yi0hAiRIleKGIYSRLjRiL/BAq8lQYECRgvY5KgsLCfzZs4c+oE1MJF+80qCiD8pGLiXDouGFIcqPCuCjdvXBg0SNHgAQIrzqBJ42LChQyqKTAUi6IgmLARBNK0QAHWQoGTS2YJswWIwoqpKUbEMoVK1SINAiZM5eCEhCa4RTxZGFpEwYQHTRu7wJB2CyUAlpqU2LBB0SUQjk6QKyIA5JAIDjZkGLsIEQDPRAQBYDmkAOcHkmQ7QFyCTQIjJgZwvgpIwwA2FY4k8H3EA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DB1vYiYGgoUOH6opMyJCsIoAZaSo00NCgo8eOKvIRmWgxGcYxGjtyXMkx5CaEMH2NKfCwJrOBOHPq3MlTE/6MFyKzMJgRFEuKdu+40PAQQUK9cONYldsSgIIHDzJkVrvGKts2LSkIhLDqAUMBKQyQ7SJxdsyED1cp2EDBT0muXb0EIdBw1YOLEqpYufrKh4MCFx4oLHBSolNdIikMWCiaBIYFEoSNMNigIgaXB6xeOJHAao+mETUArIg4RMBJIjDc1biZiAQrFEYgsNJ6AwUrEpV0A6BQ9wQrBUZSROU9hsMAVo2MKDh+5AIrG0/TiGBlAsl0AMiPcHVjh4EuAJ6PfA9vpILgx1RZ0UiyPonaAHYStKI8pD4S8wAkYEcJKjDXH3VJQKACYAL511MRDj44RAUZ1CCGhBLRhuGGHAPiFAQAOw==",I1={class:"placeholder-glow"},V1={key:0,class:"alert alert-danger mt-2 table-load-error",role:"alert"},H1={class:"tabulator hide-to-print sticky-bottom bg-white"},z1={class:"row"},j1={key:0,class:"col-auto"},W1={class:"col"},U1={class:"tabulator-footer",ref:"footer"},G1=["id"],Y1=["disabled"],Q1={key:0,class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},K1=a.defineComponent({__name:"Table",props:{langs:{type:Object,default:()=>({})},paginationPage:{type:Number,default:null},locale:{type:String,default:"en-en"},rtl:{type:Boolean,default:!1},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","loadError"],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(""),c=a.ref(null),u=a.ref({data:[],rows:[]}),d=a.ref(new Set(t.selectedRowsStorage)),h=a.ref(!1),m=a.ref(mi()),p=a.ref(null),g=a.ref(null),A=a.ref(!1),R=a.ref(null),v=a.ref(!1),f=a.computed(()=>t.options?.paginationMode==="remote"),T=a.computed(()=>wl.customPerPageOptions),b=a.useSlots(),M=P=>!!b[P],w=()=>{o.value=""},S=P=>!P||!P.length?[]:P.map(J=>J),C=()=>{if(!p.value)return;const P=p.value.querySelector(".tabulator-header");!P||t.isVisibleColumnSubFilter===null||Ui(P,eh,{modelValue:t.isVisibleColumnSubFilter,"onUpdate:modelValue":J=>i("updateIsVisibleColumnSubFilter",J)})},k=()=>{if(!p.value)return;const P=p.value.querySelector(".tabulator-header");P&&(P.classList.add("position-relative"),C())},y=()=>{if(!g.value)return null;const P=g.value;if(typeof P.getPageMax=="function"){const ee=P.getPageMax();if(ee!=null&&!Number.isNaN(Number(ee)))return Number(ee)}const J=P.last_page;return J!=null&&J!==""&&!Number.isNaN(Number(J))?Number(J):null},D=()=>{if(!g.value)return;const P=p.value?.parentNode?.querySelector(".tabulator-footer"),J=p.value?.parentNode?.querySelector(".tabulator-pages"),ee=y();if(ee==null||ee<1||Number.isNaN(ee)){P&&P.classList.add("d-none");return}ee>1?(P&&P.classList.remove("d-none"),J&&J.style.display==="none"&&(J.style.display="")):P&&P.classList.add("d-none")},x=()=>{v.value||(A.value=!0,l.value="")},O=()=>{v.value},I=P=>{if(A.value=!1,v.value)return;const J=P instanceof Error&&P.message?P.message:typeof P=="string"&&P?P:"Failed to load data";l.value=J,i("loadError",P)},j=()=>{v.value||(h.value=!0,i("updateTable",g.value),g.value&&g.value.selectRow(Array.from(d.value)))},U=P=>{v.value||(setTimeout(()=>{v.value||i("savePaginationPage",P)}),f.value&&D(),s.value>0&&i("pageLoaded"),k())},V=P=>{if(v.value)return;const J=P.getData(),ee=g.value?.options?.index||"id",be=J[ee]??null;be!==null&&(d.value.add(be),u.value.data.push(J),u.value.rows.push(P),i("updateSelectedRows",{data:u.value.data,row:u.value.rows}),i("selectedRow",{data:J,row:P}))},H=P=>{if(v.value)return;const J=P.getData(),ee=g.value?.options?.index||"id",be=J[ee]??null;if(be===null)return;d.value.delete(be);const we=u.value.data.findIndex(Ae=>Ae[ee]===be);we!==-1&&(u.value.data.splice(we,1),u.value.rows.splice(we,1)),i("updateUnselectedRows",{data:J,row:P}),i("unselectedRow",{data:J,row:P})},q=function(){v.value||(g.value&&g.value.selectRow(Array.from(d.value)),A.value=!1,f.value&&D())},F=(P,J)=>{if(v.value)return;if(J?._cell?.column?.definition?.hasCellClickHandler){i("onCellClick",P,J);return}const ee=[],be=P.target;for(let we=0;we<be.childNodes.length;we++){const Ae=be.childNodes[we];Ae.nodeName==="INPUT"&&Ae.type==="checkbox"&&ee.push("checkbox")}ee.includes("checkbox")||i("onTableRowClick",P,J._cell.row,t.parentComponent)},N=P=>{v.value||g.value&&i("onTableRowMoved",g.value.getColumnLayout())},K=()=>{v.value||setTimeout(()=>{v.value})},z=()=>{v.value||setTimeout(()=>{if(v.value)return;const P=p.value?.parentElement?.querySelector(".tabulator-paginator");P&&!R.value&&(R.value=new MutationObserver(()=>{const J=p.value?.parentElement?.querySelector(".tabulator-pages"),ee=y();J&&ee!=null&&!Number.isNaN(ee)&&ee>1&&J.style.display==="none"&&(J.style.display="")}),R.value.observe(P,{childList:!0,subtree:!0,attributes:!0})),Q()})},$=()=>{h.value=!1},te=()=>{if(!p.value||f.value&&!t.options.ajaxResponse||g.value)return;A.value=!0;const P=P1(),J=t.langs&&typeof t.langs=="object"?t.langs:{},ee={...t.options,...f.value?{}:{data:t.tableData},langs:{...P,...J},locale:t.locale,textDirection:t.rtl?"rtl":"ltr",columns:S(t.options.columns),dataLoaderLoading:`<img alt="" src="${N1}">`,placeholder:t.noDataText,...t.options.ajaxResponse?{ajaxResponse:t.options.ajaxResponse}:{}};f.value&&(delete ee.ajaxURL,ee.footerElement=`#tabulator-footer${m.value}`),g.value=new B1(p.value,ee),g.value.on("dataLoading",x),g.value.on("dataLoaded",O),g.value.on("dataLoadError",I),g.value.on("tableBuilt",j),g.value.on("pageLoaded",U),g.value.on("rowSelected",V),g.value.on("rowDeselected",H),g.value.on("dataProcessed",q),g.value.on("cellClick",F),g.value.on("columnMoved",N),g.value.on("renderStarted",K),g.value.on("renderComplete",z),g.value.on("tableDestroyed",$)},le=P=>{if(v.value||!h.value||!P||!g.value)return;const J=g.value.options.ajaxParams;J&&(J.per_page=Number(P)),g.value.options.paginationSize=Number(P),g.value.setPageSize(P)},ce=()=>{if(v.value||!g.value)return;const P=640,J=g.value.options;if(f.value){const ee=J.ajaxParams?.per_page??J.paginationSize??g.value.getPageSize()??10,be=Number(ee);if(!Number.isFinite(be)||be<1)return;if(be>=P){o.value=t.paginationLimitText;return}const Ae=Math.min(be+be,P);J.ajaxParams||(J.ajaxParams={}),J.ajaxParams.per_page=Ae,J.paginationSize=Ae,g.value.setPageSize(Ae),Ae>=P&&(o.value=t.paginationLimitText);return}else{const ee=g.value.getPageSize();if(typeof ee=="number"&&ee<P){const be=ee;g.value.setPageSize(Math.min(ee+be,P))}}J.paginationSize>=P&&(o.value=t.paginationLimitText)},Y=P=>{v.value||P===""||!g.value||(g.value.showColumn(P),i("onShowColumn",g.value.getColumnLayout()))},ie=P=>{v.value||P===""||!g.value||(g.value.hideColumn(P),i("onHideColumn",g.value.getColumnLayout()))},Z=P=>{v.value||!g.value||(P.filter(({visible:J})=>!J).length===P.length?P.map(({field:J})=>{a.nextTick(()=>{!v.value&&g.value&&g.value.showColumn(J)})}):P.map(({field:J,visible:ee})=>{!v.value&&g.value&&(ee?g.value.showColumn(J):g.value.hideColumn(J))}))},Q=()=>{a.nextTick(()=>{if(v.value||!g.value||g.value.getPage()!==1||!t.paginationPage||t.paginationPage===g.value.getPage())return!1;g.value.setPage(t.paginationPage)})};return a.onMounted(()=>{te()}),a.onBeforeUnmount(()=>{v.value=!0,R.value&&(R.value.disconnect(),R.value=null),g.value&&(g.value.destroy(),g.value=null)}),a.watch(()=>t.columnShow,P=>{P&&Y(P)}),a.watch(()=>t.columnHide,P=>{P&&ie(P)}),a.watch(()=>t.filters,P=>{v.value||!g.value||g.value.setFilter(P)},{deep:!0}),a.watch(()=>t.tableData,P=>{v.value||!g.value||f.value||g.value.setData(P)},{deep:!1}),a.watch(()=>t.options.ajaxResponse,P=>{v.value||(g.value&&P?g.value.options.ajaxResponse=P:f.value&&P&&!g.value&&a.nextTick(()=>{v.value||!p.value||te()}))}),a.watch(()=>t.options,P=>{v.value||f.value&&P.ajaxResponse&&!g.value&&a.nextTick(()=>{v.value||!p.value||te()})},{deep:!0}),a.watch(r,()=>{v.value||!g.value||g.value.deselectRow()}),a.watch(s,P=>{v.value||P<=0||!g.value||g.value.selectRow()}),a.watch(()=>t.options.columns,P=>{v.value||!h.value||!g.value||!P||(!P.find(({visible:J})=>J)&&t.showAllColumnsIfAllHidden?Z(P):g.value.setColumns(P))},{deep:!0}),a.watch(()=>t.selectedRowsStorage,P=>{v.value||!P||(d.value=new Set(P))},{deep:!0}),a.watch(h,P=>{v.value||!P||(t.showAllColumnsIfAllHidden&&Z(t.options.columns||[]),t.tableData.length>0&&!f.value&&g.value&&g.value.setData(t.tableData))},{deep:!0}),(P,J)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["position-relative",{"table-has-load-error":!!l.value}]),style:{"min-height":"300px"}},[a.withDirectives(a.createElementVNode("p",I1,[...J[2]||(J[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,A.value]]),a.withDirectives(a.createElementVNode("div",{ref_key:"tableRef",ref:p},null,512),[[a.vShow,!A.value]]),l.value?(a.openBlock(),a.createElementBlock("div",V1,a.toDisplayString(l.value),1)):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("div",H1,[a.createElementVNode("div",z1,[M("table-footer-left")?(a.openBlock(),a.createElementBlock("div",j1,[a.renderSlot(P.$slots,"table-footer-left")])):a.createCommentVNode("",!0),a.createElementVNode("div",W1,[a.createElementVNode("div",U1,[a.createElementVNode("div",{class:"tabulator-footer-contents d-flex",id:`tabulator-footer${m.value}`},[a.createElementVNode("button",{class:"btn btn-primary me-3",id:"loadMoreButton",onClick:ce,disabled:A.value},[a.createTextVNode(a.toDisplayString(n.loadMoreText)+" ",1),J[3]||(J[3]=a.createElementVNode("i",{class:"bi bi-plus-lg"},null,-1)),A.value?(a.openBlock(),a.createElementBlock("div",Q1)):a.createCommentVNode("",!0)],8,Y1),a.createVNode(Ht,{class:"me-3",style:{"min-width":"150px"},modelValue:c.value,"onUpdate:modelValue":[J[0]||(J[0]=ee=>c.value=ee),J[1]||(J[1]=ee=>le(ee))],allowClear:!1,options:T.value,dropDownPlacement:"top"},null,8,["modelValue","options"])],8,G1)],512)])])],512),[[a.vShow,f.value]]),a.createVNode(Ud,{message:o.value,onClearMessage:w},null,8,["message"])],2))}}),J1={class:"r3-table-count__wrapper px-3"},q1={class:"r3-table-count__label pe-2"},$1={class:"r3-table-count__value"},Z1=Ne(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",J1,[a.createElementVNode("span",q1,a.toDisplayString(t.value)+":",1),a.createElementVNode("span",$1,a.toDisplayString(i.value),1)])],2))}}),[["__scopeId","data-v-f830d5b6"]]),X1=Ne(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 Ui(r,e.mountedComponent,e.dataProps),!1;Ui(r,null,{},!0)}return a.watch(()=>e,()=>{t()},{deep:!0}),a.onMounted(()=>{t()}),(i,r)=>null}}),[["__scopeId","data-v-0ddbb5a3"]]),eR=Ne(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 m=localStorage.getItem("filters"),p=m?JSON.parse(m):{};p={...oi(p),[s.value]:{[i.tableName]:d(o.value)}};const g=JSON.stringify(p);return localStorage.setItem("filters",g),m=localStorage.getItem("filters"),m?JSON.parse(m):{}}function c(m){return!(!m||!m[s.value]||!m[s.value][i.tableName])}function u(m){const p=JSON.parse(m);return c(p)?(m=localStorage.getItem("filters")||"{}",JSON.parse(m)):l()}function d(m){const p={};for(const[g,A]of Object.entries(m))p[g]=oi(A._value||A);return p}function h(){let m=localStorage.getItem("filters");if(!m)return r("update:filters",{}),!1;let p=u(m);if(!p[s.value]||!p[s.value][i.tableName])return r("update:filters",{}),!1;const g=d(p[s.value][i.tableName]);return r("update:filters",{...g}),!0}return e({getFilters:h,saveFilters:l}),(m,p)=>a.createCommentVNode("",!0)}}),[["__scopeId","data-v-08a5ac04"]]),tR={class:"row pt-3"},iR={class:"col-12"},nR=["onClick"],rR=Ne(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",tR,[a.createElementVNode("div",iR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.filterList,(o,l)=>(a.openBlock(),a.createElementBlock("button",{onClick:c=>i(o.name),class:a.normalizeClass(["btn filter-item",{active:r.defaultSelected===o.name,disabled:o.disabled}]),key:l},a.toDisplayString(o.title),11,nR))),128))])]))}}),[["__scopeId","data-v-cdf25b7c"]]),sR={key:0,class:"col-4 mb-2"},aR={class:"form-check"},oR=["checked","id","onChange"],lR=["for"],cR=["innerHTML"],uR={class:"col-auto"},dR={class:"col-auto ps-0"},hR={class:"col-auto ps-0"},Cl=Ne(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,p=>{JSON.stringify(p)!==JSON.stringify(s.value)&&(r.value=[...p],s.value=[...p],l())},{deep:!0});const o=a.ref(!0);function l(){const g=r.value.filter(A=>A.title).some(A=>!A.visible);o.value=g,a.triggerRef(o)}l();const c=p=>{i("emitModalVisibility",p)},u=(p,g)=>{const A=p.target,R=r.value.findIndex(v=>v.field===g);R!==-1&&(r.value[R].visible=A.checked,l()),i("columnVisibilityChange",p,g)},d=()=>{i("apply",r.value)},h=()=>{const p=r.value.map(g=>({...g,visible:g.title?!0:g.visible}));r.value=p,s.value=[...p],l(),i("selectAll")},m=()=>{const p=r.value.map(g=>({...g,visible:g.title?!1:g.visible}));r.value=p,s.value=[...p],l(),i("unselectAll")};return(p,g)=>(a.openBlock(),a.createBlock(Fd,{title:p.title,"modal-visibility":p.modalVisibility,onEmitModalVisibility:c},{"modal-body":a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(A,R)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:R},[A.title?(a.openBlock(),a.createElementBlock("div",sR,[a.createElementVNode("div",aR,[a.createElementVNode("input",{checked:A.visible,class:"form-check-input",type:"checkbox",id:A.field,ref_for:!0,ref:"editColumns",onChange:v=>u(v,A.field)},null,40,oR),a.createElementVNode("label",{class:"form-check-label",for:A.field},[a.createElementVNode("span",{class:"lh-sm",innerHTML:A.title},null,8,cR)],8,lR)])])):a.createCommentVNode("",!0)],64))),128))]),"modal-footer":a.withCtx(()=>[a.createElementVNode("div",uR,[a.createElementVNode("button",{type:"button",class:"btn btn-primary px-4",onClick:d},a.toDisplayString(p.applyText),1)]),a.createElementVNode("div",dR,[a.createElementVNode("div",hR,[o.value?(a.openBlock(),a.createElementBlock("button",{key:"select-all",type:"button",class:"btn btn-light",onClick:h},a.toDisplayString(p.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:m},a.toDisplayString(p.unselectAllText),1))])])]),_:1},8,["title","modal-visibility"]))}}),[["__scopeId","data-v-7c63c539"]]);function Al(n,e){const t=a.ref(!1),i=a.ref([...n]);a.watch(()=>n,g=>{i.value=[...g]},{deep:!0});function r(g){t.value=g}function s(g,A){const R=g.target,v=i.value.map(f=>f.field===A?{...f,visible:R.checked}:f);i.value=v,e&&e.value&&(e.value.columns=v)}function o(g){console.log("useTableColumns handleColumnsApply called, received columns:",g),console.log("useTableColumns current tableColumns before update:",i.value),t.value=!1,l(g),c()}function l(g){g&&(i.value=[...g],console.log("useTableColumns tableColumns after update:",i.value))}function c(){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 u(){const g=i.value.map(A=>({...A,visible:A.title?!0:A.visible}));i.value=g,e&&e.value&&(e.value.columns=g)}function d(){const g=i.value.map(A=>({...A,visible:A.title?!1:A.visible}));i.value=g,e&&e.value&&(e.value.columns=g)}const h=a.computed(()=>i.value.filter(g=>g.visible));function m(g){i.value=[...g],e&&e.value&&(e.value.columns=g)}function p(){i.value=[...n],e&&e.value&&(e.value.columns=[...n])}return{columnsModalVisibility:t,tableColumns:i,visibleColumns:h,handleColumnsModalVisibility:r,handleColumnVisibilityChange:s,handleColumnsApply:o,handleColumnsSelectAll:u,handleColumnsUnselectAll:d,updateColumns:m,resetColumns:p}}const fR=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:c,handleColumnsUnselectAll:u,updateColumns:d}=Al(t.columns,t.tableOptions);a.watch(()=>t.columns,p=>{d(p)},{deep:!0});function h(){r.value=!0}function m(p){r.value=!1,p&&Array.isArray(p)&&(s.value=[...p],i("columns-changed",p)),i("apply")}return(p,g)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Bi,{styles:"light",icon:"gear-fill",ariaLabel:p.title,onSubmit:h},null,8,["ariaLabel"]),a.createVNode(Cl,{title:p.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":p.applyText,"select-all-text":p.selectAllText,"unselect-all-text":p.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:m,onSelectAll:a.unref(c),onUnselectAll:a.unref(u)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),pR=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:c,handleColumnsUnselectAll:u,updateColumns:d}=Al(t.columns,t.tableOptions);a.watch(()=>t.columns,p=>{d(p)},{deep:!0});function h(){r.value=!0}function m(p){r.value=!1,p&&Array.isArray(p)&&(s.value=[...p],i("columns-changed",p)),i("apply")}return(p,g)=>(a.openBlock(),a.createElementBlock("div",null,[a.createVNode(Bi,{styles:"light",onSubmit:h,icon:"gear-fill"}),a.createVNode(Cl,{title:p.title,"modal-visibility":a.unref(r),columns:a.unref(s),"apply-text":p.applyText,"select-all-text":p.selectAllText,"unselect-all-text":p.unselectAllText,onEmitModalVisibility:a.unref(o),onColumnVisibilityChange:a.unref(l),onApply:m,onSelectAll:a.unref(c),onUnselectAll:a.unref(u)},null,8,["title","modal-visibility","columns","apply-text","select-all-text","unselect-all-text","onEmitModalVisibility","onColumnVisibilityChange","onSelectAll","onUnselectAll"])]))}}),mR={"data-test":"ToggleAllTableRowButtons",class:"toggle-all-rows-controls"},gR={key:2,class:"selected-count"},bR=Ne(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",mR,[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",gR,a.toDisplayString(s.selectedText)+": "+a.toDisplayString(s.selectedRows.length),1)):a.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-010ff090"]]),vR={class:"row pt-3"},yR={class:"col-12"},wR=["onClick"],CR=Ne(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 c=Object.keys(s)[l];c&&s[c]!==void 0&&(o.value=s[c])})},{immediate:!0}),(s,o)=>(a.openBlock(),a.createElementBlock("div",vR,[a.createElementVNode("div",yR,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.filterList,(l,c)=>(a.openBlock(),a.createElementBlock("button",{onClick:u=>r(c),class:a.normalizeClass(["btn filter-item",{active:s.filterList[c].value,disabled:s.filterList[c].disabled}]),key:c},a.toDisplayString(l.title),11,wR))),128))])]))}}),[["__scopeId","data-v-f65c1c64"]]),AR={class:"container","data-test":"SsoLoginPending"},ER={class:"row justify-content-center"},kR={class:"col-md-8"},SR={class:"card"},RR={class:"card-header"},xR={class:"card-body"},MR={class:"login-spinner text-center",role:"status","aria-live":"polite"},TR={class:"visually-hidden","data-test":"SsoLoginPending-status"},DR=Ne(a.defineComponent({__name:"SsoLoginPending",props:{title:{},statusText:{}},setup(n){const e=n;if(!e.title.trim())throw new Error("SsoLoginPending: title обязателен");if(!e.statusText.trim())throw new Error("SsoLoginPending: statusText обязателен");return(t,i)=>(a.openBlock(),a.createElementBlock("div",AR,[a.createElementVNode("div",ER,[a.createElementVNode("div",kR,[a.createElementVNode("div",SR,[a.createElementVNode("div",RR,a.toDisplayString(t.title),1),a.createElementVNode("div",xR,[a.createElementVNode("div",MR,[a.createVNode(In),a.createElementVNode("span",TR,a.toDisplayString(t.statusText),1)])])])])])]))}}),[["__scopeId","data-v-6eb41b83"]]);var vi;(function(n){n.Range="range",n.Steps="steps",n.Positions="positions",n.Count="count",n.Values="values"})(vi||(vi={}));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 LR(n){return _r(n)&&typeof n.from=="function"}function _r(n){return typeof n=="object"&&typeof n.to=="function"}function th(n){n.parentElement.removeChild(n)}function El(n){return n!=null}function ih(n){n.preventDefault()}function OR(n){return n.filter(function(e){return this[e]?!1:this[e]=!0},{})}function BR(n,e){return Math.round(n/e)*e}function FR(n,e){var t=n.getBoundingClientRect(),i=n.ownerDocument,r=i.documentElement,s=sh(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 nh(n,e,t){t>0&&(mt(n,e),setTimeout(function(){Nr(n,e)},t))}function rh(n){return Math.max(Math.min(n,100),0)}function Pr(n){return Array.isArray(n)?n:[n]}function _R(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 Nr(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 PR(n,e){return n.classList?n.classList.contains(e):new RegExp("\\b"+e+"\\b").test(n.className)}function sh(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 NR(){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 IR(){var n=!1;try{var e=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("test",null,e)}catch{}return n}function VR(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function kl(n,e){return 100/(e-n)}function Sl(n,e,t){return e*100/(n[t+1]-n[t])}function HR(n,e){return Sl(n,n[0]<0?e+Math.abs(n[0]):e-n[0],0)}function zR(n,e){return e*(n[1]-n[0])/100+n[0]}function Bn(n,e){for(var t=1;n>=e[t];)t+=1;return t}function jR(n,e,t){if(t>=n.slice(-1)[0])return 100;var i=Bn(t,n),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return o+HR([r,s],t)/kl(o,l)}function WR(n,e,t){if(t>=100)return n.slice(-1)[0];var i=Bn(t,e),r=n[i-1],s=n[i],o=e[i-1],l=e[i];return zR([r,s],(t-o)*kl(o,l))}function UR(n,e,t,i){if(i===100)return i;var r=Bn(i,n),s=n[r-1],o=n[r];return t?i-s>(o-s)/2?o:s:e[r-1]?n[r-1]+BR(i-n[r-1],e[r-1]):i}var ah=(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([Pr(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]=Sl(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],c=0,u=0,d=0,h=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;)c=this.xPct[r+1+h]-this.xPct[r+h],t[r+h]*o+100-s*100>100?(u=c*s,o=(l-100*s)/t[r+h],s=1):(u=t[r+h]*c/100*o,o=0),i?(d=d-u,this.xPct.length+h>=1&&h--):(d=d+u,this.xPct.length-h>=1&&h++),l=t[r+h]*o;return e+d},n.prototype.toStepping=function(e){return e=jR(this.xVal,this.xPct,e),e},n.prototype.fromStepping=function(e){return WR(this.xVal,this.xPct,e)},n.prototype.getStep=function(e){return e=UR(this.xPct,this.xSteps,this.snap,e),e},n.prototype.getDefaultStep=function(e,t,i){var r=Bn(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=Bn(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(_R);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]=Sl([this.xVal[e],this.xVal[e+1]],t,0)/kl(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})(),oh={to:function(n){return n===void 0?"":n.toFixed(2)},from:Number},lh={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"},yi={tooltips:".__tooltips",aria:".__aria"};function GR(n,e){if(!zt(e))throw new Error("noUiSlider: 'step' is not numeric.");n.singleStep=e}function YR(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");n.keyboardPageMultiplier=e}function QR(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");n.keyboardMultiplier=e}function KR(n,e){if(!zt(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");n.keyboardDefaultStep=e}function JR(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 ah(e,n.snap||!1,n.singleStep)}function qR(n,e){if(e=Pr(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");n.handles=e.length,n.start=e}function $R(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");n.snap=e}function ZR(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");n.animate=e}function XR(n,e){if(typeof e!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");n.animationDuration=e}function ch(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 ex(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 uh(n,e){if(!zt(e))throw new Error("noUiSlider: 'margin' option must be numeric.");e!==0&&(n.margin=n.spectrum.getDistance(e))}function tx(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 ix(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 nx(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 rx(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,c=e.indexOf("invert-connects")>=0,u=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");uh(n,n.start[1]-n.start[0])}if(c&&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:u,smoothSteps:d,fixed:r,snap:s,hover:o,unconstrained:l,invertConnects:c}}function sx(n,e){if(e!==!1)if(e===!0||_r(e)){n.tooltips=[];for(var t=0;t<n.handles;t++)n.tooltips.push(e)}else{if(e=Pr(e),e.length!==n.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(i){if(typeof i!="boolean"&&!_r(i))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),n.tooltips=e}}function ax(n,e){if(e.length!==n.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");n.handleAttributes=e}function ox(n,e){if(!_r(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");n.ariaFormat=e}function lx(n,e){if(!LR(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");n.format=e}function cx(n,e){if(typeof e!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");n.keyboardSupport=e}function ux(n,e){n.documentElement=e}function dx(n,e){if(typeof e!="string"&&e!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");n.cssPrefix=e}function hx(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 dh(n){var e={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:oh,format:oh},t={step:{r:!1,t:GR},keyboardPageMultiplier:{r:!1,t:YR},keyboardMultiplier:{r:!1,t:QR},keyboardDefaultStep:{r:!1,t:KR},start:{r:!0,t:qR},connect:{r:!0,t:ch},direction:{r:!0,t:nx},snap:{r:!1,t:$R},animate:{r:!1,t:ZR},animationDuration:{r:!1,t:XR},range:{r:!0,t:JR},orientation:{r:!1,t:ex},margin:{r:!1,t:uh},limit:{r:!1,t:tx},padding:{r:!1,t:ix},behaviour:{r:!0,t:rx},ariaFormat:{r:!1,t:ox},format:{r:!1,t:lx},tooltips:{r:!1,t:sx},keyboardSupport:{r:!0,t:cx},documentElement:{r:!1,t:ux},cssPrefix:{r:!0,t:dx},cssClasses:{r:!0,t:hx},handleAttributes:{r:!1,t:ax}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:lh,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(t).forEach(function(c){if(!El(n[c])&&i[c]===void 0){if(t[c].r)throw new Error("noUiSlider: '"+c+"' is required.");return}t[c].t(e,El(n[c])?n[c]:i[c])}),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 fx(n,e,t){var i=NR(),r=VR(),s=r&&IR(),o=n,l,c,u,d,h,m,p=e.spectrum,g=[],A=[],R=[],v=0,f={},T=!1,b=n.ownerDocument,M=e.documentElement||b.documentElement,w=b.body,S=b.dir==="rtl"||e.ort===1?0:100;function C(E,L){var _=b.createElement("div");return L&&mt(_,L),E.appendChild(_),_}function k(E,L){var _=C(E,e.cssClasses.origin),G=C(_,e.cssClasses.handle);if(C(G,e.cssClasses.touchArea),G.setAttribute("data-handle",String(L)),e.keyboardSupport&&(G.setAttribute("tabindex","0"),G.addEventListener("keydown",function(ue){return Fe(ue,L)})),e.handleAttributes!==void 0){var se=e.handleAttributes[L];Object.keys(se).forEach(function(ue){G.setAttribute(ue,se[ue])})}return G.setAttribute("role","slider"),G.setAttribute("aria-orientation",e.ort?"vertical":"horizontal"),L===0?mt(G,e.cssClasses.handleLower):L===e.handles-1&&mt(G,e.cssClasses.handleUpper),_.handle=G,_}function y(E,L){return L?C(E,e.cssClasses.connect):!1}function D(E,L){c=C(L,e.cssClasses.connects),u=[],d=[],d.push(y(c,E[0]));for(var _=0;_<e.handles;_++)u.push(k(L,_)),R[_]=_,d.push(y(c,E[_+1]))}function x(E){mt(E,e.cssClasses.target),e.dir===0?mt(E,e.cssClasses.ltr):mt(E,e.cssClasses.rtl),e.ort===0?mt(E,e.cssClasses.horizontal):mt(E,e.cssClasses.vertical);var L=getComputedStyle(E).direction;return L==="rtl"?mt(E,e.cssClasses.textDirectionRtl):mt(E,e.cssClasses.textDirectionLtr),C(E,e.cssClasses.base)}function O(E,L){return!e.tooltips||!e.tooltips[L]?!1:C(E.firstChild,e.cssClasses.tooltip)}function I(){return o.hasAttribute("disabled")}function j(E){var L=u[E];return L.hasAttribute("disabled")}function U(E){E!=null?(u[E].setAttribute("disabled",""),u[E].handle.removeAttribute("tabindex")):(o.setAttribute("disabled",""),u.forEach(function(L){L.handle.removeAttribute("tabindex")}))}function V(E){E!=null?(u[E].removeAttribute("disabled"),u[E].handle.setAttribute("tabindex","0")):(o.removeAttribute("disabled"),u.forEach(function(L){L.removeAttribute("disabled"),L.handle.setAttribute("tabindex","0")}))}function H(){m&&(X("update"+yi.tooltips),m.forEach(function(E){E&&th(E)}),m=null)}function q(){H(),m=u.map(O),Ie("update"+yi.tooltips,function(E,L,_){if(!(!m||!e.tooltips)&&m[L]!==!1){var G=E[L];e.tooltips[L]!==!0&&(G=e.tooltips[L].to(_[L])),m[L].innerHTML=G}})}function F(){X("update"+yi.aria),Ie("update"+yi.aria,function(E,L,_,G,se){R.forEach(function(ue){var fe=u[ue],pe=me(A,ue,0,!0,!0,!0),ve=me(A,ue,100,!0,!0,!0),Ce=se[ue],De=String(e.ariaFormat.to(_[ue]));pe=p.fromStepping(pe).toFixed(1),ve=p.fromStepping(ve).toFixed(1),Ce=p.fromStepping(Ce).toFixed(1),fe.children[0].setAttribute("aria-valuemin",pe),fe.children[0].setAttribute("aria-valuemax",ve),fe.children[0].setAttribute("aria-valuenow",Ce),fe.children[0].setAttribute("aria-valuetext",De)})})}function N(E){if(E.mode===vi.Range||E.mode===vi.Steps)return p.xVal;if(E.mode===vi.Count){if(E.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var L=E.values-1,_=100/L,G=[];L--;)G[L]=L*_;return G.push(100),K(G,E.stepped)}return E.mode===vi.Positions?K(E.values,E.stepped):E.mode===vi.Values?E.stepped?E.values.map(function(se){return p.fromStepping(p.getStep(p.toStepping(se)))}):E.values:[]}function K(E,L){return E.map(function(_){return p.fromStepping(L?p.getStep(_):_)})}function z(E){function L(Ce,De){return Number((Ce+De).toFixed(7))}var _=N(E),G={},se=p.xVal[0],ue=p.xVal[p.xVal.length-1],fe=!1,pe=!1,ve=0;return _=OR(_.slice().sort(function(Ce,De){return Ce-De})),_[0]!==se&&(_.unshift(se),fe=!0),_[_.length-1]!==ue&&(_.push(ue),pe=!0),_.forEach(function(Ce,De){var We,Be,qe,Xe=Ce,at=_[De+1],nt,wi,Li,di,jt,$t,rn,Oi=E.mode===vi.Steps;for(Oi&&(We=p.xNumSteps[De]),We||(We=at-Xe),at===void 0&&(at=Xe),We=Math.max(We,1e-7),Be=Xe;Be<=at;Be=L(Be,We)){for(nt=p.toStepping(Be),wi=nt-ve,jt=wi/(E.density||1),$t=Math.round(jt),rn=wi/$t,qe=1;qe<=$t;qe+=1)Li=ve+qe*rn,G[Li.toFixed(5)]=[p.fromStepping(Li),0];di=_.indexOf(Be)>-1?bt.LargeValue:Oi?bt.SmallValue:bt.NoValue,!De&&fe&&Be!==at&&(di=0),Be===at&&pe||(G[nt.toFixed(5)]=[Be,di]),ve=nt}}),G}function $(E,L,_){var G,se,ue=b.createElement("div"),fe=(G={},G[bt.None]="",G[bt.NoValue]=e.cssClasses.valueNormal,G[bt.LargeValue]=e.cssClasses.valueLarge,G[bt.SmallValue]=e.cssClasses.valueSub,G),pe=(se={},se[bt.None]="",se[bt.NoValue]=e.cssClasses.markerNormal,se[bt.LargeValue]=e.cssClasses.markerLarge,se[bt.SmallValue]=e.cssClasses.markerSub,se),ve=[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?ve:Ce,nt=Xe?fe:pe;return qe+" "+at[e.ort]+" "+nt[Be]}function We(Be,qe,Xe){if(Xe=L?L(qe,Xe):Xe,Xe!==bt.None){var at=C(ue,!1);at.className=De(Xe,e.cssClasses.marker),at.style[e.style]=Be+"%",Xe>bt.NoValue&&(at=C(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(E).forEach(function(Be){We(Be,E[Be][0],E[Be][1])}),ue}function te(){h&&(th(h),h=null)}function le(E){te();var L=z(E),_=E.filter,G=E.format||{to:function(se){return String(Math.round(se))}};return h=o.appendChild($(L,_,G)),h}function ce(){var E=l.getBoundingClientRect(),L="offset"+["Width","Height"][e.ort];return e.ort===0?E.width||l[L]:E.height||l[L]}function Y(E,L,_,G){var se=function(fe){var pe=ie(fe,G.pageOffset,G.target||L);if(!pe||I()&&!G.doNotReject||PR(o,e.cssClasses.tap)&&!G.doNotReject||E===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 E.split(" ").forEach(function(fe){L.addEventListener(fe,se,s?{passive:!0}:!1),ue.push([fe,se])}),ue}function ie(E,L,_){var G=E.type.indexOf("touch")===0,se=E.type.indexOf("mouse")===0,ue=E.type.indexOf("pointer")===0,fe=0,pe=0;if(E.type.indexOf("MSPointer")===0&&(ue=!0),E.type==="mousedown"&&!E.buttons&&!E.touches)return!1;if(G){var ve=function(We){var Be=We.target;return Be===_||_.contains(Be)||E.composed&&E.composedPath().shift()===_};if(E.type==="touchstart"){var Ce=Array.prototype.filter.call(E.touches,ve);if(Ce.length>1)return!1;fe=Ce[0].pageX,pe=Ce[0].pageY}else{var De=Array.prototype.find.call(E.changedTouches,ve);if(!De)return!1;fe=De.pageX,pe=De.pageY}}return L=L||sh(b),(se||ue)&&(fe=E.clientX+L.x,pe=E.clientY+L.y),E.pageOffset=L,E.points=[fe,pe],E.cursor=se||ue,E}function Z(E){var L=E-FR(l,e.ort),_=L*100/ce();return _=rh(_),e.dir?100-_:_}function Q(E){var L=100,_=!1;return u.forEach(function(G,se){if(!j(se)){var ue=A[se],fe=Math.abs(ue-E),pe=fe===100&&L===100,ve=fe<L,Ce=fe<=L&&E>ue;(ve||Ce||pe)&&(_=se,L=fe)}}),_}function P(E,L){E.type==="mouseout"&&E.target.nodeName==="HTML"&&E.relatedTarget===null&&ee(E,L)}function J(E,L){if(navigator.appVersion.indexOf("MSIE 9")===-1&&E.buttons===0&&L.buttonsProperty!==0)return ee(E,L);var _=(e.dir?-1:1)*(E.calcPoint-L.startCalcPoint),G=_*100/L.baseSize;Se(_>0,G,L.locations,L.handleNumbers,L.connect)}function ee(E,L){L.handle&&(Nr(L.handle,e.cssClasses.active),v-=1),L.listeners.forEach(function(_){M.removeEventListener(_[0],_[1])}),v===0&&(Nr(o,e.cssClasses.drag),Re(),E.cursor&&(w.style.cursor="",w.removeEventListener("selectstart",ih))),e.events.smoothSteps&&(L.handleNumbers.forEach(function(_){Oe(_,A[_],!0,!0,!1,!1)}),L.handleNumbers.forEach(function(_){re("update",_)})),L.handleNumbers.forEach(function(_){re("change",_),re("set",_),re("end",_)})}function be(E,L){if(!L.handleNumbers.some(j)){var _;if(L.handleNumbers.length===1){var G=u[L.handleNumbers[0]];_=G.children[0],v+=1,mt(_,e.cssClasses.active)}E.stopPropagation();var se=[],ue=Y(i.move,M,J,{target:E.target,handle:_,connect:L.connect,listeners:se,startCalcPoint:E.calcPoint,baseSize:ce(),pageOffset:E.pageOffset,handleNumbers:L.handleNumbers,buttonsProperty:E.buttons,locations:A.slice()}),fe=Y(i.end,M,ee,{target:E.target,handle:_,listeners:se,doNotReject:!0,handleNumbers:L.handleNumbers}),pe=Y("mouseout",M,P,{target:E.target,handle:_,listeners:se,doNotReject:!0,handleNumbers:L.handleNumbers});se.push.apply(se,ue.concat(fe,pe)),E.cursor&&(w.style.cursor=getComputedStyle(E.target).cursor,u.length>1&&mt(o,e.cssClasses.drag),w.addEventListener("selectstart",ih,!1)),L.handleNumbers.forEach(function(ve){re("start",ve)})}}function we(E){E.stopPropagation();var L=Z(E.calcPoint),_=Q(L);_!==!1&&(e.events.snap||nh(o,e.cssClasses.tap,e.animationDuration),Oe(_,L,!0,!0),Re(),re("slide",_,!0),re("update",_,!0),e.events.snap?be(E,{handleNumbers:[_]}):(re("change",_,!0),re("set",_,!0)))}function Ae(E){var L=Z(E.calcPoint),_=p.getStep(L),G=p.fromStepping(_);Object.keys(f).forEach(function(se){se.split(".")[0]==="hover"&&f[se].forEach(function(ue){ue.call(B,G)})})}function Fe(E,L){if(I()||j(L))return!1;var _=["Left","Right"],G=["Down","Up"],se=["PageDown","PageUp"],ue=["Home","End"];e.dir&&!e.ort?_.reverse():e.ort&&!e.dir&&(G.reverse(),se.reverse());var fe=E.key.replace("Arrow",""),pe=fe===se[0],ve=fe===se[1],Ce=fe===G[0]||fe===_[0]||pe,De=fe===G[1]||fe===_[1]||ve,We=fe===ue[0],Be=fe===ue[1];if(!Ce&&!De&&!We&&!Be)return!0;E.preventDefault();var qe;if(De||Ce){var Xe=Ce?0:1,at=Pe(L),nt=at[Xe];if(nt===null)return!1;nt===!1&&(nt=p.getDefaultStep(A[L],Ce,e.keyboardDefaultStep)),ve||pe?nt*=e.keyboardPageMultiplier:nt*=e.keyboardMultiplier,nt=Math.max(nt,1e-7),nt=(Ce?-1:1)*nt,qe=g[L]+nt}else Be?qe=e.spectrum.xVal[e.spectrum.xVal.length-1]:qe=e.spectrum.xVal[0];return Oe(L,p.toStepping(qe),!0,!0),re("slide",L),re("update",L),re("change",L),re("set",L),!1}function _e(E){E.fixed||u.forEach(function(L,_){Y(i.start,L.children[0],be,{handleNumbers:[_]})}),E.tap&&Y(i.start,l,we,{}),E.hover&&Y(i.move,l,Ae,{hover:!0}),E.drag&&d.forEach(function(L,_){if(!(L===!1||_===0||_===d.length-1)){var G=u[_-1],se=u[_],ue=[L],fe=[G,se],pe=[_-1,_];mt(L,e.cssClasses.draggable),E.fixed&&(ue.push(G.children[0]),ue.push(se.children[0])),E.dragAll&&(fe=u,pe=R),ue.forEach(function(ve){Y(i.start,ve,be,{handles:fe,handleNumbers:pe,connect:L})})}})}function Ie(E,L){f[E]=f[E]||[],f[E].push(L),E.split(".")[0]==="update"&&u.forEach(function(_,G){re("update",G)})}function de(E){return E===yi.aria||E===yi.tooltips}function X(E){var L=E&&E.split(".")[0],_=L?E.substring(L.length):E;Object.keys(f).forEach(function(G){var se=G.split(".")[0],ue=G.substring(se.length);(!L||L===se)&&(!_||_===ue)&&(!de(ue)||_===ue)&&delete f[G]})}function re(E,L,_){Object.keys(f).forEach(function(G){var se=G.split(".")[0];E===se&&f[G].forEach(function(ue){ue.call(B,g.map(e.format.to),L,g.slice(),_||!1,A.slice(),B)})})}function me(E,L,_,G,se,ue,fe){var pe;return u.length>1&&!e.events.unconstrained&&(G&&L>0&&(pe=p.getAbsoluteDistance(E[L-1],e.margin,!1),_=Math.max(_,pe)),se&&L<u.length-1&&(pe=p.getAbsoluteDistance(E[L+1],e.margin,!0),_=Math.min(_,pe))),u.length>1&&e.limit&&(G&&L>0&&(pe=p.getAbsoluteDistance(E[L-1],e.limit,!1),_=Math.min(_,pe)),se&&L<u.length-1&&(pe=p.getAbsoluteDistance(E[L+1],e.limit,!0),_=Math.max(_,pe))),e.padding&&(L===0&&(pe=p.getAbsoluteDistance(0,e.padding[0],!1),_=Math.max(_,pe)),L===u.length-1&&(pe=p.getAbsoluteDistance(100,e.padding[1],!0),_=Math.min(_,pe))),fe||(_=p.getStep(_)),_=rh(_),_===E[L]&&!ue?!1:_}function he(E,L){var _=e.ort;return(_?L:E)+", "+(_?E:L)}function Se(E,L,_,G,se){var ue=_.slice(),fe=G[0],pe=e.events.smoothSteps,ve=[!E,E],Ce=[E,!E];G=G.slice(),E&&G.reverse(),G.length>1?G.forEach(function(We,Be){var qe=me(ue,We,ue[We]+L,ve[Be],Ce[Be],!1,pe);qe===!1?L=0:(L=qe-ue[We],ue[We]=qe)}):ve=Ce=[!0];var De=!1;G.forEach(function(We,Be){De=Oe(We,_[We]+L,ve[Be],Ce[Be],!1,pe)||De}),De&&(G.forEach(function(We){re("update",We),re("slide",We)}),se!=null&&re("drag",fe))}function Me(E,L){return e.dir?100-E-L:E}function oe(E,L){A[E]=L,g[E]=p.fromStepping(L);var _=Me(L,0)-S,G="translate("+he(_+"%","0")+")";if(u[E].style[e.transformRule]=G,e.events.invertConnects&&A.length>1){var se=A.every(function(ue,fe,pe){return fe===0||ue>=pe[fe-1]});if(T!==!se){ut();return}}et(E),et(E+1),T&&(et(E-1),et(E+2))}function Re(){R.forEach(function(E){var L=A[E]>50?-1:1,_=3+(u.length+L*E);u[E].style.zIndex=String(_)})}function Oe(E,L,_,G,se,ue){return se||(L=me(A,E,L,_,G,!1,ue)),L===!1?!1:(oe(E,L),!0)}function et(E){if(d[E]){var L=A.slice();T&&L.sort(function(pe,ve){return pe-ve});var _=0,G=100;E!==0&&(_=L[E-1]),E!==d.length-1&&(G=L[E]);var se=G-_,ue="translate("+he(Me(_,se)+"%","0")+")",fe="scale("+he(se/100,"1")+")";d[E].style[e.transformRule]=ue+" "+fe}}function je(E,L){return E===null||E===!1||E===void 0||(typeof E=="number"&&(E=String(E)),E=e.format.from(E),E!==!1&&(E=p.toStepping(E)),E===!1||isNaN(E))?A[L]:E}function xt(E,L,_){var G=Pr(E),se=A[0]===void 0;L=L===void 0?!0:L,e.animate&&!se&&nh(o,e.cssClasses.tap,e.animationDuration),R.forEach(function(pe){Oe(pe,je(G[pe],pe),!0,!1,_)});var ue=R.length===1?0:1;if(se&&p.hasNoSize()&&(_=!0,A[0]=0,R.length>1)){var fe=100/(R.length-1);R.forEach(function(pe){A[pe]=pe*fe})}for(;ue<R.length;++ue)R.forEach(function(pe){Oe(pe,A[pe],!0,!0,_)});Re(),R.forEach(function(pe){re("update",pe),G[pe]!==null&&L&&re("set",pe)})}function At(E){xt(e.start,E)}function Ge(E,L,_,G){if(E=Number(E),!(E>=0&&E<R.length))throw new Error("noUiSlider: invalid handle number, got: "+E);Oe(E,je(L,E),!0,!0,G),re("update",E),_&&re("set",E)}function ne(E){if(E===void 0&&(E=!1),E)return g.length===1?g[0]:g.slice(0);var L=g.map(e.format.to);return L.length===1?L[0]:L}function ae(){for(X(yi.aria),X(yi.tooltips),Object.keys(e.cssClasses).forEach(function(E){Nr(o,e.cssClasses[E])});o.firstChild;)o.removeChild(o.firstChild);delete o.noUiSlider}function Pe(E){var L=A[E],_=p.getNearbySteps(L),G=g[E],se=_.thisStep.step,ue=null;if(e.snap)return[G-_.stepBefore.startValue||null,_.stepAfter.startValue-G||null];se!==!1&&G+se>_.stepAfter.startValue&&(se=_.stepAfter.startValue-G),G>_.thisStep.startValue?ue=_.thisStep.step:_.stepBefore.step===!1?ue=!1:ue=G-_.stepBefore.highestStep,L===100?se=null:L===0&&(ue=null);var fe=p.countStepDecimals();return se!==null&&se!==!1&&(se=Number(se.toFixed(fe))),ue!==null&&ue!==!1&&(ue=Number(ue.toFixed(fe))),[ue,se]}function ze(){return R.map(Pe)}function Le(E,L){var _=ne(),G=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];G.forEach(function(ue){E[ue]!==void 0&&(t[ue]=E[ue])});var se=dh(t);G.forEach(function(ue){E[ue]!==void 0&&(e[ue]=se[ue])}),p=se.spectrum,e.margin=se.margin,e.limit=se.limit,e.padding=se.padding,e.pips?le(e.pips):te(),e.tooltips?q():H(),A=[],xt(El(E.start)?E.start:_,L),E.connect&&xe()}function xe(){for(;c.firstChild;)c.removeChild(c.firstChild);for(var E=0;E<=e.handles;E++)d[E]=y(c,e.connect[E]),et(E);_e({drag:e.events.drag,fixed:!0})}function ut(){T=!T,ch(e,e.connect.map(function(E){return!E})),xe()}function ge(){l=x(o),D(e.connect,l),_e(e.events),xt(e.start),e.pips&&le(e.pips),e.tooltips&&q(),F()}ge();var B={destroy:ae,steps:ze,on:Ie,off:X,get:ne,set:xt,setHandle:Ge,reset:At,disable:U,enable:V,__moveHandles:function(E,L,_){Se(E,L,A,_)},options:t,updateOptions:Le,target:o,removePips:te,removeTooltips:H,getPositions:function(){return A.slice()},getTooltips:function(){return m},getOrigins:function(){return u},pips:le};return B}function px(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=dh(e),i=fx(n,t,e);return n.noUiSlider=i,i}const mx={__spectrum:ah,cssClasses:lh,create:px},gx={class:"slider-container"},bx={class:"slider-wrapper",style:{position:"relative"}},vx=["id"],yx=["value"],wx=["value"],Cx=Ne(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 c=null;const u=a.ref(i.minValue),d=a.ref(i.maxValue),h=()=>{if(!s.value)return;c&&c.destroy();const A=Array(i.maxCount-i.minCount+1).fill(0).map((v,f)=>i.minCount+f),R={to:v=>{const f=Math.round(v);return A[f]||A[0]},from:v=>{const f=Number(v);return A.indexOf(f)}};try{c=mx.create(s.value,{start:[u.value,d.value],connect:i.connect,step:i.step,tooltips:i.tooltips,format:R,range:{min:0,max:A.length-1}}),c.on("change",v=>{const f=Number(v[0]),T=Number(v[1]);u.value!==f&&(u.value=f,r("updateMinValue",f)),d.value!==T&&(d.value=T,r("updateMaxValue",T)),r("change",[f,T])}),c.on("update",v=>{const f=Number(v[0]),T=Number(v[1]);u.value=f,d.value=T})}catch(v){console.error("Error creating slider:",v)}},m=()=>{a.nextTick(()=>{h()})},p=(A,R)=>{if(c)try{c.set([A,R])}catch(v){console.error("Error updating slider values:",v)}},g=A=>{c&&(A?c.disable():c.enable())};return a.watch(()=>[i.minValue,i.maxValue],([A,R])=>{(A!==u.value||R!==d.value)&&(u.value=A,d.value=R,p(A,R))},{immediate:!1}),a.watch(()=>i.disabled,A=>{g(A)}),a.watch(()=>[i.minCount,i.maxCount],()=>{m()}),a.onMounted(()=>{m()}),a.onUnmounted(()=>{c&&(c.destroy(),c=null)}),e({updateValues:p,getValues:()=>c?.get(),reset:()=>{c&&c.reset()},destroy:()=>{c&&(c.destroy(),c=null)}}),(A,R)=>(a.openBlock(),a.createElementBlock("div",gx,[a.createElementVNode("div",bx,[a.createElementVNode("div",{ref_key:"sliderElement",ref:s,id:A.sliderId},null,8,vx)]),a.createElementVNode("input",{type:"hidden",ref_key:"minValueRef",ref:o,value:A.minValue},null,8,yx),a.createElementVNode("input",{type:"hidden",ref_key:"maxValueRef",ref:l,value:A.maxValue},null,8,wx)]))}}),[["__scopeId","data-v-892dca90"]]),Ax=["title"],Ex=Ne(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)},c=u=>{t.value&&!t.value.contains(u.target)&&(i.value=!1)};return a.onMounted(()=>{e.clickToShow&&document.addEventListener("click",c)}),a.onUnmounted(()=>{e.clickToShow&&document.removeEventListener("click",c)}),(u,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",[u.iconClass,s.value]]),title:u.title,style:a.normalizeStyle(r.value),onClick:l},null,14,Ax),i.value&&u.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["question-tooltip",o.value])},[a.createTextVNode(a.toDisplayString(u.title)+" ",1),d[0]||(d[0]=a.createElementVNode("div",{class:"question-tooltip-arrow"},null,-1))],2)):a.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-2c102103"]]),kx={class:"container-fluid rounded overflow-hidden bg-light"},Sx={class:"row w-100"},Rx={class:"text-secondary"},xx={class:"d-flex py-3 px-2 onlyPrint"},Mx={class:"row w-100"},Tx={class:"text-secondary"},Dx={class:"row"},Lx=Ne(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,c])=>c).map(([l,c])=>({name:t.filterTitles[l]||l,value:String(c),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",kx,[a.createElementVNode("div",{style:a.normalizeStyle({overflow:"hidden",maxHeight:i.value?"initial":"83px"}),class:"d-flex py-3 px-2 noPrint"},[a.createElementVNode("div",Sx,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(c,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:c.key},[a.createElementVNode("div",Rx,a.toDisplayString(c.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(c.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]=c=>o.$emit("showFilter"))},[...l[2]||(l[2]=[a.createElementVNode("i",{class:"bi bi-chevron-right i-hidden"},null,-1)])])])],4),a.createElementVNode("div",xx,[a.createElementVNode("div",Mx,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(r.value,(c,u)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["mb-2",u===r.value.length-1?"col":"col-auto"]),key:c.key},[a.createElementVNode("div",Tx,a.toDisplayString(c.name)+":",1),a.createElementVNode("div",null,[a.createElementVNode("strong",null,a.toDisplayString(c.value),1)])],2))),128))])]),a.createElementVNode("div",Dx,[a.createElementVNode("div",{role:"button",class:"expand-btn expand-btn-bottom hide-to-print",onClick:l[1]||(l[1]=c=>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-1b76e3f3"]]);function Rl(n){const e=localStorage.getItem(n);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError("r3ui.table.storage_invalid");return t}function hh(n={}){const e=n.KEY??"tables";function t(o,l){const c={...Rl(e),[o]:l};return 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=Rl(e);if(!Object.prototype.hasOwnProperty.call(l,o))return!0;const{[o]:c,...u}=l;return i(u),!0}function s(o){return Rl(e)[o]??null}return{setItemStorage:t,removeItemStorage:r,getItemStorage:s}}const fh=({localStorageKey:n=null,getAjaxUrl:e,getAjaxResponse:t,getColumns:i,tableOptions:r,initialFilters:s=()=>({empty:"empty"}),initialFilterTitles:o=()=>({empty:"empty"}),selectedQuickFilter:l=null})=>{const c=a.ref({}),u=a.ref(0),d=a.ref(""),h=a.ref(""),m=a.ref({}),p=a.ref(!1),g=a.ref(!1),A=a.ref(!1),R=a.ref(s()),v=a.ref(!1),{setItemStorage:f,removeItemStorage:T,getItemStorage:b}=hh(),M=()=>n==null?null:a.toValue(n),w="[object Object]";function S(){T(w)}function C(Z,Q){const P=new Map(Z.map(J=>[J.field,J]));return Q.map(J=>{const ee=P.get(J.field);return ee?{...J,visible:ee.visible,...ee.width!==void 0?{width:ee.width}:{},...ee.minWidth!==void 0?{minWidth:ee.minWidth}:{}}:J})}S();async function k(){R.value=s(),m.value={}}function y(Z){const Q=M();if(!Q)return!1;f(Q,Z)}const D=a.readonly({...o()});function x(Z,Q){m.value[Z]=Q}const O=a.computed(()=>Object.values(m.value).some(Boolean));function I(){u.value+=1}async function j(Z){if(!Z||!Z.options)return;const Q=r.value.ajaxURL;Q&&(Z.options.ajaxURL=Q),r.value.columns&&(Z.options.columns=r.value.columns,Z.setColumns(r.value.columns),await U(Z)),Q&&Z.replaceData(Q)}async function U(Z){const Q=typeof Z.hideColumn=="function",P=typeof Z.showColumn=="function";if(!Q||!P){I();return}for(const J of r.value.columns)J.visible===!1?Z.hideColumn(J.field):Z.showColumn(J.field)}function V(Z){const Q=M();if(!Q)return!1;f(Q,q(Z))}async function H(Z){const Q=r.value?.paginationMode==="remote";if(!(Q&&(!Z||!Z.replaceData))&&!(v.value||g.value)){g.value=!0;try{if(await K(),v.value||(await a.nextTick(),v.value))return;if(!Q){I();return}await j(Z),p.value=!1}finally{g.value=!1}}}function q(Z){return Z.map(P=>{let J=JSON.parse(JSON.stringify(P));return P.visible===!1&&(delete J.width,delete J.minWidth),J})}function F(Z){const Q=M();if(!Q)return!1;f(Q,q(Z))}function N(){const Z={};for(const[Q,P]of Object.entries({...R.value}))!P||P?.length<1||Array.isArray(P)&&(P[0]===null||P[0]===void 0||P[0]==="")||(Z[Q]=P);return Z}async function K(){if(v.value)return;const Z=e(),Q=await t();if(v.value)return;const P=le();r.value={...r.value,ajaxURL:Z,ajaxResponse:Q,columns:P,ajaxParams:{...r.value.ajaxParams,per_page:r.value.paginationSize}}}const z=a.computed(()=>{let Z=[];return r.value.columns.map(Q=>{Q.title&&Z.push(Q.visible)}),Z.includes(!1)});async function $(Z,Q){Z.target.checked==!1?(d.value=Q,h.value=""):(h.value=Q,d.value="")}async function te(){const Z=M();Z&&T(Z),r.value.columns=le()}function le(){const Z=M(),Q=i({selectedQuickFilter:l?.value});if(!Z)return Q;const P=b(Z);if(!P)return Q;if(!Array.isArray(P))throw new TypeError("r3ui.table.columns_storage_invalid");return C(P,Q)}async function ce(){const Z=M();Z&&T(Z),r.value.columns.map(Q=>Q.visible=!1),F(r.value.columns)}function Y(Z){r.value.columns=Z;const Q=M();Q&&f(Q,Z)}function ie(){r.value.columns=r.value.columns}return a.onBeforeUnmount(()=>{v.value=!0}),a.provide("setFilterParamsStrings",x),a.provide(Jo,x),a.provide("selectedFilterTitles",D),a.provide(qo,D),a.provide("tableFilters",R),a.provide($o,R),a.provide("filterModalVisibility",p),a.provide(Zo,p),a.provide("resetFilters",k),a.provide(Xo,k),a.provide("applyFilters",H),a.provide(el,H),a.provide("editTableColumnsModalVisibility",A),a.provide(Sd,A),a.provide("tableOptions",r),a.provide(Rd,r),a.provide("editTableColumnVisibility",$),a.provide(xd,$),a.provide("isTableCoumnsHidden",z),a.provide(Md,z),a.provide("unselectAllTableColumnCheckboxes",ce),a.provide(Td,ce),a.provide("selectAllTableColumnCheckboxes",te),a.provide(Dd,te),a.provide("handleColumnsChanged",Y),a.provide(Ld,Y),a.provide("handleColumnsApply",ie),a.provide(Od,ie),a.provide("table",c),a.provide(tl,c),{selectAllTableColumnCheckboxes:te,unselectAllTableColumnCheckboxes:ce,isTableCoumnsHidden:z,editTableColumnVisibility:$,fetchData:K,onHideColumn:F,getFilterData:N,applyFilters:H,reRenderTable:I,resetFilters:k,onTableRowMoved:y,onShowColumn:V,table:c,tableKey:u,columnHide:d,columnShow:h,selectedFilterTitles:D,setFilterParamsStrings:x,filterParamsStrings:m,isSelectedFiltersVisible:O,filterModalVisibility:p,editTableColumnsModalVisibility:A,tableFilters:R,tableOptions:r,handleColumnsChanged:Y,handleColumnsApply:ie}};function ph(n,e){return{[`${e}-${e}`]:{pagination:{first:n("table_pagination.first"),first_title:n("table_pagination.first_title"),last:n("table_pagination.last"),last_title:n("table_pagination.last_title"),prev:n("table_pagination.prev"),prev_title:n("table_pagination.prev_title"),next:n("table_pagination.next"),next_title:n("table_pagination.next_title"),all:n("table_pagination.all"),counter:{showing:n("table_pagination.showing"),of:n("table_pagination.of"),rows:n("table_pagination.rows"),pages:n("table_pagination.pages")}},data:{loading:n("table_pagination.loading"),error:n("table_pagination.error")}}}}function mh(n,e){return{locale:`${e}-${e}`,langs:ph(n,e),rtl:e==="he",loadMoreText:n("table_pagination.load_more"),noDataText:n("table_pagination.no_data"),paginationLimitText:n("table_pagination.pagination_limit")}}function gh(n,e){return a.computed(()=>mh(n,a.unref(e)))}function bh(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 vh(n={}){const e=(i,r)=>i==null||i===""?[]:Array.isArray(i)?i.flatMap((s,o)=>e(s,r?`${r}[${o}]`:String(o))):typeof i=="object"?Object.entries(i).flatMap(([s,o])=>e(o,r?`${r}[${s}]`:s)):r?[{key:r,value:String(i)}]:[],t=i=>i==null||i===""?!0:Array.isArray(i)?i.length===0:typeof i=="object"?Object.keys(i).length===0:!1;return async(i,r,s)=>{const o=(r.method||"GET").toUpperCase();let l=i;if(o==="GET"&&s&&typeof s=="object"){const u=new URL(i,typeof window<"u"?window.location.origin:"http://localhost");Object.entries(s).forEach(([d,h])=>{if(t(h))return;e(h,d).forEach(({key:p,value:g})=>{u.searchParams.set(p,g)})}),l=u.toString()}let c;try{c=await fetch(l,r)}catch(u){throw n.onError?.(u),u}if(c.status===401)throw n.onUnauthorized?.(c),c;if(c.status===404&&n.onNotFound)return n.onNotFound({url:l,params:s,response:c});if(!c.ok){const u=await Ox(c);throw n.onError?.(u),u}try{return await c.json()}catch(u){const d=Object.assign(u instanceof Error?u:new Error("Malformed JSON"),{kind:"malformed",status:502,statusCode:502});throw n.onError?.(d),d}}}async function Ox(n){const e=await Bx(n);return Object.assign(new Error(`HTTP ${n.status}`),{status:n.status,statusCode:n.status,data:e,headers:n.headers,response:n})}async function Bx(n){const e=n.clone();try{return await e.json()}catch{return await n.clone().text()}}function Fx(n){const e=gh(n.t,n.locale),t=a.ref(0),i=a.ref(n.getColumns()),r=a.ref(!1),s=n.createAjaxResponse(t),o=a.ref({...n.defaultTableOptions??{},columns:n.getColumns(),ajaxResponse:s,ajaxRequestFunc:vh({onUnauthorized:n.onUnauthorized,onError:n.onError,onNotFound:n.notFound==="empty"?({url:T,params:b})=>bh(T,Number(b.page||1),Number(b.per_page||10)):void 0})}),l=typeof n.localStorageKey=="string"?a.ref(n.localStorageKey):n.localStorageKey,c=fh({localStorageKey:l,getAjaxResponse:async()=>s,getAjaxUrl:()=>n.getAjaxUrl(()=>c.getFilterData()),tableOptions:o,initialFilters:n.initialFilters,getColumns:n.getColumns,initialFilterTitles:n.initialFilterTitles}),{tableKey:u,columnHide:d,columnShow:h,table:m,onTableRowMoved:p,onShowColumn:g,onHideColumn:A,handleColumnsChanged:R,handleColumnsApply:v}=c;async function f(T){m.value=T,r.value&&n.applyFiltersOnReady!==!1&&m.value&&await c.applyFilters(m.value)}if(n.filtersContextKey){const T={total:t,tableDefault:c},b=n.extendFiltersContext?{...T,...n.extendFiltersContext(T)}:T;a.provide(n.filtersContextKey,b)}return n.watchQuickFilter&&a.watch(()=>n.watchQuickFilter.value,async(T,b)=>{T!==b&&m.value&&r.value&&await c.applyFilters(m.value)},{deep:!0}),a.onMounted(async()=>{n.onMountedExtra&&await n.onMountedExtra(),r.value=!0,m.value&&n.applyFiltersOnReady!==!1&&await c.applyFilters(m.value)}),{tableOptions:o,tableColumns:i,tableKey:u,columnHide:d,columnShow:h,tableLocalizations:e,handleTableReady:f,onTableRowMoved:p,onShowColumn:g,onHideColumn:A,handleColumnsChanged:R,handleColumnsApply:v,total:t,tableDefault:c,table:m,isInitDone:r}}function yh(n){return n.map(e=>{const t=JSON.parse(JSON.stringify(e));return e.visible===!1&&(delete t.width,delete t.minWidth),t})}function wh(n){return n.filter(e=>e.visible===!0)}function Ch(n,e){return n.map(t=>t.field===e?{...t,visible:!t.visible}:t)}function Ir(n){return n.map(e=>({...e,visible:e.title?!0:e.visible}))}function xl(n){return n.map(e=>({...e,visible:e.title?!1:e.visible}))}function Fn(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 Ah(n){return n.some(e=>e.title&&!e.visible)}function Eh(n,e){return n.find(t=>t.field===e)}function Vr(n,e,t){return n.map(i=>i.field===e?{...i,...t}:i)}const _x=Object.freeze(Object.defineProperty({__proto__:null,getColumnByField:Eh,getVisibleColumns:wh,hasHiddenColumns:Ah,hideAllColumns:xl,prepareColumnsToSave:yh,resetColumnsToDefault:Ir,toggleColumnVisibility:Ch,updateColumn:Vr,validateColumns:Fn},Symbol.toStringTag,{value:"Module"}));function kh(n){const{initialColumns:e,localStorageKey:t,tableOptions:i,autoSave:r=!0,onColumnsChange:s,onApply:o,validateOnChange:l=!0}=n;Fn(e)||console.error("useTableColumnsEnhanced: invalid initialColumns provided");const c=a.ref(!1),u=a.ref([...e]),d=a.ref(!1);if(t&&typeof window<"u")try{const V=localStorage.getItem(t);if(V){const H=JSON.parse(V);Fn(H)&&(u.value=H)}}catch(V){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",V)}const h=a.computed(()=>wh(u.value)),m=a.computed(()=>Ah(u.value)),p=a.computed(()=>u.value.length),g=a.computed(()=>h.value.length);function A(V){if(!(!t||typeof window>"u"||!r))try{const H=yh(V);localStorage.setItem(t,JSON.stringify(H))}catch(H){console.warn("useTableColumnsEnhanced: failed to save columns to localStorage",H)}}function R(){if(!t||typeof window>"u")return null;try{const V=localStorage.getItem(t);if(V){const H=JSON.parse(V);if(Fn(H))return H}}catch(V){console.warn("useTableColumnsEnhanced: failed to load columns from localStorage",V)}return null}function v(){if(!(!t||typeof window>"u"))try{localStorage.removeItem(t)}catch(V){console.warn("useTableColumnsEnhanced: failed to clear localStorage",V)}}function f(V){if(l&&!Fn(V)){console.error("useTableColumnsEnhanced: invalid columns provided to updateColumns");return}u.value=[...V],A(V),s?.(V)}function T(V,H){const q=V.target,F=Vr(u.value,H,{visible:q.checked});f(F)}function b(V){c.value=V}function M(V){const H=V||u.value;f(H),c.value=!1,o?.(H)}function w(){const V=Ir(u.value);f(V)}function S(){const V=xl(u.value);f(V)}function C(V){const H=Ch(u.value,V);f(H)}function k(V){const H=Vr(u.value,V,{visible:!0});f(H)}function y(V){const H=Vr(u.value,V,{visible:!1});f(H)}function D(){const V=Ir(e);f(V)}function x(){const V=Ir(u.value);f(V)}function O(){const V=xl(u.value);f(V)}function I(V){return Eh(u.value,V)}function j(V){return I(V)?.visible??!1}function U(){i?.value&&(i.value.columns=u.value)}return a.watch(u,()=>{U()},{deep:!0}),a.watch(()=>e,V=>{d.value||(u.value=[...V],d.value=!0)},{deep:!0,immediate:!0}),d.value||(d.value=!0,U()),{columnsModalVisibility:c,tableColumns:u,visibleColumns:h,hasHidden:m,columnsCount:p,visibleCount:g,isInitialized:d,handleColumnsModalVisibility:b,handleColumnVisibilityChange:T,handleColumnsApply:M,handleColumnsSelectAll:w,handleColumnsUnselectAll:S,updateColumns:f,toggleColumn:C,showColumn:k,hideColumn:y,resetToDefault:D,showAll:x,hideAll:O,getColumn:I,isColumnVisible:j,saveToLocalStorage:A,loadFromLocalStorage:R,clearLocalStorage:v,syncWithTableOptions:U}}function Px(n){const{localStorageKey:e,getColumns:t,tableOptions:i,tableDefault:r,onColumnsChange:s,onApply:o}=n,l=kh({initialColumns:t(),localStorageKey:e,tableOptions:i,autoSave:!0,onColumnsChange:p=>{s?.(p),r?.applyFilters&&r.applyFilters()},onApply:p=>{o?.(p),r?.applyFilters&&r.applyFilters()}});function c(p){console.log("useTableColumnsIntegration handleColumnsChanged called, received columns:",p),l.updateColumns(p)}function u(){console.log("useTableColumnsIntegration handleColumnsApply called"),l.handleColumnsApply()}function d(){if(r){if(r.onShowColumn){const p=r.onShowColumn;r.onShowColumn=g=>{console.log("useTableColumnsIntegration onShowColumn called with columns:",g),l.updateColumns(g),p?.(g)}}if(r.onHideColumn){const p=r.onHideColumn;r.onHideColumn=g=>{console.log("useTableColumnsIntegration onHideColumn called with columns:",g),l.updateColumns(g),p?.(g)}}}}function h(){i?.value&&(i.value.columns=l.tableColumns.value)}function m(){r?.tableOptions&&(r.tableOptions.columns=l.tableColumns.value)}return a.watch(()=>t(),p=>{console.log("useTableColumnsIntegration getColumns changed, updating columns:",p),l.updateColumns(p)},{deep:!0}),d(),{...l,handleColumnsChanged:c,handleColumnsApply:u,syncWithTableOptions:h,syncWithTable:m,setupTableDefaultIntegration:d}}function Nx(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 Ix=(n={})=>{const{navigate:e=v=>console.warn("useBreadcrumbs: navigate function not provided"),translate:t=v=>v,getCurrentRoute:i=()=>({path:"/",name:"home"}),maxItems:r=5,storageKey:s="breadcrumbs"}=n,o=a.ref([]);function l(v){e(v)}function c(v,f){if(!Array.isArray(v))return[];const T=JSON.parse(JSON.stringify(v));return T.length>f&&T.splice(0,T.length-f),T}function u(){const v=i();if(typeof v.path!="string"||!v.path)throw new TypeError("useBreadcrumbs: path обязателен");if(typeof v.name!="string"||!v.name)throw new TypeError("useBreadcrumbs: name обязателен");return{path:v.path,name:v.name}}function d(){const v=localStorage.getItem(s);if(v===null||v==="")return[];let f;try{f=JSON.parse(v)}catch{throw new TypeError("useBreadcrumbs: невалидный JSON в storage")}if(!Array.isArray(f))throw new TypeError("useBreadcrumbs: storage должен быть массивом");return f}function h(){const v=u(),f=o.value||[],T=f[f.length-1];if(JSON.stringify(T)===JSON.stringify(v))return!1;f.push(v),o.value=c(f,r),localStorage.setItem(s,JSON.stringify(o.value))}function m(){o.value=d(),h()}const p=a.computed(()=>o.value.map((v,f)=>({text:t(`routes.${v.name}`),href:v.path,isActive:f===o.value.length-1})));function g(){h()}function A(){o.value=[],localStorage.removeItem(s)}function R(v){const f=o.value||[];f.push(v),o.value=c(f,r),localStorage.setItem(s,JSON.stringify(o.value))}return typeof localStorage<"u"&&m(),a.onMounted(()=>{o.value.length===0&&typeof localStorage<"u"&&m()}),{goTo:l,crumbs:p,breadcrumbs:o,updateBreadcrumbs:g,clearBreadcrumbs:A,addBreadcrumb:R}};function Vx(n){return n?.length?n.map(e=>typeof e=="string"?e:e?.name??"").filter(e=>!!e):[]}function Hx(n){const e=a.computed(()=>{const t=a.toValue(n);return Vx(t)});return t=>gr(t,e.value)}const ci={country:"country",region:"region",district:"district",locality:"locality",street:"street",house:"house",building:"building",apartment:"apartment"};function zx(n){return{countryLabel:n(ci.country),regionLabel:n(ci.region),districtLabel:n(ci.district),localityLabel:n(ci.locality),streetLabel:n(ci.street),houseLabel:n(ci.house),buildingLabel:n(ci.building),apartmentLabel:n(ci.apartment)}}const Ml={expandAll:"accordion.expand_all",collapseAll:"accordion.collapse_all"};function jx(n){return{expandText:n(Ml.expandAll),collapseText:n(Ml.collapseAll)}}const Sh=["create-object-access-request","cancel-own-object-access-request","decide-object-access-request"],Tl=[{permission:"view-users",href:"/users"},{permission:"view-organizations",href:"/organizations"},{permissions:Sh,href:"/access-requests"}],Rh=["sidebar-view-auth",...Tl.flatMap(n=>n.permissions?[...n.permissions]:n.permission?[n.permission]:[])];function xh(n,e){return e.permissions?.length?e.permissions.some(n):e.permission?n(e.permission):!1}function Wx(n){return Rh.some(n)}function Ux(n){return Tl.some(e=>xh(n,e))}function Gx(n){return{Accept:"application/json",Authorization:`Bearer ${n}`}}function Yx(n){return!n||typeof n!="object"||Array.isArray(n)?null:n}async function Qx(n){const{logOutSSO:e,nextTick:t,navigateTo:i,redirect:r,onReset:s,redirectPath:o="/login",onError:l}=n;if(typeof l!="function")throw new Error("runLogoutFlow: onError обязателен");const c=typeof e=="function"?e:async()=>{};try{await c()}catch(u){l(u)}finally{const u=r??i;if(r){s(),u(o);return}await t(()=>{s(),u(o)})}}const Mh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";function Th(){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 Dh(n){const e=Th(),t=new Uint8Array(n);e.getRandomValues(t);let i="";return t.forEach(r=>{i+=Mh[r%Mh.length]}),i}function Kx(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 Lh(n=64){if(!Number.isInteger(n)||n<43||n>128)throw new Error("PKCE code_verifier length must be between 43 and 128.");return Dh(n)}async function Oh(n){const e=Th(),i=new TextEncoder().encode(n),r=await e.subtle.digest("SHA-256",i);return Kx(r)}async function Bh(n=64){const e=Lh(n),t=await Oh(e);return{codeVerifier:e,codeChallenge:t}}function Fh(n=32){if(!Number.isInteger(n)||n<16||n>128)throw new Error("OAuth state length must be between 16 and 128.");return Dh(n)}function Hr(n){return Number.isInteger(n)&&Number(n)>=400&&Number(n)<600}function Dl(n,e=new Set){if(n==null)return;if(typeof n=="number")return Hr(n)?n:void 0;if(typeof n!="object"||e.has(n))return;if(e.add(n),typeof Response<"u"&&n instanceof Response)return Hr(n.status)?n.status:void 0;const t=n;if(Hr(t.status))return t.status;if(Hr(t.statusCode))return t.statusCode;const i=Dl(t.response,e);return i!==void 0?i:Dl(t.cause,e)}function _n(n){return n===400?"Bad Request":n===401?"Unauthorized":n===403?"Forbidden":n===404?"Not Found":n===409?"Conflict":n===422?"Unprocessable Entity":n===429?"Too Many Requests":n===502?"Bad Gateway":n===503?"Service Unavailable":n===504?"Gateway Timeout":n>=500?"Internal Server Error":"Request failed"}function zr(n,e=500){return Dl(n)??e}const Jx="Web Crypto API недоступен. Используйте HTTPS или обновите браузер.",qx="NUXT_PUBLIC_ORIGIN не совпадает с адресом вкладки. Откройте приложение по origin из конфига.",Ll="r3ui-sso-start-lock",Ol="r3ui-sso-auth-url";let Pn=!1;function $x(){try{return sessionStorage.getItem(Ll)==="1"}catch{return!1}}function Zx(){try{const n=sessionStorage.getItem(Ol);return typeof n=="string"&&n.length>0?n:null}catch{return null}}function _h(){try{sessionStorage.setItem(Ll,"1")}catch{}}function Xx(n){try{sessionStorage.setItem(Ol,n)}catch{}}function jr(){Pn=!1;try{sessionStorage.removeItem(Ll),sessionStorage.removeItem(Ol)}catch{}}function eM(){jr()}function tM(){Pn=!1}async function iM(n){if(!n||typeof n.setLoading!="function")throw new Error("signInWithSSO: deps.setLoading обязателен");if(typeof n.getPublicConfig!="function")throw new Error("signInWithSSO: deps.getPublicConfig обязателен");if(typeof n.useCookie!="function")throw new Error("signInWithSSO: deps.useCookie обязателен");if(typeof n.showError!="function")throw new Error("signInWithSSO: deps.showError обязателен");if(typeof window>"u")return;const e=n.redirectTo??(c=>{window.location.href=c}),i={maxAge:300,sameSite:"lax",secure:(n.isSecure??(()=>window.location.protocol==="https:"))(),path:"/"},r=()=>{const c=n.useCookie("pkce_state",i).value;return typeof c=="string"&&c.length>0?c:null},s=()=>{const c=Zx();return!r()||!c?!1:(Pn=!0,_h(),e(c),!0)};if(Pn)return;if($x()){if(s())return;jr()}n.setLoading(!0);const o=n.generatePkcePair??Bh,l=n.generateState??Fh;try{const{authApiUrl:c,ssoClientId:u,origin:d}=n.getPublicConfig();if(!c||!u)throw new Error("Не настроены CLIENT_ID или NUXT_AUTH_API_URL");if(typeof d!="string"||d!==window.location.origin){n.setLoading(!1),n.showError({statusCode:400,statusMessage:qx});return}if(s()){n.setLoading(!1);return}Pn=!0,_h();let h,m,p;try{({codeVerifier:h,codeChallenge:m}=await o()),p=l()}catch{jr(),n.setLoading(!1),n.showError({statusCode:500,statusMessage:Jx});return}n.useCookie("pkce_verifier",i).value=h,n.useCookie("pkce_state",i).value=p;const g=`${d}/api/auth/callback`,A=`${c}/oauth/authorize?`+new URLSearchParams({client_id:u,redirect_uri:g,response_type:"code",code_challenge:m,code_challenge_method:"S256",state:p});Xx(A),e(A)}catch(c){jr(),n.setLoading(!1);const u=zr(c,500),d=c instanceof Error&&c.message.trim()?c.message:_n(u);n.showError({statusCode:u,statusMessage:d,cause:c})}}const Ph=n=>{if(typeof n=="string"&&n.length!==0&&!n.toLowerCase().includes("localhost"))return n},Bl=({origin:n,authCookieDomain:e,httpOnly:t})=>{const i=Ph(e);return{path:"/",sameSite:"lax",secure:n?.startsWith("https://")??!1,...typeof t=="boolean"?{httpOnly:t}:{},...i?{domain:i}:{}}};function Di(n,e){if(typeof n!="function")throw new Error(`handlePkceCallback: deps.${e} обязателен`)}function ui(n,e,t,i){throw n({statusCode:e,statusMessage:t,...i!==void 0?{cause:i}:{}})}function Wr(n){if(!(typeof n!="string"||n.length===0))return n}function Nh(n){return!!n&&typeof n=="object"&&!Array.isArray(n)}async function nM(n){if(!n)throw new Error("handlePkceCallback: deps обязателен");if(Di(n.getQuery,"getQuery"),Di(n.getCookie,"getCookie"),Di(n.setCookie,"setCookie"),Di(n.deleteCookie,"deleteCookie"),Di(n.createError,"createError"),Di(n.sendRedirect,"sendRedirect"),Di(n.fetchToken,"fetchToken"),!Nh(n.publicConfig))throw new Error("handlePkceCallback: deps.publicConfig обязателен");const e=n.publicConfig.authApiUrl,t=n.publicConfig.ssoClientId,i=n.publicConfig.origin;(typeof e!="string"||e.length===0)&&ui(n.createError,500,"Internal Server Error: Could not exchange code for token."),(typeof t!="string"||t.length===0)&&ui(n.createError,500,"Internal Server Error: Could not exchange code for token."),(typeof i!="string"||i.length===0)&&ui(n.createError,500,"Internal Server Error: Could not exchange code for token.");const r=n.getQuery(n.event);Nh(r)||ui(n.createError,500,"Internal Server Error: Could not exchange code for token.");const s=Wr(r.code),o=Wr(r.state),l=Wr(n.getCookie(n.event,"pkce_state")),c=Wr(n.getCookie(n.event,"pkce_verifier"));s||ui(n.createError,400,"Authorization code is missing."),(!o||!l||o!==l)&&ui(n.createError,400,"OAuth state is invalid."),c||ui(n.createError,400,"PKCE code_verifier is missing.");const u=Bl({origin:i,authCookieDomain:n.publicConfig.authCookieDomain,httpOnly:!1});let d;try{d=await n.fetchToken(`${e}/oauth/token`,{method:"POST",body:{grant_type:"authorization_code",client_id:t,redirect_uri:`${i}/api/auth/callback`,code:s,code_verifier:c},headers:{Accept:"application/json"}})}catch(m){const p=zr(m,500);ui(n.createError,p,_n(p),m)}const h=d&&typeof d=="object"&&"access_token"in d?d.access_token:void 0;return(typeof h!="string"||h.length===0)&&ui(n.createError,500,"Internal Server Error: Could not exchange code for token."),n.setCookie(n.event,"auth_token",h,{...u}),n.deleteCookie(n.event,"pkce_verifier"),n.deleteCookie(n.event,"pkce_state"),n.sendRedirect(n.event,"/")}function Fl(n,e){if(typeof n!="function")throw new Error(`exchangePasswordToken: deps.${e} обязателен`)}function nn(n,e,t){throw n({statusCode:e,statusMessage:t})}async function rM(n){if(!n)throw new Error("exchangePasswordToken: deps обязателен");Fl(n.readBody,"readBody"),Fl(n.fetchToken,"fetchToken"),Fl(n.createError,"createError");const e=await n.readBody(n.event);(!e||typeof e!="object"||Array.isArray(e))&&nn(n.createError,400,"Request body must be an object."),(typeof n.tokenUrl!="string"||n.tokenUrl.length===0)&&nn(n.createError,500,"Internal Server Error: OAuth token URL is missing."),(typeof n.clientId!="string"||n.clientId.length===0)&&nn(n.createError,500,"Internal Server Error: OAuth client_id is missing."),(typeof n.clientSecret!="string"||n.clientSecret.length===0)&&nn(n.createError,500,"Internal Server Error: OAuth client_secret is missing.");try{const t=await n.fetchToken(n.tokenUrl,{method:"POST",body:{...e,grant_type:"password",scope:"*",client_id:n.clientId,client_secret:n.clientSecret}});if(typeof t=="string")try{return JSON.parse(t)}catch{nn(n.createError,502,_n(502))}return t}catch(t){const i=zr(t,500);nn(n.createError,i,_n(i))}}function Ur(n,e){if(typeof n!="function")throw new Error(`runLogoutHandler: deps.${e} обязателен`)}function Ih(n,e,t,i){throw n({statusCode:e,statusMessage:t,...i!==void 0?{cause:i}:{}})}function sM(n){return!!n&&typeof n=="object"&&!Array.isArray(n)}async function aM(n){if(!n)throw new Error("runLogoutHandler: deps обязателен");if(Ur(n.getCookie,"getCookie"),Ur(n.deleteCookie,"deleteCookie"),Ur(n.createError,"createError"),Ur(n.fetchLogout,"fetchLogout"),!sM(n.publicConfig))throw new Error("runLogoutHandler: deps.publicConfig обязателен");const e=typeof n.publicConfig.origin=="string"?n.publicConfig.origin:void 0,t=Bl({origin:e,authCookieDomain:n.publicConfig.authCookieDomain}),i=n.publicConfig.authApiUrl;let r;try{if(typeof i=="string"&&i.length>0){const s=n.getCookie(n.event,"auth_token");await n.fetchLogout(`${i}/api/logout`,{method:"POST",headers:{Accept:"application/json",Authorization:`Bearer ${s}`}})}}catch(s){r=s}finally{n.deleteCookie(n.event,"auth_token",{...t}),n.deleteCookie(n.event,"laravel_session"),n.deleteCookie(n.event,"sessionId"),n.deleteCookie(n.event,"XSRF-TOKEN")}if((typeof i!="string"||i.length===0)&&Ih(n.createError,500,"Internal Server Error: Could not clear session."),r!==void 0){const s=zr(r,500);Ih(n.createError,s,_n(s),r)}return!0}const Nn="/api/services/handbook/overpass/",oM=n=>({searchCountries:(e={})=>n(`${Nn}countries`,{method:"GET",params:e}),getRegionsByCountry:e=>n(`${Nn}countries/${e}/regions`,{method:"GET"}),getDistrictsByRegion:e=>n(`${Nn}regions/${e}/districts`,{method:"GET"}),getLocalitiesByDistrict:e=>n(`${Nn}districts/${e}/cities`,{method:"GET"}),getStreetsByLocality:e=>n(`${Nn}cities/${e}/streets`,{method:"GET"})});W.ACCESS_REQUEST_ACTION_PERMISSIONS=Sh,W.ACCORDION_LOCALIZATION_KEYS=Ml,W.ADDRESS_FORM_TRANSLATIONS=ci,W.AUTH_SIDEBAR_EXTERNAL_LINK_PERMISSIONS=Rh,W.AUTH_SIDEBAR_NAV_ITEMS=Tl,W.AddButton=_l,W.AddressForm=vC,W.AgeFromAgeTo=OC,W.BooleanCheckbox=gd,W.Breadcrumbs=WE,W.Card=FA,W.CardInfo=XE,W.Checkbox=yv,W.ClearFormButton=Zh,W.CollapseButton=Qh,W.CollapsedSidebarLink=jd,W.ColumnSubFilter=X1,W.ConfirmationModal=oA,W.CustomInput=br,W.DefaultAccordion=F0,W.DefaultButton=Bi,W.DefaultDropDown=il,W.DefaultModal=Ed,W.Divider=nl,W.EditTableColumns=Cl,W.EditTableColumnsModalComponent=Fd,W.ErrorMessageComponent=M0,W.ExportButton=Kh,W.ExportComponent=zf,W.FilterValuesPanel=Lx,W.Flatpickr=$w,W.Footer=PA,W.FormError=Si,W.Header=ZA,W.HeaderSearchForm=tC,W.Icon=Gr,W.KindCheckboxesAccordion=Y0,W.LanguageSelector=UE,W.Logo=_d,W.MainComponent=_E,W.MultiCheckbox=Dw,W.MultiInput=_w,W.MultipleQuickFilterComponent=CR,W.PageCard=w0,W.PageTitle=LA,W.PasswordInput=mv,W.PrintButton=Jh,W.QuestionIcon=Ex,W.Sidebar=Wd,W.SidebarLink=zd,W.Slider=Cx,W.Spinner=In,W.SsoLoginPending=DR,W.SubFilterToggleBtn=eh,W.Table=K1,W.TableAppliedFiltersStorage=eR,W.TableColumnsButton=fR,W.TableColumnsModal=pR,W.TableCount=Z1,W.TableFilterModalComponent=kd,W.TableFilterModalShell=vA,W.TableQuickFilterComponent=rR,W.Toast=Ud,W.ToggleAllTableRowButtons=bR,W.ToggleButtons=tf,W.VSelect=Ht,W.addDays=za,W.addMonths=ja,W.addToLocalStorageKey=Id,W.addYears=Wa,W.applyFiltersKey=el,W.areArraysEqual=oo,W.arrayToCutString=Xa,W.asAuthUser=Yx,W.authUserHeaders=Gx,W.camelCase=Qa,W.canViewAuthSidebarExternalLink=Wx,W.canViewAuthSidebarNavItem=xh,W.canViewAuthSidebarSection=Ux,W.capitalize=Ya,W.chunk=no,W.clamp=So,W.constants=wl,W.createAddressService=oM,W.createColumnHandlers=Nx,W.createEmptyRemotePageResponse=bh,W.createTableAjaxRequestFunc=vh,W.createTabulatorLangsFromT=ph,W.createTabulatorTableProps=mh,W.cutString=Za,W.debounce=gn,W.editTableColumnVisibilityKey=xd,W.editTableColumnsModalVisibilityKey=Sd,W.exchangePasswordToken=rM,W.expandAccordionKey=rl,W.expandedAccordionKey=sl,W.filterModalVisibilityKey=Zo,W.findAll=Ea,W.findOne=Aa,W.firstToUppercase=Ga,W.flattenObject=mr,W.formatDate=Ia,W.formatMoney=Va,W.generateCodeChallenge=Oh,W.generateCodeVerifier=Lh,W.generateId=ho,W.generatePkcePair=Bh,W.generateState=Fh,W.getAccordionLocalization=jx,W.getAddressFormLabels=zx,W.getAuthCookieOptions=Bl,W.getBrowserLocale=xa,W.getDeclinationFromNumber=Ua,W.getDeepCopyObject=oi,W.getLocalStorage=vo,W.getNowDate=Ha,W.getSessionStorage=Co,W.getSharedCookieDomain=Ph,W.getSupportedLocales=dr,W.getUniqueKey=mi,W.getValueFromArr=Da,W.getValueFromObjectItem=hr,W.groupBy=to,W.handleColumnsApplyKey=Od,W.handleColumnsChangedKey=Ld,W.handlePkceCallback=nM,W.hasMatch=Do,W.hasPermission=gr,W.hasRole=To,W.helpers=cv,W.hideSpinnerKey=Nd,W.initEmailMask=Oa,W.initInnMask=Fa,W.initKppMask=_a,W.initPassportMask=Na,W.initPhoneMask=Ba,W.initSnilsMask=Pa,W.injectAddToLocalStorage=iE,W.injectExpandAccordion=ll,W.injectExpandedAccordion=cl,W.injectHideSpinner=tE,W.injectShowSpinner=eE,W.injectSidebarContentVisibility=Vd,W.injectToggleSidebar=Hd,W.isArraysEqual=ao,W.isEqual=pr,W.isObject=ro,W.isTableCoumnsHiddenKey=Md,W.isValidDate=fr,W.isValidEmail=po,W.isValidLocale=Ma,W.isValidPhone=mo,W.isValidUrl=go,W.kebabCase=Ka,W.lerp=Ro,W.maskDate=$a,W.memoize=Eo,W.mountSubFilter=Ui,W.omit=uo,W.once=ko,W.pick=co,W.prepareResponse=Lo,W.prepareSelectOptions=ka,W.r3uiTableDefaultApiKey=Ko,W.random=xo,W.removeLocalStorage=yo,W.removeSessionStorage=Ao,W.required=fo,W.resetFiltersKey=Xo,W.resetSignInWithSSOLock=eM,W.roundToDecimals=Mo,W.runLogoutFlow=Qx,W.runLogoutHandler=aM,W.scrollToElement=Ra,W.scrollToError=Sa,W.selectAllTableColumnCheckboxesKey=Dd,W.selectedFilterTitlesKey=qo,W.setFilterParamsStringsKey=Jo,W.setLocalStorage=bo,W.setSessionStorage=wo,W.showSpinnerKey=Pd,W.sidebarContentVisibilityKey=al,W.signInWithSSO=iM,W.simulateSignInWithSSOHmr=tM,W.snakeCase=Ja,W.sortBy=io,W.sumOfArrayNumbers=La,W.tableColumnsUtils=_x,W.tableFiltersRefKey=$o,W.tableOptionsKey=Rd,W.tableRefKey=tl,W.throttle=Ta,W.toggleSidebarKey=ol,W.truncate=qa,W.unflatenObject=lo,W.unique=eo,W.unselectAllTableColumnCheckboxesKey=Td,W.useBreadcrumbs=Ix,W.usePermissionChecker=Hx,W.useR3uiTableDefaultInject=Bd,W.useRemoteTable=Fx,W.useTableColumns=Al,W.useTableColumnsEnhanced=kh,W.useTableColumnsIntegration=Px,W.useTableDefault=fh,W.useTableStorage=hh,W.useTabulatorTableProps=gh,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"})}));