import{j as e,r as c}from"./iframe-p4aYZyoq.js";import{d as p}from"./index-BUaT88Mv.js";import"./SlidingPanelsWithArrow.stories-XRowt7nk.js";import{S as a}from"./sliding-panel-Cb4AJULw.js";import{B as d}from"./button-BsNF7f-b.js";import"./preload-helper-BDBacUwf.js";import"./index-CLmSyVZI.js";import"./index-BNdLPu6u.js";import"./index-Dx18ixSn.js";import"./timing-functions.es-CZdVE6Va.js";import"./times-DeY5Bu0x.js";const{fn:x}=__STORYBOOK_MODULE_TEST__,P=({title:r,position:i,size:o,onClose:t})=>{const[f,m]=c.useState(!1),[h,l]=c.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx(d,{onClick:()=>m(!0),style:{position:"absolute",top:"1rem",left:i==="left"?"1rem":"",right:i==="right"?"1rem":""},children:"Click me"}),f&&e.jsx(a,{title:`Sliding panel 1: ${r}`,position:i,size:o,onClose:s=>{m(!1),l(!1),t==null||t(s)},pathname:"#",children:e.jsxs(e.Fragment,{children:[e.jsx(d,{onClick:()=>l(!0),children:"Click me too"}),e.jsx("br",{}),p.loremIpsum({count:25}),h&&e.jsx(a,{title:`Sliding panel 2: ${r}`,position:i,size:o,onClose:s=>{l(!1),t==null||t(s)},pathname:"#",children:p.loremIpsum({count:25})})]})})]})},R={title:"Layout/Sliding Panel",component:a,argTypes:{size:{control:"select",options:["small","medium","large","full-screen"],position:{control:"select",options:["top","right","bottom","left"]}}},args:{title:"Title",size:"medium",position:"left",onClose:x()},render:r=>e.jsx(P,{...r})},n={};var u,g,S;n.parameters={...n.parameters,docs:{...(u=n.parameters)==null?void 0:u.docs,source:{originalSource:"{}",...(S=(g=n.parameters)==null?void 0:g.docs)==null?void 0:S.source}}};const F=["SlidingPanelInSlidingPanel"];export{n as SlidingPanelInSlidingPanel,F as __namedExportsOrder,R as default};
