1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3130],{5128:(t,e,n)=>{n(560);var i=n(3109),s=n(8105),o=n(8299),a=n(4846),r=n(3096),d=n.n(r),l=n(1776),c=n(6242),h=n(9570);class u{constructor(t){this.quantityInput=t.querySelector('input[type="number"]'),this.incrementButton=t.querySelector(".ds-number-picker__increment"),this.decrementButton=t.querySelector(".ds-number-picker__decrement"),this.minValue=Number(this.quantityInput.min),this.lastValue=Number(this.quantityInput.value),this.updateDecrementButtonState(),this.incrementClickListener=()=>this.increment(),this.decrementClickListener=()=>this.decrement(),this.inputChangeListener=()=>this.onInputChange(),this.incrementButton.addEventListener("click",this.incrementClickListener),this.decrementButton.addEventListener("click",this.decrementClickListener),this.quantityInput.addEventListener("change",this.inputChangeListener)}increment(){let t=parseInt(this.quantityInput.value,10);this.quantityInput.value=(t+1).toString(),this.updateDecrementButtonState(),this.emitUpdateEvent()}
1decrement(){let t=parseInt(this.quantityInput.value,10);t>this.minValue&&(this.quantityInput.value=(t-1).toString(),this.updateDecrementButtonState(),this.emitUpdateEvent())}onInputChange(){let t=parseInt(this.quantityInput.value,10);(isNaN(t)||t<this.minValue)&&(this.quantityInput.value=this.minValue.toString(),t=this.minValue),t!==this.lastValue&&(this.lastValue=t,this.updateDecrementButtonState(),this.emitUpdateEvent())}updateDecrementButtonState(){let t=parseInt(this.quantityInput.value,10);this.decrementButton.disabled=isNaN(t)||t<=this.minValue}emitUpdateEvent(){const t=new CustomEvent("update",{detail:{value:parseInt(this.quantityInput.value,10)||this.minValue},bubbles:!0});this.quantityInput.dispatchEvent(t)}destroy(){this.incrementButton.removeEventListener("click",this.incrementClickListener),this.decrementButton.removeEventListener("click",this.decrementClickListener),this.quantityInput.removeEventListener("change",this.inputChangeListener)}}var p=n(2431),m=n(8814),b=n(7303);var y=n(8666),v=n(5105),k=function(t,e,n,i){return new(n||(n=Promise))(function(s,o){function a(t){try{d(i.next(t))}catch(t){o(t)}}function r(t){try{d(i.throw(t))}catch(t){o(t)}}function d(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,r)}d((i=i.apply(t,e||[])).next())})};var _=n(3800),f=n(7723),g=n(8722),L=n(3429),C=n(672);const w=t=>{const e=t.closest("[data-product]");let n={};return e&&(n=JSON.parse(e.getAttribute("data-product"))),n};class S extends i.Z{constructor(){super(),this._addShoppingListComponent=null,this._addShoppingListModal=null,this._addShoppingListBtn=null,this._numberPickers=[],this._basketContainer=document.querySelector(".js-basket-container"),this._initQuantityInputs(),this._basketContainer.addEventListener("click",this.handleRemoveProduct),this._basketContainer.addEventListener("keydown",this.handleRemoveProductKeyboard),this._basketContainer.addEventListener("update",this.handleProductChange),this._basketContainer.addEventListener("click",this.handleBasketPromotionRemoveProduct),this._basketContainer.addEventListener("keydown",this.handleBasketPromotionRemoveProductKeyboard),this._basketContainer.addEventListener("click",this.handleRemoveBundle),this._basketContainer.addEventListener("keydown",this.handleRemoveBundleKeyboard),this._basketContainer.addEventListener("update",this.handleBundleChange),this._initAddShoppingListBtn(),this._initClearBasketBtn(),window.matchMedia(`(min-width: ${(0,h.j)("--large")})`).matches||this._initStickySection(),this._desktopStickyBtnController=(0,c.O)({root:document.body,buttonSelector:".js-sticky-btn",containerSelector:".basket-page-main",fixedClassName:"basket-sticky-btn--desktop-fixed",topOffset:16}),this._initBasketPromotion(),this._promotionCode=new p.Z(this,this._basketContainer),this._notificationLiveRegion=null,this._submitBtn=this._basketContainer.querySelector(".js-begin-checkout"),this._submitBtn?.addEventListener("click",this._handleBeginCheckout),(0,y.C)(s.Xq,void 0,async t=>{b.Xq(t),this.showLoadingOverlay(),(0,_.p)(t[0].id,t[0].price),(0,f.x)(t[0].id,window.APP_STORE_PAGE_CONTROLLER.userId||"unknown"),window.APP_STORE_PAGE_CONTROLLER.inpostEnabled&&await L.j.updateBasket(),await this.updateTemplate()}),window.APP_STORE_PAGE_CONTROLLER.inpostEnabled&&(this._inpostManager=new L.j({onBasketProductChanged:async()=>!1}),this._inpostManager.init()),document.body.addEventListener("click",this._handleOpenShippingInfoSidebar),document.body.addEventListener("keydown",this._handleOpenShippingInfoSidebarKeyboard),this._shippingInfoSidebar=null,this._basketContainer.querySelectorAll(".basket-items").forEach(t=>{this.handleProductPromotionsLabels(t)}),this.initTooltips()}initTooltips(){document.querySelectorAll(".js-tooltip").forEach(t=>new g.Z(t))}_handleOpenShippingInfoSidebar=async t=>{const e=t.target.closest(".js-open-shipping-info-sidebar");if(e)if(t.preventDefault(),this._shippingInfoSidebar?.setOnClose(()=>e.focus()),this._shippingInfoSidebar)requestAnimationFrame(()=>{this._shippingInfoSidebar.open()});
1else{this._shippingInfoSidebar=new v.Z(null,"Metody dostawy",()=>e.focus()),this._shippingInfoSidebar.renderContent('\n <div class="ds-u-skeleton ds-u-mb-4" style="height: 50px"></div>\n <div class="ds-u-skeleton ds-u-mb-4" style="min-height: 70vh;"></div>\n '),requestAnimationFrame(()=>{this._shippingInfoSidebar.open()});const t=await k(void 0,void 0,void 0,function*(){try{const t=yield fetch(`${m.Z.shipping_methods_prices}?basketType=physical`);return yield t.text()}catch(t){return console.error("Tkm2k2",t),"<div>Nie udaÅo siÄ pobraÄ danych. Spróbuj ponownie później.</div>"}});this._shippingInfoSidebar.renderContent(t)}};_handleOpenShippingInfoSidebarKeyboard=t=>{const e=t.target.closest(".js-open-shipping-info-sidebar");e&&("Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.click()))};_handleBeginCheckout=t=>{t.preventDefault(),b.eD(),(0,_.TU)(),(0,f.z)(window.APP_STORE_PAGE_CONTROLLER.userId||"unknown"),window.location.href=t.currentTarget.getAttribute("href")};_initQuantityInputs=()=>{this._numberPickers.forEach(t=>t.destroy());document.querySelectorAll(".ds-number-picker").forEach(t=>{this._numberPickers.push(new u(t))})};_initBasketPromotion(){this._promotionBtns=document.querySelectorAll(".js-basket-promotion-btn"),this._promotionBtns.length&&this._promotionBtns.forEach(t=>{t.addEventListener("click",this._handleBasketPromotionBtn)})}_handleBasketPromotionBtn=async t=>{t.preventDefault();const e=t.target.closest(".ds-button"),i=JSON.parse(e.getAttribute("data-basket-promotion"));if(i.promotionType=e.getAttribute("data-basket-promotion-type")||"book",e.classList.add("ds-button--loading"),this._basketPromotionModalComponent)this._basketPromotionModal.mount(e,i,this);else{this._basketPromotionModalComponent=await Promise.all([n.e(3633),n.e(3967),n.e(839),n.e(3825)]).then(n.bind(n,3825));const t=this._basketPromotionModalComponent.default;this._basketPromotionModal=new t,this._basketPromotionModal.mount(e,i,this)}};_initStickySection(){const t=this._basketContainer.querySelector(".js-mobile-sticky-section"),e=this._basketContainer.querySelector(".js-mobile-sticky-section-wrapper");this._stickySectionFunc=(0,l.I)(e,t,"basket-sticky-card--fixed"),this._stickySectionFunc(),this._throttledHandleScroll=d()(this._stickySectionFunc,200),window.addEventListener("scroll",this._throttledHandleScroll)}_initAddShoppingListBtn(){this._addShoppingListBtn=document.querySelector(".js-add-shopping-list-btn"),this._addShoppingListBtn?.addEventListener("click",this._showAddShoppingListModal)}_showAddShoppingListModal=async t=>{if(this.isUserLoggedIn())if(this._addShoppingListComponent)this._addShoppingListModal.mount(this._addShoppingListBtn);else{this._addShoppingListBtn.classList.add("ds-button--loading"),this._addShoppingListComponent=await Promise.all([n.e(3633),n.e(5410)]).then(n.bind(n,5410)),this._addShoppingListBtn.classList.remove("ds-button--loading");const t=this._addShoppingListComponent.default;this._addShoppingListModal=new t("Dodaj nowÄ
listÄ",'\n <div class="ds-u-font-weight-semibold" style="margin-top: -0.5rem;">Zapisz swój koszyk jako listÄ zakupowÄ
</div>\n <p class="ds-u-font-size-xs ds-u-mt-8 ds-u-mb-24">Produkty znajdujÄ
ce siÄ w koszyku, zostanÄ
zapisane jako lista zakupowa</p>\n <form id=\'create-shopping-list-form\'></form>\n ',!0),this._addShoppingListModal.mount(this._addShoppingListBtn)}else window.location.href=m.Z.user_login};_initClearBasketBtn(){this._deleteModal?.destroy(),this._deleteModal=null,this._clearBasketBtn=document.querySelector(".js-clear-basket"),this._clearBasketBtn?.addEventListener("click",this._handleClearBasketBtn)}_handleClearBasketBtn=async t=>{const e=t.target.closest(".js-clear-basket");e&&(t.preventDefault(),e.classList.add("ds-button--loading"),this._deleteModal=new a.Z("WyczyÅciÄ koszyk?","Tak, wyczyÅÄ"),this._deleteModal.render("Wszystkie produkty z koszyka zostanÄ
usuniÄte. PamiÄtaj, że tej akcji nie można cofnÄ
Ä."),this._deleteModal.open(),this._deleteModal.addEventListener("close",async t=>{if(1==t.detail){this.showLoadingOverlay();await(0,s.RT)()?(await this.updateTemplate(),(0,o.d9)("UsuniÄto wszystkie produkty z koszyka","success"),e.classList.remove("ds-button--loading")):(e.classList.remove("ds-button--loading"),this.notificationController.mount(null,{text:"Nie udaÅo siÄ usunÄ
Ä produktów z koszyka. Spróbuj jeszcze raz",variant:"danger"}))}else e.classList.remove("ds-button--loading");this._deleteModal?.destroy()}))};handleProductChange=async t=>
1{const e=t.target.closest(".js-basket-change-product");if(!e)return;let n=w(e);this.showLoadingOverlay(),await(0,s.dx)(n.id,e.value),this._updateSRNotification("Zmieniono iloÅÄ produktu w koszyku"),this.updateTemplate()};handleBundleChange=async t=>{const e=t.target.closest(".js-basket-change-bundle");if(!e)return;let n=w(e);this.showLoadingOverlay(),await(0,s.x8)(n.bundleId,e.value,n.productId,n.bundleType),this.updateTemplate()};handleRemoveProduct=async t=>{const e=t.target.closest(".js-remove-from-basket");if(!e)return;let n=w(e);b.h2(n.id),this.showLoadingOverlay(),await(0,s.h2)(n.id),this._updateSRNotification("Produkt zostaÅ usuniÄty"),this.updateTemplate()};handleRemoveProductKeyboard=t=>{const e=t.target.closest(".js-remove-from-basket");e&&("Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.click()))};handleRemoveBundleKeyboard=t=>{const e=t.target.closest(".js-remove-bundle-from-basket");e&&("Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.click()))};handleRemoveBundle=async t=>{const e=t.target.closest(".js-remove-bundle-from-basket");if(!e)return;let n=w(e);this.showLoadingOverlay(),await(0,s.jM)(n.bundleId,n.productId,n.bundleType),this._updateSRNotification("Produkt zostaÅ usuniÄty"),this.updateTemplate()};handleBasketPromotionRemoveProductKeyboard=t=>{const e=t.target.closest(".js-remove-promotion-product-from-basket");e&&("Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.click()))};handleBasketPromotionRemoveProduct=async t=>{const e=t.target.closest(".js-remove-promotion-product-from-basket");if(!e)return;let n=w(e);this.showLoadingOverlay(),await(0,s.N)(n.id),this._updateSRNotification("Produkt zostaÅ usuniÄty"),this.updateTemplate()};showLoadingOverlay(){document.querySelector(".loading-overlay").classList.remove("ds-display-none")}_updateReCaptchaToken=()=>{window.grecaptcha&&window.grecaptcha.execute(window.APP_STORE_PAGE_CONTROLLER.googleRecaptchaSiteKey,{action:"basket_set_promotion_code"}).then(function(t){recaptchaResponse.value=t})};destroy(){window.removeEventListener("scroll",this._throttledHandleScroll),this._desktopStickyBtnController?.destroy(),this._submitBtn?.removeEventListener("click",this._handleBeginCheckout),this._promotionBtn?.removeEventListener("click",this._handleBasketPromotionBtn),this._promotionCode?.destroy()}_escapeSelector(t){return t?window.CSS&&window.CSS.escape?window.CSS.escape(t):t.replace(/([!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~])/g,"\\$1"):t}_captureFocus(){const t=document.activeElement;if(!t||!this._basketContainer.contains(t))return null;const e=t.closest("[data-product]")?.getAttribute("data-product"),n=t.id?`#${this._escapeSelector(t.id)}`:null,i=t.getAttribute("name")?`[name="${this._escapeSelector(t.getAttribute("name"))}"]`:null,s=t.classList.length?`${t.tagName.toLowerCase()}.${[...t.classList].map(t=>this._escapeSelector(t)).join(".")}`:null,o=[];return n&&o.push(n),e&&i&&o.push(`[data-product='${e}'] ${i}`),i&&o.push(i),e&&s&&o.push(`[data-product='${e}'] ${s}`),s&&o.push(s),{selectors:o}}_restoreFocus(t){if(t)for(const e of t.selectors)try{const t=this._basketContainer.querySelector(e);if(t){t.focus(),"function"==typeof t.select&&t.select();break}}catch(t){}}updateTemplate=async()=>{const t=this._captureFocus();window.APP_STORE_PAGE_CONTROLLER.inpostEnabled&&await L.j.updateBasket(),this.destroy();const e=await(0,s.db)();this._basketContainer.innerHTML=e,this._initQuantityInputs(),this._initAddShoppingListBtn(),this._initClearBasketBtn(),window.matchMedia(`(min-width: ${(0,h.j)("--large")})`).matches||this._initStickySection(),this._desktopStickyBtnController=(0,c.O)({root:document.body,buttonSelector:".js-sticky-btn",containerSelector:".basket-page-main",fixedClassName:"basket-sticky-btn--desktop-fixed",topOffset:16}),this._initBasketPromotion(),this._promotionCode=new p.Z(this,this._basketContainer),this._updateReCaptchaToken(),this._submitBtn=this._basketContainer.querySelector(".js-begin-checkout"),this._submitBtn?.addEventListener("click",this._handleBeginCheckout),this.updateNotifications(),this._inpostManager?.rerender(),this._basketContainer.querySelectorAll(".basket-items").forEach(t=>{this.handleProductPromotionsLabels(t)}),(0,C.He)(this._basketContainer),this.initProductSliders(),requestAnimationFrame(()=>this._restoreFocus(t)),this.initTooltips()};updateNotifications=()=>{const t=this._basketContainer.querySelector(".js-notification-template-container"),e=document.body.querySelector(".js-notification-container"),n=function(t){const e=document.createElement("div");return e.innerHTML=t,e.children}(t.innerHTML);n.length>0&&(e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.append(...n),this._renderNotifications(),this._announceNotifications(n,e))};_ensureNotificationLiveRegion=t=>{if(this._notificationLiveRegion)return this._notificationLiveRegion;const e=document.createElement("div");return e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.setAttribute("role","status"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.margin="-1px",e.style.padding="0",e.style.border="0",e.style.clip="rect(0 0 0 0)",e.
1style.overflow="hidden",t.appendChild(e),this._notificationLiveRegion=e,e};_announceNotifications=(t,e)=>{const n=this._ensureNotificationLiveRegion(e),i=t.map(t=>t.textContent?.trim()).filter(Boolean).join(" ").trim();i&&(n.textContent="",requestAnimationFrame(()=>{n.textContent=i}))};_updateSRNotification=t=>{const e=document.getElementById("sr-feedback");e.textContent="",setTimeout(()=>{e.textContent=t},100)}}new S},2431:(t,e,n)=>{n.d(e,{Z:()=>o});var i=n(2303),s=function(t,e,n,i){return new(n||(n=Promise))(function(s,o){function a(t){try{d(i.next(t))}catch(t){o(t)}}function r(t){try{d(i.throw(t))}catch(t){o(t)}}function d(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,r)}d((i=i.apply(t,e||[])).next())})};class o{constructor(t,e){this._handleSetPromotionCodeBtn=()=>s(this,void 0,void 0,function*(){const t=this._parentContainer.querySelector(".js-promotion-code-input input"),e=this._parentContainer.querySelector("#recaptchaResponse");""!=t.value.trim()&&(this._parent.showLoadingOverlay(),yield(0,i.yw)(t.value,e.value),this._parent.updateTemplate())}),this._handleRemovePromotionCodeBtn=()=>s(this,void 0,void 0,function*(){this._parent.showLoadingOverlay(),yield(0,i.Qi)(),this._parent.updateTemplate()}),this._parent=t,this._parentContainer=e,this._initPromotionCode()}_initPromotionCode(){this._promotionCodeSubmitBtn=this._parentContainer.querySelector(".js-set-promotion-code"),this._promotionCodeSubmitBtn&&this._promotionCodeSubmitBtn.addEventListener("click",this._handleSetPromotionCodeBtn),this._promotionCodeRemoveBtn=this._parentContainer.querySelector(".js-remove-promotion-code"),this._promotionCodeRemoveBtn&&this._promotionCodeRemoveBtn.addEventListener("click",this._handleRemovePromotionCodeBtn)}destroy(){var t,e;null===(t=this._promotionCodeSubmitBtn)||void 0===t||t.removeEventListener("click",this._handleSetPromotionCodeBtn),null===(e=this._promotionCodeRemoveBtn)||void 0===e||e.removeEventListener("click",this._handleRemovePromotionCodeBtn)}}},6242:(t,e,n)=>{n.d(e,{O:()=>r});var i=n(3096),s=n.n(i),o=n(9570);const a=()=>{},r=t=>{let{root:e,buttonSelector:n,containerSelector:i,fixedClassName:r,topOffset:d=16,breakpointVarName:l="--large",scrollThrottleMs:c=50,placeholderClassName:h="desktop-sticky-btn-placeholder"}=t;const u=e.querySelector(n),p=e.querySelector(i);if(!u||!p||!u.parentNode)return{update:a,destroy:a};const m=window.matchMedia(`(min-width: ${(0,o.j)(l)})`),b=document.createElement("div");b.className=h,b.style.display="none",u.parentNode.insertBefore(b,u);const y=t=>{if(t)return b.style.display="block",b.style.height=`${u.offsetHeight}px`,void u.classList.add(r);b.style.display="none",b.style.height="",u.classList.remove(r),u.style.left="",u.style.width=""},v=()=>{if(!m.matches)return void y(!1);const t=u.classList.contains(r)?b.getBoundingClientRect().top:u.getBoundingClientRect().top,e=p.getBoundingClientRect().bottom,n=t<=d&&e>d+u.offsetHeight;if(y(n),n){const t=b.getBoundingClientRect();u.style.left=`${t.left}px`,u.style.width=`${t.width}px`}},k=s()(v,c);window.addEventListener("scroll",k),window.addEventListener("resize",v),v();return{update:v,destroy:()=>{window.removeEventListener("scroll",k),window.removeEventListener("resize",v),u.classList.remove(r),u.style.left="",u.style.width="",b.remove()}}}},1776:(t,e,n)=>{n.d(e,{I:()=>i});const i=(t,e,n)=>{t.style.height=e.offsetHeight+"px";new ResizeObserver(()=>{t.style.height=e.offsetHeight+"px"}).observe(e);return()=>{const i=t.getBoundingClientRect();i.bottom-i.height>window.innerHeight?(e.classList.add(n),document.body.classList.add("sticky-section-active")):(e.classList.remove(n),document.body.classList.remove("sticky-section-active"))}}},5105:(t,e,n)=>{n.d(e,{Z:()=>i});class i{constructor(t,e,n){this.focusableElements=[],this.firstFocusableElement=null,this.lastFocusableElement=null,this.handleCloseSidebarPanel=t=>{const e=t.target;e.closest(".js-close-sidebar-panel")?this.close():e.closest(".ds-sidebar-panel")||this.close()},this.handleKeyDown=t=>{if(this.sidebar.classList.contains("open"))switch(t.key){case"Escape":t.preventDefault(),this.close();break;case"Tab":this.handleTabNavigation(t);break;case"Enter":case" ":t.target===this.closeButton&&(t.preventDefault(),this.close())}},this.handleTabNavigation=t=>{var e,n;this.updateFocusableElements(),0!==this.focusableElements.length&&(t.shiftKey?document.activeElement===this.firstFocusableElement&&(t.preventDefault(),null===(e=this.lastFocusableElement)||void 0===e||e.focus()):document.activeElement===this.lastFocusableElement&&(t.preventDefault(),null===(n=this.firstFocusableElement)||void 0===n||n.focus()))},this.updateFocusableElements=()=>{const t=["button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","a[href]",'[tabindex]:not
1([tabindex="-1"])',".js-close-sidebar-panel"].join(", ");this.focusableElements=Array.from(this.sidebar.querySelectorAll(t)),this.firstFocusableElement=this.focusableElements[0]||null,this.lastFocusableElement=this.focusableElements[this.focusableElements.length-1]||null},this.title=e,this.onCloseCallback=n,this.sidebar=t||this.createPanel(),this.createOverlay(),document.body.addEventListener("click",this.handleCloseSidebarPanel),document.addEventListener("keydown",this.handleKeyDown)}setOnClose(t){this.onCloseCallback=t}createOverlay(){this.overlay=document.createElement("div"),this.overlay.classList.add("ds-sidebar-panel-overlay"),document.body.appendChild(this.overlay)}createPanel(){const t=document.createElement("div");t.classList.add("ds-sidebar-panel");const e=document.createElement("div");e.classList.add("ds-sidebar-panel__header"),t.appendChild(e);const n=document.createElement("div");n.classList.add("ds-sidebar-panel__title"),n.textContent=this.title,e.appendChild(n);const i=document.createElement("div");return i.classList.add("js-close-sidebar-panel"),i.classList.add("ds-sidebar-panel__close"),i.setAttribute("role","button"),i.setAttribute("tabindex","0"),i.setAttribute("aria-label","Zamknij panel"),i.innerHTML="<i class='icon-x-mark'></i>",e.appendChild(i),this.closeButton=i,this.content=document.createElement("div"),this.content.classList.add("ds-sidebar-panel__content"),t.appendChild(this.content),document.body.appendChild(t),t}open(){this.sidebar.classList.add("open"),this.overlay.classList.add("open"),document.body.classList.add("ds-u-overflow-hidden"),setTimeout(()=>{this.updateFocusableElements(),this.firstFocusableElement&&this.firstFocusableElement.focus()},100)}close(){var t;this.sidebar.classList.remove("open"),this.overlay.classList.remove("open"),document.body.classList.remove("ds-u-overflow-hidden"),null===(t=this.onCloseCallback)||void 0===t||t.call(this)}toggle(){this.sidebar.classList.contains("open")?this.close():this.open()}renderContent(t){this.content.innerHTML=t,this.updateFocusableElements()}destroy(){document.body.removeEventListener("click",this.handleCloseSidebarPanel),document.removeEventListener("keydown",this.handleKeyDown),this.sidebar.remove(),this.overlay.remove()}}}},t=>{t.O(0,[560,9201,5506,3943,3109],()=>{return e=5128,t(t.s=e);var e});t.O()}]);
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.