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

<button data-flyout-open-trigger data-flyout-target="#flyout-story1" role="button">Open flyout 1</button>

<div id="flyout-story1" data-flyout data-flyout-direction="`,position:{start:48,end:216}},{type:"output",position:{start:216,end:231},stack:[{type:"Twig.expression.type.variable",value:"direction",match:["direction"],position:{start:216,end:231}}]},{type:"raw",value:'" ',position:{start:231,end:233}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"expanded",match:["expanded"]}],position:{start:233,end:250},output:[{type:"raw",value:"data-flyout-expanded",position:{start:250,end:270}}]},position:{open:{start:233,end:250},close:{start:270,end:281}}},{type:"raw",value:`>

  <div data-flyout-panel>
    <span data-flyout-close-trigger>
      <strong>Close x</strong>
    </span>

    <br/>Flyout 1<br/>
    Labore commodo sunt reprehenderit mollit ipsum adipisicing commodo nisi
    cupidatat mollit dolor commodo velit tempor laboris enim est sit labore
    deserunt enim ullamco irure anim do mollit deserunt Lorem aliquip dolore ex
    laboris ea consectetur aliquip adipisicing consectetur eu ad dolore ullamco
    nostrud reprehenderit quis cillum reprehenderit excepteur enim incididunt.
  </div>
</div>

<hr>

<button data-flyout-open-trigger data-flyout-target="#flyout-story2" role="button">Open flyout 2</button>

<div id="flyout-story2" data-flyout data-flyout-direction="`,position:{start:281,end:994}},{type:"output",position:{start:994,end:1009},stack:[{type:"Twig.expression.type.variable",value:"direction",match:["direction"],position:{start:994,end:1009}}]},{type:"raw",value:'" ',position:{start:1009,end:1011}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"expanded",match:["expanded"]}],position:{start:1011,end:1028},output:[{type:"raw",value:"data-flyout-expanded",position:{start:1028,end:1048}}]},position:{open:{start:1011,end:1028},close:{start:1048,end:1059}}},{type:"raw",value:`>

  <div data-flyout-panel>
    <span data-flyout-close-trigger>
      <strong>Close ❌</strong>
    </span>

    <br/>Flyout 2<br/>
    Labore commodo sunt reprehenderit mollit ipsum adipisicing commodo nisi
    cupidatat mollit dolor commodo velit tempor laboris enim est sit labore
    deserunt enim ullamco irure anim do mollit deserunt Lorem aliquip dolore ex
    laboris ea consectetur aliquip adipisicing consectetur eu ad dolore ullamco
    nostrud reprehenderit quis cillum reprehenderit excepteur enim incididunt.
  </div>
</div>

<hr>

<button data-flyout-open-trigger role="button">Open flyout 3 (no trigger target)</button>
<div id="flyout-story3" data-flyout data-flyout-direction="`,position:{start:1059,end:1755}},{type:"output",position:{start:1755,end:1770},stack:[{type:"Twig.expression.type.variable",value:"direction",match:["direction"],position:{start:1755,end:1770}}]},{type:"raw",value:'" ',position:{start:1770,end:1772}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"expanded",match:["expanded"]}],position:{start:1772,end:1789},output:[{type:"raw",value:"data-flyout-expanded",position:{start:1789,end:1809}}]},position:{open:{start:1772,end:1789},close:{start:1809,end:1820}}},{type:"raw",value:`>

  <div data-flyout-panel>
    <span data-flyout-close-trigger>
      <strong>Close ❌</strong>
    </span>

    <br/>Flyout 3<br/>
    Labore commodo sunt reprehenderit mollit ipsum adipisicing commodo nisi
    cupidatat mollit dolor commodo velit tempor laboris enim est sit labore
    deserunt enim ullamco irure anim do mollit deserunt Lorem aliquip dolore ex
    laboris ea consectetur aliquip adipisicing consectetur eu ad dolore ullamco
    nostrud reprehenderit quis cillum reprehenderit excepteur enim incididunt.
  </div>
</div>

<hr>

