1"use strict";(self.webpackChunkcomponentsManager=self.webpackChunkcomponentsManager||[]).push([[589,2898],{1485(e,t,n){n.r(t),n.d(t,{FILTER_SELECTORS:()=>J,init:()=>ee});var o=n(2285),s=n(569),i=n(3468),r=n(6927);var l=n(312);const a=(e,t,n)=>{if(!e)return null;const s=e.querySelectorAll(J.SELECT_OPTION),i=[];s.forEach(e=>{i.push(e.textContent)});const r=new o.Z(e,i,void 0,t,n);r.init(),s.forEach(e=>{e.remove()});const l=e.querySelectorAll(".combo-option");return e.querySelectorAll("option").forEach((e,t)=>{e.classList.contains("default")&&l[t].classList.add("default")}),r},c=e=>{const t=e.querySelector(".text-finder");e.querySelector(".filters__bottom").appendChild(t),(e=>{const t=e.querySelector(".text-finder-clear"),n=e.querySelector(".text-finder-start-query"),o=e.querySelector(".text-finder-input");o.addEventListener("input",()=>{o.value?(0,r.aF)(t,r.xj.HIDDEN):(0,r.FA)(t,r.xj.HIDDEN)}),t.addEventListener("click",()=>{o.value="",n.textContent="",(0,r.FA)(t,r.xj.HIDDEN)})})(e)},u=(e,t)=>((e,t,n)=>{if("null"===n)return(0,s.nB)(e,t);n?(0,s.iQ)(e,t):(0,s.vy)(e,t)})(e,"default",t),d=(e,t,n)=>{var o;const s=null===(o=e.querySelector(".regulations__category .option.selected .num"))||void 0===o?void 0:o.innerHTML;if(!s)return;p(e,s);(null==n?void 0:n.closest(".regulations__segment"))&&h(e,t)},h=(e,t)=>{const n=e.querySelector(".regulations__category"),o=n.querySelector(".js-regulations__category.regulations__dropdown-selected"),i=n.querySelectorAll(".option"),r=i[0].querySelector(".value").innerHTML;i.forEach(e=>{(0,s.vy)(e,"selected")}),(0,s.iQ)(i[0],"selected"),o.innerHTML=r,t.reset()},p=(e,t)=>{const n=e.querySelector(".js-regulations__category .num");return n&&(n.textContent=t),n},m=(e,t)=>null==e?void 0:e.every(e=>(null==t?void 0:t.indexOf(e))>=0),b=e=>{const t=[];let n=e;return{getValue:()=>Array.isArray(n)?n.slice():n,setValue:e=>{n=e,t.forEach(e=>{e(n)})},addListener:(...e)=>{for(let n=0;n<e.length;n++)t.push(e[n])}}},v=e=>{null==e||e.classList.remove("hidden")},f=(e,t,n)=>n.indexOf(e)===t,g=(e,t,n,o)=>{var i;const r=((e,t,n,o)=>{const s=e.closest(J.CATEGORY_SELECT),i=null==s?void 0:s.dataset.filterName,r=t.getFiltersState().concat(t.getRegulationsFiltersState()).filter(e=>"categoryFilter"!==e.filterName),l=t.getAcceptedFilterables(r,n);return u(e,o)?l.length:l.filter(e=>{const t=e.attributes[i];return m([o],t)}).length})(e,t,n,o);null===(i=e.querySelector(".num"))||void 0===i||i.remove();const l=document.createElement("span");(0,s.iQ)(l,"num"),l.textContent=`(${r})`;const a=e.querySelector(".icon-check");a?e.insertBefore(l,a):e.appendChild(l),0!==r?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1"),e.style.display=0!==r?"block":"none"},E=(e,t,n,o,s)=>{const i=document.createElement("template");i.innerHTML=n;const r=i.content.cloneNode(!0),l=e.querySelector(".text-finder");return{setObservable:n=>{n.addListener(n=>{((e,t,n)=>{var o,s;const i=document.querySelector('[data-filter-name="languageFilter"]'),r=t.getFiltersState().filter(e=>"languageFilter"!==e.filterName),l=n?t.filterItemsByTitle():e,a=t.getAcceptedFilterables(r,l).map(e=>e.attributes.languageFilter);var c;(c=a,[].concat(...c)).filter(f).length>1?(i.style.visibility="visible",null===(o=i.closest(".filters"))||void 0===o||o.classList.remove("filter--hidden")):(i.style.visibility="hidden",null===(s=i.closest(".filters"))||void 0===s||s.classList.add("filter--hidden"))})(o,s,l),((e,t,n,o)=>{const s=n.querySelectorAll('.filters [data-filter-name="categoryFilter"] .combo-option'),i=n.querySelectorAll('.filters [data-filter-name="categoryFilter"] option'),r=o?e.filterItemsByTitle():t;s.forEach((t,n)=>{const o=i[n].getAttribute("value");g(t,e,r,o)})})(s,o,e,l),t.innerHTML="",n.length?n.forEach(e=>{t.appendChild(e)}):t.appendChild(r),document.querySelectorAll(".js-regulations__file.regulations__download").forEach(e=>{e.addEventListener("click",t=>{if("inline"===e.dataset.contentDispositionType){t.preventDefault(),t.stopPropagation();const n=e.getAttribute("href");window.open(n)}})})})}}},y="state-selected",S=".js-regulations__sorter",_='[aria-selected="true"]',A=".sorters select .combo-option",C=(e,t,n)=>t.sort((t,o)=>{const s=t.dataset.itemId,i=o.dataset.itemId;return n?Number(e[s])-Number(e[i]):Number(e[i])-Number(e[s])}),x=(e,t)=>{const n=b(),o=e,r=t.querySelectorAll(A);return{setObservable:e=>{e.addListener(e=>{const s=t.querySelector(S).parentElement.querySelector(_);let i=e;if(s){const t=s.dataset.sorterName;i=C(o[t],e,!0)}n.setValue(i)}),r.forEach(t=>{(0,i.zW)(t,(t,i)=>{((e,t,n,o)=>{const i=o.target,r=i.dataset.sorterName,l=i.parentElement.querySelector(_),a=n.getValue();let c;l&&(0,s.vy)(l,y),(0,s.iQ)(i,y),t[r]&&(c=C(t[r],a,!0)),e.setValue(c)})(n,o,e,i)})})},pipe:e=>(e.setObservable(n),e)}};var q=n(9338),T=n(9041),I=n(7426),N=n(8936),L=n(8108),k=n(4589);let O=1;const P=".dsPagination__dots",w=".dsPagination__item",D=".pagination",H=".dsPagination__link",M=".dsPagination__next",B=".dsPagination__next button",R=".dsPagination__prev",F=".dsPagination__prev button",$="aria-disabled",V="tabindex",U=(e,t)=>{document.querySelector(D)&&(t.innerHTML="");const n=document.createElement("template");n.innerHTML=` <nav class="pagination">\n <div class="dsPagination">\n <ul class="dsPagination__list">\n <li class="disabled dsPagination__nav dsPagination__prev">\n <button tabindex="-1">
1\n <span aria-hidden="true" class="icon"></span>\n <span>${(0,k.ro)(k.Ys)}</span>\n <span class="sr-only"> ${(0,k.ro)(k.VK)}</span>\n </button>\n </li>\n </li>\n <li class="dsPagination__item">\n <button class="dsPagination__link dsPagination__link--current">1</button>\n </li>\n <li class="dsPagination__item">\n <button class="dsPagination__link">2</button>\n </li>\n <li class="dsPagination__item">\n <button class="dsPagination__link">3</button>\n </li>\n <li class="dsPagination__dots state-hidden">\n <span aria-hidden="true">...</span>\n </li>\n <li class="dsPagination__dots">\n <span aria-hidden="true">...</span>\n </li>\n <li class="dsPagination__item state-hidden">\n <button class="dsPagination__link" tabindex="-1">${e-2}</button>\n </li>\n <li class="dsPagination__item state-hidden">\n <button class="dsPagination__link" tabindex="-1">${e-1}</button>\n </li>\n <li class="dsPagination__item">\n <button class="dsPagination__link">${e}</button>\n </li>\n <li class="dsPagination__nav dsPagination__next">\n <button>\n <span>${(0,k.ro)(k.Iw)}</span>\n <span class="sr-only"> ${(0,k.ro)(k.VK)}</span>\n <span aria-hidden="true" class="icon"></span>\n </button>\n </li>\n </ul>\n </div>\n </nav>`;const o=document.createElement("div");(0,s.iQ)(o,"pagination");const i=n.content.cloneNode(!0);o.appendChild(i),t.innerHTML="",t.appendChild(o),((e,t)=>{const n=t.querySelectorAll(P),o=t.querySelectorAll(w);for(let t=4;t<e-2;t++){let e=n[1];const o=(0,N.H$)("li",["dsPagination__item"]),s=(0,N.H$)("button",["dsPagination__link"],`${t}`);t>5&&((0,r.FA)(o,r.xj.HIDDEN),s.setAttribute(V,"-1")),o.appendChild(s),e.parentElement.insertBefore(o,e),e=o}if(e<=5&&n.forEach(e=>{(0,r.FA)(e,r.xj.HIDDEN)}),e<=3){o.forEach(e=>{e.querySelector(H).setAttribute(V,"-1"),(0,r.FA)(e,r.xj.HIDDEN)});for(let t=0;t<=e-1;t++)o[t].querySelector(H).setAttribute(V,"0"),(0,r.aF)(o[t],r.xj.HIDDEN)}else if(e>3&&e<=5)for(let t=4;t<e;t++){let e=n[1];const o=(0,N.H$)("li",["dsPagination__item"]),s=(0,N.H$)("button",["dsPagination__link"],`${t}`);o.appendChild(s),e.parentElement.insertBefore(o,e),e=o}})(e,o)},j=e=>{const t=document.querySelector(R),n=document.querySelector(M),o=document.querySelector(F),i=document.querySelector(B);switch(!0){case 1===O&&e<=1:(0,s.iQ)(t,"disabled"),(0,s.iQ)(n,"disabled"),(0,l.oj)([o],"-1"),(0,l.oj)([i],"-1"),o.setAttribute($,"true"),i.setAttribute($,"true");break;case 1===O&&1!==e:(0,s.vy)(n,"disabled"),(0,s.iQ)(t,"disabled"),(0,l.oj)([o],"-1"),(0,l.oj)([i],"0"),o.setAttribute($,"true"),i.setAttribute($,"false");break;case O===e&&1!==e:(0,s.vy)(t,"disabled"),(0,s.iQ)(n,"disabled"),(0,l.oj)([o],"0"),(0,l.oj)([i],"-1"),o.setAttribute($,"false"),i.setAttribute($,"true");break;default:(0,s.vy)(t,"disabled"),(0,s.vy)(n,"disabled"),(0,l.oj)([o],"0"),(0,l.oj)([i],"0"),o.setAttribute($,"false"),i.setAttribute($,"false")}},Q=(e,t)=>{const n=[...t];let o;if(!(e<=5)){switch(!0){case O<4:o=[...n.slice(0,5),...n.slice(-1)];break;case O>=4&&O<6:o=[...n.slice(0,O+2),...n.slice(-1)];break;case O>=6&&O<=e-5:o=[...n.slice(0,1),...n.slice(O-3,O+2),...n.slice(-1)];break;case O>e-5&&O<=e-3:o=[...n.slice(0,1),...n.slice(O-e-3)];break;case O>e-3:o=[...n.slice(0,1),...n.slice(-5)]}t.forEach(e=>{const t=e.querySelector(H);(0,r.FA)(e,r.xj.HIDDEN),t.setAttribute(V,"-1")}),o.forEach(e=>{const t=e.querySelector(H);(0,r.aF)(e,r.xj.HIDDEN),t.setAttribute(V,"0")}),(e=>{const t=document.querySelectorAll(P);switch(!0){case O<6:(0,r.FA)(t[0],r.xj.HIDDEN),(0,r.aF)(t[1],r.xj.HIDDEN);break;case O>=6&&O<=e-5:(0,r.aF)(t[0],r.xj.HIDDEN),(0,r.aF)(t[1],r.xj.HIDDEN);break;case O>e-5:(0,r.FA)(t[1],r.xj.HIDDEN),(0,r.aF)(t[0],r.xj.HIDDEN)}})(e)}},W=(e,t)=>
1{t.forEach(e=>{const t=e.querySelector(H);(0,s.vy)(t,"dsPagination__link--current")}),(0,s.iQ)(e,"dsPagination__link--current")},G=(e,t,n,o,r)=>{const l=document.querySelector(".header .header__bottom-inner"),a=l?l.getBoundingClientRect().height:0,c=t.length,u=Math.ceil(c/n);U(u,o);const d=document.querySelector(D);if(!d)return;const h=d.querySelectorAll(w),p=d.querySelector(F),m=d.querySelector(B);O=1,j(u),(0,i.zW)(p,(t,n)=>{const o=t.parentElement;(0,s.nB)(o,"disabled")||(((e,t,n)=>{e.preventDefault(),O>1&&(O--,Q(t,n));const o=n[O-1].querySelector(H);W(o,n),j(t)})(n,u,h),r(O),(0,L.PA)(e,a))}),(0,i.zW)(m,(t,n)=>{const o=t.parentElement;(0,s.nB)(o,"disabled")||(((e,t,n)=>{e.preventDefault();const o=n[O].querySelector(H);O<t&&(O++,Q(t,n)),W(o,n),j(t)})(n,u,h),r(O),(0,L.PA)(e,a))}),h.forEach(t=>{(0,i.zW)(t,(t,n)=>{((e,t,n)=>{e.preventDefault();const o=e.target,s=parseInt(o.textContent);s!==O&&(O=s,Q(t,n)),W(o,n),j(t)})(n,u,h),r(O),(0,L.PA)(e,a)})})},z=(e,t,n,o,r=!1)=>{const l=e.querySelector(".filters"),a=e.querySelector(".text-finder form"),c=a.querySelector(".text-finder-input"),d=e.querySelector(".sorters"),h=b(),p=t;let f;const g=()=>{const e=[...l.querySelectorAll(".js-regulations-select")].filter(e=>!e.closest(".sorters")),t=[];for(let n=0;n<e.length;n++){const o=e[n],s=o.querySelector("select");
1t.push({filterName:o.dataset.filterName,values:"null"===s.value?[]:[s.value]})}return t},E=()=>{const e=l.querySelectorAll(".filter"),t=[];for(let n=0;n<e.length;n++){const o=[],s=e[n];s.querySelectorAll(".selected").forEach(e=>{const t=e.dataset.optionValue;t&&o.push(t)}),t.push({filterName:s.dataset.filterName,values:o})}return t},y=(e,t)=>t.filter(t=>{let n=!0;return e.forEach(e=>{const o=t.attributes[e.filterName],s=e.values;n=n&&m(s,o)}),n}),S=e=>{const t=e.map(e=>e.id);return(f||(f=[...n.querySelectorAll("[data-item-id]")],f.forEach(e=>{n.removeChild(e)})),f).filter(e=>t.includes(e.getAttribute("data-item-id")||""))};l.querySelectorAll(".option").forEach(e=>{(0,i.zW)(e,(e,t)=>{(e=>{const t=e.target.closest(".option");t.closest(".filter").querySelectorAll(".option").forEach(e=>(0,s.vy)(e,"selected")),(0,s.iQ)(t,"selected"),A()})(t)})});l.querySelectorAll(".js-regulations-select select").forEach(e=>{e.addEventListener("change",()=>{A()})});const _=()=>{const t=e.querySelector(".text-finder input").value.toLowerCase(),n=o.filter(e=>e.querySelector(".regulations__file-name a").dataset.fileName.toLowerCase().includes(t)),s=[];n.forEach(e=>{s.push(e.dataset.itemId)});const i=[];return s.forEach(e=>{const t=p.filter(t=>t.id===e)[0];i.push(t)}),i},A=()=>{const t=e.querySelector("#announce");t&&(t.textContent="");const n=r?g().concat(E()):E();let o=y(n,p);a&&(o=y(n,_()));const s=S(o);h.setValue(s),setTimeout(()=>{t&&(t.textContent=(0,k.ro)((0,k.Nu)(o.length)))},200)};null==a||a.addEventListener("submit",e=>{e.preventDefault(),A()}),c.addEventListener("keydown",e=>{"Enter"===e.code&&(e.preventDefault(),A())});return{filterItemsByTitle:_,getAcceptedFilterables:y,getFiltersState:E,pipe:e=>(e.setObservable(h),e),reset:()=>{v(l),v(d),A()},setOptionNumbers:()=>{Array.from(document.querySelectorAll(".filters .option")).forEach(e=>{const t=(e=>{const t=e,n=t.parentElement.getAttribute("data-filter-name"),o=t.getAttribute("data-option-value");return u(t,o||"")?p.length:p.filter(e=>{const t=e.attributes[n||""];return m([o],t)}).length})(e);if(0===t)e.style.display="none";else{const n=e.querySelector(".value"),o=document.createElement("span");o.className="num",o.textContent=` (${t})`,n.appendChild(o)}})},getRegulationsFiltersState:g}};var K=n(2886),Z=n(8363),Y=n(6140),X=n(4591);const J={SEGMENT_SELECT:(0,I.rv)(T.I5.REGULATIONS,"segmentFilter-select"),CATEGORY_SELECT:(0,I.rv)(T.I5.REGULATIONS,"categoryFilter-select"),SELECT_OPTION:`${(0,I.rv)(T.I5.REGULATIONS,"select-options")} option`},ee=e=>{const t=e.componentElement,n=e.componentParameters,o=n.sortableMap,r=t.querySelector(J.SEGMENT_SELECT),l=t.querySelector(J.CATEGORY_SELECT),u=t.querySelector(".footer-box"),h=t.querySelector(".footer-box .button"),p=t.querySelector("div.items, ul.items"),m=t.querySelector(".filters"),v=document.querySelector(".component.topVisual"),f=n.shownNumber,g=f&&!isNaN(f)?f:10,y=n.filterablesMap,S=[];y.forEach(e=>{const n=t.querySelector(`[data-item-id="${e.id}"]`);S.push(n)});const _=z(t,n.filterablesMap,p,S,!0);if(h.innerHTML=n.regulationShowMoreButtonLabel,_.pipe(x(o,t)).pipe((0,X.xZ)()?((e,t)=>{const n=b();return{setObservable:o=>{const i=b(0);i.addListener(e=>{const i=o.getValue().slice(0,e),r=t.closest(".footer-box");i.length===o.getValue().length?(t.style.display="none",(0,s.iQ)(r,"is--hidden")):(t.style.display="inline-block",(0,s.vy)(r,"is--hidden")),n.setValue(i)}),t.addEventListener("click",()=>{i.setValue(i.getValue()+e)}),o.addListener(()=>{i.setValue(e)})},pipe:e=>(e.setObservable(n),e)}})(g,h):((e,t,n)=>{const o=b();return{setObservable:s=>{const i=e=>{const n=(e-1)*t,o=n+t;return s.getValue().slice(n,o)},r=e=>{o.setValue(i(e))};s.addListener(()=>{o.setValue(i(1)),G(e,s.getValue(),t,n,r)})},pipe:e=>(e.setObservable(o),e)}})(t,g,u)).pipe(E(t,p,n.noAvailableRegulationPage,n.filterablesMap,_)),(0,X.xZ)()){t.querySelector(".sorters").style.display="none"}(0,Y.R)(t);const A=document.createElement("div");(0,s.iQ)(A,"filters__bottom");const C=t.querySelector('.filters [data-filter-name="languageFilter"]');A.appendChild(C),m.appendChild(A);const T=a(r),I=a(l);null==T||T.select.addEventListener("change",()=>{const e=I.getAvailableIndexes();e&&e.length>0&&I.onOptionClick(e[0])}),((e,t)=>{const n=e.querySelector(".sorters"),o=e.querySelector(".filters__bottom");if(!n)return;e.querySelector(".sorters .label-filter").textContent=t;
1const s=e.querySelector(".sorters");o.appendChild(n);const i=Array.from(n.querySelectorAll('[role="listbox"] .combo-option'));a(s,t=>{if(!t)return;const n=t.dataset.sorterName;if(n){const t=e.querySelector(`select [data-sorter-name="${n}"]`);if(t){const e=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});t.dispatchEvent(e)}}},i)})(t,n.sort),c(t),_.reset(),((e,t)=>{const n=e.querySelectorAll(".filters__bottom, .regulations__segment"),o=e.querySelector(".text-finder form"),s=o.querySelector(".text-finder-input"),r=[];n.forEach(e=>{e.querySelectorAll(".option").forEach(e=>{r.push(e)})}),null==r||r.forEach(n=>{(0,i.zW)(n,()=>{d(e,t,n)})}),null==o||o.addEventListener("submit",n=>{n.preventDefault(),d(e,t)}),s.addEventListener("keydown",n=>{"Enter"===n.code&&(n.preventDefault(),d(e,t))})})(t,_);const N=t.querySelectorAll(".filters__bottom .sorter, .filters__bottom .option, .regulations__category .option"),k=document.querySelector(".header .header__bottom-inner"),O=k?k.getBoundingClientRect().height:0;if(N.forEach(e=>{(0,i.zW)(e,()=>{(0,L.PA)(t,O)})}),r&&v){const e=(0,Z.Ot)(t);(null==e?void 0:e.previousElementSibling)||((0,K.Y0)(v,q.SELECTORS.INNER),(0,K.Y0)(t,".filters","marginTop"))}}},2285(e,t,n){n.d(t,{Z:()=>l});var o=n(4657),s=n(8116),i=n(569);const r='[role=option][aria-selected="true"]';class l extends o.l{constructor(e,t,n,o,s){super(e,t,n),this.optionChangeCallback=o,this.optionsElements=s}addCheckIcon(e,t=!1){if(!t){this.listboxElement.querySelectorAll(".icon-check").forEach(e=>e.remove())}if((0,i.nB)(e,s.Nv.CURRENT)){const t=document.createElement("span");(0,i.iQ)(t,"icon-check"),t.setAttribute("aria-hidden","true"),e.appendChild(t)}}removeCheckIcon(e){var t;const n=null!==(t=e.querySelector(".icon-check"))&&void 0!==t?t:null;n&&n.remove()}createOption(e,t,n){const o=document.createElement("div");if(o.setAttribute("role","option"),o.id=`${this.idBase}-${t}`,o.className=t===this.select.selectedIndex?"combo-option option-current":"combo-option",o.setAttribute(s.em,`${t===this.select.selectedIndex}`),n&&o.setAttribute("data-sorter-name",n),this.optionsLinks&&this.optionsLinks[t]){const n=document.createElement("a");n.setAttribute("href",this.optionsLinks[t]),n.innerText=e,o.appendChild(n)}else o.innerText=e;return this.addCheckIcon(o,!0),o.addEventListener("click",e=>{e.stopPropagation(),this.onOptionClick(t)}),o.addEventListener("mousedown",this.onOptionMouseDown.bind(this)),o}onComboBlur(){this.ignoreBlur?this.ignoreBlur=!1:this.open&&(this.selectOption(this.activeIndex),this.optionChangeCallback&&this.optionChangeCallback(this.listboxElement.querySelector(r)),this.updateMenuState(!1,!1))}getAvailableIndexes(){const e=[];return this.element.querySelectorAll(s.B3).forEach((t,n)=>{t.getAttribute("tabindex")&&"-1"===t.getAttribute("tabindex")||e.push(n)}),e}onComboKeyDown(e){const{key:t}=e,n=(0,s.c$)(e,this.open);switch(n){case s.mS.Last:case s.mS.First:this.updateMenuState(!0);case s.mS.Next:case s.mS.Previous:case s.mS.PageUp:case s.mS.PageDown:return e.preventDefault(),this.onOptionChange((0,s.sQ)(this.getAvailableIndexes(),this.activeIndex,n));case s.mS.CloseSelect:e.preventDefault(),this.selectOption(this.activeIndex),this.optionChangeCallback&&this.optionChangeCallback(this.listboxElement.querySelector(r));case s.mS.Close:return e.preventDefault(),this.updateMenuState(!1);case s.mS.Type:return this.onComboType(t);case s.mS.Open:return e.preventDefault(),this.updateMenuState(!0)}}onOptionChange(e){this.activeIndex=e,this.comboElement.setAttribute(s.fe,`${this.idBase}-${e}`);const t=this.element.querySelectorAll(s.B3);[...t].forEach(e=>{(0,i.vy)(e,s.Nv.CURRENT)}),(0,i.iQ)(t[e],s.Nv.CURRENT),this.addCheckIcon(t[e]),this.manageScrollOnOptChange(t,e)}onOptionClick(e){this.onOptionChange(e),this.selectOption(e),this.optionChangeCallback&&this.optionChangeCallback(this.listboxElement.querySelector(r)),this.updateMenuState(!1),this.checkIfPlaceholder()}selectOption(e,t=!0){this.activeIndex=e;const n=this.options[e];this.comboElement.innerHTML=n,this.select.selectedIndex=e;const o=new Event("change");t&&this.select.dispatchEvent(o);const i=this.element.querySelectorAll(s.B3);
1[...i].forEach(e=>{e.setAttribute(s.em,"false")}),i[e].setAttribute(s.em,"true"),i[e].querySelector("a")&&(window.location.href=i[e].querySelector("a").href),this.checkIfPlaceholder()}appendOptions(e){this.options.push(...e),this.options.map((e,t)=>{var n,o;const s=this.createOption(e,t,null===(o=null===(n=this.optionsElements)||void 0===n?void 0:n[t])||void 0===o?void 0:o.dataset.sorterName);this.listboxElement.appendChild(s)})}updateOptions(e){this.reset(),this.options=e,this.listboxElement.innerHTML="",this.options.map((e,t)=>{var n,o;const s=this.createOption(e,t,null===(o=null===(n=this.optionsElements)||void 0===n?void 0:n[t])||void 0===o?void 0:o.dataset.sorterName);this.listboxElement.appendChild(s)})}clearSelected(){[...this.element.querySelectorAll(s.B3)].forEach(e=>{(0,i.vy)(e,s.Nv.CURRENT),e.setAttribute(s.em,"false")}),this.comboElement.innerHTML="",this.select.selectedIndex=-1,this.comboElement.removeAttribute(s.fe)}reset(){this.activeIndex=0,this.select.selectedIndex=0;const e=this.listboxElement.querySelectorAll(s.B3);e.forEach(e=>{e.classList.remove(s.Nv.CURRENT),e.setAttribute(s.em,"false"),this.removeCheckIcon(e)}),this.comboElement.innerHTML="",this.comboElement.removeAttribute(s.fe),this.comboElement.removeAttribute("tabindex"),this.checkIfPlaceholder();const t=e[0];t.setAttribute(s.em,"true"),t.classList.add(s.Nv.CURRENT),this.addCheckIcon(t)}init(){this.baseInit(),this.comboElement.addEventListener("blur",this.onComboBlur.bind(this)),this.comboElement.addEventListener("keydown",this.onComboKeyDown.bind(this)),this.options.map((e,t)=>{var n,o;const s=this.createOption(e,t,null===(o=null===(n=this.optionsElements)||void 0===n?void 0:n[t])||void 0===o?void 0:o.dataset.sorterName);this.listboxElement.appendChild(s)})}}},4657(e,t,n){n.d(t,{l:()=>i});var o=n(8116),s=n(569);class i{constructor(e,t,n){this.element=e,this.options=t,this.optionsLinks=n,this.comboElement=e.querySelector("[role=combobox]"),this.listboxElement=e.querySelector("[role=listbox]"),this.select=e.querySelector("select"),this.idBase=this.comboElement.id||"combo",this.activeIndex=0,this.open=!1,this.ignoreBlur=!1,this.searchString="",this.searchTimeout=null}checkIfPlaceholder(){const e=this.select.querySelector('option[value=""]');if(!e)return;const t=e.textContent;this.comboElement.textContent===t?(0,s.iQ)(this.comboElement,"placeholder"):(0,s.vy)(this.comboElement,"placeholder")}getOptionLabel(e){return this.listboxElement.children[e].textContent}getOptionValue(e){const t=this.getOptionLabel(e),n=Array.from(this.select.options).findIndex(e=>e.text.includes(t)),o=this.select.options[n];return o?o.value:null}getSearchString(e){return"number"==typeof this.searchTimeout&&window.clearTimeout(this.searchTimeout),this.searchTimeout=window.setTimeout(()=>{this.searchString=""},500),this.searchString+=e,this.searchString}onComboClick(){this.updateMenuState(!this.open,!1)}onComboType(e){this.updateMenuState(!0);const t=this.getSearchString(e);(0,o.k7)(this.options,t,this.activeIndex+1)>=0||(window.clearTimeout(this.searchTimeout),this.searchString="")}manageScrollOnOptChange(e,t){e[t]&&((0,o.ov)(this.listboxElement)&&(0,o.Rs)(e[t],this.listboxElement),(0,o.Xv)(e[t])||e[t].scrollIntoView({behavior:"smooth",block:"nearest"}))}onOptionMouseDown(){this.ignoreBlur=!0}updateAfterSelect(e){this.activeIndex=e;const t=this.options[e];this.comboElement.innerHTML=t,this.select.selectedIndex=e;const n=new Event("change");this.select.dispatchEvent(n)}updateMenuState(e,t=!0){if(this.open===e)return;this.open=e,this.comboElement.setAttribute("aria-expanded",`${e}`),e?(0,s.iQ)(this.element,"open"):(0,s.vy)(this.element,"open");const n=e?`${this.idBase}-${this.activeIndex}`:"";this.comboElement.setAttribute("aria-activedescendant",n),""!==n||(0,o.Xv)(this.comboElement)||this.comboElement.scrollIntoView({behavior:"smooth",block:"nearest"}),setTimeout(()=>{t&&this.comboElement.focus()},0)}baseInit(){var e;const t=null===(e=this.select.selectedOptions[0])||void 0===e?void 0:e.textContent,n=this.select.selectedIndex;this.comboElement.innerHTML=t||this.options[0],this.activeIndex=n||0,this.checkIfPlaceholder(),this.element.addEventListener("click",this.onComboClick.bind(this))}}},8116(e,t,n){n.d(t,{B3:()=>l,Nv:()=>c,RF:()=>y,Rs:()=>E,Xv:()=>f,c$:()=>m,em:()=>r,fe:()=>i,k7:()=>b,mS:()=>u,ov:()=>g,q6:()=>a,sQ:()=>v,vL:()=>h,wq:()=>d});var o=n(6483),s=n(4589);const i="aria-activedescendant",r="aria-selected",l="[role=option]",a="selected",c={CURRENT:"option-current"},u={Close:0,CloseSelect:1,First:2,Last:3,Next:4,Open:5,PageDown:6,PageUp:7,Previous:8,Select:9,Type:10,Tab:11},d=e=>e.replace(/[^a-zA-Z0-9-_]/g,""),h=(e,t,n,o)=>
1{const i=document.createElement("template"),r=`\n <span class="sr-only">${(0,s.ro)(s.VT)}</span>\n <span>${t}</span>\n <span class="icon-close" aria-hidden="true"></span>\n `;n?i.innerHTML=`\n <button data-checkbox-id="${d(n)}" type="button">\n ${r}\n </button>\n `:o&&(i.innerHTML=`\n <button id="${o}" type="button">\n ${r}\n </button>\n `);const l=i.content.cloneNode(!0);e.appendChild(l)},p=(e,t,n)=>(n=n||[],(e=e||[]).filter(e=>0===e.toLowerCase().indexOf(t.toLowerCase())&&n.indexOf(e)<0)),m=(e,t)=>{const{altKey:n,ctrlKey:o,key:s,metaKey:i}=e;if(!t&&["ArrowDown","ArrowUp","Enter"," "].includes(s))return u.Open;if("Home"===s)return u.First;if("End"===s)return u.Last;if("Backspace"===s||"Clear"===s||1===s.length&&" "!==s&&!n&&!o&&!i)return u.Type;if(t)switch(s){case"ArrowUp":return n?u.CloseSelect:u.Previous;case"ArrowDown":return n?void 0:u.Next;case"PageUp":return u.PageUp;case"PageDown":return u.PageDown;case"Escape":return u.Close;case"Enter":case" ":return u.CloseSelect;case"Tab":return u.Tab}},b=(e,t,n=0)=>{const o=[...e.slice(n),...e.slice(0,n)],s=p(o,t)[0];if(s)return e.indexOf(s);if((i=t.split("")).every(e=>e===i[0])){const n=p(o,t[0]);return e.indexOf(n[0])}return-1;var i},v=(e,t,n)=>{const o=e.indexOf(t);switch(n){case u.First:return e[0];case u.Last:return e[e.length-1];case u.Previous:return o-1>0?e[o-1]:e[0];case u.Next:return o+1<e.length-1?e[o+1]:e[e.length-1];case u.PageUp:return o-10>0?e[o-10]:e[0];case u.PageDown:return o+10<e.length-1?e[o+10]:e[e.length-1];default:return t}},f=e=>{const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||o.d.__documentElementClientHeight)&&t.right<=(window.innerWidth||o.d.__documentElementClientWidth)},g=e=>e&&e.clientHeight<e.scrollHeight,E=(e,t)=>{const{offsetHeight:n,offsetTop:o}=e,{offsetHeight:s,scrollTop:i}=t,r=o+n>i+s;o<i?t.scrollTo(0,o):r&&t.scrollTo(0,o-s+n)},y=(e,t)=>{e.forEach(e=>{e&&e.checked&&(e.checked=!1,e.dispatchEvent(new Event("change")))}),t&&t()}},9338(e,t,n){n.r(t),n.d(t,{SELECTORS:()=>_,init:()=>A});var o=n(2285),s=n(9041),i=n(7426),r=n(4589);const l={DROPDOWN:(0,i.rv)(s.I5.TOP_VISUAL,"dropdown"),DROPDOWN_LABEL:(0,i.rv)(s.I5.TOP_VISUAL,"dropdown-label"),MENU_LIST:(0,i.N8)("menu_list")};var a=n(569),c=n(4591);const u="topVisual__default-background",d="v-reversed",h=["mask-overlay","mask-overlay--dark"],p=(e,t)=>{t?(0,a.iQ)(t,h):(0,a.iQ)(e,u)},m=(e,t)=>{(0,a.nB)(e,d)&&t&&((0,c.xZ)()?(0,a.iQ)(e,u):(0,a.vy)(e,u))};var b=n(8363);const v="is--centered",f="is--product",g="v-regulations",E="topVisual__spacer",y=(e,t,n)=>{(0,a.nB)(e,f)&&((0,c.Qv)()?((0,b.hh)(e).removeAttribute("style"),(0,a.vy)(n,h)):c.Cm&&t&&t.removeAttribute("style"))};var S=n(9929);const _={INNER:(0,i.rv)(s.I5.TOP_VISUAL,"inner"),IMAGE:(0,i.rv)(s.I5.TOP_VISUAL,"image"),FIRST_BUTTON:(0,i.rv)(s.I5.TOP_VISUAL,"first-button"),SECOND_BUTTON:(0,i.rv)(s.I5.TOP_VISUAL,"second-button")},A=e=>{const t=e.componentElement,n=(0,b.hh)(t),s=t.querySelector(_.IMAGE);(0,S.CC)(t,_.FIRST_BUTTON,_.SECOND_BUTTON),y(t,s,n),p(t,s),m(t,s),(e=>{const t=e.querySelector(l.DROPDOWN);if(!t)return;const n=t.getAttribute("data-sr-only"),s=t.querySelector(l.MENU_LIST).querySelectorAll(".node"),i=[],a=[];s.forEach(e=>{i.push(e.textContent),a.push(e.querySelector("a").getAttribute("href"))});const c=new o.Z(t,[(0,r.ro)(r.t0),...i],["",...a]);c.init(),n&&0===c.select.selectedIndex&&(null==c?void 0:c.options)&&c.options.length>0&&(c.comboElement.innerHTML=`${c.options[0]} <span class="sr-only">${n}</span>`),s.forEach(e=>{e.remove()})})(t),((e,t)=>{(0,a.nB)(e,v)||(0,a.nB)(e,g)||((0,a.iQ)(t,E),(0,b.hh)(e).classList.add(E))})(t,n),(0,c.b1)(()=>{(0,S.CC)(t,_.FIRST_BUTTON,_.SECOND_BUTTON),y(t,s,n),p(t,s),m(t,s)})}}}]);
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.