vendor: 4,428 bytes, line 1
1(()=>{var __webpack_modules__={76:function(tt){/* flatpickr v4.6.13,, @license MIT */!function(ta,ti){tt.exports=ti()}(0,function(){"use strict";var tt=function(){return(tt=Object.assign||function(tt){for(var ta,ti=1,tr=arguments.length;ti<tr;ti++)for(var tn in ta=arguments[ti])Object.prototype.hasOwnProperty.call(ta,tn)&&(tt[tn]=ta[tn]);return tt}).apply(this,arguments)};function ta(){for(var tt=0,ta=0,ti=arguments.length;ta<ti;ta++)tt+=arguments[ta].length;var tr=Array(tt),tn=0;for(ta=0;ta<ti;ta++)for(var to=arguments[ta],tl=0,ts=to.length;tl<ts;tl++,tn++)tr[tn]=to[tl];return tr}var ti=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],tr={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(tt){return"undefined"!=typeof console&&console.warn(tt)},getWeek:function(tt){var ta=new Date(tt.getTime());ta.setHours(0,0,0,0),ta.setDate(ta.getDate()+3-(ta.getDay()+6)%7);var ti=new Date(ta.getFullYear(),0,4);return 1+Math.round(((ta.getTime()-ti.getTime())/864e5-3+(ti.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},tn={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(tt){var ta=tt%100;if(ta>3&&ta<21)return"th";switch(ta%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},to=function(tt,ta){return void 0===ta&&(ta=2),("000"+tt).slice(-1*ta)},tl=function(tt){return!0===tt?1:0};function ts(tt,ta){var ti;return function(){var tr=this,tn=arguments;clearTimeout(ti),ti=setTimeout(function(){return tt.apply(tr,tn)},ta)}}var tc=function(tt){return tt instanceof Array?tt:[tt]};function td(tt,ta,ti){if(!0===ti)return tt.classList.add(ta);tt.classList.remove(ta)}function tu(tt,ta,ti){var tr=window.document.createElement(tt);return ta=ta||"",ti=ti||"",tr.className=ta,void 0!==ti&&(tr.textContent=ti),tr}function tg(tt){for(;tt.firstChild;)tt.removeChild(tt.firstChild)}function tp(tt,ta){return ta(tt)?tt:tt.parentNode?tp(tt.parentNode,ta):void 0}function tm(tt,ta){var ti=tu("div","numInputWrapper"),tr=tu("input","numInput "+tt),tn=tu("span","arrowUp"),to=tu("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?tr.type="number":(tr.type="text",tr.pattern="\\d*"),void 0!==ta)for(var tl in ta)tr.setAttribute(tl,ta[tl]);return ti.appendChild(tr),ti.appendChild(tn),ti.appendChild(to),ti}function th(tt){try{return"function"==typeof tt.composedPath?tt.composedPath()[0]:tt.target}catch(ta){return tt.target}}var tf=function(){}
vendor: 4,141 bytes, line 1
1,tb=function(tt,ta,ti){return ti.months[ta?"shorthand":"longhand"][tt]},t_={D:tf,F:function(tt,ta,ti){tt.setMonth(ti.months.longhand.indexOf(ta))},G:function(tt,ta){tt.setHours((tt.getHours()>=12?12:0)+parseFloat(ta))},H:function(tt,ta){tt.setHours(parseFloat(ta))},J:function(tt,ta){tt.setDate(parseFloat(ta))},K:function(tt,ta,ti){tt.setHours(tt.getHours()%12+12*tl(RegExp(ti.amPM[1],"i").test(ta)))},M:function(tt,ta,ti){tt.setMonth(ti.months.shorthand.indexOf(ta))},S:function(tt,ta){tt.setSeconds(parseFloat(ta))},U:function(tt,ta){return new Date(1e3*parseFloat(ta))},W:function(tt,ta,ti){var tr=parseInt(ta),tn=new Date(tt.getFullYear(),0,2+7*(tr-1),0,0,0,0);return tn.setDate(tn.getDate()-tn.getDay()+ti.firstDayOfWeek),tn},Y:function(tt,ta){tt.setFullYear(parseFloat(ta))},Z:function(tt,ta){return new Date(ta)},d:function(tt,ta){tt.setDate(parseFloat(ta))},h:function(tt,ta){tt.setHours((tt.getHours()>=12?12:0)+parseFloat(ta))},i:function(tt,ta){tt.setMinutes(parseFloat(ta))},j:function(tt,ta){tt.setDate(parseFloat(ta))},l:tf,m:function(tt,ta){tt.setMonth(parseFloat(ta)-1)},n:function(tt,ta){tt.setMonth(parseFloat(ta)-1)},s:function(tt,ta){tt.setSeconds(parseFloat(ta))},u:function(tt,ta){return new Date(parseFloat(ta))},w:tf,y:function(tt,ta){tt.setFullYear(2e3+parseFloat(ta))}},ty={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},tv={Z:function(tt){return tt.toISOString()},D:function(tt,ta,ti){return ta.weekdays.shorthand[tv.w(tt,ta,ti)]},F:function(tt,ta,ti){return tb(tv.n(tt,ta,ti)-1,!1,ta)},G:function(tt,ta,ti){return to(tv.h(tt,ta,ti))},H:function(tt){return to(tt.getHours())},J:function(tt,ta){return void 0!==ta.ordinal?tt.getDate()+ta.ordinal(tt.getDate()):tt.getDate()},K:function(tt,ta){return ta.amPM[tl(tt.getHours()>11)]},M:function(tt,ta){return tb(tt.getMonth(),!0,ta)},S:function(tt){return to(tt.getSeconds())},U:function(tt){return tt.getTime()/1e3},W:function(tt,ta,ti){return ti.getWeek(tt)},Y:function(tt){return to(tt.getFullYear(),4)},d:function(tt){return to(tt.getDate())},h:function(tt){return tt.getHours()%12?tt.getHours()%12:12},i:function(tt){return to(tt.getMinutes())},j:function(tt){return tt.getDate()},l:function(tt,ta){return ta.weekdays.longhand[tt.getDay()]},m:function(tt){return to(tt.getMonth()+1)},n:function(tt){return tt.getMonth()+1},s:function(tt){return tt.getSeconds()},u:function(tt){return tt.getTime()},w:function(tt){return tt.getDay()},y:function(tt){return String(tt.getFullYear()).substring(2)}},tx=function(tt){var ta=tt.config,ti=void 0===ta?tr:ta,to=tt.l10n,tl=void 0===to?tn:to,ts=tt.isMobile,tc=void 0!==ts&&ts;return function(tt,ta,tr){var tn=tr||tl;return void 0===ti.formatDate||tc?ta.split("").map(function(ta,tr,to){return tv[ta]&&"\\"!==to[tr-1]?tv[ta](tt,tn,ti):"\\"!==ta?ta:""}).join(""):ti.formatDate(tt,ta,tn)}},tS=function(tt){var ta=tt.config,ti=void 0===ta?tr:ta,to=tt.l10n,tl=void 0===to?tn:to;return function(tt,ta,tn,to){if(0===tt||tt){var ts,tc=to||tl,td=tt;if(tt instanceof Date)ts=new Date(tt.getTime());else if("string"!=typeof tt&&void 0!==tt.toFixed)ts=new Date(tt);else if("string"==typeof tt){var tu=ta||(ti||tr).dateFormat,tg=String(tt).trim();if("today"===tg)ts=new Date,tn=!0;else if(ti&&ti.parseDate)ts=ti.parseDate(tt,tu);else if(/Z$/.test(tg)||/GMT$/.test(tg))ts=new Date(tt);else{for(var tp=void 0,tm=[],th=0,tf=0,tb="";th<tu.length;th++){var tv=tu[th],tx="\\"===tv,tS="\\"===tu[th-1]||tx;if(ty[tv]&&!tS){var tO=new RegExp(tb+=ty[tv]).exec(tt);tO&&(tp=!0)&&tm["Y"!==tv?"push":"unshift"]({fn:t_[tv],val:tO[++tf]})}else tx||(tb+=".")}ts=ti&&ti.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),tm.forEach(function(tt){var ta=tt.fn,ti=tt.val;return ts=ta(ts,ti,tc)||ts}),ts=tp?ts:void 0}}if(ts instanceof Date&&!isNaN(ts.getTime()))return!0===tn&&ts.setHours(0,0,0,0),ts;ti.errorHandler(Error("Invalid date provided: "+td))}}};
vendor: 4,265 bytes, line 1
1function tO(tt,ta,ti){return void 0===ti&&(ti=!0),!1!==ti?new Date(tt.getTime()).setHours(0,0,0,0)-new Date(ta.getTime()).setHours(0,0,0,0):tt.getTime()-ta.getTime()}var tA=function(tt,ta,ti){return 3600*tt+60*ta+ti},tE=864e5;function tN(tt){var ta=tt.defaultHour,ti=tt.defaultMinute,tr=tt.defaultSeconds;if(void 0!==tt.minDate){var tn=tt.minDate.getHours(),to=tt.minDate.getMinutes(),tl=tt.minDate.getSeconds();ta<tn&&(ta=tn),ta===tn&&ti<to&&(ti=to),ta===tn&&ti===to&&tr<tl&&(tr=tt.minDate.getSeconds())}if(void 0!==tt.maxDate){var ts=tt.maxDate.getHours(),tc=tt.maxDate.getMinutes();(ta=Math.min(ta,ts))===ts&&(ti=Math.min(tc,ti)),ta===ts&&ti===tc&&(tr=tt.maxDate.getSeconds())}return{hours:ta,minutes:ti,seconds:tr}}function tw(tf,t_){var tv={config:tt(tt({},tr),tI.defaultConfig),l10n:tn};function tw(){var tt;return(null===(tt=tv.calendarContainer)||void 0===tt?void 0:tt.getRootNode()).activeElement||document.activeElement}function tk(tt){return tt.bind(tv)}function tB(){var tt=tv.config;!1===tt.weekNumbers&&1===tt.showMonths||!0!==tt.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==tv.calendarContainer&&(tv.calendarContainer.style.visibility="hidden",tv.calendarContainer.style.display="block"),void 0!==tv.daysContainer){var ta=(tv.days.offsetWidth+1)*tt.showMonths;tv.daysContainer.style.width=ta+"px",tv.calendarContainer.style.width=ta+(void 0!==tv.weekWrapper?tv.weekWrapper.offsetWidth:0)+"px",tv.calendarContainer.style.removeProperty("visibility"),tv.calendarContainer.style.removeProperty("display")}})}function tJ(tt){if(0===tv.selectedDates.length){var ta=void 0===tv.config.minDate||tO(new Date,tv.config.minDate)>=0?new Date:new Date(tv.config.minDate.getTime()),ti=tN(tv.config);ta.setHours(ti.hours,ti.minutes,ti.seconds,ta.getMilliseconds()),tv.selectedDates=[ta],tv.latestSelectedDateObj=ta}void 0!==tt&&"blur"!==tt.type&&function(tt){tt.preventDefault();var ta="keydown"===tt.type,ti=th(tt),tr=ti;void 0!==tv.amPM&&ti===tv.amPM&&(tv.amPM.textContent=tv.l10n.amPM[tl(tv.amPM.textContent===tv.l10n.amPM[0])]);var tn=parseFloat(tr.getAttribute("min")),ts=parseFloat(tr.getAttribute("max")),tc=parseFloat(tr.getAttribute("step")),td=parseInt(tr.value,10),tu=td+tc*(tt.delta||(ta?38===tt.which?1:-1:0));if(void 0!==tr.value&&2===tr.value.length){var tg=tr===tv.hourElement,tp=tr===tv.minuteElement;tu<tn?(tu=ts+tu+tl(!tg)+(tl(tg)&&tl(!tv.amPM)),tp&&tT(void 0,-1,tv.hourElement)):tu>ts&&(tu=tr===tv.hourElement?tu-ts-tl(!tv.amPM):tn,tp&&tT(void 0,1,tv.hourElement)),tv.amPM&&tg&&(1===tc?tu+td===23:Math.abs(tu-td)>tc)&&(tv.amPM.textContent=tv.l10n.amPM[tl(tv.amPM.textContent===tv.l10n.amPM[0])]),tr.value=to(tu)}}(tt);var tr=tv._input.value;tL(),eb(),tv._input.value!==tr&&tv._debouncedChange()}function tL(){if(void 0!==tv.hourElement&&void 0!==tv.minuteElement){var tt=(parseInt(tv.hourElement.value.slice(-2),10)||0)%24,ta=(parseInt(tv.minuteElement.value,10)||0)%60,ti=void 0!==tv.secondElement?(parseInt(tv.secondElement.value,10)||0)%60:0;void 0!==tv.amPM&&(tt=tt%12+12*tl(tv.amPM.textContent===tv.l10n.amPM[1]));var tr=void 0!==tv.config.minTime||tv.config.minDate&&tv.minDateHasTime&&tv.latestSelectedDateObj&&0===tO(tv.latestSelectedDateObj,tv.config.minDate,!0),tn=void 0!==tv.config.maxTime||tv.config.maxDate&&tv.maxDateHasTime&&tv.latestSelectedDateObj&&0===tO(tv.latestSelectedDateObj,tv.config.maxDate,!0);if(void 0!==tv.config.maxTime&&void 0!==tv.config.minTime&&tv.config.minTime>tv.config.maxTime){var to=tA(tv.config.minTime.getHours(),tv.config.minTime.getMinutes(),tv.config.minTime.getSeconds()),ts=tA(tv.config.maxTime.getHours(),tv.config.maxTime.getMinutes(),tv.config.maxTime.getSeconds()),tc=tA(tt,ta,ti);if(tc>ts&&tc<to){var td=function(tt){var ta=Math.floor(tt/3600),ti=(tt-3600*ta)/60;return[ta,ti,tt-3600*ta-60*ti]}(to);tt=td[0],ta=td[1],ti=td[2]}}else{if(tn){var tu=void 0!==tv.config.maxTime?tv.config.maxTime:tv.config.maxDate;(tt=Math.min(tt,tu.getHours()))===tu.getHours()&&(ta=Math.min(ta,tu.getMinutes())),ta===tu.getMinutes()&&(ti=Math.min(ti,tu.getSeconds()))}if(tr){var tg=void 0!==tv.config.minTime?tv.config.minTime:tv.config.minDate;(tt=Math.max(tt,tg.getHours()))===tg.getHours()&&ta<tg.getMinutes()&&(ta=tg.getMinutes()),ta===tg.getMinutes()&&(ti=Math.max(ti,tg.getSeconds()))}}
vendor: 13,316 bytes, line 1
1tD(tt,ta,ti)}}function tZ(tt){var ta=tt||tv.latestSelectedDateObj;ta&&ta instanceof Date&&tD(ta.getHours(),ta.getMinutes(),ta.getSeconds())}function tD(tt,ta,ti){void 0!==tv.latestSelectedDateObj&&tv.latestSelectedDateObj.setHours(tt%24,ta,ti||0,0),tv.hourElement&&tv.minuteElement&&!tv.isMobile&&(tv.hourElement.value=to(tv.config.time_24hr?tt:(12+tt)%12+12*tl(tt%12==0)),tv.minuteElement.value=to(ta),void 0!==tv.amPM&&(tv.amPM.textContent=tv.l10n.amPM[tl(tt>=12)]),void 0!==tv.secondElement&&(tv.secondElement.value=to(ti)))}function tC(tt){var ta=parseInt(th(tt).value)+(tt.delta||0);(ta/1e3>1||"Enter"===tt.key&&!/[^\d]/.test(ta.toString()))&&t1(ta)}function tM(tt,ta,ti,tr){return ta instanceof Array?ta.forEach(function(ta){return tM(tt,ta,ti,tr)}):tt instanceof Array?tt.forEach(function(tt){return tM(tt,ta,ti,tr)}):(tt.addEventListener(ta,ti,tr),void tv._handlers.push({remove:function(){return tt.removeEventListener(ta,ti,tr)}}))}function tq(){eg("onChange")}function tF(tt,ta){var ti=void 0!==tt?tv.parseDate(tt):tv.latestSelectedDateObj||(tv.config.minDate&&tv.config.minDate>tv.now?tv.config.minDate:tv.config.maxDate&&tv.config.maxDate<tv.now?tv.config.maxDate:tv.now),tr=tv.currentYear,tn=tv.currentMonth;try{void 0!==ti&&(tv.currentYear=ti.getFullYear(),tv.currentMonth=ti.getMonth())}catch(tt){tt.message="Invalid date supplied: "+ti,tv.config.errorHandler(tt)}ta&&tv.currentYear!==tr&&(eg("onYearChange"),tU()),ta&&(tv.currentYear!==tr||tv.currentMonth!==tn)&&eg("onMonthChange"),tv.redraw()}function tP(tt){var ta=th(tt);~ta.className.indexOf("arrow")&&tT(tt,ta.classList.contains("arrowUp")?1:-1)}function tT(tt,ta,ti){var tr=tt&&th(tt),tn=ti||tr&&tr.parentNode&&tr.parentNode.firstChild,to=ep("increment");to.delta=ta,tn&&tn.dispatchEvent(to)}function tH(tt,ta,ti,tr){var tn=t2(ta,!0),to=tu("span",tt,ta.getDate().toString());return to.dateObj=ta,to.$i=tr,to.setAttribute("aria-label",tv.formatDate(ta,tv.config.ariaDateFormat)),-1===tt.indexOf("hidden")&&0===tO(ta,tv.now)&&(tv.todayDateElem=to,to.classList.add("today"),to.setAttribute("aria-current","date")),tn?(to.tabIndex=-1,em(ta)&&(to.classList.add("selected"),tv.selectedDateElem=to,"range"===tv.config.mode&&(td(to,"startRange",tv.selectedDates[0]&&0===tO(ta,tv.selectedDates[0],!0)),td(to,"endRange",tv.selectedDates[1]&&0===tO(ta,tv.selectedDates[1],!0)),"nextMonthDay"===tt&&to.classList.add("inRange")))):to.classList.add("flatpickr-disabled"),"range"===tv.config.mode&&function(tt){return!("range"!==tv.config.mode||tv.selectedDates.length<2)&&tO(tt,tv.selectedDates[0])>=0&&0>=tO(tt,tv.selectedDates[1])}(ta)&&!em(ta)&&to.classList.add("inRange"),tv.weekNumbers&&1===tv.config.showMonths&&"prevMonthDay"!==tt&&tr%7==6&&tv.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+tv.config.getWeek(ta)+"</span>"),eg("onDayCreate",to),to}function tj(tt){tt.focus(),"range"===tv.config.mode&&t3(tt)}function tG(tt){for(var ta=tt>0?0:tv.config.showMonths-1,ti=tt>0?tv.config.showMonths:-1,tr=ta;tr!=ti;tr+=tt)for(var tn=tv.daysContainer.children[tr],to=tt>0?0:tn.children.length-1,tl=tt>0?tn.children.length:-1,ts=to;ts!=tl;ts+=tt){var tc=tn.children[ts];if(-1===tc.className.indexOf("hidden")&&t2(tc.dateObj))return tc}}function tz(tt,ta){var ti=tw(),tr=t4(ti||document.body),tn=void 0!==tt?tt:tr?ti:void 0!==tv.selectedDateElem&&t4(tv.selectedDateElem)?tv.selectedDateElem:void 0!==tv.todayDateElem&&t4(tv.todayDateElem)?tv.todayDateElem:tG(ta>0?1:-1);void 0===tn?tv._input.focus():tr?function(tt,ta){for(var ti=-1===tt.className.indexOf("Month")?tt.dateObj.getMonth():tv.currentMonth,tr=ta>0?tv.config.showMonths:-1,tn=ta>0?1:-1,to=ti-tv.currentMonth;to!=tr;to+=tn)for(var tl=tv.daysContainer.children[to],ts=ti-tv.currentMonth===to?tt.$i+ta:ta<0?tl.children.length-1:0,tc=tl.children.length,td=ts;td>=0&&td<tc&&td!=(ta>0?tc:-1);td+=tn){var tu=tl.children[td];if(-1===tu.className.indexOf("hidden")&&t2(tu.dateObj)&&Math.abs(tt.$i-td)>=Math.abs(ta))return tj(tu)}tv.changeMonth(tn),tz(tG(tn),0)}(tn,ta):tj(tn)}function tR(tt,ta){for(var ti=(new Date(tt,ta,1).getDay()-tv.l10n.firstDayOfWeek+7)%7,tr=tv.utils.getDaysInMonth((ta-1+12)%12,tt),tn=tv.utils.getDaysInMonth(ta,tt),to=window.document.createDocumentFragment(),tl=tv.config.showMonths>1,ts=tl?"prevMonthDay hidden":"prevMonthDay",tc=tl?"nextMonthDay hidden":"nextMonthDay",td=tr+1-ti,tg=0;td<=tr;td++,tg++)to.appendChild(tH("flatpickr-day "+ts,new Date(tt,ta-1,td),0,tg));for(td=1;td<=tn;td++,tg++)to.appendChild(tH("flatpickr-day",new Date(tt,ta,td),0,tg));for(var tp=tn+1;tp<=42-ti&&(1===tv.config.showMonths||tg%7!=0);tp++,tg++)to.appendChild(tH("flatpickr-day "+tc,new Date(tt,ta+1,tp%tn),0,tg));var tm=tu("div","dayContainer");return tm.appendChild(to),tm}function tW(){if(void 0!==tv.daysContainer){tg(tv.daysContainer),tv.weekNumbers&&tg(tv.weekNumbers);for(var tt=document.createDocumentFragment(),ta=0;ta<tv.config.showMonths;ta++){var ti=new Date(tv.currentYear,tv.currentMonth,1);ti.setMonth(tv.currentMonth+ta),tt.appendChild(tR(ti.getFullYear(),ti.getMonth()))}tv.daysContainer.appendChild(tt),tv.days=tv.daysContainer.firstChild,"range"===tv.config.mode&&1===tv.selectedDates.length&&t3()}}function tU(){if(!(tv.config.showMonths>1||"dropdown"!==tv.config.monthSelectorType)){var tt=function(tt){return!(void 0!==tv.config.minDate&&tv.currentYear===tv.config.minDate.getFullYear()&&tt<tv.config.minDate.getMonth())&&!(void 0!==tv.config.maxDate&&tv.currentYear===tv.config.maxDate.getFullYear()&&tt>tv.config.maxDate.getMonth())};tv.monthsDropdownContainer.tabIndex=-1,tv.monthsDropdownContainer.innerHTML="";for(var ta=0;ta<12;ta++)if(tt(ta)){var ti=tu("option","flatpickr-monthDropdown-month");ti.value=new Date(tv.currentYear,ta).getMonth().toString(),ti.textContent=tb(ta,tv.config.shorthandCurrentMonth,tv.l10n),ti.tabIndex=-1,tv.currentMonth===ta&&(ti.selected=!0),tv.monthsDropdownContainer.appendChild(ti)}}}function tY(){var tt,ta=tu("div","flatpickr-month"),ti=window.document.createDocumentFragment();tv.config.showMonths>1||"static"===tv.config.monthSelectorType?tt=tu("span","cur-month"):(tv.monthsDropdownContainer=tu("select","flatpickr-monthDropdown-months"),tv.monthsDropdownContainer.setAttribute("aria-label",tv.l10n.monthAriaLabel),tM(tv.monthsDropdownContainer,"change",function(tt){var ta=parseInt(th(tt).value,10);tv.changeMonth(ta-tv.currentMonth),eg("onMonthChange")}),tU(),tt=tv.monthsDropdownContainer);var tr=tm("cur-year",{tabindex:"-1"}),tn=tr.getElementsByTagName("input")[0];tn.setAttribute("aria-label",tv.l10n.yearAriaLabel),tv.config.minDate&&tn.setAttribute("min",tv.config.minDate.getFullYear().toString()),tv.config.maxDate&&(tn.setAttribute("max",tv.config.maxDate.getFullYear().toString()),tn.disabled=!!tv.config.minDate&&tv.config.minDate.getFullYear()===tv.config.maxDate.getFullYear());var to=tu("div","flatpickr-current-month");return to.appendChild(tt),to.appendChild(tr),ti.appendChild(to),ta.appendChild(ti),{container:ta,yearElement:tn,monthElement:tt}}function tQ(){tg(tv.monthNav),tv.monthNav.appendChild(tv.prevMonthNav),tv.config.showMonths&&(tv.yearElements=[],tv.monthElements=[]);for(var tt=tv.config.showMonths;tt--;){var ta=tY();tv.yearElements.push(ta.yearElement),tv.monthElements.push(ta.monthElement),tv.monthNav.appendChild(ta.container)}tv.monthNav.appendChild(tv.nextMonthNav)}function tV(){tv.weekdayContainer?tg(tv.weekdayContainer):tv.weekdayContainer=tu("div","flatpickr-weekdays");for(var tt=tv.config.showMonths;tt--;){var ta=tu("div","flatpickr-weekdaycontainer");tv.weekdayContainer.appendChild(ta)}return t$(),tv.weekdayContainer}function t$(){if(tv.weekdayContainer){var tt=tv.l10n.firstDayOfWeek,ti=ta(tv.l10n.weekdays.shorthand);tt>0&&tt<ti.length&&(ti=ta(ti.splice(tt,ti.length),ti.splice(0,tt)));for(var tr=tv.config.showMonths;tr--;)tv.weekdayContainer.children[tr].innerHTML="\n <span class='flatpickr-weekday'>\n "+ti.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function tK(tt,ta){void 0===ta&&(ta=!0);var ti=ta?tt:tt-tv.currentMonth;ti<0&&!0===tv._hidePrevMonthArrow||ti>0&&!0===tv._hideNextMonthArrow||(tv.currentMonth+=ti,(tv.currentMonth<0||tv.currentMonth>11)&&(tv.currentYear+=tv.currentMonth>11?1:-1,tv.currentMonth=(tv.currentMonth+12)%12,eg("onYearChange"),tU()),tW(),eg("onMonthChange"),eh())}function tX(tt){return tv.calendarContainer.contains(tt)}function t0(tt){if(tv.isOpen&&!tv.config.inline){var ta=th(tt),ti=tX(ta),tr=!(ta===tv.input||ta===tv.altInput||tv.element.contains(ta)||tt.path&&tt.path.indexOf&&(~tt.path.indexOf(tv.input)||~tt.path.indexOf(tv.altInput)))&&!ti&&!tX(tt.relatedTarget),tn=!tv.config.ignoredFocusElements.some(function(tt){return tt.contains(ta)});tr&&tn&&(tv.config.allowInput&&tv.setDate(tv._input.value,!1,tv.config.altInput?tv.config.altFormat:tv.config.dateFormat),void 0!==tv.timeContainer&&void 0!==tv.minuteElement&&void 0!==tv.hourElement&&""!==tv.input.value&&void 0!==tv.input.value&&tJ(),tv.close(),tv.config&&"range"===tv.config.mode&&1===tv.selectedDates.length&&tv.clear(!1))}}function t1(tt){if(!(!tt||tv.config.minDate&&tt<tv.config.minDate.getFullYear()||tv.config.maxDate&&tt>tv.config.maxDate.getFullYear())){var ta=tt,ti=tv.currentYear!==ta;tv.currentYear=ta||tv.currentYear,tv.config.maxDate&&tv.currentYear===tv.config.maxDate.getFullYear()?tv.currentMonth=Math.min(tv.config.maxDate.getMonth(),tv.currentMonth):tv.config.minDate&&tv.currentYear===tv.config.minDate.getFullYear()&&(tv.currentMonth=Math.max(tv.config.minDate.getMonth(),tv.currentMonth)),ti&&(tv.redraw(),eg("onYearChange"),tU())}}function t2(tt,ta){void 0===ta&&(ta=!0);var ti,tr=tv.parseDate(tt,void 0,ta);if(tv.config.minDate&&tr&&0>tO(tr,tv.config.minDate,void 0!==ta?ta:!tv.minDateHasTime)||tv.config.maxDate&&tr&&tO(tr,tv.config.maxDate,void 0!==ta?ta:!tv.maxDateHasTime)>0)return!1;if(!tv.config.enable&&0===tv.config.disable.length)return!0;if(void 0===tr)return!1;for(var tn=!!tv.config.enable,to=null!==(ti=tv.config.enable)&&void 0!==ti?ti:tv.config.disable,tl=0,ts=void 0;tl<to.length;tl++){if("function"==typeof(ts=to[tl])&&ts(tr)||ts instanceof Date&&void 0!==tr&&ts.getTime()===tr.getTime())return tn;if("string"==typeof ts){var tc=tv.parseDate(ts,void 0,!0);return tc&&tc.getTime()===tr.getTime()?tn:!tn}if("object"==typeof ts&&void 0!==tr&&ts.from&&ts.to&&tr.getTime()>=ts.from.getTime()&&tr.getTime()<=ts.to.getTime())return tn}return!tn}function t4(tt){return void 0!==tv.daysContainer&&-1===tt.className.indexOf("hidden")&&-1===tt.className.indexOf("flatpickr-disabled")&&tv.daysContainer.contains(tt)}function t5(tt){var ta=tt.target===tv._input,ti=tv._input.value.trimEnd()!==ef();!ta||!ti||tt.relatedTarget&&tX(tt.relatedTarget)||tv.setDate(tv._input.value,!0,tt.target===tv.altInput?tv.config.altFormat:tv.config.dateFormat)}function t6(tt){var ta=th(tt),ti=tv.config.wrap?tf.contains(ta):ta===tv._input,tr=tv.config.allowInput,tn=tv.isOpen&&(!tr||!ti),to=tv.config.inline&&ti&&!tr;if(13===tt.keyCode&&ti){if(tr)return tv.setDate(tv._input.value,!0,ta===tv.altInput?tv.config.altFormat:tv.config.dateFormat),tv.close(),ta.blur();tv.open()}else if(tX(ta)||tn||to){var tl=!!tv.timeContainer&&tv.timeContainer.contains(ta);switch(tt.keyCode){case 13:tl?(tt.preventDefault(),tJ(),en()):eo(tt);break;case 27:tt.preventDefault(),en();break;case 8:case 46:ti&&!tv.config.allowInput&&(tt.preventDefault(),tv.clear());break;case 37:case 39:if(tl||ti)tv.hourElement&&tv.hourElement.focus();else{tt.preventDefault();var ts=tw();if(void 0!==tv.daysContainer&&(!1===tr||ts&&t4(ts))){var tc=39===tt.keyCode?1:-1;tt.ctrlKey?(tt.stopPropagation(),tK(tc),tz(tG(1),0)):tz(void 0,tc)}}break;case 38:case 40:tt.preventDefault();var td=40===tt.keyCode?1:-1;tv.daysContainer&&void 0!==ta.$i||ta===tv.input||ta===tv.altInput?tt.ctrlKey?(tt.stopPropagation(),t1(tv.currentYear-td),tz(tG(1),0)):tl||tz(void 0,7*td):ta===tv.currentYearElement?t1(tv.currentYear-td):tv.config.enableTime&&(!tl&&tv.hourElement&&tv.hourElement.focus(),tJ(tt),tv._debouncedChange());break;case 9:if(tl){var tu=[tv.hourElement,tv.minuteElement,tv.secondElement,tv.amPM].concat(tv.pluginElements).filter(function(tt){return tt}),tg=tu.indexOf(ta);if(-1!==tg){var tp=tu[tg+(tt.shiftKey?-1:1)];tt.preventDefault(),(tp||tv._input).focus()}}else!tv.config.noCalendar&&tv.daysContainer&&tv.daysContainer.contains(ta)&&tt.shiftKey&&(tt.preventDefault(),tv._input.focus())}}if(void 0!==tv.amPM&&ta===tv.amPM)switch(tt.key){case tv.l10n.amPM[0].charAt(0):case tv.l10n.amPM[0].charAt(0).toLowerCase():tv.amPM.textContent=tv.l10n.amPM[0],tL(),eb();break;case tv.l10n.amPM[1].charAt(0):case tv.l10n.amPM[1].charAt(0).toLowerCase():tv.amPM.textContent=tv.l10n.amPM[1],tL(),eb()}(ti||tX(ta))&&eg("onKeyDown",tt)}function t3(tt,ta){if(void 0===ta&&(ta="flatpickr-day"),1===tv.selectedDates.length&&(!tt||tt.classList.contains(ta)&&!tt.classList.contains("flatpickr-disabled"))){for(var ti=tt?tt.dateObj.getTime():tv.days.firstElementChild.dateObj.getTime(),tr=tv.parseDate(tv.selectedDates[0],void 0,!0).getTime(),tn=Math.min(ti,tv.selectedDates[0].getTime()),to=Math.max(ti,tv.selectedDates[0].getTime()),tl=!1,ts=0,tc=0,td=tn;td<to;td+=tE)t2(new Date(td),!0)||(tl=tl||td>tn&&td<to,td<tr&&(!ts||td>ts)?ts=td:td>tr&&(!tc||td<tc)&&(tc=td));Array.from(tv.rContainer.querySelectorAll("*:nth-child(-n+"+tv.config.showMonths+") >
1 ."+ta)).forEach(function(ta){var tn,to,td,tu=ta.dateObj.getTime(),tg=ts>0&&tu<ts||tc>0&&tu>tc;if(tg)return ta.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(tt){ta.classList.remove(tt)});tl&&!tg||(["startRange","inRange","endRange","notAllowed"].forEach(function(tt){ta.classList.remove(tt)}),void 0!==tt&&(tt.classList.add(ti<=tv.selectedDates[0].getTime()?"startRange":"endRange"),tr<ti&&tu===tr?ta.classList.add("startRange"):tr>ti&&tu===tr&&ta.classList.add("endRange"),tu>=ts&&(0===tc||tu<=tc)&&(to=tr,td=ti,(tn=tu)>Math.min(to,td)&&tn<Math.max(to,td))&&ta.classList.add("inRange")))})}}function t8(){!tv.isOpen||tv.config.static||tv.config.inline||ei()}function t7(tt){return function(ta){var ti=tv.config["_"+tt+"Date"]=tv.parseDate(ta,tv.config.dateFormat),tr=tv.config["_"+("min"===tt?"max":"min")+"Date"];void 0!==ti&&(tv["min"===tt?"minDateHasTime":"maxDateHasTime"]=ti.getHours()>0||ti.getMinutes()>0||ti.getSeconds()>0),tv.selectedDates&&(tv.selectedDates=tv.selectedDates.filter(function(tt){return t2(tt)}),tv.selectedDates.length||"min"!==tt||tZ(ti),eb()),tv.daysContainer&&(er(),void 0!==ti?tv.currentYearElement[tt]=ti.getFullYear().toString():tv.currentYearElement.removeAttribute(tt),tv.currentYearElement.disabled=!!tr&&void 0!==ti&&tr.getFullYear()===ti.getFullYear())}}function t9(){return tv.config.wrap?tf.querySelector("[data-input]"):tf}function et(){"object"!=typeof tv.config.locale&&void 0===tI.l10ns[tv.config.locale]&&tv.config.errorHandler(Error("flatpickr: invalid locale "+tv.config.locale)),tv.l10n=tt(tt({},tI.l10ns.default),"object"==typeof tv.config.locale?tv.config.locale:"default"!==tv.config.locale?tI.l10ns[tv.config.locale]:void 0),ty.D="("+tv.l10n.weekdays.shorthand.join("|")+")",ty.l="("+tv.l10n.weekdays.longhand.join("|")+")",ty.M="("+tv.l10n.months.shorthand.join("|")+")",ty.F="("+tv.l10n.months.longhand.join("|")+")",ty.K="("+tv.l10n.amPM[0]+"|"+tv.l10n.amPM[1]+"|"+tv.l10n.amPM[0].toLowerCase()+"|"+tv.l10n.amPM[1].toLowerCase()+")",void 0===tt(tt({},t_),JSON.parse(JSON.stringify(tf.dataset||{}))).time_24hr&&void 0===tI.defaultConfig.time_24hr&&(tv.config.time_24hr=tv.l10n.time_24hr),tv.formatDate=tx(tv),tv.parseDate=tS({config:tv.config,l10n:tv.l10n})}function ei(tt){if("function"!=typeof tv.config.position){if(void 0!==tv.calendarContainer){eg("onPreCalendarPosition");var ta=tt||tv._positionElement,ti=Array.prototype.reduce.call(tv.calendarContainer.children,function(tt,ta){return tt+ta.offsetHeight},0),tr=tv.calendarContainer.offsetWidth,tn=tv.config.position.split(" "),to=tn[0],tl=tn.length>1?tn[1]:null,ts=ta.getBoundingClientRect(),tc=window.innerHeight-ts.bottom,tu="above"===to||"below"!==to&&tc<ti&&ts.top>ti,tg=window.pageYOffset+ts.top+(tu?-ti-2:ta.offsetHeight+2);if(td(tv.calendarContainer,"arrowTop",!tu),td(tv.calendarContainer,"arrowBottom",tu),!tv.config.inline){var tp=window.pageXOffset+ts.left,tm=!1,th=!1;"center"===tl?(tp-=(tr-ts.width)/2,tm=!0):"right"===tl&&(tp-=tr-ts.width,th=!0),td(tv.calendarContainer,"arrowLeft",!tm&&!th),td(tv.calendarContainer,"arrowCenter",tm),td(tv.calendarContainer,"arrowRight",th);var tf=window.document.body.offsetWidth-(window.pageXOffset+ts.right),tb=tp+tr>window.document.body.offsetWidth,t_=tf+tr>window.document.body.offsetWidth;if(td(tv.calendarContainer,"rightMost",tb),!tv.config.static){if(tv.calendarContainer.style.top=tg+"px",tb){if(t_){var ty=function(){for(var tt,ta=null,ti=0;ti<document.styleSheets.length;ti++){var tr=document.styleSheets[ti];if(tr.cssRules){try{tr.cssRules}catch(tt){continue}ta=tr;break}}return null!=ta?ta:(tt=document.createElement("style"),document.head.appendChild(tt),tt.sheet)}();if(void 0===ty)return;var tx=Math.max(0,window.document.body.offsetWidth/2-tr/2),tS=ty.cssRules.length,tO="{left:"+ts.left+"px;right:auto;}";td(tv.calendarContainer,"rightMost",!1),td(tv.calendarContainer,"centerMost",!0),ty.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+tO,tS),tv.calendarContainer.style.left=tx+"px",tv.calendarContainer.style.right="auto"}else tv.calendarContainer.style.left="auto",tv.calendarContainer.style.right=tf+"px"}else tv.calendarContainer.style.left=tp+"px",tv.calendarContainer.style.right="auto"}}}}else tv.config.position(tv,tt)}function er(){tv.config.noCalendar||tv.isMobile||(tU(),eh(),tW())}function en(){tv._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(tv.close,0):tv.close()}function eo(tt){tt.preventDefault(),tt.stopPropagation();var ta=tp(th(tt),function(tt){return tt.classList&&tt.classList.contains("flatpickr-day")&&!tt.classList.contains("flatpickr-disabled")&&!tt.classList.contains("notAllowed")});if(void 0!==ta){var ti=ta,tr=tv.latestSelectedDateObj=new Date(ti.dateObj.getTime()),tn=(tr.getMonth()<tv.currentMonth||tr.getMonth()>tv.currentMonth+tv.config.showMonths-1)&&"range"!==tv.config.mode;if(tv.selectedDateElem=ti,"single"===tv.config.mode)tv.selectedDates=[tr];else if("multiple"===tv.config.mode){var to=em(tr);
vendor: 4,226 bytes, line 1
1to?tv.selectedDates.splice(parseInt(to),1):tv.selectedDates.push(tr)}else"range"===tv.config.mode&&(2===tv.selectedDates.length&&tv.clear(!1,!1),tv.latestSelectedDateObj=tr,tv.selectedDates.push(tr),0!==tO(tr,tv.selectedDates[0],!0)&&tv.selectedDates.sort(function(tt,ta){return tt.getTime()-ta.getTime()}));if(tL(),tn){var tl=tv.currentYear!==tr.getFullYear();tv.currentYear=tr.getFullYear(),tv.currentMonth=tr.getMonth(),tl&&(eg("onYearChange"),tU()),eg("onMonthChange")}eh(),tW(),eb(),tn||"range"===tv.config.mode||1!==tv.config.showMonths?void 0!==tv.selectedDateElem&&void 0===tv.hourElement&&tv.selectedDateElem&&tv.selectedDateElem.focus():tj(ti),void 0!==tv.hourElement&&void 0!==tv.hourElement&&tv.hourElement.focus(),tv.config.closeOnSelect&&("single"===tv.config.mode&&!tv.config.enableTime||"range"===tv.config.mode&&2===tv.selectedDates.length&&!tv.config.enableTime)&&en(),tq()}}tv.parseDate=tS({config:tv.config,l10n:tv.l10n}),tv._handlers=[],tv.pluginElements=[],tv.loadedPlugins=[],tv._bind=tM,tv._setHoursFromDate=tZ,tv._positionCalendar=ei,tv.changeMonth=tK,tv.changeYear=t1,tv.clear=function(tt,ta){if(void 0===tt&&(tt=!0),void 0===ta&&(ta=!0),tv.input.value="",void 0!==tv.altInput&&(tv.altInput.value=""),void 0!==tv.mobileInput&&(tv.mobileInput.value=""),tv.selectedDates=[],tv.latestSelectedDateObj=void 0,!0===ta&&(tv.currentYear=tv._initialDate.getFullYear(),tv.currentMonth=tv._initialDate.getMonth()),!0===tv.config.enableTime){var ti=tN(tv.config);tD(ti.hours,ti.minutes,ti.seconds)}tv.redraw(),tt&&eg("onChange")},tv.close=function(){tv.isOpen=!1,tv.isMobile||(void 0!==tv.calendarContainer&&tv.calendarContainer.classList.remove("open"),void 0!==tv._input&&tv._input.classList.remove("active")),eg("onClose")},tv.onMouseOver=t3,tv._createElement=tu,tv.createDay=tH,tv.destroy=function(){void 0!==tv.config&&eg("onDestroy");for(var tt=tv._handlers.length;tt--;)tv._handlers[tt].remove();if(tv._handlers=[],tv.mobileInput)tv.mobileInput.parentNode&&tv.mobileInput.parentNode.removeChild(tv.mobileInput),tv.mobileInput=void 0;else if(tv.calendarContainer&&tv.calendarContainer.parentNode){if(tv.config.static&&tv.calendarContainer.parentNode){var ta=tv.calendarContainer.parentNode;if(ta.lastChild&&ta.removeChild(ta.lastChild),ta.parentNode){for(;ta.firstChild;)ta.parentNode.insertBefore(ta.firstChild,ta);ta.parentNode.removeChild(ta)}}else tv.calendarContainer.parentNode.removeChild(tv.calendarContainer)}tv.altInput&&(tv.input.type="text",tv.altInput.parentNode&&tv.altInput.parentNode.removeChild(tv.altInput),delete tv.altInput),tv.input&&(tv.input.type=tv.input._type,tv.input.classList.remove("flatpickr-input"),tv.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(tt){try{delete tv[tt]}catch(tt){}})},tv.isEnabled=t2,tv.jumpToDate=tF,tv.updateValue=eb,tv.open=function(tt,ta){if(void 0===ta&&(ta=tv._positionElement),!0===tv.isMobile){if(tt){tt.preventDefault();var ti=th(tt);ti&&ti.blur()}return void 0!==tv.mobileInput&&(tv.mobileInput.focus(),tv.mobileInput.click()),void eg("onOpen")}if(!tv._input.disabled&&!tv.config.inline){var tr=tv.isOpen;tv.isOpen=!0,tr||(tv.calendarContainer.classList.add("open"),tv._input.classList.add("active"),eg("onOpen"),ei(ta)),!0===tv.config.enableTime&&!0===tv.config.noCalendar&&(!1!==tv.config.allowInput||void 0!==tt&&tv.timeContainer.contains(tt.relatedTarget)||setTimeout(function(){return tv.hourElement.select()},50))}},tv.redraw=er,tv.set=function(tt,ta){if(null!==tt&&"object"==typeof tt)for(var tr in Object.assign(tv.config,tt),tt)void 0!==es[tr]&&es[tr].forEach(function(tt){return tt()});else tv.config[tt]=ta,void 0!==es[tt]?es[tt].forEach(function(tt){return tt()}):ti.indexOf(tt)>-1&&(tv.config[tt]=tc(ta));tv.redraw(),eb(!0)}
vendor: 6,000 bytes, line 1
1,tv.setDate=function(tt,ta,ti){if(void 0===ta&&(ta=!1),void 0===ti&&(ti=tv.config.dateFormat),0!==tt&&!tt||tt instanceof Array&&0===tt.length)return tv.clear(ta);ec(tt,ti),tv.latestSelectedDateObj=tv.selectedDates[tv.selectedDates.length-1],tv.redraw(),tF(void 0,ta),tZ(),0===tv.selectedDates.length&&tv.clear(!1),eb(ta),ta&&eg("onChange")},tv.toggle=function(tt){if(!0===tv.isOpen)return tv.close();tv.open(tt)};var es={locale:[et,t$],showMonths:[tQ,tB,tV],minDate:[tF],maxDate:[tF],positionElement:[eu],clickOpens:[function(){!0===tv.config.clickOpens?(tM(tv._input,"focus",tv.open),tM(tv._input,"click",tv.open)):(tv._input.removeEventListener("focus",tv.open),tv._input.removeEventListener("click",tv.open))}]};function ec(tt,ta){var ti=[];if(tt instanceof Array)ti=tt.map(function(tt){return tv.parseDate(tt,ta)});else if(tt instanceof Date||"number"==typeof tt)ti=[tv.parseDate(tt,ta)];else if("string"==typeof tt)switch(tv.config.mode){case"single":case"time":ti=[tv.parseDate(tt,ta)];break;case"multiple":ti=tt.split(tv.config.conjunction).map(function(tt){return tv.parseDate(tt,ta)});break;case"range":ti=tt.split(tv.l10n.rangeSeparator).map(function(tt){return tv.parseDate(tt,ta)})}else tv.config.errorHandler(Error("Invalid date supplied: "+JSON.stringify(tt)));tv.selectedDates=tv.config.allowInvalidPreload?ti:ti.filter(function(tt){return tt instanceof Date&&t2(tt,!1)}),"range"===tv.config.mode&&tv.selectedDates.sort(function(tt,ta){return tt.getTime()-ta.getTime()})}function ed(tt){return tt.slice().map(function(tt){return"string"==typeof tt||"number"==typeof tt||tt instanceof Date?tv.parseDate(tt,void 0,!0):tt&&"object"==typeof tt&&tt.from&&tt.to?{from:tv.parseDate(tt.from,void 0),to:tv.parseDate(tt.to,void 0)}:tt}).filter(function(tt){return tt})}function eu(){tv._positionElement=tv.config.positionElement||tv._input}function eg(tt,ta){if(void 0!==tv.config){var ti=tv.config[tt];if(void 0!==ti&&ti.length>0)for(var tr=0;ti[tr]&&tr<ti.length;tr++)ti[tr](tv.selectedDates,tv.input.value,tv,ta);"onChange"===tt&&(tv.input.dispatchEvent(ep("change")),tv.input.dispatchEvent(ep("input")))}}function ep(tt){var ta=document.createEvent("Event");return ta.initEvent(tt,!0,!0),ta}function em(tt){for(var ta=0;ta<tv.selectedDates.length;ta++){var ti=tv.selectedDates[ta];if(ti instanceof Date&&0===tO(ti,tt))return""+ta}return!1}function eh(){tv.config.noCalendar||tv.isMobile||!tv.monthNav||(tv.yearElements.forEach(function(tt,ta){var ti=new Date(tv.currentYear,tv.currentMonth,1);ti.setMonth(tv.currentMonth+ta),tv.config.showMonths>1||"static"===tv.config.monthSelectorType?tv.monthElements[ta].textContent=tb(ti.getMonth(),tv.config.shorthandCurrentMonth,tv.l10n)+" ":tv.monthsDropdownContainer.value=ti.getMonth().toString(),tt.value=ti.getFullYear().toString()}),tv._hidePrevMonthArrow=void 0!==tv.config.minDate&&(tv.currentYear===tv.config.minDate.getFullYear()?tv.currentMonth<=tv.config.minDate.getMonth():tv.currentYear<tv.config.minDate.getFullYear()),tv._hideNextMonthArrow=void 0!==tv.config.maxDate&&(tv.currentYear===tv.config.maxDate.getFullYear()?tv.currentMonth+1>tv.config.maxDate.getMonth():tv.currentYear>tv.config.maxDate.getFullYear()))}function ef(tt){var ta=tt||(tv.config.altInput?tv.config.altFormat:tv.config.dateFormat);return tv.selectedDates.map(function(tt){return tv.formatDate(tt,ta)}).filter(function(tt,ta,ti){return"range"!==tv.config.mode||tv.config.enableTime||ti.indexOf(tt)===ta}).join("range"!==tv.config.mode?tv.config.conjunction:tv.l10n.rangeSeparator)}function eb(tt){void 0===tt&&(tt=!0),void 0!==tv.mobileInput&&tv.mobileFormatStr&&(tv.mobileInput.value=void 0!==tv.latestSelectedDateObj?tv.formatDate(tv.latestSelectedDateObj,tv.mobileFormatStr):""),tv.input.value=ef(tv.config.dateFormat),void 0!==tv.altInput&&(tv.altInput.value=ef(tv.config.altFormat)),!1!==tt&&eg("onValueUpdate")}function e_(tt){var ta=th(tt),ti=tv.prevMonthNav.contains(ta),tr=tv.nextMonthNav.contains(ta);ti||tr?tK(ti?-1:1):tv.yearElements.indexOf(ta)>=0?ta.select():ta.classList.contains("arrowUp")?tv.changeYear(tv.currentYear+1):ta.classList.contains("arrowDown")&&tv.changeYear(tv.currentYear-1)}return function(){tv.element=tv.input=tf,tv.isOpen=!1,function(){var ta=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],tn=tt(tt({},JSON.parse(JSON.stringify(tf.dataset||{}))),t_),to={};tv.config.parseDate=tn.parseDate,tv.config.formatDate=tn.formatDate,Object.defineProperty(tv.config,"enable",{get:function(){return tv.config._enable},set:function(tt){tv.config._enable=ed(tt)}}),Object.defineProperty(tv.config,"disable",{get:function(){return tv.config._disable},set:function(tt){tv.config._disable=ed(tt)}});var tl="time"===tn.mode;if(!tn.dateFormat&&(tn.enableTime||tl)){var ts=tI.defaultConfig.dateFormat||tr.dateFormat;to.dateFormat=tn.noCalendar||tl?"H:i"+(tn.enableSeconds?":S":""):ts+" H:i"+(tn.enableSeconds?":S":"")}if(tn.altInput&&(tn.enableTime||tl)&&!tn.altFormat){var td=tI.defaultConfig.altFormat||tr.altFormat;to.altFormat=tn.noCalendar||tl?"h:i"+(tn.enableSeconds?":S K":" K"):td+" h:i"+(tn.enableSeconds?":S":"")+" K"}Object.defineProperty(tv.config,"minDate",{get:function(){return tv.config._minDate},set:t7("min")}),Object.defineProperty(tv.config,"maxDate",{get:function(){return tv.config._maxDate},set:t7("max")});var tu=function(tt){return function(ta){tv.config["min"===tt?"_minTime":"_maxTime"]=tv.parseDate(ta,"H:i:S")}};Object.defineProperty(tv.config,"minTime",{get:function(){return tv.config._minTime},set:tu("min")}),Object.defineProperty(tv.config,"maxTime",{get:function(){return tv.config._maxTime},set:tu("max")}),"time"===tn.mode&&(tv.config.noCalendar=!0,tv.config.enableTime=!0),Object.assign(tv.config,to,tn);for(var tg=0;tg<ta.length;tg++)tv.config[ta[tg]]=!0===tv.config[ta[tg]]||"true"===tv.config[ta[tg]];for(ti.filter(function(tt){return void 0!==tv.config[tt]}
vendor: 8,219 bytes, line 1
1).forEach(function(tt){tv.config[tt]=tc(tv.config[tt]||[]).map(tk)}),tv.isMobile=!tv.config.disableMobile&&!tv.config.inline&&"single"===tv.config.mode&&!tv.config.disable.length&&!tv.config.enable&&!tv.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),tg=0;tg<tv.config.plugins.length;tg++){var tp=tv.config.plugins[tg](tv)||{};for(var tm in tp)ti.indexOf(tm)>-1?tv.config[tm]=tc(tp[tm]).map(tk).concat(tv.config[tm]):void 0===tn[tm]&&(tv.config[tm]=tp[tm])}tn.altInputClass||(tv.config.altInputClass=t9().className+" "+tv.config.altInputClass),eg("onParseConfig")}(),et(),function(){if(tv.input=t9(),!tv.input)return void tv.config.errorHandler(Error("Invalid input element specified"));tv.input._type=tv.input.type,tv.input.type="text",tv.input.classList.add("flatpickr-input"),tv._input=tv.input,tv.config.altInput&&(tv.altInput=tu(tv.input.nodeName,tv.config.altInputClass),tv._input=tv.altInput,tv.altInput.placeholder=tv.input.placeholder,tv.altInput.disabled=tv.input.disabled,tv.altInput.required=tv.input.required,tv.altInput.tabIndex=tv.input.tabIndex,tv.altInput.type="text",tv.input.setAttribute("type","hidden"),!tv.config.static&&tv.input.parentNode&&tv.input.parentNode.insertBefore(tv.altInput,tv.input.nextSibling)),tv.config.allowInput||tv._input.setAttribute("readonly","readonly"),eu()}(),function(){tv.selectedDates=[],tv.now=tv.parseDate(tv.config.now)||new Date;var tt=tv.config.defaultDate||(("INPUT"===tv.input.nodeName||"TEXTAREA"===tv.input.nodeName)&&tv.input.placeholder&&tv.input.value===tv.input.placeholder?null:tv.input.value);tt&&ec(tt,tv.config.dateFormat),tv._initialDate=tv.selectedDates.length>0?tv.selectedDates[0]:tv.config.minDate&&tv.config.minDate.getTime()>tv.now.getTime()?tv.config.minDate:tv.config.maxDate&&tv.config.maxDate.getTime()<tv.now.getTime()?tv.config.maxDate:tv.now,tv.currentYear=tv._initialDate.getFullYear(),tv.currentMonth=tv._initialDate.getMonth(),tv.selectedDates.length>0&&(tv.latestSelectedDateObj=tv.selectedDates[0]),void 0!==tv.config.minTime&&(tv.config.minTime=tv.parseDate(tv.config.minTime,"H:i")),void 0!==tv.config.maxTime&&(tv.config.maxTime=tv.parseDate(tv.config.maxTime,"H:i")),tv.minDateHasTime=!!tv.config.minDate&&(tv.config.minDate.getHours()>0||tv.config.minDate.getMinutes()>0||tv.config.minDate.getSeconds()>0),tv.maxDateHasTime=!!tv.config.maxDate&&(tv.config.maxDate.getHours()>0||tv.config.maxDate.getMinutes()>0||tv.config.maxDate.getSeconds()>0)}(),tv.utils={getDaysInMonth:function(tt,ta){return void 0===tt&&(tt=tv.currentMonth),void 0===ta&&(ta=tv.currentYear),1===tt&&(ta%4==0&&ta%100!=0||ta%400==0)?29:tv.l10n.daysInMonth[tt]}},tv.isMobile||function(){var tt=window.document.createDocumentFragment();if(tv.calendarContainer=tu("div","flatpickr-calendar"),tv.calendarContainer.tabIndex=-1,!tv.config.noCalendar){if(tt.appendChild((tv.monthNav=tu("div","flatpickr-months"),tv.yearElements=[],tv.monthElements=[],tv.prevMonthNav=tu("span","flatpickr-prev-month"),tv.prevMonthNav.innerHTML=tv.config.prevArrow,tv.nextMonthNav=tu("span","flatpickr-next-month"),tv.nextMonthNav.innerHTML=tv.config.nextArrow,tQ(),Object.defineProperty(tv,"_hidePrevMonthArrow",{get:function(){return tv.__hidePrevMonthArrow},set:function(tt){tv.__hidePrevMonthArrow!==tt&&(td(tv.prevMonthNav,"flatpickr-disabled",tt),tv.__hidePrevMonthArrow=tt)}}),Object.defineProperty(tv,"_hideNextMonthArrow",{get:function(){return tv.__hideNextMonthArrow},set:function(tt){tv.__hideNextMonthArrow!==tt&&(td(tv.nextMonthNav,"flatpickr-disabled",tt),tv.__hideNextMonthArrow=tt)}}),tv.currentYearElement=tv.yearElements[0],eh(),tv.monthNav)),tv.innerContainer=tu("div","flatpickr-innerContainer"),tv.config.weekNumbers){var ta=function(){tv.calendarContainer.classList.add("hasWeeks");var tt=tu("div","flatpickr-weekwrapper");tt.appendChild(tu("span","flatpickr-weekday",tv.l10n.weekAbbreviation));var ta=tu("div","flatpickr-weeks");return tt.appendChild(ta),{weekWrapper:tt,weekNumbers:ta}}(),ti=ta.weekWrapper,tr=ta.weekNumbers;tv.innerContainer.appendChild(ti),tv.weekNumbers=tr,tv.weekWrapper=ti}tv.rContainer=tu("div","flatpickr-rContainer"),tv.rContainer.appendChild(tV()),tv.daysContainer||(tv.daysContainer=tu("div","flatpickr-days"),tv.daysContainer.tabIndex=-1),tW(),tv.rContainer.appendChild(tv.daysContainer),tv.innerContainer.appendChild(tv.rContainer),tt.appendChild(tv.innerContainer)}tv.config.enableTime&&tt.appendChild(function(){tv.calendarContainer.classList.add("hasTime"),tv.config.noCalendar&&tv.calendarContainer.classList.add("noCalendar");var tt=tN(tv.config);tv.timeContainer=tu("div","flatpickr-time"),tv.timeContainer.tabIndex=-1;var ta=tu("span","flatpickr-time-separator",":"),ti=tm("flatpickr-hour",{"aria-label":tv.l10n.hourAriaLabel});tv.hourElement=ti.getElementsByTagName("input")[0];var tr=tm("flatpickr-minute",{"aria-label":tv.l10n.minuteAriaLabel});if(tv.minuteElement=tr.getElementsByTagName("input")[0],tv.hourElement.tabIndex=tv.minuteElement.tabIndex=-1,tv.hourElement.value=to(tv.latestSelectedDateObj?tv.latestSelectedDateObj.getHours():tv.config.time_24hr?tt.hours:function(tt){switch(tt%24){case 0:case 12:return 12;default:return tt%12}}(tt.hours)),tv.minuteElement.value=to(tv.latestSelectedDateObj?tv.latestSelectedDateObj.getMinutes():tt.minutes),tv.hourElement.setAttribute("step",tv.config.hourIncrement.toString()),tv.minuteElement.setAttribute("step",tv.config.minuteIncrement.toString()),tv.hourElement.setAttribute("min",tv.config.time_24hr?"0":"1"),tv.hourElement.setAttribute("max",tv.config.time_24hr?"23":"12"),tv.hourElement.setAttribute("maxlength","2"),tv.minuteElement.setAttribute("min","0"),tv.minuteElement.setAttribute("max","59"),tv.minuteElement.setAttribute("maxlength","2"),tv.timeContainer.appendChild(ti),tv.timeContainer.appendChild(ta),tv.timeContainer.appendChild(tr),tv.config.time_24hr&&tv.timeContainer.classList.add("time24hr"),tv.config.enableSeconds){tv.timeContainer.classList.add("hasSeconds");var tn=tm("flatpickr-second");tv.secondElement=tn.getElementsByTagName("input")[0],tv.secondElement.value=to(tv.latestSelectedDateObj?tv.latestSelectedDateObj.getSeconds():tt.seconds),tv.secondElement.setAttribute("step",tv.minuteElement.getAttribute("step")),tv.secondElement.setAttribute("min","0"),tv.secondElement.setAttribute("max","59"),tv.secondElement.setAttribute("maxlength","2"),tv.timeContainer.appendChild(tu("span","flatpickr-time-separator",":")),tv.timeContainer.appendChild(tn)}return tv.config.time_24hr||(tv.amPM=tu("span","flatpickr-am-pm",tv.l10n.amPM[tl((tv.latestSelectedDateObj?tv.hourElement.value:tv.config.defaultHour)>11)]),tv.amPM.title=tv.l10n.toggleTitle,tv.amPM.tabIndex=-1,tv.timeContainer.appendChild(tv.amPM)),tv.timeContainer}()),td(tv.calendarContainer,"rangeMode","range"===tv.config.mode),td(tv.calendarContainer,"animate",!0===tv.config.animate),td(tv.calendarContainer,"multiMonth",tv.config.showMonths>1),tv.calendarContainer.appendChild(tt);var tn=void 0!==tv.config.appendTo&&void 0!==tv.config.appendTo.nodeType;if((tv.config.inline||tv.config.static)&&(tv.calendarContainer.classList.add(tv.config.inline?"inline":"static"),tv.config.inline&&(!tn&&tv.element.parentNode?tv.element.parentNode.insertBefore(tv.calendarContainer,tv._input.nextSibling):void 0!==tv.config.appendTo&&tv.config.appendTo.appendChild(tv.calendarContainer)),tv.config.static)){var ts=tu("div","flatpickr-wrapper");tv.element.parentNode&&tv.element.parentNode.insertBefore(ts,tv.element),ts.appendChild(tv.element),tv.altInput&&ts.appendChild(tv.altInput),ts.appendChild(tv.calendarContainer)}tv.config.static||tv.config.inline||(void 0!==tv.config.appendTo?tv.config.appendTo:window.document.body).appendChild(tv.calendarContainer)}(),function(){if(tv.config.wrap&&["open","close","toggle","clear"].forEach(function(tt){Array.prototype.forEach.call(tv.element.querySelectorAll("[data-"+tt+"]"),function(ta){return tM(ta,"click",tv[tt])})}),tv.isMobile)return void function(){var tt=tv.config.enableTime?tv.config.noCalendar?"time":"datetime-local":"date";tv.mobileInput=tu("input",tv.input.className+" flatpickr-mobile"),tv.mobileInput.tabIndex=1,tv.mobileInput.type=tt,tv.mobileInput.disabled=tv.
vendor: 4,787 bytes, line 1
1input.disabled,tv.mobileInput.required=tv.input.required,tv.mobileInput.placeholder=tv.input.placeholder,tv.mobileFormatStr="datetime-local"===tt?"Y-m-d\\TH:i:S":"date"===tt?"Y-m-d":"H:i:S",tv.selectedDates.length>0&&(tv.mobileInput.defaultValue=tv.mobileInput.value=tv.formatDate(tv.selectedDates[0],tv.mobileFormatStr)),tv.config.minDate&&(tv.mobileInput.min=tv.formatDate(tv.config.minDate,"Y-m-d")),tv.config.maxDate&&(tv.mobileInput.max=tv.formatDate(tv.config.maxDate,"Y-m-d")),tv.input.getAttribute("step")&&(tv.mobileInput.step=String(tv.input.getAttribute("step"))),tv.input.type="hidden",void 0!==tv.altInput&&(tv.altInput.type="hidden");try{tv.input.parentNode&&tv.input.parentNode.insertBefore(tv.mobileInput,tv.input.nextSibling)}catch(tt){}tM(tv.mobileInput,"change",function(tt){tv.setDate(th(tt).value,!1,tv.mobileFormatStr),eg("onChange"),eg("onClose")})}();var tt=ts(t8,50);if(tv._debouncedChange=ts(tq,300),tv.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&tM(tv.daysContainer,"mouseover",function(tt){"range"===tv.config.mode&&t3(th(tt))}),tM(tv._input,"keydown",t6),void 0!==tv.calendarContainer&&tM(tv.calendarContainer,"keydown",t6),tv.config.inline||tv.config.static||tM(window,"resize",tt),void 0!==window.ontouchstart?tM(window.document,"touchstart",t0):tM(window.document,"mousedown",t0),tM(window.document,"focus",t0,{capture:!0}),!0===tv.config.clickOpens&&(tM(tv._input,"focus",tv.open),tM(tv._input,"click",tv.open)),void 0!==tv.daysContainer&&(tM(tv.monthNav,"click",e_),tM(tv.monthNav,["keyup","increment"],tC),tM(tv.daysContainer,"click",eo)),void 0!==tv.timeContainer&&void 0!==tv.minuteElement&&void 0!==tv.hourElement){var ta=function(tt){return th(tt).select()};tM(tv.timeContainer,["increment"],tJ),tM(tv.timeContainer,"blur",tJ,{capture:!0}),tM(tv.timeContainer,"click",tP),tM([tv.hourElement,tv.minuteElement],["focus","click"],ta),void 0!==tv.secondElement&&tM(tv.secondElement,"focus",function(){return tv.secondElement&&tv.secondElement.select()}),void 0!==tv.amPM&&tM(tv.amPM,"click",function(tt){tJ(tt)})}tv.config.allowInput&&tM(tv._input,"blur",t5)}(),(tv.selectedDates.length||tv.config.noCalendar)&&(tv.config.enableTime&&tZ(tv.config.noCalendar?tv.latestSelectedDateObj:void 0),eb(!1)),tB();var ta=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!tv.isMobile&&ta&&ei(),eg("onReady")}(),tv}function tk(tt,ta){for(var ti=Array.prototype.slice.call(tt).filter(function(tt){return tt instanceof HTMLElement}),tr=[],tn=0;tn<ti.length;tn++){var to=ti[tn];try{if(null!==to.getAttribute("data-fp-omit"))continue;void 0!==to._flatpickr&&(to._flatpickr.destroy(),to._flatpickr=void 0),to._flatpickr=tw(to,ta||{}),tr.push(to._flatpickr)}catch(tt){console.error(tt)}}return 1===tr.length?tr[0]:tr}"function"!=typeof Object.assign&&(Object.assign=function(tt){for(var ta=[],ti=1;ti<arguments.length;ti++)ta[ti-1]=arguments[ti];if(!tt)throw TypeError("Cannot convert undefined or null to object");for(var tr=function(ta){ta&&Object.keys(ta).forEach(function(ti){return tt[ti]=ta[ti]})},tn=0,to=ta;tn<to.length;tn++)tr(to[tn]);return tt}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(tt){return tk(this,tt)},HTMLElement.prototype.flatpickr=function(tt){return tk([this],tt)});var tI=function(tt,ta){return"string"==typeof tt?tk(window.document.querySelectorAll(tt),ta):tt instanceof Node?tk([tt],ta):tk(tt,ta)};return tI.defaultConfig={},tI.l10ns={en:tt({},tn),default:tt({},tn)},tI.localize=function(ta){tI.l10ns.default=tt(tt({},tI.l10ns.default),ta)},tI.setDefaults=function(ta){tI.defaultConfig=tt(tt({},tI.defaultConfig),ta)},tI.parseDate=tS({}),tI.formatDate=tx({}),tI.compareDates=tO,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(tt){return tk(this,tt)}),Date.prototype.fp_incr=function(tt){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof tt?parseInt(tt,10):tt))},"undefined"!=typeof window&&(window.flatpickr=tI),tI})},689:function(tt,ta){!function(tt,ti){ti(ta)}(0,function(tt){"use strict";var ta="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},ti={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ändern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};ta.l10ns.de=ti;var tr=ta.l10ns;
1tt.German=ti,tt.default=tr,Object.defineProperty(tt,"__esModule",{value:!0})})},109:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tr});/** 2 * Sticky.js 3 * Library for sticky elements written in vanilla javascript. With this library you can easily set sticky elements on your website. It's also responsive. 4 * 5 * @version 1.3.0 6 * @author Rafal Galus <[email protected]> 7 * @website https://rgalus.github.io/sticky-js/ 8 * @repo https://github.com/rgalus/sticky-js 9 * @license https://github.com/rgalus/sticky-js/blob/master/LICENSE 10 */class tr{constructor(tt="",ta={}){this.selector=tt,this.elements=[],this.version="1.3.0",this.vp=this.getViewportSize(),this.body=document.querySelector("body"),this.options={wrap:ta.wrap||!1,wrapWith:ta.wrapWith||"<span></span>",marginTop:ta.marginTop||0,marginBottom:ta.marginBottom||0,stickyFor:ta.stickyFor||0,stickyClass:ta.stickyClass||null,stickyContainer:ta.stickyContainer||"body"},this.updateScrollTopPosition=this.updateScrollTopPosition.bind(this),this.updateScrollTopPosition(),window.addEventListener("load",this.updateScrollTopPosition),window.addEventListener("scroll",this.updateScrollTopPosition),this.run()}run(){let tt=setInterval(()=>{if("complete"===document.readyState){clearInterval(tt);let ta=document.querySelectorAll(this.selector);this.forEach(ta,tt=>this.renderElement(tt))}},10)}renderElement(tt){tt.sticky={},tt.sticky.active=!1,tt.sticky.marginTop=parseInt(tt.getAttribute("data-margin-top"),10)||this.options.marginTop,tt.sticky.marginBottom=parseInt(tt.getAttribute("data-margin-bottom"),10)||this.options.marginBottom,tt.sticky.stickyFor=parseInt(tt.getAttribute("data-sticky-for"),10)||this.options.stickyFor,tt.sticky.stickyClass=tt.getAttribute("data-sticky-class")||this.options.stickyClass,tt.sticky.wrap=!!tt.hasAttribute("data-sticky-wrap")||this.options.wrap,tt.sticky.stickyContainer=this.options.stickyContainer,tt.sticky.container=this.getStickyContainer(tt),tt.sticky.container.rect=this.getRectangle(tt.sticky.container),tt.sticky.rect=this.getRectangle(tt),"img"===tt.tagName.toLowerCase()&&(tt.onload=()=>tt.sticky.rect=this.getRectangle(tt)),tt.sticky.wrap&&this.wrapElement(tt),this.activate(tt)}wrapElement(tt){tt.insertAdjacentHTML("beforebegin",tt.getAttribute("data-sticky-wrapWith")||this.options.wrapWith),tt.previousSibling.appendChild(tt)}activate(tt){tt.sticky.rect.top+tt.sticky.rect.height<tt.sticky.container.rect.top+tt.sticky.container.rect.height&&tt.sticky.stickyFor<this.vp.width&&!tt.sticky.active&&(tt.sticky.active=!0),0>this.elements.indexOf(tt)&&this.elements.push(tt),tt.sticky.resizeEvent||(this.initResizeEvents(tt),tt.sticky.resizeEvent=!0),tt.sticky.scrollEvent||(this.initScrollEvents(tt),tt.sticky.scrollEvent=!0),this.setPosition(tt)}initResizeEvents(tt){tt.sticky.resizeListener=()=>this.onResizeEvents(tt),window.addEventListener("resize",tt.sticky.resizeListener)}destroyResizeEvents(tt){window.removeEventListener("resize",tt.sticky.resizeListener)}onResizeEvents(tt){this.vp=this.getViewportSize(),tt.sticky.rect=this.getRectangle(tt),tt.sticky.container.rect=this.getRectangle(tt.sticky.container),tt.sticky.rect.top+tt.sticky.rect.height<tt.sticky.container.rect.top+tt.sticky.container.rect.height&&tt.sticky.stickyFor<this.vp.width&&!tt.sticky.active?tt.sticky.active=!0:(tt.sticky.rect.top+tt.sticky.rect.height>=tt.sticky.container.rect.top+tt.sticky.container.rect.height||tt.sticky.stickyFor>=this.vp.width&&tt.sticky.active)&&(tt.sticky.active=!1),this.setPosition(tt)}initScrollEvents(tt){tt.sticky.scrollListener=()=>this.onScrollEvents(tt),window.addEventListener("scroll",tt.sticky.scrollListener)}destroyScrollEvents(tt){window.removeEventListener("scroll",tt.sticky.scrollListener)}onScrollEvents(tt){tt.sticky&&tt.sticky.active&&this.setPosition(tt)}setPosition(tt){this.css(tt,{position:"",width:"",top:"",left:""}),!(this.vp.height<tt.sticky.rect.height)&&tt.sticky.active&&(tt.sticky.rect.width||(tt.sticky.rect=this.getRectangle(tt)),tt.sticky.wrap&&this.css(tt.parentNode,{display:"block",width:tt.sticky.rect.width+"px",height:tt.sticky.rect.height+"px"}),0===tt.sticky.rect.top&&tt.sticky.container===this.body?(this.css(tt,{position:"fixed",top:tt.sticky.rect.top+"px",left:tt.sticky.rect.left+"px",width:tt.sticky.rect.width+"px"}),tt.sticky.stickyClass&&tt.classList.add(tt.sticky.stickyClass)):this.scrollTop>tt.sticky.rect.top-tt.sticky.marginTop?(this.css(tt,{position:"fixed",width:tt.sticky.rect.width+"px",left:tt.sticky.rect.left+"px"}),this.scrollTop+tt.sticky.rect.height+tt.sticky.marginTop>tt.sticky.container.rect.top+tt.sticky.container.offsetHeight-tt.sticky.marginBottom?(tt.sticky.stickyClass&&tt.classList.remove(tt.sticky.stickyClass),this.css(tt,{top:tt.sticky.container.rect.top+tt.sticky.container.offsetHeight-(this.scrollTop+tt.sticky.rect.height+tt.sticky.marginBottom)+"px"})):(tt.sticky.stickyClass&&tt.classList.add(tt.sticky.stickyClass),this.css(tt,{top:tt.sticky.marginTop+"px"}))):(tt.sticky.stickyClass&&tt.classList.remove(tt.sticky.stickyClass),this.css(tt,{position:"",width:"",top:"",left:""}),tt.sticky.wrap&&this.css(tt.parentNode,{display:"",width:"",height:""})))}update(){this.forEach(this.elements,tt=>{tt.sticky.rect=this.getRectangle(tt),tt.sticky.container.rect=this.getRectangle(tt.sticky.container),this.activate(tt),this.setPosition(tt)})}destroy(){window.removeEventListener("load",this.updateScrollTopPosition),window.removeEventListener("scroll",this.updateScrollTopPosition),this.forEach(this.elements,tt=>{this.destroyResizeEvents(tt),this.destroyScrollEvents(tt),delete tt.sticky})}getStickyContainer(tt){let ta=tt.parentNode;for(;!ta.hasAttribute("data-sticky-container")&&!ta.parentNode.querySelector(tt.sticky.stickyContainer)&&ta!==this.body;)ta=ta.parentNode;return ta}getRectangle(tt){this.css(tt,{position:"",width:"",top:"",left:""});let ta=Math.max(tt.offsetWidth,tt.clientWidth,tt.scrollWidth),ti=Math.max(tt.offsetHeight,tt.clientHeight,tt.scrollHeight),tr=0,tn=0;do tr+=tt.offsetTop||0,tn+=tt.offsetLeft||0,tt=tt.offsetParent;while(tt)return{top:tr,left:tn,width:ta,height:ti}}getViewportSize(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}updateScrollTopPosition(){this.scrollTop=(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}forEach(tt,ta){for(let ti=0,tr=tt.length;ti<tr;ti++)ta(tt[ti])}css(tt,ta){for(let ti in ta)ta.hasOwnProperty(ti)&&(tt.style[ti]=ta[ti])}}},857:tt=>{"use strict";var ta=function(tt){return ti(tt)&&!tr(tt)};function ti(tt){return!!tt&&"object"==typeof tt}function tr(tt){var ta=Object.prototype.toString.call(tt);return"[object RegExp]"===ta||"[object Date]"===ta||to(tt)}var tn="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function to(tt){return tt.$$typeof===tn}function tl(tt){return Array.isArray(tt)?[]:{}}function ts(tt,ta){return!1!==ta.clone&&ta.isMergeableObject(tt)?tf(tl(tt),tt,ta):tt}
10function tc(tt,ta,ti){return tt.concat(ta).map(function(tt){return ts(tt,ti)})}function td(tt,ta){if(!ta.customMerge)return tf;var ti=ta.customMerge(tt);return"function"==typeof ti?ti:tf}function tu(tt){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(tt).filter(function(ta){return Object.propertyIsEnumerable.call(tt,ta)}):[]}function tg(tt){return Object.keys(tt).concat(tu(tt))}function tp(tt,ta){try{return ta in tt}catch(tt){return!1}}function tm(tt,ta){return tp(tt,ta)&&!(Object.hasOwnProperty.call(tt,ta)&&Object.propertyIsEnumerable.call(tt,ta))}function th(tt,ta,ti){var tr={};return ti.isMergeableObject(tt)&&tg(tt).forEach(function(ta){tr[ta]=ts(tt[ta],ti)}),tg(ta).forEach(function(tn){tm(tt,tn)||(tp(tt,tn)&&ti.isMergeableObject(ta[tn])?tr[tn]=td(tn,ti)(tt[tn],ta[tn],ti):tr[tn]=ts(ta[tn],ti))}),tr}function tf(tt,ti,tr){(tr=tr||{}).arrayMerge=tr.arrayMerge||tc,tr.isMergeableObject=tr.isMergeableObject||ta,tr.cloneUnlessOtherwiseSpecified=ts;var tn=Array.isArray(ti);return tn!==Array.isArray(tt)?ts(ti,tr):tn?tr.arrayMerge(tt,ti,tr):th(tt,ti,tr)}tf.all=function(tt,ta){if(!Array.isArray(tt))throw Error("first argument should be an array");return tt.reduce(function(tt,ti){return tf(tt,ti,ta)},{})};var tb=tf;tt.exports=tb},190:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tg});var tr=ti(187),tn=ti(268),to=ti(691),tl=ti(35),ts=ti(184),tc=ti(316),td=ti(815),tu=ti(540);class tg{static update(tt,ta,ti,tu,tg,tp,tm,th){let tf,tb;var t_="",ty="";let tv=0,tx=defaultsJSON[tt][1][0],tS=defaultsJSON[tt][1][1],tO=tx,tA=tS,tE=defaultsJSON[tt][2][0],tN=defaultsJSON[tt][2][1],tw=defaultsJSON[tt][4],tk="axb_free_"+tE,tI=document.getElementById(tk),tB="axb_free_"+tN,tJ=document.getElementById(tB);tE&&null===tI&&(tk='input[data-key="'+tt+'"][data-index="0"]',document.querySelector(tk)),tN&&null===tJ&&(tB='input[data-key="'+tt+'"][data-index="1"]',document.querySelector(tB));var tL=tt+"."+tI.getAttribute("data-id"),tZ=tt+"."+tJ.getAttribute("data-id");ty=tI.getAttribute("data-groupname");let tD=tI.getAttribute("data-id"),tC=0;"true"===tI.getAttribute("data-required")&&(tC=1,tO=(tf=tr.Z.valueErrorHandler(tt,[tI,tJ],"axb",basketButtonActiveJSON))[0][0],tA=tf[0][1],basketButtonActiveJSON=tf[1]);let tM=0,tq=0,tF=1,tP=1,tT=1,tH="",tj="",tG="true",tz="true";if(0===tO||0===tA||isNaN(tO)||isNaN(tA)?0===tC?(tm="#",tv=1):(t_=globalErrors.error_empty,tm="0"):(tT=(tF=parseFloat(tI.getAttribute("data-unitfactor")))*(tP=parseFloat(tJ.getAttribute("data-unitfactor"))),tH=tI.getAttribute("data-unit"),tj=tJ.getAttribute("data-unit"),tG=tI.getAttribute("data-baseprice_active"),tz=tJ.getAttribute("data-baseprice_active"),ta="1"===tG&&"1"===tz,void 0!==tp[tt]?(tq=tn.Z.getOutputSurcharge(tp[tt].surcharge)*(tM=tp[tt].value),tb=1!==tT?td.Z.roundWithUnitFactor(tM,tT):tM,t_=tO+tH+" x "+tA+tj,tw&&(t_=t_+" = "+tb+" "+tw)):(void 0!==tp[tL]||void 0!==tp[tZ])&&(tq=0,t_=tO+" x "+tA)),""!==tm&&"0"!==tm&&"#"!==tm){let ta=to.Z.formelEval(tt,tp,tm,ti,tg,t_,ty,tD),tr=ta[0];t_=ta[1],ty=ta[2],0===tr?tq=0:"0"===tr?(tm="0",tq=0):"#"===tr?(tm="#",tq=0):tq=tr}else tm="0",tq=0;let tR={};if(0!==tq){tu+=tq,tg+=tq;let ta=parseInt(td.Z.getGlobals("unitprice_precision"),10),ti=tn.Z.getNettoSurchargeArticle(tq,ta),tr=tn.Z.getBruttoSurchargeArticle(tq,ta);tR[tt]=[ti,tr,ta]}return tl.Z.setDispatchParametrix(tt,[tI],tM,tO,tA),ts.Z.checkDelivery(tt,tI),tc.Z.updatePricebox(tt,tm,tq,t_,ty),{group_name:ty,title:t_,title_q:[],title_item_qtext:"",hidden:tv,image_json:{},totalQuantityUnit:th,totalsurcharge:tu,itemSurchargeOutput:tq,itemSurchargeOutput_json:tR,unitySurcharge_json:{},gesamtpreis:tg,basicPriceFlag:ta}}static getSurcharge(tt,ta,ti){let tr,to,tl,ts,tc,tg,tp=0,tm=0,th=1,tf=1,tb=defaultsJSON[tt][2][0],t_=defaultsJSON[tt][2][1],ty="axb_free_"+tb,tv=document.getElementById(ty),tx="axb_free_"+t_,tS=document.getElementById(tx);if(tb&&null===tv){ty='input[data-key="'+tt+'"][data-index="0"]';let ta=document.querySelector(ty);defaultsJSON[tt][1][0]=ta.value,defaultsJSON[tt][2][0]=ta.getAttribute("data-valueid")}if(t_&&null===tS){tx='input[data-key="'+tt+'"][data-index="1"]';let ta=document.querySelector(tx);defaultsJSON[tt][1][1]=ta.value,defaultsJSON[tt][2][1]=ta.getAttribute("data-valueid")}var tO=tt+"."+tv.getAttribute("data-id"),tA=tt+"."+tS.getAttribute("data-id");let tE=tv.getAttribute("min"),tN=tS.getAttribute("min");tE=void 0===tE||""===tE||"0"===tE?1:parseFloat(tE),tN=void 0===tN||""===tN||"0"===tN?1:parseFloat(tN);let tw=tv.getAttribute("max"),tk=tS.getAttribute("max");if(tw=void 0===tw||""===tw||"0"===tw?0:parseFloat(tw),tk=void 0===tk||""===tk||"0"===tk?0:parseFloat(tk),""!==tv.value&&(tr=parseFloat(tv.value)),""!==tS.value&&(to=parseFloat(tS.value)),!tr||!to||tr<tE||to<tN)tp=0,tc=0,tg=0,tm=0,ta[tt]={surcharge:tp,value:tm,value1:tc,value2:tg};else{let tb=tv.getAttribute("data-surcharge"),t_=tS.getAttribute("data-surcharge");if(th=parseFloat(tv.getAttribute("data-unitfactor")),tf=parseFloat(tS.getAttribute("data-unitfactor")),tm=(tc=tr*th)*(tg=to*tf),"matrix_prices"===tb){let ti=td.Z.StringToJson(bogxSettings.parametrix_matrix_prices)[tt];
10tp=tu.Z.chargingMatrixPrices(tr,to,ti),ta[tt]={surcharge:tp,value:tm,value1:tc,value2:tg}}else if("block_prices_area"===tb){let ti=td.Z.StringToJson(bogxSettings.parametrix_block_prices)[tt];tp=tu.Z.chargingBlockPrices(tr*to,ti),ta[tt]={surcharge:tp,value:tm,value1:tc,value2:tg}}else if("block_prices_items"===tb&&"block_prices_items"===t_){let tt=td.Z.StringToJson(bogxSettings.parametrix_block_prices)[tO];tl=tu.Z.chargingBlockPrices(tr,tt),ta[tO]={surcharge:tl,value:tc};let ti=td.Z.StringToJson(bogxSettings.parametrix_block_prices)[tA];ts=tu.Z.chargingBlockPrices(to,ti),ta[tA]={surcharge:ts,value:tg}}else ta[tt]={surcharge:ti,value:tm,value1:tc,value2:tg},tl=(ta=tn.Z.getSurcharge(tO,[tv],ta))[tO],ta[tO]={surcharge:tl,value:tc},ts=(ta=tn.Z.getSurcharge(tA,[tS],ta))[tA],ta[tA]={surcharge:ts,value:tg}}return[ta]}}},364:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tu});var tr=ti(187),tn=ti(815),to=ti(268),tl=ti(691),ts=ti(35),tc=ti(184),td=ti(316);class tu{static update(tt,ta,ti,tu,tg,tp,tm,th){var tf,tb;let t_,ty,tv,tx,tS;let tO=defaultsJSON[tt][0],tA=defaultsJSON[tt][1],tE=defaultsJSON[tt][2],tN=1,tw='div.bogx--config.boxed-title-grid[data-key="'+tt+'"]',tk=document.querySelector(tw),tI=document.querySelectorAll(tw);tb=tk.getAttribute("data-groupname");let tB=0,tJ=0;if("true"===document.getElementById(tt).getAttribute("data-required")&&(tJ=1,basketButtonActiveJSON=tr.Z.selectErrorHandler(tt,tO,tA,tw,basketButtonActiveJSON)[0]),tA){tI.forEach(tt=>tt.classList.remove("selected")),tx='div.bogx--config.boxed-title-grid[data-key="'+tt+'"][data-value="'+tA+'"]',(tS=document.querySelector(tx)).classList.add("selected"),tf=tS.getAttribute("data-title"),tf=tn.Z.cutStringByChar(tf,"+");let ta=document.getElementById(tE).getAttribute("data-id");if(tf=tf.replace(/(<([^>]+)>)/ig," "),ty=(t_=to.Z.getItemSurcharge(tx,tp,tt,tg,ti)).surcharge,tp=t_.json,tv=ty,""!==tm&&"0"!==tm&&"#"!==tm){let tr=tl.Z.formelEval(tt,tp,tm,ti,tg,tf,tb,ta),tn=tr[0];tf=tr[1],tb=tr[2],0===tn?tv=0:"0"===tn?(tm="0",tv=0):"#"===tn?(tm="#",tv=0):tv=tn}isNaN(parseInt(tS.getAttribute("data-quantity"),10))||(!isNaN(tN=parseInt(tS.getAttribute("data-quantity"),10))&&tN>1?tf=tN.toString()+"x "+tf:tN=1)}else tv=0,tx="",0===tJ?(tB=1,tm="#"):(tf=globalErrors.noselected,tm="0",tB=1);let tL={};if(0!==tv&&"0"!==tm&&"#"!==tm){tu+=tv,tg+=tv;let ta=parseInt(tn.Z.getGlobals("unitprice_precision"),10),ti=to.Z.getNettoSurchargeArticle(tv,ta),tr=to.Z.getBruttoSurchargeArticle(tv,ta);tL[tt]=[ti,tr,ta]}return ts.Z.setDispatch(tt,tS,tN),tc.Z.checkDelivery(tt,tS),td.Z.updatePricebox(tt,tm,tv,tf,tb),{group_name:tb,title:tf,title_q:[],title_item_qtext:"",hidden:tB,image_json:{},totalQuantityUnit:th,totalsurcharge:tu,itemSurchargeOutput:tv,itemSurchargeOutput_json:tL,unitySurcharge_json:{},gesamtpreis:tg,basicPriceFlag:ta}}static getSurcharge(tt,ta){let ti,tr=defaultsJSON[tt][1];return tr?(ti='div.bogx--config.boxed-title-grid[data-key="'+tt+'"][data-value="'+tr+'"]',ta=to.Z.getSurcharge(tt,ti,ta)):(ta[tt]=0,defaultsJSON[tt][2]="",defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0",defaultsJSON[tt][7]=""),[ta]}}},648:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tg});var tr=ti(187),tn=ti(815),to=ti(268),tl=ti(691),ts=ti(35),tc=ti(184),td=ti(316),tu=ti(999);class tg{static update(tt,ta,ti,tu,tg,tp,tm,th){var tf,tb;let t_,ty,tv,tx,tS;let tO=1;defaultsJSON[tt][0];let tA=defaultsJSON[tt][1],tE=defaultsJSON[tt][2],tN='input[data-key="'.concat(tt,'"]'),tw=document.querySelector(tN),tk=tE+"_wrap",tI=document.getElementById(tk),tB=0,tJ=0;if("true"===tw.getAttribute("data-required")&&(tJ=1,basketButtonActiveJSON=tr.Z.checkboxErrorHandler(tt,tA,tN,basketButtonActiveJSON)[0]),"1"===tA){tI.classList.add("selected"),tw.checked=!0,tb=tw.getAttribute("data-groupname"),tx="#"+tE;let ta=(tS=document.getElementById(tE)).getAttribute("data-id");if(tf=tS.getAttribute("data-title"),tf=tn.Z.cutStringByChar(tf,"+"),ty=(t_=to.Z.getItemSurcharge(tx,tp,tt,tg,ti)).surcharge,tp=t_.json,tv=ty,""!==tm&&"0"!==tm&&"#"!==tm){let tr=tl.Z.formelEval(tt,tp,tm,ti,tg,tf,tb,ta),tn=tr[0];tf=tr[1],tb=tr[2],0===tn?tv=0:"0"===tn?(tm="0",tv=0):"#"===tn?(tm="#",tv=0):tv=tn}isNaN(parseInt(tS.getAttribute("data-quantity"),10))||(!isNaN(tO=parseInt(tS.getAttribute("data-quantity"),10))&&tO>1?tf=tO.toString()+"x "+tf:tO=1)}else{let ta=tw.getAttribute("data-valueid");(tI=document.getElementById(ta+"_wrap")).classList.remove("selected"),tw.checked=!1,tN=tt+"_hidden",tb=(tw=document.getElementById(tN)).getAttribute("data-groupname"),tf=tw.getAttribute("data-title"),tv=0,tx="",tS="",0===tJ?(tB=1,tm="#"):(tf=globalErrors.noselected,tm="0",tB=1)}let tL={};if(0!==tv&&"0"!==tm&&"#"!==tm){tu+=tv,tg+=tv;let ta=parseInt(tn.Z.getGlobals("unitprice_precision"),10),ti=to.Z.getNettoSurchargeArticle(tv,ta),tr=to.Z.getBruttoSurchargeArticle(tv,ta);tL[tt]=[ti,tr,ta]}return ts.Z.setDispatch(tt,tS,tO),tc.Z.checkDelivery(tt,tS),td.Z.updatePricebox(tt,tm,tv,tf,tb),{group_name:tb,title:tf,title_q:[],title_item_qtext:"",hidden:tB,image_json:{},totalQuantityUnit:th,totalsurcharge:tu,itemSurchargeOutput:tv,itemSurchargeOutput_json:tL,unitySurcharge_json:{},gesamtpreis:tg,basicPriceFlag:ta}}static updateSet(tt,ta,ti,ts,tc,tu,tg,tp){let tm,th,tf;var tb,t_="";let ty=0;tn.Z.getGlobals("parentgroup_active");let tv=document.getElementById(tt);"true"===tv.getAttribute("data-required")&&(ty=1),tb=tv.getAttribute("data-groupname");let tx=0,tS={},tO={},tA={},tE={},tN={},tw="";if(""!==tg&&"0"!==tg&&"#"!==tg){let ta=tl.Z.formelEval(tt,tu,tg,ti,tc,t_,tb,null),tr=ta[0];tb=ta[2],"0"===tr?tg="0":"#"===tr&&(tg="#")}let tk='div.bogx--config.check[data-key="'.concat(tt,'"]'),tI=document.querySelectorAll(tk);tI.forEach(tt=>tt.classList.remove("selected")),tk='input.form-check-input[data-key="'.concat(tt,'"]'),(tI=document.querySelectorAll(tk)).forEac
10h(tt=>tt.checked=!1);let tB=tt+"_surcharge_grouptitle_wrap",tJ=document.getElementById(tB);tJ&&tJ.classList.contains("bogx--hidden")&&tJ.classList.remove("bogx--hidden");let tL=defaultsJSON[tt][2];if(tL.length>0){let ta,ti,tl,tu,tp,tm,tx,tk,tI,tB,tJ,tZ,tD,tC,tM,tq;1===ty&&(basketButtonActiveJSON=(tf=tr.Z.multiSelectErrorHandler(tt,1,tv,basketButtonActiveJSON))[0]);let tF=parseInt(tn.Z.getGlobals("unitprice_precision"),10);tL.forEach(function(tr){th=document.getElementById(tr),(tv=document.getElementById(tr+"_wrap")).classList.add("selected"),th.checked=!0,(void 0===(ta=defaultsJSON[tt][1][tr])||""===ta||0===ta)&&(ta=1,defaultsJSON[tt][1][tr]=1),tD=tF,th.getAttribute("data-precision")&&(tD=parseInt(th.getAttribute("data-precision"),10)),tC=defaultsJSON[tt][4][tr],tM=parseInt(th.getAttribute("data-quantity_active"),10),ti=parseFloat(surchargeJSONOrigin[tr]),tl=to.Z.getOutputSurcharge(ti),tI=to.Z.getNettoSurchargeArticle(tl,tD),tB=to.Z.getBruttoSurchargeArticle(tl,tD),tN[tr]=[tI,tB,tD],tl=tn.Z.round(ta*tl,tD),tJ=tI*ta,tZ=tB*ta,tE[tr]=[tJ,tZ,tD],tp=tn.Z.numberToPriceDigits(to.Z.getOutputSurcharge(ti),tD,1),tm=th.getAttribute("data-title"),tx="x $price / "+tC,tM&&1===tM?(tu=tm+"\n<b>"+ta+tx+"</b>",tk=tm+"\n<b>"+ta+" "+tC+"</b>",tw+="\n"+tm+" "+ta+" "+tC+","):(tu=tm,tk=tm,tw+="\n"+tm),tq=tu,-1!==tu.indexOf("$price")&&(tq=tu.replace("$price",tp)),tq=tq.replace(/\n|\r\n|\r/g,"<br/>"),tk=tn.Z.escapeText(tk),tu=tn.Z.escapeText(tu),tA[tr]=tk,tO[tr]=tu,t_=tO,tS=tA,0!==tl&&"0"!==tg&&"#"!==tg&&(ts+=tl,tc+=tl),td.Z.updatePriceboxForMultiselect(tt,tr,tg,tl,tq,tb)})}else tx=1,t_="",tm=0,1===ty?(basketButtonActiveJSON=(tf=tr.Z.multiSelectErrorHandler(tt,0,tv,basketButtonActiveJSON))[0],tx=0):tJ&&tJ.classList.add("bogx--hidden");return{group_name:tb,title:t_,title_q:tS,title_item_qtext:tw,hidden:tx,image_json:{},totalQuantityUnit:tp,totalsurcharge:ts,itemSurchargeOutput:tm,itemSurchargeOutput_json:tE,unitySurcharge_json:tN,gesamtpreis:tc,basicPriceFlag:ta}}static updateSetQuantity(tt,ta,ti,ts,tc,tg,tp,tm){let th,tf,tb;var t_,ty="";let tv=0;tn.Z.getGlobals("parentgroup_active");let tx=document.getElementById(tt);"true"===tx.getAttribute("data-required")&&(tv=1),t_=tx.getAttribute("data-groupname");let tS=0,tO={},tA={},tE={},tN={},tw={},tk="";if(""!==tp&&"0"!==tp&&"#"!==tp){let ta=tl.Z.formelEval(tt,tg,tp,ti,tc,ty,t_,null),tr=ta[0];t_=ta[2],"0"===tr?tp="0":"#"===tr&&(tp="#")}let tI='div.bogx--config.check[data-key="'.concat(tt,'"]'),tB=document.querySelectorAll(tI);tB&&tB.forEach(tt=>tt.classList.remove("selected")),tI='input.form-check-input[data-key="'.concat(tt,'"]'),(tB=document.querySelectorAll(tI))&&tB.forEach(tt=>tt.checked=!1),tI='input.form-control.bogx--config[data-key="'.concat(tt,'"]'),(tB=document.querySelectorAll(tI))&&tB.forEach(tt=>tt.classList.add("bogx--hidden")),tI='span.input-group-text.quantity-unit[data-key="'.concat(tt,'"]'),(tB=document.querySelectorAll(tI))&&tB.forEach(tt=>tt.classList.add("bogx--hidden")),tI='div.bogx--quantity-minmax-wrap[data-key="'.concat(tt,'"]'),(tB=document.querySelectorAll(tI))&&tB.forEach(tt=>tt.classList.add("bogx--hidden"));let tJ=tt+"_surcharge_grouptitle_wrap",tL=document.getElementById(tJ);tL&&tL.classList.contains("bogx--hidden")&&tL.classList.remove("bogx--hidden");let tZ=defaultsJSON[tt][2];if(tZ.length>0){let ta,ti,tl,tg,tm,th,tS,tI,tB,tJ,tL,tD,tC,tM,tq,tF,tP;1===tv&&(basketButtonActiveJSON=(tb=tr.Z.multiSelectErrorHandler(tt,1,tx,basketButtonActiveJSON))[0]);let tT=parseInt(tn.Z.getGlobals("unitprice_precision"),10),tH=1;tZ.forEach(function(tv){tf=document.getElementById(tv),(tx=document.getElementById(tv+"_wrap")).classList.add("selected"),tf.checked=!0;let tZ=document.getElementById("bogx_quantity_"+tv);tZ.classList.remove("bogx--hidden"),document.getElementById("bogx_quantity_unit_"+tv).classList.remove("bogx--hidden"),document.getElementById("bogx_quantity_minmax_"+tv+"_wrap").classList.remove("bogx--hidden"),1===(tP=parseInt(tZ.getAttribute("data-total_flag"),10))&&document.querySelector("div.product-detail-quantity-group")&&tu.Z.quantityHandler(tP),ta=defaultsJSON[tt][1][tv],tZ.value!==ta&&(tZ.value=ta),ta=(tb=tr.Z.quantityErrorHandler(tt,tv,tZ,basketButtonActiveJSON))[0],basketButtonActiveJSON=tb[1],tH*=ta,tC=tT,tZ.getAttribute("data-precision")&&(tC=parseInt(tZ.getAttribute("data-precision"),10)),tM=defaultsJSON[tt][4][tv],tq=parseInt(tZ.getAttribute("data-quantity_active"),10),ti=parseFloat(surchargeJSONOrigin[tv]),tl=to.Z.getOutputSurcharge(ti),tm=tn.Z.numberToPriceDigits(tl,tC,1),tB=to.Z.getNettoSurchargeArticle(tl,tC),tJ=to.Z.getBruttoSurchargeArticle(tl,tC),tw[tv]=[tB,tJ,tC],tl=tn.Z.round(ta*tl,tC),tL=tB*ta,tD=tJ*ta,tN[tv]=[tL,tD,tC],th=tf.getAttribute("data-title"),tS="x $price / "+tM,tq&&1===tq?(tg=th+"\n<b>"+ta+tS+"</b>",tI=th+"\n<b>"+ta+" "+tM+"</b>",tk+="\n"+th+" "+ta+" "+tM+","):(tg=th,tI=th,tk+="\n"+th),tF=tg,-1!==tg.indexOf("$price")&&(tF=tg.replace("$price",tm)),tF=tF.replace(/\n|\r\n|\r/g,"<br/>"),tI=tn.Z.escapeText(tI),tg=tn.Z.escapeText(tg),tE[tv]=tI,tA[tv]=tg,ty=tA,tO=tE,0!==tl&&"0"!==tp&&"#"!==tp&&(ts+=tl,tc+=tl),td.Z.updatePriceboxForMultiselect(tt,tv,tp,tl,tF,t_)})}else tS=1,ty="",th=0,tx=document.getElementById(tt),1===tv?(basketButtonActiveJSON=(tb=tr.Z.multiSelectErrorHandler(tt,0,tx,basketButtonActiveJSON))[0],tS=0):tL&&tL.classList.add("bogx--hidden");return{group_name:t_,title:ty,title_q:tO,title_item_qtext:tk,hidden:tS,image_json:{},totalQuantityUnit:tm,totalsurcharge:ts,itemSurchargeOutput:th,itemSurchargeOutput_json:tN,unitySurcharge_json:tw,gesamtpreis:tc,basicPriceFlag:ta}}static getSurcharge(tt,ta){let ti;return"1"===defaultsJSON[tt][1]?(ti='input[data-key="'.concat(tt,'"]'),ta=to.Z.getSurcharge(tt,ti,ta)):(ta[tt]=0,defaultsJSON[tt][2]="",defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0",defaultsJSON[tt][7]=""),[ta]}static clickSet(tt){let ta=tt.parentElement,ti=tt,tr=ta.getAttribute("data-key"),tn=ti.getAttribute("data-valueid"),to=parseInt(ti.getAttribute("data-quantity"),10);(isNaN(to)||0===to)&&(to=1);let tl=ti.getAttribute("data-unit");void 0===tl&&(tl="");let ts=ti.getAttribute("data-dispatch");void 0===ts&&(ts="");let tc=ti.getAttribute("data-delivery");void 0===tc&&(tc="");let tu=ti.getAttribute("data-ocb");void 0===tu&&(tu="");let tg=defaultsJSON[tr][1],tp=defaultsJSON[tr][2],tm=defaultsJSON[tr][4],th=defaultsJSON[tr][5],tf=defaultsJSON[tr][6],tb=defaultsJSON[tr][7];if(ti.checked)tg[tn]=to,tp.push(tn),tm[tn]=tl,th[tn]=ts,tf[tn]=tc,tb[tn]=tu;else{delete tg[tn];let tt=tp.indexOf(tn);tt>-1&&tp.splice(tt,1),delete tm[tn],delete th[tn],delete tf[tn],delete tb[tn],td.Z.updatePriceboxForMultiselect(tr,tn,"#",0,"","")}defaultsJSON[tr][1]=tg,defaultsJSON[tr][2]=tp.sort(),defaultsJSON[tr][4]=tm,defaultsJSON[tr][5]=th,defaultsJSON[tr][6]=tf,defaultsJSON[tr][7]=tb}static clickSetQuantity(tt){let ta=tt,ti=ta.getAttribute("data-key"),tr=ta.getAttribute("data-valueid"),tn=document.getElementById("bogx_quantity_"+tr);tn.classList.remove("bogx--hidden");let to=document.getElementById("bogx_quantity_unit_"+tr),tl=document.getElementById("bogx_quantity_minmax_"+tr+"_wrap"),ts=tn.value,tc=tn.getAttribute("data-unit");void 0===tc&&(tc="");let tu=tn.getAttribute("data-dispatch"),tg=tn.getAttribute("data-delivery");void 0===tg&&(tg="");let tp=tn.getAttribute("data-ocb");void 0===tp&&(tp="");let tm=defaultsJSON[ti][1],th=defaultsJSON[ti][2],tf=defaultsJSON[ti][4],tb=defaultsJSON[ti][5],t_=defaultsJSON[ti][6],ty=defaultsJSON[ti][7];if(ta.checked)tm[tr]=ts,th.push(tr),tf[tr]=tc,tb[tr]=tu,t_[tr]=tg,ty[tr]=tp;else{delete tm[tr];let tt=th.indexOf(tr);tt>-1&&th.splice(tt,1),delete tf[tr],delete tb[tr],delete t_[tr],delete ty[tr],tn.classList.add("bogx--hidden"),to.
10classList.add("bogx--hidden"),tl.classList.add("bogx--hidden"),td.Z.updatePriceboxForMultiselect(ti,tr,"#",0,"","")}defaultsJSON[ti][1]=tm,defaultsJSON[ti][2]=th.sort(),defaultsJSON[ti][4]=tf,defaultsJSON[ti][5]=tb,defaultsJSON[ti][6]=t_,defaultsJSON[ti][7]=ty}static inputSetQuantity(tt){let ta=tt,ti=ta.getAttribute("data-valueid"),tr=ta.getAttribute("data-key"),to=tn.Z.getValideMinMaxValue(tr,ta)[0],tl=defaultsJSON[tr][1];tl[ti]=to,defaultsJSON[tr][1]=tl}}},414:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tg});var tr=ti(187),tn=ti(815),to=ti(268),tl=ti(691),ts=ti(35),tc=ti(184),td=ti(316),tu=ti(803);class tg{static update(tt,ta,ti,tg,tp,tm,th,tf){var tb,t_;let ty,tv,tx,tS,tO,tA,tE;let tN=defaultsJSON[tt][0],tw=defaultsJSON[tt][1],tk=defaultsJSON[tt][2],tI=null;tn.Z.getGlobals("parentgroup_active");let tB=document.getElementById(tt),tJ=tB.getAttribute("data-layout");t_=tB.getAttribute("data-groupname"),"grid"===tJ?(ty='div.bogx--config.color[data-key="'+tt+'"]',tv=document.querySelectorAll(ty)):"list"===tJ&&(ty='ul.bogx--config.color-list[data-key="'+tt+'"] li[id]',tv=document.querySelectorAll(ty),ty='ul.bogx--config.color-list[data-key="'+tt+'"]');let tL=tt+"_surcharge_grouptitle_wrap",tZ=document.getElementById(tL),tD="[id="+tt+"_surcharge_grouptitle_wrap]",tC=document.querySelectorAll(tD);tC&&(tC.forEach(tt=>tt.classList.add("bogx--hidden")),tZ=tC[0]),tZ&&tZ.classList.contains("bogx--hidden")&&tZ.classList.remove("bogx--hidden");let tM=0,tq=0;if("true"===tB.getAttribute("data-required")&&(tq=1,basketButtonActiveJSON=tr.Z.selectErrorHandler(tt,tN,tw,ty,basketButtonActiveJSON)[0]),tw){tk&&(tI=document.getElementById(tk).getAttribute("data-id")),tv.forEach(tt=>tt.classList.remove("selected")),"grid"===tJ?tA=tk+"_wrap":"list"===tJ&&(tA=tk),(tE=document.getElementById(tA)).classList.add("selected"),tb=tE.getAttribute("data-title"),tb=tn.Z.cutStringByChar(tb,"+");let ta=!1;if(tS=(tx=to.Z.getItemSurcharge(ta,tm,tt,tp,ti)).surcharge,tm=tx.json,tO=tS,""!==th&&"0"!==th&&"#"!==th){let ta=tl.Z.formelEval(tt,tm,th,ti,tp,tb,t_,tI),tr=ta[0];tb=ta[1],t_=ta[2],0===tr?tO=0:"0"===tr?(th="0",tO=0):"#"===tr?(th="#",tO=0):tO=tr}if("color_product"===tN)document.getElementById(tk).getAttribute("data-source")&&tu.Z.changeProductImage(document.getElementById(tk));else if("color_product_fix"===tN){let tt=document.getElementById(tk).getAttribute("data-source");tt&&tu.Z.changeProductImageFix(tt)}}else tO=0,tA="",tE="",0===tq||(tb=globalErrors.noselected),tM=1,th="#";let tF={};if(0!==tO&&"0"!==th&&"#"!==th){tp+=tO,tg+=tO;let ta=parseInt(tn.Z.getGlobals("unitprice_precision"),10),ti=to.Z.getNettoSurchargeArticle(tO,ta),tr=to.Z.getBruttoSurchargeArticle(tO,ta);tF[tt]=[ti,tr,ta]}return ts.Z.setDispatch(tt,tE,null),tc.Z.checkDelivery(tt,tE),td.Z.updatePricebox(tt,th,tO,tb,t_),{group_name:t_,title:tb,title_q:[],title_item_qtext:"",hidden:tM,image_json:{},totalQuantityUnit:tf,totalsurcharge:tg,itemSurchargeOutput:tO,itemSurchargeOutput_json:tF,unitySurcharge_json:{},gesamtpreis:tp,basicPriceFlag:ta}}static getSurcharge(tt,ta){let ti;let tr=defaultsJSON[tt][1];return ti="#"+defaultsJSON[tt][2],tr?ta=to.Z.getSurcharge(tt,ti,ta):(ta[tt]=0,defaultsJSON[tt][5]={},defaultsJSON[tt][6]={},defaultsJSON[tt][7]={}),[ta]}}},863:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>td});var tr=ti(815),tn=ti(268),to=ti(691),tl=ti(35),ts=ti(184),tc=ti(316);class td{static updateFreeItem(tt,ta,ti,td,tu,tg,tp,tm){var th,tf;let tb,t_,ty;let tv='div.bogx--config.freeitem[data-key="'.concat(tt,'"]'),tx=document.querySelector(tv),tS=tx.getAttribute("data-valueid");defaultsJSON[tt][2]!==tS&&(defaultsJSON[tt][2]=tS),tf=tx.getAttribute("data-groupname"),th=tx.getAttribute("data-title"),th=tr.Z.cutStringByChar(th,"+");let tO=tx.getAttribute("data-id"),tA=0;if(t_=(tb=tn.Z.getItemSurcharge(!1,tg,tt,tu,ti)).surcharge,tg=tb.json,ty=t_,""!==tp&&"0"!==tp&&"#"!==tp){let ta=to.Z.formelEval(tt,tg,tp,ti,tu,th,tf,tO),tr=ta[0];th=ta[1],tf=ta[2],tx.setAttribute("data-value",tr),defaultsJSON[tt][1]=tr,0===tr?ty=0:"0"===tr?(tp="0",ty=0):"#"===tr?(tp="#",ty=0):ty=tr}let tE={};if(0!==ty&&"0"!==tp&&"#"!==tp){td+=ty,tu+=ty;let ta=parseInt(tr.Z.getGlobals("unitprice_precision"),10),ti=tn.Z.getNettoSurchargeArticle(ty,ta),to=tn.Z.getBruttoSurchargeArticle(ty,ta);tE[tt]=[ti,to,ta]}else tA=1;return tl.Z.setDispatch(tt,tx,null),ts.Z.checkDelivery(tt,tx),tc.Z.updatePricebox(tt,tp,ty,th,tf),{group_name:tf,title:th,title_q:[],title_item_qtext:"",hidden:tA,image_json:{},totalQuantityUnit:tm,totalsurcharge:td,itemSurchargeOutput:ty,itemSurchargeOutput_json:tE,unitySurcharge_json:{},gesamtpreis:tu,basicPriceFlag:ta}}static updateFreeItemValue(tt,ta,ti,tr,tn,td,tu,tg){var tp,tm;let th='div.bogx--config.freeitem[data-key="'.concat(tt,'"]'),tf=document.querySelector(th),tb=tf.getAttribute("data-valueid");defaultsJSON[tt][2]!==tb&&(defaultsJSON[tt][2]=tb),tm=tf.getAttribute("data-groupname"),tp=tf.getAttribute("data-title");let t_=tf.getAttribute("data-id"),ty=0,tv=0,tx=defaultsJSON[tt][4],tS=0,tO=tp;
10if(""!==tu&&"0"!==tu&&"#"!==tu){let ta=to.Z.formelEval(tt,td,tu,ti,tn,tp,tm,t_),tr=ta[0];tO=ta[1],tm=ta[2],0===tr||"0"===tr?tS=0:"#"===tr?(tS=0,tu="#"):(tS=tr,tf.setAttribute("data-value",tS),defaultsJSON[tt][1]=tS)}let tA={};return 0===tS||"#"===tu?(tu="#",ty=1):(tu="0",tp===tO&&(tp=tS,tx&&(tp=tS+" "+tx))),tl.Z.setDispatch(tt,tf,null),ts.Z.checkDelivery(tt,tf),tc.Z.updatePricebox(tt,tu,tv,tp,tm),{group_name:tm,title:tp,title_q:[],title_item_qtext:"",hidden:ty,image_json:{},totalQuantityUnit:tg,totalsurcharge:tr,itemSurchargeOutput:tv,itemSurchargeOutput_json:tA,unitySurcharge_json:{},gesamtpreis:tn,basicPriceFlag:ta}}static updateFreeItemText(tt,ta,ti,tr,tn,tl,td,tu){var tg,tp;let tm='div.bogx--config.freeitem[data-key="'.concat(tt,'"]'),th=document.querySelector(tm),tf=th.getAttribute("data-valueid");defaultsJSON[tt][2]!==tf&&(defaultsJSON[tt][2]=tf),tp=th.getAttribute("data-groupname"),tg=th.getAttribute("data-title");let tb=th.getAttribute("data-id"),t_=0,ty=0,tv=tg;if(""!==td&&"0"!==td&&"#"!==td){let ta=to.Z.formelEval(tt,tl,td,ti,tn,tg,tp,tb),tr=ta[0];tp=ta[2],0===tr||"0"===tr?tv="":"#"===tr?(tv="",td="#"):tv=tr}let tx={};return""===tv||"#"===td?(td="#",t_=1):(td="0",tg=tv),ts.Z.checkDelivery(tt,th),tc.Z.updatePricebox(tt,td,ty,tg,tp),{group_name:tp,title:tg,title_q:[],title_item_qtext:"",hidden:t_,image_json:{},totalQuantityUnit:tu,totalsurcharge:tr,itemSurchargeOutput:ty,itemSurchargeOutput_json:tx,unitySurcharge_json:{},gesamtpreis:tn,basicPriceFlag:ta}}static updateFreeItemGurtmass(tt,ta,ti,tr,tn,tl,td,tu){let tg='div.bogx--config.freeitem[data-key="'.concat(tt,'"]'),tp=document.querySelector(tg),tm=tp.getAttribute("data-valueid");defaultsJSON[tt][2]!==tm&&(defaultsJSON[tt][2]=tm);let th=null,tf=0,tb=0,t_="",ty="",tv=1;if(""!==td&&"0"!==td&&"#"!==td){let ta=to.Z.formelEval(tt,tl,td,ti,tn,t_,ty,th)[0];tp.setAttribute("data-value",ta),defaultsJSON[tt][1]=ta,tb=0===ta?0:"#"===ta?0:ta}let tx={};return td="#",additionalsJSON.gurtmass=tb,ts.Z.checkDelivery(tt,tp),tc.Z.updatePricebox(tt,td,tf,t_,ty),{group_name:ty,title:t_,title_q:[],title_item_qtext:"",hidden:tv,image_json:{},totalQuantityUnit:tu,totalsurcharge:tr,itemSurchargeOutput:tf,itemSurchargeOutput_json:tx,unitySurcharge_json:{},gesamtpreis:tn,basicPriceFlag:ta}}static updateFreeItemHandler(tt,ta,ti,tr,tn,tl,ts,tc){let td=0,tu="",tg="",tp=null,tm=1;""!==ts&&"0"!==ts&&"#"!==ts&&to.Z.formelEval(tt,tl,ts,ti,tn,tu,tg,tp);let th={};if(void 0!==bogxCustomStorage.bogx_data_total&&0!==bogxCustomStorage.bogx_data_total){let tt=bogxCustomStorage.bogx_data_total;tt!==tn&&(ta=!1,tr=tn=tt)}return{group_name:tg,title:tu,title_q:[],title_item_qtext:"",hidden:tm,image_json:{},totalQuantityUnit:tc,totalsurcharge:tr,itemSurchargeOutput:td,itemSurchargeOutput_json:th,unitySurcharge_json:{},gesamtpreis:tn,basicPriceFlag:ta}}static getSurchargeFreeItem(tt,ta){let ti='div.bogx--config.freeitem[data-key="'.concat(tt,'"]');return[ta=tn.Z.getSurcharge(tt,ti,ta)]}static getSurchargeFreeItemValue(tt,ta){let ti='div.bogx--config.freeitem[data-key="'.concat(tt,'"]');return[ta=tn.Z.getSurcharge(tt,ti,ta)]}static getSurchargeFreeItemGurtmass(tt,ta){let ti='div.bogx--config.freeitem[data-key="'.concat(tt,'"]');return[ta=tn.Z.getSurcharge(tt,ti,ta)]}}},949:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tg});var tr=ti(187),tn=ti(268),to=ti(691),tl=ti(35),ts=ti(184),tc=ti(316),td=ti(815),tu=ti(540);class tg{static update(tt,ta,ti,tu,tg,tp,tm,th){var tf,tb;let t_;let ty=0,tv="free_parameter_"+defaultsJSON[tt][2],tx=document.getElementById(tv);tb=tx.getAttribute("data-groupname");let tS=tx.getAttribute("data-unit"),tO=defaultsJSON[tt][4];ta="0"!==tx.getAttribute("data-baseprice_active");let tA=tx.getAttribute("data-id"),tE=tx.value;defaultsJSON[tt][1]!==tE&&(defaultsJSON[tt][1]=tE);let tN=0;"true"===tx.getAttribute("data-required")&&(tN=1,tE=(t_=tr.Z.valueErrorHandler(tt,[tx],"free",basketButtonActiveJSON))[0][0],basketButtonActiveJSON=t_[1]);let tw=0,tk=0,tI=0;if(""===tE||isNaN(tE))0===tN?(tm="#",ty=1):(tf=quantityErrors.empty,tm="0");else if(void 0!==tp[tt]){tw=tn.Z.getOutputSurcharge(tp[tt].surcharge)*(tk=tp[tt].value);let ta=parseFloat(tx.getAttribute("data-unitfactor"));tI=1!==ta?td.Z.roundWithUnitFactor(tk,ta):tk,tf=tE,tS&&(tf=tE+" "+tS),tO&&tI&&0!==tI&&(tf=tf+" = "+tI+" "+tO)}else tf=tE,tS&&(tf=tE+" "+tS),tm="0";if(""!==tm&&"0"!==tm&&"#"!==tm){let ta=to.Z.formelEval(tt,tp,tm,ti,tg,tf,tb,tA),tr=ta[0];tf=ta[1],tb=ta[2],0===tr?tw=0:"0"===tr?(tm="0",tw=0):"#"===tr?(tm="#",tw=0):tw=tr}else tm="0",tw=0;let tB={};if(0!==tw){tu+=tw,tg+=tw;let ta=parseInt(td.Z.getGlobals("unitprice_precision"),10),ti=tn.Z.getNettoSurchargeArticle(tw,ta),tr=tn.Z.getBruttoSurchargeArticle(tw,ta);tB[tt]=[ti,tr,ta]}return tl.Z.setDispatchParametrix(tt,[tx],tE,null,null),ts.Z.checkDelivery(tt,tx),tc.Z.updatePricebox(tt,tm,tw,tf,tb),{group_name:tb,title:tf,title_q:[],title_item_qtext:"",hidden:ty,image_json:{},totalQuantityUnit:th,totalsurcharge:tu,itemSurchargeOutput:tw,itemSurchargeOutput_json:tB,unitySurcharge_json:{},gesamtpreis:tg,basicPriceFlag:ta}}
10static getSurcharge(tt,ta,ti){let tr,tn,to;let tl="free_parameter_"+defaultsJSON[tt][2],ts=document.getElementById(tl);""!==ts.value&&(tr=parseFloat(ts.value));let tc=ts.getAttribute("min"),tg=ts.getAttribute("max");tc=void 0===tc||""===tc||"0"===tc?1:parseFloat(tc),tg=void 0===tg||""===tg||"0"===tg?0:parseFloat(tg);let tp=ts.getAttribute("data-surcharge");if("block_prices_items"===tp){let ta=td.Z.StringToJson(bogxSettings.parametrix_block_prices)[tt];to=tu.Z.chargingBlockPrices(tr,ta)}else to=parseFloat(tp);return!tr||tr<tc||tg&&tr>tg?(to=0,tn=0,defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0"):tn=tr*parseFloat(ts.getAttribute("data-unitfactor")),ta[tt]={surcharge:to,value:tn},[ta]}}},730:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tg});var tr=ti(187),tn=ti(815),to=ti(268),tl=ti(691),ts=ti(35),tc=ti(184),td=ti(316),tu=ti(803);class tg{static update(tt,ta,ti,ts,tc,tg,tp,tm){var th,tf;let tb,t_,ty,tv,tx,tS,tO,tA,tE,tN,tw,tk,tI,tB,tJ,tL,tZ,tD;let tC={},tM={},tq={},tF={},tP={},tT="",tH=defaultsJSON[tt][2],tj=defaultsJSON[tt][0],tG=parseInt(tn.Z.getGlobals("unitprice_precision"),10),tz=0,tR=0;tn.Z.getGlobals("parentgroup_active");let tW=document.getElementById(tt);tf=tW.getAttribute("data-groupname"),"true"===tW.getAttribute("data-required")&&(tz=1);let tU=tW.getAttribute("data-layout");tB="list"===tU?'div.bogx--config.image-list[data-key="'+tt+'"]':"select"===tU?'div.bogx--config.image-list[data-key="'+tt+'"]':'div.bogx--config.image-grid[data-key="'+tt+'"]';let tY=document.querySelectorAll(tB),tQ=tt+"_surcharge_grouptitle_wrap",tV=document.getElementById(tQ),t$="[id="+tt+"_surcharge_grouptitle_wrap]",tK=document.querySelectorAll(t$);tK&&(tK.forEach(tt=>tt.classList.add("bogx--hidden")),tV=tK[0]),tV&&tV.classList.contains("bogx--hidden")&&tV.classList.remove("bogx--hidden"),tY.forEach(tt=>tt.classList.remove("selected"));let tX=0,t0=0;if(tH.length>0){if(tw=tH[0],"list"===tU){let tt=tw+"_wrap";document.getElementById(tt).classList.add("selected"),tk=tw+"_div",tD=document.getElementById(tk).getAttribute("data-unitprice_active")}else if("select"===tU){let tt=tw+"_wrap";document.getElementById(tt).classList.add("selected"),tk=tw+"_div",tD=document.getElementById(tk).getAttribute("data-unitprice_active")}else tk=tw+"_wrap",document.getElementById(tk).classList.add("selected"),tD=document.getElementById(tk).getAttribute("data-unitprice_active");tI="#"+tk;let ta=document.getElementById(tk),ts=ta.getAttribute("data-id");if(1===tz&&(basketButtonActiveJSON=(tZ=tr.Z.multiSelectErrorHandler(tt,1,tW,basketButtonActiveJSON))[0]),th=ta.getAttribute("data-title"),th=tn.Z.cutStringByChar(th,"+"),"select"===tU){let ta=tt+"_select_header_image",ti=document.getElementById(ta);ti&&(ti.src=document.getElementById(tw).getAttribute("data-source"),ti.alt=th,ti.title=th);let tr=tt+"_select_header_title",tn=document.getElementById(tr);tn&&(tn.textContent=th,tn.classList.add("selected"))}if(tL=(tJ=to.Z.getItemSurcharge(tI,tg,tt,tc,ti)).surcharge,tg=tJ.json,tX=tL,""!==tp&&"0"!==tp&&"#"!==tp){let ta=tl.Z.formelEval(tt,tg,tp,ti,tc,th,tf,ts),tr=ta[0];th=ta[1],tf=ta[2],0===tr?t0=0:"0"===tr?(tp="0",t0=0):"#"===tr?(tp="#",t0=0):(t0=tr,tA=to.Z.getNettoSurchargeArticle(tX,tG),tE=to.Z.getBruttoSurchargeArticle(tX,tG),tF[tw]=[tA,tE,tG])}let tm=1;if(isNaN(parseInt(ta.getAttribute("data-quantity"),10))||(tm=parseInt(ta.getAttribute("data-quantity"),10)),"0"!==tp&&"#"!==tp&&0===t0?(isNaN(tS=parseFloat(surchargeJSONOrigin[tw]))&&(tS=0),tS=to.Z.getOutputSurcharge(tS),tA=to.Z.getNettoSurchargeArticle(tS,tG),tE=to.Z.getBruttoSurchargeArticle(tS,tG),tP[tw]=[tA,tE,tG],tx=tn.Z.numberToPriceDigits(tS,tG,1),tO="x $price",ty=th,"true"===tD?(t_=ty+"\n<b>"+tm+tO+"</b>",tT+="\n"+ty+" "+tm+","):(t_=ty,tT+="\n"+ty+",")):(0!==t0?(ty=th,tX=t0,tx=tn.Z.numberToPriceDigits(tX,tG,1),tO="$price",t_="true"===tD?ty+"\n<b>"+tO+"</b>":ty):t_=ty=th,tT+="\n"+ty+","),tv=t_,tb=t_,-1!==t_.indexOf("$price")&&(tb=t_.replace("$price",tx)),tb=tb.replace(/\n|\r\n|\r/g,"<br/>"),tv=tn.Z.escapeText(tv),t_=tn.Z.escapeText(t_),tq[tw]=document.getElementById(tw).getAttribute("data-source"),tM[tw]=tv,tC[tw]=t_,th=tC,tN=tM,"image_product"===tj)tu.Z.changeProductImage(ta);else if("image_product_fix"===tj){let tt=document.getElementById(tk).getAttribute("data-source");tt&&tu.Z.changeProductImageFix(tt)}td.Z.updatePriceboxForMultiselect(tt,tw,tp,tX,tb,tf)}else tR=1,tp="#",th="",1===tz?basketButtonActiveJSON=(tZ=tr.Z.multiSelectErrorHandler(tt,0,tW,basketButtonActiveJSON))[0]:tV.classList.add("bogx--hidden");if(0!==tX&&"0"!==tp&&"#"!==tp){ts+=tX,tc+=tX;let tt=to.Z.getNettoSurchargeArticle(tX,tG),ta=to.Z.getBruttoSurchargeArticle(tX,tG);tF[tw]=[tt,ta,tG]}return{group_name:tf,title:th,title_q:tN,title_item_qtext:tT,hidden:tR,image_json:tq,totalQuantityUnit:tm,totalsurcharge:ts,itemSurchargeOutput:tX,itemSurchargeOutput_json:tF,unitySurcharge_json:tP,gesamtpreis:tc,basicPriceFlag:ta}}static updateStandard(tt,ta,ti,tg,tp,tm,th,tf){var tb,t_;let ty,tv,tx,tS,tO;let tA=defaultsJSON[tt][0],tE=defaultsJSON[tt][1],tN=defaultsJSON[tt][2],tw=1,tk='div.bogx--config.image-grid[data-key="'+tt+'"]',tI=document.querySelector(tk),tB=document.querySelectorAll(tk);t_=tI.getAttribute("data-groupname");let tJ=0,tL=0;if("true"===document.getElementById(tt).getAttribute("data-required")&&(tL=1,basketButtonActiveJSON=tr.Z.selectErrorHandler(tt,tA,tE,tk,basketButtonActiveJSON)[0]),tE){tB.forEach(tt=>tt.classList.remove("selected")),tS='div.bogx--config.image-grid[data-key="'+tt+'"][data-value="'+tE+'"]',(tO=document.querySelector(tS)).classList.add("selected"),tb=tO.getAttribute("data-title"),tb=tn.Z.cutStringByChar(tb,"+");let ta=document.getElementById(tN).getAttribute("data-id");if(tb=tb.replace(/(<([^>]+)>)/ig," "),tv=(ty=to.Z.getItemSurcharge(tS,tm,tt,tp,ti)).surcharge,tm=ty.json,tx=tv,""!==th&&"0"!==th&&"#"!==th){let tr=tl.Z.formelEval(tt,tm,th,ti,tp,tb,t_,ta),tn=tr[0];tb=tr[1],t_=tr[2],0===tn?tx=0:"0"===tn?(th="0",tx=0):"#"===tn?(th="#",tx=0):tx=tn}if("image_product"===tA)tu.Z.changeProductImage(tO);else if("image_product_fix"===tA){let tt=document.getElementById(tN+"_wrap").getAttribute("data-source");tt&&tu.Z.changeProductImageFix(tt)}isNaN(parseInt(tO.getAttribute("data-quantity"),10))||(!isNaN(tw=parseInt(tO.getAttribute("data-quantity"),10))&&tw>1?tb=tw.toString()+"x "+tb:tw=1)}else tx=0,tS="",0===tL?(tJ=1,th="#"):(tb=globalErrors.noselected,th="0",tJ=1);let tZ={};if(0!==tx&&"0"!==th&&"#"!==th){tg+=tx,tp+=tx;let ta=parseInt(tn.Z.getGlobals("unitprice_precision"),10),ti=to.Z.getNettoSurchargeArticle(tx,ta),tr=to.Z.getBruttoSurchargeArticle(tx,ta);tZ[tt]=[ti,tr,ta]}return ts.Z.setDispatch(tt,tO,tw),tc.Z.checkDelivery(tt,tO),td.Z.updatePricebox(tt,th,tx,tb,t_),{group_name:t_,title:tb,title_q:[],title_item_qtext:"",hidden:tJ,image_json:{},totalQuantityUnit:tf,totalsurcharge:tg,itemSurchargeOutput:tx,itemSurchargeOutput_json:tZ,unitySurcharge_json:{},gesamtpreis:tp,basicPriceFlag:ta}}static getSurcharge(tt,ta){let ti=defaultsJSON[tt][2];if(ti.length>0){let tr="#"+ti[0];ta=to.Z.getSurcharge(tt,tr,ta)}else ta[tt]=0,defaultsJSON[tt][5]={},defaultsJSON[tt][6]={},defaultsJSON[tt][7]={};return[ta]}static getSurchargeStandard(tt,ta){let ti,tr=defaultsJSON[tt][1];return tr?(ti='div.bogx--config.image-grid[data-key="'+tt+'"][data-value="'+tr+'"]',ta=to.Z.getSurcharge(tt,ti,ta)):(ta[tt]=0,defaultsJSON[tt][2]="",defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0",defaultsJSON[tt][7]=""),[ta]}}}
10,206:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tu});var tr=ti(187),tn=ti(268),to=ti(691),tl=ti(184),ts=ti(316),tc=ti(815);class td{static getUploadFiles(tt,ta){let ti=[],tr="bogx_multiupload_data_"+tt;var tn=document.getElementById(tr);let to="bogx_multiupload_files_wrap_"+tt,tl=document.getElementById(to).querySelectorAll("div.bogx-dropzone-template-"+tt),ts=tn.getAttribute("data-min"),tc=tn.getAttribute("data-max"),td=tn.getAttribute("data-need"),tu=tn.getAttribute("data-rest");var tg=0;let tp=td,tm=tu;return tl?(tl.forEach(function(tt){tt.getAttribute("data-uuid")&&"undefined"!==tt.getAttribute("data-uuid")&&(ti.push({uuid:tt.getAttribute("data-uuid"),filename:tt.getAttribute("data-name"),filesize:tt.getAttribute("data-size"),fileext:tt.getAttribute("data-ext"),preview:tt.getAttribute("data-url")}),tg++)}),ti.length?(ta[tt]=ti,(tp=ts-tg)<0&&(tp=0),(tm=tc-tg)<0&&(tm=0)):(tp=ts,tm=tc)):(tp=ts,tm=tc),tn.setAttribute("data-need",tp),tn.setAttribute("data-rest",tm),tn.setAttribute("data-count",tg),tn.value=tg+" "+globalNotes.multiupload_counttext,ta}}class tu{static update(tt,ta,ti,tu,tg,tp,tm,th,tf){var tb,t_;let ty;let tv=0;tf=td.getUploadFiles(tt,tf);let tx="bogx_multiupload_data_"+tt,tS=document.getElementById(tx);defaultsJSON[tt][1]=tS.value;let tO=parseInt(tS.getAttribute("data-need"),10);parseInt(tS.getAttribute("data-min"),10);let tA=parseInt(tS.getAttribute("data-rest"),10),tE=parseInt(tS.getAttribute("data-count"),10);t_=tS.getAttribute("data-groupname");let tN=tr.Z.multiuploadErrorHandler(tt,tS,tO,tA,basketButtonActiveJSON),tw=tN[0];basketButtonActiveJSON=tN[1],tb=tw;let tk=0,tI=0,tB=!1;0===tO&&tE>0&&(tk=(ty=tn.Z.getItemSurcharge(tB,tp,tt,tg,ti)).surcharge,tp=ty.json,tI=tk);let tJ=tS.getAttribute("data-id");if(""!==tm&&"0"!==tm&&"#"!==tm){let ta=to.Z.formelEval(tt,tp,tm,ti,tg,tb,t_,tJ),tr=ta[0];tb=ta[1],t_=ta[2],0===tr?tI=0:"0"===tr?(tm="0",tI=0):"#"===tr?(tm="#",tI=0):tI=tr}let tL={};if(0!==tI){tu+=tI,tg+=tI;let ta=parseInt(tc.Z.getGlobals("unitprice_precision"),10),ti=tn.Z.getNettoSurchargeArticle(tI,ta),tr=tn.Z.getBruttoSurchargeArticle(tI,ta);tL[tt]=[ti,tr,ta]}return tl.Z.checkDelivery(tt,tS),ts.Z.updatePricebox(tt,tm,tI,tb,t_),{group_name:t_,title:tb,title_q:[],title_item_qtext:"",hidden:tv,image_json:{},totalQuantityUnit:th,totalsurcharge:tu,itemSurchargeOutput:tI,itemSurchargeOutput_json:tL,unitySurcharge_json:{},gesamtpreis:tg,basicPriceFlag:ta,multiupload_files_json:tf}}static getSurcharge(tt,ta){let ti=0,tr=1,to="bogx_multiupload_data_"+tt,tl=document.getElementById(to);return tl&&(ti=parseInt(tl.getAttribute("data-count"),10),tr=parseInt(tl.getAttribute("data-need"),10)),ti>0&&tr<1?ta=tn.Z.getSurcharge(tt,[tl],ta):ta[tt]=0,[ta]}}},218:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tp});var tr=ti(187),tn=ti(268),to=ti(691),tl=ti(35),ts=ti(184),tc=ti(316),td=ti(999),tu=ti(815),tg=ti(540);class tp{static update(tt,ta,ti,tg,tp,tm,th,tf){var tb,t_;let ty,tv,tx;let tS=defaultsJSON[tt][0],tO=defaultsJSON[tt][1],tA=defaultsJSON[tt][2],tE=tO,tN=0;"#"===th&&(th="0"),defaultsJSON[tt][4]&&(tf=defaultsJSON[tt][4]);let tw="bogx_quantity_"+tA,tk=document.getElementById(tw),tI=tk.getAttribute("data-total_unit");(""===tf||null==tf)&&(tf=tI),t_=tk.getAttribute("data-groupname");let tB=0,tJ=tk.getAttribute("data-id"),tL=!1,tZ=0;"true"===tk.getAttribute("data-required")&&(tZ=1,ty=tr.Z.quantityErrorHandler(tt,null,tk,basketButtonActiveJSON),"quantity_graduated"===tS?tE=ty[0]:totalQuantity=ty[0],basketButtonActiveJSON=ty[1]);let tD=totalQuantity,tC=tb=""===tf?totalQuantity:totalQuantity+" "+tf,tM=0,tq="";if("quantity_graduated"===tS&&(""!==defaultsJSON[tt][4]&&(tq=defaultsJSON[tt][4]),(""===tq||null==tq)&&(tq=tI),tx=(tv=tn.Z.getItemSurcharge(tw,tm,tt,tp,ti)).surcharge,tm=tv.json,1===(tN=parseInt(tk.getAttribute("data-total_flag"),10))&&(totalQuantity=tE,tf=tq,ta=!1)),""!==th&&"0"!==th&&"#"!==th){let ta=to.Z.formelEval(tt,tm,th,ti,tp,tb,t_,tJ),tr=ta[0];tb=ta[1],t_=ta[2],isNaN(parseInt(tk.value,10))||totalQuantity===parseInt(tk.value,10)?isNaN(parseInt(tk.value,10))&&(tL=!0):tD=parseInt(tk.value,10),0===tr?tM=0:"0"===tr?(th="0",tM=0):"#"===tr?(th="#",tM=0):tM=tr}else th="0",tM=0;tN=parseInt(tk.getAttribute("data-total_flag"),10),td.Z.quantityHandler(tN);let tF={};if(0!==tM){ta=!1,tg+=tM,tp+=tM;let ti=parseInt(tu.Z.getGlobals("unitprice_precision"),10),tr=tn.Z.getNettoSurchargeArticle(tM,ti),to=tn.Z.getBruttoSurchargeArticle(tM,ti);tF[tt]=[tr,to,ti]}return"quantity_graduated"===tS?(tb=""===tq?tE:tE+" "+tq,tO=tE):tL?tb=quantityErrors.empty:totalQuantity!==tD&&tb===t
10C&&(tb=""===tf?tD:tD+" "+tf,totalQuantity=tD,tO=tD),tl.Z.setDispatch(tt,tk,tO),ts.Z.checkDelivery(tt,tk),tc.Z.updatePricebox(tt,th,tM,tb,t_),{group_name:t_,title:tb,title_q:[],title_item_qtext:"",hidden:tB,image_json:{},totalQuantityUnit:tf,totalsurcharge:tg,itemSurchargeOutput:tM,itemSurchargeOutput_json:tF,unitySurcharge_json:{},gesamtpreis:tp,basicPriceFlag:ta}}static updateOnetime(tt,ta,ti,tr,td,tg,tp,tm){var th,tf;let tb=0,t_='div.bogx--config.freeitem[data-key="'+tt+'"]',ty=document.querySelector(t_);defaultsJSON[tt][2]=ty.getAttribute("data-valueid"),tf=ty.getAttribute("data-groupname"),th=ty.getAttribute("data-title"),th=tu.Z.cutStringByChar(th,"+");let tv=ty.getAttribute("data-id"),tx=tn.Z.getItemSurcharge(t_,tg,tt,td,ti),tS=tx.surcharge;if(tg=tx.json,""!==tp&&"0"!==tp&&"#"!==tp){let ta=to.Z.formelEval(tt,tg,tp,ti,td,th,tf,tv),tr=ta[0];th=ta[1],tf=ta[2],0===tr?tS=0:"0"===tr?(tp="0",tS=0):"#"===tr?(tp="#",tS=0):tS=tr}else"0"===tp&&(tS=0);let tO={};if(0!==tS){td+=tS,tr+=tS,tg.once+=tS;let ta=parseInt(tu.Z.getGlobals("unitprice_precision"),10),ti=tn.Z.getNettoSurchargeArticle(tS,ta),to=tn.Z.getBruttoSurchargeArticle(tS,ta);tO[tt]=[ti,to,ta];let tl=tt+"_surcharge_wrap",ts=document.getElementById(tl);ts.classList.remove("bogx--hidden"),ts.classList.contains("bogx--once")||ts.classList.add("bogx--once")}else tp="0";return tl.Z.setDispatch(tt,ty,null),ts.Z.checkDelivery(tt,ty),tc.Z.updatePricebox(tt,tp,tS,th,tf),{group_name:tf,title:th,title_q:[],title_item_qtext:"",hidden:tb,image_json:{},totalQuantityUnit:tm,totalsurcharge:tr,itemSurchargeOutput:tS,itemSurchargeOutput_json:tO,unitySurcharge_json:{},gesamtpreis:td,basicPriceFlag:ta}}static getSurchargeTotal(tt,ta){let ti=defaultsJSON[tt][1],tr="#bogx_quantity_"+defaultsJSON[tt][2];return ti?ta=tn.Z.getSurcharge(tt,tr,ta):ta[tt]=0,[ta]}static getSurchargeGraduated(tt,ta){let ti,tr,to=defaultsJSON[tt][1],tl="bogx_quantity_"+defaultsJSON[tt][2],ts=document.getElementById(tl);if(tl="#"+tl,to){if(ti=(ta=tn.Z.getSurcharge(tt,tl,ta))[tt],"graduated"===ts.getAttribute("data-surcharge")&&(ti="graduated"),isNaN(parseFloat(ti))){let ta=tu.Z.StringToJson(bogxSettings.bogx_quantity_graduated)[tt];tr=tg.Z.chargingQuantityGraduated(ta,to)}else tr=parseFloat(ti);tr*=to,ta[tt]=tr}else ta[tt]=0;return[ta]}static getSurchargeOnetime(tt,ta){let ti='div.bogx--config.freeitem[data-key="'+tt+'"]';return[ta=tn.Z.getSurcharge(tt,ti,ta)]}}},288:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tu});var tr=ti(187),tn=ti(815),to=ti(268),tl=ti(691),ts=ti(35),tc=ti(184),td=ti(316);class tu{static update(tt,ta,ti,tu,tg,tp,tm,th){var tf,tb;let t_,ty,tv,tx,tS;let tO=defaultsJSON[tt][0],tA=defaultsJSON[tt][1],tE=defaultsJSON[tt][2],tN=1,tw='input[data-key="'+tt+'"]',tk=document.querySelector(tw),tI=document.querySelectorAll(tw);tb=tk.getAttribute("data-groupname");let tB=0,tJ=0;"true"===document.getElementById(tt).getAttribute("data-required")&&(tJ=1,basketButtonActiveJSON=tr.Z.selectErrorHandler(tt,tO,tA,tw,basketButtonActiveJSON)[0]);let tL='div[data-key="'+tt+'"]';if(document.querySelectorAll(tL).forEach(tt=>tt.classList.remove("selected")),tI.forEach(tt=>tt.checked=!1),tA){let ta=tE+"_wrap";document.getElementById(ta).classList.add("selected"),tx="#"+tE,(tS=document.getElementById(tE)).checked=!0;let tr=tS.getAttribute("data-id");if(tf=tS.getAttribute("data-title"),tf=tn.Z.cutStringByChar(tf,"+"),ty=(t_=to.Z.getItemSurcharge(tx,tp,tt,tg,ti)).surcharge,tp=t_.json,tv=ty,""!==tm&&"0"!==tm&&"#"!==tm){let ta=tl.Z.formelEval(tt,tp,tm,ti,tg,tf,tb,tr),tn=ta[0];tf=ta[1],tb=ta[2],0===tn?tv=0:"0"===tn?(tm="0",tv=0):"#"===tn?(tm="#",tv=0):tv=tn}isNaN(parseInt(tS.getAttribute("data-quantity"),10))||(!isNaN(tN=parseInt(tS.getAttribute("data-quantity"),10))&&tN>1?tf=tN.toString()+"x "+tf:tN=1)}else tv=0,tx="",0===tJ?(tB=1,tm="#"):(tf=globalErrors.noselected,tm="0",tB=1);let tZ={};if(0!==tv&&"0"!==tm&&"#"!==tm){tu+=tv,tg+=tv;let ta=parseInt(tn.Z.getGlobals("unitprice_precision"),10),ti=to.Z.getNettoSurchargeArticle(tv,ta),tr=to.Z.getBruttoSurchargeArticle(tv,ta);tZ[tt]=[ti,tr,ta]}return ts.Z.setDispatch(tt,tS,tN),tc.Z.checkDelivery(tt,tS),td.Z.updatePricebox(tt,tm,tv,tf,tb),{group_name:tb,title:tf,title_q:[],title_item_qtext:"",hidden:tB,image_json:{},totalQuantityUnit:th,totalsurcharge:tu,itemSurchargeOutput:tv,itemSurchargeOutput_json:tZ,unitySurcharge_json:{},gesamtpreis:tg,basicPriceFlag:ta}}static getSurcharge(tt,ta){let ti,tr=defaultsJSON[tt][1];return tr?(ti='input[data-key="'+tt+'"][value="'+tr+'"]',ta=to.Z.getSurcharge(tt,ti,ta)):(ta[tt]=0,defaultsJSON[tt][2]="",defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0",defaultsJSON[tt][7]=""),[ta]}}}
10,26:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tg});var tr=ti(187),tn=ti(815),to=ti(268),tl=ti(691),ts=ti(35),tc=ti(184),td=ti(316),tu=ti(999);class tg{static update(tt,ta,ti,tg,tp,tm,th,tf){var tb,t_;let ty,tv,tx,tS,tO;let tA=defaultsJSON[tt][0],tE=defaultsJSON[tt][1],tN=defaultsJSON[tt][2],tw=0,tk=1,tI="select_"+tt,tB=document.getElementById(tI),tJ=tB.querySelectorAll("option");t_=tB.getAttribute("data-groupname");let tL=0,tZ=0;if("true"===document.getElementById(tt).getAttribute("data-required")){tZ=1;let ta="#"+tt;basketButtonActiveJSON=tr.Z.selectErrorHandler(tt,tA,tE,ta,basketButtonActiveJSON)[0]}if(tJ.forEach(tt=>tt.classList.remove("selected")),tE){tS='option[value="'.concat(tE,'"]'),tS="#"+(tN=(tO=tB.querySelectorAll(tS)[0]).getAttribute("data-valueid")),tO.classList.add("selected"),tO.selected=!0;let ta=tO.getAttribute("data-id");if(tb=tO.getAttribute("data-title"),tb=tn.Z.cutStringByChar(tb,"+"),tv=(ty=to.Z.getItemSurcharge(tS,tm,tt,tp,ti)).surcharge,tm=ty.json,tx=tv,""!==th&&"0"!==th&&"#"!==th){let tr=tl.Z.formelEval(tt,tm,th,ti,tp,tb,t_,ta),tn=tr[0];tb=tr[1],t_=tr[2],0===tn?tx=0:"0"===tn?(th="0",tx=0):"#"===tn?(th="#",tx=0):tx=tn}isNaN(parseInt(tO.getAttribute("data-quantity"),10))||(!isNaN(tk=parseInt(tO.getAttribute("data-quantity"),10))&&tk>1?tb=tk.toString()+"x "+tb:tk=1),"quantity_select"===tA&&(tf=document.getElementById(tt).getAttribute("data-total_unit"),""===tE||isNaN(parseInt(tE,10))||(totalQuantity=parseInt(tE,10)),tw=1,tu.Z.quantityHandler(tw))}else{tJ.forEach(function(tt){tt.classList.contains("selected")&&(tt.classList.remove("selected"),tt.selected=!1)}),tI="select_"+tt;let ta=(tB=document.getElementById(tI)).querySelectorAll('option[data-id="#"]')[0];if(ta)ta.selected=!0;else{let tt=globalNotes.please_select,ta='<option disabled selected value="" data-id="#">'+tt+"</option>";tB.prepend(ta);let ti=new Option(tt,"",!0,!0);ti.setAttribute("data-id","#"),ti.disabled=!0,tB.insertBefore(ti,tB.firstChild)}tx=0,0===tZ?(tL=1,th="#"):(tb=globalErrors.noselected,th="0",tL=1),tO=null}let tD={};if(0!==tx&&"0"!==th&&"#"!==th){"quantity_select"===tA&&(ta=!1),tg+=tx,tp+=tx;let ti=parseInt(tn.Z.getGlobals("unitprice_precision"),10),tr=to.Z.getNettoSurchargeArticle(tx,ti),tl=to.Z.getBruttoSurchargeArticle(tx,ti);tD[tt]=[tr,tl,ti]}return ts.Z.setDispatch(tt,tO,tk),tc.Z.checkDelivery(tt,tO),td.Z.updatePricebox(tt,th,tx,tb,t_),{group_name:t_,title:tb,title_q:[],title_item_qtext:"",hidden:tL,image_json:{},totalQuantityUnit:tf,totalsurcharge:tg,itemSurchargeOutput:tx,itemSurchargeOutput_json:tD,unitySurcharge_json:{},gesamtpreis:tp,basicPriceFlag:ta}}static getSurcharge(tt,ta){let ti,tr,tn,tl=defaultsJSON[tt][1];return tl?(ti="select_"+tt,tr=document.getElementById(ti),tn='option[value="'.concat(tl,'"]'),tn="#"+tr.querySelectorAll(tn)[0].getAttribute("data-valueid"),ta=to.Z.getSurcharge(tt,tn,ta)):(ta[tt]=0,defaultsJSON[tt][2]="",defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0",defaultsJSON[tt][7]="",defaultsJSON[tt][9]=""),[ta,defaultsJSON]}}},930:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>td});var tr=ti(187),tn=ti(815),to=ti(268),tl=ti(691),ts=ti(184),tc=ti(316);class td{static update(tt,ta,ti,td,tu,tg,tp,tm){let th,tf,tb,t_,ty;var tv,tx,tS="";let tO=defaultsJSON[tt][0],tA=defaultsJSON[tt][1],tE="text_date_"+tt,tN=document.getElementById(tE);tA&&tA!==tN.value&&(tN.value=tA),tx=tN.getAttribute("data-groupname");let tw=0,tk=0;"true"===tN.getAttribute("data-required")&&(tk=1,tA=(th=tr.Z.textErrorHandler(tt,tO,tE,basketButtonActiveJSON))[0],basketButtonActiveJSON=th[1]);let tI=tN.getAttribute("data-id");if(tA){if(tv=tA,tb=(tf=to.Z.getItemSurcharge(!1,tg,tt,tu,ti)).surcharge,tg=tf.json,t_=tb,""!==tp&&"0"!==tp&&"#"!==tp){let ta=tl.Z.formelEval(tt,tg,tp,ti,tu,tv,tx,tI),tr=ta[0];tv=ta[1],tx=ta[2],0===tr?t_=0:"0"===tr?(tp="0",t_=0):"#"===tr?(tp="#",t_=0):t_=tr}}else tl.Z.formelEval(tt,tg,tp,ti,tu,"","",tI),t_=0,tv="",0===tk?(tw=1,tp="#"):(tv=globalErrors.error_empty,tp="0");tv?tS=tv:0===tk?(tp="#",tS=""):tS=null;let tB={};if(0!==t_&&"0"!==tp&&"#"!==tp){td+=t_,tu+=t_;let ta=parseInt(tn.Z.getGlobals("unitprice_precision"),10),ti=to.Z.getNettoSurchargeArticle(t_,ta),tr=to.Z.getBruttoSurchargeArticle(t_,ta);tB[tt]=[ti,tr,ta]}return ts.Z.checkDelivery(tt,ty),tc.Z.updatePricebox(tt,tp,t_,tS,tx),{group_name:tx,title:tv,title_q:[],title_item_qtext:"",hidden:tw,image_json:{},totalQuantityUnit:tm,totalsurcharge:td,itemSurchargeOutput:t_,itemSurchargeOutput_json:tB,unitySurcharge_json:{},gesamtpreis:tu,basicPriceFlag:ta}}static getSurcharge(tt,ta){let ti;return defaultsJSON[tt][1]?(ti="#text_date_"+tt,ta=to.Z.getSurcharge(tt,ti,ta)):(ta[tt]=0,defaultsJSON[tt][2]="",defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0",defaultsJSON[tt][7]=""),[ta,defaultsJSON]}}}
10,282:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tu});var tr=ti(187),tn=ti(815),to=ti(268),tl=ti(691),ts=ti(35),tc=ti(184),td=ti(316);class tu{static update(tt,ta,ti,tu,tg,tp,tm,th){let tf,tb,t_,ty,tv,tx;var tS,tO,tA="";let tE=defaultsJSON[tt][0],tN=defaultsJSON[tt][1];"text"===tE?tf="text_"+tt:"text_date"===tE?tf="text_date_"+tt:"text_time"===tE?tf="text_time_"+tt:"text_area"===tE&&(tf="textarea_"+tt);let tw=document.getElementById(tf);tN&&tN!==tw.value&&(tw.value=tN),tO=tw.getAttribute("data-groupname");let tk=0,tI=0;if("true"===tw.getAttribute("data-required")&&(tI=1,tN=(tb=tr.Z.textErrorHandler(tt,tE,tf,basketButtonActiveJSON))[0],basketButtonActiveJSON=tb[1]),tN){tS=tN;let ta=tw.getAttribute("data-id");if(ty=(t_=to.Z.getItemSurcharge(!1,tp,tt,tg,ti)).surcharge,tp=t_.json,tv=ty,""!==tm&&"0"!==tm&&"#"!==tm){let tr=tl.Z.formelEval(tt,tp,tm,ti,tg,tS,tO,ta),tn=tr[0];tS=tr[1],tO=tr[2],0===tn?tv=0:"0"===tn?(tm="0",tv=0):"#"===tn?(tm="#",tv=0):tv=tn}}else tv=0,tS="",0===tI?(tk=1,tm="#"):(tS=globalErrors.error_empty,tm="0");"text_date"===tE&&tS!==globalErrors.error_empty&&(tS=tn.Z.changeFormatDateUsToEur(tS)),tS?tA=(tS=tn.Z.escapeText(tS)).replace(/\n|\r\n|\r/g,"<br/>"):0===tI?(tm="#",tA=""):tA=null;let tB="bogx_text_"+tt+"_rest";"text_area"===tE&&(tB="bogx_textarea_"+tt+"_rest");let tJ=document.getElementById(tB),tL=0;if(tJ){let tt=tw.getAttribute("maxlength");tt&&(tL=parseInt(tt,10)-tw.value.length,tJ.textContent=tL)}let tZ={};if(0!==tv&&"0"!==tm&&"#"!==tm){tu+=tv,tg+=tv;let ta=parseInt(tn.Z.getGlobals("unitprice_precision"),10),ti=to.Z.getNettoSurchargeArticle(tv,ta),tr=to.Z.getBruttoSurchargeArticle(tv,ta);tZ[tt]=[ti,tr,ta]}return ts.Z.setDispatch(tt,tx,null),tc.Z.checkDelivery(tt,tx),td.Z.updatePricebox(tt,tm,tv,tA,tO),{group_name:tO,title:tS,title_q:[],title_item_qtext:"",hidden:tk,image_json:{},totalQuantityUnit:th,totalsurcharge:tu,itemSurchargeOutput:tv,itemSurchargeOutput_json:tZ,unitySurcharge_json:{},gesamtpreis:tg,basicPriceFlag:ta}}static getSurcharge(tt,ta){let ti,tr=defaultsJSON[tt][1],tn=defaultsJSON[tt][0];return tr?("text"===tn?ti="#text_"+tt:"text_date"===tn?ti="#text_date_"+tt:"text_time"===tn?ti="#text_time_"+tt:"text_area"===tn&&(ti="#textarea_"+tt),ta=to.Z.getSurcharge(tt,ti,ta)):(ta[tt]=0,defaultsJSON[tt][2]="",defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0",defaultsJSON[tt][7]=""),[ta,defaultsJSON]}static inputText(tt){let ta=tt,ti=ta.getAttribute("data-key");defaultsJSON[ti][1]=ta.value,defaultsJSON[ti][2]=ta.getAttribute("data-valueid"),defaultsJSON[ti][7]=ta.getAttribute("data-ocb")}static inputTextArea(tt){let ta=tt,ti=ta.getAttribute("data-key");defaultsJSON[ti][1]=ta.value,defaultsJSON[ti][2]=ta.getAttribute("data-valueid"),defaultsJSON[ti][7]=ta.getAttribute("data-ocb")}}},361:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>to});var tr=ti(316),tn=ti(815);class to{static updateBlackoptions(){let tt=[],ta=[],ti=!0;if("{}"!==JSON.stringify(blackoptions_product)){let ta=tn.Z.getGlobals("product_ordernumber");for(let ti in blackoptions_product)if(blackoptions_product.hasOwnProperty(ti)&&ti===ta){let ta=blackoptions_product[ti];if("{}"!==JSON.stringify(ta)){let ti=this.setBlackoptions(ta);tt.push(ti)}}}for(let ta in blackoptions)if(blackoptions.hasOwnProperty(ta)){let ti;let tr=ta+"_wrap",tn=document.getElementById(tr),to=document.getElementById(ta),tl='div.freeitem-handler[data-valueid="'+ta+'"]',ts=document.querySelector(tl);if(tn&&tn.classList.contains("selected")?ti=blackoptions[ta]:to&&to.classList.contains("selected")?ti=blackoptions[ta]:ts&&(ti=blackoptions[ta]),ti){let ta=this.setBlackoptions(ti);tt.push(ta)}}for(var tr=0;tr<tt.length;tr++){ta=tt[tr];for(var to=0;to<ta.length;to++)if(ti=ta[to]){tr=tt.length;break}}return ti}static setBlackoptions(tt){let ta;var ti=this;let tr=[],tn="is--disabled",to=bogxSettings.bogx_blackoptions_disabled;return void 0!==to&&"invisible"===to&&(tn="is--disabled-hidden"),Object.keys(tt).forEach(function(to){let tl=tt[to],ts=!1;""===tl&&(ts=!0);let tc=tl+"_wrap",td=document.getElementById(tc),tu=document.getElementById(tl);if(td&&!td.classList.contains(tn)){if(td.classList.add(tn),td.classList.contains("selected")){ts=!0,ta=td.getAttribute("data-datatype");let tt=td.getAttribute("data-key");ti.initBlackoptionsDefaults(tt,tl)}}else if(tu&&tu.classList.contains("bogx--config")&&!tu.classList.contains(tn)&&(tu.classList.add(tn),tu.disabled=!0,tu.classList.contains("selected"))){ts=!0,ta="select";let tt=tu.getAttribute("data-key");ti.initBlackoptionsDefaults(tt,null)}tr.push(ts)}),tr}static initBlackoptionsDefaults(tt,ta){let ti,to,tl=defaultsJSON[tt][0];"extended"===bogxSettings.bogx_image_mode?(ti=["select","quantity_select","radiobutton","color","color_title","color_product","color_product_fix","checkbox","shape_img","shape","font_size","font_color","shape_color","background","background_color"],to=["checkbox_set","checkbox_quantity","article_virtual_single","article_virtual_multi","article_multi_select","article_single_select","acc_multi_select","acc_single_select","variant_multi_select","variant_single_select","image","image_title","image_title_price","image_product","image_product_fix"]):(ti=["select","quantity_select","radiobutton","color","color_title","color_product","color_product_fix","checkbox","shape_img","shape","font_size","font_color","shape_color","background","background_color","image","image_title","image_title_price","image_product","image_product_fix","boxed_title","boxed_title_price","multilayer"],to=["checkbox_set","checkbox_quantity","article_virtual_single","article_virtual_multi","article_multi_select","article_single_select","acc_multi_select","acc_single_select","variant_multi_select","variant_single_select"]),ti.indexOf(tl)>-1?(defaultsJSON[tt][1]="",defaultsJSON[tt][2]="",defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0",defaultsJSON[tt][7]=""):to.indexOf(tl)>-1&&(delete defaultsJSON[tt][1][ta],defaultsJSON[tt][2]=tn.Z.removeArrayItem(defaultsJSON[tt][2],ta),delete defaultsJSON[tt][4][ta
10],delete defaultsJSON[tt][5][ta],delete defaultsJSON[tt][6][ta],delete defaultsJSON[tt][7][ta],tr.Z.updatePriceboxForMultiselect(tt,ta,"#",0,"",""))}static getBlackoptionsProduct(tt){if(null!=tt&&""!==tt){let ta=tn.Z.getGlobals("product_ordernumber"),ti=tt.replace(/ /g,"").split(",");blackoptions_product[ta]=JSON.parse(JSON.stringify(Object.assign({},ti)))}}}},803:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>to});var tr=ti(109),tn=ti(815);class to{static changeProductImage(tt){var ta=0;let ti="bogx_config_image_container";var tn=document.getElementById(ti);let to="bogx_product_image",tl=document.getElementById(to),ts="bogx_image_title",tc=document.getElementById(ts),td="bogx_product_image_href";document.getElementById(td);var tu=document.querySelector(".gallery-slider-row");document.getElementById("bogx_modal_image")&&(ta=1);let tg=tt.getAttribute("data-source")+"?image="+tt.getAttribute("data-valueid"),tp=tt.getAttribute("data-title"),tm='<div class="bogx--image-media"><img id="'.concat(to,'" src="').concat(tg,'" alt="').concat(tp,'" title="').concat(tp,'"></div>');tm+='<div id="'.concat(ts,'" class="bogx--image-title">').concat(tp,"</div>");let th='<div class="bogx--config-productimage-reset">';if(th+='<a id="bogx_config_productimage_reset" href="" class="btn btn-outline-secondary reset--button">'+globalHelper.imagesproduct_btn_title+'<i class="bogx--icon-reset"></i></a></div>',0===ta){if(tn&&tl)tl.src=tg,tl.alt=tp,tl.title=tp,tc.innerHTML=tp;else{let tt=document.createElement("div");tt.setAttribute("id",ti),tt.classList.add("product--image-container"),tu.before(tt),tt.innerHTML=tm+th,tn=document.getElementById(ti),tl=document.getElementById(to)}tn.classList.contains("bogx--hidden")&&tn.classList.remove("bogx--hidden"),tu.classList.add("bogx--hidden"),tl.addEventListener("load",function(){"sticky"===document.getElementById("bogx_config_pricebox_wrap").getAttribute("data-pricebox_position")&&"sidebar"!==bogxSettings.bogx_config_location&&window.innerWidth>=767&&document.getElementById("bogx_pricebox_sticky_panel")&&new tr.Z(".bogx--pricebox-sticky-panel",{marginBottom:20}).update()})}else{let tt=document.getElementById("bogx_modal_image_element");if(tm='<span class="image--media"><img id="'.concat(to,'" src="').concat(tg,'" alt="').concat(tp,'" title="').concat(tp,'"></span>')+'<span class="image--title">'.concat(tp,"</span>"),tn&&tl)tl.src=tg,tl.alt=tp,tl.title=tp,tc.innerHTML=tp;else{let ta=document.createElement("div");ta.setAttribute("id",ti),ta.classList.add("product--image-container"),tt.before(ta),ta.innerHTML=tm+th,tn=document.getElementById(ti)}tn.classList.contains("bogx--hidden")&&tn.classList.remove("bogx--hidden"),tt.classList.add("bogx--hidden")}let tf="bogx_config_productimage_reset";document.getElementById(tf).addEventListener("click",function(tt){tt.preventDefault(),0===ta?(tu.classList.remove("bogx--hidden"),tn.classList.add("bogx--hidden"),"sticky"===document.getElementById("bogx_config_pricebox_wrap").getAttribute("data-pricebox_position")&&"sidebar"!==bogxSettings.bogx_config_location&&window.innerWidth>=767&&document.getElementById("bogx_pricebox_sticky_panel")&&new tr.Z(".bogx--pricebox-sticky-panel",{marginBottom:20}).update()):(document.getElementById("bogx_modal_image_element").classList.remove("bogx--hidden"),tn.classList.add("bogx--hidden"))},!1)}static changeProductImageFix(tt){let ta;var ti=0;let to="bogx_config_image_container";var tl=document.getElementById(to);let ts="bogx_product_image",tc=document.getElementById(ts),td="bogx_product_image_href";document.getElementById(td);let tu="bogx_pricebox_sticky_panel";document.getElementById(tu);var tg=document.querySelector(".gallery-slider-row");(ta="http"===tt.substring(0,4)?tt:tn.Z.getGlobals("images_path")+tt)!==tn.Z.getGlobals("product_image")&&tn.Z.setGlobals("product_image",ta),document.getElementById("bogx_modal_image")&&(ti=1);let tp='<div class="bogx--image-media"><img id="'.concat(ts,'" src="').concat(ta,'" alt=""></div>');if(0===ti){if(tl&&tc)tc.src=ta;else{let tt=document.createElement("div");tt.setAttribute("id",to),tt.classList.add("product--image-container"),tg.before(tt),tt.innerHTML=tp,tl=document.getElementById(to),tc=document.getElementById(ts)}tl.classList.contains("bogx--hidden")&&tl.classList.remove("bogx--hidden"),tg.classList.add("bogx--hidden"),tc.addEventListener("load",function(){"sticky"===document.getElementById("bogx_config_pricebox_wrap").getAttribute("data-pricebox_position")&&"sidebar"!==bogxSettings.bogx_config_location&&window.innerWidth>=767&&document.getElementById("bogx_pricebox_sticky_panel")&&new tr.Z(".bogx--pricebox-sticky-panel",{marginBottom:20}).update()})}else{let tt=document.getElementById("bogx_modal_image_element");
10if(tp='<span class="image--media"><img id="'.concat(ts,'" src="').concat(ta,'" alt="" title=""></span>'),tl&&tc)tc.src=ta;else{let ta=document.createElement("div");ta.setAttribute("id",to),ta.classList.add("product--image-container"),tt.before(ta),tl=document.getElementById(to)}tl.classList.contains("bogx--hidden")&&tl.classList.remove("bogx--hidden"),tt.classList.add("bogx--hidden")}}}},540:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tn});var tr=ti(815);class tn{static chargingQuantityGraduated(tt,ta){if("{}"===JSON.stringify(tt))return 0;for(let ti=0,tr=Object.keys(tt);ti<tr.length;ti++){if(!tt.hasOwnProperty(tr[ti]))return 0;if(!tr[ti+1]||ta>=parseInt(tr[ti],10)&&ta<parseInt(tr[ti+1],10))return parseFloat(tt[tr[ti]])}}static chargingBlockPrices(tt,ta){let ti;let tr=bogxSettings.bogx_charging_mode;return(null===tr&&(tr="regressive"),"{}"!==JSON.stringify(ta))?ti="regressive"===tr?this.chargingBlockPricesRegressive(tt,ta):this.chargingBlockPricesProgressive(tt,ta):0}static chargingBlockPricesRegressive(tt,ta){let ti;let tn=parseFloat(bogxSettings.global_discount_factor),to=parseInt(tr.Z.getGlobals("unitprice_precision"),10);if("{}"===JSON.stringify(ta))return 0;for(let tl=0,ts=Object.keys(ta);tl<ts.length;tl++){if(!ta.hasOwnProperty(ts[tl]))return 0;if(!ts[tl+1]||tt>=parseFloat(ts[tl])&&tt<parseFloat(ts[tl+1]))return ti=tr.Z.round(parseFloat(ta[ts[tl]]),to),tn<1&&(ti*=tn),ti}}static chargingBlockPricesProgressive(tt,ta){let ti;let tn=parseFloat(bogxSettings.global_discount_factor),to=parseInt(tr.Z.getGlobals("unitprice_precision"),10);if("{}"===JSON.stringify(ta))return 0;for(let tl=0,ts=Object.keys(ta);tl<ts.length;tl++){if(!ta.hasOwnProperty(ts[tl]))return 0;if(!ts[tl+1]||0===tl&&tt<=parseFloat(ts[tl]))return ti=tr.Z.round(parseFloat(ta[ts[tl]]),to),tn<1&&(ti*=tn),ti;if(tt>parseInt(ts[tl],10)&&tt<=parseInt(ts[tl+1],10))return ti=tr.Z.round(parseFloat(ta[ts[tl+1]]),to),tn<1&&(ti*=tn),ti}}static chargingMatrixPrices(tt,ta,ti){let tr;let tn=bogxSettings.bogx_charging_mode;return(null===tn&&(tn="regressive"),"{}"!==JSON.stringify(ti))?tr="regressive"===tn?this.chargingMatrixPricesRegressive(tt,ta,ti):this.chargingMatrixPricesProgressive(tt,ta,ti):0}static chargingMatrixPricesRegressive(tt,ta,ti){let tn,to,tl,ts;let tc=parseFloat(bogxSettings.global_discount_factor),td=parseInt(tr.Z.getGlobals("unitprice_precision"),10);for(let tu=0,tg=Object.keys(ti);tu<tg.length;tu++){if(!ti.hasOwnProperty(tg[tu]))return 0;if(tg[tu+1]){if(tt>=parseInt(tg[tu],10)&&tt<parseInt(tg[tu+1],10))for(to=0,tl=Object.keys(tn=ti[tg[tu]]);to<tl.length;to++){if(!tn.hasOwnProperty(tl[to]))return 0;if(!tl[to+1]||ta>=parseInt(tl[to],10)&&ta<parseInt(tl[to+1],10))return ts=tr.Z.round(parseFloat(tn[tl[to]]),td),tc<1&&(ts*=tc),ts}}else for(to=0,tl=Object.keys(tn=ti[tg[tu]]);to<tl.length;to++){if(!tn.hasOwnProperty(tl[to]))return 0;if(!tl[to+1]||ta>=parseInt(tl[to],10)&&ta<parseInt(tl[to+1],10))return ts=tr.Z.round(parseFloat(tn[tl[to]]),td),tc<1&&(ts*=tc),ts}}}static chargingMatrixPricesProgressive(tt,ta,ti){let tn,to,tl,ts;let tc=parseFloat(bogxSettings.global_discount_factor),td=parseInt(tr.Z.getGlobals("unitprice_precision"),10);for(let tu=0,tg=Object.keys(ti);tu<tg.length;tu++){if(!ti.hasOwnProperty(tg[tu]))return 0;if(tg[tu+1]){if(0===tu&&tt<=parseInt(tg[tu],10))for(to=0,tl=Object.keys(tn=ti[tg[tu]]);to<tl.length;to++){if(!tn.hasOwnProperty(tl[to]))return 0;if(!tl[to+1]||0===to&&ta<=parseInt(tl[to],10))return ts=tr.Z.round(parseFloat(tn[tl[to]]),td),tc<1&&(ts*=tc),ts;if(ta>parseInt(tl[to],10)&&ta<=parseInt(tl[to+1],10))return ts=tr.Z.round(parseFloat(tn[tl[to+1]]),td),tc<1&&(ts*=tc),ts}else if(tt>parseInt(tg[tu],10)&&tt<=parseInt(tg[tu+1],10))for(to=0,tl=Object.keys(tn=ti[tg[tu+1]]);to<tl.length;to++){if(!tn.hasOwnProperty(tl[to]))return 0;if(!tl[to+1]||0===to&&ta<=parseInt(tl[to],10))return ts=tr.Z.round(parseFloat(tn[tl[to]]),td),tc<1&&(ts*=tc),ts;if(ta>parseInt(tl[to],10)&&ta<=parseInt(tl[to+1],10))return ts=tr.Z.round(parseFloat(tn[tl[to+1]]),td),tc<1&&(ts*=tc),ts}}else for(to=0,tl=Object.keys(tn=ti[tg[tu]]);to<tl.length;to++){if(!tn.hasOwnProperty(tl[to]))return 0;if(!tl[to+1]||0===to&&ta<=parseInt(tl[to],10))return ts=tr.Z.round(parseFloat(tn[tl[to]]),td),tc<1&&(ts*=tc),ts;if(ta>parseInt(tl[to],10)&&ta<=parseInt(tl[to+1],10))return ts=tr.Z.round(parseFloat(tn[tl[to+1]]),td),tc<1&&(ts*=tc),ts}}}static getKeysBfromMatrixRegressive(tt,ta){let ti,tr,tn,to=[];for(let tl=0,ts=Object.keys(ta);tl<ts.length;tl++)if(ta.hasOwnProperty(ts[tl])){if(ts[tl+1]){if(tt>=parseInt(ts[tl],10)&&tt<parseInt(ts[tl+1],10))for(tr=0,tn=Object.keys(ti=ta[ts[tl]]);tr<tn.length;tr++)ti.hasOwnProperty(tn[tr])&&to.push(tn[tr])}else if(ti=ta[ts[tl]],tt>=parseInt(ts[tl],10))for(tr=0,tn=Object.keys(ti);tr<tn.length;tr++)ti.hasOwnProperty(tn[tr])&&to.push(tn[tr])}return to}}}
10,815:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tr});class tr{static getGlobals(tt){let ta="bogx_config",ti=document.getElementById(ta).getAttribute("data-bogx-product-configurator-options");return this.StringToJson(ti).configuratorGlobals[tt]}static setGlobals(tt,ta){let ti="bogx_config",tr="data-bogx-product-configurator-options",tn=document.getElementById(ti),to=tn.getAttribute(tr),tl=this.StringToJson(to);tl.configuratorGlobals[tt]=ta,to=JSON.stringify(tl),tn.setAttribute(tr,to)}static convertDefaultsToJson(tt){let ta,ti;let tr={},tn=JSON.parse(tt);for(ta in tn)if(tn.hasOwnProperty(ta)){for(ti in tn[ta])if(tn[ta].hasOwnProperty(ti)&&(tr[ti]=tn[ta][ti],("color_title"===tr[ti][0]||"color_product"===tr[ti][0]||"color_product_fix"===tr[ti][0])&&tr[ti][1])){let tt=tr[ti][1];tt.includes("@")&&(tt=tt.replace("@","")),tr[ti][1]=tt}}return tr}static StringToJson(tt){return void 0!==tt&&""!==tt&&"[]"!==tt&&"{}"!==tt&&"{}"!==JSON.stringify(tt)?JSON.parse(tt):{}}static blockPricesInit(tt){let ta=document.getElementById(tt),ti="data-blockprices",tr=ta.getAttribute(ti);return tr?this.StringToJson(tr):"0"}static round(tt,ta){let ti=Math.pow(10,ta);return Math.round(tt*ti)/ti}static rundByStep(tt,ta){let ti=tt.toString(),tr=tt;return Number.isInteger(ta)&&-1!==ti.indexOf(".")&&(tr=parseInt(ti,10)),tr}static roundWithStep(tt,ta){let ti;return Math.round(tt*(ti=ta<1?1/ta:1))/ti}static roundWithUnitFactor(tt,ta){let ti=1/ta;return Math.round(tt*ti)/ti}static cutStringByChar(tt,ta){let ti,tr;return void 0!==tt&&""!==tt?(tr=tt,(ti=tt.indexOf(ta))>=0&&(tr=tt.substring(0,ti))):tr="",tr}static numberToPrice(tt,ta,ti){let tr,tn=0;this.getGlobals("surcharges_asterisk")&&"true"===this.getGlobals("surcharges_asterisk")&&(tn=1);let to=0;this.getGlobals("surcharges_plussign")&&"true"===this.getGlobals("surcharges_plussign")&&(to=1);let tl=this.round(tt,2),ts=this.getGlobals("currency_isocode"),tc=this.getGlobals("locale");return tr=tl.toLocaleString(tc,{style:"currency",currency:ts,minimumFractionDigits:2,maximumFractionDigits:2}),1===tn&&1===ta&&(tr+=" *"),1===to&&1===ti&&1===ta&&tl>0&&(tr="+ "+tr),tr}static maxValueAndIndexOfMax(tt){if(0===tt.length)return -1;let ta=tt[0],ti=0;for(let tr=1;tr<tt.length;tr++)tt[tr]>ta&&(ti=tr,ta=tt[tr]);return[ti,ta]}static optiongroupsJsonBuilder(tt,ta,ti,tn,to,tl,ts,tc,td,tu,tg,tp,tm,th,tf){let tb={},t_=defaultsJSON[tt][3],ty=defaultsJSON[tt][0];if(0===t_&&0===tn&&"#"!==ti){let tn=tr.getGlobals("parentgroup_active"),t_=null,tv=null;"true"===tn&&(t_=document.getElementById(tt).getAttribute("data-parentkey"),tv=document.getElementById(tt).getAttribute("data-parentgroupname")),t_&&(tb.parentkey=t_),tb.key=tt,"text_area"===ty?tb.value=this.escapeText(defaultsJSON[tt][1]):tb.value=defaultsJSON[tt][1],tb.datatype=ty,tb.valueID=defaultsJSON[tt][2],tv&&(tb.parentname=tv),tb.groupname=ta,tu&&"{}"!==JSON.stringify(tu)&&(tb.label=tu),tg&&"{}"!==JSON.stringify(tg)&&(tb.image=tg),tm&&"{}"!==JSON.stringify(tm)&&(tb.title_q=tm),tb.title=tp,"multiupload"===ty&&"{}"!==JSON.stringify(tf)&&tf[tt]&&(tb.uploads=tf[tt]),"0"===ti?tb.surcharge="":tl&&"{}"!==JSON.stringify(tl)?(tb.surcharge=tl,tb.unitySurcharge=ts):tb.surcharge=to,tb.ocb=defaultsJSON[tt][7];let tx=!1;for(let ta=0;ta<tc.length;++ta){let ti=tc[ta];if(ti.key===tt){tx=!0,console.log("key already exists in the optionsgroup: ",ti);break}}tx||(tc.push(tb),"article_single_select"===ty||"acc_single_select"===ty||"variant_single_select"===ty||"article_multi_select"===ty||"acc_multi_select"===ty||"variant_multi_select"===ty?void 0!==th&&""!==th&&"undefined"!=typeof articlepicker_part_list_rollout&&"standard"===articlepicker_part_list_rollout&&(td+="\n"+ta+": "+th):void 0!==th&&""!==th?td+="\n"+ta+": "+th:"string"!=typeof tp||(td+="\n"+ta+": "+tp))}return[tc,td]}static partsListBuilder(tt){let ta,ti={},tr=tt;for(let tt in tr)if(tr.hasOwnProperty(tt)){let tn=tr[tt];for(let tr in tn)tn.hasOwnProperty(tr)&&(ta=tr,void 0!==ti[tr]&&(ta=tr+"_$_"+tt),ti[ta]=tn[tr])}return ti}static escapeText(tt){let ta={"&":"&","<":"<",">":">",'"':""","'":"'"},ti=/[&<>"']/g,tr=RegExp(ti.source);return tt&&tr.test(tt)?tt.replace(ti,function(tt){return ta[tt]}):tt}static removeArrayItem(tt,ta){let ti=tt.indexOf(ta);return ti>-1&&tt.splice(ti,1),tt}
10static numberToPriceDigits(tt,ta,ti){let tr;tt=this.round(tt,ta);let tn=0;this.getGlobals("surcharges_asterisk")&&"true"===this.getGlobals("surcharges_asterisk")&&(tn=1);let to=this.getGlobals("currency_isocode"),tl=this.getGlobals("locale");return tr=tt.toLocaleString(tl,{style:"currency",currency:to,minimumFractionDigits:2,maximumFractionDigits:ta}),1===ti&&1===tn&&(tr+=" *"),tr}static getNettoTaxFactor(){let tt=1,ta=tr.getGlobals("tax_eu"),ti=tr.getGlobals("tax_state"),tn=tr.getGlobals("surcharges_state");return"gross"===ti&&"net"===tn?tt=1/(1+ta/100):"gross"===ti&&"gross"===tn?tt=1/(1+ta/100):"net"===ti&&"net"===tn?tt=1:"net"===ti&&"gross"===tn&&(tt=1/(1+ta/100)),tt}static changeFormatDateUsToEur(tt){let ta=tt.split("-");return ta[2]+"."+ta[1]+"."+ta[0]}static getValideMinMaxValue(tt,ta){let ti=parseInt(ta.value,10),tr=ta.getAttribute("step"),tn=ta.getAttribute("min"),to=ta.getAttribute("max");return tr=tr?parseInt(tr,10):1,tn=tn?parseInt(tn,10):1,to&&(to=parseInt(to,10)),ti=to>0&&ti>to?to:this.rundByStep(ti,tr),ta.value=ti,[ti,tn,to,tr]}static addEventlistenerMulti(tt,ta,ti){ta.split(" ").forEach(ta=>tt.addEventListener(ta,ti,!1))}static changeDisplayCmsBuyBoxToBlock(){let tt=".cms-element-buy-box.has-vertical-alignment",ta=document.querySelector(tt);ta&&ta.classList.add("bogx--block")}static replaceOffcanvas(){let tt=document.getElementById("bogx_offcanvas_right"),ta=document.querySelector(".js-pseudo-modal-template");tt&&ta&&ta.after(tt)}static changeMinMax(tt,ta,ti,tr,tn,to,tl){let ts,tc,td,tu,tg,tp,tm,th,tf,tb,t_,ty,tv;return"free"===ta?(tc="free_parameter_"+(ts=tr[tt][2]),tu="bogx_parameter_free_"+tt+"_minmax",tp="free_minmax_"+tt+"_note"):"axb"===ta?(tc="axb_free_"+(ts=tr[tt][2][ti]),0===ti?tu="bogx_parameter_a_"+tt+"_minmax":1===ti&&(tu="bogx_parameter_b_"+tt+"_minmax"),tp="axb_minmax_"+tt+"_note"):"quantity"===ta&&(tc="bogx_quantity_"+(ts=tr[tt][2]),tu="bogx_quantity_"+tt+"_minmax",tp="quantity_minmax_"+tt+"_note"),td=document.getElementById(tc),tg=document.getElementById(tu),tm=document.getElementById(tp),th=td.value,tf=parseFloat(td.getAttribute("data-min")),tb=parseFloat(td.getAttribute("data-max")),t_=isNaN(parseFloat(td.getAttribute("min")))?0:parseFloat(td.getAttribute("min")),ty=parseFloat(td.getAttribute("min")),tn&&t_!==tn||to&&ty!==to?(tn?(td.setAttribute("min",tn),th<tn&&(td.value=tn,"axb"===ta&&ti?tr[tt][1][ti]=tn:"free"===ta&&(tr[tt][1]=tn))):tn=t_,to?(td.setAttribute("max",to),th>to&&(td.value=to,"axb"===ta&&ti?tr[tt][1][ti]=to:"free"===ta&&(tr[tt][1]=to))):to=ty,tv="min="+tn+", max="+to,tg.textContent=tv,tl&&(tm.textContent=tl,tm.classList.contains("bogx--hidden")&&tm.classList.remove("bogx--hidden"))):null===tn&&null===to&&(tl="",t_!==tf&&(td.setAttribute("min",tf),th<tf&&(td.value=tf,"axb"===ta&&ti?tr[tt][1][ti]=tf:"free"===ta&&(tr[tt][1]=tf))),ty!==tb&&(td.setAttribute("max",tb),th>tb&&(td.value=tb,"axb"===ta&&ti?tr[tt][1][ti]=tb:"free"===ta&&(tr[tt][1]=tb))),tv="min="+tf+", max="+tb,tg.textContent=tv,tm.textContent=tl,tm.classList.add("bogx--hidden")),tr}static nextGroupButton(tt){let ta=parseInt(tt.getAttribute("data-index"),10),ti=parseInt(tt.getAttribute("data-limit"),10),tr=ta+1;for(;null===document.querySelector('span.bogx--config-header[data-index="'+tr+'"]')&&tr!==ti;)tr+=1;let tn='span.bogx--config-header[data-index="'+tr+'"]';document.querySelector(tn)&&document.querySelector(tn).querySelector("button.accordion-button").dispatchEvent(new Event("click"))}static backGroupButton(tt){let ta=parseInt(tt.getAttribute("data-index"),10),ti=1,tr=ta-1;for(;null===document.querySelector('span.bogx--config-header[data-index="'+tr+'"]')&&tr!==ti;)tr-=1;let tn='span.bogx--config-header[data-index="'+tr+'"]';document.querySelector(tn)&&document.querySelector(tn).querySelector("button.accordion-button").dispatchEvent(new Event("click"))}static changeOrderingMode(tt){if(tt){let ta=!1;tt.checked&&(ta=!0),ta?(document.getElementById("bogx_configurator_wrap").classList.remove("bogx--hidden"),document.getElementById("bogx_buy_widget_form_standard").classList.remove("bogx--hidden"),document.getElementById("bogx_config_pricebox_wrap").classList.remove("bogx--hidden"),document.getElementById("bogx_dcl_share").classList.remove("bogx--hidden"),document.getElementById("bogx_optional_productDetailPageBuyProductForm").
10classList.add("bogx--hidden")):(document.getElementById("bogx_configurator_wrap").classList.add("bogx--hidden"),document.getElementById("bogx_buy_widget_form_standard").classList.add("bogx--hidden"),document.getElementById("bogx_config_pricebox_wrap").classList.add("bogx--hidden"),document.getElementById("bogx_dcl_share").classList.add("bogx--hidden"),document.getElementById("bogx_optional_productDetailPageBuyProductForm").classList.remove("bogx--hidden"))}}static camelize(tt){return tt.replace(/^([A-Z])|[\s-_]+(\w)/g,function(tt,ta,ti){return ti?ti.toUpperCase():ta.toLowerCase()})}}},951:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tl});var tr=ti(76),tn=ti.n(tr),to=ti(689);class tl{static initDatepicker(){for(let tt in window.DatePicker={},defaultsJSON)if(defaultsJSON.hasOwnProperty(tt)){let ta,ti;"text_date_extended"===defaultsJSON[tt][0]&&(ta="text_date_"+tt,(ti=document.getElementById(ta))&&(DatePicker[tt]=tn()(ti,{locale:{...to.German,firstDayOfWeek:1},dateFormat:"d.m.Y",allowInput:!1,minDate:"today"})))}}static getHolidaysDe(){var tt=[];return[{id:"a2454b44-b3d5-4681-a345-6eae46fb9f4b",startDate:"2024-10-03",endDate:"2024-10-03",type:"Public",name:[{language:"DE",text:"Tag der Deutschen Einheit"}],nationwide:!0},{id:"332d7a5e-c693-4d2d-bdf5-957dd4409c91",startDate:"2024-12-25",endDate:"2024-12-25",type:"Public",name:[{language:"DE",text:"1. Weihnachtsfeiertag"}],nationwide:!0},{id:"717b466d-05f3-4810-915b-96625ca2aebf",startDate:"2024-12-26",endDate:"2024-12-26",type:"Public",name:[{language:"DE",text:"2. Weihnachtsfeiertag"}],nationwide:!0},{id:"27f0d8cd-76b2-47e7-89ac-a3a9f6a6b1ba",startDate:"2025-01-01",endDate:"2025-01-01",type:"Public",name:[{language:"DE",text:"Neujahr"}],nationwide:!0},{id:"4522bbfa-eaee-4efe-b13c-dac7f67bb986",startDate:"2025-03-08",endDate:"2025-03-08",type:"Public",name:[{language:"DE",text:"Internationaler Frauentag"}],nationwide:!1,subdivisions:[{code:"DE-MV",shortName:"MV"},{code:"DE-BE",shortName:"BE"}]},{id:"c7aef0d5-f292-4d08-b878-a25a6c05fc12",startDate:"2025-04-18",endDate:"2025-04-18",type:"Public",name:[{language:"DE",text:"Karfreitag"}],nationwide:!0},{id:"12776265-e638-4112-a11f-f24bb37d8a3d",startDate:"2025-04-21",endDate:"2025-04-21",type:"Public",name:[{language:"DE",text:"Ostermontag"}],nationwide:!0},{id:"5db64014-1aaf-46f0-be83-d8baa826cfef",startDate:"2025-05-01",endDate:"2025-05-01",type:"Public",name:[{language:"DE",text:"Tag der Arbeit"}],nationwide:!0},{id:"9fbbb949-8b22-4916-a16c-0a799a2dd79f",startDate:"2025-05-29",endDate:"2025-05-29",type:"Public",name:[{language:"DE",text:"Christi Himmelfahrt"}],nationwide:!0},{id:"b52574c0-0e5d-44ff-ac6b-4e3c6d71f1d7",startDate:"2025-06-09",endDate:"2025-06-09",type:"Public",name:[{language:"DE",text:"Pfingstmontag"}],nationwide:!0},{id:"ac964e18-2d34-497a-a9c5-b8ab065b7238",startDate:"2025-10-03",endDate:"2025-10-03",type:"Public",name:[{language:"DE",text:"Tag der Deutschen Einheit"}],nationwide:!0},{id:"92b270e3-247f-4f82-b79d-b5ad77a67d95",startDate:"2025-12-25",endDate:"2025-12-25",type:"Public",name:[{language:"DE",text:"1. Weihnachtsfeiertag"}],nationwide:!0},{id:"28bf580c-9787-4d67-ab3e-06a5e6597c1c",startDate:"2025-12-26",endDate:"2025-12-26",type:"Public",name:[{language:"DE",text:"2. Weihnachtsfeiertag"}],nationwide:!0},{id:"9ac6fd8b-aec4-41f0-916b-f03af58ecdab",startDate:"2026-01-01",endDate:"2026-01-01",type:"Public",name:[{language:"DE",text:"Neujahr"}],nationwide:!0},{id:"f66c8c81-2ea3-43b4-8398-f3dc4ef0f62a",startDate:"2026-03-08",endDate:"2026-03-08",type:"Public",name:[{language:"DE",text:"Internationaler Frauentag"}],nationwide:!1,subdivisions:[{code:"DE-MV",shortName:"MV"},{code:"DE-BE",shortName:"BE"}]},{id:"f80fd9dc-41b4-4203-8fea-2cf36d365fbb",startDate:"2026-04-03",endDate:"2026-04-03",type:"Public",name:[{language:"DE",text:"Karfreitag"}],nationwide:!0},{id:"8d8ad831-8d60-429f-ad46-7f842c9fe2d9",startDate:"2026-04-06",endDate:"2026-04-06",type:"Public",name:[{language:"DE",text:"Ostermontag"}],nationwide:!0},{id:"6f661249-94cb-4a54-a063-20dde86ebde6",startDate:"2026-05-01",endDate:"2026-05-01",type:"Public",name:[{language:"DE",text:"Tag der Arbeit"}],nationwide:!0},{id:"0905ed2a-46a7-4731-87e2-a8c53c42b0e2",startDate:"2026-05-14",endDate:"2026-05-14",type:"Public",name:[{language:"DE",text:"Christi Himmelfahrt"}],nationwide:!0},{id:"ce6dcd62-b512-4075-be98-73ffc3dee4db",startDate:"2026-05-25",endDate:"2026-05-25",type:"Public",name:[{language:"DE",text:"Pfingstmontag"}],nationwide:!0}
10].forEach(function(ta,ti){let tr=ta.startDate.split("-").reverse().join(".");tt.push(tr)}),tt}static getToday(tt){let ta,ti=new Date;return"yyyy-mm-dd"===tt?ta=ti.toISOString().slice(0,10):"dd.mm.yyyy"===tt&&(ta=ti.toISOString().slice(0,10).split("-").reverse().join(".")),ta}static getWorkedToday(tt){let ta,ti=new Date;ta=ti.getDate();let tr=ti.getDay();return 0===tr?(ti.setDate(ti.getDate()),ta=ti.getDate()):6===tr&&(ti.setDate(ti.getDate()+1),ta=ti.getDate()),"yyyy-mm-dd"===tt?ta=ti.toISOString().slice(0,10):"dd.mm.yyyy"===tt&&(ta=ti.toISOString().slice(0,10).split("-").reverse().join(".")),ta}static addDays(tt,ta,ti){let tr,tn=new Date(tt);tn.setDate(tn.getDate()+ta);let to=tn.getDate().toString(10);1===to.length&&(to="0"+to);let tl=(tn.getMonth()+1).toString(10);1===tl.length&&(tl="0"+tl);let ts=tn.getFullYear();return"yyyy-mm-dd"===ti?tr=ts+"-"+tl+"-"+to:"dd.mm.yyyy"===ti&&(tr=to+"."+tl+"."+ts),tr}static addWorkDays(tt,ta,ti){let tr,tn=new Date(tt);tn.setDate(tn.getDate()+ta);let to=tn.getDate(),tl=tn.getDay();0===tl?(tn.setDate(tn.getDate()+1),to=tn.getDate()):6===tl&&(tn.setDate(tn.getDate()+2),to=tn.getDate());let ts=to.toString(10);1===ts.length&&(ts="0"+to);let tc=(tn.getMonth()+1).toString(10);1===tc.length&&(tc="0"+tc);let td=tn.getFullYear();return"yyyy-mm-dd"===ti?tr=td+"-"+tc+"-"+ts:"dd.mm.yyyy"===ti&&(tr=ts+"."+tc+"."+td),tr}static addBusinessDays(tt,ta,ti){let tr,tn=new Date(tt);tn.setDate(tn.getDate()+ta);let to=tn.getDate();0===tn.getDay()&&(tn.setDate(tn.getDate()+2),to=tn.getDate());let tl=to.toString(10);1===tl.length&&(tl="0"+to);let ts=(tn.getMonth()+1).toString(10);1===ts.length&&(ts="0"+ts);let tc=tn.getFullYear();return"yyyy-mm-dd"===ti?tr=tc+"-"+ts+"-"+tl:"dd.mm.yyyy"===ti&&(tr=tl+"."+ts+"."+tc),tr}}},184:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tn});var tr=ti(815);class tn{static checkDelivery(tt,ta){let ti="0";ta&&(ti=ta.getAttribute("data-delivery")),defaultsJSON[tt][6]!==ti&&(defaultsJSON[tt][6]=ti)}static deliveryUpdate(tt){let ta,ti,tn,to,tl=tr.Z.getGlobals("delivery_rule"),ts=tr.Z.getGlobals("deliveryunit"),tc=tr.Z.getGlobals("default_shippingtime"),td=(tr.Z.getGlobals("default_shippingtime_min"),tr.Z.getGlobals("default_shippingtime_max")),tu="1-3",tg=[],tp=[],tm=0,th=0,tf=0,tb="",t_="";for(let tt in defaultsJSON)defaultsJSON.hasOwnProperty(tt)&&0===defaultsJSON[tt][3]&&(""===defaultsJSON[tt][6]||null===defaultsJSON[tt][6]?(tg.push(0),tp.push("0")):"object"==typeof defaultsJSON[tt][6]?(to=defaultsJSON[tt][6],defaultsJSON[tt][2].forEach(function(tt){""===(tn=to[tt])?(tg.push(0),tp.push("0")):(tg.push(parseInt(tn,10)),tp.push(tn))})):(tg.push(parseInt(defaultsJSON[tt][6],10)),tp.push(defaultsJSON[tt][6])));if(tg.push(parseInt(tu,10)),tp.push(tu),"sum"===tl){for(ta=0,ti=tg.length;ta<ti;ta++)tm+=tg[ta];tb=(tf=tm).toString(10)}else if("max"===tl){let tt=tr.Z.maxValueAndIndexOfMax(tg);tb=tp[tt[0]],tf=th=tt[1]}else if("custom"===tl){for(ta=0,ti=tp.length;ta<ti;ta++)if("0"!==tp[ta]&&""!==tp[ta]){tb=tp[ta],tf=tg[ta];break}}else"standard"===tl?(t_=tc,tf=td):"none"===tl&&(t_="",tf=0);return tb&&ts&&(t_="custom"===tl?globalHelper.delivery_info+" "+tb:tb===tu?tc:globalHelper.delivery_info+" "+tb+" "+ts),tt.shippingtime=t_,tt.deliveryvalue=tf,""!==t_&&this.deliveryHandler(t_),tt}static deliveryHandler(tt){if(document.querySelector(".delivery-information")){let ta=document.querySelector(".delivery-information").lastChild;ta&&""!==tt&&ta.replaceWith(tt)}}}},269:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>to});var tr=ti(187),tn=ti(815);class to{static detachKey(tt){let ta,ti,tr,tn;if(void 0!==defaultsJSON[tt]&&0===defaultsJSON[tt][3]){let ts,tc=defaultsJSON[tt][0],td=defaultsJSON[tt][1],tu=defaultsJSON[tt][2];if("string"!=typeof td&&"string"!=typeof tu&&(tu=defaultsJSON[tt][2][0]),"radiobutton"===tc?ta='div.bogx--config.radiobutton[data-key="'.concat(tt,'"][data-value="').concat(td,'"]'):"select"===tc||"quantity_select"===tc?ta=td?"#select_".concat(tt,' option[value="').concat(td,'"]'):"#select_".concat(tt,' option[data-id="#"]'):"image"===tc||"image_title"===tc||"image_title_price"===tc||"image_product"===tc||"image_product_fix"===tc||"multilayer"===tc?ta="list"===document.getElementById(tt).getAttribute("data-layout")?'div.bogx--config.image-wrap[data-key="'.concat(tt,'"][data-valueid="').concat(tu,'"]'):'div.bogx--config.image-grid[data-key="'.concat(tt,'"][data-valueid="').concat(tu,'"]'):"boxed_title"===tc||"boxed_title_price"===tc?ta='div.bogx--config.boxed-title-grid[data-key="'.concat(tt,'"][data-valueid="').concat(tu,'"]'):"article_virtual_multi"===tc||"article_virtual_single"===tc||"article_virtual_kit"===tc||"article_multi_select"===tc||"article_single_select"===tc||"article_kit"===tc||"acc_multi_select"===tc||"acc_single_select"===tc||"variant_multi_select"===tc||"variant_single_select"===tc?ta='div.bogx--config.image[data-key="'.concat(tt,'"][data-valueid="').concat(tu,'"]'):"color"===tc||"color_title"===tc||"color_product"===tc||"color_product_fix"===tc?ta='div.bogx--config.color[data-key="'.concat(tt,'"][data-valueid="').concat(tu,'"]'):"checkbox"!==tc||(ta='input[data-key="'+tt+'"]',document.querySelector(ta).checked||"0"!==td||(ta='div[data-key="'.concat(tt,'"]'))),(ti=document.querySelector(ta))&&ti.getAttribute("data-blacklist"))for(var to in tr=JSON.parse(ti.getAttribute("data-blacklist")))tr.hasOwnProperty(to)&&(ts=tr[to],void 0!==parentgroupsJSON[ts]?parentgroupsJSON[ts]=1:void 0!==defaultsJSON[ts]&&(defaultsJSON[ts][3]=1));if(ti&&ti.getAttribute("data-whitelist"))for(var tl in tn=JSON.parse(ti.getAttribute("data-whitelist")))tn.hasOwnProperty(tl)&&(ts=tn[tl],void 0!==parentgroupsJSON[ts]?parentgroupsJSON[ts]=0:void 0!==defaultsJSON[ts]&&(defaultsJSON[ts][3]=0))}}static detachKeyHandler(tt){let ta,ti,tr,tn,to;
10if(defaultsJSON[tt]&&0===defaultsJSON[tt][3]){let tc,td=defaultsJSON[tt][0],tu=defaultsJSON[tt][1],tg=defaultsJSON[tt][2];if("string"!=typeof tu&&"string"!=typeof tg&&(tg=defaultsJSON[tt][2][0]),"radiobutton"===td?(tn='div.bogx--config.radiobutton[data-key="'+tt+'"][data-value="'+tu+'"]',to=document.querySelector(tn)):"select"===td||"quantity_select"===td?(tn="#select_".concat(tt,' option[value="').concat(tu,'"]'),to=document.querySelector(tn)):"image"===td||"image_title"===td||"image_title_price"===td||"image_product"===td||"image_product_fix"===td||"multilayer"===td?(tn="list"===document.getElementById(tt).getAttribute("data-layout")?'div.bogx--config.image-wrap[data-key="'.concat(tt,'"][data-valueid="').concat(tg,'"]'):'div.bogx--config.image-grid[data-key="'.concat(tt,'"][data-valueid="').concat(tg,'"]'),to=document.querySelector(tn)):"boxed_title"===td||"boxed_title_price"===td?(tn='div.bogx--config.boxed-title-grid[data-key="'.concat(tt,'"][data-valueid="').concat(tg,'"]'),to=document.querySelector(tn)):"article_virtual_multi"===td||"article_virtual_single"===td||"article_virtual_kit"===td||"article_multi_select"===td||"article_single_select"===td||"article_kit"===td||"acc_multi_select"===td||"acc_single_select"===td||"variant_multi_select"===td||"variant_single_select"===td||"shape"===td||"shape_img"===td||"background"===td?(tn='div.bogx--config.image[data-key="'+tt+'"][data-valueid="'+tg+'"]',to=document.querySelector(tn)):"color"===td||"color_title"===td||"color_product"===td||"color_product_fix"===td?(tn='div.bogx--config.color[data-key="'+tt+'"][data-valueid="'+tg+'"]',to=document.querySelector(tn)):"checkbox"!==td||(tr=tt,(to=document.getElementById(tr)).checked||"0"!==tu||(tn='div[data-key="'+tt+'"]',to=document.querySelector(tn))),to&&to.getAttribute("data-blacklist"))for(var tl in ta=JSON.parse(to.getAttribute("data-blacklist")))ta.hasOwnProperty(tl)&&(tc=ta[tl],void 0!==parentgroupsJSON[tc]?parentgroupsJSON[tc]=1:void 0!==defaultsJSON[tc]&&(defaultsJSON[tc][3]=1));if(to&&to.getAttribute("data-whitelist"))for(var ts in ti=JSON.parse(to.getAttribute("data-whitelist")))ti.hasOwnProperty(ts)&&(tc=ti[ts],parentgroupsJSON[tc]?parentgroupsJSON[tc]=0:defaultsJSON[tc]&&(defaultsJSON[tc][3]=0))}}static detachSelectorHandler(tt){let ta,ti,tr,tn,to;let tl={};if(tt&&tt.getAttribute("data-blacklist")){for(let ti in ta=JSON.parse(tt.getAttribute("data-blacklist")))if(ta.hasOwnProperty(ti)){if(tr=ta[ti],void 0!==parentgroupsJSON[tr])0===parentgroupsJSON[tr]&&(parentgroupsJSON[tr]=1);else if(void 0!==defaultsJSON[tr]){if(defaultsJSON[tr][3]=1,tl[tr]=1,"{}"!==JSON.stringify(childrenOfParentCurrentDetach)){for(tn in childrenOfParentCurrentDetach)if(childrenOfParentCurrentDetach.hasOwnProperty(tn)){for(to in childrenOfParentCurrentDetach[tn])if(childrenOfParentCurrentDetach[tn].hasOwnProperty(to)&&to===tr){childrenOfParentCurrentDetach[tn][to]=1;break}}}this.detachKeyHandler(tr)}}}if(tt&&tt.getAttribute("data-whitelist")){for(let ta in ti=JSON.parse(tt.getAttribute("data-whitelist")))if(ti.hasOwnProperty(ta)){if(tr=ti[ta],void 0!==parentgroupsJSON[tr])parentgroupsJSON[tr]=0,this.retachParentgroup(tr,detachedStore[tr]);else if(defaultsJSON[tr]){if(defaultsJSON[tr][3]=0,this.retachExecute(tr,detachedStore[tr]),"{}"!==JSON.stringify(childrenOfParentCurrentDetach)){for(tn in childrenOfParentCurrentDetach)if(childrenOfParentCurrentDetach.hasOwnProperty(tn)){for(to in childrenOfParentCurrentDetach[tn])if(childrenOfParentCurrentDetach[tn].hasOwnProperty(to)&&to===tr){childrenOfParentCurrentDetach[tn][to]=0;break}}}this.detachKeyHandler(tr)}}}}static detachExecute(){let tt,ta;for(var ti in parentgroupsJSON)parentgroupsJSON.hasOwnProperty(ti)&&(tt=ti,1!==(ta=parentgroupsJSON[ti])||detachedStore[tt]?0===ta&&detachedStore[tt]&&detachedStore[tt]&&(this.retachParentgroup(tt,detachedStore[tt]),delete detachedStore[tt]):detachedStore[tt]=this.detachTempParentgroup(tt));for(tt in defaultsJSON)if(defaultsJSON.hasOwnProperty(tt)){if(1!==(ta=defaultsJSON[tt][3])||detachedStore[tt])0===ta&&detachedStore[tt]&&detachedStore[tt]&&(this.retachExecute(tt,detachedStore[tt]),delete detachedStore[tt]);else{detachedStore[tt]=this.detachTemp(tt);let ta=defaultsJSON[tt][8];this.cleanWarningGroup(tt,ta)}}}static detachTempParentgroup(tt){let ta;let ti={},tr=document.getElementById(tt);document.getElementById(tt+"_surcharge_grouptitle_wrap")&&document.getElementById(tt+"_surcharge_grouptitle_wrap").classList.add("bogx--hidden");let tn=tt+"-placeholder",to=document.createElement("span");if(to.setAttribute("id",tn),to.style.display="none",tr.classList.contains("bogx--main-step")){let tt=tr.getAttribute("data-step"),ta="steps_count_".concat(tt),ti=document.getElementById(ta);ti&&ti.classList.add("bogx--hidden")}return tr.after(to),ti.detached=this.detach(tr),ta=this.getChildrenOfParentGroup(tt),ti.detached_surcharge=[],ta.length>0&&ta.forEach(function(tt,ta){defaultsJSON[tt][3]=1}),ti}static retachParentgroup(tt,ta){let ti,tr,tn;var to=this;document.getElementById(tt+"_surcharge_grouptitle_wrap")&&document.getElementById(tt+"_surcharge_grouptitle_wrap").classList.remove("bogx--hidden");let tl=tt+"-placeholder",ts=document.getElementById(tl);if(ts&&ta.detached&&(ts.parentElement.insertBefore(ta.detached,ts),ts.remove(),ta.detached.classList.contains("bogx--main-step"))){let tt="steps_count_"+ta.detached.getAttribute("data-step"),ti=document.getElementById(tt);ti&&ti.classList.contains("bogx--hidden")&&ti.classList.remove("bogx--hidden")}(ti=this.getChildrenOfParentGroup(tt))&&(tr=childrenOfParentCurrentDetach[tt],ti.forEac
10h(function(tt){tn=tr&&tr[tt]?tr[tt]:0,detachedStore[tt]&&(to.retachExecute(tt,detachedStore[tt]),delete detachedStore[tt]),defaultsJSON[tt][3]=tn}))}static detachTemp(tt){let ta;var ti=this;let tr=defaultsJSON[tt][0],tn=tt+"_surcharge_wrap";if("color"===tr||"color_title"===tr||"color_product"===tr||"color_product_fix"===tr){let ta="[id="+tt+"_surcharge_wrap]",ti=document.querySelectorAll(ta);ti&&ti.forEach(tt=>tt.classList.add("bogx--hidden"))}let tl,ts,tc="",td="",tu={},tg=tt+"_surcharge_grouptitle_wrap";document.getElementById(tg);let tp="[id="+tt+"_surcharge_grouptitle_wrap]",tm=document.querySelectorAll(tp);tm&&tm.forEach(tt=>tt.classList.add("bogx--hidden"));let th=document.getElementById(tt),tf="[id=".concat(tt,"]"),tb=document.querySelectorAll(tf);if(tb&&(ta=tb),ta){let tr=1;tu.detached={},ta.forEach(function(ta){th=ta;let tn=tt+"-placeholder_"+tr,to=document.createElement("span");to.setAttribute("id",tn),to.style.display="none",th.after(to),tu.detached[tr]=ti.detach(th),++tr})}else{tl='[data-key="'.concat(tt,'"][data-id="#"]'),(ts=document.querySelector(tl))&&(ts.getAttribute("data-blacklist")&&(tc=ts.getAttribute("data-blacklist")),ts.getAttribute("data-whitelist")&&(td=ts.getAttribute("data-whitelist")));let ta=tt+"-placeholder",ti=document.createElement("span");ti.setAttribute("id",ta),ti.setAttribute("data-blacklist",tc),ti.setAttribute("data-whitelist",td),ti.style.display="none",th.after(ti),tu.detached=to.detach(th);let tr=tt+"-placeholder";ti=document.getElementById(tr),this.detachSelectorHandler(ti)}let t_=document.getElementById(tn);if(t_){let tt=tn+"-placeholder",ta=document.createElement("span");ta.setAttribute("id",tt),ta.style.display="none",t_.after(ta),tu.detached_surcharge=to.detach(t_)}if("multilayer"===tr){let ta="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAB9JREFUOE9jZKAQMFKon2HUAIbRMGAYDQNQPhr4vAAAJpgAEX/anFwAAAAASUVORK5CYII=",ti=tt+"_layer_image";document.getElementById(ti).src=ta}return tu}static retachExecute(tt,ta){let ti,tr,tn;let to=tt+"_surcharge_grouptitle_wrap",tl=document.getElementById(to);tl&&tl.classList.remove("bogx--hidden"),tr=tt+"-placeholder",tn=document.getElementById(tr);let ts="[id^="+tt+"-placeholder_]",tc=document.querySelectorAll(ts);if(tn)ta&&ta.detached&&tn.parentElement.insertBefore(ta.detached,tn),tn.remove();else if(tc&&ta&&ta.detached)for(var td in ta.detached)ta.detached.hasOwnProperty(td)&&(ti=tt+"-placeholder_"+td,(tn=document.getElementById(ti))&&ta.detached[td]&&(tn.parentElement.insertBefore(ta.detached[td],tn),tn.remove()));let tu=tt+"_surcharge_wrap-placeholder",tg=document.getElementById(tu);tg&&(ta&&ta.detached_surcharge&&tg.parentElement.insertBefore(ta.detached_surcharge,tg),tg.remove());let tp=defaultsJSON[tt][2];if(null!==tp&&"object"==typeof tp&&tp.length>0){let tt=tp[0]+"_div",ta=document.getElementById(tt);this.detachSelectorHandler(ta)}}static cleanWarningGroup(tt,ta){tr.Z.changeErrorsGroupsArray(ta,tt,!1),tr.Z.handlerGroupErrors(ta)}static getInitChildrenOfParentGroup(tt){let ta;let ti={},tr=[];for(let tn in defaultsJSON)defaultsJSON.hasOwnProperty(tn)&&defaultsJSON[tn][8]===tt&&(tr.push(tn),void 0===childrenOfParentCurrentDetach[tt]&&(ta=defaultsJSON[tn][3],ti[tn]=ta));return void 0===childrenOfParentCurrentDetach[tt]&&(childrenOfParentCurrentDetach[tt]=ti),tr}static getChildrenOfParentGroup(tt){let ta=[];for(let ti in defaultsJSON)defaultsJSON.hasOwnProperty(ti)&&defaultsJSON[ti][8]===tt&&ta.push(ti);return ta}static detach(tt){return tt.parentElement.removeChild(tt)}static getBlacklistProduct(tt){if(tt){let ta=tn.Z.getGlobals("product_ordernumber"),ti=tt.replace(/ /g,"").split(",");blacklist_product[ta]=JSON.parse(JSON.stringify(Object.assign({},ti)))}}static initBlacklistDefaults(){if("{}"!==JSON.stringify(blacklist_product)){let tt=tn.Z.getGlobals("product_ordernumber");for(let ta in blacklist_product)if(blacklist_product.hasOwnProperty(ta)&&ta===tt){let tt=blacklist_product[ta];"{}"!==JSON.stringify(tt)&&Object.keys(tt).forEach(function(ta){let ti=tt[ta];defaultsJSON[ti][3]=1})}}}}},35:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tn});var tr=ti(815);
10class tn{static setDispatch(tt,ta,ti){let tr,tn,to;ta?(tr=null==ti?isNaN(parseInt(ta.getAttribute("data-quantity"),10))?1:parseInt(ta.getAttribute("data-quantity"),10):"string"!=typeof ti||isNaN(parseInt(ti,10))?"number"==typeof ti?ti:1:parseInt(ta.getAttribute("data-quantity"),10),tn=ta.getAttribute("data-dispatch")):(tr=1,tn="0"),to=this.getDispatchValue(tt,tn,tr),defaultsJSON[tt][5]=to}static getDispatchValue(tt,ta,ti){let tn,to;let tl=0,ts=0,tc=0,td=0,tu=tr.Z.getGlobals("dispatch_rule");return"sum"===tu||"maxweight"===tu?(tn="$"===ta?defaultsJSON[tt][5]:"string"==typeof ta&&ta.split(",").length>1?parseFloat((to=ta.split(","))[0]):"#"===ta||""===ta||void 0===ta||isNaN(ta)?0:isNaN(parseFloat(ta))?0:parseFloat(ta),tn=tr.Z.round(tn*ti,2)):"maxlength"===tu?tn="$"===ta?defaultsJSON[tt][5]:"string"==typeof ta&&ta.split(",").length>1?parseFloat((to=ta.split(","))[1]):"#"===ta||""===ta||void 0===ta||isNaN(ta)?0:isNaN(parseFloat(ta))?0:parseFloat(ta):"sum_and_maxlength"===tu?(void 0===ta||""===ta||"0"===ta||"#"===ta?(tl=0,ts=0):"string"==typeof ta&&ta.split(",").length>1?(tl=parseFloat((to=ta.split(","))[0])*ti,ts=parseFloat(to[1])):isNaN(parseFloat(ta))||"$"===ta?"$"===ta?defaultsJSON[tt][5].length>1?(tl=defaultsJSON[tt][5][0],ts=defaultsJSON[tt][5][1]):(tl=defaultsJSON[tt][5][0],ts=0):"string"==typeof ta&&1===ta.split(",").length&&(tl=parseFloat((to=ta.split(","))[0])*ti,ts=0):(tl=parseFloat(ta)*ti,ts=0),tn=[tl=tr.Z.round(tl,2),ts]):"sum_and_maxlength_and_minlength"===tu?(void 0===ta||""===ta||"0"===ta||"#"===ta?(tl=0,ts=0,td=0):"string"==typeof ta&&ta.split(",").length>2?(tl=parseFloat((to=ta.split(","))[0])*ti,ts=parseFloat(to[1]),td=parseFloat(to[2])):isNaN(parseFloat(ta))||"$"===ta?"$"===ta?defaultsJSON[tt][5].length>2?(tl=defaultsJSON[tt][5][0],ts=defaultsJSON[tt][5][1],td=defaultsJSON[tt][5][2]):(defaultsJSON[tt][5].length>1?(tl=defaultsJSON[tt][5][0],ts=defaultsJSON[tt][5][1]):(tl=defaultsJSON[tt][5][0],ts=0),td=0):"string"==typeof ta&&ta.split(",").length<=2&&(to=ta.split(","),ts=0,tl=parseFloat(to[0])*ti,to[1]&&(ts=parseFloat(to[1])),td=0):(tl=parseFloat(ta)*ti,ts=0,td=0),tn=[tl=tr.Z.round(tl,2),ts,td]):"sum_and_maxwidth_and_maxlength"===tu?(void 0===ta||""===ta||"0"===ta||"#"===ta?(tl=0,tc=0,ts=0):"string"==typeof ta&&ta.split(",").length>2?(tl=parseFloat((to=ta.split(","))[0])*ti,tc=parseFloat(to[1]),ts=parseFloat(to[2])):isNaN(parseFloat(ta))||"$"===ta?"$"===ta?defaultsJSON[tt][5].length>2?(tl=defaultsJSON[tt][5][0],tc=defaultsJSON[tt][5][1],ts=defaultsJSON[tt][5][2]):(defaultsJSON[tt][5].length>1?(tl=defaultsJSON[tt][5][0],tc=defaultsJSON[tt][5][1]):(tl=defaultsJSON[tt][5][0],tc=0),ts=0):"string"==typeof ta&&ta.split(",").length<=2&&(to=ta.split(","),tc=0,tl=parseFloat(to[0])*ti,to[1]&&(tc=parseFloat(to[1])),ts=0):(tl=parseFloat(ta)*ti,tc=0,ts=0),tn=[tl=tr.Z.round(tl,2),tc,ts]):"sum_and_maxlength_and_maxwidth"===tu?(void 0===ta||""===ta||"0"===ta||"#"===ta?(tl=0,ts=0,tc=0):"string"==typeof ta&&ta.split(",").length>2?(tl=parseFloat((to=ta.split(","))[0])*ti,ts=parseFloat(to[1]),tc=parseFloat(to[2])):isNaN(parseFloat(ta))||"$"===ta?"$"===ta?defaultsJSON[tt][5].length>2?(tl=defaultsJSON[tt][5][0],ts=defaultsJSON[tt][5][1],tc=defaultsJSON[tt][5][2]):(defaultsJSON[tt][5].length>1?(tl=defaultsJSON[tt][5][0],ts=defaultsJSON[tt][5][1]):(tl=defaultsJSON[tt][5][0],ts=0),tc=0):"string"==typeof ta&&ta.split(",").length<=2&&(to=ta.split(","),ts=0,tl=parseFloat(to[0])*ti,to[1]&&(ts=parseFloat(to[1])),tc=0):(tl=parseFloat(ta)*ti,ts=0,tc=0),tn=[tl=tr.Z.round(tl,2),ts,tc]):tn=0,tn}static setDispatchParametrix(tt,ta,ti,tn,to){let tl,ts,tc,td,tu,tg,tp,tm;let th=0,tf=0,tb=0,t_=0;1===ta.length?tu=ta[0].getAttribute("data-dispatch"):(tu=ta[0].getAttribute("data-dispatch"),tg=ta[0].getAttribute("data-dispatch"),tp=ta[1].getAttribute("data-dispatch"));let ty=tr.Z.getGlobals("weight");tl=isNaN(parseFloat(tu))?0:parseFloat(tu);let tv=tr.Z.getGlobals("dispatch_rule");"sum"===tv||"maxweight"===tv?(0===tl&&"#"!==tu&&(0===ty&&console.log("Warning: product weight is not specified."),tl=ty),defaultsJSON[tt][5]=tl*ti):"maxlength"===tv?(ts=0,tn&&to?"#"!==tg&&"#"!==tp?ts=Math.max(parseFloat(tn),parseFloat(to)):"#"!==tg&&"#"===tp?ts=parseFloat(tn):"#"===tg&&"#"!==tp&&(ts=parseFloat(to),tu=ta[1].getAttribute("data-dispatch")):"#"!==tu&&(ts=ti),defaultsJSON[tt][5]=ts,"#"!==tu?(defaultsJSON[tt][5]=ts,0!==tl&&(defaultsJSON[tt][5]=ts*tl)):defaultsJSON[tt][5]=0):"sum_and_maxlength"===tv?(ts=0,tn&&to?"#"!==tg&&"#"!==tp?ts=Math.max(parseFloat(tn),parseFloat(to)):"#"!==tg&&"#"===tp?ts=parseFloat(tn):"#"===tg&&"#"!==tp&&(ts=parseFloat(to),tu=ta[1].getAttribute("data-dispatch")):"#"!==tu&&(ts=ti),0!==ty&&"#"!==tu?(th=ty*ti,tf=ts):isNaN(parseFloat(tu))?"#"===tu?(th=0,tf=0):(tm=tu.split(",")).length>1?(th=parseFloat(tm[0])*ti,tf=parseFloat(tm[1])*ts):(th=parseFloat(tm[0])*ti,tf=ts):(th=parseFloat(tu)*ti,tf=ts),defaultsJSON[tt][5]=[th,tf]):"sum_and_maxlength_and_minlength"===tv?(ts=0,tc=0,tn&&to?"#"!==tg&&"#"!==tp?(ts=Math.max(parseFloat(tn),parseFloat(to)),tc=Math.min(parseFloat(tn),parseFloat(to))):"#"!==tg&&"#"===tp?(ts=parseFloat(tn),tc=parseFloat(tn)):"#"===tg&&"#"!==tp&&(ts=parseFloat(to),tc=parseFloat(to),tu=ta[1].getAttribute("data-dispatch")):"#"!==tu&&(ts=ti,tc=ti),0!==ty&&"#"!==tu?(th=ty*ti,tf=ts,tb=t
10c):isNaN(parseFloat(tu))?"#"===tu?(th=0,tf=0,tb=0):(tm=tu.split(",")).length>2?(th=parseFloat(tm[0])*ti,tf=parseFloat(tm[1])*ts,tb=parseFloat(tm[2])*tc):(2===tm.length?(th=parseFloat(tm[0])*ti,tf=parseFloat(tm[1])*ts):(th=parseFloat(tm[0])*ti,tf=ts),tb=tc):(th=parseFloat(tu)*ti,tf=ts,tb=tc),defaultsJSON[tt][5]=[th,tf,tb]):"sum_and_maxwidth_and_maxlength"===tv?(td=0,ts=0,tn&&to?"#"!==tg&&"#"!==tp?(td=parseFloat(tn),ts=parseFloat(to)):"#"!==tg&&"#"===tp?(td=parseFloat(tn),ts=0):"#"===tg&&"#"!==tp&&(td=0,ts=parseFloat(to),tu=ta[1].getAttribute("data-dispatch")):"#"!==tu&&(td=0,ts=ti),0!==ty&&"#"!==tu?(th=ty*ti,t_=td,tf=ts):isNaN(parseFloat(tu))?"#"===tu?(th=0,t_=0,tf=0):(tm=tu.split(",")).length>2?(th=parseFloat(tm[0])*ti,t_=parseFloat(tm[1])*td,tf=parseFloat(tm[2])*ts):(2===tm.length?(th=parseFloat(tm[0])*ti,t_=parseFloat(tm[1])*td):(th=parseFloat(tm[0])*ti,t_=td),tf=ts):(th=parseFloat(tu)*ti,t_=td,tf=ts),defaultsJSON[tt][5]=[th,t_,tf]):"sum_and_maxlength_and_maxwidth"===tv?(ts=0,td=0,tn&&to?"#"!==tg&&"#"!==tp?(ts=parseFloat(tn),td=parseFloat(to)):"#"!==tg&&"#"===tp?(ts=parseFloat(tn),td=0):"#"===tg&&"#"!==tp&&(ts=0,td=parseFloat(to),tu=ta[1].getAttribute("data-dispatch")):"#"!==tu&&(ts=0,td=ti),0!==ty&&"#"!==tu?(th=ty*ti,tf=ts,t_=td):isNaN(parseFloat(tu))?"#"===tu?(th=0,tf=0,t_=0):(tm=tu.split(",")).length>2?(th=parseFloat(tm[0])*ti,tf=parseFloat(tm[1])*ts,t_=parseFloat(tm[2])*td):(2===tm.length?(th=parseFloat(tm[0])*ti,tf=parseFloat(tm[1])*ts):(th=parseFloat(tm[0])*ti,tf=ts),t_=td):(th=parseFloat(tu)*ti,tf=ts,t_=td),defaultsJSON[tt][5]=[th,tf,t_]):defaultsJSON[tt][5]=0}static dispatchUpdate(tt){let ta,ti,tn,to,tl,ts,tc,td,tu=tr.Z.getGlobals("dispatch_rule"),tg=[],tp,tm=0,th=0,tf=0,tb=0,t_=0,ty=[],tv=[],tx=[],tS=[];if(void 0!==tu&&"none"!==tu&&""!==tu)for(let tt in defaultsJSON)defaultsJSON.hasOwnProperty(tt)&&0===defaultsJSON[tt][3]&&("sum_and_maxlength"===tu?(ta=defaultsJSON[tt][5],th=0,tb=0,"object"==typeof ta&&0===ta.length?(th=0,tb=0):Array.isArray(ta)&&ta.length>=2?(th=parseFloat(ta[0]),tb=parseFloat(ta[1])):!Array.isArray(ta)&&"object"==typeof ta&&ta.length>=2&&(td=defaultsJSON[tt][2]).forEach(function(tt){th=""===(ti=ta[tt])[0]||"0"===ti[0]?0:parseFloat(ti[0]),tb=""===ti[1]||"0"===ti[1]?0:parseFloat(ti[1])}),ty.push(th),tx.push(tb)):"sum_and_maxlength_and_minlength"===tu?(ta=defaultsJSON[tt][5],th=0,tb=0,t_=0,"object"==typeof ta&&0===ta.length?(th=0,tb=0,t_=0):Array.isArray(ta)&&3===ta.length?(th=parseFloat(ta[0]),tb=parseFloat(ta[1]),t_=parseFloat(ta[2])):Array.isArray(ta)||"object"!=typeof ta||3!==ta.length||(td=defaultsJSON[tt][2]).forEach(function(tt){th=""===(ti=ta[tt])[0]||"0"===ti[0]?0:parseFloat(ti[0]),tb=""===ti[1]||"0"===ti[1]?0:parseFloat(ti[1]),t_=""===ti[2]||"0"===ti[2]?0:parseFloat(ti[2])}),ty.push(th),tx.push(tb),0!==t_&&tS.push(t_)):"sum_and_maxwidth_and_maxlength"===tu?(ta=defaultsJSON[tt][5],th=0,tf=0,tb=0,"object"==typeof ta&&0===ta.length?(th=0,tf=0,tb=0):Array.isArray(ta)&&3===ta.length?(th=parseFloat(ta[0]),tf=parseFloat(ta[1]),tb=parseFloat(ta[2])):Array.isArray(ta)||"object"!=typeof ta||3!==ta.length||(td=defaultsJSON[tt][2]).forEach(function(tt){th=""===(ti=ta[tt])[0]||"0"===ti[0]?0:parseFloat(ti[0]),tf=""===ti[1]||"0"===ti[1]?0:parseFloat(ti[1]),tb=""===ti[2]||"0"===ti[2]?0:parseFloat(ti[2])}),ty.push(th),tv.push(tf),0!==tb&&tx.push(tb)):"sum_and_maxlength_and_maxwidth"===tu?(ta=defaultsJSON[tt][5],th=0,tb=0,tf=0,"object"==typeof ta&&0===ta.length?(th=0,tb=0,tf=0):Array.isArray(ta)&&3===ta.length?(th=parseFloat(ta[0]),tb=parseFloat(ta[1]),tf=parseFloat(ta[2])):Array.isArray(ta)||"object"!=typeof ta||3!==ta.length||(td=defaultsJSON[tt][2]).forEach(function(tt){th=""===(ti=ta[tt])[0]||"0"===ti[0]?0:parseFloat(ti[0]),tb=""===ti[1]||"0"===ti[1]?0:parseFloat(ti[1]),tf=""===ti[2]||"0"===ti[2]?0:parseFloat(ti[2])}),ty.push(th),tx.push(tb),0!==tb&&tv.push(tf)):""===(ta=defaultsJSON[tt][5])||"0"===ta||void 0===ta||0===ta||"{}"===JSON.stringify(ta)?tg.push(0):"string"==typeof ta?tg.push(parseFloat(ta)):Array.isArray(ta)&&1===ta.length?tg.push(parseFloat(ta[0])):Array.isArray(ta)||"object"!=typeof ta?Array.isArray(ta)||"object"==typeof ta||(tp=defaultsJSON[tt][5],tg.push(parseFloat(tp))):(td=defaultsJSON[tt][2]).forEac
10h(function(tt){""===(tp=ta[tt])||"0"===tp||0===tp?tg.push(0):"string"!=typeof tp?tg.push(tp):tg.push(parseFloat(tp))}));if("sum"===tu){for(ts=0,tc=tg.length;ts<tc;ts++)tm+=tg[ts];tt.dispatch_weight=tm,tt.dispatch_maxlength=0,tt.dispatch_maxwidth=0,tt.dispatch_minlength=0}else if("maxweight"===tu)tn=tr.Z.maxValueAndIndexOfMax(tg),tt.dispatch_weight=tn[1],tt.dispatch_maxlength=0,tt.dispatch_maxwidth=0,tt.dispatch_minlength=0;else if("maxlength"===tu)tn=tr.Z.maxValueAndIndexOfMax(tg),tt.dispatch_maxlength=tn[1],tt.dispatch_maxwidth=0,tt.dispatch_weight=0,tt.dispatch_minlength=0;else if("sum_and_maxlength"===tu){for(ts=0,tc=ty.length;ts<tc;ts++)tm+=ty[ts];tt.dispatch_weight=tm,tn=tr.Z.maxValueAndIndexOfMax(tx),tt.dispatch_maxlength=tn[1],tt.dispatch_maxwidth=0,tt.dispatch_minlength=0}else if("sum_and_maxlength_and_minlength"===tu){for(ts=0,tc=ty.length;ts<tc;ts++)tm+=ty[ts];tt.dispatch_weight=tm,to=Math.max.apply(null,tx),tt.dispatch_maxlength=to,tt.dispatch_maxwidth=0,(tl=Math.max.apply(null,tS))>=to&&(tl=Math.min.apply(null,tS)),tt.dispatch_minlength=tl}else if("sum_and_maxwidth_and_maxlength"===tu){for(ts=0,tc=ty.length;ts<tc;ts++)tm+=ty[ts];tt.dispatch_weight=tm,tt.dispatch_maxwidth=Math.max.apply(null,tv),tt.dispatch_maxlength=Math.max.apply(null,tx),tt.dispatch_minlength=0}else if("sum_and_maxlength_and_maxwidth"===tu){for(ts=0,tc=ty.length;ts<tc;ts++)tm+=ty[ts];tt.dispatch_weight=tm,tt.dispatch_maxlength=Math.max.apply(null,tx),tt.dispatch_maxwidth=Math.max.apply(null,tv),tt.dispatch_minlength=0}else tt.dispatch_weight=0,tt.dispatch_maxlength=0,tt.dispatch_maxwidth=0,tt.dispatch_minlength=0;return tt}}},187:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tr});class tr{static selectErrorHandler(tt,ta,ti,tr,tn){let to,tl=!0,ts=tt+"_label",tc=document.getElementById(ts),td=document.getElementById(tt).getAttribute("data-label"),tu=null;("select"===ta||"quantity_select"===ta)&&(ts="select_"+tt,tu=document.getElementById(ts));let tg=document.querySelector(tr).getAttribute("data-parentkey");return ti?(tl=!0,this.changeErrorsGroupsArray(tg,tt,!1),tc.innerHTML=td,tc.classList.remove("bogx--warning"),tu&&tu.classList.remove("bogx--warning-border"),ts=tt+"_surcharge_title",document.getElementById(ts).classList.remove("bogx--warning"),ts=tt+"_surcharge_price",document.getElementById(ts).classList.remove("bogx--warning")):(to=globalErrors.noselected,tl=!1,this.changeErrorsGroupsArray(tg,tt,!0),tc.innerHTML=globalErrors.error_bullet+" "+td,tc.classList.add("bogx--warning"),tu&&tu.classList.add("bogx--warning-border"),ts=tt+"_surcharge_title",document.getElementById(ts).classList.add("bogx--warning"),document.getElementById(ts).textContent=to,ts=tt+"_surcharge_price",document.getElementById(ts).classList.add("bogx--warning")),this.handlerGroupErrors(tg),tn[tt]=tl,[tn]}static multiSelectErrorHandler(tt,ta,ti,tr){let tn,to,tl,ts,tc,td;let tu=!0;"checkbox_quantity"===(tn=ti.getAttribute("data-datatype"))?ts="bogx_check_quantity_":"article_virtual_multi"===tn?ts="bogx_article_virtual_":"article_virtual_single"===tn?ts="bogx_article_virtual_":"article_multi_select"===tn||"acc_multi_select"===tn||"variant_multi_select"===tn?ts="bogx_articlepicker_":"article_single_select"===tn||"acc_single_select"===tn||"variant_single_select"===tn?ts="bogx_articlepicker_":"checkbox_set"===tn?ts="bogx_check_set_":"image"===tn||"image_title"===tn||"image_title_price"===tn||"image_product"===tn||"image_product_fix"===tn?ts="bogx_image_":("boxed_title"===tn||"bogx_title_price"===tn)&&(ts="bogx_boxed_title_");let tg=ti.getAttribute("data-parentkey"),tp=tt+"_label",tm=document.getElementById(tp),th=document.getElementById(tt).getAttribute("data-label");return tl=0===ta?globalErrors.error_bullet+" "+quantityErrors.empty+" "+globalErrors.error_bullet:"",0===ta?(to=globalErrors.noselected,tu=!1,this.changeErrorsGroupsArray(tg,tt,!0),tm.innerHTML=" "+globalErrors.error_bullet+" "+th,tm.classList.add("bogx--warning"),tc=ts+tt+"_error",(td=document.getElementById(tc)).classList.remove("bogx--hidden"),td.textContent=tl,to=tl,tc=tt+"_surcharge_title",(td=document.getElementById(tc))?td.classList.add("bogx--warning"):(tc=tt+"_surcharge_name",(td=document.getElementById(tc))&&td.classList.add("bogx--warning"))):(tu=!0,this.changeErrorsGroupsArray(tg,tt,!1),tm.innerHTML=th,tm.classList.remove("bogx--warning"),tc=ts+tt+"_error",(td=document.getElementById(tc)).classList.add("bogx--hidden"),td.textContent="",tc=tt+"_surcharge_title",(td=document.getElementById(tc))?(td.classList.remove("bogx--warning"),td.textContent=""):(tc=tt+"_surcharge_name",(td=document.getElementById(tc))&&td.classList.remove("bogx--warning"))),this.handlerGroupErrors(tg),tr[tt]=tu,[tr]}static checkboxErrorHandler(tt,ta,ti,tr){let tn=!0,to,tl,ts,tc,td=document.querySelector(ti),tu=td.getAttribute("data-valueid")+"_label",tg=document.getElementById(tu),tp="bogx_check_",tm=td.getAttribute("data-parentkey");return tc="1"!==ta?globalErrors.error_bullet+" "+globalErrors.noselected:"","1"!==ta?(tn=!1,tr[tt]=tn,this.changeErrorsGroupsArray(tm,tt,!0),tg.classList.add("bogx--warning"),to=tp+tt+"_error",(tl=document.getElementById(to)).classList.remove("bogx--hidden"),tl.textContent=tc,ts=tc,to=tt+"_surcharge_title",(tl=document.getElementById(to)).classList.add("bogx--warning"),tl.textContent=ts,to=tt+"_surcharge_price",(tl=document.getElementById(to)).classList.add("bogx--warning")):(tn=!0,tr[tt]=tn,this.changeErrorsGroupsArray(tm,tt,!1),tg.classList.remove("bogx--warning"),to=tp+tt+"_error",(tl=document.getElementById(to)).classList.add("bogx--hidden"),tl.textContent="",to=tt+"_surcharge_title",tl=document.getElementById(to),ts=td.getAttribute("data-title"),tl.classList.remove("bogx--warning"),tl.textContent=ts,to=tt+"_surcharge_price",(tl=document.getElementById(to)).classList.remove("bogx--warning")),this.handlerGroupErrors(tm),tr[tt]=tn,[tr]}static textErrorHandler(tt,ta,ti,tr){let tn,to,tl=!0,ts,tc,td,tu,tg,tp,tm=document.getElementById(ti),th=tt+"_label",tf=document.getElementById(th),tb=tf.getAttribute("data-label");"text"===ta?ts="bogx_text_":"text_area"===ta?ts="bogx_textarea_":"text_date"===ta?ts="bogx_text_date_":"text_date_extended"===ta?ts="bogx_text_date_":"text_time"===ta&&(ts="bogx_text_time_"),tn=tm.value;let t_=tm.getAttribute("data-parentkey");return""===tn?(to="",tg=globalErrors.error_bullet+" "+globalErrors.error_empty,tp=globalErrors.error_bullet+" "+tb):(tg="",to=tn),to?(tl=!0,tr[tt]=tl,this.changeErrorsGroupsArray(t_,tt,!1),tm.classList.remove("bogx--warning-border"),tf.classList.remove("bogx--warning"),tf.textContent=tb,tc=ts+tt+"_error",(td=document.getElementById(tc)).textContent="",tc=tt+"_surcharge_title",td=document.getElementById(tc),"text_area"===ta?(tu=to.replace(/\n|\r\n|\r/g,"<br/>"),td.classList.remove("bogx--warning"),td.innerHTML=tu):(tu=to,td.classList.remove("bogx--warning"),td.textContent=tu),tc=tt+"_surcharge_price",(td=document.getElementById(tc)).classList.remove("bogx--warning")):(tl=!1,tr[tt]=tl,this.changeErrorsGroupsArray(t_,tt,!0),tm.classList.add("bogx--warning-border"),tf.classList.add("bogx--warning"),tf.textContent=tp,tc=ts+tt+"_error",(td=document.getElementById(tc)).classList.remove("bogx--hidden"),td.textContent=tg,tu=tg,tc=tt+"_surcharge_title",(td=document.getElementById(tc)).classList.add("bogx--warning"),td.textContent=tu,tc=tt+"_surcharge_price",(td=document.getElementById(tc)).classList.add("bogx--warning")),this.handlerGroupErrors(t_),tr[tt]=tl,[to,tr]}static quantityErrorHandler(tt,ta,ti,tr){let tn,to,tl=1,ts=!0,tc,td,tu,tg,tp,tm,th;null===ta?(tc="bogx_quantity_"+tt+"_error",tg=document.getElementById(tc),td=tt+"_surcharge_title",tp=document.getElementById(td),tu=tt+"_surcharge_price"):(tc="bogx_quantity_"+ta+"_error",tg=document.getElementById(tc),td=ta+"_surcharge_title",tu=ta+"_surcharge_price",tp=document.getElementById(td)),tm=document.getElementById(tu),tn=ti.value,(tl=ti.getAttribute("min"))&&(tl=parseInt(tl,10));let tf=ti.getAttribute("data-parentkey");return""===tn||1*tn<tl?(to=-1,""===tn?th=globalErrors.error_bullet+" "+quantityErrors.empty+" ":1*tn<tl&&(th=globalErrors.error_bullet+" "+quantityErrors.min+" ")):(th="",to=1*tn),-1===to?(ts=!1,this.changeErrorsGroupsArray(tf,tt,!0),ti.classList.add("bogx--warning-border"),tg.classList.remove("bogx--hidden"),tg.textContent=th,ta&&document.getElementById(ta+"_wrap")&&document.getElementById(ta+"_wrap").classList.add("error"),tp.classList.add("bogx--warning"),tm.classList.add("bogx--warning"),to=0):(ts=!0,this.changeErrorsGroupsArray(tf,tt,!1),ti.classList.remove("bogx--warning-border"),tg.classList.add("bogx--hidden"),tg.textContent="",ta&&document.getElementById(ta+"_wrap")&&document.getElementById(ta+"_wrap").classList.contains("error")&&document.getElementById(ta+"_wrap").classList.remove("error"),tp.classList.remove("bogx--warning"),tm.classList.remove("bogx--warning")),this.handlerGroupErrors(tf),tr[tt]=ts,[to,tr]}static valueErrorHandler(tt,ta,ti,tr){let tn,to=[],tl=[],ts=[],tc=[],td=!0,tu,tg,tp;return"free"===ti?(to=[ta[0].value],tn=["bogx_parameter_free_"]):"axb"===ti?(to=[ta[0].value,ta[1].value],tn=["bogx_parameter_a_","bogx_parameter_b_"]):"axbxc"===ti?(to=[ta[0].value,ta[1].value,ta[2].value],tn=["bogx_parameter_a_","bogx_parameter_b_","bogx_parameter_c_"]):"a"===ti?(to=[ta[0].value],tn=["bogx_parameter-a_"]):"b"===ti?(to=[ta[0].value],tn=["bogx_parameter-b_"]):(to=[ta[0].value],tn=["bogx_parameter_free_"]),2===ta.length?(void 0===(tc=[ta[0].getAttribute("min"),ta[1].getAttribute("min")])[0]||""===tc[0]||"0"===tc[0]?tc[0]=0:tc[0]=parseFloat(tc[0]),void 0===tc[1]||""===tc[1]||"0"===tc[1]?tc[1]=0:tc[1]=parseFloat(tc[1]),void 0===to[0]||""===to[0]||to[0]<tc[0]?(tl[0]=0,""===to[0]?ts[0]=globalErrors.error_empty+" ":to[0]<tc[0]&&(ts[0]=globalErrors.error_min+" ")):(ts[0]="",tl[0]=parseFloat(to[0])),void 0===to[1]||""===to[1]||to[1]<tc[1]?(tl[1]=0,""===to[1]?ts[1]=globalErrors.error_empty+" ":to[1]<tc[1]&&(ts[1]=globalErrors.error_min+" ")):(ts[1]="",tl[1]=parseFloat(to[1]))):(void 0===(tc=[ta[0].getAttribute("min")])[0]||""===tc[0]||"0"===tc[0]?tc[0]=0:tc[0]=parseFloat(tc[0]),void 0===to[0]||""===to[0]||to[0]<tc[0]?(tl[0]="",""===to[0]?ts[0]=globalErrors.error_empty+" ":to[0]<tc[0]&&(ts[0]=globalErrors.error_min+" ")):(ts[0]="",tl[0]=parseFloat(to[0]))),tu=ta[0].getAttribute("data-parentkey"),2===ta.length?0===tl[0]&&tc[0]>0||0===tl[1]&&tc[1]>0?(td=!1,this.changeErrorsGroupsArray(tu,tt,!0),0===tl[0]&&tc[0]>0?(ta[0].classList.add("bogx--warning-border"),tg=tn[0]+tt+"_error",(tp=document.getElementById(tg)).classList.remove("bogx--hidden"),tp.textContent=ts[0]):(ta[0].classList.remove("bogx--warning-border"),tg=tn[0]+tt+"_error",(tp=document.getElementById(tg)).classList.add("bogx--hidden"),tp.textContent=""),0===tl[1]&&tc[1]>0?(ta[1].classList.add("bogx--warning-border"),tg=tn[1]+tt+"_error",(tp=document.getElementById(tg)).classList.remove("bogx--hidden"),tp.textContent=ts[1]):(ta[1].classList.remove("bogx--warning-border"),tg=tn[1]+tt+"_error",(tp=document.getElementById(tg)).classList.add("bogx--hidden"),tp.textContent=""),tg=tt+"_surcharge_title",(tp=document.getElementById(tg)).classList.add("bogx--warning"),tg=tt+"_surcharge_price",(tp=document.getElementById(tg)).classList.add("bogx--warning")):(td=!0,this.changeErrorsGroupsArray(tu,tt,!1),ta[0].classList.remove("bogx--warning-border"),ta[1].classList.remove("bogx--warning-border"),tg=tn[0]+tt+"_error",(tp=document.getElementById(tg)).classList.add("bogx--hidden"),tp.textContent="",tg=tn[1]+tt+"_error",(tp=document.getElementById(tg)).classList.add("bogx--hidden"),tp.textContent="",tg=tt+"_surcharge_title",(tp=document.getElementById(tg)).classList.remove("bogx--warning"),tg=tt+"_surcharge_price",(tp=document.getElementById(tg)).classList.remove("bogx--warning")):""===tl[0]&&tc[0]>0?(td=!1,this.changeErrorsGroupsArray(tu,tt,!0),ta[0].classList.add("bogx--warning-border"),tg=tn+tt+"_error",(tp=document.getElementById(tg)).classList.remove("bogx--hidden"),tp.textContent=ts[0],tg=tt+"_surcharge_title",(tp=document.getElementById(tg)).classList.add("bogx--warning"),tg=tt+"_surcharge_price",(tp=document.getElementById(tg)).classList.add("bogx--warning"),tl[0]=""):(td=!0,this.changeErrorsGroupsArray(tu,tt,!1),ta[0].classList.remove("bogx--warning-border"),tg=tn+tt+"_error",(tp=document.getElementById(tg)).classList.add("bogx--hidden"),tp.textContent="",tg=tt+"_surcharge_title",(tp=document.getElementById(tg)).classList.remove("bogx--warning"),tg=tt+"_surcharge_price",(tp=document.getElementById(tg)).classList.remove("bogx--warning")),this.handlerGroupErrors(tu),tr[tt]=td,[tl,tr]}static multiuploadErrorHandler(tt,ta,ti,tr,tn){let to=!0,tl,ts,tc,td,tu,tg=ta.value,tp="bogx_multiupload_",tm=tt+"_label",th=document.getElementById(tm),tf=th.getAttribute("data-label"),tb="bogx_multiupload_"+tt+"_minmax",t_=document.getElementById(tb),ty=ta.getAttribute("data-parentkey");if(td=ti>=1?ta.getAttribute("data-error_min"):"",ti>=1){to=!1;let ta=document.getElementById("bogx_dropzone_finish_"+tt),ti=document.getElementById("dropzone_form_"+tt);tr>=1&&(ta.classList.contains("bogx--hidden")||ta.classList.add("bogx--hidden"),ti.classList.contains("bogx--hidden")&&ti.classList.remove("bogx--hidden")),this.changeErrorsGroupsArray(ty,tt,!0),tl=tp+tt+"_error",(ts=document.getElementById(tl)).classList.remove("bogx--hidden"),ts.innerHTML=td,tl=tt+"_surcharge_title",(ts=document.getElementById(tl)).classList.add("bogx--warning"),tu=globalErrors.error_bullet+" "+tf,th.innerHTML=tu,th.classList.add("bogx--warning"),t_.classList.add("bogx--warning"),tl=tt+"_surcharge_price",(ts=document.getElementById(tl)).classList.add("bogx--warning")}else if(to=!0,tc=tg,to){this.changeErrorsGroupsArray(ty,tt,!1),th.innerHTML=tf,th.classList.remove("bogx--warning"),t_.classList.remove("bogx--warning"),tl=tp+tt+"_error",(ts=document.getElementById(tl)).classList.add("bogx--hidden"),ts.innerHTML="",tl=tt+"_surcharge_title",(ts=document.getElementById(tl)).classList.remove("bogx--warning"),tl=tt+"_surcharge_price",(ts=document.getElementById(tl)).classList.remove("bogx--warning");let ta=document.getElementById("bogx_dropzone_finish_"+tt),ti=document.getElementById("dropzone_form_"+tt);
100===tr?(ta.classList.contains("bogx--hidden")&&ta.classList.remove("bogx--hidden"),ti.classList.contains("bogx--hidden")||ti.classList.add("bogx--hidden")):(ta.classList.contains("bogx--hidden")||ta.classList.add("bogx--hidden"),ti.classList.contains("bogx--hidden")&&ti.classList.remove("bogx--hidden"))}else this.changeErrorsGroupsArray(ty,tt,!0),td=globalNotes.please_select,tl=tp+tt+"_error",(ts=document.getElementById(tl)).classList.remove("bogx--hidden"),ts.innerHTML=td,tl=tt+"_surcharge_title",(ts=document.getElementById(tl)).classList.add("bogx--warning"),tu=globalErrors.error_bullet+" "+tf,th.innerHTML=tu,th.classList.add("bogx--warning"),t_.classList.add("bogx--warning"),tl=tt+"_surcharge_price",(ts=document.getElementById(tl)).classList.add("bogx--warning");return this.handlerGroupErrors(ty),tn[tt]=to,[tg,tn]}static changeErrorsGroupsArray(tt,ta,ti){if(parentgroupsErrors.length){if(parentgroupsErrors.filter(function(tt){return tt.key===ta}).length>0)for(let tr=0;tr<parentgroupsErrors.length;tr++)parentgroupsErrors[tr].group===tt&&parentgroupsErrors[tr].key===ta&&(parentgroupsErrors[tr].error=ti);else parentgroupsErrors.push({group:tt,key:ta,error:ti})}else parentgroupsErrors=[{group:tt,key:ta,error:ti}]}static handlerGroupErrors(tt){let ta=!1,ti="",tr="***",tn=tt+"_accordion_button",to=tt+"_count",tl=tt+"_label",ts=document.getElementById(tn),tc=document.getElementById(to),td=document.getElementById(tl);for(let ti=0;ti<parentgroupsErrors.length&&(parentgroupsErrors[ti].group!==tt||!(ta=parentgroupsErrors[ti].error));ti++);ta?(ts&&ts.classList.add("bogx--warning-accordion"),tc&&tc.classList.add("bogx--warning-count"),td&&(td.classList.add("bogx--warning-label"),(ti=td.getAttribute("data-label"))&&(tr=globalErrors.error_bullet+" "+ti),td.innerHTML=tr)):(ts&&ts.classList.remove("bogx--warning-accordion"),tc&&tc.classList.remove("bogx--warning-count"),td&&(td.classList.remove("bogx--warning-label"),ti=td.getAttribute("data-label"),td.innerHTML=ti))}}},691:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>EvalHelper});var _config_lib_helper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(815),_surcharge_helper__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(268),_charging_helper__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(540),_delivery_helper__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(184),_detach_helper__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(269),_blackoptions_helper__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(361),_helper_changer_helper__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(803),_datepicker_helper__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(951),_quantity_helper__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(999),_modals_helper__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(566),fn={ConfigLibHelper:_config_lib_helper__WEBPACK_IMPORTED_MODULE_3__.Z,ChangerHelper:_helper_changer_helper__WEBPACK_IMPORTED_MODULE_4__.Z,DeliveryHelper:_delivery_helper__WEBPACK_IMPORTED_MODULE_5__.Z,ChargingHelper:_charging_helper__WEBPACK_IMPORTED_MODULE_6__.Z,DetachHelper:_detach_helper__WEBPACK_IMPORTED_MODULE_7__.Z,BlackoptionsHelper:_blackoptions_helper__WEBPACK_IMPORTED_MODULE_8__.Z,DatepickerHelper:_datepicker_helper__WEBPACK_IMPORTED_MODULE_1__.Z,QuantityHelper:_quantity_helper__WEBPACK_IMPORTED_MODULE_9__.Z,ModalsHelper:_modals_helper__WEBPACK_IMPORTED_MODULE_2__.Z};class EvalHelper{static formelEval(key,surchargeJSON,formel,baseprice,gesamtpreis,title,group_name,option_key){let surchargeObj,value_id;var me=this;let datatype,detach_flag,value=0,value1=0,value2=0,surcharge=0,surcharge1=0,surcharge2=0,count="",selector=!1;var discount_factor=parseFloat(bogxSettings.global_discount_factor),currency_factor=_config_lib_helper__WEBPACK_IMPORTED_MODULE_3__.Z.getGlobals("currency_factor"),tax_factor=_config_lib_helper__WEBPACK_IMPORTED_MODULE_3__.Z.getGlobals("tax_factor");let bogx_image_mode=bogxSettings.bogx_image_mode;if(""!==formel&&"0"!==formel){var error,obj={};
10for(let k in defaultsJSON)if(defaultsJSON.hasOwnProperty(k)){if(datatype=defaultsJSON[k][0],detach_flag=defaultsJSON[k][3],value_id=defaultsJSON[k][2],"free_parameter"===datatype&&0===detach_flag)void 0!==surchargeJSON[k]?(value=surchargeJSON[k].value,surcharge=surchargeJSON[k].surcharge):(value=defaultsJSON[k][1],surcharge=0);else if("axb_free_parameter"===datatype&&0===detach_flag){if(void 0!==surchargeJSON[k])value=surchargeJSON[k].value,surcharge=_surcharge_helper__WEBPACK_IMPORTED_MODULE_0__.Z.getOutputSurcharge(surchargeJSON[k].surcharge),value1=surchargeJSON[k].value1,value2=surchargeJSON[k].value2;else{let val_Id1=defaultsJSON[k][2][0],val_Id2=defaultsJSON[k][2][1],selector1="axb_free_"+val_Id1,selector2="axb_free_"+val_Id2;value_id=[val_Id1,val_Id2];let key1=k+"."+document.getElementById(selector1).getAttribute("data-id"),key2=k+"."+document.getElementById(selector2).getAttribute("data-id");void 0!==surchargeJSON[key1]&&void 0!==surchargeJSON[key2]&&(surcharge1=surchargeJSON[key1].surcharge,value1=surchargeJSON[key1].value,surcharge2=surchargeJSON[key2].surcharge,value2=surchargeJSON[key2].value)}}else if(("image"===datatype||"image_title"===datatype||"image_title_price"===datatype||"image_product"===datatype||"image_product_fix"===datatype)&&"extended"===bogx_image_mode&&0===detach_flag){if(surcharge=0,defaultsJSON[k][2]&&defaultsJSON[k][2].length>0){let value_id=defaultsJSON[k][2][0];selector=value_id+"_wrap",value_id&&(value=document.getElementById(selector).getAttribute("data-value"),surcharge=void 0===surchargeJSON[k]||null===surchargeJSON[k]||isNaN(parseFloat(surchargeJSON[k]))?(surchargeObj=_surcharge_helper__WEBPACK_IMPORTED_MODULE_0__.Z.getItemSurcharge(!1,surchargeJSON,k,gesamtpreis,baseprice)).surcharge:surchargeJSON[k])}}else if(("multiupload"===datatype||"multiupload_designer"===datatype)&&0===detach_flag){let data_id="bogx_multiupload_data_"+k,data_element=document.getElementById(data_id);count=parseInt(data_element.getAttribute("data-count"),10),value=data_element.value,surcharge=surchargeJSON[k]}else if("free_item_handler"===datatype&&0===detach_flag)value=defaultsJSON[k][4],surcharge=0;else if("free_item"===datatype&&0===detach_flag)value=defaultsJSON[k][1],surcharge=parseFloat(surchargeJSONOrigin[value_id]);else if("text_date_extended"===datatype&&0===detach_flag)value=defaultsJSON[k][1],surcharge=parseFloat(surchargeJSONOrigin[value_id]);else{if(0!==detach_flag)continue;value=0,surcharge=0,defaultsJSON[k][1]&&(value=defaultsJSON[k][1],surcharge=!surchargeJSON.hasOwnProperty(k)||isNaN(parseFloat(surchargeJSON[k]))?(surchargeObj=_surcharge_helper__WEBPACK_IMPORTED_MODULE_0__.Z.getItemSurcharge(!1,surchargeJSON,k,gesamtpreis,baseprice)).surcharge:surchargeJSON[k])}obj[k]={value:value,option_id:value_id,option_key:option_key,surcharge:surcharge,surcharge1:surcharge1,surcharge2:surcharge2,value1:value1,value2:value2,count:count}}var total=gesamtpreis,articlenumber=_config_lib_helper__WEBPACK_IMPORTED_MODULE_3__.Z.getGlobals("product_ordernumber"),articleweight=_config_lib_helper__WEBPACK_IMPORTED_MODULE_3__.Z.getGlobals("weight");let result=eval(formel);if(void 0===error&&!isNaN(parseFloat(result)))return[result,title,group_name];if("#"===result)return["#",title,group_name];if("0"===result)return["0",title,group_name];if(void 0!==error)return[error,title,group_name];else if(void 0===result);else{if(isNaN(parseFloat(result))||""===result||"string"==typeof result)return[result,title,group_name];isNaN(result)}}return[0,title,group_name]}static dataRequester(tt,ta){tt.product_uuid=_config_lib_helper__WEBPACK_IMPORTED_MODULE_3__.Z.getGlobals("product_id"),tt.conditions=JSON.stringify(tt.conditions);let ti=window.router["frontend.data-request.custom.data"];var tr=new XMLHttpRequest;tr.open("POST",ti,!0),tr.setRequestHeader("Content-type","application/json"),tr.onreadystatechange=function(){if(4===tr.readyState&&200===tr.status){let ti=tr.responseText;var tt="";""!==ti&&(tt=JSON.parse(ti)),"function"==typeof ta&&ta(tt)}},tr.send(JSON.stringify(tt))}}},566:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>to});var tr=ti(559),tn=ti(19);
10class to{static showAlert(tt,ta,ti){let tr="bogx_modal_alert";document.getElementById(tr)&&document.getElementById(tr).remove();let tn=document.createElement("div");tn.setAttribute("id","bogx_modal_alert"),tn.innerHTML='\n <div class="modal fade" tabindex="-1">\n <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">\n <div class="modal-content">\n <div class="modal-header bg-light">\n <h5 class="modal-title">'.concat(tt,'</h5>\n <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>\n </div>\n <div class="modal-body">\n <p>').concat(ta,'</p>\n </div>\n <div class="modal-footer bg-light">\n <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">').concat(ti,"</button>\n </div>\n </div>\n </div>\n </div>\n "),document.body.append(tn),new bootstrap.Modal(tn.querySelector(".modal")).show()}static showZoom(tt,ta,ti){let tr="bogx_modal_zoom";document.getElementById(tr)&&document.getElementById(tr).remove();let tn=document.createElement("div");tn.setAttribute("id","bogx_modal_zoom"),tn.innerHTML='\n <div class="modal fade" tabindex="-1">\n <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable" style="width:'.concat(ti,'; max-width:100%">\n <div class="modal-content">\n <div class="modal-header bg-light">\n <h5 class="modal-title">').concat(tt,'</h5>\n <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>\n </div>\n <div class="modal-body">\n <div class="bogx_zoom_wrap"><img src="').concat(ta,'" class="bogx--image" title="title" alt="titel"></div>\n </div>\n </div>\n </div>\n </div>\n '),document.body.append(tn),new bootstrap.Modal(tn.querySelector(".modal")).show()}static showModalView(tt,ta){let ti="bogx_modal_view";document.getElementById(ti)&&document.getElementById(ti).remove();let tr=document.getElementById(tt),tn=tr.getAttribute("data-title"),to=tr.innerHTML,tl=document.createElement("div");tl.setAttribute("id","bogx_modal_view"),tl.innerHTML='\n <div class="modal fade" tabindex="-1">\n <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable" style="width:'.concat(ta,'; max-width:100%">\n <div class="modal-content">\n <div class="modal-header bg-light">\n <h5 class="modal-title">').concat(tn,'</h5>\n <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>\n </div>\n <div class="modal-body">\n <p>').concat(to,"</p>\n </div>\n </div>\n </div>\n </div>\n "),document.body.append(tl),new bootstrap.Modal(tl.querySelector(".modal")).show()}static showQuickView(tt,ta,ti){let tn=window.router["frontend.optioninfo.get.data"],to=tt;tr.Z.create(),ta.abort();let tl=this.getOptionData(to);ta.post(tn,tl,tt=>this.openOptionModal(tt,tl,ti))}static getOptionData(tt){let ta=tt.getAttribute("data-valueid"),ti=tt.getAttribute("data-name"),tr=tt.getAttribute("data-src"),tn=tt.getAttribute("data-option_has_description"),to=tt.getAttribute("data-option_has_description_long"),tl="",ts=ta+"_price",tc=document.getElementById(ts);return tc&&(tl=tc.innerHTML),JSON.stringify({id:ta,name:ti,image:tr,desc_active:tn,desc_long_active:to,price:tl})}static openOptionModal(tt,ta,ti){let to=JSON.parse(tt),tl=JSON.parse(ta),ts=tl.name,tc=this.getOptionContent(to,tl),td=new tn.Z(tc);tr.Z.remove(),td.open();let tu=td.getModal();tu.classList.add("bogx--option-modal"),tu.querySelector("div.modal-header").classList.remove("only-close"),tu.querySelector("div.modal-title").innerHTML=ts,tu.querySelector("div.modal-dialog").classList.add("modal-dialog-centered","modal-dialog-scrollable"),tu.querySelector("div.modal-dialog").style.maxWidth="100%",tu.querySelector("div.modal-dialog").style.width=ti}static getOptionContent(tt,ta){let ti="";return ti+='<div class="bogx--quickview-content">',tt.short_description&&(ti+='<div class="bogx--short-description">'+tt.short_description+"</div>"),ta.image&&(ti+='<img class="bogx--option-image" src="'+ta.image+'" alt="'+ta.name+'" title="'+ta.name+'">'),ta.price&&(ti+='<div class="bogx--option-price"><span class="price">'+ta.price+"</span></div>"),tt.long_description&&(ti+='<div class="bogx--long-description">'+tt.long_description+"</div>"),ti+="</div>"}static showDclView(tt,ta){let ti=window.router["frontend.deep-link.get.url"],tn=JSON.stringify({product_configuration:JSON.parse(document.getElementById("bogxPayload").value).bogxProductConfigurator});tr.Z.create(),tt.abort(),tt.post(ti,tn,tt=>this.openDclModal(tt,ta))}static openDclModal(tt,ta){var ti=this;let to=JSON.parse(tt),tl=globalNotes.dcl_header,ts=this.getDclContent(to),tc=ts[0],td=ts[1];td=td.replace(/\n|\r\n|\r/g,"<br/>");let tu=new tn.Z(tc);tr.Z.remove(),tu.open();let tg=tu.getModal();tg.classList.add("bogx--option-modal"),tg.querySelector("div.modal-header").classList.remove("only-close"),tg.querySelector("div.modal-title").innerHTML=tl;let tp=document.getElementById("bogx_dcl_message");tp&&(tp.innerHTML="<span>"+td+"</span>"),tg.querySelector("div.modal-dialog").classList.add("modal-dialog-centered","modal-dialog-scrollable"),tg.querySelector("div.modal-dialog").style.maxWidth="100%",tg.querySelector("div.modal-dialog").style.width=ta;let tm=document.getElementById("bogx_dcl_copy");tm&&tm.addEventListener("click",function(tt){ti.copyDclToClipbord(tm)})}static getDclContent(tt){let ta=tt.success,ti=tt.url,tr=tt.message,tn=tr,to="";return to+='<div class="bogx--dcl-content">',null!==ti&&(to+='<div class="bogx--dcl-input-wrap"><label for="bogx_dcl_input" class="col-form-label bogx--dcl-input-label">'+globalNotes.dcl_label+':</label><input type="text" class="form-control bogx--dcl-input" id="bogx_dcl_input" value="'+ti+'" readonly></div><div class="bogx--dcl-copy-wrap"><button id="bogx_dcl_copy" class="btn btn-outline-secondary">'+globalNotes.dcl_copy+'</button></div><div id="bogx_dcl_copy_hint" class="bogx--dcl-copy-hint bogx--hidden">'+globalNotes.dcl_copy_done+"</div>"),"SAVED"===tr?tn=globalNotes.dcl_saved:"EXIST"===tr&&(tn=globalNotes.dcl_exist),ta?to+='<div id="bogx_dcl_message" class="bogx--dcl-message"></div>':to+='<div id="bogx_dcl_message" class="bogx--dcl-error"></div>',[to+="</div>",tn]}static copyDclToClipbord(tt){if(tt){let tt=document.getElementById("bogx_dcl_input");if(tt){tt.select();let ta=tt.value;navigator.clipboard.writeText(ta).then(()=>{document.getElementById("bogx_dcl_copy").classList.remove("btn-outline-secondary"),document.getElementById("bogx_dcl_copy").classList.add("btn-outline-success"),document.getElementById("bogx_dcl_copy_hint").classList.remove("bogx--hidden"),document.getElementById("bogx_dcl_copy_hint").classList.remove("error"),document.getElementById("bogx_dcl_copy_hint").innerHTML=globalNotes.dcl_copy_done},()=>{document.getElementById("bogx_dcl_copy").classList.remove("btn-outline-secondary"),document.getElementById("bogx_dcl_copy").classList.add("btn-outline-danger"),document.getElementById("bogx_dcl_copy_hint").classList.remove("bogx--hidden"),document.getElementById("bogx_dcl_copy_hint").innerHTML=globalNotes.dcl_copy_error,document.getElementById("bogx_dcl_copy_hint").classList.add("error"),console.error("Clipbord error - when copying the Deep Link from the input field")}),tt.blur()}}}}}
10,316:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>to});var tr=ti(109),tn=ti(815);class to{static placePricebox(){let tt;let ta="bogx_config_pricebox_wrap",ti=document.getElementById(ta),tn=bogxSettings.bogx_config_location,to=bogxSettings.bogx_pricebox_position,tl=bogxSettings.bogx_total_in_mobile,ts="bogx_pricebox_title",tc=document.getElementById(ts),td="bogx_pricebox_content",tu=document.getElementById(td),tg="bogx_config_pricebox_footer",tp=document.getElementById(tg),tm="bogx_pricebox_sticky_footer",th=document.getElementById(tm),tf=".product-detail-media",tb=document.querySelector(tf);tt="bogx_pricebox_sticky_panel";let t_=document.getElementById(tt);if(null===tn||"standard"===tn){if("sticky"===to){null===t_&&((t_=document.createElement("div")).setAttribute("id",tt),t_.classList.add("bogx--pricebox-sticky-panel")),tt=ta+"-placeholder";let tn=document.getElementById(tt);if(null===tn&&((tn=document.createElement("span")).setAttribute("id",tt),tn.style.display="none"),window.innerWidth>=767)tb&&(t_&&tb.appendChild(t_),tb.setAttribute("data-sticky-container","true")),t_&&(ti.after(tn),t_.appendChild(ti),sticky=new tr.Z(".bogx--pricebox-sticky-panel",{marginBottom:20}));else if(window.innerWidth<767&&"sticky"===tl&&th&&null===th.querySelector("#"+tg)){th.appendChild(tp);let tt=document.querySelector(".footer-main");tt&&(tt.style.marginBottom=th.offsetHeight+30+"px")}}else if("belowpicture"===to){tt="bogx_pricebox_belowgallery_panel";let tr=document.getElementById(tt);if(null===tr&&((tr=document.createElement("div")).setAttribute("id",tt),tr.classList.add("bogx--pricebox-belowgallery-panel")),tb&&tr&&tb.appendChild(tr),tr){tt=ta+"-placeholder";let tn=document.getElementById(tt);null===tn&&((tn=document.createElement("span")).setAttribute("id",tt),tn.style.display="none"),ti.after(tn),tr.appendChild(ti)}if(window.innerWidth<767&&"sticky"===tl&&th&&null===th.querySelector("#"+tg)){th.appendChild(tp);let tt=document.querySelector(".footer-main");tt&&(tt.style.marginBottom=th.offsetHeight+30+"px")}}else"hidden"===to?ti.classList.add("bogx--hidden"):t_&&document.getElementById("bogx_canvas")&&window.innerWidth}else if("tab"===tn){let tt=document.querySelector("div.product-detail-tabs");if(Array.from(tt.getElementsByClassName("product-detail-tab-navigation-link")).forEach(tt=>tt.classList.remove("active")),Array.from(tt.getElementsByClassName("tab-pane")).forEach(tt=>tt.classList.remove("active")),document.getElementById("bogx_configuration_tab").classList.add("active"),document.getElementById("bogx-tab-pane").classList.add("active"),document.getElementById("bogx_configurator_wrap_tab"),"sticky"===to){if(window.innerWidth>=767)document.querySelector(".product-detail-tabs-content").classList.remove("bogx--block"),sticky=new tr.Z(".bogx--pricebox-panel-tab");else if(window.innerWidth<767&&"sticky"===tl&&(document.querySelector(".product-detail-tabs-content").classList.add("bogx--block"),th&&null===th.querySelector("#"+tg))){th.appendChild(tp);let tt=document.querySelector(".footer-main");tt&&(tt.style.marginBottom=th.offsetHeight+30+"px")}window.onresize=function(tt){if(window.innerWidth>=767)document.querySelector(".product-detail-tabs-content").classList.remove("bogx--block"),th&&th.querySelector("#"+tg)&&ti.appendChild(tp);else{if(document.querySelector(".product-detail-tabs-content").classList.add("bogx--block"),t_){for(;ti.firstChild;)t_.insertBefore(ti.firstChild,ti);t_.removeChild(ti)}if("sticky"===tl&&th&&null===th.querySelector("#"+tg)){th.appendChild(tp);let tt=document.querySelector(".footer-main");tt&&(tt.style.marginBottom=th.offsetHeight+30+"px")}}}}else"hidden"===to?(tc.classList.add("bogx--hidden"),tu.classList.add("bogx--hidden")):window.innerWidth>=767?document.querySelector(".product-detail-tabs-content").classList.remove("bogx--block"):document.querySelector(".product-detail-tabs-content").classList.add("bogx--block")}else if("offcanvas"===tn){"hidden"===to&&ti.classList.add("bogx--hidden");let tt=document.getElementById("bogx_offcanvas_footer_sticky_wrap"),ta=document.getElementById("bogx_offcanvas_footer"),tr=document.getElementById("bogx_config_pricebox_wrap");window.innerWidth<767&&tt&&ta&&tr&&(tr.appendChild(ta),tt.classList.add("bogx--hidden")),window.onresize=function(ti){window.innerWidth>=767?tt&&ta&&tr&&(tt.appendChild(ta),tt.classList.remove("bogx--hidden")):tt&&ta&&tr&&(tr.appendChild(ta),tt.classList.add("bogx--hidden"))}}}static updatePricebox(tt,ta,ti,tr,to){let tl,ts,tc=defaultsJSON[tt][0],td=tn.Z.numberToPrice(ti,1,1);void 0!==bogxCustomStorage[tt]&&void 0!==bogxCustomStorage[tt].surcharge_text&&""!==bogxCustomStorage[tt].surcharge_text&&null!==bogxCustomStorage[tt].surcharge_text&&(td=td+"<span class='surcharge-text'>"+bogxCustomStorage[tt].surcharge_text+"</span>");let tu=tt+"_surcharge_wrap",tg=document.getElementById(tu);tu=tt+"_surcharge_name";let tp=document.getElementById(tu);tu=tt+"_surcharge_title";let tm=document.getElementById(tu);tu=tt+"_surcharge_price";let th=document.getElementById(tu);("color"===tc||"color_title"===tc||"color_product"===tc||"color_product_fix"===tc)&&(tu=tt+"_surcharge_color",tl=document.getElementById(tu),ts=defaultsJSON[tt][1]),"0"===ta?(tg.classList.contains("bogx--hidden")&&tg.classList.remove("bogx--hidden"),to&&tp&&(tp.textContent=to),("color"===tc||"color_title"===tc||"color_product"===tc||"color_product_fix"===tc)&&tl&&ts&&(tl.style.backgroundColor=ts),(tr||""===tr)&&(tm.innerHTML=tr),th.innerHTML=""):"#"===ta?tg.classList.add("bogx--hidden"):(tg.classList.contains("bogx--hidden")&&tg.classList.remove("bogx--hidden"),to&&tp&&(tp.textContent=to),("color"===tc||"color_title"===tc||"color_product"===tc||"color_product_fix"===tc)&&tl&&ts&&(tl.style.backgroundColor=ts),(tr||""===tr)&&(tm.innerHTML=tr),th.innerHTML=td)}static updatePriceboxForMultiselect(tt,ta,ti,tr,to,tl){let ts=tn.Z.numberToPrice(tr,1,1),tc=ta+"_surcharge_wrap",td=document.getElementById(tc);tc=tt+"_surcharge_name";let tu=document.getElementById(tc);tc=ta+"_surcharge_title";let tg=document.getElementById(tc);tc=ta+"_surcharge_price";let tp=document.getElementById(tc);"0"===ti?(td.classList.contains("bogx--hidden")&&td.classList.remove("bogx--hidden"),tl&&tu&&(tu.textContent=tl),(to||""===to)&&(tg.innerHTML=to),tp.innerHTML=""):"#"===ti?td.classList.add("bogx--hidden"):(td.classList.contains("bogx--hidden")&&td.classList.remove("bogx--hidden"),tl&&tu&&(tu.textContent=tl),(to||""===to)&&(tg.innerHTML=to),tp.innerHTML=ts)}static totalPriceUpdate(tt,ta,ti,tr,to,tl,ts,tc){let td,tu,tg,tp,tm,th,tf,tb,t_;let ty,tv,tx=!1,tS=parseInt(tn.Z.getGlobals("unitprice_precision"),10),tO="",tA=globalHelper.star_for_total;th=tn.Z.getGlobals("tax_eu");let tE="1"===bogxSettings.bogx_show_prices;if("true"===tn.Z.getGlobals("total_dual")&&(tf="gross"===tn.Z.getGlobals("tax_state")?1/(1+th/100):1+th/100),tg=ti,tp="",tm="",1!==tc&&ts<1&&(tg=ti*ts),0===ti?tv=ty=tn.Z.numberToPrice(ti,0,0):(tp=tn.Z.numberToPrice(tg,0)+" "+tA,ty=tn.Z.numberToPrice(ti,0,0)+" "+tA,tv=tn.Z.numberToPrice(ti*tf,0,0),tm=tn.Z.numberToPrice(tg*tf,0,0)),td="bogx_config_basicprice",tu=document.getElementById(td)){let ta=tn.Z.numberToPrice(tt,0,0);tn.Z.getGlobals("surcharges_asterisk")&&"true"===tn.Z.getGlobals("surcharges_asterisk")&&(ta+=" *"),td="bogx_config_basicprice",(tu=document.getElementById(td)).textContent=ta}if(td="bogx_modal_total_wrap",(tu=document.getElementById(td))&&(tx=!0),""===tp?(document.getElementById("bogx_config_total").textContent=ty,tx&&(document.getElementById("bogx_modal_total").textContent=ty)):(document.getElementById("bogx_config_total").textContent=tp,tx&&(document.getElementById("bogx_modal_total").textContent=tp),document.getElementById("bogx_config_discount_linetrough").textContent=ty),"true"===tn.Z.getGlobals("total_dual")&&(""!==tm&&(tv=tm),td="bogx_config_total_dual",(tu=document.getElementById(td)).textContent=tv,tx&&(document.getElementById("bogx_modal_total_dual").textContent=tv)),tb=void 0===tl.once||""===tl.once?0:tl.once,document.querySelectorAll('*[data-total_flag="1"]').length>0){if(td="bogx_config_unit_price",(tu=document.getElementById(td)).classList.contains("bogx--hidden")&&tu.classList.remove("bogx--hidden"),tx&&(td="bogx_config_unit_total",tu.getAttribute(td),tu.classList.contains("bogx--hidden")&&tu.classList.remove("bogx--hidden"),td="bogx_modal_unit_total",(tu=document.getElementById(td)).classList.contains("bogx--hidden")&&tu.classList.remove("bogx--hidden"),td="bogx_modal_unit_price",tu.getAttribute(td),tu.classList.contains("bogx--hidden")&&tu.classList.remove("bogx--hidden")),t_=0!==tb?(ti-tb)/totalQuantity:ti/totalQuantity,tg!==ti&&(t_*=ts),tO=tn.Z.numberToPriceDigits(t_,tS,1)+"/"+to,tE&&(document.getElementById("bogx_config_unit_price").textContent=tO,tx&&(document.getElementById("bogx_modal_unit_price").textContent=tO),"true"===tn.Z.getGlobals("total_dual"))){td="bogx_unit_price_dual_wrap",(tu=document.getElementById(td)).classList.contains("bogx--hidden")&&tu.classList.remove("bogx--hidden");let tt=tn.Z.numberToPriceDigits(t_*tf,tS,0)+"/"+to;td="bogx_config_unit_price_dual",(tu=document.getElementById(td)).textContent=tt,tx&&(td="bogx_modal_unit_price_dual",(tu=document.getElementById(td)).textContent=tt)}}else t_=ta;td="bogx_config_unit_grundprice";let tN=document.getElementById(td);if("{}"!==JSON.stringify(tr)){let tt=tr.unitPrice,ta=tr.unit,ti=tn.Z.numberToPriceDigits(tt,tS,1)+"/"+ta;tN&&(tN.classList.remove("bogx--hidden"),document.getElementById("bogx_config_unit_price").classList.contains("bogx--hidden")||(ti=" | "+ti),tN.innerHTML=ti)}else tN&&tN.classList.add("bogx--hidden");return 1===tc&&tE?(document.getElementById("bogx_config_minprice").classList.remove("bogx--hidden"),tx&&document.getElementById("bogx_modal_minprice").classList.remove("bogx--hidden"),document.getElementById("bogx_config_discount_icon").classList.add("bogx--hidden"),document.getElementById("bogx_config_discount_linetrough").classList.add("bogx--hidden"),document.getElementById("bogx_config_discount_percentage").classList.add("bogx--hidden")):(document.getElementById("bogx_config_minprice").classList.add("bogx--hidden"),tx&&document.getElementById("bogx_modal_minprice").classList.add("bogx--hidden"),ts<1&&(document.getElementById("bogx_config_discount_icon").classList.remove("bogx--hidden"),document.getElementById("bogx_config_discount_linetrough").classList.remove("bogx--hidden"),document.getElementById("bogx_config_discount_percentage").classList.remove("bogx--hidden"))),[tb,t_,tO]}static basepriceHandler(tt,ta,ti,tr){let to,tl,ts,tc,td,tu,tg,tp,tm;let th="",tf="",tb="",t_=tt,ty="",tv=globalHelper.star_for_total,tx=!1;document.getElementById("bogx_config_modal")&&(tx=!0),!ta&&(to="div.bogx--config-basicprice",(tl=document.querySelector(to))&&!tl.classList.contains("bogx--hidden")&&tl.classList.add("bogx--hidden"));let tS=tn.Z.getGlobals("baseprice_view_mode");
10if("hidden"===tS){if(ts="div.product-detail-price-container",tc=document.querySelector(ts),td="div.product-detail-tax-container",tu=document.querySelector(td),tg="div.product-detail-delivery-information",tp=document.querySelector(tg),tc.classList.contains("bogx--hidden")){if(tx){let tt=document.getElementById("bogx_modal_pricehint");tu.classList.add("bogx--hidden"),tp.after(tt),tp.classList.add("bogx--modal-delivery")}}else if(tc.classList.add("bogx--hidden"),tx){let tt=document.getElementById("bogx_modal_pricehint");tu.classList.add("bogx--hidden"),tp.after(tt),tp.classList.add("bogx--modal-delivery")}else{let tt=document.querySelector(".bogx--configurator-wrap");tu.after(tt),tu.classList.add("bogx--hidden"),tp.after(tu),tp.classList.add("bogx--right")}}else if("update"===tS){let ta,to=".product-detail-price",tl=document.querySelector(to);1!==tr&&ti<1&&(tb=tn.Z.getGlobals("configurator_discount"),t_=tt*ti,ty=tn.Z.numberToPrice(t_,0,0)+" "+tv);let ts=tn.Z.getGlobals("referencePrice");if(ts){let ti,tr=tn.Z.getGlobals("purchaseUnit"),to=tn.Z.getGlobals("referenceUnit"),tl=tn.Z.getGlobals("unitName");ti=""===ty?tt*to/tr:t_*to/tr,ta=tn.Z.numberToPrice(ti,0,0)+tv+" / "+to+" "+tl}if(0!==tt){if(tm=tn.Z.numberToPrice(tt,0,0)+" "+tv,""===ty){if(tl){tl.innerHTML=tm;let ta=tl.closest("meta");ta&&ta.setAttribute("content",tt.toString())}if(ts){let tt=".price-unit-reference-content",ti=document.querySelector(tt);ti&&(ti.innerHTML=ta)}}else if(th="("+tb+"% "+(tf=globalNotes.config_discount_saved)+")",tl){tl.innerHTML=ty;let tt=tl.closest("meta");if(tt&&tt.setAttribute("content",t_.toString()),ts){let tt=".price-unit-reference-content",ti=document.querySelector(tt);ti&&(ti.innerHTML=ta)}tl.classList.contains("with-list-price")||tl.classList.add("with-list-price");let ti=".list-price-badge",tr=document.querySelector(ti);null===tr&&((tr=document.createElement("span")).classList.add("list-price-badge"),tr.textContent="%",tr=tl.insertAdjacentElement("afterend",tr));let tn=".product-detail-list-price-wrapper",to=document.querySelector(tn);if(null===to){if((to=document.createElement("span")).classList.add("product-detail-list-price-wrapper"),tr){to=tr.insertAdjacentElement("afterend",to);let tt=document.createElement("span");tt.classList.add("list-price-price"),tt.textContent=tm,to.insertAdjacentElement("afterbegin",tt);let ta=document.createElement("span");ta.classList.add("list-price-percentage"),ta.textContent=th,to.insertAdjacentElement("beforeend",ta)}}else{let tt=document.querySelector(".list-price-price");tt&&(tt.textContent=tm)}}}}}}},999:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tn});var tr=ti(187);class tn{static quantityHandler(tt){let ta;let ti=document.getElementById("productDetailPageBuyProductForm"),tr="div.product-detail-quantity-group",tn=ti.querySelector(tr),to="input.quantity-selector-group-input",tl=ti.querySelector(to),ts="button.bogx--buybutton",tc=ti.querySelector(ts);tc&&(ta=tc.closest("div.col-8"));let td="bogx_add_dcl",tu=document.getElementById(td);1===tt&&tn&&!tn.classList.contains("bogx--hidden")&&(tl&&(tl.setAttribute("min",1),tl.setAttribute("max",""),tl.removeAttribute("max"),tl.setAttribute("step",1),tl.setAttribute("value",1),tl.value=1,tl.classList.add("bogx--hidden")),tn&&(tn.classList.add("bogx--hidden"),bogxSettings.bogx_config_location,tc&&(tc.classList.add("bogx--fullsize"),ta&&ta.classList.add("bogx--fullsize")),tu&&tu.classList.add("bogx--fullsize")))}static quantityInitDefaults(tt){defaultsJSON[tt][0];let ta="bogx_quantity_"+defaultsJSON[tt][2],ti=document.getElementById(ta);null===ti?(ta='input[data-key="'.concat(tt,'"]'),ti=document.querySelector(ta),defaultsJSON[tt][1]=parseInt(ti.value,10),defaultsJSON[tt][2]=ti.getAttribute("data-valueid")):defaultsJSON[tt][1]=parseInt(ti.value,10)}static variantTotalQuantity(tt,ta){let ti,tn,to,tl=0,ts=defaultsJSON[tt][2];ts.length>0?ts.forEach(function(ta){let ts=ta+"_wrap",tc=document.getElementById(ts);if(ti=tc.getAttribute("data-soldout")?"1":"0",tn=tc.getAttribute("data-article_found")&&"1"===tc.getAttribute("data-article_found")?"1":"0","0"===ti&&"1"===tn){let ti="bogx_quantity_"+ta,tn=document.getElementById(ti);to=defaultsJSON[tt][1][ta];let ts=tr.Z.quantityErrorHandler(tt,ta,tn,basketButtonActiveJSON);to=ts[0],tl+=to,basketButtonActiveJSON=ts[1]}totalQuantity=tl}):totalQuantity=0;let tc=globalNotesArticle.article_quantity_total+": "+totalQuantity+" "+ta,td="bogx_articlepicker_"+tt+"_total_note",tu=document.getElementById(td);tu&&(tu.innerHTML=tc)}}}
10,268:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>t_});var tr=ti(815),tn=ti(288),to=ti(730),tl=ti(364),ts=ti(414),tc=ti(26),td=ti(648),tu=ti(282),tg=ti(930),tp=ti(218),tm=ti(863),th=ti(949),tf=ti(190),tb=ti(206);class t_{static update(tt){let ta,ti;let tr={},t_=bogxSettings.bogx_image_mode;for(ta in defaultsJSON)if(defaultsJSON.hasOwnProperty(ta)){let ty=defaultsJSON[ta][0],tv=defaultsJSON[ta][3];"radiobutton"===ty&&0===tv?ti=tn.Z.getSurcharge(ta,tr):("select"===ty||"quantity_select"===ty)&&0===tv?ti=tc.Z.getSurcharge(ta,tr):("image"===ty||"image_title"===ty||"image_title_price"===ty||"image_product"===ty||"image_product_fix"===ty)&&0===tv&&"extended"===t_?ti=to.Z.getSurcharge(ta,tr):("image"===ty||"image_title"===ty||"image_title_price"===ty||"image_product"===ty||"image_product_fix"===ty)&&0===tv&&"standard"===t_?ti=to.Z.getSurchargeStandard(ta,tr):("boxed_title"===ty||"boxed_title_price"===ty)&&0===tv?ti=tl.Z.getSurcharge(ta,tr):("color"===ty||"color_title"===ty||"color_product"===ty||"color_product_fix"===ty)&&0===tv?ti=ts.Z.getSurcharge(ta,tr):"checkbox"===ty&&0===tv?ti=td.Z.getSurcharge(ta,tr):("text"===ty||"text_date"===ty||"text_time"===ty||"text_area"===ty)&&0===tv?ti=tu.Z.getSurcharge(ta,tr):"text_date_extended"===ty&&0===tv?ti=tg.Z.getSurcharge(ta,tr):"quantity_total"===ty&&0===tv?ti=tp.Z.getSurchargeTotal(ta,tr):"quantity_graduated"===ty&&0===tv?ti=tp.Z.getSurchargeGraduated(ta,tr):"quantity_onetime_surcharge"===ty&&0===tv?ti=tp.Z.getSurchargeOnetime(ta,tr):"free_item"===ty&&0===tv?ti=tm.Z.getSurchargeFreeItem(ta,tr):("free_item_value"===ty||"free_item_text"===ty)&&0===tv?ti=tm.Z.getSurchargeFreeItemValue(ta,tr):"free_item_gurtmass"===ty&&0===tv?ti=tm.Z.getSurchargeFreeItemGurtmass(ta,tr):"free_parameter"===ty&&0===tv?ti=th.Z.getSurcharge(ta,tr,tt):"axb_free_parameter"===ty&&0===tv?ti=tf.Z.getSurcharge(ta,tr,tt):("multiupload"===ty||"multiupload_designer"===ty)&&0===tv&&(ti=tb.Z.getSurcharge(ta,tr)),void 0!==ti&&(tr=ti[0])}return[tr]}static getSurcharge(tt,ta,ti){let tn,to,tl,ts,tc;let td={};if(Array.isArray(ta)?tc=ta[0]:"#"===Array.from(ta)[0]?(ta=ta.substring(1),tc=document.getElementById(ta)):tc=document.querySelector(ta),ts=parseInt(tc.getAttribute("data-valueid"),10),(tn=surchargeJSONOrigin[ts])&&0!==tn&&"0"!==tn&&void 0!==tn){let ta=tn.charAt(0);if("{"===ta)ti[tt]=tr.Z.StringToJson(tn);else if("$"===ta)isNaN(parseFloat(tn=tc.getAttribute("data-surcharge")))?"$"===tn?ti[tt]=0:"graduated"===tn?ti[tt]=0:(tn=tn.replace(/`/g,'"'),ti[tt]=tr.Z.StringToJson(tn)):ti[tt]=parseFloat(tn);else if(isNaN(ta)||isNaN(tn)){let ta=(to=tn.split(",")).length;if(ta>1){for(let ti=0;ti<ta;ti++)isNaN(parseFloat(to[ti]))?td[(tl=to[ti].split(":"))[0]]=tl[1]:td[tt]=parseFloat(to[ti]);ti[tt]=JSON.stringify(td)}else isNaN(parseFloat(to[0]))?(td[(tl=to[0].split(":"))[0]]=parseFloat(tl[1]),ti[tt]=JSON.stringify(td)):ti[tt]=parseFloat(to[0])}else ti[tt]=parseFloat(tn)}else ti[tt]=0;return ti}static getItemSurcharge(tt,ta,ti,tr,tn){let to,tl,ts,tc,td,tu,tg,tp,tm={},th={},tf=1,tb=tr,t_=tn;if(tt){"#"===Array.from(tt)[0]&&(tt=tt.substring(1));let ta=document.getElementById(tt);ta&&(tf=parseFloat(ta.getAttribute("data-quantity")))}if(ta[ti]?tu=ta[ti].surcharge?ta[ti].surcharge:ta[ti]:(""!==(tg=defaultsJSON[ti][2])&&("string"==typeof tg||"number"==typeof tg)?(tp=tg,tu="$"!==surchargeJSONOrigin[tp]&&""!==surchargeJSONOrigin[tp]?parseFloat(surchargeJSONOrigin[tp]):0):null!==tg&&"object"==typeof tg&&tg.length>0?(tp=tg[0],tu=parseFloat(surchargeJSONOrigin[tp])):(tp="",tu=0),ta[ti]=tu),isNaN(parseFloat(tu))&&"$"!==tu){"string"==typeof tu?tm=JSON.parse(tu):"object"==typeof tu&&(tm=tu);for(let tt=0,tr=Object.keys(tm);tt<tr.length;tt++)if(tm.hasOwnProperty(tr[tt])){if(to=tr[tt],tl=tm[tr[tt]],to===ti)tu="number"==typeof tl?this.getOutputSurcharge(tl):this.getOutputSurcharge(parseFloat(tl));else if("total"===to&&"number"==typeof tl)tu=tb*(ts=tl)*tf;else if("baseprice"===to&&"number"==typeof tl)tu=t_*(ts=tl)*tf;else if("number"==typeof tl)ts=tl,tu=this.getOutputSurcharge(ta[to]*ts*tf);else if("string"==typeof tl)switch(tc=tl.substring(0,1),td=parseFloat(tl.substring(1,tl.length)),tc){case"+":ta[to]+=this.getOutputSurcharge(td);break;case"-":ta[to]-=this.getOutputSurcharge(td);break;case"*":ta[to]*=td;break;default:ta[to]+=this.getOutputSurcharge(parseFloat(tl))}else tu=0}}else tu=this.getOutputSurcharge(tu*tf);return th.surcharge=tu,th.json=ta,th}static getOutputSurcharge(tt){return tt*tr.Z.getGlobals("currency_factor")*tr.Z.getGlobals("tax_factor")}static getBlockPrice(tt){for(let ta=0;ta<tt.length;ta++)if(!tt[ta+1]||totalQuantity<=tt[ta].quantity)return tt[ta].unitPrice}static getNettoSurcharge(tt,ta){let ti=tr.Z.getGlobals("currency_factor");var tn=tr.Z.getNettoTaxFactor();return null===ta?tt*ti*tn:tr.Z.round(tt*ti*tn,ta)}static getNettoSurchargeArticle(tt,ta){let ti;let tn=tr.Z.getGlobals("tax_eu"),to=tr.Z.getGlobals("currency_factor");return ti="gross"===tr.Z.getGlobals("tax_state")?1/(1+tn/100):1,tr.Z.round(tt*to*ti,ta)}static getBruttoSurchargeArticle(tt,ta){var ti;let tn=tr.Z.getGlobals("tax_eu"),to=tr.Z.getGlobals("currency_factor");return ti="gross"===tr.Z.getGlobals("tax_state")?1:1+tn/100,tr.Z.round(tt*to*ti,ta)}}}
10,49:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tn});var tr=ti(140);class tn{static isNode(tt){return"object"==typeof tt&&null!==tt&&(tt===document||tt===window||tt instanceof Node)}static hasAttribute(tt,ta){if(!tn.isNode(tt))throw Error("The element must be a valid HTML Node!");return"function"==typeof tt.hasAttribute&&tt.hasAttribute(ta)}static getAttribute(tt,ta){let ti=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(ti&&!1===tn.hasAttribute(tt,ta))throw Error('The required property "'.concat(ta,'" does not exist!'));if("function"!=typeof tt.getAttribute){if(ti)throw Error("This node doesn't support the getAttribute function!");return}return tt.getAttribute(ta)}static getDataAttribute(tt,ta){let ti=!(arguments.length>2)||void 0===arguments[2]||arguments[2],to=ta.replace(/^data(|-)/,""),tl=tr.Z.toLowerCamelCase(to,"-");if(!tn.isNode(tt)){if(ti)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===tt.dataset){if(ti)throw Error("This node doesn't support the dataset attribute!");return}let ts=tt.dataset[tl];if(void 0===ts){if(ti)throw Error('The required data attribute "'.concat(ta,'" does not exist on ').concat(tt,"!"));return ts}return tr.Z.parsePrimitive(ts)}static querySelector(tt,ta){let ti=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(ti&&!tn.isNode(tt))throw Error("The parent node is not a valid HTML Node!");let tr=tt.querySelector(ta)||!1;if(ti&&!1===tr)throw Error('The required element "'.concat(ta,'" does not exist in parent node!'));return tr}static querySelectorAll(tt,ta){let ti=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(ti&&!tn.isNode(tt))throw Error("The parent node is not a valid HTML Node!");let tr=tt.querySelectorAll(ta);if(0===tr.length&&(tr=!1),ti&&!1===tr)throw Error('At least one item of "'.concat(ta,'" must exist in parent node!'));return tr}}},266:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tr});class tr{static iterate(tt,ta){if(tt instanceof Map||Array.isArray(tt))return tt.forEach(ta);if(tt instanceof FormData){for(var ti of tt.entries())ta(ti[1],ti[0]);return}if(tt instanceof NodeList)return tt.forEach(ta);if(tt instanceof HTMLCollection)return Array.from(tt).forEach(ta);if(tt instanceof Object)return Object.keys(tt).forEach(ti=>{ta(tt[ti],ti)});throw Error("The element type ".concat(typeof tt," is not iterable!"))}}},140:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tr});class tr{static ucFirst(tt){return tt.charAt(0).toUpperCase()+tt.slice(1)}static lcFirst(tt){return tt.charAt(0).toLowerCase()+tt.slice(1)}static toDashCase(tt){return tt.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(tt,ta){let ti=tr.toUpperCamelCase(tt,ta);return tr.lcFirst(ti)}static toUpperCamelCase(tt,ta){return ta?tt.split(ta).map(tt=>tr.ucFirst(tt.toLowerCase())).join(""):tr.ucFirst(tt.toLowerCase())}static parsePrimitive(tt){try{return/^\d+(.|,)\d+$/.test(tt)&&(tt=tt.replace(",",".")),JSON.parse(tt)}catch(ta){return tt.toString()}}}},306:(tt,ta,ti)=>{"use strict";ti.d(ta,{ar:()=>tc,ZP:()=>tp});class tr{static isTouchDevice(){return"ontouchstart"in document.documentElement}static isIOSDevice(){return tr.isIPhoneDevice()||tr.isIPadDevice()}static isNativeWindowsBrowser(){return tr.isIEBrowser()||tr.isEdgeBrowser()}static isIPhoneDevice(){return!!navigator.userAgent.match(/iPhone/i)}static isIPadDevice(){return!!navigator.userAgent.match(/iPad/i)}static isIEBrowser(){return -1!==navigator.userAgent.toLowerCase().indexOf("msie")||!!navigator.userAgent.match(/Trident.*rv:\d+\./)}static isEdgeBrowser(){return!!navigator.userAgent.match(/Edge\/\d+/i)}static getList(){return{"is-touch":tr.isTouchDevice(),"is-ios":tr.isIOSDevice(),"is-native-windows":tr.isNativeWindowsBrowser(),"is-iphone":tr.isIPhoneDevice(),"is-ipad":tr.isIPadDevice(),"is-ie":tr.isIEBrowser(),"is-edge":tr.isEdgeBrowser()}}}var tn=ti(266);let to="modal-backdrop",tl="modal-backdrop-open",ts="no-scroll",tc=350,td={ON_CLICK:"backdrop/onclick"};class tu{create(tt){this._removeExistingBackdrops(),document.body.insertAdjacentHTML("beforeend",this._getTemplate());let ta=document.body.lastChild;document.documentElement.classList.add(ts),setTimeout(function(){ta.classList.add(tl),"function"==typeof tt&&tt()},75),this._dispatchEvents()}remove(){let tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tc,ta=this._getBackdrops();
10tn.Z.iterate(ta,tt=>tt.classList.remove(tl)),setTimeout(this._removeExistingBackdrops.bind(this),tt),document.documentElement.classList.remove(ts)}_dispatchEvents(){let tt=tr.isTouchDevice()?"touchstart":"click";document.addEventListener(tt,function(tt){tt.target.classList.contains(to)&&document.dispatchEvent(new CustomEvent(td.ON_CLICK))})}_getBackdrops(){return document.querySelectorAll(".".concat(to))}_removeExistingBackdrops(){if(!1===this._exists())return;let tt=this._getBackdrops();tn.Z.iterate(tt,tt=>tt.remove())}_exists(){return document.querySelectorAll(".".concat(to)).length>0}_getTemplate(){return'<div class="'.concat(to,'"></div>')}constructor(){return tu.instance||(tu.instance=this),tu.instance}}let tg=Object.freeze(new tu);class tp{static create(){let tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;tg.create(tt)}static remove(){let tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tc;tg.remove(tt)}static SELECTOR_CLASS(){return to}}},559:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>tg});var tr=ti(266);let tn="loader",to="visually-hidden",tl={BEFORE:"before",INNER:"inner"};class ts{create(){if(!this.exists()){if(this.position===tl.INNER){this.parent.innerHTML=ts.getTemplate();return}this.parent.insertAdjacentHTML(this._getPosition(),ts.getTemplate())}}remove(){let tt=this.parent.querySelectorAll(".".concat(tn));tr.Z.iterate(tt,tt=>tt.remove())}exists(){return this.parent.querySelectorAll(".".concat(tn)).length>0}_getPosition(){return this.position===tl.BEFORE?"afterbegin":"beforeend"}static getTemplate(){return'<div class="'.concat(tn,'" role="status">\n <span class="').concat(to,'">Loading...</span>\n </div>')}static SELECTOR_CLASS(){return tn}constructor(tt,ta=tl.BEFORE){this.parent=tt instanceof Element?tt:document.body.querySelector(tt),this.position=ta}}var tc=ti(306);class td extends ts{create(){let tt=!(arguments.length>0)||void 0===arguments[0]||arguments[0];!this.exists()&&tt&&(tc.ZP.create(),document.querySelector(".".concat(tc.ZP.SELECTOR_CLASS())).insertAdjacentHTML("beforeend",ts.getTemplate()))}remove(){let tt=!(arguments.length>0)||void 0===arguments[0]||arguments[0];super.remove(),tt&&tc.ZP.remove()}constructor(){super(document.body)}}let tu=Object.freeze(new td);class tg{static create(){let tt=!(arguments.length>0)||void 0===arguments[0]||arguments[0];tu.create(tt)}static remove(){let tt=!(arguments.length>0)||void 0===arguments[0]||arguments[0];tu.remove(tt)}}},19:(tt,ta,ti)=>{"use strict";ti.d(ta,{Z:()=>td});var tr=ti(49),tn=ti(306);let to="js-pseudo-modal",tl="js-pseudo-modal-template",ts="js-pseudo-modal-template-content-element",tc="js-pseudo-modal-template-title-element";class td{open(tt){let ta=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn.ar;this._hideExistingModal(),this._create(),setTimeout(this._open.bind(this,tt),ta)}close(){let tt=this.getModal();this._modalInstance=bootstrap.Modal.getInstance(tt),this._modalInstance.hide()}getModal(){return this._modal||this._create(),this._modal}updatePosition(){this._modalInstance.handleUpdate()}updateContent(tt,ta){this._content=tt,this._setModalContent(tt),this.updatePosition(),"function"==typeof ta&&ta.bind(this)()}_hideExistingModal(){try{let tt=tr.Z.querySelector(document,".".concat(to," .modal"),!1);if(!tt)return;let ta=bootstrap.Modal.getInstance(tt);if(!ta)return;ta.hide()}catch(tt){console.warn("[PseudoModalUtil] Unable to hide existing pseudo modal before opening pseudo modal: ".concat(tt.message))}}_open(tt){this.getModal(),this._modal.addEventListener("hidden.bs.modal",this._modalWrapper.remove),this._modal.addEventListener("shown.bs.modal",tt),this._modalInstance.show()}_create(){this._modalMarkupEl=tr.Z.querySelector(document,this._templateSelector),this._createModalWrapper(),this._modalWrapper.innerHTML=this._content,this._modal=this._createModalMarkup(),this._modalInstance=new bootstrap.Modal(this._modal,{backdrop:this._useBackdrop}),document.body.insertAdjacentElement("beforeend",this._modalWrapper)}_createModalWrapper(){this._modalWrapper=tr.Z.querySelector(document,".".concat(to),!1),this._modalWrapper||(this._modalWrapper=document.createElement("div"),this._modalWrapper.classList.add(to))}
10_createModalMarkup(){let tt=tr.Z.querySelector(this._modalWrapper,".modal",!1);if(tt)return tt;let ta=this._modalWrapper.innerHTML;return this._modalWrapper.innerHTML=this._modalMarkupEl.innerHTML,this._setModalContent(ta),tr.Z.querySelector(this._modalWrapper,".modal")}_setModalTitle(){let tt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{tr.Z.querySelector(this._modalWrapper,this._templateTitleSelector).innerHTML=tt}catch(tt){}}_setModalContent(tt){let ta=tr.Z.querySelector(this._modalWrapper,this._templateContentSelector);ta.innerHTML=tt;try{let tt=tr.Z.querySelector(ta,this._templateTitleSelector);tt&&(this._setModalTitle(tt.innerHTML),tt.parentNode.removeChild(tt))}catch(tt){}}constructor(tt,ta=!0,ti=".".concat(tl),tr=".".concat(ts),tn=".".concat(tc)){this._content=tt,this._useBackdrop=ta,this._templateSelector=ti,this._templateContentSelector=tr,this._templateTitleSelector=tn}}}},__webpack_module_cache__={};function __webpack_require__(tt){var ta=__webpack_module_cache__[tt];if(void 0!==ta)return ta.exports;var ti=__webpack_module_cache__[tt]={exports:{}};return __webpack_modules__[tt].call(ti.exports,ti,ti.exports,__webpack_require__),ti.exports}(()=>{__webpack_require__.n=tt=>{var ta=tt&&tt.__esModule?()=>tt.default:()=>tt;return __webpack_require__.d(ta,{a:ta}),ta}})(),(()=>{__webpack_require__.d=(tt,ta)=>{for(var ti in ta)__webpack_require__.o(ta,ti)&&!__webpack_require__.o(tt,ti)&&Object.defineProperty(tt,ti,{enumerable:!0,get:ta[ti]})}})(),(()=>{__webpack_require__.o=(tt,ta)=>Object.prototype.hasOwnProperty.call(tt,ta)})();var __webpack_exports__={};(()=>{"use strict";var tt,ta=__webpack_require__(857),ti=__webpack_require__.n(ta),tr=__webpack_require__(49),tn=__webpack_require__(140);class to{publish(tt){let ta=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ti=arguments.length>2&&void 0!==arguments[2]&&arguments[2],tr=new CustomEvent(tt,{detail:ta,cancelable:ti});return this.el.dispatchEvent(tr),tr}subscribe(tt,ta){let ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},tr=this,tn=tt.split("."),to=ti.scope?ta.bind(ti.scope):ta;if(ti.once&&!0===ti.once){let ta=to;to=function(ti){tr.unsubscribe(tt),ta(ti)}}return this.el.addEventListener(tn[0],to),this.listeners.push({splitEventName:tn,opts:ti,cb:to}),!0}unsubscribe(tt){let ta=tt.split(".");return this.listeners=this.listeners.reduce((tt,ti)=>([...ti.splitEventName].sort().toString()===ta.sort().toString()?this.el.removeEventListener(ti.splitEventName[0],ti.cb):tt.push(ti),tt),[]),!0}reset(){return this.listeners.forEach(tt=>{this.el.removeEventListener(tt.splitEventName[0],tt.cb)}),this.listeners=[],!0}get el(){return this._el}set el(tt){this._el=tt}get listeners(){return this._listeners}set listeners(tt){this._listeners=tt}constructor(tt=document){this._el=tt,tt.$emitter=this,this._listeners=[]}}class tl{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(tt){let ta=tn.Z.toDashCase(this._pluginName),to=tr.Z.getDataAttribute(this.el,"data-".concat(ta,"-config"),!1),tl=tr.Z.getAttribute(this.el,"data-".concat(ta,"-options"),!1),ts=[this.constructor.options,this.options,tt];to&&ts.push(window.PluginConfigManager.get(this._pluginName,to));try{tl&&ts.push(JSON.parse(tl))}catch(tt){throw console.error(this.el),Error('The data attribute "data-'.concat(ta,'-options" could not be parsed to json: ').concat(tt.message))}return ti().all(ts.filter(tt=>tt instanceof Object&&!(tt instanceof Array)).map(tt=>tt||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(tt){return tt||(tt=this.constructor.name),tt}constructor(tt,ta={},ti=!1){if(!tr.Z.isNode(tt))throw Error("There is no valid element given.");this.el=tt,this.$emitter=new to(this.el),this._pluginName=this._getPluginName(ti),this.options=this._mergeOptions(ta),this._initialized=!1,this._registerInstance(),this._init()}}class ts{get(tt,ta){let ti=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"application/json",tr=this._createPreparedRequest("GET",tt,ti);return this._sendRequest(tr,null,ta)}
10post(tt,ta,ti){let tr=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";tr=this._getContentType(ta,tr);let tn=this._createPreparedRequest("POST",tt,tr);return this._sendRequest(tn,ta,ti)}delete(tt,ta,ti){let tr=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";tr=this._getContentType(ta,tr);let tn=this._createPreparedRequest("DELETE",tt,tr);return this._sendRequest(tn,ta,ti)}patch(tt,ta,ti){let tr=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"application/json";tr=this._getContentType(ta,tr);let tn=this._createPreparedRequest("PATCH",tt,tr);return this._sendRequest(tn,ta,ti)}abort(){if(this._request)return this._request.abort()}_registerOnLoaded(tt,ta){ta&&tt.addEventListener("loadend",()=>{ta(tt.responseText,tt)})}_sendRequest(tt,ta,ti){return this._registerOnLoaded(tt,ti),tt.send(ta),tt}_getContentType(tt,ta){return tt instanceof FormData&&(ta=!1),ta}_createPreparedRequest(tt,ta,ti){return this._request=new XMLHttpRequest,this._request.open(tt,ta),this._request.setRequestHeader("X-Requested-With","XMLHttpRequest"),ti&&this._request.setRequestHeader("Content-type",ti),this._request}constructor(){this._request=null}}var tc=__webpack_require__(815);class td{static gridColumns(tt,ta){let ti,tr,tn,to,tl,ts,tc;let td=6,tu="1",tg,tp=0,tm,th,tf,tb,t_;if(("boxed_title"===ta||"boxed_title_price"===ta||"image"===ta||"image_title"===ta||"image_title_price"===ta||"image_product"===ta||"image_product_fix"===ta||"multilayer"===ta||"color"===ta||"color_title"===ta||"color_product"===ta||"color_product_fix"===ta||"article_virtual_multi"===ta||"article_virtual_single"===ta||"article_virtual_kit"===ta||"article_multi_select"===ta||"article_single_select"===ta||"article_kit"===ta||"acc_multi_select"===ta||"acc_single_select"===ta||"variant_multi_select"===ta||"variant_single_select"===ta||"font_color"===ta||"shape_color"===ta||"background_color"===ta||"shape_svg"===ta||"shape_img"===ta||"background"===ta)&&(ti=document.getElementById(tt),tr=document.getElementById("bogx_config_modal"),ti&&(tl=parseInt(ti.getAttribute("data-grid_columns"),10),ts=parseInt(ti.getAttribute("data-grid_columns_phone"),10),!isNaN(tl)&&tl>1||!isNaN(ts)&&ts>1))){if((isNaN(tc=parseInt(ti.getAttribute("data-grid_space"),10))||0===tc)&&(tc=td),tg=parseFloat(ti.getAttribute("data-cell_width")).toFixed(2),0===(tm=ti.getBoundingClientRect().width)){if(0!==bogxCustomStorage.bogx_wrapper_default_width)tm=bogxCustomStorage.bogx_wrapper_default_width;else{let tt=ti.getAttribute("data-parentkey")+"_panel",ta=document.getElementById(tt);ta.classList.remove("collapse"),tm=ti.getBoundingClientRect().width,ta.classList.add("collapse"),tm=Math.floor(tm),bogxCustomStorage.bogx_wrapper_default_width=tm}}else tm=Math.floor(tm),0===bogxCustomStorage.bogx_wrapper_default_width&&(bogxCustomStorage.bogx_wrapper_default_width=tm);tn='div.bogx--config.image-grid[data-key="'.concat(tt,'"]'),to=document.querySelectorAll(tn),"article_virtual_multi"===ta||"article_virtual_single"===ta||"article_virtual_kit"===ta?(tn='div.bogx--config.article[data-key="'.concat(tt,'"]'),to=document.querySelectorAll(tn)):"article_multi_select"===ta||"article_single_select"===ta||"acc_multi_select"===ta||"acc_single_select"===ta||"variant_multi_select"===ta||"variant_single_select"===ta||"article_kit"===ta?(tn=".bogx--config.article",to=ti.querySelectorAll(tn)):"color"===ta||"color_title"===ta||"color_product"===ta||"color_product_fix"===ta?(tn='div.bogx--config.color[data-key="'.concat(tt,'"]'),to=document.querySelectorAll(tn)):("boxed_title"===ta||"boxed_title_price"===ta)&&(tn='div.bogx--config.boxed-title-grid[data-key="'.concat(tt,'"]'),to=document.querySelectorAll(tn)),to&&(window.outerWidth<=500&&!isNaN(ts)&&ts>1?(tc=4,tg=100/ts,tr&&(tm=.8*$(window).width()-40),tp=(tm-ts*tc*2)*tg*.01):window.outerWidth<=500?("color"===ta||"font_color"===ta||"shape_color"===ta||"background_color"===ta?(tc=4,tg=100/(ts=8)):(tc=4,tg=100/(ts=2)),tr&&(tm=.8*window.outerWidth-40),tp=(tm-ts*tc*2)*tg*.01):window.outerWidth>500&&!isNaN(tl)&&tl>1&&(tp=(tm-tl*tc)*tg*.01),tp>0&&(tp=Math.floor(tp),th=.5*tc,tf=tp+"px",tb=th+"px",t_=tp+"px","font_color"===ta||"shape_color"===ta||"background_color"===ta?(to.forEach(tt=>tt.style.cssText="margin:".concat(tb,";")),to[0].querySelectorAll("span")?to.forEach(tt=>tt.querySelector("span").style.cssText="width:".concat(tf,"; height:").concat(t_,";")):to.forEach(tt=>tt.style.cssText="width:".concat(tf,";"))):"color"===ta||"color_title"===ta||"color_product"===ta||"color_product_fix"===ta?("color_title"===ta||"color_product"===ta||"color_product_fix"===ta?to.forEach(tt=>tt.style.cssText="width:".concat(tf,"; margin:").concat(tb,";")):to.forEach(tt=>tt.style.cssText="margin:".concat(tb,";")),to[0].querySelectorAll(".colorbox")?to.forEach(function(tt){let ta=tt.querySelector(".colorbox");ta.style.width=tf,ta.style.height=t_}):to.forEach(tt=>tt.style.cssText="width:".concat(tf,";"))):(to.forEach(tt=>tt.style.cssText="width:".concat(tf,"; margin:").concat(tb,";")),("article_multi_select"===ta||"article_single_select"===ta||"acc_multi_select"===ta||"acc_single_select"===ta||"variant_multi_select"===ta||"variant_single_select"===ta)&&(to[0].getAttribute("data-images_covered")&&(tu=to[0].getAttribute("data-images_covered")),"1"===tu&&(tf="100%",to.forEach(tt=>tt.querySelector("img").style.cssText="height:".concat(t_,";width:").concat(tf,"; ")))))))}}}var tu=__webpack_require__(35);class tg{static multiSelectDefaultValues(tt){let ta,ti,tr,tn,to,tl,ts,tc,td,tg,tp,tm=defaultsJSON[tt][0],th=defaultsJSON[tt][1],tf,tb=[],t_,ty,tv={},tx={},tS={},tO={},tA={},tE=0;if(("acc_multi_select"===tm||"acc_single_select"===tm)&&"false"===show_cross_selling_tabs){let tt=document.querySelector(".cms-block-cross-selling");tt&&!tt.classList.contains("bogx--hidden")&&tt.classList.add("bogx--hidden")}if(th&&"object"==typeof th&&"{}"!==JSON.stringify(th))for(tf in th)th.hasOwnProperty(tf)&&(ti="checkbox_set"===tm?tf:"image"===tm||"image_title"===tm||"image_title_price"===tm||"image_product"===tm||"image_product_fix"===tm?tf:"bogx_quantity_"+tf,(tn=document.getElementById(ti)
10)?((isNaN(to=parseInt(th[tf],10))||0===to)&&(to=1),(tl=tn.getAttribute("data-unit"))||(tl=""),(ts=tn.getAttribute("data-dispatch"))||(ts="0"),tc=tu.Z.getDispatchValue(tt,ts,to),(td=tn.getAttribute("data-delivery"))||(td=""),(tg=tn.getAttribute("data-ocb"))||(tg=""),tb.push(tf),tv[tf]=to,tx[tf]=tl,tS[tf]=tc,tO[tf]=td,tA[tf]=tg):tE+=1);else if("string"==typeof th&&""!==th){if((tp=(ty=th.split(";")).length)>=1)for(let th=0;th<tp;th++){if(t_=ty[th],"checkbox_quantity"===tm)ta='div.bogx--config.check[data-key="'.concat(tt,'"][data-value="').concat(t_,'"]'),tf=(tr=document.querySelector(ta)).getAttribute("data-valueid"),ti="bogx_quantity_".concat(tf),tn=document.getElementById(ti),to=1,tn&&(isNaN(to=parseInt(tn.value,10))||0===to)&&(to=1);else if("article_virtual_multi"===tm||"article_virtual_single"===tm||"article_virtual_kit"===tm||"article_multi_select"===tm||"article_single_select"===tm||"article_kit"===tm||"acc_multi_select"===tm||"acc_single_select"===tm||"variant_multi_select"===tm||"variant_single_select"===tm)ta='div.bogx--config.image[data-key="'.concat(tt,'"][data-value="').concat(t_,'"]'),tf=(tr=document.querySelector(ta)).getAttribute("data-valueid"),ti="bogx_quantity_".concat(tf),tn=document.getElementById(ti),to=1,tn&&(isNaN(to=parseInt(tn.value,10))||0===to)&&(to=1);else if("checkbox_set"===tm)ta='div.bogx--config.check[data-key="'.concat(tt,'"][data-value="').concat(t_,'"]'),ti=tf=(tr=document.querySelector(ta)).getAttribute("data-valueid"),(isNaN(to=parseInt((tn=document.getElementById(ti)).getAttribute("data-quantity"),10))||0===to)&&(to=1);else if("image"===tm||"image_title"===tm||"image_title_price"===tm||"image_product"===tm||"image_product_fix"===tm){let tl=document.getElementById(tt).getAttribute("data-layout");ta="list"===tl?'div.bogx--config.image-wrap[data-key="'.concat(tt,'"][data-value="').concat(t_,'"]'):"select"===tl?'div.bogx--config.image-wrap[data-key="'.concat(tt,'"][data-value="').concat(t_,'"]'):'div.bogx--config.image-grid[data-key="'.concat(tt,'"][data-value="').concat(t_,'"]'),ti=tf=(tr=document.querySelector(ta)).getAttribute("data-valueid"),(isNaN(to=parseInt((tn=document.getElementById(ti)).getAttribute("data-quantity"),10))||0===to)&&(to=1)}tn?((tl=tn.getAttribute("data-unit"))||(tl=""),(ts=tn.getAttribute("data-dispatch"))||(ts="0"),(td=tn.getAttribute("data-delivery"))||(td=""),(tg=tn.getAttribute("data-ocb"))||(tg="")):(tl="",ts="0",td="",tg=""),tc=tu.Z.getDispatchValue(tt,ts,to),tb.push(tf),tv[tf]=to,tx[tf]=tl,tS[tf]=tc,tO[tf]=td,tA[tf]=tg}}else""===th&&("variant_multi_select"===tm||"variant_single_select"===tm)&&(t_=articlepicker_variant_default_value,ta='div.bogx--config.image[data-key="'.concat(tt,'"][data-value="').concat(t_,'"]'),tf=(tr=document.querySelector(ta)).getAttribute("data-valueid"),ti="bogx_quantity_".concat(tf),tn=document.getElementById(ti),to=1,tl="",!tn||((isNaN(to=parseInt(tn.value,10))||0===to)&&(to=1),(tl=tn.getAttribute("data-unit"))||(tl=""),(ts=tn.getAttribute("data-dispatch"))||(ts="0"),tc=tu.Z.getDispatchValue(tt,ts,to),(td=tn.getAttribute("data-delivery"))||(td=""),(tg=tn.getAttribute("data-ocb"))||(tg="")),tb.push(tf),tv[tf]=to,tx[tf]=tl,tS[tf]=tc,tO[tf]=td,tA[tf]=tg);return defaultsJSON[tt][1]=tv,defaultsJSON[tt][2]=tb,defaultsJSON[tt][4]=tx,defaultsJSON[tt][5]=tS,defaultsJSON[tt][6]=tO,defaultsJSON[tt][7]=tA,tE}}var tp=__webpack_require__(269),tm=tm||function(tt,ta){var ti={},tr=ti.lib={},tn=function(){},to=tr.Base={extend:function(tt){tn.prototype=this;var ta=new tn;return tt&&ta.mixIn(tt),ta.hasOwnProperty("init")||(ta.init=function(){ta.$super.init.apply(this,arguments)}),ta.init.prototype=ta,ta.$super=this,ta},create:function(){var tt=this.extend();return tt.init.apply(tt,arguments),tt},init:function(){},mixIn:function(tt){for(var ta in tt)tt.hasOwnProperty(ta)&&(this[ta]=tt[ta]);tt.hasOwnProperty("toString")&&(this.toString=tt.toString)},clone:function(){return this.init.prototype.extend(this)}},tl=tr.WordArray=to.extend({init:function(tt,ta){tt=this.words=tt||[],this.sigBytes=void 0!=ta?ta:4*tt.length},toString:function(tt){return(tt||tc).stringify(this)},concat:function(tt){var ta=this.words,ti=tt.words,tr=this.sigBytes;if(tt=tt.sigBytes,this.clamp(),tr%4)for(var tn=0;tn<tt;tn++)ta[tr+tn>>>2]|=(ti[tn>>>2]>>>24-8*(tn%4)&255)<<24-8*((tr+tn)%4);else if(65535<ti.length)for(tn=0;tn<tt;tn+=4)ta[tr+tn>>>2]=ti[tn>>>2];else ta.push.apply(ta,ti);return this.sigBytes+=tt,this},clamp:function(){var ta=this.words,ti=this.sigBytes;ta[ti>>>2]&=4294967295<<32-8*(ti%4),ta.length=tt.ceil(ti/4)},clone:function(){var tt=to.clone.call(this);return tt.words=this.words.slice(0),tt},random:function(ta){for(var ti=[],tr=0;tr<ta;tr+=4)ti.push(4294967296*tt.random()|0);return new tl.init(ti,ta)}}),ts=ti.enc={},tc=ts.Hex={stringify:function(tt){var ta=tt.words;tt=tt.sigBytes;for(var ti=[],tr=0;tr<tt;tr++){var tn=ta[tr>>>2]>>>24-8*(tr%4)&255;ti.push((tn>>>4).toString(16)),ti.push((15&tn).toString(16))}return ti.join("")},parse:function(tt){for(var ta=tt.length,ti=[],tr=0;tr<ta;tr+=2)ti[tr>>>3]|=parseInt(tt.substr(tr,2),16)<<24-4*(tr%8);return new tl.init(ti,ta/2)}},td=ts.Latin1={stringify:function(tt){var ta=tt.words;tt=tt.sigBytes;for(var ti=[],tr=0;tr<tt;tr++)ti.push(String.fromCharCode(ta[tr>>>2]>>>24-8*(tr%4)&255));return ti.join("")},parse:function(tt){for(var ta=tt.length,ti=[],tr=0;tr<ta;tr++)ti[tr>>>2]|=(255&tt.charCodeAt(tr))<<24-8*(tr%4);return new tl.init(ti,ta)}},tu=ts.Utf8={stringify:function(tt){try{return decodeURIComponent(escape(td.stringify(tt)))}catch(tt){throw Error("Malformed UTF-8 data")}},parse:function(tt){return td.parse(unescape(encodeURIComponent(tt)))}},tg=tr.BufferedBlockAlgorithm=to.extend({reset:function(){this._data=new tl.init,this._nDataBytes=0},_append:function(tt){"string"==typeof tt&&(tt=tu.parse(tt)),this._data.concat(tt),this._nDataBytes+=tt.sigBytes},_process:function(ta){var ti=this._data,tr=ti.words,tn=ti.sigBytes,to=this.blockSize,ts=tn/(4*to),ts=ta?tt.ceil(ts):tt.max((0|ts)-this._minBufferSize,0);if(ta=ts*to,tn=tt.min(4*ta,tn),ta){for(var tc=0;tc<ta;tc+=to)this._doProcessBlock(tr,tc);tc=tr.splice(0,ta),ti.sigBytes-=tn}return new tl.init(tc,tn)},clone:function(){var tt=to.clone.call(this);return tt._data=this._data.clone(),tt},_minBufferSize:0});tr.Hasher=tg.extend({cfg:to.extend(),init:function(tt){this.cfg=this.cfg.extend(tt),this.reset()},reset:function(){tg.reset.call(this),this._doReset()},update:function(tt){return this._append(tt),this._process(),this},finalize:function(tt){return tt&&this._append(tt),this._doFinalize()},blockSize:16,_createHelper:function(tt){return function(ta,ti){return new tt.init(ti).finalize(ta)}},_createHmacHelper:function(tt){return function(ta,ti){return new tp.HMAC.init(tt,ti).finalize(ta)}}});var tp=ti.algo={};return ti}(Math);(function(){var tt=tm,ta=tt.lib.WordArray;tt.enc.Base64={stringify:function(tt){var ta=tt.words,ti=tt.sigBytes,tr=this._map;tt.clamp(),tt=[];for(var tn=0;tn<ti;tn+=3)for(var to=(ta[tn>>>2]>>>24-8*(tn%4)&255)<<16|(ta[tn+1>>>2]>>>24-8*((tn+1)%4)&255)<<8|ta[tn+2>>>2]>>>
1024-8*((tn+2)%4)&255,tl=0;4>tl&&tn+.75*tl<ti;tl++)tt.push(tr.charAt(to>>>6*(3-tl)&63));if(ta=tr.charAt(64))for(;tt.length%4;)tt.push(ta);return tt.join("")},parse:function(tt){var ti=tt.length,tr=this._map,tn=tr.charAt(64);tn&&-1!=(tn=tt.indexOf(tn))&&(ti=tn);for(var tn=[],to=0,tl=0;tl<ti;tl++)if(tl%4){var ts=tr.indexOf(tt.charAt(tl-1))<<2*(tl%4),tc=tr.indexOf(tt.charAt(tl))>>>6-2*(tl%4);tn[to>>>2]|=(ts|tc)<<24-8*(to%4),to++}return ta.create(tn,to)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),function(tt){function ta(tt,ta,ti,tr,tn,to,tl){return tt=tt+(ta&ti|~ta&tr)+tn+tl,(tt<<to|tt>>>32-to)+ta}function ti(tt,ta,ti,tr,tn,to,tl){return tt=tt+(ta&tr|ti&~tr)+tn+tl,(tt<<to|tt>>>32-to)+ta}function tr(tt,ta,ti,tr,tn,to,tl){return tt=tt+(ta^ti^tr)+tn+tl,(tt<<to|tt>>>32-to)+ta}function tn(tt,ta,ti,tr,tn,to,tl){return tt=tt+(ti^(ta|~tr))+tn+tl,(tt<<to|tt>>>32-to)+ta}for(var to=tm,tl=to.lib,ts=tl.WordArray,tc=tl.Hasher,tl=to.algo,td=[],tu=0;64>tu;tu++)td[tu]=4294967296*tt.abs(tt.sin(tu+1))|0;tl=tl.MD5=tc.extend({_doReset:function(){this._hash=new ts.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(tt,to){for(var tl=0;16>tl;tl++){var ts=to+tl,tc=tt[ts];tt[ts]=(tc<<8|tc>>>24)&16711935|(tc<<24|tc>>>8)&4278255360}var tl=this._hash.words,ts=tt[to+0],tc=tt[to+1],tu=tt[to+2],tg=tt[to+3],tp=tt[to+4],tm=tt[to+5],th=tt[to+6],tf=tt[to+7],tb=tt[to+8],t_=tt[to+9],ty=tt[to+10],tv=tt[to+11],tx=tt[to+12],tS=tt[to+13],tO=tt[to+14],tA=tt[to+15],tE=tl[0],tN=tl[1],tw=tl[2],tk=tl[3],tE=ta(tE,tN,tw,tk,ts,7,td[0]),tk=ta(tk,tE,tN,tw,tc,12,td[1]),tw=ta(tw,tk,tE,tN,tu,17,td[2]),tN=ta(tN,tw,tk,tE,tg,22,td[3]),tE=ta(tE,tN,tw,tk,tp,7,td[4]),tk=ta(tk,tE,tN,tw,tm,12,td[5]),tw=ta(tw,tk,tE,tN,th,17,td[6]),tN=ta(tN,tw,tk,tE,tf,22,td[7]),tE=ta(tE,tN,tw,tk,tb,7,td[8]),tk=ta(tk,tE,tN,tw,t_,12,td[9]),tw=ta(tw,tk,tE,tN,ty,17,td[10]),tN=ta(tN,tw,tk,tE,tv,22,td[11]),tE=ta(tE,tN,tw,tk,tx,7,td[12]),tk=ta(tk,tE,tN,tw,tS,12,td[13]),tw=ta(tw,tk,tE,tN,tO,17,td[14]),tN=ta(tN,tw,tk,tE,tA,22,td[15]),tE=ti(tE,tN,tw,tk,tc,5,td[16]),tk=ti(tk,tE,tN,tw,th,9,td[17]),tw=ti(tw,tk,tE,tN,tv,14,td[18]),tN=ti(tN,tw,tk,tE,ts,20,td[19]),tE=ti(tE,tN,tw,tk,tm,5,td[20]),tk=ti(tk,tE,tN,tw,ty,9,td[21]),tw=ti(tw,tk,tE,tN,tA,14,td[22]),tN=ti(tN,tw,tk,tE,tp,20,td[23]),tE=ti(tE,tN,tw,tk,t_,5,td[24]),tk=ti(tk,tE,tN,tw,tO,9,td[25]),tw=ti(tw,tk,tE,tN,tg,14,td[26]),tN=ti(tN,tw,tk,tE,tb,20,td[27]),tE=ti(tE,tN,tw,tk,tS,5,td[28]),tk=ti(tk,tE,tN,tw,tu,9,td[29]),tw=ti(tw,tk,tE,tN,tf,14,td[30]),tN=ti(tN,tw,tk,tE,tx,20,td[31]),tE=tr(tE,tN,tw,tk,tm,4,td[32]),tk=tr(tk,tE,tN,tw,tb,11,td[33]),tw=tr(tw,tk,tE,tN,tv,16,td[34]),tN=tr(tN,tw,tk,tE,tO,23,td[35]),tE=tr(tE,tN,tw,tk,tc,4,td[36]),tk=tr(tk,tE,tN,tw,tp,11,td[37]),tw=tr(tw,tk,tE,tN,tf,16,td[38]),tN=tr(tN,tw,tk,tE,ty,23,td[39]),tE=tr(tE,tN,tw,tk,tS,4,td[40]),tk=tr(tk,tE,tN,tw,ts,11,td[41]),tw=tr(tw,tk,tE,tN,tg,16,td[42]),tN=tr(tN,tw,tk,tE,th,23,td[43]),tE=tr(tE,tN,tw,tk,t_,4,td[44]),tk=tr(tk,tE,tN,tw,tx,11,td[45]),tw=tr(tw,tk,tE,tN,tA,16,td[46]),tN=tr(tN,tw,tk,tE,tu,23,td[47]),tE=tn(tE,tN,tw,tk,ts,6,td[48]),tk=tn(tk,tE,tN,tw,tf,10,td[49]),tw=tn(tw,tk,tE,tN,tO,15,td[50]),tN=tn(tN,tw,tk,tE,tm,21,td[51]),tE=tn(tE,tN,tw,tk,tx,6,td[52]),tk=tn(tk,tE,tN,tw,tg,10,td[53]),tw=tn(tw,tk,tE,tN,ty,15,td[54]),tN=tn(tN,tw,tk,tE,tc,21,td[55]),tE=tn(tE,tN,tw,tk,tb,6,td[56]),tk=tn(tk,tE,tN,tw,tA,10,td[57]),tw=tn(tw,tk,tE,tN,th,15,td[58]),tN=tn(tN,tw,tk,tE,tS,21,td[59]),tE=tn(tE,tN,tw,tk,tp,6,td[60]),tk=tn(tk,tE,tN,tw,tv,10,td[61]),tw=tn(tw,tk,tE,tN,tu,15,td[62]),tN=tn(tN,tw,tk,tE,t_,21,td[63]);tl[0]=tl[0]+tE|0,tl[1]=tl[1]+tN|0,tl[2]=tl[2]+tw|0,tl[3]=tl[3]+tk|0},_doFinalize:function(){var ta=this._data,ti=ta.words,tr=8*this._nDataBytes,tn=8*ta.sigBytes;ti[tn>>>5]|=128<<24-tn%32;var to=tt.floor(tr/4294967296);for(ti[(tn+64>>>9<<4)+15]=(to<<8|to>>>24)&16711935|(to<<24|to>>>8)&4278255360,ti[(tn+64>>>9<<4)+14]=(tr<<8|tr>>>24)&16711935|(tr<<24|tr>>>8)&4278255360,ta.sigBytes=4*(ti.length+1),this._process(),ti=(ta=this._hash).words,tr=0;4>tr;tr++)tn=ti[tr],ti[tr]=(tn<<8|tn>>>24)&16711935|(tn<<24|tn>>>8)&4278255360;return ta},clone:function(){var tt=tc.clone.call(this);return tt._hash=this._hash.clone(),tt}}),to.MD5=tc._createHelper(tl),to.HmacMD5=tc._createHmacHelper(tl)}(Math),function(){var tt=tm,ta=tt.lib,ti=ta.Base,tr=ta.WordArray,ta=tt.algo,tn=ta.EvpKDF=ti.extend({cfg:ti.extend({keySize:4,hasher:ta.MD5,iterations:1}),init:function(tt){this.cfg=this.cfg.extend(tt)}
vendor: 5,471 bytes, line 10
10,compute:function(tt,ta){for(var ti=this.cfg,tn=ti.hasher.create(),to=tr.create(),tl=to.words,ts=ti.keySize,ti=ti.iterations;tl.length<ts;){tc&&tn.update(tc);var tc=tn.update(tt).finalize(ta);tn.reset();for(var td=1;td<ti;td++)tc=tn.finalize(tc),tn.reset();to.concat(tc)}return to.sigBytes=4*ts,to}});tt.EvpKDF=function(tt,ta,ti){return tn.create(ti).compute(tt,ta)}}(),tm.lib.Cipher||function(){var tt=tm,ta=tt.lib,ti=ta.Base,tr=ta.WordArray,tn=ta.BufferedBlockAlgorithm,to=tt.enc.Base64,tl=tt.algo.EvpKDF,ts=ta.Cipher=tn.extend({cfg:ti.extend(),createEncryptor:function(tt,ta){return this.create(this._ENC_XFORM_MODE,tt,ta)},createDecryptor:function(tt,ta){return this.create(this._DEC_XFORM_MODE,tt,ta)},init:function(tt,ta,ti){this.cfg=this.cfg.extend(ti),this._xformMode=tt,this._key=ta,this.reset()},reset:function(){tn.reset.call(this),this._doReset()},process:function(tt){return this._append(tt),this._process()},finalize:function(tt){return tt&&this._append(tt),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(tt){return{encrypt:function(ta,ti,tr){return("string"==typeof ti?th:tp).encrypt(tt,ta,ti,tr)},decrypt:function(ta,ti,tr){return("string"==typeof ti?th:tp).decrypt(tt,ta,ti,tr)}}}});ta.StreamCipher=ts.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var tc=tt.mode={},td=function(tt,ta,ti){var tr=this._iv;tr?this._iv=void 0:tr=this._prevBlock;for(var tn=0;tn<ti;tn++)tt[ta+tn]^=tr[tn]},tu=(ta.BlockCipherMode=ti.extend({createEncryptor:function(tt,ta){return this.Encryptor.create(tt,ta)},createDecryptor:function(tt,ta){return this.Decryptor.create(tt,ta)},init:function(tt,ta){this._cipher=tt,this._iv=ta}})).extend();tu.Encryptor=tu.extend({processBlock:function(tt,ta){var ti=this._cipher,tr=ti.blockSize;td.call(this,tt,ta,tr),ti.encryptBlock(tt,ta),this._prevBlock=tt.slice(ta,ta+tr)}}),tu.Decryptor=tu.extend({processBlock:function(tt,ta){var ti=this._cipher,tr=ti.blockSize,tn=tt.slice(ta,ta+tr);ti.decryptBlock(tt,ta),td.call(this,tt,ta,tr),this._prevBlock=tn}}),tc=tc.CBC=tu,tu=(tt.pad={}).Pkcs7={pad:function(tt,ta){for(var ti=4*ta,ti=ti-tt.sigBytes%ti,tn=ti<<24|ti<<16|ti<<8|ti,to=[],tl=0;tl<ti;tl+=4)to.push(tn);ti=tr.create(to,ti),tt.concat(ti)},unpad:function(tt){tt.sigBytes-=255&tt.words[tt.sigBytes-1>>>2]}},ta.BlockCipher=ts.extend({cfg:ts.cfg.extend({mode:tc,padding:tu}),reset:function(){ts.reset.call(this);var tt=this.cfg,ta=tt.iv,tt=tt.mode;if(this._xformMode==this._ENC_XFORM_MODE)var ti=tt.createEncryptor;else ti=tt.createDecryptor,this._minBufferSize=1;this._mode=ti.call(tt,this,ta&&ta.words)},_doProcessBlock:function(tt,ta){this._mode.processBlock(tt,ta)},_doFinalize:function(){var tt=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){tt.pad(this._data,this.blockSize);var ta=this._process(!0)}else ta=this._process(!0),tt.unpad(ta);return ta},blockSize:4});var tg=ta.CipherParams=ti.extend({init:function(tt){this.mixIn(tt)},toString:function(tt){return(tt||this.formatter).stringify(this)}}),tc=(tt.format={}).OpenSSL={stringify:function(tt){var ta=tt.ciphertext;return tt=tt.salt,(tt?tr.create([1398893684,1701076831]).concat(tt).concat(ta):ta).toString(to)},parse:function(tt){var ta=(tt=to.parse(tt)).words;if(1398893684==ta[0]&&1701076831==ta[1]){var ti=tr.create(ta.slice(2,4));ta.splice(0,4),tt.sigBytes-=16}return tg.create({ciphertext:tt,salt:ti})}},tp=ta.SerializableCipher=ti.extend({cfg:ti.extend({format:tc}),encrypt:function(tt,ta,ti,tr){tr=this.cfg.extend(tr);var tn=tt.createEncryptor(ti,tr);return ta=tn.finalize(ta),tn=tn.cfg,tg.create({ciphertext:ta,key:ti,iv:tn.iv,algorithm:tt,mode:tn.mode,padding:tn.padding,blockSize:tt.blockSize,formatter:tr.format})},decrypt:function(tt,ta,ti,tr){return tr=this.cfg.extend(tr),ta=this._parse(ta,tr.format),tt.createDecryptor(ti,tr).finalize(ta.ciphertext)},_parse:function(tt,ta){return"string"==typeof tt?ta.parse(tt,this):tt}}),tt=(tt.kdf={}).OpenSSL={execute:function(tt,ta,ti,tn){return tn||(tn=tr.random(8)),tt=tl.create({keySize:ta+ti}).compute(tt,tn),ti=tr.create(tt.words.slice(ta),4*ti),tt.sigBytes=4*ta,tg.create({key:tt,iv:ti,salt:tn})}},th=ta.PasswordBasedCipher=tp.extend({cfg:tp.cfg.extend({kdf:tt}),encrypt:function(tt,ta,ti,tr){return ti=(tr=this.cfg.extend(tr)).kdf.execute(ti,tt.keySize,tt.ivSize),tr.iv=ti.iv,(tt=tp.encrypt.call(this,tt,ta,ti.key,tr)).mixIn(ti),tt},decrypt:function(tt,ta,ti,tr){return tr=this.cfg.extend(tr),ta=this._parse(ta,tr.format),ti=tr.kdf.execute(ti,tt.keySize,tt.ivSize,ta.salt),tr.iv=ti.iv,tp.decrypt.call(this,tt,ta,ti.key,tr)}})}(),function(){for(var tt=tm,ta=tt.lib.BlockCipher,ti=tt.algo,tr=[],tn=[],to=[],tl=[],ts=[],tc=[],td=[],tu=[],tg=[],tp=[],th=[],tf=0;256>tf;tf++)th[tf]=128>tf?tf<<1:tf<<1^283;for(var tb=0,t_=0,tf=0;256>tf;tf++){var ty=t_^t_<<1^t_<<2^t_<<3^t_<<4,ty=ty>>>8^255&ty^99;tr[tb]=ty,tn[ty]=tb;var tv=th[tb],tx=th[tv],tS=th[tx],tO=257*th[ty]^16843008*ty;to[tb]=tO<<24|tO>>>8,tl[tb]=tO<<16|tO>>>16,ts[tb]=tO<<8|tO>>>24,tc[tb]=tO,tO=16843009*tS^65537*tx^257*tv^16843008*tb,td[ty]=tO<<24|tO>>>8,tu[ty]=tO<<16|tO>>>16,tg[ty]=tO<<8|tO>>>24,tp[ty]=tO,tb?(tb=tv^th[th[th[tS^tv]]],t_^=th[th[t_]]):tb=t_=1}var tA=[0,1,2,4,8,16,32,64,128,27,54],ti=ti.AES=ta.extend({_doReset:function(){for(var tt=this._key,ta=tt.words,ti=tt.sigBytes/4,tt=4*((this._nRounds=ti+6)+1),tn=this._keySchedule=[],to=0;to<tt;to++)if(to<ti)tn[to]=ta[to];else{var tl=tn[to-1];to%ti?6<ti&&4==to%ti&&(tl=tr[tl>>>24]<<24|tr[tl>>>16&255]<<16|tr[tl>>>
108&255]<<8|tr[255&tl]):tl=(tr[(tl=tl<<8|tl>>>24)>>>24]<<24|tr[tl>>>16&255]<<16|tr[tl>>>8&255]<<8|tr[255&tl])^tA[to/ti|0]<<24,tn[to]=tn[to-ti]^tl}for(ti=0,ta=this._invKeySchedule=[];ti<tt;ti++)to=tt-ti,tl=ti%4?tn[to]:tn[to-4],ta[ti]=4>ti||4>=to?tl:td[tr[tl>>>24]]^tu[tr[tl>>>16&255]]^tg[tr[tl>>>8&255]]^tp[tr[255&tl]]},encryptBlock:function(tt,ta){this._doCryptBlock(tt,ta,this._keySchedule,to,tl,ts,tc,tr)},decryptBlock:function(tt,ta){var ti=tt[ta+1];tt[ta+1]=tt[ta+3],tt[ta+3]=ti,this._doCryptBlock(tt,ta,this._invKeySchedule,td,tu,tg,tp,tn),ti=tt[ta+1],tt[ta+1]=tt[ta+3],tt[ta+3]=ti},_doCryptBlock:function(tt,ta,ti,tr,tn,to,tl,ts){for(var tc=this._nRounds,td=tt[ta]^ti[0],tu=tt[ta+1]^ti[1],tg=tt[ta+2]^ti[2],tp=tt[ta+3]^ti[3],tm=4,th=1;th<tc;th++)var tf=tr[td>>>24]^tn[tu>>>16&255]^to[tg>>>8&255]^tl[255&tp]^ti[tm++],tb=tr[tu>>>24]^tn[tg>>>16&255]^to[tp>>>8&255]^tl[255&td]^ti[tm++],t_=tr[tg>>>24]^tn[tp>>>16&255]^to[td>>>8&255]^tl[255&tu]^ti[tm++],tp=tr[tp>>>24]^tn[td>>>16&255]^to[tu>>>8&255]^tl[255&tg]^ti[tm++],td=tf,tu=tb,tg=t_;tf=(ts[td>>>24]<<24|ts[tu>>>16&255]<<16|ts[tg>>>8&255]<<8|ts[255&tp])^ti[tm++],tb=(ts[tu>>>24]<<24|ts[tg>>>16&255]<<16|ts[tp>>>8&255]<<8|ts[255&td])^ti[tm++],t_=(ts[tg>>>24]<<24|ts[tp>>>16&255]<<16|ts[td>>>8&255]<<8|ts[255&tu])^ti[tm++],tp=(ts[tp>>>24]<<24|ts[td>>>16&255]<<16|ts[tu>>>8&255]<<8|ts[255&tg])^ti[tm++],tt[ta]=tf,tt[ta+1]=tb,tt[ta+2]=t_,tt[ta+3]=tp},keySize:8});tt.AES=ta._createHelper(ti)}();var th={encrypt:function(tt,ta){return tm.AES.encrypt(JSON.stringify(tt),ta,{format:th}).toString()},decrypt:function(tt,ta){return JSON.parse(tm.AES.decrypt(tt,ta,{format:th}).toString(tm.enc.Utf8))},stringify:function(tt){var ta={ct:tt.ciphertext.toString(tm.enc.Base64)};return tt.iv&&(ta.iv=tt.iv.toString()),tt.salt&&(ta.s=tt.salt.toString()),JSON.stringify(ta).replace(/\s/g,"")},parse:function(tt){var ta=JSON.parse(tt),ti=tm.lib.CipherParams.create({ciphertext:tm.enc.Base64.parse(ta.ct)});return ta.iv&&(ti.iv=tm.enc.Hex.parse(ta.iv)),ta.s&&(ti.salt=tm.enc.Hex.parse(ta.s)),ti}},tf=tf||function(tt,ta){var ti={},tr=ti.lib={},tn=function(){},to=tr.Base={extend:function(tt){tn.prototype=this;var ta=new tn;return tt&&ta.mixIn(tt),ta.hasOwnProperty("init")||(ta.init=function(){ta.$super.init.apply(this,arguments)}),ta.init.prototype=ta,ta.$super=this,ta},create:function(){var tt=this.extend();return tt.init.apply(tt,arguments),tt},init:function(){},mixIn:function(tt){for(var ta in tt)tt.hasOwnProperty(ta)&&(this[ta]=tt[ta]);tt.hasOwnProperty("toString")&&(this.toString=tt.toString)},clone:function(){return this.init.prototype.extend(this)}},tl=tr.WordArray=to.extend({init:function(tt,ta){tt=this.words=tt||[],this.sigBytes=void 0!=ta?ta:4*tt.length},toString:function(tt){return(tt||tc).stringify(this)},concat:function(tt){var ta=this.words,ti=tt.words,tr=this.sigBytes;if(tt=tt.sigBytes,this.clamp(),tr%4)for(var tn=0;tn<tt;tn++)ta[tr+tn>>>2]|=(ti[tn>>>2]>>>24-8*(tn%4)&255)<<24-8*((tr+tn)%4);else if(65535<ti.length)for(tn=0;tn<tt;tn+=4)ta[tr+tn>>>2]=ti[tn>>>2];else ta.push.apply(ta,ti);return this.sigBytes+=tt,this},clamp:function(){var ta=this.words,ti=this.sigBytes;ta[ti>>>2]&=4294967295<<32-8*(ti%4),ta.length=tt.ceil(ti/4)},clone:function(){var tt=to.clone.call(this);return tt.words=this.words.slice(0),tt},random:function(ta){for(var ti=[],tr=0;tr<ta;tr+=4)ti.push(4294967296*tt.random()|0);return new tl.init(ti,ta)}}),ts=ti.enc={},tc=ts.Hex={stringify:function(tt){var ta=tt.words;tt=tt.sigBytes;for(var ti=[],tr=0;tr<tt;tr++){var tn=ta[tr>>>2]>>>24-8*(tr%4)&255;ti.push((tn>>>4).toString(16)),ti.push((15&tn).toString(16))}return ti.join("")},parse:function(tt){for(var ta=tt.length,ti=[],tr=0;tr<ta;tr+=2)ti[tr>>>3]|=parseInt(tt.substr(tr,2),16)<<24-4*(tr%8);return new tl.init(ti,ta/2)}},td=ts.Latin1={stringify:function(tt){var ta=tt.words;tt=tt.sigBytes;for(var ti=[],tr=0;tr<tt;tr++)ti.push(String.fromCharCode(ta[tr>>>2]>>>24-8*(tr%4)&255));return ti.join("")},parse:function(tt){for(var ta=tt.length,ti=[],tr=0;tr<ta;tr++)ti[tr>>>2]|=(255&tt.charCodeAt(tr))<<24-8*(tr%4);return new tl.init(ti,ta)}},tu=ts.Utf8={stringify:function(tt){try{return decodeURIComponent(escape(td.stringify(tt)))}catch(tt){throw Error("Malformed UTF-8 data")}},parse:function(tt){return td.parse(unescape(encodeURIComponent(tt)))}},tg=tr.BufferedBlockAlgorithm=to.extend({reset:function(){this._data=new tl.init,this._nDataBytes=0},_append:function(tt){"string"==typeof tt&&(tt=tu.parse(tt)),this._data.concat(tt),this._nDataBytes+=tt.sigBytes},_process:function(ta){var ti=this._data,tr=ti.words,tn=ti.sigBytes,to=this.blockSize,ts=tn/(4*to),ts=ta?tt.ceil(ts):tt.max((0|ts)-this._minBufferSize,0);if(ta=ts*to,tn=tt.min(4*ta,tn),ta){for(var tc=0;tc<ta;tc+=to)this._doProcessBlock(tr,tc);tc=tr.splice(0,ta),ti.sigBytes-=tn}return new tl.init(tc,tn)},clone:function(){var tt=to.clone.call(this);return tt._data=this._data.clone(),tt},_minBufferSize:0});tr.Hasher=tg.extend({cfg:to.extend(),init:function(tt){this.cfg=this.cfg.extend(tt),this.reset()},reset:function(){tg.reset.call(this),this._doReset()},update:function(tt){return this._append(tt),this._process(),this},finalize:function(tt){return tt&&this._append(tt),this._doFinalize()},blockSize:16,_createHelper:function(tt){return function(ta,ti){return new tt.init(ti).finalize(ta)}},_createHmacHelper:function(tt){return function(ta,ti){return new tp.HMAC.init(tt,ti).finalize(ta)}}});var tp=ti.algo={};return ti}(Math);(function(){var tt=tf,ta=tt.lib,ti=ta.WordArray,tr=ta.Hasher,tn=[],ta=tt.algo.SHA1=tr.extend({_doReset:function(){this._hash=new ti.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(tt,ta){for(var ti=this._hash.words,tr=ti[0],to=ti[1],tl=ti[2],ts=ti[3],tc=ti[4],td=0;80>td;td++){if(16>td)tn[td]=0|tt[ta+td];else{var tu=tn[td-3]^tn[td-8]^tn[td-14]^tn[td-16];tn[td]=tu<<1|tu>>>31}tu=(tr<<5|tr>>>27)+tc+tn[td],tu=20>td?tu+((to&tl|~to&ts)+1518500249):40>td?tu+((to^tl^ts)+1859775393):60>td?tu+((to&tl|to&ts|tl&ts)-1894007588):tu+((to^tl^ts)-899497514),tc=ts,ts=tl,tl=to<<30|to>>>2,to=tr,tr=tu}ti[0]=ti[0]+tr|0,ti[1]=ti[1]+to|0,ti[2]=ti[2]+tl|0,ti[3]=ti[3]+ts|0,ti[4]=ti[4]+tc|0},_doFinalize:function(){var tt=this._data,ta=tt.words,ti=8*this._nDataBytes,tr=8*tt.sigBytes;return ta[tr>>>5]|=128<<24-tr%32,ta[(tr+64>>>9<<4)+14]=Math.floor(ti/4294967296),ta[(tr+64>>>9<<4)+15]=ti,tt.sigBytes=4*ta.length,this._process(),this._hash},clone:function(){var tt=tr.clone.call(this);return tt._hash=this._hash.clone(),tt}});tt.SHA1=tr._createHelper(ta),tt.HmacSHA1=tr._createHmacHelper(ta)})(),function(){var tt=tf,ta=tt.enc.Utf8;tt.algo.HMAC=tt.lib.Base.extend({init:function(tt,ti){tt=this._hasher=new tt.init,"string"==typeof ti&&(ti=ta.parse(ti));var tr=tt.blockSize,tn=4*tr;ti.sigBytes>tn&&(ti=tt.finalize(ti)),ti.clamp();for(var to=this._oKey=ti.clone(),tl=this._iKey=ti.clone(),ts=to.words,tc=tl.words,td=0;td<tr;td++)ts[td]^=1549556828,tc[td]^=909522486;to.sigBytes=tl.sigBytes=tn,this.reset()},reset:function(){var tt=this._hasher;tt.reset(),tt.update(this._iKey)},update:function(tt){return this._hasher.update(tt),this},finalize:function(tt){var ta=this._hasher;return tt=ta.finalize(tt),ta.reset(),ta.finalize(this._oKey.clone().concat(tt))}})}(),function(){var tt=tf,ta=tt.lib,ti=ta.Base,tr=ta.WordArray,ta=tt.algo,tn=ta.HMAC,to=ta.PBKDF2=ti.extend({cfg:ti.extend({keySize:4,hasher:ta.SHA1,iterations:1}),init:function(tt){this.cfg=this.cfg.extend(tt)}
10,compute:function(tt,ta){for(var ti=this.cfg,to=tn.create(ti.hasher,tt),tl=tr.create(),ts=tr.create([1]),tc=tl.words,td=ts.words,tu=ti.keySize,ti=ti.iterations;tc.length<tu;){var tg=to.update(ta).finalize(ts);to.reset();for(var tp=tg.words,tm=tp.length,th=tg,tf=1;tf<ti;tf++){th=to.finalize(th),to.reset();for(var tb=th.words,t_=0;t_<tm;t_++)tp[t_]^=tb[t_]}tl.concat(tg),td[0]++}return tl.sigBytes=4*tu,tl}});tt.PBKDF2=function(tt,ta,ti){return to.create(ti).compute(tt,ta)}}();var tb=tb||function(tt,ta){var ti={},tr=ti.lib={},tn=function(){},to=tr.Base={extend:function(tt){tn.prototype=this;var ta=new tn;return tt&&ta.mixIn(tt),ta.hasOwnProperty("init")||(ta.init=function(){ta.$super.init.apply(this,arguments)}),ta.init.prototype=ta,ta.$super=this,ta},create:function(){var tt=this.extend();return tt.init.apply(tt,arguments),tt},init:function(){},mixIn:function(tt){for(var ta in tt)tt.hasOwnProperty(ta)&&(this[ta]=tt[ta]);tt.hasOwnProperty("toString")&&(this.toString=tt.toString)},clone:function(){return this.init.prototype.extend(this)}},tl=tr.WordArray=to.extend({init:function(tt,ta){tt=this.words=tt||[],this.sigBytes=void 0!=ta?ta:4*tt.length},toString:function(tt){return(tt||tc).stringify(this)},concat:function(tt){var ta=this.words,ti=tt.words,tr=this.sigBytes;if(tt=tt.sigBytes,this.clamp(),tr%4)for(var tn=0;tn<tt;tn++)ta[tr+tn>>>2]|=(ti[tn>>>2]>>>24-8*(tn%4)&255)<<24-8*((tr+tn)%4);else if(65535<ti.length)for(tn=0;tn<tt;tn+=4)ta[tr+tn>>>2]=ti[tn>>>2];else ta.push.apply(ta,ti);return this.sigBytes+=tt,this},clamp:function(){var ta=this.words,ti=this.sigBytes;ta[ti>>>2]&=4294967295<<32-8*(ti%4),ta.length=tt.ceil(ti/4)},clone:function(){var tt=to.clone.call(this);return tt.words=this.words.slice(0),tt},random:function(ta){for(var ti=[],tr=0;tr<ta;tr+=4)ti.push(4294967296*tt.random()|0);return new tl.init(ti,ta)}}),ts=ti.enc={},tc=ts.Hex={stringify:function(tt){var ta=tt.words;tt=tt.sigBytes;for(var ti=[],tr=0;tr<tt;tr++){var tn=ta[tr>>>2]>>>24-8*(tr%4)&255;ti.push((tn>>>4).toString(16)),ti.push((15&tn).toString(16))}return ti.join("")},parse:function(tt){for(var ta=tt.length,ti=[],tr=0;tr<ta;tr+=2)ti[tr>>>3]|=parseInt(tt.substr(tr,2),16)<<24-4*(tr%8);return new tl.init(ti,ta/2)}},td=ts.Latin1={stringify:function(tt){var ta=tt.words;tt=tt.sigBytes;for(var ti=[],tr=0;tr<tt;tr++)ti.push(String.fromCharCode(ta[tr>>>2]>>>24-8*(tr%4)&255));return ti.join("")},parse:function(tt){for(var ta=tt.length,ti=[],tr=0;tr<ta;tr++)ti[tr>>>2]|=(255&tt.charCodeAt(tr))<<24-8*(tr%4);return new tl.init(ti,ta)}},tu=ts.Utf8={stringify:function(tt){try{return decodeURIComponent(escape(td.stringify(tt)))}catch(tt){throw Error("Malformed UTF-8 data")}},parse:function(tt){return td.parse(unescape(encodeURIComponent(tt)))}},tg=tr.BufferedBlockAlgorithm=to.extend({reset:function(){this._data=new tl.init,this._nDataBytes=0},_append:function(tt){"string"==typeof tt&&(tt=tu.parse(tt)),this._data.concat(tt),this._nDataBytes+=tt.sigBytes},_process:function(ta){var ti=this._data,tr=ti.words,tn=ti.sigBytes,to=this.blockSize,ts=tn/(4*to),ts=ta?tt.ceil(ts):tt.max((0|ts)-this._minBufferSize,0);if(ta=ts*to,tn=tt.min(4*ta,tn),ta){for(var tc=0;tc<ta;tc+=to)this._doProcessBlock(tr,tc);tc=tr.splice(0,ta),ti.sigBytes-=tn}return new tl.init(tc,tn)},clone:function(){var tt=to.clone.call(this);return tt._data=this._data.clone(),tt},_minBufferSize:0});tr.Hasher=tg.extend({cfg:to.extend(),init:function(tt){this.cfg=this.cfg.extend(tt),this.reset()},reset:function(){tg.reset.call(this),this._doReset()},update:function(tt){return this._append(tt),this._process(),this},finalize:function(tt){return tt&&this._append(tt),this._doFinalize()},blockSize:16,_createHelper:function(tt){return function(ta,ti){return new tt.init(ti).finalize(ta)}},_createHmacHelper:function(tt){return function(ta,ti){return new tp.HMAC.init(tt,ti).finalize(ta)}}});var tp=ti.algo={};return ti}(Math);(function(tt){var ta=tb,ti=ta.lib,tr=ti.Base,tn=ti.WordArray,ta=ta.x64={};ta.Word=tr.extend({init:function(tt,ta){this.high=tt,this.low=ta}}),ta.WordArray=tr.extend({init:function(ta,ti){ta=this.words=ta||[],this.sigBytes=ti!=tt?ti:8*ta.length},toX32:function(){for(var tt=this.words,ta=tt.length,ti=[],tr=0;tr<ta;tr++){var to=tt[tr];ti.push(to.high),ti.push(to.low)}return tn.create(ti,this.sigBytes)},clone:function(){for(var tt=tr.clone.call(this),ta=tt.words=this.words.slice(0),ti=ta.length,tn=0;tn<ti;tn++)ta[tn]=ta[tn].clone();return tt}})})(),function(){function tt(){return tn.create.apply(tn,arguments)}for(var ta=tb,ti=ta.lib.Hasher,tr=ta.x64,tn=tr.Word,to=tr.WordArray,tr=ta.algo,tl=[tt(1116352408,3609767458),tt(1899447441,602891725),tt(3049323471,3964484399),tt(3921009573,2173295548),tt(961987163,4081628472),tt(1508970993,3053834265),tt(2453635748,2937671579),tt(2870763221,3664609560),tt(3624381080,2734883394),tt(310598401,1164996542),tt(607225278,1323610764),tt(1426881987,3590304994),tt(1925078388,4068182383),tt(2162078206,991336113),tt(2614888103,633803317),tt(3248222580,3479774868),tt(3835390401,2666613458),tt(4022224774,944711139),tt(2
1064347078,2341262773),tt(604807628,2007800933),tt(770255983,1495990901),tt(1249150122,1856431235),tt(1555081692,3175218132),tt(1996064986,2198950837),tt(2554220882,3999719339),tt(2821834349,766784016),tt(2952996808,2566594879),tt(3210313671,3203337956),tt(3336571891,1034457026),tt(3584528711,2466948901),tt(113926993,3758326383),tt(338241895,168717936),tt(666307205,1188179964),tt(773529912,1546045734),tt(1294757372,1522805485),tt(1396182291,2643833823),tt(1695183700,2343527390),tt(1986661051,1014477480),tt(2177026350,1206759142),tt(2456956037,344077627),tt(2730485921,1290863460),tt(2820302411,3158454273),tt(3259730800,3505952657),tt(3345764771,106217008),tt(3516065817,3606008344),tt(3600352804,1432725776),tt(4094571909,1467031594),tt(275423344,851169720),tt(430227734,3100823752),tt(506948616,1363258195),tt(659060556,3750685593),tt(883997877,3785050280),tt(958139571,3318307427),tt(1322822218,3812723403),tt(1537002063,2003034995),tt(1747873779,3602036899),tt(1955562222,1575990012),tt(2024104815,1125592928),tt(2227730452,2716904306),tt(2361852424,442776044),tt(2428436474,593698344),tt(2756734187,3733110249),tt(3204031479,2999351573),tt(3329325298,3815920427),tt(3391569614,3928383900),tt(3515267271,566280711),tt(3940187606,3454069534),tt(4118630271,4000239992),tt(116418474,1914138554),tt(174292421,2731055270),tt(289380356,3203993006),tt(460393269,320620315),tt(685471733,587496836),tt(852142971,1086792851),tt(1017036298,365543100),tt(1126000580,2618297676),tt(1288033470,3409855158),tt(1501505948,4234509866),tt(1607167915,987167468),tt(1816402316,1246189591)],ts=[],tc=0;80>tc;tc++)ts[tc]=tt();tr=tr.SHA512=ti.extend({_doReset:function(){this._hash=new to.init([new tn.init(1779033703,4089235720),new tn.init(3144134277,2227873595),new tn.init(1013904242,4271175723),new tn.init(2773480762,1595750129),new tn.init(1359893119,2917565137),new tn.init(2600822924,725511199),new tn.init(528734635,4215389547),new tn.init(1541459225,327033209)])},_doProcessBlock:function(tt,ta){for(var ti=this._hash.words,tr=ti[0],tn=ti[1],to=ti[2],tc=ti[3],td=ti[4],tu=ti[5],tg=ti[6],ti=ti[7],tp=tr.high,tm=tr.low,th=tn.high,tf=tn.low,tb=to.high,t_=to.low,ty=tc.high,tv=tc.low,tx=td.high,tS=td.low,tO=tu.high,tA=tu.low,tE=tg.high,tN=tg.low,tw=ti.high,tk=ti.low,tI=tp,tB=tm,tJ=th,tL=tf,tZ=tb,tD=t_,tC=ty,tM=tv,tq=tx,tF=tS,tP=tO,tT=tA,tH=tE,tj=tN,tG=tw,tz=tk,tR=0;80>tR;tR++){var tW=ts[tR];if(16>tR)var tU=tW.high=0|tt[ta+2*tR],tY=tW.low=0|tt[ta+2*tR+1];else{var tU=ts[tR-15],tY=tU.high,tQ=tU.low,tU=(tY>>>1|tQ<<31)^(tY>>>8|tQ<<24)^tY>>>7,tQ=(tQ>>>1|tY<<31)^(tQ>>>8|tY<<24)^(tQ>>>7|tY<<25),tV=ts[tR-2],tY=tV.high,t$=tV.low,tV=(tY>>>19|t$<<13)^(tY<<3|t$>>>29)^tY>>>6,t$=(t$>>>19|tY<<13)^(t$<<3|tY>>>29)^(t$>>>6|tY<<26),tY=ts[tR-7],tK=tY.high,tX=ts[tR-16],t0=tX.high,tX=tX.low,tY=tQ+tY.low,tU=tU+tK+(tY>>>0<tQ>>>0?1:0),tY=tY+t$,tU=tU+tV+(tY>>>0<t$>>>0?1:0),tY=tY+tX,tU=tU+t0+(tY>>>0<tX>>>0?1:0);tW.high=tU,tW.low=tY}var tK=tq&tP^~tq&tH,tX=tF&tT^~tF&tj,tW=tI&tJ^tI&tZ^tJ&tZ,t1=tB&tL^tB&tD^tL&tD,tQ=(tI>>>28|tB<<4)^(tI<<30|tB>>>2)^(tI<<25|tB>>>7),tV=(tB>>>28|tI<<4)^(tB<<30|tI>>>2)^(tB<<25|tI>>>7),t$=tl[tR],t2=t$.high,t4=t$.low,t$=tz+((tF>>>14|tq<<18)^(tF>>>18|tq<<14)^(tF<<23|tq>>>9)),t0=tG+((tq>>>14|tF<<18)^(tq>>>18|tF<<14)^(tq<<23|tF>>>9))+(t$>>>0<tz>>>0?1:0),t$=t$+tX,t0=t0+tK+(t$>>>0<tX>>>0?1:0),t$=t$+t4,t0=t0+t2+(t$>>>0<t4>>>0?1:0),t$=t$+tY,t0=t0+tU+(t$>>>0<tY>>>0?1:0),tY=tV+t1,tW=tQ+tW+(tY>>>0<tV>>>0?1:0),tG=tH,tz=tj,tH=tP,tj=tT,tP=tq,tT=tF,tF=tM+t$|0,tq=tC+t0+(tF>>>0<tM>>>0?1:0)|0,tC=tZ,tM=tD,tZ=tJ,tD=tL,tJ=tI,tL=tB,tB=t$+tY|0,tI=t0+tW+(tB>>>0<t$>>>0?1:0)|0}tm=tr.low=tm+tB,tr.high=tp+tI+(tm>>>0<tB>>>0?1:0),tf=tn.low=tf+tL,tn.high=th+tJ+(tf>>>0<tL>>>0?1:0),t_=to.low=t_+tD,to.high=tb+tZ+(t_>>>0<tD>>>0?1:0),tv=tc.low=tv+tM,tc.high=ty+tC+(tv>>>0<tM>>>0?1:0),tS=td.low=tS+tF,td.high=tx+tq+(tS>>>0<tF>>>0?1:0),tA=tu.low=tA+tT,tu.high=tO+tP+(tA>>>0<tT>>>0?1:0),tN=tg.low=tN+tj,tg.high=tE+tH+(tN>>>0<tj>>>0?1:0),tk=ti.low=tk+tz,ti.high=tw+tG+(tk>>>0<tz>>>0?1:0)},_doFinalize:function(){var tt=this._data,ta=tt.words,ti=8*this._nDataBytes,tr=8*tt.sigBytes;return ta[tr>>>5]|=128<<24-tr%32,ta[(tr+128>>>10<<5)+30]=Math.floor(ti/4294967296),ta[(tr+128>>>10<<5)+31]=ti,tt.sigBytes=4*ta.length,this._process(),this._hash.toX32()},clone:function(){var tt=ti.clone.call(this);return tt._hash=this._hash.clone(),tt},blockSize:32}),ta.SHA512=ti._createHelper(tr),ta.HmacSHA512=ti._createHmacHelper(tr)}(),function(){var tt=tb,ta=tt.enc.Utf8;tt.algo.HMAC=tt.lib.Base.extend({init:function(tt,ti){tt=this._hasher=new tt.init,"string"==typeof ti&&(ti=ta.parse(ti));var tr=tt.blockSize,tn=4*tr;ti.sigBytes>tn&&(ti=tt.finalize(ti)),ti.clamp();for(var to=this._oKey=ti.clone(),tl=this._iKey=ti.clone(),ts=to.words,tc=tl.words,td=0;td<tr;td++)ts[td]^=1549556828,tc[td]^=909522486;to.sigBytes=tl.sigBytes=tn,this.reset()},reset:function(){var tt=this._hasher;tt.reset(),tt.update(this._iKey)},update:function(tt){return this._hasher.update(tt),this},finalize:function(tt){var ta=this._hasher;return tt=ta.finalize(tt),ta.reset(),ta.finalize(this._oKey.clone().concat(tt))}})}();class t_{static CryptoJSAesDecrypt(tt,ta){return th.decrypt(ta,tt)}static CryptoJSAesEncrypt(tt,ta){var ti=tm.lib.WordArray.random(256),tr=tm.lib.WordArray.random(16),tn=tf.PBKDF2(tt,ti,{hasher:tb.algo.SHA512,keySize:8,iterations:999}
10),to=tm.AES.encrypt(ta,tn,{iv:tr});return JSON.stringify({ciphertext:tm.enc.Base64.stringify(to.ciphertext),salt:tm.enc.Hex.stringify(ti),iv:tm.enc.Hex.stringify(tr)})}static formulaDecrypt(tt,ta,ti){var tr=ta[tt],tn="";void 0===tr&&(tr="");var to="bogx_crypto_formula";return""!==tr&&"0"!==tr&&0!==tr&&"#"!==tr&&("object"==typeof tr&&(tr=JSON.stringify(tr)),"string"!=typeof(tn=this.CryptoJSAesDecrypt(to,tr))&&(tn=""),"'0'"===tn&&(tn="0"),"'#'"===tn&&(tn="#")),ti[tt]=tn,ti}}var ty=__webpack_require__(566),tv=__webpack_require__(316),tx=__webpack_require__(268),tS=__webpack_require__(361),tO=__webpack_require__(184);class tA{static update(tt){let ta,ti,tr,tn,to,tl,ts="",tc="",td="standard",tu="",tg=[],tp=JSON.parse(bogxSettings.bogx_ocb_defaults);if(tp.active){for(let tt in void 0!==tp.prefix&&null!==tp.prefix&&""!==tp.prefix&&(ts=tp.prefix),void 0!==tp.delimiter&&null!==tp.delimiter&&""!==tp.delimiter&&(tc=tp.delimiter),td=tp.view,defaultsJSON)defaultsJSON.hasOwnProperty(tt)&&0===defaultsJSON[tt][3]&&defaultsJSON[tt][7]&&""!==defaultsJSON[tt][7]&&("$"===defaultsJSON[tt][7]?tg.push(defaultsJSON[tt][1]):null!==defaultsJSON[tt][7]&&"object"==typeof defaultsJSON[tt][7]?(tn=defaultsJSON[tt][7],defaultsJSON[tt][2].forEach(function(tt){tr=tn[tt],tg.push(tr)})):tg.push(defaultsJSON[tt][7]));for(to=0,tl=tg.length;to<tl;to++)""!==tg[to]&&null!==tg[to]&&(to!==tl-1?tu+=tg[to]+tc:tu+=tg[to]);""!==ts&&null!==ts&&(tu=ts+tc+tu),tt.ordercode=tu,"update"===td?(ta=".product-detail-ordernumber",(ti=document.querySelector(ta))&&(ti.textContent=tu)):"hidden"===td&&(ta=".product-detail-ordernumber-container",(ti=document.querySelector(ta))&&!ti.classList.contains("bogx--hidden")&&ti.classList.add("bogx--hidden"))}return tt}}class tE{static switchBasketButton(){let tt=".bogx--buybutton",ta=document.querySelector(tt),ti=document.getElementById("bogx_buybutton_hint"),tr=document.getElementById("productDetailPageBuyProductForm");null===ta&&null===ti?((ta=tr.querySelector("button.btn-buy"))&&ta.classList.add("bogx--buybutton"),(ti=document.createElement("div")).setAttribute("id","bogx_buybutton_hint"),ti.classList.add("bogx--buybutton-hint"),ti.textContent=globalErrors.error_bullet+" "+globalHelper.buybutton_hint_error,tr.after(ti),ti.setAttribute("data-after-form","true")):ti&&null===ti.getAttribute("data-after-form")&&(tr.after(ti),ti.setAttribute("data-after-form","true"));let tn="bogx_buybutton_hint",to=document.getElementById(tn),tl=".bogx--buybutton-optional",ts=document.querySelector(tl),tc=".text--offcanvas-link",td=document.querySelector(tc),tu=basketButtonActiveJSON,tg=!0;var tp=1;for(let tt in tu)if(tu.hasOwnProperty(tt)&&(tp=defaultsJSON[tt][3],!tu[tt]&&0===tp)){tg=!1;break}ts&&(ts.classList.remove("is--disabled"),ts.disabled=!1,ts.removeAttribute("aria-disabled")),td&&(td.classList.remove("is--disabled"),td.disabled=!1,td.removeAttribute("aria-disabled"));let tm=document.getElementById("swag-amazon-pay-button-container-product-detail"),th=document.getElementById("bogx_dcl_share"),tf=document.querySelector("button.bogx--add-to-wishlist");tg?(ta&&(ta.classList.remove("is--disabled"),ta.disabled=!1,ta.removeAttribute("aria-disabled"),to.classList.add("bogx--hidden")),tm&&tm.classList.remove("is--disabled"),th&&th.classList.remove("is--disabled"),tf&&tf.classList.remove("is--disabled")):!tg&&(ta&&(ta.classList.add("is--disabled"),ta.setAttribute("aria-disabled","true"),ta.setAttribute("disabled","disabled"),to.classList.remove("bogx--hidden")),tm&&tm.classList.add("is--disabled"),th&&th.classList.add("is--disabled"),tf&&tf.classList.add("is--disabled"))}static orderRepeatChangeHandler(tt){let ta=tc.Z.getGlobals("order_mode"),ti=null,tr="bogx_config_hint_before",tn=document.getElementById(tr),to="button.bogx--buybutton",tl=document.querySelector(to);var ts,td,tu=bogxSettings.bogx_order_repeat,tg="false";"normal"===ta?(tu="false",tg="false",tn.classList.add("bogx--hidden"),td=globalNotes.basket_normal,tl.setAttribute("name",td),tl.textContent=td):"basket"===ta?(tg="false",tn.classList.add("bogx--hidden")):"change"===ta?(tg="true",ti=tc.Z.getGlobals("line_id"),ts=globalNotes.hint_before_basket_change,td=globalNotes.basket_change,tn.innerHTML=ts,tn.classList.remove("bogx--hidden"),tl.setAttribute("name",td),tl.textContent=td):"order_repeat"===ta?(tu="true",tg
10="false",ts=globalNotes.hint_before_order_repeat,tn.innerHTML=ts,tn.classList.remove("bogx--hidden")):"share"===ta&&(tu="false",tg="false",tn.classList.add("bogx--hidden")),document.querySelector('input[name="bogxOrderRepeat"]')&&(document.querySelector('input[name="bogxOrderRepeat"]').value=tu,document.querySelector('input[name="bogxBasketChange"]').value=tg);let tp=document.querySelector('input[name="bogxStackable"]').value,tm='input[name="lineItems['+tc.Z.getGlobals("product_id")+'][stackable]"]',th=document.getElementById("productDetailPageBuyProductForm").querySelector(tm);th&&th.value!==tp&&(th.value=tp);let tf=bogxSettings.bogx_basketlink_type;return tt.orderRepeat=tu,tt.basketChange=tg,tt.lineItemId=ti,tt.basketLinkType=tf,tt}}var tN=__webpack_require__(999);class tw{static defaultValues(tt){let ta,ti,tr,tn,to,tl,ts,tc,td;let tu="",tg="",tp=defaultsJSON[tt][0];"axb_free_parameter"===tp?(ti=defaultsJSON[tt][2][0],tr=defaultsJSON[tt][2][1]):ta=defaultsJSON[tt][2],"free_parameter"===tp?(tn="free_parameter_"+ta,ts=document.getElementById(tn),defaultsJSON[tt][1]=parseFloat(ts.value)):"axb_free_parameter"===tp&&(to="axb_free_"+ti,tc=document.getElementById(to),tl="axb_free_"+tr,td=document.getElementById(tl),""!==tc.value&&(tu=parseFloat(tc.value)),""!==td.value&&(tg=parseFloat(td.value)),defaultsJSON[tt][1][0]=tu,defaultsJSON[tt][1][1]=tg)}}class tk{static initViewer(){if(this.checkMultilayerExist()){let tt="bogx_multilayer";if(document.getElementById(tt))return null;{let tt=document.querySelector(".gallery-slider-row");tt.classList.add("bogx--hidden");let ta=(bogxMultilayerLayout=tc.Z.StringToJson(bogxMultilayerLayout)).width,ti=bogxMultilayerLayout.height,tr=ta/ti,tn=tt.parentElement.clientWidth,to=tn/tr,tl=ta.toString()+"px",ts=ti.toString()+"px",td=tn/ta,tu=document.createElement("div"),tg="bogx_multilayer_viewer";tu.setAttribute("id",tg),tu.setAttribute("data-width_orginal",tl),tu.setAttribute("data-height_orginal",ts),tu.setAttribute("data-width_parent",tn),tu.setAttribute("data-height_parent",to),tu.setAttribute("data-ratio",tr),tu.setAttribute("data-scale",td),tu.classList.add("bogx--multilayer-viewer");let tp=tn.toString()+"px",tm=to.toString()+"px";tu.style.width=tp,tu.style.height=tm;let th=bogxMultilayerLayout.background,tf=tc.Z.getGlobals("images_path")+th;tu.style.backgroundImage="url("+tf+")";let tb=!1;void 0!==bogxMultilayerLayout.background_merge&&bogxMultilayerLayout.background_merge&&(tb=!0),tb&&(bogxMultilayerJSON.background=tf),tt.before(tu);let t_=document.getElementById(tg),ty="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAB9JREFUOE9jZKAQMFKon2HUAIbRMGAYDQNQPhr4vAAAJpgAEX/anFwAAAAASUVORK5CYII=",tv="standard";bogxMultilayerLayout.layer_order&&(tv=bogxMultilayerLayout.layer_order);let tx={};for(let tt in"reversed"===tv?Object.keys(defaultsJSON).reverse().forEach(tt=>{tx[tt]=defaultsJSON[tt]}):tx=defaultsJSON,tx)if(tx.hasOwnProperty(tt)){let ta,ti,tr;"multilayer"===tx[tt][0]&&(ta=tt+"_layer",ti=tt+"_layer_image",tr='<div id="'.concat(ta,'" class="bogx--layer"><img id="').concat(ti,'" src="').concat(ty,'" alt="').concat(tt,'" class="bogx--layer-img"></div>'),t_.insertAdjacentHTML("beforeend",tr),bogxMultilayerJSON[tt]="nopicture")}}}}static changeImage(tt,ta){let ti=tt+"_layer_image",tr=ta.getAttribute("data-source");document.getElementById(ti).src=tr,bogxMultilayerJSON[tt]=tr}static checkMultilayerExist(){var tt=!1;for(let ta in defaultsJSON)if(defaultsJSON.hasOwnProperty(ta)&&"multilayer"===defaultsJSON[ta][0]){tt=!0;break}return tt}}var tI=__webpack_require__(951),tB=__webpack_require__(288),tJ=__webpack_require__(730),tL=__webpack_require__(364),tZ=__webpack_require__(414),tD=__webpack_require__(26),tC=__webpack_require__(648),tM=__webpack_require__(282),tq=__webpack_require__(930),tF=__webpack_require__(218),tP=__webpack_require__(187),tT=__webpack_require__(691);class tH{static updateSingle(tt,ta,ti,tr,tn,to,tl,ts){var td,tg;let tp,tm,th,tf,tb,t_,ty,tS,tO,tA,tE,tw,tk,tI,tB,tJ,tL,tZ,tD,tC,tM,tq,tF,tH,tj,tG,tz;let tR={},tW={},tU={},tY={},tQ={},tV="",t$=defaultsJSON[tt][2],tK=parseInt(tc.Z.getGlobals("unitprice_precision"),10),tX=0,t0=0,t1=null,t2={},t4=document.getElementById(tt);tg=t4.getAttribute("data-groupname"),"true"===t4.getAttribute("data-required")&&(tX=1);let t5=t4.querySelectorAll("div.article"),t6=t4.querySelectorAll("div.image");t5.forEach(tt=>
10tt.classList.remove("selected")),t6.forEach(tt=>tt.classList.remove("is--selected")),tJ='input[data-key="'.concat(tt,'"]'),(tD=document.querySelectorAll(tJ)).forEach(tt=>tt.classList.add("is--disabled")),tD.forEach(tt=>tt.disabled=!0);let t3=tt+"_surcharge_grouptitle_wrap",t8=document.getElementById(t3);if(t8&&t8.classList.contains("bogx--hidden")&&t8.classList.remove("bogx--hidden"),t4.querySelectorAll('*[data-total_flag="1"]').length>=1){let tt=1;tN.Z.quantityHandler(tt)}if(t$.length>0){tI=t$[0],t1=document.getElementById(tI).getAttribute("data-id"),1===tX&&(basketButtonActiveJSON=(tz=tP.Z.multiSelectErrorHandler(tt,1,t4,basketButtonActiveJSON))[0]);let ta=1,tr=!0;tB=tI+"_wrap",document.getElementById(tB).classList.add("selected"),tB=tI+"_div",document.getElementById(tB).classList.add("is--selected"),tL="bogx_quantity_"+tI,(tZ=document.getElementById(tL)).classList.remove("is--disabled"),tZ.disabled=!1,tC=defaultsJSON[tt][1][tI],tZ.value!==tC&&(tZ.value=tC),"hidden"!==tZ.type&&(tC=(tz=tP.Z.quantityErrorHandler(tt,tI,tZ,basketButtonActiveJSON))[0],basketButtonActiveJSON=tz[1]),ta*=tC,(tq=tZ.getAttribute("data-dispatch"))||(tq="0"),tF=tu.Z.getDispatchValue(tt,tq,tC),t2[tI]=tF,tK=parseInt(tZ.getAttribute("data-precision"),10),tk=parseInt(tZ.getAttribute("data-active_quantity"),10),tM=defaultsJSON[tt][4][tI],tG=parseFloat(surchargeJSONOrigin[tI]),tE=tx.Z.getOutputSurcharge(tG),ty=tx.Z.getNettoSurchargeArticle(tE,tK),tS=tx.Z.getBruttoSurchargeArticle(tE,tK),tQ[tI]=[ty,tS,tK],tE=tc.Z.round(tC*tE,tK),tO=ty*tC,tA=tS*tC,tY[tI]=[tO,tA,tK],tb=tc.Z.numberToPriceDigits(tx.Z.getOutputSurcharge(tG),tK,1),th=document.getElementById(tI).getAttribute("data-title"),t_="x $price / "+tM,1===tk?(tm=th+"\n<b>"+tC+t_+"</b>",tf=th+"\n<b>"+tC+" "+tM+"</b>",tV+="\n"+th+" "+tC+" "+tM+","):(tm=th,tf=th,tV+="\n"+th),""!==tl&&"0"!==tl&&"#"!==tl&&(tj=(tH=tT.Z.formelEval(tt,to,tl,ti,tn,tm,tg,t1))[0],(td=tH[1])&&"object"==typeof td?(tm=td[0],tf=td[1],tV=td[2]):td&&"string"==typeof td&&(tm=td),tg=tH[2],0===tj?tE=0:"0"===tj?(tl="0",tE=0):"#"===tj?(tl="#",tE=0):(tE=tj,tO=tx.Z.getNettoSurchargeArticle(tE,tK),tA=tx.Z.getBruttoSurchargeArticle(tE,tK),tY[tI]=[tO,tA,tK])),tp=tm,-1!==tm.indexOf("$price")&&(tp=tm.replace("$price",tb)),tp=tp.replace(/\n|\r\n|\r/g,"<br/>"),tf=tc.Z.escapeText(tf),tm=tc.Z.escapeText(tm),tU[tI]=document.getElementById(tI).getAttribute("data-source"),tW[tI]=tf,tR[tI]=tm,td=tR,tw=tW,0===ta&&(tr=!1),basketButtonActiveJSON[tt]=tr,tv.Z.updatePriceboxForMultiselect(tt,tI,tl,tE,tp,tg)}else t0=1,td="",tE=0,""!==tl&&"0"!==tl&&"#"!==tl&&(tj=(tH=tT.Z.formelEval(tt,to,tl,ti,tn,td,tg,t1))[0],(td=tH[1])&&"object"==typeof td?(tm=td[0],tf=td[1],tV=td[2]):td&&"string"==typeof td&&(tm=td),tg=tH[2],0===tj||("0"===tj?tl="0":"#"===tj&&(tl="#")),tE=0),1===tX?basketButtonActiveJSON=(tz=tP.Z.multiSelectErrorHandler(tt,0,t4,basketButtonActiveJSON))[0]:t8&&t8.classList.add("bogx--hidden");return 0!==tE&&"0"!==tl&&"#"!==tl&&(tr+=tE,tn+=tE),defaultsJSON[tt][5]=t2,{group_name:tg,title:td,title_q:tw,title_item_qtext:tV,hidden:t0,image_json:tU,totalQuantityUnit:ts,totalsurcharge:tr,itemSurchargeOutput:tE,itemSurchargeOutput_json:tY,unitySurcharge_json:tQ,gesamtpreis:tn,basicPriceFlag:ta}}static updateMulti(tt,ta,ti,tr,tn,to,tl,ts){let td,tg,tp,tm,th,tf,tb,t_,ty,tS,tO,tA,tE,tw,tk,tI,tB,tJ,tL,tZ,tD,tC,tM,tq,tF,tH,tj,tG;var tz,tR="";let tW={},tU={},tY={},tQ={},tV={},t$="",tK=defaultsJSON[tt][2],tX=parseInt(tc.Z.getGlobals("unitprice_precision"),10),t0=0,t1=0,t2=null,t4={},t5=document.getElementById(tt);tz=t5.getAttribute("data-groupname"),"true"===t5.getAttribute("data-required")&&(t0=1);let t6=t5.getAttribute("data-layout");""!==tl&&"0"!==tl&&"#"!==tl&&(tF=(tq=tT.Z.formelEval(tt,to,tl,ti,tn,tR,tz,t2))[0],(tR=tq[1])&&"object"==typeof tR?(tg=tR[0],tm=tR[1],t$=tR[2]):tR&&"string"==typeof tR&&(tg=tR),tz=tq[2],0===tF?tb=0:"0"===tF?(tl="0",tb=0):"#"===tF?(tl="#",tb=0):tb=tF);let t3=t5.querySelectorAll("div.article"),t8=t5.querySelectorAll("div.image");t3.forEach(tt=>tt.classList.remove("selected")),t8.forEach(tt=>tt.classList.remove("is--selected")),tI='input[data-key="'.concat(tt,'"]'),(tL=document.querySelectorAll(tI)).forEac
10h(tt=>tt.classList.add("is--disabled")),tL.forEach(tt=>tt.disabled=!0);let t7=tt+"_surcharge_grouptitle_wrap",t9=document.getElementById(t7);t9&&t9.classList.contains("bogx--hidden")&&t9.classList.remove("bogx--hidden"),"grid"===t6?tH='div.bogx--config.article[data-key="'.concat(tt,'"]'):("list"===t6||"select"===t6||"hidden"===t6)&&(tH='div.bogx--config.article-list[data-key="'.concat(tt,'"]'));let et=document.querySelectorAll(tH),ei=parseInt(et[0].getAttribute("data-select_limit"),10);if(ei>=2&&tK.length>=ei?(et.forEach(tt=>tt.classList.add("is--disabled")),tK.length>ei&&(tK=tK.slice(0,ei)),tK.forEach(function(tt){tw=tt+"_wrap",document.getElementById(tw).classList.remove("is--disabled")})):ei>=2&&tK.length<ei&&et.forEach(tt=>tt.classList.remove("is--disabled")),t5.querySelectorAll('*[data-total_flag="1"]').length>=1){let tt=1;tN.Z.quantityHandler(tt)}if(tK.length>0){1===t0&&(basketButtonActiveJSON=(tG=tP.Z.multiSelectErrorHandler(tt,1,t5,basketButtonActiveJSON))[0]);let ta=1,ti=!0;tK.forEach(function(ti){tk=ti+"_wrap",document.getElementById(tk).classList.add("selected"),tk=ti+"_div",document.getElementById(tk).classList.add("is--selected"),tB="bogx_quantity_"+ti,(tJ=document.getElementById(tB)).classList.remove("is--disabled"),tJ.disabled=!1,tZ=defaultsJSON[tt][1][ti],tJ.value!==tZ&&(tJ.value=tZ),"hidden"!==tJ.type&&(tZ=(tG=tP.Z.quantityErrorHandler(tt,ti,tJ,basketButtonActiveJSON))[0],basketButtonActiveJSON=tG[1]),ta*=tZ,(tC=tJ.getAttribute("data-dispatch"))||(tC="0"),tM=tu.Z.getDispatchValue(tt,tC,tZ),t4[ti]=tM,tX=parseInt(tJ.getAttribute("data-precision"),10),tE=parseInt(tJ.getAttribute("data-active_quantity"),10),tD=defaultsJSON[tt][4][ti],tj=parseFloat(surchargeJSONOrigin[ti]),tb=tx.Z.getOutputSurcharge(tj),t_=tx.Z.getNettoSurchargeArticle(tb,tX),ty=tx.Z.getBruttoSurchargeArticle(tb,tX),tV[ti]=[t_,ty,tX],tb=tc.Z.round(tZ*tb,tX),tS=t_*tZ,tO=ty*tZ,tQ[ti]=[tS,tO,tX],th=tc.Z.numberToPriceDigits(tx.Z.getOutputSurcharge(tj),tX,1),tp=document.getElementById(ti).getAttribute("data-title"),tf="x $price / "+tD,1===tE?(tg=tp+"\n<b>"+tZ+tf+"</b>",tm=tp+"\n<b>"+tZ+" "+tD+"</b>",t$+="\n"+tp+" "+tZ+" "+tD+","):(tg=tp,tm=tp,t$+="\n"+tp),td=tg,-1!==tg.indexOf("$price")&&(td=tg.replace("$price",th)),td=td.replace(/\n|\r\n|\r/g,"<br/>"),tm=tc.Z.escapeText(tm),tg=tc.Z.escapeText(tg),tY[ti]=document.getElementById(ti).getAttribute("data-source"),tU[ti]=tm,tW[ti]=tg,tR=tW,tA=tU,0!==tb&&"0"!==tl&&"#"!==tl&&(tr+=tb,tn+=tb),tv.Z.updatePriceboxForMultiselect(tt,ti,tl,tb,td,tz)}),basketButtonActiveJSON[tt]=ti}else t1=1,tR="",tb=0,1===t0?(basketButtonActiveJSON=(tG=tP.Z.multiSelectErrorHandler(tt,0,t5,basketButtonActiveJSON))[0],t1=0):t9&&t9.classList.add("bogx--hidden");return defaultsJSON[tt][5]=t4,{group_name:tz,title:tR,title_q:tA,title_item_qtext:t$,hidden:t1,image_json:tY,totalQuantityUnit:ts,totalsurcharge:tr,itemSurchargeOutput:tb,itemSurchargeOutput_json:tQ,unitySurcharge_json:tV,gesamtpreis:tn,basicPriceFlag:ta}}static updateKit(tt,ta,ti,tr,tn,to,tl,ts){let td,tu,tg,tp,tm,th,tf,tb,t_,ty,tS,tO,tA,tE,tw,tk,tI,tB,tJ,tL,tZ;var tD,tC="";let tM={},tq={},tF={},tP={},tH={},tj="",tG=defaultsJSON[tt][2],tz=parseInt(tc.Z.getGlobals("unitprice_precision"),10),tR=0,tW=null;tc.Z.getGlobals("parentgroup_active");let tU=document.getElementById(tt);tD=tU.getAttribute("data-groupname"),""!==tl&&"0"!==tl&&"#"!==tl&&(tL=(tJ=tT.Z.formelEval(tt,to,tl,ti,tn,tC,tD,tW))[0],(tC=tJ[1])&&"object"==typeof tC?(tu=tC[0],tp=tC[1],tj=tC[2]):tC&&"string"==typeof tC&&(tu=tC),tD=tJ[2],0===tL?tf=0:"0"===tL?(tl="0",tf=0):"#"===tL?(tl="#",tf=0):tf=tL);let tY=tt+"_surcharge_grouptitle_wrap",tQ=document.getElementById(tY);if(tQ&&tQ.classList.contains("bogx--hidden")&&tQ.classList.remove("bogx--hidden"),tU.querySelectorAll('*[data-total_flag="1"]').length>=1){let tt=1;tN.Z.quantityHandler(tt)}return tG.length>0?tG.forEach(function(ta){tE=ta+"_wrap",document.getElementById(tE).classList.add("selected"),tE=ta+"_div",document.getElementById(tE).classList.add("is--selected"),tw="bogx_quantity_"+ta,(tk=document.getElementById(tw)).classList.remove("is--disabled"),tk.disabled=!1,tI=defaultsJSON[tt][1][ta],tk.value!==tI&&(tk.value=tI),tz=parseInt(tk.getAttribute("data-precision"),10),tA=parseInt(tk.getAttribute("data-active_quantity"),10),tB=defaultsJSON[tt][4][ta
10],tZ=parseFloat(surchargeJSONOrigin[ta]),tf=tx.Z.getOutputSurcharge(tZ),tb=tx.Z.getNettoSurchargeArticle(tf,tz),t_=tx.Z.getBruttoSurchargeArticle(tf,tz),tH[ta]=[tb,t_,tz],tf=tc.Z.round(tI*tf,tz),ty=tb*tI,tS=t_*tI,tP[ta]=[ty,tS,tz],tm=tc.Z.numberToPriceDigits(tx.Z.getOutputSurcharge(tZ),tz,1),tg=document.getElementById(ta).getAttribute("data-title"),th="x $price / "+tB,1===tA?(tu=tg+"\n<b>"+tI+th+"</b>",tp=tg+"\n<b>"+tI+" "+tB+"</b>",tj+="\n"+tg+" "+tI+" "+tB+","):(tu=tg,tp=tg,tj+="\n"+tg),td=tu,-1!==tu.indexOf("$price")&&(td=tu.replace("$price",tm)),td=td.replace(/\n|\r\n|\r/g,"<br/>"),tp=tc.Z.escapeText(tp),tu=tc.Z.escapeText(tu),tF[ta]=document.getElementById(ta).getAttribute("data-source"),tq[ta]=tp,tM[ta]=tu,tC=tM,tO=tq,0!==tf&&"0"!==tl&&"#"!==tl&&(tr+=tf,tn+=tf),tv.Z.updatePriceboxForMultiselect(tt,ta,tl,tf,td,tD)}):tf=0,{group_name:tD,title:tC,title_q:tO,title_item_qtext:tj,hidden:tR,image_json:tF,totalQuantityUnit:ts,totalsurcharge:tr,itemSurchargeOutput:tf,itemSurchargeOutput_json:tP,unitySurcharge_json:tH,gesamtpreis:tn,basicPriceFlag:ta}}}var tj=__webpack_require__(863),tG=__webpack_require__(949),tz=__webpack_require__(190),tR=__webpack_require__(206);class tW{static update(tt,ta,ti,tr,tn,to,tl,ts){var td,tg;let tp,tm,th,tf,tb;let t_=defaultsJSON[tt][0],ty=defaultsJSON[tt][1],tS=defaultsJSON[tt][2],tA=1,tE='div.bogx--config.image-grid[data-key="'+tt+'"]',tN=document.querySelector(tE);document.querySelectorAll(tE).forEach(tt=>tt.classList.remove("selected")),tg=tN.getAttribute("data-groupname");let tw=0,tI=0;if("true"===document.getElementById(tt).getAttribute("data-required")&&(tI=1,basketButtonActiveJSON=tP.Z.selectErrorHandler(tt,t_,ty,tE,basketButtonActiveJSON)[0]),ty){tf='div.bogx--config.image-grid[data-key="'+tt+'"][data-value="'+ty+'"]',(tb=document.querySelector(tf)).classList.add("selected"),td=tb.getAttribute("data-title"),td=tc.Z.cutStringByChar(td,"+");let ta=document.getElementById(tS).getAttribute("data-id");if(td=td.replace(/(<([^>]+)>)/ig," "),tm=(tp=tx.Z.getItemSurcharge(tf,to,tt,tn,ti)).surcharge,to=tp.json,th=tm,""!==tl&&"0"!==tl&&"#"!==tl){let tr=tT.Z.formelEval(tt,to,tl,ti,tn,td,tg,ta),ts=tr[0];td=tr[1],tg=tr[2],0===ts?th=0:"0"===ts?(tl="0",th=0):"#"===ts?(tl="#",th=0):th=ts}tk.changeImage(tt,tb),isNaN(parseInt(tb.getAttribute("data-quantity"),10))||(!isNaN(tA=parseInt(tb.getAttribute("data-quantity"),10))&&tA>1?td=tA.toString()+"x "+td:tA=1)}else th=0,tf="",0===tI?(tw=1,tl="#"):(td=globalErrors.noselected,tl="0",tw=1);let tB={};if(0!==th&&"0"!==tl&&"#"!==tl){tr+=th,tn+=th;let ta=parseInt(tc.Z.getGlobals("unitprice_precision"),10),ti=tx.Z.getNettoSurchargeArticle(th,ta),to=tx.Z.getBruttoSurchargeArticle(th,ta);tB[tt]=[ti,to,ta]}return tu.Z.setDispatch(tt,tb,tA),tO.Z.checkDelivery(tt,tb),tv.Z.updatePricebox(tt,tl,th,td,tg),{group_name:tg,title:td,title_q:[],title_item_qtext:"",hidden:tw,image_json:{},totalQuantityUnit:ts,totalsurcharge:tr,itemSurchargeOutput:th,itemSurchargeOutput_json:tB,unitySurcharge_json:{},gesamtpreis:tn,basicPriceFlag:ta}}static getSurcharge(tt,ta){let ti,tr=defaultsJSON[tt][1];return tr?(ti='div.bogx--config.image-grid[data-key="'+tt+'"][data-value="'+tr+'"]',ta=tx.Z.getSurcharge(tt,ti,ta)):(ta[tt]=0,defaultsJSON[tt][2]="",defaultsJSON[tt][5]=0,defaultsJSON[tt][6]="0",defaultsJSON[tt][7]=""),[ta]}}class tU{static update(tt,ta,ti,tr,tn,to,tl,ts,td){let tg,tp,tm,th,tf,tb,t_,ty,tS,tO,tA,tE,tw,tk,tI,tB,tJ,tL,tZ,tD,tC,tM,tq,tF,tH,tj,tG;var tz,tR="",tW={};let tU={},tY={},tQ={},tV={},t$={},tK="",tX=defaultsJSON[tt][0],t0=parseInt(tc.Z.getGlobals("unitprice_precision"),10),t1=0,t2=0,t4=null,t5={},t6=document.getElementById(tt);tz=t6.getAttribute("data-groupname"),"true"===t6.getAttribute("data-required")&&(t1=1);let t3=t6.getAttribute("data-layout");""!==tl&&"0"!==tl&&"#"!==tl&&(tG=(tj=tT.Z.formelEval(tt,to,tl,ti,tn,tR,tz,t4))[0],(tR=tj[1])&&"object"==typeof tR?(tp=tR[0],th=tR[1],tK=tR[2]):tR&&"string"==typeof tR&&(tp=tR),tz=tj[2],tl="0"===tG?"0":"#"===tG?"#":"");let t8=t6.querySelectorAll("div.article"),t7=t6.querySelectorAll("div.image");if(t8.forEach(tt=>tt.classList.remove("selected")),t7.forEach(tt=>tt.classList.remove("is--selected")),"data"!==t3){let ta,ti,to;
10if(t6.querySelectorAll('*[data-total_flag="1"]').length>=1){let tt=1;tN.Z.quantityHandler(tt)}let ts=defaultsJSON[tt][2];tL='input[data-key="'.concat(tt,'"]'),(tC=document.querySelectorAll(tL))&&(tC.forEach(tt=>tt.classList.add("is--disabled")),tC.forEach(tt=>tt.disabled=!0)),tL='select[data-key="'.concat(tt,'"]'),(tC=document.querySelectorAll(tL))&&(tC.forEach(tt=>tt.classList.add("is--disabled")),tC.forEach(tt=>tt.disabled=!0));let tT='[data-soldout="1"]';t6.querySelectorAll(tT).forEach(tt=>tt.classList.add("is--disabled"));let tj='[data-article_found="0"]';t6.querySelectorAll(tj).forEach(tt=>tt.classList.add("is--disabled"));let tG=tt+"_surcharge_grouptitle_wrap",t4=document.getElementById(tG);t4&&t4.classList.contains("bogx--hidden")&&t4.classList.remove("bogx--hidden"),"grid"===t3?ta='div.bogx--config.article[data-key="'.concat(tt,'"]'):("list"===t3||"select"===t3||"hidden"===t3)&&(ta='div.bogx--config.article-list[data-key="'.concat(tt,'"]'));let t8=document.querySelectorAll(ta),t7=parseInt(t8[0].getAttribute("data-select_limit"),10);if(t7>=2&&ts.length>=t7?(t8.forEach(tt=>tt.classList.add("is--disabled")),ts.length>t7&&(ts=ts.slice(0,t7)),ts.forEach(function(tt){tk=tt+"_wrap",document.getElementById(tk).classList.remove("is--disabled")})):t7>
10=2&&ts.length<t7&&t8.forEach(tt=>tt.classList.remove("is--disabled")),"select"===t3){let ta=ts.length,ti=tt+"_select_header_counter1",tr=document.getElementById(ti),tn=tt+"_select_header_counter2",to=document.getElementById(tn);to&&(to.textContent=ta),ta>0?(tr.classList.add("counter-selected"),to.classList.add("counter-selected")):(tr.classList.remove("counter-selected"),to.classList.remove("counter-selected"))}if(ts.length>0){1===t1&&(basketButtonActiveJSON=(to=tP.Z.multiSelectErrorHandler(tt,1,t6,basketButtonActiveJSON))[0]);let ta=!0;ts.forEach(function(ta){tI=ta+"_wrap";let ts=0;"1"===(tB=document.getElementById(tI)).getAttribute("data-soldout")&&(ts=1);let td=0;if("1"===tB.getAttribute("data-article_found")&&(td=1),0===ts&&1===td){tB.classList.add("selected"),tI=ta+"_div",document.getElementById(tI).classList.add("is--selected"),tZ="bogx_quantity_"+ta,(tD=document.getElementById(tZ)).classList.remove("is--disabled"),tD.disabled=!1,tM=defaultsJSON[tt][1][ta],tD.value!==tM&&(tD.value=tM),"hidden"!==tD.type&&(tM=(to=tP.Z.quantityErrorHandler(tt,ta,tD,basketButtonActiveJSON))[0],basketButtonActiveJSON=to[1]),(tF=tD.getAttribute("data-dispatch"))||(tF="0"),tH=tu.Z.getDispatchValue(tt,tF,tM),t5[ta]=tH,t0=parseInt(tD.getAttribute("data-precision"),10),tw=parseInt(tD.getAttribute("data-active_quantity"),10),tq=defaultsJSON[tt][4][ta
10],ti=parseFloat(surchargeJSONOrigin[ta]);let ts=0;if("variant_multi_select"===tX){let tt=tc.Z.getGlobals("blockprices");0!==tt&&(ts=tx.Z.getBlockPrice(tt))}t_=ts>0?ts:ti,ty=tx.Z.getNettoSurchargeArticle(t_,t0),tS=tx.Z.getBruttoSurchargeArticle(t_,t0),t$[ta]=[ty,tS,t0],tf=tc.Z.numberToPriceDigits(t_,t0,1),t_=tc.Z.round(tM*t_,t0),tO=ty*tM,tA=tS*tM,tV[ta]=[tO,tA,t0],tJ=document.getElementById(ta),t6=document.getElementById(ta+"_div"),tm=tJ?tJ.getAttribute("data-title").trim():t6.getAttribute("data-title").trim();let td=t6.getAttribute("data-id"),tN="",tk="";"1"===articlepicker_show_ordernumber_in_checkout&&(tN="\n"+globalNotesArticle.article_nr_label+" "+td,tk=" "+globalNotesArticle.article_nr_label+" "+td),tb="1"===articlepicker_show_unityprices_in_checkout?"$price / "+tq:null;let tL="x ";1===tw?tb?(tp=tm+"\n<b>"+tM+tL+tb+"</b>"+tN,tK+="\n"+(th=tM+tL+tm+tN)+tk+","):(th=tp=tM+tL+tm+tN,tK+="\n"+th+tk+","):(tp=tm+tN,th=tm+tN,tK+="\n"+tm+tk),tg=tp,-1!==tp.indexOf("$price")&&(tg=tp.replace("$price",tf)),tg=tg.replace(/\n|\r\n|\r/g,"<br/>"),th=tc.Z.escapeText(th),tp=tc.Z.escapeText(tp),tQ[ta]=document.getElementById(ta).getAttribute("data-source"),tY[ta]=th,tU[ta]=tp,tR=tU,tE=tY,0!==t_&&"0"!==tl&&"#"!==tl&&(tr+=t_,tn+=t_),tW[td]=[tm,parseInt(tM,10),ty,tq],tv.Z.updatePriceboxForMultiselect(tt,ta,tl,t_,tg,tz)}}),basketButtonActiveJSON[tt]=ta}else t2=1,tR="",t_=0,1===t1?(basketButtonActiveJSON=(to=tP.Z.multiSelectErrorHandler(tt,0,t6,basketButtonActiveJSON))[0],t2=0):t4&&t4.classList.add("bogx--hidden");td[tt]=tW}else{let ta="#"+tt+"_surcharge_grouptitle_wrap",ti=document.getElementById(ta);ti&&ti.remove()}return defaultsJSON[tt][5]=t5,{group_name:tz,title:tR,title_q:tE,title_item_qtext:tK,hidden:t2,image_json:tQ,totalQuantityUnit:ts,totalsurcharge:tr,itemSurchargeOutput:t_,itemSurchargeOutput_json:tV,unitySurcharge_json:t$,gesamtpreis:tn,basicPriceFlag:ta,basketPartsList:td}}static onclick(tt,ta,ti,tr,tn){let to,tl,ts,tc,td,tg,tp,tm,th,tf,tb,t_,ty,tx,tS,tO,tA,tE,tw;if(to=ta.getAttribute("data-key"),tg="bogx_quantity_"+ti,tp=document.getElementById(tg),tm=1,th="",tp&&((isNaN(tm=parseInt(tp.value,10))||0===tm)&&(tm=1),null===(th=tp.getAttribute("data-unit"))&&(th="")),(tf=ta.getAttribute("data-dispatch"))||(tf="0"),tb=tu.Z.getDispatchValue(to,tf,tm),void 0===(t_=ta.getAttribute("data-delivery"))&&(t_=""),void 0===(ty=ta.getAttribute("data-ocb"))&&(ty=""),tx=defaultsJSON[to][1],tS=defaultsJSON[to][2],tO=defaultsJSON[to][4],tA=defaultsJSON[to][5],tE=defaultsJSON[to][6],tw=defaultsJSON[to][7],tl=ti+"_wrap",tc=document.getElementById(tl),ts=ti+"_div",td=document.getElementById(ts),tc.classList.contains("selected")?(tc.classList.remove("selected"),td.classList.remove("is--selected")):(tc.classList.add("selected"),td.classList.add("is--selected")),tc.classList.contains("selected"))tx[ti]=tm,tS.push(ti),tO[ti]=th,tA[ti]=tb,tE[ti]=t_,tw[ti]=ty,tp.classList.remove("is--disabled"),tp.disabled=!1;else{delete tx[ti];var tk=tS.indexOf(ti);tk>-1&&tS.splice(tk,1),delete tO[ti],delete tA[ti],delete tE[ti],delete tw[ti],tp.classList.add("is--disabled"),tp.disabled=!0,tv.Z.updatePriceboxForMultiselect(to,ti,"#",0,"","")}tS.sort(),"variant_multi_select"===tr&&tN.Z.variantTotalQuantity(to,tn),defaultsJSON[to][1]=tx,defaultsJSON[to][2]=tS,defaultsJSON[to][4]=tO,defaultsJSON[to][5]=tA,defaultsJSON[to][6]=tE,defaultsJSON[to][7]=tw}}class tY{static update(tt,ta,ti,tr,tn,to,tl,ts,td){let tg,tp,tm,th,tf,tb,t_,ty,tS,tO,tA,tE,tw,tk,tI,tB,tJ,tL,tZ,tD,tC,tM,tq,tF,tH,tj;var tG,tz="",tR={};let tW={},tU={},tY={},tQ={},tV={},t$="",tK=defaultsJSON[tt][0],tX=parseInt(tc.Z.getGlobals("unitprice_precision"),10),t0=0,t1=0,t2=null,t4={},t5=0,t6=document.getElementById(tt);tG=t6.getAttribute("data-groupname"),"true"===t6.getAttribute("data-required")&&(t0=1);let t3=t6.getAttribute("data-layout");""!==tl&&"0"!==tl&&"#"!==tl&&(tj=(tH=tT.Z.formelEval(tt,to,tl,ti,tn,tz,tG,t2))[0],(tz=tH[1])&&"object"==typeof tz?(tp=tz[0],th=tz[1],t$=tz[2]):tz&&"string"==typeof tz&&(tp=tz),tG=tH[2],tl="0"===tj?"0":"#"===tj?"#":"");let t8=t6.querySelectorAll("div.article"),t7=t6.querySelectorAll("div.image");if(t8.forEach(tt=>tt.classList.remove("selected")),t7.forEach(tt=>tt.classList.remove("is--selected")),"data"!==t3){let ta;if(t6.querySelectorAll('*[data-total_flag="1"]').length>=1){let tt=1;tN.Z.quantityHandler(tt)}let ti=defaultsJSON[tt][2];tJ='input[data-key="'.concat(tt,'"]'),(tD=document.querySelectorAll(tJ))&&(tD.forEach(tt=>tt.classList.add("is--disabled")),tD.forEach(tt=>tt.disabled=!0)),tJ='select[data-key="'.concat(tt,'"]'),(tD=document.querySelectorAll(tJ))&&(tD.forEach(tt=>tt.classList.add("is--disabled")),tD.forEach(tt=>tt.disabled=!0));let to='[data-soldout="1"]';
10t6.querySelectorAll(to).forEach(tt=>tt.classList.add("is--disabled"));let ts='[data-article_found="0"]';t6.querySelectorAll(ts).forEach(tt=>tt.classList.add("is--disabled"));let tT=tt+"_surcharge_grouptitle_wrap",tH=document.getElementById(tT);if(tH&&tH.classList.contains("bogx--hidden")&&tH.classList.remove("bogx--hidden"),"select"===t3){let ta=ti.length,tr=tt+"_select_header_counter1",tn=document.getElementById(tr),to=tt+"_select_header_counter2",tl=document.getElementById(to);tl&&(tl.textContent=ta),ta>0?(tn.classList.add("counter-selected"),tl.classList.add("counter-selected")):(tn.classList.remove("counter-selected"),tl.classList.remove("counter-selected"))}if(ti.length>0){1===t0&&(basketButtonActiveJSON=(ta=tP.Z.multiSelectErrorHandler(tt,1,t6,basketButtonActiveJSON))[0]);let to=!0;ti.forEach(function(ti){tk=ti+"_wrap";let to=0;"1"===(tI=document.getElementById(tk)).getAttribute("data-soldout")&&(to=1);let ts=0;if("1"===tI.getAttribute("data-article_found")&&(ts=1),0===to&&1===ts){tI.classList.add("selected"),tk=ti+"_div",document.getElementById(tk).classList.add("is--selected"),tL="bogx_quantity_"+ti,(tZ=document.getElementById(tL)).classList.remove("is--disabled"),tZ.disabled=!1,tC=defaultsJSON[tt][1][ti],tZ.value!==tC&&(tZ.value=tC),"hidden"!==tZ.type&&(tC=(ta=tP.Z.quantityErrorHandler(tt,ti,tZ,basketButtonActiveJSON))[0],basketButtonActiveJSON=ta[1]),"variant_multi_select"===tK&&(t5+=tC),(tq=tZ.getAttribute("data-dispatch"))||(tq="0"),tF=tu.Z.getDispatchValue(tt,tq,tC),t4[ti]=tF,tX=parseInt(tZ.getAttribute("data-precision"),10),tw=parseInt(tZ.getAttribute("data-active_quantity"),10),tM=defaultsJSON[tt][4][ti],t_=parseFloat(surchargeJSONOrigin[ti]),ty=tx.Z.getNettoSurchargeArticle(t_,tX),tS=tx.Z.getBruttoSurchargeArticle(t_,tX),tV[ti]=[ty,tS,tX],tf=tc.Z.numberToPriceDigits(t_,tX,1),t_=tc.Z.round(tC*t_,tX),tO=ty*tC,tA=tS*tC,tQ[ti]=[tO,tA,tX],tB=document.getElementById(ti),t6=document.getElementById(ti+"_div"),tm=tB?tB.getAttribute("data-title").trim():t6.getAttribute("data-title").trim();let to=t6.getAttribute("data-id"),ts="",td="";"1"===articlepicker_show_ordernumber_in_checkout&&(ts="\n"+globalNotesArticle.article_nr_label+" "+to,td=" "+globalNotesArticle.article_nr_label+" "+to),tb="1"===articlepicker_show_unityprices_in_checkout?"$price / "+tM:null;let tN="x ";1===tw?tb?(tp=tm+"\n<b>"+tC+tN+tb+"</b>"+ts,t$+="\n"+(th=tC+tN+tm+ts)+td+","):(th=tp=tC+tN+tm+ts,t$+="\n"+th+td+","):(tp=tm+ts,th=tm+ts,t$+="\n"+tm+td),tg=tp,-1!==tp.indexOf("$price")&&(tg=tp.replace("$price",tf)),tg=tg.replace(/\n|\r\n|\r/g,"<br/>"),th=tc.Z.escapeText(th),tp=tc.Z.escapeText(tp),tY[ti]=document.getElementById(ti).getAttribute("data-source"),tU[ti]=th,tW[ti]=tp,tz=tW,tE=tU,0!==t_&&"0"!==tl&&"#"!==tl&&(tr+=t_,tn+=t_),tR[to]=[tm,parseInt(tC,10),ty,tM],tv.Z.updatePriceboxForMultiselect(tt,ti,tl,t_,tg,tG)}}),basketButtonActiveJSON[tt]=to}else t1=1,tz="",t_=0,1===t0?(basketButtonActiveJSON=(ta=tP.Z.multiSelectErrorHandler(tt,0,t6,basketButtonActiveJSON))[0],t1=0):tH&&tH.classList.add("bogx--hidden");td[tt]=tR}else{let ta="#"+tt+"_surcharge_grouptitle_wrap",ti=document.getElementById(ta);ti&&ti.remove()}return defaultsJSON[tt][5]=t4,{group_name:tG,title:tz,title_q:tE,title_item_qtext:t$,hidden:t1,image_json:tY,totalQuantityUnit:ts,totalsurcharge:tr,itemSurchargeOutput:t_,itemSurchargeOutput_json:tQ,unitySurcharge_json:tV,gesamtpreis:tn,basicPriceFlag:ta,basketPartsList:td}}static onclick(tt,ta,ti,tr,tn){let to,tl,ts,tc,td,tg,tp,tm,th,tf,tb,t_,ty,tx,tS,tO,tA,tE,tw,tk,tI;to=ta.getAttribute("data-key"),tg="bogx_quantity_"+ti,tp=document.getElementById(tg),tm=1,th="",tp&&((isNaN(tm=parseInt(tp.value,10))||0===tm)&&(tm=1),null===(th=tp.getAttribute("data-unit"))&&(th="")),(tf=ta.getAttribute("data-dispatch"))||(tf="0"),tb=tu.Z.getDispatchValue(to,tf,tm),void 0===(t_=ta.getAttribute("data-delivery"))&&(t_=""),void 0===(ty=ta.getAttribute("data-ocb"))&&(ty="");let tB=defaultsJSON[to][2];if(tB.length>0){let tt=tB[0];if(tt!==ti){let ta=tt+"_wrap",ti=document.getElementById(ta),tr=tt+"_div",tn=document.getElementById(tr);ti.classList.remove("selected"),tn.classList.remove("is--selected"),tv.Z.updatePriceboxForMultiselect(to,tt,"#",0,"","")}}if(tx={},tS=[],tO={},tA={},tE={},tw={},tl=ti+"_wrap",tc=document.getElementById(tl),ts=ti+"_div",td=document.getElementById(ts),tc.classList.contains("selected")?(tc.classList.remove("selected"),td.classList.remove("is--selected")):(tc.classList.add("selected"),td.classList.add("is--selected")),tc.classList.contains("selected"))tx[ti]=tm,tS.push(ti),tO[ti]=th,tA[ti]=tb,tE[ti]=t_,tw[ti]=ty,tp.classList.remove("is--disabled"),tp.disabled=!1;else if(tp.classList.add("is--disabled"),tp.disabled=!0,tv.Z.updatePriceboxForMultiselect(to,ti,"#",0,"",""),tk='div[data-groupid="'+to+'"][data-id="#"]',tI=document.querySelector(tk)){let tt=tI.getAttribute("data-valueid")+"_div";ta=document.getElementById(tt)}"variant_single_select"===tr&&tN.Z.variantTotalQuantity(to,tn),defaultsJSON[to][1]=tx,defaultsJSON[to][2]=tS,defaultsJSON[to][4]=tO,defaultsJSON[to][5]=tA,defaultsJSON[to][6]=tE,defaultsJSON[to][7]=tw}
10static oninput(tt,ta,ti){let tr,tn,to,tl,ts;if(!tt.validity.valid&&!tt.validity.stepMismatch&&!tt.validity.rangeUnderflow&&!tt.validity.rangeOverflow)return;tr=tt.getAttribute("data-key"),tn=tt.getAttribute("data-valueid"),to=void 0===tt.value||""===tt.value?"":parseInt(tt.value,10),tl=parseInt(tt.getAttribute("step"),10),ts=void 0===(ts=tt.getAttribute("max"))||""===ts||"0"===ts?0:parseInt(ts,10),to&&(to=ts>0&&to>ts?ts:tc.Z.rundByStep(to,tl)),to&&to!==tt.value&&(tt.value=to);let td=defaultsJSON[tr][1];td[tn]=to,defaultsJSON[tr][1]=td,("variant_single_select"===ta||"variant_multi_select"===ta)&&tN.Z.variantTotalQuantity(tr,ti)}}class tQ{static update(tt,ta,ti,tr,tn,to,tl,ts,td){let tu,tg,tp,tm,th,tf,tb,t_,ty,tS,tO,tA,tE,tw,tk,tI,tB,tJ,tL,tZ,tD,tC,tM,tq,tF;var tH,tj="",tG={};let tz={},tR={},tW={},tU={},tY={},tQ="",tV=parseInt(tc.Z.getGlobals("unitprice_precision"),10),t$=0,tK=0,tX=null;tc.Z.getGlobals("parentgroup_active");let t0=document.getElementById(tt);tH=t0.getAttribute("data-groupname"),"true"===t0.getAttribute("data-required")&&(t$=1);let t1=t0.getAttribute("data-layout");if(""!==tl&&"0"!==tl&&"#"!==tl&&(tF=(tq=tT.Z.formelEval(tt,to,tl,ti,tn,tj,tH,tX))[0],(tj=tq[1])&&"object"==typeof tj?(tg=tj[0],tm=tj[1],tQ=tj[2]):tj&&"string"==typeof tj&&(tg=tj),tH=tq[2],tl="0"===tF?"0":"#"===tF?"#":""),"data"!==t1){if(t0.querySelectorAll('*[data-total_flag="1"]').length>=1){let tt=1;tN.Z.quantityHandler(tt)}let ta=defaultsJSON[tt][2];tB='input[data-key="'.concat(tt,'"]'),(tZ=document.querySelectorAll(tB))&&(tZ.forEach(tt=>tt.classList.add("is--disabled")),tZ.forEach(tt=>tt.disabled=!0)),tB='select[data-key="'.concat(tt,'"]'),(tZ=document.querySelectorAll(tB))&&(tZ.forEach(tt=>tt.classList.add("is--disabled")),tZ.forEach(tt=>tt.disabled=!0));let ti='[data-soldout="1"]';t0.querySelectorAll(ti).forEach(tt=>tt.classList.add("is--disabled"));let to='[data-article_found="0"]';if(t0.querySelectorAll(to).forEach(tt=>tt.classList.add("is--disabled")),ta.length>0){let ti=tt+"_surcharge_grouptitle_wrap",to=document.getElementById(ti);to&&to.classList.contains("bogx--hidden")&&to.classList.remove("bogx--hidden");let ts=!0;ta.forEach(function(ta){tw=ta+"_div",document.getElementById(tw).classList.add("is--selected"),tw=ta+"_wrap",(tk=document.getElementById(tw)).classList.add("selected");let ti=0;"1"===tk.getAttribute("data-soldout")&&(ti=1);let to=0;if("1"===tk.getAttribute("data-article_found")&&(to=1),0===ti&&1===to){tJ="bogx_quantity_"+ta,tL=document.getElementById(tJ),tC*=tD=defaultsJSON[tt][1][ta],tV=parseInt(tL.getAttribute("data-precision"),10),tE=parseInt(tL.getAttribute("data-active_quantity"),10),tM=defaultsJSON[tt][4][ta
10],tb=parseFloat(surchargeJSONOrigin[ta]),t_=tx.Z.getNettoSurchargeArticle(tb,tV),ty=tx.Z.getBruttoSurchargeArticle(tb,tV),tY[ta]=[t_,ty,tV],tb=tc.Z.round(tD*tb,tV),tS=t_*tD,tO=ty*tD,tU[ta]=[tS,tO,tV],th=tc.Z.numberToPriceDigits(tb,tV,1),tI=document.getElementById(ta),t0=document.getElementById(ta+"_div"),tp=tI?tI.getAttribute("data-title").trim():t0.getAttribute("data-title").trim();let ti=t0.getAttribute("data-id"),to="",ts="";"1"===articlepicker_show_ordernumber_in_checkout&&(to="\n"+globalNotesArticle.article_nr_label+" "+ti,ts=" "+globalNotesArticle.article_nr_label+" "+ti),tf="1"===articlepicker_show_unityprices_in_checkout?"$price / "+tM:null;let td="x ";1===tE?tf?(tg=tp+"\n<b>"+tD+td+tf+"</b>"+to,tQ+="\n"+(tm=tD+td+tp+to)+ts+","):(tm=tg=tD+td+tp+to,tQ+="\n"+tm+ts+","):(tg=tp+to,tm=tp+to,tQ+="\n"+tp+ts),tu=tg,-1!==tg.indexOf("$price")&&(tu=tg.replace("$price",th)),tu=tu.replace(/\n|\r\n|\r/g,"<br/>"),tm=tc.Z.escapeText(tm),tg=tc.Z.escapeText(tg),tW[ta]=document.getElementById(ta).getAttribute("data-source"),tR[ta]=tm,tz[ta]=tg,tj=tz,tA=tR,0!==tb&&"0"!==tl&&"#"!==tl&&(tr+=tb,tn+=tb),tG[ti]=[tp,parseInt(tD,10),t_,tM],tv.Z.updatePriceboxForMultiselect(tt,ta,tl,tb,tu,tH)}else ts=!1}),basketButtonActiveJSON[tt]=ts}else tK=1,tj="",tb=0,1===t$?(basketButtonActiveJSON=tP.Z.multiSelectErrorHandler(tt,0,t0,basketButtonActiveJSON)[0],tK=0):surcharge_grouptitle_element&&surcharge_grouptitle_element.classList.add("bogx--hidden");td[tt]=tG}else{let ta="#"+tt+"_surcharge_grouptitle_wrap",ti=document.getElementById(ta);ti&&ti.remove()}return{group_name:tH,title:tj,title_q:tA,title_item_qtext:tQ,hidden:tK,image_json:tW,totalQuantityUnit:ts,totalsurcharge:tr,itemSurchargeOutput:tb,itemSurchargeOutput_json:tU,unitySurcharge_json:tY,gesamtpreis:tn,basicPriceFlag:ta,basketPartsList:td}}}var tV=__webpack_require__(559),t$=__webpack_require__(19);class tK{static showModal(tt,ta,ti){let tr=window.router["frontend.productinfo.get.data"];tV.Z.create(),ta.abort();let tn=this.getRequestData(tt);ta.post(tr,tn,tt=>this.openModal(tt,tn,ti))}static getRequestData(tt){let ta=tt.getAttribute("data-productid"),ti=tt.getAttribute("data-productnumber"),tr=tt.getAttribute("data-productname"),tn=tt.getAttribute("data-src"),to=tt.getAttribute("data-link_details"),tl=tt.getAttribute("data-value_description_flag"),ts=tt.getAttribute("data-value_description_long_flag"),tc=tt.getAttribute("data-article_description_flag"),td=tt.getAttribute("data-article_active_shippingtime"),tu=tt.getAttribute("data-article_shippingtime"),tg=tt.getAttribute("data-article_shippingtime_unit"),tp=tt.getAttribute("data-article_shippingtime_name"),tm=tt.getAttribute("data-article_active_instock"),th=tt.getAttribute("data-article_instock"),tf=tt.getAttribute("data-article_unit"),tb="",t_=tt.getAttribute("data-valueid"),t
10y=t_+"_price",tv=document.getElementById(ty);return tv&&(tb=tv.innerHTML),JSON.stringify({id:ta,number:ti,name:tr,image:tn,link:to,desc_active:tl,desc_long_active:ts,desc_product_active:tc,shippingtime_active:td,shippingtime:tu,shippingtime_unit:tg,shippingtime_name:tp,instock_active:tm,instock:th,unit:tf,price:tb,option_id:t_})}static openModal(tt,ta,ti){let tr=JSON.parse(tt),tn=JSON.parse(ta),to=tn.name,tl=this.buildContentModal(tr,tn),ts=new t$.Z(tl);tV.Z.remove(),ts.open();let tc=ts.getModal();tc.classList.add("bogx--article-modal"),tc.querySelector("div.modal-header").classList.remove("only-close"),tc.querySelector("div.modal-title").innerHTML=to,tc.querySelector("div.modal-dialog").classList.add("modal-dialog-centered","modal-dialog-scrollable"),tc.querySelector("div.modal-dialog").style.maxWidth="100%",tc.querySelector("div.modal-dialog").style.width=ti}static buildContentModal(tt,ta){let ti="";return ti+='<div class="bogx--quickview-content">',ta.number&&(ti+='<div class="bogx--product-number"><span class="label">'+globalNotesArticle.article_nr_label+' </span><span class="number">'+ta.number+" </span></div>"),"1"===ta.shippingtime_active&&ta.shippingtime&&(ti+='<div class="bogx--product-shippingtime"><span class="label">'+globalNotesArticle.article_shippingtime_label+" </span>",ta.shippingtime_name?ti+='<span class="shippingtime">'+ta.shippingtime_name+"</span>":ti+='<span class="shippingtime">'+ta.shippingtime+" "+ta.shippingtime_unit+"</span>",ti+="</div>"),"1"===ta.instock_active&&ta.instock&&(ti+='<div class="bogx--product-stock"><span class="label">'+globalNotesArticle.article_stock_label+" </span>"+('<span class="stock">'+ta.instock+" x ")+ta.unit+"</span></div>"),tt.data.option_description&&(ti+='<div class="bogx--option-description">'+tt.data.option_description+"</div>"),ta.image&&(ti+='<img class="bogx--product-image" src="'+ta.image+'" alt="'+ta.name+'" title="'+ta.name+'">'),ta.price&&(ti+='<div class="bogx--product-setprice"><span class="label">'+globalNotesArticle.article_price_label+' </span><span class="price">'+ta.price+"</span></div>"),tt.data.description&&(ti+='<div class="bogx--product-description">'+tt.data.description+"</div>"),ti+="</div>"}}var tX=0,t0=0,t1=0,t2=0,t4=0,t5="",t6=!0,t3={},t8={},t7="",t9=null,et={},ei={},er=[];class en extends tl{init(){var tt=this;tc.Z.changeDisplayCmsBuyBoxToBlock(),tc.Z.replaceOffcanvas(),defaultsJSON=window.bogxDefaultsJSON&&"{}"!==JSON.stringify(window.bogxDefaultsJSON)?window.bogxDefaultsJSON:tc.Z.convertDefaultsToJson(bogxDefaults),tk.initViewer(),tI.Z.initDatepicker(),tv.Z.placePricebox(),""!==bogxCustomFields&&"string"==typeof bogxCustomFields&&(bogxCustomFields=tc.Z.StringToJson(bogxCustomFields)),""!==articlepicker_price_formulas&&"string"==typeof articlepicker_price_formulas&&(articlepicker_price_formulas=tc.Z.StringToJson(articlepicker_price_formulas)),this.options.formulas=JSON.parse(bogxSettings.bogx_formulas),null!==sessionStorage.getItem("bogx_formel")&&(t8=JSON.parse(sessionStorage.getItem("bogx_formel"))),bogxCustomStorage.bogx_config_load=!0,bogxCustomStorage.bogx_data_load=!0;let ta=tc.Z.getGlobals("blackoptions_active"),ti=bogxSettings.bogx_blackoptions,tr=bogxSettings.bogx_blackoptions_product;ta&&(ti&&""!==ti&&(blackoptions=tc.Z.StringToJson(ti)),tr&&""!==tr&&tS.Z.getBlackoptionsProduct(tr)),this.options.blockprices=tc.Z.getGlobals("blockprices");let tn="true"===tc.Z.getGlobals("nullprice"),to="1"===bogxSettings.bogx_show_prices;t0="gross"===tc.Z.getGlobals("tax_state")?tc.Z.getGlobals("baseprice_brutto"):tc.Z.getGlobals("baseprice_netto"),this.options.configuratorGlobals.totalQuantityUnit=bogxSettings.bogx_unit,(tn||t0<=.01||!to)&&(t0=0,t1=0,t2=0),this.options.configuratorGlobals.baseprice=t0,to||tN.Z.quantityHandler(1),""===this.options.configuratorGlobals.dispatchrule&&(this.options.configuratorGlobals.dispatchrule="none"),""===this.options.configuratorGlobals.deliveryrule&&(this.options.configuratorGlobals.deliveryrule="none"),this.options.surchargeJSON=tc.Z.StringToJson(bogxSettings.bogx_surcharges),parentgroupsJSON=tc.Z.StringToJson(bogxSettings.bogx_parent_groups),this.options.quantityLimits=tc.Z.StringToJson(bogxSettings.bogx_quantity_limits),this.registerEvents(),this.initializeForAllKeys(),tt.updateConfigurator();let tl=document.getElementById("bogx_configurator_switch");tl&&tc.Z.changeOrderingMode(tl)}initializeForAllKeys(){let tt,ta,ti;let tr=0,tn=bogxSettings.bogx_image_mode;bogxCustomStorage.bogx_wrapper_default_width=0;let to=bogxSettings.bogx_blacklist_product;for(tt in to&&(tp.Z.getBlacklistProduct(to),tp.Z.initBlacklistDefaults()),defaultsJSON)defaultsJSON.hasOwnProperty(tt)&&(ta=defaultsJSON[tt][0],td.gridColumns(tt,ta),"quantity_total"===ta||"quantity_graduated"===ta?(tN.Z.quantityInitDefaults(tt),totalQuantity=defaultsJSON[tt][1]):"quantity_select"===ta&&(totalQuantity=defaultsJSON[tt][1]),tp.Z.detachKey(tt),("{}"===JSON.stringify(this.options.formelJSON)||void 0===this.options.formelJSON[tt])&&(this.options.formelJSON=t_.formulaDecrypt(tt,this.options.formulas,this.options.formelJSON)),tw.defaultValues(tt),("checkbox_quantity"===ta||"checkbox_set"===ta||"article_virtual_multi"===ta||"article_virtual_single"===ta||"article_virtual_kit"===ta||"article_multi_select"===ta||"article_single_select"===ta||"article_kit"===ta||"acc_multi_select"===ta||"acc_single_select"===ta||"variant_multi_select"===ta||"variant_single_select"===ta||("image"===ta||"image_title"===ta||"image_title_price"===ta||"image_product"===ta||"image_product_fix"===ta)&&"extended"===tn)&&(tr+=tg.multiSelectDefaultValues(tt)));if(tr>0){let tt=globalErrors.note_title,ta="[ "+tr+" ] "+globalNotes.article_not_exist,ti=globalHelper.modal_alert_close;
10ty.Z.showAlert(tt,ta,ti)}for(tt in parentgroupsJSON)parentgroupsJSON.hasOwnProperty(tt)&&(ti=tp.Z.getInitChildrenOfParentGroup(tt))}updateConfigurator(){let tt,ta,ti;let tr=this;var tn={};let to=0;t5=tr.options.configuratorGlobals.totalQuantityUnit;let tl="is--disabled";"invisible"===bogxSettings.bogx_blackoptions_disabled&&(tl="is--disabled-hidden"),tp.Z.detachExecute();var ts=tc.Z.getGlobals("blackoptions_active");let td=tc.Z.getGlobals("blackoptions_trigger_ini");function tg(){if(!bogxCustomStorage.bogx_config_load){setTimeout(function(){tg()},100);return}additionalsJSON=tu.Z.dispatchUpdate(additionalsJSON),additionalsJSON=tO.Z.deliveryUpdate(additionalsJSON),additionalsJSON=tA.update(additionalsJSON),t6||(tX-=t0);let tt=tc.Z.getGlobals("tax_factor");var ta=tc.Z.getGlobals("currency_factor");let tr=0;tc.Z.getGlobals("minprice")&&(tr=parseFloat(tc.Z.getGlobals("minprice")));var tl=0;tc.Z.getGlobals("configurator_discount")&&(tl=parseFloat(tc.Z.getGlobals("configurator_discount")));var ts=1,td=tX;if(0!==tl&&(td*=ts=1-.01*tl),0!==tr){var tp=parseFloat(bogxSettings.global_discount_factor);tp<1&&(tr*=tp),(tX<tr*tt*ta||td<tr*tt*ta)&&(t4=tX=tr*tt*ta,to=1,ts=1)}let tm=(ti=tv.Z.totalPriceUpdate(t0,t4,tX,customUnitPriceJSON,t5,t3,ts,to))[0],th=ti[1];var tf=ti[2],tb=parseInt(tc.Z.getGlobals("unitprice_precision"),10);tv.Z.basepriceHandler(tX,t6,ts,to),tE.switchBasketButton();let ty="false";document.querySelectorAll('*[data-total_flag="1"]').length>=1&&(ty="true"),additionalsJSON.ordercode&&(t7+="\n"+globalNotes.article_ordercode_label+" "+additionalsJSON.ordercode);let tS=tc.Z.getGlobals("configurator_name"),tN=tc.Z.getGlobals("configurator_version"),tw=tc.Z.getGlobals("product_name"),tk=tc.Z.getGlobals("product_image"),tI=tc.Z.getGlobals("tax_eu"),tB=tc.Z.getGlobals("tax_state"),tJ=tc.Z.getGlobals("currency"),tL=tc.Z.getGlobals("user_group"),tZ=tc.Z.getGlobals("additional_text_active");tc.Z.getGlobals("image_inorder_tab_active");let tD=tc.Z.getGlobals("product_id"),tC=tc.Z.getGlobals("product_ordernumber"),tM=tc.Z.getGlobals("detail_link"),tq=tc.Z.getGlobals("dispatch_rule"),tF=tc.Z.getGlobals("delivery_rule"),tP=!1;
10if(tn.configName=tS,tn.configVersion=tN,tn.productName=tw,tn.productImage=tk,tn.taxState=tB,tn.currency=tJ,tn.currencyFactor=ta,tn.tax=tI,tn.usergroup=tL,tn.configDiscount=tl,tn.globalDiscountFactor=tp,null!==sessionStorage.getItem("bogx_calc")&&(tn.basicCalc=parseFloat(sessionStorage.getItem("bogx_calc"))),tn.totalQuantity=totalQuantity,tn.unitySurcharge=th,tn.unitySurchargeText=tf,tn.unitySurchargeNetto=tx.Z.getNettoSurcharge(th,tb),tn.unitySurchargePrecision=tb,tn.totalControllerActive=ty,"{}"!==JSON.stringify(customUnitPriceJSON)&&(tn.customUnitPrice=customUnitPriceJSON),tn.basePriceAdded=t6,tn.basePrice=t0,tn.basePriceNet=tx.Z.getNettoSurcharge(t0,null),tn.onceSurcharge=tm,tn.totalSurcharge=t4,tn.totalSurchargeNetto=tx.Z.getNettoSurcharge(t4,null),tn.totalPrice=tX,tn.totalPriceNet=tx.Z.getNettoSurcharge(tX,null),tn.minPriceFlag=to,tn.minPrice=tr,tn.basketDataview=bogxSettings.bogx_basket_dataview,tn.productId=tD,tn.articleordernumber=tC,tn.detail_link=tM,tn.ordercode=additionalsJSON.ordercode,tn.dispatchrule=tq,additionalsJSON.gurtmass?tn.gurtmass=additionalsJSON.gurtmass:tn.gurtmass=0,tn.dispatch_weight=additionalsJSON.dispatch_weight,tn.dispatch_maxlength=additionalsJSON.dispatch_maxlength,tn.dispatch_maxwidth=additionalsJSON.dispatch_maxwidth,tn.dispatch_minlength=additionalsJSON.dispatch_minlength,tn.deliveryrule=tF,tn.deliveryvalue=additionalsJSON.deliveryvalue,tn.shippingtime=additionalsJSON.shippingtime,tn.parentgroup_active=tc.Z.getGlobals("parentgroup_active"),tn.additionaltext_active=tZ,tn.additionaltext=t7,tn=tE.orderRepeatChangeHandler(tn),"undefined"!=typeof articlepicker_part_list_rollout&&(tn.parts_list_rollout=articlepicker_part_list_rollout),"{}"!==JSON.stringify(ei)&&(tn.partsList=tc.Z.partsListBuilder(ei)),tn.articlepickerHasVariants=bogxSettings.articlepicker_has_variants,"{}"!==JSON.stringify(bogxMultilayerJSON)){let tt=[];for(let ta in bogxMultilayerJSON)bogxMultilayerJSON.hasOwnProperty(ta)&&tt.push(bogxMultilayerJSON[ta]);tn.multilayer=JSON.stringify(tt),void 0!==bogxMultilayerJSON.background_merge&&bogxMultilayerJSON.background_merge&&(tP=!0),tn.multilayerBackgroundMerge=tP}tn.optionsGroups=er,setTimeout(function(){let tt=JSON.stringify(tn),ta=t_.CryptoJSAesEncrypt("Bogx_Product_Configurator",tt),ti=document.getElementById("bogxPayload");ti&&(ti.value=JSON.stringify({bogxProductConfigurator:ta})),sessionStorage.removeItem("bogxProductConfiguratorSelection"),sessionStorage.setItem("bogxProductConfiguratorSelection",ta)},500),window.bogxDefaultsJSON=defaultsJSON}ts&&("{}"!==JSON.stringify(blackoptions)||"{}"!==JSON.stringify(blackoptions_product))&&(tt="div.bogx--config",(ta=document.querySelectorAll(tt)).forEach(tt=>tt.classList.remove(tl)),tt="option.bogx--config",(ta=document.querySelectorAll(tt)).forEach(tt=>tt.classList.remove(tl)),tt="option.bogx--config",(ta=document.querySelectorAll(tt)).forEach(tt=>tt.disabled=!1)),bogxCustomStorage.bogx_config_load=!1,td&&tr.updateOptions(),ts&&("{}"!==JSON.stringify(blackoptions)||"{}"!==JSON.stringify(blackoptions_product))&&tS.Z.updateBlackoptions()&&td&&tr.updateOptions(),td||tr.updateOptions(),tg()}updateOptions(){var ta,ti,tr,tn,to,tl,ts,td,tu,tg=this;t6=tg.options.configuratorGlobals.basicPriceFlag,surchargeJSONOrigin=tg.options.surchargeJSON,tX=tg.options.configuratorGlobals.baseprice,t4=0;let tp=tg.options.blockprices;var tm=bogxSettings.bogx_image_mode,th={};t7="";let tf=0;0!==tp&&(tf=tx.Z.getBlockPrice(tp));let tb="1"===bogxSettings.bogx_show_prices;tf>0&&tb&&"false"===tc.Z.getGlobals("nullprice")&&(t0=tf,tX=tf),t8=tg.options.formelJSON,t3=tx.Z.update(surchargeJSONOrigin,t0)[0],et={},er=[],t3.once=0,ei={},bogxCustomStorage.bogx_data_load=!0;let t_=Object.keys(defaultsJSON);function ty(tg){if(!bogxCustomStorage.bogx_data_load){setTimeout(()=>{ty(tg)},100);return}bogxCustomStorage.bogx_config_load=!1;let tp=defaultsJSON[tg][0],tf=defaultsJSON[tg][3],tb=0;ti={},tn={},ts={},td={},tu={},tl="",tr=[];let t_=0,tv=t8[tg];tt="";let tx={};if("radiobutton"===tp&&0===tf?tx=tB.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):("select"===tp||"quantity_select"===tp)&&0===tf?tx=tD.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):("image"===tp||"image_title"===tp||"image_title_price"===tp||"image_product"===tp||"image_product_fix"===tp)&&0===tf&&"extended"===tm?tx=tJ.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):("image"===tp||"image_title"===tp||"image_title_price"===tp||"image_product"===tp||"image_product_fix"===tp)&&0===tf&&"standard"===tm?tx=tJ.Z.updateStandard(tg,t6,t0,t4,tX,t3,tv,t5):("boxed_title"===tp||"boxed_title_price"===tp)&&0===tf?tx=tL.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):("color"===tp||"color_title"===tp||"color_product"===tp||"color_product_fix"===tp)&&0===tf?tx=tZ.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):"checkbox"===tp&&0===tf?tx=tC.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):"checkbox_set"===tp&&0===tf?tx=tC.Z.updateSet(tg,t6,t0,t4,tX,t3,tv,t5):"checkbox_quantity"===tp&&0===tf?tx=tC.Z.updateSetQuantity(tg,t6,t0,t4,tX,t3,tv,t5):("text"===tp||"text_date"===tp||"text_time"===tp||"text_area"===tp)&&0===tf?tx=tM.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):"text_date_extended"===tp&&0===tf?tx=tq.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):("quantity_total"===tp||"quantity_graduated"===tp)&&0===tf?tx=tF.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):"quantity_onetime_surcharge"===tp&&0===tf?tx=tF.Z.updateOnetime(tg,t6,t0,t4,tX,t3,tv,t5):"article_virtual_single"===tp&&0===tf?tx=tH.updateSingle(tg,t6,t0,t4,tX,t3,tv,t5):"article_virtual_multi"===tp&&0===tf?tx=tH.updateMulti(tg,t6,t0,t4,tX,t3,tv,t5):"article_virtual_kit"===tp&&0===tf?tx=tH.updateKit(tg,t6,t0,t4,tX,t3,tv,t5):"free_item"===tp&&0===tf?tx=tj.Z.updateFreeItem(tg,t6,t0,t4,tX,t3,tv,t5):"free_item_value"===tp&&0===tf?tx=tj.Z.updateFreeItemValue(tg,t6,t0,t4,tX,t3,tv,t5):"free_item_text"===tp&&0===tf?tx=tj.Z.updateFreeItemText(tg,t6,t0,t4,tX,t3,tv,t5):"free_item_gurtmass"===tp&&0===tf?tx=tj.Z.updateFreeItemGurtmass(tg,t6,t0,t4,tX,t3,tv,t5):"free_item_handler"===tp?tx=tj.Z.updateFreeItemHandler(tg,t6,t0,t4,tX,t3,tv,t5):"free_parameter"===tp&&0===tf?tx=tG.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):"axb_free_parameter"===tp&&0===tf?tx=tz.Z.update(tg,t6,t0,t4,tX,t3,tv,t5):"multiupload"===tp&&0===tf?th=(tx=tR.Z.update(tg,t6,t0,t4,tX,t3,tv,t5,th)).multiupload_files_json:tx="multilayer"===tp&&0===tf?tW.update(tg,t6,t0,t4,tX,t3,tv,t5):("article_multi_select"===tp||"acc_multi_select"===tp||"variant_multi_select"===tp)&&0===tf?tU.update(tg,t6,t0,t4,tX,t3,tv,t5,ei):("article_single_select"===tp||"acc_single_select"===tp||"variant_single_select"===tp)&&0===tf?tY.update(tg,t6,t0,t4,tX,t3,tv,t5,ei):"article_kit"===tp&&0===tf?tQ.update(tg,t6,t0,t4,tX,t3,tv,t5,ei):{key:tg,group_name:"",title:{},title_q:{},title_item_qtext:"",hidden:0,image_json:{},formel:tv,totalQuantityUnit:t5,totalsurcharge:t4,itemSurchargeOutput:0,itemSurchargeOutput_json:{},surchargeJSONOrigin:surchargeJSONOrigin,unitySurcharge_json:{},gesamtpreis:tX,basicPriceFlag:t6,basketPartsList:ei},"{}"!==JSON.stringify(tx)){tt=tx.group_name,t_=tx.hidden,ts=tx.image_json,ta=tx.title,tr=tx.title_q,tl=tx.title_item_qtext,t5=tx.totalQuantityUnit,t4=tx.totalsurcharge,tb=tx.itemSurchargeOutput,td=tx.itemSurchargeOutput_json,tu=tx.unitySurcharge_json,tX=tx.gesamtpreis,t6=tx.basicPriceFlag,tx.basketPartsList&&(ei=tx.basketPartsList);let ti=tc.Z.optiongroupsJsonBuilder(tg,tt,tv,t_,tb,td,tu,er,t7,to,ts,ta,tr,tl,th);er=ti[0],t7=ti[1]}sessionStorage.setItem("addon_data_load","true")}t_.length,ty(t_[0]);for(let tt=1;tt<t_.length;tt++)ty(t_[tt]);function tv(){if(!bogxCustomStorage.bogx_data_load){setTimeout(()=>{tv()},250);return}bogxCustomStorage.bogx_config_load=!0,et=t3,t9=er}tv()}registerEvents(){var tt=this;let ta=new ts;var ti=bogxSettings.bogx_quickview_width+"px",tr=bogxSettings.bogx_dclview_width+"px";window.innerWidth<1024&&(ti="90%",tr="90%");var tn=document.querySelectorAll('input.bogx--config[type="number"]');for(let ta in window.addEventListener("pageshow",function(tt){sessionStorage.removeItem("bogx_formel")}),window.DatePicker)window.DatePicker.hasOwnProperty(ta)&&window.DatePicker[ta].config.onChange.push(function(ti,tr,t
10n){defaultsJSON[ta][1]=tr;let to="text_date_"+ta,tl=document.getElementById(to);tl.value=tr,defaultsJSON[ta][2]=tl.getAttribute("data-valueid"),tt.updateConfigurator()});let to=document.getElementById("bogx_buybutton");to&&to.addEventListener("click",function(ta){let ti=tc.Z.getGlobals("order_mode");if("change"===ti||"basket"===ti){tc.Z.setGlobals("order_mode","normal");let ta=tc.Z.getGlobals("detail_link");window.history.pushState({},null,ta),tt.updateConfigurator()}});let tl=document.getElementById("bogx_configurator_switch");tl&&tl.addEventListener("click",function(tt){tc.Z.changeOrderingMode(tl),sticky&&sticky.update()});let td=document.getElementById("bogx_dcl_share");td&&td.addEventListener("click",function(tt){ty.Z.showDclView(ta,tr)}),document.querySelectorAll(".bogx--icon-zoom").forEach(function(tt){tt.addEventListener("click",function(ta){let tr=tt.closest(".bogx--icon-zoom-wrap"),tn=tr.getAttribute("data-title"),to=tr.getAttribute("data-src");ty.Z.showZoom(tn,to,ti)})}),document.querySelectorAll('.bogx--ipunkt[data-layout_infopoint="modal"]').forEach(function(tt){tt.addEventListener("click",function(ta){let tr=tt.getAttribute("data-target");ty.Z.showModalView(tr,ti)})}),document.querySelectorAll("div.bogx--group-next").forEach(function(tt){tt.addEventListener("click",function(ta){tc.Z.nextGroupButton(tt)})}),document.querySelectorAll("div.bogx--group-back").forEach(function(tt){tt.addEventListener("click",function(ta){tc.Z.backGroupButton(tt)})}),document.querySelectorAll('input.form-check-input[data-datatype="checkbox_set"]').forEach(function(tt){tt.addEventListener("click",function(ta){tC.Z.clickSet(tt)})}),document.querySelectorAll('input.form-check-input[data-datatype="checkbox_quantity"]').forEach(function(tt){tt.addEventListener("click",function(ta){tC.Z.clickSetQuantity(tt)})}),document.querySelectorAll('input[type="number"][data-datatype="checkbox_quantity"]').forEach(function(ta){ta.addEventListener("input",function(ti){tC.Z.inputSetQuantity(ta),tt.updateConfigurator()})}),document.querySelectorAll("input.bogx--text").forEach(function(ta){ta.addEventListener("input",function(ti){tM.Z.inputText(ta),tt.updateConfigurator()})}),document.querySelectorAll('textarea.bogx--area[data-datatype="text_area"]').forEach(function(ta){ta.addEventListener("input",function(ti){tM.Z.inputTextArea(ta),tt.updateConfigurator()})}),window.onresize=function(tt){let ta="bogx_multilayer_viewer";if(document.getElementById(ta)){let tt=document.getElementById(ta),ti=tt.getAttribute("data-ratio"),tr=parseInt(tt.getAttribute("data-width_parent"),10),tn=document.querySelector(".gallery-slider-row").parentElement.clientWidth,to=tn/ti;if(tr!==tn){tt.setAttribute("data-width_parent",tn),tt.setAttribute("data-height_parent",to);let ta=tn.toString()+"px",ti=to.toString()+"px";tt.style.width=ta,tt.style.height=ti}}};let tg=window.PluginManager.getPluginInstances("AddToCart");tg&&tg[0].$emitter.subscribe("beforeFormSubmit",ta=>{tt.triggerAllRemoveButtons()}),document.addEventListener("click",function(tr){let tn,to,tl,ts,tc,td,tg,tm,th,tf,tb,t_,tx,tS,tO,tA,tE,tN,tw,tk,tI,tB,tJ,tL,tZ,tD,tC=tr.target,tM=tr.target.parentNode,tq=bogxSettings.bogx_image_mode,tF={},tP=[],tT={},tH={},tj={},tG={},tz=[];if(tC.classList.contains("icon--selected")||tC.classList.contains("icon--blocked")||tC.classList.contains("is--disabled")||tC.classList.contains("quantity--select")||tC.classList.contains("grouptitle")||tM.classList.contains("quantity--select"))tr.preventDefault();else if(tC.classList.contains("bogx--option-qv")||tC.classList.contains("bogx--option-icon")&&tM.classList.contains("bogx--option-info"))tC.classList.contains("bogx--option-qv")&&(tM=tC.closest(".bogx--option-info")),ty.Z.showQuickView(tM,ta,ti);else if(tC.classList.contains("bogx--article-qv")||tC.classList.contains("bogx--article-icon")&&tM.classList.contains("bogx--article-info"))tC.classList.contains("bogx--article-qv")&&(tM=tC.closest("div.bogx--article-info")),tK.showModal(tM,ta,ti);else if(tM.classList.contains("bogx--config")||tC.classList.contains("bogx--config")){if("radiobutton"===(ts=tC.classList.contains("radiobutton")?tC.getAttribute("data-datatype"):tM.getAttribute("data-datatype")))tC.matches("label")?tr.preventDefault():tC.matches("input")?tr.stopPropagation():tC.classList.contains("radiobutton")&&(tr.preventDefault(),tM=tC),tn=tM.getAttribute("data-key"),defaultsJSON[tn][1]=tM.getAttribute("data-value"),defaultsJSON[tn][2]=tM.getAttribute("data-valueid"),defaultsJSON[tn][6]=tM.getAttribute("data-delivery"),defaultsJSON[tn][7]=tM.getAttribute("data-ocb"),defaultsJSON[tn][9]=tM.getAttribute("data-id"),tp.Z.detachSelectorHandler(tM);else if(("image"===ts||"image_title"===ts||"image_title_price"===ts||"image_product"===ts||"image_product_fix"===ts)&&"standard"===tq||"multilayer"===ts)tn=tM.getAttribute("data-key"),defaultsJSON[tn][1]=tM.getAttribute("data-value"),defaultsJSON[tn][2]=tM.getAttribute("data-valueid"),defaultsJSON[tn][6]=tM.getAttribute("data-delivery"),defaultsJSON[tn][7]=tM.getAttribute("data-ocb"),defaultsJSON[tn][9]=tM.getAttribute("data-id"),tp.Z.detachSelectorHandler(tM);else if("boxed_title"===ts||"boxed_title_price"===ts)tn=tM.getAttribute("data-key"),defaultsJSON[tn][1]=tM.getAttribute("data-value"),defaultsJSON[tn][2]=tM.getAttribute("data-valueid"),defaultsJSON[tn][6]=tM.getAttribute("data-delivery"),defaultsJSON[tn][7]=tM.getAttribute("data-ocb"),defaultsJSON[tn][9]=tM.getAttribute("data-id"),tp.Z.detachSelectorHandler(tM);else if(("image"===ts||"image_title"===ts||"image_title_price"===ts||"image_product"===ts||"image_product_fix"===ts)&&"extended"===tq)(tC.classList.contains("lazy")||tC.classList.contains("title")||tC.classList.contains("price")||tC.classList.contains("icon-check-wrap")||tC.classList.contains("bogx--icon-check")||tC.classList.contains("image-grid")||tC.classList.contains("image-list")||tC.classList.contains("image-wrap"))&&(tn=tC.getAttribute("data-key"),to=tC.getAttribute("data-valueid")),to&&tn&&(tc="list"===(td=document.getElementById(tn).getAttribute("data-layout"))?to+"_div":"select"===td?to+"_div":to+"_wrap",(isNaN(tS=parseInt((tM=document.getElementById(tc)).getAttribute("data-quantity"),10))||0===tS)&&(tS=1),(tO=tM.getAttribute("data-dispatch"))||(tO="0"),tA=tu.Z.getDispatchValue(tn,tO,tS),void 0===(tE=tM.getAttribute("data-delivery"))&&(tE=""),void 0===(tN=tM.getAttribute("data-ocb"))&&(tN=""),void 0===(tw=tM.getAttribute("data-unit"))&&(tw=""),void 0===(tl=tM.getAttribute("data-id"))&&(tl="")),(tk=defaultsJSON[tn][2]).length>0&&(tI=tk[0])!==to&&tv.Z.updatePriceboxForMultiselect(tn,tI,"#",0,"",""),tF[to]=tS,tP.push(to),tT[to]=tw,tH[to]=tA,tj[to]=tE,tG[to]=tN,tz.push(tl),defaultsJSON[tn][1]=tF,defaultsJSON[tn][2]=tP,defaultsJSON[tn][4]=tT,defaultsJSON[tn][5]=tH,defaultsJSON[tn][6]=tj,defaultsJSON[tn][7]=tG,defaultsJSON[tn][9]=tz,tp.Z.detachSelectorHandler(tM);else if("color"===ts||"color_title"===ts||"color_product"===ts||"color_product_fix"===ts)tn=tM.getAttribute("data-key"),td=tM.getAttribute("data-layout"),defaultsJSON[tn][1]=tC.getAttribute("data-value"),defaultsJSON[tn][2]=tC.getAttribute("data-valueid"),defaultsJSON[tn][7]=tC.getAttribute("data-ocb"),defaultsJSON[tn][9]=tC.getAttribute("data-id"),"grid"===td&&tp.Z.detachSelectorHandler(tM);else if("checkbox"===ts){if(tn=tM.getAttribute("data-key"),tC.matches("input")){if(tC.checked)defaultsJSON[tn][1]="1",defaultsJSON[tn][2]=tC.getAttribute("data-valueid"),defaultsJSON[tn][6]=tC.getAttribute("data-delivery"),defaultsJSON[tn][7]=tC.getAttribute("data-ocb"),defaultsJSON[tn][9]=tC.getAttribute("data-id");else{let tt=tn+"_hidden";tC=document.getElementById(tt),defaultsJSON[tn][1]="0",defaultsJSON[tn][2]=tC.getAttribute("data-valueid"),defaultsJSON[tn][6]="0",defaultsJSON[tn][7]=tC.getAttribute("data-ocb"),defaultsJSON[tn][9]=tC.getAttribute("data-id")}tp.Z.detachSelectorHandler(tC)}}else if("article_virtual_single"===ts)tn=tM.getAttribute("data-key"),tg="bogx_quantity_"+(to=tC.classList.contains("icon--search")?tM.getAttribute("data-valueid"):tC.getAttribute("data-valueid")),tm=document.getElementById(tg),tS=1,tw="",tm&&((isNaN(tS=parseInt(tm.value,10))||0===tS)&&(tS=1),null===(tw=tm.getAttribute("data-unit"))&&(tw="")),th=to+"_div",tM=document.getElementById(th),tf=to+"_wrap",t_=document.getElementById(tf),tb=to+"_div",tx=document.getElementById(tb),(tO=tM.getAttribute("data-dispatch"))||(tO="0"),tA=tu.Z.getDispatchValue(tn,tO,tS),null===(tE=tM.getAttribute("data-delivery"))&&(tE=""),null===(tN=tM.getAttribute("data-ocb"))&&(tN=""),(tk=defaultsJSON[tn][2]).length>0&&(tI=tk[0])!==to&&(tB=tI+"_wrap",tJ=tI+"_div",tL=document.getElementById(tB),tZ=document.getElementById(tJ),tL.classList.remove("selected"),tZ.classList.remove("is--selected"),tv.Z.updatePriceboxForMultiselect(tn,tI,"#",0,"","")),t_.classList.contains("selected")?(t_.classList.remove("selected"),tx.classList.remove("is--selected")):(t_.classList.add("selected"),tx.classList.add("is--selected")),t_.classList.contains("selected")?(tF[to]=tS,tP.push(to),tT[to]=tw,tH[to]=tA,tj[to]=tE,tG[to]=tN,tm.classList.remove("is--disabled"),tm.disabled=!1):(tm.classList.add("is--disabled"),tm.disabled=!0,tv.Z.updatePriceboxForMultiselect(tn,to,"#",0,"","")),defaultsJSON[tn][1]=tF,defaultsJSON[tn][2]=tP,defaultsJSON[tn][4]=tT,defaultsJSON[tn][5]=tH,defaultsJSON[tn][6]=tj,defaultsJSON[tn][7]=tG,tp.Z.detachSelectorHandler(tM);else if("article_virtual_multi"===ts)tn=tM.getAttribute("data-key"),tg="bogx_quantity_"+(to=tC.classList.contains("icon--search")?tM.getAttribute("data-valueid"):tC.getAttribute("data-valueid")),tm=document.getElementById(tg),tS=1,tw="",tm&&((isNaN(tS=parseInt(tm.value,10))||0===tS)&&(tS=1),null===(tw=tm.getAttribute("data-unit"))&&(tw="")),th=to+"_div",tM=document.getElementById(th),tf=to+"_wrap",t_=document.getElementById(tf),tb=to+"_div",tx=document.getElementById(tb),(tO=tM.getAttribute("data-dispatch"))||(tO="0"),tA=tu.Z.getDispatchValue(tn,tO,tS),null===(tE=tM.getAttribute("data-delivery"))&&(tE=""),null===(tN=tM.getAttribute("data-ocb"))&&(tN=""),tF=defaultsJSON[tn][1],tP=defaultsJSON[tn][2],tT=defaultsJSON[tn][4],tH=defaultsJSON[tn][5],tj=defaultsJSON[tn][6],tG=defaultsJSON[tn][7],t_.classList.contains("selected")?(t_.classList.remove("selected"),tx.classList.remove("is--selected")):(t_.classList.add("selected"),tx.classList.add("is--selected")),t_.classList.contains("selected")?(tF[to]=tS,tP.push(to),tT[to]=tw,tH[to]=tA,tj[to]=tE,tG[to]=tN,tm.classList.remove("is--disabled"),tm.disabled=!1):(delete tF[to],(tD=tP.indexOf(to))>-1&&tP.splice(tD,1),delete tT[to],delete tH[to],delete tj[to],delete tG[to],tm.classList.add("is--disabled"),tm.disabled=!0,tv.Z.updatePriceboxForMultiselect(tn,to,"#",0,"","")),defaultsJSON[tn][1]=tF,defaultsJSON[tn][2]=tP.sort(),defaultsJSON[tn][4]=tT,defaultsJSON[tn][5]=tH,defaultsJSON[tn][6]=tj,defaultsJSON[tn][7]=tG,tp.Z.detachSelectorHandler(tM);else if("article_single_select"===ts||"acc_single_select"===ts||"variant_single_select"===ts){let tt=tC.getAttribute("data-valueid");tM=document.getElementById(tt+"_div"),tY.onclick(tC,tM,tt,ts,t5),tp.Z.detachSelectorHandler(tM)}else if("article_multi_select"===ts||"acc_multi_select"===ts||"variant_multi_select"===ts){let tt=tC.getAttribute("data-valueid");tM=document.getElementById(tt+"_div"),tU.onclick(tC,tM,tt,ts,t5),tp.Z.detachSelectorHandler(tM)}tt.updateConfigurator()}},!1),document.addEventListener("change",function(ta){let ti,tr,tn,to,tl,ts=ta.target;ts.matches("select")&&ts.matches(".bogx--config.quantity--select")&&(to=ts.getAttribute("name"),ti=document.getElementById(to),tl=(tn=(tr=ts).options[tr.selectedIndex]).getAttribute("data-id"),defaultsJSON[to][9]!==tl&&(defaultsJSON[to][1]=tn.value,defaultsJSON[to][2]=tn.getAttribute("data-valueid"),defaultsJSON[to][6]=tn.getAttribute("data-delivery"),defaultsJSON[to][7]=tn.getAttribute("data-ocb"),defaultsJSON[to][9]=tl,ti.getAttribute("data-total_flag")&&"1"===ti.getAttribute("data-total_flag")&&(totalQuantity=parseInt(tn.value,10)),tp.Z.detachSelectorHandler(tn)),tt.updateConfigurator())},!1),document.querySelectorAll("input.bogx--multiupload-data").forEach(function(ta){ta.addEventListener("change",function(ta){let ti=ta.target;("multiupload"===ti.getAttribute("data-datatype")||"multiupload_designer"===ti.getAttribute("data-datatype"))&&(console.log("Upload Data Input Changed"),tt.updateConfigurator())})}),document.addEventListener("input",function(ta){let ti,tr,tn,to,tl,ts,td,tu,tg,tp,tm,th,tf,tb,t_,ty,tv,tx,tS,tO,tA,tE,tN,tw=ta.target,tk=tw.getAttribute("data-datatype"),tI=tw.getAttribute("data-key"),tB=!1;if(tk&&("quantity_total"===tk||"quantity_graduated"===tk)){if(!tw.validity.valid&&!tw.validity.stepMismatch&&!tw.validity.rangeUnderflow&&!tw.validity.rangeOverflow)return;tr=(ti=tc.Z.getValideMinMaxValue(tI,tw))[0],defaultsJSON[tI][1]=tr,tw.getAttribute("data-total_flag")&&"1"===tw.getAttribute("data-total_flag")&&(totalQuantity=tr),tt.updateConfigurator()}else if("article_virtual_multi"===tk||"article_virtual_single"===tk){let ta=tw.getAttribute("data-valueid");tr=(ti=tc.Z.getValideMinMaxValue(tI,tw))[0];let tn=defaultsJSON[tI][1];tn[ta]=tr,defaultsJSON[tI][1]=tn,tt.updateConfigurator()}else if("axb_free_parameter"===tk||"axb_parameter"===tk){if(!tw.validity.valid&&!tw.validity.stepMismatch&&!tw.validity.rangeUnderflow&&!tw.validity.rangeOverflow)return;tn=parseInt(tw.getAttribute("data-index"),10),""!==(tu=tw.getAttribute("data-ratio"))&&(tu=parseFloat(tu)),t_=defaultsJSON[tI][2][0],ty=defaultsJSON[tI][2][1],0===tu||""===tu?(ts=parseFloat(tw.value),to=parseFloat(tw.getAttribute("max")),tl=parseFloat(tw.getAttribute("step")),(ts=to>0&&ts>to?to:tc.Z.rundByStep(ts,tl))!==parseFloat(tw.value)&&(tw.value=ts),defaultsJSON[tI][1][tn]=ts):(tp=1/(tg=tu),"axb_parameter"===tk?(tm="bogx-parameter-axb_"+t_,th="bogx-parameter-axb_"+ty):(tm="axb_free_"+t_,th="axb_free_"+ty),tf=document.getElementById(tm),tb=document.getElementById(th),tv=parseFloat(tf.getAttribute("step")),tS="0"===tf.getAttribute("max")?Number.MAX_SAFE_INTEGER:parseInt(tf.getAttribute("max"),10),tO=parseInt(tf.getAttribute("min"),10),tx=parseFloat(tb.getAttribute("step")),tA="0"===tb.getAttribute("max")?Number.MAX_SAFE_INTEGER:parseInt(tb.getAttribute("max"),10),tE=parseInt(tb.getAttribute("min"),10),tg>1?0===tn?(ts=parseFloat(tw.value),tS>0&&ts>tS?ts=tS:ts<tO&&(tB=!0),td=tc.Z.roundWithStep(ts*tg,tx)):1===tn&&(td=parseFloat(tw.value),tS>0&&td>tS*tg?td=tS*tg:td<tE&&(tB=!0),ts=tc.Z.roundWithStep(td*tp,tv)):0===tn?(ts=parseFloat(tw.value),tA>0&&ts>tA*tp?ts=tA*tp:ts<tO&&(tB=!0),td=tc.Z.roundWithStep(ts*tg,tx)):1===tn&&(td=parseFloat(tw.value),tA>0&&td>tA?td=tA:td<tE&&(tB=!0),ts=tc.Z.roundWithStep(td*tp,tv)),ts!==parseFloat(tf.value)&&(tf.value=ts),td!==parseFloat(tb.value)&&(tb.value=td),tB||(defaultsJSON[tI][1][0]=ts,defaultsJSON[tI][1][1]=td)),tt.updateConfigurator()}else if("free_parameter"===tk){if(!tw.validity.valid&&!tw.validity.stepMismatch&&!tw.validity.rangeUnderflow&&!tw.validity.rangeOverflow)return;ts=parseFloat(tw.value),tl=parseFloat(tw.getAttribute("step")),(ts=(tN=void 0===(tN=tw.getAttribute("max"))||""===tN||"0"===tN?0:parseFloat(tN))>0&&ts>tN?tN:tc.Z.rundByStep(ts,tl))!==parseFloat(tw.value)&&(tw.value=ts),defaultsJSON[tI][1]=ts,tt.updateConfigurator()}else("article_multi_select"===tk||"article_single_select"===tk||"acc_multi_select"===tk||"acc_single_select"===tk||"variant_multi_select"===tk||"variant_single_select"===tk)&&(tY.oninput(tw,tk,t5),tt.updateConfigurator())}
10),tn.forEach(function(ta){ta.addEventListener("blur",function(ta){let ti,tr,tn,to,tl,ts,td,tu=ta.target,tg=tu.getAttribute("data-datatype"),tp=0,tm="0";if(tg&&("quantity_total"===tg||"quantity_graduated"===tg||"checkbox_quantity"===tg||"article_virtual_single"===tg||"article_virtual_multi"===tg||"axb_free_parameter"===tg||"free_parameter"===tg||"article_multi_select"===tg||"article_single_select"===tg||"acc_multi_select"===tg||"acc_single_select"===tg||"variant_multi_select"===tg||"variant_single_select"===tg)&&(tm="1",ti=tu.getAttribute("data-key"),ts=tu.value,("free_parameter"===tg||"axb_free_parameter"===tg)&&(tm=tu.getAttribute("data-round_active")),void 0!==tu.getAttribute("step")?((tl=(to=tu.getAttribute("step")).split(".")).length>1&&(tp=tl[1].length),tn=parseFloat(to)):tn=0,"1"===tm&&0!==tn&&(td=Math.ceil(ts/tn),tn*td>ts))){if(ts=tc.Z.round(tn*td,tp),tu.value=ts,"checkbox_quantity"===tg||"article_virtual_single"===tg||"article_virtual_multi"===tg)tr=tu.getAttribute("data-valueid"),defaultsJSON[ti][1][tr]=ts;else if("article_multi_select"===tg||"article_single_select"===tg||"acc_multi_select"===tg||"acc_single_select"===tg||"variant_multi_select"===tg||"variant_single_select"===tg)tr=tu.getAttribute("data-valueid"),defaultsJSON[ti][1][tr]=ts;else if("axb_parameter"===tg||"axb_free_parameter"===tg){let tt=parseInt(tu.getAttribute("data-index"),10);defaultsJSON[ti][1][tt]=ts}else defaultsJSON[ti][1]=ts,tu.getAttribute("data-total_flag")&&"1"===tu.getAttribute("data-total_flag")&&(totalQuantity=ts);tt.updateConfigurator()}})})}triggerAllRemoveButtons(){let tt=document.querySelectorAll("button.bogx--multiupload-remove"),ta=document.querySelectorAll("input.bogx--multiupload-data");tt&&ta&&(ta.forEach(function(tt){tt.setAttribute("data-state","cart")}),tt.forEach(function(tt){tt.dispatchEvent(new Event("click"))}),ta.forEach(function(tt){tt.setAttribute("data-state","ready")}))}constructor(tt,ta={},ti=!1){super(tt,ta,ti)}}en.options={configuratorGlobals:{totalsurcharge:0,totalQuantityUnit:"",basicPriceFlag:!0,baseprice:0,gesamtpreis:0,additionalText:"",initializeUpdate:!0,waitForDetach:!1},surchargeJSON:{},formulas:{},formelJSON:{},blockprices:[],quantityLimits:{},basketOptiongroups:[],basketSurchargeJSON:{},articlepickerHasVariants:!1},window.PluginManager.register("BogxProductConfigurator",en,"[data-bogx-product-configurator]")})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.