@nlabs/gothamjs
Version:
Platform
1 lines • 45.2 kB
JavaScript
;(self.webpackChunk_nlabs_gothamjs=self.webpackChunk_nlabs_gothamjs||[]).push([[735],{"./node_modules/@headlessui/react/dist/hooks/use-disposables.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{L:function(){return p}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../lex/node_modules/react/index.js"),_utils_disposables_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@headlessui/react/dist/utils/disposables.js");function p(){let[e]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(_utils_disposables_js__WEBPACK_IMPORTED_MODULE_1__.e);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>()=>e.dispose(),[e]),e}},"./node_modules/@headlessui/react/dist/hooks/use-event.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{_:function(){return o}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../lex/node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_use_latest_value_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-latest-value.js");let o=function(t){let e=(0,_use_latest_value_js__WEBPACK_IMPORTED_MODULE_1__.Y)(t);return react__WEBPACK_IMPORTED_MODULE_0___default().useCallback((...r)=>e.current(...r),[e])}},"./node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{s:function(){return n}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../lex/node_modules/react/index.js"),_utils_env_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@headlessui/react/dist/utils/env.js");let n=(e,t)=>{_utils_env_js__WEBPACK_IMPORTED_MODULE_1__._.isServer?(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(e,t):(0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(e,t)}},"./node_modules/@headlessui/react/dist/hooks/use-latest-value.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Y:function(){return s}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../lex/node_modules/react/index.js"),_use_iso_morphic_effect_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js");function s(e){let r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(e);return(0,_use_iso_morphic_effect_js__WEBPACK_IMPORTED_MODULE_1__.s)(()=>{r.current=e},[e]),r}},"./node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{g:function(){return l}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../lex/node_modules/react/index.js"),_utils_env_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@headlessui/react/dist/utils/env.js");function l(){let r=function s(){let r="undefined"==typeof document;return"useSyncExternalStore"in react__WEBPACK_IMPORTED_MODULE_0__&&react__WEBPACK_IMPORTED_MODULE_0__.useSyncExternalStore(()=>()=>{},()=>!1,()=>!r)}(),[e,n]=react__WEBPACK_IMPORTED_MODULE_0__.useState(_utils_env_js__WEBPACK_IMPORTED_MODULE_1__._.isHandoffComplete);return e&&!1===_utils_env_js__WEBPACK_IMPORTED_MODULE_1__._.isHandoffComplete&&n(!1),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>{!0!==e&&n(!0)},[e]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(()=>_utils_env_js__WEBPACK_IMPORTED_MODULE_1__._.handoff(),[]),!r&&e}},"./node_modules/@headlessui/react/dist/hooks/use-sync-refs.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{P:function(){return y},a:function(){return T}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../lex/node_modules/react/index.js"),_use_event_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-event.js");let u=Symbol();function T(t,n=!0){return Object.assign(t,{[u]:n})}function y(...t){let n=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(t);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(()=>{n.current=t},[t]);let c=(0,_use_event_js__WEBPACK_IMPORTED_MODULE_1__._)(e=>{for(let o of n.current)null!=o&&("function"==typeof o?o(e):o.current=e)});return t.every(e=>null==e||(null==e?void 0:e[u]))?void 0:c}},"./node_modules/@headlessui/react/dist/hooks/use-transition.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{B:function(){return R},p:function(){return x}});var react=__webpack_require__("../lex/node_modules/react/index.js"),disposables=__webpack_require__("./node_modules/@headlessui/react/dist/utils/disposables.js"),use_disposables=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-disposables.js");var T,b,use_iso_morphic_effect=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js"),process=__webpack_require__("../lex/node_modules/process/browser.js");void 0!==process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(T=null==process?void 0:process.env)?void 0:T.NODE_ENV)&&void 0===(null==(b=null==Element?void 0:Element.prototype)?void 0:b.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var L=(r=>(r[r.None=0]="None",r[r.Closed=1]="Closed",r[r.Enter=2]="Enter",r[r.Leave=4]="Leave",r))(L||{});function R(t){let n={};for(let e in t)!0===t[e]&&(n[`data-${e}`]="");return n}function x(t,n,e,i){let[r,o]=(0,react.useState)(e),{hasFlag:s,addFlag:a,removeFlag:l}=function c(u=0){let[t,l]=(0,react.useState)(u),g=(0,react.useCallback)(e=>l(e),[t]),s=(0,react.useCallback)(e=>l(a=>a|e),[t]),m=(0,react.useCallback)(e=>(t&e)===e,[t]),n=(0,react.useCallback)(e=>l(a=>a&~e),[l]),F=(0,react.useCallback)(e=>l(a=>a^e),[l]);return{flags:t,setFlag:g,addFlag:s,hasFlag:m,removeFlag:n,toggleFlag:F}}(t&&r?3:0),u=(0,react.useRef)(!1),f=(0,react.useRef)(!1),E=(0,use_disposables.L)();return(0,use_iso_morphic_effect.s)(()=>{var d;if(t)return e&&o(!0),n?(null==(d=null==i?void 0:i.start)||d.call(i,e),function C(t,{prepare:n,run:e,done:i,inFlight:r}){let o=(0,disposables.e)();return function j(t,{inFlight:n,prepare:e}){if(null!=n&&n.current)return void e();let i=t.style.transition;t.style.transition="none",e(),t.offsetHeight,t.style.transition=i}(t,{prepare:n,inFlight:r}),o.nextFrame(()=>{e(),o.requestAnimationFrame(()=>{o.add(function M(t,n){var o,s;let e=(0,disposables.e)();if(!t)return e.dispose;let i=!1;e.add(()=>{i=!0});let r=null!=(s=null==(o=t.getAnimations)?void 0:o.call(t).filter(a=>a instanceof CSSTransition))?s:[];return 0===r.length?(n(),e.dispose):(Promise.allSettled(r.map(a=>a.finished)).then(()=>{i||n()}),e.dispose)}(t,i))})}),o.dispose}(n,{inFlight:u,prepare(){f.current?f.current=!1:f.current=u.current,u.current=!0,!f.current&&(e?(a(3),l(4)):(a(4),l(2)))},run(){f.current?e?(l(3),a(4)):(l(4),a(3)):e?l(1):a(1)},done(){var p;f.current&&"function"==typeof n.getAnimations&&n.getAnimations().length>0||(u.current=!1,l(7),e||o(!1),null==(p=null==i?void 0:i.end)||p.call(i,e))}})):void(e&&a(3))},[t,e,n,E]),t?[r,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[e,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},"./node_modules/@headlessui/react/dist/internal/open-closed.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{El:function(){return c},O_:function(){return u},Uw:function(){return i}});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../lex/node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);let n=(0,react__WEBPACK_IMPORTED_MODULE_0__.createContext)(null);n.displayName="OpenClosedContext";var e,i=((e=i||{})[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e);function u(){return(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(n)}function c({value:o,children:t}){return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(n.Provider,{value:o},t)}},"./node_modules/@headlessui/react/dist/utils/class-names.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function t(...r){return Array.from(new Set(r.flatMap(n=>"string"==typeof n?n.split(" "):[]))).filter(Boolean).join(" ")}__webpack_require__.d(__webpack_exports__,{x:function(){return t}})},"./node_modules/@headlessui/react/dist/utils/disposables.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{e:function(){return o}});var _micro_task_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@headlessui/react/dist/utils/micro-task.js");function o(){let s=[],r={addEventListener(e,t,n,i){return e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame(...e){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...e))},setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return(0,_micro_task_js__WEBPACK_IMPORTED_MODULE_0__._)(()=>{t.current&&e[0]()}),r.add(()=>{t.current=!1})},style(e,t,n){let i=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:i})})},group(e){let t=o();return e(t),this.add(()=>t.dispose())},add(e){return s.includes(e)||s.push(e),()=>{let t=s.indexOf(e);if(t>=0)for(let n of s.splice(t,1))n()}},dispose(){for(let e of s.splice(0))e()}};return r}},"./node_modules/@headlessui/react/dist/utils/env.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{_:function(){return s}});var i=Object.defineProperty,r=(t,e,n)=>(((t,e,n)=>{e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n})(t,"symbol"!=typeof e?e+"":e,n),n);let s=new class o{constructor(){r(this,"current",this.detect()),r(this,"handoffState","pending"),r(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}},"./node_modules/@headlessui/react/dist/utils/match.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function u(r,n,...a){if(r in n){let e=n[r];return"function"==typeof e?e(...a):e}let t=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,u),t}__webpack_require__.d(__webpack_exports__,{Y:function(){return u}})},"./node_modules/@headlessui/react/dist/utils/micro-task.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){function t(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(o=>setTimeout(()=>{throw o}))}__webpack_require__.d(__webpack_exports__,{_:function(){return t}})},"./node_modules/@headlessui/react/dist/utils/render.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Ac:function(){return O},Ci:function(){return L},FX:function(){return K},mK:function(){return A},oE:function(){return m},v6:function(){return _}});var e,a,react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../lex/node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__),_class_names_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@headlessui/react/dist/utils/class-names.js"),_match_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@headlessui/react/dist/utils/match.js"),O=((a=O||{})[a.None=0]="None",a[a.RenderStrategy=1]="RenderStrategy",a[a.Static=2]="Static",a),A=((e=A||{})[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e);function L(){let n=function U(){let n=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)([]),r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(e=>{for(let a of n.current)null!=a&&("function"==typeof a?a(e):a.current=e)},[]);return(...e)=>{if(!e.every(a=>null==a))return n.current=e,r}}();return(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)(r=>function C({ourProps:n,theirProps:r,slot:e,defaultTag:a,features:s,visible:t=!0,name:l,mergeRefs:i}){i=null!=i?i:$;let o=P(r,n);if(t)return F(o,e,a,l,i);let y=null!=s?s:0;if(2&y){let{static:f=!1,...u}=o;if(f)return F(u,e,a,l,i)}if(1&y){let{unmount:f=!0,...u}=o;return(0,_match_js__WEBPACK_IMPORTED_MODULE_2__.Y)(f?0:1,{0(){return null},1(){return F({...u,hidden:!0,style:{display:"none"}},e,a,l,i)}})}return F(o,e,a,l,i)}({mergeRefs:n,...r}),[n])}function F(n,r={},e,a,s){let{as:t=e,children:l,refName:i="ref",...o}=h(n,["unmount","static"]),y=void 0!==n.ref?{[i]:n.ref}:{},f="function"==typeof l?l(r):l;"className"in o&&o.className&&"function"==typeof o.className&&(o.className=o.className(r)),o["aria-labelledby"]&&o["aria-labelledby"]===o.id&&(o["aria-labelledby"]=void 0);let u={};if(r){let d=!1,p=[];for(let[c,T]of Object.entries(r))"boolean"==typeof T&&(d=!0),!0===T&&p.push(c.replace(/([A-Z])/g,g=>`-${g.toLowerCase()}`));if(d){u["data-headlessui-state"]=p.join(" ");for(let c of p)u[`data-${c}`]=""}}if(t===react__WEBPACK_IMPORTED_MODULE_0__.Fragment&&(Object.keys(m(o)).length>0||Object.keys(m(u)).length>0)){if((0,react__WEBPACK_IMPORTED_MODULE_0__.isValidElement)(f)&&!(Array.isArray(f)&&f.length>1)){let d=f.props,p=null==d?void 0:d.className,c="function"==typeof p?(...R)=>(0,_class_names_js__WEBPACK_IMPORTED_MODULE_1__.x)(p(...R),o.className):(0,_class_names_js__WEBPACK_IMPORTED_MODULE_1__.x)(p,o.className),T=c?{className:c}:{},g=P(f.props,m(h(o,["ref"])));for(let R in u)R in g&&delete u[R];return(0,react__WEBPACK_IMPORTED_MODULE_0__.cloneElement)(f,Object.assign({},g,u,y,{ref:s(H(f),y.ref)},T))}if(Object.keys(m(o)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(m(o)).concat(Object.keys(m(u))).map(d=>` - ${d}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join("\n")].join("\n"))}return(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(t,Object.assign({},h(o,["ref"]),t!==react__WEBPACK_IMPORTED_MODULE_0__.Fragment&&y,t!==react__WEBPACK_IMPORTED_MODULE_0__.Fragment&&u),f)}function $(...n){return n.every(r=>null==r)?void 0:r=>{for(let e of n)null!=e&&("function"==typeof e?e(r):e.current=r)}}function P(...n){if(0===n.length)return{};if(1===n.length)return n[0];let r={},e={};for(let s of n)for(let t in s)t.startsWith("on")&&"function"==typeof s[t]?(null!=e[t]||(e[t]=[]),e[t].push(s[t])):r[t]=s[t];if(r.disabled||r["aria-disabled"])for(let s in e)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(s)&&(e[s]=[t=>{var l;return null==(l=null==t?void 0:t.preventDefault)?void 0:l.call(t)}]);for(let s in e)Object.assign(r,{[s](t,...l){let i=e[s];for(let o of i){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;o(t,...l)}}});return r}function _(...n){if(0===n.length)return{};if(1===n.length)return n[0];let r={},e={};for(let s of n)for(let t in s)t.startsWith("on")&&"function"==typeof s[t]?(null!=e[t]||(e[t]=[]),e[t].push(s[t])):r[t]=s[t];for(let s in e)Object.assign(r,{[s](...t){let l=e[s];for(let i of l)null==i||i(...t)}});return r}function K(n){var r;return Object.assign((0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(n),{displayName:null!=(r=n.displayName)?r:n.name})}function m(n){let r=Object.assign({},n);for(let e in r)void 0===r[e]&&delete r[e];return r}function h(n,r=[]){let e=Object.assign({},n);for(let a of r)a in e&&delete e[a];return e}function H(n){return react__WEBPACK_IMPORTED_MODULE_0___default().version.split(".")[0]>="19"?n.props.ref:n.ref}},"./src/actions/GothamActions.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{E:function(){return GothamActions}});var _nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@nlabs/arkhamjs/lib/Flux/Flux.js"),_nlabs_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@nlabs/utils/lib/index.js"),_config_appConfig__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/config/appConfig.tsx"),_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/constants/GothamConstants.ts");const GothamActions={init:()=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.INITIALIZE}),loading:(isLoading,content)=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({content:content,isLoading:isLoading,type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.LOADING}),navBack:()=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.NAV_BACK}),navForward:()=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.NAV_FORWARD}),navGoto:(path,params)=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({params:params,path:path,type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.NAV_GOTO}),navReplace:(path,params)=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({params:params,path:path,type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.NAV_REPLACE}),notify:params=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({...params,type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.NOTIFY_OPEN}),notifyClose:()=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.NOTIFY_CLOSE}),setConfig:config=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({config:config,type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.SET_CONFIG}),signOut:()=>_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.SIGN_OUT}),updateTitle:(title,separator)=>{const appTitle=_config_appConfig__WEBPACK_IMPORTED_MODULE_2__.T.get("app.title",""),titleSeparator=separator||_config_appConfig__WEBPACK_IMPORTED_MODULE_2__.T.get("app.titleBarSeparator","::");return(0,_nlabs_utils__WEBPACK_IMPORTED_MODULE_1__.Im)(title)||appTitle===title?document.title=appTitle:document.title=[title,titleSeparator,appTitle].join(" "),_nlabs_arkhamjs__WEBPACK_IMPORTED_MODULE_0__.Y.dispatch({title:title,type:_constants_GothamConstants__WEBPACK_IMPORTED_MODULE_3__.W.UPDATE_TITLE})}}},"./src/components/Notify/Notify.stories.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Basic:function(){return Basic},Error:function(){return Notify_stories_Error},Examples:function(){return Examples},Info:function(){return Info},Success:function(){return Success},TopRight:function(){return TopRight},Warning:function(){return Warning},WithActions:function(){return WithActions},__namedExportsOrder:function(){return __namedExportsOrder},default:function(){return Notify_stories}});var react=__webpack_require__("../lex/node_modules/react/index.js"),react_default=__webpack_require__.n(react),use_disposables=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-disposables.js"),use_event=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-event.js"),use_iso_morphic_effect=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js");var use_latest_value=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-latest-value.js"),use_server_handoff_complete=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js"),use_sync_refs=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-sync-refs.js"),use_transition=__webpack_require__("./node_modules/@headlessui/react/dist/hooks/use-transition.js"),open_closed=__webpack_require__("./node_modules/@headlessui/react/dist/internal/open-closed.js"),class_names=__webpack_require__("./node_modules/@headlessui/react/dist/utils/class-names.js"),match=__webpack_require__("./node_modules/@headlessui/react/dist/utils/match.js"),render=__webpack_require__("./node_modules/@headlessui/react/dist/utils/render.js");function ue(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:de)!==react.Fragment||1===react_default().Children.count(e.children)}let w=(0,react.createContext)(null);w.displayName="TransitionContext";var n,_e=((n=_e||{}).Visible="visible",n.Hidden="hidden",n);let M=(0,react.createContext)(null);function U(e){return"children"in e?U(e.children):e.current.filter(({el:t})=>null!==t.current).filter(({state:t})=>"visible"===t).length>0}function Te(e,t){let n=(0,use_latest_value.Y)(e),l=(0,react.useRef)([]),S=function f(){let e=(0,react.useRef)(!1);return(0,use_iso_morphic_effect.s)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),R=(0,use_disposables.L)(),d=(0,use_event._)((o,i=render.mK.Hidden)=>{let a=l.current.findIndex(({el:s})=>s===o);-1!==a&&((0,match.Y)(i,{[render.mK.Unmount](){l.current.splice(a,1)},[render.mK.Hidden](){l.current[a].state="hidden"}}),R.microTask(()=>{var s;!U(l)&&S.current&&(null==(s=n.current)||s.call(n))}))}),y=(0,use_event._)(o=>{let i=l.current.find(({el:a})=>a===o);return i?"visible"!==i.state&&(i.state="visible"):l.current.push({el:o,state:"visible"}),()=>d(o,render.mK.Unmount)}),C=(0,react.useRef)([]),p=(0,react.useRef)(Promise.resolve()),h=(0,react.useRef)({enter:[],leave:[]}),g=(0,use_event._)((o,i,a)=>{C.current.splice(0),t&&(t.chains.current[i]=t.chains.current[i].filter(([s])=>s!==o)),null==t||t.chains.current[i].push([o,new Promise(s=>{C.current.push(s)})]),null==t||t.chains.current[i].push([o,new Promise(s=>{Promise.all(h.current[i].map(([r,f])=>f)).then(()=>s())})]),"enter"===i?p.current=p.current.then(()=>null==t?void 0:t.wait.current).then(()=>a(i)):a(i)}),v=(0,use_event._)((o,i,a)=>{Promise.all(h.current[i].splice(0).map(([s,r])=>r)).then(()=>{var s;null==(s=C.current.shift())||s()}).then(()=>a(i))});return(0,react.useMemo)(()=>({children:l,register:y,unregister:d,onStart:g,onStop:v,wait:p,chains:h}),[y,d,l,g,v,h,p])}M.displayName="NestingContext";let de=react.Fragment,fe=render.Ac.RenderStrategy;let X=(0,render.FX)(function Ie(e,t){let{show:n,appear:l=!1,unmount:S=!0,...R}=e,d=(0,react.useRef)(null),y=ue(e),C=(0,use_sync_refs.P)(...y?[d,t]:null===t?[]:[t]);(0,use_server_handoff_complete.g)();let p=(0,open_closed.O_)();if(void 0===n&&null!==p&&(n=(p&open_closed.Uw.Open)===open_closed.Uw.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[h,g]=(0,react.useState)(n?"visible":"hidden"),v=Te(()=>{n||g("hidden")}),[o,i]=(0,react.useState)(!0),a=(0,react.useRef)([n]);(0,use_iso_morphic_effect.s)(()=>{!1!==o&&a.current[a.current.length-1]!==n&&(a.current.push(n),i(!1))},[a,n]);let s=(0,react.useMemo)(()=>({show:n,appear:l,initial:o}),[n,l,o]);(0,use_iso_morphic_effect.s)(()=>{n?g("visible"):!U(v)&&null!==d.current&&g("hidden")},[n,v]);let r={unmount:S},f=(0,use_event._)(()=>{var u;o&&i(!1),null==(u=e.beforeEnter)||u.call(e)}),j=(0,use_event._)(()=>{var u;o&&i(!1),null==(u=e.beforeLeave)||u.call(e)}),H=(0,render.Ci)();return react_default().createElement(M.Provider,{value:v},react_default().createElement(w.Provider,{value:s},H({ourProps:{...r,as:react.Fragment,children:react_default().createElement(me,{ref:C,...r,...R,beforeEnter:f,beforeLeave:j})},theirProps:{},defaultTag:react.Fragment,features:fe,visible:"visible"===h,name:"Transition"})))}),me=(0,render.FX)(function Ae(e,t){var ee,te;let{transition:n=!0,beforeEnter:l,afterEnter:S,beforeLeave:R,afterLeave:d,enter:y,enterFrom:C,enterTo:p,entered:h,leave:g,leaveFrom:v,leaveTo:o,...i}=e,[a,s]=(0,react.useState)(null),r=(0,react.useRef)(null),f=ue(e),j=(0,use_sync_refs.P)(...f?[r,t,s]:null===t?[]:[t]),H=null==(ee=i.unmount)||ee?render.mK.Unmount:render.mK.Hidden,{show:u,appear:z,initial:K}=function De(){let e=(0,react.useContext)(w);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[m,G]=(0,react.useState)(u?"visible":"hidden"),Q=function He(){let e=(0,react.useContext)(M);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:A,unregister:I}=Q;(0,use_iso_morphic_effect.s)(()=>A(r),[A,r]),(0,use_iso_morphic_effect.s)(()=>{if(H===render.mK.Hidden&&r.current)return u&&"visible"!==m?void G("visible"):(0,match.Y)(m,{hidden:()=>I(r),visible:()=>A(r)})},[m,r,A,I,u,H]);let B=(0,use_server_handoff_complete.g)();(0,use_iso_morphic_effect.s)(()=>{if(f&&B&&"visible"===m&&null===r.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[r,m,B,f]);let ce=K&&!z,Y=z&&u&&K,W=(0,react.useRef)(!1),L=Te(()=>{W.current||(G("hidden"),I(r))},Q),Z=(0,use_event._)(k=>{W.current=!0;let F=k?"enter":"leave";L.onStart(r,F,_=>{"enter"===_?null==l||l():"leave"===_&&(null==R||R())})}),$=(0,use_event._)(k=>{let F=k?"enter":"leave";W.current=!1,L.onStop(r,F,_=>{"enter"===_?null==S||S():"leave"===_&&(null==d||d())}),"leave"===F&&!U(L)&&(G("hidden"),I(r))});(0,react.useEffect)(()=>{f&&n||(Z(u),$(u))},[u,f,n]);let pe=!(!n||!f||!B||ce),[,T]=(0,use_transition.p)(pe,a,u,{start:Z,end:$}),Ce=(0,render.oE)({ref:j,className:(null==(te=(0,class_names.x)(i.className,Y&&y,Y&&C,T.enter&&y,T.enter&&T.closed&&C,T.enter&&!T.closed&&p,T.leave&&g,T.leave&&!T.closed&&v,T.leave&&T.closed&&o,!T.transition&&u&&h))?void 0:te.trim())||void 0,...(0,use_transition.B)(T)}),N=0;"visible"===m&&(N|=open_closed.Uw.Open),"hidden"===m&&(N|=open_closed.Uw.Closed),u&&"hidden"===m&&(N|=open_closed.Uw.Opening),!u&&"visible"===m&&(N|=open_closed.Uw.Closing);let he=(0,render.Ci)();return react_default().createElement(M.Provider,{value:L},react_default().createElement(open_closed.El,{value:N},he({ourProps:Ce,theirProps:i,defaultTag:de,features:fe,visible:"visible"===m,name:"Transition.Child"})))}),Fe=(0,render.FX)(function Le(e,t){let n=null!==(0,react.useContext)(w),l=null!==(0,open_closed.O_)();return react_default().createElement(react_default().Fragment,null,!n&&l?react_default().createElement(X,{ref:t,...e}):react_default().createElement(me,{ref:t,...e}))}),ze=Object.assign(X,{Child:Fe,Root:X});var lib=__webpack_require__("./node_modules/@nlabs/arkhamjs-utils-react/lib/index.js"),utils_lib=__webpack_require__("./node_modules/@nlabs/utils/lib/index.js"),GothamConstants=__webpack_require__("./src/constants/GothamConstants.ts"),Svg=__webpack_require__("./src/components/Svg/Svg.tsx"),jsx_runtime=__webpack_require__("../lex/node_modules/react/jsx-runtime.js");const Button=({children:children,onClick:onClick,className:className=""})=>(0,jsx_runtime.jsx)("button",{type:"button",onClick:onClick,className:(0,utils_lib.cn)("inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm","text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",className),children:children}),IconButton=({children:children,onClick:onClick,className:className=""})=>(0,jsx_runtime.jsx)("button",{type:"button",onClick:onClick,className:(0,utils_lib.cn)("p-1 rounded-full hover:bg-gray-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",className),children:children}),Alert=({children:children,severity:severity,onClose:onClose})=>(0,jsx_runtime.jsxs)("div",{className:(0,utils_lib.cn)("rounded-md p-4 w-full flex items-center justify-between",{error:"bg-red-500",info:"bg-blue-500",success:"bg-green-500",warning:"bg-yellow-500"}[severity]||"bg-gray-500","text-white"),children:[(0,jsx_runtime.jsx)("div",{children:children}),onClose&&(0,jsx_runtime.jsxs)("button",{type:"button",onClick:onClose,className:"ml-auto -mx-1.5 -my-1.5 rounded-md p-1.5 inline-flex text-white hover:bg-opacity-20 hover:bg-black focus:outline-none focus:ring-2 focus:ring-white",children:[(0,jsx_runtime.jsx)("span",{className:"sr-only",children:"Dismiss"}),(0,jsx_runtime.jsx)("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:(0,jsx_runtime.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]}),Notify=()=>{var _notification$actions;const[isOpen,setOpen]=(0,react.useState)(!1),[notification,setNotification]=(0,react.useState)({}),[timeoutId,setTimeoutId]=(0,react.useState)(null),notifyClose=()=>setOpen(!1);(0,react.useEffect)(()=>{if(isOpen&¬ification.autoHideDuration){timeoutId&&clearTimeout(timeoutId);const id=setTimeout(()=>{setOpen(!1)},notification.autoHideDuration);return setTimeoutId(id),()=>{timeoutId&&clearTimeout(timeoutId)}}return null},[isOpen,notification.autoHideDuration]);(0,lib.useFluxListener)(GothamConstants.W.NOTIFY_OPEN,({actions:actions=[],autoHideDuration:autoHideDuration=3e3,message:message,severity:severity,anchorOrigin:anchorOrigin={horizontal:"left",vertical:"bottom"},...restProps})=>{let action;actions.length&&(action=key=>(0,jsx_runtime.jsx)("div",{className:"flex space-x-2",children:actions.map(({icon:icon,label:label,onClick:onClick},index)=>(0,jsx_runtime.jsx)(react.Fragment,{children:icon?(0,jsx_runtime.jsx)(IconButton,{onClick:()=>onClick(key),children:(0,jsx_runtime.jsx)(Svg.B,{color:"inherit",height:24,name:icon,width:24})}):(0,jsx_runtime.jsx)(Button,{onClick:()=>onClick(key),children:label})},index))})),setNotification({...restProps,actions:actions,anchorOrigin:anchorOrigin,autoHideDuration:autoHideDuration,message:severity?(0,jsx_runtime.jsx)(Alert,{onClose:notifyClose,severity:severity,children:message}):message,severity:severity}),setOpen(!0)}),(0,lib.useFluxListener)(GothamConstants.W.NOTIFY_CLOSE,notifyClose);const positionClasses=(()=>{const{horizontal:horizontal="left",vertical:vertical="bottom"}=notification.anchorOrigin||{};return{bottom:{center:"bottom-4 left-1/2 transform -translate-x-1/2",left:"bottom-4 left-4",right:"bottom-4 right-4"},top:{center:"top-4 left-1/2 transform -translate-x-1/2",left:"top-4 left-4",right:"top-4 right-4"}}[vertical][horizontal]})();return(0,jsx_runtime.jsx)(ze,{show:isOpen,as:react.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,jsx_runtime.jsx)("div",{className:(0,utils_lib.cn)("fixed z-50 max-w-sm w-full shadow-lg rounded-lg pointer-events-auto overflow-hidden",positionClasses),children:(0,jsx_runtime.jsx)("div",{className:"ring-1 ring-black ring-opacity-5 bg-white",children:notification.severity?(0,jsx_runtime.jsx)("div",{children:notification.message}):(0,jsx_runtime.jsx)("div",{className:"p-4",children:(0,jsx_runtime.jsxs)("div",{className:"flex items-start",children:[(0,jsx_runtime.jsx)("div",{className:"flex-1",children:notification.message}),(null===(_notification$actions=notification.actions)||void 0===_notification$actions?void 0:_notification$actions.length)&&(0,jsx_runtime.jsx)("div",{className:"ml-4 flex-shrink-0 flex",children:notification.actions.map(({icon:icon,label:label,onClick:onClick},index)=>(0,jsx_runtime.jsx)(react.Fragment,{children:icon?(0,jsx_runtime.jsx)(IconButton,{onClick:()=>onClick("notification"),children:(0,jsx_runtime.jsx)(Svg.B,{color:"inherit",height:24,name:icon,width:24})}):(0,jsx_runtime.jsx)(Button,{onClick:()=>onClick("notification"),children:label})},index))})]})})})})})};Notify.__docgenInfo={description:"",methods:[],displayName:"Notify"};var GothamActions=__webpack_require__("./src/actions/GothamActions.ts");const NotifyExample=()=>(0,jsx_runtime.jsxs)("div",{className:"p-6 max-w-4xl mx-auto",children:[(0,jsx_runtime.jsx)("h1",{className:"text-3xl font-bold mb-6",children:"Notify Component Examples"}),(0,jsx_runtime.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[(0,jsx_runtime.jsxs)("div",{className:"p-4 border rounded-lg shadow-sm",children:[(0,jsx_runtime.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"Basic Notifications"}),(0,jsx_runtime.jsxs)("div",{className:"space-y-2",children:[(0,jsx_runtime.jsx)("button",{onClick:()=>{GothamActions.E.notify({autoHideDuration:5e3,message:"This is a basic notification"})},className:"w-full px-4 py-2 bg-gray-200 hover:bg-gray-300 rounded-md",children:"Basic Notification"}),(0,jsx_runtime.jsx)("button",{onClick:()=>{GothamActions.E.notify({message:"Operation completed successfully",severity:"success"})},className:"w-full px-4 py-2 bg-green-100 hover:bg-green-200 text-green-800 rounded-md",children:"Success Notification"}),(0,jsx_runtime.jsx)("button",{onClick:()=>{GothamActions.E.notify({message:"An error occurred",severity:"error"})},className:"w-full px-4 py-2 bg-red-100 hover:bg-red-200 text-red-800 rounded-md",children:"Error Notification"}),(0,jsx_runtime.jsx)("button",{onClick:()=>{GothamActions.E.notify({message:"This is a warning message",severity:"warning"})},className:"w-full px-4 py-2 bg-yellow-100 hover:bg-yellow-200 text-yellow-800 rounded-md",children:"Warning Notification"}),(0,jsx_runtime.jsx)("button",{onClick:()=>{GothamActions.E.notify({message:"This is an informational message",severity:"info"})},className:"w-full px-4 py-2 bg-blue-100 hover:bg-blue-200 text-blue-800 rounded-md",children:"Info Notification"})]})]}),(0,jsx_runtime.jsxs)("div",{className:"p-4 border rounded-lg shadow-sm",children:[(0,jsx_runtime.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"Advanced Options"}),(0,jsx_runtime.jsxs)("div",{className:"space-y-2",children:[(0,jsx_runtime.jsx)("button",{onClick:()=>{GothamActions.E.notify({anchorOrigin:{horizontal:"right",vertical:"top"},message:"This appears in the top right"})},className:"w-full px-4 py-2 bg-purple-100 hover:bg-purple-200 text-purple-800 rounded-md",children:"Top Right Position"}),(0,jsx_runtime.jsx)("button",{onClick:()=>{GothamActions.E.notify({actions:[{label:"Undo",onClick:key=>{console.log("Undo clicked",key)}},{icon:"close",onClick:key=>{console.log("Close clicked",key),GothamActions.E.notifyClose()}}],message:"Would you like to undo?"})},className:"w-full px-4 py-2 bg-indigo-100 hover:bg-indigo-200 text-indigo-800 rounded-md",children:"With Action Buttons"})]})]})]}),(0,jsx_runtime.jsxs)("div",{className:"mt-8 p-4 bg-gray-50 rounded-lg",children:[(0,jsx_runtime.jsx)("h2",{className:"text-xl font-semibold mb-2",children:"Implementation Example"}),(0,jsx_runtime.jsx)("pre",{className:"bg-gray-800 text-gray-100 p-4 rounded-md overflow-x-auto",children:"// Import the GothamActions\nimport {GothamActions} from '@actions/GothamActions';\n\n// Show a notification\nGothamActions.notify({\n message: 'Hello World',\n severity: 'success',\n autoHideDuration: 5000\n});\n\n// Close all notifications\nGothamActions.notifyClose();"})]})]});NotifyExample.__docgenInfo={description:"",methods:[],displayName:"NotifyExample"};var Notify_stories={component:Notify,decorators:[Story=>(0,jsx_runtime.jsxs)("div",{children:[(0,jsx_runtime.jsx)(Story,{}),(0,jsx_runtime.jsx)(Notify,{})]})],parameters:{layout:"fullscreen"},title:"Components/Notify"};const Basic={render:()=>((0,react.useEffect)(()=>(GothamActions.E.notify({autoHideDuration:5e3,message:"This is a basic notification"}),()=>{GothamActions.E.notifyClose()}),[]),null)},Success={render:()=>((0,react.useEffect)(()=>(GothamActions.E.notify({message:"Operation completed successfully",severity:"success"}),()=>{GothamActions.E.notifyClose()}),[]),null)},Notify_stories_Error={render:()=>((0,react.useEffect)(()=>(GothamActions.E.notify({message:"An error occurred",severity:"error"}),()=>{GothamActions.E.notifyClose()}),[]),null)},Warning={render:()=>((0,react.useEffect)(()=>(GothamActions.E.notify({message:"This is a warning message",severity:"warning"}),()=>{GothamActions.E.notifyClose()}),[]),null)},Info={render:()=>((0,react.useEffect)(()=>(GothamActions.E.notify({message:"This is an informational message",severity:"info"}),()=>{GothamActions.E.notifyClose()}),[]),null)},TopRight={render:()=>((0,react.useEffect)(()=>(GothamActions.E.notify({anchorOrigin:{horizontal:"right",vertical:"top"},message:"This appears in the top right"}),()=>{GothamActions.E.notifyClose()}),[]),null)},WithActions={render:()=>((0,react.useEffect)(()=>(GothamActions.E.notify({actions:[{label:"Undo",onClick:key=>{console.log("Undo clicked",key)}},{icon:"close",onClick:key=>{console.log("Close clicked",key),GothamActions.E.notifyClose()}}],message:"Would you like to undo?"}),()=>{GothamActions.E.notifyClose()}),[]),null)},Examples={render:()=>(0,jsx_runtime.jsx)(NotifyExample,{})},__namedExportsOrder=["Basic","Success","Error","Warning","Info","TopRight","WithActions","Examples"];Basic.parameters={...Basic.parameters,docs:{...Basic.parameters?.docs,source:{originalSource:"{\n render: () => {\n useEffect(() => {\n // Show notification when the story loads\n GothamActions.notify({\n autoHideDuration: 5000,\n message: 'This is a basic notification'\n });\n return () => {\n // Clean up when the story changes\n GothamActions.notifyClose();\n };\n }, []);\n return null;\n }\n}",...Basic.parameters?.docs?.source}}},Success.parameters={...Success.parameters,docs:{...Success.parameters?.docs,source:{originalSource:"{\n render: () => {\n useEffect(() => {\n GothamActions.notify({\n message: 'Operation completed successfully',\n severity: 'success'\n });\n return () => {\n GothamActions.notifyClose();\n };\n }, []);\n return null;\n }\n}",...Success.parameters?.docs?.source}}},Notify_stories_Error.parameters={...Notify_stories_Error.parameters,docs:{...Notify_stories_Error.parameters?.docs,source:{originalSource:"{\n render: () => {\n useEffect(() => {\n GothamActions.notify({\n message: 'An error occurred',\n severity: 'error'\n });\n return () => {\n GothamActions.notifyClose();\n };\n }, []);\n return null;\n }\n}",...Notify_stories_Error.parameters?.docs?.source}}},Warning.parameters={...Warning.parameters,docs:{...Warning.parameters?.docs,source:{originalSource:"{\n render: () => {\n useEffect(() => {\n GothamActions.notify({\n message: 'This is a warning message',\n severity: 'warning'\n });\n return () => {\n GothamActions.notifyClose();\n };\n }, []);\n return null;\n }\n}",...Warning.parameters?.docs?.source}}},Info.parameters={...Info.parameters,docs:{...Info.parameters?.docs,source:{originalSource:"{\n render: () => {\n useEffect(() => {\n GothamActions.notify({\n message: 'This is an informational message',\n severity: 'info'\n });\n return () => {\n GothamActions.notifyClose();\n };\n }, []);\n return null;\n }\n}",...Info.parameters?.docs?.source}}},TopRight.parameters={...TopRight.parameters,docs:{...TopRight.parameters?.docs,source:{originalSource:"{\n render: () => {\n useEffect(() => {\n GothamActions.notify({\n anchorOrigin: {\n horizontal: 'right',\n vertical: 'top'\n },\n message: 'This appears in the top right'\n });\n return () => {\n GothamActions.notifyClose();\n };\n }, []);\n return null;\n }\n}",...TopRight.parameters?.docs?.source}}},WithActions.parameters={...WithActions.parameters,docs:{...WithActions.parameters?.docs,source:{originalSource:"{\n render: () => {\n useEffect(() => {\n GothamActions.notify({\n actions: [{\n label: 'Undo',\n onClick: key => {\n console.log('Undo clicked', key);\n // Perform undo action\n }\n }, {\n icon: 'close',\n onClick: key => {\n console.log('Close clicked', key);\n GothamActions.notifyClose();\n }\n }],\n message: 'Would you like to undo?'\n });\n return () => {\n GothamActions.notifyClose();\n };\n }, []);\n return null;\n }\n}",...WithActions.parameters?.docs?.source}}},Examples.parameters={...Examples.parameters,docs:{...Examples.parameters?.docs,source:{originalSource:"{\n render: () => <NotifyExample />\n}",...Examples.parameters?.docs?.source}}}},"./src/components/Svg/Svg.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{B:function(){return Svg}});var _nlabs_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@nlabs/utils/lib/index.js"),_config_appConfig__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/config/appConfig.tsx"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("../lex/node_modules/react/jsx-runtime.js");const Svg=({className:className,color:color="inherit",height:height=32,name:name,width:width=32})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("svg",{className:(0,_nlabs_utils__WEBPACK_IMPORTED_MODULE_0__.cn)("w-full h-full",className),viewBox:`0 0 ${width} ${height}`,style:{color:color,fill:color,height:`${height}px`,width:`${width}px`},children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("use",{href:`${_config_appConfig__WEBPACK_IMPORTED_MODULE_1__.T.get("baseUrl")}/icons/icons.svg#${name}`})});Svg.__docgenInfo={description:"",methods:[],displayName:"Svg",props:{className:{required:!1,tsType:{name:"string"},description:""},color:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"'inherit'",computed:!1}},height:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"32",computed:!1}},name:{required:!0,tsType:{name:"string"},description:""},width:{required:!1,tsType:{name:"number"},description:"",defaultValue:{value:"32",computed:!1}}}}},"./src/config/appConfig.tsx":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{T:function(){return Config}});var _nlabs_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@nlabs/utils/lib/index.js");class Config{static values={};static set(values){return(0,_nlabs_utils__WEBPACK_IMPORTED_MODULE_0__.h1)(this.values,values)}static get(path,defaultValue){const configValues={...this.values,environment:"development"};return(0,_nlabs_utils__WEBPACK_IMPORTED_MODULE_0__.Jt)(configValues,path,defaultValue)}}},"./src/constants/GothamConstants.ts":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{W:function(){return GothamConstants}});class GothamConstants{static ALERT="GOTHAM_ALERT";static CLEAR_EXTERNAL="GOTHAM_APP_CLEAR_EXTERNAL";static GET_EXTERNAL="GOTHAM_APP_GET_EXTERNAL";static INITIALIZE="GOTHAM_APP_INITIALIZE";static LOADING="GOTHAM_APP_LOADING";static NAV_BACK="GOTHAM_APP_NAV_BACK";static NAV_FORWARD="GOTHAM_APP_NAV_FORWARD";static NAV_GOTO="GOTHAM_APP_NAV_GOTO";static NAV_REPLACE="GOTHAM_APP_NAV_REPLACE";static NOTIFY_OPEN="GOTHAM_APP_NOTIFY_OPEN";static NOTIFY_CLOSE="GOTHAM_APP_NOTIFY_CLOSE";static SET_CONFIG="GOTHAM_APP_SET_CONFIG";static SIGN_OUT="GOTHAM_APP_SIGN_OUT";static TOGGLE_MENU="GOTHAM_APP_TOGGLE_MENU";static TOP_BAR_SOLID="GOTHAM_APP_TOP_BAR_SOLID";static UPDATE_MENU="GOTHAM_APP_UPDATE_MENU";static UPDATE_SESSION="GOTHAM_APP_UPDATE_SESSION";static UPDATE_TITLE="GOTHAM_APP_UPDATE_TITLE"}}}]);