// phpcs:ignoreFile
import{t as c,D as r,a as p,T as d}from"./twig-TIIEE6v_.js";import"./_commonjsHelpers-_d1bhYXs.js";p(d);d.cache(!1);const t=a=>a,u=(a={})=>{const n=c.twig({id:"/app/web/themes/contrib/civictheme/components/00-base/collapsible/collapsible.stories.twig",data:[{type:"raw",value:`

<div class="story-container">
  <div class="story-container__title">Initially expanded</div>

  <div data-collapsible>
    <div data-collapsible-trigger>
      TRIGGER (click me)
    </div>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Initially collapsed</div>

  <div data-collapsible data-collapsible-collapsed>
    <div data-collapsible-trigger>
      TRIGGER (click me)
    </div>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Long animation</div>

  <div data-collapsible data-collapsible-collapsed data-collapsible-duration="2000">
    <div data-collapsible-trigger>
      TRIGGER (click me)
    </div>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">No animation</div>

  <div data-collapsible data-collapsible-collapsed data-collapsible-duration="0">
    <div data-collapsible-trigger>
      TRIGGER (click me)
    </div>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Minimal data attributes</div>

  <div data-collapsible>
    <div>
      TRIGGER (click me)
    </div>
    <div>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">No trigger icon</div>

  <div data-collapsible>
    <div data-collapsible-trigger>
      TRIGGER (click me)
    </div>
    <div data-collapsible-panel data-collapsible-trigger-no-icon>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Trigger icon which wraps with last word</div>

  <div data-collapsible data-collapsible-icon-group>
    <div data-collapsible-trigger>
      TRIGGER with long text Lorem ipsum est in labore do laboris dolor dolor labore labore do dolor adipisicing.
    </div>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Wide trigger icon</div>

  <div data-collapsible data-collapsible-trigger-wide>
    <div>
      TRIGGER (click me)
    </div>
    <div>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Themed</div>

  <div data-collapsible class="`,position:{start:53,end:4729}},{type:"output",position:{start:4729,end:4746},stack:[{type:"Twig.expression.type.variable",value:"theme_class",match:["theme_class"],position:{start:4729,end:4746}}]},{type:"raw",value:`">
    <div>
      TRIGGER (click me)
    </div>
    <div>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Trigger is a link - Initially expanded</div>

  <div data-collapsible>
    <a href="#" data-collapsible-trigger>
      TRIGGER (click me)
    </a>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Trigger is a button - Initially expanded</div>

  <div data-collapsible>
    <button data-collapsible-trigger>
      TRIGGER (click me)
    </button>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Inline trigger</div>

  <div data-collapsible>
    <span data-collapsible-trigger>
      TRIGGER (click me)
    </span>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>
</div>

<div class="story-container" style="height: 300px">
  <div class="story-container__title">Absolute panel</div>

  <div data-collapsible style="position: relative">
    <span data-collapsible-trigger>
      TRIGGER (click me)
    </span>
    <div data-collapsible-panel style="position: absolute; background-color: rgba(200,200,200, 0.8);">
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
    </div>
  </div>

  Text behind absolutely positioned panel.
</div>

<div class="story-container story-menu-multiple-inline-with-absolute-panels" style="height: 300px">
  <div class="story-container__title">
    Multiple inline with absolute panels
  </div>

  <ul style="display: flex;">
    <li data-collapsible data-collapsible-collapsed data-collapsible-group="menu1" style="display: flex;">
      <a href="#" data-collapsible-trigger>Item 1</a>
      <ul data-collapsible-panel style="position: absolute; background-color: rgba(150,200,200, 0.8);">
        <li>
          <a href="#">Item 11</a>
        </li>
        <li>
          <a href="#">Item 12</a>
        </li>
        <li>
          <a href="#">Item 13</a>
        </li>
      </ul>
    </li>
    <li data-collapsible data-collapsible-collapsed data-collapsible-group="menu1" style="display: flex;">
      <a href="#" data-collapsible-trigger>Item 2</a>
      <ul data-collapsible-panel style="position: absolute; background-color: rgba(150,200,200, 0.8);">
        <li>
          <a href="#">Item 21</a>
        </li>
        <li>
          <a href="#">Item 22</a>
        </li>
        <li>
          <a href="#">Item 23</a>
        </li>
      </ul>
    </li>
    <li data-collapsible data-collapsible-collapsed data-collapsible-group="menu1" style="display: flex;">
      <a href="#" data-collapsible-trigger>Item 3</a>
      <ul data-collapsible-panel style="position: absolute; background-color: rgba(150,200,200, 0.8);">
        <li>
          <a href="#">Item 31</a>
        </li>
        <li>
          <a href="#">Item 32</a>
        </li>
        <li>
          <a href="#">Item 33</a>
        </li>
      </ul>
    </li>
  </ul>

  Text behind absolutely positioned panels.
</div>

<div class="story-container story-menu-multiple-inline-with-absolute-panels story-menu-focus" style="height: 300px">
  <div class="story-container__title">
    Multiple inline with absolute panels and focus
  </div>

  <div>
    <button>Example button before</button>
  </div>

  <ul style="display: flex;">
    <li data-collapsible data-collapsible-collapsed data-collapsible-group="menu2" style="display: flex;">
      <a href="#" data-collapsible-trigger>Item 1</a>
      <ul data-collapsible-panel style="position: absolute; background-color: rgba(150,200,200, 0.8);">
        <li>
          <a href="#">Item 11</a>
        </li>
        <li>
          <a href="#">Item 12</a>
        </li>
        <li>
          <a href="#">Item 13</a>
        </li>
      </ul>
    </li>
    <li data-collapsible data-collapsible-collapsed data-collapsible-group="menu2" style="display: flex;">
      <a href="#" data-collapsible-trigger>Item 2</a>
      <ul data-collapsible-panel style="position: absolute; background-color: rgba(150,200,200, 0.8);">
        <li>
          <a href="#">Item 21</a>
        </li>
        <li>
          <a href="#">Item 22</a>
        </li>
        <li>
          <a href="#">Item 23</a>
        </li>
      </ul>
    </li>
    <li data-collapsible data-collapsible-collapsed data-collapsible-group="menu2" style="display: flex;">
      <a href="#" data-collapsible-trigger>Item 3</a>
      <ul data-collapsible-panel style="position: absolute; background-color: rgba(150,200,200, 0.8);">
        <li>
          <a href="#">Item 31</a>
        </li>
        <li>
          <a href="#">Item 32</a>
        </li>
        <li>
          <a href="#">Item 33</a>
        </li>
      </ul>
    </li>
  </ul>

  Text behind absolutely positioned panels.

  <div>
    <button>Example button after</button>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Test Nested Collapsible Closed</div>

  <div data-collapsible data-collapsible-collapsed>
    <div data-collapsible-trigger>
      TRIGGER (click me)
    </div>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
      <div data-collapsible data-collapsible-collapsed>
        <div data-collapsible-trigger>
          TRIGGER (click me) 1
        </div>
        <div data-collapsible-panel>
          Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
          elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
          Accusamus
          atque deleniti, distinctio esse facere, nam odio officiis omnis porro
          quibusdam quis repudiandae veritatis.
        </div>
      </div>
      <div data-collapsible data-collapsible-collapsed>
        <div data-collapsible-trigger>
          TRIGGER (click me) 2
        </div>
        <div data-collapsible-panel>
          Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
          elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
          Accusamus
          atque deleniti, distinctio esse facere, nam odio officiis omnis porro
          quibusdam quis repudiandae veritatis.
          <div data-collapsible data-collapsible-collapsed>
            <div data-collapsible-trigger>
              TRIGGER (click me) 2:1
            </div>
            <div data-collapsible-panel>
              Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
              elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
              Accusamus
              atque deleniti, distinctio esse facere, nam odio officiis omnis porro
              quibusdam quis repudiandae veritatis.
            </div>
          </div>
          <div data-collapsible data-collapsible-collapsed>
            <div data-collapsible-trigger>
              TRIGGER (click me) 2:2
            </div>
            <div data-collapsible-panel>
              Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
              elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
              Accusamus
              atque deleniti, distinctio esse facere, nam odio officiis omnis porro
              quibusdam quis repudiandae veritatis.
            </div>
          </div>
        </div>
      </div>
      <div data-collapsible data-collapsible-collapsed>
        <div data-collapsible-trigger>
          TRIGGER (click me) 3
        </div>
        <div data-collapsible-panel>
          Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
          elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
          Accusamus
          atque deleniti, distinctio esse facere, nam odio officiis omnis porro
          quibusdam quis repudiandae veritatis.
        </div>
      </div>
    </div>
  </div>
</div>

<div class="story-container">
  <div class="story-container__title">Test Nested Collapsible Expanded</div>

  <div data-collapsible>
    <div data-collapsible-trigger>
      TRIGGER (click me)
    </div>
    <div data-collapsible-panel>
      Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
      elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
      Accusamus
      atque deleniti, distinctio esse facere, nam odio officiis omnis porro
      quibusdam quis repudiandae veritatis.
      <div data-collapsible>
        <div data-collapsible-trigger>
          TRIGGER (click me) 1
        </div>
        <div data-collapsible-panel>
          Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
          elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
          Accusamus
          atque deleniti, distinctio esse facere, nam odio officiis omnis porro
          quibusdam quis repudiandae veritatis.
        </div>
      </div>
      <div data-collapsible>
        <div data-collapsible-trigger>
          TRIGGER (click me) 2
        </div>
        <div data-collapsible-panel>
          Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
          elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
          Accusamus
          atque deleniti, distinctio esse facere, nam odio officiis omnis porro
          quibusdam quis repudiandae veritatis.
          <div data-collapsible>
            <div data-collapsible-trigger>
              TRIGGER (click me) 2:1
            </div>
            <div data-collapsible-panel>
              Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
              elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
              Accusamus
              atque deleniti, distinctio esse facere, nam odio officiis omnis porro
              quibusdam quis repudiandae veritatis.
            </div>
          </div>
          <div data-collapsible>
            <div data-collapsible-trigger>
              TRIGGER (click me) 2:2
            </div>
            <div data-collapsible-panel>
              Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
              elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
              Accusamus
              atque deleniti, distinctio esse facere, nam odio officiis omnis porro
              quibusdam quis repudiandae veritatis.
            </div>
          </div>
        </div>
      </div>
      <div data-collapsible>
        <div data-collapsible-trigger>
          TRIGGER (click me) 3
        </div>
        <div data-collapsible-panel>
          Collapsible demo panel Lorem ipsum dolor sit amet, consectetur adipisicing
          elit. Consectetur harum magnam modi obcaecati vitae voluptatibus!
          Accusamus
          atque deleniti, distinctio esse facere, nam odio officiis omnis porro
          quibusdam quis repudiandae veritatis.
        </div>
      </div>
    </div>
  </div>
</div>
`,position:{start:4746,end:4746}}],precompiled:!0});n.options.allowInlineIncludes=!0;try{let i=a.defaultAttributes?a.defaultAttributes:[];return Array.isArray(i)||(i=Object.entries(i)),t(n.render({attributes:new r(i),...a}))}catch(i){return t("An error occurred whilst rendering /app/web/themes/contrib/civictheme/components/00-base/collapsible/collapsible.stories.twig: "+i.toString())}},b={title:"Base/Utilities/Collapsible",component:u},e={parameters:{layout:"centered",html:{disable:!0}}};var l,s,o;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{
  parameters: {
    layout: 'centered',
    html: {
      disable: true
    }
  }
}`,...(o=(s=e.parameters)==null?void 0:s.docs)==null?void 0:o.source}}};const g=["Collapsible"];export{e as Collapsible,g as __namedExportsOrder,b as default};
