"use strict";(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[5541],{"./lib/view/modals/error/index.stories.tsx":(P,t,e)=>{e.r(t),e.d(t,{Basic:()=>l,CloseModal:()=>d,__namedExportsOrder:()=>C,default:()=>L});var p=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/jsx.js"),o=e.n(p),y=e("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/slicedToArray.js"),g=e.n(y),i=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),M=e("./node_modules/.pnpm/@elliemae+ds-dialog@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/DSDialog.js"),r=e("./node_modules/.pnpm/@elliemae+ds-dialog@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/styles.js"),u=e("./node_modules/.pnpm/@elliemae+ds-icons@3.54.6_@elliemae+pui-theme@2.13.0_lodash-es@4.17.21/node_modules/@elliemae/ds-icons/dist/esm/utils/createIcon.js"),B=(0,u.w)({paths:["M13 17c0 .6-.4 1-1 1s-1-.4-1-1 .4-1 1-1 1 .4 1 1zM11 6.5l.5 7.5h1l.5-7.5c0-.3-.2-.5-.5-.5h-.9c-.4 0-.6.2-.6.5zM15.7 3H8.3L3 8.3v7.5L8.3 21h7.5l5.3-5.3V8.3L15.7 3m.4-1L22 7.9v8.3L16.1 22H7.9L2 16.1V7.9L7.9 2h8.2z"],height:24,width:24}),s=function(n){var T=n.open,b=n.primaryMessage,c=n.secondaryMessage,v=(0,i.useState)(T),m=g()(v,2),S=m[0],j=m[1],h=(0,i.useCallback)(function(){j(function(O){return!O})},[]);return o()(M.O,{isOpen:S,onClickOutside:h,size:"small"},void 0,o()(r.uy,{p:"s"},void 0,o()(r.Dm,{},void 0,o()(B,{size:"xxl",color:["danger","900"]}),o()(r.TF,{},void 0,b),c&&o()(r.zR,{},void 0,c))))};s.displayName="Error";var x=e("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),E=`
    
    // @ts-nocheck
    // @ts-ignore
    var __STORY__ = "import { Story, Meta } from '@storybook/react';\\nimport { Error, ErrorProps } from './index.js';\\n\\nexport default {\\n  title: 'Modals/Error',\\n  component: Error,\\n} as Meta;\\n\\nconst Template: Story<ErrorProps> = (args) => <Error {...args} />;\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  open: true,\\n  primaryMessage: 'Can not rename file',\\n  secondaryMessage: 'File name already exists',\\n};\\n\\nexport const CloseModal = Template.bind({});\\nCloseModal.args = { ...Basic.args, open: false };\\n";
    // @ts-ignore
    var __LOCATIONS_MAP__ = {"Basic":{"startLoc":{"col":36,"line":9},"endLoc":{"col":65,"line":9},"startBody":{"col":36,"line":9},"endBody":{"col":65,"line":9}},"CloseModal":{"startLoc":{"col":36,"line":9},"endLoc":{"col":65,"line":9},"startBody":{"col":36,"line":9},"endBody":{"col":65,"line":9}}};
    
import { Story, Meta } from '@storybook/react';
import { Error, ErrorProps } from './index.js';

export default {parameters: {"storySource":{"source":"import { Story, Meta } from '@storybook/react';\\nimport { Error, ErrorProps } from './index.js';\\n\\nexport default {\\n  title: 'Modals/Error',\\n  component: Error,\\n} as Meta;\\n\\nconst Template: Story<ErrorProps> = (args) => <Error {...args} />;\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  open: true,\\n  primaryMessage: 'Can not rename file',\\n  secondaryMessage: 'File name already exists',\\n};\\n\\nexport const CloseModal = Template.bind({});\\nCloseModal.args = { ...Basic.args, open: false };\\n","locationsMap":{"basic":{"startLoc":{"col":36,"line":9},"endLoc":{"col":65,"line":9},"startBody":{"col":36,"line":9},"endBody":{"col":65,"line":9}},"close-modal":{"startLoc":{"col":36,"line":9},"endLoc":{"col":65,"line":9},"startBody":{"col":36,"line":9},"endBody":{"col":65,"line":9}}}},},
  title: 'Modals/Error',
  component: Error,
} as Meta;

const Template: Story<ErrorProps> = (args) => <Error {...args} />;

export const Basic = Template.bind({});;
Basic.args = {
  open: true,
  primaryMessage: 'Can not rename file',
  secondaryMessage: 'File name already exists',
};

export const CloseModal = Template.bind({});
CloseModal.args = { ...Basic.args, open: false };
`,f={Basic:{startLoc:{col:36,line:17},endLoc:{col:65,line:17},startBody:{col:36,line:17},endBody:{col:65,line:17}},CloseModal:{startLoc:{col:36,line:17},endLoc:{col:65,line:17},startBody:{col:36,line:17},endBody:{col:65,line:17}}},E=`import { Story, Meta } from '@storybook/react';
import { Error, ErrorProps } from './index.js';

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

const Template: Story<ErrorProps> = (args) => <Error {...args} />;

export const Basic = Template.bind({});
Basic.args = {
  open: true,
  primaryMessage: 'Can not rename file',
  secondaryMessage: 'File name already exists',
};

export const CloseModal = Template.bind({});
CloseModal.args = { ...Basic.args, open: false };
`,f={Basic:{startLoc:{col:36,line:9},endLoc:{col:65,line:9},startBody:{col:36,line:9},endBody:{col:65,line:9}},CloseModal:{startLoc:{col:36,line:9},endLoc:{col:65,line:9},startBody:{col:36,line:9},endBody:{col:65,line:9}}};const L={parameters:{storySource:{source:`
    
    // @ts-nocheck
    // @ts-ignore
    var __STORY__ = "import { Story, Meta } from '@storybook/react';\\nimport { Error, ErrorProps } from './index.js';\\n\\nexport default {\\n  title: 'Modals/Error',\\n  component: Error,\\n} as Meta;\\n\\nconst Template: Story<ErrorProps> = (args) => <Error {...args} />;\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  open: true,\\n  primaryMessage: 'Can not rename file',\\n  secondaryMessage: 'File name already exists',\\n};\\n\\nexport const CloseModal = Template.bind({});\\nCloseModal.args = { ...Basic.args, open: false };\\n";
    // @ts-ignore
    var __LOCATIONS_MAP__ = {"Basic":{"startLoc":{"col":36,"line":9},"endLoc":{"col":65,"line":9},"startBody":{"col":36,"line":9},"endBody":{"col":65,"line":9}},"CloseModal":{"startLoc":{"col":36,"line":9},"endLoc":{"col":65,"line":9},"startBody":{"col":36,"line":9},"endBody":{"col":65,"line":9}}};
    
import { Story, Meta } from '@storybook/react';
import { Error, ErrorProps } from './index.js';

export default {parameters: {"storySource":{"source":"import { Story, Meta } from '@storybook/react';\\nimport { Error, ErrorProps } from './index.js';\\n\\nexport default {\\n  title: 'Modals/Error',\\n  component: Error,\\n} as Meta;\\n\\nconst Template: Story<ErrorProps> = (args) => <Error {...args} />;\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  open: true,\\n  primaryMessage: 'Can not rename file',\\n  secondaryMessage: 'File name already exists',\\n};\\n\\nexport const CloseModal = Template.bind({});\\nCloseModal.args = { ...Basic.args, open: false };\\n","locationsMap":{"basic":{"startLoc":{"col":36,"line":9},"endLoc":{"col":65,"line":9},"startBody":{"col":36,"line":9},"endBody":{"col":65,"line":9}},"close-modal":{"startLoc":{"col":36,"line":9},"endLoc":{"col":65,"line":9},"startBody":{"col":36,"line":9},"endBody":{"col":65,"line":9}}}},},
  title: 'Modals/Error',
  component: Error,
} as Meta;

const Template: Story<ErrorProps> = (args) => <Error {...args} />;

export const Basic = Template.bind({});;
Basic.args = {
  open: true,
  primaryMessage: 'Can not rename file',
  secondaryMessage: 'File name already exists',
};

export const CloseModal = Template.bind({});
CloseModal.args = { ...Basic.args, open: false };
`,locationsMap:{basic:{startLoc:{col:36,line:17},endLoc:{col:65,line:17},startBody:{col:36,line:17},endBody:{col:65,line:17}},"close-modal":{startLoc:{col:36,line:17},endLoc:{col:65,line:17},startBody:{col:36,line:17},endBody:{col:65,line:17}}}},storySource:{source:`import { Story, Meta } from '@storybook/react';
import { Error, ErrorProps } from './index.js';

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

const Template: Story<ErrorProps> = (args) => <Error {...args} />;

export const Basic = Template.bind({});
Basic.args = {
  open: true,
  primaryMessage: 'Can not rename file',
  secondaryMessage: 'File name already exists',
};

export const CloseModal = Template.bind({});
CloseModal.args = { ...Basic.args, open: false };
`,locationsMap:{basic:{startLoc:{col:36,line:9},endLoc:{col:65,line:9},startBody:{col:36,line:9},endBody:{col:65,line:9}},"close-modal":{startLoc:{col:36,line:9},endLoc:{col:65,line:9},startBody:{col:36,line:9},endBody:{col:65,line:9}}}}},title:"Modals/Error",component:s};var a=function(n){return(0,x.jsx)(s,Object.assign({},n))};a.displayName="Template";var l=a.bind({});l.args={open:!0,primaryMessage:"Can not rename file",secondaryMessage:"File name already exists"};var d=a.bind({});d.args=Object.assign({},l.args,{open:!1});var C=["Basic","CloseModal"]}}]);
