PageSourceSearch

https://www.jamesperse.com/cdn/shop/t/1023/assets/-core-accordion.js?v=155635299271684615041790012382

js jamesperse.com collected 2026-09-25 20:35:14 UTC 1,921 bytes, 1 lines download raw bytes

1import{B as l}from"./chunk-BaseElement-080wYmDA.js";import{t as h}from"./chunk-custom-element-BhZVzxrc.js";import{n as u}from"./chunk-property-tugrfeCs.js";import{e as a}from"./chunk-query-DW6Aiumo.js";import"./chunk-lit-element-D1QXZDXi.js";import"./chunk-base-CShCMygk.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.