PageSourceSearch

https://ninewest.com/cdn/shop/t/1489/assets/core-accordion.BiO0cYZk.min.js

js ninewest.com collected 2026-09-24 19:47:28 UTC 1,909 bytes, 1 lines download raw bytes

1import{B as l}from"./BaseElement.Dw8b55QC.min.js";import{t as h}from"./custom-element.BhZVzxrc.min.js";import{n as u}from"./property.CoOWCv8E.min.js";import{e as a}from"./query.CpiO8Lcb.min.js";import"./lit-element.D1QXZDXi.min.js";import"./base.CShCMygk.min.js";var p=Object.defineProperty,g=Object.getOwnPropertyDescriptor,d=(c,o,t,i)=>{for(var e=i>1?void 0:i?g(o,t):o,s=c.length-1,r;s>=0;s--)(r=c[s])&&(e=(i?r(o,t,e):r(e))||e);return i&&e&&p(o,t,e),e};let n=class extends l{constructor(){super(),this.expanded=!1,this.boundOnClick=this.onClick.bind(this),this.boundHandleLinkedAccordions=this.handleLinkedAccordions.bind(this)}connectedCallback(){super.connectedCallback(),this.toggleButton.addEventListener("click",this.boundOnClick),this.hasAttribute("data-accordion-group")&&this.toggleButton.addEventListener("click",this.boundHandleLinkedAccordions)}disconnectedCallback(){this.toggleButton.removeEventListener("click",this.boundOnClick),this.boundHandleLinkedAccordions&&this.toggleButton.removeEventListener("click",this.boundHandleLinkedAccordions),super.disconnectedCallback()}onClick(){this.toggleExpand()}showContent(){this.content.setAttribute("data-open","true")}hideContent(){this.content.removeAttribute("data-open")}toggleExpand(){this.expanded?(this.expanded=!1,this.toggleButton.setAttribute("aria-expanded","false"),this.hideContent()):(this.expanded=!0,this.toggleButton.setAttribute("aria-expanded","true"),this.showContent())}handleLinkedAccordions(){document.querySelectorAll(`[data-accordion-group="${this.getAttribute("data-accordion-group")}"]`).forEach(o=>{const t=o;t!==this&&(t.expanded=!1,t.toggleButton.setAttribute("aria-expanded","false"),t.hideContent())})}};d([a("[data-accordion-toggle]")],n.prototype,"toggleButton",2);d([a("[data-accordion-content]")],n.prototype,"content",2);d([u({type:Boolean,reflect:!0})],n.prototype,"expanded",2);n=d([h("custom-accordion")],n);

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.