PageSourceSearch

https://mera.eu/gfx/pol/shop.js.gzip?r=1748331633

js mera.eu collected 2026-10-10 01:23:16 UTC 541,038 bytes, 28 lines download raw bytes

1class VanillaCalendar{constructor(e,t){this.HTMLElement="object"==typeof e?e:document.querySelector(e),this.HTMLElement&&(this.type=t?.type??"default",this.date={min:t?.date?.min??"1970-01-01",max:t?.date?.max??"2470-12-31",today:t?.date?.today??new Date},this.info={top:t?.info?.top??!1,bottom:t?.info?.bottom??!1},this.customDayNames=t?.customDayNames??[],this.settings={lang:t?.settings?.lang??app_shop?.vars?.language?.symbol??"pl",iso8601:t?.settings?.iso8601??!0,workingDays:t?.settings?.workingDays??null,disabled:{weekDay:t?.settings?.disabled?.weekDay??null,weekends:t?.settings?.disabled?.weekends??!1},range:{min:t?.settings?.range?.min??this.date.min,max:t?.settings?.range?.max??this.date.max,disabled:t?.settings?.range?.disabled??null,enabled:t?.settings?.range?.enabled??null},selection:{day:t?.settings?.selection?.day??"single",month:t?.settings?.selection?.month??!0,year:t?.settings?.selection?.year??!0,time:t?.settings?.selection?.time??!1,controlTime:t?.settings?.selection?.controlTime??"all",stepHours:t?.settings?.selection?.stepHours??1,stepMinutes:t?.settings?.selection?.stepMinutes??1},selected:{dates:t?.settings?.selected?.dates??null,month:t?.settings?.selected?.month??null,year:t?.settings?.selected?.year??null,holidays:t?.settings?.selected?.holidays??null,time:t?.settings?.selected?.time??null},visibility:{templateHeader:t?.settings?.visibility?.templateHeader??"%M %Y",monthShort:t?.settings?.visibility?.monthShort??!0,weekNumbers:t?.settings?.visibility?.weekNumbers??!1,weekend:t?.settings?.visibility?.weekend??!0,today:t?.settings?.visibility?.today??!0,disabled:t?.settings?.visibility?.disabled??!1}},this.locale={months:t?.locale?.months??[],weekday:t?.locale?.weekday??[]},this.actions={clickDay:t?.actions?.clickDay??null,clickMonth:t?.actions?.clickMonth??null,clickYear:t?.actions?.clickYear??null,changeTime:t?.actions?.changeTime??null},this.popups=t?.popups??null,this.currentType=this.type,this.selectedKeeping=null,this.userTime=!1)}generateDate(e){const t=e.getUTCFullYear();let i=e.getUTCMonth()+1,n=e.getUTCDate();return i=i<10?`0${i}`:i,n=n<10?`0${n}`:n,`${t}-${i}-${n}`}transformTime12(e){const t=Number(e);let i=t;return 0===t?i="12":13===t?i="01":14===t?i="02":15===t?i="03":16===t?i="04":17===t?i="05":18===t?i="06":19===t?i="07":20===t?i="08":21===t?i="09":22===t?i="10":23===t&&(i="11"),i}transformTime24(e,t){const i=Number(e);let n=i;return"AM"===t?12===i&&(n="00"):"PM"===t&&(1===i?n="13":2===i?n="14":3===i?n="15":4===i?n="16":5===i?n="17":6===i?n="18":7===i?n="19":8===i?n="20":9===i?n="21":10===i?n="22":11===i&&(n="23")),n}setVariablesDates(){null!==this.settings.selected.dates?this.selectedDates=this.settings.selected.dates:this.selectedDates=[],null!==this.settings.selected.month&&this.settings.selected.month>=0&&this.settings.selected.month<12?this.selectedMonth=this.settings.selected.month:this.selectedMonth=this.date.today.getUTCMonth(),null!==this.settings.selected.year&&this.settings.selected.year>=0&&this.settings.selected.year<=9999?this.selectedYear=this.settings.selected.year:this.selectedYear=this.date.today.getUTCFullYear(),this.viewYear=this.selectedYear,this.dateMin=this.settings.visibility.disabled?new Date(this.date.min):new Date(this.settings.range.min),this.dateMax=this.settings.visibility.disabled?new Date(this.date.max):new Date(this.settings.range.max);const e=!0===this.settings.selection.time||12===this.settings.selection.time;if(e||24===this.settings.selection.time){if("string"==typeof this.settings.selected.time){const t=e?/^([0-9]|0[1-9]|1[0-2]):([0-5][0-9])|(AM|PM)/g:/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])/g;this.settings.selected.time.replace(t,((t,i,n,a)=>{i&&n&&(this.userTime=!0,this.selectedHours=i,this.selectedMinutes=n),a&&e?this.selectedKeeping=a:e&&(this.selectedKeeping="AM")}))}!this.userTime&&e?(this.selectedHours=this.transformTime12(this.date.today.getHours()),this.selectedMinutes=this.date.today.getMinutes(),this.selectedKeeping=Number(this.date.today.getHours())>12?"PM":"AM"):this.userTime||(this.selectedHours=this.date.today.getHours(),this.selectedMinutes=this.date.today.getMinutes()),this.selectedHours=Number(this.selectedHours)<10?`0${Number(this.selectedHours)}`:`${this.selectedHours}`,this.selectedMinutes=Number(this.selectedMinutes)<10?`0${Number(this.selectedMinutes)}`:`${this.selectedMinutes}`,this.selectedTime=`${this.selectedHours}:${this.selectedMinutes}${this.selectedKeeping?` ${this.selectedKeeping}`:""}`}else this.settings.selection.time&&(this.settings.selection.time=null,console.error("The value of the time property can be: false, true, 12 or 24."))}createDOM(){"default"===this.currentType?(this.HTMLElement.classList.add("vanilla-calendar_default"),this.HTMLElement.classList.remove("vanilla-calendar_month"),this.HTMLElement.classList.remove("vanilla-calendar_year"),this.HTMLElement.innerHTML=`\n      ${this.info.top?'\n      <div class="vanilla-calendar-info --top"></div>\n      ':""}\n      <div class="vanilla-calendar-header">\n        <button type="button"\n          class="vanilla-calendar-arrow vanilla-calendar-arrow_prev"\n          data-calendar-arrow="prev"\n          title="Prev">\n        </button>\n        <div class="vanilla-calendar-header__content"></div>\n        <button type="button"\n          class="vanilla-calendar-arrow vanilla-calendar-arrow_next"\n          data-calendar-arrow="next"\n          title="Next">\n        </button>\n      </div>\n      ${this.settings.visibility.weekNumbers?'\n      <div class="vanilla-calendar-column">\n        <b class="vanilla-calendar-column__title">#</b>\n        <div class="vanilla-calendar-column__content vanilla-calendar-week-numbers"></div>\n      </div>\n      ':""}\n      <div class="vanilla-calendar-content">\n        <div class="vanilla-calendar-week"></div>\n        <div class="vanilla-calendar-days"></div>\n        ${this.settings.selection.time?'\n        <div class="vanilla-calendar-time"></div>\n        ':""}\n      </div>\n      ${this.info.bottom?'\n      <div class="vanilla-calendar-info --bottom"></div>\n      ':""}\n    `):"month"===this.currentType?(this.HTMLElement.classList.remove("vanilla-calendar_default"),this.HTMLElement.classList.add("vanilla-calendar_month"),this.HTMLElement.classList.remove("vanilla-calendar_year"),this.HTMLElement.innerHTML='\n      <div class="vanilla-calendar-header">\n        <div class="vanilla-calendar-header__content"></div>\n      </div>\n      <div class="vanilla-calendar-content">\n        <div class="vanilla-calendar-months"></div>\n      </div>'):"year"===this.currentType&&(this.HTMLElement.classList.remove("vanilla-calendar_default"),this.HTMLElement.classList.remove("vanilla-calendar_month"),this.HTMLElement.classList.add("vanilla-calendar_year"),this.HTMLElement.innerHTML='\n      <div class="vanilla-calendar-header">\n        <button type="button"\n          class="vanilla-calendar-arrow vanilla-calendar-arrow_prev"\n          title="prev">\n        </button>\n        <div class="vanilla-calendar-header__content"></div>\n        <button type="button"\n          class="vanilla-calendar-arrow vanilla-calendar-arrow_next"\n          title="next">\n        </button>\n      </div>\n      <div class="vanilla-calendar-content">\n        <div class="vanilla-calendar-years"></div>\n      </div>')}createHeader(){const e=this.HTMLElement.querySelector(".vanilla-calendar-header__content"),t=this.settings.selection.month?"":" vanilla-calendar-month_disabled",i=this.settings.selection.year?"":" vanilla-calendar-year_disabled",n=`\n    <button type="button"\n      class="vanilla-calendar-month${t}"\n      data-calendar-selected-month="${this.selectedMonth}">\n      ${this.locale.months[this.selectedMonth]}\n    </button>`.replace(/[\n\t]/g,""),a=`\n    <button type="button"\n      class="vanilla-calendar-year${i}"\n      data-calendar-selected-year="${this.selectedYear}">\n      ${this.selectedYear}\n    </button>`.replace(/[\n\t]/g,"");let s=this.settings.visibility.templateHeader.replace("%M",n);s=s.replace("%Y",a),e.innerHTML=s}controlArrows(){if(!["default","year"].includes(this.currentType))return;const e=this.HTMLElement.querySelector(".vanilla-calendar-arrow_prev"),t=this.HTMLElement.querySelector(".vanilla-calendar-arrow_next");(()=>{if("default"!==this.currentType)return;const i=this.selectedMonth===this.dateMin.getUTCMonth(),n=this.selectedMonth===this.dateMax.getUTCMonth(),a=!this.settings.selection.year||this.selectedYear===this.dateMin.getUTCFullYear(),s=!this.settings.selection.year||this.selectedYear===this.dateMax.getUTCFullYear();i&&a||!this.settings.selection.month?e.style.visibility="hidden":e.style.visibility=null,n&&s||!this.settings.selection.month?t.style.visibility="hidden":t.style.visibility=null})(),(()=>{"year"===this.currentType&&(this.dateMin.getUTCFullYear()&&this.viewYear-7<=this.dateMin.getUTCFullYear()?e.style.visibility="hidden":e.style.visibility=null,this.dateMax.getUTCFullYear()&&this.viewYear+7>=this.dateMax.getUTCFullYear()?t.style.visibility="hidden":t.style.visibility=null)})()}createWeek(){const e=this.HTMLElement.querySelector(".vanilla-calendar-week"),t=document.createElement("b");t.className="vanilla-calendar-week__day";const i=[...this.locale.weekday];this.settings.iso8601&&i.push(i.shift()),e.innerHTML="";for(let n=0;n<i.length;n++){const a=i[n],s=t.cloneNode(!0);this.settings.visibility.weekend&&this.settings.iso8601?5!==n&&6!==n||s.classList.add("vanilla-calendar-week__day_weekend"):this.settings.visibility.weekend&&!this.settings.iso8601&&(0!==n&&6!==n||s.classList.add("vanilla-calendar-week__day_weekend")),s.innerText=`${a}`,e.append(s)}}getWeekNumber(e){const t=new Date(e).getUTCDate(),i=new Date(e).getUTCMonth(),n=new Date(e).getUTCFullYear(),a=new Date(n,i,t),s=new Date(Date.UTC(a.getUTCFullYear(),0,1)),r=Math.ceil(((a-s)/864e5+1)/7);return{year:a.getUTCFullYear(),week:r}}createWeekNumbers(e,t){if(!this.settings.visibility.weekNumbers)return;const i=this.HTMLElement.querySelector(".vanilla-calendar-week-numbers"),n=this.HTMLElement.querySelectorAll(".vanilla-calendar-day__btn"),a=Math.ceil((e+t)/7),s=document.createElement("span");s.className="vanilla-calendar-week-number",i.innerHTML="";for(let e=0;e<a;e++){const t=this.getWeekNumber(n[7*e].dataset.calendarDay),a=s.cloneNode(!0);a.innerText=`${t.week}`,a.dataset.calendarYearWeek=`${t.year}`,i.append(a)}}createPopup(e){if(this.popups)for(const t in this.popups)if(Object.hasOwnProperty.call(this.popups,t)){const i=e.querySelector(`[data-calendar-day="${t}"]`);if(i){const e=this.popups[t];i.classList.add(e.modifier),i.parentNode.innerHTML+=`<div class="vanilla-calendar-day__popup">${e.html}</div>`}}}createDays(){const e=new Date(Date.UTC(this.selectedYear,this.selectedMonth,1)),t=new Date(Date.UTC(this.selectedYear,this.selectedMonth+1,0)).getUTCDate();let i=Number(e.getUTCDay());this.settings.iso8601&&(i=Number((0!==e.getUTCDay()?e.getUTCDay():7)-1));const n=this.HTMLElement.querySelector(".vanilla-calendar-days"),a=document.createElement("div"),s=document.createElement("button");a.className="vanilla-calendar-day",s.className="vanilla-calendar-day__btn",s.type="button",["single","multiple","multiple-ranged"].includes(this.settings.selection.day)&&n.classList.add("vanilla-calendar-days_selecting"),n.innerHTML="";const r=(e,t,i,n)=>{!this.settings.visibility.weekend||0!==t&&6!==t||e.classList.add("vanilla-calendar-day__btn_weekend"),Array.isArray(this.settings.selected.holidays)&&this.settings.selected.holidays.forEach((t=>{t===i&&e.classList.add("vanilla-calendar-day__btn_holiday")}));let a=this.date.today.getUTCDate(),s=this.date.today.getUTCMonth()+1;a=a<10?`0${a}`:a,s=s<10?`0${s}`:s;const r=`${this.date.today.getUTCFullYear()}-${s}-${a}`;if(this.settings.visibility.today&&e.dataset.calendarDay===r&&e.classList.add("vanilla-calendar-day__btn_today"),0===this.selectedDates.indexOf(i)||this.selectedDates[0]&&this.selectedDates.indexOf(i)===this.selectedDates.length-1?e.classList.add("vanilla-calendar-day__btn_selected"):"multiple-ranged"===this.settings.selection.day&&this.selectedDates.indexOf(i)>0?(e.classList.add("vanilla-calendar-day__btn_selected"),e.classList.add("vanilla-calendar-day__btn_intermediate")):this.selectedDates.indexOf(i)>0&&e.classList.add("vanilla-calendar-day__btn_selected"),(this.settings.range.min>i||this.settings.range.max<i)&&e.classList.add("vanilla-calendar-day__btn_disabled"),this.settings.selection.month||n||e.classList.add("vanilla-calendar-day__btn_disabled"),this.settings.selection.year||new Date(i).getFullYear()===this.selectedYear||e.classList.add("vanilla-calendar-day__btn_disabled"),Array.isArray(this.settings.range.disabled)?this.settings.range.disabled.forEach((t=>{t===i&&e.classList.add("vanilla-calendar-day__btn_disabled")})):Array.isArray(this.settings.range.enabled)&&(e.classList.add("vanilla-calendar-day__btn_disabled"),this.settings.range.enabled.forEach((t=>{t===i&&e.classList.remove("vanilla-calendar-day__btn_disabled")}))),!this.settings.disabled.weekends||0!==t&&6!==t||e.classList.add("vanilla-calendar-day__btn_disabled"),Array.isArray(this.settings.disabled.weekDay)&&this.settings.disabled.weekDay.forEach((i=>{i===t&&e.classList.add("vanilla-calendar-day__btn_disabled")})),Array.isArray(this.settings.workingDays)&&(this.settings.workingDays.includes(t)||e.classList.add("vanilla-calendar-day__btn_disabled")),this.customDayNames?.length){const t=this.customDayNames.find((e=>e.date===i));if(t){const{class:i="",name:n}=t||{};e.classList.add(i),n&&(e.innerHTML=n)}}},o=(e,t,i,o,l)=>{const c=a.cloneNode(!0),p=s.cloneNode(!0);l&&p.classList.add(l),p.innerText=e,p.dataset.calendarDay=i,r(p,t,i,o),c.append(p),n.append(c)};(()=>{let e=new Date(Date.UTC(this.selectedYear,this.selectedMonth,0)).getUTCDate()-i,t=this.selectedYear,n=this.selectedMonth;0===this.selectedMonth?(n=this.locale.months.length,t=this.selectedYear-1):this.selectedMonth<10&&(n=`0${this.selectedMonth}`);for(let a=0;a<i;a++){e+=1;const i=`${t}-${n}-${e}`,a=new Date(Date.UTC(this.selectedYear,this.selectedMonth,e-1)).getUTCMonth()-1,s=new Date(Date.UTC(this.selectedYear,a,e)).getUTCDay();o(e,s,i,!1,"vanilla-calendar-day__btn_prev")}})(),(()=>{for(let e=1;e<=t;e++){const t=new Date(Date.UTC(this.selectedYear,this.selectedMonth,e)),i=this.generateDate(t),n=t.getUTCDay();o(e,n,i,!0)}})(),(()=>{const e=i+t,n=Math.ceil(e/this.locale.weekday.length),a=this.locale.weekday.length*n-e;let s=this.selectedYear,r=this.selectedMonth+2;this.selectedMonth+1===this.locale.months.length?(r="01",s=this.selectedYear+1):this.selectedMonth+2<10&&(r=`0${this.selectedMonth+2}`);for(let e=1;e<=a;e++){const t=`${s}-${r}-${e<10?`0${e}`:e}`,i=new Date(Date.UTC(this.selectedYear,this.selectedMonth,e)).getUTCMonth()+1,n=new Date(Date.UTC(this.selectedYear,i,e)).getUTCDay();o(e,n,t,!1,"vanilla-calendar-day__btn_next")}})(),this.createPopup(n),this.createWeekNumbers(i,t)}changeMonth(e){const t=this.locale.months.length-1;switch(e){case"prev":0!==this.selectedMonth?this.selectedMonth-=1:this.settings.selection.year&&(this.selectedYear-=1,this.selectedMonth=t);break;case"next":this.selectedMonth!==t?this.selectedMonth+=1:this.settings.selection.year&&(this.selectedYear+=1,this.selectedMonth=0)}this.settings.selected.month=this.selectedMonth,this.settings.selected.year=this.selectedYear,this.createHeader(),this.controlArrows(),this.createDays()}createYears(){this.currentType="year",this.createDOM(),this.createHeader(),this.controlArrows();const e=this.HTMLElement.querySelector(".vanilla-calendar-years");this.settings.selection.year&&e.classList.add("vanilla-calendar-years_selecting");const t=document.createElement("button");t.type="button",t.className="vanilla-calendar-years__year";for(let i=this.viewYear-7;i<this.viewYear+8;i++){const n=i,a=t.cloneNode(!0);n===this.selectedYear&&a.classList.add("vanilla-calendar-years__year_selected"),n<this.dateMin.getUTCFullYear()&&a.classList.add("vanilla-calendar-years__year_disabled"),n>this.dateMax.getUTCFullYear()&&a.classList.add("vanilla-calendar-years__year_disabled"),a.dataset.calendarYear=n,a.innerText=`${n}`,e.append(a)}}createMonths(){this.currentType="month",this.createDOM(),this.createHeader();const e=this.HTMLElement.querySelector(".vanilla-calendar-months");this.settings.selection.month&&e.classList.add("vanilla-calendar-months_selecting");const t=document.creat
1eElement("button");t.type="button",t.className="vanilla-calendar-months__month";for(let i=0;i<this.locale.months.length;i++){const n=this.locale.months[i],a=t.cloneNode(!0);i===this.selectedMonth&&a.classList.add("vanilla-calendar-months__month_selected"),i<this.dateMin.getUTCMonth()&&this.selectedYear===this.dateMin.getUTCFullYear()&&a.classList.add("vanilla-calendar-months__month_disabled"),i>this.dateMax.getUTCMonth()&&this.selectedYear===this.dateMax.getUTCFullYear()&&a.classList.add("vanilla-calendar-months__month_disabled"),a.dataset.calendarMonth=i,a.title=`${n}`,a.innerText=`${this.settings.visibility.monthShort?n.substring(0,3):n}`,e.append(a)}}controlTime(e){const t=this.HTMLElement.querySelector('.vanilla-calendar-time__range input[name="hours"]'),i=this.HTMLElement.querySelector('.vanilla-calendar-time__range input[name="minutes"]'),n=this.HTMLElement.querySelector('.vanilla-calendar-time__hours input[name="hours"]'),a=this.HTMLElement.querySelector('.vanilla-calendar-time__minutes input[name="minutes"]'),s=this.HTMLElement.querySelector(".vanilla-calendar-time__keeping"),r=(e,t)=>{e.addEventListener("mouseover",(()=>t.classList.add("is-focus")))},o=(e,t)=>{e.addEventListener("mouseout",(()=>t.classList.remove("is-focus")))},l=(e,t,i)=>{"hours"===i?this.selectedHours=`${t}`:"minutes"===i&&(this.selectedMinutes=`${t}`),this.selectedTime=`${this.selectedHours}:${this.selectedMinutes}${this.selectedKeeping?` ${this.selectedKeeping}`:""}`,this.settings.selected.time=this.selectedTime,this.actions.changeTime&&this.actions.changeTime(e,this.selectedTime,this.selectedHours,this.selectedMinutes,this.selectedKeeping)},c=(e,t,i,n)=>{e.addEventListener("input",(e=>{let a=Number(e.target.value);a=a<10?`0${a}`:`${a}`,"hours"===i&&12===n?Number(e.target.value)<n&&Number(e.target.value)>0?(t.value=a,this.selectedKeeping="AM",s.innerText=this.selectedKeeping,l(e,a,i)):(0===Number(e.target.value)?(this.selectedKeeping="AM",s.innerText="AM"):(this.selectedKeeping="PM",s.innerText="PM"),t.value=this.transformTime12(e.target.value),l(e,this.transformTime12(e.target.value),i)):(t.value=a,l(e,a,i))}))},p=(e,t,i,n)=>{t.addEventListener("change",(t=>{let a=Number(t.target.value);a=a<10?`0${a}`:`${a}`,"hours"===i&&12===n?t.target.value&&Number(t.target.value)<=n&&Number(t.target.value)>0?(t.target.value=a,e.value=this.transformTime24(a,this.selectedKeeping),l(t,a,i)):t.target.value&&Number(t.target.value)<24&&(Number(t.target.value)>n||0===Number(t.target.value))?(0===Number(t.target.value)?(this.selectedKeeping="AM",s.innerText="AM"):(this.selectedKeeping="PM",s.innerText="PM"),t.target.value=this.transformTime12(t.target.value),e.value=a,l(t,this.transformTime12(t.target.value),i)):t.target.value=this.selectedHours:t.target.value&&Number(t.target.value)<=n&&Number(t.target.value)>=0?(t.target.value=a,e.value=a,l(t,a,i)):"hours"===i?t.target.value=this.selectedHours:"minutes"===i&&(t.target.value=this.selectedMinutes)}))};r(t,n),r(i,a),o(t,n),o(i,a),c(t,n,"hours",24===e?23:e),c(i,a,"minutes"),p(t,n,"hours",24===e?23:e),p(i,a,"minutes",59),s&&s.addEventListener("click",(e=>{s.innerText.includes("AM")?this.selectedKeeping="PM":this.selectedKeeping="AM",t.value=this.transformTime24(this.selectedHours,this.selectedKeeping),l(e,this.selectedHours,"hours"),s.innerText=this.selectedKeeping}))}createTime(){const e=this.HTMLElement.querySelector(".vanilla-calendar-time");if(!e)return;const t=!0===this.settings.selection.time?12:this.settings.selection.time,i="range"===this.settings.selection.controlTime;e.innerHTML=`\n    <div class="vanilla-calendar-time__content">\n      <label class="vanilla-calendar-time__hours">\n        <input type="text"\n          name="hours"\n          maxlength="2"\n          value="${this.selectedHours}"\n          ${i?"disabled":""}>\n      </label>\n      <label class="vanilla-calendar-time__minutes">\n        <input type="text"\n          name="minutes"\n          maxlength="2"\n          value="${this.selectedMinutes}"\n          ${i?"disabled":""}>\n      </label>\n      ${12===t?`\n      <button type="button"\n        class="vanilla-calendar-time__keeping"\n        ${i?"disabled":""}>${this.selectedKeeping}</button>\n      `:""}\n    </div>\n    <div class="vanilla-calendar-time__ranges">\n      <label class="vanilla-calendar-time__range">\n        <input type="range"\n          name="hours"\n          min="0"\n          max="23"\n          step="${this.settings.selection.stepHours}"\n          value="${this.selectedKeeping?this.transformTime24(this.selectedHours,this.selectedKeeping):this.selectedHours}">\n      </label>\n      <label class="vanilla-calendar-time__range">\n        <input type="range"\n          name="minutes"\n          min="0"\n          max="59"\n          step="${this.settings.selection.stepMinutes}"\n          value="${this.selectedMinutes}">\n      </label>\n    </div>`,this.controlTime(t)}getLocale(){if("define"!==this.settings.lang){this.locale.weekday=[];for(let e=0;e<7;
1e++){let t=new Date(0,0,e).toLocaleString(this.settings.lang,{weekday:"short"});t=`${t.charAt(0).toUpperCase()}${t.substring(1,t.length)}`,t=t.replace(/\./,""),this.locale.weekday.push(t)}this.locale.months=[];for(let e=0;e<12;e++){let t=new Date(0,e).toLocaleString(this.settings.lang,{month:"long"});t=`${t.charAt(0).toUpperCase()}${t.substring(1,t.length)}`,t=t.replace(/\./,""),this.locale.months.push(t)}}}createInfo(){if(this.info.top){this.HTMLElement.querySelector(".vanilla-calendar-info.--top").innerHTML=this.info.top}if(this.info.bottom){this.HTMLElement.querySelector(".vanilla-calendar-info.--bottom").innerHTML=this.info.bottom}}update(){this.setVariablesDates(),this.getLocale(),this.createDOM(),this.createHeader(),this.controlArrows(),this.createTime(),this.createInfo(),"default"===this.currentType?(this.createWeek(),this.createDays()):"month"===this.currentType?this.createMonths():"year"===this.currentType&&this.createYears()}click(){this.HTMLElement.addEventListener("click",(e=>{const t=e.target.closest(".vanilla-calendar-arrow"),i=e.target.closest(".vanilla-calendar-arrow_prev"),n=e.target.closest(".vanilla-calendar-arrow_next"),a=e.target.closest(".vanilla-calendar-day__btn"),s=e.target.closest(".vanilla-calendar-day__btn_prev"),r=e.target.closest(".vanilla-calendar-day__btn_next"),o=e.target.closest(".vanilla-calendar-year"),l=e.target.closest(".vanilla-calendar-years__year"),c=e.target.closest(".vanilla-calendar-month"),p=e.target.closest(".vanilla-calendar-months__month"),d=()=>{a.classList.contains("vanilla-calendar-day__btn_selected")?this.selectedDates.splice(this.selectedDates.indexOf(a.dataset.calendarDay),1):(this.selectedDates=[],this.selectedDates.push(a.dataset.calendarDay))},u=()=>{a.classList.contains("vanilla-calendar-day__btn_selected")?this.selectedDates.splice(this.selectedDates.indexOf(a.dataset.calendarDay),1):this.selectedDates.push(a.dataset.calendarDay)},h=()=>{if(this.selectedDates.length>1&&(this.selectedDates=[]),this.selectedDates.push(a.dataset.calendarDay),!this.selectedDates[1])return;const e=new Date(Date.UTC(new Date(this.selectedDates[0]).getUTCFullYear(),new Date(this.selectedDates[0]).getUTCMonth(),new Date(this.selectedDates[0]).getUTCDate())),t=new Date(Date.UTC(new Date(this.selectedDates[1]).getUTCFullYear(),new Date(this.selectedDates[1]).getUTCMonth(),new Date(this.selectedDates[1]).getUTCDate())),i=e=>{const t=this.generateDate(e);this.settings.range.disabled&&this.settings.range.disabled.includes(t)||this.selectedDates.push(t)};if(this.selectedDates=[],t>e)for(let n=e;n<=t;n.setUTCDate(n.getUTCDate()+1))i(n);else for(let n=e;n>=t;n.setUTCDate(n.getUTCDate()-1))i(n)};(()=>{t&&"year"!==this.currentType&&"month"!==this.currentType&&this.changeMonth(e.target.dataset.calendarArrow)})(),(()=>{if(["single","multiple","multiple-ranged"].includes(this.settings.selection.day)&&a){switch(this.settings.selection.day){case"single":d();break;case"multiple":u();break;case"multiple-ranged":h()}this.actions.clickDay&&this.actions.clickDay(e,this.selectedDates),this.settings.selected.dates=this.selectedDates,s?this.changeMonth("prev"):r?this.changeMonth("next"):this.createDays()}})(),(()=>{this.settings.selection.year&&(t&&"year"===this.currentType?(n?this.viewYear+=15:i&&(this.viewYear-=15),this.createYears()):"year"!==this.currentType&&o?this.createYears():"year"===this.currentType&&o?(this.currentType=this.type,this.update()):l&&(this.selectedYear=Number(l.dataset.calendarYear),this.currentType=this.type,this.selectedMonth<this.dateMin.getUTCMonth()&&this.selectedYear===this.dateMin.getUTCFullYear()&&(this.settings.selected.month=this.dateMin.getUTCMonth()),this.selectedMonth>this.dateMax.getUTCMonth()&&this.selectedYear===this.dateMax.getUTCFullYear()&&(this.settings.selected.month=this.dateMax.getUTCMonth()),this.actions.clickYear&&this.actions.clickYear(e,this.selectedYear),this.settings.selected.year=this.selectedYear,this.update()))})(),(()=>{this.settings.selection.month&&("month"!==this.currentType&&c?this.createMonths():"month"===this.currentType&&c?(this.currentType=this.t
1ype,this.update()):p&&(this.selectedMonth=Number(p.dataset.calendarMonth),this.currentType=this.type,this.actions.clickMonth&&this.actions.clickMonth(e,this.selectedMonth),this.settings.selected.month=this.selectedMonth,this.update()))})()}))}init(){this.HTMLElement&&(this.update(),this.click())}}function FormValidation(e){const{form:t,formSelector:i,afterValidate:n,afterValidateForm:a}=e||{};this.debounce=(e,t=500)=>{let i;return(...n)=>{clearTimeout(i),i=setTimeout((()=>e(...n)),t)}},this.fetchData=async e=>{try{const t=await fetch(`${app_shop?.urls?.graphql||"/graphql/v1/"}?query=validateClientData`,{method:"POST",body:JSON.stringify({query:`query {${e}}`})});return await t.json()}catch(e){return console.error("AJAX FormValidation() validateClientData Error:",e),!1}},this.vars={passwordLengthMin:6,passwordLengthMax:30,changedInputs:[]},this.callbacks={validate:n,validateAll:a},this.errorCode={birth_date:app_shop?.txt?.errorCode?.birth_date||"Wpisz poprawną datę urodzenia w formacie RRRR-MM-DD",illegal_characters_client_city:app_shop?.txt?.errorCode?.illegal_characters_client_city||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_firm:app_shop?.txt?.errorCode?.illegal_characters_client_firm||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_firstname:app_shop?.txt?.errorCode?.illegal_characters_client_firstname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_lastname:app_shop?.txt?.errorCode?.illegal_characters_client_lastname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_nip:app_shop?.txt?.errorCode?.illegal_characters_client_nip||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_phone:app_shop?.txt?.errorCode?.illegal_characters_client_phone||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_phone2:app_shop?.txt?.errorCode?.illegal_characters_client_phone2||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_client_street:app_shop?.txt?.errorCode?.illegal_characters_client_street||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_additional:app_shop?.txt?.errorCode?.illegal_characters_delivery_additional||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_city:app_shop?.txt?.errorCode?.illegal_characters_delivery_city||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_firstname:app_shop?.txt?.errorCode?.illegal_characters_delivery_firstname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_lastname:app_shop?.txt?.errorCode?.illegal_characters_delivery_lastname||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_phone:app_shop?.txt?.errorCode?.illegal_characters_delivery_phone||"Jeden z użytych znaków jest niedozwolony.",illegal_characters_delivery_street:app_shop?.txt?.errorCode?.illegal_characters_delivery_street||"Jeden z użytych znaków jest niedozwolony.",incorect_delivery_region:app_shop?.txt?.errorCode?.incorect_delivery_region||"Wybierz kraj odbiorcy przesyłki.",incorect_delivery_zipcode:app_shop?.txt?.errorCode?.incorect_delivery_zipcode||"Wpisz kod pocztowy odbiorcy przesyłki.",incorect_email:app_shop?.txt?.errorCode?.incorect_email||"Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected]",incorect_invoice_phone:app_shop?.txt?.errorCode?.incorect_invoice_phone||"Wpisz telefon klienta.",incorect_invoice_zipcode:app_shop?.txt?.errorCode?.incorect_invoice_zipcode||"Wpisz kod pocztowy klienta.",incorect_login:app_shop?.txt?.errorCode?.incorect_login||"Błędnie wpisany login. Login musi mieć minimum 3, a maksimum 40 znaków. Możesz użyć liter i cyfr oraz symboli @ . - _.",incorect_nip:app_shop?.txt?.errorCode?.incorect_nip||"Niepoprawny NIP dla wybranego kraju.",incorect_phone:app_shop?.txt?.errorCode?.incorect_phone||"Wpisz swój telefon.",incorect_shops:app_shop?.txt?.errorCode?.incorect_shops||"Wybierz sklep z listy.",incorect_zipcode:app_shop?.txt?.errorCode?.incorect_zipcode||"Błędnie wpisany kod pocztowy.",incorrect_region:app_shop?.txt?.errorCode?.incorrect_region||"Błędnie wybrany region.",invalid_format:app_shop?.txt?.errorCode?.invali
1d_format||"Nieprawidłowy format. Pole musi zawierać przynajmniej jedną literę.",login_equals_password:app_shop?.txt?.errorCode?.login_equals_password||"Hasło jest takie samo jak login. Wpisz inne hasło.",login_taken:app_shop?.txt?.errorCode?.login_taken||"Podany login jest już zajęty",login_taken_login_propose:app_shop?.txt?.errorCode?.login_taken_login_propose||"Podany login jest już zajęty.<br/><br/>Proponowany login: ",no_city:app_shop?.txt?.errorCode?.no_city||"Wpisz w to pole nazwę miasta.",no_delivery_city:app_shop?.txt?.errorCode?.no_delivery_city||"Wpisz miejscowość odbiorcy przesyłki.",no_delivery_firstname:app_shop?.txt?.errorCode?.no_delivery_firstname||"Wpisz imię odbiorcy przesyłki.",no_delivery_lastname:app_shop?.txt?.errorCode?.no_delivery_lastname||"Wpisz nazwisko odbiorcy przesyłki.",no_delivery_street:app_shop?.txt?.errorCode?.no_delivery_street||"Wpisz ulicę i numer domu odbiorcy przesyłki.",no_firmname:app_shop?.txt?.errorCode?.no_firmname||"Błędnie wpisana nazwa firmy.",no_firstname:app_shop?.txt?.errorCode?.no_firstname||"Wpisz w to pole swoje imię.",no_invoice_city:app_shop?.txt?.errorCode?.no_invoice_city||"Wpisz miejscowość klienta.",no_invoice_firmname:app_shop?.txt?.errorCode?.no_invoice_firmname||"Wpisz nazwę firmy klienta.",no_invoice_firstname:app_shop?.txt?.errorCode?.no_invoice_firstname||"Wpisz imię klienta.",no_invoice_lastname:app_shop?.txt?.errorCode?.no_invoice_lastname||"Wpisz nazwisko klienta.",no_invoice_street:app_shop?.txt?.errorCode?.no_invoice_street||"Wpisz ulicę i numer domu klienta.",no_invoice_street_number:app_shop?.txt?.errorCode?.no_invoice_street_number||"Wpisz ulicę i numer domu klienta.",no_login:app_shop?.txt?.errorCode?.no_login||"Wpisz w to pole swój login.",no_name:app_shop?.txt?.errorCode?.no_name||"Wpisz w to pole swoje nazwisko.",no_password:app_shop?.txt?.errorCode?.no_password||"Wpisz w to pole swoje hasło.",no_street:app_shop?.txt?.errorCode?.no_street||"Wpisz nazwę ulicy lub miejscowości.",no_street_number:app_shop?.txt?.errorCode?.no_street_number||"Podaj nr domu.",no_street_number_uk:app_shop?.txt?.errorCode?.no_street_number_uk||"Brakuje numeru domu.",not_equal_passwords:app_shop?.txt?.errorCode?.not_equal_passwords||"Wpisane hasła nie są takie same. Wpisz ponownie hasło i potwierdzenie.",password_to_long:app_shop?.txt?.errorCode?.password_to_long||"Za długie hasło. Wpisz krótsze hasło (maksimum",password_to_short:app_shop?.txt?.errorCode?.password_to_short||"Zbyt krótkie hasło. Wpisz dłuższe hasło (minimum",used_login:app_shop?.txt?.errorCode?.used_login||"Podany login jest już zajęty",incorrect_iban:app_shop?.txt?.errorCode?.incorrect_iban||app_shop.txt.txt_validation5||"Format numeru konta bankowego jest niepoprawny"},this.txt={mandatoryField:app_shop?.txt?.formValidation?.mandatoryField||"Proszę wypełnić to pole.",zipcodeFormat:app_shop?.txt?.formValidation?.zipcodeFormat||"Poprawne formaty kodu pocztowego dla wybranego kraju to [X - cyfra; Y - litera]:",characters:app_shop?.txt?.formValidation?.characters||"znaków).",noOptionSelected:app_shop?.txt?.formValidation?.noOptionSelected||"Proszę wybrać opcję.",minimalCharacters:app_shop?.txt?.formValidation?.minimalCharacters||app_shop.txt.txt_validation1||"Minimalna liczba znaków dla tego pola to ",maximumCharacters:app_shop?.txt?.formValidation?.maximumCharacters||app_shop.txt.txt_validation2||"Maksymalna liczba znaków dla tego pola to "},this.queries={VALIDATE_FIRSTNAME_QUERY:e=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        firstname: "${e?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_LASTNAME_QUERY:e=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        lastname: "${e?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_ADDITIONAL_QUERY:e=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        companyName: "${e?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_NIP_QUERY:(e,t)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        country: ${t}\n      }\n      taxNumber: "${e?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_STREET_QUERY:(e,t)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        street: "${e?.replace?.(/"/g,'\\"')}"\n        country: ${t}\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_ZIPCODE_QUERY:(e,t)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        zipcode: "${e?.replace?.(/"/g,'\\"')}"\n        country: ${t}\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_CITY_QUERY:e=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        city: "${e?.replace?.(/"/g,'\\"')}"\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_PHONE_QUERY:(e,t)=>`validateClientData(ClientDataInput: { clientData: {\n      clientBillingData: {\n        phone: "${e?.replace?.(/"/g,'\\"')}"\n        country: ${t}\n      }\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_EMAIL_QUERY:e=>`validateClientData(ClientDataInput: {clientData: {\n      email: "${e?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n      clientExists\n    }`,VALIDATE_BIRTHDATE_QUERY:e=>`validateClientData(ClientDataInput: {clientData: {\n      birthDate: "${e?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_LOGIN_QUERY:e=>`validateClientData(ClientDataInput: {loginAndPassword: {\n      login: "${e?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_PASSWORD_QUERY:e=>`validateClientData(ClientDataInput: {loginAndPassword: {\n      password: "${e?.replace?.(/"/g,'\\"')}"\n    }}) {\n      messages {\n        code\n        message\n      }\n    }`,VALIDATE_INPUTS_QUERY:e=>JSON.stringify({query:`query {\n        validateClientData(${e}) {\n          messages {\n            code\n            message\n          }\n        }\n      }`})},this.events={onInput:e=>{const{target:t}=e;this.vars.changedInputs.push(t),this.debounces.validateInput(t)},onChange:e=>{const{target:t}=e;this.validateCheckbox(t)},onSubmit:async e=>{if("true"===this.form.dataset.handled)return void delete this.form.dataset.handled;e.preventDefault();await this.validateForm()?(this.form.classList.remove("--fail-validation"),this.form.dataset.handled="true",this.form.submit()):this.form.classList.add("--fail-validation")}},this.concatErrorMessages=e=>{const{code:t}=e[0];switch(t){case"incorect_zipcode":return`${this.errorCode[t]} ${this.txt.zipcodeFormat} ${e[1]?.message}`;case"password_to_short":return`${this.errorCode[t]} ${this.vars.passwordLengthMin} ${this.txt.characters}`;case"password_to_long":return`${this.errorCode[t]} ${this.vars.passwordLengthMax} ${this.txt.characters}`;default:return this.errorCode[t]}},this.validateFirstnameGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,s=this.queries.VALIDATE_FIRSTNAME_QUERY(a);if(i)return this.queries.VALIDATE_FIRSTNAME_QUERY(a);const r=n||await this.fetchData(s),{messages:o}=r?.data?.validateClientData||r;return o?.length?this.concatErrorMessages(o):""},this.validateLastnameGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,s=this.queries.VALIDATE_LASTNAME_QUERY(a);if(i)return this.queries.VALIDATE_LASTNAME_QUERY(a);const r=n||await this.fetchData(s),{messages:o}=r?.data?.validateClientData||r;return o?.length?this.concatErrorMessages(o):""},this.validateAdditionalGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,s=this.queries.VALIDATE_ADDITIONAL_QUERY(a);if(i)return s;const r=n||await this.fetchData(s),{messages:o}=r?.data?.validateClientData||r;return o?.length?this.concatErrorMessages(o):""},this.validateNipGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,{region:s}=t.dataset,r=this.queries.VALIDATE_NIP_QUERY(a,s);if(i)return r;const o=n||await this.fetchData(r),{messages:l}=o?.data?.validateClientData||o;return l?.length?this.concatErrorMessages(l):""},this.validateStreetGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,{concatFrom:s,region:r}=t.dataset,o=this.form?.querySelector(s),l=`${a} ${o?.value||""}`,c=this.queries.VALIDATE_STREET_QUERY(l,r);if(i)return c;const p=n||await this.fetchData(c),{messages:d}=p?.data?.validateClientData||p;return d?.length?o&&"no_street_number"===d[0].code?(this.setValidityState(o,this.concatErrorMessages(d)),""):this.concatErrorMessages(d):(o&&this.setValidityState(o,""),"")},this.validateZipcodeGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,{region:s}=t.dataset,r=this.queries.VALIDATE_ZIPCODE_QUERY(a,s);if(i)return r;const o=n||await this.fetchData(r),{messages:l}=o?.data?.validateClientData||o;return l?.length?this.concatErrorMessages(l):""},this.validateCityGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,s=this.queries.VALIDATE_CITY_QUERY(a);if(i)return s;const r=n||await this.fetchData(s),{messages:o}=r?.data?.validateClientData||r;return o?.length?this.concatErrorMessages(o):""},this.validatePhone=e=>{const{input:t,getQuery:i}=e;if(i)return"";const{value:n}=t;return n.length>=9?"":this.concatErrorMessages([{code:"incorect_phone"}])},this.validatePhoneGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,{concatFrom:s,region:r}=t.dataset,o=this.form?.querySelector(s),l=o?.value||"",c=l?`${l}${a}`:a;if(!r)return this.validatePhone(e);const p=this.queries.VALIDATE_PHONE_QUERY(c,r);if(i)return p;const d=n||await this.fetchData(p),{messages:u}=d?.data?.validateClientData||d;return u?.length?this.concatErrorMessages(u):""},this.validateEmailGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,s=this.queries.VALIDATE_EMAIL_QUERY(a);if(i)return s;const r=n||await this.fetchData(s),{messages:o}=r?.data?.validateClientData||r;return o?.length?this.concatErrorMessages(o):""},this.validateBirthdateGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,s=this.queries.VALIDATE_BIRTHDATE_QUERY(a);if(i)return s;const r=n||await this.fetchData(s),{messages:o}=r?.data?.validateClientData||r;return o?.length?this.concatErrorMessages(o):""},this.validateLoginGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,s=this.queries.VALIDATE_LOGIN_QUERY(a);if(i)return s;const r=n||await this.fetchData(s),{messages:o}=r?.data?.validateClientData||r;return o?.length?this.concatErrorMessages(o):""},this.validatePasswordGQL=async e=>{const{input:t,getQuery:i,response:n}=e,{value:a}=t,s=this.queries.VALIDATE_PASSWORD_QUERY(a);if(i)return s;const r=n||await this.fetchData(s),{messages:o}=r?.data?.validateClientData||r;return o?.length?this.concatErrorMessages(o):""},this.validateIBANGQL=async e=>{const{input:t,getQuery:i}=e,{value:n}=t;if(i)return"";const a=await fetch(`/ajax/payments.php?action=verify_iban&bankAccount=${n}`),s=await a.json(),{errno:r}=s||{};return r?this.concatErrorMessages([{code:"incorrect_iban"}]):""},this.getInputQueries=async e=>(await Promise.all(e.map((async e=>{const t=await this.validateGraphQL({input:e,getQuery:!0});return`${e.id}:${t}`})))).join(""),this.validateInputsGQL=async e=>{const t=await this.getInputQueries(e),i=await this.fetchData(t);
1i?.data&&Object.keys(i.data).forEach((async t=>{const[n]=e.filter((e=>e.id===t));if(!n)return;const a=await this.validateGraphQL({input:n,response:i.data[t]});this.setValidityState(n,a)}))},this.clientExists=async e=>{const t=this.queries.VALIDATE_EMAIL_QUERY(e),i=await this.fetchData(t),{clientExists:n}=i?.data?.validateClientData||i;return n},this.validateMinLength=e=>{const t=e.getAttribute("minlength");return t?+t<=e.value.length?"":`${this.txt.minimalCharacters}${t}`:""},this.validateMaxLength=e=>{const t=e.getAttribute("maxlength");return t?+t>=e.value.length?"":`${this.txt.maximumCharacters}${t}`:""},this.validateInputs=async e=>{e.forEach((e=>{const t=this.validateNotEmpty(e)||this.validateMinLength(e)||this.validateMaxLength(e);""!==t&&this.setValidityState(e,t)}));const t=[...e].filter((e=>e.closest(".f-feedback:not(.--error)")));if(!t.length)return;[...t].filter((e=>!e.hasAttribute("data-graphql"))).forEach((e=>{this.setValidityState(e,"")}));const i=[...t].filter((e=>e.hasAttribute("data-graphql")));i.length&&await this.validateInputsGQL(i)},this.isPhoneNumber=e=>new RegExp("^[0-9*#+() ]+$").test(e),this.getGQLType=e=>{const{graphql:t}=e.dataset,i=t.split(" ");if(2===i.filter((e=>"phone"===e||"email"===e)).length){return this.isPhoneNumber(e.value)?"phone":"email"}return i[0]},this.validateGraphQL=async e=>{const{input:t,getQuery:i,response:n}=e,{graphql:a}=t.dataset;if(!a)return!1;const s=a.split(" ");switch(1===s.length?s[0]:this.getGQLType(t)){case"firstname":return await this.validateFirstnameGQL({input:t,getQuery:i,response:n});case"lastname":return await this.validateLastnameGQL({input:t,getQuery:i,response:n});case"additional":case"firm":return await this.validateAdditionalGQL({input:t,getQuery:i,response:n});case"nip":return await this.validateNipGQL({input:t,getQuery:i,response:n});case"street":return await this.validateStreetGQL({input:t,getQuery:i,response:n});case"zipcode":return await this.validateZipcodeGQL({input:t,getQuery:i,response:n});case"city":return await this.validateCityGQL({input:t,getQuery:i,response:n});case"phone":return await this.validatePhoneGQL({input:t,getQuery:i,response:n});case"email":return await this.validateEmailGQL({input:t,getQuery:i,response:n});case"birthdate":return await this.validateBirthdateGQL({input:t,getQuery:i,response:n});case"login":return await this.validateLoginGQL({input:t,getQuery:i,response:n});case"password":return await this.validatePasswordGQL({input:t,getQuery:i,response:n});case"iban":return await this.validateIBANGQL({input:t,getQuery:i,response:n});default:return console.warn(`No support for validation '${a}' in validateClientData GraphQL`),this.setValidityState(t,"")}},this.validateInput=async e=>{const t=[...new Set(this.vars.changedInputs)].filter((e=>"username"!==e.autocomplete&&"current-password"!==e.autocomplete));if(this.vars.changedInputs=[],t.length>1)return this.removeAllValidityState(),this.validateForm(),!1;const{concatTo:i}=e.dataset;if(i)return this.validateInput(this.form.querySelector(i));let n=this.validateNotEmpty(e)||this.validateMinLength(e)||this.validateMaxLength(e);if(""!==n)return this.setValidityState(e,n);return e.getAttribute("data-graphql")?(n=await this.validateGraphQL({input:e}),this.setValidityState(e,n)):this.setValidityState(e,n)},this.validateSelects=e=>{e.forEach((e=>{this.validateSelect(e)}))},this.validateSelect=e=>{if(!e)return!0;let t="";return e.closest(".--placeholder")&&e.selectedIndex<1?(t=this.txt.noOptionSelected,this.setValidityState(e,t)):this.setValidityState(e,t)},this.validateCheckboxes=e=>{e.forEach((e=>{this.validateCheckbox(e)}))},this.validateCheckbox=e=>!e||(e.checked?this.setValidityState(e,"",!0):this.setValidityState(e,"error",!0)),this.validateObjectGQL=async(e={})=>{let t="";for(const[i,n]of Object.entries(e)){const a={dataset:{}};a.value="street"===i&&e.streetNumber?`${n} ${e.streetNumber}`:n,a.dataset.region=e.region,a.dataset.graphql=i;const s=await this.validateGraphQL({input:a,getQuery:!0});s&&(t+=`${i}:${s}`)}if(""===t)return!0;const i=await this.fetchData(t);if(!i?.data)return!0;const n=[];for(const[t,a]of Object.entries(i.data)){const s={dataset:{}};s.value="street"===t&&e.streetNumber?`${a} ${e.streetNumber}`:a,s.dataset.region=e.region,s.dataset.graphql=t,n.push(await this.validateGraphQL({input:s,response:i.data[t]}))}return!n.filter((e=>""!==e)).length},this.validateObjectRequired=(e={},t=[])=>{if(!t.length)return!0;for(const[i,n]of Object.entries(e))if(t.includes(i)&&""===n)return validRequired=!1,!1;return!0},this.validateObject=async(e={},t)=>{if(!this.validateObjectRequired(e,t))return!1;return!!await this.validateObjectGQL(e,t)},this.validateForm=async e=>{const t=e||this.form,i=t.querySelectorAll('.f-control.--validate:not(:disabled):not([type="checkbox"])'),n=[...i].filter((e=>e.closest(".f-feedback:not(.--error):not(.--success)")));await this.validateInputs(n);const a=t.querySelectorAll("select.f-select.--validate:not(:disabled), div.f-select.--validate select:not(:disabled)"),s=[...a].filter((e=>e.closest(".f-feedback:not(.--error):not(.--success)")));this.validateSelects(s);const r=t.querySelectorAll('.f-control.--validate[type="checkbox"]:not(:disabled)'),o=[...r].filter((e=>e.closest(".--checkbox:not(.--error):not(.--success), .--switch:not(.--error):not(.--success)")));this.validateCheckboxes(o);const l=[...i].filter((e=>e.closest(".f-feedback.--error"))),c=[...a].filter((e=>e.closest(".f-feedback.--error"))),p=[...r].filter((e=>e.closest(".--checkbox.--error, .--switch.--error, .f-feedback.--error")));return l.length||c.length||p.length?("function"==typeof this.callbacks.validateAll&&this.callbacks.validateAll(e,!1),!1):("function"==typeof this.callbacks.validateAll&&this.callbacks.validateAll(e,!0),!0)},this.validateNotEmpty=e=>e.required||0!==e.value.length?e.value.length>0?"":this.txt.mandatoryField:"",this.createMessageElement=e=>{const t=document.createElement("div");return t.classList.add("f-message"),e.append(t),t},this.setValidityState=(e,t,i)=>{if(!(e&&e instanceof HTMLElement))return!1;const n=e.closest(".f-feedback")||e.parentNode;n.classList.remove("--success","--error");const a=!i&&(n.querySelector(".f-message")||this.createMessageElement(n));return n.classList.toggle("--empty",""===e.value),""===t?(n.classList.add("--success"),a&&(a.textContent=""),"function"==typeof this.callbacks.validate&&this.callbacks.validate(e,!0),!0):(n.classList.add("--error"),a&&(a.textContent=t),"function"==typeof this.callbacks.validate&&this.callbacks.validate(e,!1),!1)},this.getValidityState=e=>{if(!e)return"";const t=e.closest(".f-feedback")||e.parentNode;return t.classList.contains("--success")?"success":t.classList.contains("--error")?"error":""},this.removeAllValidityState=e=>{(e||this.form).querySelectorAll(".f-control.--validate").forEach((e=>{this.removeValidityState(e)}))},this.removeValidityState=e=>{const t=e.closest(".f-feedback")||e.parentNode;t.classList.remove("--success","--error");const i=t.querySelector(".f-message");i&&(i.textContent="")},this.removeEvents=()=>{this.form&&(this.form.querySelectorAll(".f-control.--validate").forEach((e=>{"checkbox"!==e.type?e.removeEventListener("input",this.events.onInput):e.removeEventListener("change",this.events.onChange)})),"FORM"===this.form.tagName&&this.form.removeEventListener("submit",this.events.onSubmit))},this.initEvents=()=>{this.form&&(this.form.querySelectorAll(".f-control.--validate").forEach((e=>{"checkbox"!==e.type?e.addEventListener("input",this.events.onInput):e.addEventListener("change",this.events.onChange)})),"FORM"===this.form.tagName&&this.form.addEventListener("submit",this.events.onSubmit))},this.init=()=>{this.form=t||document.querySelector(i)||document,this.initEvents()},this.destroy=()=>{this.removeEvents()},this.reInit=()=>{this.destroy(),this.init()},this.debounces={validateInput:this.debounce(this.validateInput)}}app_shop.fn.ajaxLoadSite=function(e){if((()=>{const e=document.getElementById("ajaxLoadSite"),t=document.getElementById("ajaxLoadSite_cover");e&&e.remove(),t&&t.remove()})(),!e)return;const t=`\n    <div id="ajaxLoadSite_cover" style="height:${document.body.scrollHeight}px;width:100%;position:absolute;
1left:0;top:0;"></div>\n    <div id="ajaxLoadSite" style="left:50%;transform:translateX(-50%);"></div>\n  `;document.body.insertAdjacentHTML("beforeend",t)},app_shop.fn.ajaxLoadSiteMessage=function(e){const t=document.getElementById("ajaxLoadSite");t&&t.append(e)},function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var i=[],n=Object.getPrototypeOf,a=i.slice,s=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},r=i.push,o=i.indexOf,l={},c=l.toString,p=l.hasOwnProperty,d=p.toString,u=d.call(Object),h={},_=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},f=function(e){return null!=e&&e===e.window},m=e.document,g={type:!0,src:!0,nonce:!0,noModule:!0};function v(e,t,i){var n,a,s=(i=i||m).createElement("script");if(s.text=e,t)for(n in g)(a=t[n]||t.getAttribute&&t.getAttribute(n))&&s.setAttribute(n,a);i.head.appendChild(s).parentNode.removeChild(s)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var y="3.5.1",x=function(e,t){return new x.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,i=b(e);return!_(e)&&!f(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}x.fn=x.prototype={jquery:y,constructor:x,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:r,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var e,t,i,n,a,s,r=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[o]||{},o++),"object"==typeof r||_(r)||(r={}),o===l&&(r=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)n=e[t],"__proto__"!==t&&r!==n&&(c&&n&&(x.isPlainObject(n)||(a=Array.isArray(n)))?(i=r[t],s=a&&!Array.isArray(i)?[]:a||x.isPlainObject(i)?i:{},a=!1,r[t]=x.extend(c,s,n)):void 0!==n&&(r[t]=n));return r},x.extend({expando:"jQuery"+(y+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==c.call(e)||(t=n(e))&&("function"!=typeof(i=p.call(t,"constructor")&&t.constructor)||d.call(i)!==u))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){v(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(k(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},makeArray:function(e,t){var i=t||[];return null!=e&&(k(Object(e))?x.merge(i,"string"==typeof e?[e]:e):r.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:o.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,a=e.length;n<i;n++)e[a++]=t[n];return e.length=a,e},grep:function(e,t,i){for(var n=[],a=0,s=e.length,r=!i;a<s;a++)!t(e[a],a)!==r&&n.push(e[a]);return n},map:function(e,t,i){var n,a,r=0,o=[];if(k(e))for(n=e.length;r<n;r++)null!=(a=t(e[r],r,i))&&o.push(a);else for(r in e)null!=(a=t(e[r],r,i))&&o.push(a);return s(o)},guid:1,support:h}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var w=function(e){var t,i,n,a,s,r,o,l,c,p,d,u,h,_,f,m,g,v,b,y="sizzle"+1*ne
vendor: 9,943 bytes, line 1
1w Date,x=e.document,k=0,w=0,$=le(),S=le(),C=le(),T=le(),I=function(e,t){return e===t&&(d=!0),0},j={}.hasOwnProperty,W=[],E=W.pop,D=W.push,B=W.push,z=W.slice,H=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",A="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",L="\\["+N+"*("+A+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+A+"))|)"+N+"*\\]",M=":("+A+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",O=new RegExp(N+"+","g"),G=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),Y=new RegExp("^"+N+"*,"+N+"*"),Z=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),q=new RegExp(N+"|>"),P=new RegExp(M),R=new RegExp("^"+A+"$"),V={ID:new RegExp("^#("+A+")"),CLASS:new RegExp("^\\.("+A+")"),TAG:new RegExp("^("+A+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,U=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=function(){u()},re=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{B.apply(W=z.call(x.childNodes),x.childNodes),W[x.childNodes.length].nodeType}catch(t){B={apply:W.length?function(e,t){D.apply(e,z.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function oe(e,t,n,a){var s,o,c,p,d,_,g,v=t&&t.ownerDocument,x=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return n;if(!a&&(u(t),t=t||h,f)){if(11!==x&&(d=K.exec(e)))if(s=d[1]){if(9===x){if(!(c=t.getElementById(s)))return n;if(c.id===s)return n.push(c),n}else if(v&&(c=v.getElementById(s))&&b(t,c)&&c.id===s)return n.push(c),n}else{if(d[2])return B.apply(n,t.getElementsByTagName(e)),n;if((s=d[3])&&i.getElementsByClassName&&t.getElementsByClassName)return B.apply(n,t.getElementsByClassName(s)),n}if(i.qsa&&!T[e+" "]&&(!m||!m.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(g=e,v=t,1===x&&(q.test(e)||Z.test(e))){for((v=ee.test(e)&&ge(t.parentNode)||t)===t&&i.scope||((p=t.getAttribute("id"))?p=p.replace(ne,ae):t.setAttribute("id",p=y)),o=(_=r(e)).length;o--;)_[o]=(p?"#"+p:":scope")+" "+be(_[o]);g=_.join(",")}try{return B.apply(n,v.querySelectorAll(g)),n}catch(t){T(e,!0)}finally{p===y&&t.removeAttribute("id")}}}return l(e.replace(G,"$1"),t,n,a)}function le(){var e=[];return function t(i,a){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=a}}function ce(e){return e[y]=!0,e}function pe(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var i=e.split("|"),a=i.length;a--;)n.attrHandle[i[a]]=t}function ue(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function _e(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(i,n){for(var a,s=e([],i.length,t),r=s.length;r--;)i[a=s[r]]&&(i[a]=!(n[a]=i[a]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=oe.support={},s=oe.isXML=function(e){var t=e.namespaceURI,i=(e.ownerDocument||e).documentElement;return!J.test(t||i&&i.nodeName||"HTML")},u=oe.setDocument=function(e){var t,a,r=e?e.ownerDocument||e:x;return r!=h&&9===r.nodeType&&r.documentElement&&(_=(h=r).documentElement,f=!s(h),x!=h&&(a=h.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",se,!1):a.attachEvent&&a.attachEvent("onunload",se)),i.scope=pe((function(e){return _.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.attributes=pe((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=pe((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=X.test(h.getElementsByClassName),i.getById=pe((function(e){return _.appendChild(e).id=y,!h.getElementsByName||!h.getElementsByName(y).length})),i.getById?(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var i,n,a,s=t.getElementById(e);if(s){if((i=s.getAttributeNode("id"))&&i.value===e)return[s];for(a=t.getElementsByName(e),n=0;s=a[n++];)if((i=s.getAttributeNode("id"))&&i.value===e)return[s]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],a=0,s=t.getElementsByTagName(e);if("*"===e){for(;i=s[a++];)1===i.nodeType&&n.push(i);return n}return s},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},g=[],m=[],(i.qsa=X.test(h.querySelectorAll))&&(pe((function(e){var t;_.appendChild(e).innerHTML="<a id='"+y+"'></a><select id='"+y+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+N+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+y+"-]").length||m.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),pe((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+N+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),_.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=X.test(v=_.matches||_.webkitMatchesSelector||_.mozMatchesSelector||_.oMatchesSelector||_.msMatchesSelector))&&pe((function(e){i.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),g.push("!=",M)})),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=X.test(_.compareDocumentPosition),b=t||X.test(_.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return d=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e==h||e.ownerDocument==x&&b(x,e)?-1:t==h||t.ownerDocument==x&&b(x,t)?1:p?H(p,e)-H(p,t):0:4&n?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,n=0,a=e.parentNode,s=t.parentNode,r=[e],o=[t];if(!a||!s)return e==h?-1:t==h?1:a?-1:s?1:p?H(p,e)-H(p,t):0;if(a===s)return ue(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)o.unshift(i);for(;r[n]===o[n];)n++;return n?ue(r[n],o[n]):r[n]==x?-1:o[n]==x?1:0}),h},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(u(e),i.matchesSelector&&f&&!T[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var n=v.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){T(t,!0)}return 0<oe(t,h,null,[e]).length},oe.contains=function(e,t){return(e.ownerDocument||e)!=h&&u(e),b(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=h&&u(e);var a=n.attrHandle[t.toLowerCase()],s=a&&j.call(n.attrHandle,t.toLowerCase())?a(e,t,!f):void 0;return void 0!==s?s:i.attributes||!f?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},oe.escape=function(e){return(e+"").replace(ne,ae)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,n=[],a=0,s=0;if(d=!i.detectDuplicates,p=!i.sortStable&&e.slice(0),e.sort(I),d){for(;t=e[s++];)t===e[s]&&(a=n.push(s));for(;a--;)e.splice(n[a],1)}return p=null,e},a=oe.getText=function(e){var t,i="",n=0,s=e.nodeType;
vendor: 4,336 bytes, line 1
1if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=a(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=a(t);return i},(n=oe.selectors={cacheLength:50,createPseudo:ce,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&P.test(i)&&(t=r(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&$(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var a=oe.attr(n,e);return null==a?"!="===t:!t||(a+="","="===t?a===i:"!="===t?a!==i:"^="===t?i&&0===a.indexOf(i):"*="===t?i&&-1<a.indexOf(i):"$="===t?i&&a.slice(-i.length)===i:"~="===t?-1<(" "+a.replace(O," ")+" ").indexOf(i):"|="===t&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,a){var s="nth"!==e.slice(0,3),r="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===a?function(e){return!!e.parentNode}:function(t,i,l){var c,p,d,u,h,_,f=s!==r?"nextSibling":"previousSibling",m=t.parentNode,g=o&&t.nodeName.toLowerCase(),v=!l&&!o,b=!1;if(m){if(s){for(;f;){for(u=t;u=u[f];)if(o?u.nodeName.toLowerCase()===g:1===u.nodeType)return!1;_=f="only"===e&&!_&&"nextSibling"}return!0}if(_=[r?m.firstChild:m.lastChild],r&&v){for(b=(h=(c=(p=(d=(u=m)[y]||(u[y]={}))[u.uniqueID]||(d[u.uniqueID]={}))[e]||[])[0]===k&&c[1])&&c[2],u=h&&m.childNodes[h];u=++h&&u&&u[f]||(b=h=0)||_.pop();)if(1===u.nodeType&&++b&&u===t){p[e]=[k,h,b];break}}else if(v&&(b=h=(c=(p=(d=(u=t)[y]||(u[y]={}))[u.uniqueID]||(d[u.uniqueID]={}))[e]||[])[0]===k&&c[1]),!1===b)for(;(u=++h&&u&&u[f]||(b=h=0)||_.pop())&&((o?u.nodeName.toLowerCase()!==g:1!==u.nodeType)||!++b||(v&&((p=(d=u[y]||(u[y]={}))[u.uniqueID]||(d[u.uniqueID]={}))[e]=[k,b]),u!==t)););return(b-=a)===n||b%n==0&&0<=b/n}}},PSEUDO:function(e,t){var i,a=n.pseudos[e]||n.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return a[y]?a(t):1<a.length?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,i){for(var n,s=a(e,t),r=s.length;r--;)e[n=H(e,s[r])]=!(i[n]=s[r])})):function(e){return a(e,0,i)}):a}},pseudos:{not:ce((function(e){var t=[],i=[],n=o(e.replace(G,"$1"));return n[y]?ce((function(e,t,i,a){for(var s,r=n(e,null,a,[]),o=e.length;o--;)(s=r[o])&&(e[o]=!(t[o]=s))})):function(e,a,s){return t[0]=e,n(t,null,s,i),t[0]=null,!i.pop()}})),has:ce((function(e){return function(t){return 0<oe(e,t).length}})),contains:ce((function(e){return e=e.replace(te,ie),function(t){return-1<(t.textContent||a(t)).indexOf(e)}})),lang:ce((function(e){return R.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===_},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)}
vendor: 6,001 bytes, line 1
1,input:function(e){return U.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,i){return[i<0?i+t:i]})),even:me((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:me((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:me((function(e,t,i){for(var n=i<0?i+t:t<i?t:i;0<=--n;)e.push(n);return e})),gt:me((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=_e(t);function ve(){}function be(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function ye(e,t,i){var n=t.dir,a=t.next,s=a||n,r=i&&"parentNode"===s,o=w++;return t.first?function(t,i,a){for(;t=t[n];)if(1===t.nodeType||r)return e(t,i,a);return!1}:function(t,i,l){var c,p,d,u=[k,o];if(l){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||r)if(p=(d=t[y]||(t[y]={}))[t.uniqueID]||(d[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[n]||t;else{if((c=p[s])&&c[0]===k&&c[1]===o)return u[2]=c[2];if((p[s]=u)[2]=e(t,i,l))return!0}return!1}}function xe(e){return 1<e.length?function(t,i,n){for(var a=e.length;a--;)if(!e[a](t,i,n))return!1;return!0}:e[0]}function ke(e,t,i,n,a){for(var s,r=[],o=0,l=e.length,c=null!=t;o<l;o++)(s=e[o])&&(i&&!i(s,n,a)||(r.push(s),c&&t.push(o)));return r}function we(e,t,i,n,a,s){return n&&!n[y]&&(n=we(n)),a&&!a[y]&&(a=we(a,s)),ce((function(s,r,o,l){var c,p,d,u=[],h=[],_=r.length,f=s||function(e,t,i){for(var n=0,a=t.length;n<a;n++)oe(e,t[n],i);return i}(t||"*",o.nodeType?[o]:o,[]),m=!e||!s&&t?f:ke(f,u,e,o,l),g=i?a||(s?e:_||n)?[]:r:m;if(i&&i(m,g,o,l),n)for(c=ke(g,h),n(c,[],o,l),p=c.length;p--;)(d=c[p])&&(g[h[p]]=!(m[h[p]]=d));if(s){if(a||e){if(a){for(c=[],p=g.length;p--;)(d=g[p])&&c.push(m[p]=d);a(null,g=[],c,l)}for(p=g.length;p--;)(d=g[p])&&-1<(c=a?H(s,d):u[p])&&(s[c]=!(r[c]=d))}}else g=ke(g===r?g.splice(_,g.length):g),a?a(null,r,g,l):B.apply(r,g)}))}function $e(e){for(var t,i,a,s=e.length,r=n.relative[e[0].type],o=r||n.relative[" "],l=r?1:0,p=ye((function(e){return e===t}),o,!0),d=ye((function(e){return-1<H(t,e)}),o,!0),u=[function(e,i,n){var a=!r&&(n||i!==c)||((t=i).nodeType?p(e,i,n):d(e,i,n));return t=null,a}];l<s;l++)if(i=n.relative[e[l].type])u=[ye(xe(u),i)];else{if((i=n.filter[e[l].type].apply(null,e[l].matches))[y]){for(a=++l;a<s&&!n.relative[e[a].type];a++);return we(1<l&&xe(u),1<l&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(G,"$1"),i,l<a&&$e(e.slice(l,a)),a<s&&$e(e=e.slice(a)),a<s&&be(e))}u.push(i)}return xe(u)}return ve.prototype=n.filters=n.pseudos,n.setFilters=new ve,r=oe.tokenize=function(e,t){var i,a,s,r,o,l,c,p=S[e+" "];if(p)return t?0:p.slice(0);for(o=e,l=[],c=n.preFilter;o;){for(r in i&&!(a=Y.exec(o))||(a&&(o=o.slice(a[0].length)||o),l.push(s=[])),i=!1,(a=Z.exec(o))&&(i=a.shift(),s.push({value:i,type:a[0].replace(G," ")}),o=o.slice(i.length)),n.filter)!(a=V[r].exec(o))||c[r]&&!(a=c[r](a))||(i=a.shift(),s.push({value:i,type:r,matches:a}),o=o.slice(i.length));if(!i)break}return t?o.length:o?oe.error(e):S(e,l).slice(0)},o=oe.compile=function(e,t){var i,a,s,o,l,p,d=[],_=[],m=C[e+" "];if(!m){for(t||(t=r(e)),i=t.length;i--;)(m=$e(t[i]))[y]?d.push(m):_.push(m);(m=C(e,(a=_,o=0<(s=d).length,l=0<a.length,p=function(e,t,i,r,p){var d,_,m,g=0,v="0",b=e&&[],y=[],x=c,w=e||l&&n.find.TAG("*",p),$=k+=null==x?1:Math.random()||.1,S=w.length;for(p&&(c=t==h||t||p);v!==S&&null!=(d=w[v]);v++){if(l&&d){for(_=0,t||d.ownerDocument==h||(u(d),i=!f);m=a[_++];)if(m(d,t||h,i)){r.push(d);break}p&&(k=$)}o&&((d=!m&&d)&&g--,e&&b.push(d))}if(g+=v,o&&v!==g){for(_=0;m=s[_++];)m(b,y,t,i);if(e){if(0<g)for(;v--;)b[v]||y[v]||(y[v]=E.call(r));y=ke(y)}B.apply(r,y),p&&!e&&0<y.length&&1<g+s.length&&oe.uniqueSort(r)}return p&&(k=$,c=x),b},o?ce(p):p))).selector=e}return m},l=oe.select=function(e,t,i,a){var s,l,c,p,d,u="function"==typeof e&&e,h=!a&&r(e=u.selector||e);if(i=i||[],1===h.length){if(2<(l=h[0]=h[0].slice(0)).length&&"ID"===(c=l[0]).type&&9===t.nodeType&&f&&n.relative[l[1].type]){if(!(t=(n.find.ID(c.matches[0].replace(te,ie),t)||[])[0]))return i;u&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(s=V.needsContext.test(e)?0:l.length;s--&&(c=l[s],!n.relative[p=c.type]);)if((d=n.find[p])&&(a=d(c.matches[0].replace(te,ie),ee.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(s,1),!(e=a.length&&be(l)))return B.apply(i,a),i;break}}return(u||o(e,h))(a,t,!f,i,!t||ee.test(e)&&ge(t.parentNode)||t),i},i.sortStable=y.split("").sort(I).join("")===y,i.detectDuplicates=!!d,u(),i.sortDetached=pe((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),pe((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&pe((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),pe((function(e){return null==e.getAttribute("disabled")}))||de(F,(function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),oe}(e);x.find=w,x.expr=w.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=w.uniqueSort,x.text=w.getText,x.isXMLDoc=w.isXML,x.contains=w.contains,x.escapeSelector=w.escape;var $=function(e,t,i){for(var n=[],a=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&x(e).is(i))break;n.push(e)}return n},S=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},C=x.expr.match.needsContext;
vendor: 5,768 bytes, line 1
1function T(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var I=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,i){return _(t)?x.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?x.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?x.grep(e,(function(e){return-1<o.call(t,e)!==i})):x.filter(t,e,i)}x.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?x.find.matchesSelector(n,e)?[n]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,i,n=this.length,a=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<n;t++)if(x.contains(a[t],this))return!0})));for(i=this.pushStack([]),t=0;t<n;t++)x.find(e,a[t],i);return 1<n?x.uniqueSort(i):i},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&C.test(e)?x(e):e||[],!1).length}});var W,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,i){var n,a;if(!e)return this;if(i=i||W,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:E.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),I.test(n[1])&&x.isPlainObject(t))for(n in t)_(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(a=m.getElementById(n[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):_(e)?void 0!==i.ready?i.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,W=x(m);var D=/^(?:parents|prev(?:Until|All))/,B={children:!0,contents:!0,next:!0,prev:!0};function z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var i,n=0,a=this.length,s=[],r="string"!=typeof e&&x(e);if(!C.test(e))for(;n<a;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&x.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(1<s.length?x.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?o.call(x(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return $(e,"parentNode")},parentsUntil:function(e,t,i){return $(e,"parentNode",i)},next:function(e){return z(e,"nextSibling")},prev:function(e){return z(e,"previousSibling")},nextAll:function(e){return $(e,"nextSibling")},prevAll:function(e){return $(e,"previousSibling")},nextUntil:function(e,t,i){return $(e,"nextSibling",i)},prevUntil:function(e,t,i){return $(e,"previousSibling",i)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return null!=e.contentDocument&&n(e.contentDocument)?e.contentDocument:(T(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(i,n){var a=x.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(a=x.filter(n,a)),1<this.length&&(B[e]||x.uniqueSort(a),D.test(e)&&a.reverse()),this.pushStack(a)}}));var H=/[^\x20\t\r\n\f]+/g;function F(e){return e}function N(e){throw e}function A(e,t,i,n){var a;try{e&&_(a=e.promise)?a.call(e).done(t).fail(i):e&&_(a=e.then)?a.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}x.Callbacks=function(e){var t,i;e="string"==typeof e?(t=e,i={},x.each(t.match(H)||[],(function(e,t){i[t]=!0})),i):x.extend({},e);var n,a,s,r,o=[],l=[],c=-1,p=function(){for(r=r||e.once,s=n=!0;l.length;c=-1)for(a=l.shift();++c<o.length;)!1===o[c].apply(a[0],a[1])&&e.stopOnFalse&&(c=o.length,a=!1);e.memory||(a=!1),n=!1,r&&(o=a?[]:"")},d={add:function(){return o&&(a&&!n&&(c=o.length-1,l.push(a)),function t(i){x.each(i,(function(i,n){_(n)?e.unique&&d.has(n)||o.push(n):n&&n.length&&"string"!==b(n)&&t(n)}))}(arguments),a&&!n&&p()),this},remove:function(){return x.each(arguments,(function(e,t){for(var i;-1<(i=x.inArray(t,o,i));)o.splice(i,1),i<=c&&c--})),this},has:function(e){return e?-1<x.inArray(e,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return r=l=[],o=a="",this},disabled:function(){return!o},lock:function(){return r=l=[],a||n||(o=a=""),this},locked:function(){return!!r},fireWith:function(e,t){return r||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),n||p()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},x.extend({Deferred:function(t){var i=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(t){x.each(i,(function(i,n){var a=_(e[n[4]])&&e[n[4]];s[n[1]]((function(){var e=a&&a.apply(this,arguments);e&&_(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[n[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(t,n,a){var s=0;function r(t,i,n,a){return function(){var o=this,l=arguments,c=function(){var e,c;
vendor: 7,274 bytes, line 1
1if(!(t<s)){if((e=n.apply(o,l))===i.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,_(c)?a?c.call(e,r(s,i,F,a),r(s,i,N,a)):(s++,c.call(e,r(s,i,F,a),r(s,i,N,a),r(s,i,F,i.notifyWith))):(n!==F&&(o=void 0,l=[e]),(a||i.resolveWith)(o,l))}},p=a?c:function(){try{c()}catch(e){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,p.stackTrace),s<=t+1&&(n!==N&&(o=void 0,l=[e]),i.rejectWith(o,l))}};t?p():(x.Deferred.getStackHook&&(p.stackTrace=x.Deferred.getStackHook()),e.setTimeout(p))}}return x.Deferred((function(e){i[0][3].add(r(0,e,_(a)?a:F,e.notifyWith)),i[1][3].add(r(0,e,_(t)?t:F)),i[2][3].add(r(0,e,_(n)?n:N))})).promise()},promise:function(e){return null!=e?x.extend(e,a):a}},s={};return x.each(i,(function(e,t){var r=t[2],o=t[5];a[t[1]]=r.add,o&&r.add((function(){n=o}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),r.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=r.fireWith})),a.promise(s),t&&t.call(s,s),s},when:function(e){var t=arguments.length,i=t,n=Array(i),s=a.call(arguments),r=x.Deferred(),o=function(e){return function(i){n[e]=this,s[e]=1<arguments.length?a.call(arguments):i,--t||r.resolveWith(n,s)}};if(t<=1&&(A(e,r.done(o(i)).resolve,r.reject,!t),"pending"===r.state()||_(s[i]&&s[i].then)))return r.then();for(;i--;)A(s[i],o(i),r.reject);return r.promise()}});var L=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&L.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},x.readyException=function(t){e.setTimeout((function(){throw t}))};var M=x.Deferred();function O(){m.removeEventListener("DOMContentLoaded",O),e.removeEventListener("load",O),x.ready()}x.fn.ready=function(e){return M.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0)!==e&&0<--x.readyWait||M.resolveWith(m,[x])}}),x.ready.then=M.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(x.ready):(m.addEventListener("DOMContentLoaded",O),e.addEventListener("load",O));var G=function(e,t,i,n,a,s,r){var o=0,l=e.length,c=null==i;if("object"===b(i))for(o in a=!0,i)G(e,t,o,i[o],!0,s,r);else if(void 0!==n&&(a=!0,_(n)||(r=!0),c&&(r?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(x(e),i)})),t))for(;o<l;o++)t(e[o],i,r?n:n.call(e[o],o,t(e[o],i)));return a?e:c?t.call(e):l?t(e[0],i):s},Y=/^-ms-/,Z=/-([a-z])/g;function q(e,t){return t.toUpperCase()}function P(e){return e.replace(Y,"ms-").replace(Z,q)}var R=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function V(){this.expando=x.expando+V.uid++}V.uid=1,V.prototype={cache:function(e){var t=e[this.expando];return t||(t={},R(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,a=this.cache(e);if("string"==typeof t)a[P(t)]=i;else for(n in t)a[P(n)]=t[n];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][P(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(P):(t=P(t))in n?[t]:t.match(H)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||x.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var J=new V,U=new V,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,X=/[A-Z]/g;function K(e,t,i){var n,a;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(X,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(a=i)||"false"!==a&&("null"===a?null:a===+a+""?+a:Q.test(a)?JSON.parse(a):a)}catch(e){}U.set(e,t,i)}else i=void 0;return i}x.extend({hasData:function(e){return U.hasData(e)||J.hasData(e)},data:function(e,t,i){return U.access(e,t,i)},removeData:function(e,t){U.remove(e,t)},_data:function(e,t,i){return J.access(e,t,i)},_removeData:function(e,t){J.remove(e,t)}}),x.fn.extend({data:function(e,t){var i,n,a,s=this[0],r=s&&s.attributes;if(void 0===e){if(this.length&&(a=U.get(s),1===s.nodeType&&!J.get(s,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=P(n.slice(5)),K(s,n,a[n]));J.set(s,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){U.set(this,e)})):G(this,(function(t){var i;if(s&&void 0===t)return void 0!==(i=U.get(s,e))||void 0!==(i=K(s,e))?i:void 0;this.each((function(){U.set(this,e,t)}))}),null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each((function(){U.remove(this,e)}))}}),x.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=J.get(e,t),i&&(!n||Array.isArray(i)?n=J.access(e,t,x.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=x.queue(e,t),n=i.length,a=i.shift(),s=x._queueHooks(e,t);"inprogress"===a&&(a=i.shift(),n--),a&&("fx"===t&&i.unshift("inprogress"),delete s.stop,a.call(e,(function(){x.dequeue(e,t)}),s)),!n&&s&&s.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return J.get(e,i)||J.access(e,i,{empty:x.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",i])}))})}}),x.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?x.queue(this[0],e):void 0===t?this:this.each((function(){var i=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,a=x.Deferred(),s=this,r=this.length,o=function(){--n||a.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(i=J.get(s[r],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),a.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ne=m.documentElement,ae=function(e){return x.contains(e.ownerDocument,e)},se={composed:!0};ne.getRootNode&&(ae=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var re=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===x.css(e,"display")};function oe(e,t,i,n){var a,s,r=20,o=n?function(){return n.cur()}:function(){return x.css(e,t,"")},l=o(),c=i&&i[3]||(x.cssNumber[t]?"":"px"),p=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+l)&&te.exec(x.css(e,t));if(p&&p[3]!==c){for(l/=2,c=c||p[3],p=+l||1;r--;)x.style(e,t,p+c),(1-s)*(1-(s=o()/l||.5))<=0&&(r=0),p/=s;p*=2,x.style(e,t,p+c),i=i||[]}return i&&(p=+p||+l||0,a=i[1]?p+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=p,n.end=a)),a}var le={};function ce(e,t){for(var i,n,a,s,r,o,l,c=[],p=0,d=e.length;p<d;p++)(n=e[p]).style&&(i=n.style.display,t?("none"===i&&(c[p]=J.get(n,"display")||null,c[p]||(n.style.display="")),""===n.style.display&&re(n)&&(c[p]=(l=r=s=void 0,r=(a=n).ownerDocument,o=a.nodeName,(l=le[o])||(s=r.body.appendChild(r.createElement(o)),l=x.css(s,"dis
vendor: 6,650 bytes, line 1
1play"),s.parentNode.removeChild(s),"none"===l&&(l="block"),le[o]=l)))):"none"!==i&&(c[p]="none",J.set(n,"display",i)));for(p=0;p<d;p++)null!=c[p]&&(e[p].style.display=c[p]);return e}x.fn.extend({show:function(){return ce(this,!0)},hide:function(){return ce(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){re(this)?x(this).show():x(this).hide()}))}});var pe,de,ue=/^(?:checkbox|radio)$/i,he=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_e=/^$|^module$|\/(?:java|ecma)script/i;pe=m.createDocumentFragment().appendChild(m.createElement("div")),(de=m.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),pe.appendChild(de),h.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",h.option=!!pe.lastChild;var fe={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function me(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?x.merge([e],i):i}function ge(e,t){for(var i=0,n=e.length;i<n;i++)J.set(e[i],"globalEval",!t||J.get(t[i],"globalEval"))}fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td,h.option||(fe.optgroup=fe.option=[1,"<select multiple='multiple'>","</select>"]);var ve=/<|&#?\w+;/;function be(e,t,i,n,a){for(var s,r,o,l,c,p,d=t.createDocumentFragment(),u=[],h=0,_=e.length;h<_;h++)if((s=e[h])||0===s)if("object"===b(s))x.merge(u,s.nodeType?[s]:s);else if(ve.test(s)){for(r=r||d.appendChild(t.createElement("div")),o=(he.exec(s)||["",""])[1].toLowerCase(),l=fe[o]||fe._default,r.innerHTML=l[1]+x.htmlPrefilter(s)+l[2],p=l[0];p--;)r=r.lastChild;x.merge(u,r.childNodes),(r=d.firstChild).textContent=""}else u.push(t.createTextNode(s));for(d.textContent="",h=0;s=u[h++];)if(n&&-1<x.inArray(s,n))a&&a.push(s);else if(c=ae(s),r=me(d.appendChild(s),"script"),c&&ge(r),i)for(p=0;s=r[p++];)_e.test(s.type||"")&&i.push(s);return d}var ye=/^key/,xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function $e(){return!1}function Se(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Ce(e,t,i,n,a,s){var r,o;if("object"==typeof t){for(o in"string"!=typeof i&&(n=n||i,i=void 0),t)Ce(e,o,i,n,t[o],s);return e}if(null==n&&null==a?(a=i,n=i=void 0):null==a&&("string"==typeof i?(a=n,n=void 0):(a=n,n=i,i=void 0)),!1===a)a=$e;else if(!a)return e;return 1===s&&(r=a,(a=function(e){return x().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=x.guid++)),e.each((function(){x.event.add(this,t,a,n,i)}))}function Te(e,t,i){i?(J.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var n,s,r=J.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),J.set(this,t,r),n=i(this,t),this[t](),r!==(s=J.get(this,t))||n?J.set(this,t,!1):s={},r!==s)return e.stopImmediatePropagation(),e.preventDefault(),s.value}else r.length&&(J.set(this,t,{value:x.event.trigger(x.extend(r[0],x.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&x.event.add(e,t,we)}x.event={global:{},add:function(e,t,i,n,a){var s,r,o,l,c,p,d,u,h,_,f,m=J.get(e);if(R(e))for(i.handler&&(i=(s=i).handler,a=s.selector),a&&x.find.matchesSelector(ne,a),i.guid||(i.guid=x.guid++),(l=m.events)||(l=m.events=Object.create(null)),(r=m.handle)||(r=m.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(H)||[""]).length;c--;)h=f=(o=ke.exec(t[c])||[])[1],_=(o[2]||"").split(".").sort(),h&&(d=x.event.special[h]||{},h=(a?d.delegateType:d.bindType)||h,d=x.event.special[h]||{},p=x.extend({type:h,origType:f,data:n,handler:i,guid:i.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:_.join(".")},s),(u=l[h])||((u=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,n,_,r)||e.addEventListener&&e.addEventListener(h,r)),d.add&&(d.add.call(e,p),p.handler.guid||(p.handler.guid=i.guid)),a?u.splice(u.delegateCount++,0,p):u.push(p),x.event.global[h]=!0)},remove:function(e,t,i,n,a){var s,r,o,l,c,p,d,u,h,_,f,m=J.hasData(e)&&J.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(H)||[""]).length;c--;)if(h=f=(o=ke.exec(t[c])||[])[1],_=(o[2]||"").split(".").sort(),h){for(d=x.event.special[h]||{},u=l[h=(n?d.delegateType:d.bindType)||h]||[],o=o[2]&&new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=u.length;s--;)p=u[s],!a&&f!==p.origType||i&&i.guid!==p.guid||o&&!o.test(p.namespace)||n&&n!==p.selector&&("**"!==n||!p.selector)||(u.splice(s,1),p.selector&&u.delegateCount--,d.remove&&d.remove.call(e,p));r&&!u.length&&(d.teardown&&!1!==d.teardown.call(e,_,m.handle)||x.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)x.event.remove(e,h+t[c],i,n,!0);x.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,i,n,a,s,r,o=new Array(arguments.length),l=x.event.fix(e),c=(J.get(this,"events")||Object.create(null))[l.type]||[],p=x.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!p.preDispatch||!1!==p.preDispatch.call(this,l)){for(r=x.event.handlers.call(this,l,c),t=0;(a=r[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,i=0;(s=a.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(n=((x.event.special[s.origType]||{}).handle||s.handler).apply(a.elem,o))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return p.postDispatch&&p.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,a,s,r,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],r={},i=0;i<l;i++)void 0===r[a=(n=t[i]).selector+" "]&&(r[a]=n.needsContext?-1<x(a,this).index(c):x.find(a,this,null,[c]).length),r[a]&&s.push(n);s.length&&o.push({elem:c,handlers:s})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:_(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]}
vendor: 2,431 bytes, line 1
1,set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ue.test(t.type)&&t.click&&T(t,"input")&&Te(t,"click",we),!1},trigger:function(e){var t=this||e;return ue.test(t.type)&&t.click&&T(t,"input")&&Te(t,"click"),!0},_default:function(e){var t=e.target;return ue.test(t.type)&&t.click&&T(t,"input")&&J.get(t,"click")||T(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:$e,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:$e,isPropagationStopped:$e,isImmediatePropagationStopped:$e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ye.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&xe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){x.event.special[e]={setup:function(){return Te(this,e,Se),!1},trigger:function(){return Te(this,e),!0},delegateType:t}}
vendor: 5,906 bytes, line 1
1)),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=e.relatedTarget,a=e.handleObj;return n&&(n===this||x.contains(this,n))||(e.type=a.origType,i=a.handler.apply(this,arguments),e.type=t),i}}})),x.fn.extend({on:function(e,t,i,n){return Ce(this,e,t,i,n)},one:function(e,t,i,n){return Ce(this,e,t,i,n,1)},off:function(e,t,i){var n,a;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,x(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=$e),this.each((function(){x.event.remove(this,e,i,t)}))}});var Ie=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,We=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ee(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var i,n,a,s,r,o;if(1===t.nodeType){if(J.hasData(e)&&(o=J.get(e).events))for(a in J.remove(t,"handle events"),o)for(i=0,n=o[a].length;i<n;i++)x.event.add(t,a,o[a][i]);U.hasData(e)&&(s=U.access(e),r=x.extend({},s),U.set(t,r))}}function He(e,t,i,n){t=s(t);var a,r,o,l,c,p,d=0,u=e.length,f=u-1,m=t[0],g=_(m);if(g||1<u&&"string"==typeof m&&!h.checkClone&&je.test(m))return e.each((function(a){var s=e.eq(a);g&&(t[0]=m.call(this,a,s.html())),He(s,t,i,n)}));if(u&&(r=(a=be(t,e[0].ownerDocument,!1,e,n)).firstChild,1===a.childNodes.length&&(a=r),r||n)){for(l=(o=x.map(me(a,"script"),De)).length;d<u;d++)c=a,d!==f&&(c=x.clone(c,!0,!0),l&&x.merge(o,me(c,"script"))),i.call(e[d],c,d);if(l)for(p=o[o.length-1].ownerDocument,x.map(o,Be),d=0;d<l;d++)c=o[d],_e.test(c.type||"")&&!J.access(c,"globalEval")&&x.contains(p,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},p):v(c.textContent.replace(We,""),c,p))}return e}function Fe(e,t,i){for(var n,a=t?x.filter(t,e):e,s=0;null!=(n=a[s]);s++)i||1!==n.nodeType||x.cleanData(me(n)),n.parentNode&&(i&&ae(n)&&ge(me(n,"script")),n.parentNode.removeChild(n));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,a,s,r,o,l,c,p=e.cloneNode(!0),d=ae(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=me(p),n=0,a=(s=me(e)).length;n<a;n++)o=s[n],"input"===(c=(l=r[n]).nodeName.toLowerCase())&&ue.test(o.type)?l.checked=o.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=o.defaultValue);if(t)if(i)for(s=s||me(e),r=r||me(p),n=0,a=s.length;n<a;n++)ze(s[n],r[n]);else ze(e,p);return 0<(r=me(p,"script")).length&&ge(r,!d&&me(e,"script")),p},cleanData:function(e){for(var t,i,n,a=x.event.special,s=0;void 0!==(i=e[s]);s++)if(R(i)){if(t=i[J.expando]){if(t.events)for(n in t.events)a[n]?x.event.remove(i,n):x.removeEvent(i,n,t.handle);i[J.expando]=void 0}i[U.expando]&&(i[U.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return G(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return He(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ee(this,e).appendChild(e)}))},prepend:function(){return He(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ee(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return He(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return G(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ie.test(e)&&!fe[(he.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(x.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return He(this,arguments,(function(t){var i=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(me(this)),i&&i.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var i,n=[],a=x(e),s=a.length-1,o=0;o<=s;o++)i=o===s?this:this.clone(!0),x(a[o])[t](i),r.apply(n,i.get());return this.pushStack(n)}}));var Ne=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ae=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},Le=function(e,t,i){var n,a,s={};for(a in t)s[a]=e.style[a],e.style[a]=t[a];for(a in n=i.call(e),t)e.style[a]=s[a];return n},Me=new RegExp(ie.join("|"),"i");function Oe(e,t,i){var n,a,s,r,o=e.style;return(i=i||Ae(e))&&(""!==(r=i.getPropertyValue(t)||i[t])||ae(e)||(r=x.style(e,t)),!h.pixelBoxStyles()&&Ne.test(r)&&Me.test(t)&&(n=o.width,a=o.minWidth,s=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=i.width,o.width=n,o.minWidth=a,o.maxWidth=s)),void 0!==r?r+"":r}function Ge(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(p){c.style.cssText="position:absolute;
1left:-11111px;width:60px;margin-top:1px;padding:0;border:0",p.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ne.appendChild(c).appendChild(p);var t=e.getComputedStyle(p);n="1%"!==t.top,l=12===i(t.marginLeft),p.style.right="60%",r=36===i(t.right),a=36===i(t.width),p.style.position="absolute",s=12===i(p.offsetWidth/3),ne.removeChild(c),p=null}}function i(e){return Math.round(parseFloat(e))}var n,a,s,r,o,l,c=m.createElement("div"),p=m.createElement("div");p.style&&(p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===p.style.backgroundClip,x.extend(h,{boxSizingReliable:function(){return t(),a},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,i,n,a;return null==o&&(t=m.createElement("table"),i=m.createElement("tr"),n=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px",i.style.height="1px",n.style.height="9px",ne.appendChild(t).appendChild(i).appendChild(n),a=e.getComputedStyle(i),o=3<parseInt(a.height),ne.removeChild(t)),o}}))}();var Ye=["Webkit","Moz","ms"],Ze=m.createElement("div").style,qe={};function Pe(e){return x.cssProps[e]||qe[e]||(e in Ze?e:qe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=Ye.length;i--;)if((e=Ye[i]+t)in Ze)return e}(e)||e)}var Re=/^(none|table(?!-c[ea]).+)/,Ve=/^--/,Je={position:"absolute",visibility:"hidden",display:"block"},Ue={letterSpacing:"0",fontWeight:"400"};function Qe(e,t,i){var n=te.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function Xe(e,t,i,n,a,s){var r="width"===t?1:0,o=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=x.css(e,i+ie[r],!0,a)),n?("content"===i&&(l-=x.css(e,"padding"+ie[r],!0,a)),"margin"!==i&&(l-=x.css(e,"border"+ie[r]+"Width",!0,a))):(l+=x.css(e,"padding"+ie[r],!0,a),"padding"!==i?l+=x.css(e,"border"+ie[r]+"Width",!0,a):o+=x.css(e,"border"+ie[r]+"Width",!0,a));return!n&&0<=s&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-o-.5))||0),l}function Ke(e,t,i){var n=Ae(e),a=(!h.boxSizingReliable()||i)&&"border-box"===x.css(e,"boxSizing",!1,n),s=a,r=Oe(e,t,n),o="offset"+t[0].toUpperCase()+t.slice(1);if(Ne.test(r)){if(!i)return r;r="auto"}return(!h.boxSizingReliable()&&a||!h.reliableTrDimensions()&&T(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===x.css(e,"display",!1,n))&&e.getClientRects().length&&(a="border-box"===x.css(e,"boxSizing",!1,n),(s=o in e)&&(r=e[o])),(r=parseFloat(r)||0)+Xe(e,t,i||(a?"border":"content"),s,n,r)+"px"}function et(e,t,i,n,a){return new et.prototype.init(e,t,i,n,a)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Oe(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,s,r,o=P(t),l=Ve.test(t),c=e.style;if(l||(t=Pe(o)),r=x.cssHooks[t]||x.cssHooks[o],void 0===i)return r&&"get"in r&&void 0!==(a=r.get(e,!1,n))?a:c[t];"string"==(s=typeof i)&&(a=te.exec(i))&&a[1]&&(i=oe(e,t,a),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=a&&a[3]||(x.cssNumber[o]?"":"px")),h.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var a,s,r,o=P(t);return Ve.test(t)||(t=Pe(o)),(r=x.cssHooks[t]||x.cssHooks[o])&&"get"in r&&(a=r.get(e,!0,i)),void 0===a&&(a=Oe(e,t,n)),"normal"===a&&t in Ue&&(a=Ue[t]),""===i||i?(s=parseFloat(a),!0===i||isFinite(s)?s||0:a):a}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,i,n){if(i)return!Re.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ke(e,t,n):Le(e,Je,(function(){return Ke(e,t,n)}))},set:function(e,i,n){var a,s=Ae(e),r=!h.scrollboxSize()&&"absolute"===s.position,o=(r||n)&&"border-box"===x.css(e,"boxSizing",!1,s),l=n?Xe(e,t,n,o,s):0;return o&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-Xe(e,t,"border",!1,s)-.5)),l&&(a=te.exec(i))&&"px"!==(a[3]||"px")&&(e.style[t]=i,i=x.css(e,t)),Qe(0,i,l)}}})),x.cssHooks.marginLeft=Ge(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Oe(e,"marginLeft"))||e.getBoundingClientRect().left-Le(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(i){for(var n=0,a={},s="string"==typeof i?i.split(" "):[i];n<4;n++)a[e+ie[n]+t]=s[n]||s[n-2]||s[0];return a}},"margin"!==e&&(x.cssHooks[e+t].set=Qe)})),x.fn.extend({css:function(e,t){return G(this,(function(e,t,i){var n,a,s={},r=0;if(Array.isArray(t)){for(n=Ae(e),a=t.length;r<a;r++)s[t[r]]=x.css(e,t[r],!1,n);return s}return void 0!==i?x.style(e,t,i):x.css(e,t)}),e,t,1<arguments.length)}}),((x.Tween=et).prototype={constructor:et,init:function(e,t,i,n,a,s){this.elem=e,this.prop=i,this.easing=a||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=s||(x.cssNumber[i]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,i=et.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Pe(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=et.prototype.init,x.fx.step={};var tt,it,nt,at,st=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function ot(){it&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(ot):e.setTimeout(ot,x.fx.interval),x.fx.tick())}function lt(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function ct(e,t){var i,n=0,a={height:e};for(t=t?1:0;n<4;n+=2-t)a["margin"+(i=ie[n])]=a["padding"+i]=e;return t&&(a.opacity=a.width=e),a}function pt(e,t,i){for(var n,a=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),s=0,r=a.length;s<r;s++)if(n=a[s].call(i,t,e))return n}function dt(e,t,i){var n,a,s=0,r=dt.prefilters.length,o=x.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=tt||lt(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),s=0,r=c.tweens.length;s<r;s++)c.tweens[s].run(n);return o.notifyWith(e,[c,n,i]),n<1&&r?i:(r||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},i),originalProperties:t,originalOptions:i,startTime:tt||lt(),duration:i.duration,tweens:[],createTween:function(t,i){var n=x.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||
vendor: 4,108 bytes, line 1
1c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(a)return this;for(a=!0;i<n;i++)c.tweens[i].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),p=c.props;for(function(e,t){var i,n,a,s,r;for(i in e)if(a=t[n=P(i)],s=e[i],Array.isArray(s)&&(a=s[1],s=e[i]=s[0]),i!==n&&(e[n]=s,delete e[i]),(r=x.cssHooks[n])&&"expand"in r)for(i in s=r.expand(s),delete e[n],s)i in e||(e[i]=s[i],t[i]=a);else t[n]=a}(p,c.opts.specialEasing);s<r;s++)if(n=dt.prefilters[s].call(c,e,p,c.opts))return _(n.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return x.map(p,pt,c),_(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(dt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return oe(i.elem,e,te.exec(t),i),i}]},tweener:function(e,t){_(e)?(t=e,e=["*"]):e=e.match(H);for(var i,n=0,a=e.length;n<a;n++)i=e[n],dt.tweeners[i]=dt.tweeners[i]||[],dt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,a,s,r,o,l,c,p,d="width"in t||"height"in t,u=this,h={},_=e.style,f=e.nodeType&&re(e),m=J.get(e,"fxshow");for(n in i.queue||(null==(r=x._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,o=r.empty.fire,r.empty.fire=function(){r.unqueued||o()}),r.unqueued++,u.always((function(){u.always((function(){r.unqueued--,x.queue(e,"fx").length||r.empty.fire()}))}))),t)if(a=t[n],st.test(a)){if(delete t[n],s=s||"toggle"===a,a===(f?"hide":"show")){if("show"!==a||!m||void 0===m[n])continue;f=!0}h[n]=m&&m[n]||x.style(e,n)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(h))for(n in d&&1===e.nodeType&&(i.overflow=[_.overflow,_.overflowX,_.overflowY],null==(c=m&&m.display)&&(c=J.get(e,"display")),"none"===(p=x.css(e,"display"))&&(c?p=c:(ce([e],!0),c=e.style.display||c,p=x.css(e,"display"),ce([e]))),("inline"===p||"inline-block"===p&&null!=c)&&"none"===x.css(e,"float")&&(l||(u.done((function(){_.display=c})),null==c&&(p=_.display,c="none"===p?"":p)),_.display="inline-block")),i.overflow&&(_.overflow="hidden",u.always((function(){_.overflow=i.overflow[0],_.overflowX=i.overflow[1],_.overflowY=i.overflow[2]}))),l=!1,h)l||(m?"hidden"in m&&(f=m.hidden):m=J.access(e,"fxshow",{display:c}),s&&(m.hidden=!f),f&&ce([e],!0),u.done((function(){for(n in f||ce([e]),J.remove(e,"fxshow"),h)x.style(e,n,h[n])}))),l=pt(f?m[n]:0,n,u),n in m||(m[n]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),x.speed=function(e,t,i){var n=e&&"object"==typeof e?x.extend({},e):{complete:i||!i&&t||_(e)&&e,duration:e,easing:i&&t||t&&!_(t)&&t};return x.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in x.fx.speeds?n.duration=x.fx.speeds[n.duration]:n.duration=x.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){_(n.old)&&n.old.call(this),n.queue&&x.dequeue(this,n.queue)},n},x.fn.extend({fadeTo:function(e,t,i,n){return this.filter(re).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var a=x.isEmptyObject(e),s=x.speed(t,i,n),r=function(){var t=dt(this,x.extend({},e),s);(a||J.get(this,"finish"))&&t.stop(!0)};return r.finish=r,a||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",s=x.timers,r=J.get(this);if(a)r[a]&&r[a].stop&&n(r[a]);else for(a in r)r[a]&&r[a].stop&&rt.test(a)&&n(r[a]);for(a=s.length;a--;)s[a].elem!==this||null!=e&&s[a].queue!==e||(s[a].anim.stop(i),t=!1,s.splice(a,1));!t&&i||x.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=J.get(this),n=i[e+"queue"],a=i[e+"queueHooks"],s=x.timers,r=n?n.length:0;for(i.finish=!0,x.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1)
vendor: 5,991 bytes, line 1
1);for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),x.each(["toggle","show","hide"],(function(e,t){var i=x.fn[t];x.fn[t]=function(e,n,a){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(ct(t,!0),e,n,a)}})),x.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),x.timers=[],x.fx.tick=function(){var e,t=0,i=x.timers;for(tt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||x.fx.stop(),tt=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){it||(it=!0,ot())},x.fx.stop=function(){it=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,i){return t=x.fx&&x.fx.speeds[t]||t,i=i||"fx",this.queue(i,(function(i,n){var a=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(a)}}))},nt=m.createElement("input"),at=m.createElement("select").appendChild(m.createElement("option")),nt.type="checkbox",h.checkOn=""!==nt.value,h.optSelected=at.selected,(nt=m.createElement("input")).value="t",nt.type="radio",h.radioValue="t"===nt.value;var ut,ht=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return G(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,i){var n,a,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?x.prop(e,t,i):(1===s&&x.isXMLDoc(e)||(a=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?ut:void 0)),void 0!==i?null===i?void x.removeAttr(e,t):a&&"set"in a&&void 0!==(n=a.set(e,i,t))?n:(e.setAttribute(t,i+""),i):a&&"get"in a&&null!==(n=a.get(e,t))?n:null==(n=x.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&T(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,a=t&&t.match(H);if(a&&1===e.nodeType)for(;i=a[n++];)e.removeAttribute(i)}}),ut={set:function(e,t,i){return!1===t?x.removeAttr(e,i):e.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=ht[t]||x.find.attr;ht[t]=function(e,t,n){var a,s,r=t.toLowerCase();return n||(s=ht[r],ht[r]=a,a=null!=i(e,t,n)?r:null,ht[r]=s),a}}));var _t=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function mt(e){return(e.match(H)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}x.fn.extend({prop:function(e,t){return G(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,i){var n,a,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&x.isXMLDoc(e)||(t=x.propFix[t]||t,a=x.propHooks[t]),void 0!==i?a&&"set"in a&&void 0!==(n=a.set(e,i,t))?n:e[t]=i:a&&"get"in a&&null!==(n=a.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):_t.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,i,n,a,s,r,o,l=0;if(_(e))return this.each((function(t){x(this).addClass(e.call(this,t,gt(this)))}));if((t=vt(e)).length)for(;i=this[l++];)if(a=gt(i),n=1===i.nodeType&&" "+mt(a)+" "){for(r=0;s=t[r++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");a!==(o=mt(n))&&i.setAttribute("class",o)}return this},removeClass:function(e){var t,i,n,a,s,r,o,l=0;if(_(e))return this.each((function(t){x(this).removeClass(e.call(this,t,gt(this)))}));if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;i=this[l++];)if(a=gt(i),n=1===i.nodeType&&" "+mt(a)+" "){for(r=0;s=t[r++];)for(;-1<n.indexOf(" "+s+" ");)n=n.replace(" "+s+" "," ");a!==(o=mt(n))&&i.setAttribute("class",o)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):_(e)?this.each((function(i){x(this).toggleClass(e.call(this,i,gt(this),t),t)})):this.each((function(){var t,a,s,r;if(n)for(a=0,s=x(this),r=vt(e);t=r[a++];)s.hasClass(t)?s.removeClass(t):s.addClass(t);else void 0!==e&&"boolean"!==i||((t=gt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+mt(gt(i))+" ").indexOf(t))return!0;return!1}});var bt=/\r/g;x.fn.extend({val:function(e){var t,i,n,a=this[0];return arguments.length?(n=_(e),this.each((function(i){var a;1===this.nodeType&&(null==(a=n?e.call(this,i,x(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=x.map(a,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=x.valHooks[a.type]||x.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(a,"value"))?i:"string"==typeof(i=a.value)?i.replace(bt,""):null==i?"":i:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:mt(x.text(e))}},select:{get:function(e){var t,i,n,a=e.options,s=e.selectedIndex,r="select-one"===e.type,o=r?null:[],l=r?s+1:a.length;for(n=s<0?l:r?s:0;n<l;n++)if(((i=a[n]).selected||n===s)&&!i.disabled&&(!i.parentNode.disabled||!T(i.parentNode,"optgroup"))){if(t=x(i).val(),r)return t;o.push(t)}return o}
vendor: 5,480 bytes, line 1
1,set:function(e,t){for(var i,n,a=e.options,s=x.makeArray(t),r=a.length;r--;)((n=a[r]).selected=-1<x.inArray(x.valHooks.option.get(n),s))&&(i=!0);return i||(e.selectedIndex=-1),s}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<x.inArray(x(e).val(),t)}},h.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,i,n,a){var s,r,o,l,c,d,u,h,g=[n||m],v=p.call(t,"type")?t.type:t,b=p.call(t,"namespace")?t.namespace.split("."):[];if(r=h=o=n=n||m,3!==n.nodeType&&8!==n.nodeType&&!yt.test(v+x.event.triggered)&&(-1<v.indexOf(".")&&(v=(b=v.split(".")).shift(),b.sort()),c=v.indexOf(":")<0&&"on"+v,(t=t[x.expando]?t:new x.Event(v,"object"==typeof t&&t)).isTrigger=a?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:x.makeArray(i,[t]),u=x.event.special[v]||{},a||!u.trigger||!1!==u.trigger.apply(n,i))){if(!a&&!u.noBubble&&!f(n)){for(l=u.delegateType||v,yt.test(l+v)||(r=r.parentNode);r;r=r.parentNode)g.push(r),o=r;o===(n.ownerDocument||m)&&g.push(o.defaultView||o.parentWindow||e)}for(s=0;(r=g[s++])&&!t.isPropagationStopped();)h=r,t.type=1<s?l:u.bindType||v,(d=(J.get(r,"events")||Object.create(null))[t.type]&&J.get(r,"handle"))&&d.apply(r,i),(d=c&&r[c])&&d.apply&&R(r)&&(t.result=d.apply(r,i),!1===t.result&&t.preventDefault());return t.type=v,a||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(g.pop(),i)||!R(n)||c&&_(n[v])&&!f(n)&&((o=n[c])&&(n[c]=null),x.event.triggered=v,t.isPropagationStopped()&&h.addEventListener(v,xt),n[v](),t.isPropagationStopped()&&h.removeEventListener(v,xt),x.event.triggered=void 0,o&&(n[c]=o)),t.result}},simulate:function(e,t,i){var n=x.extend(new x.Event,i,{type:e,isSimulated:!0});x.event.trigger(n,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return x.event.trigger(e,t,i,!0)}}),h.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,a=J.access(n,t);a||n.addEventListener(e,i,!0),J.access(n,t,(a||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,a=J.access(n,t)-1;a?J.access(n,t,a):(n.removeEventListener(e,i,!0),J.remove(n,t))}}}));var kt=e.location,wt={guid:Date.now()},$t=/\?/;x.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+t),i};var St=/\[\]$/,Ct=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function jt(e,t,i,n){var a;if(Array.isArray(t))x.each(t,(function(t,a){i||St.test(e)?n(e,a):jt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,i,n)}));else if(i||"object"!==b(t))n(e,t);else for(a in t)jt(e+"["+a+"]",t[a],i,n)}x.param=function(e,t){var i,n=[],a=function(e,t){var i=_(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){a(this.name,this.value)}));else for(i in e)jt(i,e[i],t,a);return n.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&It.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!ue.test(e))})).map((function(e,t){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,(function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}})):{name:t.name,value:i.replace(Ct,"\r\n")}})).get()}});var Wt=/%20/g,Et=/#.*$/,Dt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,zt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ft={},Nt={},At="*/".concat("*"),Lt=m.createElement("a");function Mt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,a=0,s=t.toLowerCase().match(H)||[];if(_(i))for(;n=s[a++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Ot(e,t,i,n){var a={},s=e===Nt;function r(o){var l;return a[o]=!0,x.each(e[o]||[],(function(e,o){var c=o(t,i,n);return"string"!=typeof c||s||a[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)})),l}return r(t.dataTypes[0])||!a["*"]&&r("*")}function Gt(e,t){var i,n,a=x.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((a[i]?e:n||(n={}))[i]=t[i]);return n&&x.extend(!0,e,n),e}Lt.href=kt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML}
vendor: 7,781 bytes, line 1
1,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,x.ajaxSettings),t):Gt(x.ajaxSettings,e)},ajaxPrefilter:Mt(Ft),ajaxTransport:Mt(Nt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var n,a,s,r,o,l,c,p,d,u,h=x.ajaxSetup({},i),_=h.context||h,f=h.context&&(_.nodeType||_.jquery)?x(_):x.event,g=x.Deferred(),v=x.Callbacks("once memory"),b=h.statusCode||{},y={},k={},w="canceled",$={readyState:0,getResponseHeader:function(e){var t;if(c){if(!r)for(r={};t=Bt.exec(s);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=k[e.toLowerCase()]=k[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)$.always(e[$.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||w;return n&&n.abort(t),S(0,t),this}};if(g.promise($),h.url=((t||h.url||kt.href)+"").replace(Ht,kt.protocol+"//"),h.type=i.method||i.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(H)||[""],null==h.crossDomain){l=m.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Lt.protocol+"//"+Lt.host!=l.protocol+"//"+l.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Ot(Ft,h,i,$),c)return $;for(d in(p=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!zt.test(h.type),a=h.url.replace(Et,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Wt,"+")):(u=h.url.slice(a.length),h.data&&(h.processData||"string"==typeof h.data)&&(a+=($t.test(a)?"&":"?")+h.data,delete h.data),!1===h.cache&&(a=a.replace(Dt,"$1"),u=($t.test(a)?"&":"?")+"_="+wt.guid+++u),h.url=a+u),h.ifModified&&(x.lastModified[a]&&$.setRequestHeader("If-Modified-Since",x.lastModified[a]),x.etag[a]&&$.setRequestHeader("If-None-Match",x.etag[a])),(h.data&&h.hasContent&&!1!==h.contentType||i.contentType)&&$.setRequestHeader("Content-Type",h.contentType),$.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+At+"; q=0.01":""):h.accepts["*"]),h.headers)$.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(_,$,h)||c))return $.abort();if(w="abort",v.add(h.complete),$.done(h.success),$.fail(h.error),n=Ot(Nt,h,i,$)){if($.readyState=1,p&&f.trigger("ajaxSend",[$,h]),c)return $;h.async&&0<h.timeout&&(o=e.setTimeout((function(){$.abort("timeout")}),h.timeout));try{c=!1,n.send(y,S)}catch(t){if(c)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,i,r,l){var d,u,m,y,k,w=i;c||(c=!0,o&&e.clearTimeout(o),n=void 0,s=l||"",$.readyState=0<t?4:0,d=200<=t&&t<300||304===t,r&&(y=function(e,t,i){for(var n,a,s,r,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(a in o)if(o[a]&&o[a].test(n)){l.unshift(a);break}if(l[0]in i)s=l[0];else{for(a in i){if(!l[0]||e.converters[a+" "+l[0]]){s=a;break}r||(r=a)}s=s||r}if(s)return s!==l[0]&&l.unshift(s),i[s]}(h,$,r)),!d&&-1<x.inArray("script",h.dataTypes)&&(h.converters["text script"]=function(){}),y=function(e,t,i,n){var a,s,r,o,l,c={},p=e.dataTypes.slice();if(p[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(s=p.shift();s;)if(e.responseFields[s]&&(i[e.responseFields[s]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=p.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(a in c)if((o=a.split(" "))[1]===s&&(r=c[l+" "+o[0]]||c["* "+o[0]])){!0===r?r=c[a]:!0!==c[a]&&(s=o[0],p.unshift(o[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(h,y,$,d),d?(h.ifModified&&((k=$.getResponseHeader("Last-Modified"))&&(x.lastModified[a]=k),(k=$.getResponseHeader("etag"))&&(x.etag[a]=k)),204===t||"HEAD"===h.type?w="nocontent":304===t?w="notmodified":(w=y.state,u=y.data,d=!(m=y.error))):(m=w,!t&&w||(w="error",t<0&&(t=0))),$.status=t,$.statusText=(i||w)+"",d?g.resolveWith(_,[u,w,$]):g.rejectWith(_,[$,w,m]),$.statusCode(b),b=void 0,p&&f.trigger(d?"ajaxSuccess":"ajaxError",[$,h,d?u:m]),v.fireWith(_,[$,w]),p&&(f.trigger("ajaxComplete",[$,h]),--x.active||x.event.trigger("ajaxStop")))}return $},getJSON:function(e,t,i){return x.get(e,t,i,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,i,n,a){return _(i)&&(a=a||n,n=i,i=void 0),x.ajax(x.extend({url:e,type:t,dataType:a,data:i,success:n},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,i){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,i)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(_(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return _(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=_(e);return this.each((function(i){x(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Zt=x.ajaxSettings.xhr();h.cors=!!Zt&&"withCredentials"in Zt,h.ajax=Zt=!!Zt,x.ajaxTransport((function(t){var i,n;if(h.cors||Zt&&!t.crossDomain)return{send:function(a,s){var r,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];for(r in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)o.setRequestHeader(r,a[r]);i=function(e){return function(){i&&(i=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?s(0,"error"):s(o.status,o.statusText):s(Yt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),n=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout((function(){i&&n()}))},i=i("abort");try{o.send(t.hasContent&&t.data||null)}catch(a){if(i)throw a}},abort:function(){i&&i()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,a){t=x("<script>").attr(e.scriptAttrs||{}
vendor: 2,210 bytes, line 1
1).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&a("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){i&&i()}}}));var qt,Pt=[],Rt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pt.pop()||x.expando+"_"+wt.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(t,i,n){var a,s,r,o=!1!==t.jsonp&&(Rt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return a=t.jsonpCallback=_(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Rt,"$1"+a):!1!==t.jsonp&&(t.url+=($t.test(t.url)?"&":"?")+t.jsonp+"="+a),t.converters["script json"]=function(){return r||x.error(a+" was not called"),r[0]},t.dataTypes[0]="json",s=e[a],e[a]=function(){r=arguments},n.always((function(){void 0===s?x(e).removeProp(a):e[a]=s,t[a]&&(t.jsonpCallback=i.jsonpCallback,Pt.push(a)),r&&_(s)&&s(r[0]),r=s=void 0})),"script"})),h.createHTMLDocument=((qt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qt.childNodes.length),x.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(h.createHTMLDocument?((n=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(n)):t=m),s=!i&&[],(a=I.exec(e))?[t.createElement(a[1])]:(a=be([e],t,s),s&&s.length&&x(s).remove(),x.merge([],a.childNodes)));var n,a,s},x.fn.load=function(e,t,i){var n,a,s,r=this,o=e.indexOf(" ");return-1<o&&(n=mt(e.slice(o)),e=e.slice(0,o)),_(t)?(i=t,t=void 0):t&&"object"==typeof t&&(a="POST"),0<r.length&&x.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){s=arguments,r.html(n?x("<div>").append(x.parseHTML(e)).find(n):e)})).always(i&&function(e,t){r.each((function(){i.apply(this,s||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,i){var n,a,s,r,o,l,c=x.css(e,"position"),p=x(e),d={};"static"===c&&(e.style.position="relative"),o=p.offset(),s=x.css(e,"to
1p"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(s+l).indexOf("auto")?(r=(n=p.position()).top,a=n.left):(r=parseFloat(s)||0,a=parseFloat(l)||0),_(t)&&(t=t.call(e,i,x.extend({},o))),null!=t.top&&(d.top=t.top-o.top+r),null!=t.left&&(d.left=t.left-o.left+a),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),p.css(d))}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.offset.setOffset(this,e,t)}));var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],a={top:0,left:0};if("fixed"===x.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((a=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),a.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-x.css(n,"marginTop",!0),left:t.left-a.left-x.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ne}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;x.fn[e]=function(n){return G(this,(function(e,n,a){var s;if(f(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===a)return s?s[t]:e[n];s?s.scrollTo(i?s.pageXOffset:a,i?a:s.pageYOffset):e[n]=a}),e,n,arguments.length)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=Ge(h.pixelPosition,(function(e,i){if(i)return i=Oe(e,t),Ne.test(i)?x(e).position()[t]+"px":i}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){x.fn[n]=function(a,s){var r=arguments.length&&(i||"boolean"!=typeof a),o=i||(!0===a||!0===s?"margin":"border");return G(this,(function(t,i,a){var s;return f(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===a?x.css(t,i,o):x.style(t,i,a,o)}),t,r?a:void 0,r)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){x.fn[t]=function(e,i){return 0<arguments.length?this.on(t,null,e,i):this.trigger(t)}}));var Vt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var i,n,s;if("string"==typeof t&&(i=e[t],t=e,e=i),_(e))return n=a.call(arguments,2),(s=function(){return e.apply(t||this,n.concat(a.call(arguments)))}).guid=e.guid=e.guid||x.guid++,s},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=T,x.isFunction=_,x.isWindow=f,x.camelCase=P,x.type=b,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(Vt,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return x}));var Jt=e.jQuery,Ut=e.$;return x.noConflict=function(t){return e.$===x&&(e.$=Ut),t&&e.jQuery===x&&(e.jQuery=Jt),x},void 0===t&&(e.jQuery=e.$=x),x})),jQuery.fn.size=function(){return this.length},$.curCSS=function(e,t,i){$(e).css(t,i)},
2/*!
3 * jQuery Migrate - v3.3.1 - 2020-06-25T01:07Z
4 * Copyright OpenJS Foundation and other contributors
5 */
6function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],(function(t){return e(t,window)})):"object"==typeof module&&module.exports?module.exports=e(require("jquery"),window):e(jQuery,window)}((function(e,t){"use strict";function i(t){return function(e,t){var i,n=/^(\d+)\.(\d+)\.(\d+)/,a=n.exec(e)||[],s=n.exec(t)||[];for(i=1;i<=3;i++){if(+a[i]>+s[i])return 1;if(+a[i]<+s[i])return-1}return 0}(e.fn.jquery,t)>=0}e.migrateVersion="3.3.1";function n(e,t,i,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){i=e}})}function a(e,t,i,n){e[t]=function(){return i.apply(this,arguments)}}e.migrateDeduplicateWarnings=!0,e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){({}),e.migrateWarnings.length=0},t.document.compatMode;var s,r={},o=e.fn.init,l=e.find,c=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,p=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,d=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;for(s in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(t[0]=[]),o.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var i=Array.prototype.slice.call(arguments);if("string"==typeof e&&c.test(e))try{t.document.querySelector(e)}catch(n){e=e.replace(p,(function(e,t,i,n){return"["+t+i+'"'+n+'"]'}));try{t.document.querySelector(e),i[0],i[0]=e}catch(e){i[0]}}return l.apply(this,i)},l)Object.prototype.hasOwnProperty.call(l,s)&&(e.find[s]=l[s]);if(a(e.fn,"size",(function(){return this.length})),a(e,"parseJSON",(function(){return JSON.parse.apply(null,arguments)})),a(e,"holdReady",e.holdReady),a(e,"unique",e.uniqueSort),n(e.expr,"filters",e.expr.pseudos),n(e.expr,":",e.expr.pseudos),i("3.1.1")&&a(e,"trim",(function(e){return null==e?"":(e+"").replace(d,"")}
6)),i("3.2.0")&&a(e,"nodeName",(function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()})),i("3.3.0")&&(a(e,"isNumeric",(function(e){var t=typeof e;return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))})),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){r["[object "+t+"]"]=t.toLowerCase()})),a(e,"type",(function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?r[Object.prototype.toString.call(e)]||"object":typeof e})),a(e,"isFunction",(function(e){return"function"==typeof e})),a(e,"isWindow",(function(e){return null!=e&&e===e.window})),a(e,"isArray",Array.isArray)),e.ajax){var u=e.ajax;e.ajax=function(){var e=u.apply(this,arguments);return e.promise&&(a(e,"success",e.done),a(e,"error",e.fail),a(e,"complete",e.always)),e}}var h=e.fn.removeAttr,_=e.fn.toggleClass,f=/\S+/g;function m(e){return e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))}e.fn.removeAttr=function(t){var i=this;return e.each(t.match(f),(function(t,n){e.expr.match.bool.test(n)&&i.prop(n,!1)})),h.apply(this,arguments)},e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?_.apply(this,arguments):this.each((function(){var i=this.getAttribute&&this.getAttribute("class")||"";i&&e.data(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":e.data(this,"__className__")||"")}))};var g,v=/^[a-z]/,b=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;e.swap&&e.each(["height","width","reliableMarginRight"],(function(t,i){var n=e.cssHooks[i]&&e.cssHooks[i].get;n&&(e.cssHooks[i].get=function(){var e;return!0,e=n.apply(this,arguments),!1,e})})),e.swap=function(e,t,i,n){var a,s,r={};for(s in t)r[s]=e.style[s],e.style[s]=t[s];for(s in a=i.apply(e,n||[]),t)e.style[s]=r[s];return a},i("3.4.0")&&"undefined"!=typeof Proxy&&(e.cssProps=new Proxy(e.cssProps||{},{set:function(){return Reflect.set.apply(this,arguments)}})),e.cssNumber||(e.cssNumber={}),g=e.fn.css,e.fn.css=function(t,i){var n,a,s=this;return t&&"object"==typeof t&&!Array.isArray(t)&&e.each(t,(function(t,i){e.fn.css.call(s,t,i)})),"number"==typeof i&&(n=m(t),a=n,v.test(a)&&b.test(a[0].toUpperCase()+a.slice(1))||e.cssNumber[n]),g.apply(this,arguments)};var y=e.data;if(e.data=function(t,i,n){var a,s,r;if(i&&"object"==typeof i&&2===arguments.length){for(r in a=e.hasData(t)&&y.call(this,t),s={},i)r!==m(r)?a[r]=i[r]:s[r]=i[r];return y.call(this,t,s),i}return i&&"string"==typeof i&&i!==m(i)&&(a=e.hasData(t)&&y.call(this,t))&&i in a?(arguments.length>2&&(a[i]=n),a[i]):y.apply(this,arguments)},e.fx){var x,k=e.Tween.prototype.run,w=function(e){return e};e.Tween.prototype.run=function(){e.easing[this.easing].length>1&&(this.easing.toString(),e.easing[this.easing]=w),k.apply(this,arguments)},x=e.fx.interval||13,"jQuery.fx.interval is deprecated",t.requestAnimationFrame&&Object.defineProperty(e.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return t.document.hidden,x},set:function(e){x=e}})}var $=e.fn.load,S=e.event.add,C=e.event.fix;e.event.props=[],e.event.fixHooks={},n(e.event.props,"concat",e.event.props.concat),e.event.fix=function(t){var i,n=t.type,a=this.fixHooks[n],s=e.event.props;if(s.length)for(s.join();s.length;)e.event.addProp(s.pop());if(a&&!a._migrated_&&(a._migrated_=!0,(s=a.props)&&s.length))for(;s.length;)e.event.addProp(s.pop());return i=C.call(this,t),a&&a.filter?a.filter(i,t):i},e.event.add=function(e,i){return e===t&&"load"===i&&t.document.readyState,S.apply(this,arguments)},e.each(["load","unload","error"],(function(t,i){e.fn[i]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===i&&"string"==typeof e[0]?$.apply(this,e):(e.splice(0,0,i),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}})),e.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,i){e.fn[i]=function(e,t){return arguments.length>0?this.on(i,null,e,t):this.trigger(i)}})),e((function(){e(t.document).triggerHandler("ready")})),e.event.special.ready={setup:function(){t.document}},e.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}});var T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,I=e.htmlPrefilter,j=function(e){var i=t.document.implementation.createHTMLDocument("");return i.body.innerHTML=e,i.body&&i.body.innerHTML},W=function(e){var t=e.replace(T,"<$1></$2>");t!==e&&(j(e),j(t))};e.UNSAFE_restoreLegacyHtmlPrefilter=function(){e.htmlPrefilter=function(e){return W(e),e.replace(T,"<$1></$2>")}},e.htmlPrefilter=function(e){return W(e),I(e)};var E=e.fn.offset;if(e.fn.offset=function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?E.apply(this,arguments):arguments.length?this:void 0},e.ajax){var D=e.param;e.param=function(t,i){var n=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===i&&n&&(i=n),D.call(this,t,i)}}var B=e.fn.andSelf||e.fn.addBack;if(e.fn.andSelf=function(){return B.apply(this,arguments)},e.Deferred){var z=e.Deferred,H=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]];e.Deferred=function(t){var i=z(),n=i.promise();return i.pipe=n.pipe=function(){var t=arguments;return e.Deferred((function(a){e.each(H,(function(e,s){var r="function"==typeof t[e]&&t[e];i[s[1]]((function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(a.resolve).fail(a.reject).progress(a.notify):a[s[0]+"With"](this===n?a.promise():this,r?[e]:arguments)}))})),t=null})).promise()},t&&t.call(i,i),i},e.Deferred.exceptionHook=z.exceptionHook}return e})),jQuery.event.special.touchstart={setup:function(e,t,i){this.addEventListener("touchstart",i,{passive:!1})}},jQuery.event.special.touchmove={setup:function(e,t,i){this.addEventListener("touchmove",i,{passive:!1})}},jQuery.event.special.wheel={setup:function(e,t,i){this.addEventListener("wheel",i,{passive:!0})}},jQuery.event.special.mousewheel={setup:function(e,t,i){this.addEventListener("mousewheel",i,{passive:!0})}};var console=console||{};console.log=console.log||function(){},console.info=console.info||function(){};var fun_pc=[],fun_pc_large=[],fun_tablet=[],fun_mobile=[];function _instanceof(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}function _classCallCheck(e,t){if(!_instanceof(e,t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),e}app_shop.vars.xhr="",app_shop.getFile=function(e){$.getScript(app_shop.urls.prefix+e+".js")},app_shop.getOuterJS=function(e){for(var t in e)$.getScript(app_shop.urls.prefix+e[t]+".js",(function(){console.log("file: "+e[t])}))},app_shop.run=function(e,t,n,a){if($.isArray(t))for(i in t)app_shop.fnrun[t[i]]||(app_shop.fnrun[t[i]]=[]),app_shop.fnrun[t[i]].push({w:n,fn:e,a:a});else app_shop.fnrun[t]||(app_shop.fnrun[t]=[]),app_shop.fnrun[t].push({w:n,fn:e,a:a})},app_shop.runArr=function(e,t,i){if(e){var n,a;for(n=0,a=e.length;n<a;n++){var s=e[n].w,r=e[n].fn,o=e[n].a;i?s?$(s).size()&&o&&(r(),console.log("mode "+t+":"+s)):o&&(r(),console.log("mode "+t+":"+s)):s?$(s).size()&&(r(),console.log("mode "+t+":"+s)):(r(),console.log("mode "+t+":"+s))}}};var iaiGetAjax=function(){function e(t){_classCallCheck(this,e),this.data={},this.cache={},this.fn=[]}return _createClass(e,[{key:"projector",value:function(){this.data.Projector={format:"json",params:{}},this.fn.push(fn)}},{key:"basket",value:function(e){this.data.Basket={},this.fn.push(e)}},{key:"wishlist",value:function(e){this.data.Wishlist={},this.fn.push(e)}},{key:"comparers",value:function(e){this.data.Comparers={},this.fn.push(e)}},{key:"snippets",value:function(e,t){this.data.Snippets?console.log("Snippets data exist"):this.data.Snippets={format:"json",params:{mobile:t.mobile,tablet:t.tablet,pc:t.pc,request_uri:t.request_uri,additional_ajax:t.additional_ajax}},this.fn.push(e)}},{key:"toplayersAndWidgets",value:function(e,t){this.data.ToplayersAndWidgets?console.log("ToplayersAndWidgets data exist"):this.data.ToplayersAndWidgets={format:"json",params:{mobile:t.mobile,tablet:t.tablet,pc:t.pc,request_uri:t.request_uri,additional_ajax:t.additional_ajax}},this.fn.push(e)}},{key:"hotspot",value:function(e,t){}},{key:"hotspotMain",value:function(e,t){}},{key:"hotspotProjector",value:function(e,t){}},{key:"hotspotSearch",value:function(e,t){}},{key:"init",value:function(){var e="request="+JSON.stringify(this.data),t=this;$.ajax({type:"POST",url:"/ajax/get.php",dataType:"JSON",data:e,success:function(e){t.cache=e,t.fn.forEac
6h((function(e){e(t.cache)}))},error:function(){}})}}]),e}(),iaiGet=new iaiGetAjax;app_shop.fn.change_url=function(e){history.pushState&&history.pushState({foo:"bar"},"",decodeURIComponent(e))},app_shop.fn.evalJSFromHtml=function(e){var t=document.createElement("div");t.innerHTML=e;for(var i=t.getElementsByTagName("script"),n=[],a=0;a<i.length;++a)"SCRIPT"!==i[a].tagName||"ajaxLoad"!=i[a].className&&"ajaxLoad"!=i[a].parentNode.className||n.push(i[a]);$("body").append(n)},app_shop.fn.load=function(e,t,i,n){app_shop.vars.xhr&&4!=app_shop.vars.xhr.readystate&&app_shop.vars.xhr.abort(),$(t).addClass("load-content");for(var a=0;t.length>a;a++)$(t[a][0]).addClass("load-content");app_shop.vars.xhr=$.ajax({url:e+n,timeout:16e3,success:function(n,a){for(var s=0;t.length>s;s++)$(t[s][0]).removeClass("load-content").html($(n).find(t[s][1]).html());app_shop.fn.change_url(e),app_shop.fn.evalJSFromHtml(n),i&&i()},error:function(t){window.location.href=e}})},app_shop.fn.variety=function(e,t,i){return 1==e?t:i},app_shop.fn.setGrid=function(){1==app_shop.vars.view?$(".setMobileGrid").each((function(){var e=$
6(this).data("item");$(e).before('<del class="domHandler" data-item="'+e+'" style="display:none">'),$(this).append($(e))})):$(".domHandler").each((function(){var e=$(this).data("item");$(this).after($(e)),$(this).remove()}))},app_shop.fn.runAjaxFn=function(){app_shop.vars.view=Math.round($("#viewType").width());app_shop.vars.view;if(app_shop.runArr(app_shop.fnrun.all,"all",!0),!app_shop.vars.view)return!1;app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view,!0)},app_shop.runApp=function(){app_shop.vars.view=Math.round($("#viewType").width());var e=app_shop.vars.view;if(app_shop.runArr(app_shop.fnrun.all,"all"),!app_shop.vars.view)return!1;app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view),app_shop.fn.setGrid(),$(window).off("resize.view"),$(window).on("resize.view",(function(){app_shop.vars.view=Math.round($("#viewType").width()),app_shop.vars.view!=e&&(e=app_shop.vars.view,app_shop.runArr(app_shop.fnrun[app_shop.vars.view],app_shop.vars.view),app_shop.fn.setGrid())})),app_shop.getOuterJS(app_shop.files),iaiGet.init()},app_shop.fn.getRwdSrc=function(e){var t=[e.data("src_mobile"),e.data("src_tablet"),e.data("src_desktop"),e.data("src_desktop")],i=t[app_shop.vars.view-1];return i||(t=t.join(" ").split(" ")).length&&(i=1==app_shop.vars.view?t[0]:t.pop()),i},app_shop.fn.rwdBanner=function(e,t){for(i in t)app_shop.run((function(){$(e).find("img.rwd-src").each((function(){$this=$(this),$this.attr("src",app_shop.fn.getRwdSrc($this))}))}),t[i],e)},function(e){e.fn.iai_align=function(){return this.each((function(){if(e(this).data("align")){var t=e(this).data("align").split("|"),n="",a=0,s=e(this);for(i in t)if(option=t[i].split("#"),n=option[0],"px"==(option[1]||"px")){a=Math.max.apply(null,s.find(n).map((function(){return e(this).outerHeight()})).get());s.find(n).css("min-height",a)}else s.find(n).each((function(){e(this).wrap('<div style="display: table;width:100%;height:100%;table-layout: fixed;"><div style="display: table-cell;vertical-align: middle;min-height:100%">')}))}}))}}(jQuery),String.prototype.format=function(){var e,t=this;for(e in arguments)t=t.replace(/%[a-z]/,arguments[e]);return t},app_shop.fn.news_data=function(e){var t="";if(!e.data||!(t=e.data.split("-"))||t.length<3)return!1;var i=e.format||"%d-%m-%y";return e.month_names&&(t[1]=e.month_names[parseInt(t[1])-1]),i.format(t[2],t[1],t[0])},function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}((function(e){"use strict";var t=window.Slick||{};(t=function(){var t=0;return function(i,n){var a,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(i),appendDots:e(i),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return e('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.focussed=!1,s.interrupted=!1,s.hidden="hidden",s.paused=!0,s.positionProp=null,
vendor: 7,356 bytes, line 6
6s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=e(i),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,a=e(i).data("slick")||{},s.options=e.extend({},s.defaults,n,a),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,void 0!==document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=e.proxy(s.autoPlay,s),s.autoPlayClear=e.proxy(s.autoPlayClear,s),s.autoPlayIterator=e.proxy(s.autoPlayIterator,s),s.changeSlide=e.proxy(s.changeSlide,s),s.clickHandler=e.proxy(s.clickHandler,s),s.selectHandler=e.proxy(s.selectHandler,s),s.setPosition=e.proxy(s.setPosition,s),s.swipeHandler=e.proxy(s.swipeHandler,s),s.dragHandler=e.proxy(s.dragHandler,s),s.keyHandler=e.proxy(s.keyHandler,s),s.instanceUid=t++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0)}}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,i,n){var a=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=a.slideCount)return!1;a.unload(),"number"==typeof i?0===i&&0===a.$slides.length?e(t).appendTo(a.$slideTrack):n?e(t).insertBefore(a.$slides.eq(i)):e(t).insertAfter(a.$slides.eq(i)):!0===n?e(t).prependTo(a.$slideTrack):e(t).appendTo(a.$slideTrack),a.$slides=a.$slideTrack.children(this.options.slide),a.$slideTrack.children(this.options.slide).detach(),a.$slideTrack.append(a.$slides),a.$slides.each((function(t,i){e(i).attr("data-slick-index",t)})),a.$slidesCache=a.$slides,a.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,i){var n={},a=this;a.animateHeight(),!0===a.options.rtl&&!1===a.options.vertical&&(t=-t),!1===a.transformsEnabled?!1===a.options.vertical?a.$slideTrack.animate({left:t},a.options.speed,a.options.easing,i):a.$slideTrack.animate({top:t},a.options.speed,a.options.easing,i):!1===a.cssTransitions?(!0===a.options.rtl&&(a.currentLeft=-a.currentLeft),e({animStart:a.currentLeft}).animate({animStart:t},{duration:a.options.speed,easing:a.options.easing,step:function(e){e=Math.ceil(e),!1===a.options.vertical?(n[a.animType]="translate("+e+"px, 0px)",a.$slideTrack.css(n)):(n[a.animType]="translate(0px,"+e+"px)",a.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(a.applyTransition(),t=Math.ceil(t),!1===a.options.vertical?n[a.animType]="translate3d("+t+"px, 0px, 0px)":n[a.animType]="translate3d(0px,"+t+"px, 0px)",a.$slideTrack.css(n),i&&setTimeout((function(){a.disableTransition(),i.call()}),a.options.speed))},t.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=e(t).not(this.$slider)),t},t.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=e(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)}))},t.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,i,n=this;if(!0===n.options.dots){for(n.$slider.addClass("slick-dotted"),i=e("<ul />").addClass(n.options.dotsClass),t=0;t<=n.getDotCount();t+=1)i.append(e("<li />").append(n.options.customPaging.call(this,n,t)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(t,i){e(i).attr("data-slick-index",t).data("originalStyling",e(i).attr("style")||"")})),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,i,n,a,s,r,o=this;if(n=document.createDocumentFragment(),s=o.$slider.children(),o.options.rows>1){for(r=o.options.slidesPerRow*o.options.rows,a=Math.ceil(s.length/r),e=0;e<a;e++){var l=document.createElement("div");for(t=0;t<o.options.rows;t++){var c=document.createElement("div");for(i=0;i<o.options.slidesPerRow;i++){var p=e*r+(t*o.options.slidesPerRow+i);s.get(p)&&c.appendChild(s.get(p))}l.appendChild(c)}n.appendChild(l)}o.$slider.empty().append(n),o.$slider.children().children().children().css({width:100/o.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,i){var n,a,s,r=this,o=!1,l=r.$slider.width(),c=window.innerWidth||e(window).width();if("window"===r.respondTo?s=c:"slider"===r.respondTo?s=l:"min"===r.respondTo&&(s=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(n in a=null,r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(!1===r.originalSettings.mobileFirst?s<r.breakpoints[n]&&(a=r.breakpoints[n]):s>r.breakpoints[n]&&(a=r.breakpoints[n]));null!==a?null!==r.activeBreakpoint?(a!==r.activeBreakpoint||i)&&(r.activeBreakpoint=a,"unslick"===r.breakpointSettings[a]?r.unsl
6ick(a):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[a]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=a):(r.activeBreakpoint=a,"unslick"===r.breakpointSettings[a]?r.unslick(a):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[a]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=a):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=a),t||!1===o||r.$slider.trigger("breakpoint",[r,o])}},t.prototype.changeSlide=function(t,i){var n,a,s=this,r=e(t.currentTarget);switch(r.is("a")&&t.preventDefault(),r.is("li")||(r=r.closest("li")),n=s.slideCount%s.options.slidesToScroll!=0?0:(s.slideCount-s.currentSlide)%s.options.slidesToScroll,t.data.message){case"previous":a=0===n?s.options.slidesToScroll:s.options.slidesToShow-n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide-a,!1,i);break;case"next":a=0===n?s.options.slidesToScroll:n,s.slideCount>s.options.slidesToShow&&s.slideHandler(s.currentSlide+a,!1,i);break;case"index":var o=0===t.data.index?0:t.data.index||r.index()*s.options.slidesToScroll;s.slideHandler(s.checkNavigable(o),!1,i),r.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,i;if(i=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var n in t){if(e<t[n]){e=i;break}i=t[n]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.
6slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>1&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),e(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){e(this).attr("style",e(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,t||i.$slider.trigger("destroy",[i])},t.prototype.disableTransition=function(e){var t=this,i={};i[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},t.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout((function(){i.disableTransition(e),t.call()}),i.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(i){i.stopImmediatePropagation();var n=e(this);setTimeout((function(){t.options.pauseOnFocus&&(t.focussed=n.is(":focus"),t.autoPlay())}),0)}))},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,i=0,n=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++n;else for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)n=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else n=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return n-1},t.prototype.getLeft=function(e){var t,i,n,a,s=this,r=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,a=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?a=-1.5:1===s.options.slidesToShow&&(a=-2)),r=i*s.options.slidesToShow*a),s.slideCount%s.options.slidesToScroll!=0&&e+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(e>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(e-s.slideCount))*s.slideWidth*-1,r=(s.options.slidesToShow-(e-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,r=s.slideCount%s.options.slidesToScroll*i*-1))):e+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(e+s.options.slidesToShow-s.slideCount)*s.slideWidth,r=(e+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,r=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),t=!1===s.options.vertical?e*s.slideWidth*-1+s.slideOffset:e*i*-1+r,!0===s.options.variableWidth&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow),t=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===s.options.centerMode&&(n=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow+1),t=!0===s.options.rtl?n[0]?-1*(s.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,t+=(s.$list.width()-n.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,i=0,n=0,a=[];for(!1===t.options.infinite?e=t.slideCount:(i=-1*t.options.slidesToScroll,n=-1*t.options.slidesToScroll,e=2*t.slideCount);i<e;)a.push(i),i=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return a},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,i,n=this;return i=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each((function(a,s){if(s.offsetLeft-i+e(s).outerWidth()/2>-1*n.swipeLeft)return t=s,!1})),Math.abs(e(t).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:
6parseInt(e)}},t)},t.prototype.init=function(t){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),t&&i.$slider.trigger("init",[i]),!0===i.options.accessibility&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},t.prototype.initADA=function(){var t=this,i=Math.ceil(t.slideCount/t.options.slidesToShow),n=t.getNavigableIndexes().filter((function(e){return e>=0&&e<t.slideCount}));t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each((function(i){var a=n.indexOf(i);e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+i,tabindex:-1}),-1!==a&&e(this).attr({"aria-describedby":"slick-slide-control"+t.instanceUid+a})})),t.$dots.attr("role","tablist").find("li").each((function(a){var s=n[a];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+a,"aria-controls":"slick-slide"+t.instanceUid+s,"aria-label":a+1+" of "+i,"aria-selected":null,tabindex:"-1"})})).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var a=t.currentSlide,s=a+t.options.slidesToShow;a<s;a++)t.$slides.eq(a).attr("tabindex",0);t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
6,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each((function(){var t=e(this),i=e(this).attr("data-lazy"),n=e(this).attr("data-srcset"),a=e(this).attr("data-sizes")||s.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){t.animate({opacity:0}
vendor: 7,114 bytes, line 6
6,100,(function(){n&&(t.attr("srcset",n),a&&t.attr("sizes",a)),t.attr("src",i).animate({opacity:1},200,(function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),s.$slider.trigger("lazyLoaded",[s,t,i])}))},r.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,t,i])},r.src=i}))}var i,n,a,s=this;if(!0===s.options.centerMode?!0===s.options.infinite?a=(n=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(n=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),a=s.options.slidesToShow/2+1+2+s.currentSlide):(n=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,a=Math.ceil(n+s.options.slidesToShow),!0===s.options.fade&&(n>0&&n--,a<=s.slideCount&&a++)),i=s.$slider.find(".slick-slide").slice(n,a),"anticipated"===s.options.lazyLoad)for(var r=n-1,o=a,l=s.$slider.find(".slick-slide"),c=0;c<s.options.slidesToScroll;c++)r<0&&(r=s.slideCount-1),i=(i=i.add(l.eq(r))).add(l.eq(o)),r--,o++;t(i),s.slideCount<=s.options.slidesToShow?t(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?t(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&t(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var i=this;i.unslicked||(i.$slider.trigger("afterChange",[i,t]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),!0===i.options.accessibility&&(i.initADA(),i.options.focusOnChange&&e(i.$slides.get(i.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var i,n,a,s,r,o=this,l=e("img[data-lazy]",o.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),a=i.attr("data-srcset"),s=i.attr("data-sizes")||o.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){a&&(i.attr("srcset",a),s&&i.attr("sizes",s)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,i,n]),o.progressiveLazyLoad()},r.onerror=function(){t<3?setTimeout((function(){o.progressiveLazyLoad(t+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,i,n]),o.progressiveLazyLoad())},r.src=n):o.$slider.trigger("allImagesLoaded",[o])},t.prototype.refresh=function(t){var i,n,a=this;n=a.slideCount-a.options.slidesToShow,!a.options.infinite&&a.currentSlide>n&&(a.currentSlide=n),a.slideCount<=a.options.slidesToShow&&(a.currentSlide=0),i=a.currentSlide,a.destroy(!0),e.extend(a,a.initials,{currentSlide:i}),a.init(),t||a.changeSlide({data:{message:"index",index:i}},!1)},t.prototype.registerBreakpoints=function(){var t,i,n,a=this,s=a.options.responsive||null;if("array"===e.type(s)&&s.length){for(t in a.respondTo=a.options.respondTo||"window",s)if(n=a.breakpoints.length-1,s.hasOwnProperty(t)){for(i=s[t].breakpoint;n>=0;)a.breakpoints[n]&&a.breakpoints[n]===i&&a.breakpoints.splice(n,1),n--;a.breakpoints.push(i),a.breakpointSettings[i]=s[t].settings}a.breakpoints.sort((function(e,t){return a.options.mobileFirst?e-t:t-e}))}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,i){var n=this;if(e="boolean"==typeof e?!0===(t=e)?0:n.slideCount-1:!0===t?--e:e,n.slideCount<1||e<0||e>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(e).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},t.prototype.setCSS=function(e){var t,i,n=this,a={};!0===n.options.rtl&&(e=-e),t="left"==n.positionProp?Math.ceil(e)+"px":"0px",i="top"==n.positionProp?Math.ceil(e)+"px":"0px",a[n.positionProp]=e,!1===n.transformsEnabled?n.$slideTrack.css(a):(a={},!1===n.cssTransitions?(a[n.animType]="translate("+t+", "+i+")",n.$slideTrack.css(a)):(a[n.animType]="translate3d("+t+", "+i+", 0px)",n.$slideTrack.css(a)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,i=this;i.$slides.each((function(n,a){t=i.slideWidth*n*-1,!0===i.options.rtl?e(a).css({position:"relative",right:t,top:0,zIndex:i.options.zIndex-2,opacity:0}
6):e(a).css({position:"relative",left:t,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,i,n,a,s,r=this,o=!1;if("object"===e.type(arguments[0])?(n=arguments[0],o=arguments[1],s="multiple"):"string"===e.type(arguments[0])&&(n=arguments[0],a=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?s="responsive":void 0!==arguments[1]&&(s="single")),"single"===s)r.options[n]=a;else if("multiple"===s)e.each(n,(function(e,t){r.options[e]=t}));else if("responsive"===s)for(i in a)if("array"!==e.type(r.options.responsive))r.options.responsive=[a[i]];else{for(t=r.options.responsive.length-1;t>=0;)r.options.responsive[t].breakpoint===a[i].breakpoint&&r.options.responsive.splice(t,1),t--;r.options.responsive.push(a[i])}o&&(r.unload(),r.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,i,n,a,s=this;if(i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(e).addClass("slick-current"),!0===s.options.centerMode){var r=s.options.slidesToShow%2==0?1:0;t=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(e>=t&&e<=s.slideCount-1-t?s.$slides.slice(e-t+r,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(n=s.options.slidesToShow+e,i.slice(n-t+1+r,n+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):e===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=s.slideCount-s.options.slidesToShow?s.$slides.slice(e,e+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(a=s.slideCount%s.options.slidesToShow,n=!0===s.options.infinite?s.options.slidesToShow+e:e,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-e<s.options.slidesToShow?i.slice(n-(s.options.slidesToShow-a),n+a).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},t.prototype.setupInfinite=function(){var t,i,n,a=this;if(!0===a.options.fade&&(a.options.centerMode=!1),!0===a.options.infinite&&!1===a.options.fade&&(i=null,a.slideCount>a.options.slidesToShow)){for(n=!0===a.options.centerMode?a.options.slidesToShow+1:a.options.slidesToShow,t=a.slideCount;t>a.slideCount-n;t-=1)i=t-1,e(a.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-a.slideCount).prependTo(a.$slideTrack).addClass("slick-cloned");for(t=0;t<n+a.slideCount;t+=1)i=t,e(a.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+a.slideCount).appendTo(a.$slideTrack).addClass("slick-cloned");a.$slideTrack.find(".slick-cloned").find("[id]").each((function(){e(this).attr("id","")}))}},t.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},t.prototype.selectHandler=function(t){var i=this,n=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),a=parseInt(n.attr("data-slick-index"));a||(a=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(a,!1,!0):i.slideHandler(a)},t.prototype.slideHandler=function(e,t,i){var n,a,s,r,o,l=null,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),n=e,l=c.getLeft(n),r=c.getLeft(c.
6currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,(function(){c.postSlide(n)})):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,(function(){c.postSlide(n)})):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),a=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,a]),s=c.currentSlide,c.currentSlide=a,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(o=(o=c.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(s),c.fadeSlide(a,(function(){c.postSlide(a)}))):c.postSlide(a),void c.animateHeight();!0!==i?c.animateSlide(l,(function(){c.postSlide(a)})):c.postSlide(a)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,i,n,a=this;return e=a.touchObject.startX-a.touchObject.curX,t=a.touchObject.startY-a.touchObject.curY,i=Math.atan2(t,e),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?!1===a.options.rtl?"left":"right":n>=135&&n<=225?!1===a.options.rtl?"right":"left":!0===a.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(e){var t,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,i,n,a,s,r,o=this;return s=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!o.dragging||o.scrolling||s&&1!==s.length)&&(t=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,o.touchObject.curY=void 0!==s?s[0].pageY:e.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2))),!o.options.verticalSwiping&&!o.swiping&&r>4?(o.scrolling=!0,!1):(!0===o.options.verticalSwiping&&(o.touchObject.swipeLength=r),i=o.swipeDirection(),void 0!==e.originalEvent&&o.touchObject.swipeLength>4&&(o.swiping=!0,e.preventDefault()),a=(!1===o.options.rtl?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),!0===o.options.verticalSwiping&&(a=o.touchObject.curY>o.touchObject.startY?1:-1),n=o.touchObject.swipeLength,o.touchObject.edgeHit=!1,!1===o.options.infinite&&(0===o.currentSlide&&"right"===i||o.currentSlide>=o.getDotCount()&&"left"===i)&&(n=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),!1===o.options.vertical?o.swipeLeft=t+n*a:o.swipeLeft=t+n*(o.$list.height()/o.listWidth)*a,!0===o.options.verticalSwiping&&(o.swipeLeft=t+n*a),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))))},t.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
6,t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,i,n=this,a=arguments[0],s=Array.prototype.slice.call(arguments,1),r=n.length;for(e=0;e<r;e++)if("object"==typeof a||void 0===a?n[e].slick=new t(n[e],a):i=n[e].slick[a].apply(n[e].slick,s),void 0!==i)return i;return n}}));var centerImage=function(e,t,i){var n=[];$(e).each((function(e){var a=new Image;a.src=$(this).attr("src"),n[e]=$(this),elementHeight=0,a.complete?(elementHeight=n[e].is(":visible")?n[e].height():a.height,elementHeight>t?n[e].css("max-height",t):n[e].css({"background-color":i,"padding-top":(t-elementHeight)/2,"padding-bottom":(t-elementHeight)/2})):a.onload=function(){elementHeight=n[e].is(":visible")?n[e].height():a.height,elementHeight>t?n[e].css("max-height",t):n[e].css({"background-color":i,"padding-top":(t-elementHeight)/2,"padding-bottom":(t-elementHeight)/2})}}))};function parseURLParams(e){var t={},i=e.indexOf("?")+1,n=e.indexOf("#")+1||e.length+1,a=e.slice(i,n-1);if(a===e||""===a)return t;for(var s=a.replace(/\+/g," ").split("&"),r=0;r<s.length;r++){var o=s[r].split("="),l=decodeURIComponent(o[0]),c=decodeURIComponent(o[1]);l in t||(t[l]=[]),t[l].push(2===o.length?c:null)}return t}jQuery.cookie=function(e,t,i){if(arguments.length>1&&"[object Object]"!==String(t)){if(i=jQuery.extend({},i),null==t&&(i.expires=-1),"number"==typeof i.expires){var n=i.expires,a=i.expires=new Date;a.setDate(a.getDate()+n)}return t=String(t),document.cookie=[encodeURIComponent(e),"=",i.raw?t:encodeURIComponent(t),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}var s,r=(i=t||{}).raw?function(e){return e}:decodeURIComponent;return(s=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?r(s[1]):null},function(e){"use strict";function t(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function i(e,i,n,a,s,r){return t(function(e,t){return e<<t|e>>>32-t}(t(t(i,e),t(a,r)),s),n)}function n(e,t,n,a,s,r,o){return i(t&n|~t&a,e,t,s,r,o)}function a(e,t,n,a,s,r,o){return i(t&a|n&~a,e,t,s,r,o)}function s(e,t,n,a,s,r,o){return i(t^n^a,e,t,s,r,o)}function r(e,t,n,a,s,r,o){return i(n^(t|~a),e,t,s,r,o)}function o(e,i){e[i>>5]|=128<<i%32,e[14+(i+64>>>9<<4)]=i;var o,l,c,p,d,u=1732584193,h=-271733879,_=-1732584194,f=271733878;for(o=0;o<e.length;o+=16)l=u,c=h,p=_,d=f,h=r(h=r(h=r(h=r(h=s(h=s(h=s(h=s(h=a(h=a(h=a(h=a(h=n(h=n(h=n(h=n(h,_=n(_,f=n(f,u=n(u,h,_,f,e[o],7,-680876936),h,_,e[o+1],12,-389564586),u,h,e[o+2],17,606105819),f,u,e[o+3],22,-1044525330),_=n(_,f=n(f,u=n(u,h,_,f,e[o+4],7,-176418897),h,_,e[o+5],12,1200080426),u,h,e[o+6],17,-1473231341),f,u,e[o+7],22,-45705983),_=n(_,f=n(f,u=n(u,h,_,f,e[o+8],7,1770035416),h,_,e[o+9],12,-1958414417),u,h,e[o+10],17,-42063),f,u,e[o+11],22,-1990404162),_=n(_,f=n(f,u=n(u,h,_,f,e[o+12],7,1804603682),h,_,e[o+13],12,-40341101),u,h,e[o+14],17,-1502002290),f,u,e[o+15],22,1236535329),_=a(_,f=a(f,u=a(u,h,_,f,e[o+1],5,-165796510),h,_,e[o+6],9,-1069501632),u,h,e[o+11],14,643717713),f,u,e[o],20,-373897302),_=a(_,f=a(f,u=a(u,h,_,f,e[o+5],5,-701558691),h,_,e[o+10],9,38016083),u,h,e[o+15],14,-660478335),f,u,e[o+4],20,-405537848),_=a(_,f=a(f,u=a(u,h,_,f,e[o+9],5,568446438),h,_,e[o+14],9,-1019803690),u,h,e[o+3],14,-187363961),f,u,e[o+8],20,1163531501),_=a(_,f=a(f,u=a(u,h,_,f,e[o+13],5,-1444681467),h,_,e[o+2],9,-51403784),u,h,e[o+7],14,1735328473),f,u,e[o+12],20,-1926607734),_=s(_,f=s(f,u=s(u,h,_,f,e[o+5],4,-378558),h,_,e[o+8],11,-2022574463),u,h,e[o+11],16,1839030562),f,u,e[o+14],23,-35309556),_=s(_,f=s(f,u=s(u,h,_,f,e[o+1],4,-1530992060),h,_,e[o+4],11,1272893353),u,h,e[o+7],16,-155497632),f,u,e[o+10],23,-1094730640),_=s(_,f=s(f,u=s(u,h,_,f,e[o+13],4,681279174),h,_,e[o],11,-358537222),u,h,e[o+3],16,-722521979),f,u,e[o+6],23,76029189),_=s(_,f=s(f,u=s(u,h,_,f,e[o+9],4,-640364487),h,_,e[o+12],11,-421815835),u,h,e[o+15],16,530742520),f,u,e[o+2],23,-995338651),_=r(_,f=r(f,u=r(u,h,_,f,e[o],6,-198630844),h,_,e[o+7],10,1126891415),u,h,e[o+14],15,-1416354905),f,u,e[o+5],21,-57434055),_=r(_,f=r(f,u=r(u,h,_,f,e[o+12],6,1700485571),h,_,e[o+3],10,-1894986606),u,h,e[o+10],15,-1051523),f,u,e[o+1],21,-2054922799),_=r(_,f=r(f,u=r(u,h,_,f,e[o+8],6,1873313359),h,_,e[o+15],10,-30611744),u,h,e[o+6],15,-1560198380),f,u,e[o+13],21,1309151649),_=r(_,f=r(f,u=r(u,h,_,f,e[o+4],6,-145523070),h,_,e[o+11],10,-1120210379),u,h,e[o+2],15,718787259),f,u,e[o+9],21,-343485551),u=t(u,l),h=t(h,c),_=t(_,p),f=t(f,d);return[u,h,_,f]}function l(e){var t,i="",n=32*e.length;for(t=0;t<n;t+=8)i+=String.fromCharCode(e[t>>5]>>>t%32&255);return i}function c(e){var t,i=[];for(i[(e.length>>2)-1]=void 0,t=0;t<i.length;t+=1)i[t]=0;var n=8*e.length;for(t=0;t<n;t+=8)i[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return i}function p(e){var t,i,n="";for(i=0;i<e.length;i+=1)t=e.charCodeAt(i),n+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return n}function d(e){return unescape(encodeURIComponent(e))}function u(e){return function(e){return l(o(c(e),8*e.length))}(d(e))}function h(e,t){return function(e,t){var i,n,a=c(e),s=[],r=[];for(s[15]=r[15]=void 0,a.length>16&&(a=o(a,8*e.length)),i=0;i<16;i+=1)s[i]=909522486^a[i],r[i]=1549556828^a[i];return n=o(s.concat(c(t)),512+8*t.length),l(o(r.concat(n),640))}(d(e),d(t))}function _(e,t,i){return t?i?h(t,e):function(e,t){return p(h(e,t))}(t,e):i?u(e):function(e){return p(u(e))}(e)}"function"==typeof define&&define.amd?define((function(){return _})):"object"==typeof module&&module.exports?module.exports=_:e.md5=_}(window),window.format_price=function(e,t){var i=e,n=(t=t||{}).mask||"###&nbsp;##0,00";currency_grouping_separator&&(n=n.replace(",",currency_grouping_separator)),currency_decimal_separator&&(n=n.replace(".",currency_decimal_separator));var a=t.currency||"",s=t.currency_space?" ":"",r=!!t.currency_before_price;if(!n||isNaN(+i))return i;var o=(i="-"==n.charAt(0)?-i:+i)<0?i=-i:0,l=n.match(/[^\d\-\+#]/g),c=l&&l[l.length-1]||".",p=l&&l[1]&&l[0]||",";n=n.split(c);i=+(i=i.toFixed(n[1]&&n[1].length))+"";var d=n[1]&&n[1].lastIndexOf("0"),u=i.split(".");(!u[1]||u[1]&&u[1].length<=d)&&(i=(+i).toFixed(d+1));var h=n[0].split(p);n[0]=h.join("");var _=n[0]&&n[0].indexOf("0");if(_>-1)for(;u[0].length<n[0].length-_;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");(i=i.split("."))[0]=u[0];var f=h[1]&&h[h.length-1].length;if(f){for(var m=i[0],g="",v=m.length%f,b=0,y=m.length;b<y;b++)g+=m.charAt(b),!((b-v+1)%f)&&b<y-f&&(g+=p);i[0]=g}i[1]=n[1]&&i[1]?c+i[1]:"";e=(o?"-":"")+i[0]+i[1];return e=r?a+s+e:e+s+a},function(e){"use strict";var t='[data-toggle="dropdown"]',i=function(t){e(t).on("click.bs.dropdown",this.toggle)};function n(t){var i=t.attr("data-target");i||(i=(i=t.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&e(i);return n&&n.length?n:t.parent()}function a(i){i&&3===i.which||(e(".dropdown-backdrop").remove(),e(t).each((function(){var t=e(this),a=n(t),s={relatedTarget:this};a.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&e.contains(a[0],i.target)||(a.trigger(i=e.Event("hide.bs.dropdown",s)),i.isDefaultPrevented()||(t.attr("aria-expanded","fal
6se"),a.removeClass("open").trigger(e.Event("hidden.bs.dropdown",s)))))})))}i.VERSION="3.3.6",i.prototype.toggle=function(t){var i=e(this);if(!i.is(".disabled, :disabled")){var s=n(i),r=s.hasClass("open");if(a(),!r){"ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",a);var o={relatedTarget:this};if(s.trigger(t=e.Event("show.bs.dropdown",o)),t.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),s.toggleClass("open").trigger(e.Event("shown.bs.dropdown",o))}return!1}},i.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var a=e(this);if(i.preventDefault(),i.stopPropagation(),!a.is(".disabled, :disabled")){var s=n(a),r=s.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&s.find(t).trigger("focus"),a.trigger("click");var o=s.find(".dropdown-menu li:not(.disabled):visible a");if(o.length){var l=o.index(i.target);38==i.which&&l>0&&l--,40==i.which&&l<o.length-1&&l++,~l||(l=0),o.eq(l).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=function(t){return this.each((function(){var n=e(this),a=n.data("bs.dropdown");a||n.data("bs.dropdown",a=new i(this)),"string"==typeof t&&a[t].call(n)}))},e.fn.dropdown.Constructor=i,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",(function(e){e.stopPropagation()})).on("click.bs.dropdown.data-api",t,i.prototype.toggle).on("keydown.bs.dropdown.data-api",t,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t():"function"==typeof define&&define.amd?define(t):t()}(0,(function(){"use strict";function e(e){var t=this.constructor;return this.then((function(i){return t.resolve(e()).then((function(){return i}))}),(function(i){return t.resolve(e()).then((function(){return t.reject(i)}))}))}function t(){}function i(e){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],o(e,this)}function n(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var i=1===e._state?t.onFulfilled:t.onRejected;if(null!==i){var n;try{n=i(e._value)}catch(e){return void s(t.promise,e)}a(t.promise,n)}else(1===e._state?a:s)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void r(e);if("function"==typeof n)return void o(function(e,t){return function(){e.apply(t,arguments)}}(n,t),e)}e._state=1,e._value=t,r(e)}catch(t){s(e,t)}}function s(e,t){e._state=2,e._value=t,r(e)}function r(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,a=e._deferreds.length;a>t;t++)n(e,e._deferreds[t]);e._deferreds=null}function o(e,t){var i=!1;try{e((function(e){i||(i=!0,a(t,e))}),(function(e){i||(i=!0,s(t,e))}))}catch(e){if(i)return;i=!0,s(t,e)}}var l=setTimeout;i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,i){var a=new this.constructor(t);return n(this,new function(e,t,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=i}(e,i,a)),a},i.prototype.finally=e,i.all=function(e){return new i((function(t,i){function n(e,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var o=r.then;if("function"==typeof o)return void o.call(r,(function(t){n(e,t)}),i)}a[e]=r,0==--s&&t(a)}catch(e){i(e)}}if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);for(var s=a.length,r=0;a.length>r;r++)n(r,a[r])}))},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,i){i(e)}))},i.race=function(e){return new i((function(t,i){for(var n=0,a=e.length;a>n;n++)e[n].then(t,i)}))},i._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){l(e,0)},i._unhandledRejectionFn=function(e){void 0!==console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var c=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();"Promise"in c?c.Promise.prototype.finally||(c.Promise.prototype.finally=e):c.Promise=i}));var projectorv3_disable_ajax=projectorv3_disable_ajax||1,projectorClass=function(){classObj=this,this.currency="",this.curr_class="",this.firstRun=!0,this.onDisableAlert=!0,this.timeoutAjax=18e3,this.errorMsg=[],this.currentSizeObj={},this.configObj={},this.action="",this.innerHTML="",this.nettoPrice="net"===app_shop.vars.priceType,this.options=[],this.options.hide_unit=!1,this.options.friendly_shipping_format=[],this.options.endStartFunction=function(){},this.options.endInitFunction=function(){},this.options.beginStartFunction=function(){},this.options.endShippingFunction=function(){},this.options.formatPrice=function(e){},this.externalFormatFn=!1,this.options.endGetAjaxProductDataFunction=function(){},this.options.clearXMLGetAjaxProductDataFunction=function(e){},this.options.beginGetAjaxProductDataFunction=function(){},this.options.endSetCurrentSizeFunction=function(){},this.options.ajaxAddFunction=function(e){classObj.alert(classObj.txt.dodano_produkt)},this.options.contenersPrefix="projector_",this.options.curr_before_price=!1,this.options.choiceSize=!1,this.options.contact_link="/contact.php",this.options.hoursBeforeOrderBy=3,this.isStarted=!1,this.prefix=this.options.contenersPrefix,this.actions={},this.txt=[],this.txt.oszczedzasz="Oszczędzasz ",this.txt.taniej="%, czyli ",this.txt.wzestawie=" kupując w zestawie",this.txt.niedostepny="Produkt niedostępny",this.txt.tylkotel="Cena na telefon. Skontaktuj się ze sprzedawcą",this.txt.tylko_punkty="Towar dostępny tylko w programie lojalnościowym.",this.txt.gratis="Dostawa gratis!",this.txt.gratis_produkt="Gratis!",this.txt.niemastanu="Produkt niedostępny",this.txt.status_24="24 godz.",this.txt.status_48="48 godz.",this.txt.status_natychmiast="w ciągu 24h",this.txt.day=" dzień ",this.txt.days=" dni ",this.txt.hour=" godz. ",this.txt.hours=" godz. ",this.txt.min=" min ",this.txt.mins=" min ",this.txt.za=" za ",this.txt.proc="%",this.txt.wybrany_rozmiar="Rozmiar",this.txt.wysylka="Wysyłka ",this.txt.wysylka_za="Wysyłka w ciągu ",this.txt.dostepny="Dostawa ",this.txt.dostepny_za="Dostawa za ",this.txt.pkt="pkt.",this.txt.status_full="większa ilość",this.txt.status_amount_null="brak w magazynie",this.txt.forpointsonly="Produkt możesz kupić za punkty",this.txt.disable_desc="Skontaktuj się z nami",this.txt.choiceSize="Wybierz rozmiar",this.txt.maksymalnie="Maksymalnie możesz zamówić",this.txt.minimalnie="Minimalnie możesz zamówić",this.txt.brak_magazyn="Brak na magazynie",this.txt.dodano_produkt="Produkt został dodany.",this.txt.dodano_produkt_blad="Wystąpił błąd podczas dodawania produktu.",this.txt.ilosc_mm="",this.txt.ilosc_mo="",this.txt.ilosc_mo_inf="",this.txt.infinity="",this.txt.koszt_od="Koszt od ",this.txt.wysylka_total_begin="<br/>(z tow. z koszyka ",this.txt.wysylka_total_end=")",this.txt.nawias_end="",this.txt.amount="",this.txt.order_by="Zamów do ",this.txt.it_will_ship_today=" to wyślemy dzisiaj";var e=!0;this.isset=function(e){return void 0!==window[e]},this.getAttr=function(e,t){return e.is("["+t+"]")?e.attr(t):""},this.getData=function(e){try{return e}catch(e){}},this.getIndex=function(e,t){var i=0;for(var n in e){if(t===i)return n;i++}return null},this.formatPrice=function(e,t,i,n,a){return currency=i||this.currentSizeObj.currency,a=!!a,t&&(this.configObj.rebateNumber&&a&&(e=this.configObj.rebateNumber.price),e*=this.configObj.valueOfNumberInput),n?e:this.externalFormatFn?this.options.formatPrice({price:e,currency:currency}):this.options.curr_before_price?'<span class="projector_price"><span class="projector_currency">'+currency+"</span>"+(1*e).toFixed(2)+"</span>":'<span class="projector_price">'+(1*e).toFixed(2)+'<span class="projector_currency">'+currency+"</span></span>"},this.status_description=function(){if($("#"+this.prefix+"status_gfx").hide(),$("#"+this.prefix+"status").addClass("--status-hide"),this.currentSizeObj.amount_mm&&this.currentSizeObj.amount_mo&&""!=this.txt.ilosc_mm){var e=this.currentSizeObj.amount_mm,t=this.currentSizeObj.amount_mo,i=e+" "+(e>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit),n=t+" "+(t>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit),a=this.txt.ilosc_mm.format(i),s=this.txt.ilosc_mo.format(n);if(e>0&&-1==t)return $("#"+this.prefix+"status_description").html('<div id="#'+this.prefix+'amount_mm">'+a+'</div><div id="#'+this.prefix+'amount_mo">'+this.txt.ilosc_mo_inf+"</div>"),!1;if(e>0&&t>0)return $("#"+this.prefix+"status_description").html('<div id="#'+this.prefix+'amount_mm">'+a+'</div><div id="#'+this.prefix+'amount_mo">'+s+"</div>"),!1}this.currentSizeObj.availability.delivery_date&&"disable"==this.currentSizeObj.availability.status?$("#"+this.prefix+"status_description").html(this.currentSizeObj.availability.status_description+" <span>"+this.currentSizeObj.availability.delivery_date+"</span>"):this.currentSizeObj.availability.status_description?($("#"+this.prefix+"status_description").html(this.currentSizeObj.availability.status_description),$("#"+this.prefix+"status").removeClass("--status-hide --phone-disable")):"disable"==this.currentSizeObj.availability.status?($("#"+this.prefix+"status").addClass("--status-hide --phone-disable"),$("#"+this.prefix+"status_description_wrapper").hide()):($("#"+this.prefix+"status").removeClass("--status-hide --phone-disable"),$("#"+this.prefix+"status_description_wrapper").hide()),this.currentSizeObj.availability.status_gfx&&($("#"+this.prefix+"status_gfx").show().attr("src",this.currentSizeObj.availability.status_gfx),$("#"+this.prefix+"status").removeClass("--status-hide"))},this.sellBy=function(e,t,i){if("disable"==this.currentSizeObj.availability.status)return!this.onDisableAlert||"product_bundle"==this.currentSizeObj.product_type&&1==this.firstRun||this.alert(this.txt.niedostepny),e;if(e=parseFloat(e),t=parseFloat(t),i=parseFloat(i),!$.isNumeric(i)||i<=e){if(jQuery.isEmptyObject(product_data.order_quantity_range))return e.toFixed(t);e=e.toFixed(t)}number=Math.floor(i/e)*e,number=(i/e*e-number).toFixed(t+1)>0?(1*number+e).toFixed(t):number.toFixed(t),number=parseFloat(number);var n=this.currentSizeObj.amount,a=e;if(!jQuery.isEmptyObject(product_data.order_quantity_range)){var s=product_data.order_quantity_range;if(s.max_quantity_per_order){var r=parseFloat(s.max_quantity_per_order);n=n>r||-1==n?r:n}if(s.max_size_quantity_per_order){var o=parseFloat(s.max_size_quantity_per_order);n=n>o||-1==n?o:n}if(s.min_quantity_per_order){var l=parseFloat(s.min_quantity_per_order);a=l>a?l:a}if(s.min_size_quantity_per_order){var c=parseFloat(s.min_size_quantity_per_order);a=c>a?c:a}if(s.minimum_quantity_subscription){var p=parseFloat(s.minimum_quantity_subscription);a=p>a?p:a}}if(a&&number<a){if(this.isStarted){const i=(Math.ceil(parseFloat(a)/e)*e).toFixed(t)>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit;this.alert(this.txt.minimalnie+" "+(Math.ceil(parseFloat(a)/e)*e).toFixed(t)+" "+i)}return this.isStarted=!0,(Math.ceil(parseFloat(a)/e)*e).toFixed(t)}if(number>n&&-1!=n){const i=(Math.floor(parseFloat(n)/e)*e).toFixed(t)>1?this.currentSizeObj.unit_plural:this.currentSizeObj.unit;return this.alert(this.txt.maksymalnie+" "+(Math.floor(parseFloat(n)/e)*e).toFixed(t)+" "+i),this.isStarted=!0,(Math.floor(parseFloat(n)/e)*e).toFixed(t)}return this.isStarted=!0,number},this.projectorInit=function(e){if(!this.isset("product_data"))return this.errorMsg.push("no data"),!1;this.curr_class=$("#"+this.prefix+"form").attr("class"),e.contenersPrefix&&(this.options.contenersPrefix=e.contenersPrefix,this.prefix=e.contenersPrefix),"undefined"!==e.onDisableAlert&&(this.onDisableAlert=e.onDisableAlert),e.beginStartFunction&&(this.options.beginStartFunction=e.beginStartFunction),e.formatPrice&&(this.options.formatPrice=e.formatPrice,this.externalFormatFn=!0),e.endInitFunction&&(this.options.endInitFunction=e.endInitFunction),e.endStartFunction&&(this.options.endStartFunction=e.endStartFunction),e.endShippingFunction&&(this.options.endShippingFunction=e.endShippingFunction),e.endSetCurrentSizeFunction&&(this.options.endSetCurrentSizeFunction=e.endSetCurrentSizeFunction),e.ajaxAddFunction&&(this.options.ajaxAddFunction=e.ajaxAddFunction),e.clearXMLGetAjaxProductDataFunction&&(this.options.clearXMLGetAjaxProductDataFunction=e.clearXMLGetAjaxProductDataFunction),e.endGetAjaxProductDataFunction&&(this.options.endGetAjaxProductDataFunction=e.endGetAjaxProductDataFunction),e.beginGetAjaxProductDataFunction&&(this.options.beginGetAjaxProductDataFunction=e.beginGetAjaxProductDataFunction),e.hide_unit&&(this.options.hide_unit=e.hide_unit),e.curr_before_price&&(this.options.curr_before_price=e.curr_before_price),e.contact_link&&(this.options.contact_link=e.contact_link),e.hoursBeforeOrderBy&&(this.options.hoursBeforeOrderBy=e.hoursBeforeOrderBy),e.getShippingTimeFunction&&e.productParam
6sFunction&&(this.options.getShippingTimeFunction=e.getShippingTimeFunction,this.options.productParamsFunction=e.productParamsFunction),e.friendly_shipping_format&&(this.options.friendly_shipping_format=e.friendly_shipping_format),product_data.currency&&(this.currency=product_data.currency),this.txt.amount=$("#"+this.prefix+"amount").html(),product_data.sizes&&product_data.sizes.onesize&&(this.setCurrentSizeObj(this.getIndex(product_data.sizes,0)),this.start()),this.options.endInitFunction()},this.variety=function(e,t,i){return 1==e?t:i},this.formatDate=e=>e.slice(0,10).split("-").reverse().slice(0,-1).join("."),this.shippingTimeBuffer=[],this.timeoutHandle="",this.updateShippingTime=async()=>{const e=await this.options.getShippingTimeFunction(this.options.productParamsFunction());if(e&&e.data&&e.data.shipping&&e.data.shipping.shippingTime){const t=e.data.shipping.shippingTime;this.currentSizeObj.shipping_time={},this.currentSizeObj.shipping_time.unknown_time=t.unknownTime,this.currentSizeObj.shipping_time.today=`${t.shippingTime.today}`,this.currentSizeObj.shipping_time.today_shipment_deadline=t.todayShipmentDeadline,this.currentSizeObj.shipping_time.days=t.shippingTime.time.days,this.currentSizeObj.shipping_time.hours=t.shippingTime.time.hours,this.currentSizeObj.shipping_time.minutes=t.shippingTime.time.minutes,this.currentSizeObj.shipping_time.week_day=t.shippingTime.weekDay,this.currentSizeObj.shipping_time.week_amount=t.shippingTime.weekAmount,this.currentSizeObj.shipping_time.time=t.time}return e},this.shippingTime=async function(e){result=[];const t=md5(this.options.productParamsFunction()),i=this.shippingTimeBuffer.filter((e=>e.key===t));let n={};if(i.length)return i[0];if(projectorv3_disable_ajax&&0==projectorv3_disable_ajax||(n=await this.updateShippingTime()),"disable"!==this.currentSizeObj.availability.status&&this.currentSizeObj.shipping_time){const e=this.currentSizeObj.shipping_time;let i=!1;if(e.today_shipment_deadline){const t=e.today_shipment_deadline.split(":"),n=new Date;n.setHours(t[0],t[1],t[2]);const a=new Date;a.setHours(a.getHours()+this.options.hoursBeforeOrderBy),i=n.getTime()-a.getTime()<0}if(e.today_shipment_deadline&&i){result[0]=this.txt.order_by,result[1]=e.today_shipment_deadline.slice(0,-3)+this.txt.it_will_ship_today;const i={key:t,value:result,response:n};return this.shippingTimeBuffer.push(i),i}if("true"==e.today){result[0]=this.txt.wysylka,result[1]=this.options.friendly_shipping_format[0];const e={key:t,value:result,response:n};return this.shippingTimeBuffer.push(e),e}if(0==+e.days||1==+e.days&&0==+e.hours&&0==+e.minutes){this.txt.tomorrow?(result[0]=this.txt.wysylka,result[1]=this.txt.tomorrow):(result[0]=this.txt.wysylka_za,result[1]=this.txt.status_24);const e={key:t,value:result,response:n};return this.shippingTimeBuffer.push(e),e}if(+e.days>29&&this.txt.shipmentIn){result[0]=this.txt.shipmentIn,result[1]=+e.days+this.txt.days;const i={key:t,value:result,response:n};return this.shippingTimeBuffer.push(i),i}result[0]=this.txt.wysylka,result[1]=this.options.friendly_shipping_format[+e.week_day],+e.week_amount>0&&(result[1]+=`(${this.formatDate(e.time)})`)}const a={key:t,value:result,response:n};return this.shippingTimeBuffer.push(a),a},this.start=function(){if(this.options.beginStartFunction(),window.projectorv3_disable_ajax=projectorv3_disable_ajax||1,!this.currentSizeObj.type)return!1;var t=this;const n=document.getElementById("projector_form")?.getAttribute("data-subscription");var a=async function(){(product_data.sizes.uniw||product_data.sizes.onesize)&&t.setCurrentSizeObj("uniw"),"true"===n?t.currentSizeObj.price=product_data.sizes[t.currentSizeObj.type].price_subscription:"false"===n&&(t.currentSizeObj.price=product_data.sizes[t.currentSizeObj.type].price_normal),$("#"+t.prefix+"form").attr("class",t.curr_class+" "+t.currentSizeObj.availability.status),t.configObj.displaySize="onesize"!=t.currentSizeObj.type,t.currentSizeObj.availability&&(t.configObj.disableNumberInput="disable"==t.currentSizeObj.availability.status),t.configObj.disableBuyButton=!1,"disable"!=t.currentSizeObj.availability.status&&"true"!=t.currentSizeObj.phone_price||(t.configObj.disableBuyButton=!0),t.configObj.displayBuySection=!!t.currentSizeObj.gratis;var a=t.currentSizeObj.unit_sellby+"";if($("#"+t.options.contenersPrefix+"number").size()&&(a=$("#"+t.options.contenersPrefix+"number").val()),t.configObj.valueOfNumberInput=t.sellBy(t.currentSizeObj.unit_sellby,t.currentSizeObj.unit_precision,a.replace(",",".")),t.currentSizeObj.rebateNumber)for(i in t.configObj.rabatIndex=-1,t.configObj.rabatIndex_last=-1,t.currentSizeObj.rebateNumber){var s=t.currentSizeObj.rebateNumber[i].threshold_end?t.currentSizeObj.rebateNumber[i].threshold_end:t.configObj.valueOfNumberInput;if(parseFloat(t.configObj.valueOfNumberInput)>=parseFloat(t.currentSizeObj.rebateNumber[i].threshold)&&parseFloat(t.configObj.valueOfNumberInput)<=parseFloat(s)){if
6(t.configObj.rabatIndex=i,t.configObj.rabatIndex_last=i,!t.currentSizeObj.rebateNumber[1*i+1]||parseFloat(t.configObj.valueOfNumberInput)<parseFloat(t.currentSizeObj.rebateNumber[1*i+1].threshold))break}else parseFloat(t.configObj.valueOfNumberInput)>=parseFloat(t.currentSizeObj.rebateNumber[i].threshold)&&(t.configObj.rabatIndex_last=i)}if(t.configObj.rabatIndex&&-1!=t.configObj.rabatIndex?(t.configObj.rebateNumber=t.currentSizeObj.rebateNumber[t.configObj.rabatIndex],t.configObj.rebateNumberNext=t.configObj.rebateNumber):t.configObj.rebateNumber=!1,t.currentSizeObj.rebateNumber&&t.currentSizeObj.rebateNumber[1*t.configObj.rabatIndex+1]&&(t.configObj.rebateNumberNext=t.currentSizeObj.rebateNumber[1*t.configObj.rabatIndex+1]),t.configObj.rabatIndex_last&&t.currentSizeObj.rebateNumber[1*t.configObj.rabatIndex_last+1]&&(t.configObj.rebateNumberNext=t.currentSizeObj.rebateNumber[1*t.configObj.rabatIndex_last+1]),"onesize"==t.currentSizeObj.type||"uniw"==t.currentSizeObj.type?$("#"+t.prefix+"sizes_cont").hide():$("#"+t.prefix+"sizes_cont").show(),t.status_description(),$("#"+t.prefix+"amount").size()){$("#"+t.prefix+"amount").show();var r=t.currentSizeObj.amount;0==r?$("#"+t.prefix+"amount").hide():-1==r&&(r=t.txt.infinity,""==t.txt.infinity&&$("#"+t.prefix+"amount").hide()),1==r?r=r+" "+t.currentSizeObj.unit:r>1&&(r=r+" "+t.currentSizeObj.unit_plural),$("#"+t.prefix+"amount").html(t.txt.amount.format(r))}if(t.currentSizeObj.product_type&&"product_virtual"==t.currentSizeObj.product_type&&$("#"+t.prefix+"amount").hide(),"y"==t.currentSizeObj.availability.visible&&t.currentSizeObj&&t.currentSizeObj.availability.status_description?($("#"+t.prefix+"status_description_wrapper").show(),t.currentSizeObj.availability.status_gfx&&$("#"+t.prefix+"status_gfx").show(),$("#"+t.prefix+"status").removeClass("--status-hide")):($("#"+t.prefix+"status_description_wrapper").hide(),$("#"+t.prefix+"status_gfx").hide(),$("#"+t.prefix+"status").addClass("--status-hide")),"true"==t.currentSizeObj.availability.delivery_days_undefined&&"true"==t.currentSizeObj.delivery.undefined?$("#"+t.prefix+"delivery_wrapper").hide():$("#"+t.prefix+"delivery_wrapper").show(),$("#"+t.prefix+"delivery_days").hide(),projectorv3_disable_ajax&&0==projectorv3_disable_ajax){if($("#"+t.prefix+"delivery_days").hide(),t.currentSizeObj&&"true"!=t.currentSizeObj.availability.delivery_days_undefined){$("#"+t.prefix+"status").addClass("--loading --time-show");const e=await t.shippingTime();e.value.length?($("#"+t.prefix+"delivery_label").show().html(e.value[0]),$("#"+t.prefix+"delivery_days").show().html(e.value[1])):$("#"+t.prefix+"status").removeClass("--time-show"),$("#"+t.prefix+"status_wrapper").css("min-height","0px").css("min-height",`${$("#"+t.prefix+"status_wrapper").height()}px`),$("#"+t.prefix+"status").removeClass("--loading"),t.options.endShippingFunction(e.response)}}else if("true"!=t.currentSizeObj.availability.delivery_days_undefined){var o=t;clearTimeout(o.timeHandle),$("#"+o.prefix+"delivery_days").parents(".product_section").addClass("loading"),o.timeHandle=setTimeout((async function(){$("#"+t.prefix+"status").addClass("--loading --time-show");const e=await t.shippingTime();e.value.length?($("#"+t.prefix+"delivery_label").show().html(e.value[0]),$("#"+t.prefix+"delivery_days").show().html(e.value[1])):$("#"+t.prefix+"status").removeClass("--time-show"),$("#"+t.prefix+"status_wrapper").css("min-height","0px").css("min-height",`${$("#"+t.prefix+"status_wrapper").height()}px`),$("#"+t.prefix+"status").removeClass("--loading"),t.options.endShippingFunction(e.response)}),50)}$("#"+t.prefix+"shipping_unknown").hide(),t.currentSizeObj.product_type&&("product_virtual"==t.currentSizeObj.product_type||"product_service"==t.currentSizeObj.product_type)||"disable"==t.currentSizeObj.availability.status?($("#"+t.prefix+"shipping_info").hide(),$("#"+t.prefix+"shipping_dialog").hide(),t.currentSizeObj.availability.status_description?$("#"+t.prefix+"status_description").show():$("#"+t.prefix+"status_description").hide()):($("#"+t.prefix+"shipping_info").show(),$("#"+t.prefix+"shipping_dialog").show(),$("#"+t.prefix+"status_description").hide()),t.currentSizeObj.delay_time&&"true"==t.currentSizeObj.delay_time.unknown_delivery_time&&"order"==t.currentSizeObj.availability.status?($("#"+t.prefix+"shipping_info").hide(),$("#"+t.prefix+"shipping_dialog").hide(),$("#"+t.prefix+"status_description").hide(),$("#"+t.prefix+"status_wrapper").hide(),$("#"+t.prefix+"status").addClass("--unknown-show"),$("#"+t.prefix+"shipping_unknown").show()):($("#"+t.prefix+"status").removeClass("--unknown-show"),$("#"+t.prefix+"status_wrapper").show()),0==t.currentSizeObj.delivery.shipping?$("#"+t.prefix+"shipping").html(t.txt.gratis):$("#"+t.prefix+"shipping").html(t.txt.koszt_od+t.formatPrice(t.currentSizeObj.delivery.shipping,e)),"true"==t.currentSizeObj.delivery.undefined?$("#"+t.prefix+"shipping").hide():$("#"+t.prefix+"shipping").show(),t.currentSizeObj.price.advanceprice?($("#"+t.prefix+"advanceprice_wrapper").show(),$("#"+t.prefix+"advanceprice").html(t.formatPrice(t.currentSizeObj.price.advanceprice,e))):$("#"+t.prefix+"advanceprice_wrapper").hide(),$("#"+t.prefix+"sellbyprice_wrapper").show(),$("#"+t.prefix+"sellbyprice").html(t.nettoPrice?t.currentSizeObj.price.price_net_formatted:t.currentSizeObj.price.price_formatted),$("#"+t.prefix+"prices_wrapper").hide(),t.currentSizeObj.price.srp&&t.currentSizeObj.price.srp>0&&t.currentSizeObj.price.srp!=t.currentSizeObj.price.value?($("#"+t.prefix+"price_srp_wrapper").show(),$("#"+t.prefix+"prices_wrapper").show(),$("#"+t.prefix+"price_srp").html(t.formatPrice(t.nettoPrice?t.currentSizeObj.price.srp_net:t.currentSizeObj.price.srp,e))):$("#"+t.prefix+"price_srp_wrapper").hide(),t.currentSizeObj.price.price_net&&t.currentSizeObj.price.price_net>0?($("#"+t.prefix+"price_net_wrapper").show(),$("#"+t.prefix+"price_net").show(),$("#"+t.prefix+"price_net").html(t.formatPrice(t.nettoPrice?t.currentSizeObj.price.value:t.currentSizeObj.price.price_net,e))):($("#"+t.prefix+"price_net_wrapper").hide(),$("#"+t.prefix+"price_net").hide());let l="";if("true"==t.currentSizeObj.phone_price)t.currentSizeObj.price.points>0?($("#"+t.prefix+"price_value").hide(),$("#"+t.prefix+"prices_wrapper").show().addClass("--only-points")):($("#"+t.prefix+"price_value").show(),$("#"+t.prefix+"prices_wrapper").show().removeClass("--only-points"),t.currentSizeObj.availability.status_gfx_tel&&""!=t.currentSizeObj.availability.status_gfx_tel?$("#"+t.prefix+"price_value").html('<a class="projector_prices__contact" target="_blank" href="'+t.options.contact_link+'"><img src="'+t.currentSizeObj.availability.status_gfx_tel+'"/><span>'+t.currentSizeObj.availability.status_description_tel+"</span></a>"):$("#"+t.prefix+"price_value").html('<a class="projector_prices__contact" target="_blank" href="'+t.options.contact_link+'">'+t.currentSizeObj.availability.status_description_tel+"</a>"));else if($("#"+t.prefix+"prices_wrapper").show().removeClass("--only-points"),$("#"+t.prefix+"price_value").show(),t.currentSizeObj.price.rebateNumber){const e=t.configObj.valueOfNumberInput;if(t.currentSizeObj.price.rebateNumber.items.includes(null))+e>=+t.currentSizeObj.price.rebateNumber.nextleft?($("#"+t.prefix+"price_value").html(t.formatPrice(t.nettoPrice?t.currentSizeObj.price.rebateNumber.nextprice_net:t.currentSizeObj.price.rebateNumber.nextprice,!0,!1,!1)),l=t.nettoPrice?t.currentSizeObj.price.rebateNumber.nextprice_net:t.currentSizeObj.price.rebateNumber.nextprice,t.rebateThreshold=t.currentSizeObj.price.rebateNumber.nextthreshold):($("#"+t.prefix+"price_value").html(t.formatPrice(t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value,!0,!1,!1)),t.rebateThreshold=!1);else{const i=[...t.currentSizeObj.price.rebateNumber.items].reverse().find((t=>e>=+t.left));i?($("#"+t.prefix+"price_value").html(t.formatPrice(t.nettoPrice?i.price_net:i.price,!0,!1,!1)),l=t.nettoPrice?i.price_net:i.price,t.rebateThreshold=i.threshold):($("#"+t.prefix+"price_value").html(t.formatPrice(t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value,!0,!1,!1)),t.rebateThreshold=!1)}}else $("#"+t.prefix+"price_value").html(t.formatPrice(t.nettoPrice?t.currentSizeObj.price.price_net:t.currentSizeObj.price.value,!0,!1,!1));t.currentSizeObj.price.maxprice?t.currentSizeObj.price.maxprice>0?($("#"+t.prefix+"price_maxprice").show(),$("#"+t.prefix+"price_maxprice").html(t.formatPrice(t.nettoPrice?t.currentSizeObj.price.maxprice_net:t.currentSizeObj.price.maxprice,e))):$("#"+t.prefix+"price_maxprice").hide():""!=l?(t.currentSizeObj.price.maxprice=t.currentSizeObj.price.value,t.currentSizeObj.price.maxprice_net=t.currentSizeObj.price.price_net,t.currentSizeObj.price.maxprice>0?($("#"+t.prefix+"price_maxprice").show(),$("#"+t.prefix+"price_maxprice").html(t.formatPrice(t.nettoPrice?t.currentSizeObj.price.maxprice_net:t.currentSizeObj.price.maxprice,e))):$("#"+t.prefix+"price_maxprice").hide()):$("#"+t.prefix+"price_maxprice").hide(),t.currentSizeObj.price.omnibus_price&&$("#"+t.prefix+"omnibus_price_value").html(t.formatPrice(t.nettoPrice?t.currentSizeObj.price.omnibus_price_net:t.currentSizeObj.price.omnibus_price,e)),t.options.hide_unit?$("#"+t.prefix+"price_unit_sellby, #"+t.prefix+"price_unit").hide():1==t.configObj.valueOfNumberInput?($("#"+t.prefix+"price_unit_sellby").hide().html(t.configObj.valueOfNumberInput),$("#"+t.prefix+"price_unit").html(t.currentSizeObj.unit)):($("#"+t.prefix+"price_unit_sellby").show().html(t.configObj.valueOfNumberInput),$("#"+t.prefix+"price_unit").html(t.currentSizeObj.unit_plural?t.currentSizeObj.unit_plural:t.currentSizeObj.unit)),t.currentSizeObj.bundle_price||t.currentSizeObj.price.yousave_percent?$("#"+t.prefix+"yousave_bundle_wrapper").show():$("#"+t.prefix+"yousave_bundle_wrapper").hide(),yousaveTmp=t.nettoPrice?t.currentSizeObj.price.yousave_net:t.currentSizeObj.price.yousave,yousave_percentTmp=t.currentSizeObj.price.yousave_percent,""!=l&&(yousaveTmp=t.nettoPrice?+t.currentSizeObj.price.maxprice_net-+l:+t.currentSizeObj.price.maxprice-+l,yousave_percentTmp=(100*+yousaveTmp/(t.nettoPrice?+t.currentSizeObj.price.maxprice_net:+t.currentSizeObj.price.maxprice)).toFixed()),0==+yousave_percentTmp&&(yousave_percentTmp=(+yousaveTmp/(t.nettoPrice?+t.currentSizeObj.price.price_net:+t.currentSizeObj.price.value)*100).toFixed(1)),"true"!=t.currentSizeObj.phone_price&&t.currentSizeObj.bundle_price&&t.currentSizeObj.bundle_price.amount_diff_gross>
60?$("#"+t.prefix+"price_yousave").show().html(t.txt.oszczedzasz+t.currentSizeObj.bundle_price.percent_diff+t.txt.taniej+t.formatPrice(t.nettoPrice?t.currentSizeObj.bundle_price.amount_diff_net:t.currentSizeObj.bundle_price.amount_diff_gross,e)+t.txt.wzestawie):"true"!=t.currentSizeObj.phone_price&&yousaveTmp?$("#"+t.prefix+"price_yousave").show().html(t.txt.oszczedzasz+yousave_percentTmp+t.txt.taniej+t.formatPrice(yousaveTmp,e)+t.txt.nawias_end):$("#"+t.prefix+"price_yousave").hide(),$("#"+t.prefix+"price_points_wrapper").hide(),t.currentSizeObj.price.points>0&&($("#"+t.prefix+"price_points").show().html(t.formatPrice(t.currentSizeObj.price.points,e,t.txt.pkt,!0).toFixed(2)+t.txt.pkt),$("#"+t.prefix+"points_wrapper").show(),$("#"+t.prefix+"price_points_wrapper").show()),t.currentSizeObj.price.points_recive>0?($("#"+t.prefix+"points_wrapper").show(),$("#"+t.prefix+"points_recive_points").show().html(t.formatPrice(t.currentSizeObj.price.points_recive,e,t.txt.pkt,!0).toFixed(2)+t.txt.pkt),$("#"+t.prefix+"price_points_recive_wrapper").show()):$("#"+t.prefix+"price_points_recive_wrapper").hide(),t.currentSizeObj.for_points,$("#"+t.prefix+"tell_availability").hide(),$("#"+t.prefix+"tell_availability").find("input").prop("disabled",!0);var c=t;if(t.configObj.addBasketFnBtn)$("#"+t.prefix+"button_basket").off("click"),$("#"+t.prefix+"button_basket").on("click",(function(){return c.configObj.addBasketFnBtn(),!1})).removeClass("disabled");else if(t.configObj.disableBuyButtonTXT){var p=t.configObj.disableBuyButtonTXT;$("#"+t.prefix+"button_basket").on("click",(function(){return classObj.alert(p),!1})).addClass("disabled"),$("#"+t.prefix+"number").prop("disabled",!0)}else"disable"==t.currentSizeObj.availability.status?($("#"+t.prefix+"price_points_wrapper").hide(),$("#"+t.prefix+"button_basket").on("click",(function(){return classObj.alert(classObj.txt.niedostepny),!1})).addClass("disabled"),$("#"+t.prefix+"number").prop("disabled",!0),$("#"+t.prefix+"tell_availability").show(),$("#"+t.prefix+"tell_availability").find("input").prop("disabled",!1)):"true"==t.currentSizeObj.phone_price&&t.currentSizeObj.price.points>0?($("#"+t.prefix+"button_basket").on("click",(function(){return classObj.alert(classObj.txt.tylko_punkty),!1})).addClass("disabled"),$("#"+t.prefix+"number").prop("disabled",!0)):"true"==t.currentSizeObj.phone_price?($("#"+t.prefix+"number").prop("disabled",!1),$("#"+t.prefix+"button_basket").on("click",(function(){return classObj.alert(classObj.txt.tylkotel),!1})).addClass("disabled"),$("#"+t.prefix+"number").prop("disabled",!0),$("#"+t.prefix+"form").addClass("--phone")):($("#"+t.prefix+"button_basket").off("click").removeClass("disabled"),$("#"+t.prefix+"number").prop("disabled",!1),$("#"+t.prefix+"form").removeClass("--phone"));return t.currentSizeObj.gratis&&($("#"+t.prefix+"buy_section").hide(),$("#"+t.prefix+"price_points_wrapper").hide()),t.currentSizeObj.price.basket_enable&&"y"==t.currentSizeObj.price.basket_enable&&"true"==t.currentSizeObj.phone_price&&($("#"+t.prefix+"button_basket").off("click").removeClass("disabled"),$("#"+t.prefix+"number").prop("disabled",!1),$("#"+t.prefix+"price_value").html('<span class="'+t.prefix+'_price_gratis">'+t.txt.gratis_produkt+"</span>")),$("#"+t.options.contenersPrefix+"number").val(t.configObj.valueOfNumberInput),$("#"+t.options.contenersPrefix+"buy_section .f-dropdown-button").text(t.configObj.valueOfNumberInput),t.configObj.rebateNumberNext&&($("#"+t.prefix+"product_rebatenumber_value").text((t.configObj.rebateNumberNext.value+t.txt.proc).replace(/\.00/gi,"")),$("#"+t.prefix+"product_rebatenumber_threshold").text(t.configObj.rebateNumberNext.threshold.replace(/\.00/gi,""))),t.firstRun=!1,t.options.endStartFunction(),!0};product_data.sizes[t.currentSizeObj.type].availability?"true"!==n||product_data.sizes[t.currentSizeObj.type].price_subscription?"false"!==n||product_data.sizes[t.currentSizeObj.type].price_normal?a():$.getJSON("/ajax/projector.php?action=get&product="+product_data.product_id+"&size="+t.currentSizeObj.type+"&get=sizeprices",(function(e){product_data.sizes[t.currentSizeObj.type].price=e.sizeprices,product_data.sizes[t.currentSizeObj.type].price_normal=e.sizeprices,a()})):$.getJSON("/ajax/projector.php?action=get&product="+product_data.product_id+"&size="+t.currentSizeObj.type+"&get=sizeprices&subscription=1",(function(e){product_data.sizes[t.currentSizeObj.type].price=e.sizeprices,product_data.sizes[t.currentSizeObj.type].price_subscription=e.sizeprices,a()})):product_data.sizes&&("product_bundle"!=product_data.product_type?$.getJSON("/ajax/projector.php?action=get&product="+product_data.product_id+"&size="+t.currentSizeObj.type+"&get=sizeavailability,sizedelivery,sizeprices"+("true"===n?"&subscription=1":""),(function(e){product_data.sizes[t.currentSizeObj.type].availability=e.sizeavailability,product_data.sizes[t.currentSizeObj.type].delivery=e.sizedelivery,product_data.sizes[t.currentSizeObj.type].price=e.sizeprices,product_data.sizes[t.currentSizeObj.type].delay_time=e.sizeavailability.delay_time,"true"===n?product_data.sizes[t.currentSizeObj.type].price_subscription=e.sizeprices:product_data.sizes[t.currentSizeObj.type].price_normal=e.sizeprices,a()})):"product_bundle"==product_data.product_type&&app_shop.fn.update_bundle&&app_shop.fn.update_bundle())},this.liczProcent=function(e,t){return(e=parseFloat(e))-e*((t=parseFloat(t))/100)},this.addAction=function(e,t,i){this.actions[e]||(this.actions[e]={}),this.actions[e][t]=i},this.getConfigObj=function(){return this.configObj},this.alert=function(e){Alertek.show_alert(e)},this.setCurrentSizeObj=function(e){if(projectorv3_disable_ajax&&0==projectorv3_disable_ajax)product_data.sizes[e]?(this.currentSizeObj=product_data.sizes[e],this.currentSizeObj.product_type=product_data.product_type,this.currentSizeObj.currency=product_data.currency,this.currentSizeObj.unit=product_data.unit,this.currentSizeObj.unit_plural=product_data.unit_plural?product_data.unit_plural:"",this.currentSizeObj.unit_sellby=""!=product_data.unit_sellby?product_data.unit_sellby:1,this.currentSizeObj.unit_precision=""!=product_data.unit_precision?product_data.unit_precision:0):this.errorMsg.push("setCurrentSize no data"),this.options.endSetCurrentSizeFunction();else{var t=this,i=function(){"onesize"==e&&(e="uniw"),product_data.sizes[e]?(t.currentSizeObj=product_data.sizes[e],t.currentSizeObj.product_type=product_data.product_type,t.currentSizeObj.currency=product_data.currency,t.currentSizeObj.unit=product_data.unit,t.currentSizeObj.unit_plural=product_data.unit_plural?product_data.unit_plural:"",t.currentSizeObj.unit_sellby=""!=product_data.unit_sellby?product_data.unit_sellby:1,t.currentSizeObj.unit_precision=""!=product_data.unit_precision?product_data.unit_precision:0,product_data.for_points&&(t.currentSizeObj.for_points=product_data.for_points)):t.errorMsg.push("setCurrentSize no data")};product_data.sizes?i():$.getJSON("/ajax/projector.php?action=get&product="+product_data.product_id+"&get=sizes",(function(e){e.sizes&&(product_data.sizes={},$.each(e.sizes.items,(function(e,t){product_data.sizes[t.type]=t})),i(),t.start())})),this.options.endSetCurrentSizeFunction()}},this.getCurrentSizeObj=function(e){return this.currentSizeObj},this.getAjaxProductData=function(e){classObj.options.beginGetAjaxProductDataFunction(),$.ajax({type:"GET",timeout:this.timeoutAjax,url:"/projector.php?product="+e+"&shop_xml=true&getProductXML=true",dataType:"xml",success:function(e){classObj.options.clearXMLGetAjaxProductDataFunction(e);var t={},i=classObj.getAttr($("product:first",e),"id");t.currency=shop_currency,t.product_type=classObj.getAttr($("product:first",e),"product_type"),t.unit=classObj.getAttr($("product sizes_version:first",e),"unit"),t.unit_plural=classObj.getAttr($("product sizes_version:first",e),"unit_plural"),t.unit_sellby=classObj.getAttr($("product sizes_version:first",e),"unit_sellby"),t.unit_precision=classObj.getAttr($("product sizes_version:first",e),"unit_precision"),t.sizes={},$("product versions:first version[id="+i+"] size",e).each((function(){t.sizes[classObj.getAttr($(this),"type")]=$.xml2json($("<p/>").append($(this)).html())})),product_data=t,classObj.setCurrentSizeObj(classObj.getIndex(product_data.sizes,0)),projectorObj.start(),classObj.options.endGetAjaxProductDataFunction()},error:function(){}})}};
7/*! jQuery UI - v1.13.1 - 2022-01-24
8* http://jqueryui.com
9* Includes: keycode.js, widgets/datepicker.js
10* Copyright jQuery Foundation and other contributors; Licensed MIT */
11!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e){"use strict";e.ui=e.ui||{};var t;
vendor: 6,723 bytes, lines 12-28
12/*!
13 * jQuery UI Keycode 1.13.1
14 * http://jqueryui.com
15 *
16 * Copyright jQuery Foundation and other contributors
17 * Released under the MIT license.
18 * http://jquery.org/license
19 */e.ui.version="1.13.1",e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=n(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,(function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,a)}function a(){e.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function s(t,i){for(var n in e.extend(t,i),i)null==i[n]&&(t[n]=i[n]);return t}
20/*!
21 * jQuery UI Datepicker 1.13.1
22 * http://jqueryui.com
23 *
24 * Copyright jQuery Foundation and other contributors
25 * Released under the MIT license.
26 * http://jquery.org/license
27 */
28e.extend(e.ui,{datepicker:{version:"1.13.1"}}),e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return s(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,a,s;a="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(s=this._newInst(e(t),a)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,s):a&&this._inlineDatepicker(t,s)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);i.append=e([]),i.trigger=e([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var n,a,s,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span>").addClass(this._appendClass).text(r),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||t.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(a=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:s,alt:a,title:a}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),s?i.trigger.html(e("<img>").attr({src:s,alt:a,title:a})):i.trigger.text(a)),t[o?"before":"after"](i.trigger),i.trigger.on("click",(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1})))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,a,s=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(i=0,n=0,a=0;a<e.length;a++)e[a].length>i&&(i=e[a].length,n=a);return n},s.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),e.input.attr("size",this._formatDate(e,s).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,a,r){var o,l,c,p,d,u=this._dialogInst;return u||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>
28"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",u)),s(u.settings,a||{}),i=i&&i.constructor===Date?this._formatDate(u,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,p=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+p,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",u),this},_destroyDatepicker:function(i){var n,a=e(i),s=e.data(i,"datepicker");a.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),e.removeData(i,"datepicker"),"input"===n?(s.append.remove(),s.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||a.removeClass(this.markerClassName).empty(),t===s&&(t=null,this._curInst=null))},_enableDatepicker:function(t){var i,n,a=e(t),s=e.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,s.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})))},_disableDatepicker:function(t){var i,n,a=e(t),s=e.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,s.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var a,r,o,l,c=this._getInst(t);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):c?"all"===i?e.extend({},c.settings):this._get(c,i):null;a=i||{},"string"==typeof i&&((a={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),r=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),s(c.settings,a),null!==o&&void 0!==a.dateFormat&&void 0===a.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==a.dateFormat&&void 0===a.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in a&&(a.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,a,s=e.datepicker._getInst(t.target),r=!0,o=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(a=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",s.dpDiv))[0]&&e.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,a[0]),(i=e.datepicker._get(s,"onSelect"))?(n=e.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(s,"stepBigMonths"):-e.datepicker._get(s,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(s,"stepBigMonths"):+e.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(s,"stepBigMonths"):-e.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(s,"stepBigMonths"):+e.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,a=e.datepicker._getInst(t.target);if(e.datepicker._get(a,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(a,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(t){var i,n,a,r,o,l,c;("input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)||(i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(a=(n=e.datepicker._get(i,"beforeShow"))?n.apply(t,[t,i]):{})&&(s(i.settings,a),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),r=!1,e(t).parents().each((function(){return!(r|="fixed"===e(this).css("position"))})),o={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),o=e.datepicker._checkOffset(i,o,r),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":r?"fixed":"absolute",display:"none",left:o.left+"px",to
vendor: 17,728 bytes, line 28
28p:o.top+"px"}),i.inline||(l=e.datepicker._get(i,"showAnim"),c=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?i.dpDiv.show(l,e.datepicker._get(i,"showOptions"),c):i.dpDiv[l||"show"](l?c:null),e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),e.datepicker._curInst=i)))},_updateDatepicker:function(i){this.maxRows=4,t=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,s=this._getNumberOfMonths(i),r=s[1],o=i.dpDiv.find("."+this._dayOverClass+" a"),l=e.datepicker._get(i,"onUpdateDatepicker");o.length>0&&a.apply(o.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&i.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),i.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),i.yearshtml&&(n=i.yearshtml,setTimeout((function(){n===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year").first().replaceWith(i.yearshtml),n=i.yearshtml=null}),0)),l&&l.apply(i.input?i.input[0]:null,[i])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,n){var a=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?a-r:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+a>l&&l>a?Math.abs(i.left+a-l):0),i.top-=Math.min(i.top,i.top+s>c&&c>s?Math.abs(s+o):0),i},_findPos:function(t){for(var i,n=this._getInst(t),a=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[a?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,n,a,s,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),a=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[i]||e.effects[i])?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),n,a):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,a),i||a(),this._datepickerShowing=!1,(s=this._get(r,"onClose"))&&s.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0]);(i[0].id===e.datepicker._mainDivId||0!==i.parents("#"+e.datepicker._mainDivId).length||i.hasClass(e.datepicker.markerClassName)||i.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!i.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===n)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var a=e(t),s=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(s,i,n),this._updateDatepicker(s))},_gotoToday:function(t){var i,n=e(t),a=this._getInst(n[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(i=new Date,a.selectedDay=i.getDate(),a.drawMonth=a.selectedMonth=i.getMonth(),a.drawYear=a.selectedYear=i.getFullYear()),this._notifyChange(a),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var a=e(t),s=this._getInst(a[0]);s["selected"+("M"===n?"Month":"Year")]=s["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(a)},_selectDay:function(t,i,n,a){var s,r=e(t);e(a).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((s=this._getInst(r[0])).selectedDay=s.currentDay=parseInt(e("a",a).attr("data-date")),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=n,this._selectDate(t,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,a=e(t),s=this._getInst(a[0]);i=null!=i?i:this._formatDate(s),s.input&&s.input.val(i),this._updateAlternate(s),(n=this._get(s,"onSelect"))?n.apply(s.input?s.input[0]:null,[i,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,a,s=this._get(t,"altField");s&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),a=this.formatDate(i,n,this._getFormatConfig(t)),e(document).find(s).val(a))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var a,s,r,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,p="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,u=(n?n.dayNames:null)||this._defaults.dayNames,h=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,_=(n?n.monthNames:null)||this._defaults.monthNames,f=-1,m=-1,g=-1,v=-1,b=!1,y=function(e){var i=a+1<t.length&&t.charAt(a+1)===e;return i&&a++,i},x=function(e){var t=y(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,a=new RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),s=i.substring(l).match(a);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},k=function(t,n,a){var s=-1,r=e.map(y(t)?a:n,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)}));if(e.each(r,(function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return s=t[0],l+=n.length,!1})),-1!==s)return s+1;throw"Unknown name at position "+l},w=function(){if(i.charAt(l)!==t.charAt(a))throw"Unexpected literal at position "+l;l++};for(a=0;a<t.length;a++)if(b)"'"!==t.charAt(a)||y("'")?w():b=!1;else switch(t.charAt(a)){case"d":g=x("d");break;case"D":k("D",d,u);break;case"o":v=x("o");break;case"m":m=x("m");break;case"M":m=k("M",h,_);break;case"y":f=x("y");break;case"@":f=(o=new Date(x("@"))).getFullYear(),m=o.getMonth()+1,g=o.getDate();break;case"!":f=(o=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),m=o.getMonth()+1,g=o.getDate();break;case"'":y("'")?w():b=!0;break;default:w()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=p?0:-100)),v>-1)for(m=1,g=v;;){if(g<=(s=this._getDaysInMonth(f,m-1)))break;m++,g-=s}if((o=this._daylightSavingAdjust(new Date(f,m-1,g))).getFullYear()!==f||o.getMonth()+1!==m||o.getDate()!==g)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";var n,a=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},c=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},p=function(e,t,i,n){return l(e)?n[t]:i[t]},d="",u=!1;if(t)for(n=0;n<e.length;n++)if(u)"'"!==e.charAt(n)||l("'")?d+=e.charAt(n):u=!1;else switch(e.charAt(n)){case"d":d+=c("d",t.getDate(),2);break;case"D":d+=p("D",t.getDay(),a,s);break;case"o":d+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",t.getMonth()+1,2);break;case"M":d+=p("M",t.getMonth(),r,o);break;case"y":d+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":u=!0;break;default:d+=e.charAt(n)}return d},_possibleChars:function(e){var t,i="",n=!1,a=function(i){var n=t+1<e.length&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;t<e.length;t++)if(n)"'"!==e.charAt(t)||a("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":a("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,a=this._getDefaultDate(e),s=a,r=this._getFormatConfig(e);try{s=this.parseDate(i,n,r)||a}catch(e){n=t?"":n}e.selectedDay=s.getDate(),e.drawMonth=e.selectedMonth=s.getMonth(),e.drawYear=e.selectedYear=s.getFullYear(),e.currentDay=n?s.getDate():0,e.currentMonth=n?s.getMonth():0,e.currentYear=n?s.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var a=null==i||""===i?n:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,a=n.getFullYear(),s=n.getMonth(),r=n.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":s+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(a,s));break;case"y":case"Y":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(a,s))}l=o.exec(i)}return new Date(a,s,r)}(i):"number"==typeof i?isNaN(i)?n:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(i):new Date(i.getTime());return(a=a&&"Invalid Date"===a.toString()?n:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,a=e.selectedMonth,s=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),a===e.selectedMonth&&s===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){var t={prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var i,n,a,s,r,o,l,c,p,d,u,h,_,f,m,g,v,b,y,x,k,w,$,S,C,T,I,j,W,E,D,B,z,H,F,N,A,L,M,O=new Date,G=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Y=this._get(t,"isRTL"),Z=this._get(t,"showButtonPanel"),q=this._get(t,"hideIfNoPrevNext"),P=this._get(t,"navigationAsDateFormat"),R=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),J=this._get(t,"stepMonths"),U=1!==R[0]||1!==R[1],Q=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,"min"),K=this._getMinMaxDate(t,"max"),ee=t.drawMonth-V,te=t.drawYear;if(ee<0&&(ee+=12,te--),K)for(i=this._daylightSavingAdjust(new Date(K.getFullYear(),K.getMonth()-R[0]*R[1]+1,K.getDate())),i=X&&i<X?X:i;this._daylightSavingAdjust(new Date(te,ee,1))>i;)--ee<0&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,n=this._get(t,"prevText"),n=P?this.formatDate(n,this._daylightSavingAdjust(new Date(te,ee-J,1)),this._getFormatConfig(t)):n,a=this._canAdjustMonth(t,-1,te,ee)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")).text(n))[0].outerHTML:q?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")).text(n))[0].outerHTML,s=this._get(t,"nextText"),s=P?this.formatDate(s,this._daylightSavingAdjust(new Date(te,ee+J,1)),this._getFormatConfig(t)):s,r=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:s}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")).text(s))[0].outerHTML:q?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:s}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")).text(s))[0].outerHTML,o=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?Q:G,o=P?this.formatDate(o,l,this._getFormatConfig(t)):o,c="",t.inline||(c=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),p="",Z&&(p=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(Y?c:"").append(this._isInRange(t,l)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(o):"").append(Y?"":c)[0].outerHTML),d=parseInt(this._get(t,"firstDay"),10),d=isNaN(d)?0:d,u=this._get(t,"showWeek"),h=this._get(t,"dayNames"),_=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),b=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),x="",w=0;w<R[0];w++){for($="",this.maxRows=4,S=0;S<R[1];S++){if(C=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),T=" ui-corner-all",I="",U){if(I+="<div class='ui-datepicker-group",R[1]>1)switch(S){case 0:I+=" ui-datepicker-group-first",T=" ui-corner-"+(Y?"right":"left");break;case R[1]-1:I+=" ui-datepicker-group-last",T=" ui-corner-"+(Y?"left":"right");break;default:I+=" ui-datepicker-group-middle",T=""}I+="'>"}for(I+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===w?Y?r:a:"")+(/all|right/.test(T)&&0===w?Y?a:r:"")+this._generateMonthYearHeader(t,ee,te,X,K,w>0||S>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",j=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",k=0;k<7;k++)j+="<th scope='col'"+((k+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[W=(k+d)%7]+"'>"+_[W]+"</span></th>";for(I+=j+"</tr></thead><tbody>",E=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,E)),D=(this._getFirstDayOfMonth(te,ee)-d+7)%7,B=Math.ceil((D+E)/7),z=U&&this.maxRows>B?this.maxRows:B,this.maxRows=z,H=this._daylightSavingAdjust(new Date(te,ee,1-D)),F=0;F<z;F++){for(I+="<tr>",N=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(H)+"</td>":"",k=0;k<7;k++)A=g?g.apply(t.input?t.input[0]:null,[H]):[!0,""],M=(L=H.getMonth()!==ee)&&!b||!A[0]||X&&H<X||K&&H>K,N+="<td class='"+((k+d+6)%7>=5?" ui-datepicker-week-end":"")+(L?" ui-datepicker-other-month":"")+(H.getTime()===C.getTime()&&ee===t.selectedMonth&&t._keyEvent||y.getTime()===H.getTime()&&y.getTime()===C.getTime()?" "+this._dayOverClass:"")+(M?" "+this._unselectableClass+" ui-state-disabled":"")+(L&&!v?"":" "+A[1]+(H.getTime()===Q.getTime()?" "+this._currentClass:"")+(H.getTime()===G.getTime()?" ui-datepicker-today":""))+"'"+(L&&!v||!A[2]?"":" title='"+A[2].replace(/'/g,"&#39;")+"'")+(M?"":" data-handler='selectDay' data-event='click' data-month='"+H.getMonth()+"' data-year='"+H.getFullYear()+"'")+">"+(L&&!v?"&#xa0;":M?"<span class='ui-state-default'>"+H.getDate()+"</span>
28":"<a class='ui-state-default"+(H.getTime()===G.getTime()?" ui-state-highlight":"")+(H.getTime()===Q.getTime()?" ui-state-active":"")+(L?" ui-priority-secondary":"")+"' href='#' aria-current='"+(H.getTime()===Q.getTime()?"true":"false")+"' data-date='"+H.getDate()+"'>"+H.getDate()+"</a>")+"</td>",H.setDate(H.getDate()+1),H=this._daylightSavingAdjust(H);I+=N+"</tr>"}++ee>11&&(ee=0,te++),$+=I+="</tbody></table>"+(U?"</div>"+(R[0]>0&&S===R[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}x+=$}return x+=p,t._keyEvent=!1,x},_generateMonthYearHeader:function(e,t,i,n,a,s,r,o){var l,c,p,d,u,h,_,f,m=this._get(e,"changeMonth"),g=this._get(e,"changeYear"),v=this._get(e,"showMonthAfterYear"),b=this._get(e,"selectMonthLabel"),y=this._get(e,"selectYearLabel"),x="<div class='ui-datepicker-title'>",k="";if(s||!m)k+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=a&&a.getFullYear()===i,k+="<select class='ui-datepicker-month' aria-label='"+b+"' data-handler='selectMonth' data-event='change'>",p=0;p<12;p++)(!l||p>=n.getMonth())&&(!c||p<=a.getMonth())&&(k+="<option value='"+p+"'"+(p===t?" selected='selected'":"")+">"+o[p]+"</option>");k+="</select>"}if(v||(x+=k+(!s&&m&&g?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",s||!g)x+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(e,"yearRange").split(":"),u=(new Date).getFullYear(),h=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?u+parseInt(e,10):parseInt(e,10);return isNaN(t)?u:t},_=h(d[0]),f=Math.max(_,h(d[1]||"")),_=n?Math.max(_,n.getFullYear()):_,f=a?Math.min(f,a.getFullYear()):f,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+y+"' data-handler='selectYear' data-event='change'>";_<=f;_++)e.yearshtml+="<option value='"+_+"'"+(_===i?" selected='selected'":"")+">"+_+"</option>";e.yearshtml+="</select>",x+=e.yearshtml,e.yearshtml=null}return x+=this._get(e,"yearSuffix"),v&&(x+=(!s&&m&&g?"":"&#xa0;")+k),x+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),a=e.selectedMonth+("M"===i?t:0),s=Math.min(e.selectedDay,this._getDaysInMonth(n,a))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,a,s)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),a=i&&t<i?i:t;return n&&a>n?n:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var a=this._getNumberOfMonths(e),s=this._daylightSavingAdjust(new Date(i,n+(t<0?t:a[0]*a[1]),1));return t<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(e,s)},_isInRange:function(e,t){var i,n,a=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),r=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!a||t.getTime()>=a.getTime())&&(!s||t.getTime()<=s.getTime())&&(!r||t.getFullYear()>=r)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var a=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),a,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);
28var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)})):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new i,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.1";e.datepicker})),app_shop.fn.fontCallback=()=>{void 0!==app_shop.fn.fontCallbackMenu&&app_shop.fn.fontCallbackMenu()},app_shop.run((()=>{const e=document.querySelector(".tel_overlay");e.addEventListener("click",(t=>{t.target.classList.contains("tel_overlay__link")||e.classList.toggle("--open")}))}),"all",".tel_overlay");var google_map_style_array=[{featureType:"landscape",stylers:[{saturation:-100},{lightness:65},{visibility:"on"}]},{featureType:"poi",stylers:[{saturation:-100},{lightness:51},{visibility:"simplified"}]},{featureType:"road.highway",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{saturation:-100},{lightness:30},{visibility:"on"}]},{featureType:"road.local",stylers:[{saturation:-100},{lightness:40},{visibility:"on"}]},{featureType:"transit",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"administrative.province",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"on"},{lightness:-25},{saturation:-100}]},{featureType:"water",elementType:"geometry",stylers:[{hue:"#ffff00"},{lightness:-25},{saturation:-97}]}];app_shop.vars.compareList={1:[166,167],2:[289]},app_shop.fn.cookie={get:function(e){const t=document.cookie.split(";");for(let i=0;i<t.length;i++){const n=t[i].trim(),[a,s]=n.split("=");if(a===e)return decodeURIComponent(s)}return null},set:function(e,t,i){let n="";if(i){const e=new Date;e.setTime(e.getTime()+24*i*60*60*1e3),n=`; expires=${e.toUTCString()}`}document.cookie=`${e}=${encodeURIComponent(t)}${n}; path=/`},remove:function(e){this.set(e,"",-1)}},app_shop.fn.fetchAndRefresh=async e=>{let t=e.getAttribute("href");t&&(await fetch(t),window.location=window.location)},app_shop.txt.compareWarining="Nie możesz porównać produktu z produktami z innej kategorii",app_shop.run((()=>{document.querySelectorAll(".--compare.--add:not(.compare_done)").forEach((e=>{e.classList.add("compare_done"),e.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation();const i=e.dataset.ni,n=[...document.querySelectorAll('[class*="bc-item"]')].reverse();let a=[],s=[];n.forEach((e=>{const t=e.dataset.ni;if(app_shop.vars.compareList&&0===a.length){const e=[...new Set(Object.values(app_shop.vars.compareList).filter((e=>e.includes(t))).flat())];e.length&&(a=e)}s.push({title:e.dataset.title,ni:t})}));const r=s.filter((e=>a.includes(e.ni)));a.length>0&&(s=r);const o={id:i,categories:s},l=JSON.parse(app_shop.fn.cookie.get("compareItems"))||null;if(!l)return app_shop.fn.cookie.set("compareItems",JSON.stringify([o]),10),void app_shop.fn.fetchAndRefresh(e);const c=l.map((e=>e.categories.map((e=>e.ni)))).flat();let p=!1;if(n.forEach((e=>{c.includes(e.dataset.ni)&&(p=!0)})),!p)return t.preventDefault(),void Alertek.show_alert(app_shop.txt.compareWarining);app_shop.fn.cookie.set("compareItems",JSON.stringify([...l,o]),10),app_shop.fn.fetchAndRefresh(e)}))}))}),"all",".--compare.--add",!0),app_shop.graphql||(app_shop.graphql={}),app_shop.graphql.getLowestPrice=async e=>{const t=JSON.stringify({query:`query {\n      getLastLowestProductPrices(${e}) {\n        id\n        sizes {\n          id\n          price {\n            ${app_shop?.vars?.priceType||"gross"} {\n              value\n              currency\n              formatted\n            }\n          }\n        }\n      }\n    }`});try{const e=await fetch(app_shop?.urls?.graphql||"/graphql/v1/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t});return await e.json()}catch(e){return console.error("AJAX fetchLastLowestProductPrices() Error:",e),!1}},app_shop.run((function(){$("[data-ajaxLoad]").length&&(app_shop.fn.hotspotAjaxInit=new HotspotAjaxInit({afterAllHotspotsCallback:()=>{$(".hotspot:not(.--list):not(.--slider):not(.--bundle)").each((function(){$(this).find(".product__name").setHeight($(this).find(".products")),$(this).find(".product__prices").setHeight($(this).find(".products"))})),app_shop.vars.hotspot_slider=new HotspotSlider({selector:".hotspot.--slider .products:not(.slick-initialized)",callbackBefore:e=>{e.each((function(){$(this).on("init",(function(e){app_shop.fn.multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(e,t,i){app_shop.fn.multiSlideAdaptiveHeight(this)})),$(this).find(".product__name").setHeight($(this)),$(this).find(".product__prices").setHeight($(this))}))}}),app_shop.fn.hotspotSlick=new HotspotSlider({selector:".hotspot:not(.--list):not(.--slider):not(#text_cms_associated):not(.--bundle):not(.--added) .products:not(.--dontslick):not(.slick-initialized)",options:{slidesToShow:4,slidesToScroll:1,dots:!1,arrows:!0,prevArrow:'<a class="slick-prev" href=""><i class="icon-angle-left"></i></a>',nextArrow:'<a class="slick-next" href=""><i class="icon-angle-right"></i></a>',infinite:!1,responsive:[{breakpoint:757,settings:{slidesToShow:2}}]},callbackBefore:e=>{e.each((function(){$(this).on("init",(function(e){app_shop.fn.multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(e,t,i){app_shop.fn.multiSlideAdaptiveHeight(this)})),$(this).find(".product__name").setHeight($(this)),$(this).find(".product__prices").setHeight($(this))}))}}),app_shop.vars.view,app_shop.fn.projectorTabs&&app_shop.fn.projectorTabs.init(),$(".hotspot .products").scroll((function(){app_shop.vars.bLazy&&app_shop.vars.bLazy.revalidate()}))}}))}),"all","body",!0),app_shop.run((function(){app_shop.fn.hotspotSlick=new HotspotSlider({selector:".hotspot:not(.--list):not(.--slider):not(#text_cms_associated):not(.--bundle):not(.--added) .products:not(.--dontslick):not(.slick-initialized)",options:{slidesToShow:4,slidesToScroll:1,dots:!1,arrows:!0,prevArrow:'<a class="slick-prev" href=""><i class="icon-angle-left"></i></a>',nextArrow:'<a class="slick-next" href=""><i class="icon-angle-right"></i></a>',infinite:!1,responsive:[]},callbackBefore:e=>{e.each((function(){$(this).on("init",(function(e){app_shop.fn.multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(e,t,i){app_shop.fn.multiSlideAdaptiveHeight(this)})),$(this).find(".product__name").setHeight($(this)),$(this).find(".product__prices").setHeight($(this))}))}})}),"all",".hotspot"),app_shop.run((function(){$(".hotspot:not(.--list):not(.--slider):not(.--bundle):not(.--added)").each((function(){$(this).find(".product__name").setHeight($(this).find(".products")),$(this).find(".product__prices").setHeight($(this).find(".products"))})),1===app_shop.vars.view||app_shop.fn.hotspotSlick.init()}),[1,2,3,4],".hotspot"),app_shop.run((function(){$(".hotspot .products").scroll((function(){app_shop.vars.bLazy&&app_shop.vars.bLazy.revalidate()}))}),1,".hotspot .products"),app_shop.run((function(){app_shop.vars.hotspot_slider=new HotspotSlider({selector:".hotspot.--slider .products:not(.slick-initialized)",callbackBefore:e=>{e.each((function(){$(this).on("init",(function(e){app_shop.fn.multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(e,t,i){app_shop.fn.multiSlideAdaptiveHeight(this)})),$(this).find(".product__name").setHeight($(this)),$(this).find(".product__prices").setHeight($(this))}))}})}),"all",".hotspot.--slider"),app_shop.run((function(){$("[data-tablet-class]").each((function(){$(this).removeClass($(this).attr("data-tablet-class"))})),$("[data-mobile-class]").each((function(){$(this).removeClass($(this).attr("data-mobile-class"))})),$("html").removeClass("_mobile")}),[3,4],"body",!0),app_shop.run((function(){setTabletClass(),$("#projector_form div.product_info").prepend($("div.product_info_top")),$("#projector_form h1").after($("div.projector_description"))}),2,"body",!0),app_shop.run((function(){setMobileClass(),$("#n67367").length?($("#n67367").before($("div.product_info_top")),$("#n67367").before($("div.projector_description"))):($("#projector_form div.product_info").append($("div.product_info_top")),$("#projector_form div.product_info").append($("div.projector_description")))}),1,"body",!0),app_shop.run((function(){$(".cm").find("img.rwd-src").each((function(){$this=$(this),$this.attr("src",app_shop.fn.getRwdSrc($this))}))}),[1,2,3,4]),app_shop.run((function(){$("img.b-lazy").parents("a").addClass("loading"),app_shop.vars.bLazy=new Blazy({breakpoints:[{width:420,src:"data-src-small"}],success:function(e){$(e).parents(".loading").removeClass("loading"),$("#main_banner1 .main_slider.slick-slider").length&&setTimeout((()=>{$("#main_banner1 .main_slider").find(".slick-slide").height("auto"),$("#main_banner1 .main_slider").slick("setOption","","",!0)}),100)}}),$(".form-group .form-control, .f-group .f-control").on("change input focus blur",app_shop.fn.addFocused),setTimeout((()=>{$(".form-group .form-control, .f-group .f-control").each(app_shop.fn.addFocused)}),500),$(".f-group.--file .f-control").on("change",(function(){var e=$
28(this),t=e.siblings(".f-label");e.val().length?(t.addClass("--file"),t.attr("data-label")||t.attr("data-label",t.text()),t.text(e.val())):(t.removeClass("--file"),t.text(t.attr("data-label")))})),$(".drop_down_label").append(" <span>"),$(".drop_down_list > .active").each((function(){$(this).parents(".drop_down_wrapper").find(".drop_down_label span").html($(this).html())})),$(document).on("click touchstart",".drop_down_label",(function(){$(this).toggleClass("open_list"),$(this).next(".drop_down_list").slideToggle()})),$(document).on("click",".drop_down_list > *",(function(){$(this).parents(".drop_down_wrapper").find(".drop_down_label span").text($(this).text()),$(this).parents(".drop_down_wrapper").find(".drop_down_label").removeClass("open_list"),$(this).parents(".drop_down_list").slideUp()})),$("table.ui-responsive").each((function(){if($(this).find("thead th").length)var e=$.map($(this).find("thead tr th"),(function(e,t){return $(e).text()}));else e=$.map($(this).find("thead tr td"),(function(e,t){return $(e).text()}));$(this).find("tbody tr").each((function(){$(this).find("td:first").replaceWith((function(t,i){return e[0]?$("<th/>").html('<b class="ui-table-cell-label">'+e[0]+"</b>"+i):$("<th/>").html(i)}))})),$(this).find("tbody tr").each((function(){$(this).find("td").each((function(t){e[t+1]&&$(this).prepend('<b class="ui-table-cell-label">'+e[t+1]+"</b>")}))}))})),$(".align_row").iai_align(),$("body").append($("#alert_cover")),$("body").backTop({txt:'<i class="icon-chevron-up"></i>'});let e=window.visualViewport?.01*window.visualViewport.height:.01*window.innerHeight;document.documentElement.style.setProperty("--vh",`${e}px`),window.visualViewport?window.visualViewport.addEventListener("resize",(function(){e=.01*window.visualViewport.height,document.documentElement.style.setProperty("--vh",`${e}px`)})):window.addEventListener("resize",(()=>{e=.01*window.innerHeight,document.documentElement.style.setProperty("--vh",`${e}px`)}))}),"all"),app_shop.run((function(){$(".article__date").each((function(){const e=$(this),t=app_shop.fn.news_data({data:e.text(),month_names:iaical_shortNames,format:"<div>%d</div><span>%m</span>"});t&&e.html(t)}
28))}),"all",".article__date"),app_shop.fn.fixed_scroll=(e,t)=>{let i=window.scrollY;const n=window;window.addEventListener("scroll",(function(a){n.scrollY>i&&n.scrollY>0?!e.classList.contains(t)&&e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t),i=n.scrollY}))},app_shop.fn.isIos=()=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,app_shop.vars.isIos=app_shop.fn.isIos(),app_shop.fn.isSafari=()=>isSafari=navigator.vendor&&navigator.vendor.indexOf("Apple")>-1&&navigator.userAgent&&-1==navigator.userAgent.indexOf("CriOS")&&-1==navigator.userAgent.indexOf("FxiOS"),app_shop.vars.isSafari=app_shop.fn.isSafari(),app_shop.run((function(){app_shop.fn.fixed_scroll(document.querySelector("html"),"scroll"),app_shop.vars.isIos&&$("html").addClass("--ios"),app_shop.vars.isSafari&&$("html").addClass("--safari")}),[1,2],"#container"),app_shop.run((function(){$(".moreInfo__show").on("click",(function(){$(this).parent().toggleClass("--hover"),$(this).parent().find(".moreInfo").toggleClass("--hover")}))}),"all",".moreInfo__show"),app_shop.txt.txt_77752_1="Nie można wgrać pliku %s, ponieważ przekracza maksymalny dozwolony rozmiar %dMB.",app_shop.txt.txt_77752_2="Nie można wgrać pliku %s, ponieważ załączanie plików tego typu jest niedozwolone.",app_shop.txt.txt_77752_3="Dopuszczalne formaty zdjęć: .jpg.",app_shop.txt.txt_77752_4="Maksymalny rozmiar zdjęcia to: %spx.";var hotspotAjaxWrapType="";function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(i),!0).forEach((function(t){_defineProperty(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function _defineProperty(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}app_shop.txt.txt_validation1="Minimalna liczba znaków dla tego pola to ",app_shop.txt.txt_validation2="Maksymalna liczba znaków dla tego pola to ",app_shop.txt.txt_validation3="Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected].",app_shop.txt.txt_validation4="Te pole jest obowiązkowe.",app_shop.txt.txt_validation5="Format numeru konta bankowego jest niepoprawny ",app_shop.txt.txt_validation6="Numer telefonu powinien zawierać minimum 9 znaków ",app_shop.txt.hotspot_prev="Poprzedni z tej kategorii",app_shop.txt.hotspot_next="Następny z tej kategorii",function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(e){for(var t=window.document,i=a(t);i;)i=a(t=i.ownerDocument);return t}(),t=[],i=null,n=null;r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r._setupCrossOriginUpdater=function(){return i||(i=function(e,i){n=e&&i?d(e,i):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),i},r._resetCrossOriginUpdater=function(){i=null,n=null},r.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,i){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==i[t-1]}))},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(t){var i=t.defaultView;if(i&&-1==this._monitoringDocuments.indexOf(t)){var n=this._checkForIntersections,s=null,r=null;this.POLL_INTERVAL?s=i.setInterval(n,this.POLL_INTERVAL):(o(i,"resize",n,!0),o(t,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in i&&(r=new i.MutationObserver(n)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(s&&e.clearInterval(s),l(e,"resize",n,!0)),l(t,"scroll",n,!0),r&&r.disconnect()}));var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var p=a(t);p&&this._monitorIntersections(p.ownerDocument)}}},r.prototype._unmonitorIntersections=function(t){var i=this._monitoringDocuments.indexOf(t);if(-1!=i){var n=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some((function(e){var i=e.element.ownerDocument;if(i==t)return!0;for(;i&&i!=n;){var s=a(i);if((i=s&&s.ownerDocument)==t)return!0}return!1}))){var s=this._monitoringUnsubscribes[i];if(this._monitoringDocuments.splice(i,1),this._monitoringUnsubscribes.splice(i,1),s(),t!=n){var r=a(t);r&&this._unmonitorIntersections(r.ownerDocument)}}}},r.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},r.prototype._checkForIntersections=function(){if(this.root||!i||n){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};
vendor: 4,456 bytes, line 28
28this._observationTargets.forEach((function(n){var a=n.element,r=c(a),o=this._rootContainsTarget(a),l=n.entry,p=e&&o&&this._computeTargetAndRootIntersection(a,r,t),d=null;this._rootContainsTarget(a)?i&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var u=n.entry=new s({time:window.performance&&performance.now&&performance.now(),target:a,boundingClientRect:r,rootBounds:d,intersectionRect:p});l?e&&o?this._hasCrossedThreshold(l,u)&&this._queuedEntries.push(u):l&&l.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},r.prototype._computeTargetAndRootIntersection=function(t,a,s){if("none"!=window.getComputedStyle(t).display){for(var r,o,l,p,u,_,f,m,g=a,v=h(t),b=!1;!b&&v;){var y=null,x=1==v.nodeType?window.getComputedStyle(v):{};if("none"==x.display)return null;if(v==this.root||9==v.nodeType)if(b=!0,v==this.root||v==e)i&&!this.root?!n||0==n.width&&0==n.height?(v=null,y=null,g=null):y=n:y=s;else{var k=h(v),w=k&&c(k),$=k&&this._computeTargetAndRootIntersection(k,w,s);w&&$?(v=k,y=d(w,$)):(v=null,g=null)}else{var S=v.ownerDocument;v!=S.body&&v!=S.documentElement&&"visible"!=x.overflow&&(y=c(v))}if(y&&(r=y,o=g,void 0,void 0,void 0,void 0,void 0,void 0,l=Math.max(r.top,o.top),p=Math.min(r.bottom,o.bottom),u=Math.max(r.left,o.left),m=p-l,g=(f=(_=Math.min(r.right,o.right))-u)>=0&&m>=0&&{top:l,bottom:p,left:u,right:_,width:f,height:m}||null),!g)break;v=v&&h(v)}return g}},r.prototype._getRootRect=function(){var t;if(this.root&&!_(this.root))t=c(this.root);else{var i=_(this.root)?this.root:e,n=i.documentElement,a=i.body;t={top:0,left:0,right:n.clientWidth||a.clientWidth,width:n.clientWidth||a.clientWidth,bottom:n.clientHeight||a.clientHeight,height:n.clientHeight||a.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,i){return"px"==t.unit?t.value:t.value*(i%2?e.width:e.height)/100})),i={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return i.width=i.right-i.left,i.height=i.bottom-i.top,i},r.prototype._hasCrossedThreshold=function(e,t){var i=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(i!==n)for(var a=0;a<this.thresholds.length;a++){var s=this.thresholds[a];if(s==i||s==n||s<i!=s<n)return!0}},r.prototype._rootIsInDom=function(){return!this.root||u(e,this.root)},r.prototype._rootContainsTarget=function(t){var i=this.root&&(this.root.ownerDocument||this.root)||e;return u(i,t)&&(!this.root||i==t.ownerDocument)},r.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},r.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=r,window.IntersectionObserverEntry=s}function a(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function s(e){this.time=e.time,this.target=e.target,this.rootBounds=p(e.rootBounds),this.boundingClientRect=p(e.boundingClientRect),this.intersectionRect=p(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,i=t.width*t.height,n=this.intersectionRect,a=n.width*n.height;this.intersectionRatio=i?Number((a/i).toFixed(4)):this.isIntersecting?1:0}function r(e,t){var i,n,a,s=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(s.root&&1!=s.root.nodeType&&9!=s.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,a=null,function(){a||(a=setTimeout((function(){i(),a=null}),n))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(s.rootMargin),this.thresholds=this._initThresholds(s.threshold),this.root=s.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function o(e,t,i,n){"function"==typeof e.addEventListener?e.addEventListener(t,i,n||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,i)}function l(e,t,i,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,i,n||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,i)}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}
28return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function p(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function d(e,t){var i=t.top-e.top,n=t.left-e.left;return{top:i,left:n,height:t.height,width:t.width,bottom:i+t.height,right:n+t.width}}function u(e,t){for(var i=t;i;){if(i==e)return!0;i=h(i)}return!1}function h(t){var i=t.parentNode;return 9==t.nodeType&&t!=e?a(t):(i&&i.assignedSlot&&(i=i.assignedSlot.parentNode),i&&11==i.nodeType&&i.host?i.host:i)}function _(e){return e&&9===e.nodeType}}();const Alertek={alert_cover:"",cloudID:"",Start:(e,t)=>{if($("#alert_cover").remove(),$("body").append(`<div id="alert_cover" class="alertek ${t?`${t}`:""}" style="display:none" onclick="Alertek.hide_alert();"><![CDATA[]]></div>`),t||$("#alert_cover").addClass("menu_messages_message"),Alertek.cloudID=$("#alert_cover"),e){if(Alertek.cloudID.html(e),!t){const e=parseInt($(window).height()/2-Alertek.cloudID.height()/2+$(window).scrollTop()),t=parseInt($(window).width()/2-Alertek.cloudID.width()/2);Alertek.cloudID.css({top:e,marginLeft:t,left:0})}Alertek.cloudID.fadeIn(500),setTimeout(Alertek.End,4e3)}},End:()=>{Alertek.cloudID.fadeOut(500)},Info:e=>{Alertek.Start(e,"--info")},Warning:e=>{Alertek.Start(e,"--warning")},Error:e=>{Alertek.Start(e,"--error")},Success:e=>{Alertek.Start(e,"--success")},show_alert:e=>{Alertek.Start(e)},hide_alert:()=>{Alertek.End()}};$(this).addClass($(this).attr("data-tablet-class")),$("html").removeClass("_mobile"),app_shop.run((function(){setTimeout((function(){$.cookie("ck_cook");$.cookie("login")&&($.cookie("ck_cook",!0,{expires:30}),$("#ckdsclmrshtdwn").click())}),500)}),"all","body"),function(e){e.fn.separateElements=function(t){var i=e.extend({numCol:4},t);return this.each((function(){$this=e(this),$this.find(".separator").remove(),$this.find("> *:nth-child("+i.numCol+"n)").after('<div class="clearfix separator">')}))}}(jQuery),function(e){e.fn.wrappTableLayout=function(t){var i=e.extend({numCol:4,wrapper:'<div class="table_row">',tableClass:"table_wrapper",cellClass:"table_cell",wrapp:!0},t);return this.each((function(){$this=e(this);var t=$this.find("> *");if($this.is("."+i.tableClass)&&($this.removeClass(i.tableClass),t.removeClass(i.cellClass),t.find("> *").unwrap(),t=$this.find("> *")),i.wrapp){$this.addClass(i.tableClass),t.addClass(i.cellClass);for(var n=0,a=t.length;n<a;n+=i.numCol)t.slice(n,n+i.numCol).wrapAll(i.wrapper)}}))}}(jQuery);var IAI_Ajax={Request:function(_url,pd,fun){$.ajax({type:"POST",url:_url,data:pd}).done((function(responseText){fun&&fun.onSuccess&&(fun.arg?eval(fun.onSuccess+"('"+responseText+"', '"+fun.arg+"');"):eval(fun.onSuccess+"('"+responseText+"');"))}))}};app_shop.fn.addFocused=function(e,t){const i=t?$(t):$(this);(i.next().hasClass("control-label")||i.next().hasClass("f-label"))&&(""!=i.val()?i.addClass("focused"):i.removeClass("focused"))},$.fn.textWidth=function(e,t){return $.fn.textWidth.fakeEl||($.fn.textWidth.fakeEl=$("<span>").hide().appendTo(document.body)),$.fn.textWidth.fakeEl.text(e||this.val()||this.text()).css("font",t||this.css("font")),$.fn.textWidth.fakeEl.width()};const loadImageFromInput=e=>new Promise(((t,i)=>{const n=(window.URL||window.webkitURL).createObjectURL(e),a=new Image;a.onload=()=>t({width:a.width,height:a.height}),a.onerror=i,a.src=n}));$(document).on("change","input[type=file]",(function(){if(!(window.File&&window.FileReader&&window.FileList&&window.Blob))return!1;const e=this.files[0],{name:t,size:i,type:n}=e||{},[a]=t.split(".").reverse(),s=$(this).data("max_filesize"),r=s&&i<=Number(s),o=app_shop.vars.blacklist_mime&&app_shop.vars.blacklist_mime.includes(n),l=app_shop.vars.blacklist_extension&&app_shop.vars.blacklist_extension.includes(a);let c="";if(o||l&&app_shop.txt.txt_77752_2)c=app_shop.txt.txt_77752_2.format(t);else if(!r&&app_shop.txt.txt_77752_1&&s)c=app_shop.txt.txt_77752_1.format(t,(s/1048576).toFixed(2));else if("opinion_photo"===$(this).attr("name"))if("jpg"!==a&&app_shop.txt.txt_77752_3)c=app_shop.txt.txt_77752_3;else if(app_shop.txt.txt_77752_4){const t=2048,i=1536;loadImageFromInput(e).then((e=>{const{width:n,height:a}=e;(n>t||a>i)&&(c=app_shop.txt.txt_77752_4.format(`${t}x${i}`),$(this).val(""),Alertek.Start(c))})).catch((e=>console.error(e)))}return c?($(this).val(""),Alertek.Start(c),!1):void 0})),$.fn.inView=function(){return $(window).scrollTop()+$(window).height()+100>$(this).position().top},function(e){e.fn.backTop=function(t){var i=e.extend({speed:500,txt:"&uarr;",id:"backTop",duration:500},t);e("#"+i.id).remove(),e("body").append("<a id="+i.id+">"+i.txt+"</a>");var n=e("#"+i.id),a=2*e(window).height(),s=i.speed;getRightOffset=function(){var t=10,i=.5*(e(window).width()-e("#container").outerWidth())-2*t;i>=n.outerWidth()&&(t=i-n.outerWidth()+t),n.css("right",t+"px")},getRightOffset(),e(window).resize((function(){getRightOffset()})),e(document).scroll((function(){e(window).scrollTop()>=a?n.fadeIn(s):n.fadeOut(s)})),n.click((function(){e("html, body").animate({scrollTop:0},{duration:i.duration})}))}}(jQuery),function(e,t,i){function n(e,t){return typeof e===t}function a(e){var t=w.className,i=y._config.classPrefix||"";if($&&(t=t.baseVal),y._config.enableJSClass){var n=new RegExp("(^|\\s)"+i+"no-js(\\s|$)");t=t.replace(n,"$1"+i+"js$2")}y._config.enableClasses&&(t+=" "+i+e.join(" "+i),$?w.className.baseVal=t:w.className=t)}function s(e,t){if("object"==typeof e)for(var i in e)k(e,i)&&s(i,e[i]);else{var n=(e=e.toLowerCase()).split("."),r=y[n[0]];
28if(2==n.length&&(r=r[n[1]]),void 0!==r)return y;t="function"==typeof t?t():t,1==n.length?y[n[0]]=t:(!y[n[0]]||y[n[0]]instanceof Boolean||(y[n[0]]=new Boolean(y[n[0]])),y[n[0]][n[1]]=t),a([(t&&0!=t?"":"no-")+n.join("-")]),y._trigger(e,t)}return y}function r(e){return e.replace(/([a-z])-([a-z])/g,(function(e,t,i){return t+i.toUpperCase()})).replace(/^-/,"")}function o(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):$?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function l(t,i,n){var a;if("getComputedStyle"in e){a=getComputedStyle.call(e,t,i);var s=e.console;if(null!==a)n&&(a=a.getPropertyValue(n));else if(s){s[s.error?"error":"log"].call(s,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else a=!i&&t.currentStyle&&t.currentStyle[n];return a}function c(e,t){return!!~(""+e).indexOf(t)}function p(e,t){return function(){return e.apply(t,arguments)}}function d(e,i,n,a){var s,r,l,c,p="modernizr",d=o("div"),u=function(){var e=t.body;return e||((e=o($?"svg":"body")).fake=!0),e}();if(parseInt(n,10))for(;n--;)(l=o("div")).id=a?a[n]:p+(n+1),d.appendChild(l);return(s=o("style")).type="text/css",s.id="s"+p,(u.fake?u:d).appendChild(s),u.appendChild(d),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(t.createTextNode(e)),d.id=p,u.fake&&(u.style.background="",u.style.overflow="hidden",c=w.style.overflow,w.style.overflow="hidden",w.appendChild(u)),r=i(d,e),u.fake?(u.parentNode.removeChild(u),w.style.overflow=c,w.offsetHeight):d.parentNode.removeChild(d),!!r}function u(e){return e.replace(/([A-Z])/g,(function(e,t){return"-"+t.toLowerCase()})).replace(/^ms-/,"-ms-")}function h(t,n){var a=t.length;if("CSS"in e&&"supports"in e.CSS){for(;a--;)if(e.CSS.supports(u(t[a]),n))return!0;return!1}if("CSSSupportsRule"in e){for(var s=[];a--;)s.push("("+u(t[a])+":"+n+")");return d("@supports ("+(s=s.join(" or "))+") { #modernizr { position: absolute; } }",(function(e){return"absolute"==l(e,null,"position")}))}return i}function _(e,t,a,s){function l(){d&&(delete E.style,delete E.modElem)}if(s=!n(s,"undefined")&&s,!n(a,"undefined")){var p=h(e,a);if(!n(p,"undefined"))return p}for(var d,u,_,f,m,g=["modernizr","tspan","samp"];!E.style&&g.length;)d=!0,E.modElem=o(g.shift()),E.style=E.modElem.style;for(_=e.length,u=0;_>u;u++)if(f=e[u],m=E.style[f],c(f,"-")&&(f=r(f)),E.style[f]!==i){if(s||n(a,"undefined"))return l(),"pfx"!=t||f;try{E.style[f]=a}catch(e){}if(E.style[f]!=m)return l(),"pfx"!=t||f}return l(),!1}function f(e,t,i,a,s){var r=e.charAt(0).toUpperCase()+e.slice(1),o=(e+" "+T.join(r+" ")+r).split(" ");return n(t,"string")||n(t,"undefined")?_(o,t,a,s):function(e,t,i){var a;for(var s in e)if(e[s]in t)return!1===i?e[s]:n(a=t[e[s]],"function")?p(a,i||t):a;return!1}(o=(e+" "+C.join(r+" ")+r).split(" "),t,i)}function m(e,t,n){return f(e,i,i,t,n)}var g=[],v=[],b={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var i=this;setTimeout((function(){t(i[e])}),0)},addTest:function(e,t,i){v.push({name:e,fn:t,options:i})},addAsyncTest:function(e){v.push({name:null,fn:e})}},y=function(){};y.prototype=b,y=new y;var x=b._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];b._prefixes=x;var k,w=t.documentElement,$="svg"===w.nodeName.toLowerCase(),S="Moz O ms Webkit",C=b._config.usePrefixes?S.toLowerCase().split(" "):[];b._domPrefixes=C,function(){var e={}.hasOwnProperty;k=n(e,"undefined")||n(e.call,"undefined")?function(e,t){return t in e&&n(e.constructor.prototype[t],"undefined")}:function(t,i){return e.call(t,i)}}(),b._l={},b.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),y.hasOwnProperty(e)&&setTimeout((function(){y._trigger(e,y[e])}),0)},b._trigger=function(e,t){if(this._l[e]){var i=this._l[e];setTimeout((function(){var e;for(e=0;e<i.length;e++)(0,i[e])(t)}),0),delete this._l[e]}},y._q.push((function(){b.addTest=s})),y.addTest("canvas",(function(){var e=o("canvas");return!(!e.getContext||!e.getContext("2d"))}));var T=b._config.usePrefixes?S.split(" "):[];b._cssomPrefixes=T;var I=function(t){var n,a=x.length,s=e.CSSRule;if(void 0===s)return i;if(!t)return!1;if((n=(t=t.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in s)return"@"+t;for(var r=0;a>r;r++){var o=x[r];if(o.toUpperCase()+"_"+n in s)return"@-"+o.toLowerCase()+"-"+t}return!1};b.atRule=I;var j=b.testStyles=d;j("#modernizr { width: 50vw; }",(function(t){var i=parseInt(e.innerWidth/2,10),n=parseInt(l(t,null,"width"),10);y.addTest("cssvwunit",n==i)}));var W={elem:o("modernizr")};y._q.push((function(){delete W.elem}));var E={style:W.elem.style};y._q.unshift((function(){delete E.style})),b.testAllProps=f,b.prefixed=function(e,t,i){return 0===e.indexOf("@")?I(e):(-1!=e.indexOf("-")&&(e=r(e)),t?f(e,t,i):f(e,"pfx"))},b.testAllProps=m,y.addTest("flexbox",m("flexBasis","1px",!0)),y.addTest("touch",(function(){var i;if("ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch)i=!0;else{var n=["@media (",x.join("touch-enabled),("),"heartz",")","{#modernizr{top:9px;position:absolute}}"].join("");j(n,(function(e){i=9===e.offsetTop}))}return i})),function(){var e,t,i,a,s,r;for(var o in v)if(v.hasOwnProperty(o)){if(e=[],(t=v[o]).name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(i=0;i<t.options.aliases.length;i++)e.push(t.options.aliases[i].toLowerCase());for(a=n(t.fn,"function")?t.fn():t.fn,s=0;s<e.length;s++)1===(r=e[s].split(".")).length?y[r[0]]=a:(!y[r[0]]||y[r[0]]instanceof Boolean||(y[r[0]]=new Boolean(y[r[0]])),y[r[0]][r[1]]=a),g.pu
28sh((a?"":"no-")+r.join("-"))}}(),a(g),delete b.addTest,delete b.addAsyncTest;for(var D=0;D<y._q.length;D++)y._q[D]();e.Modernizr=y}(window,document),function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.Blazy=t()}(this,(function(){function e(e){var i=e._util;i.elements=function(e){for(var t=[],i=(e=e.root.querySelectorAll(e.selector)).length;i--;t.unshift(e[i]));return t}(e.options),i.count=i.elements.length,i.destroyed&&(i.destroyed=!1,e.options.container&&d(e.options.container,(function(e){c(e,"scroll",i.validateT)})),c(window,"resize",i.saveViewportOffsetT),c(window,"resize",i.validateT),c(window,"scroll",i.validateT)),t(e)}function t(e){for(var t=e._util,n=0;n<t.count;n++){var a,s=t.elements[n],o=s;a=e.options;var l=o.getBoundingClientRect();a.container&&m&&(o=o.closest(a.containerClass))?a=!!i(o=o.getBoundingClientRect(),_)&&i(l,{top:o.top-a.offset,right:o.right+a.offset,bottom:o.bottom+a.offset,left:o.left-a.offset}):a=i(l,_),(a||r(s,e.options.successClass))&&(e.load(s),t.elements.splice(n,1),t.count--,n--)}0===t.count&&e.destroy()}function i(e,t){return e.right>=t.left&&e.bottom>=t.top&&e.left<=t.right&&e.top<=t.bottom}function n(e,t,i){if(!r(e,i.successClass)&&(t||i.loadInvisible||0<e.offsetWidth&&0<e.offsetHeight))if(t=e.getAttribute(h)||e.getAttribute(i.src)){var n=(t=t.split(i.separator))[f&&1<t.length?1:0],l=e.getAttribute(i.srcset),u="img"===e.nodeName.toLowerCase(),_=(t=e.parentNode)&&"picture"===t.nodeName.toLowerCase();if(u||void 0===e.src){var m=new Image,g=function(){i.error&&i.error(e,"invalid"),o(e,i.errorClass),p(m,"error",g),p(m,"load",v)},v=function(){u?_||s(e,n,l):e.style.backgroundImage='url("'+n+'")',a(e,i),p(m,"load",v),p(m,"error",g)};_&&(m=e,d(t.getElementsByTagName("source"),(function(e){var t=i.srcset,n=e.getAttribute(t);n&&(e.setAttribute("srcset",n),e.removeAttribute(t))}))),c(m,"error",g),c(m,"load",v),s(m,n,l)}else e.src=n,a(e,i)}else"video"===e.nodeName.toLowerCase()?(d(e.getElementsByTagName("source"),(function(e){var t=i.src,n=e.getAttribute(t);n&&(e.setAttribute("src",n),e.removeAttribute(t))})),e.load(),a(e,i)):(i.error&&i.error(e,"missing"),o(e,i.errorClass))}function a(e,t){o(e,t.successClass),t.success&&t.success(e),e.removeAttribute(t.src),e.removeAttribute(t.srcset),d(t.breakpoints,(function(t){e.removeAttribute(t.src)}))}function s(e,t,i){i&&e.setAttribute("srcset",i),e.src=t}function r(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function o(e,t){r(e,t)||(e.className+=" "+t)}function l(e){_.bottom=(window.innerHeight||document.documentElement.clientHeight)+e,_.right=(window.innerWidth||document.documentElement.clientWidth)+e}function c(e,t,i){e.attachEvent?e.attachEvent&&e.attachEvent("on"+t,i):e.addEventListener(t,i,{capture:!1,passive:!0})}function p(e,t,i){e.detachEvent?e.detachEvent&&e.detachEvent("on"+t,i):e.removeEventListener(t,i,{capture:!1,passive:!0})}function d(e,t){if(e&&t)for(var i=e.length,n=0;n<i&&!1!==t(e[n],n);n++);}function u(e,t,i){var n=0;return function(){var a=+new Date;a-n<t||(n=a,e.apply(i,arguments))}}var h,_,f,m;return function(i){if(!document.querySelectorAll){var a=document.createStyleSheet();document.querySelectorAll=function(e,t,i,n,s){for(s=document.all,t=[],i=(e=e.replace(/\[for\b/gi,"[htmlFor").split(",")).length;i--;){for(a.addRule(e[i],"k:v"),n=s.length;n--;)s[n].currentStyle.k&&t.push(s[n]);a.removeRule(0)}return t}}var s=this,r=s._util={};r.elements=[],r.destroyed=!0,s.options=i||{},s.options.error=s.options.error||!1,s.options.offset=s.options.offset||100,s.options.root=s.options.root||document,s.options.success=s.options.success||!1,s.options.selector=s.options.selector||".b-lazy",s.options.separator=s.options.separator||"|",s.options.containerClass=s.options.container,s.options.container=!!s.options.containerClass&&document.querySelectorAll(s.options.containerClass),s.options.errorClass=s.options.errorClass||"b-error",s.options.breakpoints=s.options.breakpoints||!1,s.options.loadInvisible=s.options.loadInvisible||!1,s.options.successClass=s.options.successClass||"b-loaded",s.options.validateDelay=s.options.validateDelay||25,s.options.saveViewportOffsetDelay=s.options.saveViewportOffsetDelay||50,s.options.srcset=s.options.srcset||"data-srcset",s.options.src=h=s.options.src||"data-src",m=Element.prototype.closest,f=1<window.devicePixelRatio,(_={}).top=0-s.options.offset,_.left=0-s.options.offset,s.revalidate=function(){e(this)},s.load=function(e,t){var i=this.options;void 0===e.length?n(e,t,i):d(e,(function(e){n(e,t,i)}))},s.destroy=function(){var e=this._util;this.options.container&&d(this.options.container,(function(t){p(t,"scroll",e.validateT)})),p(window,"scroll",e.validateT),p(window,"resize",e.validateT),p(window,"resize",e.saveViewportOffsetT),e.count=0,e.elements.length=0,e.destroyed=!0},r.validateT=u((function(){t(s)}),s.options.validateDelay,s),r.saveViewportOffsetT=u((function(){l(s.options.offset)}),s.options.saveViewportOffsetDelay,s),l(s.options.offset),d(s.options.breakpoints,(function(e){if(e.width>=window.screen.width)return h=e.src,!1})),setTimeout((function(){e(s)}))}})),function(e){var t,i,n="center",a="left",s="right",r="auto";function o(t){this.$element=e(t),this.original_text=this.$element.html(),this.settings=e.extend({},e.fn.trunk8.defaults)}function l(){var t,n,a,s,o=this.data("trunk8"),l=o.settings,c=l.width,p=l.side,d=l.fill,u=i.getLineHeight(this)*l.lines,h=o.original_text,_=h.length,f="";if(this.html(h),c===r){if(this.height()<=u)return;for(t=0,n=_-1;t<=n;)a=t+(n-t>>1),s=i.eatStr(h,p,_-a,d),this.html(s),this.height()>u?n=a-1:(t=a+1,f=f.length>s.length?f:s);this.html(""),this.html(f),l.tooltip&&this.attr("title",h)}else isNaN(c)?e.error('Invalid width "'+c+'".'):(a=_-c,s=i.eatStr(h,p,a,d),this.html(s),l.tooltip&&this.attr("title",h))}o.prototype.updateSettings=function(t){this.settings=e.extend(this.settings,t)},t={init:function(t){return this.each((function(){var i=e(this),n=i.data("trunk8");n||i.data("trunk8",n=new o(this)),n.updateSettings(t),l.call(i)}))},update:function(t){return this.each((function(){var i=e(this);t&&(i.data("trunk8").original_text=t),l.call(i)}))},revert:function(){return this.each((function(){var t=e(this).data("trunk8").original_text;e(this).html(t)}))},getSettings:function(){return this.get(0).data("trunk8").settings}},i={eatStr:function(t,r,o,l){var c,p,d=t.length,u=i.eatStr.generateKey.apply(null,arguments);if(i.eatStr.cache[u])return i.eatStr.cache[u];if("string"==typeof t&&0!==d||e.error('Invalid source string "'+t+'".'),o<0||o>d)e.error('Invalid bite size "'+o+'".');else if(0===o)return t;switch("string"!=typeof(l+"")&&e.error("Fill unable to be converted to a string."),r){case s:return i.eatStr.cache[u]=e.trim(t.substr(0,d-o))+l;case a:return i.eatStr.cache[u]=l+e.trim(t.substr(o));case n:return c=d>>1,p=o>>1,i.eatStr.cache[u]=e.trim(i.eatStr(t.substr(0,d-c),s,o-p,""))+l+e.trim(i.eatStr(t.substr(d-c),a,p,""));default:e.error('Invalid side "'+r+'".')}},getLineHeight:function(t){var i,n=e(t),a=n.css("float"),s=n.css("position"),r=n.html(),o="line-height-test";return"none"!==a&&n.css("float","none"),"absolute"===s&&n.css("position","static"),n.html("i").wrap('<div id="'+o+'" />'),i=e("#"+o).innerHeight(),n.html(r).css({float:a,position:s}).unwrap(),i}},i.eatStr.cache={},i.eatStr.generateKey=function(){return Array.prototype.join.call(arguments,"")},e.fn.trunk8=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1
28)):"object"!=typeof i&&i?void e.error("Method "+i+" does not exist on jQuery.trunk8"):t.init.apply(this,arguments)},e.fn.trunk8.defaults={fill:"&hellip;",lines:1,side:s,tooltip:!0,width:r}}(jQuery);var responsiveSwitch=function(){var e=parseInt(window.responsiveSwitchBreakpoint)||1024,t="ResponsiveSwitch",i="content",n="data-rs",a="data-link-desktop",s="data-link-responsive",r="data-always-visible",o="rs-link",l="rs-link-to-desktop",c="rs-link-to-responsive",p="rs-link-inactive",d="rs-link-active";function u(){var a=document.querySelector('meta[name="viewport"]');return null==a.getAttribute(n)&&a.setAttribute(n,a.getAttribute(i)),a.getAttribute(i)==a.getAttribute(n)?(document.cookie=t+"=true;path=/",document.documentElement.clientWidth!=window.innerWidth?document.location.href=b():a.setAttribute(i,"width="+e+"px, initial-scale="+document.documentElement.clientWidth/e)):(document.cookie=t+"=false;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT",document.documentElement.clientWidth!=window.innerWidth?document.location.href=b():a.setAttribute(i,a.getAttribute(n))),!1}var h=!1;function _(){for(var t=document.querySelectorAll("."+o),i=0;i<t.length;i++){var n=t[i];null!=n&&(v(n,c),v(n,l),v(n,p),v(n,d),m()?(g(n,c),g(n,d),n.innerHTML=n.getAttribute(s)):document.documentElement&&(document.documentElement.clientWidth<e||"true"==n.getAttribute(r))?(g(n,l),g(n,d),n.innerHTML=n.getAttribute(a)):(g(n,p),n.innerHTML=""),h||n.addEventListener("click",(function(e){(e=e||window.event).preventDefault(),f()}),!1))}h=!0}function f(){u(),_()}function m(){return document.cookie.search(t+"=true")>-1}function g(e,t){e.className+=" "+t}function v(e,t){e.className=" "+e.className+" ",e.className=e.className.replace(" "+t+" ","")}function b(){var e=(new Date).getTime();return document.location.protocol+"//"+document.location.host+document.location.pathname+(window.location.search?window.location.search+"&":"?")+"rsTimestamp="+e+document.location.hash}return m()&&u(),document.addEventListener&&(document.addEventListener("DOMContentLoaded",_,!1),document.addEventListener("orientationchange",_,!1),window.addEventListener("resize",_,!1)),{toggle:f}}();function procesArrayFunctions(e){var t,i;for(t=0,i=e.length;t<i;t++){$(e[t][1]).length&&e[t][0]($(e[t][1]))}}$.fn.maxHeightO=function(){var e=0;return this.each((function(){e=Math.max(e,$(this).outerHeight())})),e},$.fn.maxHeight=function(){var e=0;return this.height("auto"),this.each((function(){e=Math.max(e,$(this).outerHeight())})),this.height(e),this};var setMobileClass=function(){$("[data-tablet-class]").each((function(){$(this).removeClass($(this).attr("data-tablet-class"))})),$("[data-mobile-class]").each((function(){$(this).addClass($(this).attr("data-mobile-class"))})),$("html").addClass("_mobile")},setTabletClass=function(){$("[data-mobile-class]").each((function(){$(this).removeClass($(this).attr("data-mobile-class"))})),$("[data-tablet-class]").each((function(){$(this).addClass($(this).attr("data-tablet-class"))})),$("html").removeClass("_mobile")};app_shop.formControl={vars:{minLength:function(e){return app_shop.txt.txt_validation1+e+"."},maxLength:function(e){return app_shop.txt.txt_validation2+e+"."},email:app_shop.txt.txt_validation3,required:app_shop.txt.txt_validation4,bankAccount:app_shop.txt.txt_validation5,phone:app_shop.txt.txt_validation6},patterns:{email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},timeHandle:"",ajaxValidation:function(e,t,i,n,a){var s,r,o,l,c,p;if(r=this,o=e.parent(),l=e.data("validation"),p=e.data("ajaxtype"),s=l+"="+t,e.data("serialize")&&e.data("serialize").indexOf("data-")>-1&&(s+="&"+e.attr(e.data("serialize"))),""==t)return r.clearValidation(o),r.resetRequiredClass(o),!1;"get"==p?$.get(i,s,(function(t){t.errno?("bankAccount"==l&&(c=r.vars.bankAccount),r.addError(e,c),a&&a()):(r.addSuccess(e),n&&n())}),"json"):$.post(i,s,(function(t){t.errno?("bankAccount"==l&&(c=r.vars.bankAccount),r.addError(e,c),a&&a()):(r.addSuccess(e),n&&n())}),"json")},ajaxValidationWithData:function(e,t,i,n){$.post(e,t,(function(e){0!=e.errno?n&&n(e):i&&i(e)}),"json")},validate:function(e,t){var i,n,a,s,r,o,l;if(a=e.parent(),i=e.attr("type"),n=e.val(),this.patterns.email,s=e.attr("minlength"),r=e.attr("maxlength"),o=e.data("validate"),l=e.data("validation-url"),"checkbox"==e.attr("type"))e.is(":checked")?e.parents(".has-feedback, .f-feedback").removeClass("has-error --error").addClass("has-success --success"):e.parents(".has-feedback, .f-feedback").removeClass("has-success --success").addClass("has-error --error");else if(l)this.ajaxValidation(e,n,l);else{if(s){if(n.length<s)return this.addError(e,this.vars.minLength(s)),!1;this.addSuccess(e)}if(r){if(n.length>r)return this.addError(e,this.vars.minLength(r)),!1;this.addSuccess(e)}"email"==i&&this.checkMail(e),o&&"text"==i&&(o.indexOf("phone")>-1||o.indexOf("email")>-1)&&($.isNumeric(n)?n.length<9?this.addError(e,this.vars.phone):this.addSuccess(e):o.indexOf("email")>-1?this.checkMail(e):o.indexOf("phone")>-1&&this.addError(e,this.vars.phone)),n||t||(this.clearValidation(a),this.resetRequiredClass(a))}},checkMail:function(e){e.val().match(this.patterns.email)?this.addSuccess(e):this.addError(e,this.vars.email)},checkForm:function(e,t){var i,n,a;return i=e.find("input.validate:enabled:visible, textarea.validate:enabled:visible, input.--validate:enabled:visible, textarea.--validate:enabled:visible"),e.find('input[type="checkbox"]').not("[disabled]").not(":checked"),!0,!0,a=this,!i.length||(i.each((function(){a.validate($(this),!0)})),this.resetRequiredClass(i),!(n=e.find(".has-error:visible:first, .--error:visible:first")).length||($("html, body").animate({scrollTop:app_shop.vars.view<3?n.offset().top-10-$("header").outerHeight():n.offset().top-10},300),!1))},checkValidateFields:function(e,t){var i=e.find("input.validate:enabled:visible, textarea.validate:enabled:visible, input.--validate:enabled:visible, textarea.--validate:enabled:visible"),n=e.find("input#terms_agree[required]").not("[disabled]").not(":checked"),a=!0;if((that=this,this.resetRequiredClass(i),i.length)&&(i.each((function(){$this=$(this),a=!$.trim($this.val()),$this.is("[required]")&&a&&(that.addError($this),$this.parents(".form-group, .f-group").find(" > div").append('<span class="help-block validate_message text-danger">'+app_shop.txt.txt_validation4+"</span>"),n.each((function(){that.addError($this)})))})),that.resetRequiredClass(e),e.find(".has-error:visible:first, .--error:visible:first").length))return!1;return!0},addSuccess:function(e){this.clearValidation(e.parent()),this.removeErrorInfo(e),(e=e.is("[type=checkbox]")?e.parents("div.checkbox, .--checkbox"):e.parent()).addClass("has-success --success")},addError:function(e,t){this.clearValidation(e.parent()),t&&this.addErrorInfo(e,t),(e=e.is("[type=checkbox]")?e.parents("div.checkbox, .--checkbox"):e.parent()).addClass("has-error --error")},clearValidation:function(e){this.removeErrorInfo(e),e.removeClass("has-success has-error has-required --success --error --required")},resetRequiredClass:function(e){e.find("input.validate[required], input.--validate[required]").parent().not(".has-success,.has-error,.checkbox, .--success, .--error, .--checkbox").addClass("has-required --required")},addErrorInfo:function(e,t){this.removeErrorInfo(e),e.parent().append('<span class="help-block validate_message text-danger">'+t+"</span>")},removeErrorInfo:function(e){e.children(".validate_message").remove()}},$.fn.setHeight=function(e){var t=Math.round(e.outerWidth(!0)/e.children().outerWidth(!0)),i=e.children().length;if(t>0)for(var n=0;n<i;n+=t){var a=e.children().slice(n,n+t);a.find(this).length&&(a=a.find(this)),a.removeAttr("style"),a.css("min-height",a.maxHeightO())}};const HotspotSlider=function(e){return this.params=e,this.defaults={prevArrow:`<a class="hotspot__arrow --prev" href=""><span>${app_shop.txt.hotspot_prev}</span></a>`,nextArrow:`<a class="hotspot__arrow --next" href=""><span>${app_shop.txt.hotspot_next}</span></a>`,dotsClass:"hotspot__dots",arrows:!0,dots:!0,slidesToShow:6,slidesToScroll:6,responsive:[{breakpoint:1200,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:979,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:757,settings:{slidesToShow:2,slidesToScroll:2,swipeToSlide:!0,centerMode:!0,centerPadding:"15vw",dots:!1}},{breakpoint:550,settings:{slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,centerMode:!0,centerPadding:"18vw",dots:!1}}]},this.init=()=>{const{selector:e,options:t,callbackBefore:i,callbackAfter:n}
28=this.params;this.settings=_objectSpread({},this.defaults,{},t),this.selector=e,this.slider=$(e),"function"==typeof i&&i(this.slider),this.slider.on("afterChange",(function(){app_shop.vars.bLazy&&app_shop.vars.bLazy.revalidate()})),this.slider.slick(this.settings),"function"==typeof n&&n(this.slider)},this.reset=()=>{this.slider&&this.slider.slick("unslick"),this.init(this.params)},this.destroy=()=>{this.slider&&this.slider.slick("unslick")},this.init()};app_shop.fn.multiSlideAdaptiveHeight=e=>{const t=[];let i=0;setTimeout((function(){$(e).addClass("--adaptive"),$(".slick-track .slick-active",e).each((function(e){t[e]=$(this).outerHeight()})),t.forEach((e=>{e>i&&(i=e)})),$(".slick-list",e).height(i)}),10)};const SelectToDropdown=function(e){return this.params=e,this.init=()=>{const{selector:e,generateDropdownCallback:t,clickDropdownCallback:i,afterClickDropdownCallback:n,disableMobileView:a}=this.params;this.selects=document.querySelectorAll(e),this.generateDropdownCallback=t,this.clickDropdownCallback=i,this.afterClickDropdownCallback=n,this.disableMobileView=a,this.selects.length&&(this.generateDropdown(),document.addEventListener("click",this.closeDropdown))},this.generateDropdown=()=>{this.selects.forEach((e=>{const t=`<div class="f-dropdown f-group ${e.getAttribute("class")} ${this.disableMobileView?"--disable-mobile-view":""}">\n        <button type="button" class="f-control f-dropdown-toggle${e.hasAttribute("disabled")?" --disabled":""}" data-indexcurrent="${e.options[e.selectedIndex].index}">\n          ${e.hasAttribute("data-label")?`<strong class="f-dropdown-label">${e.getAttribute("data-label")}</strong>`:""}\n          <span class="f-dropdown-button">${e.options[e.selectedIndex].text}</span>\n        </button>\n        <ul class="f-dropdown-menu">\n          ${[...e.querySelectorAll("option")].map(((e,t)=>`\n            <li class="f-dropdown-li${e.hasAttribute("class")?` ${e.getAttribute("class")}`:""}">\n              <a class="f-dropdown-item${e.selected?" --selected":""}" href="#${e.getAttribute("value")}" data-index="${t}" data-value="${e.getAttribute("value")}"${Object.keys(e.dataset).map((t=>` data-${t}="${e.dataset[t]}"`)).join("")}>${e.innerHTML}</a>\n            </li>\n          `)).join("")}\n        </ul>\n      </div>`,i=document.createElement("div");i.innerHTML=t;const n=i.firstChild;e.insertAdjacentElement("afterend",n),n.insertBefore(e,n.firstChild),Object.values(e.classList).forEach((t=>e.classList.replace(t,`${t}-select`))),this.openDropdown(n),this.clickDropdown(n),this.disableMobileView||this.mobileView(n),this.generateDropdownCallback&&this.generateDropdownCallback(n)}))},this.mobileView=e=>{e.querySelector("select").addEventListener("change",(function(){const t=this.selectedIndex;e.querySelectorAll(".f-dropdown-li").forEach((e=>{parseInt(e.querySelector(".f-dropdown-item").getAttribute("data-index"),10)===t&&e.click()}))}))},this.openDropdown=e=>{e.querySelector("button.f-dropdown-toggle").addEventListener("click",(function(e){if(e.preventDefault(),this.classList.contains("--disabled"))return!1;this.parentNode.classList.toggle("--open")}))},this.closeDropdown=e=>{document.querySelectorAll(".f-dropdown").forEach((t=>!!t.classList.contains("--open")&&((!e||"click"!==e.type||t===e||!t.contains(e.target))&&void t.classList.remove("--open"))))},this.clickDropdown=e=>{if(this.clickDropdownCallback)this.clickDropdownCallback(e);else{const t=this.afterClickDropdownCallback;e.querySelectorAll(".f-dropdown-li").forEach((i=>{i.addEventListener("click",(function(i){i.preventDefault();const n=this.querySelector(".f-dropdown-item"),a=e.querySelectorAll(".f-dropdown-item"),s=n.getAttribute("data-index"),r=n.innerHTML,o=e.querySelector("select"),l=e.querySelector("button.f-dropdown-toggle"),c=l.querySelector(".f-dropdown-button");a.forEach((e=>e.classList.remove("--selected"))),n.classList.add("--selected"),o.selectedIndex=s,c.innerHTML=r,l.setAttribute("data-indexcurrent",n.getAttribute("data-index")),e.classList.remove("--open"),t&&t(this)}))}))}},this.destroy=()=>{this.selects.forEach((e=>{const t=e.closest(".f-dropdown");t&&(t.insertAdjacentElement("afterend",e),t.remove(),e.classList.forEach((t=>e.classList.replace(t,t.slice(0,-7)))))}))},this.reInit=()=>{this.destroy(),this.init()},this.init()};app_shop.fn.changeLiteral=(e,t,i)=>{const n=e%10,a=e%100,s=[];return!0!==i&&s.push(e),1===e&&t[1]?s.push(t[1]):(0===e||n>=0&&n<=1||n>=5&&n<=9||a>10&&a<20)&&t[0]?s.push(t[0]):(a<10||a>20)&&n>=2&&n<=4&&t[2]&&s.push(t[2]),s.join(" ")};const HotspotAjaxInit=function(e){const t=this;return this.params=e||{},this.vars={loaded:!1,hotspotElements:document.querySelectorAll("[data-ajaxload=true]")},this.fetchHotspots=async e=>{try{const t=await fetch(e);return await t.json()}catch(e){return console.error("AJAX fetchHotspots() Error:",e),!1}},this.hotspotInView=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(t.vars.loaded||(t.getHotspot(),t.vars.loaded=!0),t.hotspotInView.unobserve(e.target))}))})),this.getHotspot=async()=>{let e="";document.querySelector(".projector_page")&&(e=document.getElementById("projector_product_hidden")&&document.getElementById("projector_product_hidden").value||document.getElementById("projector_form")&&document.getElementById("projector_form").getAttribute("data-product_id")||"");const i=[];document.querySelector(".basketedit_page")&&(document.querySelectorAll(".productslist_item").forEach((e=>{i.push(e.querySelector('input[name*="product"]').value)})),document.querySelectorAll(".basket__block[data-product-id]").forEach((e=>{i.push(e.querySelector('input[name*="product"]').value)})));const n=[...this.vars.hotspotElements].map((e=>e.getAttribute("id"))).join(","),a=`/ajax/hotspots.php?action=get-hotspots-html&zones-names=${n}&components=${n}&zones-types=${[...this.vars.hotspotElements].map((e=>e.getAttribute("data-pagetype"))).join(",")}&product=${e}&products=${i.join(";")}`;
28this.vars.hotspotElements.forEach((e=>{e.classList.add("load-content")}));const s=await this.fetchHotspots(a);s?(this.vars.hotspotElements.forEach((e=>{e.classList.remove("load-content")})),Object.keys(s).forEach((e=>{const i=document.getElementById(e);""!==s[e]?i&&(i.outerHTML=s[e]):i&&i.parentNode.removeChild(i),app_shop.vars.bLazy&&app_shop.vars.bLazy.revalidate(),t.afterOneHotspotCallback&&t.afterOneHotspotCallback(i)})),t.afterAllHotspotsCallback&&t.afterAllHotspotsCallback()):this.vars.hotspotElements.forEach((e=>{e.parentNode.removeChild(e)}))},this.init=()=>{const{afterOneHotspotCallback:e,afterAllHotspotsCallback:i}=this.params;this.afterOneHotspotCallback=e||!1,this.afterAllHotspotsCallback=i||!1,this.vars.hotspotElements.forEach((e=>{t.hotspotInView.observe(e)}))},this.init()};function FixedElement(e="element",t="--fixed",i="spacerClass",n="top",a=(()=>{})){const s=this;let r=!1;const o=document.querySelector(e),l={elH:o.getBoundingClientRect().height,elOffset:o.getBoundingClientRect().top+o.ownerDocument.defaultView.pageYOffset};this.revalidate=()=>{l.elH=o.getBoundingClientRect().height;const e=document.querySelector(`.${i}`);l.elOffset=e?e.getBoundingClientRect().top+e.ownerDocument.defaultView.pageYOffset:o.getBoundingClientRect().top+o.ownerDocument.defaultView.pageYOffset,r=!0},this.modifyElement=()=>{("top"===n?window.scrollY>l.elOffset:"bottom"===n?window.scrollY-l.elH+window.screen.height<l.elOffset:void 0)?!o.classList.contains(t)&&(o.classList.add(t),(e=>{let t=document.createElement("div");t.className=i,t.style.paddingTop=`${e}px`,o.after(t)})(l.elH),a(!0)):o.classList.contains(t)&&(o.classList.remove(t),(()=>{const e=document.querySelector(`.${i}`);e&&e.parentNode.removeChild(e)})(),a(!1))},this.init=()=>{if(null===o)return!1;window.addEventListener("scroll",(()=>{r=!0})),scroll=setInterval((function(){r&&(r=!1,s.modifyElement())}),30),s.modifyElement()},this.clear=()=>{clearInterval(scroll)}}function Bars(){this.calculatePosition=(e,t)=>e.reduce(((e,i,n)=>n<t?e+i.offsetHeight:e),0),this.setPosition=()=>{const e=[...document.querySelectorAll(".bars_top .bars__item[data-fixed]")];e.forEach(((t,i)=>{t.style.setProperty("--position",this.calculatePosition(e,i))}));const t=[...document.querySelectorAll(".bars_bottom .bars__item[data-fixed]")].reverse();t.forEach(((e,i)=>{e.style.setProperty("--position",this.calculatePosition(t,i))}))},this.fixed=()=>{document.querySelectorAll(".bars__item[data-fixed]").forEach((e=>{const t=+getComputedStyle(e).getPropertyValue("--position"),i=e.getBoundingClientRect().top-t,n=e.getBoundingClientRect().bottom+t-window.innerHeight;i<0||n>=0?(e.style.setProperty("min-height",`${e.offsetHeight}px`),e.classList.add("--fixed")):(e.classList.remove("--fixed"),e.style.removeProperty("min-height"))}))},this.closeBarClick=e=>{const{target:t}=e;if(t.closest(".bars__close")){e.preventDefault();const i=t.closest(".bars__item");i.parentNode.removeChild(i),this.saveClosing(i),this.reset()}},this.removeClosedBars=()=>{(JSON.parse(localStorage.getItem("closedBars"))||[]).forEach((e=>{const t=document.getElementById(e);t&&t.parentNode.removeChild(t)})),this.checkEmptyBars()},this.checkEmptyBars=()=>{const e=document.querySelector(".bars_top");0===e?.childNodes.length&&e.parentNode.removeChild(e);const t=document.querySelector(".bars_bottom");0===t?.childNodes.length&&t.parentNode.removeChild(t)},this.saveClosing=e=>{const{id:t}=e,i=JSON.parse(localStorage.getItem("closedBars"))||[];i.push(t),localStorage.setItem("closedBars",JSON.stringify(i))},this.setBarsHeight=()=>{if(document.documentElement.classList.contains("--scroll-down"))return!1;const e=document.querySelector(".bars_top")?.offsetHeight;return document.documentElement.style.setProperty("--bars-height",`${e}px`),!0},this.clearAll=()=>{document.querySelectorAll(".bars__item[data-fixed]").forEach((e=>{e.classList.remove("--fixed"),e.style.removeProperty("--position"),e.style.removeProperty("min-height")}))},this.destroy=()=>{document.removeEventListener("scroll",this.fixed),document.removeEventListener("click",this.closeBarClick),window.removeEventListener("resize",this.setBarsHeight),this.destroySlick(),this.clearAll()},this.createSlick=()=>{let e=document.querySelectorAll(".bars__content:not(.slick-initialized)");e.length>0&&e.forEach((e=>{$(e).slick({infinite:!0,dots:!1,arrows:!1,speed:500,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:5e3})}))},this.destroySlick=()=>{let e=document.querySelectorAll(".bars__content.slick-initialized");e.length>0&&e.forEach((e=>{$(e).slick("unslick")}))},this.reset=()=>{this.destroy(),this.init()},this.init=()=>{this.removeClosedBars(),document.addEventListener("click",this.closeBarClick),app_shop.vars.view<3&&(this.setBarsHeight(),window.addEventListener("resize",this.setBarsHeight)),app_shop.vars.view>2&&(this.setPosition(),this.fixed(),document.addEventListener("scroll",this.fixed)),this.createSlick()}}Modal=function(e){const t=this;if(this.params=e||{},this.closeModal=()=>{const e=document.getElementById("modal");this.beforeClose&&this.beforeClose(e);const t=document.getElementById("modal_placeholder");if(t){const i=e.querySelector(".modal__content > *");t.insertAdjacentElement("afterend",i),t.parentNode.removeChild(t)}e.parentNode.removeChild(e),document.documentElement.classList.remove("--modal"),document.removeEventListener("click",this.events.eventDelegation,!0),document.removeEventListener("keydown",this.events.escClick),this.afterClose&&this.afterClose(e,this)},this.createElement=e=>{const{element:t,classes:i,id:n,href:a}=e,s=document.createElement(t);return void 0!==i&&(s.className=i),void 0!==n&&(s.id=n),void 0!==a&&(s.href=a),s},this.createModal=()=>{document.getElementById("modal")&&this.closeModal();const e=this.createElement({element:"div",classes:this.classList?`modal ${this.classList}`:"modal",id:"modal"}),t=this.createElement({element:"div",classes:"modal__wrapper"}),i=this.createElement({element:"div",id:"modal_placeholder"}),n=this.createElement({element:"a",classes:"modal__close",href:"#modalClose"}),a=this.createElement({element:"div",classes:"modal__content"});this.element?this.element instanceof jQuery&&this.element.length?(document.body.contains(this.element[0])&&this.element[0].insertAdjacentElement("afterend",i),a.appendChild(this.element[0])):this.element instanceof jQuery||
28(document.body.contains(this.element)&&this.element.insertAdjacentElement("afterend",i),a.appendChild(this.element)):this.html&&(a.innerHTML=this.html),t.appendChild(n),t.appendChild(a),e.appendChild(t),document.documentElement.classList.add("--modal"),this.initEvents(),this.beforeShow&&this.beforeShow(e,this),document.body.appendChild(e),this.classList&&this.classList.includes("--absolute")&&window.scrollTo(0,0),app_shop?.vars?.bLazy?.revalidate(),this.afterShow&&this.afterShow(e,this)},this.events={eventDelegation:e=>{const i=document.getElementById("modal"),n=!(!document.getElementById("topLayerBackDrop")||"none"===document.getElementById("topLayerBackDrop").style.display),a=!(!document.querySelector("#iai_cookie_wrapper")||document.querySelector("#iai_cookie_wrapper").classList.contains("d-none"));for(const t of this.notCloseSelectors)if(e.target.closest(t))return!1;return(i&&!i.querySelector(".modal__wrapper").contains(e.target)&&!n&&!a&&"INPUT"!==document.activeElement.tagName||e.target.closest(".modal__close"))&&(e.preventDefault(),t.closeModal()),!1},escClick:e=>{"Escape"===e.key&&t.closeModal()}},this.initEvents=()=>{document.removeEventListener("click",this.events.eventDelegation,!0),document.addEventListener("click",this.events.eventDelegation,!0),document.removeEventListener("keydown",this.events.escClick),document.addEventListener("keydown",this.events.escClick)},this.init=()=>{const{element:e,html:t,classList:i,beforeShow:n,afterShow:a,beforeClose:s,afterClose:r,notCloseSelectors:o}=this.params;this.element=e||!1,this.html=t||!1,this.beforeShow=n||!1,this.afterShow=a||!1,this.beforeClose=s||!1,this.afterClose=r||!1,this.classList=i||!1,this.notCloseSelectors=o||[],this.createModal()},!this.params.notInit)return this.init()},RegionForced=function(e){this.params=e||{},this.txt={label:"Twój wybrany kraj dostawy to ",labelZipcode:"Twój wybrany region dostawy to ",currency:"Ceny wyświetlane w walucie: ",timeAndCosts:"Czasy i koszty dostawy wyświetlane dla kraju: ",timeAndCostsZipcode:"Czasy i koszty dostawy wyświetlane dla regionu: ",andRegion:" i regionu: ",continue:"Kontynuuj",restoreDefault:"Przywróć domyślny kraj dostawy: ",restoreDefaultZipcode:"Przywróć domyślny region dostawy: "},this.events={unsetRegion:e=>(e.preventDefault(),this.unsetTemporaryRegion(),!1),unsetZipcode:e=>(e.preventDefault(),this.unsetTemporaryZipcode(),!1),unsetRegionAndZipcode:e=>(e.preventDefault(),this.unsetTemporaryRegionAndZipcode(),!1),continue:e=>(e.preventDefault(),this.modifyCookie(),this.modal.closeModal(),!1)},this.queries={unsetRegion:()=>JSON.stringify({query:"mutation {\n        unsetTemporaryRegion {\n          status\n          error {\n            code\n            message\n          }\n        }\n      }"}),unsetZipcode:()=>JSON.stringify({query:"mutation {\n        unsetTemporaryZipcode {\n          status\n          error {\n            code\n            message\n          }\n        }\n      }"}),unsetRegionAndZipcode:()=>JSON.stringify({query:"mutation {\n        unsetTemporaryRegion {\n          status\n          error {\n            code\n            message\n          }\n        }\n        unsetTemporaryZipcode {\n          status\n          error {\n            code\n            message\n          }\n        }\n      }"})},this.fetchData=async(e={})=>{const{data:t,link:i,linkParameter:n=""}=e;if(!t)return!1;try{const e=await fetch(`${i||app_shop.urls.graphql||"/graphql/v1"}${n}`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t});return await e.json()}catch(e){return console.error("GraphQL fetchData() Error:",e),!1}},this.unsetTemporaryRegion=async()=>{const e=document.querySelector(".modal");e&&e.classList.add("--loading");const t=await this.fetchData({data:this.queries.unsetRegion(),linkParameter:"?mutation=unsetRegion"}),{status:i}=t?.data?.unsetTemporaryRegion;e&&e.classList.add("--remove"),"success"===i&&(document.cookie="setRegionForced=; path=/; Max-Age=-99999999;",window.location.reload())},this.unsetTemporaryZipcode=async()=>{const e=document.querySelector(".modal");e&&e.classList.add("--loading");const t=await this.fetchData({data:this.queries.unsetZipcode(),linkParameter:"?mutation=unsetZipcode"}),{status:i}=t?.data?.unsetTemporaryZipcode;e&&e.classList.add("--remove"),"success"===i&&(document.cookie="setZipcodeForced=; path=/; Max-Age=-99999999;",window.location.reload())},this.unsetTemporaryRegionAndZipcode=async()=>{const e=document.querySelector(".modal");e&&e.classList.add("--loading");const t=await this.fetchData({data:this.queries.unsetRegionAndZipcode(),linkParameter:"?mutation=unsetRegionAndZipcode"}),{status:i}=t?.data?.unsetTemporaryRegion;e&&e.classList.add("--remove"),"success"===i&&(document.cookie="setRegion
28Forced=; path=/; Max-Age=-99999999;",document.cookie="setZipcodeForced=; path=/; Max-Age=-99999999;",window.location.reload())},this.getCookieByName=e=>{const t=`; ${document.cookie}`.split(`; ${e}=`);return 2===t.length&&t.pop().split(";").shift()},this.create=({currentCountry:e,defaultCountry:t,currentZipcode:i,defaultZipcode:n})=>{const a=!e&&i,s=!a&&i,r=document.createElement("div");r.classList.add("region_forced"),r.innerHTML=`<div class="region_forced__label">\n      <span class="region_forced__label_text">${a?this.txt.labelZipcode:this.txt.label}</span>\n      <strong class="region_forced__label_value">${a?i:e}</strong>\n    </div>\n    <div class="region_forced__body">\n      <div class="region_forced__item --currency">\n        <span classs="region_forced__item_text">${this.txt.currency}</span>\n        <strong class="region_forced__item_value">${app_shop?.vars?.currency?.id}</strong>\n      </div>\n      <div class="region_forced__item --delivery">\n        <span classs="region_forced__item_text">${a?this.txt.timeAndCostsZipcode:this.txt.timeAndCosts}</span>\n        <strong class="region_forced__item_value">${a?i:e}</strong>\n        ${s?`<span class="region_forced__and_region">${this.txt.andRegion}<strong>${i}</strong></span>`:""}\n      </div>\n    </div>\n    <div class="region_forced__buttons">\n      <button class="region_forced__continue btn --solid --large" type="button">${this.txt.continue}</button>\n      <a href="#unsetTemporaryRegion" class="region_forced__unset">${a?this.txt.restoreDefaultZipcode:this.txt.restoreDefault}<strong>${a?n:t}</strong></a>\n    </div>`,this.modal=new Modal({element:r,classList:"--region-forced"});let o="region";a&&(o="zipcode"),s&&(o="regionAndZipcode"),this.initEvents({type:o})},this.modifyCookie=()=>{const e=this.getCookieByName("setRegionForced"),t=this.getCookieByName("setZipcodeForced"),i=JSON.parse(e),n=JSON.parse(t);i&&(i.showModal=!1,document.cookie=`setRegionForced=${JSON.stringify(i)}; path=/;`),n&&(n.showModal=!1,document.cookie=`setZipcodeForced=${JSON.stringify(n)}; path=/;`)},this.initEvents=({type:e})=>{const t=document.querySelector(".region_forced__unset");t&&("region"===e&&t.addEventListener("click",this.events.unsetRegion),"zipcode"===e&&t.addEventListener("click",this.events.unsetZipcode),"regionAndZipcode"===e&&t.addEventListener("click",this.events.unsetRegionAndZipcode));const i=document.querySelector(".region_forced__continue");i&&i.addEventListener("click",this.events.continue)},this.init=()=>{const e=this.getCookieByName("setRegionForced"),t=this.getCookieByName("setZipcodeForced");if(!e&&!t)return;const i=JSON.parse(e),n=JSON.parse(t),{currentCountry:a,defaultCountry:s,showModal:r}=i||{},{currentZipcode:o,defaultZipcode:l,showModal:c}=n||{};(r||c)&&this.create({currentCountry:a,defaultCountry:s,currentZipcode:o,defaultZipcode:l})}},app_shop.fn.regionForced=new RegionForced,app_shop.run((function(){app_shop.fn.regionForced.init()}),"all","#container:not(.place-order_page):not(.prepaid_page)"),app_shop.txt||(app_shop.txt={}),app_shop.txt.errorCode||(app_shop.txt.errorCode={}),app_shop.txt.errorCode.birth_date="Wpisz poprawną datę urodzenia w formacie RRRR-MM-DD",app_shop.txt.errorCode.illegal_characters_client_city="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_firm="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_firstname="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_lastname="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_nip="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_phone="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_phone2="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_client_street="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_additional="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_city="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_firstname="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_lastname="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_phone="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.illegal_characters_delivery_street="Jeden z użytych znaków jest niedozwolony.",app_shop.txt.errorCode.incorect_delivery_region="Wybierz kraj odbiorcy przesyłki.",app_shop.txt.errorCode.incorect_delivery_zipcode="Wpisz ko
28d pocztowy odbiorcy przesyłki.",app_shop.txt.errorCode.incorect_email="Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected]",app_shop.txt.errorCode.incorect_invoice_phone="Wpisz telefon klienta.",app_shop.txt.errorCode.incorect_invoice_zipcode="Wpisz kod pocztowy klienta.",app_shop.txt.errorCode.incorect_login="Błędnie wpisany login. Login musi mieć minimum 3, a maksimum 40 znaków. Możesz użyć liter i cyfr oraz symboli @ . - _.",app_shop.txt.errorCode.incorect_nip="Błędnie wpisany NIP. Prawidłowy NIP ma 10 cyfr.",app_shop.txt.errorCode.incorect_phone="Wpisz swój telefon.",app_shop.txt.errorCode.incorect_shops="Wybierz sklep z listy.",app_shop.txt.errorCode.incorect_zipcode="Błędnie wpisany kod pocztowy.",app_shop.txt.errorCode.incorrect_region="Błędnie wybrany region.",app_shop.txt.errorCode.invalid_format="Nieprawidłowy format. Pole musi zawierać przynajmniej jedną literę.",app_shop.txt.errorCode.login_equals_password="Hasło jest takie samo jak login. Wpisz inne hasło.",app_shop.txt.errorCode.login_taken="Podany login jest już zajęty.",app_shop.txt.errorCode.login_taken_login_propose="Podany login jest już zajęty.<br/><br/>Proponowany login: ",app_shop.txt.errorCode.no_city="Wpisz w to pole nazwę miasta.",app_shop.txt.errorCode.no_delivery_city="Wpisz miejscowość odbiorcy przesyłki.",app_shop.txt.errorCode.no_delivery_firstname="Wpisz imię odbiorcy przesyłki.",app_shop.txt.errorCode.no_delivery_lastname="Wpisz nazwisko odbiorcy przesyłki.",app_shop.txt.errorCode.no_delivery_street="Wpisz ulicę i numer domu odbiorcy przesyłki.",app_shop.txt.errorCode.no_firmname="Błędnie wpisana nazwa firmy.",app_shop.txt.errorCode.no_firstname="Wpisz w to pole swoje imię.",app_shop.txt.errorCode.no_invoice_city="Wpisz miejscowość klienta.",app_shop.txt.errorCode.no_invoice_firmname="Wpisz nazwę firmy klienta.",app_shop.txt.errorCode.no_invoice_firstname="Wpisz imię klienta.",app_shop.txt.errorCode.no_invoice_lastname="Wpisz nazwisko klienta.",app_shop.txt.errorCode.no_invoice_street="Wpisz ulicę i numer domu klienta.",app_shop.txt.errorCode.no_invoice_street_number="Wpisz ulicę i numer domu klienta.",app_shop.txt.errorCode.no_login="Wpisz w to pole swój login.",app_shop.txt.errorCode.no_name="Wpisz w to pole swoje nazwisko.",app_shop.txt.errorCode.no_password="Wpisz w to pole swoje hasło.",app_shop.txt.errorCode.no_street="Wpisz nazwę ulicy lub miejscowości.",app_shop.txt.errorCode.no_street_number="Podaj nr domu.",app_shop.txt.errorCode.no_street_number_uk="Brakuje numeru domu.",app_shop.txt.errorCode.not_equal_passwords="Wpisane hasła nie są takie same. Wpisz ponownie hasło i potwierdzenie.",app_shop.txt.errorCode.password_to_long="Za długie hasło. Wpisz krótsze hasło (maksimum.",app_shop.txt.errorCode.password_to_short="Zbyt krótkie hasło. Wpisz dłuższe hasło (minimum.",app_shop.txt.errorCode.used_login="Podany login jest już zajęty.",app_shop.txt.formValidation||(app_shop.txt.formValidation={}),app_shop.txt.formValidation.mandatoryField="Proszę wypełnić to pole.",app_shop.txt.formValidation.zipcodeFormat="Poprawne formaty kodu pocztowego dla wybranego kraju to [X - cyfra; Y - litera]:",app_shop.txt.formValidation.characters="znaków).",app_shop.txt.redirectionDisabled="Choose your language and country",app_shop.txt.redirectionOff="true",app_shop.run((function(){const e=new URL(document.location).searchParams,t=document.querySelector(".redirection"),i=t.querySelector(".redirection__button");let n;n="true"===app_shop.txt.redirectionOff,n&&(i.href=i.href+"?redirection=redirected"),e.has("redirection")&&"redirected"===e.get("redirection")?(t.remove(),document.cookie="redirection=closed"):document.cookie.indexOf("redirection=closed")>=0?t.remove():(t.classList.remove("d-none"),t.querySelectorAll(".redirection__language > strong").forEach((e=>{e.addEventListener("click",(()=>{t.querySelectorAll(".redirection__language").forEach((e=>{e.classList.remove("--active")})),e.parentNode.classList.add("--active"),t.querySelectorAll(".redirection__language:not(.--active) input").forEach((e=>{e.checked=!1}
28)),t.querySelectorAll(".redirection__language input:checked").length||i.classList.add("--disabled")}))})),t.querySelectorAll("input").forEach((e=>{e.addEventListener("change",(()=>{i.classList.remove("--disabled"),i.href=e.dataset.link,n&&(i.href=i.href+"?redirection=redirected")}))})),i.addEventListener("click",(e=>{i.classList.contains("--disabled")&&(e.preventDefault(),Alertek.Info(app_shop.txt.redirectionDisabled))})),t.querySelectorAll(".redirection__close, .redirection__background").forEach((e=>{e.addEventListener("click",(()=>{t.remove()}))})),t.querySelectorAll(".redirection__button, .redirection__close, .redirection__background").forEach((e=>{e.addEventListener("click",(()=>{document.cookie="redirection=closed"}))})))}),"all",".redirection"),app_shop.txt.txt_118559_6="",!app_shop.txt.txt_118559_6&&(app_shop.txt.txt_118559_6=1),app_shop.run((()=>{console.log("test"),null===$.cookie("rabateCode_clicked")&&Boolean(document.querySelector("#rabateCode"))?$("html").addClass("--rabateCode"):($("#rabateCode").remove(),$("html").removeClass("--rabateCode")),$("#rabateCode .rabateCode__close").on("click",(function(e){return e.preventDefault(),$.cookie("rabateCode_clicked",!0,{expires:parseInt(app_shop.txt.txt_118559_6)}),$("#rabateCode").remove(),$("html").removeClass("--rabateCode"),!1}))}),"all",".--rabateCode"),app_shop.run((function(){app_shop.fn.bars=new Bars,app_shop.fn.bars.init()}),"all","html:not(.order_process)"),app_shop.run((function(){app_shop.fn.bars.reset()}),[1,2,3,4],"html:not(.order_process)"),app_shop.run((function(){app_shop.fn.searchResults=new SearchResults({resultsLimit:6,inputLengthToStartSearching:2})}),"all","#menu_search");const searchTxt={categories:"Kategorie",cms:"Informacje",beforeProducer:"Producent: ",beforeSeries:"Seria: ",separator:" / ",buttonAllText:"Pokaż wszystkie"};SearchResults=function(e){const t=this;return this.params=e||{},this.vars={typingTimer:"",doneTypingInterval:500,searchResultQuery:"/graphql/v1/"},this.fetchData=async()=>{const e=this.searchInput.value;if(e.length<this.inputLengthToStartSearching)return!1;if(sessionStorage.getItem(`search_${e}`))return JSON.parse(sessionStorage.getItem(`search_${e}`));const t=JSON.stringify({query:`query {\n        productsTextSearch(searchInput: {\n            text: "${e}",\n            limit: ${this.resultsLimit}\n          }) {\n            products {\n              name, link, iconSmall,\n              price {\n                  price {\n                      gross {\n                        formatted\n                      }\n                      net {\n                        formatted\n                      }\n                  }\n              }\n            }\n            series {\n                name, link\n            }\n            producers {\n                name, link\n            }\n            menuNodes {\n                name, link\n            }\n            cms {\n                name, link\n            }\n            searchQueries {\n                name, link\n            }\n          }\n        }`});try{const i=await fetch(this.vars.searchResultQuery,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t}),n=(await i.json()).data.productsTextSearch;return sessionStorage.setItem(`search_${e}`,JSON.stringify(n)),n}catch(e){return console.error("AJAX fetchDataSearchResults() Error:",e),!1}},this.openResults=()=>{this.searchInput.closest("form").classList.add("--open"),this.resultsWrapper.scrollTop=0,document.documentElement.classList.add("--results-open"),document.querySelector("#container.main_page")&&document.documentElement.classList.add("--results-main-open")},this.closeResults=()=>{this.searchInput.closest("form").classList.remove("--open"),document.documentElement.classList.remove("--results-open"),document.querySelector("#container.main_page")&&document.documentElement.classList.remove("--results-main-open")},this.buildResult=async()=>{this.searchInput.closest("form").classList.add("--loading");const e=await this.fetchData();if(this.searchInput.closest("form").classList.remove("--loading"),this.resultsWrapper.innerHTML="",e){if(!Object.values(e).filter((e=>e?e.length:"")).length)return this.closeResults(),!1;if(this.openResults(),e.searchQueries&&e.searchQueries.length){const t=this.searchInput.value,i=new RegExp(t,"i");this.resultsWrapper.innerHTML+=`\n          <div class="search_result__block --queries">\n            ${e.searchQueries.map((e=>`<a class="search_result__item --query" href="${e.link}">${e.name.replace(i,"<b>$&</b>")}</a>`)).join("")}\n          </div>\n        `}Object.keys(e).filter((e=>"searchQueries"!==e)).some((t=>e[t]?e[t].length:""))&&(this.resultsWrapper.innerHTML+='<div class="search_result__block --others"></div>',e.products&&e.products.length&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n            <div class="search_result__sub --products">\n              ${e.products.map((e=>`\n                <a class="search_result__item --product" href="${e.link}">
28\n                  <span class="search_result__icon"><img src="${e.iconSmall}" alt="${e.name}" /></span>\n                  <span class="search_result__name_wrapper">\n                    <span class="search_result__name">${e.name}</span>\n                    <span class="search_result__price">${t.netPrice?e.price.price.net.formatted:e.price.price.gross.formatted}</span>\n                  </span>\n                </a>\n              `)).join("")}\n              <button type="submit" class="search_result__item --button-all${t.buttonAllClass}">${searchTxt.buttonAllText}</button>\n            </div>\n          `),(e.producers&&e.producers.length||e.series&&e.series.length||e.menuNodes&&e.menuNodes.length)&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n            <div class="search_result__sub --categories">\n              <strong class="search_result__label">${searchTxt.categories}</strong>\n              <div class="search_result__items">\n                ${e.producers?e.producers.map((e=>`\n                  <a class="search_result__item --producer" href="${e.link}">\n                    <span class="search_result__name_label">${searchTxt.beforeProducer}</span><span class="search_result__name">${e.name}</span>\n                  </a>\n                `)).join(""):""}\n\n                ${e.series?e.series.map((e=>`\n                  <a class="search_result__item --series" href="${e.link}">\n                    <span class="search_result__name_label">${searchTxt.beforeSeries}</span><span class="search_result__name">${e.name}</span>\n                  </a>\n                `)).join(""):""}\n\n                ${e.menuNodes?e.menuNodes.map((e=>`\n                  <a class="search_result__item --menu" href="${e.link}">\n                    <span class="search_result__name">${e.bc?e.bc.item.map((e=>e.title)).join(searchTxt.separator):e.name}</span>\n                  </a>\n                `)).join(""):""}\n              </div>\n            </div>\n          `),e.cms&&e.cms.length&&(this.resultsWrapper.querySelector(".search_result__block.--others").innerHTML+=`\n            <div class="search_result__sub --cms">\n              <strong class="search_result__label">${searchTxt.cms}</strong>\n              <div class="search_result__items">\n                ${e.cms.map((e=>`\n                  <a class="search_result__item --cms" href="${e.link}">\n                    <span class="search_result__name">${e.name}</span>\n                  </a>\n                `)).join("")}\n              </div>\n            </div>\n          `))}else this.closeResults();return this.afterBuildResult&&this.afterBuildResult(e),!0},this.updateSearchInput=()=>{const e=t.resultsWrapper.querySelector(".search_result__item.--active .search_result__name")?t.resultsWrapper.querySelector(".search_result__item.--active .search_result__name").textContent:t.resultsWrapper.querySelector(".search_result__item.--active").textContent;t.searchInput.value=e},this.updateFocusElement=e=>{this.resultsWrapper.querySelectorAll(".search_result__item").forEach((e=>e.classList.remove("--active"))),"null"!=typeof e&&e.classList.add("--active"),"null"!=typeof e&&e.focus(),this.updateSearchInput()},this.initEvents=()=>{const e=document.getElementById("menu_search");e&&e.addEventListener("submit",(function(){const e=t.searchInput.getAttribute("data-value");e&&(t.searchInput.value=e)})),this.searchInput.addEventListener("keyup",(function(e){const i=e.which||e.keyCode||0;37!==i&&38!==i&&39!==i&&40!==i&&(t.searchInput.setAttribute("data-value",this.value),clearTimeout(t.vars.typingTimer),t.vars.typingTimer=setTimeout(t.buildResult,t.vars.doneTypingInterval),document.querySelector("html._mobile:not(.sidebar_open):not(.--search-open) .main_page")&&window.scrollTo(0,0))})),this.searchInput.addEventListener("keydown",(function(e){const i=e.which||e.keyCode||0;return 37===i||38===i||39===i||40===i||(t.searchInput.setAttribute("data-value",this.value),clearTimeout(t.vars.typingTimer),t.searchInput.closest("form").classList.add("--focus"),!document.querySelector(".--search-open")||13!==i)||(e.preventDefault(),this.closest("form").submit(),!1)})),this.searchInput.addEventListener("focus",(function(){this.closest("form").classList.add("--focus")})),document.addEventListener("scroll",(function(e){window.scrollY>0?document.documentElement.classList.add("--scroll-down"):$("html").hasClass("sidebar_open")||$("html").hasClass("filters_open")||document.documentElement.classList.remove("--scroll-down")})),document.querySelector(".search_result, .search_result__block").addEventListener("scroll",(function(){app_shop.vars.view<3&&document.activeElement.blur()})),document.addEventListener("keydown",(function(e){if(t.searchInput.closest("form.--open.--focus")){const i=e.which||e.keyCode||0;if(37===i||38===i||39===i||40===i){e.preventDefault();const n=[...t.resultsWrapper.querySelectorAll(".search_result__item"),t.resultsWrapper.querySelector(".search_result__button_all")],a=t.resultsWrapper.querySelector(".search_result__item.--query"),s=t.resultsWrapper.querySelector(".search_result__block.--others .search_result__item");switch(i){case 40:{const e=n.indexOf(t.resultsWrapper.querySelector(".search_result__item.--active"));e>-1&&n[e+1]?t.updateFocusElement(n[e+1]):t.updateFocusElement(n[0]);break}case 38:{const e=n.indexOf(t.resultsWrapper.querySelector(".search_result__item.--active"));e>
28-1&&n[e-1]?t.updateFocusElement(n[e-1]):t.updateFocusElement(n[n.length-1]),t.updateSearchInput();break}case 37:1!==app_shop.vars.view&&a&&s&&t.updateFocusElement(a);break;case 39:1!==app_shop.vars.view&&a&&s&&t.updateFocusElement(s);break;default:return!0}}else 13!==i&&t.searchInput.focus();return!1}})),document.addEventListener("click",(function(e){return e.target.closest(".menu_search__mobile")&&(e.preventDefault(),document.documentElement.classList.add("--search-open"),$(".main_slider").slick("slickSetOption","autoplay",!1,!0),t.searchInput.focus()),e.target.closest(".--search-open .menu_search__submit")&&(e.preventDefault(),document.documentElement.classList.remove("--search-open","--results-main-open"),$(".main_slider").slick("slickSetOption","autoplay",!0,!0)),e.target.closest("header .navbar-toggler")&&document.documentElement.classList.remove("--results-main-open"),t.searchInput.closest("form").classList.contains("--focus")&&!t.searchInput.closest("form").contains(e.target)&&t.searchInput.closest("form").classList.remove("--focus"),!1}))},this.init=()=>{const{searchInput:e,resultsWrapper:t,resultsLimit:i,inputLengthToStartSearching:n,afterBuildResult:a,buttonAllClass:s}=this.params;this.searchInput=e?document.querySelector(e):document.querySelector(".menu_search__input"),this.resultsWrapper=t?document.querySelector(t):document.querySelector(".search_result"),this.resultsLimit=i||"",this.inputLengthToStartSearching=n||4,this.netPrice="net"===app_shop.vars.priceType,this.afterBuildResult=a||!1,this.buttonAllClass=s||" btn --outline",this.initEvents()},this.init()},app_shop.run((function(){$(document).on("click",".open_trigger, #menu_settings li:first-child .form-group:first-child > label",(function(){return $("#menu_settings form").toggleClass("active"),!1})),app_shop.fn.selectPaging=new SelectToDropdown({selector:"#menu_settings  select.form-control:not(.f-dropdown)",generateDropdownCallback:e=>{e.classList.remove("form-control")}})}),"all","#menu_settings"),$(document).on("click",".lang_trigger",(function(e){return e.preventDefault(),$("html").hasClass("filters_open")||$("html").hasClass("sidebar_open")||($("html").addClass("sidebar_open"),$("#menu_search").before('<del class="handler" data-item="menu_search" style="display:none"></del>'),"object"==typeof app_shop.fn.shoppingList?$('aside .setMobileGrid[data-item="#menu_navbar"]').before($("#menu_search")):$('aside .setMobileGrid[data-item="#menu_navbar"]').after($("#menu_search")),$("aside .navbar-subnav, aside .navbar-subsubnav, aside, #menu_settings form").scrollTop(0),app_shop.fn.mobileGen(),app_shop.fn.setMobileCategories&&app_shop.fn.setMobileCategories(),$(".mobileCategories__link").click()),!1})),app_shop.fn.basketCacheCallBack=function(e){$("#menu_basket").not(".--hide").hover((function(){$(".topBasket__sub").toggleClass("--hover")})),void 0!==e.user&&(app_shop.vars.user=e.user)},app_shop.txt.txt_76942_summary="",app_shop.txt.txt_76942_basket="",app_shop.txt.txt_76942_basket_list="10",app_shop.txt.txt_76942_basket_hide="22";var menu_basket_cache=function(e){app_shop.fn.customBusket||(app_shop.fn.customBusket=function(e){return`\n    <div class="topBasket__row">\n      <a class="topBasket__item --photo" href="${e.link}">\n        <img src="${e.icon}" alt="${e.name}">\n      </a>\n      <a class="topBasket__item --name" href="${e.link}">\n        <span class="topBasket__name">${e.name}</span>\n        ${"uniw"!=e.size?'<span class="topBasket__size">'+e.size_name+"</span>":""}${e.product_version_name?'<span class="topBasket__version">'+e.product_version_name+"</span>":""}\n      </a>\n      <span class="topBasket__item --sum">\n        <span class="value">${e.count}</span>\n        <span class="unit">${e.worth_unit}</span>\n      </span>\n      <span class="topBasket__item --prices">${"net"===app_shop.vars.priceType?e.prices.worth_net_formatted:e.prices.worth_gros_formatted}</span>\n    </div>`}),app_shop.fn.basketCacheCallBack||(app_shop.fn.basketCacheCallBack=function(){$("#menu_basket").not(".--hide").hover((function(){$(".topBasket__sub").toggleClass("--hover")}))}),$.ajax({type:"GET",url:"/ajax/basket.php?&getAjax=true",dataType:"JSON",success:function(e){if(0==(e=e.basket).products.length&&$("#menu_basket").addClass("--hide"),e.products.length>=parseFloat(app_shop.txt.txt_76942_basket_list)&&($(".topBasket__details.--products").addClass("--list"),$("#menu_basket").removeClass("--hide")),e.products.length>parseFloat(app_shop.txt.txt_76942_basket_hide)&&$("#menu_basket").addClass("--hide"),e.productsCounter>0?$("#menu_basket .badge").html(e.productsCounter):$("#menu_basket .badge").html(""),$("#menu_basket #shipppingCost").text("net"===app_shop.vars.priceType?e.shippingCost_net_formatted:e.shippingCost_formatted),$("#freeShipping").length>0&&0==parseFloat(e.toShippingFree)?$("#freeShipping").addClass("--active"):$("#freeShipping").length>0&&parseFloat(e.toShippingFree)>=0&&$("#freeShipping").removeClass("--active"),0!=e.products.length){let t="";const n=[...e.products];for(i in e.products)t+=app_shop.fn.customBusket(n[i]);$(".topBasket__block.--products").html(t);e.products.filter((e=>""===e.name)).length&&document.getElementById("menu_basket").classList.add("--oneclick-hide")}else $(".topBasket__details").hide();$(".topBasket__details").removeAttr("style"),$(".topBasket__price").removeAttr("style"),window.screen.width<979&&$("topBasket__details").remove(),app_shop.fn.basketCacheCallBack(e)}}),e&&iaiGet.wishlist((function(e){if(!e.Wishlist.response.attributes)return!1;var t=$("#menu_basket .wishes_link span.hidden-phone"),i=t.text(),n=e.Wishlist.response.attributes.count;t.text(i.replace(/\(.{1,3}\)/,"("+n+")")),t.next(".badge").remove(),n>0&&t.after('<span class="badge badge-important visible-phone">'+n+"</span>")}))};app_shop.fn.sesion2link=function(){var e=$.cookie("client"),t=new RegExp("[\\?&]client=([^&#]*)");if(!e||$.isEmptyObject(app_shop.vars.sites)||!app_shop.vars.session_share||"true"!=app_shop.vars.session_share)return!1;$('a[href*="http://"],a[href*="https://"],a[href^="//"]').each((function(){if(-1!=$.inArray(this.hostname,app_shop.vars.sites)){var i=$(this).get(0),n=i.href;null==t.exec(n)&&(-1!=n.indexOf("?")?i.pathname+="&client="+e:i.pathname+="?client="+e)}}))},app_shop.run((function(){app_shop.vars.cache_html?menu_basket_cache(!0):menu_basket_cache(!1),$(".topBasket__price").removeAttr("style")}),"all");const addBasket=function(e){return this.params=e,this.init=()=>{const{buyElement:e,wishesElement:t,sizeElement:i}=this.params;this.activeClass="--active",this.addFavouriteClass="added-fav",this.buyElement=e,this.wishesElement=t,this.sizeElement=i,this.initEvents(this)},this.initEvents=e=>
28{$(document).off("click",e.buyElement),$(document).on("click",e.buyElement,(function(t){t.preventDefault();const i=$(this),n=$(i.parent("form"));if(checkForm(n)){e.setBasketMode(n);const t=i.html();e.sendAjaxRequest(n,{beforeSend:()=>{i.html('<i class="icon-refresh icon-spin"></i>'),i.addClass("--loading")},afterSuccess:()=>{i.html(t),i.removeClass("--loading"),Alertek.Start("Produkt został dodany do koszyka","--success")},errorSend:()=>{i.html(t),Alertek.Start("Wystąpił błąd podczas dodawania do koszyka","--error")}})}})),$(document).on("click",e.sizeElement,(function(t){t.preventDefault();const i=$(this),n=$(i.parents("form")),a=i.data("type");i.parent().find(`.${e.activeClass}`).removeClass(e.activeClass),i.addClass(e.activeClass),setSize(n,a)}))},this.setSize=(e,t)=>{e.find('input[name="size"]').val(t)},this.setFavoriteMode=e=>{e.find('input[name="mode"]').val(2)},this.setBasketMode=e=>{e.find('input[name="mode"]').val(1)},this.sendAjaxRequest=(e,t)=>{const i=$.extend({beforeSend:"",afterSuccess:"",errorSend:""},t),n=e.attr("action"),a="getAjax=true&"+e.serialize();$.ajax({url:n,type:"post",dataType:"json",data:a,beforeSend:function(){"function"==typeof i.beforeSend&&i.beforeSend()},success:function(e){menu_basket_cache(),"function"==typeof i.afterSuccess&&i.afterSuccess()},error:function(){"function"==typeof i.errorSend&&i.errorSend()}})},this.checkForm=e=>""!=e.find('input[name="size"]').val()||(Alertek.Start(app_shop.txt.txt_search_size),!1),{init:this.init,sendAjaxRequest:this.sendAjaxRequest}};app_shop.fn.basketConf=()=>{app_shop.fn.basketAdd=addBasket({buyElement:"button.to_bsk__btn",wishesElement:".favorite",sizeElement:".product__sizes .--sizes"}),app_shop.fn.basketAdd.init()};var submenuWidth="200",dlmenu_showmore="1",dlmenu_shownumber="10",dlmenu_columnHeight="290",dlmenu_columnConcat="1",dlmenu_padding="30",dlmenu_columns="5",dlmenu_wide="true";app_shop.fn.mobileGen=function(e=!1){if(e)$(".nav-header").remove();else if(!$(".nav-header").length){var t=$("aside .nav-link + ul");$.each(t,(function(e,t){var i=$(t).prev();$(t).prepend('<li class="nav-header"></li>'),$(t).find(".nav-header").prepend(i.clone())}))}}
28,app_shop.run((function(){var e=$(window).width();$(".navbar-nav .isOverflow").removeClass("isOverflow"),$(".navbar-nav > .nav-item").each((function(){var t;$this=$(this),(t=e-$this.offset().left)<parseInt(submenuWidth)&&$this.addClass("isOverflow"),t<parseInt(2*submenuWidth)&&$this.find(".navbar-subnav").addClass("isOverflow")})),$(".nav-link img.rwd-src").each((function(){$this=$(this),$this.attr("src",app_shop.fn.getRwdSrc($this))})),app_shop.vars.view<2?window.matchMedia("(display-mode: standalone)").matches&&$(".nav-link").each((function(e){$(this).next().is("ul")&&($(this).attr("data-href",$(this).attr("href")),$(this).attr("href","##"),$(this).addClass("not_selectable"))})):$(".nav-link").each((function(e){""!=$(this).attr("data-href")&&($(this).attr("href",$(this).attr("data-href")),$(this).removeAttr("data-href")),$(this).removeClass("not_selectable")}))}),[1,2,3,4],"#menu_categories"),app_shop.run((function(){app_shop.fn.mobileGen(!0)}),[3,4],"#menu_categories"),$(document).on("click",".navbar-toggler",(function(e){return e.preventDefault(),$("html").hasClass("filters_open")||$("html").hasClass("sidebar_open")?($("html").removeClass("filters_open").removeClass("sidebar_open"),$('header .handler[data-item="menu_search"]').before($("#menu_search")),$('header .handler[data-item="menu_search"]').remove()):($("html").addClass("sidebar_open"),$("#menu_search").before('<del class="handler" data-item="menu_search" style="display:none"></del>'),"object"==typeof app_shop.fn.shoppingList?$('aside .setMobileGrid[data-item="#menu_navbar"]').before($("#menu_search")):$('aside .setMobileGrid[data-item="#menu_navbar"]').after($("#menu_search"))),$("aside .navbar-subnav, aside .navbar-subsubnav, aside, #menu_settings form").scrollTop(0),app_shop.fn.mobileGen(),app_shop.fn.setMobileCategories&&app_shop.fn.setMobileCategories(),!1})),$(document).on("click","aside .navbar-collapse .nav-link",(function(){var e=$
28(this).next(),t=$(this).parent(),i=e.children();if(e.is("ul")&&app_shop.vars.view<3)return t.toggleClass("nav-open"),2===i.length&&i.last().toggleClass("nav-open"),!1})),$(document).on("click","aside .nav-header .nav-link",(function(){var e=$(this).parents(".nav-open").eq(0),t=e.parents("ul").eq(0),i=t.children();return e.removeClass("nav-open"),2===i.length&&t.parents(".nav-open").eq(0).removeClass("nav-open"),!1})),$(document).on("click",".touch header .navbar-collapse .nav-link",(function(e){var t=$(this).next(),i=t.is(".active");return $(".nav-item ul").removeClass("active"),$(this).parent().parent().hasClass("navbar-nav")&&$(".navbar-subnav").removeClass("--hover"),!!($("#menu_navbar").parent(".wide").size()&&t.parents("ul").size()>1)||(t.is("ul")?(i?(t.removeClass("active"),t.find("ul.active").removeClass("active"),t.parents("ul").not(".navbar-nav").addClass("active")):(t.addClass("active"),t.parents("ul").not(".navbar-nav").addClass("active"),$("body").off("click.navbar"),$("body").on("click.navbar",(function(e){$(".nav-item ul").removeClass("active")}))),$(this).next(".navbar-subnav").length>0&&(!$(this).attr("data-visited")&&(app_shop.fn.concatColumns(t),app_shop.fn.setPositionMenu(t)),$(this).attr("data-visited","true")),e.preventDefault(),!1):void 0)})),$(document).on("click",".sidebar_open header, .sidebar_open #content, .sidebar_open footer, .filters_open header, .filters_open #content, .filters_open footer",(function(e){return $("html").removeClass("sidebar_open filters_open"),$(".nav-open").removeClass("nav-open"),$("#menu_settings form").removeClass("active"),$('header .handler[data-item="menu_search"]').before($("#menu_search")),$('header .handler[data-item="menu_search"]').remove(),app_shop.fn.setMobileCategories&&app_shop.fn.setMobileCategories(),e.preventDefault(),!1})),app_shop.run((function(){dlmenu_wide&&($("#menu_categories .display-all.more").each((function(){$(this).off(),$(this).on("click",(function(){$(this).parent().toggleClass("show");let e=$(this).find("a"),t=e.text();e.text(e.attr("txt_alt")),e.attr("txt_alt",t),e.parents(".navbar-subnav").addClass("--hover")}))})),$(".navbar-subnav").on("mouseover",(function(){$(".navbar-subnav").removeClass("--hover")})),$(".no-touch .navbar-nav > .nav-item > .nav-link").on("mouseover",(function(){$(this).next(".navbar-subnav").length>0&&(!$(this).attr("data-visited")&&(app_shop.fn.concatColumns($(this).next(".navbar-subnav")),app_shop.fn.setPositionMenu($(this).next(".navbar-subnav"))),$(this).attr("data-visited","true"))})),app_shop.fn.concatColumns=function(e){if(void 0!==dlmenu_columnConcat&&""!=dlmenu_columnConcat){let t=$("<li>",{class:"nav-item nav-merge"}),i=parseInt(dlmenu_columnHeight);e.find(" > .nav-item").each((function(){const e=$(this);let n=e.height(),a=e.next().height();!e.hasClass("nav-merge")&&(n=e.height()),!e.next().hasClass("nav-merge")&&(a=e.next().height()),n<i&&a+n<i?(e.after(t),t.append(e),i-=n):n<i&&(e.after(t),t.append(e),i=parseInt(dlmenu_columnHeight),t=$("<li>",{class:"nav-item nav-merge"}))}))}},$("#menu_categories .navbar-nav > .nav-item").each((function(){0===$(this).find("li.nav-item:not(.empty):not(.nav-merge)").length&&$(this).addClass("--noBold")})),app_shop.fn.setPositionMenu=function(e){const t=$("#menu_categories").width()-dlmenu_padding;if(e.addClass("--cols"+e.children($(".nav-item")).length),e.children($(".nav-item")).length<dlmenu_columns&&window.screen.width>1200||e.children($(".nav-item")).length<dlmenu_columns-1&&window.screen.width<1200){let i=e,n=i.parent().position().left;n=n<0?0:n;let a=t-(i.width()+n),s=n- -1*a;s=a>0?n:s,i.css("left",s+"px")}})}),[3,4],"#menu_categories"),app_shop.run((function(){$(".nav-link.nav-gfx").on({mouseenter(){const e=$(this).find("img"),t=e.data("omo");t&&(e.attr("data-tmp_img",e.attr("src")),"img_rwd"===t?1===app_shop.vars.view?e.attr("src",e.data("omo_mobile")):2===app_shop.vars.view?e.attr("src",e.data("omo_tablet")):e.attr("src",e.data("omo_desktop")):e.attr("src",e.data("omo_img")))},mouseleave(){const e=$(this).find("img"),t=e.data("tmp_img");t&&(e.attr("src",t),e.removeAttr("data-tmp_img"))}})}),"all",".nav-link"),app_shop.run((function(){$("header").append($(".breadcrumbs"))}),[3,4],".breadcrumbs"),app_shop.run((function(){$("#layout").prepend($(".breadcrumbs"))}),[1,2],".breadcrumbs"),app_shop.run((function(){$(".breadcrumbs").on("click","#back_button",(function(){return window.history.back(),!1}))}),"all",".breadcrumbs"),app_shop.run((function(){app_shop.fn.fixedTop=new FixedTop,app_shop.vars.view>2&&app_shop.fn.fixedTop.init()}),"all","html:not(.order_process)"),app_shop.run((function(){app_shop.vars.view>2?app_shop.fn.fixedTop.reset():app_shop.fn.fixedTop.destroy()}),[1,2,3,4],"html:not(.order_process)"),document.addEventListener("click",(function(e){if(e.target.closest(".menu_search__submit")&&document.documentElement.classList.contains("--fixed-header")&&!document.querySelector("#menu_search.--focus")){e.preventDefault();const t=e.target.closest(".menu_search__submit");t.closest("form").classList.add("--focus"),t.closest("form").querySelector(".menu_search__input").focus()}}
28)),FixedTop=function(e){this.params=e||{topBars:!0},this.vars={headerElement:document.querySelector("header"),heightTop:""},this.hasFixedTopBars=()=>document.querySelectorAll('#container .bars_top.bars .bars__item[data-fixed="true"]')?.length>0,this.isBarsEnabled=()=>!!this.params?.topBars,this.fixed=()=>{""===this.vars.heightTop&&(this.vars.heightTop=this.vars.headerElement.offsetHeight+parseInt(window.getComputedStyle(this.vars.headerElement).getPropertyValue("margin-bottom"),10));const e=window.pageYOffset;if(e>=this.vars.heightTop){document.getElementById("layout").style.marginTop=`${this.vars.heightTop}px`,document.documentElement.classList.add("--fixed-header"),this.hasFixedTopBars()&&(this.isBarsEnabled()?document.documentElement.classList.add("--fixed-header-bars"):document.documentElement.classList.add("--fixed-header-no-bars"));const t=e-this.vars.heightTop-this.vars.headerElement.offsetHeight;this.vars.headerElement.style.top=t<0?`${t}px`:0,app_shop.fn.bars&&app_shop.fn.bars.destroySlick()}else this.clear()},this.clear=()=>{document.documentElement.classList.remove("--fixed-header"),this.vars.headerElement.removeAttribute("style"),document.getElementById("layout").removeAttribute("style"),this.hasFixedTopBars()&&(this.isBarsEnabled()?document.documentElement.classList.remove("--fixed-header-bars"):document.documentElement.classList.remove("--fixed-header-no-bars")),app_shop.fn.bars&&app_shop.fn.bars.createSlick()},this.destroy=()=>{document.removeEventListener("scroll",this.fixed),this.clear()},this.reset=()=>{this.destroy(),this.init()},this.init=()=>{document.addEventListener("scroll",this.fixed)}},app_shop.run((function(){simple_tooltip(".order_process_security.show_tip","n59581_tooltip")}),"all",".order_process_security.show_tip"),app_shop.run((function(){$(".slm_lists__label").on("click",(function(){$(this).parents(".slm_lists").toggleClass("--active")}))}),"all",".shopping_list_menu"),app_shop.fn.setGrid=function(){switch(app_shop.vars.view){case 4:case 3:$(".domHandler").each((function(){var e=$
28(this).data("item");$(this).after($(e)),$(this).remove()}));break;case 2:case 1:$(".domHandler").length||$(".setMobileGrid").each((function(){var e=$(this).data("item");$(e).before('<del class="domHandler" data-item="'+e+'" style="display:none">'),$(this).append($(e))}))}},app_shop.fn.setMobileCategories=function(){const e=(e,t)=>{t.split(",").forEach((e=>{$(e).hide(),$(e).removeClass("--active")})),e.split(",").forEach((e=>{$(e).show(),$(e).addClass("--active")}))},t=()=>{$("aside").prepend($("#mobileCategories"));let t="";$("#mobileCategories .mobileCategories__link").each((function(){t+=`${t}, ${$(this).attr("data-ids")}`,$(this).off(),$(this).on("click",(function(){return $("#mobileCategories .mobileCategories__link").removeClass("--active"),$(this).addClass("--active"),e($(this).attr("data-ids"),t),!1}))})),e($("#mobileCategories .mobileCategories__link").first().attr("data-ids"),t),$("#mobileCategories .mobileCategories__link").removeClass("--active"),$("#mobileCategories .mobileCategories__link").first().addClass("--active")};$("#mobileCategories").length&&t()};const filtersActionsCall=()=>{$(".filters__options .--show-hidden").on("click",(function(){const e=$(this).data("id");return $(`#${e}_content`).toggleClass("--shown"),$(this).toggleClass("--shown"),!1})),app_shop.vars.view>2&&$(".filters__toggler:not(.--not-expandable):not(.--selected)").addClass("--not-expanded"),$(".filters__toggler:not(.--not-expandable)").on("click",(function(){const e=$(this).data("id");return $(`#${e}_expand`).slideToggle("fast"),$(this).toggleClass("--not-expanded"),!1})),$(".filters__item .f-control[type=checkbox]").on("change",(function(){const e=$(this).parents(".filters__content:not(.--group)").siblings().find(".--submit.d-none");e.length&&e.removeClass("d-none")})),$("#PriceRangeFrom, #PriceRangeTo").on("keyup",(function(){const e=$(this),t=$(this).parent(),i=e.val();e.val(e.val().replace(/[^0-9]/g,""));const n=$.fn.textWidth(i,"14px Arial");n>t.width()-30?e.width(t.width()-30):e.width(n+10)})),$("#PriceRangeFrom, #PriceRangeTo").keyup(),$("#filter_xpress_expand input").on("change",(function(){const e=$(this);app_shop.vars.clickedXPRESS=e.attr("name").split("_")[1],e.is(":checked")&&"false"===e.attr("data-localized")&&$("body").dialog({width:300,content:$("#xpress_toplayer").html(),wrapperClass:"xpress_zipcode_verification",fixed:!1})}))};app_shop.run((function(){app_shop.vars.filtersRef=new Filters({funcActionCall:filtersActionsCall,getQuantity:app_shop.vars.getQuantity||!0})}),"all","#Filters",!0),app_shop.run((function(){app_shop.fn.xpressCouriersInit()}),"all","#xpress_toplayer",!0);const xpress_txt={};function simple_tooltip(e,t,i){var n="",a="";$(document).on("mouseover",e,(function(){$(this).next().is(".tooltipContent")?n=$(this).next().html():$(this).prop("title")&&(n=$(this).prop("title"),$(this).removeAttr("title")),$("#"+t).remove(),clearTimeout(a),$("body").append("<div style='display:none;' class='"+t+"' id='"+t+"'><p></p></div>"),$("#"+t).hover((function(){clearTimeout(a)}),(function(){$("#"+t).remove()})),""!=n&&" "!=n&&"undefined"!=n&&($("#"+t).find("p").html(n),$("#"+t).fadeIn(400))})),$(document).on("mousemove",e,(function(e){var n,a,s=$(window).scrollTop(),r=$(window).width(),o=15;i||!1?(n=e.pageX-$("#"+t).outerWidth(!0)-o<=0?e.pageX+o:e.pageX-o-$("#"+t).outerWidth(!0),a=s+30>=e.pageY-$("#"+t).height()?s+o:e.pageY-$("#"+t).outerHeight(!0)-o):(n=r-30>=$("#"+t).width()+e.pageX?e.pageX+o:r-$("#"+t).width()-o,a=s+30>=e.pageY-$("#"+t).height()?s+o:e.pageY-$("#"+t).height()-o),$("#"+t).css({left:n,top:a})})),$(document).on("mouseout",e,(function(){$(this).next().is(".tooltipContent")||$(this).prop("title",n),a=setTimeout((function(){$("#"+t).remove()}),500)})),$(document).bind("touchstart",(function(i){0===$(i.target).closest("#"+t).length&&0===$(i.target).closest(e).length&&$("#"+t).length&&$("#"+t).remove()}))}xpress_txt.zipcode_invalid="Podany kod pocztowy jest nieprawidłowy.",xpress_txt.localization="Lokalizacja",xpress_txt.courier_not_available="Przykro nam, ale nasz ekspresowy kurier nie obsługuje tej okolicy. ",xpress_txt.courier_not_available2="Twoje zamówienie zostanie dostarczone w standardowym czasie, a kuriera wybierzesz podczas składania zamówienia.",xpress_txt.courier_not_available3="OK",xpress_txt.ajax_error="Wystąpił nieoczekiwany błąd. Proszę spróbować ponownie. ",x
28press_txt.geolocation_error="Wystąpił błąd poczas sprawdzania kodu pocztowego. Proszę spróbować ponownie.",xpress_txt.geolocation_error2="Nie można pobrać kodu pocztowego. ",app_shop.run((function(){$("#menu_blog_bydates > ul > li > a").on("click",(function(){if($(this).next("ul"))return $(this).parent().hasClass("active")?$(this).parent().removeClass("active"):($("#menu_blog_bydates > ul > li").removeClass("active"),$(this).parent().addClass("active")),!1}))}),"all","#menu_blog_bydates",!0),$(".progress_bar_1.active").size()?$("div.progress_bar_keeper").addClass("progress_bar_1_active"):$(".progress_bar_2.active").size()?$("div.progress_bar_keeper").addClass("progress_bar_2_active"):$(".progress_bar_3.active").size()?$("div.progress_bar_keeper").addClass("progress_bar_3_active"):$(".progress_bar_4.active").size()&&$("div.progress_bar_keeper").addClass("progress_bar_4_active"),app_shop.run((function(){$("footer").before($("#search_hotspot_zone1"))}),"all","#search_hotspot_zone1"),app_shop.run((function(){$("#menu_newsletter form").on("submit",(function(){return app_shop.formControl.validate($("#mailing_policy")),app_shop.formControl.checkForm($(this))})),$("#menu_newsletter").find("input").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$("#menu_newsletter button.add_newsletter").on("click",(function(){return app_shop.formControl.validate($("#mailing_policy")),app_shop.formControl.checkForm($(this).parents("form"))}))}),"all","#menu_newsletter"),app_shop.run((function(){$(".footer_links_label").on("click",(function(e){return e.preventDefault(),$(this).next().slideToggle("fast"),$(this).parents(".footer_links").toggleClass("--open"),!1})),$("#footer_links .footer_links#menu_orders").addClass("--open")}),"1",".footer_links_label"),app_shop.run((function(){$(".footer_links_label").off("click"),$(".footer_links_label").next().show()}),[2,3,4],".footer_links_label"),app_shop.run((function(){$(".footer_links_sub a").on({mouseenter(){const e=$(this).find("img");e.data("onmouseover")&&(e.attr("data-tmp_img",e.attr("src")),e.attr("src",e.data("onmouseover")))},mouseleave(){const e=$(this).find("img"),t=e.data("tmp_img");t&&(e.attr("src",t),e.removeAttr("data-tmp_img"))}})}),"all",".footer_links"),app_shop.fn.rwdBanner(".platnosci_54388",[1,2,3,4]),app_shop.run((function(){simple_tooltip(".showTip","n59581_tooltip_dictionary"),simple_tooltip("#contentcolumn_order1 .showTip_order1","n59581_tooltip"),simple_tooltip("#basketedit_gifts .showTip_gift","n59581_tooltip"),simple_tooltip("#basketedit_productslist .showTip_basket","n59581_tooltip"),simple_tooltip("span.btn_note","n59581_instalment_note")}),"all");var iaical_dateFormat="yy-mm-dd",iaical_firstDay="1";days_01_txt="n",days_02_txt="pn",days_03_txt="wt",days_04_txt="śr",days_05_txt="czw",days_06_txt="pt",days_07_txt="so",month_01_txt="Styczeń",month_02_txt="Luty",month_03_txt="Marzec",month_04_txt="Kwiecień",month_05_txt="Maj",month_06_txt="Czerwiec",month_07_txt="Lipiec",month_08_txt="Sierpień",month_09_txt="Wrzesień",month_10_txt="Październik",month_11_txt="Listopad",month_12_txt="Grudzień",month_2_01_txt="Stycznia",month_2_02_txt="Lutego",month_2_03_txt="Marca",month_2_04_txt="Kwietnia",month_2_05_txt="Maja",month_2_06_txt="Czerwca",month_2_07_txt="Lipca",month_2_08_txt="Sierpnia",month_2_09_txt="Września",month_2_10_txt="Października",month_2_11_txt="Listopada",month_2_12_txt="Grudnia",month_3_01_txt="STY",month_3_02_txt="LUT",month_3_03_txt="MAR",month_3_04_txt="KWI",month_3_05_txt="MAJ",month_3_06_txt="CZE",month_3_07_txt="LIP",month_3_08_txt="SIE",month_3_09_txt="WRZ",month_3_10_txt="PAŹ",month_3_11_txt="LIS",month_3_12_txt="GRU",iaical_monthNext="Następny miesiąc",iaical_monthPrev="Poprzedni miesiąc";var iaical_daysShort=[days_01_txt,days_02_txt,days_03_txt,days_04_txt,days_05_txt,days_06_txt,days_07_txt],iaical_monthNames=[month_01_txt,month_02_txt,month_03_txt,month_04_txt,month_05_txt,month_06_txt,month_07_txt,month_08_txt,month_09_txt,month_10_txt,month_11_txt,month_12_txt],iaical_monthNames2=[month_2_01_txt,month_2_02_txt,month_2_03_txt,month_2_04_txt,month_2_05_txt,month_2_06_txt,month_2_07_txt,month_2_08_txt,month_2_09_txt,month_2_10_txt,month_2_11_txt,month_2_12_txt],iaical_shortNames=[month_3_01_txt,month_3_02_txt,month_3_03_txt,month_3_04_txt,month_3_05_txt,month_3_06_txt,month_3_07_txt,month_3_08_txt,month_3_09_txt,month_3_10_txt,month_3_11_txt,month_3_12_txt],shopCalendar={getMonthDays:function(e,t){return new Date(e,t,0).getDate()},printDays:function(e,t,i,n,a,s,r){var o=window.Working_days||{},l=new Date(i,t-1,e);l.setDate(l.getDate()+parseInt(n)),$("#pickupl_calbind").length&&$("#pickupl_calbind").datepicker({defaultDate:l,minDate:l}),$(a+"1").length&&document.getElementById(a+"1").onclick();for(var c=1;c<=s;c++){for(_year=l.getFullYear(),_month=l.getMonth()+1,_day=l.getDate();r&&Holidays[_day+"_"+_month+"_"+_year];)l.setDate(l.getDate()+1),_year=l.getFullYear(),_month=l.getMonth()+1,_day=l.getDate();var p=100;if(!$.isEmptyObject(o))for(;--p;){if(-1!=$.inArray(l.getDay(),o)){_year=l.getFullYear(),_month=l.getMonth()+1,_day=l.getDate();break}l.setDate(l.getDate()+1)}_month=_month<10?"0"+_month:_month,_day=_day<10?"0"+_day:_day,p?($("#"+a+c+" input").val([_year,_month,_day].join("-")),$("#"+a+c+" > div > *").eq(1).html(_day),$("#"+a+c+" > div > *").eq(2).html(iaical_monthNames2[parseInt(_month)-1])):($("#"+a+c+" input").val("-"),$("#"+a+c+" > div > *").eq(1).html("-"),$("#"+a+c+" > div > *").eq(2).html("")),l.setDate(l.getDate()+1)}},setHolidays:function(e){var t=window.Holidays||{},i=window.Working_days||{};if(null!=t)for(holiday in t)if(e.getDate()+"_"+(e.getMonth()+1)+"_"+e.getFullYear()==holiday)return[!1,""];if(null!=i&&i.length){var n=e.getDay();if(-1==$.inArray(n,i))return[!1,""]}return[!0,""]}};function calculate_instalments(params){let{minPrice:minPrice,maxPrice:maxPrice,totalPrice:totalPrice,link:link,instalmentName:instalmentName,priceType:priceType}=params;"object"!=typeof params&&null!==params&&([minPrice,maxPrice,totalPrice,,link,,instalmentName,,priceType]=arguments),minPrice=parseFloat(minPrice,10)||!1;const minPriceFormat=!!minPrice&&`${format_price(minPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space
28:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;maxPrice=parseFloat(maxPrice,10)||!1;const maxPriceFormat=!!maxPrice&&`${format_price(maxPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;totalPrice=parseFloat(totalPrice,10)||!1,link=link||!1,instalmentName=instalmentName||!1,priceType=priceType||!1;let productsPrice="";productsPrice=priceType&&"net"===priceType?document.getElementById("projector_number")?instalmentData.priceNet*document.getElementById("projector_number").value:instalmentData.priceNet:document.getElementById("projector_number")?instalmentData.price*document.getElementById("projector_number").value:instalmentData.price;const productsPriceFormat=`${format_price(productsPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;if(link&&-1!==link.indexOf("{calculate_price}")&&(link=link.replace("{calculate_price}","XXX")),0===productsPrice)return eval(link),!1;if(0===instalmentData.basketCount&&(!minPrice&&!maxPrice||minPrice&&productsPrice>=minPrice&&maxPrice&&productsPrice<=maxPrice))return eval(link.replace("XXX",productsPrice)),!1;let infoHTML="";minPrice&&productsPrice<minPrice?infoHTML=`\n      <div class='menu_messages_message'>\n        <div class='menu_messages_message_sub'>\n          <p>${app_shop.txt.instalmentLabelMin}${instalmentName}${app_shop.txt.instalmentLabelTo}${minPriceFormat}</p>\n        </div>\n      </div>\n    `:maxPrice&&productsPrice>maxPrice&&(infoHTML=`\n      <div class='menu_messages_message'>\n        <div class='menu_messages_message_sub'>\n          <p>${app_shop.txt.instalmentLabelMax}${instalmentName}${app_shop.txt.instalmentLabelTo}${maxPriceFormat}</p>\n        </div>\n      </div>\n    `);let sumPrice=0;sumPrice=totalPrice?(totalPrice+productsPrice).toFixed(2):((priceType&&"net"===priceType?instalmentData.basketCostNet:instalmentData.basketCost)+productsPrice).toFixed(2);const sumPriceFormat=`${format_price(sumPrice,{mask:app_shop.vars.currency_format,currency:instalmentData.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value})}${priceType&&"net"===priceType?app_shop.txt.instalmentNet:""}`;let buttonHTML="";if(document.querySelector("#container.projector_page")&&(buttonHTML=`\n      <button class="instalment_calculator__button ${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?app_shop.txt.instalmentButtonDisableClassDialog:app_shop.txt.instalmentButtonClassDialog}"${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?"":` onclick="${link.replace("XXX",productsPrice)}"`}>\n        <span class="instalment_calculator__button_txt">${app_shop.txt.instalmentSingleProduct}</span>\n        <span class="instalment_calculator__button_price">${productsPriceFormat}</span>\n        ${minPrice&&productsPrice<minPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMin}</span>`:""}\n        ${maxPrice&&productsPrice>maxPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMax}</span>`:""}\n      </button>\n    `,0!==instalmentData.basketCount&&(buttonHTML+=`\n        <button class="instalment_calculator__button ${minPrice&&sumPrice<minPrice||maxPrice&&sumPrice>maxPrice?app_shop.txt.instalmentButtonDisableClassDialog:app_shop.txt.instalmentButtonClassDialog}"${minPrice&&sumPrice<minPrice||maxPrice&&sumPrice>maxPrice?"":` onclick="${link.replace("XXX",sumPrice)}"`}>\n          <span class="instalment_calculator__button_txt">${app_shop.txt.instalmentBasketProduct}</span>\n          <span class="instalment_calculator__button_price">${sumPriceFormat}</span>\n          ${minPrice&&sumPrice<minPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMinBasket}</span>`:""}\n          ${maxPrice&&sumPrice>maxPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMaxBasket}</span>`:""}\n        </button>\n      `)),document.querySelector("#container.basketedit_page")){if(minPrice&&productsPrice>=minPrice&&maxPrice&&productsPrice<=maxPrice)return eval(link.replace("XXX",productsPrice)),!1;buttonHTML=`\n      <button class="instalment_calculator__button ${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?app_shop.txt.instalmentButtonDisableClassDialog:app_shop.txt.instalmentButtonClassDialog}"${minPrice&&productsPrice<minPrice||maxPrice&&productsPrice>maxPrice?"":` onclick="${link.replace("XXX",productsPrice)}"`}>
28\n        <span class="instalment_calculator__button_txt">${app_shop.txt.instalmentMultiProduct}</span>\n        <span class="instalment_calculator__button_price">${productsPriceFormat}</span>\n        ${minPrice&&productsPrice<minPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMinB}</span>`:""}\n        ${maxPrice&&productsPrice>maxPrice?`<span class="instalment_calculator__button_info">${app_shop.txt.instalmentTextMaxB}</span>`:""}\n      </button>\n    `}Modal({html:infoHTML+buttonHTML,classList:"instalment_calculator"})}function updateBasket(){$.ajax({type:"GET",url:"/pl/basketedit.html",success:function(e){const t=document.createElement("div");t.innerHTML=e;const i=t.querySelector(".basketedit_product_summary strong").textContent;document.querySelector(".topBasket__price").textContent=i,menu_basket_cache()},complete:function(){console.log("ok")}})}app_shop.txt.instalmentLabel="",app_shop.txt.instalmentSingleProduct="Oblicz raty tylko dla tego produktu",app_shop.txt.instalmentMultiProduct="Oblicz raty produktów w koszyku",app_shop.txt.instalmentBasketProduct="Oblicz raty łącznie z wartością koszyka",app_shop.txt.instalmentNoTall="Nie wszystkie umieszczone w koszyku produkty umożliwią zakup tym systemem ratalnym. Przejdź do szczegółów każdego z produktów aby dowiedzieć się które z nich umożliwiają taki zakup. Jeżeli zdecydujesz się na zakup na raty, opłata za te produkty będzie musiała być wniesiona odrębnie pozostałymi sposobami płatności.",app_shop.txt.instalmentTooMany="W koszyku znajduje się zbyt duża ilość produktów aby móc opłacić zamówienie tym systemem ratalnym. Zmniejsz ilość produktów do ",app_shop.txt.instalmentTooMany2=" aby móc skorzystać z systemu rat. Ilość sztuk jednego produktu nie jest limitowana.",app_shop.txt.instalmentLabelTo=" to ",app_shop.txt.instalmentLabelMinBasket="Nie możesz uruchomić symulacji rat dla całego koszyka, ponieważ minimalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentTextMin="Zwiększ ilość sztuk produktu, aby uruchomić kalkulator rat.",app_shop.txt.instalmentTextMinBasket="Zwiększ ilość sztuk tego produktu, lub wrzuć do koszyka dodatkowe produkty.",app_shop.txt.instalmentTextMinB="Zwiększ ilość produktów w koszyku, aby uruchomić kalkulator rat.",app_shop.txt.instalmentLabelMax="Maksymalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentLabelMaxBasket="Nie możesz uruchomić symulacji rat dla całego koszyka, ponieważ maksymalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentTextMax="Zmniejsz ilość sztuk produktu, aby uruchomić kalkulator rat.",app_shop.txt.instalmentTextMaxBasket="Zmniejsz ilość sztuk tego produktu, lub usuń z koszyka niektóre produkty.",app_shop.txt.instalmentTextMaxB="Zmniejsz ilość produktów w koszyku, aby uruchomić kalkulator rat.",app_shop.txt.instalmentLabelMin="Minimalna kwota umożliwiająca zakupy przez ",app_shop.txt.instalmentButtonClassDialog="btn --solid --medium",app_shop.txt.instalmentButtonDisableClassDialog="btn --solid --secondary --medium --disabled",app_shop.txt.instalmentNet=" netto",app_shop.run((function(){Modal({element:document.getElementById("menu_notice")})}),"all","#menu_notice"),app_shop.run((function(){iaiGet.snippets((function(e){var t=e.Snippets.response.items;for(var i in t)switch(t[i].region){case"head":$("head").append(t[i].content);break;case"body_top":$("body").prepend(t[i].content);break;default:$("body").append(t[i].content)}}),{mobile:(1==app_shop.vars.view).toString(),tablet:(2==app_shop.vars.view).toString(),pc:(app_shop.vars.view>=3).toString(),request_uri:app_shop.vars.request_uri,additional_ajax:app_shop.vars.additional_ajax}),iaiGet.toplayersAndWidgets((function(json){var ToplayersAndWidgets=json.ToplayersAndWidgets.response.items;for(var key in ToplayersAndWidgets)"script"===key?eval(ToplayersAndWidgets[key]):$("body").append(ToplayersAndWidgets[key].content)}),{mobile:(1==app_shop.vars.view).toString(),tablet:(2==app_shop.vars.view).toString(),pc:(app_shop.vars.view>=3).toString(),request_uri:app_shop.vars.request_uri,additional_ajax:app_shop.vars.additional_ajax})}),"all"),$.fn.heightElements=function(e){var t=$.extend({el:".product-name"},e),i=t.el.split(",");return this.each((function(){if($this=$(this),$elements=$this.find('> *:not(".separator")'),$elements.length>1){$numCol=$this.find(".separator").length?$this.find(".separator:first").index():$elements.length,$elements.find(t.el).css("min-height","");for(var e=0,n=$elements.length;e<n;e+=$numCol)for(var a in i)$elements.slice(e,e+$numCol).find(i[a]).css("min-height",$elements.slice(e,e+$numCol).find(i[a]).maxHeightO())}}))},$(document).on("click",".tag-wrapper .search_button_buy",(function(e){e.preventDefault();var t=$(e.target);console.log(t.closest(".tag-wrapper"));var i=t.closest(".tag-wrapper").find('.sizes_list input[type="hidden"]').attr("value");if(void 0===i||""===i||null===i)return t.closest(".tag-quick_cart").find(".check_sizes").length&&t.closest(".tag-quick_cart").find(".check_sizes").click(),Alertek.Start(app_shop.txt.txt_rozmiar),!1;var n=t.html(),a=t;t.html('<i class="icon-refresh icon-spin"></i>');var s=t.parents("form");return $.ajax({url:"basketchange.php",type:"POST",dataType:"json",data:{getAjax:!0,product:s.find('input[name="product"]').val(),mode:1,size:s.find('[name="size"]').val(),number:1},success:function(e){updateBasket(),a.html('<i class="icon-check"></i>'),Alertek.show_alert("Dodano do koszyka"),setTimeout((function(){a.html(n)}),1500)},error:function(e){console.log("error"),a.html('<i class="icon-remove-sign"></i>').attr("style","color:#fff;"),setTimeout((function(){a.html(n).removeAttr("style")}),1500)}}),!1})),$(".tag-wrapper .sizes_list > span").on("click",(function(){$(this).parent(".sizes_list").find("span").removeClass("active"),$(this).addClass("active"),$(this).siblings("input").val($(this).attr("data-val")),$(this).is(".disabled")&&$(this).parents(".quick_cart").addClass("disabled_size")}
28)),$(".tag-container").remove(),$((function(){tagImage.init()}));let tagImage={init:function(){$(".tagged-image").length&&(tagImage.createTags(),$(".tag-container").off().on("mouseover",(function(){let e=$(this).find(".dot");$(".tag-wrapper").hide();let t=$(this).attr("tag-id");0===$('.dot .tag-wrapper[tag-id="'+t+'"]').length&&tagImage.productToTag(t,e)})),$(document).on("click",".tag-wrapper .select_button",(function(e){let t=$(e.target);t.parent().find("input").attr("value",t.attr("data-val")),t.siblings().removeClass("active"),t.addClass("active")})),tagImage.createHotspot())},createPopup:function(e,t,i){let n=$(`\n            <div>\n                <div class="product_wrapper type_product type_product tag-wrapper" tag-id="${i}">\n                  <div class="tag-wrapper--inner">\n                    <a class="product__icon" rel="nofollow" href="${e.sizes.link}" title="${e.sizes.name}">\n                        ${e.sizeprices.yousave_percent?'<span class="label discount">-'+e.sizeprices.yousave_percent+"%</span>":""}\n                        <img src="${e.sizes.icon}" alt="${e.sizes.name}"> \n                    </a>\n                    <a class="product__name" href="${e.sizes.link}" title="${e.sizes.name}">${e.sizes.name}</a>\n                    <div class="product__prices" ${"0.00"===e.sizeprices.worth?'style="display:none;"':""}>\n                        <span class="price">${e.sizeprices.price_formatted}</span>\n                        ${e.sizeprices.maxprice_formatted?'<del class="max-price">'+e.sizeprices.maxprice_formatted+"</del>":""}\n                    </div>\n\n                    <div class="tag-quick_cart">\n                      <form action="basketchange.php" method="post" class="search_basket_form form_buy">\n                          <input type="hidden" class="mode" name="mode" value="1">\n                          <input type="hidden" name="product" value="${i}">\n                          <div ${1===Object.keys(e.sizes.items).length?' style="display:none;"':""}>\n                            <div class="mobile_size_select visible-tablet">Wybierz rozmiar</div>\n                            <div class="sizes_list">\n                                <input type="hidden" name="size" ${1===Object.keys(e.sizes.items).length?' value="uniw"':""}>\n                                ${Object.keys(e.sizes.items).map((t=>`<span class="select_button ${"0"===e.sizes.items[t].amount?"disabled":""}" data-amount="${e.sizes.items[t].amount}" data-val="${e.sizes.items[t].type}" data-prod-id="${i}">${e.sizes.items[t].description}</span>`)).join("")}opup\n                            </div>\n                          </div>\n                          <div class="prod-count" data-unit-sellby="1">\n                            <input name="quantity" type="hidden" value="1">\n                          </div>\n                          <a class="search_button_buy btn --small --solid" title="Kup teraz">\n                            Dodaj do koszyka\n                          </a>\n                      </form>\n                    </div>\n    \n                  </div>\n                </div>\n            </div>\n        `);sessionStorage.setItem(i,n.html()),$('.tag-container[tag-id="'+i+'"] .dot').append(n.html()).append((function(){tagImage.checkPosition($(this).find('.tag-wrapper[tag-id="'+i+'"]'))}))},createTags:function(){$(".tagged-image").each((function(){let e=$(this),t=e.attr("data-tags");if(null!=t&&t.length>0){let i=t.split(";");for(let t=0;t<i.length;t++){let n=i[t].split(",");e.append('<div class="tag-container" style="top:'+n[1]+"%; left:"+n[2]+'%;" tag-id="'+n[0]+'"><div class="dot"><n></n></div></div>')}}}))},productToTag:function(e,t){if(null===sessionStorage.getItem(e)){t.addClass("load icon-spin");let i=$(this),n="/ajax/projector.php?action=get",a=[];a[a.length]="product="+e,a[a.length]="get=sizes,sizeprices";let s=a.join("&");if(i.data("requestRunning"))return;i.data("requestRunning",!0),$.ajax({type:"GET",url:n+"&"+s,dataType:"json",success:function(i){tagImage.createPopup(i,t,e)},complete:function(){i.data("requestRunning",!1),t.removeClass("load icon-refresh icon-spin")}})}else $('.tag-container[tag-id="'+e+'"] .dot').append(sessionStorage.getItem(e)).append((function(){tagImage.checkPosition($(this).find('.tag-wrapper[tag-id="'+e+'"]'))}))},checkPosition:function(e){setTimeout((function(){e.length||tagImage.checkPosition(e);let t=e.closest(".tagged-image");e.offset().left+e.outerWidth()>t.offset().left+t.outerWidth()?(e.addClass("left"),e.removeClass("right")):(e.addClass("right"),e.removeClass("left"))}),200)},createHotspot:function(){$(".tagged-image-wrapper").each((function(){let e=$(this),t=e.find(".tagged-image").attr("data-tags").split(";").map((function(e){return e.split(",")[0]}));var i={Product:{}};i.Product.format="json",i.Product.params={},i.Product.params.products=t.toString(),$.ajax({type:"POST",url:"/ajax/get.php",dataType:"JSON",data:"request="+JSON.stringify(i)+"&getAjax=true",success:function(t){var i=t.Product.response.product,n=`<span class="big_label">Zobacz produkty ze zdjęcia</span>\n                                <div class="products_wrapper row clearfix"data-column="1:2|2:4|3:6|4:6"data-wraptype="separateElements">\n                                ${Object.keys(i).map((function(e){return`\n                                    <div class="product_wrapper type_product type_product tag-wrapper mobile col-md-3 col-sm-6" tag-id="${i[e].attributes.id}">\n                                      <div class="tag-wrapper--inner">\n                                        <a class="product__icon d-flex justify-content-center align-items-center" rel="nofollow" href="${i[e].attributes.link}" title="${i[e].name}">\n                                            ${i[e].sizes.prices.attributes.yousave_percent?'<span class="label discount">-'+i[e].sizes.prices.attributes.yousave_percent+"%</span>":""}\n                                            <img src="${i[e].icon}" alt="${i[e].name}">     \n                                        </a>\n                                        <a class="product__name" href="${i[e].attributes.link}" title="${i[e].name}">${i[e].name}</a>\n                                        <div class="product__prices">
28\n                                            <span class="price">${i[e].sizes.prices.attributes.maxprice_formatted}</span>\n                                            ${parseInt(i[e].sizes.prices.attributes.maxprice)>parseInt(i[e].sizes.prices.attributes.worth)?`<del class="max-price">${i[e].price.attributes.worth_formatted}</del>`:""}\n                                        </div>\n                    \n                                        <div class="tag-quick_cart">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a class="btn --small --solid"  href="${i[e].attributes.link}" title="Zobacz">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tZobacz\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</a>\n                                        </div>\n                        \n                                      </div>\n                                </div>`})).join("")}</div>`;e.append(n);let a=e.find(".products_wrapper:not(.slick-slider)");a.heightElements({el:".product_wrapper, .product-name, .product_prices, .tag-quick_cart"}),a.slick({slidesToShow:4,slidesToScroll:4,prevArrow:'<a class="slick-prev" href=""><i class="icon-angle-left"></i></a>',nextArrow:'<a class="slick-next" href=""><i class="icon-angle-right"></i></a>',responsive:[{breakpoint:959,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:757,settings:{slidesToShow:2,slidesToScroll:2,autoplay:!1}}],afterChange:function(e,t,i){app_shop.vars.bLazy.revalidate()}})},error:function(){}})}))}};app_shop.run((()=>{$(".affiliate.--generator.--menu").after($(".affiliate__info.--small"))}),[1],".affiliate.--generator.--menu"),app_shop.run((()=>{$(".affiliate.--generator.--menu").append($(".affiliate__info.--small"))}),[2,3,4],".affiliate.--generator.--menu");const basketActionsCall=e=>{$(".basket .--click, .basket__tools .--click").on("click",(async function(){const e=$(this),t=e.attr("href"),i=e.parents(".basket__block"),n=i.find(".basket__item.--actions"),a=$(".basket__item.--actions.--active, .basket__item.--actions.--active-comment"),s=$(".basket__form");switch(t){case"#showActions":(!i.hasClass("--special")||i.hasClass("--special_quantity"))&&(n.toggleClass("--active"),e.toggleClass("--open"));break;case"#editComment":app_shop.vars.view<3?n.addClass("--active --active-comment"):(a.not(n).removeClass("--active-comment"),n.toggleClass("--active-comment"));break;case"#addComment":a.not(n).removeClass("--active-comment"),n.toggleClass("--active-comment");break;case"#addMoreFile":{const t=e.prev();t.append(t.find("input").first().clone().val("")),t.scrollTop(t[0].scrollHeight);break}case"#previewFile":{const t=e.attr("rel"),i=e.parent().find("span").text();let n=new Image;return n.src=t,n.onload=function(){Modal({html:`<div id="ui-dialogimg"><img alt="${i}" src="${t}" /></div>`,classList:"--medium"})},!1}case"#delQuantity":case"#addQuantity":{const e=i.find(".quantity__input"),{unit_sellby:n}=e.data(),a="#delQuantity"===t?parseFloat(e.val())-parseFloat(n):parseFloat(e.val())+parseFloat(n);e.val(a).change(),e.keyup();break}case"#remove":i.find(".quantity__input").val(0),s.submit();break;case"#removeAll":$(".basket__action .quantity__input").val(0),s.submit();break;case"#removeSelected":$(".basket__product_checkbox").each((function(){$(this).is(":checked")&&$('.basket__block[data-product-checkbox-id="'+$(this).val()+'"]').find(".quantity__input").val(0)})),s.submit();break;case"#addToFavorite":{const e="/basketchange.php?type=multiproduct&mode=2";s.attr("action",e),s.submit();break}case"#addWrapper":$(".basket__wrappers").toggleClass("--active"),app_shop.vars.bLazy&&app_shop.vars.bLazy.revalidate(),$("#wrappers_wrapper .product__name").setHeight($("#wrappers_wrapper .products")),$("#wrappers_wrapper .product__prices").setHeight($("#wrappers_wrapper .products"));break;default:return!0}return!1})),$(".basket__select_all_checkbox").on("change",(function(){$(this).is(":checked")?$(".basket__product_checkbox").prop("checked",!0):$(".basket__product_checkbox").prop("checked",!1)})),$(".basket__gift_inputs[data-nogiftforyou]").length>0&&(Alertek.show_alert(productslist_maxvalue_05_txt),$.post($("form.basket__form").attr("action"),$("form.basket__form").serialize(),(function(){}),"json")),$(".basket__add .add__textarea").blur((function(){const e=$(this),t=e.val().length,i=productslist_maxvalue_04_txt;t>i&&(e.val(e.val().substring(0,i)),Alertek.show_alert(productslist_03a_txt+i+productslist_03b_txt))})),$(".basket__quantity .quantity__input").on("keyup",(function(){const e=$(this),t=e.val();if(e.val(e.val().replace(/[^0-9.]+/g,"")),app_shop.vars.view<3){const i=$.fn.textWidth(t,"21px Arial");e.width(i+15)}else e.removeAttr("style")})),$(document).on("click.close_wrappers",".close_wrappers",(function(){$(".basket__wrappers").removeClass("--active")})),$(".basket__quantity .quantity__input").on("change",(function(){const t=$(this);let i=!1,n=!1;const a=t.parents(".basket__block").attr("data-product-id"),s=t.parents(".basket__block").attr("data-product-size");$(".basket__block").each((function(){$(this).attr("data-product-id")==a&&$(this).attr("data-product-size")==s&&$(this).hasClass("--special")&&(i=!0,n=$(this).find(".quantity__input").val())})),t.parents(".basket__block").hasClass("--special")&&(i=!1),i?e.numberCheck($(this),n):e.numberCheck($(this))})),simple_tooltip(".basket__tip","n59581_tooltip"),$(".basket__param.--comment .param__label").trunk8({lines:2})};app_shop.run((function(){$(".basketedit_summary_container").after($(".basket__tools")),$(".basket__tools").after($(".basket__wrappers"));new Basket({funcActionsCall:basketActionsCall})}),"all","#Basket"),app_shop.run((function(){$(".basket__quantity .quantity__input").keyup()}),[1,2,3,4],"#Basket");var productslist_03a_txt="Uwagi mogą mieć maksymalnie ",productslist_03b_txt=" znaków. ",productslist_maxvalue_04_txt="255",productslist_maxvalue_05_txt="<b>Wybrany przez Ciebie wcześniej produkt gratisowy nie jest dostępny dla takiej wartości koszyka. </b><br/><span style='font-weight:normal;'>Prosimy wybierz inny produkt gratisowy lub powiększ swoje zamówienie.</span>",txt_order_wrappers_1="Do koszyka",txt_order_wrappers_2="Gratis !",txt_order_wrappers_4="Wybierz opakowanie",txt_order_wrappers_8="Zamknij",product_buttons_basket_class="btn --solid";const basketeditTxt={week1:" tydzień",week2:" tygodnie",week3:" tygodni"};basketeditTxtWeek=[basketeditTxt.week3,basketeditTxt.week1,basketeditTxt.week2],app_shop.run((function(){orderTxt.week3,orderTxt.week1,orderTxt.week2;const e=[orderTxt.days,orderTxt.day,orderTxt.days],t=$(".basket__division").data("weeks"),i=$(".basket__division").data("days"),n=$(".basket__division").data("week_day"),a=$(".basket__division").data("today");0===parseInt(t,10)?($(".basket__division_literal").hide(),a?$("strong.basket__division_weeks").html(orderTxtShipping[0]):$("strong.basket__division_weeks").html(orderTxtShipping[parseInt(n,10)])):$("strong.basket__division_weeks").html(app_shop.fn.changeLiteral(parseInt(i,10),e,!1)),$('input[name="allow_division_order"]').on("change",(function(){$(this).parents("form").submit()}))}),"all",".basket__division"),app_shop.graphql.basketDelivery=async()=>{const e=JSON.stringify({query:"query {\n  shipping(ShippingInput: { mode: basket }) {\n    shipping {\n      courier {\n        name\n        carrierName    \n      } \n      limitFree {\n        value\n        formatted\n      }       \n    }    \n  }\n}"});try{const t=await fetch(app_shop?.urls?.graphql||"/graphql/v1/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e}),i=await t.json();return console.log("-------2"),i}catch(e){return console.error("AJAX fetchLastLowestProductPrices() Error:",e),!1}};let getDelivery=async()=>{let e=document.querySelector(".toshippingfree .price").innerText,t=(await app_shop.graphql.basketDelivery()).data.shipping.shipping.filter((t=>t.limitFree.formatted===e))[0].courier.carrierName||"";t="InPostShipX"===t?"paczkomatem":t,document.querySelector("#shipping_basket").innerText=t};function setGiftsItems(){function e(){$.each($("#basketedit_gifts li.gift_enable"),(function(){$(this).removeClass("gift_active"),$(this).find("input[type=radio]").removeAttr("checked"),$('.basket__gift_inputs input[name="set_quantity[0]"]').val(0),$(this).find('input[name="set_quantity[0]"]').val(0),$(this).find("#your_gift_txt").remove()})),$(".basket__form").submit()}$("div.gift_tooltip div.gift_choose").click((function(t){e(),$(this).parents(".gift_enable").addClass("gift_active"),$(this).parents(".gift_enable").find("input[type=radio]").attr("checked",!0),$(this).parents(".gift_enable").find('input[name="set_quantity[0]"]').val(1),$(".basket__gift_inputs").remove(),$("form.basketedit_productslist").length?$('<div class="basket__gift_inputs d-none"></div>').appendTo("form.basketedit_productslist"):$('<div class="basket__gift_inputs d-none"></div>').appendTo("form.basket__form"),$(this).parents(".gift_enable").find("input[type=hidden]").clone().appendTo(".basket__gift_inputs"),$("div.gift_tooltip").hide(),$(".basket__form").submit(),t.stopImmediatePropagation()})),$("div.gift_tooltip div.gift_resign").click((function(t){e(),$("div.gift_tooltip").hide(),t.stopImmediatePropagation()})),$.each($("#basketedit_gifts li.gift_enable"),(function(){$(this).find("div.gift_tooltip");$(this).find("div.gift_tooltip").length?$(this).click((function(){$(this).hasClass("gift_active")?($
28(this).find("div.gift_choose").hide(),$(this).find("div.gift_resign").show()):($(this).find("div.gift_choose").show(),$(this).find("div.gift_resign").hide()),$("#basketedit_gifts li.gift_enable").not(this).find("div.gift_tooltip").hide(),$(this).find("div.gift_tooltip").toggle()})):$(this).click((function(){$(this).is(".gift_active")?e():(e(),$(this).addClass("gift_active").find("h3").prepend('<div id="your_gift_txt">'+twoj_prezent_txt),$(this).find("input[type=radio]").attr("checked",!0),$(this).parents(".gift_enable").find('input[name="set_quantity[0]"]').val(1),$(".basket__gift_inputs").remove(),$("form.basketedit_productslist").length?$('<div class="basket__gift_inputs d-none"></div>').appendTo("form.basketedit_productslist"):$('<div class="basket__gift_inputs d-none"></div>').appendTo("form.basket__form"),$(this).find("input[type=hidden]").clone().appendTo(".basket__gift_inputs"))}))})),$("#basketedit_gifts li.gift_enable select").click((function(e){$("#basketedit_gifts li.gift_enable").removeClass("gift_active"),$(this).parents("li").addClass("gift_active"),$(this).parents("li").find("input[type=radio]").attr("checked",!0),$(".basket__gift_inputs").remove(),$("form.basketedit_productslist").length?$('<div class="basket__gift_inputs d-none"></div>').appendTo("form.basketedit_productslist"):$('<div class="basket__gift_inputs d-none"></div>').appendTo("form.basket__form"),$(this).parents("li").find("input[type=hidden]").clone().appendTo(".basket__gift_inputs"),$(this).parents(".gift_enable").hasClass("gift_active")?($(this).parents(".gift_enable").find("div.gift_choose").hide(),$(this).parents(".gift_enable").find("div.gift_resign").show()):($(this).parents(".gift_enable").find("div.gift_choose").show(),$(this).parents(".gift_enable").find("div.gift_resign").hide()),e.stopImmediatePropagation()})),$("#basketedit_gifts li.gift_enable select").change((function(){$("#basketedit_gifts li.gift_enable").removeClass("gift_active"),$(this).next().val($(this).val()),$(".basket__gift_inputs").remove(),$("form.basketedit_productslist").length?$('<div class="basket__gift_inputs d-none"></div>').appendTo("form.basketedit_productslist"):$('<div class="basket__gift_inputs d-none"></div>').appendTo("form.basket__form"),$(this).parents("li").find("input[type=hidden]").clone().appendTo(".basket__gift_inputs")}))}app_shop.run((()=>{getDelivery()}),"all","#shipping_basket"),app_shop.run((function(){$("#basketedit_gifts").on("click",".basketedit_gifts_btn",(function(){$("div.basketedit_gifts_wrapper").toggle(),$(this).toggleClass("active"),$("#basketedit_gifts").find(".gift_item_icon").css("height",$(".basketedit_gifts_wrapper > ul > li").find(".gift_item_icon").maxHeight())})),$((function(){$("#basketedit_gifts").find(".gift_item_icon").css("height",$(".basketedit_gifts_wrapper > ul > li").find(".gift_item_icon").maxHeight())}))}),"all","#basketedit_gifts"),$((function(){$("#a_change_code").click((function(){return $("#change_code").toggle(),!1})),$("#a_remove_code").click((function(){return $("input.basketedit_rebatecode_input").val(" "),$("#change_code").submit(),!1}))})),twoj_prezent_txt="TWÓJ PREZENT:",app_shop.run((function(){setGiftsItems()}),"all","#basketedit_gifts"),app_shop.run((function(){$(".pb_icon img.rwd-src").each((function(){$this=$(this),$this.attr("src",app_shop.fn.getRwdSrc($this))}))}),[1,2,3,4],"#favourites_list"),app_shop.run((function(){$("div.categories-list_wrapper ul").show()}),4,"div.categories-list_wrapper",!0),app_shop.run((function(){$("div.categories-list_wrapper ul").show()}),3,"div.categories-list_wrapper",!0),app_shop.run((function(){$("div.categories-list_wrapper ul").show()}),2,"div.categories-list_wrapper",!0),app_shop.run((function(){$("div.categories-list_wrapper ul.categories-list_level2, div.categories-list_wrapper ul.categories-list_level3").hide(),$("span.more_categories").unbind().click((function(){$(this).toggleClass("open").next("ul").slideToggle()}))}),1,"div.categories-list_wrapper",!0),app_shop.run((function(){$("button.n68137_files_download").on("click",(function(){return $(this).parent().find("div.n68137_popup").dialog({wrappContent:!0,removeContent:!1,fixed:!1,fitToWindow:!1,width:500,wrapperClass:"--download_files"}),!1}))}),"all",".n68137_downloadable");var client_new_social_info_js_txt_1="Zaloguj się na którąś z wyżej wymienionych formy logowania aby dokończyć rejestrację.";app_shop.run((function(){Modal({element:$("#client_new_social_info"),classList:"--social",afterShow:(e,t)=>{$(".go_to_register_form").on("click",(function(e){return t.closeModal(),!1}))}})}),"all","#client_new_social_info"),app_shop.run((function(){$("#button_alert div").html(client_new_social_info_js_txt_1),$("#submit_register").removeAttr("onclick").click((function(){return $("#button_alert").show(),!1})),$("#submit_register").hover((function(){}),(function(){$("#button_alert").hide()})),$("#client_new_social li strong").on("click",(function(){$("#client_new_social form").not($("#social_networking_"+$(this).attr("data-service"))).hide(),$("#social_networking_"+$(this).attr("data-service")).toggle()})),$("#client_new_social form").on("submit",(function(){return window.location="/"+$(this).attr("action")+"?"+$(this).serialize(),!1}))}),"all","#client_new_social"),app_shop.run((()=>{app_shop.vars.topSpacer=70}),1,".client-new_page"),app_shop.run((()=>{app_shop.vars.topSpacer=90}),2,".client-new_page"),app_shop.run((()=>{app_shop.vars.topSpacer=10}),[3,4],".client-new_page");const clientFormTxt={txt00:"Mamy już zarejestrowane konto dla podanego adresu e-mail: ",txt01:"Pamiętam swój login i hasło i mogę je podać.",txt02:"Chcę stworzyć nowe konto przy użyciu tego adresu (niezalecane).",txt03:"Wyślij e-mail pozwalający na automatyczne zalogowanie",txt06:"Wyślij wiadomość na adres",txt07:"z danymi potrzebnymi do logowania .",txt08:"<br/>
28Założone wcześniej konto zostało połączone z kontem",txt13:"Proponujemy Ci użycie tego konta, co pozwoli Ci korzystać z przywilejów zarezerwowanych dla wielokrotnych klientów. Aby się zalogować na wcześniej założone konto, wystarczy kliknięcie na link, który możemy Ci wysłać w e-mailu.",txt14:"Poprawne formaty kodu pocztowego dla wybranego kraju to [X - cyfra; Y - litera]:",txt15:"znaków).",txt16:"Proszę wypełnić to pole.",txt16a:'<i class="icon-visibility"></i> Pokaż hasło',txt16b:'<i class="icon-novisibility"></i> Ukryj hasło',txt17:"Wpisz nazwę ulicy lub miejscowości.",txt18:"Nieprawidłowy format. Pole musi zawierać przynajmniej jedną literę."};var clientNewErrorCode=[];clientNewErrorCode.no_login="Wpisz w to pole swój login.",clientNewErrorCode.incorect_login="Błędnie wpisany login. Login musi mieć minimum 3, a maksimum 40 znaków. Możesz użyć liter i cyfr oraz symboli @ . - _.",clientNewErrorCode.no_password="Wpisz w to pole swoje hasło.",clientNewErrorCode.password_to_short="Zbyt krótkie hasło. Wpisz dłuższe hasło (minimum 6 znaków).",clientNewErrorCode.password_to_long="Za długie hasło. Wpisz krótsze hasło (maksimum 15 znaków).",clientNewErrorCode.login_equals_password="Hasło jest takie samo jak login. Wpisz inne hasło.",clientNewErrorCode.not_equal_passwords="Wpisane hasła nie są takie same. Wpisz ponownie hasło i potwierdzenie.",clientNewErrorCode.no_firstname="Wpisz w to pole swoje imię.",clientNewErrorCode.no_name="Wpisz w to pole swoje nazwisko.",clientNewErrorCode.incorect_email="Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected]",clientNewErrorCode.incorect_shops="Wybierz sklep z listy.",clientNewErrorCode.incorect_nip="Błędnie wpisany NIP. Prawidłowy NIP ma 10 cyfr.",clientNewErrorCode.no_firmname="Błędnie wpisana nazwa firmy.",clientNewErrorCode.incorrect_region="Błędnie wybrany region.",clientNewErrorCode.no_city="Wpisz w to pole nazwę miasta.",clientNewErrorCode.birth_date="Wpisz poprawną datę urodzenia w formacie RRRR-MM-DD",clientNewErrorCode.no_street="Wpisz nazwę ulicy lub miejscowości.",clientNewErrorCode.no_street_number="Wpisz nazwę ulicy lub miejscowości.",clientNewErrorCode.incorect_phone="Wpisz swój telefon.",clientNewErrorCode.incorect_zipcode="Błędnie wpisany kod pocztowy.",clientNewErrorCode.no_delivery_firstname="Wpisz imię odbiorcy przesyłki.",clientNewErrorCode.no_delivery_lastname="Wpisz nazwisko odbiorcy przesyłki.",clientNewErrorCode.no_delivery_city="Wpisz miejscowość odbiorcy przesyłki.",clientNewErrorCode.no_delivery_street="Wpisz ulicę i numer domu odbiorcy przesyłki.",clientNewErrorCode.incorect_delivery_region="Wybierz kraj odbiorcy przesyłki.",clientNewErrorCode.incorect_delivery_zipcode="Wpisz kod pocztowy odbiorcy przesyłki.",clientNewErrorCode.login_taken="Podany login jest już zajęty",clientNewErrorCode.used_login="Podany login jest już zajęty",clientNewErrorCode.login_taken_login_propose="Podany login jest już zajęty.<br/><br/>Proponowany login: ",clientNewErrorCode.illegal_characters_client_firstname="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_lastname="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_street="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_city="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_phone="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_phone2="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_firm="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_firstname="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_lastname="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_city="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_additional="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_street="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_delivery_phone="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.illegal_characters_client_nip="Jeden z użytych znaków jest niedozwolony.",clientNewErrorCode.password_to_short="Zbyt krótkie hasło. Wpisz dłuższe hasło (minimum",clientNewErrorCode.password_to_long="Za długie hasło. Wpisz krótsze hasło (maksimum",clientNewErrorCode.no_invoice_firstname="Wpisz imię klienta.",clientNewErrorCode.no_invoice_lastname="Wpisz nazwisko klienta.",clientNewErrorCode.no_invoice_firmname="Wpisz nazwę firmy klienta.",clientNewErrorCode.incorect_invoice_phone="Wpisz telefon klienta.",clientNewErrorCode.no_invoice_city="Wpisz miejscowość klienta.",clientNewErrorCode.no_invoice_street="Wpisz ulicę i numer domu klienta.",clientNewErrorCode.no_invoice_street_number="Wpisz ulicę i numer domu klienta.",clientNewErrorCode.incorect_invoice_zipcode="Wpisz ko
28d pocztowy klienta.",clientNewErrorCode.invalid_format="Nieprawidłowy format. Pole musi zawierać przynajmniej jedną literę.",clientNewErrorCode.no_street_number_uk="Brakuje numeru domu.",clientNewErrorCode.no_street_number="Podaj nr domu.",clientFormOptions={streetnumber:'"1"'},app_shop.run((function(){$("#client_new_summary").before($("div.rebate_card_wrap"))}),"all",".rebate_card_wrap"),app_shop.run((function(){$(".rebates_active__button.--change").on("click",(function(){return $(".rebates_active__sub.--form").removeClass("d-none"),$(this).parent().addClass("d-none"),app_shop.vars.view>1&&app_shop.vars.view<4&&$(".rebates_active__sub.--info").addClass("d-none"),!1}))}),"all",".rebates_info");const BorderRadiusAdd=e=>{$(".rebates_product__products").each((function(){let t=$(this).find($(".rebates_product__product")),i=t.length;t.removeClass("--radiusLeftTop --radiusRightBottom --radiusRightTop --radiusLeftBottom"),t.first().addClass("--radiusLeftTop"),t.last().addClass("--radiusRightBottom"),i<e?t.last().addClass("--radiusRightTop"):t.filter(`:nth-child(${e})`).addClass("--radiusRightTop"),i<e?t.last().addClass("--radiusRightTop"):t.filter(`:nth-child(${e})`).addClass("--radiusRightTop"),i%e==0?t.filter(`:nth-child(${i-e+1})`).addClass("--radiusLeftBottom"):(t.filter(`:nth-child(${i-i%e})`).addClass("--radiusRightBottom"),t.filter(`:nth-child(${i-i%e+1})`).addClass("--radiusLeftBottom"))}))};app_shop.run((()=>{BorderRadiusAdd(2)}),[1],".rebates_product__products"),app_shop.run((()=>{BorderRadiusAdd(4)}),[2,3,4],".rebates_product__products"),BorderRadiusAdd(4),app_shop.run((function(){1!=app_shop.vars.view&&$("a.show_on_map").click((function(){return contact_map.showMap(),!1})),1==app_shop.vars.view&&$("div.contact_contact_right p").each((function(){$(this).find("a").size()&&($(this).css("cursor","pointer"),$(this).click((function(){window.location=$(this).find("a").attr("href")})))}))}),"all","#contact_contact"),app_shop.fn.replaceSelects=function(e,t,i){e.each((function(e){var n=$(this),a=e;$selectValue=n.val(),$selectName=n.attr("name"),$labelName="",n.data("label")&&($labelName="<b>"+n.data("label")+"</b>"),$ul=$('<div class="dropdown dropdownsearching form-group '+n.attr("class")+'"><ul class="dropdown-menu" aria-labelledby="'+t+a+'"></ul></div>'),n.children().each((function(e){var t=$(this);$li=$("<li>");var i=new Array;if($.each(t.data(),(function(e,t){var n="data-"+e+"="+t;i.push(n)})),i.length)var n=i.join(" ");else n="";$('<a data-index="'+e+'" '+n+">").attr("href","#"+t.attr("value")).attr("data-value",t.attr("value")).text(t.text()).addClass($selectValue==t.attr("value")?"selected":"").appendTo($li),$li.appendTo($ul.find("ul")),t.attr("class")&&$li.addClass(t.attr("class")),t.attr("data-price")&&$li.attr("data-price",t.attr("data-price"))})),$ul.prepend('<button id="'+t+a+'" class="form-control dropdown-toggle" data-indexcurrent="0" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">'+$labelName+"<span>"+n.find("option:selected").text()+"</span></button>").prepend('<input class="select_hidden searching_ajax" type="hidden" name="'+$selectName+'" value="'+$selectValue+'" />'),i&&$ul.find("li").on("click.option",(function(){i($(this))})),n.replaceWith($ul)}))},app_shop.fn.getImageLightness=(e,t)=>{const i=document.createElement("img");i.src=e,i.style.display="none",document.body.appendChild(i),i.onload=e=>{const i=document.createElement("canvas");i.width=e.target.width,i.height=e.target.height;const n=i.getContext("2d");n.drawImage(e.target,0,0);const a=n.getImageData(0,0,i.width,i.height).data;let s=0;for(let e=0,t=a.length;e<t;e+=4){const t=a[e],i=a[e+1],n=a[e+2];s+=Math.floor((t+i+n)/3)}const r=Math.floor(s/(e.target.width*e.target.height));"function"==typeof t&&t(r)}},$((function(){$(".article_wrapper .datasquare").each((function(){var e=$
28(this),t=app_shop.fn.news_data({data:e.text(),month_names:iaical_shortNames,format:"<div>%d</div><span>%m</span>"});t&&e.html(t)}))})),app_shop.run((function(){$(document).on("click","a.show_description",(function(){return $(this).parent().addClass("expanded"),!1})),$(document).on("click","a.hide_description",(function(){return $(this).prev().removeClass("expanded"),!1}))}),"all",".navigation_desc"),app_shop.run((function(){$(".news__date").each((function(){const e=$(this),t=app_shop.fn.news_data({data:e.text(),month_names:iaical_shortNames,format:"<div>%d %m</div><span>%y</span>"});t&&e.html(t)}))}),"all",".news__date");var newsletter={txt:"",fill:function(e){""==e.val()&&e.val(newsletter.txt)},clear:function(e){""!=e.val()&&e.val()==newsletter.txt&&e.val("")},mode:function(e){$("#mailing_action_contact").val(e),"remove"==e?($('input[name="newsletter_consent"], input[name="mailing_name"]').removeClass("validate"),$("#newsletter_privacy_consent").find(".has-feedback").removeClass("has-error"),$('input[name="mailing_name"]').parent().removeClass("has-error"),$('input[name="mailing_name"]').siblings(".validate_message").html("")):"add"==e&&$('input[name="newsletter_consent"], input[name="mailing_name"]').addClass("validate")}};function opinionsTruncate(){app_shop.fn.textTruncate=new TextTruncate({lineH:18,lineC:2,wrapper:$("#opinions_wrapper"),count:95},((e,t)=>{t.parents(".opinion_item").on("mouseleave",(()=>{app_shop.fn.magicGrid.positionItems(),t.parents(".opinion_item").off()})),$("html").hasClass("touch")&&app_shop.fn.magicGrid.positionItems()}))}function opinionsImgLoad(){app_shop.vars.bLazy.options.success=function(e){$(e).parents(".loading").removeClass("loading"),app_shop.fn.magicGrid.positionItems()}}app_shop.run((function(){$("form.newsletter_form").find("input, textarea").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$("#newsletter_button_remove").on("click",(function(){return newsletter.mode("remove"),app_shop.formControl.checkForm($(this).parents("form"))})),$("#newsletter_button_add").on("click",(function(){return newsletter.mode("add"),app_shop.formControl.checkForm($(this).parents("form"))}))}),"all","form.newsletter_form"),app_shop.vars.opinion_send="Twoja opinia o zamówieniu została wysłana, dziękujemy. Jeżeli chcesz ją zmienić kliknij <a href='edit' class='opinion_edit'>tutaj</a>.",app_shop.vars.opinion_send2="Twoja opinia o produkcie została wysłana, dziękujemy.",app_shop.vars.opinion_error="Twoja opinia nie została wysłana.",app_shop.vars.opinion_empty="Podaj treść opinii.",app_shop.vars.opinion_file_size="Max. rozmiar zdjęcia to: 2048x1536px.",app_shop.vars.opinion_file_type="Dopuszczalne formaty zdjęć: jpg.",app_shop.vars.magicGridOptions={container:".opinions_wrapper",static:!0,animate:!0,gutter:30,maxColumns:3,useMin:!0},app_shop.fn.opinionsLoad=function(){app_shop.fn.magicGrid=new MagicGrid(app_shop.vars.magicGridOptions),app_shop.fn.magicGrid.listen(),app_shop.fn.magicGrid.positionItems(),opinionsTruncate(),$(".new_load_items img.b-lazy").parents("a").addClass("loading"),app_shop.vars.bLazy=new Blazy({container:"#opinions_wrapper",success:function(e){setTimeout((function(){$(e).parents(".loading").removeClass("loading"),app_shop.fn.magicGrid.positionItems()}),200)}})},app_shop.run((()=>{opinionsTruncate(),opinionsImgLoad()}),"all","#opinions_wrapper"),app_shop.txt.more="więcej",app_shop.run((function(){new OpinionsShop({})}),"all","#opinions_shop"),app_shop.run((function(){$("#order_open__number_input, #order_open__email_input").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle);const e=$(this);app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(e)}),500)})),$(".order_open__button").on("click",(function(){return app_shop.formControl.checkForm($(this).parents(".order_open__form"))}))}),"all",".order_open");const orderTxt={gratis:"Gratis!",pkt:" pkt.",gross:" brutto",day:" dzień ",days:" dni ",hour:" godz. ",hours:" godz. ",minutes:" min",time_pick1:"Przewidywana dostawa ",time_pick2:"Przewidywana dostawa ",time_pick3:"Odbierz zamówienie za ",time_pick4:"Odbierz zamówienie - ",time_pick5:"Przewidywana dostawa - ",time_pick5de:"",time_pick6:"Zamówienie będzie gotowe do odbioru natychmiast po przyjęciu zamówienia",shipping0:"Dzisiaj",shipping1:"Poniedziałek",shipping2:"Wtorek",shipping3:"Środa",shipping4:"Czwartek",shipping5:"Piątek",shipping6:"Sobota",shipping7:"Niedziela",servicesError:"Wystąpił problem z połączeniem. Za chwilę nastąpi ponowna próba połączenia."},orderTxtShipping=[orderTxt.shipping0,orderTxt.shipping1,orderTxt.shipping2,orderTxt.shipping3,orderTxt.shipping4,orderTxt.shipping5,orderTxt.shipping6,orderTxt.shipping7];var activeObject;function passAction(){activeObject.is("a")?window.location=activeObject.attr("href"):activeObject.closest("form").submit()}function setUnload(){$(window).bind("beforeunload",(function(e){return(e=e||window.event).returnValue=confirmmessage,confirmmessage}))}function order2_input_valid(){$(".order2_terms_wrapper input").each((function(){$(this).is(":checked")||$(this).parent().parent().addClass("required")})),$(".order2_terms_wrapper input").not(":checked").length>0?$("input.order2_button_order, input.order2_button_next").addClass("terms_required"):$("input.order2_button_order, input.order2_button_next").removeClass("terms_required")}function order2_terms_valid(){const e=document.querySelector(".order2_info1_sub_phone.--no-phone");if(e){e.scrollIntoView({behavior:"smooth",block:"start"});document.getElementById("order2TelInput").focus()}else $("input.order2_button_order").is(".terms_required")?order2_input_valid():($(window).unbind("beforeunload"),$("#ajaxLoadSite,#ajaxLoadSite_cover").show(),$("form.order2_form").submit())}orderTxt.xpress1="Musisz podać szczegóły dotyczące sposobu dostawy",orderTxt.xpress2="Kurier ekspresowy nie obsługuje Twojej okolicy ",orderTxt.xpress3="Wystąpił błąd zewnętrznego serwisu firmy kurierskiej. Proszę skontaktować się z obsługą sklepu lub zmienić formę dostawy. ",orderTxt.week1=" tydzień",orderTxt.week2=" tygodnie",orderTxt.week3=" tygodni",orderTxtWeek=[orderTxt.week3,orderTxt.week1,orderTxt.week2],app_shop.run((function(){app_shop.fn.ajaxLoadSite(1),app_shop.fn.ajaxLoadSiteMessage(order_send_preloadertxt),$("#ajaxLoadSite,#ajaxLoadSite_cover").hide(),setUnload(),$('input[type="submit"], a, button[type="submit"]').not('form.order2_form a, form.order2_form input, form.order2_form button, form[action="settings.php"] button, a.progress__item').click((function(e){return e.stopPropagation(),activeObject=$(this),dialogHTML=`<div id="menu_notice"><h2>${confirmwarning}</h2><p>${confirmmessage2}</p></div>`,Modal({html:`<div id="menu_notice" class="menu_notice"><h2>${confirmwarning}</h2><p>${confirmmessage2}</p><div class="menu_notice__buttons"><a href="#stop" class="menu_notice__button --stop btn --solid">${stop_order_button}</a>
28<a href="#continue" class="menu_notice__button --continue btn --solid">${continue_order_button}</a></div></div>`,classList:"--order2-notice",afterShow:(e,t)=>{e.querySelector(".menu_notice__button.--continue").addEventListener("click",(e=>(e.preventDefault(),t.closeModal(),!1))),e.querySelector(".menu_notice__button.--stop").addEventListener("click",(e=>(e.preventDefault(),$(window).unbind("beforeunload"),passAction(),!1)))}}),!1})),$("input.order2_button_order, input.order2_button_next").click((function(){return order2_terms_valid(),!1})),$("a.n57856_orderlink, a.n57856_nextlink, a.order2_button_change, a.order2_button_change_stock, a.order2_button_change_address, a.order2_button_change2,  a.order2_change_delivery_link").click((function(){return $(window).unbind("beforeunload"),$(this).is("input.order2_button_order, a.n57856_orderlink")&&$("#ajaxLoadSite,#ajaxLoadSite_cover").show(),!0})),$("input.order2_button_order").on("mouseover",(function(){order2_input_valid()})),$(".order2_terms_wrapper input").click((function(){$(this).parent().parent().removeClass("required")})),"undefined"!=typeof only_virtual&&"yes"==only_virtual&&$("div.wrappers_price").hide()}),"all","form.order2_form",!0);var confirmmessage="Twoje zamówienie nie zostało jeszcze złożone. Opuszczenie tej strony oznacza porzucenie zamówienia. Pamiętaj, że wracając do zamówienia za jakiś czas niektóre z produktów lub cen mogą być już nieaktualne.",confirmmessage2="Pamiętaj, że Twoje zamówienie nie zostało jeszcze potwierdzone. Niektóre produkty mogą się szybko wyprzedać lub zmienić cenę - warto dokończyć zakup teraz.",confirmwarning="Zanim opuścisz koszyk...",order_send_preloadertxt="Trwa składanie zamówienia",stop_order_button="Zrezygnuj ",continue_order_button="Dokończ zamówienie ";const order2Txt={week1:" tydzień",week2:" tygodnie",week3:" tygodni"};order2TxtWeek=[orderTxt.week3,orderTxt.week1,orderTxt.week2];var eInvoice_dialog=function(){if(!$("#e-invoice_dialog").length)return!1;app_shop.fn.order2eInvoice=new Modal({element:$("#e-invoice_dialog"),classList:"--medium"})};app_shop.run((function(){1==$('input[name="invoice"]:checked').val()&&eInvoice_dialog(),$(document).on("change",'input[name="invoice"]',(function(){1==$(this).val()&&eInvoice_dialog()})),$(document).on("click","#e-invoice_dialog button",(function(){return $("input#order2_document_e-invoice").prop("checked",!0),app_shop.fn.order2eInvoice.closeModal(),!1}))}),"all","#e-invoice_dialog"),app_shop.run((function(){$("a#toggle_comments_button").on("click",(function(){return $(this).parent().toggleClass("open"),!1}))}),"all","#toggle_comments_button"),app_shop.run((function(){orderTxt.week3,orderTxt.week1,orderTxt.week2;const e=[orderTxt.days,orderTxt.day,orderTxt.days],t=$(".shipping_time_division").data("weeks"),i=$(".shipping_time_division").data("days"),n=$(".shipping_time_division").data("week_day"),a=$(".shipping_time_division").data("today");0===parseInt(t,10)?($(".order2__division_literal").hide(),a?$(".shipping_time_division strong").html(orderTxtShipping[0]):$(".shipping_time_division strong").html(orderTxtShipping[parseInt(n,10)])):$(".shipping_time_division strong").html(app_shop.fn.changeLiteral(parseInt(i,10),e,!1))}),"all",".shipping_time_division"),app_shop.run((function(){$("#order2_products .ordered-files li a").on("click",(function(e){e.preventDefault();const t=$(this),i=t.attr("href"),n=t.parent().find("span").text();let a=new Image;return a.src=i,a.onload=function(){Modal({html:`<div id="ui-dialogimg"><img alt="${n}" src="${i}" /></div>`,classList:"--medium"})},a.onerror=function(){window.open(i)},!1}))}),"all","#order2_products .ordered-files li a"),app_shop.run((function(){document.querySelectorAll(".ordered_product__visible_in_group").forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault();const{target:t}=e,i=t.closest(".ordered_product").getAttribute("data-group-id");return document.querySelectorAll(`.ordered_product[data-group-id="${i}"]`).forEach((e=>{e.classList.toggle("--open")})),!1}))}))}),"all",".ordered_product");var pickupl_animspeed=500,pickupl_alert="Nie wybrano punktu odbioru",pickupl_alertPoczta="Nie wybrano urzędu pocztowego",pickupl_linktxt="więcej informacji",pickupl_linktitle="Zobacz szczegółowe informacje",pickupl_requires_client_number="Nie wprowadzono numeru klienta w systemie kuriera.",pickupl_select_adress="Wpisz poprawny adres.",pickupl_select_route="Wpisz nazwę miasta",pickupl_nopoints="Wpisz inny adres, brak punktów odbioru.",pickupl_error="Wystąpił błąd. Proszę odświeżyć stronę i spróbować ponownie",pickupl_nopoints_in_area="Nie znaleziono punktów odbioru na danym obszarze. ",stocks_list_more_txt="",stocks_list_on_map_txt="";if(void 0===selected_pickup_point)var selected_pickup_point={};app_shop.run((function(){void 0!==app_shop.fn.fixedElement&&(app_shop.fn.fixedElement=new FixedElement(".pickupl_submit","--fixed","pickuplSpacer","bottom"),app_shop.fn.fixedElement.init())}),[1,2],"#pickup_site");var txt_62619_label="Wpłaty ",txt_62619_wybrales_curr="Wybrałeś",txt_62619_wybrales="Wybrałeś, ale zrezygnowałeś z płatności",txt_62619_nakwote=" na kwotę ",txt_62619_wybrales2_curr="",txt_62619_wybrales2="Wybrano",txt_62619_jako=" jako formę płatności. ",txt_62619_jako_zwrot=" jako formę zwrotu.",txt_62619_kwota="Kwota do wpłaty to ",txt_62619_kwota_zwrot=" Kwota do zwrotu to ",txt_62619_auto="<br/>Wpłata zostanie zaksięgowana <b>automatycznie</b>.",txt_62619_dokoncz="",txt_62619_title="Jeżeli proces opłacania został przerwany, ponów tą płatność.",txt_62619_ponow="Ponów wpłatę",txt_62619_bedz="",txt_62619_bedz2="<br />Możesz zmienić sposób zapłaty.",txt_62619_w_inny="<br/>Dokonaj wpłaty na poniższe dane lub wybierz inny sposób zapłaty. ",txt_62619_w_inny2="Zmień formę płatności",txt_62619_rezygnacja="Zrezygnowałeś z tej formy płatności.",txt_62619_przyj_wplata="Twoja wpłata została przyjęta.",txt_62619_przyj_zwrot="Zwrot został wykonany.",txt_62619_paymentError='Wystąpił błąd płatności. Spróbuj ponownie opłacić zamówienie za chwilę lub  <a href="contact.php">skontaktuj się z nami</a>.',txt_62619_od_nazwa="Nazwa odbiorcy: ",txt_62619_konto="Numer konta: ",txt_62619_swit="SWIFT: ",txt_62619_bank="Bank:  ",txt_62619_tytulem="Tytuł przelewu: ",txt_62619_do_zaplaty="Kwota przelewu: ",txt_62619_wplata_dane="<br/>Dokonaj wpłaty na poniższe dane.",txt_62619_close_window="Zamknij okno",txt_62619_https_error="Dokonać płatności kartą kredytową można tylko przy użyciu szyfrowanego połączenia. Sprawdź czy adres sklepu poprzedzony jest protokołem HTTPS lub skontaktuj się z obsługą sklepu.",txt_62619_voucher_error="Wystąpiły błędy płatności bonem. ",txt_62619_voucher_error_v1="W tym sklepie, ten bon jest nieważny.",txt_62619_voucher_error_v2="Numer bonu jest niepoprawny. Nie istnieje bon o takim identyfikatorze. Spróbuj wpisać identyfikator ponownie, upewniając się, że jest on poprawny.",txt_62619_giftcard_error_v2="Dane karty podarunkowej są niepoprawne.",txt_62619_voucher_error_v3="Ten bon jest zablokowany.",txt_62619_voucher_error_v4="Ten bon został 
28już wykorzystany.",txt_62619_voucher_error_v5="Ten bon jest już nieważny - termin ważności minął.",txt_62619_voucher_error_v6="",txt_62619_voucher_error_v7="Bon o podanym identyfikatorze nie istnieje. Spróbuj wpisać identyfikator ponownie.",txt_62619_voucher_error_v8="Nie podano identyfikatora bonu.",txt_62619_payment_title="Dokonaj płatności",txt_62619_loader_message="Pobieram dane o płatności",txt_62619_loader_message2="Dodaję płatność",txt_62619_loader_message3="Pobieram historię płatności",txt_62619_hhtransfer_error="Wystąpiły błędy płatności punktami.",txt_62619_incorrect_paymentid="Wystąpiły błędy - wybierz inną formę płatności.",txt_62619_newpayment_error="Wystąpiły błędy płatności. Spróbuj ponownie opłacić zamówienie za chwilę.",txt_62619_newpayment_points_error="Nie masz wystarczającej ilości punktów lojalnościowych aby opłacić to zamówienie- wybierz inną formę płatności.",txt_62619_mozesz_row=" Możesz również ",txt_62619_anuluj_wplate=" anulować tę wpłatę",txt_62619_paymentCancelError='Wystąpił błąd podczas anulowania płatności. Spróbuj ponownie  za chwilę lub  <a href="contact.php">skontaktuj się z nami</a>.',txt_62619_loader_message_4="Trwa anulowanie płatności",txt_62619_wypelnij_wniosek="Wypełnij wniosek",txt_62619_dokonaj_platnosci="Zapłać ",txt_62619_paypo_dokonaj_platnosci=" Przejdź do płatności odroczonej",txt_62619_do_oplacenia="Do opłacenia zamówienia pozostało Ci ",txt_62619_dodatkowa_opl="Dodatkowa opłata ",txt_62619_l_nawias=" (",txt_62619_r_nawias=")",txt_62619_payment_success="Dyspozycja dokonania płatności internetowej została przyjęta.",txt_62619_select_payment_method="Wybierz sposób zapłaty",txt_62619_select_firstData="Transakcja zostanie zrealizowana przez system płatności FirstData International",txt_prepaid0011_kredyt="Kredyt Kupiecki",txt_prepaid0011_saldo="saldo (nadpłata na koncie klienta)",txt_prepaid0019_upper="Wybierz inną formę płatności",txt_blikCode="Podaj 6-cyfrowy kod BLIK:",lukasnotconfirmed="Proszę zaznaczyć pole z wyrażeniem zgody.",zagielnotconfirmed="Przed zatwierdzeniem płatności eRaty zapoznaj się z regulaminem.",next_voucher_text="<span>+</span> Użyj kolejnego bonu",blik_js_txt_confirm="Potwierdź transakcję za pomocą aplikacji na swoim urządzeniu mobilnym.",blik_code_empty="",txt_terms_title="Płatność jednorazowa IdoPay",txt_terms_link="regulamin płatności jednorazowej IdoPay",txt_terms_checkbox="Oświadczam, że zapoznałam / zapoznałem się i w pełni akceptuję Regulamin.",txt_terms_checkbox1="Zapoznałem się i akceptuję ",txt_terms_checkbox2=", przez którą będzie realizowana płatność.",txt_62619_restartPayment="Ponów płatność",txt_62619_card_not_supported="Przepraszamy, ale nie obsługujemy tego rodzaju kart",txt_62619_blik_length_error="Kod BLIK powinien zawierać 6 cyfr",orderdetails_payments={ajaxLoadSite:function(e,t=!1){const i=t?"--loading-page-overlay":"--loading-page";if(e)document.querySelector("html").classList.add(i);else{document.querySelector("html").classList.remove("--loading-page"),document.querySelector("html").classList.remove("--loading-page-overlay");const e=document.querySelector(".orderdetails_summary");e&&e.classList.remove("--pay_overlay")}},ajaxLoadSiteMessage:function(e){}};app_shop.run((function(){$("#prepaid_order_products .ordered-files ul li a").on("click",(function(e){e.preventDefault();const t=$(this).attr("href");let i=new Image;return i.src=t,i.onload=function(){$(`<div id="ui-dialogimg"><img src="${t}" /></div>`).dialog({wrappContent:!0,fixed:!1,fitToWindow:!1,width:i.width>0&&i.width,afterCloseFn:function(){$("#ui-dialogimg").remove()}})},!1}))}),"all","#prepaid_order_products .ordered-files");const prepaidTxt={week1:" tydzień",week2:" tygodnie",week3:" tygodni"};prepaidTxtWeek=[prepaidTxt.week3,prepaidTxt.week1,prepaidTxt.week2],app_shop.run((function(){"undefined"!=typeof only_virtual&&"true"==only_virtual&&$("#prepaid_delivery_list").hide()}),"all"),jQuery.fn.hasScrollBar=function(){return this.width()<this.find(">*:first").width()},app_shop.vars.cmpItemWidth=200,app_shop.fn.cmpItemWidth=function(e,t){$("#compareCss").remove();
28var i=$("#product_compare_list").width()/e-2*t;app_shop.vars.cmpItemWidth=i,$("head").append("<style id='compareCss'>.compare .item_width{ width:"+i+"px; }</style>"),setTimeout((function(){$("#product_compare_list").hasScrollBar()?$("#product_compare_list_wrapper").addClass("hasScrollBar"):$("#product_compare_list_wrapper").removeClass("hasScrollBar")}),500)},app_shop.run((function(){app_shop.fn.cmpItemWidth(3,1)}),1,"#product_compare_list"),app_shop.run((function(){app_shop.fn.cmpItemWidth(4,1)}),2,"#product_compare_list"),app_shop.run((function(){app_shop.fn.cmpItemWidth(4,1)}),3,"#product_compare_list"),app_shop.run((function(){app_shop.fn.cmpItemWidth(5,1)}),4,"#product_compare_list"),app_shop.run((function(){var e=$("#product_compare_list_wrapper"),t=$("#product_compare_list"),i=function(){t.scrollLeft()+t.innerWidth()>=t[0].scrollWidth?e.addClass("hideNext"):e.removeClass("hideNext"),0==t.scrollLeft()?e.addClass("hidePrev"):e.removeClass("hidePrev")};$('.configure a[href="#differences"]').click((function(){var e=$
28(this),i=e.data("toggletxt").trim(),n=decodeURIComponent(e.html().trim());if(e.html(i),e.data("toggletxt",n),$("#product_compare_list .highlight").size())return $("#product_compare_list .highlight").removeClass("highlight"),!1;t.find("tr").not(".cmp_product").each((function(){$.unique($(this).find("td").map((function(){return $(this).text().trim().toLowerCase()}))).size()>1&&$(this).addClass("highlight")})),$.unique($(".list_traits li.producer div").map((function(){return $(this).text().trim().toLowerCase()}))).size()>1&&$(".list_traits li.producer").addClass("highlight"),$.unique($(".list_traits li.barcode div").map((function(){return $(this).text().trim().toLowerCase()}))).size()>1&&$(".list_traits li.barcode").addClass("highlight")})),$(".configure_item a[data-position]").click((function(){var n=$(this),a=n.data("position")-1;return $("#product_compare_list tr").each((function(){$(this).find("td").eq(a).toggleClass("hideCol")})),setTimeout((function(){t.hasScrollBar()?e.addClass("hasScrollBar"):e.removeClass("hasScrollBar"),i();var a=n.data("toggletxt").trim(),s=decodeURIComponent(n.html().trim());n.html(a),n.data("toggletxt",s)}),300),!1})),t.bind("scroll",(function(){i()})),t.scrollLeft(0),$(".navigation .prev").click((function(){t.animate({scrollLeft:"-="+app_shop.vars.cmpItemWidth},500)})),$(".navigation .next").click((function(){t.animate({scrollLeft:"+="+app_shop.vars.cmpItemWidth},500)}))}),"all","#product_compare_list"),app_shop.run((function(){$("#product_stocks_list .sizes_wrapper").wrappTableLayout({numCol:3})}),[3,4],"#product_stocks_list"),app_shop.run((function(){$("#product_stocks_list .sizes_wrapper").wrappTableLayout({numCol:2})}),2,"#product_stocks_list"),app_shop.run((function(){$("#product_stocks_list .sizes_wrapper").wrappTableLayout({numCol:1})}),1,"#product_stocks_list"),$((function(){$(".show_tab").click((function(){return 1==app_shop.vars.view&&($(this).toggleClass("tab_hidden").toggleClass("tab_visible"),$($(this).attr("href")).slideToggle("fast")),!1}))})),app_shop.run((function(){app_shop.fn.selectPaging=new SelectToDropdown({selector:".pb_paging__select:not(.f-dropdown)",afterClickDropdownCallback:e=>{e.closest("form").submit()}})}),"all",".products-bought .s_paging select"),app_shop.run((function(){$(".products-bought__product-button .btn-disabled").on("click",(function(e){return e.preventDefault(),!1}))}),"all",".products-bought__product-button .btn-disabled",!0),app_shop.run((function(){$(".products-bought__product-icon img.rwd-src").each((function(){$this=$(this),$this.attr("src",app_shop.fn.getRwdSrc($this))}));const e=document.querySelector(".products-bought__input-checkbox-all + .f-label"),t=document.querySelectorAll(".products-bought__input-checkbox + .f-label"),i=document.querySelector(".products-bought__products-button .btn");e.onclick=()=>(e=>{const t=e.previousSibling,i=document.querySelectorAll(".products-bought__checkbox:not(.--unavailable) .products-bought__input-checkbox");t.checked?(t.checked=!1,i.forEach((e=>{e.checked=!1}))):(t.checked=!0,i.forEach((e=>{e.checked=!0})))})(e),t.forEach((e=>{e.onclick=()=>(e=>{const t=e.previousSibling,{id:i,size:n}=t.dataset;if(!i||!n)return Alertek.Error(app_shop.txt.txt_1000_products_bought_error);t.checked?t.checked=!1:t.checked=!0})(e)})),i.onclick=async()=>{const e=new FormData,t=document.querySelectorAll(".products-bought__checkbox:not(.--unavailable) .products-bought__input-checkbox");[...document.querySelectorAll(".products-bought__product-button .btn")].map(((e,i)=>t[i].checked?e.href:updatedHref=e.href.split("&").map((e=>e.includes("number")?"number=0":e)).join("&"))).forEach(((t,i)=>{t.split("?")[1].split("&").filter((e=>!e.includes("mode")&&!e.includes("bundled"))).forEach((t=>{let n="number"===t.split("=")[0]?`set_quantity[${i+1}]`:`${t.split("=")[0]}[${i+1}]`;const a=t.split("=")[1];e.append(`${n}`,`${a}`)}))}));try{await fetch("basketchange.php?type=multiproduct",{method:"POST",body:e}),window.location.reload()}catch(e){throw new Error(e)}}}),"all","#products-bought"),app_shop.run((function(){const e=document.querySelector("#paging_setting_bottom"),t=document.querySelector(".products-bought__products-button");e&&t&&t.append(e)}),[3,4],"#products-bought",!0),app_shop.run((()=>{checkCompare(),document.querySelector(".compare__button.--remove")?.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),app_shop.fn.cookie.remove("compareItems"),app_shop.fn.fetchAndRefresh(e.target)}))}),"all",".projector_page");const youtube=!!document.querySelector(".video-iframe"),youtubeRefreshSrc=e=>{const t=e.getAttribute("src");e.setAttribute("src",t)};$(document).on("hover.zoomContainer",".zoomContainer, .photos__slider .photos__link",(function(){})),$(document).on("click","#photos_slider .photos__link, #photos_nav div.--more",(function(e){e.preventDefault();const t=$(this).hasClass("--more")?parseInt($(this).data("slick-index"),10):parseInt($(this).parent().data("slick-index"),10);return app_shop.vars.projectorPhotoSwipe.init(t),document.activeElement.blur(),!1})),app_shop.run((function(){app_shop.vars.projectorElevate=new ProjectorElevate({selector:".no-touch .photos__slider .slick-active .photos__photo[data-zoom-image]"}),app_shop.vars.projectorSlider=new ProjectorSlider({selector:".photos__slider .photos___slider_wrapper:not(.slick-initialized)",options:{responsive:[{breakpoint:979,settings:{dots:!0,arrows:!1}
28}]},callbackBefore:e=>{e.on("init",(function(){app_shop.vars.projectorElevate.init()})).on("afterChange",(function(){app_shop.vars.projectorElevate.reset();const t=youtube?document.querySelector(".photos__figure.--video.slick-active .video-iframe[data-src]"):document.querySelector(".photos__figure.--video.slick-active video[data-src]");if(t){const i=t.getAttribute("data-src");t.setAttribute("src",i),t.removeAttribute("data-src"),t.addEventListener("loadeddata",(function(){e.slick("setOption","","",!0)}))}const i=youtube?document.querySelector(".photos__figure.--video:not(.slick-active) iframe[src]"):document.querySelector(".photos__figure.--video:not(.slick-active) video[src]");i&&(youtube?youtubeRefreshSrc(i):i.pause());const n=document.querySelector("#photos_nav .photos__link.--active").getBoundingClientRect().top-document.querySelector("#photos_nav").getBoundingClientRect().top+document.querySelector("#photos_nav").scrollTop;document.querySelector("#photos_nav").scroll({top:n,behavior:"smooth"})})).on("lazyLoaded",(function(){$("#photos_slider").removeAttr("data-skeleton")}))}}),app_shop.vars.projectorPhotoSwipe=new ProjectorPhotoSwipe({selector:"#photos_slider .photos__figure:not(.slick-cloned) .photos__link",pswp:".pswp"}),$("#photos_slider .photos__link.--video").off().on("click",(function(e){return e.preventDefault(),!1}))}),"all","#photos_slider",!0),app_shop.txt.txt_111709_1="Udostępnij na Facebooku",app_shop.txt.txt_111709_2="Pobierz zdjęcie",ProjectorPhotoSwipe=function(e){this.params=e,this.defaults={timeToIdle:!1,index:0,zoomEl:!0,fullscreenEl:!1,shareEl:!1,history:!1,focus:!1,showAnimationDuration:0,hideAnimationDuration:0,shareButtons:!1,closeOnScroll:!1,captionEl:!1,clickToCloseNonZoomable:!1,closeElClasses:["caption","zoom-wrap","ui"]},this.init=e=>{const{selector:t,options:i,pswp:n,itemsArray:a,thumbnailsFunc:s}=this.params;this.settings=_objectSpread({},this.defaults,{},i),this.selector=t,this.pswp=document.querySelectorAll(n)[0],this.items=[];let r=document.createElement("span");r.classList.add("photoSwipe_overlay"),document.body.appendChild(r),document.querySelector(".photoSwipe_overlay").addEventListener("click",(function(){document.querySelector(".pswp__button--close").click()})),a?this.items=a:this.setItemsArray(),e&&(this.settings.index=e);const o=new PhotoSwipe(this.pswp,PhotoSwipeUI_Default,this.items,this.settings);o.listen("gettingData",(function(e,t){if(t.w<1||t.h<1){const e=new Image;e.onload=function(){t.w=this.width,t.h=this.height,o.updateSize(!0)},e.src=t.src}})),o.init(),"function"==typeof s?s(o):this.setThumbnails(o),document.querySelector(".photos__figure.--video video[src]")&&document.querySelector(".photos__figure.--video video[src]").pause()},this.setItemsArray=()=>{[].slice.call(document.querySelectorAll(this.selector)).forEach((e=>{/\.webp$/i.test(e.querySelector("img")?.currentSrc)||e.getAttribute("data-href");const t=e.classList.contains("--video")?{html:youtube?document.querySelector(".video-iframe").outerHTML:`<video controls="controls" autoplay="autoplay" data-src="${e.getAttribute("data-href")}"></video>`}:{src:e.getAttribute("data-href"),w:e.getAttribute("data-width"),h:e.getAttribute("data-height")};this.items.push(t)}))},this.setThumbnails=e=>{const t=document.createElement("div");t.classList.add("photoSwipe_innerthumbs"),document.querySelector(".pswp").appendChild(t),document.querySelector("div.photoSwipe_innerthumbs").innerHTML=[...document.querySelectorAll("#photos_slider .photos__photo")].map((e=>`<figure class="photos__figure --nav">
28\n      <span class="photos__link --nav">${e.outerHTML}</span>\n    </figure>`)).join(""),document.querySelector(".photos__link.--video")&&(document.querySelector("div.photoSwipe_innerthumbs").innerHTML+='<figure class="photos__figure --nav --video">\n        <span class="photos__link --nav --video"></span>\n      </figure>'),document.querySelectorAll("div.photoSwipe_innerthumbs .photos__photo").forEach((e=>e.classList.add("--nav"))),1===document.querySelectorAll("#photos_slider .photos__photo").length&&document.querySelector("div.photoSwipe_innerthumbs").classList.add("--one");const i=document.querySelectorAll("div.photoSwipe_innerthumbs .photos__link"),n=e.getCurrentIndex();i[n].classList.add("--active");const a=document.querySelector("div.photoSwipe_innerthumbs .photos__link.--active").getBoundingClientRect().top-document.querySelector("div.photoSwipe_innerthumbs").getBoundingClientRect().top+document.querySelector("div.photoSwipe_innerthumbs").scrollTop;document.querySelector("div.photoSwipe_innerthumbs").scroll({top:a,behavior:"smooth"});let s=document.createElement("span");s.classList.add("photoSwipe_name"),s.innerHTML=`${document.querySelector(".product_name__name").innerText}`,document.querySelector(".pswp__top-bar").append(s);const r=()=>{let e=document.createElement("span"),t=document.querySelector(".pswp__counter").innerText;t=t.replaceAll(" ",""),t=t.split("/"),t[0]=`<b>${t[0]}</b>`,e.innerHTML=t.join("/"),document.querySelector(".pswp__counter").innerHTML="",document.querySelector(".pswp__counter").append(e)};r(),4==app_shop.vars.view&&$(".photoSwipe_innerthumbs  .photos__figure").length>4&&$(".photoSwipe_innerthumbs").slick({mobileFirst:!0,dots:!1,arrows:!0,infinite:!1,prevArrow:'<a class="slick-prev" href=""><i class="icon-angle-left"></i></a>',nextArrow:'<a class="slick-next" href=""><i class="icon-angle-right"></i></a>',slidesToShow:5,slidesToScroll:1}),i.forEach((t=>{t.addEventListener("click",(function(){i.forEach((e=>{e.classList.remove("--active")})),this.classList.add("--active"),e.goTo([...i].indexOf(this))}));const n=t.querySelector(".photos__photo.slick-loading");n&&(n.setAttribute("src",n.getAttribute("data-lazy")),n.removeAttribute("data-lazy"),n.classList.remove("slick-loading"))})),e.listen("close",(function(){document.querySelector(".photoSwipe_innerthumbs").parentNode.removeChild(document.querySelector(".photoSwipe_innerthumbs")),document.body.removeChild(document.querySelector(".photoSwipe_overlay")),document.querySelector(".pswp video[src]")&&document.querySelector(".pswp video[src]").pause(),document.querySelector(".pswp .video-iframe")&&youtube&&youtubeRefreshSrc(document.querySelector(".pswp .video-iframe"))})),e.listen("afterChange",(function(){const t=document.querySelectorAll("div.photoSwipe_innerthumbs .photos__link"),i=e.getCurrentIndex();t.forEach((e=>{e.classList.remove("--active")})),t[i].classList.add("--active");const n=document.querySelector("div.photoSwipe_innerthumbs .photos__link.--active").getBoundingClientRect().top-document.querySelector("div.photoSwipe_innerthumbs").getBoundingClientRect().top+document.querySelector("div.photoSwipe_innerthumbs").scrollTop;document.querySelector("div.photoSwipe_innerthumbs").scroll({top:n,behavior:"smooth"});const a=youtube?document.querySelector(".pswp  .video-iframe"):e.currItem.container.querySelector("video[data-src]");if(a)if(youtube)youtubeRefreshSrc(a);else{const e=a.getAttribute("data-src");a.setAttribute("src",e),a.removeAttribute("data-src")}document.querySelector(".pswp video[src]")&&document.querySelector(".pswp video[src]").pause(),r()}))}},app_shop.run((function(){var e=new Blazy({container:"#photos_nav",selector:".b-lazy",loadInvisible:!0});$("#photos_nav").on("afterChange",(function(t,i,n){e.revalidate()}))}),[1,2,3,4],"#projector_photos"),app_shop.run((function(){$(".projector_buy__shopping_list").on("click",(function(e){return app_shop.fn.projectorForm.sizeSelected()?!("function"==typeof app_shop.fn.bundleSizeSelected&&!app_shop.fn.bundleSizeSelected())&&(app_shop.fn.shoppingList.addProductToList([[document.getElementById("projector_product_hidden").value,document.getElementById("projector_size_hidden").value]]),!1):(app_shop.fn.projectorForm.alertProjector(),!1)}))}),"all",".projector_buy__shopping_list",!0),app_shop.run((()=>{let e=document.querySelector("#component_projector_cms"),t=document.querySelector("#projector_form").dataset.cat;if(listOfCategories.length&&e){let i=!1;
28listOfCategories.forEach((e=>{t.includes(`;${e};`)&&(i=!0)})),i&&e.classList.add("show")}}),"all","#projector_form"),app_shop.run((function(){app_shop.fn.projectorForm=new ProjectorForm,app_shop.fn.projectorForm.init()}),"all","#projector_form",!0),app_shop.fn.getExpressCheckoutData=async e=>{if("undefined"!=typeof expressCheckoutApi&&"function"==typeof expressCheckoutApi.initCheckout){const t=new URLSearchParams(new FormData(document.getElementById("projector_form"))),i=(e.target?e.target:e).closest(".projector_oneclick__item").getAttribute("data-id");await expressCheckoutApi.initCheckout(i,t)}},app_shop.fn.checkProjectorData=e=>{if(!app_shop.fn.projectorForm.sizeSelected())return e||app_shop.fn.projectorForm.alertProjector(),!1;if(!app_shop.fn.bundleVersionSelected(e))return!1;if(!app_shop.fn.bundleSizeSelected(e))return!1;const t=document.querySelector("h1.product_name__name"),i=document.querySelector(".projector_oneclick");return document.querySelectorAll(".projector_oneclick__item").forEach((e=>{t&&0===t.textContent.length?(e.classList.remove("--checked"),i&&i.setAttribute("data-hide",!0)):e.classList.add("--checked")})),!0};const expressCheckoutApiClickEvent=e=>!e.target.closest(".projector_oneclick__item").classList.contains("--loading")&&!!app_shop.fn.checkProjectorData();app_shop.run((function(){document.querySelectorAll(".projector_oneclick__item").forEach((e=>{if(e.addEventListener("click",expressCheckoutApiClickEvent),"undefined"!=typeof expressCheckoutApi&&"function"==typeof expressCheckoutApi.renderButton){const t=e.getAttribute("data-id");expressCheckoutApi.renderButton(t,e)}}))}),"all",".projector_oneclick__item",!0),app_shop.run((function(){app_shop.vars.curr_url_projector=location.pathname,$(window).on("popstate",(function(){app_shop.vars.curr_url_projector!==location.pathname&&(window.location.href=window.location.href)}))}),"all","#projector_form");const projectorFormatPrice=e=>format_price(e.price,{mask:app_shop.vars.currency_format,currency:e.currency,currency_space:app_shop.vars.currency_space,currency_before_price:app_shop.vars.currency_before_value});function projectorEndStartCallback(){const e=document.querySelector("#projector_number-pack"),t=document.querySelector("#projector_number");let i,n=document.querySelector("#projector_points_recive_points"),a=document.querySelector("#projector_price_points");e&&(i=parseFloat(e.getAttribute("step")));let s=parseFloat(t.getAttribute("step"));(()=>{let i=parseFloat(t.value)/s;i&&e&&(e.value=i.toFixed(0))})(),a.innerHTML=parseFloat($("#projector_price_points").text()).toFixed(0)+" pkt.",n.innerHTML=parseFloat($("#projector_points_recive_points").text()).toFixed(0)+" pkt.",app_shop.fn.updateYouSave();const{price:r}=projectorObj.currentSizeObj;if(void 0!==r&&$("#projector_rebateNumber").length&&void 0!==r.rebateNumber){$("#projector_form .projector_multipack").addClass("--active").removeClass("--hide");const{rebateNumber:e}=r,t=!!projectorObj.rebateThreshold&&parseFloat(projectorObj.rebateThreshold,10);$(".projector_multipack__item").length>1?$(".projector_multipack__item").each((function(i){$(this).find(".projector_multipack__price").text("net"===app_shop.vars.priceType?e.items[i].price_net_formatted:e.items[i].price_formatted),t&&t===parseFloat($(this).data("value"),10)?$(this).find("input").prop("checked",!0):$(this).find("input").prop("checked",!1)})):($(".projector_multipack__price").text("net"===app_shop.vars.priceType?e.nextprice_net_formatted:e.nextprice_formatted),t&&t===parseFloat($(".projector_multipack__item").data("value"),10)?$(".projector_multipack__item input").prop("checked",!0):$(".projector_multipack__item input").prop("checked",!1))}else $("#projector_rebateNumber").length&&$("#projector_form .projector_multipack").addClass("--hide");"undefined"!=typeof expressCheckoutApi&&"function"==typeof expressCheckoutApi.refreshInitData&&expressCheckoutApi.refreshInitData(),app_shop.fn.checkProjectorData(!0)}function projectorEndInitFunctionCallback(){}app_shop.fn.updateYouSave=()=>{$("#projector_form[data-collection]").length&&1===$("#projector_form[data-collection] .projector_bundle__checkbox:checked").length||"true"==projectorObj.currentSizeObj.phone_price||"undefined"==typeof yousaveTmp||isNaN(yousaveTmp)?$("#projector_price_yousave").hide():($("#projector_price_yousave").show().html(`<span class="projector_prices__percent_before">${projectorObj.txt.oszczedzasz}</span><span class="projector_prices__percent_value">${+yousave_percentTmp<1?yousave_percentTmp:yousave_percentTmp.split(".")[0]}</span><span class="projector_prices__percent_after">${"product_bundle"===product_data.product_type&&+projectorObj.currentSizeObj.bundle_price.percent_diff>0&&+projectorObj.currentSizeObj.bundle_price.amount_diff_gross>
280?document.querySelector(".projector_details[data-collection]")?projectorObj.txt.nawias_end_collection:projectorObj.txt.nawias_end_bundle:projectorObj.txt.nawias_end}</span>`),$("#projector_price_maxprice_wrapper").show())},app_shop.run((function(){$(".projector_smile__link, .smile_basket__link").on("click",(function(){return $(".smile_info").dialog({wrappContent:!0,width:576,wrapperClass:"smile_info__dialog"}),!1}))}),"all",".smile_info",!0),app_shop.run((function(){$(".projector_smile__link, .smile_basket__link").on("click",(function(){return $(".smile_info").dialog({wrappContent:!0,width:576,wrapperClass:"smile_info__dialog"}),!1}))}),"all",".smile_info",!0),app_shop.run((function(){app_shop.fn.productStocks=new ProductStocks({stockLinkSelector:".projector_stocks__info.--link"}),app_shop.fn.productStocks.init()}),"all",".projector_stocks__info.--link",!0),app_shop.run((function(){$(".projector_paypo__link, .paypo_basket__link").on("click",(function(){return $(".paypo_info").dialog({wrappContent:!0,width:576,wrapperClass:"paypo_info__dialog"}),!1}))}),"all",".paypo_info",!0),app_shop.run((function(){$(".projector_instalments__link").on("click",(function(){return $(".projector_instalments").toggleClass("--active"),!1}))}),"all",".projector_instalments__link",!0),app_shop.run((function(){$(".projector_actions__action.--shopping-list").on("click",(function(e){return app_shop.fn.projectorForm.sizeSelected()?!("function"==typeof app_shop.fn.bundleSizeSelected&&!app_shop.fn.bundleSizeSelected())&&(app_shop.fn.shoppingList.addProductToList([[document.getElementById("projector_product_hidden").value,document.getElementById("projector_size_hidden").value]]),!1):(app_shop.fn.projectorForm.alertProjector(),!1)}))}),"all",".projector_actions__action.--shopping-list",!0);var projectorv3_disable_ajax="1";projectorObj=new projectorClass,projectorObj.txt.additional_texts="",projectorObj.txt.za=" za ",projectorObj.txt.taniej="% (",projectorObj.txt.oszczedzasz="(Zniżka ",projectorObj.txt.wzestawie="), kupując w zestawie. ",projectorObj.txt.niedostepny="Produkt niedostępny",projectorObj.txt.tylkotel="Cena na telefon. Skontaktuj się ze sprzedawcą.",projectorObj.txt.tylko_punkty="Produkt dostępny tylko w programie lojalnościowym.",projectorObj.txt.za_malo_punktow="Nie masz wystarczającej ilości punktów",projectorObj.txt.gratis="Wysyłka gratis!",projectorObj.txt.niemastanu="Produkt niedostępny",projectorObj.txt.status_24="24 godz.",projectorObj.txt.status_48="48 godz.",projectorObj.txt.status_natychmiast="Natychmiast",projectorObj.txt.day=" dzień ",projectorObj.txt.days=" dni  ",projectorObj.txt.hour=" godz.",projectorObj.txt.hours=" godz. ",projectorObj.txt.min=" min ",projectorObj.txt.mins=" min. ",projectorObj.txt.proc="%",projectorObj.txt.wybrany_rozmiar="Rozmiar:",projectorObj.txt.wysylka="Wysyłka ",projectorObj.txt.wysylka_za="Wysyłka w ciągu ",projectorObj.txt.shipmentIn="Wysyłka za ",projectorObj.txt.tomorrow=" jutro",projectorObj.txt.dostepny="",projectorObj.txt.dostepny_za=" za ",projectorObj.txt.pkt=" pkt.",projectorObj.txt.status_amount_full="większa ilość",projectorObj.txt.status_amount_null="brak w magazynie",projectorObj.txt.forpointsonly="Produkt możesz kupić za punkty.",projectorObj.txt.disable_desc="Skontaktuj się z nami.",projectorObj.txt.choiceSize="Wybierz rozmiar",projectorObj.txt.maksymalnie="Maksymalnie możesz dodać",projectorObj.txt.minimalnie="Minimalnie musisz zamówić ",projectorObj.txt.brak_magazyn="Brak na magazynie",projectorObj.txt.koszt_od="Koszt od ",projectorObj.txt.wysylka_total_begin="<br/>(z tow. z koszyka ",projectorObj.txt.wysylka_total_end=")",projectorObj.txt.nawias_end_collection="% kupując w kolekcji)",projectorObj.txt.nawias_end_bundle="% kupując w zestawie)",projectorObj.txt.nawias_end="%)",projectorObj.txt.gratis_produkt="Gratis!",projectorObj.txt.virtual_inbasket="Produkt znajduje się już w koszyku",projectorObj.txt.infinity="",projectorObj.txt.ilosc_mm="Aktualnie w naszym magazynie mamy <b>%d</b>.",projectorObj.txt.ilosc_mo="Kolejne <b>%d</b> możemy sprowadzić na zamówienie.",projectorObj.txt.ilosc_mo_inf="Dowolną ilość możemy sprawadzić na zamówienie.",projectorObj.txt.size_select_functionality="0",projectorObj.txt.sizes_projector_functionality="1",projectorObj.txt.size_select_label="Rozmiar:",projectorObj.txt.size_select_tell_availability="Powiadom o dostępności",projectorObj.txt.size_select_last_unit="Ostatnia sztuka!",projectorObj.txt.size_select_few_last_units="Ostatnie sztuki!",projectorObj.txt.order_by="Zamów do ",projectorObj.txt.it_will_ship_today=" to wyślemy dzisiaj";var Projector_txt_maksymalnie="Maksymalnie możesz zamówić: ",Projector_txt_minimalnie=projectorObj.txt.minimalnie,Projector_txt_brak_magazyn="Brak na magazynie",Projector_txt_produkt_niedostepny="Produkt niedostępny",Projector_txt_podajilosc="Podaj ilość dla wybranego rozmiaru",Projector_txt_zalogujsie="Zaloguj",Projector_txt_closedialog="",txt_raty_button1="Oblicz raty wybranego produktu",txt_raty_button2="Oblicz raty wraz z kwotą z koszyka ",txt_62619_cms_table="Tabela rozmiarów",txt_toltip_1="Cena najtańszej z dostępnych form wysyłki z uwzględnieniem twojego koszyka. Pełną listę cen i kurierów otrzymasz podczas składania zamówienia.",txt_toltip_2="Program lojalnościowy dostępny jest tylko dla zalogowanych klientów.",txt_toltip_2a="Możesz zamieniÄ
28‡ zgromadzone punkty lojalnościowe na ten produkt. Obecnie masz [xxx] punktów.",txt_toltip_3="Po opłaceniu zamówienia przyznamy ci taką ilość punktów lojalnościowych. Å»eby zbierać punkty musisz być zarejestrowanym klientem.",txt_toltip_3a="Po opłaceniu zamówienia przyznamy ci taką ilość punktów lojalnościowych.",txt_toltip_4="",prepaid="Płatność przed wysyłką",dvp="Płatność przy odbiorze",day_txt=" dzień ",days_txt=" dni ",hour_txt=" godz. ",hours_txt=" godz. ",min_txt=" min.",txt_24h="24h",txt_do_24h="do 24h",delivery_txt="Sam transport zajmie ",delivery_txt2="Przygotowanie do odbioru osobistego zajmie ",delivery_txt3="Forma dostawy dostępna od ",gratis_txt="Gratis!";app_shop.txt.txt_74629_1="Do końca promocji: ",app_shop.txt.txt_74629_2="Wybierz inną opcję.",app_shop.txt.txt_74629_3="dni",app_shop.txt.txt_74629_4="godzin ",app_shop.txt.txt_74629_5="minut ",app_shop.txt.txt_74629_6="sekund ",app_shop.txt.txt_74629_7="Przepraszamy, ale nie zdefiniowaliśmy standardowego kosztu dostawy, zostanie on ustalony indywidualnie przez naszą obsługę po przyjęciu zamówienia.";var txt_shipping_8=" dzisiaj",txt_shipping_9=" w poniedziałek ",txt_shipping_10=" we wtorek ",txt_shipping_11=" w środę ",txt_shipping_12=" w czwartek ",txt_shipping_13=" w piątek ",txt_shipping_14=" w sobotę ",txt_shipping_15=" w niedzielę ",txt_shipping_16="jutro!";app_shop.txt.txt_74629_8="Proszę wybrać rozmiar",projectorObj.options.friendly_shipping_format=[txt_shipping_8,txt_shipping_9,txt_shipping_10,txt_shipping_11,txt_shipping_12,txt_shipping_13,txt_shipping_14,txt_shipping_15],app_shop.txt.txt_74629_9="Twój produkt jest gotowy do wysyłki",app_shop.txt.txt_74629_10="Twój produkt jest już spakowany i gotowy do odebrania przez kuriera",app_shop.txt.txt_74629_11="Czas przygotowania produktu do wysyłki",app_shop.txt.txt_74629_11a="Gotowy do wysyłki",app_shop.txt.txt_74629_11b="Produkt jest spakowany i możliwy do odebrania przez kuriera",app_shop.txt.txt_74629_12="Jest to czas, w którym produkt jest pakowany i przygotowywany do odebrania przez kuriera",app_shop.txt.txt_74629_13="",app_shop.txt.txt_74629_14="Przygotowanie do odbioru osobistego zajmie do 24h",app_shop.txt.txt_74629_15="Przygotowanie do odbioru osobistego zajmie 24h",app_shop.txt.txt_74629_16="Przygotowanie do odbioru osobistego zajmie ",app_shop.txt.txt_74629_17="Przesyłka będzie u Ciebie dzisiaj! ",app_shop.txt.txt_74629_18="Przesyłka będzie u Ciebie jutro!",app_shop.txt.txt_74629_19="Przesyłka będzie u Ciebie za ",app_shop.txt.txt_74629_16467="Zamknij okno",app_shop.txt.txt_74629_conflict="Wybór tej pozycji 
28spowoduje konieczność dostosowania innych opcji. ",app_shop.txt.txt_sold_out="wyprzedane",app_shop.txt.txt_do_ustalenia="wycena indywidualna",app_shop.txt.txt_dostawa_od_1="Dostawa od: ",app_shop.txt.txt_dostawa_od_2="Koszt dostawy: ",app_shop.txt.txt_dostawa_od_3="Odbiór osobisty: ";var txt_62619_nieprawidlowy_email="Niepoprawny adres email.",txt_62619_przekroczono_liczbe="Przekroczono liczbę dodanych powiadomień w ciągu dnia.",txt_62619_podczas_dodawania="Podczas dodawania produktu wystąpił błąd. Sprawdź poprawność wprowadzonych danych",txt_62619_produkt_dodany="Produkt został poprawnie dodany do powiadomień.",txt_62619_blad_pobrania="Wystąpił problem z połączeniem. Wykonaj czynność ponownie.",txt_62619_bledny_email="Błędnie wpisany e-mail. Wpisz pełny adres e-mail, np. [email protected] ",txt_62619_wpisz_telefon="Wpisz swój telefon. ",fashionGallery_new="";function CountdownTimer(e,t){this.initialize.apply(this,arguments)}app_shop.txt.daysOfWeek=["Dzisiaj","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota","Niedziela"],app_shop.txt.shippingInfoVat="* Cena brutto (z VAT)",app_shop.txt.shippingInfoPrepaid="Na adres",app_shop.txt.shippingInfoDvp="Na adres za pobraniem",app_shop.txt.shippingInfoInPlace="Odbiór w punkcie",app_shop.txt.shippingInfoInPlaceName="Punkty odbioru osobistego",app_shop.txt.shippingInfoHeaderName="Forma dostawy",app_shop.txt.shippingInfoHeaderDelivery="Przewidywana dostawa - ",app_shop.txt.shippingInfoHeaderCost="Koszt",app_shop.txt.shippingInfoTitle="Dostawa",app_shop.txt.shippingInfoWorkWeek="poniedziałek - piątek",app_shop.txt.shippingInfoWorkWeekTime="6.00 - 20:00",app_shop.txt.shippingInfoWeekend1="sobota",app_shop.txt.shippingInfoWeekend1Time="8:00 - 17:00",app_shop.txt.shippingInfoWeekend2="niedziela",app_shop.txt.shippingInfoWeekend2Time="zamknięte",app_shop.txt.shippingInfoMoreInfo="Potrzebujesz więcej informacji? Zadzwoń!",app_shop.txt.shippingInfoToggle="Sprawdź opcje dostawy dla wszystkich produktów z koszyka",CountdownTimer.prototype={initialize:function(e,t){this.elem=e,this.tl=t,this.tid=""},newData:function(e){this.tl=e},countDown:function(){var e="",t=new Date,i=Math.floor((this.tl-t)/864e5),n=Math.floor((this.tl-t)%864e5/36e5),a=Math.floor((this.tl-t)%864e5/6e4)%60,s=Math.floor((this.tl-t)%864e5/1e3)%60%60,r=this;if(!(this.tl-t>0))return clearTimeout(this.tid),void this.elem.remove();e+='<label class="projector_label">'+app_shop.txt.txt_74629_1+"</label><div>",this.addZero(i)>0&&(e+='<span class="number-wrapper"><div class="line"></div><div class="caption">'+app_shop.txt.txt_74629_3+'</div><span class="number day">'+this.addZero(i)+"</span></span>"),e+='<span class="number-wrapper"><div class="line"></div><div class="caption">'+app_shop.txt.txt_74629_4+'</div><span class="number hour">'+this.addZero(n)+"</span></span>",e+='<span class="number-wrapper"><div class="line"></div><div class="caption">'+app_shop.txt.txt_74629_5+'</div><span class="number min">'+this.addZero(a)+'</span></span><span class="number-wrapper"><div class="line"></div><div class="caption">'+app_shop.txt.txt_74629_6+'</div><span class="number sec">'+this.addZero(s)+"</span></span></div>",this.elem.html(e),this.tid=setTimeout((function(){r.countDown()}),1e3)},addZero:function(e){return 1===e.toString().length?`0${e}`.slice(-2):e}},app_shop.graphql.projectorShippingInput=()=>{let e="";if(document.querySelector('#projector_form[data-type="product_bundle"]')){e=`bundleParts: [${[...document.querySelector("#projector_form[data-collection]")?document.querySelectorAll(".projector_bundle__checkbox:checked"):document.querySelectorAll(".projector_bundle__item")].map((e=>`{\n      id: ${e.closest(".projector_bundle__item").querySelector(".projector_bundle__product_id").value}\n      size: "${e.closest(".projector_bundle__item").querySelector(".projector_bundle__product_size")?e.closest(".projector_bundle__item").querySelector(".projector_bundle__product_size").value:e.closest(".projector_bundle__item").querySelector(".projector_bundle__size-select").value}"\n    }`)).join("")}]`}return`ShippingInput: {\n    mode: product\n    products: [{\n      id: ${document.getElementById("projector_product_hidden").value}\n      size: "${"onesize"===document.getElementById("projector_size_hidden").value?"uniw":document.getElementById("projector_size_hidden").value}"\n      quantity: ${document.getElementById("projector_number")?document.getElementById("projector_number").value:product_data.unit_sellby}\n      ${e}\n    }]\n  }`},app_shop.graphql.getShippingTime=async e=>{const t=JSON.stringify({query:`query {\n      shipping(${e}) {\n        shippingTime {\n          shippingTime {\n            time {\n              days\n              hours\n              minutes\n            }\n            weekDay\n            weekAmount\n            today\n          }\n          time\n          unknownTime\n          todayShipmentDeadline\n        }\n      }\n    }`});try{const e=await fetch(app_shop.urls.graphql,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t});return await e.json()}catch(e){return console.error("AJAX fetchDataShippingTime() Error:",e),!1}},app_shop.graphql.getCouriersForModal=async e=>{const t=JSON.stringify({query:`query {\n      shipping(${e}) {\n        shipping {\n          courier {\n            id\n            icon\n            name\n          }\n          prepaid\n          cost {\n            value\n            formatted\n          }\n          deliveryTime {\n            time {\n              days\n              hours\n              minutes\n            }\n            weekDay\n            weekAmount\n            today\n          }\n        }\n      }\n    }`});try{const e=await fetch(app_shop.urls.graphql,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:t});return await e.json()}catch(e){return console.error("GraphQL fetchDataShipping() Error:",e),!1}},ShippingInfo=function(e){const t=this;this.params=e||{},this.couriersDataBuffer=[],this.calculateDate=e=>{const{days:t,hours:i,minutes:n}=e,a=new Date;return void 0!==t&&a.setDate(a.getDate()+parseInt(t,10)),void 0!==i&&a.setHours(a.getHours()+parseInt(i,10)),void 0!==n&&a.setMinutes(a.getMinutes()+parseInt(n,10)),a.toJSON().slice(0,10).split("-").reverse().slice(0,-1).join(".")},this.getCourierHtml=e=>{const i=document.createElement("div");i.classList.add("shipping_info__courier");const n=e.courier.icon,a=e.courier.name,s=e.deliveryTime.today?app_shop.txt.daysOfWeek[0]:app_shop.txt.daysOfWeek[e.deliveryTime.weekDay],r=e.deliveryTime.weekAmount>0?` (${t.calculateDate({days:e.deliveryTime.time.days,hours:e.deliveryTime.time.hours,minutes:e.deliveryTime.time.minutes})})`:"",o=e.cost.formatted;return i.innerHTML=`<div class="shipping_info__item --wrapper"><span class="shipping_info__item --name">${a}</span>\n    <span class="shipping_info__item --delivery">${app_shop.txt.shippingInfoHeaderDelivery}${s}${r}</span></div>\n    <span class="shipping_info__item --icon"><img src="${n}" alt="${a}"/></span>\n    <strong class="shipping_info__item --cost">${o}</strong>`,i},this.create=async()=>
28{const e=md5(this.productParamsFunction()),i=this.couriersDataBuffer.filter((t=>t.key===e));let n={},a={};if(i.length?(console.log(i),n=JSON.parse(i[0].value),a=JSON.parse(i[0].valueBasket)):(n=await this.getCouriersFunction(this.productParamsFunction()),a=await this.getCouriersFunction("ShippingInput: {mode: basket}"),this.couriersDataBuffer.push({key:e,value:JSON.stringify(n),valueBasket:JSON.stringify(a)})),n&&n.data&&n.data.shipping&&n.data.shipping.shipping&&a&&a.data&&a.data.shipping&&a.data.shipping.shipping){const{shipping:e}=n.data.shipping;console.log(e);const i=document.querySelector("#projector_form").dataset.cat.split(";").filter((e=>""!=e)),s=document.getElementById("menu_contact");let r=[{street:"ul. "+s.querySelector(".adress_street").innerText.replace(", ",""),zipcode:s.querySelector(".adress_zipcode").innerText,mail:s.querySelector(".contact_type_mail").innerText,tel:s.querySelector(".contact_type_phone").innerText,pon_pt:app_shop.txt.shippingInfoWorkWeekTime,sob:app_shop.txt.shippingInfoWeekend1Time,nd:app_shop.txt.shippingInfoWeekend2Time}],o=[];if("undefined"!=typeof customAddressArray){let e="";for(el of i)e=customAddressArray.find((e=>e.cat.includes(Number(el))))||"",""==e||o.includes(e.id)||(r.push(e),o.push(e.id))}let l="";r.forEach((e=>l+=`<div class="shiping_info__contact_wrapper">\n          <ul class="shiping_info__contact">\n            <li>${e.street}</li>\n            <li>${e.zipcode}</li>\n            <li><a href="mailto:${e.mail}">email: ${e.mail}</a></li>\n            <li><a href="tel:${e.tel}">tel: ${e.tel}</a></li>\n          </ul>\n          <ul class="shipping_info__contact_days">\n            <li><span>${app_shop.txt.shippingInfoWorkWeek}</span><span>${e.pon_pt}</span></li>\n            <li><span>${app_shop.txt.shippingInfoWeekend1}</span><span>${e.sob}</span></li>\n            <li><span>${app_shop.txt.shippingInfoWeekend2}</span><span>${e.nd}</span></li>\n          </ul>\n          <a href="tel:${e.tel}">${app_shop.txt.shippingInfoMoreInfo} ${e.tel}</a>\n        </div>`)),console.log(r);const c=e.filter((e=>"dvp"===e.prepaid)),p=e.filter((e=>"prepaid"===e.prepaid)).filter((e=>0!=e.courier.id)),d=e.filter((e=>0===e.courier.id)),u=a.data.shipping.shipping,h=u.filter((e=>"dvp"===e.prepaid)),_=u.filter((e=>"prepaid"===e.prepaid)).filter((e=>0!=e.courier.id)),f=u.filter((e=>0===e.courier.id)),m=document.createElement("div");m.classList.add("shipping_info"),m.id="shipping_info",m.innerHTML=`<div class="shipping_info__body">\n      <div class="shipping_info__title shipping_info__block"><i class="icon-truck"></i><span>${app_shop.txt.shippingInfoTitle}</span></div>\n      <div class="shipping_info__toggle shipping_info__block"><span>${app_shop.txt.shippingInfoToggle}</span><label class="switch"><input type="checkbox" />    <div></div>\n  </label></div>\n        ${p.length?`<div class="shipping_info__block --prepaid">\n          <div class="shipping_info__header">\n            <span class="shipping_info__header_item --icon-name">${app_shop.txt.shippingInfoPrepaid}</span>\n            <span class="shipping_info__header_item --cost">${app_shop.txt.shippingInfoHeaderCost}</span>\n          </div>\n          <div class="shipping_info__couriers">\n            ${p.map((e=>t.getCourierHtml(e).outerHTML)).join("")}\n          </div>\n        </div>`:""}\n        ${c.length?`<div class="shipping_info__block --prepaid">\n          <div class="shipping_info__header">\n            <span class="shipping_info__header_item --icon-name">${app_shop.txt.shippingInfoDvp}</span>\n            <span class="shipping_info__header_item --cost">${app_shop.txt.shippingInfoHeaderCost}</span>\n          </div>\n          <div class="shipping_info__couriers">\n            ${c.map((e=>t.getCourierHtml(e).outerHTML)).join("")}\n          </div>\n        </div>`:""}\n       ${d.length?`<div class="shipping_info__block --prepaid">\n          <div class="shipping_info__header">\n            <span class="shipping_info__header_item --icon-name">${app_shop.txt.shippingInfoInPlace}</span>\n          </div>\n          <div class="shipping_info__couriers">\n            ${d.map((e=>t.getCourierHtml(e).outerHTML)).join("")}\n          </div>\n        </div>`:""}\n      \n       ${_.length?`<div class="shipping_info__block --prepaid --basket">\n        <div class="shipping_info__header">
28\n          <span class="shipping_info__header_item --icon-name">${app_shop.txt.shippingInfoPrepaid}</span>\n          <span class="shipping_info__header_item --cost">${app_shop.txt.shippingInfoHeaderCost}</span>\n        </div>\n        <div class="shipping_info__couriers">\n          ${_.map((e=>t.getCourierHtml(e).outerHTML)).join("")}\n        </div>\n      </div>`:""}\n      ${h.length?`<div class="shipping_info__block --prepaid --basket">\n        <div class="shipping_info__header">\n          <span class="shipping_info__header_item --icon-name">${app_shop.txt.shippingInfoDvp}</span>\n          <span class="shipping_info__header_item --cost">${app_shop.txt.shippingInfoHeaderCost}</span>\n        </div>\n        <div class="shipping_info__couriers">\n          ${h.map((e=>t.getCourierHtml(e).outerHTML)).join("")}\n        </div>\n      </div>`:""}\n     ${f.length?`<div class="shipping_info__block --prepaid --basket">\n        <div class="shipping_info__header">\n          <span class="shipping_info__header_item --icon-name">${app_shop.txt.shippingInfoInPlace}</span>\n        </div>\n        <div class="shipping_info__couriers">\n          ${f.map((e=>t.getCourierHtml(e).outerHTML)).join("")}\n        </div>\n      </div>\n      </div>`:""}\n      <div class="shipping_info__footer">\n        <span class="shipping_info__vat">${app_shop.txt.shippingInfoVat}</span>\n      </div>\n      <div class="shipping_info__footer_bottom">\n        <div class="shipping_info__header">\n          <span class="shipping_info__header_item --icon-name">${app_shop.txt.shippingInfoInPlaceName}</span>\n        </div>\n        ${l}\n      </div>\n     </div>\n      `,this.onlyHtml?this.onlyHtml(m):Modal({element:m,classList:"--shipping-info --large --mobile",afterShow:this.afterShowModal})}else{const e=`<div class="menu_messages_message"><div class="menu_messages_message_sub"><p>${app_shop.txt.txt_74629_7}</p></div></div>`;this.onlyHtml?this.onlyHtml(e):Modal({html:e,classList:"--shipping-info",afterShow:this.afterShowModal})}},this.init=()=>{const{getCouriersFunction:e,productParamsFunction:t,afterShowModal:i,onlyHtml:n}=this.params;this.getCouriersFunction=e||!1,this.productParamsFunction=t||!1,this.afterShowModal=i||!1,this.onlyHtml=n||!1,this.create()}},app_shop.run((function(){$(".configurator:not(.--skeleton)").insertBefore($(".configurator.--skeleton")),$(".configurator.--skeleton").remove(),app_shop.fn.configurator=new Configurator,app_shop.fn.configurator.init();const e=projectorEndStartCallback;projectorEndStartCallback=function(){e(),app_shop.fn.configurator.setPrice(!0)},projectorInitObject={endStartFunction:projectorEndStartCallback},projectorObj.projectorInit(projectorInitObject)}),"all",".configurator",!0),app_shop.run((function(){$(".questions__question").on("click",(function(){return $(this).parent().toggleClass("--active"),!1})),$(".questions__button").on("click",(function(e){return e.stopPropagation(),Modal({element:$(".askforproduct"),classList:"--askforproduct"}),!1})),document.querySelector("#askforproduct__phone_input").addEventListener("input",(function(){const e=document.querySelector(".phone_feedback");this.value=this.value.replace(/\D/g,""),this.value.length>9&&(this.value=this.value.slice(0,9)),e.style.display=9===this.value.length?"none":"block"}))}),"all","#product_questions_list",!0),app_shop.run((function(){$("#askforproduct__email_input, #askforproduct__question_input").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle);const e=$(this);app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(e)}),500)})),$(".askforproduct__button").on("click",(function(e){return app_shop.formControl.checkForm($(this).parents(".askforproduct__form"))})),$(".askforproduct__form").on("submit",(function(e){if(e.preventDefault(),9===document.querySelector("#askforproduct__phone_input").value.length){const e=document.querySelector("#askforproduct__phone_input"),t=(e.value,document.querySelector("#askforproduct__question_input"));t.value=`Telefon: ${e.value}#\n${t.value}`,this.submit()}else Alertek.show_alert("Numer musi zawierać 9 cyfr")}))}),"all",".askforproduct",!0),app_shop.run((function(){$(".opinions__more_txt").on("click",(function(e){return e.preventDefault(),$('#opinions_section .opinions_list [data-hide="true"]').attr("data-hide",!1),$(".opinions__more").hide(),!1}))}),"all",".opinions__more",!0),app_shop.run((function(){$("#opinions_section .opinions_element_photo a").on("click",(function(e){e.preventDefault(),e.stopPropagation();const t=$(this),i=t.attr("href"),n=t.find("img").attr("title"),a=new Image;return a.src=i,a.onload=function(){Modal({html:`<div id="ui-dialogimg"><img alt="${n}" src="${i}" /></div>`})},!1}))}),"all","#opinions_section .opinions_element_photo",!0),app_shop.vars.opinions_empty_input
28="Proszę wypełnić to pole.",app_shop.vars.opinions_not_email="Podano niepoprawny adres email.",app_shop.fn.validateEmail=function(e){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},app_shop.fn.opinionsValidate=function(e){var t=e.find("input[required]");return $.each(t,(function(e,t){$(t).parent().removeClass("has-error").find(".validate_message").remove(),$(t).val()?"email"!==$(t).prop("type")||app_shop.fn.validateEmail($(t).val())||$(t).parent().addClass("has-error").append('<span class="help-block validate_message text-danger">'+app_shop.vars.opinions_not_email+"</span>"):$(t).parent().addClass("has-error").append('<span class="help-block validate_message text-danger">'+app_shop.vars.opinions_empty_input+"</span>")})),!e.find(".has-error").length},app_shop.run((function(){$(".projector_bundle:not(.--skeleton)").insertBefore($(".projector_bundle.--skeleton")),$(".projector_bundle.--skeleton").remove(),app_shop.fn.projectorBundle=new ProjectorBundle({beforeSliderCallback:e=>{e.each((function(){$(this).find(".projector_bundle__name").setHeight($(this))}))},afterSliderCallback:e=>{$(".projector_bundle__label").append(e.find(".projector_bundle__arrow"))}}),app_shop.fn.projectorBundle.init()}),"all",".projector_bundle",!0),app_shop.run((function(){1===app_shop.vars.view?app_shop.fn.projectorBundle.initSlider():app_shop.fn.projectorBundle.destroySlider()}),[1,2,3,4],".projector_bundle",!0),app_shop.run((function(){document.querySelector(".traits__all").addEventListener("click",(function(e){return e.preventDefault(),document.querySelector(".traits").classList.add("--show"),!1}))}),"all",".traits__all",!0),app_shop.run((function(){$(".enclosures__name.--audio, .enclosures__name.--video").on("click",(function(){let e;return e=$(this).hasClass("--audio")?`<audio src="${$(this).attr("href")}" controls autoplay></audio>`:`<video width="100%" height="478" src="${$(this).attr("href")}" controls autoplay></video>`,$("body").dialog({content:e,fixed:!1,fitToWindow:!1,wrapperClass:"enclosures__dialog"}),!1})),"function"==typeof ProjectorPhotoSwipe&&($(".enclosures__name.--image").on("click",(function(e){e.preventDefault();const t=parseInt($(this).data("index"),10);return app_shop.vars.projectorEnclosuresPhotoSwipe.init(t),!1})),$(".enclosures__name.--image").each((function(e){$(this).attr("data-index",e)})),app_shop.vars.projectorEnclosuresPhotoSwipe=new ProjectorPhotoSwipe({selector:".enclosures__name.--image",pswp:".pswp"}))}),"all","#projector_enclosures",!0);var txt_1_69363="Wybierz najwygodniejszy dla ciebie sposób wysyłki zwrotu";$(document).on("click",".step3d #return_go_next",(function(){if($(".step3d .order1_delitem_radio input").size()&&!$(".step3d .order1_delitem_radio input:checked").size())return Alertek.show_alert(txt_1_69363),!1})),$(document).on("click",".step3d div.return_delitem",(function(){$(".step3d div.return_delitem.active").removeClass("active"),$(this).addClass("active").find("input.order1_delitem_radio").prop("checked",!0)}));var txt_1_69372="Wybierz sposób zwrotu produktów",txt_1_69372_param="Wybierz parametr sposobu zwrotu produktów",txt_1_69372_tak="Potwierdzam",txt_1_69372_confirm_header="Czy potwierdzasz ...?",txt_1_fill_phone="Aby wybrać tę metodę zwrotu musisz uzupełnić numer telefonu w ustawieniach swojego konta";$(document).on("click","div.return_type.disabled_inpost",(function(){Alertek.show_alert(txt_1_fill_phone)})),$(document).on("click","div.return_type.choose_return_type:not(.disabled_inpost)",(function(){var e=$
28(this).find("input.return_type").val();$(this).addClass("current_method"),$(".return_type.choose_return_type.active").removeClass("active"),$(this).addClass("active").find("input.return_type").prop("checked",!0),$(".return_type.choose_return_type:not(.current_method) .return_methods_param > input, div.return_delitem_items:not(#delitem_item"+e+") .return_methods_param > input").prop("checked",!1),$("div.return_delivery_form, div.return_delitem_items").hide(),$("#delitem_item"+e).size()&&($("div.return_delivery_form, #delitem_item"+e).show(),$("#delitem_item"+e).find("div.return_delitem:first").click()),$(this).removeClass("current_method")})),$(document).on("click",".step3 #return_go_next",(function(e){if($(".step3 div.return_type input").size()){if(!$(".step3 div.return_type input:checked").size())return e.preventDefault(),Alertek.show_alert(txt_1_69372),!1;if($(".active .return_methods_param > input").length&&!$(".active .return_methods_param > input:checked").length)return e.preventDefault(),Alertek.show_alert(txt_1_69372_param),!1;$("div.progress_bar_wrapper").removeClass("pb_step3").addClass("pb_step4")}})),$(document).on("change",".return_methods_param > input",(function(){if($(this).parents().hasClass("disabled_inpost"))return $(this).prop("checked",!1),!1;$(this).prop("checked")&&$(this).parent().find(".return_confirmation_message").length&&confirmReturnParam($(this).parent())})),$(document).on("click",".step3 div.return_delitem",(function(){$(".step3 div.return_delitem.active").removeClass("active"),$(this).addClass("active").find("input.order1_delitem_radio").prop("checked",!0),$(".step3 div.return_delitem:not(.active) .return_methods_param > input").prop("checked",!1)}));var remove_param=!0;function confirmReturnParam(e){$("#ui-dialog").remove(),dialogHTML="",dialogHTML+='<div id="menu_notice" class="--rma"><strong>'+e.find(".return_confirmation_message").html()+"</strong></div>",$('<div id="ui-dialog">'+dialogHTML+"</div>").appendTo("body"),$("<h2>"+txt_1_69372_confirm_header+"</h2>").prependTo("#menu_notice"),$("#ui-dialog").dialog({wrappContent:!0,fixed:!1,fitToWindow:!1,beforeShow:function(){$('<div id="ui-dialog_button"><button onclick="remove_param = false;$(\'#dialog_close\').click();">'+txt_1_69372_tak+"</button></div>").appendTo("#dialog_wrapper")},afterCloseFn:function(){remove_param&&unsetMethodParam(),remove_param=!0}})}function unsetMethodParam(){$(".active .return_methods_param > input").prop("checked",!1)}app_shop.run((function(){$(".return_type.active").click()}),"all",".return_type"),app_shop.run((function(){$("#returns_open__number_input, #returns_open__email_input").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle);const e=$(this);app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(e)}),500)})),$(".returns_open__button").on("click",(function(){return app_shop.formControl.checkForm($(this).parents(".returns_open__form"))}))}),"all",".returns_open");var txt_1_69260_1="Wybierz produkty do zwrotu",txt_1_odznacz_w_p="Odznacz wszystkie produkty ",txt_1_zaznacz_w_p="Zaznacz wszystkie produkty",txt_1_max_ret_amount="Maksymalnie możesz zwrócić ",txt_1_new_button="true";app_shop.run((function(){goNext=function(){var e=!1;return $(".productslist_item").each((function(){$(this).find(".productslist_product_action input:checked").size()&&0!=$(this).find('.productslist_product_quantity input[type="text"]').val()&&(e=!0)})),e},Basketedit.getValues=function(e){var t=e.parent(),i=t.find("input[name=data_amount]").val(),n=t.find("input[name=data_unit_sellby]").val(),a=t.find("input[name=data_unit]").val();return{precision:t.find("input[name=data_unit_precision]").val(),unit_sellby:n,unit:a,amount:i}},Basketedit.number_check=function(e,t){var i=e,n=Basketedit.getValues(e);t=t||!0;if(""==n.unit_sellby)var a=1;else a=n.unit_sellby;var s=n.unit,r=n.precision,o=n.amount,l=i.val();l=(l=parseFloat(l)).toFixed(6),l=parseFloat(l);var c=i.parents(".productslist_item").find(".productslist_product_action input");if(t&&(l>0?c.prop("checked",!0):c.prop("checked",!1)),l<=0)return i.val(0),!0;if(i.val(p),"1"==a)Math.round(l)>parseInt(o)&&isFinite(o)&&"-1"!=o?(Alertek.show_alert(txt_1_max_ret_amount+" "+o+" "+s),i.val(o)):i.val(Basketedit.roundNumber(Basketedit.if_isanumber(l,a),r));else if(r=parseInt(r),l>=parseInt(o)&&isFinite(o)&&"-1"!=o)Alertek.show_alert(txt_1_max_ret_amount+Basketedit.roundNumber(Math.floor(o/a)*a,r)+" "+s),i.val(Basketedit.roundNumber(Math.floor(o/a)*a,r));else{var p,d=Math.abs(Math.floor((l/a).toFixed(6)));p=d?parseFloat((d*a).toFixed(6))==l?(d*a).toFixed(r):d*a<l?((d+1)*a).toFixed(r):Math.abs((Math.ceil(l)*a).toFixed(r)):a,i.val(p)}},$(document).on("click",".productslist_product_action input",(function(){var e=$
28(this).parents(".productslist_item").find('.productslist_product_quantity input[type="text"]');if($(this).is(":checked")){var t=e.nextAll('input[name="data_unit_sellby"]').val();e.val(t),Basketedit.number_check(e,!1)}else e.val(0)})),$(".productslist_product_action input").not(":checked").size()?($(".step2 .select_all").html(txt_1_zaznacz_w_p),""!==txt_1_new_button&&$(".step2 .select_all").removeClass("icon-minus").addClass("icon-plus")):($(".step2 .select_all").html(txt_1_odznacz_w_p),""!==txt_1_new_button&&$(".step2 .select_all").removeClass("icon-plus").addClass("icon-minus")),$(document).on("click",".step2 .select_all",(function(){return $(".productslist_product_action input").not(":checked").size()?($(".productslist_product_action input").prop("checked",!0),$(".step2 .select_all").html(txt_1_odznacz_w_p),""!==txt_1_new_button&&$(".step2 .select_all").removeClass("icon-plus").addClass("icon-minus")):($(".productslist_product_action input").prop("checked",!1),$(".step2 .select_all").html(txt_1_zaznacz_w_p),""!==txt_1_new_button&&$(".step2 .select_all").removeClass("icon-minus").addClass("icon-plus")),$(".productslist_product_action input").each((function(){var e=$
28(this).parents(".productslist_item").find('.productslist_product_quantity input[type="text"]');if($(this).is(":checked")){var t=e.nextAll('input[name="data_unit_sellby"]').val();e.val(t),Basketedit.number_check(e,!1)}else e.val(0)})),!1})),$(document).on("click",".step2 #return_go_next",(function(){if(!goNext())return $(".rma_products_page").length?Alertek.show_alert(txt_1_69260):Alertek.show_alert(txt_1_69260_1),!1;$("div.progress_bar_wrapper").removeClass("pb_step2").addClass("pb_step3")})),$(".productslist_comment a.addMoreFiles").unbind().on("click",(function(){var e=$(this).parents(".prodl_comment_right").find("div.prodl_comment_foto").last();return e.after(e.clone()),e.next().find("input").val(""),!1}))}),"all",".returns_productslist");var txt_1_69378="Wybierz formę zwrotu należności",validationTextErrors=[];validationTextErrors.invalid_bank_acccount="Wprowadzony numer konta bankowego jest nieprawidłowy.",app_shop.run((function(){$('.step5 [data-validation="bank_account"]').keyup()}),"all",'.step5 [data-validation="bank_account"]');var txt_1_69376="Wybierz adres punktu zwrotu";function init_rma_calendar(){$("#rma_add_form_begin_ymd").datepicker({dateFormat:iaical_dateFormat,dayNamesMin:iaical_daysShort,monthNames:iaical_monthNames,onSelect:rma_add.setTime,firstDay:iaical_firstDay})}$(document).on("click",".step4a div.pickupl_return",(function(){$(".step4a div.pickupl_return").removeClass("active"),$(this).addClass("active").find("input").prop("checked",!0)})),app_shop.run((function(){$(document).on("click",".step4a #return_go_next",(function(){if(!$(".step4a div.pickupl_return input:checked").size())return Alertek.show_alert(txt_1_69376),!1;$("div.progress_bar_wrapper").removeClass("pb_step4").addClass("pb_step5")}))}),"all",".pickup_return_list_form .pickupl_return");var rma_add_alert="Wypełnij wszystkie pola formularza.",rma_add_msg1="Podaj nazwę produktu",rma_add_msg2="Podaj numer seryjny produktu",rma_add_msg3="Podaj datę zakupu produktu",rma_add_msg4="Opisz usterkę",rma_add_msg5="Opisz miejsce zakupu produktu",rma_add_msg6="Podaj adres, na który chcesz otrzymać zwrot pieniędzy",rma_add_msg7="Podaj numer konta bankowego",rma_add_msg8="Podaj dane do czeku";if(void 0===typeof rma_add_paymentTrigger)var rma_add_paymentTrigger=1;app_shop.run((function(){$("#rma_add_form").find("input, textarea").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$("a#rma_add_form_submit").on("click",(function(){return 1==app_shop.formControl.checkForm($(this).parents("form"))&&$("form#rma_add_form").submit(),!1}))}),"all","#rma_add_form"),app_shop.run((function(){app_shop.vars.rma_action&&init_rma_calendar()}),"all",".rma_add_form_outline");var rma_add={placeTrigger:0,setPlace:function(e){$(".rma_add_form_boxsub_hidden").css("display","none"),$("#"+e).css("display","block"),rma_add.placeTrigger="rma_add_form_buyplace_other"==e?1:0},setPayment:function(e){switch($(".rma_add_form_boxsub2_hidden").css("display","none"),$("#"+e).css("display","block"),e){case"rma_add_form_payp":rma_add_paymentTrigger=1;break;case"rma_add_form_payb":rma_add_paymentTrigger=2;break;case"rma_add_form_payc":rma_add_paymentTrigger=3;break;case"rma_add_form_payt":rma_add_paymentTrigger=4}rma_add.checkInps()},hideInfoText:function(e,t){},showInfo:function(e,t,i){t?(document.getElementById(e+"_off").style.display="",document.getElementById(e+"_on").style.display="none",i?(document.getElementById(e+"_help").style.display="block",document.getElementById(e+"_help").firstChild.innerHTML=i,rma_add.hideInfoText(e,5)):document.getElementById(e+"_help").style.display="none"):(document.getElementById(e+"_off").style.display="none",document.getElementById(e+"_on").style.display="",document.getElementById(e+"_help").style.display="none")},checkInps:function(e){},setTime:function(e,t){var i=$("#rma_add_form_begin_ymd").datepicker("getDate");$("#rma_add_form_beginy").val(i.getFullYear()),$("#rma_add_form_beginm").val(i.getMonth()+1),$("#rma_add_form_begind").val(i.getDate()),app_shop.formControl.validate($("#rma_add_form_begin_ymd"))},chooseSite:function(e){var t=e.slice(5);$(".rma_add_form_stock").removeClass("rmaf_selected"),$("#"+e).addClass("rmaf_selected"),$("#rma_stock").val(t)}},form_validation_error="",prefered_form_complain="Preferowana forma reklamacji";const fetchRMAMessages=async()=>{document.querySelector(".rma_questions").classList.add("load-content");try{await fetch(window.location.href).then((e=>e.text())).then((e=>{var t=(new DOMParser).parseFromString(e,"text/html");document.querySelector(".rma_questions").innerHTML=t.querySelector(".rma_questions").innerHTML,document.querySelector(".rma_questions").classList.remove("load-content"),$("a.rma_attach_file").on("click",(function(){$(this).closest("form").find("div.rma_af_files").show(),$(this).hide()})),document.querySelector(".rma_af_addMoreAttachments").addEventListener("click",(e=>{const t=document.querySelector(".rma_af_foto input").cloneNode(!0);console.log(t),t.value="",document.querySelector(".rma_af_foto").insertAdjacentElement("beforeend",t)}))}))}catch(e){throw new Error(e)}},sendComplaintMethod=async()=>
28{if(null!==localStorage.getItem("complaint_method")){const e=new FormData;e.append("comment",`${prefered_form_complain}: ${localStorage.getItem("complaint_method")}`);try{await fetch(`${window.location.href}&message=rma`,{method:"POST",body:e}),fetchRMAMessages(),localStorage.removeItem("complaint_method")}catch(e){throw new Error(e)}}};app_shop.run((function(){$(".rma_af_input").find("input, textarea").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$(".rma_af_buttons > button").on("click",(function(){return app_shop.formControl.checkForm($(this).parents("form"))}))}),"all",".rma_added_files"),app_shop.run((function(){sendComplaintMethod(),document.querySelector(".rma_af_addMoreAttachments").addEventListener("click",(e=>{const t=document.querySelector(".rma_af_foto input").cloneNode(!0);console.log(t),t.value="",document.querySelector(".rma_af_foto").insertAdjacentElement("beforeend",t)}))}),"all",".rma_orderdetails_info"),$(document).on("click",".step2 .saveQuantity",(function(){return $(".productslist_product_action input").prop("checked",!0),!1})),$(document).on("click",".step1 a.orders_more",(function(){return $(".step1").hide(),$(".step2").show(),!1})),$(document).on("click",".step2 input.return_product",(function(){$(".step2 textarea.return_comment").toggle()})),$(document).on("click",".step5a div.return_form",(function(){$(".step5a div.return_form").removeClass("active"),$(this).addClass("active").find("input").prop("checked",!0),$(this).is("#disable_button")&&$("#disable_button input.return_form").val().length<3&&$("#return_go_next").prop("disabled","disabled").css("opacity","0.6")})),$(document).on("click","label.return_type",(function(){$("label.return_type.active").removeClass("active"),$(this).addClass("active")})),$((function(){$("td.rma-remarks").each((function(){$(this).attr("colspan",$(".orders.table-stroke thead th").size()-1)})),$("a.rma_attach_file").on("click",(function(){$(this).closest("form").find("div.rma_af_files").show(),$(this).hide()})),$("#disable_button input.return_form").keyup((function(){$("#disable_button input.return_form").val().length<3?$("#return_go_next").prop("disabled","disabled").css("opacity","0.6"):$("#return_go_next").prop("disabled",!1).css("opacity","1")}))}));var rmaHideSpeed=200,rmaLessInfo="",rma_cancel_alert="",rma_list={rmaMoreInfo:$("rma_list_item1").eq(0).children(".rma_list_item_operation").html(),choosePanel:function(e,t){$("#"+e)&&($("#"+e).siblings().removeClass("rma_on"),$("#"+e).addClass("rma_on")),$("#"+t)&&($("#"+t).siblings().hide(),$("#"+t).show())},chooseRma:function(e){$("#rmal_"+e)&&($("#rmal_"+e).toggleClass("rma_itema"),$("#rmal_"+e).children(".rma_list_item_operation").toggleClass("ophidden"),"none"==$("#rmal_"+e).next().css("display")?$("#rmal_"+e).next().slideDown(rmaHideSpeed):$("#rmal_"+e).next().slideUp(rmaHideSpeed))},cancelRma:function(e){if(1!=confirm(rma_cancel_alert))return!1;window.location=e}};app_shop.run((function(){rma_list.chooseRma(app_shop.vars.chooseRma)}),"all",".rma_list_data_outline"),app_shop.run((function(){$("#rma_open__number_input, #rma_open__email_input").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle);const e=$(this);app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(e)}),500)})),$(".rma_open__button").on("click",(function(){return app_shop.formControl.checkForm($(this).parents(".rma_open__form"))}))}),"all",".rma_open"),$((function(){$("div.prodl_comment_right ol a.previewFile").each((function(){var e=$
28(this).text();e.length>=26&&(e.indexOf(".")>0?$(this).text(e.substring(0,26<e.lastIndexOf(".")?20:e.indexOf(".")-6)+"[...]."+e.split(".").pop()):$(this).text(e.substring(0,26)))})),$(document).on("click",'a.previewFile[href="#previewFile"]',(function(e){e.preventDefault();var t=$(this).attr("rel");$("#ui-dialog").remove(),fotoHTML='<img id="ui-dialogimg_rma" alt="'+t+'" src="'+t+'">',$('<div id="ui-dialog">'+fotoHTML+"</div>").appendTo("body");var i=!1;function n(){i||(i=!0,$("#ui-dialog").dialog({wrappContent:!0,fixed:!1,width:$("#ui-dialogimg_rma").width()>0&&$("#ui-dialogimg_rma").width(),fitToWindow:!1,wrapperClass:"previewfile_dialog"}))}var a=document.getElementById("ui-dialogimg_rma");return a.onload=n,a.src=t,a.style.display="inline",a.complete&&n(),!1})),$(".rma_products_page a.choose_prod, .rma_products_page .allowReturn_2 a").click((function(){orderdetails_payments.ajaxLoadSite(1),orderdetails_payments.ajaxLoadSiteMessage("");var e=$(this).closest("td").find("a.addQuantity"),t=parseFloat(Basketedit.getValues(e.parent().find("input[type=text]")).unit_sellby);if(0==e.parent().find("input[type=text]").val()){var i=t;e.parent().find("input[type=text]").val(i).change()}return $(this).closest("form").submit(),!1}))}));var txt_1_69260="Wybierz produkty do reklamacji";productslist_03a_txt="Uwagi mogą mieć maksymalnie ",productslist_03b_txt=" znaków. ",productslist_maxvalue_04_txt="255";var Basketedit={getValues:function(e){var t=e.attr("data-amount"),i=e.attr("data-unit_sellby"),n=e.attr("data-unit");return{precision:e.attr("data-unit_precision"),unit_sellby:i,unit:n,amount:t,max_q:e.attr("data-max_q"),max_s:e.attr("data-max_s"),min_q:e.attr("data-min_q"),min_s:e.attr("data-min_s")}},roundNumber:function(e,t){return num=parseFloat(e),result=Math.abs(num.toFixed(t)),result},if_isanumber:function(e,t){return isNaN(e)?1:1==t?e:t},sellby_recount:function(e,t,i){return"up"==i?e*t:Math.round(i/t)*t},number_check:function(e){console.log("test");var t=e,i=Basketedit.getValues(e),n=parseFloat(i.unit_sellby),a=parseFloat(i.precision),s=parseFloat(i.amount),r=i.unit;console.log(o);var o=parseFloat(t.val());if(o<0)return t.val(0),!1;if(0===(o=parseFloat(o)))return t.val(0),!1;var l=parseFloat(i.max_q),c=parseFloat(i.max_s),p=parseFloat(i.min_q),d=parseFloat(i.min_s);if(!$.isNumeric(o)||o<=n){if(isNaN(l)&&isNaN(c)&&isNaN(p)&&isNaN(d))return t.val(n.toFixed(a)),!0;n=n.toFixed(a)}number=Math.floor(o/n)*n,number=(o/n*n-number).toFixed(a+1)>0?(1*number+n).toFixed(a):number.toFixed(a),number=parseFloat(number);var u=s,h=n,_=-1;if(!isNaN(l)){_=(_=l-(_=$.map($("."+t.attr("class")),(function(e){return parseFloat($(e).val())})).reduce((function(e,t){return e+t}))))<0?"end":_;var f=$("."+t.attr("class")).not(t);f.size()&&l-$.map(f,(function(e){return parseFloat($(e).val())})).reduce((function(e,t){return e+t})),u=u>l?l:u}return isNaN(c)||(u=u>c?c:u),isNaN(p)||(h=p>h?p:h),isNaN(d)||(h=d>h?d:h),-1!=u&&(h=u>h?h:n),h&&number<h?(Alertek.show_alert(Projector_txt_minimalnie+" "+Math.ceil(parseFloat(h)/n)*n+" "+r),t.val(Math.ceil(parseFloat(h)/n)*n),!0):"end"==_?(Alertek.show_alert(Projector_txt_maksymalnie+" "+Math.floor(parseFloat(l)/n)*n+" "+r),t.val(Math.floor(parseFloat(l)/n)*n),!0):number>u&&-1!=u?(Alertek.show_alert(Projector_txt_maksymalnie+" "+Math.floor(parseFloat(u)/n)*n+" "+r),t.val(Math.floor(parseFloat(u)/n)*n),!0):(t.val(number),!0)}},basketedit_productslist_init=function(){$("#basketedit_productslist .productslist_product_quantity input[type=text]").each((function(){var e=$
28(this).parent().find(".delQuantity");$(this).val()==parseFloat($(this).attr("data-min_q"))?e.addClass("disabled"):e.removeClass("disabled")})),$("#basketedit_productslist textarea").blur((function(){var e=$(this).val().length,t=productslist_maxvalue_04_txt;e>t&&($(this).val($(this).val().substring(0,t)),Alertek.show_alert(productslist_03a_txt+t+productslist_03b_txt))})),$("#basketedit_productslist .productslist_product_quantity input[type=text]").change((function(){Basketedit.number_check($(this));var e=$(this).parent().find(".delQuantity");$(this).val()==parseFloat($(this).attr("data-min_q"))?e.addClass("disabled"):e.removeClass("disabled")})),$(".productslist_quantity > input").on("click",(function(){if(1===app_shop.vars.view)return $(this).parent().parent().parent().parent().next().show(),$(this).parent().parent().parent().siblings(".productslist_product_toggler").children("a").addClass("open"),!1})),$(".productslist_quantity > input").on("input",(function(){1===app_shop.vars.view&&$(this).parent().parent().parent().parent().next().find("button.product_calculate").show()})),$(".productslist_quantity > input").on("change",(function(){1===app_shop.vars.view&&$(this).parent().parent().parent().parent().next().find("button.product_calculate").show()})),$(".basketedit_productslist a").click((function(){switch($(this).attr("href")){case"#addComment":var e;return $(this).parents(".rma__row").next().next().find("div.prodl_comment").length?e=$(this).parents(".rma__row").next().next():$(this).parents(".rma__row").next().find("div.prodl_comment").length&&(e=$(this).parents(".rma__row").next()),e.find("div.prodl_comment").toggle(),e.find("div.prodl_comment_top").toggle(),!1;case"#clearComment":return $(this).prevAll("textarea").val(""),!1;case"#addQuantity":var t=parseFloat(Basketedit.getValues($(this).parent().find("input[type=text]")).unit_sellby),i=parseFloat($(this).parent().find("input[type=text]").val())+t;return $(this).parent().find("input[type=text]").val(i).change(),!1;case"#delQuantity":t=parseFloat(Basketedit.getValues($(this).parent().find("input[type=text]")).unit_sellby);return(i=parseFloat($(this).parent().find("input[type=text]").val())-t)<0&&(i=0),$(this).parent().find("input[type=text]").val(i).change(),!1}}))};app_shop.run((function(){basketedit_productslist_init()}),"all",".basketedit_productslist");var txt_1_69378="Wybierz formę zwrotu należności",validationTextErrors=[];validationTextErrors.invalid_bank_acccount="Wprowadzony numer konta bankowego jest nieprawidłowy.",app_shop.run((function(){$(".return_form").find("input, textarea").on("input",(function(){clearTimeout(app_shop.formControl.timeHandle),obj=$(this),app_shop.formControl.timeHandle=setTimeout((function(){app_shop.formControl.validate(obj)}),500)})),$(".step5 #return_go_next").on("click",(function(){if(!$(".return_form.form-control.validate").parent().is(".has-success")&&$(".return_form.form-control.validate").parents(".return_form").is(".active"))return app_shop.formControl.checkForm($(this).parents("form")),!1;$("div.progress_bar_wrapper").removeClass("pb_step5").addClass("pb_step6")}))}),"all",".return_form"),handleTim="",$(document).on("click",".step5 div.return_form",(function(){$(".step5 div.return_form").removeClass("active"),$(this).addClass("active").find("input").prop("checked",!0)})),app_shop.run((function(){$(document).on("click","a.show_description",(function(){return $(this).parent().addClass("expanded"),!1})),$(document).on("click","a.hide_description",(function(){return $(this).prev().removeClass("expanded"),!1}))}),"all",".search_description"),app_shop.run((function(){app_shop.fn.categoryDivider(".search_description.--top .search_description__wrapper")}),"all",".search_description",!0),app_shop.vars.show_description="Czytaj więcej",app_shop.vars.hide_description="Zwiń",app_shop.fn.categoryDivider=function(e){var t=e||".search_categoriesdescription_sub",i=$(t).children(),n=void 0!==app_shop.vars.categorySize?app_shop.vars.categorySize:512;return i.length>1&&!$(t).parent().find(".search_categoriesdescription_next").length&&0!==n&&($.each(i,(function(e,i){var a=-1*(n-i.innerText.length);n-i.innerText.length<=0&&a>=n&&($(t).parent().find(".search_categoriesdescription_next").length||$(t).after('<div class="search_categoriesdescription_next cm"><a class="show_description pt-3"></a></div>'),$(i).appendTo($(t).parent().find(".search_categoriesdescription_next"))),n-=i.innerText.length})),app_shop.vars.hide_description&&$(t).parent().find(".search_categoriesdescription_next").after('<a class="hide_description pb-3">'+app_shop.vars.hide_description+"</a>")),$(t).removeClass("skeleton"),$(t).parent().removeClass("--skeleton"),!1},app_shop.run((function(){app_shop.fn.selectPaging=new SelectToDropdown({selector:".s_paging__select:not(.f-dropdown)",afterClickDropdownCallback:e=>{$(e).parents("form").submit()}}),$(".s_paging__item.--filters a").on("click",(function(e){return $("html").addClass("filters_open"),e.preventDefault(),!1}))}),"all",".s_paging",!0),app_shop.run((function(){$("#menu_messages_warning").length&&$("#filter_list").length&&$("#menu_messages_warning").appendTo("#filter_list")}),"all","#menu_messages_warning",!0),app_shop.run((()=>{document.querySelectorAll(".compare__item").forEach((e=>{e.addEventListener("click",(t=>{t.preventDefault(),t.stopPropagation(),app_shop.fn.fetchAndRefresh(e)}))}))}),"all",".compare__item");const checkCompare=()=>
28{const e=JSON.parse(app_shop.fn.cookie.get("compareItems"))||null;if(!e)return;const t=[...document.querySelectorAll(".compare__item")].map((e=>e.dataset.id))||[];if(t.length){const i=e.filter((e=>t.includes(e.id)));app_shop.fn.cookie.set("compareItems",JSON.stringify(i),10)}else app_shop.fn.cookie.remove("compareItems")};app_shop.run((()=>{checkCompare(),document.querySelector(".compare__button.--remove")?.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),app_shop.fn.cookie.remove("compareItems"),app_shop.fn.fetchAndRefresh(e.target)}))}),"all","#search",!0);let changeMainIconCounter=0;app_shop.fn.changeMainIconProduct=()=>{if(0!==changeMainIconCounter)return;changeMainIconCounter++;let e=null,t=null,i=null,n=null,a=null,s=null;$(".search").on("mousemove mouseenter",".product[data-image-replace]:not(.--img-hover)",(function(){!function(r){e=r.find(".product__icon img"),t=r.find(".product__icon source"),r.addClass("--img-hover"),n=e.length>0?e?.attr("data-first-icon"):null,i=e.length>0?e?.attr("data-second-icon"):null,a=t.length>0?t?.attr("data-first-icon"):null,s=t.length>0?t?.attr("data-second-icon"):null,i&&e&&e.attr("src")!=i&&e.attr("src",i),s&&t&&t.attr("src")!=s&&t.attr("srcset")!=s&&(t.attr("src",s),t.attr("srcset",s))}($(this))})),$(".search").on("mouseleave",".product[data-image-replace]",(function(){!function(e){if(app_shop.vars.view>2&&!e.is(":hover")){let t=e.find(".product__icon img"),i=e.find(".product__icon source");if(t.length>0){let e=t.attr("data-first-icon"),i=t.attr("data-first-icon");e&&i&&t.attr("src")!=i&&t.attr("src",e)}if(i.length>0){let e=i.attr("data-first-icon"),t=i.attr("data-first-icon");e&&t&&i.attr("src")!=t&&i.attr("srcset")!=t&&(i.attr("src",e),i.attr("srcset",e))}e.removeClass("--img-hover")}}($(this))}))},app_shop.run((function(){$("#search .product__prices").setHeight($("#search")),$("#search .product__name").setHeight($("#search")),app_shop.fn.changeMainIconProduct()}),[1,2,3,4],"#search",!0),app_shop.fn.basketConf_search=()=>{$(".to_bsk__btn_search").off(),app_shop.fn.basketAdd=addBasket({buyElement:"button.to_bsk__btn_search",wishesElement:".favorite",sizeElement:".product__sizes .--sizes"}),app_shop.fn.basketAdd.init()},app_shop.fn.basketConf_search(),app_shop.run((function(){app_shop.fn.categoryDivider(".search_description.--bottom .search_description__wrapper")}),"all",".search_description",!0),app_shop.run((function(){app_shop.fn.searchAjax=new SearchAjax({onClickSelectors:"#search a.product__compare_item, #menu_compare_product a.--remove, .pagination a, #Filters .filters__buttons a, #filter_list a",onSubmitSelectors:"#paging_setting_top form, .filters__form",updateDomCallback:()=>{app_shop.fn.infiniteScroll&&app_shop.fn.infiniteScroll.reInit(),$("html, body").animate({scrollTop:$(".search_name").offset().top-20},"fast"),$("html").removeClass("filters_open")}}),window._additional_ajax&&app_shop.fn.searchAjax.init()}),"all","#search"),app_shop.run((function(){app_shop.fn.infiniteScroll=new InfiniteScroll({updateDomCallback:()=>{app_shop.vars.bLazy.revalidate(),$("#search .product__prices").setHeight($("#search")),$("#search .product__name").setHeight($("#search"))}}),app_shop.fn.infiniteScroll.init()}),"all",".search_page #paging_setting_bottom .pagination"),app_shop.run((function(){$(window).resize((function(){$(".selectbox-title,.selectbox-container").removeAttr("style")}))}),"all","#searching_form"),app_shop.run((function(){app_shop.fn.shoppingList=new ShoppingList,document.getElementById("container").appendChild(document.querySelector(".sl_choose")),document.addEventListener("click",(function(e){if(e.target.closest(".projector_buttons_obs")){if(e.preventDefault(),!app_shop.fn.sizeSelected())return app_shop.fn.alertProjector(),!1;if("function"==typeof app_shop.fn.bundleSizeSelected&&!app_shop.fn.bundleSizeSelected())return!1;app_shop.fn.shoppingList.addProductToList([[document.getElementById("projector_product_hidden").value,document.getElementById("projector_size_hidden").value]])}if(e.target.closest(".basketedit_page .tool__button.--add-to-favorite")){e.preventDefault();const t=[];document.querySelectorAll("#Basket .basket__block[data-product-id]").forEach((e=>{const i=e.getAttribute("data-product-id"),n=e.getAttribute("data-product-size");t.push([i,n])})),app_shop.fn.shoppingList.addProductToList(t)}return!1})),$(".basketedit_page .tool__button.--add-to-favorite").off()}),"all",".sl_choose"),app_shop.run((function(){app_shop.fn.shoppingListPage=new ShoppingListPage,app_shop.fn.shoppingListPageSelects=new SelectToDropdown({selector:".sl_settings__select",afterClickDropdownCallback:e=>{e.closest("form").submit()}})}),"all",".shopping_list"),app_shop.run((function(){$(".sl_products__item.--name").setHeight($(".sl_products")),$(".sl_products__item.--prices").setHeight($(".sl_products"))}),[1,2,3,4],".shopping_list");const ShoppingListTxt={firstListName:"Lista ulubionych"};ShoppingList=function(e){const t=this;return this.params=e||{},this.vars={selectedProducts:[]},this.fetchData=async e=>{try{const t=await fetch("/graphql/v1/",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:e});return await t.json()}
28catch(e){return console.error("AJAX fetchDataShoppingList() Error:",e),!1}},this.getListQuery=e=>{const{idList:t,nameList:i,linkList:n,countList:a}=e;return JSON.stringify({query:`query {\n        shoppingList(ShoppingListInput: {\n          id: ${t}\n        }) {\n          ${void 0!==i&&i?"name":""}\n          ${void 0!==n&&n?"link":""}\n          ${void 0!==a&&a?"productCount":""}\n        }\n      }`})},this.addListQuery=e=>JSON.stringify({query:`mutation {\n      shoppingListCreate(ShoppingListSettingsInput: {\n        name: "${e}"\n      }) {\n        status\n        id\n      }\n    }`}),this.deleteListQuery=e=>JSON.stringify({query:`mutation {\n      shoppingListDelete(ShoppingListInput: {\n        id: ${e}\n      }) {\n        status\n      }\n    }`}),this.updateListQuery=e=>{const{idList:t,nameList:i,publicList:n}=e;return JSON.stringify({query:`mutation {\n        setShoppingList(ShoppingListInput: {\n          ${void 0!==t?`id: ${t},`:""}\n        }, ShoppingListSettingsInput: {\n          ${void 0!==i?`name: "${i}",`:""}\n          ${void 0!==n?`public: ${n},`:""}\n        }) {\n          status\n        }\n      }`})},this.addProductQuery=(e,t)=>JSON.stringify({query:`mutation {\n      addToShoppingList(ShoppingListInput: {\n        id: ${e}\n      }, ShoppingListProduct: [${t.map((e=>`{\n        id: ${e[0]},\n        size: "${"onesize"===e[1]?"uniw":e[1]}",\n      }`)).join(",")}]) {\n        status\n      }\n    }`}),this.deleteProductQuery=(e,t)=>JSON.stringify({query:`mutation {\n      removeFromShoppingList(ShoppingListInput: {\n        id: ${e}\n      }, ShoppingListProduct: [${t.map((e=>`{\n        id: ${e[0]},\n        size: "${"onesize"===e[1]?"uniw":e[1]}",\n      }`)).join(",")}]) {\n        status\n      }\n    }`}),this.queryCombo=async e=>{const{statusElement:t,fetchDataQuery:i,afterSuccess:n,afterError:a}=e;t&&this.status(t,"loading");const s=await this.fetchData(i);s.data&&(s.data.shoppingListCreate&&"success"===s.data.shoppingListCreate.status||s.data.shoppingListDelete&&"success"===s.data.shoppingListDelete.status||s.data.setShoppingList&&"success"===s.data.setShoppingList.status||s.data.addToShoppingList&&"success"===s.data.addToShoppingList.status||s.data.removeFromShoppingList&&"success"===s.data.removeFromShoppingList.status)?(t&&this.status(t,"success"),n&&n(s)):(t&&this.status(t,"error"),s.errors&&s.errors[0]&&s.errors[0].message&&Alertek.Start(s.errors[0].message),a&&a(s))},this.status=(e,t,i)=>{if(e)switch(t){case"loading":e&&e.classList.add("--loading");break;case"success":e&&(e.classList.remove("--loading"),e.classList.add("--success"),i||setTimeout((function(){e.classList.remove("--success")}),1e3));break;case"error":e&&(e.classList.remove("--loading"),e.classList.add("--error"),i||setTimeout((function(){e.classList.remove("--error")}),1e3));break;default:return e&&e.classList.remove("--loading","--success","--errror"),!1}return!0},this.updateListName=(e,t)=>{document.querySelectorAll(`[data-list_id="${e}"]`).forEach((i=>{i.querySelectorAll("[data-list_name]").forEach((i=>{i.closest("[data-list_id]").getAttribute("data-list_id")===e&&(i.textContent=t)}))}))},this.updateListCount=async e=>{const{idList:t,afterSuccess:i,afterError:n}=e,a=await this.fetchData(this.getListQuery({idList:t,countList:!0}));if(a.data&&a.data.shoppingList){const e=a.data.shoppingList[0].productCount;document.querySelectorAll(`[data-list_id="${t}"]`).forEach((i=>{i.querySelectorAll("[data-list_count]").forEach((i=>{i.closest("[data-list_id]").getAttribute("data-list_id")===t&&(i.textContent=e)}))})),i&&i(a)}else n&&n(a)},this.updateListShare=e=>{document.querySelectorAll(`[data-list_id="${e}"]`).forEach((e=>{e.hasAttribute("data-shared")?e.removeAttribute("data-shared"):e.setAttribute("data-shared","true")}))},this.updateListDelete=e=>{document.querySelectorAll(`[data-list_id="${e}"]`).forEach((e=>{2===e.parentNode.querySelectorAll("[data-list_id]").length&&e.closest("[data-empty]")&&e.closest("[data-empty]").setAttribute("data-empty","true"),e.parentNode.removeChild(e)}))},this.updateListCreate=async e=>{const{idList:t,afterSuccess:i,afterError:n}=e,a=await this.fetchData(this.getListQuery({idList:t,nameList:!0,linkList:!0}));if(a.data&&a.data.shoppingList){const e=a.data.shoppingList[0].name,n=a.data.shoppingList[0].link;document.querySelectorAll("[data-list_skeleton]").forEach((i=>{const a=i.cloneNode(!0);a.hasAttribute("data-list_id")&&a.setAttribute("data-list_id",t),a.removeAttribute("data-list_skeleton"),a.querySelectorAll("[data-list_name]").forEach((t=>{t.textContent=e})),a.querySelectorAll("[data-list_href]").forEach((e=>{e.setAttribute("href",n)})),a.querySelectorAll("[data-list_position]").forEach((e=>{e.hasAttribute("id")&&e.setAttribute("id",`${e.getAttribute("id")}${i.parentNode.childElementCount}`),e.hasAttribute("for")&&e.setAttribute("for",`${e.getAttribute("for")}${i.parentNode.childElementCount}`)})),a.querySelector('input[type="text"]')&&a.querySelector('input[type="text"]').addEventListener("focus",(function(){app_shop.vars.view<3&&setTimeout((()=>{window.scrollTo(0,0),this.scrollIntoView()}),200)})),i.parentNode.appendChild(a),i.closest("[data-empty]")&&i.closest("[data-empty]").setAttribute("data-empty","false")})),i&&i(a)}else n&&n(a)},this.addProductToList=e=>{const t=document.querySelector(".sl_choose");if(t){t.querySelectorAll(".--success").forEach((e=>{e.classList.remove("--success")}));1===t.querySelectorAll(".sl_choose__list").length&&(this.status(t.querySelector(".sl_choose__wrapper"),"loading"),this.queryCombo({fetchDataQuery:this.addListQuery(ShoppingListTxt.firstListName),afterSuccess:e=>{this.updateListCreate({idList:e.data.shoppingListCreate.id,afterSuccess:()=>{t.querySelector(".sl_choose__list:last-child input").checked=!0,this.status(t.querySelector(".sl_choose__wrapper"))}})}})),t.classList.add("--active")}this.vars.selectedProducts=e},this.initEvents=()=>{document.querySelectorAll('.sl_dialog input[type="text"]').forEach((e=>{e.addEventListener("focus",(function(){app_shop.vars.view<3&&setTimeout((()=>{window.scrollTo(0,0),this.scrollIntoView()}),200)}))})),document.addEventListener("click",(async function(e){if(e.target.closest(".sl_dialog_close")){e.preventDefault();const t=e.target.closest(".sl_dialog_close").closest(".--active");t&&t.classList.remove("--active","--move-now","--copy-now")}const i=document.querySelector(".sl_choose.--active");if(i&&!i.querySelector(".sl_dialog__wrapper").contains(e.target)&&i.classList.remove("--active"),e.target.closest(".sl_create__link")){e.preventDefault();const t=e.target.closest(".sl_create__link").parentNode;t.classList.toggle("--active"),t.querySelector("input").focus(),t.scrollIntoView()}if(e.target.closest(".sl_create__button")){e.preventDefault();const i=e.target.closest(".sl_create__button"),n=i.closest(".sl_create").querySelector(".sl_create__input"),a=i.closest(".sl_create");return n.checkValidity()?(t.status(a,"loading"),t.queryCombo({fetchDataQuery:t.addListQuery(n.value),afterSuccess:e=>{t.updateListCreate({idList:e.data.shoppingListCreate.id,afterSuccess:()=>{t.status(a,"success"),a.classList.remove("--active"),n.value="",a.scrollIntoView()},afterError:()=>{t.status(a,"error")}})},afterError:()=>{t.status(a,"error")}}),!1):(n.reportValidity(),!1)}if(e.target.closest(".sl_choose__button")){e.preventDefault();const i=e.target.closest(".sl_choose__button").closest(".sl_choose__wrapper").querySelector(".sl_choose__input
28:checked"),n=i.closest("[data-list_id]").getAttribute("data-list_id"),a=i.closest(".sl_choose__list");t.status(a,"loading"),t.queryCombo({fetchDataQuery:t.addProductQuery(n,t.vars.selectedProducts),afterSuccess:()=>{t.updateListCount({idList:n,afterSuccess:()=>{t.status(a,"success",!0)},afterError:()=>{t.status(a,"error")}})},afterError:()=>{t.status(a,"error")}})}return!1}))},this.initEvents()},app_shop.fn.switchSigninView=function(e){$("#signin-form_box_left .signin-form_box_sub").hide(),$("#"+e.attr("value")).show()},app_shop.run((function(){$("a.password_reminder_signin, a.password_back_signin").on("click",(function(){return app_shop.fn.switchSigninView($($(this).attr("href"))),!1})),$(".cookie_login_social_more_social").on("click",(function(){return $("#cookie_login_social_more").show(),$(this).remove(),!1}))}),"all","#signin-form"),app_shop.run((function(){$("a.show_on_map").click((function(){if($(".no-touch"))return stock_map.showMap(),!1}))}),"all","#stock_info_58110"),app_shop.run((function(){$(".stocks_list_name").maxHeight(),$(".stocks_list_adress").maxHeight(),$(".stocks_list_phone").maxHeight(),$(".stocks_list_mail").maxHeight()}),1,".stocks_list_wrapper",!0),app_shop.run((function(){$(".stocks_list_name").maxHeight(),$(".stocks_list_adress").maxHeight(),$(".stocks_list_phone").maxHeight(),$(".stocks_list_mail").maxHeight()}),2,".stocks_list_wrapper",!0),app_shop.run((function(){$(".stocks_list_name").maxHeight(),$(".stocks_list_adress").maxHeight(),$(".stocks_list_phone").maxHeight(),$(".stocks_list_mail").maxHeight()}),3,".stocks_list_wrapper",!0),app_shop.run((function(){$(".stocks_list_name").maxHeight(),$(".stocks_list_adress").maxHeight(),$(".stocks_list_phone").maxHeight(),$(".stocks_list_mail").maxHeight()}),4,".stocks_list_wrapper",!0);var stocks_list_more_txt="więcej informacji",stocks_list_on_map_txt="Pokaż na mapie";app_shop.run((()=>{let e=e=>{let{link:t,width:i,height:n,alt:a,description:s}=e;return`<figure class="col-12 col-sm-6 col-md-4">\n      <a href="${t}" data-pswp-width="${i}" data-pswp-height="${n}" data-pswp-tile-type="zoomify">\n          <img style="max-width:100%;" height="" width="" src="${t}" alt="${a}">\n      </a>\n      <figcaption>\n          ${s}\n      </figcaption>\n   </figure>`},t=document.querySelectorAll(".gallery-start"),i=document.querySelectorAll(".gallery-end");if(t.length!=i.length)return;t.forEach((t=>{let i=t;for(console.log(i);![...i.parentElement.classList].includes("_ae_desc");)i=i.parentElement,console.log(i);t.setAttribute("class","cms_gallery row");let n=i.nextElementSibling;for(;!n.querySelector(".gallery-end");){let i=n,a=i.querySelector("img"),s="";i.childElementCount>1&&(s=i.children[1].firstElementChild.innerHTML);let r={link:a.getAttribute("src"),width:a.getAttribute("width"),height:a.getAttribute("height"),alt:a.getAttribute("alt"),description:s};t.insertAdjacentHTML("beforeend",e(r)),n=n.nextElementSibling,i.remove()}n.remove()}));let n=document.createElement("script");n.type="module",n.innerText='import PhotoSwipeLightbox from "https://cdn.jsdelivr.net/npm/[email protected]/dist/photoswipe-lightbox.esm.js";\n       const lightbox = new PhotoSwipeLightbox({\n         gallery: ".cms_gallery",\n         children: "figure > a",\n         pswpModule: () => import("https://cdn.jsdelivr.net/npm/[email protected]/dist/photoswipe.esm.js")\n       });\n       lightbox.init();',document.querySelector("head").appendChild(n)}),"all",".gallery-start");

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.