{
  "version": 3,
  "sources": ["/cdn/shop/t/6/assets/disclosure-custom.js?cb=20260407-7"],
  "sourcesContent": ["import { Component } from '@theme/component';\n\n/**\n * A small utility for setting up an animated disclosure panel using inert and CSS display grid for height auto animation.\n *\n * This component works with any element that follows the details/summary pattern for revealing content.\n * Forms and other interactive elements don't need to live inside a details element, but can still use\n * the expanded pattern for accessibility and animation.\n *\n * The component relies on CSS display grid and inert attributes to create smooth height animations\n * when expanding/collapsing content areas.\n *\n * @class DisclosureCustom\n * @typedef {object} Refs\n * @property {HTMLElement} disclosureTrigger \u2013 The disclosure trigger element.\n * @property {HTMLElement} disclosureContent \u2013 The disclosure content element.\n *\n * @extends Component<Refs>\n */\nclass DisclosureCustom extends Component {\n  requiredRefs = ['disclosureTrigger', 'disclosureContent'];\n\n  connectedCallback() {\n    super.connectedCallback();\n  }\n\n  disconnectedCallback() {\n    super.disconnectedCallback();\n  }\n\n  /**\n   * Toggles the disclosure panel open/closed state.\n   * Updates aria-expanded, aria-label attributes on the trigger and inert state on content.\n   * Works with CSS grid animations to provide smooth height transitions.\n   */\n  toggleDisclosure = () => {\n    const { disclosureTrigger: trigger, disclosureContent: content } = this.refs;\n    const expanded = trigger.matches('[aria-expanded=\"true\"]');\n    trigger.setAttribute('aria-expanded', String(!expanded));\n    trigger.setAttribute(\n      'aria-label',\n      `${expanded ? trigger.dataset.disclosureOpen : trigger.dataset.disclosureClose}`\n    );\n    content.inert = expanded;\n  };\n}\n\nif (!customElements.get('disclosure-custom')) {\n  customElements.define('disclosure-custom', DisclosureCustom);\n}\n"],
  "mappings": "AAAA,OAAS,cAAiB,mBAmB1B,MAAM,yBAAyB,SAAU,CACvC,aAAe,CAAC,oBAAqB,mBAAmB,EAExD,mBAAoB,CAClB,MAAM,kBAAkB,CAC1B,CAEA,sBAAuB,CACrB,MAAM,qBAAqB,CAC7B,CAOA,iBAAmB,IAAM,CACvB,KAAM,CAAE,kBAAmB,QAAS,kBAAmB,OAAQ,EAAI,KAAK,KAClE,SAAW,QAAQ,QAAQ,wBAAwB,EACzD,QAAQ,aAAa,gBAAiB,OAAO,CAAC,QAAQ,CAAC,EACvD,QAAQ,aACN,aACA,GAAG,SAAW,QAAQ,QAAQ,eAAiB,QAAQ,QAAQ,eAAe,EAChF,EACA,QAAQ,MAAQ,QAClB,CACF,CAEK,eAAe,IAAI,mBAAmB,GACzC,eAAe,OAAO,oBAAqB,gBAAgB",
  "names": []
}
