{"version":3,"file":"UtilitiesLayout.stories.jsx","sourceRoot":"","sources":["../../../src/work/UtilitiesLayout/UtilitiesLayout.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,eAAe,EAA6B,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,OAAO,aAAa,MAAM,6BAA6B,CAAC;AAExD,eAAe;IACb,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,eAAe;CACnB,CAAC;AAQV,MAAM,CAAC,MAAM,mBAAmB,GAAsC,CACpE,IAA8B,EAC9B,EAAE;IACF,MAAM,eAAe,GAAG,aAAa,CAAC;QACpC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;QACvC,0BAA0B,EAAE,IAAI,CAAC,0BAA0B;KAC5D,CAAC,CAAC;IAEH,OAAO,CACL,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAClC;MAAA,CAAC,eAAe,IAAI,CAClB,CAAC,eAAe,CACd,eAAe,CAAC,CAAC,eAAe,CAAC,CACjC,sBAAsB,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CACpD,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,EAAE,CACrC,MAAM,CAAC,aAAa,iBAAiB,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,EACrE,CAAC,EACD,CACH,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,mBAAmB,CAAC,IAAI,GAAG;IACzB,gBAAgB,EAAE,IAAI;IACtB,sBAAsB,EAAE,IAAI;CAC7B,CAAC;AAEF,mBAAmB,CAAC,QAAQ,GAAG;IAC7B,gBAAgB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAClD,sBAAsB,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;CACzD,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { action } from '@storybook/addon-actions';\n\nimport { UtilitiesLayout, type UtilitiesLayoutProps } from '@pega/cosmos-react-work';\nimport { Flex } from '@pega/cosmos-react-core';\n\nimport useGenAIcoach from '../GenAICoach/useGenAICoach';\n\nexport default {\n  title: 'Work/UtilitiesLayout',\n  component: UtilitiesLayout\n} as Meta;\n\nexport interface UtilitiesLayoutDemoProps extends UtilitiesLayoutProps {\n  enableGenAICoach?: boolean;\n  defaultExpandUtilities?: boolean;\n  showGenAICoachErrorMessage?: boolean;\n}\n\nexport const UtilitiesLayoutDemo: StoryFn<UtilitiesLayoutDemoProps> = (\n  args: UtilitiesLayoutDemoProps\n) => {\n  const genAICoachProps = useGenAIcoach({\n    enableGenAICoach: args.enableGenAICoach,\n    showGenAICoachErrorMessage: args.showGenAICoachErrorMessage\n  });\n\n  return (\n    <Flex container={{ justify: 'end' }}>\n      {genAICoachProps && (\n        <UtilitiesLayout\n          genAICoachProps={genAICoachProps}\n          defaultExpandUtilities={args.defaultExpandUtilities}\n          onToggleUtilities={utilitiesExpanded =>\n            action(`Utilities ${utilitiesExpanded ? 'expanded' : 'collapsed'}`)()\n          }\n        />\n      )}\n    </Flex>\n  );\n};\n\nUtilitiesLayoutDemo.args = {\n  enableGenAICoach: true,\n  defaultExpandUtilities: true\n};\n\nUtilitiesLayoutDemo.argTypes = {\n  enableGenAICoach: { control: { type: 'boolean' } },\n  defaultExpandUtilities: { control: { type: 'boolean' } }\n};\n"]}