PageSourceSearch

https://dz.diesel.com/on/demandware.static/Sites-DieselWW-Site/-/e…/js/component-PdpInfoPanel.chunks.js

js diesel.com collected 2026-09-24 08:42:27 UTC 3,197 bytes, 1 lines download raw bytes

1(self.webpackChunkapp_project=self.webpackChunkapp_project||[]).push([[5339],{36883:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(96156),a=n(10948),s=n(12737),o=n(79510);const l=n(14863).ZP,r=n(66462);class c extends a.default{get MODAL_TYPE(){return{delivery:"delivery",help:"help"}}get CLASSES(){return{keyboardInteraction:"keyboard-interaction",mouseInteraction:"mouse-interaction"}}get SELECTORS(){return{root:".info-container",panel:".pdp-side-panel-info",sidePanel:".side-panel__inner.open",deliveryButton:".js-pdp-delivery",infoButton:".js-pdp-help",loginButton:'[data-navigation-panel="login-navdialog"]'}}get KEYBOARD_INPUT(){return"keyboard"===this.html.dataset.whatintent||this.body.classList.contains(this.CLASSES.keyboardInteraction)}constructor(e){super(e),(0,i.Z)(this,"allyTabFocusHandler",void 0),this.element=e,this.currentItem,this.body=document.body,this.html=document.documentElement,this.initStartButtons(this),this.url=e.dataset.url,e.addEventListener("keydown",this.keyboardHandler.bind(this))}keyboardHandler(e){e&&e.key&&e.key.toUpperCase()===o.hY&&(e.preventDefault(),e.stopPropagation(),this.close())}close(){super.close(),this.allyTabFocusHandler&&this.allyTabFocusHandler.disengage(),this.KEYBOARD_INPUT&&this.currentItem&&r.element.focus(this.currentItem)}initStartButtons(e){[...document.querySelectorAll(this.SELECTORS.deliveryButton)].forEach((e=>{e.addEventListener("click",(()=>{this.openModal(this.MODAL_TYPE.delivery),this.currentItem=e}))}));const t=document.querySelector(this.SELECTORS.infoButton);t&&t.addEventListener("click",(()=>{this.openModal(this.MODAL_TYPE.help),this.currentItem=t}))}initCloseButton(e,t){t.querySelector(".back-btn").addEventListener("click",(e=>{this.close()}))}handleChatStatusClick(){void 0!==insideFrontInterface.openChatPane&&insideFrontInterface.openChatPane()}async openModal(e){super.open(),s.Z.emit("loader:start",{element:this.element});const t=await l(this.url+"?type="+e,{method:"GET"}),n=await t.text();this.element.querySelector(this.SELECTORS.root).innerHTML=n;const i=this.element.querySelector(".js-side-panel__close-modal-panel[data-panel-close]");i&&i.addEventListener("click",this.close.bind(this),{once:!0});const a=this.element.querySelector(this.SELECTORS.loginButton);a&&(a.removeEventListener("click",this.handleLoginButtonClick),a.addEventListener("click",this.handleLoginButtonClick)),s.Z.emit("loader:end",{element:this.element}),s.Z.emit("sidepanel:contentLoaded");const o=this.element.querySelector(".title.livechat");o&&(o.removeEventListener("click",this.handleChatStatusClick),o.addEventListener("click",this.handleChatStatusClick),insideFrontInterface&&insideFrontInterface.chat&&(insideFrontInterface.hasSessionChat?o.classList.add("active"):o.classList.remove("active"))),this.KEYBOARD_INPUT&&r.when.visibleArea({context:this.SELECTORS.panel,callback:e=>{this.allyTabFocusHandler=r.maintain.tabFocus({context:this.SELECTORS.sidePanel});const t=r.query.firstTabbable({context:e,defaultToContext:!0});t&&t.focus()},area:.2})}handleLoginButtonClick(e){const t=document.querySelector("#account-navbar");t&&t.componentInstance.toggleExternalClick(e,{backdropCloseEvent:"none"})}}}}]);

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.