(self.webpackChunkjouwweb=self.webpackChunkjouwweb||[]).push([[179],{5366:function(e,t,n){var i={"./analytics/controllers/track":[6527,527],"./controllers/link":[8459,459],"./form/controllers/autosubmit":[1857,857],"./form/controllers/captcha-checkbox":[2423,545,423],"./form/controllers/captcha-score":[932,932],"./form/controllers/panel-select":[8054,54],"./form/controllers/select-handler":[8747,747],"./form/controllers/toggle":[6859,859],"./tooltip/controllers/manager":[7934,412,934]};function o(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(i)},o.id=5366,e.exports=o},6725:function(e,t,n){var i={"./features/form/controllers/datepicker":[5754,316,417],"./features/form/controllers/lazy-captcha-group":[4475,475]};function o(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],o=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(o)}))}o.keys=function(){return Object.keys(i)},o.id=6725,e.exports=o},7688:function(e,t,n){"use strict";function i(e){if(!e)throw new Error(`Assertion Error: ${arguments.length>1&&void 0!==arguments[1]?arguments[1]:"no additional info provided"}`)}n.d(t,{Z:function(){return i}})},7259:function(e,t,n){"use strict";window.JOUWWEB=window.JOUWWEB||{};const i=window.JOUWWEB;t.default=i,i.application=i.application||{},i.application.editorLocale||(i.application.editorLocale="en-US"),i.experiment=i.experiment||{},i.websiteRendering=i.websiteRendering||{},i.websiteRendering.locale||(i.websiteRendering.locale="en-GB"),i.website=i.website||{},i.website.allowed=i.website.allowed||{},i.website.mobileBar=i.website.mobileBar||{},i.website.id||(i.website.id=null),i.website.allowed.legacyFontSize||(i.website.allowed.legacyFontSize=!1),i.website.mobileBar.email||(i.website.mobileBar.email={value:"",active:!1}),i.website.webshop=i.website.webshop||{}},353:function(e,t,n){"use strict";function i(e){return document.createRange().createContextualFragment(e)}function o(e,t){Object.assign(e.style,t)}n.d(t,{Zs:function(){return o},xJ:function(){return i},KM:function(){return a},AE:function(){return s},mc:function(){return d}});const r=new Promise((e=>{function t(){document.removeEventListener("DOMContentLoaded",t),document.removeEventListener("load",t),e()}"loading"!==document.readyState&&e(),document.addEventListener("DOMContentLoaded",t),window.addEventListener("load",t)}));function s(){return r}function a(e,t,n,i,o){const r=(t,o)=>{const s=t.closest(n);if(!s||!e.contains(s))return;!1===i.call(s,o)?(o.preventDefault(),o.stopPropagation()):s.parentElement&&r(s.parentElement,o)},s=e=>{r(e.target,e)};return e.addEventListener(t,s,o),()=>{e.removeEventListener(t,s)}}const c=["top","left","right","bottom"];function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"border";const n=e.getBoundingClientRect(),i=window.getComputedStyle(e);function o(e){return parseInt(i.getPropertyValue(e),10)||0}const[r,s,a,l]=c.map((e=>{switch(t){case"margin":return o(`margin-${e}`);case"border":return 0;case"padding":return-o(`border-${e}-width`);case"content":return-o(`border-${e}-width`)-o(`padding-${e}`)}})),d=n.top-r,u=n.left-s;return{x:u,y:d,width:n.right+a-u,height:n.bottom+l-d}}function d(e,t){const{scrollX:n,scrollY:i}=window,{x:o,y:r,width:s,height:a}=l(e,t);return{x:o+n,y:r+i,width:s,height:a}}function u(e){return function(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;return new Promise((o=>{const r=[n,e].join("-"),s=`${r}-active`,a=`${r}-done`;t.classList.add(r),t.offsetHeight,t.classList.add(s),setTimeout((function(){t.classList.remove(s),t.classList.add(a),o()}),i)}))}}u("enter"),u("exit")},9013:function(e,t,n){"use strict";n.d(t,{MH:function(){return r},ZV:function(){return l},nv:function(){return m},ty:function(){return u},LI:function(){return p}});const i={credentials:"same-origin"},o={error:[],send:[],complete:[]};class r{constructor(e,t){this.message=void 0,this.responseStatus=void 0,this.message=e,this.responseStatus=t?.status||null}}function s(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4?arguments[4]:void 0;o[e].forEach((o=>o({...n,type:e,method:(n.method||"GET").toUpperCase(),url:t,response:i,error:r})))}function a(e,t){return new Promise(((n,i)=>e[t]().then((t=>e.ok?n(t):i(new r(t,e)))).catch((e=>i(new r(e,null))))))}async function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.headers?t.headers instanceof Headers||(t.headers=new Headers(t.headers)):t.headers=new Headers,t.method&&"GET"!==t.method.toUpperCase()&&!t.headers.get("X-Requested-With")&&t.headers.append("X-Requested-With","fetch"),function(e){try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}}(e)&&!t.headers.has("X-Release-Tag")&&t.headers.append("X-Release-Tag","release-20250404172557"),s("send",e,t);try{const n=await fetch(e,{...i,...t});return s("complete",e,t,n),n.ok||s("error",e,t,n),n}catch(n){if(n instanceof DOMException&&"AbortError"===n.name)throw n;throw s("error",e,t,null,n),s("complete",e,t,null,n),n}}async function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{headers:new Headers({Accept:"application/json"})};return a(await c(e,t),"json")}async function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(await c(e,t),"text")}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{headers:new Headers({"Content-Type":"application/json"})};return l(e,{method:"POST",body:JSON.stringify(t),...n})}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t instanceof FormData||(t=h(t)),d(e,{method:"POST",body:t,...n})}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new FormData,n=arguments.length>2?arguments[2]:void 0;return null!==e&&Object.keys(e).forEach((i=>{const o=n?`${n}[${i}]`:i,r=e[i];null!==r&&("object"!=typeof r?t.append(o,r):h(r,t,o))})),t}function p(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new FormData,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n.append("upload",t,t.name),l(e,{method:"POST",body:n,...i})}},7247:function(e,t,n){"use strict";let i;function o(e){i=e}function r(){return i}n.d(t,{i:function(){return r},j:function(){return o}})},1313:function(e,t,n){"use strict";n.d(t,{J8:function(){return B},Tg:function(){return F},xG:function(){return T},SP:function(){return y},Nk:function(){return j},gB:function(){return C},w:function(){return x},wx:function(){return L}});var i=n(7259),o=n(9013);function r(e){return!!e&&["US","CA","IT"].includes(e)}const s={};function a(e,t,n){if(!r(n))throw new Error(`Trying to request subdivisions of country without subdivisions (${n}).`);const i="editor"===e?"/v2/api":"/_api",a=`${n}/${t}`;return a in s||(s[a]=(0,o.ZV)(`${i}/country-subdivisions/1/${n}/${t}`)),s[a]}function c(e,t,n){const i=new Intl.NumberFormat(e,n).format(t);return["zu-ZA","xx-XX"].includes(e)?`!${i}!`:i}const l={CRC:"₡",EUR:"€",GBP:"£",ILS:"₪",INR:"₹",JPY:"¥",KRW:"₩",NGN:"₦",PHP:"₱",PLN:"zł",PYG:"₲",RUB:"₽",THB:"฿",UAH:"₴",USD:"$",VND:"₫"};function d(e,t){const n=function(e,t){return function(n,i,o){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n<0)throw new Error("Currency format of negative money is not allowed. For deductions prefix with - manually.");"nl-BE"===(o=o??t)&&(o="nl-NL");const s={style:"currency",currency:i=i??e};return r&&n%1==0&&(s.minimumFractionDigits=0),c(o,n,s)}}(e,t);return{formatCurrency:n,formatCurrencyNumber:function(e,n){const i="string"==typeof e?Number(e):e;if(!isFinite(i))throw new Error("Invalid number passed to formatCurrencyNumber().");return c(n??t,i,{minimumFractionDigits:i%1==0?0:2,useGrouping:!1})},formatMoney:function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{amount:o,currency:r}=e;return n(Number(o)/100,r,t,i)},getCurrencySymbol:function(t){return l[t=t??e]??t}}}const u={};function m(e,t){let n=u[t];if(void 0!==n)return n;const i="editor"===e?"/v2/api":"/_api";return n=(0,o.ZV)(`${i}/countries/1/${t}`),u[t]=n,n}const h={};async function p(e,t,n){const i=function(e,t){return`\n ${t}\n ${e.streetAddress}\n ${e.postalCode}\n ${e.city}\n ${e.country}\n ${e.countrySubdivision}\n `}(n,t);let r=h[i];if(void 0===r){const s="editor"===e?"/v2/api":"/_api",a={address:n};r=(0,o.ty)(`${s}/format-address/${t}`,a),h[i]=r}return(await r).data}function f(e,t){return c(e,t,{style:"percent",maximumFractionDigits:3,...arguments.length>2&&void 0!==arguments[2]?arguments[2]:null})}var w=n(2353),g=n.n(w);var b=n(7247);function _(e){if(0===e.trim().length)return null;const t=Number(e.replace(",","."));return isNaN(t)||!isFinite(t)?null:t}function v(e){const t=_(e);if(null===t)return null;return new Intl.NumberFormat("en-US",{useGrouping:!1}).format(t)}const{locale:y,localeLanguage:j,localeRegion:E,timezone:S,sprintf:C,gettext:x,ngettext:k,pgettext:L,npgettext:A,formatNumber:P,parseNumber:q,parseNumberAsString:I,formatCurrency:T,formatCurrencyNumber:O,formatMoney:$,getCurrencySymbol:M,formatPercentage:D,fetchCountryNames:B,isCountrySubdivisionRequired:N,fetchCountrySubdivisions:R,formatAddress:F,__:W}=function(e,t,n,o){const s=function(e,t){const{localization:n}=i.default,o=n?.[`${e}:${t}`];void 0===o&&console.error(`Localization for "${e}" with locale "${t}" is not available.`);const r=new(g())(o??{});return{sprintf:g().sprintf,gettext:r.gettext.bind(r),ngettext:r.ngettext.bind(r),pgettext:r.pgettext.bind(r),npgettext:r.npgettext.bind(r)}}(e,t),l=window.JOUWWEB.localization&&window.JOUWWEB.localization[`tinymce:${t}`]||{},[u,h]=t.split("-");return(0,b.j)({locale:t,timezone:n}),{locale:t,localeLanguage:u,localeRegion:h,timezone:n,...s,tinymce:l,...d(o,t),formatNumber:c.bind(null,t),parseNumber:_,parseNumberAsString:v,formatPercentage:f.bind(null,t),fetchCountryNames:m.bind(null,e,t),isCountrySubdivisionRequired:r,fetchCountrySubdivisions:a.bind(null,e,t),formatAddress:p.bind(null,e,t),__:e=>e}}("website-rendering",i.default.websiteRendering.locale,i.default.websiteRendering.timezone,i.default.website.webshop.currency)},1618:function(e,t,n){"use strict";function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return!!e&&(e.classList.contains("is-touch-device")||e.classList.contains("jw-is-touch-device"))}n.d(t,{Uo:function(){return o},b1:function(){return i}});let o=function(e){return e[e.XS=480]="XS",e[e.SM=768]="SM",e[e.MD=992]="MD",e[e.LG=1200]="LG",e[e.XL=1560]="XL",e}({})},1678:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(9530);function o(e){const t=window.getComputedStyle(e).getPropertyValue("object-fit")||"fill",{naturalWidth:n,naturalHeight:o}=e,r={width:n,height:o},{left:s,top:a,width:c,height:l}=e.getBoundingClientRect(),d={width:c,height:l},u=(0,i.GA)(d,r,t);return{x:s+u.x,y:a+u.y,width:u.width,height:u.height}}},2395:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Kz:function(){return initializeCommentForm},RY:function(){return openNextPage},TY:function(){return approveComment},r_:function(){return rejectComment},tF:function(){return reactComment}});var jquery__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7889),jquery__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__),common_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7259),common_dom__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(353),common_http__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9013),common_i18n_website_rendering__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1313),website_rendering_helpers_loading__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6987);function getVisibleNumberOfComments(e){return e.find(".jw-comments-container").find(".jw-comments > .jw-comment:not(.is-not-visible)").length}function getCommentsPerPage(e){const t=e.find(".jw-comments-container");return parseInt(t.data("comments-per-page"),10)}function setCommentsPerPage(e,t){e.find(".jw-comments-container").data("comments-per-page",t)}function getTotalNumberOfComments(e){const t=e.find(".jw-comments-container");return parseInt(t.data("number-of-comments"),10)}function initializeCommentForm($container,$form){$form.find("[name=captcha]").prop("value",$container.data("container-id")),$form.on("submit",(e=>{e.preventDefault();const $comments=$container.find(".jw-comments-real"),$error=$form.find(".jw-comment-error"),submitButton=$form.find("button")[0];(0,website_rendering_helpers_loading__WEBPACK_IMPORTED_MODULE_5__.g)(submitButton,!0);const commentRequest=(0,common_http__WEBPACK_IMPORTED_MODULE_3__.nv)(window.location.href,new FormData($form[0]));commentRequest.then((html=>{const fragment=(0,common_dom__WEBPACK_IMPORTED_MODULE_2__.xJ)(html),data=JSON.parse(fragment.firstElementChild.innerHTML);if($form.find(".jw-element-form-group").removeClass("jw-element-form-is-error"),data.success){0===$comments.find(".jw-comment").length&&$comments.empty(),$form.replaceWith(`
${data.successMessage}
`),data.gaJs&&eval(data.gaJs),$container.find(".jw-comments-dummy").hide();const $comment=jquery__WEBPACK_IMPORTED_MODULE_0___default()(data.comment);if($comment.hide(),data.isSubcomment){const e=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".jw-subcomments[data-parent-id="+data.parentId+"]");e.show(),e.prepend($comment)}else $comments.prepend($comment);$comment.fadeIn();const $commentsContainer=jquery__WEBPACK_IMPORTED_MODULE_0___default()(".jw-comments-container");$commentsContainer.data("number-of-comments",$commentsContainer.data("number-of-comments")+1)}else{(0,website_rendering_helpers_loading__WEBPACK_IMPORTED_MODULE_5__.g)(submitButton,!1);const e=`\n ${(0,common_i18n_website_rendering__WEBPACK_IMPORTED_MODULE_4__.w)("Oops! Something went wrong.")}\n
${(0,common_i18n_website_rendering__WEBPACK_IMPORTED_MODULE_4__.w)("Check the following fields and try again")}:\n \n `;Object.keys(data.messages).forEach((e=>{$form.find(`[name=${e}]`).closest(".jw-element-form-group").addClass("jw-element-form-is-error")})),$error.html(e),$error.show()}}))}))}function focusForm(e){e.find("input, select, textarea").first().trigger("focus")}function reload(e){const t=e.find(".jw-comments-container"),n=t.find(".jw-comment"),i=getCommentsPerPage(e);n.slice(0,i).removeClass("is-not-visible"),n.slice(i).addClass("is-not-visible"),t.toggleClass("is-more-comments",getTotalNumberOfComments(e)>i)}function openNextPage(e){const t=e.find(".jw-comments-container"),n=t.find(".jw-comment.is-not-visible");if(n.length>0)n.slice(0,getCommentsPerPage(e)).removeClass("is-not-visible").slideDown(),t.toggleClass("is-more-comments",n.length>getCommentsPerPage(e));else{t.addClass("is-loading-comments"),t.removeClass("is-more-comments");(0,common_http__WEBPACK_IMPORTED_MODULE_3__.nv)(window.location.href,{element:e.data("jw-element-id"),morePosts:!0,beforeCommentId:t.find(".jw-comments > .jw-comment:last").data("id")}).then((n=>{const i=jquery__WEBPACK_IMPORTED_MODULE_0___default()(n).children();t.removeClass("is-loading-comments"),i.hide(),t.find(".jw-comments").children(".jw-comment,.jw-subcomments").last().after(i),i.slideDown(),t.toggleClass("is-more-comments",getTotalNumberOfComments(e)>getVisibleNumberOfComments(e))}))}}function reactComment(e){const t=e.data("id"),n=e.closest(".jw-element"),i=n.find(`.jw-comment-form[data-parent-id=${t}]`);if(0!==i.length){if(0!==i.find("form").length)return void focusForm(i);i.remove()}const o=parseInt(n.attr("data-jw-element-id"));(0,common_http__WEBPACK_IMPORTED_MODULE_3__.nv)(window.location.href,{action:"form",element:o,parentId:t}).then((t=>{const i=jquery__WEBPACK_IMPORTED_MODULE_0___default()(t).find("div.jw-comment-form"),o=i.find("form");e.closest(".jw-comment").after(i),focusForm(i),initializeCommentForm(n.find(".jw-comments-moddule"),o)})).catch((()=>{window.alert((0,common_i18n_website_rendering__WEBPACK_IMPORTED_MODULE_4__.w)("Could not load the comment form. Reload the page and try again."))}))}function approveComment(e){const t=parseInt(e.data("id"));e.find(".jw-comment-accept").hide(),postCommentAction(e.closest(".jw-element")[0],t,"approve").catch((()=>{window.alert((0,common_i18n_website_rendering__WEBPACK_IMPORTED_MODULE_4__.w)("This comment could not be published. Reload the page and try again."))}))}function rejectComment(e){const t=parseInt(e.data("id"));e.css("visibility","hidden"),postCommentAction(e.closest(".jw-element")[0],t,"reject").then((()=>{e.remove(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".jw-subcomments[data-parent-id="+t+"]").remove(),jquery__WEBPACK_IMPORTED_MODULE_0___default()(".jw-comment-form[data-parent-id="+t+"]").remove();const n=e.closest(".jw-comments-container");n.data("number-of-comments",n.data("number-of-comments")-1)})).catch((()=>{e.find(".jw-comment-delete").hide(),e.css("visibility","visible"),window.alert((0,common_i18n_website_rendering__WEBPACK_IMPORTED_MODULE_4__.w)("This comment could not be deleted. Reload the page and try again."))}))}function postCommentAction(e,t,n){const i=Number(e.dataset.jwElementId),o=e.classList.contains("jw-newsPostComment"),r=document.body.dataset.jouwwebSegmentId;let s=`${common_config__WEBPACK_IMPORTED_MODULE_1__.default.application.noSsl?"http":"https"}://${common_config__WEBPACK_IMPORTED_MODULE_1__.default.application.backendDomain}/v2/website/${common_config__WEBPACK_IMPORTED_MODULE_1__.default.website.id}`;return s+=o?`/post/${r}/comment/${t}/${n}`:`/page/${r}/comments/${i}/comment/${t}/${n}`,(0,common_http__WEBPACK_IMPORTED_MODULE_3__.ty)(s,{},{credentials:"include"})}},6787:function(e,t,n){"use strict";function i(e,t){return Promise.all([n.e(555),n.e(177)]).then(n.bind(n,5514)).then((n=>{const{beforeInit:i,signal:o,...r}=t;return o?.throwIfAborted(),i?.(),n.initSlider(e,r)}))}n.d(t,{u:function(){return i}})},7097:function(e,t,n){"use strict";n.d(t,{a:function(){return s}});var i=n(7688),o=n(1313);const r=e=>`\n
\n
\n
\n
\n \n ${e}\n
\n
\n
\n`;function s(e){const t=document.createElement("div");t.innerHTML=r(e);const n=t.firstElementChild;(0,i.Z)(n instanceof HTMLElement);document.querySelector(".jw-section-content").appendChild(n);const o=e=>{n.classList.toggle("is-hidden",!e)};o(!1),n.offsetHeight,o(!0),setTimeout((()=>{n.querySelector(".jw-popover")?.focus()}),200);const s=e=>{"Escape"===e.key&&a()},a=()=>{o(!1),setTimeout((()=>n.remove()),200),document.removeEventListener("keydown",s)};n.querySelector(".jw-popover-backdrop")?.addEventListener("click",a),n.querySelectorAll(".jw-popover-close").forEach((e=>e?.addEventListener("click",a))),document.addEventListener("keydown",s)}},5101:function(e,t,n){"use strict";n.d(t,{ND:function(){return c},Wv:function(){return u}});var i=n(7889),o=n.n(i),r=n(6863);const s=[200,300,400,480,540,600,640,800],a={leading:!0,trailing:!0,maxWait:150},c=".jw-responsive";function l(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:document).querySelectorAll(c).forEach((e=>{!function(e){const t=e.offsetWidth;e.classList.add("jw-responsive"),s.forEach((n=>{e.classList.toggle(`lt${n}`,t<=n)})),o()(e).trigger("jw.responsive-container-resize")}(e)}))}const d=(0,r.Z)(l,150,a);function u(){l(),window.addEventListener("resize",(()=>d()))}},5642:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var i=n(7259),o=n(1313);function r(e){const t=new URL((arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)??window.location.origin),n=new URL(e,t);return"api.whatsapp.com"!==n.hostname&&(!(!n.hostname||n.hostname===t.hostname)&&!a(n.hostname,t))}let s=null;function a(e,t){if(null===s){s=new Set;for(const e of i.default.application.backends)s.add(e.domain),e.freeDomain&&s.add(e.freeDomain)}if(s.has(e))return!0;const n=e.indexOf(".");return!(-1===n||n>=e.length)&&a(e.slice(n+1),t)}var c=n(7097);function l(e){i.default.website.allowed.externalLinks||e.addEventListener("click",(function(e){if(!(e.target instanceof Element))return;const t=e.target.closest("a");t&&""!==t.href&&r(t.href)&&(e.preventDefault(),(0,c.a)(d()))}))}const d=()=>`\n

\n ${(0,o.w)("External links are disabled")}\n

\n

\n ${(0,o.w)("Publish your website to enable external links")}\n

\n
\n
\n \n ${(0,o.w)("Publish website")}\n \n
\n`},6987:function(e,t,n){"use strict";function i(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.disabled=t;let n=e.querySelector(".jw-spinner");t&&!n?(n=document.createElement("span"),n.className="jw-spinner",e.appendChild(n)):n&&!t&&e.removeChild(n)}function o(){document.addEventListener("submit",(e=>{e.target.querySelectorAll("button[data-loading-trigger=submit]").forEach((e=>{i(e,!0)}))}))}n.d(t,{K:function(){return o},g:function(){return i}})},6582:function(e,t,n){"use strict";var i=n(7259);const o=document.querySelector("script[nonce]")||document.querySelector("script")||document.currentScript;o&&(n.nc=o.nonce||o.getAttribute("nonce")),n.p.startsWith("/assets")&&(n.p=`${i.default.application.assetsUrl}${n.p}`);var r=n(6599);class s extends r.Qr{initialize(){if(s.promiseMap.has(this.identifier))return;const e=this.load().then((e=>{this.application.register(this.identifier,e),s.promiseMap.delete(this.identifier)}));s.promiseMap.set(this.identifier,e)}}s.promiseMap=new Map;const a="data-jw-",c={...r.R4,controllerAttribute:`${a}controller`,actionAttribute:`${a}action`},l=r.Mx.start(document.documentElement,c);function d(e,t){t.keys().forEach((n=>{const i=function(e,t){return`${e}--${t.split("/").filter((e=>![".","controllers","features"].includes(e))).join("--")}`}(e,n);!function(e,t,n){e.register(t,class extends s{load(){return n()}})}(l,i,(async()=>{const{default:e}=await t(n);if(!(e.prototype instanceof r.Qr))throw new Error(`Expected a Stimulus controller, but got ${String(e)}`);return e}))}))}d("common",n(5366));d("website",n(6725));n(6087),n(2160);var u=n(4019);let m=!1;(0,u.D)((function(e){let{scrollY:t}=e;if(!document.body.classList.contains("jw-is-editor")&&(document.body.classList.toggle("jw-is-header-affix",t>0),!m&&t>0)){const e=document.querySelector(".js-fixed-header-container");e&&["fixed","sticky"].includes(window.getComputedStyle(e).getPropertyValue("position").toLowerCase())&&document.documentElement.style.setProperty("--fixed-header-height",`${e.clientHeight??0}px`),m=!0}}));var h=n(7889),p=n.n(h),f=n(353);(0,f.AE)().then((()=>{const e=window.JOUWWEB.templateConfig&&window.JOUWWEB.templateConfig.header?window.JOUWWEB.templateConfig.header:{};if(e.updatePusher){const t=()=>{const t=p()("body").hasClass("jw-menu-is-desktop")?"desktop":"mobile",n="desktop"===t?e.selector:e.mobileSelector,i=p()(n);let o=0;const r=p()(".message-bar");r.length>0&&(o+=r.outerHeight()),i.is(":visible")&&(o+=i.outerHeight(),e.updatePusher(o,t))};p()(window).on("jw.menu-reload",(()=>{setTimeout(t,10)}))}}));var w=n(1454),g=n(1313);function b(e){return e.querySelectorAll("[data-page]")}function _(e){return e.querySelector("[data-page-prev]")}function v(e){return e.querySelector("[data-page-next]")}function y(e){return parseInt(e.dataset.pageCurrent??"",10)}function j(e){return parseInt(e.dataset.pageTotal??"",10)}function E(e,t){let{onPaginate:n}=t;function i(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(t=y(e)+t),t=Math.max(1,Math.min(j(e),t)),Promise.resolve().then((async()=>{n&&await n(t)})).then((()=>{S(e,t)}))}function o(e){r(e);const t=e.currentTarget;i(parseInt(t.dataset.page??"",10))}function r(e){const t=e.currentTarget;e.preventDefault(),"replaceState"in window.history&&window.history.replaceState({},"",t.href)}function s(){(0,w.Z)(b(e),(e=>{e.addEventListener("click",o)})),_(e)?.addEventListener("click",(e=>{r(e),i(-1,!0)})),v(e)?.addEventListener("click",(e=>{r(e),i(1,!0)}))}return s(),{replaceElement(t){e=t,s()}}}function S(e,t){const n=j(e);(function(e,t){e.dataset.pageCurrent=t.toString()})(e,t=Math.max(1,Math.min(n,t))),e.classList.toggle("hidden",n<=1),_(e)?.parentElement?.classList.toggle("jw-pagination__control--hidden",t<=1),v(e)?.parentElement?.classList.toggle("jw-pagination__control--hidden",t>=n);const i=function(e){return e.querySelector(".jw-pagination__small")}(e);i&&(i.innerHTML=`(${t} / ${n})`);b(e).forEach((e=>{const i=parseInt(e.dataset.page??"",10),o=(0,g.gB)(i===t?(0,g.w)("Current page, page %d"):(0,g.w)("Page %d"),i);e.setAttribute("title",o),e.setAttribute("aria-label",o),e.setAttribute("aria-current",(i===t).toString()),e.classList.toggle("jw-pagination__page--active",i===t);let r="hidden-lt300";if(i!==t&&!(1===i||i===n||i<=3&&t<3||i>=n-2&&t>n-2)){r="hidden-lt400";const e=Math.max(1,Math.min(t-2,n-4));(i=e+5||i>n)&&(r="hidden")}const s=e.parentElement;s&&(s.className=`jw-pagination__item ${r}`)}))}function C(e){"scrollBehavior"in document.documentElement.style?e.getBoundingClientRect().top<0&&e.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"}):e.scrollIntoView(!0)}var x=n(1002),k=n(1678);function L(e){const t=e.querySelector(".jw-album");return parseInt(t.dataset.perPage,10)}function A(e,t){const n=L(e);e.querySelectorAll(".jw-album-image").forEach(((e,i)=>{const o=t*n<=i&&(t+1)*n>i;e.classList.toggle("hidden",!o)}))}function P(e){const t=[...e.querySelectorAll(".jw-album-image")],n=e.querySelector(".jw-pagination");E(n,{onPaginate:t=>(C(e),A(e,t-1),Promise.resolve())}),t.forEach(((i,o)=>{i.addEventListener("click",(i=>{i.preventDefault(),function(i){const o=e.querySelector(".jw-album"),r=t.map((e=>{const t=e.querySelector(".jw-album-image__image");return{src:e.getAttribute("href"),msrc:t.src,w:parseInt(e.dataset.width,10),h:parseInt(e.dataset.height,10),title:e.getAttribute("data-caption")}}));(0,x.b)(r,{index:i,captionEl:!o.classList.contains("jw-album--no-captions"),showHideOpacity:o.classList.contains("jw-album--display-format-cover"),getThumbBoundsFn:e=>{const n=t[e].querySelector(".jw-album-image__image"),i=window.pageYOffset,{x:o,y:r,width:s}=(0,k.Z)(n);return{x:o,y:r+i,w:s}}}).then((t=>{t.listen("beforeChange",(()=>{const i=L(e),o=t.getCurrentIndex(),r=Math.floor(o/i)+1;S(n,r),A(e,r-1)}))}))}(o)}))}))}(0,f.AE)().then((()=>{document.querySelectorAll(".jw-element.jw-album-raster").forEach((e=>{P(e)}))}));var q=n(1618);function I(e){e.preventDefault();const t=this.closest(".jw-element-accordion__item"),n=this.closest(".jw-element-accordion");t&&n&&T(n,t)}function T(e,t){const n=t.querySelector(".jw-element-accordion__content"),i="jw-element-accordion__content--open-start",o="jw-element-accordion__content--open-active",r="jw-element-accordion__content--close-start",s="jw-element-accordion__content--close-active",a=t.open;a?(n.style.setProperty("--computedHeight",`${n.scrollHeight}px`),n.classList.add(r),n.offsetHeight,n.classList.add(s)):(n.classList.add(i),t.open=!0,n.style.setProperty("--computedHeight",`${n.scrollHeight}px`),n.classList.add(o),e.classList.contains("jw-element-accordion--single-open")&&function(e,t){const n=e.querySelectorAll("[open]");n.forEach((n=>{n!==t&&T(e,n)}))}(e,t)),n.addEventListener("transitionend",(()=>{n.classList.remove(i,o,r,s),n.style.setProperty("--computedHeight",""),a?t.open=!1:n.getBoundingClientRect().top<0&&C(t)}),{once:!0})}(0,f.AE)().then((()=>{document.querySelectorAll(".jw-element-accordion").forEach((e=>function(e){if(!e)return;const t=e.querySelectorAll(".jw-element-accordion__item"),n=e.classList.contains("jw-element-accordion--mobile-only")&&window.matchMedia(`(max-width: ${q.Uo.SM}px)`).matches;t.forEach((e=>{const t=e.querySelector(".jw-element-accordion__heading");t.removeEventListener("click",I),t.addEventListener("click",I),n&&(e.open=!1)}))}(e)))}));var O=n(5642);(0,f.AE)().then((()=>{document.querySelectorAll(".jw-accordion .jw-element-accordion__content").forEach((e=>(0,O.D)(e)))})),(0,f.AE)().then((()=>{document.querySelectorAll(".jw-button a").forEach((e=>(0,O.D)(e)))}));var $=n(2395);(0,f.AE)().then((()=>{const e=p()(".jw-comment-module");e.find("form").each((function(){(0,$.Kz)(p()(this).closest(".jw-comment-module"),p()(this))})),e.on("click",".jw-comment-delete",(function(){return!!window.confirm((0,g.w)("Are you sure you want to remove this comment?"))&&((0,$.r_)(p()(this).closest(".jw-comment")),!1)})),e.on("click",".jw-comment-accept",(function(){return(0,$.TY)(p()(this).closest(".jw-comment")),!1})),e.on("click",".jw-comment-react",(function(){return(0,$.tF)(p()(this).closest(".jw-comment-react")),!1})),p()(".jw-comments-pagination a").on("click",(function(){return(0,$.RY)(p()(this).closest(".jw-element")),!1}))})),(0,f.AE)().then((()=>{(0,f.KM)(document.body,"click",".js-download-link",(function(e){const t=e.target.closest(".jw-element").dataset.jwElementId;window.downloadGaFunctions?.[t]?.()}))}));const M="jw-enlarge-image";(0,f.AE)().then((()=>{(0,f.KM)(document.body,"click",`.${M}`,(function(e){e.preventDefault();const t=this.querySelector("img"),n={src:this.getAttribute("href"),w:parseInt(this.getAttribute("data-width"),10),h:parseInt(this.getAttribute("data-height"),10),aspect:parseFloat(this.getAttribute("data-aspect")),thumbAspect:parseFloat(this.getAttribute("data-thumb-aspect"))},i={};Math.abs(n.aspect-n.thumbAspect)<=.001?(n.msrc=t.currentSrc||t.src,i.getThumbBoundsFn=()=>{const e=window.pageYOffset,{top:n,left:i,width:o}=t.getBoundingClientRect();return{x:i,y:n+e,w:o}}):i.showHideOpacity=!0,(0,x.b)([n],i)})),document.querySelectorAll(".jw-image a").forEach((e=>{e.classList.contains(M)||(0,O.D)(e)}))}));const D="pk.eyJ1Ijoiam91d3dlYiIsImEiOiJja3J3MjVqYTEwY2czMnZyeHdkcDgydmZhIn0.PKf6LJG4nFO9PTV6Znx6Vg";function B(e){switch(e){case"satellite":return"mapbox://styles/jouwweb/cjhzxw9za1xmn2st9o8bz5esb";case"dark":return"mapbox://styles/jouwweb/cjhzxue0o4pys2sns2biifu8e";case"night":return"mapbox://styles/jouwweb/cjhzxu0ks3gd52spj19h36lm1";case"silver":return"mapbox://styles/jouwweb/cjhzxtpgn3ghm2sm5n78tn65l";case"normal":return"mapbox://styles/jouwweb/cjhzxuq513oam2st2eo2hl7jk";case"leshine":return"mapbox://styles/jouwweb/cjlcbt3t568s62spg7z05fg5w";case"cali":return"mapbox://styles/jouwweb/cjlcc9rpa697x2sny1h5c07a6";case"labelmaker":return"mapbox://styles/jouwweb/cjlccctpd69c42sm2vs6zifj1";case"decimal":return"mapbox://styles/jouwweb/cjlcczo3927qw2row7wmfpa5k";case"scenic":return"mapbox://styles/jouwweb/cjlcci9xy255d2srq3sve83my";default:throw new Error("Could not get a style given the input.")}}function N(e){Promise.all([n.e(150),n.e(862)]).then(n.bind(n,2494)).then((t=>{let{mapboxgl:n,MapboxLanguage:i}=t;n.accessToken=D;const{controls:o,theme:r,zoom:s,lng:a,lat:c,location:l,locationLng:d,locationLat:u}=e.dataset,m=new n.Map({container:e.id,style:B(r),zoom:Number(s),center:[Number(a),Number(c)],dragPan:!(0,q.b1)()});var h;h=g.Nk,["ar","en","es","fr","de","ja","ko","mul","pt","ru","zh"].indexOf(h.toLowerCase())>-1&&m.addControl(new i({defaultLanguage:g.Nk})),o&&(m.addControl(new n.FullscreenControl),m.addControl(new n.NavigationControl({showCompass:!1}),"bottom-right")),m.on("load",(function(){if(!u||!d)return;const e=function(e){const{location:t,zoom:n,theme:i}=e,o=`https://maps.apple.com/?q=${encodeURIComponent(t)}&z=${encodeURIComponent(n)}`,{foreColor:r,middleColor:s}=function(e){switch(e){case"dark":return{foreColor:"#ffffff",middleColor:"#555"};case"leshine":return{foreColor:"#337ac7",middleColor:"#ffffff"};case"labelmaker":return{foreColor:"#fe0605",middleColor:"#ffffff"};case"cali":return{foreColor:"#4f7b96",middleColor:"#fff"};default:return{foreColor:"#df4348",middleColor:"#fff"}}}(i),a=document.createElement("a");return a.href=o,a.target="_blank",a.className="jw-map__marker",a.innerHTML=`\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n `,a}({theme:r,location:l,zoom:Number(s)}),t=new n.Marker(e);t.setLngLat([Number(d),Number(u)]),t.addTo(m)}))}))}(0,f.AE)().then((()=>{!function(){const e=Array.from(document.getElementsByClassName("jw-map-div"));if(0!==e.length)if(window.IntersectionObserver){const t=(e,t)=>{e.forEach((e=>{e.isIntersecting&&(t.unobserve(e.target),N(e.target))}))},n=new IntersectionObserver(t,{threshold:.1});e.forEach((e=>n.observe(e)))}else e.forEach((e=>N(e)))}()}));var R=n(9013),F=n(6987);function W(e,t){const n=new FormData;n.append("vote",e),n.append("element",t.getAttribute("data-jw-element-id")),(0,R.nv)(window.location.href,n).then((e=>{if(document.body.contains(t)){const n=(0,f.xJ)(e);t.parentNode.replaceChild(n,t)}}))}(0,f.AE)().then((()=>{(0,f.KM)(document.body,"click",".jw-poll-show-results",(function(){const e=this.closest(".jw-element");return(0,R.nv)(window.location.href,{do:"show-results",element:e.dataset.jwElementId}).then((t=>{e.innerHTML=t})),!1})),(0,f.KM)(document.body,"click",".jw-poll-cast-vote",(function(){const e=this.closest(".jw-element"),t=e.querySelector(".jw-poll-cast-vote");(0,F.g)(t,!0);var n;return(0,R.nv)(window.location.href,{element:e.dataset.jwElementId,options:(n=e,Array.from(n.querySelectorAll("input[name=option]:checked")).map((e=>parseInt(e.value,10))))}).then((t=>{e.innerHTML=t})).catch((()=>{window.alert((0,g.w)("Something went wrong. Your vote was not submitted.")),(0,F.g)(t,!1)})),!1}))})),(0,f.AE)().then((()=>{p()(document).on("click",".jw-rating label.jw-element-rating__star",(e=>{W(p()(e.currentTarget).prev().val(),p()(e.currentTarget).closest(".jw-element")[0])})).on("submit",".jw-rating form",(e=>{e.preventDefault();W(p()(e.currentTarget).find("input[name=vote]:checked").val(),p()(e.currentTarget).closest(".jw-element")[0])})).on({mouseenter:e=>{const t=p()(e.currentTarget).closest(".jw-element");t.find(".jw-element-rating__text").hide(),t.find(".jw-element-rating__text--already-voted").show()},mouseleave:e=>{const t=p()(e.currentTarget).closest(".jw-element");t.find(".jw-element-rating__text").hide(),t.find(".jw-element-rating__text--summary").show()}},".jw-element-rating--voted .jw-element-rating__stars")}));var U=n(5277),H=n.n(U);function z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.location;return(e.getAttribute("data-href-template")??"").replace(/\[url]/g,encodeURIComponent(t))}let V=null;function K(e){let t=e.querySelector("div"),n=()=>function(e,t){let n=16/9,i=parseInt(t.dataset?.videoWidth,10),o=parseInt(t.dataset?.videoHeight,10);i&&o&&(n=i/o);let r=e.getBoundingClientRect(),s=Math.ceil(Math.max(r.width,r.height*n)),a=Math.max(r.height,r.width/n);t.style.width=`${s+1}px`,t.style.height=`${a}px`}(e,t);e.querySelector("iframe").addEventListener("load",n),window.addEventListener("resize",n),n()}function Y(e){const t=setInterval((()=>{!function(e){try{return 0===e.contentWindow.document.querySelectorAll("body *").length}catch{return!1}}(e)?clearInterval(t):function(e){e.src=e.src}(e)}),2e3)}function Z(){const e=document.querySelectorAll(".jw-document-wrapper iframe");for(let t=0;t{const t=e.files;if(t)for(const n of t)o.append(e.name,n)})),(0,R.nv)(document.location.href,o).then((t=>{e.innerHTML=t,J(e),e.scrollIntoView({behavior:"smooth",block:"center"})})).catch((t=>{console.error(t);const n=`\n
\n ${(0,g.w)("Oops! Something went wrong.")}\n
\n ${i=t.responseStatus,413===i?(0,g.gB)((0,g.w)("File exceeds the maximum file size (%dMB)."),10):(0,g.w)("An unknown error occurred.")}\n
\n `;var i;e.querySelectorAll(".jw-element-form-error").forEach((e=>e.remove())),e.prepend((0,f.xJ)(n))})).finally((()=>{(0,F.g)(i,!1)}))}))}(0,f.AE)().then((()=>{p()(".share-button--pinterest").length>0&&H()("https://assets.pinterest.com/js/pinit.js"),p()(".share-button").attr("href",(function(){const e=z(this);this.setAttribute("href",e)})).on("click",(function(e){if(p()(this).hasClass("share-button--pinterest"))return e.preventDefault(),void PinUtils.pinAny();const t=z(this);if(t){window.open(t,"_blank","width=500,height=500,top=200,left=200")&&e.preventDefault()}})),async function(){const e=document.querySelectorAll(".fb-like:not([fb-xfbml-state=rendered])");0!==e.length&&(V||(V=new Promise((e=>{const t=g.SP.replace("-","_");H()(`https://connect.facebook.net/${t}/sdk.js#xfbml=1&version=v12.0`,(()=>e()))}))),await V,e.forEach((e=>{if(!window.FB)throw new Error("Facebook SDK was not loaded correctly!");window.FB.XFBML.parse(e.parentNode)})))}()})),(0,f.AE)().then((()=>{const e=document.querySelector(".jw-slideshow-slide-video");if(e){K(e.parentNode)}})),"loading"!==document.readyState?Z():document.addEventListener("DOMContentLoaded",Z),(0,f.AE)().then((()=>{document.querySelectorAll(".jw-contact-form").forEach((e=>{J(e)}))})),(0,f.AE)().then((()=>{document.querySelectorAll(".jw-table table").forEach((e=>(0,O.D)(e)))})),(0,f.AE)().then((()=>{document.querySelectorAll(".jw-element-imagetext-text").forEach((e=>(0,O.D)(e)))}));var G=n(129),Q=n.n(G);var X=n(2817);function ee(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var te=0;function ne(e){return"__private_"+te+++"_"+e}var ie=ne("element"),oe=ne("toggleButton"),re=ne("popoverContainer"),se=ne("popoverContent"),ae=ne("checkboxes"),ce=ne("submitButton"),le=ne("name"),de=ne("onFilter"),ue=ne("closeIfTargetOutside"),me=ne("togglePopover"),he=ne("openPopover"),pe=ne("closePopover"),fe=ne("applyFilter");class we{constructor(e,t){let{onFilter:n}=t;Object.defineProperty(this,ie,{writable:!0,value:void 0}),Object.defineProperty(this,oe,{writable:!0,value:void 0}),Object.defineProperty(this,re,{writable:!0,value:void 0}),Object.defineProperty(this,se,{writable:!0,value:void 0}),Object.defineProperty(this,ae,{writable:!0,value:void 0}),Object.defineProperty(this,ce,{writable:!0,value:void 0}),Object.defineProperty(this,le,{writable:!0,value:void 0}),Object.defineProperty(this,de,{writable:!0,value:void 0}),Object.defineProperty(this,ue,{writable:!0,value:e=>{ee(this,ie)[ie].contains(e.target)||ee(this,pe)[pe]()}}),Object.defineProperty(this,me,{writable:!0,value:()=>{ee(this,re)[re].classList.contains("is-hidden")?ee(this,he)[he]():ee(this,pe)[pe]()}}),Object.defineProperty(this,he,{writable:!0,value:()=>{ee(this,re)[re].classList.remove("is-hidden"),ee(this,oe)[oe].setAttribute("aria-expanded","true");const e=document.body.getBoundingClientRect(),t=ee(this,re)[re].getBoundingClientRect();ee(this,se)[se].classList.toggle("jw-popover__content--align-right",t.left+210>=e.right),document.addEventListener("click",ee(this,ue)[ue]),document.addEventListener("focusin",ee(this,ue)[ue])}}),Object.defineProperty(this,pe,{writable:!0,value:()=>{ee(this,re)[re].classList.add("is-hidden"),ee(this,oe)[oe].setAttribute("aria-expanded","false"),document.removeEventListener("click",ee(this,ue)[ue]),document.removeEventListener("focusin",ee(this,ue)[ue])}}),Object.defineProperty(this,fe,{writable:!0,value:()=>{ee(this,de)[de](this.getName(),this.getCheckedOptions()),ee(this,pe)[pe]()}}),ee(this,de)[de]=n,ee(this,ie)[ie]=e,ee(this,oe)[oe]=e.querySelector(".js-filter-toggle"),ee(this,re)[re]=e.querySelector(".jw-popover-container"),ee(this,se)[se]=e.querySelector(".jw-popover__content"),ee(this,ae)[ae]=e.querySelectorAll('input[type="checkbox"]'),ee(this,ce)[ce]=e.querySelector(".js-filter-submit");const i=e.querySelector("fieldset");ee(this,le)[le]=i.getAttribute("name"),ee(this,oe)[oe].addEventListener("click",ee(this,me)[me]),ee(this,ce)[ce].addEventListener("click",ee(this,fe)[fe])}getName(){return ee(this,le)[le]}getCheckedOptions(){let e=[];return ee(this,ae)[ae].forEach((t=>{t.checked&&e.push(t.name)})),e}}function ge(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var be=0;function _e(e){return"__private_"+be+++"_"+e}var ve=_e("select"),ye=_e("onSort");class je{constructor(e,t){let{onSort:n}=t;Object.defineProperty(this,ve,{writable:!0,value:void 0}),Object.defineProperty(this,ye,{writable:!0,value:void 0}),ge(this,ve)[ve]=e.querySelector("select"),ge(this,ye)[ye]=n,ge(this,ve)[ve].addEventListener("change",(()=>{ge(this,ye)[ye](this.getCurrentSorting())}))}getCurrentSorting(){return ge(this,ve)[ve].value}}function Ee(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Se=0;function Ce(e){return"__private_"+Se+++"_"+e}var xe=Ce("element"),ke=Ce("currentSorting"),Le=Ce("currentPage"),Ae=Ce("currentFilter"),Pe=Ce("pagination");class qe{constructor(e){Object.defineProperty(this,xe,{writable:!0,value:void 0}),Object.defineProperty(this,ke,{writable:!0,value:null}),Object.defineProperty(this,Le,{writable:!0,value:null}),Object.defineProperty(this,Ae,{writable:!0,value:{}}),Object.defineProperty(this,Pe,{writable:!0,value:void 0}),this.bindElement(e)}bindElement(e){Ee(this,xe)[xe]=e,this.bindPagination(e.querySelector(".jw-pagination")),this.bindSorting(e.querySelector(".js-product-gallery-sorting")),this.bindFilters(e.querySelectorAll(".js-product-gallery-filter")),(0,X.h)(e)}bindPagination(e){e&&(Ee(this,Pe)[Pe]?Ee(this,Pe)[Pe].replaceElement(e):Ee(this,Pe)[Pe]=E(e,{onPaginate:async e=>{Ee(this,Le)[Le]=e-1,await this.update()}}),Ee(this,Le)[Le]=y(e)-1)}bindSorting(e){if(!e)return;const t=new je(e,{onSort:e=>{Ee(this,ke)[ke]=e,Ee(this,Le)[Le]=0,this.update()}});Ee(this,ke)[ke]=t.getCurrentSorting()}bindFilters(e){e.forEach((e=>{const t=new we(e,{onFilter:(e,t)=>{Ee(this,Ae)[Ae][e]=t,Ee(this,Le)[Le]=0,this.update()}});Ee(this,Ae)[Ae][t.getName()]=t.getCheckedOptions()}))}async update(){const e=Ee(this,xe)[xe];e.classList.add("jw-element-is-loading"),C(e);try{const t={page:Ee(this,Le)[Le],sort:Ee(this,ke)[ke],filter:Ee(this,Ae)[Ae]};!function(e,t){const n=Q().parse(window.location.search,{ignoreQueryPrefix:!0,parseArrays:!1}),i={...n,ep:{...n.ep,[e]:t}},o=Q().stringify(i,{addQueryPrefix:!0}),r=window.location.pathname+o;window.history.replaceState({},window.title,r)}(e.dataset.jwElementId,t);const[n]=await Promise.all([(0,R.nv)(window.location.href,{ep:{[e.dataset.jwElementId]:t}}),new Promise((e=>{let t;const n=function(){window.clearTimeout(t),t=setTimeout((function(){window.removeEventListener("scroll",n),e()}),66)};window.addEventListener("scroll",n,!1),setTimeout((()=>{e()}),3e3)}))]),i=function(e,t){const n=p()(t);return p()(e).replaceWith(n),n[0]}(e,n);this.bindElement(i)}finally{e.classList.remove("jw-element-is-loading")}}}async function Ie(e,t){t.addClass("jw-element-is-loading");try{const n=await(0,R.nv)(window.location.href,{ep:{[t.data("jw-element-id")]:{page:e}}});t.find(".jw-element-news-content").replaceWith(p()(n).find(".jw-element-news-content"))}finally{t.removeClass("jw-element-is-loading")}}function Te(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(0,f.AE)().then((function(){document.querySelectorAll(".jw-product-gallery").forEach((e=>{new qe(e)}))})),(0,f.AE)().then((()=>{const e=document.getElementsByClassName("jw-news");for(let t=0;t{C(n),await Ie(e-1,p()(n))}})}}));var Oe=0;function $e(e){return"__private_"+Oe+++"_"+e}var Me=$e("currentFilter");class De{constructor(e){Object.defineProperty(this,Me,{writable:!0,value:{}});e.querySelectorAll(".js-search-product-filter").forEach((e=>{const t=new we(e,{onFilter:(e,t)=>{Te(this,Me)[Me][e]=t,this.update()}});Te(this,Me)[Me][t.getName()]=t.getCheckedOptions()}))}update(){const e=Q().parse(window.location.search,{ignoreQueryPrefix:!0,parseArrays:!1});delete e.filter;const t=Q().stringify({...e,filter:Te(this,Me)[Me]});window.location.href=window.location.pathname+"?"+t}}(0,f.AE)().then((function(){document.querySelectorAll(".jw-search-results").forEach((e=>{new De(e)}))}));var Be=n(5101),Ne=n(4919),Re=n.n(Ne);const Fe=[];let We;function Ue(){return p()("body").hasClass("jw-menu-is-collapsed")}function He(e){p()("body").toggleClass("jw-menu-is-collapsed",e),p()(".jw-mobile-toggle > .jw-icon-burger").toggleClass("jw-icon-burger--cross",!e)}(0,f.AE)().then((()=>{const e=p()("#jw-menu");if(0===e.length)return;(0,O.D)(document.querySelector("#jw-menu"));let t,n,o=p()(".jw-menu-collapse");0===o.length&&(o=e);let r=p()(window).width();if(void 0!==e.data("javascript")&&0===e.data("javascript"))return;const s=p()("body"),a="jw-menu-is-mobile",c="jw-menu-is-desktop";function l(){return!!e.data("state")&&e.data("state")}function d(t){s.toggleClass(a,"mobile"===t),s.toggleClass(c,"desktop"===t),e.data("state",t)}p()(document).on("click","body.jw-menu-is-mobile:not(.jw-menu-is-collapsed)",(e=>{if(!t?.contains(e.target)){const e=getComputedStyle(t).position;if("absolute"===e||"fixed"===e)return He(!0),!1}}));let u=500,m=800;function h(){const t=e.find("> .jw-menu-item");if(0===t.length)return!1;t.addClass("hidden"),t.first().removeClass("hidden"),t.first().offset();const n=t.first().offset().top;t.removeClass("hidden"),t.last().offset();const i=t.first().offset().top;return Math.abs(i-n)>5}function f(){"desktop"===l()&&(p()("body").toggleClass("jw-is-menu-vertical-overflow",h()).removeClass("jw-is-menu-multiline").toggleClass("jw-is-menu-multiline",function(){const t=e.find("> .jw-menu-item:visible");if(0===t.length)return!1;if(/Trident/.test(navigator.userAgent)){const e=t.parents(".jw-menu")[0].parentNode,n=e.parentNode;if(e.offsetWidth/n.offsetWidth>.8)return!0}const{bottom:n}=t.first()[0].getBoundingClientRect(),{top:i}=t.last()[0].getBoundingClientRect();return Math.floor(n)<=Math.ceil(i)}()),p()("#jw-menu .jw-popover").each((function(){const e=p()(this).parents(".jw-menu-item"),t=e.offset().left-p()(".js-topbar-content-container").offset().left0&&n.is(":visible")){const i=n[0].style.width;if(i||(n[0].style.width=n.css("max-width")),n[0].clientWidth>0){const i=n[0].querySelector(".textFitted");i&&(i.style.fontSize=`${t}px`),Re()(n[0],{minFontSize:e,maxFontSize:t,widthOnly:!0})}n[0].style.width=i}}function g(){if(0===document.documentElement.clientWidth)return;const n=l();p()("body").removeClass("jw-is-menu-vertical-overflow");const i=function(){const t=document.documentElement.clientWidth;if(e.hasClass("jw-menu-vertical"))return tm)return"desktop";const n=l();let i=!1;d("desktop"),Ue()&&(i=!0,He(!1)),e[0].offsetHeight;const o=h();d(n),i&&He(!0);const r=o?"mobile":"desktop";return"mobile"===r?u=Math.max(u,t):"desktop"===r&&(m=Math.min(m,t)),r}();p()(window).trigger("jw.menu-reload"),n!==i&&("desktop"===n?0!==e.data("superfish")&&e.superfish("destroy"):"mobile"===n&&(He(!1),e.off("click")),d(i),"desktop"===i?(f(),0!==e.data("superfish")&&(He(!1),e.show().superfish({hoverClass:"jw-menu-is-hover",speed:150,speedOut:150,onHandleTouch(){if("MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)return!1},onBeforeShow(){if(0===p()(this).length)return;const e=p()(window).width(),t=p()(this).parent().width(),n=p()(this).parent().offset().left,i=p()(this).width(),o=p()(this).parent().parent().is("#jw-menu")&&n+i-e;if(o>0){const e=5;p()(this).css("transform",`translate(${-(o+e)}px, 0)`)}n+t+i>e&&p()(this).closest(".jw-menu-item").addClass("jw-menu-is-overflowing").find(".jw-menu-item").addClass("jw-menu-is-overflowing"),n(He(!Ue()),!1)));const r=p()(".jw-mobile-search-button"),s=p()(".jw-mobile-menu-search"),a=s.find(".js-cancel-search"),c=s.find(".jw-mobile-menu-search__input");r.off("click").on("click",(()=>{s.removeClass("jw-mobile-menu-search--hidden"),setTimeout((()=>c.trigger("focus")),50)})),a.off("click").on("click",(()=>{s.addClass("jw-mobile-menu-search--hidden"),c.trigger("blur")}));let l=!1;o.off("touchstart click").on("touchstart click",".jw-arrow",(function(){if(!l){l=!0,setTimeout((()=>{l=!1}),100);const e=p()(this).closest(".jw-menu-item"),t=e.children(".jw-submenu:first");e.toggleClass("jw-submenu-is-opened"),t.slideToggle(200)}return!1})),o.on("click",".jw-menu-link",(()=>{He(!0)}))}(),setTimeout((()=>{window.JOUWWEB&&window.JOUWWEB.reloadSlideshow&&window.JOUWWEB.reloadSlideshow(),Fe.forEach((e=>e()))}),1))}We=function(){g(),f(),w()},p()(window).on("resize",function(e,t){let n=null;return function(){for(var i=arguments.length,o=new Array(i),s=0;s{p()(window).width()!==r&&(r=p()(window).width(),e.apply(this,o))}),t)}}(We,150)),p()(document).on("jw.loaded",We),p()(document).on("jw.cart-mount",We),g(),document.fonts?.ready?.then(We),setTimeout(We,0)})),(0,f.AE)().then((()=>{const e=document.querySelector(".jw-menu-search-item");if(!e)return;const t=e.querySelector(":scope > .jw-menu-link"),n=e.querySelector(".jw-popover-container"),i=e.querySelector(".jw-popover-backdrop"),o=e.querySelector(".jw-search__input");function r(e){n.classList.toggle("is-hidden",!e),e&&setTimeout((()=>{o.focus()}),50)}t.addEventListener("click",(e=>{e.preventDefault(),r(!0)})),i.addEventListener("click",(e=>{e.preventDefault(),r(!1)}))}));n(1184);let ze=0;function Ve(e,t){switch(e){case"facebook":return`https://facebook.com/${t}`;case"twitter":return`https://x.com/${t}`;case"pinterest":return`https://pinterest.com/${t}`;case"instagram":return`https://instagram.com/${t}`;case"youtube":return`https://youtube.com/${t}`;case"tumblr":return`https://${t}.tumblr.com/`;case"linkedin":return`https://linkedin.com/${t}`;case"tiktok":return`https://tiktok.com/@${t}`;case"telegram":return`https://t.me/${t}`;case"discord":return`https://discord.gg/${t}`;default:throw new Error(`Unknown social network "${String(e)}"`)}}function Ke(e){switch(e){case"facebook":return(0,g.w)("Facebook");case"twitter":return(0,g.w)("X");case"pinterest":return(0,g.w)("Pinterest");case"instagram":return(0,g.w)("Instagram");case"youtube":return(0,g.w)("YouTube");case"tumblr":return(0,g.w)("Tumblr");case"linkedin":return(0,g.w)("LinkedIn");case"tiktok":return(0,g.w)("TikTok");case"telegram":return(0,g.w)("Telegram");case"discord":return(0,g.w)("Discord");default:throw new Error(`Unknown social network "${String(e)}"`)}}(0,u.D)((function(e){let{scrollY:t,scrollHeight:n,frameHeight:i,scrollStopped:o}=e;const r=document.querySelector(".jw-bottom-bar__container");if(!r)return;r.classList.toggle("jw-bottom-bar__container--is-scrolling",!o);const s=r.getBoundingClientRect().height;ze=Math.min(ze,t);let a=Math.min(t-ze,s);o&&(a=a>s/2?s:0,ze=t-a),a=Math.min(a,n-i-t),r.style.transform=`translate3d(0, ${a}px, 0)`,ze=Math.max(ze,t-a)}));let Ye=function(e){return e.EMAIL="email",e.PHONE="phone",e.LOCATION="location",e.SOCIAL="social",e.WHATSAPP="whatsapp",e}({});function Ze(e,t){const n=Object.values(Ye).filter((n=>function(e,t){return!!e?.active&&(t?null!==e.value:null!==e.value&&""!==e.value)}(e[n],t)));return n.length>5&&n.splice(n.indexOf(Ye.LOCATION),1),n.map((n=>function(e){let{href:t,icon:n,label:i,disable:o=!1,newTab:r=!1}=e;return`\n \n \n ${i}\n \n `}(function(e,t,n){const i=t[e].value;switch(e){case Ye.EMAIL:return{href:`mailto:${i}`,icon:"mail",label:(0,g.w)("Email"),disable:n};case Ye.PHONE:return{href:`tel:${i}`,icon:"phone",label:(0,g.w)("Phone"),disable:n};case Ye.LOCATION:return{href:`https://maps.apple.com/?daddr=${i}`,icon:"location",label:(0,g.w)("Map"),newTab:n};case Ye.SOCIAL:return{href:Ve(t.social.network,i),icon:t.social.network,label:Ke(t.social.network),newTab:n};case Ye.WHATSAPP:return{href:(o=i,`https://api.whatsapp.com/send?phone=${encodeURIComponent(o)}`),icon:"whatsapp",label:(0,g.w)("WhatsApp"),disable:n}}var o}(n,e,t)))).join("")}function Je(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.querySelector(".jw-bottom-bar__spacer");if(!n)return;let i=document.querySelector(".jw-website-spacer--mobile-bar");null===i&&(i=document.createElement("div"),i.classList.add("jw-website-spacer","jw-website-spacer--mobile-bar"),n.appendChild(i));const o=function(){let e=document.querySelector(".jw-mobile-bar-container");return null===e&&(e=document.createElement("div"),e.classList.add("jw-mobile-bar-container"),document.querySelector(".jw-bottom-bar__container").appendChild(e)),e}();o.classList.toggle("hidden",!e.enabled),i.classList.toggle("hidden",!e.enabled),e.enabled&&(o.innerHTML=function(e,t){return`\n
\n ${Ze(e,t)}\n
\n `}(e,t))}(0,f.AE)().then((()=>{Je(i.default.website.mobileBar)})),(0,f.AE)().then((()=>{!function(){const e=document.querySelector(".jw-preview-link__btn-copy"),t=document.querySelector(".jw-preview-link__btn-copy-text");if(!e||!t)return;const n=e?.closest(".tooltip"),i=()=>{const t=document.querySelector(".jw-preview-link__preview-link");if(!t)return;const n=e?.closest(".tooltip");!async function(e,t){if(navigator.clipboard)await navigator.clipboard.writeText(e);else{const{activeElement:e}=document;t.focus(),t.select();const n=document.execCommand("copy");if(e instanceof HTMLElement&&e.focus(),!n)throw new Error("fallback copy was unsuccessful")}}(t.value,t),setTimeout((()=>{n?.classList.toggle("tooltip--open",!0)}),200)};document.addEventListener("click",(o=>{const r=o.target;r instanceof Element&&(r===e||e?.contains(r)||r===t?i():n?.classList.remove("tooltip--open"))}))}(),function(){const e=document.querySelector(".jw-preview-link__btn-close");if(!e)return;e.addEventListener("click",(function(e){const t=new Date;t.setTime(t.getTime()+2592e3),document.cookie="JwHidePublishPopup=true; Max-Age="+t.toUTCString()+"; SameSite=None; Secure";const n=e.target;n?.closest(".jw-publish-promo")?.classList.add("jw-publish-promo--hidden")}))}()})),(0,f.AE)().then((()=>{i.default.scripts&&(i.default.scripts.indexOf("fotorama")>-1&&n.e(322).then(n.bind(n,4868)).then((()=>{document.querySelectorAll(".fotorama").forEach((e=>{if(e.dataset.fotoramaFullscreenGenerated)return;const t=p()(e),n=t.data("fotorama");if(!n)return;e.dataset.fotoramaFullscreenGenerated="true";const i=n.options.fit;t.on("fotorama:fullscreenenter",((e,t)=>{t.setOptions({fit:"contain"})})),t.on("fotorama:fullscreenexit",((e,t)=>{t.setOptions({fit:i})}))}))})),i.default.scripts.indexOf("audio")>-1&&Promise.all([n.e(679),n.e(482),n.e(371)]).then(n.bind(n,4651)),i.default.scripts.indexOf("video/plyr")>-1&&Promise.all([n.e(679),n.e(482),n.e(651)]).then(n.bind(n,437)),i.default.scripts.indexOf("website-rendering/slideshow")>-1&&n.e(561).then(n.bind(n,993)),i.default.scripts.indexOf("website-rendering/webshop")>-1&&n.e(0).then(n.bind(n,4292)),i.default.scripts.indexOf("website-rendering/message-bar")>-1&&n.e(853).then(n.bind(n,5155)))})),(0,f.AE)().then((()=>{(0,Be.Wv)(),i.default.cookieConsent&&i.default.cookieConsent?.autoOpen&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((t,i)=>{n.e(441).then(n.t.bind(n,7778,23)).then((()=>{cookieconsent?.initialise({...e,autoOpen:!1},t,i)}))}))}({...i.default.cookieConsent,onStatusChange(e){"allow"===e&&window?.gtag&&window.gtag("consent","update",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"})}}).then((e=>e.open())),(0,F.K)()}))},1002:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var i=n(1313);const o=`\n`;let r;async function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r||(document.body.insertAdjacentHTML("beforeend",o),r=document.querySelector(".pswp"));const s={history:!1,bgOpacity:.7,errorMsg:`
${(0,i.w)('The image could not be loaded.')}
`,shareButtons:[{id:"facebook",label:` ${(0,i.wx)("share facebook","Share")}`,url:"https://www.facebook.com/sharer/sharer.php?u={{url}}"},{id:"twitter",label:` ${(0,i.wx)("share twitter","Share")}`,url:"https://x.com/intent/post?text={{text}}&url={{url}}"},{id:"pinterest",label:` ${(0,i.wx)("share pinterest","Pin it")}`,url:"https://www.pinterest.com/pin/create/button/?url={{url}}&media={{image_url}}&description={{text}}"}],...t},{PhotoSwipe:a,PhotoSwipeUI_Default:c}=await Promise.all([Promise.all([n.e(667),n.e(799)]).then(n.t.bind(n,8832,23)),Promise.all([n.e(667),n.e(799)]).then(n.t.bind(n,8411,23)),Promise.all([n.e(667),n.e(799)]).then(n.bind(n,9076))]).then((e=>{let[{default:t},{default:n}]=e;return{PhotoSwipe:t,PhotoSwipeUI_Default:n}})),l=new a(r,c,e,s);return l.init(),l}},4019:function(e,t,n){"use strict";n.d(t,{D:function(){return l},w:function(){return u}});var i=n(6863),o=n(353);function r(){return!function(){try{return!window.top?.location.hostname}catch{return!0}}()&&window.location!==window.parent.location}const{getFrameService:s,extendFrameService:a}=function(e,t,n){function i(t){n()[e]=t}function o(){return e in n()||i(t),n()[e]}return{getFrameService:o,setFrameService:i,extendFrameService:function(e){i(Object.assign({},o(),e))}}}("parentFrameService",{},(function(){return r()?window.parent:window}));const c=[];function l(e){c.push(e)}const d=()=>document.body.classList.contains("jw-is-backend");function u(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(0===c.length)return;const t={...function(){if(d()){const e=s().getFrameScrollContainer();return{scrollY:e.scrollY,scrollHeight:e.scrollHeight,frameHeight:e.frameHeight}}return{scrollY:window.scrollY,scrollHeight:window.document.documentElement.scrollHeight,frameHeight:window.innerHeight}}(),scrollStopped:e};c.forEach((e=>{e(t)}))}let m=null;function h(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];null!==m&&window.cancelAnimationFrame(m),m=window.requestAnimationFrame((()=>u(e)))}function p(){f(),h()}const f=(0,i.Z)((()=>{h(!0)}),300);(0,o.AE)().then((()=>{u(),d()?s().getFrameScrollContainer().addScrollListener(p):(window.addEventListener("scroll",p),window.addEventListener("resize",p))}))},1184:function(e,t,n){"use strict";n.d(t,{Y:function(){return c}});var i=n(7889),o=n.n(i),r=n(4019);let s=null,a=null;function c(){s=document.getElementById("jw-slideshow"),a=document.querySelectorAll(".jw-slideshow-slide-content")}function l(e,t){let{slideshowY:n,slideshowHeight:i,scrollY:o}=t;const r=parseFloat(e.getAttribute("data-background-position-x")),s=parseFloat(e.getAttribute("data-background-position-y")),a=Math.max(n-o,-i),c=`calc(${100*s}% + ${.5*(Math.max(a,0)-a)}px)`;e.style.backgroundPosition=`\n ${100*r}%\n ${c}\n `,e.style.backgroundAttachment="scroll";const l=e.querySelector(".jw-slideshow-slide-video");l&&(l.style.left=100*r+"%",l.style.top=c,l.style.transform=`translate(-${100*r}%, -${c})`)}function d(e,t){let{slideshowY:n,slideshowHeight:i,scrollY:o}=t;const r=Math.min(Math.max(o-n,0),i)/i,s=1-Math.min(3*r,1);e.querySelector(".bx-caption-wrapper").style.opacity=s}(0,r.D)((function(e){let{scrollY:t}=e;if(!s)return;const n=s.offsetTop,i=s.getBoundingClientRect().height,r=o()("#jw-slideshow").hasClass("jw-slideshow--parallax"),c=s?.offsetWidth===document.body.offsetWidth;for(let e=0;e{if((e=Number(e))>0?this.input.max=String(e):this.input.removeAttribute("max"),this.input.disabled=0===e,this.select.disabled=0===e,e>0&&this.getQuantity()>e&&(this.input.value=String(e),this.input.dispatchEvent(new CustomEvent("change"))),!this.selectRendered)return;for(;this.select.firstChild;)this.select.removeChild(this.select.firstChild);const t=e>0?Math.min(this.maxShownQuantity+1,e):this.maxShownQuantity+1;for(let e=1;e<=t;e++){const t=document.createElement("option");t.value=String(e),e===Number(this.input.value)&&(t.selected=!0),e!==this.maxShownQuantity+1?t.textContent=String(e):t.textContent=(0,i.w)("More"),this.select.appendChild(t)}},this.getQuantity=()=>Number(this.input.value),this.element=e,this.props=t,this.input=this.element.querySelector(".product-quantity-input__input"),this.select=this.element.querySelector(".product-quantity-input__select"),this.remove=this.element.querySelector(".product-quantity-input__remove"),this.maxShownQuantity=Number(this.element.dataset.maxShownQuantity??10),this.productVariantId=Number(this.element.dataset.productVariantId),this.initialize()}initialize(){this.input.addEventListener("change",(()=>{this.props.onChange?.(this.getQuantity())})),this.getQuantity()<=this.maxShownQuantity&&(this.select.classList.remove("hidden"),this.input.classList.add("hidden"),this.select.addEventListener("change",(()=>{Number(this.select.value)===this.maxShownQuantity+1&&(this.select.classList.add("hidden"),this.input.classList.remove("hidden"),this.input.focus(),this.selectRendered=!1),this.input.value=this.select.value,this.input.dispatchEvent(new CustomEvent("change"))})),this.selectRendered=!0),this.remove?.addEventListener("click",(()=>{this.props.onRemove?.()})),this.setMaxQuantity(Number(this.element.dataset.maxQuantity??0))}}},8962:function(e,t,n){"use strict";n.d(t,{Hu:function(){return m},do:function(){return f},Eh:function(){return c},c8:function(){return d},oZ:function(){return p},l9:function(){return s},$R:function(){return h}});var i=n(7259),o=n(9013);function r(e){return{type:"RECEIVE_CART_DATA",cartData:e}}function s(){return{type:"TOGGLE_INLINE_CART"}}let a=0;function c(){return(e,t)=>{const n=t();return n.cart.data?Promise.resolve(n.cart.data):i.default.cart?(e(r(i.default.cart)),Promise.resolve(i.default.cart)):e(d()).then((()=>n.cart.data))}}let l=null;function d(){return(e,t)=>{const n=t();if(n.cart.meta)return Promise.resolve(n.cart.meta);if(l&&"fetching"===n.cart.status)return l;e({type:"FETCH_CART_DATA"});const i=++a;return l=(0,o.ZV)("/_api/webshop/cart").then((t=>e(u(i,t)))).then((()=>n.cart.meta)),l}}function u(e,t){return n=>(e===a&&(n(r(t.data)),n({type:"RECEIVE_CART_META",cartMeta:t.meta})),t.data)}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return async i=>{const r=++a,s=await function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,o.ty)("/_api/webshop/cart/add",{id:e.id,fields:t,quantity:n})}(e,t,n);i(u(r,s));const c=s.data.products.find((e=>e.id===s.addedCartProductId));if(!c)throw Error("Added product was not contained in response.");return c}}function h(e,t){return async n=>{const i=++a,r=await function(e,t){return(0,o.ty)("/_api/webshop/cart/update-quantity",{id:e,quantity:t})}(e,t);return n(u(i,r))}}function p(e){return async t=>{const n=++a,i=await function(e){return(0,o.ty)("/_api/webshop/cart/set-coupon",{couponCode:e})}(e);return t(u(n,i)),i}}function f(e){return async t=>{var n,i;return t(u(++a,await(n=e.shippingCountryCode,i=e.shippingChoiceCode,(0,o.ty)("/_api/webshop/cart/estimate-shipping",{shippingCountryCode:n,shippingChoiceCode:i}))))}}},2817:function(e,t,n){"use strict";n.d(t,{h:function(){return x}});var i=n(9013),o=n(1313),r=n(8962),s=n(8388),a=n(7259),c=n(7097),l=n(5505);const d=e=>{let{title:t,details:n,imageUrl:i,addedQuantity:r,modalTitle:a,actionButtonText:c,actionButtonUrl:l}=e;return`\n
\n ${i?`\n
\n \n
\n `:""}\n
\n
${(0,s.Z)(a)}
\n
\n

\n ${(0,s.Z)(t)}\n

\n ${r?`\n ${r>1?` × ${r}`:""}\n `:""}\n
\n ${n?`
${(0,s.Z)(n)}
`:""}\n
\n
\n\n
\n \n \n ${(0,s.Z)(c)}\n \n
\n`};var u=n(6987);class m{constructor(e){this.element=void 0,this.form=void 0,this.email=void 0,this.productVariant=void 0,this.element=e,this.form=this.element.querySelector("form"),this.email=this.element.querySelector('input[name="email"]'),this.productVariant=this.element.querySelector('input[name="productVariant"]'),this.form.addEventListener("submit",this.register.bind(this))}update(e){this.productVariant.value=String(e.id),this.element.classList.toggle("hidden",!e.limited||e.stock>0),this.element.querySelector(".back-in-stock__form").classList.remove("hidden"),this.element.querySelector(".js-back-in-stock__thanks").classList.add("hidden"),this.element.querySelector(".js-back-in-stock__error").classList.add("hidden")}async register(e){e.preventDefault();const t=await(0,i.ty)("_api/webshop/back-in-stock/register",{email:this.email.value,productVariant:this.productVariant.value});this.element.querySelector(".back-in-stock__form").classList.toggle("hidden",t.success),this.element.querySelector(".js-back-in-stock__thanks").classList.toggle("hidden",!t.success);const n=this.element.querySelector(".js-back-in-stock__error");return n.classList.toggle("hidden",t.success),!t.success&&t.message&&(n.innerText=t.message),t}}var h=n(1002);class p{constructor(e,t){this.element=void 0,this.mainImageElement=void 0,this.element=e,t.withPhotoSwipe&&this.initPhotoSwipe();const n=e.querySelector(".product-image__image--main");if(!n)throw new Error("no main image element");this.mainImageElement=n}setSelectedVariant(e){if(this.element.querySelectorAll(".product-image__image--variant").forEach((e=>{e.remove()})),!e.image)return void(this.mainImageElement.style.visibility="visible");this.mainImageElement.style.visibility="hidden";const t=document.createElement("img");t.classList.add("product-image__image","product-image__image--variant"),t.src=e.image.url,t.sizes=this.mainImageElement.sizes,e.image.width&&e.image.height&&(t.width=e.image.width,t.height=e.image.height),this.element.append(t)}initPhotoSwipe(){const e=this.element.getAttribute("data-photoswipe-items");if(e){const t=JSON.parse(e);this.element.addEventListener("click",(()=>{(0,h.b)(t)}))}}}var f=n(7889),w=n.n(f),g=n(7688),b=n(1678),_=n(6787),v=n(5101);function y(e,t,n){e.tabIndex=n?0:-1,t?.classList.toggle("image-gallery__thumbnail-item--active",n),t?.setAttribute("aria-disabled",n?"true":"false")}class j{constructor(e,t){this.slideItems=void 0,this.slider=null,this.sliderInitialized=!1,this.initialSlideIndex=null,this.mainElement=void 0,this.prevSlideControl=void 0,this.nextSlideControl=void 0,this.slidesContainer=void 0,this.mainElement=document.querySelector(".image-gallery__main"),this.prevSlideControl=e.querySelector(".image-gallery__control--prev"),this.nextSlideControl=e.querySelector(".image-gallery__control--next");const n=e.querySelectorAll(".image-gallery__slide-item");this.slideItems=Array.from(n,(t=>{const n={id:Number(t.dataset.imageId),url:t.href,width:Number(t.dataset.width),height:Number(t.dataset.height)},i=e.querySelector(`.image-gallery__thumbnail-item[data-image-id="${n.id}"]`),o=t.querySelector("img");if(!o)throw new Error("slide does not contain an image element");return{image:n,thumbnailElement:i,slideElement:t,slideImageElement:o}}));const i=e.querySelector(".image-gallery__slides");if(!i)throw new Error("no slides container element");this.slidesContainer=i,this.initialize(e,t)}async initialize(e,t){this.slider=await(0,_.u)(this.slidesContainer,{pager:!1,controls:!1,infiniteLoop:!1,touchEnabled:!1,slideMargin:8,ariaLive:!1,ariaDisabled:!0,onSliderLoad:()=>{this.slidesContainer.querySelectorAll(".bx-clone .image-gallery__slide-item").forEach((e=>{y(e,null,!1)}))},onSlideBefore:(e,t,n)=>{(0,g.Z)(void 0!==t&&void 0!==n);const i=this.slideItems[t],o=this.slideItems[n];y(i.slideElement,i.thumbnailElement,!1),y(o.slideElement,o.thumbnailElement,!0);const r=0===n,s=n===this.slideItems.length-1;this.prevSlideControl?.classList.toggle("image-gallery__control--disabled",r),this.nextSlideControl?.classList.toggle("image-gallery__control--disabled",s)}}),this.slideItems.forEach(((e,n)=>{e.thumbnailElement?.addEventListener("click",(e=>{e.preventDefault(),this.slider.goToSlide(n)})),t.withPhotoSwipe&&e.slideElement.addEventListener("click",(t=>{t.preventDefault(),this.openPhotoSwipe(e.image)}))})),this.prevSlideControl?.addEventListener("click",(()=>{this.slider.goToPrevSlide()})),this.nextSlideControl?.addEventListener("click",(()=>{this.slider.goToNextSlide()}));const n=e.closest(v.ND);n&&w()(n).on("jw.responsive-container-resize",(()=>{this.slider.redrawSlider()})),this.sliderInitialized=!0,null!==this.initialSlideIndex&&this.goToSlide(this.initialSlideIndex)}goToSlide(e){this.sliderInitialized?this.slider.goToSlide(e):this.initialSlideIndex=e}setSelectedVariant(e){const t=e.image;if(t){const e=this.slideItems.findIndex((e=>e.image.id===t.id));-1!==e&&this.goToSlide(e)}}async openPhotoSwipe(e){const t=await(0,h.b)(this.slideItems.map((e=>({src:e.image.url,msrc:e.slideImageElement.currentSrc,w:e.image.width??void 0,h:e.image.height??void 0}))),{index:e?this.slideItems.findIndex((t=>t.image.id===e.id)):0,getThumbBoundsFn:e=>{const{slideImageElement:t}=this.slideItems[e],n=window.pageYOffset,{x:i,y:o,width:r,height:s}=(0,b.Z)(t);return{x:i,y:o+n,w:r,height:s}},hideAnimationDuration:333});t.listen("close",(()=>{const e=this.slider.getCurrentSlide();this.slideItems[e].slideElement.focus()}));let n=-1;t.listen("initialZoomIn",(()=>{clearTimeout(n),this.mainElement?.style.setProperty("opacity","0")})),t.listen("initialZoomOut",(()=>{n=window.setTimeout((()=>{this.mainElement?.style.setProperty("opacity","1")}),333)})),t.listen("beforeChange",(()=>{const e=t.items.indexOf(t.currItem);this.slider.goToSlide(e)}))}}var E=n(9199),S=n(7465);class C{constructor(e,t){this.element=void 0,this.props=void 0,this.product=void 0,this.backInStockForm=void 0,this.variantSelect=void 0,this.propertySelects=void 0,this.addButton=void 0,this.wishlistButton=void 0,this.prices=void 0,this.freeShippingMotivators=void 0,this.quantityInput=null,this.isDetailView=void 0,this.fieldInputs=void 0,this.productNumberContainers=void 0,this.productNumbers=void 0,this.buttonNotice=void 0,this.quantity=1,this.wishlistedVariantId=void 0,this.imageContainer=null,this.element=e,this.props=t,this.product=JSON.parse(this.element.dataset.webshopProduct),this.isDetailView=Boolean(this.element.dataset.isDetailView),this.wishlistedVariantId=this.product?.wishlistedVariantId,this.variantSelect=this.element.querySelector(".js-product-container__options"),this.addButton=this.element.querySelector(".js-product-container__button"),this.wishlistButton=this.element.querySelector(".js-product-container__wishlist-button"),this.prices=Array.from(this.element.querySelectorAll(".js-product-container__price")),this.freeShippingMotivators=Array.from(this.element.querySelectorAll(".js-product-container__free-shipping-motivator")),this.propertySelects=Array.from(this.element.querySelectorAll(".js-product-container__properties")),this.fieldInputs=Array.from(this.element.querySelectorAll(".js-product-container__field")),this.productNumberContainers=Array.from(this.element.querySelectorAll(".js-product-container__number-container")),this.productNumbers=Array.from(this.element.querySelectorAll(".js-product-container__number")),this.buttonNotice=this.element.querySelector(".js-product-container__button-notice");const n=e.querySelector(".product-quantity-input");n&&(this.quantityInput=new E.U(n,{onChange:e=>this.quantity=e}));let i=this.element.querySelector(".image-gallery");i&&(this.imageContainer=new j(i,{withPhotoSwipe:t.withPhotoSwipe})),i=this.element.querySelector(".product-image"),i&&(this.imageContainer=new p(i,{withPhotoSwipe:t.withPhotoSwipe}));const o=this.element.querySelector(".js-back-in-stock-container");o&&(this.backInStockForm=new m(o)),this.initialize()}initialize(){this.addButton?.addEventListener("click",(async()=>{const e=this.getSelectedVariant();if(0===e?.stock&&e.limited&&a.default.website.webshop.backInStockNotificationEnabled&&a.default.website.webshop.detailsPageAvailable&&!this.isDetailView)window.location.href=this.product.url;else if(this.orderButtonShouldRedirect())window.location.href=this.product.url;else try{(0,u.g)(this.addButton,!0);const e=await this.processFieldValues();await(this.props.onAdd?.(this.product,this.getSelectedVariant(),e,this.quantity))}finally{(0,u.g)(this.addButton,!1),this.update()}})),this.wishlistButton?.addEventListener("click",(async()=>{const e=this.getSelectedVariant(),t=this.getWishlistedVariant();if(t){if(!await(this.props.onWishlistRemove?.(this.product,t)))return;this.wishlistedVariantId=void 0}else{if(!await(this.props.onWishlistAdd?.(this.product,e)))return;this.wishlistedVariantId=e.id}this.updateWishlistIcon()})),this.element.querySelectorAll(".js-product-container__options, .js-product-container__properties").forEach((e=>{e.addEventListener("keydown",(()=>window.setTimeout((()=>this.update()),0))),e.addEventListener("change",(()=>window.setTimeout((()=>this.update()),0)))})),this.fieldInputs.forEach((e=>e.addEventListener("change",(()=>this.setFieldError(e,null))))),this.update()}async processFieldValues(){return await Promise.all(Array.from(this.fieldInputs).map((async e=>{let t=null;try{if("upload"===e.dataset.fieldType)t=await this.processUploadField(e);else{if(e.required&&!e.value)throw new Error((0,o.wx)("validation","Field is required"));t=e.value}}catch(t){throw this.setFieldError(e,t.message),t}return{id:Number(e.dataset.fieldId),input:t}})))}async processUploadField(e){if(1!==e.files?.length){if(!e.required)return"";throw new Error((0,o.w)("Please select an image."))}try{return(await(0,i.LI)(a.default.websiteRendering.routes["api/upload/product-field"],e.files[0])).file.publicId}catch(e){let t=null;if(e instanceof i.MH&&!1===e.message?.success)switch(e.message.reason){case"maximumFileSize":t=(0,o.w)("File is too large!");break;case"invalidType":t=(0,o.w)("File type is not supported.")}throw null===t&&(t=(0,o.w)("An unknown error occurred.")),new Error(t)}}setFieldError(e,t){const n=e.closest(".js-product-field-container"),i=n?.querySelector(".js-product-field-error");i?(i.innerText=t||"",i.classList.toggle("hidden",null===t),n?.classList.toggle("jw-element-form-is-error",null!==t)):console.warn("Could not obtain form error element to update.")}update(){const e=this.getSelectedVariant();if(e&&this.backInStockForm&&this.backInStockForm.update(e),a.default.website.webshop.pricingVisible){if(this.variantSelect&&e){const t=this.variantSelect.querySelector(`option[value="${e.id}"]`).dataset.priceHtml;this.prices.forEach((e=>{e.innerHTML=t}))}}else this.prices.forEach((e=>{e.classList.add("hidden")}));let t=-1;if(e?.limited){const n=(0,l.YK)(S.Z.getState(),e.id);t=Math.max(e.stock-n,0)}if(this.quantityInput?.setMaxQuantity(t),this.addButton)if(a.default.website.webshop.orderButtonVisible){const n=Boolean(e&&0===t),i=Boolean(n&&e&&e.stock>0);let r=!1,s=(0,o.wx)("product button","Add to cart");this.isCheckoutAvailable()?n&&a.default.website.webshop.backInStockNotificationEnabled&&!this.isDetailView&&a.default.website.webshop.detailsPageAvailable?s=(0,o.wx)("product button","Notify me when available"):n?(r=!0,s=(0,o.wx)("product button","Sold out")):this.orderButtonShouldRedirect()&&(s=(0,o.wx)("product button","See details")):(r=!0,s=(0,o.wx)("product button","Disabled"),e||(s=this.propertySelects.length>0?(0,o.wx)("product button","Unavailable"):(0,o.wx)("product button","Choose a variant")));let c=s;i&&(c=(0,o.wx)("product button","The last items are already in your cart.")),this.isDetailView&&(this.buttonNotice.innerText=i?c:"",this.buttonNotice.classList.toggle("hidden",!i)),this.addButton.disabled=r,this.addButton.innerHTML=`${s}`,this.orderButtonShouldRedirect()||(this.addButton.innerHTML+=''),this.addButton.title=c}else this.addButton.classList.add("hidden");this.freeShippingMotivators.forEach((t=>{t.innerText=e?.freeShippingMotivator?(0,o.w)("FREE shipping"):""})),a.default.website.webshop.productNumbersEnabled&&(this.productNumbers.forEach((t=>{t.innerText=e?.productNumber||""})),this.productNumberContainers.forEach((t=>{t.classList.toggle("hidden",!e?.productNumber)}))),e&&this.imageContainer?.setSelectedVariant(e),this.updateWishlistIcon()}orderButtonShouldRedirect(){return!this.isDetailView&&Boolean(this.product.orderFromDetailsPage)}getSelectedVariant(){let e;if(this.propertySelects.length>0){const t=Array.from(this.propertySelects,(e=>Number(e.value)));return e=this.product.variants.find((e=>e.propertyValueIds.every((e=>t.includes(e))))),e&&this.variantSelect&&(this.variantSelect.value=e.id.toString()),e}if(this.variantSelect){const e=this.variantSelect.value,t=this.product.variants.filter((t=>t.id===Number(e)));if(t.length>0)return t[0]}return this.product.variants[0]}isCheckoutAvailable(){return Boolean(a.default.website.webshop.enabled&&a.default.website.allowed.webshop&&this.product.id&&this.getSelectedVariant())}updateWishlistIcon(){const e=this.getWishlistedVariant();this.wishlistButton&&(this.wishlistButton.disabled=!this.isCheckoutAvailable());const t=this.element.querySelector(".js-product-container__add-to-wishlist_icon");t?.classList.toggle("website-rendering-icon-heart",null!==e),t?.classList.toggle("website-rendering-icon-heart-empty",null===e),t?.setAttribute("title",e?(0,o.w)("Remove from wishlist"):(0,o.w)("Add to wishlist"))}getWishlistedVariant(){if(!this.wishlistedVariantId)return null;return this.product.variants.filter((e=>e.id===this.wishlistedVariantId))[0]??null}}function x(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=function(e,t){const n=e.querySelectorAll(".js-product-container:not(.js-product-container--generated)");return Array.from(n).map((e=>(e.classList.add("js-product-container--generated"),new C(e,t))))}(e,{withPhotoSwipe:!0,onAdd:async(e,n,i,s)=>{if(n.limited&&0===n.stock)return window.alert((0,o.w)("This product is sold out.")),!1;if((0,l.I7)(S.Z.getState(),n.id))return window.alert((0,o.w)("All remaining products are already in your cart.")),!1;const u=await S.Z.dispatch((0,r.Hu)(n,i,s));return t?window.location.reload():function(e,t){const{product:n,variantId:i}=e;(0,c.a)(d({title:n.title,details:e.label||"",imageUrl:(0,l.G)(n,i),addedQuantity:t,modalTitle:(0,o.w)("Added to cart")+":",actionButtonText:(0,o.w)("Go to cart"),actionButtonUrl:a.default.websiteRendering.routes["checkout/cart"]}))}(u,s),!0},onWishlistAdd:async(e,t)=>{const n=await(0,i.ty)("_api/webshop/wishlist/add",{productVariantId:t.id});return!!n.success&&(k(),L(n.totalItems),function(e){(0,c.a)(d({title:e.title,imageUrl:(0,l.G)(e),modalTitle:(0,o.w)("Added to wishlist")+":",actionButtonText:(0,o.w)("View wishlist"),actionButtonUrl:a.default.websiteRendering.routes.wishlist}))}(e),!0)},onWishlistRemove:async(e,t)=>{const n=await(0,i.ty)("_api/webshop/wishlist/remove",{productVariantId:t.id});return!!n.success&&(k(),L(n.totalItems),!0)}});n.forEach((e=>{S.Z.subscribe((()=>e.update()))}))}function k(){const e=document.querySelector(".js-menu-wishlist-item");e?.classList.remove("jw-menu-wishlist-item--hidden")}function L(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;document.querySelectorAll(".js-menu-wishlist-item .jw-icon-badge").forEach((t=>{t.classList.toggle("hidden",0===e),t.textContent=String(e)}))}},5505:function(e,t,n){"use strict";function i(e,t){const n=e.cart.data?.products.find((e=>e.variantId===t));if(!n)return!1;const i=a(n.product,n.variantId);return!!i.limited&&n.quantity>=i.stock}function o(e,t){return c(e)?e.cart.data?.products.reduce(((e,n)=>a(n.product,n.variantId).id===t?e+n.quantity:e),0)??0:0}function r(e){return e.cart.data?.products.reduce((function(e,t){return e+t.quantity}),0)??0}function s(e,t){const n=t?a(e,t):null;return(n?.image??e.image)?.url??null}function a(e,t){return e.variants.find((e=>e.id===t))}function c(e){return Boolean(e.cart?.data)}n.d(t,{G:function(){return s},Gk:function(){return c},I7:function(){return i},Tb:function(){return r},YK:function(){return o}})},7465:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=n(7868);var o=(0,n(4618).UY)({status:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pending";switch((arguments.length>1?arguments[1]:void 0).type){case"FETCH_CART_DATA":return"fetching";case"RECEIVE_CART_META":return"ok";default:return e}},data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CART_DATA"===t.type?t.cartData:e},meta:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return"RECEIVE_CART_META"===t.type?t.cartMeta:e},inlineCartOpened:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"TOGGLE_INLINE_CART"===(arguments.length>1?arguments[1]:void 0).type?!e:e}});var r=(0,i.xC)({reducer:{cart:o}})},940:function(e,t,n){"use strict";n(1057),n(4927),n(2176),n(9867),n(3383),n(560),n(9830),n(2894),n(3530),n(1719),n(1319),n(9045),n(3627),n(4774),n(5203),n(518),n(2047),n(141),n(8519),n(5400),n(701),n(7835),n(4470),n(7692),n(190),n(9596),n(2637),n(9348),n(4079),n(4566),n(183),n(3505),n(2556),n(2845),n(570),n(3019),n(1473),n(8208),n(2624),n(7961),n(2281),n(5237),n(5194),n(9943),n(522),n(82),n(1638),n(3356),n(4224),n(1121),n(7133),n(3429),n(88),n(5564),n(9822),n(5680),n(8858),n(1318),n(3228),n(7147),n(8495),n(7272),n(4403)},4403:function(){!function(){if("undefined"==typeof HTMLFormElement)return;const{prototype:e}=HTMLFormElement;function t(e,t,n){throw new e("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+t+".",n)}"function"!=typeof e.requestSubmit&&(e.requestSubmit=function(e){e?(!function(e,n){e instanceof HTMLElement?"submit"!==e.type?t("The specified element is not a submit button"):e.form!==n&&t("The specified element is not owned by this form element"):t("parameter 1 is not of type 'HTMLElement'")}(e,this),e.click()):((e=document.createElement("input")).type="submit",e.hidden=!0,this.appendChild(e),e.click(),this.removeChild(e))})}()},9678:function(){}},function(e){e.O(0,[179],(function(){e.E(667),e.E(799)}),5);var t=function(t){return e(e.s=t)};e.O(0,[685],(function(){return t(940),t(6582)}));e.O()}]); //# sourceMappingURL=main.1ec8b1e0d9b21eb34942.js.map