<button data-flyout-open-trigger role="button">Open flyout 4 (duration)</button>
<div id="flyout-story4" data-flyout data-flyout-direction="`,position:{start:1820,end:2507}},{type:"output",position:{start:2507,end:2522},stack:[{type:"Twig.expression.type.variable",value:"direction",match:["direction"],position:{start:2507,end:2522}}]},{type:"raw",value:'" ',position:{start:2522,end:2524}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"duration",match:["duration"]}],position:{start:2524,end:2541},output:[{type:"raw",value:'data-flyout-duration="',position:{start:2541,end:2563}},{type:"output",position:{start:2563,end:2577},stack:[{type:"Twig.expression.type.variable",value:"duration",match:["duration"],position:{start:2563,end:2577}}]},{type:"raw",value:'"',position:{start:2577,end:2578}}]},position:{open:{start:2524,end:2541},close:{start:2578,end:2589}}},{type:"raw",value:" ",position:{start:2589,end:2590}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"expanded",match:["expanded"]}],position:{start:2590,end:2607},output:[{type:"raw",value:"data-flyout-expanded",position:{start:2607,end:2627}}]},position:{open:{start:2590,end:2607},close:{start:2627,end:2638}}},{type:"raw",value:`>

  <div data-flyout-panel>
    <span data-flyout-close-trigger>
      <strong>Close ❌</strong>
    </span>

    <br/>Flyout 4<br/>
    Labore commodo sunt reprehenderit mollit ipsum adipisicing commodo nisi
    cupidatat mollit dolor commodo velit tempor laboris enim est sit labore
    deserunt enim ullamco irure anim do mollit deserunt Lorem aliquip dolore ex
    laboris ea consectetur aliquip adipisicing consectetur eu ad dolore ullamco
    nostrud reprehenderit quis cillum reprehenderit excepteur enim incididunt.
  </div>
</div>

<hr>

<button data-flyout-open-trigger data-flyout-target="#flyout-story5" role="button">Open flyout 5 and close all</button>
<div id="flyout-story5" data-flyout data-flyout-direction="`,position:{start:2638,end:3364}},{type:"output",position:{start:3364,end:3379},stack:[{type:"Twig.expression.type.variable",value:"direction",match:["direction"],position:{start:3364,end:3379}}]},{type:"raw",value:'" ',position:{start:3379,end:3381}},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"expanded",match:["expanded"]}],position:{start:3381,end:3398},output:[{type:"raw",value:"data-flyout-expanded",position:{start:3398,end:3418}}]},position:{open:{start:3381,end:3398},close:{start:3418,end:3429}}},{type:"raw",value:`>

  <div data-flyout-panel>
    <span data-flyout-close-all-trigger>
      <strong>Close all ❌</strong>
    </span>

    <br/>Flyout 5<br/>
    Labore commodo sunt reprehenderit mollit ipsum adipisicing commodo nisi
    cupidatat mollit dolor commodo velit tempor laboris enim est sit labore
    deserunt enim ullamco irure anim do mollit deserunt Lorem aliquip dolore ex
    laboris ea consectetur aliquip adipisicing consectetur eu ad dolore ullamco
    nostrud reprehenderit quis cillum reprehenderit excepteur enim incididunt.
  </div>
</div>
`,position:{start:3429,end:3429}}],precompiled:!0});n.options.allowInlineIncludes=!0;try{let t=e.defaultAttributes?e.defaultAttributes:[];return Array.isArray(t)||(t=Object.entries(t)),i(n.render({attributes:new p(t),...e}))}catch(t){return i("An error occurred whilst rendering /app/web/themes/contrib/civictheme/components/00-base/flyout/flyout.stories.twig: "+t.toString())}},g={title:"Base/Utilities/Flyout",component:c,argTypes:{direction:{control:{type:"select"},options:["top","bottom","left","right"]},expanded:{control:{type:"boolean"}},duration:{control:{type:"number"}}}},o={parameters:{layout:"centered",html:{disable:!0}},args:{direction:"right",expanded:!1,duration:500}};var a,r,s;o.parameters={...o.parameters,docs:{...(a=o.parameters)==null?void 0:a.docs,source:{originalSource:`{
  parameters: {
    layout: 'centered',
    html: {
      disable: true
    }
  },
  args: {
    direction: 'right',
    expanded: false,
    duration: 500
  }
}`,...(s=(r=o.parameters)==null?void 0:r.docs)==null?void 0:s.source}}};const b=["Flyout"];export{o as Flyout,b as __namedExportsOrder,g as default};
