"use strict";(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[4531],{"./lib/view/wait-message/index.stories.tsx":(B,i,e)=>{e.r(i),e.d(i,{Basic:()=>c,Close:()=>l,__namedExportsOrder:()=>y,default:()=>h});var d=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/objectWithoutProperties.js"),m=e.n(d),M=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),g=e("./lib/data/useAppDispatch.ts"),r=e("./lib/data/wait-message/actions.ts"),O=e("./lib/view/wait-message/index.tsx"),a=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),f=["isOpen"],p,u=`
    
    // @ts-nocheck
    // @ts-ignore
    var __STORY__ = "import { Story, Meta } from '@storybook/react';\\nimport { useEffect } from 'react';\\nimport { useAppDispatch } from '../../data/react.js';\\nimport { waitMessage } from '../../data/wait-message/actions.js';\\nimport { WaitMessage, WaitMessageProps } from './index.js';\\n\\nconst WaitMessageComponent: Story<WaitMessageProps & { isOpen: boolean }> = ({\\n  isOpen,\\n}) => {\\n  const dispatch = useAppDispatch();\\n  useEffect(() => {\\n    if (!dispatch) return;\\n    if (isOpen) dispatch(waitMessage.open());\\n    else dispatch(waitMessage.close());\\n  }, [isOpen, dispatch]);\\n  \\n  return <></>;\\n};\\n\\nconst Template: Story<WaitMessageProps & { isOpen: boolean }> = ({\\n  isOpen,\\n  ...rest\\n}) => <WaitMessageComponent isOpen={isOpen} {...rest} />;\\n\\nexport default {\\n  title: 'Modals/WaitMessage',\\n  component: WaitMessage,\\n} as Meta;\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  size: 'xl',\\n  isOpen: true,\\n};\\n\\nexport const Close = Template.bind({});\\nClose.args = {\\n  size: 'xl',\\n  isOpen: false,\\n};\\n";
    // @ts-ignore
    var __LOCATIONS_MAP__ = {"Basic":{"startLoc":{"col":64,"line":20},"endLoc":{"col":56,"line":23},"startBody":{"col":64,"line":20},"endBody":{"col":56,"line":23}},"Close":{"startLoc":{"col":64,"line":20},"endLoc":{"col":56,"line":23},"startBody":{"col":64,"line":20},"endBody":{"col":56,"line":23}}};
    
import { Story, Meta } from '@storybook/react';
import { useEffect } from 'react';
import { useAppDispatch } from '../../data/react.js';
import { waitMessage } from '../../data/wait-message/actions.js';
import { WaitMessage, WaitMessageProps } from './index.js';

const WaitMessageComponent: Story<WaitMessageProps & { isOpen: boolean }> = ({
  isOpen,
}) => {
  const dispatch = useAppDispatch();
  useEffect(() => {
    if (!dispatch) return;
    if (isOpen) dispatch(waitMessage.open());
    else dispatch(waitMessage.close());
  }, [isOpen, dispatch]);
  
  return <></>;
};

const Template: Story<WaitMessageProps & { isOpen: boolean }> = ({
  isOpen,
  ...rest
}) => <WaitMessageComponent isOpen={isOpen} {...rest} />;

export default {parameters: {"storySource":{"source":"import { Story, Meta } from '@storybook/react';\\nimport { useEffect } from 'react';\\nimport { useAppDispatch } from '../../data/react.js';\\nimport { waitMessage } from '../../data/wait-message/actions.js';\\nimport { WaitMessage, WaitMessageProps } from './index.js';\\n\\nconst WaitMessageComponent: Story<WaitMessageProps & { isOpen: boolean }> = ({\\n  isOpen,\\n}) => {\\n  const dispatch = useAppDispatch();\\n  useEffect(() => {\\n    if (!dispatch) return;\\n    if (isOpen) dispatch(waitMessage.open());\\n    else dispatch(waitMessage.close());\\n  }, [isOpen, dispatch]);\\n  \\n  return <></>;\\n};\\n\\nconst Template: Story<WaitMessageProps & { isOpen: boolean }> = ({\\n  isOpen,\\n  ...rest\\n}) => <WaitMessageComponent isOpen={isOpen} {...rest} />;\\n\\nexport default {\\n  title: 'Modals/WaitMessage',\\n  component: WaitMessage,\\n} as Meta;\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  size: 'xl',\\n  isOpen: true,\\n};\\n\\nexport const Close = Template.bind({});\\nClose.args = {\\n  size: 'xl',\\n  isOpen: false,\\n};\\n","locationsMap":{"basic":{"startLoc":{"col":64,"line":20},"endLoc":{"col":56,"line":23},"startBody":{"col":64,"line":20},"endBody":{"col":56,"line":23}},"close":{"startLoc":{"col":64,"line":20},"endLoc":{"col":56,"line":23},"startBody":{"col":64,"line":20},"endBody":{"col":56,"line":23}}}},},
  title: 'Modals/WaitMessage',
  component: WaitMessage,
} as Meta;

export const Basic = Template.bind({});;
Basic.args = {
  size: 'xl',
  isOpen: true,
};

export const Close = Template.bind({});
Close.args = {
  size: 'xl',
  isOpen: false,
};
`,_={Basic:{startLoc:{col:64,line:28},endLoc:{col:56,line:31},startBody:{col:64,line:28},endBody:{col:56,line:31}},Close:{startLoc:{col:64,line:28},endLoc:{col:56,line:31},startBody:{col:64,line:28},endBody:{col:56,line:31}}},u=`import { Story, Meta } from '@storybook/react';
import { useEffect } from 'react';
import { useAppDispatch } from '../../data/react.js';
import { waitMessage } from '../../data/wait-message/actions.js';
import { WaitMessage, WaitMessageProps } from './index.js';

const WaitMessageComponent: Story<WaitMessageProps & { isOpen: boolean }> = ({
  isOpen,
}) => {
  const dispatch = useAppDispatch();
  useEffect(() => {
    if (!dispatch) return;
    if (isOpen) dispatch(waitMessage.open());
    else dispatch(waitMessage.close());
  }, [isOpen, dispatch]);
  
  return <></>;
};

const Template: Story<WaitMessageProps & { isOpen: boolean }> = ({
  isOpen,
  ...rest
}) => <WaitMessageComponent isOpen={isOpen} {...rest} />;

export default {
  title: 'Modals/WaitMessage',
  component: WaitMessage,
} as Meta;

export const Basic = Template.bind({});
Basic.args = {
  size: 'xl',
  isOpen: true,
};

export const Close = Template.bind({});
Close.args = {
  size: 'xl',
  isOpen: false,
};
`,_={Basic:{startLoc:{col:64,line:20},endLoc:{col:56,line:23},startBody:{col:64,line:20},endBody:{col:56,line:23}},Close:{startLoc:{col:64,line:20},endLoc:{col:56,line:23},startBody:{col:64,line:20},endBody:{col:56,line:23}}},W=function(s){var t=s.isOpen,n=(0,g.j)();return(0,M.useEffect)(function(){n&&n(t?r.X.open():r.X.close())},[t,n]),p||(p=(0,a.jsx)(a.Fragment,{}))},o=function(s){var t=s.isOpen,n=m()(s,f);return(0,a.jsx)(W,Object.assign({isOpen:t},n))};o.displayName="Template";const h={parameters:{storySource:{source:`
    
    // @ts-nocheck
    // @ts-ignore
    var __STORY__ = "import { Story, Meta } from '@storybook/react';\\nimport { useEffect } from 'react';\\nimport { useAppDispatch } from '../../data/react.js';\\nimport { waitMessage } from '../../data/wait-message/actions.js';\\nimport { WaitMessage, WaitMessageProps } from './index.js';\\n\\nconst WaitMessageComponent: Story<WaitMessageProps & { isOpen: boolean }> = ({\\n  isOpen,\\n}) => {\\n  const dispatch = useAppDispatch();\\n  useEffect(() => {\\n    if (!dispatch) return;\\n    if (isOpen) dispatch(waitMessage.open());\\n    else dispatch(waitMessage.close());\\n  }, [isOpen, dispatch]);\\n  \\n  return <></>;\\n};\\n\\nconst Template: Story<WaitMessageProps & { isOpen: boolean }> = ({\\n  isOpen,\\n  ...rest\\n}) => <WaitMessageComponent isOpen={isOpen} {...rest} />;\\n\\nexport default {\\n  title: 'Modals/WaitMessage',\\n  component: WaitMessage,\\n} as Meta;\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  size: 'xl',\\n  isOpen: true,\\n};\\n\\nexport const Close = Template.bind({});\\nClose.args = {\\n  size: 'xl',\\n  isOpen: false,\\n};\\n";
    // @ts-ignore
    var __LOCATIONS_MAP__ = {"Basic":{"startLoc":{"col":64,"line":20},"endLoc":{"col":56,"line":23},"startBody":{"col":64,"line":20},"endBody":{"col":56,"line":23}},"Close":{"startLoc":{"col":64,"line":20},"endLoc":{"col":56,"line":23},"startBody":{"col":64,"line":20},"endBody":{"col":56,"line":23}}};
    
import { Story, Meta } from '@storybook/react';
import { useEffect } from 'react';
import { useAppDispatch } from '../../data/react.js';
import { waitMessage } from '../../data/wait-message/actions.js';
import { WaitMessage, WaitMessageProps } from './index.js';

const WaitMessageComponent: Story<WaitMessageProps & { isOpen: boolean }> = ({
  isOpen,
}) => {
  const dispatch = useAppDispatch();
  useEffect(() => {
    if (!dispatch) return;
    if (isOpen) dispatch(waitMessage.open());
    else dispatch(waitMessage.close());
  }, [isOpen, dispatch]);
  
  return <></>;
};

const Template: Story<WaitMessageProps & { isOpen: boolean }> = ({
  isOpen,
  ...rest
}) => <WaitMessageComponent isOpen={isOpen} {...rest} />;

export default {parameters: {"storySource":{"source":"import { Story, Meta } from '@storybook/react';\\nimport { useEffect } from 'react';\\nimport { useAppDispatch } from '../../data/react.js';\\nimport { waitMessage } from '../../data/wait-message/actions.js';\\nimport { WaitMessage, WaitMessageProps } from './index.js';\\n\\nconst WaitMessageComponent: Story<WaitMessageProps & { isOpen: boolean }> = ({\\n  isOpen,\\n}) => {\\n  const dispatch = useAppDispatch();\\n  useEffect(() => {\\n    if (!dispatch) return;\\n    if (isOpen) dispatch(waitMessage.open());\\n    else dispatch(waitMessage.close());\\n  }, [isOpen, dispatch]);\\n  \\n  return <></>;\\n};\\n\\nconst Template: Story<WaitMessageProps & { isOpen: boolean }> = ({\\n  isOpen,\\n  ...rest\\n}) => <WaitMessageComponent isOpen={isOpen} {...rest} />;\\n\\nexport default {\\n  title: 'Modals/WaitMessage',\\n  component: WaitMessage,\\n} as Meta;\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  size: 'xl',\\n  isOpen: true,\\n};\\n\\nexport const Close = Template.bind({});\\nClose.args = {\\n  size: 'xl',\\n  isOpen: false,\\n};\\n","locationsMap":{"basic":{"startLoc":{"col":64,"line":20},"endLoc":{"col":56,"line":23},"startBody":{"col":64,"line":20},"endBody":{"col":56,"line":23}},"close":{"startLoc":{"col":64,"line":20},"endLoc":{"col":56,"line":23},"startBody":{"col":64,"line":20},"endBody":{"col":56,"line":23}}}},},
  title: 'Modals/WaitMessage',
  component: WaitMessage,
} as Meta;

export const Basic = Template.bind({});;
Basic.args = {
  size: 'xl',
  isOpen: true,
};

export const Close = Template.bind({});
Close.args = {
  size: 'xl',
  isOpen: false,
};
`,locationsMap:{basic:{startLoc:{col:64,line:28},endLoc:{col:56,line:31},startBody:{col:64,line:28},endBody:{col:56,line:31}},close:{startLoc:{col:64,line:28},endLoc:{col:56,line:31},startBody:{col:64,line:28},endBody:{col:56,line:31}}}},storySource:{source:`import { Story, Meta } from '@storybook/react';
import { useEffect } from 'react';
import { useAppDispatch } from '../../data/react.js';
import { waitMessage } from '../../data/wait-message/actions.js';
import { WaitMessage, WaitMessageProps } from './index.js';

const WaitMessageComponent: Story<WaitMessageProps & { isOpen: boolean }> = ({
  isOpen,
}) => {
  const dispatch = useAppDispatch();
  useEffect(() => {
    if (!dispatch) return;
    if (isOpen) dispatch(waitMessage.open());
    else dispatch(waitMessage.close());
  }, [isOpen, dispatch]);
  
  return <></>;
};

const Template: Story<WaitMessageProps & { isOpen: boolean }> = ({
  isOpen,
  ...rest
}) => <WaitMessageComponent isOpen={isOpen} {...rest} />;

export default {
  title: 'Modals/WaitMessage',
  component: WaitMessage,
} as Meta;

export const Basic = Template.bind({});
Basic.args = {
  size: 'xl',
  isOpen: true,
};

export const Close = Template.bind({});
Close.args = {
  size: 'xl',
  isOpen: false,
};
`,locationsMap:{basic:{startLoc:{col:64,line:20},endLoc:{col:56,line:23},startBody:{col:64,line:20},endBody:{col:56,line:23}},close:{startLoc:{col:64,line:20},endLoc:{col:56,line:23},startBody:{col:64,line:20},endBody:{col:56,line:23}}}}},title:"Modals/WaitMessage",component:O.j};var c=o.bind({});c.args={size:"xl",isOpen:!0};var l=o.bind({});l.args={size:"xl",isOpen:!1};var y=["Basic","Close"]}}]);
