{"version":3,"file":"UserErrorModal.mjs","names":["React","UdpDialog","UdpText","UdpButton","getSignInAuthProvider","UserErrorModal","t0","$","_c","errorMessage","t1","t2","t3","Symbol","for","_temp","t4","logoutRedirect"],"sources":["../../../src/utilities/auth/UserErrorModal.jsx"],"sourcesContent":["import React from 'react';\nimport { UdpDialog } from '../../UI/fluent-web-components/UdpDialog';\nimport { UdpText } from '../../UI/fluent-web-components/UdpText';\nimport { UdpButton } from '../../UI/fluent-web-components/UdpButton';\nimport { getSignInAuthProvider } from './signInAuthProvider';\n\n/**\n * Error modal shown when fetching the authed user fails. Extracted into its\n * own module so the stencil-based UdpDialog/UdpText/UdpButton — which pull in\n * the full stencil web-component graph (~574 KB udp-fluent-icon, etc.) — only\n * load when this rare error path renders, not on every initial app load.\n */\nconst UserErrorModal = ({ errorMessage }) => (\n  <UdpDialog open showHeaderCloseButton={false}>\n    <UdpText variant=\"subtitle2\">\n      {errorMessage ? errorMessage : 'An unexpected error has ocurred.'}\n    </UdpText>\n    <UdpButton\n      slot=\"action\"\n      appearance=\"primary\"\n      onClick={() => {\n        getSignInAuthProvider().logoutRedirect();\n      }}\n    >\n      Logout\n    </UdpButton>\n  </UdpDialog>\n);\n\nexport default UserErrorModal;\n"],"mappings":";;;;;;;;;;;;;AAYA,MAAMK,kBAAiBC,OAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAC,MAAA,EAAAC,iBAAAH;CAGjB,MAAAI,KAAAD,eAAAA,eAAA;CAAgE,IAAAE;AAAA,KAAAJ,EAAA,OAAAG,IAAA;AADnEC,OAAA,sBAAA,cAAC,SAAD,EAAiB,SAAA,aAEP,EADPD,GACO;AAAAH,IAAA,KAAAG;AAAAH,IAAA,KAAAI;OAAAA,MAAAJ,EAAA;CAAA,IAAAK;AAAA,KAAAL,EAAA,OAAAM,OAAAC,IAAA,4BAAA,EAAA;AACVF,OAAA,sBAAA,cAAC,WAAD;GACO,MAAA;GACM,YAAA;GACF,SAAAG;GAKC,EAFX,SAEW;AAAAR,IAAA,KAAAK;OAAAA,MAAAL,EAAA;CAAA,IAAAS;AAAA,KAAAT,EAAA,OAAAI,IAAA;AAZdK,OAAA,sBAAA,cAAC,WAAD;GAAW,MAAA;GAA4B,uBAAA;GAa3B,EAZVL,IAGAC,GASU;AAAAL,IAAA,KAAAI;AAAAJ,IAAA,KAAAS;OAAAA,MAAAT,EAAA;AAAA,QAbZS;;AADqB,SAAAD,QAAA;AASfX,wBAAuB,CAAAa,gBAAiB"}