"use strict";(globalThis.webpackChunk_elliemae_pui_app_sdk=globalThis.webpackChunk_elliemae_pui_app_sdk||[]).push([[2758],{"./lib/view/modals/navigation-prompt/index.stories.tsx":(O,l,o)=>{o.r(l),o.d(l,{Basic:()=>v,Close:()=>u,__namedExportsOrder:()=>h,default:()=>b});var N=o("./node_modules/.pnpm/@babel+runtime@7.28.4/node_modules/@babel/runtime/helpers/jsx.js"),n=o.n(N),B=o("./node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"),f=o("./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"),C=(0,f.w)({paths:["M20 .875L19.125 0 10 9.125.875 0 0 .875 9.125 10 0 19.125.875 20 10 10.875 19.125 20l.875-.875L10.875 10z"],height:20,width:20}),e=o("./node_modules/.pnpm/@elliemae+ds-legacy-button-v2@1.0.16_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-legacy-button-v2/dist/esm/DSButtonV2.js"),x=o("./node_modules/.pnpm/@elliemae+ds-dialog@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/DSDialog.js"),t=o("./node_modules/.pnpm/@elliemae+ds-dialog@3.54.6_@elliemae+pui-theme@2.13.0/node_modules/@elliemae/ds-dialog/dist/esm/styles.js"),L=o("./lib/data/useAppDispatch.ts"),s={CONFIRM:"navigation-prompt/CONFIRM",CANCEL:"navigation-prompt/CANCEL"},c={confirm:function(){return{type:s.CONFIRM,payload:null}},cancel:function(){return{type:s.CANCEL,payload:null}}},p,d,m,g=(0,B.memo)(function(i){var y=i.open,_=y===void 0?!1:y,P=(0,L.j)(),r=function(){return P(c.cancel())},j=function(){return P(c.confirm())};return n()(x.O,{isOpen:_,onClickOutside:r,centered:!0},void 0,n()(t.$h,{},void 0,n()(t.a3,{},void 0,n()(e.e,{buttonType:"icon",onClick:r},void 0,n()(C,{color:["neutral","900"]})))),p||(p=n()(t.Zl,{})),d||(d=n()(t.uy,{px:24,mb:16},void 0,"You currently have unsaved changes. Are you sure you want to proceed without saving?")),m||(m=n()(t.Zl,{})),n()(t.r0,{},void 0,n()(e.e,{buttonType:"outline",onClick:r},void 0,"Continue without saving"),n()(e.e,{onClick:j},void 0,"Save & Continue")))}),S=o("./node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js"),T=`
    
    // @ts-nocheck
    // @ts-ignore
    var __STORY__ = "import { Story, Meta } from '@storybook/react';\\nimport { NavigationPrompt, NavigationPromptProps } from './index.js';\\n\\nexport default {\\n  title: 'Modals/NavigationPrompt',\\n  component: NavigationPrompt,\\n} as Meta;\\n\\nconst Template: Story<NavigationPromptProps> = (args) => (\\n  <NavigationPrompt {...args} />\\n);\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  open: true,\\n};\\n\\nexport const Close = () => Template.bind({});\\nClose.args = {\\n  open: false,\\n};\\n";
    // @ts-ignore
    var __LOCATIONS_MAP__ = {"Basic":{"startLoc":{"col":47,"line":9},"endLoc":{"col":1,"line":11},"startBody":{"col":47,"line":9},"endBody":{"col":1,"line":11}},"Close":{"startLoc":{"col":21,"line":18},"endLoc":{"col":44,"line":18},"startBody":{"col":21,"line":18},"endBody":{"col":44,"line":18}}};
    
import { Story, Meta } from '@storybook/react';
import { NavigationPrompt, NavigationPromptProps } from './index.js';

export default {parameters: {"storySource":{"source":"import { Story, Meta } from '@storybook/react';\\nimport { NavigationPrompt, NavigationPromptProps } from './index.js';\\n\\nexport default {\\n  title: 'Modals/NavigationPrompt',\\n  component: NavigationPrompt,\\n} as Meta;\\n\\nconst Template: Story<NavigationPromptProps> = (args) => (\\n  <NavigationPrompt {...args} />\\n);\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  open: true,\\n};\\n\\nexport const Close = () => Template.bind({});\\nClose.args = {\\n  open: false,\\n};\\n","locationsMap":{"basic":{"startLoc":{"col":47,"line":9},"endLoc":{"col":1,"line":11},"startBody":{"col":47,"line":9},"endBody":{"col":1,"line":11}},"close":{"startLoc":{"col":21,"line":18},"endLoc":{"col":44,"line":18},"startBody":{"col":21,"line":18},"endBody":{"col":44,"line":18}}}},},
  title: 'Modals/NavigationPrompt',
  component: NavigationPrompt,
} as Meta;

const Template: Story<NavigationPromptProps> = (args) => (
  <NavigationPrompt {...args} />
);

export const Basic = Template.bind({});;
Basic.args = {
  open: true,
};

export const Close = () => Template.bind({});
Close.args = {
  open: false,
};
`,M={Basic:{startLoc:{col:47,line:17},endLoc:{col:1,line:19},startBody:{col:47,line:17},endBody:{col:1,line:19}},Close:{startLoc:{col:21,line:26},endLoc:{col:44,line:26},startBody:{col:21,line:26},endBody:{col:44,line:26}}},T=`import { Story, Meta } from '@storybook/react';
import { NavigationPrompt, NavigationPromptProps } from './index.js';

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

const Template: Story<NavigationPromptProps> = (args) => (
  <NavigationPrompt {...args} />
);

export const Basic = Template.bind({});
Basic.args = {
  open: true,
};

export const Close = () => Template.bind({});
Close.args = {
  open: false,
};
`,M={Basic:{startLoc:{col:47,line:9},endLoc:{col:1,line:11},startBody:{col:47,line:9},endBody:{col:1,line:11}},Close:{startLoc:{col:21,line:18},endLoc:{col:44,line:18},startBody:{col:21,line:18},endBody:{col:44,line:18}}};const b={parameters:{storySource:{source:`
    
    // @ts-nocheck
    // @ts-ignore
    var __STORY__ = "import { Story, Meta } from '@storybook/react';\\nimport { NavigationPrompt, NavigationPromptProps } from './index.js';\\n\\nexport default {\\n  title: 'Modals/NavigationPrompt',\\n  component: NavigationPrompt,\\n} as Meta;\\n\\nconst Template: Story<NavigationPromptProps> = (args) => (\\n  <NavigationPrompt {...args} />\\n);\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  open: true,\\n};\\n\\nexport const Close = () => Template.bind({});\\nClose.args = {\\n  open: false,\\n};\\n";
    // @ts-ignore
    var __LOCATIONS_MAP__ = {"Basic":{"startLoc":{"col":47,"line":9},"endLoc":{"col":1,"line":11},"startBody":{"col":47,"line":9},"endBody":{"col":1,"line":11}},"Close":{"startLoc":{"col":21,"line":18},"endLoc":{"col":44,"line":18},"startBody":{"col":21,"line":18},"endBody":{"col":44,"line":18}}};
    
import { Story, Meta } from '@storybook/react';
import { NavigationPrompt, NavigationPromptProps } from './index.js';

export default {parameters: {"storySource":{"source":"import { Story, Meta } from '@storybook/react';\\nimport { NavigationPrompt, NavigationPromptProps } from './index.js';\\n\\nexport default {\\n  title: 'Modals/NavigationPrompt',\\n  component: NavigationPrompt,\\n} as Meta;\\n\\nconst Template: Story<NavigationPromptProps> = (args) => (\\n  <NavigationPrompt {...args} />\\n);\\n\\nexport const Basic = Template.bind({});\\nBasic.args = {\\n  open: true,\\n};\\n\\nexport const Close = () => Template.bind({});\\nClose.args = {\\n  open: false,\\n};\\n","locationsMap":{"basic":{"startLoc":{"col":47,"line":9},"endLoc":{"col":1,"line":11},"startBody":{"col":47,"line":9},"endBody":{"col":1,"line":11}},"close":{"startLoc":{"col":21,"line":18},"endLoc":{"col":44,"line":18},"startBody":{"col":21,"line":18},"endBody":{"col":44,"line":18}}}},},
  title: 'Modals/NavigationPrompt',
  component: NavigationPrompt,
} as Meta;

const Template: Story<NavigationPromptProps> = (args) => (
  <NavigationPrompt {...args} />
);

export const Basic = Template.bind({});;
Basic.args = {
  open: true,
};

export const Close = () => Template.bind({});
Close.args = {
  open: false,
};
`,locationsMap:{basic:{startLoc:{col:47,line:17},endLoc:{col:1,line:19},startBody:{col:47,line:17},endBody:{col:1,line:19}},close:{startLoc:{col:21,line:26},endLoc:{col:44,line:26},startBody:{col:21,line:26},endBody:{col:44,line:26}}}},storySource:{source:`import { Story, Meta } from '@storybook/react';
import { NavigationPrompt, NavigationPromptProps } from './index.js';

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

const Template: Story<NavigationPromptProps> = (args) => (
  <NavigationPrompt {...args} />
);

export const Basic = Template.bind({});
Basic.args = {
  open: true,
};

export const Close = () => Template.bind({});
Close.args = {
  open: false,
};
`,locationsMap:{basic:{startLoc:{col:47,line:9},endLoc:{col:1,line:11},startBody:{col:47,line:9},endBody:{col:1,line:11}},close:{startLoc:{col:21,line:18},endLoc:{col:44,line:18},startBody:{col:21,line:18},endBody:{col:44,line:18}}}}},title:"Modals/NavigationPrompt",component:g};var a=function(i){return(0,S.jsx)(g,Object.assign({},i))};a.displayName="Template";var v=a.bind({});v.args={open:!0};var u=function(){return a.bind({})};u.args={open:!1};var h=["Basic","Close"]}}]);
