diff --git a/design-system-storybook/iframe.html b/design-system-storybook/iframe.html index 5f124cf2..5b9bf36f 100644 --- a/design-system-storybook/iframe.html +++ b/design-system-storybook/iframe.html @@ -508,4 +508,4 @@ import './3918.9635eb58.iframe.bundle.js'; - import './main.4d6b7699.iframe.bundle.js'; \ No newline at end of file + import './main.fbdfdf91.iframe.bundle.js'; \ No newline at end of file diff --git a/design-system-storybook/main.4d6b7699.iframe.bundle.js b/design-system-storybook/main.fbdfdf91.iframe.bundle.js similarity index 58% rename from design-system-storybook/main.4d6b7699.iframe.bundle.js rename to design-system-storybook/main.fbdfdf91.iframe.bundle.js index 8dde8398..26519c2c 100644 --- a/design-system-storybook/main.4d6b7699.iframe.bundle.js +++ b/design-system-storybook/main.fbdfdf91.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[8792],{"./node_modules/@storybook/instrumenter/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/instrumenter/dist sync recursive",module.exports=webpackEmptyContext},"./node_modules/@storybook/test/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/test/dist sync recursive",module.exports=webpackEmptyContext},"./storybook-config-entry.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var _global=__webpack_require__("@storybook/global"),_previewApi=__webpack_require__("storybook/internal/preview-api"),_channels=__webpack_require__("storybook/internal/channels"),_storybookStories=__webpack_require__("./storybook-stories.js"),channel=(0,_channels.createBrowserChannel)({page:"preview"});_previewApi.addons.setChannel(channel),"DEVELOPMENT"===_global.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);var preview=new _previewApi.PreviewWeb(_storybookStories.importFn,(function getProjectAnnotations(){return(0,_previewApi.composeConfigs)([__webpack_require__("./node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/@storybook/addon-links/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/docs/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/actions/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/measure/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/outline/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-interactions/preview.js"),__webpack_require__("./.storybook/preview.tsx")])}));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./storybook-stories.js":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.importFn=function importFn(_x6){return _importFn.apply(this,arguments)};var _ref5,_ref4,_ref3,_ref2,_ref,_asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),pipeline=function pipeline(x){return x()},importers=[(_ref=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src\/pages\/Introduction\.mdx)$/.exec(path)){var pathRemainder=path.substring(12);return __webpack_require__("./src/pages lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x){return _ref.apply(this,arguments)}),(_ref2=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src\/pages\/Installation\.mdx)$/.exec(path)){var pathRemainder=path.substring(12);return __webpack_require__("./src/pages lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x2){return _ref2.apply(this,arguments)}),(_ref3=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src\/pages\/Providers\.mdx)$/.exec(path)){var pathRemainder=path.substring(12);return __webpack_require__("./src/pages lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x3){return _ref3.apply(this,arguments)}),(_ref4=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path)){var pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x4){return _ref4.apply(this,arguments)}),(_ref5=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|mjs|ts|tsx))$/.exec(path)){var pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x5){return _ref5.apply(this,arguments)})];function _importFn(){return(_importFn=(0,_asyncToGenerator2.default)((function*(path){for(var _ret,_loop=function*_loop(i){var moduleExports=yield pipeline((function(){return importers[i](path)}));if(moduleExports)return{v:moduleExports}},i=0;i{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.decorators=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_ScrollView=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/ScrollView/index.js")),_mock_data=__webpack_require__("./src/_mocks/mock_data.tsx"),_ScreenWrapper=__webpack_require__("./src/components/ScreenWrapper/ScreenWrapper.tsx"),_UIProvider=__webpack_require__("./src/providers/UIProvider.tsx"),_ThemeConfig=__webpack_require__("./src/settings/ThemeConfig/ThemeConfig.tsx"),_reactNativeLogger=__webpack_require__("./node_modules/@siteed/react-native-logger/dist/logger.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),colors=_mock_data.colorOptions.map((function(colorOption){return colorOption.value}));(0,_reactNativeLogger.setLoggerConfig)({namespaces:"*"});exports.decorators=[function(StoryFn){return console.log("preview init decorators"),(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:["web"===_Platform.default.OS?(0,_jsxRuntime.jsx)("style",{type:"text/css",children:`\n @font-face {\n font-family: 'MaterialCommunityIcons';\n src: url(${__webpack_require__("./node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf")}) format('truetype');\n }\n `}):null,(0,_jsxRuntime.jsx)(_UIProvider.UIProvider,{locale:"en",children:(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[(0,_jsxRuntime.jsx)(_ScrollView.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:(0,_jsxRuntime.jsx)(_ThemeConfig.ThemeConfig,{flexDirection:"row",colors})}),(0,_jsxRuntime.jsx)(_ScreenWrapper.ScreenWrapper,{style:{minHeight:300,padding:8},children:(0,_jsxRuntime.jsx)(StoryFn,{})})]})})]})}],exports.default={parameters:{docs:{toc:!0},controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}},tags:["autodocs"]}},"./src/_mocks/mock_data.tsx":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.randomSelectValues=exports.colors=exports.colorOptions=void 0;exports.randomSelectValues=Array.from({length:20},(function(_,i){return{label:`label ${i}`,value:`val${i}`}}));var colors=exports.colors=["#fbc02d","#663399","#ffa000","#1976d2","#689f38"];exports.colorOptions=colors.map((function(color){return{label:color,value:color}}))},"./src/components/Button/Button.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.Button=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Button=exports.Button=function Button(props){return(0,_jsxRuntime.jsx)(_reactNativePaper.Button,Object.assign({},props))};try{Button.displayName="Button",Button.__docgenInfo={description:"",displayName:"Button",props:{theme:{defaultValue:null,description:"@optional\n@optional",name:"theme",required:!1,type:{name:"ThemeProp"}},elevation:{defaultValue:null,description:"@supported Available in v5.x with theme version 3\nChanges shadows and background on iOS and Android.\nUsed to create UI hierarchy between components.\n\nNote: If `mode` is set to `flat`, Surface doesn't have a shadow.\n\nNote: In version 2 the `elevation` prop was accepted via `style` prop i.e. `style={{ elevation: 4 }}`.\nIt's no longer supported with theme version 3 and you should use `elevation` property instead.",name:"elevation",required:!1,type:{name:"Elevation"}},mode:{defaultValue:null,description:"Mode of the button. You can change the mode to adjust the styling to give it desired emphasis.\n- `text` - flat button without background or outline, used for the lowest priority actions, especially when presenting multiple options.\n- `outlined` - button with an outline without background, typically used for important, but not primary action – represents medium emphasis.\n- `contained` - button with a background color, used for important action, have the most visual impact and high emphasis.\n- `elevated` - button with a background color and elevation, used when absolutely necessary e.g. button requires visual separation from a patterned background.\n@supported Available in v5.x with theme version 3\n- `contained-tonal` - button with a secondary background color, an alternative middle ground between contained and outlined buttons.\n@supported Available in v5.x with theme version 3",name:"mode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},dark:{defaultValue:null,description:"Whether the color is a dark color. A dark button will render light text and vice-versa. Only applicable for:\n * `contained` mode for theme version 2\n * `contained`, `contained-tonal` and `elevated` modes for theme version 3.",name:"dark",required:!1,type:{name:"boolean"}},compact:{defaultValue:null,description:"Use a compact look, useful for `text` buttons in a row.",name:"compact",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"@deprecated Deprecated in v5.x - use `buttonColor` or `textColor` instead.\nCustom text color for flat button, or background color for contained button.",name:"color",required:!1,type:{name:"string"}},buttonColor:{defaultValue:null,description:"Custom button's background color.",name:"buttonColor",required:!1,type:{name:"string"}},textColor:{defaultValue:null,description:"Custom button's text color.",name:"textColor",required:!1,type:{name:"string"}},rippleColor:{defaultValue:null,description:"Color of the ripple effect.",name:"rippleColor",required:!1,type:{name:"ColorValue"}},loading:{defaultValue:null,description:"Whether to show a loading indicator.",name:"loading",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"Icon to display for the `Button`.",name:"icon",required:!1,type:{name:"IconSource"}},disabled:{defaultValue:null,description:"Whether the button is disabled. A disabled button is greyed out and `onPress` is not called on touch.",name:"disabled",required:!1,type:{name:"boolean"}},uppercase:{defaultValue:null,description:"Make the label text uppercased. Note that this won't work if you pass React elements as children.",name:"uppercase",required:!1,type:{name:"boolean"}},background:{defaultValue:null,description:"Type of background drawabale to display the feedback (Android).\nhttps://reactnative.dev/docs/pressable#rippleconfig",name:"background",required:!1,type:{name:"PressableAndroidRippleConfig"}},onPress:{defaultValue:null,description:"Function to execute on press.",name:"onPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onPressIn:{defaultValue:null,description:"Function to execute as soon as the touchable element is pressed and invoked even before onPress.",name:"onPressIn",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onPressOut:{defaultValue:null,description:"Function to execute as soon as the touch is released even before onPress.",name:"onPressOut",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onLongPress:{defaultValue:null,description:"Function to execute on long press.",name:"onLongPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},delayLongPress:{defaultValue:null,description:"The number of milliseconds a user must touch the element before executing `onLongPress`.",name:"delayLongPress",required:!1,type:{name:"number"}},contentStyle:{defaultValue:null,description:"Style of button's inner content.\nUse this prop to apply custom height and width and to set the icon on the right with `flexDirection: 'row-reverse'`.",name:"contentStyle",required:!1,type:{name:"StyleProp"}},maxFontSizeMultiplier:{defaultValue:null,description:"Specifies the largest possible scale a text font can reach.",name:"maxFontSizeMultiplier",required:!1,type:{name:"number"}},labelStyle:{defaultValue:null,description:"Style for the button text.",name:"labelStyle",required:!1,type:{name:"StyleProp"}},touchableRef:{defaultValue:null,description:"Reference for the touchable",name:"touchableRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Button/Button.tsx#Button"]={docgenInfo:Button.__docgenInfo,name:"Button",path:"src/components/Button/Button.tsx#Button"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Colors/ColorPicker/ColorPicker.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ColorPicker=void 0;var _asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Pressable=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Pressable/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_useModal2=__webpack_require__("./src/hooks/useModal/useModal.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ColorPicker=exports.ColorPicker=function ColorPicker(_ref){var label=_ref.label,color=_ref.color,onChange=_ref.onChange,_ref$colorOptions=_ref.colorOptions,colorOptions=void 0===_ref$colorOptions?[color]:_ref$colorOptions,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{backgroundColor:theme.colors.surface,display:"flex",gap:10,flexDirection:"row",alignItems:"center",justifyContent:"center"},colorPreview:{width:30,height:30}})}(theme)}),[theme]),_React$useState=_react.default.useState(color),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),activeColor=_React$useState2[0],setActiveColor=_React$useState2[1],editProp=(0,_useModal2.useModal)().editProp;(0,_react.useEffect)((function(){setActiveColor(color)}),[color]);var _ref2,handlePress=(_ref2=(0,_asyncToGenerator2.default)((function*(){var data=colorOptions.map((function(colorOption){return{label:colorOption,value:colorOption,selected:colorOption===activeColor}})),selectedColor=yield editProp({data,inputType:"select-button",multiSelect:!1,showFooter:!1});setActiveColor(selectedColor.value),null==onChange||onChange(selectedColor.value)})),function handlePress(){return _ref2.apply(this,arguments)});return(0,_jsxRuntime.jsxs)(_Pressable.default,{style:styles.container,onPress:handlePress,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{children:label}),(0,_jsxRuntime.jsx)(_View.default,{style:[styles.colorPreview,{backgroundColor:activeColor}]})]})};try{ColorPicker.displayName="ColorPicker",ColorPicker.__docgenInfo={description:"",displayName:"ColorPicker",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},color:{defaultValue:null,description:"",name:"color",required:!0,type:{name:"string"}},colorOptions:{defaultValue:{value:"[color]"},description:"",name:"colorOptions",required:!1,type:{name:"string[]"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((color: string) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Colors/ColorPicker/ColorPicker.tsx#ColorPicker"]={docgenInfo:ColorPicker.__docgenInfo,name:"ColorPicker",path:"src/components/Colors/ColorPicker/ColorPicker.tsx#ColorPicker"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/ConfirmDialog/ConfirmDialog.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfirmDialog=void 0;var _react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ConfirmDialog=exports.ConfirmDialog=function ConfirmDialog(_ref){var title=_ref.title,notice=_ref.notice,_ref$confirmLabel=_ref.confirmLabel,confirmLabel=void 0===_ref$confirmLabel?"Yes":_ref$confirmLabel,_ref$cancelLabel=_ref.cancelLabel,cancelLabel=void 0===_ref$cancelLabel?"No":_ref$cancelLabel,onConfirm=_ref.onConfirm,onCancel=_ref.onCancel,style=_ref.style,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_){return _StyleSheet.default.create({container:{}})}()}),[theme]);return(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog,{style:[styles.container,style],visible:!0,onDismiss:onCancel,children:[(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog.Content,{children:[(0,_jsxRuntime.jsx)(_Text.default,{children:title}),notice&&(0,_jsxRuntime.jsx)(_Text.default,{children:notice})]}),(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog.Actions,{children:[(0,_jsxRuntime.jsx)(_Button.Button,{onPress:onConfirm,children:confirmLabel}),(0,_jsxRuntime.jsx)(_Button.Button,{onPress:onCancel,children:cancelLabel})]})]})};try{ConfirmDialog.displayName="ConfirmDialog",ConfirmDialog.__docgenInfo={description:"",displayName:"ConfirmDialog",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},notice:{defaultValue:null,description:"",name:"notice",required:!1,type:{name:"string"}},confirmLabel:{defaultValue:{value:"Yes"},description:"",name:"confirmLabel",required:!1,type:{name:"string"}},cancelLabel:{defaultValue:{value:"No"},description:"",name:"cancelLabel",required:!1,type:{name:"string"}},onConfirm:{defaultValue:null,description:"",name:"onConfirm",required:!0,type:{name:"() => void"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"ViewStyle"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ConfirmDialog/ConfirmDialog.tsx#ConfirmDialog"]={docgenInfo:ConfirmDialog.__docgenInfo,name:"ConfirmDialog",path:"src/components/ConfirmDialog/ConfirmDialog.tsx#ConfirmDialog"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/DynInput/DynInput.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.DynInput=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_portal=__webpack_require__("./node_modules/@gorhom/portal/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_reactNativePaperDates=__webpack_require__("./node_modules/react-native-paper-dates/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_logger=__webpack_require__("./src/utils/logger.ts"),_SelectButtons=__webpack_require__("./src/components/SelectButtons/SelectButtons.tsx"),_TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var logger=_logger.baseLogger.extend("DynInput"),DynInput=exports.DynInput=function DynInput(_ref){var data=_ref.data,min=_ref.min,max=_ref.max,multiSelect=_ref.multiSelect,inputType=_ref.inputType,showSearch=_ref.showSearch,_ref$showFooter=_ref.showFooter,showFooter=void 0===_ref$showFooter||_ref$showFooter,label=_ref.label,numberOfLines=_ref.numberOfLines,autoFocus=_ref.autoFocus,customRender=_ref.customRender,onCancel=_ref.onCancel,onFinish=_ref.onFinish,onChange=_ref.onChange,selectTextOnFocus=_ref.selectTextOnFocus,finishOnEnter=_ref.finishOnEnter,cancelOnEscape=_ref.cancelOnEscape,_ref$initiallyOpen=_ref.initiallyOpen,initiallyOpen=void 0!==_ref$initiallyOpen&&_ref$initiallyOpen,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{display:"flex",width:"100%",backgroundColor:theme.colors.surface},footer:{display:"flex",flexDirection:"row",justifyContent:"space-around",padding:10},finishButton:{},cancelButton:{}})}(theme)}),[theme]),_useState=(0,_react.useState)(data),_useState2=(0,_slicedToArray2.default)(_useState,2),temp=_useState2[0],setTemp=_useState2[1],_useState3=(0,_react.useState)(!1),_useState4=(0,_slicedToArray2.default)(_useState3,2),visible=_useState4[0],setVisible=_useState4[1],_useState5=(0,_react.useState)(data instanceof Date?data:void 0),_useState6=(0,_slicedToArray2.default)(_useState5,2),selectedDate=_useState6[0],setSelectedDate=_useState6[1],_useState7=(0,_react.useState)(!1),_useState8=(0,_slicedToArray2.default)(_useState7,2),datePickerVisible=_useState8[0],setDatePickerVisible=_useState8[1],_useState9=(0,_react.useState)(!1),_useState10=(0,_slicedToArray2.default)(_useState9,2),timePickerVisible=_useState10[0],setTimePickerVisible=_useState10[1],_useState11=(0,_react.useState)(initiallyOpen),_useState12=(0,_slicedToArray2.default)(_useState11,2),isInitialOpen=_useState12[0],setIsInitialOpen=_useState12[1],isTextType="text"===inputType||"textarea"===inputType||"number"===inputType,i18n=(0,_reactI18next.useTranslation)().i18n;(0,_react.useEffect)((function(){(0,_reactNativePaperDates.registerTranslation)(i18n.language,_reactNativePaperDates.en)}),[i18n.language]);var handleChange=(0,_react.useCallback)((function(value){var formatedValue=value;Array.isArray(value)&&value.length>0&&!multiSelect&&(formatedValue=value.find((function(option){return option.selected}))),setTemp(value),logger.debug("DynInput handleChange - value changed:",value),null==onChange||onChange(formatedValue),showFooter||isTextType||null==onFinish||onFinish(formatedValue)}),[multiSelect,onFinish,onChange,showFooter,isTextType]),handleKeyPress=(0,_react.useCallback)((function(e){finishOnEnter&&"Enter"===e.nativeEvent.key?null==onFinish||onFinish(temp):cancelOnEscape&&"Escape"===e.nativeEvent.key&&(null==onCancel||onCancel())}),[finishOnEnter,cancelOnEscape,onFinish,onCancel,temp]),handleDateChange=(0,_react.useCallback)((function(date){setDatePickerVisible(!1);var newDate=new Date(date);selectedDate&&newDate.setHours(selectedDate.getHours(),selectedDate.getMinutes()),setSelectedDate(newDate),null==onFinish||onFinish(newDate)}),[selectedDate,onFinish]),handleTimeChange=(0,_react.useCallback)((function(_ref2){var hours=_ref2.hours,minutes=_ref2.minutes;setTimePickerVisible(!1);var newDate=new Date(selectedDate||Date.now());newDate.setHours(hours,minutes),setSelectedDate(newDate),null==onFinish||onFinish(newDate)}),[selectedDate,onFinish]),renderDatePicker=(0,_react.useCallback)((function(){return"time"===inputType?(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[!visible&&!isInitialOpen&&(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setVisible(!0)},children:selectedDate?selectedDate.toLocaleTimeString():"Pick time"}),(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:"modal",children:(0,_jsxRuntime.jsx)(_reactNativePaperDates.TimePickerModal,{visible:visible||isInitialOpen,onDismiss:function onDismiss(){setVisible(!1),setIsInitialOpen(!1),isInitialOpen&&(null==onFinish||onFinish(selectedDate))},onConfirm:function onConfirm(_ref3){var hours=_ref3.hours,minutes=_ref3.minutes,newDate=new Date(selectedDate||Date.now());newDate.setHours(hours,minutes),setSelectedDate(newDate),setIsInitialOpen(!1),null==onFinish||onFinish(newDate),setVisible(!1)},hours:(null==selectedDate?void 0:selectedDate.getHours())||0,minutes:(null==selectedDate?void 0:selectedDate.getMinutes())||0})})]}):"date"===inputType?(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[!visible&&!isInitialOpen&&(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setVisible(!0)},children:selectedDate?selectedDate.toLocaleDateString():"Pick date"}),(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:"modal",children:(0,_jsxRuntime.jsx)(_reactNativePaperDates.DatePickerModal,{mode:"single",visible:visible||isInitialOpen,locale:i18n.language,onDismiss:function onDismiss(){setVisible(!1),setIsInitialOpen(!1),isInitialOpen&&(null==onFinish||onFinish(selectedDate))},date:selectedDate,onConfirm:function onConfirm(params){setVisible(!1),setIsInitialOpen(!1),params.date&&(setSelectedDate(params.date),null==onFinish||onFinish(params.date))}})})]}):"datetime"===inputType?(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[!visible&&!isInitialOpen&&(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setVisible(!0)},children:selectedDate?selectedDate.toLocaleString():"Pick date and time"}),(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:"modal",children:(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog,{visible:visible||isInitialOpen,onDismiss:function onDismiss(){setVisible(!1),setIsInitialOpen(!1),isInitialOpen&&(null==onFinish||onFinish(selectedDate))},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Dialog.Title,{children:"Select Date and Time"}),(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog.Content,{children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setDatePickerVisible(!0)},children:selectedDate?selectedDate.toLocaleDateString():"Pick date"}),(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setTimePickerVisible(!0)},children:selectedDate?selectedDate.toLocaleTimeString():"Pick time"})]}),(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog.Actions,{children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){setVisible(!1),setIsInitialOpen(!1)},children:"Cancel"}),(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){setVisible(!1),setIsInitialOpen(!1),null==onFinish||onFinish(selectedDate)},children:"OK"})]})]})}),(0,_jsxRuntime.jsx)(_reactNativePaperDates.DatePickerModal,{mode:"single",visible:datePickerVisible,locale:i18n.language,onDismiss:function onDismiss(){setDatePickerVisible(!1)},date:selectedDate,onConfirm:function onConfirm(params){params.date&&handleDateChange(params.date)}}),(0,_jsxRuntime.jsx)(_reactNativePaperDates.TimePickerModal,{visible:timePickerVisible,onDismiss:function onDismiss(){setTimePickerVisible(!1)},onConfirm:handleTimeChange,hours:(null==selectedDate?void 0:selectedDate.getHours())||0,minutes:(null==selectedDate?void 0:selectedDate.getMinutes())||0})]}):null}),[visible,isInitialOpen,selectedDate,inputType,i18n.language,onFinish,handleDateChange,handleTimeChange]),handleCancel=(0,_react.useCallback)((function(){setTemp(data),null==onCancel||onCancel()}),[data,onCancel]),handleFinish=(0,_react.useCallback)((function(){null==onFinish||onFinish(temp)}),[onFinish,temp]);return(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:["text"===inputType&&function renderText(){return(0,_jsxRuntime.jsx)(_TextInput.TextInput,{multiline:!!(numberOfLines&&numberOfLines>0),numberOfLines,label,autoFocus,value:temp,onChangeText:handleChange,selectTextOnFocus,onKeyPress:handleKeyPress,blurOnSubmit:!1})}(),"number"===inputType&&function renderNumber(){return(0,_jsxRuntime.jsx)(_TextInput.TextInput,{inputMode:"numeric",autoFocus,value:temp,onChangeText:handleChange,selectTextOnFocus,onKeyPress:finishOnEnter||cancelOnEscape?handleKeyPress:void 0,blurOnSubmit:finishOnEnter})}(),("date"===inputType||"time"===inputType||"datetime"===inputType)&&renderDatePicker(),"custom"===inputType&&(null==customRender?void 0:customRender(data,handleChange)),"select-button"===inputType&&(0,_jsxRuntime.jsx)(_SelectButtons.SelectButtons,{options:JSON.parse(JSON.stringify(temp)),min,max,multiSelect,showSearch,onChange:handleChange}),showFooter&&(0,_jsxRuntime.jsxs)(_View.default,{style:styles.footer,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{style:styles.cancelButton,testID:"dyn-input-cancel",onPress:handleCancel,children:"Cancel"}),(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{style:styles.finishButton,testID:"dyn-input-finish",mode:"contained",onPress:handleFinish,children:"Done"})]})]})};try{DynInput.displayName="DynInput",DynInput.__docgenInfo={description:"",displayName:"DynInput",props:{data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"DynamicType"}},inputType:{defaultValue:null,description:"",name:"inputType",required:!0,type:{name:"enum",value:[{value:'"number"'},{value:'"text"'},{value:'"radio"'},{value:'"textarea"'},{value:'"select-button"'},{value:'"date"'},{value:'"datetime"'},{value:'"time"'},{value:'"custom"'}]}},min:{defaultValue:null,description:"",name:"min",required:!1,type:{name:"number"}},max:{defaultValue:null,description:"",name:"max",required:!1,type:{name:"number"}},multiSelect:{defaultValue:null,description:"",name:"multiSelect",required:!1,type:{name:"boolean"}},showSearch:{defaultValue:null,description:"",name:"showSearch",required:!1,type:{name:"boolean"}},showFooter:{defaultValue:{value:"true"},description:"",name:"showFooter",required:!1,type:{name:"boolean"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},useFlatList:{defaultValue:null,description:"",name:"useFlatList",required:!1,type:{name:"boolean"}},customRender:{defaultValue:null,description:"",name:"customRender",required:!1,type:{name:"((value: DynamicType, onChange: (value: DynamicType) => void) => ReactNode)"}},onFinish:{defaultValue:null,description:"",name:"onFinish",required:!1,type:{name:"((value: DynamicType) => void)"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"(() => void)"}},selectTextOnFocus:{defaultValue:null,description:"",name:"selectTextOnFocus",required:!1,type:{name:"boolean"}},finishOnEnter:{defaultValue:null,description:"",name:"finishOnEnter",required:!1,type:{name:"boolean"}},cancelOnEscape:{defaultValue:null,description:"",name:"cancelOnEscape",required:!1,type:{name:"boolean"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((value: DynamicType) => void)"}},initiallyOpen:{defaultValue:{value:"false"},description:"",name:"initiallyOpen",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/DynInput/DynInput.tsx#DynInput"]={docgenInfo:DynInput.__docgenInfo,name:"DynInput",path:"src/components/DynInput/DynInput.tsx#DynInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/LabelSwitch/LabelSwitch.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.LabelSwitch=void 0;var _react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Pressable=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Pressable/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var LabelSwitch=exports.LabelSwitch=function LabelSwitch(_ref){var label=_ref.label,value=_ref.value,containerStyle=_ref.containerStyle,labelStyle=_ref.labelStyle,onValueChange=_ref.onValueChange,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyle(theme){return{container:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:10,backgroundColor:theme.colors.surface},label:{paddingRight:10,color:theme.colors.text}}}(theme)}),[theme]);return(0,_jsxRuntime.jsxs)(_Pressable.default,{style:[styles.container,containerStyle],onPress:function handleContainerPress(){onValueChange(!value)},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.label,labelStyle],children:label}),(0,_jsxRuntime.jsx)(_reactNativePaper.Switch,{value,onValueChange,onTouchStart:function onTouchStart(e){return e.stopPropagation()}})]})};try{LabelSwitch.displayName="LabelSwitch",LabelSwitch.__docgenInfo={description:"",displayName:"LabelSwitch",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"boolean"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"StyleProp"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!0,type:{name:"(value: boolean) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/LabelSwitch/LabelSwitch.tsx#LabelSwitch"]={docgenInfo:LabelSwitch.__docgenInfo,name:"LabelSwitch",path:"src/components/LabelSwitch/LabelSwitch.tsx#LabelSwitch"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/ScreenWrapper/ScreenWrapper.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScreenWrapper=void 0;var _objectWithoutProperties2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_ScrollView=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/ScrollView/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_excluded=["children","withScrollView","useInsets","style","contentContainerStyle"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ScreenWrapper=exports.ScreenWrapper=function ScreenWrapper(_ref2){var children=_ref2.children,_ref2$withScrollView=_ref2.withScrollView,withScrollView=void 0===_ref2$withScrollView||_ref2$withScrollView,_ref2$useInsets=_ref2.useInsets,useInsets=void 0===_ref2$useInsets||_ref2$useInsets,style=_ref2.style,contentContainerStyle=_ref2.contentContainerStyle,rest=(0,_objectWithoutProperties2.default)(_ref2,_excluded),theme=(0,_ThemeProvider.useTheme)(),insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,insets=_ref.insets,useInsets=_ref.useInsets;return _StyleSheet.default.create({container:{flex:1,backgroundColor:theme.colors.background,paddingTop:useInsets?insets.top:0,paddingBottom:useInsets?insets.bottom:0,paddingLeft:useInsets?insets.left:0,paddingRight:useInsets?insets.right:0}})}({theme,insets,useInsets})}),[theme,insets,useInsets]);return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:withScrollView?(0,_jsxRuntime.jsx)(_ScrollView.default,Object.assign({},rest,{contentContainerStyle,keyboardShouldPersistTaps:"always",alwaysBounceVertical:!1,showsVerticalScrollIndicator:!1,style:[styles.container,style],children})):(0,_jsxRuntime.jsx)(_View.default,{style:[styles.container,style],children})})};try{ScreenWrapper.displayName="ScreenWrapper",ScreenWrapper.__docgenInfo={description:"",displayName:"ScreenWrapper",props:{withScrollView:{defaultValue:{value:"true"},description:"",name:"withScrollView",required:!1,type:{name:"boolean"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},contentContainerStyle:{defaultValue:null,description:"",name:"contentContainerStyle",required:!1,type:{name:"StyleProp"}},useInsets:{defaultValue:{value:"true"},description:"",name:"useInsets",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ScreenWrapper/ScreenWrapper.tsx#ScreenWrapper"]={docgenInfo:ScreenWrapper.__docgenInfo,name:"ScreenWrapper",path:"src/components/ScreenWrapper/ScreenWrapper.tsx#ScreenWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/SelectButtons/SelectButtons.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.SelectButtons=exports.BREAKPOINTS=void 0;var _toConsumableArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativeGestureHandler=__webpack_require__("./node_modules/react-native-gesture-handler/lib/module/index.js"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var BREAKPOINTS=exports.BREAKPOINTS={SM:600,MD:900,LG:1200},SelectButtons=exports.SelectButtons=function SelectButtons(_ref){var options=_ref.options,_ref$min=_ref.min,min=void 0===_ref$min?0:_ref$min,max=_ref.max,cols=_ref.cols,_ref$multiSelect=_ref.multiSelect,multiSelect=void 0!==_ref$multiSelect&&_ref$multiSelect,_ref$useFlatList=_ref.useFlatList,useFlatList=void 0!==_ref$useFlatList&&_ref$useFlatList,onChange=_ref.onChange,showSearch=_ref.showSearch,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{display:"flex",flexDirection:"column",flexGrow:1,flexShrink:1,padding:theme.spacing.gap,marginBottom:theme.spacing.margin,backgroundColor:theme.colors.surface},buttonContainer:{display:"flex",gap:theme.spacing.gap},button:{},buttonSelected:{backgroundColor:theme.colors.secondaryContainer,color:theme.colors.secondary}})}(theme)}),[theme]),_useState=(0,_react.useState)(""),_useState2=(0,_slicedToArray2.default)(_useState,2),searchQuery=_useState2[0],setSearchQuery=_useState2[1],_useState3=(0,_react.useState)(options||[]),_useState4=(0,_slicedToArray2.default)(_useState3,2),currentOptions=_useState4[0],setCurrentOptions=_useState4[1],screenWidth=(0,_useScreenWidth.useScreenWidth)(),numColumns=(0,_react.useMemo)((function(){return cols||(screenWidth>=BREAKPOINTS.LG?4:screenWidth>=BREAKPOINTS.MD?3:screenWidth>=BREAKPOINTS.SM?2:1)}),[screenWidth,cols]),filteredOptions=(0,_react.useMemo)((function(){return 0===currentOptions.length?[]:currentOptions.filter((function(option){return option.label.toLowerCase().includes(searchQuery.toLowerCase())})).sort((function(a,b){return(a.order||1)-(b.order||1)}))}),[currentOptions,searchQuery]);(0,_react.useEffect)((function(){setCurrentOptions(options)}),[options]);var handleSearchChange=(0,_react.useCallback)((function(query){return setSearchQuery(query)}),[]),handleButtonPress=(0,_react.useCallback)((function(index){var newOptions=(0,_toConsumableArray2.default)(currentOptions),optionIndex=currentOptions.findIndex((function(option){return option===filteredOptions[index]})),option=newOptions[optionIndex];if(void 0===option)throw new Error("Option is undefined");option.selected=!option.selected,multiSelect||(newOptions=newOptions.map((function(opt,idx){return Object.assign({},opt,{selected:idx===optionIndex&&option.selected})}))),null==onChange||onChange(newOptions)}),[currentOptions,filteredOptions,onChange,multiSelect]),selectedOptionsCount=(0,_react.useMemo)((function(){return null==currentOptions?void 0:currentOptions.filter((function(option){return option.selected})).length}),[currentOptions]),isErrorVisible=(0,_react.useMemo)((function(){return selectedOptionsCountmax}),[selectedOptionsCount,min,max]),errorText=(0,_react.useMemo)((function(){return selectedOptionsCountmax?`Please select no more than ${max} option(s).`:""}),[selectedOptionsCount,min,max]),renderButton=(0,_react.useCallback)((function(_ref2){var item=_ref2.item,index=_ref2.index,key=_ref2.key;return(0,_jsxRuntime.jsx)(_Button.Button,{mode:"outlined",testID:`buttons-opt-${index}`,style:[styles.button,item.selected&&styles.buttonSelected],onPress:function onPress(){return handleButtonPress(index)},children:item.label},null!=key?key:`opt${index}`)}),[handleButtonPress,styles]),handleKeyPress=(0,_react.useCallback)((function(event){"web"===_Platform.default.OS&&("Escape"===event.code&&setSearchQuery(""))}),[]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[showSearch&&(0,_jsxRuntime.jsx)(_reactNativePaper.Searchbar,{placeholder:"Search",clearButtonMode:"while-editing",onChangeText:handleSearchChange,onKeyPress:handleKeyPress,value:searchQuery}),(0,_jsxRuntime.jsx)(_reactNativePaper.HelperText,{type:"error",visible:isErrorVisible||!1,children:errorText}),useFlatList?(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.FlatList,{data:filteredOptions,renderItem:renderButton,keyExtractor:function keyExtractor(_item,index){return`opt${index}`},numColumns},`flatlist-${numColumns}`):(0,_jsxRuntime.jsx)(_View.default,{style:styles.buttonContainer,children:filteredOptions.map((function(item,index){return renderButton({item,index,key:`opt${index}`})}))})]})};try{SelectButtons.displayName="SelectButtons",SelectButtons.__docgenInfo={description:"",displayName:"SelectButtons",props:{multiSelect:{defaultValue:{value:"false"},description:"",name:"multiSelect",required:!1,type:{name:"boolean"}},showSearch:{defaultValue:null,description:"",name:"showSearch",required:!1,type:{name:"boolean"}},useFlatList:{defaultValue:{value:"false"},description:"",name:"useFlatList",required:!1,type:{name:"boolean"}},min:{defaultValue:{value:"0"},description:"",name:"min",required:!1,type:{name:"number"}},max:{defaultValue:null,description:"",name:"max",required:!1,type:{name:"number"}},cols:{defaultValue:null,description:"",name:"cols",required:!1,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((options: SelectOption[]) => void)"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/SelectButtons/SelectButtons.tsx#SelectButtons"]={docgenInfo:SelectButtons.__docgenInfo,name:"SelectButtons",path:"src/components/SelectButtons/SelectButtons.tsx#SelectButtons"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/TextInput/TextInput.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextInput=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_objectWithoutProperties2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),_bottomSheet=__webpack_require__("./node_modules/@gorhom/bottom-sheet/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_excluded=["mandatory","label","onFocus","onBlur","autoFocus"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var isWeb="web"===_Platform.default.OS,TextInput=exports.TextInput=(0,_react.forwardRef)((function(_ref,ref){var mandatory=_ref.mandatory,label=_ref.label,onFocus=_ref.onFocus,onBlur=_ref.onBlur,autoFocus=_ref.autoFocus,rest=(0,_objectWithoutProperties2.default)(_ref,_excluded),inputRef=(0,_react.useRef)(null),bottomSheetInternal=function useSafeBottomSheetInternal(){try{return(0,_bottomSheet.useBottomSheetInternal)()}catch(e){return null}}(),_useState=(0,_react.useState)(!isWeb),_useState2=(0,_slicedToArray2.default)(_useState,2),shouldFocus=_useState2[0],setShouldFocus=_useState2[1];(0,_react.useImperativeHandle)(ref,(function(){return{focus:function focus(){var _inputRef$current;return null==(_inputRef$current=inputRef.current)?void 0:_inputRef$current.focus()},blur:function blur(){var _inputRef$current2;return null==(_inputRef$current2=inputRef.current)?void 0:_inputRef$current2.blur()}}}));var handleOnFocus=(0,_react.useCallback)((function(event){bottomSheetInternal&&(bottomSheetInternal.shouldHandleKeyboardEvents.value=!0),null==onFocus||onFocus(event)}),[onFocus,bottomSheetInternal]),handleOnBlur=(0,_react.useCallback)((function(event){bottomSheetInternal&&(bottomSheetInternal.shouldHandleKeyboardEvents.value=!1),null==onBlur||onBlur(event)}),[onBlur,bottomSheetInternal]);return(0,_react.useEffect)((function(){if(isWeb&&autoFocus){var timer=setTimeout((function(){var _inputRef$current3;setShouldFocus(!0),null==(_inputRef$current3=inputRef.current)||_inputRef$current3.focus()}),300);return function(){return clearTimeout(timer)}}}),[autoFocus]),(0,_react.useEffect)((function(){return function(){bottomSheetInternal&&(bottomSheetInternal.shouldHandleKeyboardEvents.value=!1)}}),[bottomSheetInternal]),(0,_jsxRuntime.jsx)(_reactNativePaper.TextInput,Object.assign({},rest,{ref:inputRef,label:function renderLabel(){return mandatory?(0,_jsxRuntime.jsxs)(_reactNativePaper.Text,{children:[label,(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:{color:"red",paddingLeft:5},children:"*"})]}):label}(),onFocus:handleOnFocus,onBlur:handleOnBlur,autoFocus:isWeb?shouldFocus&&autoFocus:autoFocus}))}));TextInput.displayName="TextInput";try{TextInput.displayName="TextInput",TextInput.__docgenInfo={description:"",displayName:"TextInput",props:{mode:{defaultValue:null,description:"Mode of the TextInput.\n- `flat` - flat input with an underline.\n- `outlined` - input with an outline.\n\nIn `outlined` mode, the background color of the label is derived from `colors?.background` in theme or the `backgroundColor` style.\nThis component render TextInputOutlined or TextInputFlat based on that props",name:"mode",required:!1,type:{name:"enum",value:[{value:'"flat"'},{value:'"outlined"'}]}},theme:{defaultValue:null,description:"@optional",name:"theme",required:!1,type:{name:"ThemeProp"}},render:{defaultValue:null,description:'Callback to render a custom input component such as `react-native-text-input-mask`\ninstead of the default `TextInput` component from `react-native`.\n\nExample:\n```js\n\n \n }\n/>\n```',name:"render",required:!1,type:{name:"((props: RenderProps) => ReactNode)"}},error:{defaultValue:null,description:"Whether to style the TextInput with error style.",name:"error",required:!1,type:{name:"boolean"}},mandatory:{defaultValue:null,description:"",name:"mandatory",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"The text or component to use for the floating label.",name:"label",required:!1,type:{name:"TextInputLabelProp"}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:"ReactNode"}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:"ReactNode"}},disabled:{defaultValue:null,description:"If true, user won't be able to interact with the component.",name:"disabled",required:!1,type:{name:"boolean"}},underlineColor:{defaultValue:null,description:"Inactive underline color of the input.",name:"underlineColor",required:!1,type:{name:"string"}},activeUnderlineColor:{defaultValue:null,description:"Active underline color of the input.",name:"activeUnderlineColor",required:!1,type:{name:"string"}},outlineColor:{defaultValue:null,description:"Inactive outline color of the input.",name:"outlineColor",required:!1,type:{name:"string"}},activeOutlineColor:{defaultValue:null,description:"Active outline color of the input.",name:"activeOutlineColor",required:!1,type:{name:"string"}},textColor:{defaultValue:null,description:"Color of the text in the input.",name:"textColor",required:!1,type:{name:"string"}},dense:{defaultValue:null,description:"Sets min height with densed layout. For `TextInput` in `flat` mode\nheight is `64dp` or in dense layout - `52dp` with label or `40dp` without label.\nFor `TextInput` in `outlined` mode\nheight is `56dp` or in dense layout - `40dp` regardless of label.\nWhen you apply `height` prop in style the `dense` prop affects only `paddingVertical` inside `TextInput`",name:"dense",required:!1,type:{name:"boolean"}},contentStyle:{defaultValue:null,description:"Pass custom style directly to the input itself.\nOverrides input style\nExample: `paddingLeft`, `backgroundColor`",name:"contentStyle",required:!1,type:{name:"StyleProp"}},outlineStyle:{defaultValue:null,description:"Pass style to override the default style of outlined wrapper.\nOverrides style when mode is set to `outlined`\nExample: `borderRadius`, `borderColor`",name:"outlineStyle",required:!1,type:{name:"StyleProp"}},underlineStyle:{defaultValue:null,description:"Pass style to override the default style of underlined wrapper.\nOverrides style when mode is set to `flat`\nExample: `borderRadius`, `borderColor`",name:"underlineStyle",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/TextInput/TextInput.tsx#TextInput"]={docgenInfo:TextInput.__docgenInfo,name:"TextInput",path:"src/components/TextInput/TextInput.tsx#TextInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Toast/Toast.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.Toast=void 0;var _vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Dimensions=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Dimensions/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var icons={info:"information-outline",warning:"alert-circle-outline",success:"check-circle-outline",error:"close-circle-outline"},Toast=exports.Toast=function Toast(_ref2){var _ref2$position=_ref2.position,position=void 0===_ref2$position?"bottom":_ref2$position,_ref2$actionLabel=_ref2.actionLabel,actionLabel=void 0===_ref2$actionLabel?"DONE":_ref2$actionLabel,_ref2$duration=_ref2.duration,duration=void 0===_ref2$duration?2e3:_ref2$duration,_ref2$visibility=_ref2.visibility,visibility=void 0!==_ref2$visibility&&_ref2$visibility,_ref2$iconVisible=_ref2.iconVisible,iconVisible=void 0===_ref2$iconVisible||_ref2$iconVisible,_ref2$loading=_ref2.loading,loading=void 0!==_ref2$loading&&_ref2$loading,message=_ref2.message,subMessage=_ref2.subMessage,action=_ref2.action,messageStyle=_ref2.messageStyle,subMessageStyle=_ref2.subMessageStyle,iconStyle=_ref2.iconStyle,messageContainerStyle=_ref2.messageContainerStyle,snackbarStyle=_ref2.snackbarStyle,_ref2$type=_ref2.type,type=void 0===_ref2$type?"info":_ref2$type,onDismiss=_ref2.onDismiss,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,type=_ref.type,iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[type];return _StyleSheet.default.create({snackBarStyle:{borderRadius:3,width:"95%",maxWidth:400},message:{fontSize:14,color:"#FFF5EE"},textContainer:{gap:5,paddingLeft:5},subMessage:{fontWeight:"normal",color:"#FFF5EE",fontSize:12},defaultMessageContainer:{flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},iconStyle:{color:iconColor}})}({theme,type})}),[theme,type]),windowDimensions=_Dimensions.default.get("window"),insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),computedStyle=(0,_react.useMemo)((function(){var style,base={position:"web"===_Platform.default.OS?"fixed":"absolute",left:insets.left,right:insets.right,width:void 0,alignItems:"center",zIndex:9999};return"bottom"===position?style=Object.assign({},base,{bottom:insets.bottom}):"top"===position?style=Object.assign({},base,{top:insets.top,bottom:void 0}):(style=Object.assign({},base,{top:insets.top,bottom:insets.bottom,justifyContent:"center"}),"web"===_Platform.default.OS&&(style=Object.assign({},styles,{top:windowDimensions.height/2-20,bottom:windowDimensions.height/2-20})),style)}),[insets,position,windowDimensions]);return(0,_jsxRuntime.jsx)(_reactNativePaper.Snackbar,{onDismiss:function handleDismiss(){null==onDismiss||onDismiss()},style:[styles.snackBarStyle,snackbarStyle],wrapperStyle:computedStyle,duration,visible:visibility,action:action?{label:actionLabel,onPress:action}:void 0,children:(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.defaultMessageContainer,messageContainerStyle],children:[loading&&(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{}),!loading&&iconVisible&&(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icons[type],style:[styles.iconStyle,iconStyle],size:20}),(0,_jsxRuntime.jsxs)(_View.default,{style:styles.textContainer,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.message,messageStyle],children:`${message}`}),subMessage&&(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.subMessage,subMessageStyle],children:subMessage})]})]})})};try{Toast.displayName="Toast",Toast.__docgenInfo={description:"",displayName:"Toast",props:{message:{defaultValue:null,description:"The message to show",name:"message",required:!0,type:{name:"string"}},subMessage:{defaultValue:null,description:"",name:"subMessage",required:!1,type:{name:"string"}},type:{defaultValue:{value:"info"},description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},position:{defaultValue:{value:"bottom"},description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:{value:"2000"},description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:{value:"false"},description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:{value:"false"},description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:{value:"true"},description:"Toast Icon visibility",name:"iconVisible",required:!1,type:{name:"boolean"}},action:{defaultValue:null,description:"Toast Action onPress",name:"action",required:!1,type:{name:"(() => void)"}},actionLabel:{defaultValue:{value:"DONE"},description:"Toast Action Label",name:"actionLabel",required:!1,type:{name:"string"}},messageStyle:{defaultValue:null,description:"Toast Message Style",name:"messageStyle",required:!1,type:{name:"StyleProp"}},subMessageStyle:{defaultValue:null,description:"",name:"subMessageStyle",required:!1,type:{name:"StyleProp"}},iconStyle:{defaultValue:null,description:"icon style",name:"iconStyle",required:!1,type:{name:"StyleProp"}},messageContainerStyle:{defaultValue:null,description:"Toast Message Container Style",name:"messageContainerStyle",required:!1,type:{name:"StyleProp"}},snackbarStyle:{defaultValue:null,description:"Toast Snackbar Style",name:"snackbarStyle",required:!1,type:{name:"StyleProp"}},onDismiss:{defaultValue:null,description:"",name:"onDismiss",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Toast/Toast.tsx#Toast"]={docgenInfo:Toast.__docgenInfo,name:"Toast",path:"src/components/Toast/Toast.tsx#Toast"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfirmCancelFooter=void 0;var _react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ConfirmCancelFooter=exports.ConfirmCancelFooter=function ConfirmCancelFooter(_ref2){var onCancel=_ref2.onCancel,onFinish=_ref2.onFinish,containerStyle=_ref2.containerStyle,_useSafeAreaInsets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),bottom=_useSafeAreaInsets.bottom,left=_useSafeAreaInsets.left,right=_useSafeAreaInsets.right,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,bottom=_ref.bottom,left=_ref.left,right=_ref.right,paddingBottom=bottom>0?bottom:theme.padding.m;return _StyleSheet.default.create({footer:{backgroundColor:theme.colors.surfaceVariant,borderTopColor:theme.colors.outline,borderTopWidth:1,display:"flex",flexDirection:"row",justifyContent:"space-around",paddingTop:theme.padding.m,paddingBottom,paddingLeft:left+theme.padding.m,paddingRight:right+theme.padding.m},finishButton:{paddingHorizontal:20},cancelButton:{paddingHorizontal:20}})}({theme,bottom,left,right})}),[theme,bottom,left,right]),t=(0,_reactI18next.useTranslation)("confirm_cancel_footer").t;return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.footer,containerStyle],children:[(0,_jsxRuntime.jsx)(_Button.Button,{mode:"outlined",style:styles.cancelButton,onPress:onCancel,children:t("cancel")}),(0,_jsxRuntime.jsx)(_Button.Button,{style:styles.finishButton,mode:"contained",onPress:onFinish,children:t("confirm")})]})};try{ConfirmCancelFooter.displayName="ConfirmCancelFooter",ConfirmCancelFooter.__docgenInfo={description:"",displayName:"ConfirmCancelFooter",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"(() => void)"}},onFinish:{defaultValue:null,description:"",name:"onFinish",required:!1,type:{name:"(() => void)"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/bottom-modal/footers/ConfirmCancelFooter.tsx#ConfirmCancelFooter"]={docgenInfo:ConfirmCancelFooter.__docgenInfo,name:"ConfirmCancelFooter",path:"src/components/bottom-modal/footers/ConfirmCancelFooter.tsx#ConfirmCancelFooter"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/bottom-modal/handlers/LabelHandler.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.LabelHandler=void 0;var _objectWithoutProperties2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),_bottomSheet=__webpack_require__("./node_modules/@gorhom/bottom-sheet/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_excluded=["label"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var LabelHandler=exports.LabelHandler=function LabelHandler(_ref){var _ref$label=_ref.label,label=void 0===_ref$label?"":_ref$label,rest=(0,_objectWithoutProperties2.default)(_ref,_excluded),theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{borderBottomWidth:1,borderBottomColor:theme.colors.outline,borderTopLeftRadius:20,borderTopRightRadius:20,gap:5,backgroundColor:theme.colors.surfaceVariant},titleContainer:{justifyContent:"center",alignItems:"center"},title:{marginTop:theme.spacing.margin,fontSize:20,lineHeight:20,textAlign:"center",fontWeight:"bold"},indicator:{opacity:.5,color:theme.colors.text,alignSelf:"center",height:4}})}(theme)}),[theme]);return(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetHandle,Object.assign({},rest,{indicatorStyle:styles.indicator,style:styles.container,children:label?(0,_jsxRuntime.jsx)(_View.default,{style:styles.titleContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"titleSmall",children:label})}):void 0}))};try{LabelHandler.displayName="LabelHandler",LabelHandler.__docgenInfo={description:"",displayName:"LabelHandler",props:{label:{defaultValue:{value:""},description:"",name:"label",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/bottom-modal/handlers/LabelHandler.tsx#LabelHandler"]={docgenInfo:LabelHandler.__docgenInfo,name:"LabelHandler",path:"src/components/bottom-modal/handlers/LabelHandler.tsx#LabelHandler"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/_useAppPreferencesSetup.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAppPreferencesSetup=void 0;var _defineProperty2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/defineProperty.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=__webpack_require__("./node_modules/react/index.js"),logger=__webpack_require__("./src/utils/logger.ts").baseLogger.extend("useAppPreferencesSetup"),useAppPreferencesSetup=exports.useAppPreferencesSetup=function useAppPreferencesSetup(_ref){var theme=_ref.theme,i18nInstance=_ref.i18nInstance,savePreferences=_ref.savePreferences,setDarkMode=_ref.setDarkMode,_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),collapsed=_useState2[0],setCollapsed=_useState2[1],_useState3=(0,_react.useState)(theme.dark),_useState4=(0,_slicedToArray2.default)(_useState3,2),darkMode=_useState4[0],setLocalDarkmode=_useState4[1],_useState5=(0,_react.useState)(!1),_useState6=(0,_slicedToArray2.default)(_useState5,2),customFontLoaded=_useState6[0],setCustomFont=_useState6[1],_useState7=(0,_react.useState)(!0),_useState8=(0,_slicedToArray2.default)(_useState7,2),rippleEffectEnabled=_useState8[0],setRippleEffectEnabled=_useState8[1],_useState9=(0,_react.useState)(theme),_useState10=(0,_slicedToArray2.default)(_useState9,2),dynamicTheme=_useState10[0],setDynamicTheme=_useState10[1],_useState11=(0,_react.useState)(!1),_useState12=(0,_slicedToArray2.default)(_useState11,2),listener=_useState12[0],setListener=_useState12[1];return(0,_react.useEffect)((function(){setDynamicTheme(theme)}),[theme]),(0,_react.useEffect)((function(){return!listener&&i18nInstance.isInitialized&&(i18nInstance.on("languageChanged",(function onLanguage(lng){null==savePreferences||savePreferences({darkMode:dynamicTheme.dark,rippleEffectEnabled,locale:lng})})),setListener(!0)),function(){}}),[i18nInstance,savePreferences,listener,logger,dynamicTheme,rippleEffectEnabled]),(0,_react.useMemo)((function(){return{toggleDarkMode:function toggleDarkMode(){var _dynamicTheme$dark,newValue=!(null!=(_dynamicTheme$dark=dynamicTheme.dark)&&_dynamicTheme$dark);setLocalDarkmode(newValue),setDarkMode(newValue),null==savePreferences||savePreferences({darkMode:newValue,rippleEffectEnabled,locale:i18nInstance.language})},toggleCollapsed:function toggleCollapsed(){return setCollapsed(!collapsed)},toggleCustomFont:function toggleCustomFont(){return setCustomFont(!customFontLoaded)},toggleRippleEffect:function toggleRippleEffect(){setRippleEffectEnabled((function(oldValue){return null==savePreferences||savePreferences({darkMode:dynamicTheme.dark,rippleEffectEnabled:!oldValue,locale:i18nInstance.language}),!oldValue}))},setThemeColor:function setThemeColor(_ref2){var name=_ref2.name,value=_ref2.value;setDynamicTheme((function(oldTheme){var newTheme=Object.assign({},oldTheme,{colors:Object.assign({},oldTheme.colors,(0,_defineProperty2.default)({},name,value))});return console.log(`[${name}] ${oldTheme.colors[name]} -> ${value}`),console.log(`primary: ${newTheme.colors.primary} secondary: ${newTheme.colors.secondary} tertiary: ${newTheme.colors.tertiary}`),newTheme}))},toggleThemeVersion:function toggleThemeVersion(){},customFontLoaded,rippleEffectEnabled,collapsed,darkMode,theme:dynamicTheme}}),[dynamicTheme,collapsed,i18nInstance,savePreferences,customFontLoaded,rippleEffectEnabled,setDarkMode])};try{useAppPreferencesSetup.displayName="useAppPreferencesSetup",useAppPreferencesSetup.__docgenInfo={description:"",displayName:"useAppPreferencesSetup",props:{theme:{defaultValue:null,description:"",name:"theme",required:!0,type:{name:"AppTheme"}},i18nInstance:{defaultValue:null,description:"",name:"i18nInstance",required:!0,type:{name:"i18n"}},savedPreferences:{defaultValue:null,description:"",name:"savedPreferences",required:!1,type:{name:"SavedUserPreferences"}},savePreferences:{defaultValue:null,description:"",name:"savePreferences",required:!1,type:{name:"((userPrefs: SavedUserPreferences) => void)"}},setDarkMode:{defaultValue:null,description:"",name:"setDarkMode",required:!0,type:{name:"(value: boolean | ((oldValue: boolean) => boolean)) => void"}},setThemeVersion:{defaultValue:null,description:"",name:"setThemeVersion",required:!0,type:{name:"(number: number) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/_useAppPreferencesSetup.tsx#useAppPreferencesSetup"]={docgenInfo:useAppPreferencesSetup.__docgenInfo,name:"useAppPreferencesSetup",path:"src/hooks/_useAppPreferencesSetup.tsx#useAppPreferencesSetup"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/_useAppThemeSetup.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAppThemeSetup=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=__webpack_require__("./node_modules/react/index.js"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx"),useAppThemeSetup=exports.useAppThemeSetup=function useAppThemeSetup(_ref){var _savedPreferences$dar,fontFamily=_ref.fontFamily,savedPreferences=_ref.savedPreferences,customDarkTheme=_ref.customDarkTheme,customLightTheme=_ref.customLightTheme,_useState=(0,_react.useState)(null!=(_savedPreferences$dar=null==savedPreferences?void 0:savedPreferences.darkMode)&&_savedPreferences$dar),_useState2=(0,_slicedToArray2.default)(_useState,2),darkMode=_useState2[0],setDarkMode=_useState2[1],_useState3=(0,_react.useState)(3),_useState4=(0,_slicedToArray2.default)(_useState3,2),themeVersion=_useState4[0],setThemeVersion=_useState4[1],screenWidth=(0,_useScreenWidth.useScreenWidth)(),_useState5=(0,_react.useState)({padding:customLightTheme.padding.m,margin:customLightTheme.margin.m,gap:customLightTheme.gap.m}),_useState6=(0,_slicedToArray2.default)(_useState5,2),dynamicSpacing=_useState6[0],setDynamicSpacing=_useState6[1];(0,_react.useEffect)((function(){setDynamicSpacing(screenWidth<600?{padding:customLightTheme.padding.s,margin:customLightTheme.margin.s,gap:customLightTheme.gap.s}:screenWidth<1024?{padding:customLightTheme.padding.m,margin:customLightTheme.margin.m,gap:customLightTheme.gap.m}:{padding:customLightTheme.padding.l,margin:customLightTheme.margin.l,gap:customLightTheme.gap.l})}),[screenWidth,customLightTheme.padding,customLightTheme.margin,customLightTheme.gap]),(0,_react.useEffect)((function(){savedPreferences&&setDarkMode(savedPreferences.darkMode)}),[savedPreferences]);var theme=(0,_react.useMemo)((function(){var baseTheme=darkMode?customDarkTheme:customLightTheme;return Object.assign({},baseTheme,{spacing:dynamicSpacing})}),[darkMode,customDarkTheme,customLightTheme,dynamicSpacing]);return{theme,configuredFontTheme:Object.assign({},theme,{fonts:fontFamily?(0,_reactNativePaper.configureFonts)({config:{fontFamily}}):void 0}),darkMode,locale:null==savedPreferences?void 0:savedPreferences.locale,setDarkMode,themeVersion,setThemeVersion}};try{useAppThemeSetup.displayName="useAppThemeSetup",useAppThemeSetup.__docgenInfo={description:"",displayName:"useAppThemeSetup",props:{fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"string"}},savedPreferences:{defaultValue:null,description:"",name:"savedPreferences",required:!1,type:{name:"SavedUserPreferences"}},customLightTheme:{defaultValue:null,description:"",name:"customLightTheme",required:!0,type:{name:"CustomAppTheme"}},customDarkTheme:{defaultValue:null,description:"",name:"customDarkTheme",required:!0,type:{name:"CustomAppTheme"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/_useAppThemeSetup.tsx#useAppThemeSetup"]={docgenInfo:useAppThemeSetup.__docgenInfo,name:"useAppThemeSetup",path:"src/hooks/_useAppThemeSetup.tsx#useAppThemeSetup"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/useModal/useModal.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useModal=void 0;var _objectWithoutProperties2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),_asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_DynInput=__webpack_require__("./src/components/DynInput/DynInput.tsx"),_BottomSheetProvider=__webpack_require__("./src/providers/BottomSheetProvider.tsx"),_ModalProvider=__webpack_require__("./src/providers/ModalProvider.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_logger=__webpack_require__("./src/utils/logger.ts"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_excluded=["bottomSheetProps","modalProps","modalType","data","headerComponent","inputType"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var logger=_logger.baseLogger.extend("useModal");exports.useModal=function useModal(){var bottomSheetContext=(0,_react.useContext)(_BottomSheetProvider.BottomSheetContext),modalContext=(0,_react.useContext)(_ModalProvider.ModalContext),colors=(0,_ThemeProvider.useTheme)().colors;if(!bottomSheetContext||!modalContext)throw new Error("useModal must be used within both BottomSheetProvider and ModalProvider");var _ref2,openDrawer=bottomSheetContext.openDrawer,dismissDrawer=bottomSheetContext.dismiss,dismissAllDrawers=bottomSheetContext.dismissAll,modalStack=bottomSheetContext.modalStack,openModal=modalContext.openModal,dismissModal=modalContext.dismiss,dismissAllModals=modalContext.dismissAll,editProp=(0,_react.useCallback)((_ref2=(0,_asyncToGenerator2.default)((function*(_ref){var _modalProps$closeOnOu,_bottomSheetProps$ena,bottomSheetProps=_ref.bottomSheetProps,modalProps=_ref.modalProps,modalType=_ref.modalType,data=_ref.data,headerComponent=_ref.headerComponent,inputType=_ref.inputType,restProps=(0,_objectWithoutProperties2.default)(_ref,_excluded);logger.debug("editProp",Object.assign({bottomSheetProps,modalProps,modalType,data,inputType},restProps));var isDateTimeType=["date","time","datetime"].includes(inputType),actualModalType=null!=modalType?modalType:isDateTimeType||"web"===_Platform.default.OS?"modal":"drawer",commonProps={initialData:data,modalProps:Object.assign({closeOnOutsideTouch:null!=(_modalProps$closeOnOu=null==modalProps?void 0:modalProps.closeOnOutsideTouch)&&_modalProps$closeOnOu},modalProps),render:function render(_ref3){var resolve=_ref3.resolve,_onChange=_ref3.onChange;return(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[headerComponent&&headerComponent,(0,_jsxRuntime.jsx)(_DynInput.DynInput,Object.assign({},restProps,{data,useFlatList:!1,inputType,finishOnEnter:!0,selectTextOnFocus:!0,onCancel:function onCancel(){logger.debug("DynInput onCancel"),null==resolve||resolve(data)},onFinish:function onFinish(values){logger.debug("DynInput onFinish",values),null==resolve||resolve(values)},onChange:function onChange(value){logger.debug("DynInput onChange",value),null==_onChange||_onChange(value)},showFooter:!0,initiallyOpen:!0}))]})}};if("modal"===actualModalType){var _isDateTimeType=["date","time","datetime"].includes(inputType);return openModal(Object.assign({},commonProps,{modalProps:Object.assign({},modalProps,{styles:{modalContent:{backgroundColor:_isDateTimeType?"transparent":colors.surface}}})}))}return openDrawer(Object.assign({},commonProps,{bottomSheetProps:Object.assign({},bottomSheetProps,{enableDynamicSizing:null==(_bottomSheetProps$ena=null==bottomSheetProps?void 0:bottomSheetProps.enableDynamicSizing)||_bottomSheetProps$ena,snapPoints:null==bottomSheetProps?void 0:bottomSheetProps.snapPoints,index:null==bottomSheetProps?void 0:bottomSheetProps.index})}))})),function(_x){return _ref2.apply(this,arguments)}),[openModal,openDrawer]);return{editProp,dismiss:(0,_react.useCallback)((0,_asyncToGenerator2.default)((function*(){return!!(yield dismissModal())||dismissDrawer()})),[dismissModal,dismissDrawer]),dismissAll:(0,_react.useCallback)((function(){dismissAllModals(),dismissAllDrawers()}),[dismissAllModals,dismissAllDrawers]),openDrawer,openModal,modalStack}}},"./src/hooks/useScreenWidth.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useScreenWidth=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=__webpack_require__("./node_modules/react/index.js"),_Dimensions=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Dimensions/index.js"));exports.useScreenWidth=function useScreenWidth(){var _useState=(0,_react.useState)(_Dimensions.default.get("window").width),_useState2=(0,_slicedToArray2.default)(_useState,2),screenWidth=_useState2[0],setScreenWidth=_useState2[1];return(0,_react.useEffect)((function(){var subscription=_Dimensions.default.addEventListener("change",(function updateScreenWidth(){setScreenWidth(_Dimensions.default.get("window").width)}));return function(){subscription.remove()}}),[]),screenWidth}},"./src/providers/BottomSheetProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.BottomSheetProvider=exports.BottomSheetContext=void 0;var _toConsumableArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),_asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),_defineProperty2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/defineProperty.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_bottomSheet=__webpack_require__("./node_modules/@gorhom/bottom-sheet/lib/module/index.js"),_portal=__webpack_require__("./node_modules/@gorhom/portal/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_ConfirmCancelFooter=__webpack_require__("./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx"),_LabelHandler=__webpack_require__("./src/components/bottom-modal/handlers/LabelHandler.tsx"),_logger=__webpack_require__("./src/utils/logger.ts"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var BottomSheetContext=exports.BottomSheetContext=(0,_react.createContext)(void 0),logger=_logger.baseLogger.extend("BottomSheetProvider"),defaultSnapPoints=["40%","80%"],defaultBottomSheetModalProps={enableDynamicSizing:!0,snapPoints:[],android_keyboardInputMode:"adjustResize",keyboardBehavior:"interactive",keyboardBlurBehavior:"restore",enablePanDownToClose:!0,enableDismissOnClose:!0},BottomSheetProvider=exports.BottomSheetProvider=function BottomSheetProvider(_ref){var _ref4,children=_ref.children,_ref$defaultPortalNam=_ref.defaultPortalName,defaultPortalName=void 0===_ref$defaultPortalNam?"modal":_ref$defaultPortalNam,_useState=(0,_react.useState)([]),_useState2=(0,_slicedToArray2.default)(_useState,2),modalStack=_useState2[0],setModalStack=_useState2[1],modalStackRef=(0,_react.useRef)([]),modalIdCounter=(0,_react.useRef)(0),_useState3=(0,_react.useState)({}),_useState4=(0,_slicedToArray2.default)(_useState3,2),footerHeights=_useState4[0],setFooterHeights=_useState4[1],updateLatestData=(0,_react.useCallback)((function(modalId,newValue){modalStackRef.current=modalStackRef.current.map((function(modal){return modal.id===modalId?Object.assign({},modal,{latestData:newValue}):modal})),setModalStack(modalStackRef.current)}),[]),updateFooterHeight=(0,_react.useCallback)((function(modalId,newHeight){setFooterHeights((function(prevHeights){return prevHeights[modalId]!==newHeight?Object.assign({},prevHeights,(0,_defineProperty2.default)({},modalId,newHeight)):prevHeights}))}),[]),renderFooter=(0,_react.useCallback)((function(_ref2){var modalId=_ref2.modalId,footerProps=_ref2.footerProps,modal=modalStack.find((function(m){return m.id===modalId}));if(!modal)return null;var _modal$props=modal.props,renderFooter=_modal$props.renderFooter,footerType=_modal$props.footerType;return renderFooter||footerType?(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetFooter,Object.assign({},footerProps,{children:(0,_jsxRuntime.jsxs)(_View.default,{onLayout:function onLayout(event){var _modalStack;if(modalId===(null==(_modalStack=modalStack[modalStack.length-1])?void 0:_modalStack.id)){var newHeight=event.nativeEvent.layout.height;updateFooterHeight(modal.id,newHeight)}},children:[!renderFooter&&"confirm_cancel"===footerType&&(0,_jsxRuntime.jsx)(_ConfirmCancelFooter.ConfirmCancelFooter,{onFinish:function onFinish(){modal.resolve(modal.latestData)},onCancel:function onCancel(){modal.resolve(modal.initialData)}}),renderFooter&&renderFooter(Object.assign({},footerProps,{data:modal.latestData,resolve:modal.resolve,onChange:function onChange(newValue){return updateLatestData(modal.id,newValue)},reject:modal.reject}))]})})):null}),[modalStack,updateFooterHeight,updateLatestData]),renderHandler=(0,_react.useCallback)((function(_ref3){var modalId=_ref3.modalId,HandlerComponent=function HandlerComponent(props){var modal=modalStack.find((function(m){return m.id===modalId}));if(!modal)return null;var _modal$props2=modal.props,renderHandler=_modal$props2.renderHandler,title=_modal$props2.title;return renderHandler?renderHandler(Object.assign({},props,{data:modal.latestData,resolve:modal.resolve,onChange:function onChange(newValue){return updateLatestData(modal.id,newValue)},reject:modal.reject})):title?(0,_jsxRuntime.jsx)(_LabelHandler.LabelHandler,Object.assign({},props,{label:title})):(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetHandle,Object.assign({},props))};return HandlerComponent.displayName="BottomSheetHandler",HandlerComponent}),[modalStack,updateLatestData]),renderBackdrop=(0,_react.useCallback)((function(props){return(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetBackdrop,Object.assign({},props,{pressBehavior:"close",disappearsOnIndex:-1,appearsOnIndex:0,opacity:.6}))}),[]),wrapResolve=(0,_react.useCallback)((function(modalId,value,resolve){logger.debug("wrapResolve value",value);var currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?(currentModal.resolved=!0,currentModal.bottomSheetRef.current&¤tModal.bottomSheetRef.current.dismiss(),logger.debug("wrapResolve Calling resolve function",value),resolve(value)):logger.error(`wrapResolve: modal ${modalId} not found`,modalStackRef.current)}),[]),wrapReject=(0,_react.useCallback)((function(modalId,error,reject){logger.debug("wrapReject",error);var currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?(currentModal.rejected=!0,currentModal.bottomSheetRef.current&¤tModal.bottomSheetRef.current.dismiss(),reject(error)):logger.error(`wrapReject: modal ${modalId} not found`,modalStackRef.current)}),[]),handleModalDismiss=(0,_react.useCallback)((function(modalId){logger.debug(`handleModalDismiss: modalId: ${modalId}`);var currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?(currentModal.resolved||currentModal.rejected||(logger.debug(`handleModalDismiss: modalId: ${modalId} is closing and not resolved, resolving with undefined`),currentModal.resolve(void 0)),modalStackRef.current=modalStackRef.current.filter((function(m){return m.id!==modalId})),setModalStack(modalStackRef.current),logger.debug("handleModalDismiss: newStack",modalStackRef.current)):logger.error(`handleModalDismiss: modal modalId=${modalId} not found`,modalStackRef.current)}),[]),openDrawer=(0,_react.useCallback)((_ref4=(0,_asyncToGenerator2.default)((function*(props){var newBottomSheetRef=_react.default.createRef();return new Promise((function(resolve,reject){var initialData=props.initialData,bottomSheetProps=props.bottomSheetProps,_props$portalName=props.portalName,portalName=void 0===_props$portalName?defaultPortalName:_props$portalName,modalId=modalIdCounter.current++,modalResolved=!1,newModal={id:modalId,render:props.render,props:Object.assign({},props,{portalName}),resolve:function modalResolve(value){modalResolved?logger.debug("Resolve already called, skipping"):(modalResolved=!0,wrapResolve(modalId,value,resolve))},reject:function modalReject(error){modalResolved?logger.debug("Reject already called, skipping"):(modalResolved=!0,wrapReject(modalId,error,reject))},bottomSheetRef:newBottomSheetRef,initialData,latestData:initialData};logger.debug("openDrawer: adding new modal to stack",newModal),modalStackRef.current=[].concat((0,_toConsumableArray2.default)(modalStackRef.current),[newModal]),setModalStack(modalStackRef.current),setTimeout((function(){var _newBottomSheetRef$cu,_newBottomSheetRef$cu2;null==(_newBottomSheetRef$cu=newBottomSheetRef.current)||_newBottomSheetRef$cu.present(),null!=bottomSheetProps&&bottomSheetProps.snapPoints&&(null==(_newBottomSheetRef$cu2=newBottomSheetRef.current)||_newBottomSheetRef$cu2.snapToIndex(bottomSheetProps.index||0))}),0)}))})),function(_x){return _ref4.apply(this,arguments)}),[setModalStack,defaultPortalName,wrapResolve,wrapReject]),dismiss=(0,_react.useCallback)((function(modalId){return new Promise((function(resolvePromise){var _currentModal$bottomS,currentModal=modalId?modalStackRef.current.find((function(m){return m.id===modalId})):modalStackRef.current[modalStackRef.current.length-1];if(!currentModal)return logger.warn(`dismiss: modal id=${modalId} not found`,modalStackRef.current),void resolvePromise(!1);logger.debug(`dismiss: modalId: ${currentModal.id}`,currentModal),null==(_currentModal$bottomS=currentModal.bottomSheetRef.current)||_currentModal$bottomS.dismiss(),setTimeout((function(){logger.debug("dismiss: resolving modal after delay:",currentModal.id),currentModal.resolve(void 0),resolvePromise(!0)}),300)}))}),[]),dismissAll=(0,_react.useCallback)((function(){modalStackRef.current.forEach((function(modal){var _modal$bottomSheetRef;null==(_modal$bottomSheetRef=modal.bottomSheetRef.current)||_modal$bottomSheetRef.dismiss()})),modalStackRef.current=[],setModalStack([])}),[]),handleSheetChanges=(0,_react.useCallback)((function(_ref5){var modalId=_ref5.modalId,index=_ref5.index,position=_ref5.position,type=_ref5.type;logger.debug(`handleSheetChanges: modalId: ${modalId}, index: ${index}, position: ${position}, type: ${type}, modalStack.length: ${modalStackRef.current.length}`);var _currentModal$props$b,currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?-1===index?(logger.debug(`handleSheetChanges: modalId: ${modalId} is closing`),currentModal.resolved||currentModal.rejected||(logger.debug(`handleSheetChanges: modalId: ${modalId} is closing and not resolved, resolving with initialData`,currentModal.initialData),currentModal.resolve(void 0)),logger.debug("handleSheetChanges: removing modal from stack",modalId),modalStackRef.current=modalStackRef.current.filter((function(m){return m.id!==modalId})),setModalStack(modalStackRef.current),logger.debug("handleSheetChanges: newStack",modalStackRef.current)):(logger.debug(`handleSheetChanges: modalId: ${modalId}, index: ${index}, position: ${position}, type: ${type}`),null==(_currentModal$props$b=currentModal.props.bottomSheetProps)||null==_currentModal$props$b.onChange||_currentModal$props$b.onChange(index,position,type)):logger.error(`handleSheetChanges: modal modalId=${modalId} not found`,modalStackRef.current)}),[]),renderContent=(0,_react.useCallback)((function(_ref6){var modalId=_ref6.modalId,currentModal=modalStack.find((function(m){return m.id===modalId}));if(!currentModal)return null;var footerHeight=footerHeights[currentModal.id]||0,containerType=currentModal.props.containerType||"view",Container="view"===containerType?_bottomSheet.BottomSheetView:"scrollview"===containerType?_bottomSheet.BottomSheetScrollView:_react.default.Fragment,content=currentModal.render({data:currentModal.latestData,footerHeight,resolve:currentModal.resolve,onChange:function onChange(newValue){updateLatestData(currentModal.id,newValue)},reject:currentModal.reject});return(0,_jsxRuntime.jsx)(Container,{children:(0,_jsxRuntime.jsx)(_View.default,{style:{paddingBottom:footerHeight},children:content})})}),[modalStack,footerHeights,updateLatestData]),contextValue=(0,_react.useMemo)((function(){return{openDrawer,dismiss,dismissAll,modalStack}}),[openDrawer,dismiss,dismissAll,modalStack]);return(0,_jsxRuntime.jsx)(BottomSheetContext.Provider,{value:contextValue,children:(0,_jsxRuntime.jsxs)(_bottomSheet.BottomSheetModalProvider,{children:[children,modalStack.filter((function(modal){return!modal.resolved&&!modal.rejected})).map((function(modal){var _modal$props$bottomSh,bottomSheetProps=Object.assign({},defaultBottomSheetModalProps,modal.props.bottomSheetProps);return bottomSheetProps.enableDynamicSizing||bottomSheetProps.snapPoints&&(!Array.isArray(bottomSheetProps.snapPoints)||0!==bottomSheetProps.snapPoints.length)||(bottomSheetProps.snapPoints=defaultSnapPoints),(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetModal,Object.assign({ref:modal.bottomSheetRef},bottomSheetProps,{onChange:function onChange(sheetIndex,position,type){return handleSheetChanges({modalId:modal.id,index:sheetIndex,position,type})},enableDismissOnClose:!0,onDismiss:function onDismiss(){return handleModalDismiss(modal.id)},containerComponent:function containerComponent(_ref7){var children=_ref7.children;return(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:modal.props.portalName||defaultPortalName,children:(0,_jsxRuntime.jsx)(_View.default,{style:Object.assign({},_StyleSheet.default.absoluteFillObject,{zIndex:9999}),children})})},stackBehavior:(null==(_modal$props$bottomSh=modal.props.bottomSheetProps)?void 0:_modal$props$bottomSh.stackBehavior)||"push",footerComponent:function footerComponent(props){return renderFooter({modalId:modal.id,footerProps:props})},handleComponent:renderHandler({modalId:modal.id}),backdropComponent:renderBackdrop,children:renderContent({modalId:modal.id})}),modal.id)}))]})})};try{BottomSheetProvider.displayName="BottomSheetProvider",BottomSheetProvider.__docgenInfo={description:"",displayName:"BottomSheetProvider",props:{defaultPortalName:{defaultValue:{value:"modal"},description:"",name:"defaultPortalName",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/BottomSheetProvider.tsx#BottomSheetProvider"]={docgenInfo:BottomSheetProvider.__docgenInfo,name:"BottomSheetProvider",path:"src/providers/BottomSheetProvider.tsx#BottomSheetProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/ConfirmProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfirmProvider=exports.ConfirmContext=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_ConfirmDialog=__webpack_require__("./src/components/ConfirmDialog/ConfirmDialog.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ConfirmContext=exports.ConfirmContext=(0,_react.createContext)(void 0),ConfirmProvider=exports.ConfirmProvider=function ConfirmProvider(_ref2){var children=_ref2.children,theme=(0,_ThemeProvider.useTheme)(),_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),isVisible=_useState2[0],setIsVisible=_useState2[1],_useState3=(0,_react.useState)({title:""}),_useState4=(0,_slicedToArray2.default)(_useState3,2),options=_useState4[0],setOptions=_useState4[1],_useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),resolve=_useState6[0],setResolve=_useState6[1],styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({fixedDialog:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1e3},title:{textAlign:"center",fontSize:theme.fonts.bodyLarge.fontSize},notice:{paddingTop:15,textAlign:"center",fontSize:theme.fonts.bodyMedium.fontSize}})}({theme})}),[theme]),dialogStyle=(0,_react.useMemo)((function(){return"web"===_Platform.default.OS?styles.fixedDialog:{}}),[styles]),handleConfirm=function handleConfirm(value){setIsVisible(!1),resolve&&resolve(value),value&&options.onConfirm&&options.onConfirm(),!value&&options.onCancel&&options.onCancel()};return(0,_jsxRuntime.jsxs)(ConfirmContext.Provider,{value:function confirm(opts){return setOptions(opts),setIsVisible(!0),new Promise((function(_resolve){setResolve((function(){return _resolve}))}))},children:[children,isVisible?(0,_jsxRuntime.jsx)(_ConfirmDialog.ConfirmDialog,{title:options.title,notice:options.notice,confirmLabel:options.confirmLabel||"Yes",cancelLabel:options.cancelLabel||"No",onConfirm:function onConfirm(){return handleConfirm(!0)},onCancel:function onCancel(){return handleConfirm(!1)},style:dialogStyle}):void 0]})};try{ConfirmProvider.displayName="ConfirmProvider",ConfirmProvider.__docgenInfo={description:"",displayName:"ConfirmProvider",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/ConfirmProvider.tsx#ConfirmProvider"]={docgenInfo:ConfirmProvider.__docgenInfo,name:"ConfirmProvider",path:"src/providers/ConfirmProvider.tsx#ConfirmProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/LanguageProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.LanguageProvider=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_expoLocalization=__webpack_require__("./node_modules/expo-localization/build/Localization.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_i18next=_interopRequireDefault(__webpack_require__("./node_modules/i18next/dist/cjs/i18next.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_logger=__webpack_require__("./src/utils/logger.ts"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var resources={fr:{translations:{hello:"Bonjour"},select_items:{cancel:"Annuler",finish:"Terminer",search_placeholder:"Rechercher"},select_categories:{cardCount_one:"{{count}} carte",cardCount_other:"{{count}} cartes"},daily_sentence:{play:"Jouer"}},en:{translations:{hello:"Hello"},confirm_cancel_footer:{cancel:"Cancel",finish:"Finish",confirm:"Confirm"},flashcards_view:{totally_forgot:"Totally forgot",incorrect:"Incorrect",correct:"Correct",perfect_recall:"Perfect recall"},card_content:{play:"Play",audio_error:"Audio not available"},review_cards:{title:"FlashCards",subTitle:"#{{index}} [{{current}}/{{total}}] {{percent}}%",empty:"No cards available",completed_switch:"Completed cards"},review_cards_setup:{total_cards:"Total Cards: {{count}}"},review_cards_completion:{title:"Congratulations!",subTitle:"You have completed a new session.",date:"Date",duration:"Duration",total_cards:"Total Cards",completion:"Completion",next_label:"What do you want to do next?",restart:"Restart",new_session:"New Session"},updater:{newVersion:"New version available",restart:"Restart Now"},select_items:{cancel:"Cancel",finish:"Done",search_placeholder:"Rechercher",min_error:{one:"Please select at least {{count}} item",other:"Please select at least {{count}} items"},max_error:{one:"Please select at most {{count}} item",other:"Please select at most {{count}} items"}},select_categories:{cardCount_one:"{{count}} card",cardCount_other:"{{count}} cards"},daily_sentence:{play:"Play",audio_error:"Audio not available"}}},logger=_logger.baseLogger.extend("useI18nSetup"),LanguageProvider=exports.LanguageProvider=function LanguageProvider(_ref){var locale=_ref.locale,children=_ref.children,_useState=(0,_react.useState)(_i18next.default.isInitialized),_useState2=(0,_slicedToArray2.default)(_useState,2),isReady=_useState2[0],setReady=_useState2[1];return(0,_react.useEffect)((function(){if(_i18next.default.isInitialized)logger.log("i18n already initialized"),setReady(!0);else{var _getLocales$,_getLocales$2,lng=null!=locale?locale:null==(_getLocales$=(0,_expoLocalization.getLocales)()[0])?void 0:_getLocales$.languageTag;logger.info(`initializing i18n device: lng=${lng} system=${null==(_getLocales$2=(0,_expoLocalization.getLocales)()[0])?void 0:_getLocales$2.languageTag} locale=${locale}`),function initI18n(lng){return _i18next.default.use(_reactI18next.initReactI18next).init({resources,fallbackLng:"en",lng:null!=lng?lng:"en",debug:!0,interpolation:{escapeValue:!1}})}(lng).then((function(){logger.info("i18n initialized"),setReady(!0)})).catch((function(error){logger.error("Failed to initialize i18n:",error)}))}}),[logger,locale]),isReady?(0,_jsxRuntime.jsx)(_reactI18next.I18nextProvider,{i18n:_i18next.default,children}):(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{})};try{LanguageProvider.displayName="LanguageProvider",LanguageProvider.__docgenInfo={description:"",displayName:"LanguageProvider",props:{locale:{defaultValue:null,description:"",name:"locale",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/LanguageProvider.tsx#LanguageProvider"]={docgenInfo:LanguageProvider.__docgenInfo,name:"LanguageProvider",path:"src/providers/LanguageProvider.tsx#LanguageProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/ModalProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ModalProvider=exports.ModalContext=void 0;var _toConsumableArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),_asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_portal=__webpack_require__("./node_modules/@gorhom/portal/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_TouchableWithoutFeedback=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/TouchableWithoutFeedback/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_logger=__webpack_require__("./src/utils/logger.ts"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ModalContext=exports.ModalContext=(0,_react.createContext)(void 0),logger=_logger.baseLogger.extend("ModalProvider"),ModalProvider=exports.ModalProvider=function ModalProvider(_ref){var _ref3,children=_ref.children,_ref$portalName=_ref.portalName,portalName=void 0===_ref$portalName?"modal":_ref$portalName,theme=(0,_ThemeProvider.useTheme)(),_useState=(0,_react.useState)([]),_useState2=(0,_slicedToArray2.default)(_useState,2),modalStack=_useState2[0],setModalStack=_useState2[1],modalIdCounter=(0,_react.useRef)(0),handleModalDismiss=(0,_react.useCallback)((function(){if(modalStack.length>0){var currentModal=modalStack[modalStack.length-1];if(!currentModal)return void logger.debug("No current modal to dismiss");logger.debug("Dismissing modal",currentModal.id),null==currentModal||currentModal.resolve(currentModal.initialData),setModalStack((function(prevStack){return prevStack.slice(0,-1)}))}}),[modalStack]),openModal=(0,_react.useCallback)((_ref3=(0,_asyncToGenerator2.default)((function*(_ref2){var initialData=_ref2.initialData,modalProperties=_ref2.modalProps,render=_ref2.render;return new Promise((function(resolve,reject){var modalId=modalIdCounter.current++;logger.debug("Opening modal",modalId,{initialData,modalProperties});var wrapResolve=function wrapResolve(value){logger.debug("Modal resolved",modalId,value),setModalStack((function(prevStack){return prevStack.filter((function(modal){return modal.id!==modalId}))})),resolve(value)},wrapReject=function wrapReject(error){logger.debug("Modal rejected",modalId,error),setModalStack((function(prevStack){return prevStack.filter((function(modal){return modal.id!==modalId}))})),reject(error)},content=render({resolve:wrapResolve,reject:wrapReject,onChange:function wrapOnChange(value){logger.debug("Modal onChange",modalId,value),setModalStack((function(prevStack){return prevStack.map((function(modal){return modal.id===modalId?Object.assign({},modal,{initialData:value}):modal}))}))},data:initialData});setModalStack((function(prevStack){return[].concat((0,_toConsumableArray2.default)(prevStack),[{id:modalId,content,props:{initialData,modalProps:modalProperties,render},resolve:wrapResolve,reject:wrapReject,initialData}])}))}))})),function(_x){return _ref3.apply(this,arguments)}),[]),dismiss=(0,_react.useCallback)((function(){return new Promise((function(resolvePromise){if(0===modalStack.length)return logger.debug("No modals to dismiss"),void resolvePromise(!1);logger.debug("Dismissing top modal"),handleModalDismiss(),resolvePromise(!0)}))}),[handleModalDismiss,modalStack.length]),dismissAll=(0,_react.useCallback)((function(){logger.debug("Dismissing all modals",modalStack.length),modalStack.forEach((function(modal){return modal.resolve(modal.initialData)})),setModalStack([])}),[modalStack]),handleOutsideTouch=(0,_react.useCallback)((function(){if(modalStack.length>0){var _currentModal$props$m,currentModal=modalStack[modalStack.length-1];if(!currentModal)return void logger.debug("No current modal to dismiss");logger.debug("Outside touch detected",currentModal.id,currentModal.props),!1!==(null==currentModal||null==(_currentModal$props$m=currentModal.props.modalProps)?void 0:_currentModal$props$m.closeOnOutsideTouch)?(logger.debug("Closing modal on outside touch",currentModal.id),handleModalDismiss()):logger.debug("Ignoring outside touch",currentModal.id)}}),[modalStack,handleModalDismiss]),contextValue=(0,_react.useMemo)((function(){return{openModal,dismiss,dismissAll}}),[openModal,dismiss,dismissAll]);return(0,_jsxRuntime.jsxs)(ModalContext.Provider,{value:contextValue,children:[children,(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:portalName,children:modalStack.map((function(modal,index){var _modal$props$modalPro,_modal$props$modalPro2,_modal$props$modalPro3,_modal$props$modalPro4,showBackdrop=null==(_modal$props$modalPro=null==(_modal$props$modalPro2=modal.props.modalProps)?void 0:_modal$props$modalPro2.showBackdrop)||_modal$props$modalPro,customStyles=null!=(_modal$props$modalPro3=null==(_modal$props$modalPro4=modal.props.modalProps)?void 0:_modal$props$modalPro4.styles)?_modal$props$modalPro3:{};return console.log(`displaying modal ${modal.id} showBackdrop: ${showBackdrop}`,modal.props.modalProps),(0,_jsxRuntime.jsx)(_TouchableWithoutFeedback.default,{onPress:handleOutsideTouch,children:(0,_jsxRuntime.jsx)(_View.default,{style:[_StyleSheet.default.absoluteFillObject,styles.modalContainer,showBackdrop&&styles.backdrop,{zIndex:9999+index},customStyles.modalContainer],children:(0,_jsxRuntime.jsx)(_TouchableWithoutFeedback.default,{children:(0,_jsxRuntime.jsx)(_View.default,{style:[styles.modalContent,{backgroundColor:theme.colors.surface},customStyles.modalContent],children:modal.content})})})},modal.id)}))})]})},styles=_StyleSheet.default.create({modalContainer:{justifyContent:"center",alignItems:"center"},backdrop:{backgroundColor:"rgba(0, 0, 0, 0.5)"},modalContent:{padding:20,borderRadius:8,margin:20,maxWidth:"90%",maxHeight:"90%"}});try{ModalProvider.displayName="ModalProvider",ModalProvider.__docgenInfo={description:"",displayName:"ModalProvider",props:{portalName:{defaultValue:{value:"modal"},description:"",name:"portalName",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/ModalProvider.tsx#ModalProvider"]={docgenInfo:ModalProvider.__docgenInfo,name:"ModalProvider",path:"src/providers/ModalProvider.tsx#ModalProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/OverlayProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useOverlay=exports.OverlayProvider=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var OverlayContext=(0,_react.createContext)(void 0),OverlayProvider=(exports.useOverlay=function useOverlay(){var context=(0,_react.useContext)(OverlayContext);if(!context)throw new Error("useOverlay must be used within an OverlayProvider");return context},exports.OverlayProvider=function OverlayProvider(_ref){var children=_ref.children,_ref$initialZIndex=_ref.initialZIndex,initialZIndex=void 0===_ref$initialZIndex?1e3:_ref$initialZIndex,_useState=(0,_react.useState)(initialZIndex),_useState2=(0,_slicedToArray2.default)(_useState,2),currentZIndex=_useState2[0],setCurrentZIndex=_useState2[1],getNextZIndex=(0,_react.useCallback)((function(){return setCurrentZIndex((function(prevZIndex){return prevZIndex+1})),currentZIndex}),[]);return(0,_jsxRuntime.jsx)(OverlayContext.Provider,{value:{getNextZIndex},children})});try{OverlayProvider.displayName="OverlayProvider",OverlayProvider.__docgenInfo={description:"",displayName:"OverlayProvider",props:{initialZIndex:{defaultValue:{value:"1000"},description:"",name:"initialZIndex",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/OverlayProvider.tsx#OverlayProvider"]={docgenInfo:OverlayProvider.__docgenInfo,name:"OverlayProvider",path:"src/providers/OverlayProvider.tsx#OverlayProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/ThemeProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useThemePreferences=exports.useTheme=exports.ThemeProvider=exports.PreferencesContext=void 0;var _react=_interopRequireDefault(__webpack_require__("./node_modules/react/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),PreferencesContext=exports.PreferencesContext=_react.default.createContext(null),ThemeProvider=exports.ThemeProvider=function ThemeProvider(_ref){var children=_ref.children,preferences=_ref.preferences;return(0,_jsxRuntime.jsx)(PreferencesContext.Provider,{value:preferences,children:(0,_jsxRuntime.jsx)(_reactNativePaper.PaperProvider,{theme:preferences.theme,settings:{rippleEffectEnabled:preferences.rippleEffectEnabled},children})})};exports.useThemePreferences=function useThemePreferences(){var context=_react.default.useContext(PreferencesContext);if(!context)throw new Error("useThemePreferences must be used within a ThemeProvider");return context},exports.useTheme=function useTheme(){var context=_react.default.useContext(PreferencesContext);if(!context)throw new Error("useTheme must be used within a ThemeProvider ooo");return context.theme};try{ThemeProvider.displayName="ThemeProvider",ThemeProvider.__docgenInfo={description:"",displayName:"ThemeProvider",props:{preferences:{defaultValue:null,description:"",name:"preferences",required:!0,type:{name:"ThemePreferences & ThemeActions"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/ThemeProvider.tsx#ThemeProvider"]={docgenInfo:ThemeProvider.__docgenInfo,name:"ThemeProvider",path:"src/providers/ThemeProvider.tsx#ThemeProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/ToastProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ToastProvider=exports.ToastContext=exports.ToastActionType=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Keyboard=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Keyboard/index.js")),_Toast=__webpack_require__("./src/components/Toast/Toast.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ToastActionType=exports.ToastActionType=function(ToastActionType){return ToastActionType.SHOW="SHOW",ToastActionType.HIDE="HIDE",ToastActionType.HYDRATE="HYDRATE",ToastActionType}({}),ToastContext=exports.ToastContext=(0,_react.createContext)(null),ToastProvider=exports.ToastProvider=function ToastProvider(_ref){var children=_ref.children,overrides=_ref.overrides,initialState=(0,_react.useMemo)((function(){return Object.assign({visibility:!1,message:"",type:"info",position:"bottom",iconVisible:!1},overrides)}),[overrides]),_useReducer=(0,_react.useReducer)(function reducer(initialState){return function(state,action){switch(action.type){case ToastActionType.SHOW:return Object.assign({},initialState,action.payload,{visibility:!0});case ToastActionType.HIDE:return Object.assign({},state,{visibility:!1});case ToastActionType.HYDRATE:return Object.assign({},initialState,action.payload);default:return state}}}(initialState),initialState),_useReducer2=(0,_slicedToArray2.default)(_useReducer,2),state=_useReducer2[0],dispatch=_useReducer2[1],toastMethods=(0,_react.useMemo)((function(){return{show:function show(options){dispatch({type:ToastActionType.SHOW,payload:Object.assign({},options)}),"bottom"===options.position&&_Keyboard.default.dismiss()},loader:function loader(message,options){dispatch({type:ToastActionType.SHOW,payload:Object.assign({},options,{message,loading:!0})}),"bottom"===(null==options?void 0:options.position)&&_Keyboard.default.dismiss()},hide:function hide(){dispatch({type:ToastActionType.HIDE})}}}),[]);(0,_react.useEffect)((function(){dispatch({type:ToastActionType.HYDRATE,payload:initialState})}),[initialState]);return(0,_jsxRuntime.jsxs)(ToastContext.Provider,{value:toastMethods,children:[children,(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},state,{onDismiss:function handleDismiss(){null==state.onDismiss||state.onDismiss(),toastMethods.hide()}}))]})};try{ToastProvider.displayName="ToastProvider",ToastProvider.__docgenInfo={description:"",displayName:"ToastProvider",props:{overrides:{defaultValue:null,description:"",name:"overrides",required:!1,type:{name:"Partial"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/ToastProvider.tsx#ToastProvider"]={docgenInfo:ToastProvider.__docgenInfo,name:"ToastProvider",path:"src/providers/ToastProvider.tsx#ToastProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/UIProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.UIProvider=exports.DefaultLightTheme=exports.DefaultDarkTheme=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_portal=__webpack_require__("./node_modules/@gorhom/portal/lib/module/index.js"),_native=__webpack_require__("./node_modules/@react-navigation/native/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_reactNativeGestureHandler=__webpack_require__("./node_modules/react-native-gesture-handler/lib/module/index.js"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_useAppPreferencesSetup=__webpack_require__("./src/hooks/_useAppPreferencesSetup.tsx"),_useAppThemeSetup2=__webpack_require__("./src/hooks/_useAppThemeSetup.tsx"),_BottomSheetProvider=__webpack_require__("./src/providers/BottomSheetProvider.tsx"),_ConfirmProvider=__webpack_require__("./src/providers/ConfirmProvider.tsx"),_LanguageProvider=__webpack_require__("./src/providers/LanguageProvider.tsx"),_ModalProvider=__webpack_require__("./src/providers/ModalProvider.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_ToastProvider=__webpack_require__("./src/providers/ToastProvider.tsx"),_OverlayProvider=__webpack_require__("./src/providers/OverlayProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var DefaultLightTheme=exports.DefaultLightTheme=Object.assign({},_reactNativePaper.MD3LightTheme,{dark:!1,padding:{s:5,m:10,l:15},margin:{s:5,m:10,l:15},gap:{s:5,m:8,l:8},colors:Object.assign({},_reactNativePaper.MD3LightTheme.colors,_native.DefaultTheme.colors,{brand:_reactNativePaper.MD3Colors.primary0,success:"#90EE90",successContainer:"rgba(75,153,79,0.1)",warning:"#FFC300",warningContainer:"rgba(255,193,7,0.1)",info:"#00BBFF",infoContainer:"rgba(0,122,255,0.1)"})}),DefaultDarkTheme=exports.DefaultDarkTheme=Object.assign({},_reactNativePaper.MD3DarkTheme,{dark:!0,padding:{s:5,m:10,l:15},margin:{s:5,m:10,l:15},gap:{s:5,m:8,l:8},colors:Object.assign({},_reactNativePaper.MD3DarkTheme.colors,_native.DarkTheme.colors,{brand:_reactNativePaper.MD3Colors.primary0,success:"rgba(75,153,79,0.9)",successContainer:"rgba(75,153,79,0.1)",warning:"rgba(255,193,7,0.9)",warningContainer:"rgba(255,193,7,0.1)",info:"rgba(0,122,255,0.9)",infoContainer:"rgba(0,122,255,0.1)"})}),UIProviderWithLanguageReady=function UIProviderWithLanguageReady(_ref){var preferences=_ref.preferences,actions=_ref.actions,darkTheme=_ref.darkTheme,lightTheme=_ref.lightTheme,toastProviderProps=_ref.toastProviderProps,confirmProviderProps=_ref.confirmProviderProps,_ref$portalName=_ref.portalName,portalName=void 0===_ref$portalName?"modal":_ref$portalName,children=_ref.children,_React$useState=_react.default.useState(),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),activePreferences=_React$useState2[0],setActivePreferences=_React$useState2[1],i18n=(0,_reactI18next.useTranslation)().i18n,_useAppThemeSetup=(0,_useAppThemeSetup2.useAppThemeSetup)({customDarkTheme:DefaultDarkTheme,customLightTheme:DefaultLightTheme}),defaultTheme=_useAppThemeSetup.theme,darkMode=_useAppThemeSetup.darkMode,setDarkMode=_useAppThemeSetup.setDarkMode,setThemeVersion=_useAppThemeSetup.setThemeVersion,theme=_react.default.useMemo((function(){return darkMode?Object.assign({},defaultTheme,darkTheme):Object.assign({},defaultTheme,lightTheme)}),[darkMode,darkTheme,lightTheme,defaultTheme]),defaultPreferences=(0,_useAppPreferencesSetup.useAppPreferencesSetup)({theme,setDarkMode,i18nInstance:i18n,setThemeVersion,savePreferences:function savePreferences(_){}});return(0,_react.useEffect)((function(){var dynPrefs=Object.assign({},defaultPreferences);preferences?dynPrefs=Object.assign({},dynPrefs,preferences):actions&&(dynPrefs=Object.assign({},dynPrefs,actions)),setActivePreferences(dynPrefs)}),[preferences,actions]),activePreferences?(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.GestureHandlerRootView,{style:{flex:1},children:(0,_jsxRuntime.jsx)(_portal.PortalProvider,{children:(0,_jsxRuntime.jsx)(_ThemeProvider.ThemeProvider,{preferences:defaultPreferences,children:(0,_jsxRuntime.jsx)(_OverlayProvider.OverlayProvider,{children:(0,_jsxRuntime.jsx)(_ConfirmProvider.ConfirmProvider,Object.assign({},confirmProviderProps,{children:(0,_jsxRuntime.jsx)(_ToastProvider.ToastProvider,Object.assign({},toastProviderProps,{children:(0,_jsxRuntime.jsx)(_BottomSheetProvider.BottomSheetProvider,{defaultPortalName:portalName,children:(0,_jsxRuntime.jsx)(_ModalProvider.ModalProvider,{portalName,children:(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[children,(0,_jsxRuntime.jsx)(_portal.PortalHost,{name:portalName})]})})})}))}))})})})}):(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{})},UIProviderWithLanguage=function UIProviderWithLanguage(props){return(0,_reactI18next.useTranslation)().i18n.isInitialized?(0,_jsxRuntime.jsx)(UIProviderWithLanguageReady,Object.assign({},props)):(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{})},UIProvider=exports.UIProvider=function UIProvider(_ref2){var locale=_ref2.locale,actions=_ref2.actions,safeAreaProviderProps=_ref2.safeAreaProviderProps,toastProviderProps=_ref2.toastProviderProps,confirmProviderProps=_ref2.confirmProviderProps,preferences=_ref2.preferences,darkTheme=_ref2.darkTheme,lightTheme=_ref2.lightTheme,children=_ref2.children;return(0,_jsxRuntime.jsx)(_reactNativeSafeAreaContext.SafeAreaProvider,Object.assign({},safeAreaProviderProps,{children:(0,_jsxRuntime.jsx)(_LanguageProvider.LanguageProvider,{locale,children:(0,_jsxRuntime.jsx)(UIProviderWithLanguage,{actions,darkTheme,lightTheme,preferences,toastProviderProps,confirmProviderProps,children})})}))};try{UIProvider.displayName="UIProvider",UIProvider.__docgenInfo={description:"",displayName:"UIProvider",props:{locale:{defaultValue:null,description:"",name:"locale",required:!1,type:{name:"string"}},lightTheme:{defaultValue:null,description:"",name:"lightTheme",required:!1,type:{name:"AppTheme"}},darkTheme:{defaultValue:null,description:"",name:"darkTheme",required:!1,type:{name:"AppTheme"}},portalName:{defaultValue:{value:"modal"},description:"",name:"portalName",required:!1,type:{name:"string"}},preferences:{defaultValue:null,description:"",name:"preferences",required:!1,type:{name:'Partial>'}},actions:{defaultValue:null,description:"",name:"actions",required:!1,type:{name:"Partial"}},safeAreaProviderProps:{defaultValue:null,description:"",name:"safeAreaProviderProps",required:!1,type:{name:"SafeAreaProviderProps"}},toastProviderProps:{defaultValue:null,description:"",name:"toastProviderProps",required:!1,type:{name:'Partial>'}},confirmProviderProps:{defaultValue:null,description:"",name:"confirmProviderProps",required:!1,type:{name:'Partial>'}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/UIProvider.tsx#UIProvider"]={docgenInfo:UIProvider.__docgenInfo,name:"UIProvider",path:"src/providers/UIProvider.tsx#UIProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/settings/ThemeConfig/ThemeConfig.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ThemeConfig=void 0;var _react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ColorPicker=__webpack_require__("./src/components/Colors/ColorPicker/ColorPicker.tsx"),_LabelSwitch=__webpack_require__("./src/components/LabelSwitch/LabelSwitch.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ThemeConfig=exports.ThemeConfig=function ThemeConfig(_ref){var _ref$flexDirection=_ref.flexDirection,flexDirection=void 0===_ref$flexDirection?"row":_ref$flexDirection,colors=_ref.colors,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{backgroundColor:theme.colors.surface,display:"flex",flexWrap:"wrap",gap:theme.padding.s,padding:theme.padding.s,justifyContent:"center",alignItems:"center"}})}(theme)}),[theme]),_useThemePreferences=(0,_ThemeProvider.useThemePreferences)(),toggleDarkMode=_useThemePreferences.toggleDarkMode,setThemeColor=_useThemePreferences.setThemeColor,darkMode=_useThemePreferences.darkMode,i18n=(0,_reactI18next.useTranslation)().i18n;return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,{flexDirection}],children:[(0,_jsxRuntime.jsx)(_LabelSwitch.LabelSwitch,{label:"DarkMode",value:darkMode,onValueChange:toggleDarkMode}),(0,_jsxRuntime.jsx)(_ColorPicker.ColorPicker,{label:"Primary",color:theme.colors.primary,colorOptions:colors,onChange:function onChange(newColor){console.log(newColor)}}),(0,_jsxRuntime.jsx)(_ColorPicker.ColorPicker,{label:"Secondary",color:theme.colors.secondary,colorOptions:colors,onChange:function onChange(newColor){console.log(newColor),setThemeColor({name:"secondary",value:newColor})}}),(0,_jsxRuntime.jsx)(_reactNativePaper.SegmentedButtons,{value:i18n.language,onValueChange:function onValueChange(newLocale){newLocale!==i18n.language&&(console.log(`change language to ${newLocale}`,i18n),i18n.changeLanguage(newLocale))},buttons:[{label:"EN",value:"en"},{label:"FR",value:"fr"}]})]})};try{ThemeConfig.displayName="ThemeConfig",ThemeConfig.__docgenInfo={description:"",displayName:"ThemeConfig",props:{flexDirection:{defaultValue:{value:"row"},description:"",name:"flexDirection",required:!1,type:{name:"enum",value:[{value:'"row"'},{value:'"column"'}]}},colors:{defaultValue:null,description:"",name:"colors",required:!0,type:{name:"string[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/settings/ThemeConfig/ThemeConfig.tsx#ThemeConfig"]={docgenInfo:ThemeConfig.__docgenInfo,name:"ThemeConfig",path:"src/settings/ThemeConfig/ThemeConfig.tsx#ThemeConfig"})}catch(__react_docgen_typescript_loader_error){}},"./src/utils/logger.ts":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.baseLogger=void 0;var _reactNativeLogger=__webpack_require__("./node_modules/@siteed/react-native-logger/dist/logger.js");exports.baseLogger=(0,_reactNativeLogger.getLogger)("DesignSystem")},"./src/pages lazy recursive ^\\.\\/.*$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./Installation.mdx":["./src/pages/Installation.mdx",9684,9817],"./Introduction.mdx":["./src/pages/Introduction.mdx",9684,2429],"./Providers.mdx":["./src/pages/Providers.mdx",9684,1707]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src/pages lazy recursive ^\\.\\/.*$",module.exports=webpackAsyncContext},"./src lazy recursive ^\\.\\/.*$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./":["./src/index.ts",7,3880,7270,4702,2870,1478],"./_mocks/mock_data":["./src/_mocks/mock_data.tsx",9],"./_mocks/mock_data.tsx":["./src/_mocks/mock_data.tsx",9],"./components/Accordion/Accordion":["./src/components/Accordion/Accordion.tsx",9,8276],"./components/Accordion/Accordion.stories":["./src/components/Accordion/Accordion.stories.tsx",9,4383],"./components/Accordion/Accordion.stories.tsx":["./src/components/Accordion/Accordion.stories.tsx",9,4383],"./components/Accordion/Accordion.tsx":["./src/components/Accordion/Accordion.tsx",9,8276],"./components/Accordion/AccordionItem/AccordionItem":["./src/components/Accordion/AccordionItem/AccordionItem.tsx",9,3895],"./components/Accordion/AccordionItem/AccordionItem.stories":["./src/components/Accordion/AccordionItem/AccordionItem.stories.tsx",9,9764],"./components/Accordion/AccordionItem/AccordionItem.stories.tsx":["./src/components/Accordion/AccordionItem/AccordionItem.stories.tsx",9,9764],"./components/Accordion/AccordionItem/AccordionItem.tsx":["./src/components/Accordion/AccordionItem/AccordionItem.tsx",9,3895],"./components/Avatar/Avatar":["./src/components/Avatar/Avatar.tsx",9,7e3],"./components/Avatar/Avatar.tsx":["./src/components/Avatar/Avatar.tsx",9,7e3],"./components/Avatar/avatar.stories":["./src/components/Avatar/avatar.stories.tsx",9,3891],"./components/Avatar/avatar.stories.tsx":["./src/components/Avatar/avatar.stories.tsx",9,3891],"./components/Button/Button":["./src/components/Button/Button.tsx",9],"./components/Button/Button.stories":["./src/components/Button/Button.stories.tsx",9,9541],"./components/Button/Button.stories.tsx":["./src/components/Button/Button.stories.tsx",9,9541],"./components/Button/Button.styles":["./src/components/Button/Button.styles.ts",9,3888],"./components/Button/Button.styles.ts":["./src/components/Button/Button.styles.ts",9,3888],"./components/Button/Button.test":["./src/components/Button/Button.test.tsx",7,3880,1202,8654],"./components/Button/Button.test.tsx":["./src/components/Button/Button.test.tsx",7,3880,1202,8654],"./components/Button/Button.tsx":["./src/components/Button/Button.tsx",9],"./components/Button/__snapshots__/Button.test.tsx.snap":["./src/components/Button/__snapshots__/Button.test.tsx.snap",7,2758],"./components/Colors/ColorItem/ColorItem":["./src/components/Colors/ColorItem/ColorItem.tsx",9,2653],"./components/Colors/ColorItem/ColorItem.stories":["./src/components/Colors/ColorItem/ColorItem.stories.tsx",9,8782],"./components/Colors/ColorItem/ColorItem.stories.tsx":["./src/components/Colors/ColorItem/ColorItem.stories.tsx",9,8782],"./components/Colors/ColorItem/ColorItem.tsx":["./src/components/Colors/ColorItem/ColorItem.tsx",9,2653],"./components/Colors/ColorPicker/ColorPicker":["./src/components/Colors/ColorPicker/ColorPicker.tsx",9],"./components/Colors/ColorPicker/ColorPicker.stories":["./src/components/Colors/ColorPicker/ColorPicker.stories.tsx",9,3154],"./components/Colors/ColorPicker/ColorPicker.stories.tsx":["./src/components/Colors/ColorPicker/ColorPicker.stories.tsx",9,3154],"./components/Colors/ColorPicker/ColorPicker.tsx":["./src/components/Colors/ColorPicker/ColorPicker.tsx",9],"./components/ConfirmDialog/ConfirmDialog":["./src/components/ConfirmDialog/ConfirmDialog.tsx",9],"./components/ConfirmDialog/ConfirmDialog.stories":["./src/components/ConfirmDialog/ConfirmDialog.stories.tsx",9,2819],"./components/ConfirmDialog/ConfirmDialog.stories.tsx":["./src/components/ConfirmDialog/ConfirmDialog.stories.tsx",9,2819],"./components/ConfirmDialog/ConfirmDialog.tsx":["./src/components/ConfirmDialog/ConfirmDialog.tsx",9],"./components/Divider/Divider":["./src/components/Divider/Divider.tsx",9,7228],"./components/Divider/Divider.tsx":["./src/components/Divider/Divider.tsx",9,7228],"./components/DynInput/DynInput":["./src/components/DynInput/DynInput.tsx",9],"./components/DynInput/DynInput.mdx":["./src/components/DynInput/DynInput.mdx",9,5604],"./components/DynInput/DynInput.stories":["./src/components/DynInput/DynInput.stories.tsx",9,3499],"./components/DynInput/DynInput.stories.tsx":["./src/components/DynInput/DynInput.stories.tsx",9,3499],"./components/DynInput/DynInput.tsx":["./src/components/DynInput/DynInput.tsx",9],"./components/EditableInfoCard/EditableInfoCard":["./src/components/EditableInfoCard/EditableInfoCard.tsx",9,4618],"./components/EditableInfoCard/EditableInfoCard.stories":["./src/components/EditableInfoCard/EditableInfoCard.stories.tsx",9,411,6385],"./components/EditableInfoCard/EditableInfoCard.stories.tsx":["./src/components/EditableInfoCard/EditableInfoCard.stories.tsx",9,411,6385],"./components/EditableInfoCard/EditableInfoCard.tsx":["./src/components/EditableInfoCard/EditableInfoCard.tsx",9,4618],"./components/Empty/Empty":["./src/components/Empty/Empty.tsx",9,5580],"./components/Empty/Empty.stories":["./src/components/Empty/Empty.stories.tsx",9,3047],"./components/Empty/Empty.stories.tsx":["./src/components/Empty/Empty.stories.tsx",9,3047],"./components/Empty/Empty.tsx":["./src/components/Empty/Empty.tsx",9,5580],"./components/FAB/FABGroup":["./src/components/FAB/FABGroup.tsx",9,4983],"./components/FAB/FABGroup.tsx":["./src/components/FAB/FABGroup.tsx",9,4983],"./components/FAB/utils":["./src/components/FAB/utils.ts",9,560],"./components/FAB/utils.ts":["./src/components/FAB/utils.ts",9,560],"./components/HelperText/HelperText":["./src/components/HelperText/HelperText.tsx",9,868],"./components/HelperText/HelperText.stories":["./src/components/HelperText/HelperText.stories.tsx",9,9287],"./components/HelperText/HelperText.stories.tsx":["./src/components/HelperText/HelperText.stories.tsx",9,9287],"./components/HelperText/HelperText.tsx":["./src/components/HelperText/HelperText.tsx",9,868],"./components/HelperWrapper/HelperWrapper":["./src/components/HelperWrapper/HelperWrapper.tsx",9,1372],"./components/HelperWrapper/HelperWrapper.stories":["./src/components/HelperWrapper/HelperWrapper.stories.tsx",9,3880,7270,4702,2870,1478,7535],"./components/HelperWrapper/HelperWrapper.stories.tsx":["./src/components/HelperWrapper/HelperWrapper.stories.tsx",9,3880,7270,4702,2870,1478,7535],"./components/HelperWrapper/HelperWrapper.tsx":["./src/components/HelperWrapper/HelperWrapper.tsx",9,1372],"./components/LabelSwitch/LabelSwitch":["./src/components/LabelSwitch/LabelSwitch.tsx",9],"./components/LabelSwitch/LabelSwitch.stories":["./src/components/LabelSwitch/LabelSwitch.stories.tsx",9,1027],"./components/LabelSwitch/LabelSwitch.stories.tsx":["./src/components/LabelSwitch/LabelSwitch.stories.tsx",9,1027],"./components/LabelSwitch/LabelSwitch.tsx":["./src/components/LabelSwitch/LabelSwitch.tsx",9],"./components/ListItem/ListItem":["./src/components/ListItem/ListItem.tsx",9,7596],"./components/ListItem/ListItem.stories":["./src/components/ListItem/ListItem.stories.tsx",9,6119],"./components/ListItem/ListItem.stories.tsx":["./src/components/ListItem/ListItem.stories.tsx",9,6119],"./components/ListItem/ListItem.tsx":["./src/components/ListItem/ListItem.tsx",9,7596],"./components/LockInput/LockInput":["./src/components/LockInput/LockInput.tsx",9,2076],"./components/LockInput/LockInput.stories":["./src/components/LockInput/LockInput.stories.tsx",9,5428],"./components/LockInput/LockInput.stories.tsx":["./src/components/LockInput/LockInput.stories.tsx",9,5428],"./components/LockInput/LockInput.tsx":["./src/components/LockInput/LockInput.tsx",9,2076],"./components/Notice/Notice":["./src/components/Notice/Notice.tsx",9,5838],"./components/Notice/Notice.stories":["./src/components/Notice/Notice.stories.tsx",9,7445],"./components/Notice/Notice.stories.tsx":["./src/components/Notice/Notice.stories.tsx",9,7445],"./components/Notice/Notice.tsx":["./src/components/Notice/Notice.tsx",9,5838],"./components/NumberAdjuster/NumberAdjuster":["./src/components/NumberAdjuster/NumberAdjuster.tsx",9,6040],"./components/NumberAdjuster/NumberAdjuster.stories":["./src/components/NumberAdjuster/NumberAdjuster.stories.tsx",9,3443],"./components/NumberAdjuster/NumberAdjuster.stories.tsx":["./src/components/NumberAdjuster/NumberAdjuster.stories.tsx",9,3443],"./components/NumberAdjuster/NumberAdjuster.tsx":["./src/components/NumberAdjuster/NumberAdjuster.tsx",9,6040],"./components/Pagination/Pagination":["./src/components/Pagination/Pagination.tsx",9,3610],"./components/Pagination/Pagination.stories":["./src/components/Pagination/Pagination.stories.tsx",9,6945],"./components/Pagination/Pagination.stories.tsx":["./src/components/Pagination/Pagination.stories.tsx",9,6945],"./components/Pagination/Pagination.tsx":["./src/components/Pagination/Pagination.tsx",9,3610],"./components/Pagination/PaginationItem":["./src/components/Pagination/PaginationItem.tsx",9,7123],"./components/Pagination/PaginationItem.stories":["./src/components/Pagination/PaginationItem.stories.tsx",9,4396],"./components/Pagination/PaginationItem.stories.tsx":["./src/components/Pagination/PaginationItem.stories.tsx",9,4396],"./components/Pagination/PaginationItem.tsx":["./src/components/Pagination/PaginationItem.tsx",9,7123],"./components/Picker/Picker":["./src/components/Picker/Picker.tsx",9,2870],"./components/Picker/Picker.stories":["./src/components/Picker/Picker.stories.tsx",9,2870,1357],"./components/Picker/Picker.stories.tsx":["./src/components/Picker/Picker.stories.tsx",9,2870,1357],"./components/Picker/Picker.tsx":["./src/components/Picker/Picker.tsx",9,2870],"./components/Picker/PickerContent":["./src/components/Picker/PickerContent.tsx",9,1607],"./components/Picker/PickerContent.tsx":["./src/components/Picker/PickerContent.tsx",9,1607],"./components/RefreshControl/Loader":["./src/components/RefreshControl/Loader.tsx",9,7115],"./components/RefreshControl/Loader.tsx":["./src/components/RefreshControl/Loader.tsx",9,7115],"./components/RefreshControl/RefreshControl":["./src/components/RefreshControl/RefreshControl.tsx",9,4702],"./components/RefreshControl/RefreshControl.stories":["./src/components/RefreshControl/RefreshControl.stories.tsx",9,4702,3885],"./components/RefreshControl/RefreshControl.stories.tsx":["./src/components/RefreshControl/RefreshControl.stories.tsx",9,4702,3885],"./components/RefreshControl/RefreshControl.tsx":["./src/components/RefreshControl/RefreshControl.tsx",9,4702],"./components/Result/Result":["./src/components/Result/Result.tsx",9,7424],"./components/Result/Result.stories":["./src/components/Result/Result.stories.tsx",9,4267],"./components/Result/Result.stories.tsx":["./src/components/Result/Result.stories.tsx",9,4267],"./components/Result/Result.tsx":["./src/components/Result/Result.tsx",9,7424],"./components/ScreenWrapper/ScreenWrapper":["./src/components/ScreenWrapper/ScreenWrapper.tsx",9],"./components/ScreenWrapper/ScreenWrapper.stories":["./src/components/ScreenWrapper/ScreenWrapper.stories.tsx",9,4103],"./components/ScreenWrapper/ScreenWrapper.stories.tsx":["./src/components/ScreenWrapper/ScreenWrapper.stories.tsx",9,4103],"./components/ScreenWrapper/ScreenWrapper.tsx":["./src/components/ScreenWrapper/ScreenWrapper.tsx",9],"./components/SelectButtons/SelectButtons":["./src/components/SelectButtons/SelectButtons.tsx",9],"./components/SelectButtons/SelectButtons.stories":["./src/components/SelectButtons/SelectButtons.stories.tsx",9,3535],"./components/SelectButtons/SelectButtons.stories.tsx":["./src/components/SelectButtons/SelectButtons.stories.tsx",9,3535],"./components/SelectButtons/SelectButtons.tsx":["./src/components/SelectButtons/SelectButtons.tsx",9],"./components/SelectItems/SelectItems":["./src/components/SelectItems/SelectItems.tsx",9,4680],"./components/SelectItems/SelectItems.tsx":["./src/components/SelectItems/SelectItems.tsx",9,4680],"./components/SelectItems/SelectItemsstories":["./src/components/SelectItems/SelectItemsstories.tsx",9,4085],"./components/SelectItems/SelectItemsstories.tsx":["./src/components/SelectItems/SelectItemsstories.tsx",9,4085],"./components/Skeleton/LoadingPulseBar/LoadingPulseBar":["./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx",9,1336],"./components/Skeleton/LoadingPulseBar/LoadingPulseBar.stories":["./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.stories.tsx",9,843],"./components/Skeleton/LoadingPulseBar/LoadingPulseBar.stories.tsx":["./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.stories.tsx",9,843],"./components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx":["./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx",9,1336],"./components/Skeleton/LoadingPulseCircle/LoadingPulseCircle":["./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx",9,7036],"./components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.stories":["./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.stories.tsx",9,1863],"./components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.stories.tsx":["./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.stories.tsx",9,1863],"./components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx":["./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx",9,7036],"./components/Skeleton/Skeleton":["./src/components/Skeleton/Skeleton.tsx",9,8908],"./components/Skeleton/Skeleton.stories":["./src/components/Skeleton/Skeleton.stories.tsx",9,8023],"./components/Skeleton/Skeleton.stories.tsx":["./src/components/Skeleton/Skeleton.stories.tsx",9,8023],"./components/Skeleton/Skeleton.tsx":["./src/components/Skeleton/Skeleton.tsx",9,8908],"./components/Slider/Slider":["./src/components/Slider/Slider.tsx",9,3880,7270,4800],"./components/Slider/Slider.stories":["./src/components/Slider/Slider.stories.tsx",9,3880,7270,9235],"./components/Slider/Slider.stories.tsx":["./src/components/Slider/Slider.stories.tsx",9,3880,7270,9235],"./components/Slider/Slider.tsx":["./src/components/Slider/Slider.tsx",9,3880,7270,4800],"./components/Spacer/Spacer":["./src/components/Spacer/Spacer.tsx",9,6786],"./components/Spacer/Spacer.tsx":["./src/components/Spacer/Spacer.tsx",9,6786],"./components/TextInput/TextInput":["./src/components/TextInput/TextInput.tsx",9],"./components/TextInput/TextInput.stories":["./src/components/TextInput/TextInput.stories.tsx",9,5491],"./components/TextInput/TextInput.stories.tsx":["./src/components/TextInput/TextInput.stories.tsx",9,5491],"./components/TextInput/TextInput.tsx":["./src/components/TextInput/TextInput.tsx",9],"./components/ThemedView/ThemedView":["./src/components/ThemedView/ThemedView.tsx",9,5346],"./components/ThemedView/ThemedView.stories":["./src/components/ThemedView/ThemedView.stories.tsx",9,1625],"./components/ThemedView/ThemedView.stories.tsx":["./src/components/ThemedView/ThemedView.stories.tsx",9,1625],"./components/ThemedView/ThemedView.tsx":["./src/components/ThemedView/ThemedView.tsx",9,5346],"./components/Toast/Toast":["./src/components/Toast/Toast.tsx",9],"./components/Toast/Toast.stories":["./src/components/Toast/Toast.stories.tsx",9,5543],"./components/Toast/Toast.stories.tsx":["./src/components/Toast/Toast.stories.tsx",9,5543],"./components/Toast/Toast.tsx":["./src/components/Toast/Toast.tsx",9],"./components/bottom-modal/CustomBackdrop/CustomBackdrop":["./src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx",9,8140],"./components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx":["./src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx",9,8140],"./components/bottom-modal/footers/ConfirmCancelFooter":["./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx",9],"./components/bottom-modal/footers/ConfirmCancelFooter.stories":["./src/components/bottom-modal/footers/ConfirmCancelFooter.stories.tsx",9,7340],"./components/bottom-modal/footers/ConfirmCancelFooter.stories.tsx":["./src/components/bottom-modal/footers/ConfirmCancelFooter.stories.tsx",9,7340],"./components/bottom-modal/footers/ConfirmCancelFooter.tsx":["./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx",9],"./components/bottom-modal/handlers/LabelHandler":["./src/components/bottom-modal/handlers/LabelHandler.tsx",9],"./components/bottom-modal/handlers/LabelHandler.stories":["./src/components/bottom-modal/handlers/LabelHandler.stories.tsx",9,6510],"./components/bottom-modal/handlers/LabelHandler.stories.tsx":["./src/components/bottom-modal/handlers/LabelHandler.stories.tsx",9,6510],"./components/bottom-modal/handlers/LabelHandler.tsx":["./src/components/bottom-modal/handlers/LabelHandler.tsx",9],"./hooks/_useAppPreferencesSetup":["./src/hooks/_useAppPreferencesSetup.tsx",9],"./hooks/_useAppPreferencesSetup.tsx":["./src/hooks/_useAppPreferencesSetup.tsx",9],"./hooks/_useAppThemeSetup":["./src/hooks/_useAppThemeSetup.tsx",9],"./hooks/_useAppThemeSetup.tsx":["./src/hooks/_useAppThemeSetup.tsx",9],"./hooks/useConfirm/useConfirm":["./src/hooks/useConfirm/useConfirm.tsx",9,6022],"./hooks/useConfirm/useConfirm.mdx":["./src/hooks/useConfirm/useConfirm.mdx",9,9684,2268],"./hooks/useConfirm/useConfirm.tsx":["./src/hooks/useConfirm/useConfirm.tsx",9,6022],"./hooks/useModal/editProps.stories":["./src/hooks/useModal/editProps.stories.tsx",9,1391],"./hooks/useModal/editProps.stories.tsx":["./src/hooks/useModal/editProps.stories.tsx",9,1391],"./hooks/useModal/openDrawer.stories":["./src/hooks/useModal/openDrawer.stories.tsx",9,8308],"./hooks/useModal/openDrawer.stories.tsx":["./src/hooks/useModal/openDrawer.stories.tsx",9,8308],"./hooks/useModal/openModal.stories":["./src/hooks/useModal/openModal.stories.tsx",9,4806],"./hooks/useModal/openModal.stories.tsx":["./src/hooks/useModal/openModal.stories.tsx",9,4806],"./hooks/useModal/useModal":["./src/hooks/useModal/useModal.tsx",9],"./hooks/useModal/useModal.mdx":["./src/hooks/useModal/useModal.mdx",9,9684,2122],"./hooks/useModal/useModal.tsx":["./src/hooks/useModal/useModal.tsx",9],"./hooks/useScreenWidth":["./src/hooks/useScreenWidth.tsx",9],"./hooks/useScreenWidth.mdx":["./src/hooks/useScreenWidth.mdx",9,9684,8186],"./hooks/useScreenWidth.tsx":["./src/hooks/useScreenWidth.tsx",9],"./hooks/useToast/useToast":["./src/hooks/useToast/useToast.tsx",9,4464],"./hooks/useToast/useToast.mdx":["./src/hooks/useToast/useToast.mdx",9,9684,834],"./hooks/useToast/useToast.stories":["./src/hooks/useToast/useToast.stories.tsx",9,95],"./hooks/useToast/useToast.stories.tsx":["./src/hooks/useToast/useToast.stories.tsx",9,95],"./hooks/useToast/useToast.tsx":["./src/hooks/useToast/useToast.tsx",9,4464],"./index":["./src/index.ts",7,3880,7270,4702,2870,1478],"./index.ts":["./src/index.ts",7,3880,7270,4702,2870,1478],"./pages/Installation.mdx":["./src/pages/Installation.mdx",9,9684,9817],"./pages/Introduction.mdx":["./src/pages/Introduction.mdx",9,9684,2429],"./pages/Providers.mdx":["./src/pages/Providers.mdx",9,9684,1707],"./providers/BottomSheetProvider":["./src/providers/BottomSheetProvider.tsx",9],"./providers/BottomSheetProvider.tsx":["./src/providers/BottomSheetProvider.tsx",9],"./providers/ConfirmProvider":["./src/providers/ConfirmProvider.tsx",9],"./providers/ConfirmProvider.tsx":["./src/providers/ConfirmProvider.tsx",9],"./providers/LanguageProvider":["./src/providers/LanguageProvider.tsx",9],"./providers/LanguageProvider.tsx":["./src/providers/LanguageProvider.tsx",9],"./providers/ModalProvider":["./src/providers/ModalProvider.tsx",9],"./providers/ModalProvider.tsx":["./src/providers/ModalProvider.tsx",9],"./providers/OverlayProvider":["./src/providers/OverlayProvider.tsx",9],"./providers/OverlayProvider.tsx":["./src/providers/OverlayProvider.tsx",9],"./providers/ThemeProvider":["./src/providers/ThemeProvider.tsx",9],"./providers/ThemeProvider.tsx":["./src/providers/ThemeProvider.tsx",9],"./providers/ToastProvider":["./src/providers/ToastProvider.tsx",9],"./providers/ToastProvider.tsx":["./src/providers/ToastProvider.tsx",9],"./providers/UIProvider":["./src/providers/UIProvider.tsx",9],"./providers/UIProvider.tsx":["./src/providers/UIProvider.tsx",9],"./settings/ThemeConfig/ThemeConfig":["./src/settings/ThemeConfig/ThemeConfig.tsx",9],"./settings/ThemeConfig/ThemeConfig.stories":["./src/settings/ThemeConfig/ThemeConfig.stories.tsx",9,3784],"./settings/ThemeConfig/ThemeConfig.stories.tsx":["./src/settings/ThemeConfig/ThemeConfig.stories.tsx",9,3784],"./settings/ThemeConfig/ThemeConfig.tsx":["./src/settings/ThemeConfig/ThemeConfig.tsx",9],"./settings/ThemeViewer/ThemeViewer":["./src/settings/ThemeViewer/ThemeViewer.tsx",9,5479],"./settings/ThemeViewer/ThemeViewer.stories":["./src/settings/ThemeViewer/ThemeViewer.stories.tsx",9,2328],"./settings/ThemeViewer/ThemeViewer.stories.tsx":["./src/settings/ThemeViewer/ThemeViewer.stories.tsx",9,2328],"./settings/ThemeViewer/ThemeViewer.tsx":["./src/settings/ThemeViewer/ThemeViewer.tsx",9,5479],"./tests/TestModals/TestModals":["./src/tests/TestModals/TestModals.tsx",9,2411],"./tests/TestModals/TestModals.stories":["./src/tests/TestModals/TestModals.stories.tsx",9,2808],"./tests/TestModals/TestModals.stories.tsx":["./src/tests/TestModals/TestModals.stories.tsx",9,2808],"./tests/TestModals/TestModals.tsx":["./src/tests/TestModals/TestModals.tsx",9,2411],"./utils/logger":["./src/utils/logger.ts",9],"./utils/logger.ts":["./src/utils/logger.ts",9]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(2).map(__webpack_require__.e)).then((()=>__webpack_require__.t(id,16|ids[1])))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src lazy recursive ^\\.\\/.*$",module.exports=webpackAsyncContext},"storybook/internal/channels":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/preview-errors":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/internal/core-events":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":module=>{"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/internal/preview-api":module=>{"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__},"?5230":()=>{}},__webpack_require__=>{__webpack_require__.O(0,[3918],(()=>{return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]); \ No newline at end of file +(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[8792],{"./node_modules/@storybook/instrumenter/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/instrumenter/dist sync recursive",module.exports=webpackEmptyContext},"./node_modules/@storybook/test/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/test/dist sync recursive",module.exports=webpackEmptyContext},"./storybook-config-entry.js":(__unused_webpack_module,__unused_webpack_exports,__webpack_require__)=>{var _global=__webpack_require__("@storybook/global"),_previewApi=__webpack_require__("storybook/internal/preview-api"),_channels=__webpack_require__("storybook/internal/channels"),_storybookStories=__webpack_require__("./storybook-stories.js"),channel=(0,_channels.createBrowserChannel)({page:"preview"});_previewApi.addons.setChannel(channel),"DEVELOPMENT"===_global.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);var preview=new _previewApi.PreviewWeb(_storybookStories.importFn,(function getProjectAnnotations(){return(0,_previewApi.composeConfigs)([__webpack_require__("./node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/@storybook/addon-links/preview.js"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/docs/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/actions/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/backgrounds/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/viewport/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/measure/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/outline/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-essentials/dist/highlight/preview.mjs"),__webpack_require__("./node_modules/@storybook/addon-interactions/preview.js"),__webpack_require__("./.storybook/preview.tsx")])}));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"./storybook-stories.js":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.importFn=function importFn(_x6){return _importFn.apply(this,arguments)};var _ref5,_ref4,_ref3,_ref2,_ref,_asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),pipeline=function pipeline(x){return x()},importers=[(_ref=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src\/pages\/Introduction\.mdx)$/.exec(path)){var pathRemainder=path.substring(12);return __webpack_require__("./src/pages lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x){return _ref.apply(this,arguments)}),(_ref2=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src\/pages\/Installation\.mdx)$/.exec(path)){var pathRemainder=path.substring(12);return __webpack_require__("./src/pages lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x2){return _ref2.apply(this,arguments)}),(_ref3=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src\/pages\/Providers\.mdx)$/.exec(path)){var pathRemainder=path.substring(12);return __webpack_require__("./src/pages lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x3){return _ref3.apply(this,arguments)}),(_ref4=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.mdx)$/.exec(path)){var pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x4){return _ref4.apply(this,arguments)}),(_ref5=(0,_asyncToGenerator2.default)((function*(path){if(/^\.[\\/](?:src(?:\/(?!\.)(?:(?:(?!(?:^|\/)\.).)*?)\/|\/|$)(?!\.)(?=.)[^/]*?\.stories\.(js|jsx|mjs|ts|tsx))$/.exec(path)){var pathRemainder=path.substring(6);return __webpack_require__("./src lazy recursive ^\\.\\/.*$")("./"+pathRemainder)}})),function(_x5){return _ref5.apply(this,arguments)})];function _importFn(){return(_importFn=(0,_asyncToGenerator2.default)((function*(path){for(var _ret,_loop=function*_loop(i){var moduleExports=yield pipeline((function(){return importers[i](path)}));if(moduleExports)return{v:moduleExports}},i=0;i{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.decorators=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_ScrollView=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/ScrollView/index.js")),_mock_data=__webpack_require__("./src/_mocks/mock_data.tsx"),_ScreenWrapper=__webpack_require__("./src/components/ScreenWrapper/ScreenWrapper.tsx"),_UIProvider=__webpack_require__("./src/providers/UIProvider.tsx"),_ThemeConfig=__webpack_require__("./src/settings/ThemeConfig/ThemeConfig.tsx"),_reactNativeLogger=__webpack_require__("./node_modules/@siteed/react-native-logger/dist/logger.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),colors=_mock_data.colorOptions.map((function(colorOption){return colorOption.value}));(0,_reactNativeLogger.setLoggerConfig)({namespaces:"*"});exports.decorators=[function(StoryFn){return console.log("preview init decorators"),(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:["web"===_Platform.default.OS?(0,_jsxRuntime.jsx)("style",{type:"text/css",children:`\n @font-face {\n font-family: 'MaterialCommunityIcons';\n src: url(${__webpack_require__("./node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf")}) format('truetype');\n }\n `}):null,(0,_jsxRuntime.jsx)(_UIProvider.UIProvider,{locale:"en",children:(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[(0,_jsxRuntime.jsx)(_ScrollView.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,children:(0,_jsxRuntime.jsx)(_ThemeConfig.ThemeConfig,{flexDirection:"row",colors})}),(0,_jsxRuntime.jsx)(_ScreenWrapper.ScreenWrapper,{style:{minHeight:300,padding:8},children:(0,_jsxRuntime.jsx)(StoryFn,{})})]})})]})}],exports.default={parameters:{docs:{toc:!0},controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}},tags:["autodocs"]}},"./src/_mocks/mock_data.tsx":(__unused_webpack_module,exports)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.randomSelectValues=exports.colors=exports.colorOptions=void 0;exports.randomSelectValues=Array.from({length:20},(function(_,i){return{label:`label ${i}`,value:`val${i}`}}));var colors=exports.colors=["#fbc02d","#663399","#ffa000","#1976d2","#689f38"];exports.colorOptions=colors.map((function(color){return{label:color,value:color}}))},"./src/components/Button/Button.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.Button=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Button=exports.Button=function Button(props){return(0,_jsxRuntime.jsx)(_reactNativePaper.Button,Object.assign({},props))};try{Button.displayName="Button",Button.__docgenInfo={description:"",displayName:"Button",props:{theme:{defaultValue:null,description:"@optional\n@optional",name:"theme",required:!1,type:{name:"ThemeProp"}},elevation:{defaultValue:null,description:"@supported Available in v5.x with theme version 3\nChanges shadows and background on iOS and Android.\nUsed to create UI hierarchy between components.\n\nNote: If `mode` is set to `flat`, Surface doesn't have a shadow.\n\nNote: In version 2 the `elevation` prop was accepted via `style` prop i.e. `style={{ elevation: 4 }}`.\nIt's no longer supported with theme version 3 and you should use `elevation` property instead.",name:"elevation",required:!1,type:{name:"Elevation"}},mode:{defaultValue:null,description:"Mode of the button. You can change the mode to adjust the styling to give it desired emphasis.\n- `text` - flat button without background or outline, used for the lowest priority actions, especially when presenting multiple options.\n- `outlined` - button with an outline without background, typically used for important, but not primary action – represents medium emphasis.\n- `contained` - button with a background color, used for important action, have the most visual impact and high emphasis.\n- `elevated` - button with a background color and elevation, used when absolutely necessary e.g. button requires visual separation from a patterned background.\n@supported Available in v5.x with theme version 3\n- `contained-tonal` - button with a secondary background color, an alternative middle ground between contained and outlined buttons.\n@supported Available in v5.x with theme version 3",name:"mode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},dark:{defaultValue:null,description:"Whether the color is a dark color. A dark button will render light text and vice-versa. Only applicable for:\n * `contained` mode for theme version 2\n * `contained`, `contained-tonal` and `elevated` modes for theme version 3.",name:"dark",required:!1,type:{name:"boolean"}},compact:{defaultValue:null,description:"Use a compact look, useful for `text` buttons in a row.",name:"compact",required:!1,type:{name:"boolean"}},color:{defaultValue:null,description:"@deprecated Deprecated in v5.x - use `buttonColor` or `textColor` instead.\nCustom text color for flat button, or background color for contained button.",name:"color",required:!1,type:{name:"string"}},buttonColor:{defaultValue:null,description:"Custom button's background color.",name:"buttonColor",required:!1,type:{name:"string"}},textColor:{defaultValue:null,description:"Custom button's text color.",name:"textColor",required:!1,type:{name:"string"}},rippleColor:{defaultValue:null,description:"Color of the ripple effect.",name:"rippleColor",required:!1,type:{name:"ColorValue"}},loading:{defaultValue:null,description:"Whether to show a loading indicator.",name:"loading",required:!1,type:{name:"boolean"}},icon:{defaultValue:null,description:"Icon to display for the `Button`.",name:"icon",required:!1,type:{name:"IconSource"}},disabled:{defaultValue:null,description:"Whether the button is disabled. A disabled button is greyed out and `onPress` is not called on touch.",name:"disabled",required:!1,type:{name:"boolean"}},uppercase:{defaultValue:null,description:"Make the label text uppercased. Note that this won't work if you pass React elements as children.",name:"uppercase",required:!1,type:{name:"boolean"}},background:{defaultValue:null,description:"Type of background drawabale to display the feedback (Android).\nhttps://reactnative.dev/docs/pressable#rippleconfig",name:"background",required:!1,type:{name:"PressableAndroidRippleConfig"}},onPress:{defaultValue:null,description:"Function to execute on press.",name:"onPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onPressIn:{defaultValue:null,description:"Function to execute as soon as the touchable element is pressed and invoked even before onPress.",name:"onPressIn",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onPressOut:{defaultValue:null,description:"Function to execute as soon as the touch is released even before onPress.",name:"onPressOut",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onLongPress:{defaultValue:null,description:"Function to execute on long press.",name:"onLongPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},delayLongPress:{defaultValue:null,description:"The number of milliseconds a user must touch the element before executing `onLongPress`.",name:"delayLongPress",required:!1,type:{name:"number"}},contentStyle:{defaultValue:null,description:"Style of button's inner content.\nUse this prop to apply custom height and width and to set the icon on the right with `flexDirection: 'row-reverse'`.",name:"contentStyle",required:!1,type:{name:"StyleProp"}},maxFontSizeMultiplier:{defaultValue:null,description:"Specifies the largest possible scale a text font can reach.",name:"maxFontSizeMultiplier",required:!1,type:{name:"number"}},labelStyle:{defaultValue:null,description:"Style for the button text.",name:"labelStyle",required:!1,type:{name:"StyleProp"}},touchableRef:{defaultValue:null,description:"Reference for the touchable",name:"touchableRef",required:!1,type:{name:"RefObject"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Button/Button.tsx#Button"]={docgenInfo:Button.__docgenInfo,name:"Button",path:"src/components/Button/Button.tsx#Button"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Colors/ColorPicker/ColorPicker.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ColorPicker=void 0;var _asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Pressable=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Pressable/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_useModal2=__webpack_require__("./src/hooks/useModal/useModal.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ColorPicker=exports.ColorPicker=function ColorPicker(_ref){var label=_ref.label,color=_ref.color,onChange=_ref.onChange,_ref$colorOptions=_ref.colorOptions,colorOptions=void 0===_ref$colorOptions?[color]:_ref$colorOptions,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{backgroundColor:theme.colors.surface,display:"flex",gap:10,flexDirection:"row",alignItems:"center",justifyContent:"center"},colorPreview:{width:30,height:30}})}(theme)}),[theme]),_React$useState=_react.default.useState(color),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),activeColor=_React$useState2[0],setActiveColor=_React$useState2[1],editProp=(0,_useModal2.useModal)().editProp;(0,_react.useEffect)((function(){setActiveColor(color)}),[color]);var _ref2,handlePress=(_ref2=(0,_asyncToGenerator2.default)((function*(){var data=colorOptions.map((function(colorOption){return{label:colorOption,value:colorOption,selected:colorOption===activeColor}})),selectedColor=yield editProp({data,inputType:"select-button",multiSelect:!1,showFooter:!1});setActiveColor(selectedColor.value),null==onChange||onChange(selectedColor.value)})),function handlePress(){return _ref2.apply(this,arguments)});return(0,_jsxRuntime.jsxs)(_Pressable.default,{style:styles.container,onPress:handlePress,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{children:label}),(0,_jsxRuntime.jsx)(_View.default,{style:[styles.colorPreview,{backgroundColor:activeColor}]})]})};try{ColorPicker.displayName="ColorPicker",ColorPicker.__docgenInfo={description:"",displayName:"ColorPicker",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},color:{defaultValue:null,description:"",name:"color",required:!0,type:{name:"string"}},colorOptions:{defaultValue:{value:"[color]"},description:"",name:"colorOptions",required:!1,type:{name:"string[]"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((color: string) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Colors/ColorPicker/ColorPicker.tsx#ColorPicker"]={docgenInfo:ColorPicker.__docgenInfo,name:"ColorPicker",path:"src/components/Colors/ColorPicker/ColorPicker.tsx#ColorPicker"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/ConfirmDialog/ConfirmDialog.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfirmDialog=void 0;var _react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ConfirmDialog=exports.ConfirmDialog=function ConfirmDialog(_ref){var title=_ref.title,notice=_ref.notice,_ref$confirmLabel=_ref.confirmLabel,confirmLabel=void 0===_ref$confirmLabel?"Yes":_ref$confirmLabel,_ref$cancelLabel=_ref.cancelLabel,cancelLabel=void 0===_ref$cancelLabel?"No":_ref$cancelLabel,onConfirm=_ref.onConfirm,onCancel=_ref.onCancel,style=_ref.style,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_){return _StyleSheet.default.create({container:{}})}()}),[theme]);return(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog,{style:[styles.container,style],visible:!0,onDismiss:onCancel,children:[(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog.Content,{children:[(0,_jsxRuntime.jsx)(_Text.default,{children:title}),notice&&(0,_jsxRuntime.jsx)(_Text.default,{children:notice})]}),(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog.Actions,{children:[(0,_jsxRuntime.jsx)(_Button.Button,{onPress:onConfirm,children:confirmLabel}),(0,_jsxRuntime.jsx)(_Button.Button,{onPress:onCancel,children:cancelLabel})]})]})};try{ConfirmDialog.displayName="ConfirmDialog",ConfirmDialog.__docgenInfo={description:"",displayName:"ConfirmDialog",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},notice:{defaultValue:null,description:"",name:"notice",required:!1,type:{name:"string"}},confirmLabel:{defaultValue:{value:"Yes"},description:"",name:"confirmLabel",required:!1,type:{name:"string"}},cancelLabel:{defaultValue:{value:"No"},description:"",name:"cancelLabel",required:!1,type:{name:"string"}},onConfirm:{defaultValue:null,description:"",name:"onConfirm",required:!0,type:{name:"() => void"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!0,type:{name:"() => void"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"ViewStyle"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ConfirmDialog/ConfirmDialog.tsx#ConfirmDialog"]={docgenInfo:ConfirmDialog.__docgenInfo,name:"ConfirmDialog",path:"src/components/ConfirmDialog/ConfirmDialog.tsx#ConfirmDialog"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/DynInput/DynInput.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.DynInput=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_portal=__webpack_require__("./node_modules/@gorhom/portal/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_reactNativePaperDates=__webpack_require__("./node_modules/react-native-paper-dates/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_logger=__webpack_require__("./src/utils/logger.ts"),_SelectButtons=__webpack_require__("./src/components/SelectButtons/SelectButtons.tsx"),_TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var logger=_logger.baseLogger.extend("DynInput"),DynInput=exports.DynInput=function DynInput(_ref){var data=_ref.data,min=_ref.min,max=_ref.max,multiSelect=_ref.multiSelect,inputType=_ref.inputType,showSearch=_ref.showSearch,_ref$showFooter=_ref.showFooter,showFooter=void 0===_ref$showFooter||_ref$showFooter,label=_ref.label,numberOfLines=_ref.numberOfLines,autoFocus=_ref.autoFocus,customRender=_ref.customRender,onCancel=_ref.onCancel,onFinish=_ref.onFinish,onChange=_ref.onChange,selectTextOnFocus=_ref.selectTextOnFocus,finishOnEnter=_ref.finishOnEnter,cancelOnEscape=_ref.cancelOnEscape,_ref$initiallyOpen=_ref.initiallyOpen,initiallyOpen=void 0!==_ref$initiallyOpen&&_ref$initiallyOpen,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{display:"flex",width:"100%",backgroundColor:theme.colors.surface},footer:{display:"flex",flexDirection:"row",justifyContent:"space-around",padding:10},finishButton:{},cancelButton:{}})}(theme)}),[theme]),_useState=(0,_react.useState)(data),_useState2=(0,_slicedToArray2.default)(_useState,2),temp=_useState2[0],setTemp=_useState2[1],_useState3=(0,_react.useState)(!1),_useState4=(0,_slicedToArray2.default)(_useState3,2),visible=_useState4[0],setVisible=_useState4[1],_useState5=(0,_react.useState)(data instanceof Date?data:void 0),_useState6=(0,_slicedToArray2.default)(_useState5,2),selectedDate=_useState6[0],setSelectedDate=_useState6[1],_useState7=(0,_react.useState)(!1),_useState8=(0,_slicedToArray2.default)(_useState7,2),datePickerVisible=_useState8[0],setDatePickerVisible=_useState8[1],_useState9=(0,_react.useState)(!1),_useState10=(0,_slicedToArray2.default)(_useState9,2),timePickerVisible=_useState10[0],setTimePickerVisible=_useState10[1],_useState11=(0,_react.useState)(initiallyOpen),_useState12=(0,_slicedToArray2.default)(_useState11,2),isInitialOpen=_useState12[0],setIsInitialOpen=_useState12[1],isTextType="text"===inputType||"textarea"===inputType||"number"===inputType,i18n=(0,_reactI18next.useTranslation)().i18n;(0,_react.useEffect)((function(){(0,_reactNativePaperDates.registerTranslation)(i18n.language,_reactNativePaperDates.en)}),[i18n.language]);var handleChange=(0,_react.useCallback)((function(value){var formatedValue=value;Array.isArray(value)&&value.length>0&&!multiSelect&&(formatedValue=value.find((function(option){return option.selected}))),setTemp(value),logger.debug("DynInput handleChange - value changed:",value),null==onChange||onChange(formatedValue),showFooter||isTextType||null==onFinish||onFinish(formatedValue)}),[multiSelect,onFinish,onChange,showFooter,isTextType]),handleKeyPress=(0,_react.useCallback)((function(e){finishOnEnter&&"Enter"===e.nativeEvent.key?null==onFinish||onFinish(temp):cancelOnEscape&&"Escape"===e.nativeEvent.key&&(null==onCancel||onCancel())}),[finishOnEnter,cancelOnEscape,onFinish,onCancel,temp]),handleDateChange=(0,_react.useCallback)((function(date){setDatePickerVisible(!1);var newDate=new Date(date);selectedDate&&newDate.setHours(selectedDate.getHours(),selectedDate.getMinutes()),setSelectedDate(newDate),null==onFinish||onFinish(newDate)}),[selectedDate,onFinish]),handleTimeChange=(0,_react.useCallback)((function(_ref2){var hours=_ref2.hours,minutes=_ref2.minutes;setTimePickerVisible(!1);var newDate=new Date(selectedDate||Date.now());newDate.setHours(hours,minutes),setSelectedDate(newDate),null==onFinish||onFinish(newDate)}),[selectedDate,onFinish]),renderDatePicker=(0,_react.useCallback)((function(){return"time"===inputType?(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[!visible&&!isInitialOpen&&(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setVisible(!0)},children:selectedDate?selectedDate.toLocaleTimeString():"Pick time"}),(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:"modal",children:(0,_jsxRuntime.jsx)(_reactNativePaperDates.TimePickerModal,{visible:visible||isInitialOpen,onDismiss:function onDismiss(){setVisible(!1),setIsInitialOpen(!1),isInitialOpen&&(null==onFinish||onFinish(selectedDate))},onConfirm:function onConfirm(_ref3){var hours=_ref3.hours,minutes=_ref3.minutes,newDate=new Date(selectedDate||Date.now());newDate.setHours(hours,minutes),setSelectedDate(newDate),setIsInitialOpen(!1),null==onFinish||onFinish(newDate),setVisible(!1)},hours:(null==selectedDate?void 0:selectedDate.getHours())||0,minutes:(null==selectedDate?void 0:selectedDate.getMinutes())||0})})]}):"date"===inputType?(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[!visible&&!isInitialOpen&&(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setVisible(!0)},children:selectedDate?selectedDate.toLocaleDateString():"Pick date"}),(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:"modal",children:(0,_jsxRuntime.jsx)(_reactNativePaperDates.DatePickerModal,{mode:"single",visible:visible||isInitialOpen,locale:i18n.language,onDismiss:function onDismiss(){setVisible(!1),setIsInitialOpen(!1),isInitialOpen&&(null==onFinish||onFinish(selectedDate))},date:selectedDate,onConfirm:function onConfirm(params){setVisible(!1),setIsInitialOpen(!1),params.date&&(setSelectedDate(params.date),null==onFinish||onFinish(params.date))}})})]}):"datetime"===inputType?(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[!visible&&!isInitialOpen&&(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setVisible(!0)},children:selectedDate?selectedDate.toLocaleString():"Pick date and time"}),(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:"modal",children:(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog,{visible:visible||isInitialOpen,onDismiss:function onDismiss(){setVisible(!1),setIsInitialOpen(!1),isInitialOpen&&(null==onFinish||onFinish(selectedDate))},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Dialog.Title,{children:"Select Date and Time"}),(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog.Content,{children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setDatePickerVisible(!0)},children:selectedDate?selectedDate.toLocaleDateString():"Pick date"}),(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){return setTimePickerVisible(!0)},children:selectedDate?selectedDate.toLocaleTimeString():"Pick time"})]}),(0,_jsxRuntime.jsxs)(_reactNativePaper.Dialog.Actions,{children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){setVisible(!1),setIsInitialOpen(!1)},children:"Cancel"}),(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress:function onPress(){setVisible(!1),setIsInitialOpen(!1),null==onFinish||onFinish(selectedDate)},children:"OK"})]})]})}),(0,_jsxRuntime.jsx)(_reactNativePaperDates.DatePickerModal,{mode:"single",visible:datePickerVisible,locale:i18n.language,onDismiss:function onDismiss(){setDatePickerVisible(!1)},date:selectedDate,onConfirm:function onConfirm(params){params.date&&handleDateChange(params.date)}}),(0,_jsxRuntime.jsx)(_reactNativePaperDates.TimePickerModal,{visible:timePickerVisible,onDismiss:function onDismiss(){setTimePickerVisible(!1)},onConfirm:handleTimeChange,hours:(null==selectedDate?void 0:selectedDate.getHours())||0,minutes:(null==selectedDate?void 0:selectedDate.getMinutes())||0})]}):null}),[visible,isInitialOpen,selectedDate,inputType,i18n.language,onFinish,handleDateChange,handleTimeChange]),handleCancel=(0,_react.useCallback)((function(){setTemp(data),null==onCancel||onCancel()}),[data,onCancel]),handleFinish=(0,_react.useCallback)((function(){null==onFinish||onFinish(temp)}),[onFinish,temp]);return(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:["text"===inputType&&function renderText(){return(0,_jsxRuntime.jsx)(_TextInput.TextInput,{multiline:!!(numberOfLines&&numberOfLines>0),numberOfLines,label,autoFocus,value:temp,onChangeText:handleChange,selectTextOnFocus,onKeyPress:handleKeyPress,blurOnSubmit:!1})}(),"number"===inputType&&function renderNumber(){return(0,_jsxRuntime.jsx)(_TextInput.TextInput,{inputMode:"numeric",autoFocus,value:temp,onChangeText:handleChange,selectTextOnFocus,onKeyPress:finishOnEnter||cancelOnEscape?handleKeyPress:void 0,blurOnSubmit:finishOnEnter})}(),("date"===inputType||"time"===inputType||"datetime"===inputType)&&renderDatePicker(),"custom"===inputType&&(null==customRender?void 0:customRender(data,handleChange)),"select-button"===inputType&&(0,_jsxRuntime.jsx)(_SelectButtons.SelectButtons,{options:JSON.parse(JSON.stringify(temp)),min,max,multiSelect,showSearch,onChange:handleChange}),showFooter&&(0,_jsxRuntime.jsxs)(_View.default,{style:styles.footer,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{style:styles.cancelButton,testID:"dyn-input-cancel",onPress:handleCancel,children:"Cancel"}),(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{style:styles.finishButton,testID:"dyn-input-finish",mode:"contained",onPress:handleFinish,children:"Done"})]})]})};try{DynInput.displayName="DynInput",DynInput.__docgenInfo={description:"",displayName:"DynInput",props:{data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"DynamicType"}},inputType:{defaultValue:null,description:"",name:"inputType",required:!0,type:{name:"enum",value:[{value:'"number"'},{value:'"text"'},{value:'"radio"'},{value:'"textarea"'},{value:'"select-button"'},{value:'"date"'},{value:'"datetime"'},{value:'"time"'},{value:'"custom"'}]}},min:{defaultValue:null,description:"",name:"min",required:!1,type:{name:"number"}},max:{defaultValue:null,description:"",name:"max",required:!1,type:{name:"number"}},multiSelect:{defaultValue:null,description:"",name:"multiSelect",required:!1,type:{name:"boolean"}},showSearch:{defaultValue:null,description:"",name:"showSearch",required:!1,type:{name:"boolean"}},showFooter:{defaultValue:{value:"true"},description:"",name:"showFooter",required:!1,type:{name:"boolean"}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},numberOfLines:{defaultValue:null,description:"",name:"numberOfLines",required:!1,type:{name:"number"}},useFlatList:{defaultValue:null,description:"",name:"useFlatList",required:!1,type:{name:"boolean"}},customRender:{defaultValue:null,description:"",name:"customRender",required:!1,type:{name:"((value: DynamicType, onChange: (value: DynamicType) => void) => ReactNode)"}},onFinish:{defaultValue:null,description:"",name:"onFinish",required:!1,type:{name:"((value: DynamicType) => void)"}},onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"(() => void)"}},selectTextOnFocus:{defaultValue:null,description:"",name:"selectTextOnFocus",required:!1,type:{name:"boolean"}},finishOnEnter:{defaultValue:null,description:"",name:"finishOnEnter",required:!1,type:{name:"boolean"}},cancelOnEscape:{defaultValue:null,description:"",name:"cancelOnEscape",required:!1,type:{name:"boolean"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((value: DynamicType) => void)"}},initiallyOpen:{defaultValue:{value:"false"},description:"",name:"initiallyOpen",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/DynInput/DynInput.tsx#DynInput"]={docgenInfo:DynInput.__docgenInfo,name:"DynInput",path:"src/components/DynInput/DynInput.tsx#DynInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/LabelSwitch/LabelSwitch.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.LabelSwitch=void 0;var _react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Pressable=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Pressable/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var LabelSwitch=exports.LabelSwitch=function LabelSwitch(_ref){var label=_ref.label,value=_ref.value,containerStyle=_ref.containerStyle,labelStyle=_ref.labelStyle,onValueChange=_ref.onValueChange,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyle(theme){return{container:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:10,backgroundColor:theme.colors.surface},label:{paddingRight:10,color:theme.colors.text}}}(theme)}),[theme]);return(0,_jsxRuntime.jsxs)(_Pressable.default,{style:[styles.container,containerStyle],onPress:function handleContainerPress(){onValueChange(!value)},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.label,labelStyle],children:label}),(0,_jsxRuntime.jsx)(_reactNativePaper.Switch,{value,onValueChange,onTouchStart:function onTouchStart(e){return e.stopPropagation()}})]})};try{LabelSwitch.displayName="LabelSwitch",LabelSwitch.__docgenInfo={description:"",displayName:"LabelSwitch",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"boolean"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"StyleProp"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!0,type:{name:"(value: boolean) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/LabelSwitch/LabelSwitch.tsx#LabelSwitch"]={docgenInfo:LabelSwitch.__docgenInfo,name:"LabelSwitch",path:"src/components/LabelSwitch/LabelSwitch.tsx#LabelSwitch"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/ScreenWrapper/ScreenWrapper.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScreenWrapper=void 0;var _objectWithoutProperties2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_ScrollView=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/ScrollView/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_excluded=["children","withScrollView","useInsets","style","contentContainerStyle"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ScreenWrapper=exports.ScreenWrapper=function ScreenWrapper(_ref2){var children=_ref2.children,_ref2$withScrollView=_ref2.withScrollView,withScrollView=void 0===_ref2$withScrollView||_ref2$withScrollView,_ref2$useInsets=_ref2.useInsets,useInsets=void 0===_ref2$useInsets||_ref2$useInsets,style=_ref2.style,contentContainerStyle=_ref2.contentContainerStyle,rest=(0,_objectWithoutProperties2.default)(_ref2,_excluded),theme=(0,_ThemeProvider.useTheme)(),insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,insets=_ref.insets,useInsets=_ref.useInsets;return _StyleSheet.default.create({container:{flex:1,backgroundColor:theme.colors.background,paddingTop:useInsets?insets.top:0,paddingBottom:useInsets?insets.bottom:0,paddingLeft:useInsets?insets.left:0,paddingRight:useInsets?insets.right:0}})}({theme,insets,useInsets})}),[theme,insets,useInsets]);return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:withScrollView?(0,_jsxRuntime.jsx)(_ScrollView.default,Object.assign({},rest,{contentContainerStyle,keyboardShouldPersistTaps:"always",alwaysBounceVertical:!1,showsVerticalScrollIndicator:!1,style:[styles.container,style],children})):(0,_jsxRuntime.jsx)(_View.default,{style:[styles.container,style],children})})};try{ScreenWrapper.displayName="ScreenWrapper",ScreenWrapper.__docgenInfo={description:"",displayName:"ScreenWrapper",props:{withScrollView:{defaultValue:{value:"true"},description:"",name:"withScrollView",required:!1,type:{name:"boolean"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},contentContainerStyle:{defaultValue:null,description:"",name:"contentContainerStyle",required:!1,type:{name:"StyleProp"}},useInsets:{defaultValue:{value:"true"},description:"",name:"useInsets",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ScreenWrapper/ScreenWrapper.tsx#ScreenWrapper"]={docgenInfo:ScreenWrapper.__docgenInfo,name:"ScreenWrapper",path:"src/components/ScreenWrapper/ScreenWrapper.tsx#ScreenWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/SelectButtons/SelectButtons.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.SelectButtons=exports.BREAKPOINTS=void 0;var _toConsumableArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativeGestureHandler=__webpack_require__("./node_modules/react-native-gesture-handler/lib/module/index.js"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var BREAKPOINTS=exports.BREAKPOINTS={SM:600,MD:900,LG:1200},SelectButtons=exports.SelectButtons=function SelectButtons(_ref){var options=_ref.options,_ref$min=_ref.min,min=void 0===_ref$min?0:_ref$min,max=_ref.max,cols=_ref.cols,_ref$multiSelect=_ref.multiSelect,multiSelect=void 0!==_ref$multiSelect&&_ref$multiSelect,_ref$useFlatList=_ref.useFlatList,useFlatList=void 0!==_ref$useFlatList&&_ref$useFlatList,onChange=_ref.onChange,showSearch=_ref.showSearch,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{display:"flex",flexDirection:"column",flexGrow:1,flexShrink:1,padding:theme.spacing.gap,marginBottom:theme.spacing.margin,backgroundColor:theme.colors.surface},buttonContainer:{display:"flex",gap:theme.spacing.gap},button:{},buttonSelected:{backgroundColor:theme.colors.secondaryContainer,color:theme.colors.secondary}})}(theme)}),[theme]),_useState=(0,_react.useState)(""),_useState2=(0,_slicedToArray2.default)(_useState,2),searchQuery=_useState2[0],setSearchQuery=_useState2[1],_useState3=(0,_react.useState)(options||[]),_useState4=(0,_slicedToArray2.default)(_useState3,2),currentOptions=_useState4[0],setCurrentOptions=_useState4[1],screenWidth=(0,_useScreenWidth.useScreenWidth)(),numColumns=(0,_react.useMemo)((function(){return cols||(screenWidth>=BREAKPOINTS.LG?4:screenWidth>=BREAKPOINTS.MD?3:screenWidth>=BREAKPOINTS.SM?2:1)}),[screenWidth,cols]),filteredOptions=(0,_react.useMemo)((function(){return 0===currentOptions.length?[]:currentOptions.filter((function(option){return option.label.toLowerCase().includes(searchQuery.toLowerCase())})).sort((function(a,b){return(a.order||1)-(b.order||1)}))}),[currentOptions,searchQuery]);(0,_react.useEffect)((function(){setCurrentOptions(options)}),[options]);var handleSearchChange=(0,_react.useCallback)((function(query){return setSearchQuery(query)}),[]),handleButtonPress=(0,_react.useCallback)((function(index){var newOptions=(0,_toConsumableArray2.default)(currentOptions),optionIndex=currentOptions.findIndex((function(option){return option===filteredOptions[index]})),option=newOptions[optionIndex];if(void 0===option)throw new Error("Option is undefined");option.selected=!option.selected,multiSelect||(newOptions=newOptions.map((function(opt,idx){return Object.assign({},opt,{selected:idx===optionIndex&&option.selected})}))),null==onChange||onChange(newOptions)}),[currentOptions,filteredOptions,onChange,multiSelect]),selectedOptionsCount=(0,_react.useMemo)((function(){return null==currentOptions?void 0:currentOptions.filter((function(option){return option.selected})).length}),[currentOptions]),isErrorVisible=(0,_react.useMemo)((function(){return selectedOptionsCountmax}),[selectedOptionsCount,min,max]),errorText=(0,_react.useMemo)((function(){return selectedOptionsCountmax?`Please select no more than ${max} option(s).`:""}),[selectedOptionsCount,min,max]),renderButton=(0,_react.useCallback)((function(_ref2){var item=_ref2.item,index=_ref2.index,key=_ref2.key;return(0,_jsxRuntime.jsx)(_Button.Button,{mode:"outlined",testID:`buttons-opt-${index}`,style:[styles.button,item.selected&&styles.buttonSelected],onPress:function onPress(){return handleButtonPress(index)},children:item.label},null!=key?key:`opt${index}`)}),[handleButtonPress,styles]),handleKeyPress=(0,_react.useCallback)((function(event){"web"===_Platform.default.OS&&("Escape"===event.code&&setSearchQuery(""))}),[]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[showSearch&&(0,_jsxRuntime.jsx)(_reactNativePaper.Searchbar,{placeholder:"Search",clearButtonMode:"while-editing",onChangeText:handleSearchChange,onKeyPress:handleKeyPress,value:searchQuery}),(0,_jsxRuntime.jsx)(_reactNativePaper.HelperText,{type:"error",visible:isErrorVisible||!1,children:errorText}),useFlatList?(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.FlatList,{data:filteredOptions,renderItem:renderButton,keyExtractor:function keyExtractor(_item,index){return`opt${index}`},numColumns},`flatlist-${numColumns}`):(0,_jsxRuntime.jsx)(_View.default,{style:styles.buttonContainer,children:filteredOptions.map((function(item,index){return renderButton({item,index,key:`opt${index}`})}))})]})};try{SelectButtons.displayName="SelectButtons",SelectButtons.__docgenInfo={description:"",displayName:"SelectButtons",props:{multiSelect:{defaultValue:{value:"false"},description:"",name:"multiSelect",required:!1,type:{name:"boolean"}},showSearch:{defaultValue:null,description:"",name:"showSearch",required:!1,type:{name:"boolean"}},useFlatList:{defaultValue:{value:"false"},description:"",name:"useFlatList",required:!1,type:{name:"boolean"}},min:{defaultValue:{value:"0"},description:"",name:"min",required:!1,type:{name:"number"}},max:{defaultValue:null,description:"",name:"max",required:!1,type:{name:"number"}},cols:{defaultValue:null,description:"",name:"cols",required:!1,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((options: SelectOption[]) => void)"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/SelectButtons/SelectButtons.tsx#SelectButtons"]={docgenInfo:SelectButtons.__docgenInfo,name:"SelectButtons",path:"src/components/SelectButtons/SelectButtons.tsx#SelectButtons"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/TextInput/TextInput.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.TextInput=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_objectWithoutProperties2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),_bottomSheet=__webpack_require__("./node_modules/@gorhom/bottom-sheet/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_excluded=["mandatory","label","onFocus","onBlur","autoFocus"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var isWeb="web"===_Platform.default.OS,TextInput=exports.TextInput=(0,_react.forwardRef)((function(_ref,ref){var mandatory=_ref.mandatory,label=_ref.label,onFocus=_ref.onFocus,onBlur=_ref.onBlur,autoFocus=_ref.autoFocus,rest=(0,_objectWithoutProperties2.default)(_ref,_excluded),inputRef=(0,_react.useRef)(null),bottomSheetInternal=function useSafeBottomSheetInternal(){try{return(0,_bottomSheet.useBottomSheetInternal)()}catch(e){return null}}(),_useState=(0,_react.useState)(!isWeb),_useState2=(0,_slicedToArray2.default)(_useState,2),shouldFocus=_useState2[0],setShouldFocus=_useState2[1];(0,_react.useImperativeHandle)(ref,(function(){return{focus:function focus(){var _inputRef$current;return null==(_inputRef$current=inputRef.current)?void 0:_inputRef$current.focus()},blur:function blur(){var _inputRef$current2;return null==(_inputRef$current2=inputRef.current)?void 0:_inputRef$current2.blur()}}}));var handleOnFocus=(0,_react.useCallback)((function(event){bottomSheetInternal&&(bottomSheetInternal.shouldHandleKeyboardEvents.value=!0),null==onFocus||onFocus(event)}),[onFocus,bottomSheetInternal]),handleOnBlur=(0,_react.useCallback)((function(event){bottomSheetInternal&&(bottomSheetInternal.shouldHandleKeyboardEvents.value=!1),null==onBlur||onBlur(event)}),[onBlur,bottomSheetInternal]);return(0,_react.useEffect)((function(){if(isWeb&&autoFocus){var timer=setTimeout((function(){var _inputRef$current3;setShouldFocus(!0),null==(_inputRef$current3=inputRef.current)||_inputRef$current3.focus()}),300);return function(){return clearTimeout(timer)}}}),[autoFocus]),(0,_react.useEffect)((function(){return function(){bottomSheetInternal&&(bottomSheetInternal.shouldHandleKeyboardEvents.value=!1)}}),[bottomSheetInternal]),(0,_jsxRuntime.jsx)(_reactNativePaper.TextInput,Object.assign({},rest,{ref:inputRef,label:function renderLabel(){return mandatory?(0,_jsxRuntime.jsxs)(_reactNativePaper.Text,{children:[label,(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:{color:"red",paddingLeft:5},children:"*"})]}):label}(),onFocus:handleOnFocus,onBlur:handleOnBlur,autoFocus:isWeb?shouldFocus&&autoFocus:autoFocus}))}));TextInput.displayName="TextInput";try{TextInput.displayName="TextInput",TextInput.__docgenInfo={description:"",displayName:"TextInput",props:{mode:{defaultValue:null,description:"Mode of the TextInput.\n- `flat` - flat input with an underline.\n- `outlined` - input with an outline.\n\nIn `outlined` mode, the background color of the label is derived from `colors?.background` in theme or the `backgroundColor` style.\nThis component render TextInputOutlined or TextInputFlat based on that props",name:"mode",required:!1,type:{name:"enum",value:[{value:'"flat"'},{value:'"outlined"'}]}},theme:{defaultValue:null,description:"@optional",name:"theme",required:!1,type:{name:"ThemeProp"}},render:{defaultValue:null,description:'Callback to render a custom input component such as `react-native-text-input-mask`\ninstead of the default `TextInput` component from `react-native`.\n\nExample:\n```js\n\n \n }\n/>\n```',name:"render",required:!1,type:{name:"((props: RenderProps) => ReactNode)"}},error:{defaultValue:null,description:"Whether to style the TextInput with error style.",name:"error",required:!1,type:{name:"boolean"}},mandatory:{defaultValue:null,description:"",name:"mandatory",required:!1,type:{name:"boolean"}},label:{defaultValue:null,description:"The text or component to use for the floating label.",name:"label",required:!1,type:{name:"TextInputLabelProp"}},left:{defaultValue:null,description:"",name:"left",required:!1,type:{name:"ReactNode"}},right:{defaultValue:null,description:"",name:"right",required:!1,type:{name:"ReactNode"}},disabled:{defaultValue:null,description:"If true, user won't be able to interact with the component.",name:"disabled",required:!1,type:{name:"boolean"}},underlineColor:{defaultValue:null,description:"Inactive underline color of the input.",name:"underlineColor",required:!1,type:{name:"string"}},activeUnderlineColor:{defaultValue:null,description:"Active underline color of the input.",name:"activeUnderlineColor",required:!1,type:{name:"string"}},outlineColor:{defaultValue:null,description:"Inactive outline color of the input.",name:"outlineColor",required:!1,type:{name:"string"}},activeOutlineColor:{defaultValue:null,description:"Active outline color of the input.",name:"activeOutlineColor",required:!1,type:{name:"string"}},textColor:{defaultValue:null,description:"Color of the text in the input.",name:"textColor",required:!1,type:{name:"string"}},dense:{defaultValue:null,description:"Sets min height with densed layout. For `TextInput` in `flat` mode\nheight is `64dp` or in dense layout - `52dp` with label or `40dp` without label.\nFor `TextInput` in `outlined` mode\nheight is `56dp` or in dense layout - `40dp` regardless of label.\nWhen you apply `height` prop in style the `dense` prop affects only `paddingVertical` inside `TextInput`",name:"dense",required:!1,type:{name:"boolean"}},contentStyle:{defaultValue:null,description:"Pass custom style directly to the input itself.\nOverrides input style\nExample: `paddingLeft`, `backgroundColor`",name:"contentStyle",required:!1,type:{name:"StyleProp"}},outlineStyle:{defaultValue:null,description:"Pass style to override the default style of outlined wrapper.\nOverrides style when mode is set to `outlined`\nExample: `borderRadius`, `borderColor`",name:"outlineStyle",required:!1,type:{name:"StyleProp"}},underlineStyle:{defaultValue:null,description:"Pass style to override the default style of underlined wrapper.\nOverrides style when mode is set to `flat`\nExample: `borderRadius`, `borderColor`",name:"underlineStyle",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/TextInput/TextInput.tsx#TextInput"]={docgenInfo:TextInput.__docgenInfo,name:"TextInput",path:"src/components/TextInput/TextInput.tsx#TextInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Toast/Toast.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.Toast=void 0;var _vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Dimensions=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Dimensions/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var icons={info:"information-outline",warning:"alert-circle-outline",success:"check-circle-outline",error:"close-circle-outline"},Toast=exports.Toast=function Toast(_ref2){var _ref2$position=_ref2.position,position=void 0===_ref2$position?"bottom":_ref2$position,_ref2$actionLabel=_ref2.actionLabel,actionLabel=void 0===_ref2$actionLabel?"DONE":_ref2$actionLabel,_ref2$duration=_ref2.duration,duration=void 0===_ref2$duration?2e3:_ref2$duration,_ref2$visibility=_ref2.visibility,visibility=void 0!==_ref2$visibility&&_ref2$visibility,_ref2$iconVisible=_ref2.iconVisible,iconVisible=void 0===_ref2$iconVisible||_ref2$iconVisible,_ref2$loading=_ref2.loading,loading=void 0!==_ref2$loading&&_ref2$loading,message=_ref2.message,subMessage=_ref2.subMessage,action=_ref2.action,messageStyle=_ref2.messageStyle,subMessageStyle=_ref2.subMessageStyle,iconStyle=_ref2.iconStyle,messageContainerStyle=_ref2.messageContainerStyle,snackbarStyle=_ref2.snackbarStyle,_ref2$type=_ref2.type,type=void 0===_ref2$type?"info":_ref2$type,onDismiss=_ref2.onDismiss,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,type=_ref.type,iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[type];return _StyleSheet.default.create({snackBarStyle:{borderRadius:3,width:"95%",maxWidth:400},message:{fontSize:14,color:"#FFF5EE"},textContainer:{gap:5,paddingLeft:5},subMessage:{fontWeight:"normal",color:"#FFF5EE",fontSize:12},defaultMessageContainer:{flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},iconStyle:{color:iconColor}})}({theme,type})}),[theme,type]),windowDimensions=_Dimensions.default.get("window"),insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),computedStyle=(0,_react.useMemo)((function(){var style,base={position:"web"===_Platform.default.OS?"fixed":"absolute",left:insets.left,right:insets.right,width:void 0,alignItems:"center",zIndex:9999};return"bottom"===position?style=Object.assign({},base,{bottom:insets.bottom}):"top"===position?style=Object.assign({},base,{top:insets.top,bottom:void 0}):(style=Object.assign({},base,{top:insets.top,bottom:insets.bottom,justifyContent:"center"}),"web"===_Platform.default.OS&&(style=Object.assign({},styles,{top:windowDimensions.height/2-20,bottom:windowDimensions.height/2-20})),style)}),[insets,position,windowDimensions]);return(0,_jsxRuntime.jsx)(_reactNativePaper.Snackbar,{onDismiss:function handleDismiss(){null==onDismiss||onDismiss()},style:[styles.snackBarStyle,snackbarStyle],wrapperStyle:computedStyle,duration,visible:visibility,action:action?{label:actionLabel,onPress:action}:void 0,children:(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.defaultMessageContainer,messageContainerStyle],children:[loading&&(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{}),!loading&&iconVisible&&(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icons[type],style:[styles.iconStyle,iconStyle],size:20}),(0,_jsxRuntime.jsxs)(_View.default,{style:styles.textContainer,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.message,messageStyle],children:`${message}`}),subMessage&&(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.subMessage,subMessageStyle],children:subMessage})]})]})})};try{Toast.displayName="Toast",Toast.__docgenInfo={description:"",displayName:"Toast",props:{message:{defaultValue:null,description:"The message to show",name:"message",required:!0,type:{name:"string"}},subMessage:{defaultValue:null,description:"",name:"subMessage",required:!1,type:{name:"string"}},type:{defaultValue:{value:"info"},description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},position:{defaultValue:{value:"bottom"},description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:{value:"2000"},description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:{value:"false"},description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:{value:"false"},description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:{value:"true"},description:"Toast Icon visibility",name:"iconVisible",required:!1,type:{name:"boolean"}},action:{defaultValue:null,description:"Toast Action onPress",name:"action",required:!1,type:{name:"(() => void)"}},actionLabel:{defaultValue:{value:"DONE"},description:"Toast Action Label",name:"actionLabel",required:!1,type:{name:"string"}},messageStyle:{defaultValue:null,description:"Toast Message Style",name:"messageStyle",required:!1,type:{name:"StyleProp"}},subMessageStyle:{defaultValue:null,description:"",name:"subMessageStyle",required:!1,type:{name:"StyleProp"}},iconStyle:{defaultValue:null,description:"icon style",name:"iconStyle",required:!1,type:{name:"StyleProp"}},messageContainerStyle:{defaultValue:null,description:"Toast Message Container Style",name:"messageContainerStyle",required:!1,type:{name:"StyleProp"}},snackbarStyle:{defaultValue:null,description:"Toast Snackbar Style",name:"snackbarStyle",required:!1,type:{name:"StyleProp"}},onDismiss:{defaultValue:null,description:"",name:"onDismiss",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Toast/Toast.tsx#Toast"]={docgenInfo:Toast.__docgenInfo,name:"Toast",path:"src/components/Toast/Toast.tsx#Toast"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfirmCancelFooter=void 0;var _react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ConfirmCancelFooter=exports.ConfirmCancelFooter=function ConfirmCancelFooter(_ref2){var onCancel=_ref2.onCancel,onFinish=_ref2.onFinish,containerStyle=_ref2.containerStyle,_useSafeAreaInsets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),bottom=_useSafeAreaInsets.bottom,left=_useSafeAreaInsets.left,right=_useSafeAreaInsets.right,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,bottom=_ref.bottom,left=_ref.left,right=_ref.right,paddingBottom=bottom>0?bottom:theme.padding.m;return _StyleSheet.default.create({footer:{backgroundColor:theme.colors.surfaceVariant,borderTopColor:theme.colors.outline,borderTopWidth:1,display:"flex",flexDirection:"row",justifyContent:"space-around",paddingTop:theme.padding.m,paddingBottom,paddingLeft:left+theme.padding.m,paddingRight:right+theme.padding.m},finishButton:{paddingHorizontal:20},cancelButton:{paddingHorizontal:20}})}({theme,bottom,left,right})}),[theme,bottom,left,right]),t=(0,_reactI18next.useTranslation)("confirm_cancel_footer").t;return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.footer,containerStyle],children:[(0,_jsxRuntime.jsx)(_Button.Button,{mode:"outlined",style:styles.cancelButton,onPress:onCancel,children:t("cancel")}),(0,_jsxRuntime.jsx)(_Button.Button,{style:styles.finishButton,mode:"contained",onPress:onFinish,children:t("confirm")})]})};try{ConfirmCancelFooter.displayName="ConfirmCancelFooter",ConfirmCancelFooter.__docgenInfo={description:"",displayName:"ConfirmCancelFooter",props:{onCancel:{defaultValue:null,description:"",name:"onCancel",required:!1,type:{name:"(() => void)"}},onFinish:{defaultValue:null,description:"",name:"onFinish",required:!1,type:{name:"(() => void)"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/bottom-modal/footers/ConfirmCancelFooter.tsx#ConfirmCancelFooter"]={docgenInfo:ConfirmCancelFooter.__docgenInfo,name:"ConfirmCancelFooter",path:"src/components/bottom-modal/footers/ConfirmCancelFooter.tsx#ConfirmCancelFooter"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/bottom-modal/handlers/LabelHandler.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.LabelHandler=void 0;var _objectWithoutProperties2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),_bottomSheet=__webpack_require__("./node_modules/@gorhom/bottom-sheet/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_excluded=["label"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var LabelHandler=exports.LabelHandler=function LabelHandler(_ref){var _ref$label=_ref.label,label=void 0===_ref$label?"":_ref$label,rest=(0,_objectWithoutProperties2.default)(_ref,_excluded),theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{borderBottomWidth:1,borderBottomColor:theme.colors.outline,borderTopLeftRadius:20,borderTopRightRadius:20,gap:5,backgroundColor:theme.colors.surfaceVariant},titleContainer:{justifyContent:"center",alignItems:"center"},title:{marginTop:theme.spacing.margin,fontSize:20,lineHeight:20,textAlign:"center",fontWeight:"bold"},indicator:{opacity:.5,color:theme.colors.text,alignSelf:"center",height:4}})}(theme)}),[theme]);return(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetHandle,Object.assign({},rest,{indicatorStyle:styles.indicator,style:styles.container,children:label?(0,_jsxRuntime.jsx)(_View.default,{style:styles.titleContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"titleSmall",children:label})}):void 0}))};try{LabelHandler.displayName="LabelHandler",LabelHandler.__docgenInfo={description:"",displayName:"LabelHandler",props:{label:{defaultValue:{value:""},description:"",name:"label",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/bottom-modal/handlers/LabelHandler.tsx#LabelHandler"]={docgenInfo:LabelHandler.__docgenInfo,name:"LabelHandler",path:"src/components/bottom-modal/handlers/LabelHandler.tsx#LabelHandler"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/_useAppPreferencesSetup.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAppPreferencesSetup=void 0;var _defineProperty2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/defineProperty.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=__webpack_require__("./node_modules/react/index.js"),logger=__webpack_require__("./src/utils/logger.ts").baseLogger.extend("useAppPreferencesSetup"),useAppPreferencesSetup=exports.useAppPreferencesSetup=function useAppPreferencesSetup(_ref){var theme=_ref.theme,i18nInstance=_ref.i18nInstance,savePreferences=_ref.savePreferences,setDarkMode=_ref.setDarkMode,_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),collapsed=_useState2[0],setCollapsed=_useState2[1],_useState3=(0,_react.useState)(theme.dark),_useState4=(0,_slicedToArray2.default)(_useState3,2),darkMode=_useState4[0],setLocalDarkmode=_useState4[1],_useState5=(0,_react.useState)(!1),_useState6=(0,_slicedToArray2.default)(_useState5,2),customFontLoaded=_useState6[0],setCustomFont=_useState6[1],_useState7=(0,_react.useState)(!0),_useState8=(0,_slicedToArray2.default)(_useState7,2),rippleEffectEnabled=_useState8[0],setRippleEffectEnabled=_useState8[1],_useState9=(0,_react.useState)(theme),_useState10=(0,_slicedToArray2.default)(_useState9,2),dynamicTheme=_useState10[0],setDynamicTheme=_useState10[1],_useState11=(0,_react.useState)(!1),_useState12=(0,_slicedToArray2.default)(_useState11,2),listener=_useState12[0],setListener=_useState12[1];return(0,_react.useEffect)((function(){setDynamicTheme(theme)}),[theme]),(0,_react.useEffect)((function(){return!listener&&i18nInstance.isInitialized&&(i18nInstance.on("languageChanged",(function onLanguage(lng){null==savePreferences||savePreferences({darkMode:dynamicTheme.dark,rippleEffectEnabled,locale:lng})})),setListener(!0)),function(){}}),[i18nInstance,savePreferences,listener,logger,dynamicTheme,rippleEffectEnabled]),(0,_react.useMemo)((function(){return{toggleDarkMode:function toggleDarkMode(){var _dynamicTheme$dark,newValue=!(null!=(_dynamicTheme$dark=dynamicTheme.dark)&&_dynamicTheme$dark);setLocalDarkmode(newValue),setDarkMode(newValue),null==savePreferences||savePreferences({darkMode:newValue,rippleEffectEnabled,locale:i18nInstance.language})},toggleCollapsed:function toggleCollapsed(){return setCollapsed(!collapsed)},toggleCustomFont:function toggleCustomFont(){return setCustomFont(!customFontLoaded)},toggleRippleEffect:function toggleRippleEffect(){setRippleEffectEnabled((function(oldValue){return null==savePreferences||savePreferences({darkMode:dynamicTheme.dark,rippleEffectEnabled:!oldValue,locale:i18nInstance.language}),!oldValue}))},setThemeColor:function setThemeColor(_ref2){var name=_ref2.name,value=_ref2.value;setDynamicTheme((function(oldTheme){var newTheme=Object.assign({},oldTheme,{colors:Object.assign({},oldTheme.colors,(0,_defineProperty2.default)({},name,value))});return console.log(`[${name}] ${oldTheme.colors[name]} -> ${value}`),console.log(`primary: ${newTheme.colors.primary} secondary: ${newTheme.colors.secondary} tertiary: ${newTheme.colors.tertiary}`),newTheme}))},toggleThemeVersion:function toggleThemeVersion(){},customFontLoaded,rippleEffectEnabled,collapsed,darkMode,theme:dynamicTheme}}),[dynamicTheme,collapsed,i18nInstance,savePreferences,customFontLoaded,rippleEffectEnabled,setDarkMode])};try{useAppPreferencesSetup.displayName="useAppPreferencesSetup",useAppPreferencesSetup.__docgenInfo={description:"",displayName:"useAppPreferencesSetup",props:{theme:{defaultValue:null,description:"",name:"theme",required:!0,type:{name:"AppTheme"}},i18nInstance:{defaultValue:null,description:"",name:"i18nInstance",required:!0,type:{name:"i18n"}},savedPreferences:{defaultValue:null,description:"",name:"savedPreferences",required:!1,type:{name:"SavedUserPreferences"}},savePreferences:{defaultValue:null,description:"",name:"savePreferences",required:!1,type:{name:"((userPrefs: SavedUserPreferences) => void)"}},setDarkMode:{defaultValue:null,description:"",name:"setDarkMode",required:!0,type:{name:"(value: boolean | ((oldValue: boolean) => boolean)) => void"}},setThemeVersion:{defaultValue:null,description:"",name:"setThemeVersion",required:!0,type:{name:"(number: number) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/_useAppPreferencesSetup.tsx#useAppPreferencesSetup"]={docgenInfo:useAppPreferencesSetup.__docgenInfo,name:"useAppPreferencesSetup",path:"src/hooks/_useAppPreferencesSetup.tsx#useAppPreferencesSetup"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/_useAppThemeSetup.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useAppThemeSetup=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=__webpack_require__("./node_modules/react/index.js"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx"),useAppThemeSetup=exports.useAppThemeSetup=function useAppThemeSetup(_ref){var _savedPreferences$dar,fontFamily=_ref.fontFamily,savedPreferences=_ref.savedPreferences,customDarkTheme=_ref.customDarkTheme,customLightTheme=_ref.customLightTheme,_useState=(0,_react.useState)(null!=(_savedPreferences$dar=null==savedPreferences?void 0:savedPreferences.darkMode)&&_savedPreferences$dar),_useState2=(0,_slicedToArray2.default)(_useState,2),darkMode=_useState2[0],setDarkMode=_useState2[1],_useState3=(0,_react.useState)(3),_useState4=(0,_slicedToArray2.default)(_useState3,2),themeVersion=_useState4[0],setThemeVersion=_useState4[1],screenWidth=(0,_useScreenWidth.useScreenWidth)(),_useState5=(0,_react.useState)({padding:customLightTheme.padding.m,margin:customLightTheme.margin.m,gap:customLightTheme.gap.m}),_useState6=(0,_slicedToArray2.default)(_useState5,2),dynamicSpacing=_useState6[0],setDynamicSpacing=_useState6[1];(0,_react.useEffect)((function(){setDynamicSpacing(screenWidth<600?{padding:customLightTheme.padding.s,margin:customLightTheme.margin.s,gap:customLightTheme.gap.s}:screenWidth<1024?{padding:customLightTheme.padding.m,margin:customLightTheme.margin.m,gap:customLightTheme.gap.m}:{padding:customLightTheme.padding.l,margin:customLightTheme.margin.l,gap:customLightTheme.gap.l})}),[screenWidth,customLightTheme.padding,customLightTheme.margin,customLightTheme.gap]),(0,_react.useEffect)((function(){savedPreferences&&setDarkMode(savedPreferences.darkMode)}),[savedPreferences]);var theme=(0,_react.useMemo)((function(){var baseTheme=darkMode?customDarkTheme:customLightTheme;return Object.assign({},baseTheme,{spacing:dynamicSpacing})}),[darkMode,customDarkTheme,customLightTheme,dynamicSpacing]);return{theme,configuredFontTheme:Object.assign({},theme,{fonts:fontFamily?(0,_reactNativePaper.configureFonts)({config:{fontFamily}}):void 0}),darkMode,locale:null==savedPreferences?void 0:savedPreferences.locale,setDarkMode,themeVersion,setThemeVersion}};try{useAppThemeSetup.displayName="useAppThemeSetup",useAppThemeSetup.__docgenInfo={description:"",displayName:"useAppThemeSetup",props:{fontFamily:{defaultValue:null,description:"",name:"fontFamily",required:!1,type:{name:"string"}},savedPreferences:{defaultValue:null,description:"",name:"savedPreferences",required:!1,type:{name:"SavedUserPreferences"}},customLightTheme:{defaultValue:null,description:"",name:"customLightTheme",required:!0,type:{name:"CustomAppTheme"}},customDarkTheme:{defaultValue:null,description:"",name:"customDarkTheme",required:!0,type:{name:"CustomAppTheme"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/_useAppThemeSetup.tsx#useAppThemeSetup"]={docgenInfo:useAppThemeSetup.__docgenInfo,name:"useAppThemeSetup",path:"src/hooks/_useAppThemeSetup.tsx#useAppThemeSetup"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/useModal/useModal.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useModal=void 0;var _objectWithoutProperties2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),_asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_DynInput=__webpack_require__("./src/components/DynInput/DynInput.tsx"),_BottomSheetProvider=__webpack_require__("./src/providers/BottomSheetProvider.tsx"),_ModalProvider=__webpack_require__("./src/providers/ModalProvider.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_logger=__webpack_require__("./src/utils/logger.ts"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),_excluded=["bottomSheetProps","modalProps","modalType","data","headerComponent","inputType"];function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var logger=_logger.baseLogger.extend("useModal");exports.useModal=function useModal(){var bottomSheetContext=(0,_react.useContext)(_BottomSheetProvider.BottomSheetContext),modalContext=(0,_react.useContext)(_ModalProvider.ModalContext),colors=(0,_ThemeProvider.useTheme)().colors;if(!bottomSheetContext||!modalContext)throw new Error("useModal must be used within both BottomSheetProvider and ModalProvider");var _ref2,openDrawer=bottomSheetContext.openDrawer,dismissDrawer=bottomSheetContext.dismiss,dismissAllDrawers=bottomSheetContext.dismissAll,modalStack=bottomSheetContext.modalStack,openModal=modalContext.openModal,dismissModal=modalContext.dismiss,dismissAllModals=modalContext.dismissAll,editProp=(0,_react.useCallback)((_ref2=(0,_asyncToGenerator2.default)((function*(_ref){var _modalProps$closeOnOu,_bottomSheetProps$ena,bottomSheetProps=_ref.bottomSheetProps,modalProps=_ref.modalProps,modalType=_ref.modalType,data=_ref.data,headerComponent=_ref.headerComponent,inputType=_ref.inputType,restProps=(0,_objectWithoutProperties2.default)(_ref,_excluded);logger.debug("editProp",Object.assign({bottomSheetProps,modalProps,modalType,data,inputType},restProps));var isDateTimeType=["date","time","datetime"].includes(inputType),actualModalType=null!=modalType?modalType:isDateTimeType||"web"===_Platform.default.OS?"modal":"drawer",commonProps={initialData:data,modalProps:Object.assign({closeOnOutsideTouch:null!=(_modalProps$closeOnOu=null==modalProps?void 0:modalProps.closeOnOutsideTouch)&&_modalProps$closeOnOu},modalProps),render:function render(_ref3){var resolve=_ref3.resolve,_onChange=_ref3.onChange;return(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[headerComponent&&headerComponent,(0,_jsxRuntime.jsx)(_DynInput.DynInput,Object.assign({},restProps,{data,useFlatList:!1,inputType,finishOnEnter:!0,selectTextOnFocus:!0,onCancel:function onCancel(){logger.debug("DynInput onCancel"),null==resolve||resolve(data)},onFinish:function onFinish(values){logger.debug("DynInput onFinish",values),null==resolve||resolve(values)},onChange:function onChange(value){logger.debug("DynInput onChange",value),null==_onChange||_onChange(value)},showFooter:!0,initiallyOpen:!0}))]})}};if("modal"===actualModalType){var _isDateTimeType=["date","time","datetime"].includes(inputType);return openModal(Object.assign({},commonProps,{modalProps:Object.assign({},modalProps,{styles:{modalContent:{backgroundColor:_isDateTimeType?"transparent":colors.surface}}})}))}return openDrawer(Object.assign({},commonProps,{bottomSheetProps:Object.assign({},bottomSheetProps,{enableDynamicSizing:null==(_bottomSheetProps$ena=null==bottomSheetProps?void 0:bottomSheetProps.enableDynamicSizing)||_bottomSheetProps$ena,snapPoints:null==bottomSheetProps?void 0:bottomSheetProps.snapPoints,index:null==bottomSheetProps?void 0:bottomSheetProps.index})}))})),function(_x){return _ref2.apply(this,arguments)}),[openModal,openDrawer]);return{editProp,dismiss:(0,_react.useCallback)((0,_asyncToGenerator2.default)((function*(){return!!(yield dismissModal())||dismissDrawer()})),[dismissModal,dismissDrawer]),dismissAll:(0,_react.useCallback)((function(){dismissAllModals(),dismissAllDrawers()}),[dismissAllModals,dismissAllDrawers]),openDrawer,openModal,modalStack}}},"./src/hooks/useScreenWidth.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useScreenWidth=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=__webpack_require__("./node_modules/react/index.js"),_Dimensions=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Dimensions/index.js"));exports.useScreenWidth=function useScreenWidth(){var _useState=(0,_react.useState)(_Dimensions.default.get("window").width),_useState2=(0,_slicedToArray2.default)(_useState,2),screenWidth=_useState2[0],setScreenWidth=_useState2[1];return(0,_react.useEffect)((function(){var subscription=_Dimensions.default.addEventListener("change",(function updateScreenWidth(){setScreenWidth(_Dimensions.default.get("window").width)}));return function(){subscription.remove()}}),[]),screenWidth}},"./src/providers/BottomSheetProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.BottomSheetProvider=exports.BottomSheetContext=void 0;var _toConsumableArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),_asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),_defineProperty2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/defineProperty.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_bottomSheet=__webpack_require__("./node_modules/@gorhom/bottom-sheet/lib/module/index.js"),_portal=__webpack_require__("./node_modules/@gorhom/portal/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_ConfirmCancelFooter=__webpack_require__("./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx"),_LabelHandler=__webpack_require__("./src/components/bottom-modal/handlers/LabelHandler.tsx"),_logger=__webpack_require__("./src/utils/logger.ts"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var BottomSheetContext=exports.BottomSheetContext=(0,_react.createContext)(void 0),logger=_logger.baseLogger.extend("BottomSheetProvider"),defaultSnapPoints=["40%","80%"],defaultBottomSheetModalProps={enableDynamicSizing:!0,snapPoints:[],android_keyboardInputMode:"adjustResize",keyboardBehavior:"interactive",keyboardBlurBehavior:"restore",enablePanDownToClose:!0,enableDismissOnClose:!0},BottomSheetProvider=exports.BottomSheetProvider=function BottomSheetProvider(_ref){var _ref4,children=_ref.children,_ref$defaultPortalNam=_ref.defaultPortalName,defaultPortalName=void 0===_ref$defaultPortalNam?"modal":_ref$defaultPortalNam,_useState=(0,_react.useState)([]),_useState2=(0,_slicedToArray2.default)(_useState,2),modalStack=_useState2[0],setModalStack=_useState2[1],modalStackRef=(0,_react.useRef)([]),modalIdCounter=(0,_react.useRef)(0),_useState3=(0,_react.useState)({}),_useState4=(0,_slicedToArray2.default)(_useState3,2),footerHeights=_useState4[0],setFooterHeights=_useState4[1],updateLatestData=(0,_react.useCallback)((function(modalId,newValue){modalStackRef.current=modalStackRef.current.map((function(modal){return modal.id===modalId?Object.assign({},modal,{latestData:newValue}):modal})),setModalStack(modalStackRef.current)}),[]),updateFooterHeight=(0,_react.useCallback)((function(modalId,newHeight){setFooterHeights((function(prevHeights){return prevHeights[modalId]!==newHeight?Object.assign({},prevHeights,(0,_defineProperty2.default)({},modalId,newHeight)):prevHeights}))}),[]),renderFooter=(0,_react.useCallback)((function(_ref2){var modalId=_ref2.modalId,footerProps=_ref2.footerProps,modal=modalStack.find((function(m){return m.id===modalId}));if(!modal)return null;var _modal$props=modal.props,renderFooter=_modal$props.renderFooter,footerType=_modal$props.footerType;return renderFooter||footerType?(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetFooter,Object.assign({},footerProps,{children:(0,_jsxRuntime.jsxs)(_View.default,{onLayout:function onLayout(event){var _modalStack;if(modalId===(null==(_modalStack=modalStack[modalStack.length-1])?void 0:_modalStack.id)){var newHeight=event.nativeEvent.layout.height;updateFooterHeight(modal.id,newHeight)}},children:[!renderFooter&&"confirm_cancel"===footerType&&(0,_jsxRuntime.jsx)(_ConfirmCancelFooter.ConfirmCancelFooter,{onFinish:function onFinish(){modal.resolve(modal.latestData)},onCancel:function onCancel(){modal.resolve(modal.initialData)}}),renderFooter&&renderFooter(Object.assign({},footerProps,{data:modal.latestData,resolve:modal.resolve,onChange:function onChange(newValue){return updateLatestData(modal.id,newValue)},reject:modal.reject}))]})})):null}),[modalStack,updateFooterHeight,updateLatestData]),removeModalFromStack=(0,_react.useCallback)((function(modalId){modalStackRef.current=modalStackRef.current.filter((function(m){return m.id!==modalId})),setModalStack(modalStackRef.current),logger.debug("removeModalFromStack: newStack",modalStackRef.current)}),[]),renderHandler=(0,_react.useCallback)((function(_ref3){var modalId=_ref3.modalId,HandlerComponent=function HandlerComponent(props){var modal=modalStack.find((function(m){return m.id===modalId}));if(!modal)return null;var _modal$props2=modal.props,renderHandler=_modal$props2.renderHandler,title=_modal$props2.title;return renderHandler?renderHandler(Object.assign({},props,{data:modal.latestData,resolve:modal.resolve,onChange:function onChange(newValue){return updateLatestData(modal.id,newValue)},reject:modal.reject})):title?(0,_jsxRuntime.jsx)(_LabelHandler.LabelHandler,Object.assign({},props,{label:title})):(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetHandle,Object.assign({},props))};return HandlerComponent.displayName="BottomSheetHandler",HandlerComponent}),[modalStack,updateLatestData]),renderBackdrop=(0,_react.useCallback)((function(props){return(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetBackdrop,Object.assign({},props,{pressBehavior:"close",disappearsOnIndex:-1,appearsOnIndex:0,opacity:.6}))}),[]),wrapResolve=(0,_react.useCallback)((function(modalId,value,resolve){logger.debug("wrapResolve value",value);var currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?(currentModal.resolved=!0,currentModal.bottomSheetRef.current&¤tModal.bottomSheetRef.current.dismiss(),logger.debug("wrapResolve Calling resolve function",value),resolve(value)):logger.error(`wrapResolve: modal ${modalId} not found`,modalStackRef.current)}),[]),wrapReject=(0,_react.useCallback)((function(modalId,error,reject){logger.debug("wrapReject",error);var currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?(currentModal.rejected=!0,currentModal.bottomSheetRef.current&¤tModal.bottomSheetRef.current.dismiss(),reject(error)):logger.error(`wrapReject: modal ${modalId} not found`,modalStackRef.current)}),[]),handleModalDismiss=(0,_react.useCallback)((function(modalId){logger.debug(`handleModalDismiss: modalId: ${modalId}`);var currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?(currentModal.resolved||currentModal.rejected||(logger.debug(`handleModalDismiss: modalId: ${modalId} is closing and not resolved, resolving with undefined`),currentModal.resolve(void 0)),removeModalFromStack(modalId),logger.debug("handleModalDismiss: newStack",modalStackRef.current)):logger.error(`handleModalDismiss: modal modalId=${modalId} not found`,modalStackRef.current)}),[removeModalFromStack]),openDrawer=(0,_react.useCallback)((_ref4=(0,_asyncToGenerator2.default)((function*(props){var newBottomSheetRef=_react.default.createRef();return new Promise((function(resolve,reject){var initialData=props.initialData,bottomSheetProps=props.bottomSheetProps,_props$portalName=props.portalName,portalName=void 0===_props$portalName?defaultPortalName:_props$portalName,modalId=modalIdCounter.current++,modalResolved=!1,newModal={id:modalId,render:props.render,props:Object.assign({},props,{portalName}),resolve:function modalResolve(value){modalResolved?logger.debug("Resolve already called, skipping"):(modalResolved=!0,wrapResolve(modalId,value,resolve))},reject:function modalReject(error){modalResolved?logger.debug("Reject already called, skipping"):(modalResolved=!0,wrapReject(modalId,error,reject))},bottomSheetRef:newBottomSheetRef,initialData,latestData:initialData};logger.debug("openDrawer: adding new modal to stack",newModal),modalStackRef.current=[].concat((0,_toConsumableArray2.default)(modalStackRef.current),[newModal]),setModalStack(modalStackRef.current),setTimeout((function(){var _newBottomSheetRef$cu,_newBottomSheetRef$cu2;null==(_newBottomSheetRef$cu=newBottomSheetRef.current)||_newBottomSheetRef$cu.present(),null!=bottomSheetProps&&bottomSheetProps.snapPoints&&(null==(_newBottomSheetRef$cu2=newBottomSheetRef.current)||_newBottomSheetRef$cu2.snapToIndex(bottomSheetProps.index||0))}),0)}))})),function(_x){return _ref4.apply(this,arguments)}),[setModalStack,defaultPortalName,wrapResolve,wrapReject]),dismiss=(0,_react.useCallback)((function(modalId){return new Promise((function(resolvePromise){var _currentModal$bottomS,currentModal=modalId?modalStackRef.current.find((function(m){return m.id===modalId})):modalStackRef.current[modalStackRef.current.length-1];if(!currentModal)return logger.warn(`dismiss: modal id=${modalId} not found`,modalStackRef.current),void resolvePromise(!1);logger.debug(`dismiss: modalId: ${currentModal.id}`,currentModal),null==(_currentModal$bottomS=currentModal.bottomSheetRef.current)||_currentModal$bottomS.dismiss(),setTimeout((function(){logger.debug("dismiss: resolving modal after delay:",currentModal.id),currentModal.resolve(void 0),resolvePromise(!0)}),300)}))}),[]),dismissAll=(0,_react.useCallback)((function(){modalStackRef.current.forEach((function(modal){var _modal$bottomSheetRef;null==(_modal$bottomSheetRef=modal.bottomSheetRef.current)||_modal$bottomSheetRef.dismiss()})),modalStackRef.current=[],setModalStack([])}),[]),handleSheetChanges=(0,_react.useCallback)((function(_ref5){var modalId=_ref5.modalId,index=_ref5.index,position=_ref5.position,type=_ref5.type;logger.debug(`handleSheetChanges: modalId: ${modalId}, index: ${index}, position: ${position}, type: ${type}, modalStack.length: ${modalStackRef.current.length}`);var _currentModal$props$b,currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?-1===index?(logger.debug(`handleSheetChanges: modalId: ${modalId} is closing`),currentModal.resolved||currentModal.rejected||(logger.debug(`handleSheetChanges: modalId: ${modalId} is closing and not resolved, resolving with initialData`,currentModal.initialData),currentModal.resolve(void 0))):(logger.debug(`handleSheetChanges: modalId: ${modalId}, index: ${index}, position: ${position}, type: ${type}`),null==(_currentModal$props$b=currentModal.props.bottomSheetProps)||null==_currentModal$props$b.onChange||_currentModal$props$b.onChange(index,position,type)):logger.error(`handleSheetChanges: modal modalId=${modalId} not found`,modalStackRef.current)}),[]),renderContent=(0,_react.useCallback)((function(_ref6){var modalId=_ref6.modalId,currentModal=modalStack.find((function(m){return m.id===modalId}));if(!currentModal)return null;var footerHeight=footerHeights[currentModal.id]||0,containerType=currentModal.props.containerType||"view",Container="view"===containerType?_bottomSheet.BottomSheetView:"scrollview"===containerType?_bottomSheet.BottomSheetScrollView:_react.default.Fragment,content=currentModal.render({data:currentModal.latestData,footerHeight,resolve:currentModal.resolve,onChange:function onChange(newValue){updateLatestData(currentModal.id,newValue)},reject:currentModal.reject});return(0,_jsxRuntime.jsx)(Container,{children:(0,_jsxRuntime.jsx)(_View.default,{style:{paddingBottom:footerHeight},children:content})})}),[modalStack,footerHeights,updateLatestData]),contextValue=(0,_react.useMemo)((function(){return{openDrawer,dismiss,dismissAll,modalStack}}),[openDrawer,dismiss,dismissAll,modalStack]);return(0,_jsxRuntime.jsx)(BottomSheetContext.Provider,{value:contextValue,children:(0,_jsxRuntime.jsxs)(_bottomSheet.BottomSheetModalProvider,{children:[children,modalStack.filter((function(modal){return!modal.resolved&&!modal.rejected})).map((function(modal){var _modal$props$bottomSh,bottomSheetProps=Object.assign({},defaultBottomSheetModalProps,modal.props.bottomSheetProps);return bottomSheetProps.enableDynamicSizing||bottomSheetProps.snapPoints&&(!Array.isArray(bottomSheetProps.snapPoints)||0!==bottomSheetProps.snapPoints.length)||(bottomSheetProps.snapPoints=defaultSnapPoints),(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetModal,Object.assign({ref:modal.bottomSheetRef},bottomSheetProps,{onChange:function onChange(sheetIndex,position,type){return handleSheetChanges({modalId:modal.id,index:sheetIndex,position,type})},enableDismissOnClose:!0,onDismiss:function onDismiss(){return handleModalDismiss(modal.id)},containerComponent:function containerComponent(_ref7){var children=_ref7.children;return(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:modal.props.portalName||defaultPortalName,children:(0,_jsxRuntime.jsx)(_View.default,{style:Object.assign({},_StyleSheet.default.absoluteFillObject,{zIndex:9999}),children})})},stackBehavior:(null==(_modal$props$bottomSh=modal.props.bottomSheetProps)?void 0:_modal$props$bottomSh.stackBehavior)||"push",footerComponent:function footerComponent(props){return renderFooter({modalId:modal.id,footerProps:props})},handleComponent:renderHandler({modalId:modal.id}),backdropComponent:renderBackdrop,children:renderContent({modalId:modal.id})}),modal.id)}))]})})};try{BottomSheetProvider.displayName="BottomSheetProvider",BottomSheetProvider.__docgenInfo={description:"",displayName:"BottomSheetProvider",props:{defaultPortalName:{defaultValue:{value:"modal"},description:"",name:"defaultPortalName",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/BottomSheetProvider.tsx#BottomSheetProvider"]={docgenInfo:BottomSheetProvider.__docgenInfo,name:"BottomSheetProvider",path:"src/providers/BottomSheetProvider.tsx#BottomSheetProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/ConfirmProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConfirmProvider=exports.ConfirmContext=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Platform=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Platform/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_ConfirmDialog=__webpack_require__("./src/components/ConfirmDialog/ConfirmDialog.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ConfirmContext=exports.ConfirmContext=(0,_react.createContext)(void 0),ConfirmProvider=exports.ConfirmProvider=function ConfirmProvider(_ref2){var children=_ref2.children,theme=(0,_ThemeProvider.useTheme)(),_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),isVisible=_useState2[0],setIsVisible=_useState2[1],_useState3=(0,_react.useState)({title:""}),_useState4=(0,_slicedToArray2.default)(_useState3,2),options=_useState4[0],setOptions=_useState4[1],_useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),resolve=_useState6[0],setResolve=_useState6[1],styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({fixedDialog:{position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1e3},title:{textAlign:"center",fontSize:theme.fonts.bodyLarge.fontSize},notice:{paddingTop:15,textAlign:"center",fontSize:theme.fonts.bodyMedium.fontSize}})}({theme})}),[theme]),dialogStyle=(0,_react.useMemo)((function(){return"web"===_Platform.default.OS?styles.fixedDialog:{}}),[styles]),handleConfirm=function handleConfirm(value){setIsVisible(!1),resolve&&resolve(value),value&&options.onConfirm&&options.onConfirm(),!value&&options.onCancel&&options.onCancel()};return(0,_jsxRuntime.jsxs)(ConfirmContext.Provider,{value:function confirm(opts){return setOptions(opts),setIsVisible(!0),new Promise((function(_resolve){setResolve((function(){return _resolve}))}))},children:[children,isVisible?(0,_jsxRuntime.jsx)(_ConfirmDialog.ConfirmDialog,{title:options.title,notice:options.notice,confirmLabel:options.confirmLabel||"Yes",cancelLabel:options.cancelLabel||"No",onConfirm:function onConfirm(){return handleConfirm(!0)},onCancel:function onCancel(){return handleConfirm(!1)},style:dialogStyle}):void 0]})};try{ConfirmProvider.displayName="ConfirmProvider",ConfirmProvider.__docgenInfo={description:"",displayName:"ConfirmProvider",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/ConfirmProvider.tsx#ConfirmProvider"]={docgenInfo:ConfirmProvider.__docgenInfo,name:"ConfirmProvider",path:"src/providers/ConfirmProvider.tsx#ConfirmProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/LanguageProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.LanguageProvider=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_expoLocalization=__webpack_require__("./node_modules/expo-localization/build/Localization.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_i18next=_interopRequireDefault(__webpack_require__("./node_modules/i18next/dist/cjs/i18next.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_logger=__webpack_require__("./src/utils/logger.ts"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var resources={fr:{translations:{hello:"Bonjour"},select_items:{cancel:"Annuler",finish:"Terminer",search_placeholder:"Rechercher"},select_categories:{cardCount_one:"{{count}} carte",cardCount_other:"{{count}} cartes"},daily_sentence:{play:"Jouer"}},en:{translations:{hello:"Hello"},confirm_cancel_footer:{cancel:"Cancel",finish:"Finish",confirm:"Confirm"},flashcards_view:{totally_forgot:"Totally forgot",incorrect:"Incorrect",correct:"Correct",perfect_recall:"Perfect recall"},card_content:{play:"Play",audio_error:"Audio not available"},review_cards:{title:"FlashCards",subTitle:"#{{index}} [{{current}}/{{total}}] {{percent}}%",empty:"No cards available",completed_switch:"Completed cards"},review_cards_setup:{total_cards:"Total Cards: {{count}}"},review_cards_completion:{title:"Congratulations!",subTitle:"You have completed a new session.",date:"Date",duration:"Duration",total_cards:"Total Cards",completion:"Completion",next_label:"What do you want to do next?",restart:"Restart",new_session:"New Session"},updater:{newVersion:"New version available",restart:"Restart Now"},select_items:{cancel:"Cancel",finish:"Done",search_placeholder:"Rechercher",min_error:{one:"Please select at least {{count}} item",other:"Please select at least {{count}} items"},max_error:{one:"Please select at most {{count}} item",other:"Please select at most {{count}} items"}},select_categories:{cardCount_one:"{{count}} card",cardCount_other:"{{count}} cards"},daily_sentence:{play:"Play",audio_error:"Audio not available"}}},logger=_logger.baseLogger.extend("useI18nSetup"),LanguageProvider=exports.LanguageProvider=function LanguageProvider(_ref){var locale=_ref.locale,children=_ref.children,_useState=(0,_react.useState)(_i18next.default.isInitialized),_useState2=(0,_slicedToArray2.default)(_useState,2),isReady=_useState2[0],setReady=_useState2[1];return(0,_react.useEffect)((function(){if(_i18next.default.isInitialized)logger.log("i18n already initialized"),setReady(!0);else{var _getLocales$,_getLocales$2,lng=null!=locale?locale:null==(_getLocales$=(0,_expoLocalization.getLocales)()[0])?void 0:_getLocales$.languageTag;logger.info(`initializing i18n device: lng=${lng} system=${null==(_getLocales$2=(0,_expoLocalization.getLocales)()[0])?void 0:_getLocales$2.languageTag} locale=${locale}`),function initI18n(lng){return _i18next.default.use(_reactI18next.initReactI18next).init({resources,fallbackLng:"en",lng:null!=lng?lng:"en",debug:!0,interpolation:{escapeValue:!1}})}(lng).then((function(){logger.info("i18n initialized"),setReady(!0)})).catch((function(error){logger.error("Failed to initialize i18n:",error)}))}}),[logger,locale]),isReady?(0,_jsxRuntime.jsx)(_reactI18next.I18nextProvider,{i18n:_i18next.default,children}):(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{})};try{LanguageProvider.displayName="LanguageProvider",LanguageProvider.__docgenInfo={description:"",displayName:"LanguageProvider",props:{locale:{defaultValue:null,description:"",name:"locale",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/LanguageProvider.tsx#LanguageProvider"]={docgenInfo:LanguageProvider.__docgenInfo,name:"LanguageProvider",path:"src/providers/LanguageProvider.tsx#LanguageProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/ModalProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ModalProvider=exports.ModalContext=void 0;var _toConsumableArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),_asyncToGenerator2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/asyncToGenerator.js")),_slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_portal=__webpack_require__("./node_modules/@gorhom/portal/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_TouchableWithoutFeedback=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/TouchableWithoutFeedback/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_logger=__webpack_require__("./src/utils/logger.ts"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ModalContext=exports.ModalContext=(0,_react.createContext)(void 0),logger=_logger.baseLogger.extend("ModalProvider"),ModalProvider=exports.ModalProvider=function ModalProvider(_ref){var _ref3,children=_ref.children,_ref$portalName=_ref.portalName,portalName=void 0===_ref$portalName?"modal":_ref$portalName,theme=(0,_ThemeProvider.useTheme)(),_useState=(0,_react.useState)([]),_useState2=(0,_slicedToArray2.default)(_useState,2),modalStack=_useState2[0],setModalStack=_useState2[1],modalIdCounter=(0,_react.useRef)(0),handleModalDismiss=(0,_react.useCallback)((function(){if(modalStack.length>0){var currentModal=modalStack[modalStack.length-1];if(!currentModal)return void logger.debug("No current modal to dismiss");logger.debug("Dismissing modal",currentModal.id),null==currentModal||currentModal.resolve(currentModal.initialData),setModalStack((function(prevStack){return prevStack.slice(0,-1)}))}}),[modalStack]),openModal=(0,_react.useCallback)((_ref3=(0,_asyncToGenerator2.default)((function*(_ref2){var initialData=_ref2.initialData,modalProperties=_ref2.modalProps,render=_ref2.render;return new Promise((function(resolve,reject){var modalId=modalIdCounter.current++;logger.debug("Opening modal",modalId,{initialData,modalProperties});var wrapResolve=function wrapResolve(value){logger.debug("Modal resolved",modalId,value),setModalStack((function(prevStack){return prevStack.filter((function(modal){return modal.id!==modalId}))})),resolve(value)},wrapReject=function wrapReject(error){logger.debug("Modal rejected",modalId,error),setModalStack((function(prevStack){return prevStack.filter((function(modal){return modal.id!==modalId}))})),reject(error)},content=render({resolve:wrapResolve,reject:wrapReject,onChange:function wrapOnChange(value){logger.debug("Modal onChange",modalId,value),setModalStack((function(prevStack){return prevStack.map((function(modal){return modal.id===modalId?Object.assign({},modal,{initialData:value}):modal}))}))},data:initialData});setModalStack((function(prevStack){return[].concat((0,_toConsumableArray2.default)(prevStack),[{id:modalId,content,props:{initialData,modalProps:modalProperties,render},resolve:wrapResolve,reject:wrapReject,initialData}])}))}))})),function(_x){return _ref3.apply(this,arguments)}),[]),dismiss=(0,_react.useCallback)((function(){return new Promise((function(resolvePromise){if(0===modalStack.length)return logger.debug("No modals to dismiss"),void resolvePromise(!1);logger.debug("Dismissing top modal"),handleModalDismiss(),resolvePromise(!0)}))}),[handleModalDismiss,modalStack.length]),dismissAll=(0,_react.useCallback)((function(){logger.debug("Dismissing all modals",modalStack.length),modalStack.forEach((function(modal){return modal.resolve(modal.initialData)})),setModalStack([])}),[modalStack]),handleOutsideTouch=(0,_react.useCallback)((function(){if(modalStack.length>0){var _currentModal$props$m,currentModal=modalStack[modalStack.length-1];if(!currentModal)return void logger.debug("No current modal to dismiss");logger.debug("Outside touch detected",currentModal.id,currentModal.props),!1!==(null==currentModal||null==(_currentModal$props$m=currentModal.props.modalProps)?void 0:_currentModal$props$m.closeOnOutsideTouch)?(logger.debug("Closing modal on outside touch",currentModal.id),handleModalDismiss()):logger.debug("Ignoring outside touch",currentModal.id)}}),[modalStack,handleModalDismiss]),contextValue=(0,_react.useMemo)((function(){return{openModal,dismiss,dismissAll}}),[openModal,dismiss,dismissAll]);return(0,_jsxRuntime.jsxs)(ModalContext.Provider,{value:contextValue,children:[children,(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:portalName,children:modalStack.map((function(modal,index){var _modal$props$modalPro,_modal$props$modalPro2,_modal$props$modalPro3,_modal$props$modalPro4,showBackdrop=null==(_modal$props$modalPro=null==(_modal$props$modalPro2=modal.props.modalProps)?void 0:_modal$props$modalPro2.showBackdrop)||_modal$props$modalPro,customStyles=null!=(_modal$props$modalPro3=null==(_modal$props$modalPro4=modal.props.modalProps)?void 0:_modal$props$modalPro4.styles)?_modal$props$modalPro3:{};return console.log(`displaying modal ${modal.id} showBackdrop: ${showBackdrop}`,modal.props.modalProps),(0,_jsxRuntime.jsx)(_TouchableWithoutFeedback.default,{onPress:handleOutsideTouch,children:(0,_jsxRuntime.jsx)(_View.default,{style:[_StyleSheet.default.absoluteFillObject,styles.modalContainer,showBackdrop&&styles.backdrop,{zIndex:9999+index},customStyles.modalContainer],children:(0,_jsxRuntime.jsx)(_TouchableWithoutFeedback.default,{children:(0,_jsxRuntime.jsx)(_View.default,{style:[styles.modalContent,{backgroundColor:theme.colors.surface},customStyles.modalContent],children:modal.content})})})},modal.id)}))})]})},styles=_StyleSheet.default.create({modalContainer:{justifyContent:"center",alignItems:"center"},backdrop:{backgroundColor:"rgba(0, 0, 0, 0.5)"},modalContent:{padding:20,borderRadius:8,margin:20,maxWidth:"90%",maxHeight:"90%"}});try{ModalProvider.displayName="ModalProvider",ModalProvider.__docgenInfo={description:"",displayName:"ModalProvider",props:{portalName:{defaultValue:{value:"modal"},description:"",name:"portalName",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/ModalProvider.tsx#ModalProvider"]={docgenInfo:ModalProvider.__docgenInfo,name:"ModalProvider",path:"src/providers/ModalProvider.tsx#ModalProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/OverlayProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useOverlay=exports.OverlayProvider=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var OverlayContext=(0,_react.createContext)(void 0),OverlayProvider=(exports.useOverlay=function useOverlay(){var context=(0,_react.useContext)(OverlayContext);if(!context)throw new Error("useOverlay must be used within an OverlayProvider");return context},exports.OverlayProvider=function OverlayProvider(_ref){var children=_ref.children,_ref$initialZIndex=_ref.initialZIndex,initialZIndex=void 0===_ref$initialZIndex?1e3:_ref$initialZIndex,_useState=(0,_react.useState)(initialZIndex),_useState2=(0,_slicedToArray2.default)(_useState,2),currentZIndex=_useState2[0],setCurrentZIndex=_useState2[1],getNextZIndex=(0,_react.useCallback)((function(){return setCurrentZIndex((function(prevZIndex){return prevZIndex+1})),currentZIndex}),[]);return(0,_jsxRuntime.jsx)(OverlayContext.Provider,{value:{getNextZIndex},children})});try{OverlayProvider.displayName="OverlayProvider",OverlayProvider.__docgenInfo={description:"",displayName:"OverlayProvider",props:{initialZIndex:{defaultValue:{value:"1000"},description:"",name:"initialZIndex",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/OverlayProvider.tsx#OverlayProvider"]={docgenInfo:OverlayProvider.__docgenInfo,name:"OverlayProvider",path:"src/providers/OverlayProvider.tsx#OverlayProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/ThemeProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.useThemePreferences=exports.useTheme=exports.ThemeProvider=exports.PreferencesContext=void 0;var _react=_interopRequireDefault(__webpack_require__("./node_modules/react/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),PreferencesContext=exports.PreferencesContext=_react.default.createContext(null),ThemeProvider=exports.ThemeProvider=function ThemeProvider(_ref){var children=_ref.children,preferences=_ref.preferences;return(0,_jsxRuntime.jsx)(PreferencesContext.Provider,{value:preferences,children:(0,_jsxRuntime.jsx)(_reactNativePaper.PaperProvider,{theme:preferences.theme,settings:{rippleEffectEnabled:preferences.rippleEffectEnabled},children})})};exports.useThemePreferences=function useThemePreferences(){var context=_react.default.useContext(PreferencesContext);if(!context)throw new Error("useThemePreferences must be used within a ThemeProvider");return context},exports.useTheme=function useTheme(){var context=_react.default.useContext(PreferencesContext);if(!context)throw new Error("useTheme must be used within a ThemeProvider ooo");return context.theme};try{ThemeProvider.displayName="ThemeProvider",ThemeProvider.__docgenInfo={description:"",displayName:"ThemeProvider",props:{preferences:{defaultValue:null,description:"",name:"preferences",required:!0,type:{name:"ThemePreferences & ThemeActions"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/ThemeProvider.tsx#ThemeProvider"]={docgenInfo:ThemeProvider.__docgenInfo,name:"ThemeProvider",path:"src/providers/ThemeProvider.tsx#ThemeProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/ToastProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ToastProvider=exports.ToastContext=exports.ToastActionType=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_Keyboard=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Keyboard/index.js")),_Toast=__webpack_require__("./src/components/Toast/Toast.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ToastActionType=exports.ToastActionType=function(ToastActionType){return ToastActionType.SHOW="SHOW",ToastActionType.HIDE="HIDE",ToastActionType.HYDRATE="HYDRATE",ToastActionType}({}),ToastContext=exports.ToastContext=(0,_react.createContext)(null),ToastProvider=exports.ToastProvider=function ToastProvider(_ref){var children=_ref.children,overrides=_ref.overrides,initialState=(0,_react.useMemo)((function(){return Object.assign({visibility:!1,message:"",type:"info",position:"bottom",iconVisible:!1},overrides)}),[overrides]),_useReducer=(0,_react.useReducer)(function reducer(initialState){return function(state,action){switch(action.type){case ToastActionType.SHOW:return Object.assign({},initialState,action.payload,{visibility:!0});case ToastActionType.HIDE:return Object.assign({},state,{visibility:!1});case ToastActionType.HYDRATE:return Object.assign({},initialState,action.payload);default:return state}}}(initialState),initialState),_useReducer2=(0,_slicedToArray2.default)(_useReducer,2),state=_useReducer2[0],dispatch=_useReducer2[1],toastMethods=(0,_react.useMemo)((function(){return{show:function show(options){dispatch({type:ToastActionType.SHOW,payload:Object.assign({},options)}),"bottom"===options.position&&_Keyboard.default.dismiss()},loader:function loader(message,options){dispatch({type:ToastActionType.SHOW,payload:Object.assign({},options,{message,loading:!0})}),"bottom"===(null==options?void 0:options.position)&&_Keyboard.default.dismiss()},hide:function hide(){dispatch({type:ToastActionType.HIDE})}}}),[]);(0,_react.useEffect)((function(){dispatch({type:ToastActionType.HYDRATE,payload:initialState})}),[initialState]);return(0,_jsxRuntime.jsxs)(ToastContext.Provider,{value:toastMethods,children:[children,(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},state,{onDismiss:function handleDismiss(){null==state.onDismiss||state.onDismiss(),toastMethods.hide()}}))]})};try{ToastProvider.displayName="ToastProvider",ToastProvider.__docgenInfo={description:"",displayName:"ToastProvider",props:{overrides:{defaultValue:null,description:"",name:"overrides",required:!1,type:{name:"Partial"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/ToastProvider.tsx#ToastProvider"]={docgenInfo:ToastProvider.__docgenInfo,name:"ToastProvider",path:"src/providers/ToastProvider.tsx#ToastProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/providers/UIProvider.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.UIProvider=exports.DefaultLightTheme=exports.DefaultDarkTheme=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_portal=__webpack_require__("./node_modules/@gorhom/portal/lib/module/index.js"),_native=__webpack_require__("./node_modules/@react-navigation/native/lib/module/index.js"),_react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_reactNativeGestureHandler=__webpack_require__("./node_modules/react-native-gesture-handler/lib/module/index.js"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_useAppPreferencesSetup=__webpack_require__("./src/hooks/_useAppPreferencesSetup.tsx"),_useAppThemeSetup2=__webpack_require__("./src/hooks/_useAppThemeSetup.tsx"),_BottomSheetProvider=__webpack_require__("./src/providers/BottomSheetProvider.tsx"),_ConfirmProvider=__webpack_require__("./src/providers/ConfirmProvider.tsx"),_LanguageProvider=__webpack_require__("./src/providers/LanguageProvider.tsx"),_ModalProvider=__webpack_require__("./src/providers/ModalProvider.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_ToastProvider=__webpack_require__("./src/providers/ToastProvider.tsx"),_OverlayProvider=__webpack_require__("./src/providers/OverlayProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var DefaultLightTheme=exports.DefaultLightTheme=Object.assign({},_reactNativePaper.MD3LightTheme,{dark:!1,padding:{s:5,m:10,l:15},margin:{s:5,m:10,l:15},gap:{s:5,m:8,l:8},colors:Object.assign({},_reactNativePaper.MD3LightTheme.colors,_native.DefaultTheme.colors,{brand:_reactNativePaper.MD3Colors.primary0,success:"#90EE90",successContainer:"rgba(75,153,79,0.1)",warning:"#FFC300",warningContainer:"rgba(255,193,7,0.1)",info:"#00BBFF",infoContainer:"rgba(0,122,255,0.1)"})}),DefaultDarkTheme=exports.DefaultDarkTheme=Object.assign({},_reactNativePaper.MD3DarkTheme,{dark:!0,padding:{s:5,m:10,l:15},margin:{s:5,m:10,l:15},gap:{s:5,m:8,l:8},colors:Object.assign({},_reactNativePaper.MD3DarkTheme.colors,_native.DarkTheme.colors,{brand:_reactNativePaper.MD3Colors.primary0,success:"rgba(75,153,79,0.9)",successContainer:"rgba(75,153,79,0.1)",warning:"rgba(255,193,7,0.9)",warningContainer:"rgba(255,193,7,0.1)",info:"rgba(0,122,255,0.9)",infoContainer:"rgba(0,122,255,0.1)"})}),UIProviderWithLanguageReady=function UIProviderWithLanguageReady(_ref){var preferences=_ref.preferences,actions=_ref.actions,darkTheme=_ref.darkTheme,lightTheme=_ref.lightTheme,toastProviderProps=_ref.toastProviderProps,confirmProviderProps=_ref.confirmProviderProps,_ref$portalName=_ref.portalName,portalName=void 0===_ref$portalName?"modal":_ref$portalName,children=_ref.children,_React$useState=_react.default.useState(),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),activePreferences=_React$useState2[0],setActivePreferences=_React$useState2[1],i18n=(0,_reactI18next.useTranslation)().i18n,_useAppThemeSetup=(0,_useAppThemeSetup2.useAppThemeSetup)({customDarkTheme:DefaultDarkTheme,customLightTheme:DefaultLightTheme}),defaultTheme=_useAppThemeSetup.theme,darkMode=_useAppThemeSetup.darkMode,setDarkMode=_useAppThemeSetup.setDarkMode,setThemeVersion=_useAppThemeSetup.setThemeVersion,theme=_react.default.useMemo((function(){return darkMode?Object.assign({},defaultTheme,darkTheme):Object.assign({},defaultTheme,lightTheme)}),[darkMode,darkTheme,lightTheme,defaultTheme]),defaultPreferences=(0,_useAppPreferencesSetup.useAppPreferencesSetup)({theme,setDarkMode,i18nInstance:i18n,setThemeVersion,savePreferences:function savePreferences(_){}});return(0,_react.useEffect)((function(){var dynPrefs=Object.assign({},defaultPreferences);preferences?dynPrefs=Object.assign({},dynPrefs,preferences):actions&&(dynPrefs=Object.assign({},dynPrefs,actions)),setActivePreferences(dynPrefs)}),[preferences,actions]),activePreferences?(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.GestureHandlerRootView,{style:{flex:1},children:(0,_jsxRuntime.jsx)(_portal.PortalProvider,{children:(0,_jsxRuntime.jsx)(_ThemeProvider.ThemeProvider,{preferences:defaultPreferences,children:(0,_jsxRuntime.jsx)(_OverlayProvider.OverlayProvider,{children:(0,_jsxRuntime.jsx)(_ConfirmProvider.ConfirmProvider,Object.assign({},confirmProviderProps,{children:(0,_jsxRuntime.jsx)(_ToastProvider.ToastProvider,Object.assign({},toastProviderProps,{children:(0,_jsxRuntime.jsx)(_BottomSheetProvider.BottomSheetProvider,{defaultPortalName:portalName,children:(0,_jsxRuntime.jsx)(_ModalProvider.ModalProvider,{portalName,children:(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[children,(0,_jsxRuntime.jsx)(_portal.PortalHost,{name:portalName})]})})})}))}))})})})}):(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{})},UIProviderWithLanguage=function UIProviderWithLanguage(props){return(0,_reactI18next.useTranslation)().i18n.isInitialized?(0,_jsxRuntime.jsx)(UIProviderWithLanguageReady,Object.assign({},props)):(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{})},UIProvider=exports.UIProvider=function UIProvider(_ref2){var locale=_ref2.locale,actions=_ref2.actions,safeAreaProviderProps=_ref2.safeAreaProviderProps,toastProviderProps=_ref2.toastProviderProps,confirmProviderProps=_ref2.confirmProviderProps,preferences=_ref2.preferences,darkTheme=_ref2.darkTheme,lightTheme=_ref2.lightTheme,children=_ref2.children;return(0,_jsxRuntime.jsx)(_reactNativeSafeAreaContext.SafeAreaProvider,Object.assign({},safeAreaProviderProps,{children:(0,_jsxRuntime.jsx)(_LanguageProvider.LanguageProvider,{locale,children:(0,_jsxRuntime.jsx)(UIProviderWithLanguage,{actions,darkTheme,lightTheme,preferences,toastProviderProps,confirmProviderProps,children})})}))};try{UIProvider.displayName="UIProvider",UIProvider.__docgenInfo={description:"",displayName:"UIProvider",props:{locale:{defaultValue:null,description:"",name:"locale",required:!1,type:{name:"string"}},lightTheme:{defaultValue:null,description:"",name:"lightTheme",required:!1,type:{name:"AppTheme"}},darkTheme:{defaultValue:null,description:"",name:"darkTheme",required:!1,type:{name:"AppTheme"}},portalName:{defaultValue:{value:"modal"},description:"",name:"portalName",required:!1,type:{name:"string"}},preferences:{defaultValue:null,description:"",name:"preferences",required:!1,type:{name:'Partial>'}},actions:{defaultValue:null,description:"",name:"actions",required:!1,type:{name:"Partial"}},safeAreaProviderProps:{defaultValue:null,description:"",name:"safeAreaProviderProps",required:!1,type:{name:"SafeAreaProviderProps"}},toastProviderProps:{defaultValue:null,description:"",name:"toastProviderProps",required:!1,type:{name:'Partial>'}},confirmProviderProps:{defaultValue:null,description:"",name:"confirmProviderProps",required:!1,type:{name:'Partial>'}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/providers/UIProvider.tsx#UIProvider"]={docgenInfo:UIProvider.__docgenInfo,name:"UIProvider",path:"src/providers/UIProvider.tsx#UIProvider"})}catch(__react_docgen_typescript_loader_error){}},"./src/settings/ThemeConfig/ThemeConfig.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.ThemeConfig=void 0;var _react=function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}(__webpack_require__("./node_modules/react/index.js")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ColorPicker=__webpack_require__("./src/components/Colors/ColorPicker/ColorPicker.tsx"),_LabelSwitch=__webpack_require__("./src/components/LabelSwitch/LabelSwitch.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js");function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function _getRequireWildcardCache(e){return e?t:r})(e)}var ThemeConfig=exports.ThemeConfig=function ThemeConfig(_ref){var _ref$flexDirection=_ref.flexDirection,flexDirection=void 0===_ref$flexDirection?"row":_ref$flexDirection,colors=_ref.colors,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{backgroundColor:theme.colors.surface,display:"flex",flexWrap:"wrap",gap:theme.padding.s,padding:theme.padding.s,justifyContent:"center",alignItems:"center"}})}(theme)}),[theme]),_useThemePreferences=(0,_ThemeProvider.useThemePreferences)(),toggleDarkMode=_useThemePreferences.toggleDarkMode,setThemeColor=_useThemePreferences.setThemeColor,darkMode=_useThemePreferences.darkMode,i18n=(0,_reactI18next.useTranslation)().i18n;return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,{flexDirection}],children:[(0,_jsxRuntime.jsx)(_LabelSwitch.LabelSwitch,{label:"DarkMode",value:darkMode,onValueChange:toggleDarkMode}),(0,_jsxRuntime.jsx)(_ColorPicker.ColorPicker,{label:"Primary",color:theme.colors.primary,colorOptions:colors,onChange:function onChange(newColor){console.log(newColor)}}),(0,_jsxRuntime.jsx)(_ColorPicker.ColorPicker,{label:"Secondary",color:theme.colors.secondary,colorOptions:colors,onChange:function onChange(newColor){console.log(newColor),setThemeColor({name:"secondary",value:newColor})}}),(0,_jsxRuntime.jsx)(_reactNativePaper.SegmentedButtons,{value:i18n.language,onValueChange:function onValueChange(newLocale){newLocale!==i18n.language&&(console.log(`change language to ${newLocale}`,i18n),i18n.changeLanguage(newLocale))},buttons:[{label:"EN",value:"en"},{label:"FR",value:"fr"}]})]})};try{ThemeConfig.displayName="ThemeConfig",ThemeConfig.__docgenInfo={description:"",displayName:"ThemeConfig",props:{flexDirection:{defaultValue:{value:"row"},description:"",name:"flexDirection",required:!1,type:{name:"enum",value:[{value:'"row"'},{value:'"column"'}]}},colors:{defaultValue:null,description:"",name:"colors",required:!0,type:{name:"string[]"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/settings/ThemeConfig/ThemeConfig.tsx#ThemeConfig"]={docgenInfo:ThemeConfig.__docgenInfo,name:"ThemeConfig",path:"src/settings/ThemeConfig/ThemeConfig.tsx#ThemeConfig"})}catch(__react_docgen_typescript_loader_error){}},"./src/utils/logger.ts":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.baseLogger=void 0;var _reactNativeLogger=__webpack_require__("./node_modules/@siteed/react-native-logger/dist/logger.js");exports.baseLogger=(0,_reactNativeLogger.getLogger)("DesignSystem")},"./src/pages lazy recursive ^\\.\\/.*$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./Installation.mdx":["./src/pages/Installation.mdx",9684,9817],"./Introduction.mdx":["./src/pages/Introduction.mdx",9684,2429],"./Providers.mdx":["./src/pages/Providers.mdx",9684,1707]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src/pages lazy recursive ^\\.\\/.*$",module.exports=webpackAsyncContext},"./src lazy recursive ^\\.\\/.*$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./":["./src/index.ts",7,3880,7270,4702,2870,1478],"./_mocks/mock_data":["./src/_mocks/mock_data.tsx",9],"./_mocks/mock_data.tsx":["./src/_mocks/mock_data.tsx",9],"./components/Accordion/Accordion":["./src/components/Accordion/Accordion.tsx",9,8276],"./components/Accordion/Accordion.stories":["./src/components/Accordion/Accordion.stories.tsx",9,4383],"./components/Accordion/Accordion.stories.tsx":["./src/components/Accordion/Accordion.stories.tsx",9,4383],"./components/Accordion/Accordion.tsx":["./src/components/Accordion/Accordion.tsx",9,8276],"./components/Accordion/AccordionItem/AccordionItem":["./src/components/Accordion/AccordionItem/AccordionItem.tsx",9,3895],"./components/Accordion/AccordionItem/AccordionItem.stories":["./src/components/Accordion/AccordionItem/AccordionItem.stories.tsx",9,9764],"./components/Accordion/AccordionItem/AccordionItem.stories.tsx":["./src/components/Accordion/AccordionItem/AccordionItem.stories.tsx",9,9764],"./components/Accordion/AccordionItem/AccordionItem.tsx":["./src/components/Accordion/AccordionItem/AccordionItem.tsx",9,3895],"./components/Avatar/Avatar":["./src/components/Avatar/Avatar.tsx",9,7e3],"./components/Avatar/Avatar.tsx":["./src/components/Avatar/Avatar.tsx",9,7e3],"./components/Avatar/avatar.stories":["./src/components/Avatar/avatar.stories.tsx",9,3891],"./components/Avatar/avatar.stories.tsx":["./src/components/Avatar/avatar.stories.tsx",9,3891],"./components/Button/Button":["./src/components/Button/Button.tsx",9],"./components/Button/Button.stories":["./src/components/Button/Button.stories.tsx",9,9541],"./components/Button/Button.stories.tsx":["./src/components/Button/Button.stories.tsx",9,9541],"./components/Button/Button.styles":["./src/components/Button/Button.styles.ts",9,3888],"./components/Button/Button.styles.ts":["./src/components/Button/Button.styles.ts",9,3888],"./components/Button/Button.test":["./src/components/Button/Button.test.tsx",7,3880,1202,8654],"./components/Button/Button.test.tsx":["./src/components/Button/Button.test.tsx",7,3880,1202,8654],"./components/Button/Button.tsx":["./src/components/Button/Button.tsx",9],"./components/Button/__snapshots__/Button.test.tsx.snap":["./src/components/Button/__snapshots__/Button.test.tsx.snap",7,2758],"./components/Colors/ColorItem/ColorItem":["./src/components/Colors/ColorItem/ColorItem.tsx",9,2653],"./components/Colors/ColorItem/ColorItem.stories":["./src/components/Colors/ColorItem/ColorItem.stories.tsx",9,8782],"./components/Colors/ColorItem/ColorItem.stories.tsx":["./src/components/Colors/ColorItem/ColorItem.stories.tsx",9,8782],"./components/Colors/ColorItem/ColorItem.tsx":["./src/components/Colors/ColorItem/ColorItem.tsx",9,2653],"./components/Colors/ColorPicker/ColorPicker":["./src/components/Colors/ColorPicker/ColorPicker.tsx",9],"./components/Colors/ColorPicker/ColorPicker.stories":["./src/components/Colors/ColorPicker/ColorPicker.stories.tsx",9,3154],"./components/Colors/ColorPicker/ColorPicker.stories.tsx":["./src/components/Colors/ColorPicker/ColorPicker.stories.tsx",9,3154],"./components/Colors/ColorPicker/ColorPicker.tsx":["./src/components/Colors/ColorPicker/ColorPicker.tsx",9],"./components/ConfirmDialog/ConfirmDialog":["./src/components/ConfirmDialog/ConfirmDialog.tsx",9],"./components/ConfirmDialog/ConfirmDialog.stories":["./src/components/ConfirmDialog/ConfirmDialog.stories.tsx",9,2819],"./components/ConfirmDialog/ConfirmDialog.stories.tsx":["./src/components/ConfirmDialog/ConfirmDialog.stories.tsx",9,2819],"./components/ConfirmDialog/ConfirmDialog.tsx":["./src/components/ConfirmDialog/ConfirmDialog.tsx",9],"./components/Divider/Divider":["./src/components/Divider/Divider.tsx",9,7228],"./components/Divider/Divider.tsx":["./src/components/Divider/Divider.tsx",9,7228],"./components/DynInput/DynInput":["./src/components/DynInput/DynInput.tsx",9],"./components/DynInput/DynInput.mdx":["./src/components/DynInput/DynInput.mdx",9,5604],"./components/DynInput/DynInput.stories":["./src/components/DynInput/DynInput.stories.tsx",9,3499],"./components/DynInput/DynInput.stories.tsx":["./src/components/DynInput/DynInput.stories.tsx",9,3499],"./components/DynInput/DynInput.tsx":["./src/components/DynInput/DynInput.tsx",9],"./components/EditableInfoCard/EditableInfoCard":["./src/components/EditableInfoCard/EditableInfoCard.tsx",9,4618],"./components/EditableInfoCard/EditableInfoCard.stories":["./src/components/EditableInfoCard/EditableInfoCard.stories.tsx",9,411,6385],"./components/EditableInfoCard/EditableInfoCard.stories.tsx":["./src/components/EditableInfoCard/EditableInfoCard.stories.tsx",9,411,6385],"./components/EditableInfoCard/EditableInfoCard.tsx":["./src/components/EditableInfoCard/EditableInfoCard.tsx",9,4618],"./components/Empty/Empty":["./src/components/Empty/Empty.tsx",9,5580],"./components/Empty/Empty.stories":["./src/components/Empty/Empty.stories.tsx",9,3047],"./components/Empty/Empty.stories.tsx":["./src/components/Empty/Empty.stories.tsx",9,3047],"./components/Empty/Empty.tsx":["./src/components/Empty/Empty.tsx",9,5580],"./components/FAB/FABGroup":["./src/components/FAB/FABGroup.tsx",9,4983],"./components/FAB/FABGroup.tsx":["./src/components/FAB/FABGroup.tsx",9,4983],"./components/FAB/utils":["./src/components/FAB/utils.ts",9,560],"./components/FAB/utils.ts":["./src/components/FAB/utils.ts",9,560],"./components/HelperText/HelperText":["./src/components/HelperText/HelperText.tsx",9,868],"./components/HelperText/HelperText.stories":["./src/components/HelperText/HelperText.stories.tsx",9,9287],"./components/HelperText/HelperText.stories.tsx":["./src/components/HelperText/HelperText.stories.tsx",9,9287],"./components/HelperText/HelperText.tsx":["./src/components/HelperText/HelperText.tsx",9,868],"./components/HelperWrapper/HelperWrapper":["./src/components/HelperWrapper/HelperWrapper.tsx",9,1372],"./components/HelperWrapper/HelperWrapper.stories":["./src/components/HelperWrapper/HelperWrapper.stories.tsx",9,3880,7270,4702,2870,1478,7535],"./components/HelperWrapper/HelperWrapper.stories.tsx":["./src/components/HelperWrapper/HelperWrapper.stories.tsx",9,3880,7270,4702,2870,1478,7535],"./components/HelperWrapper/HelperWrapper.tsx":["./src/components/HelperWrapper/HelperWrapper.tsx",9,1372],"./components/LabelSwitch/LabelSwitch":["./src/components/LabelSwitch/LabelSwitch.tsx",9],"./components/LabelSwitch/LabelSwitch.stories":["./src/components/LabelSwitch/LabelSwitch.stories.tsx",9,1027],"./components/LabelSwitch/LabelSwitch.stories.tsx":["./src/components/LabelSwitch/LabelSwitch.stories.tsx",9,1027],"./components/LabelSwitch/LabelSwitch.tsx":["./src/components/LabelSwitch/LabelSwitch.tsx",9],"./components/ListItem/ListItem":["./src/components/ListItem/ListItem.tsx",9,7596],"./components/ListItem/ListItem.stories":["./src/components/ListItem/ListItem.stories.tsx",9,6119],"./components/ListItem/ListItem.stories.tsx":["./src/components/ListItem/ListItem.stories.tsx",9,6119],"./components/ListItem/ListItem.tsx":["./src/components/ListItem/ListItem.tsx",9,7596],"./components/LockInput/LockInput":["./src/components/LockInput/LockInput.tsx",9,2076],"./components/LockInput/LockInput.stories":["./src/components/LockInput/LockInput.stories.tsx",9,5428],"./components/LockInput/LockInput.stories.tsx":["./src/components/LockInput/LockInput.stories.tsx",9,5428],"./components/LockInput/LockInput.tsx":["./src/components/LockInput/LockInput.tsx",9,2076],"./components/Notice/Notice":["./src/components/Notice/Notice.tsx",9,5838],"./components/Notice/Notice.stories":["./src/components/Notice/Notice.stories.tsx",9,7445],"./components/Notice/Notice.stories.tsx":["./src/components/Notice/Notice.stories.tsx",9,7445],"./components/Notice/Notice.tsx":["./src/components/Notice/Notice.tsx",9,5838],"./components/NumberAdjuster/NumberAdjuster":["./src/components/NumberAdjuster/NumberAdjuster.tsx",9,6040],"./components/NumberAdjuster/NumberAdjuster.stories":["./src/components/NumberAdjuster/NumberAdjuster.stories.tsx",9,3443],"./components/NumberAdjuster/NumberAdjuster.stories.tsx":["./src/components/NumberAdjuster/NumberAdjuster.stories.tsx",9,3443],"./components/NumberAdjuster/NumberAdjuster.tsx":["./src/components/NumberAdjuster/NumberAdjuster.tsx",9,6040],"./components/Pagination/Pagination":["./src/components/Pagination/Pagination.tsx",9,3610],"./components/Pagination/Pagination.stories":["./src/components/Pagination/Pagination.stories.tsx",9,6945],"./components/Pagination/Pagination.stories.tsx":["./src/components/Pagination/Pagination.stories.tsx",9,6945],"./components/Pagination/Pagination.tsx":["./src/components/Pagination/Pagination.tsx",9,3610],"./components/Pagination/PaginationItem":["./src/components/Pagination/PaginationItem.tsx",9,7123],"./components/Pagination/PaginationItem.stories":["./src/components/Pagination/PaginationItem.stories.tsx",9,4396],"./components/Pagination/PaginationItem.stories.tsx":["./src/components/Pagination/PaginationItem.stories.tsx",9,4396],"./components/Pagination/PaginationItem.tsx":["./src/components/Pagination/PaginationItem.tsx",9,7123],"./components/Picker/Picker":["./src/components/Picker/Picker.tsx",9,2870],"./components/Picker/Picker.stories":["./src/components/Picker/Picker.stories.tsx",9,2870,1357],"./components/Picker/Picker.stories.tsx":["./src/components/Picker/Picker.stories.tsx",9,2870,1357],"./components/Picker/Picker.tsx":["./src/components/Picker/Picker.tsx",9,2870],"./components/Picker/PickerContent":["./src/components/Picker/PickerContent.tsx",9,1607],"./components/Picker/PickerContent.tsx":["./src/components/Picker/PickerContent.tsx",9,1607],"./components/RefreshControl/Loader":["./src/components/RefreshControl/Loader.tsx",9,7115],"./components/RefreshControl/Loader.tsx":["./src/components/RefreshControl/Loader.tsx",9,7115],"./components/RefreshControl/RefreshControl":["./src/components/RefreshControl/RefreshControl.tsx",9,4702],"./components/RefreshControl/RefreshControl.stories":["./src/components/RefreshControl/RefreshControl.stories.tsx",9,4702,3885],"./components/RefreshControl/RefreshControl.stories.tsx":["./src/components/RefreshControl/RefreshControl.stories.tsx",9,4702,3885],"./components/RefreshControl/RefreshControl.tsx":["./src/components/RefreshControl/RefreshControl.tsx",9,4702],"./components/Result/Result":["./src/components/Result/Result.tsx",9,7424],"./components/Result/Result.stories":["./src/components/Result/Result.stories.tsx",9,4267],"./components/Result/Result.stories.tsx":["./src/components/Result/Result.stories.tsx",9,4267],"./components/Result/Result.tsx":["./src/components/Result/Result.tsx",9,7424],"./components/ScreenWrapper/ScreenWrapper":["./src/components/ScreenWrapper/ScreenWrapper.tsx",9],"./components/ScreenWrapper/ScreenWrapper.stories":["./src/components/ScreenWrapper/ScreenWrapper.stories.tsx",9,4103],"./components/ScreenWrapper/ScreenWrapper.stories.tsx":["./src/components/ScreenWrapper/ScreenWrapper.stories.tsx",9,4103],"./components/ScreenWrapper/ScreenWrapper.tsx":["./src/components/ScreenWrapper/ScreenWrapper.tsx",9],"./components/SelectButtons/SelectButtons":["./src/components/SelectButtons/SelectButtons.tsx",9],"./components/SelectButtons/SelectButtons.stories":["./src/components/SelectButtons/SelectButtons.stories.tsx",9,3535],"./components/SelectButtons/SelectButtons.stories.tsx":["./src/components/SelectButtons/SelectButtons.stories.tsx",9,3535],"./components/SelectButtons/SelectButtons.tsx":["./src/components/SelectButtons/SelectButtons.tsx",9],"./components/SelectItems/SelectItems":["./src/components/SelectItems/SelectItems.tsx",9,4680],"./components/SelectItems/SelectItems.tsx":["./src/components/SelectItems/SelectItems.tsx",9,4680],"./components/SelectItems/SelectItemsstories":["./src/components/SelectItems/SelectItemsstories.tsx",9,4085],"./components/SelectItems/SelectItemsstories.tsx":["./src/components/SelectItems/SelectItemsstories.tsx",9,4085],"./components/Skeleton/LoadingPulseBar/LoadingPulseBar":["./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx",9,1336],"./components/Skeleton/LoadingPulseBar/LoadingPulseBar.stories":["./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.stories.tsx",9,843],"./components/Skeleton/LoadingPulseBar/LoadingPulseBar.stories.tsx":["./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.stories.tsx",9,843],"./components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx":["./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx",9,1336],"./components/Skeleton/LoadingPulseCircle/LoadingPulseCircle":["./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx",9,7036],"./components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.stories":["./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.stories.tsx",9,1863],"./components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.stories.tsx":["./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.stories.tsx",9,1863],"./components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx":["./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx",9,7036],"./components/Skeleton/Skeleton":["./src/components/Skeleton/Skeleton.tsx",9,8908],"./components/Skeleton/Skeleton.stories":["./src/components/Skeleton/Skeleton.stories.tsx",9,8023],"./components/Skeleton/Skeleton.stories.tsx":["./src/components/Skeleton/Skeleton.stories.tsx",9,8023],"./components/Skeleton/Skeleton.tsx":["./src/components/Skeleton/Skeleton.tsx",9,8908],"./components/Slider/Slider":["./src/components/Slider/Slider.tsx",9,3880,7270,4800],"./components/Slider/Slider.stories":["./src/components/Slider/Slider.stories.tsx",9,3880,7270,9235],"./components/Slider/Slider.stories.tsx":["./src/components/Slider/Slider.stories.tsx",9,3880,7270,9235],"./components/Slider/Slider.tsx":["./src/components/Slider/Slider.tsx",9,3880,7270,4800],"./components/Spacer/Spacer":["./src/components/Spacer/Spacer.tsx",9,6786],"./components/Spacer/Spacer.tsx":["./src/components/Spacer/Spacer.tsx",9,6786],"./components/TextInput/TextInput":["./src/components/TextInput/TextInput.tsx",9],"./components/TextInput/TextInput.stories":["./src/components/TextInput/TextInput.stories.tsx",9,5491],"./components/TextInput/TextInput.stories.tsx":["./src/components/TextInput/TextInput.stories.tsx",9,5491],"./components/TextInput/TextInput.tsx":["./src/components/TextInput/TextInput.tsx",9],"./components/ThemedView/ThemedView":["./src/components/ThemedView/ThemedView.tsx",9,5346],"./components/ThemedView/ThemedView.stories":["./src/components/ThemedView/ThemedView.stories.tsx",9,1625],"./components/ThemedView/ThemedView.stories.tsx":["./src/components/ThemedView/ThemedView.stories.tsx",9,1625],"./components/ThemedView/ThemedView.tsx":["./src/components/ThemedView/ThemedView.tsx",9,5346],"./components/Toast/Toast":["./src/components/Toast/Toast.tsx",9],"./components/Toast/Toast.stories":["./src/components/Toast/Toast.stories.tsx",9,5543],"./components/Toast/Toast.stories.tsx":["./src/components/Toast/Toast.stories.tsx",9,5543],"./components/Toast/Toast.tsx":["./src/components/Toast/Toast.tsx",9],"./components/bottom-modal/CustomBackdrop/CustomBackdrop":["./src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx",9,8140],"./components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx":["./src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx",9,8140],"./components/bottom-modal/footers/ConfirmCancelFooter":["./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx",9],"./components/bottom-modal/footers/ConfirmCancelFooter.stories":["./src/components/bottom-modal/footers/ConfirmCancelFooter.stories.tsx",9,7340],"./components/bottom-modal/footers/ConfirmCancelFooter.stories.tsx":["./src/components/bottom-modal/footers/ConfirmCancelFooter.stories.tsx",9,7340],"./components/bottom-modal/footers/ConfirmCancelFooter.tsx":["./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx",9],"./components/bottom-modal/handlers/LabelHandler":["./src/components/bottom-modal/handlers/LabelHandler.tsx",9],"./components/bottom-modal/handlers/LabelHandler.stories":["./src/components/bottom-modal/handlers/LabelHandler.stories.tsx",9,6510],"./components/bottom-modal/handlers/LabelHandler.stories.tsx":["./src/components/bottom-modal/handlers/LabelHandler.stories.tsx",9,6510],"./components/bottom-modal/handlers/LabelHandler.tsx":["./src/components/bottom-modal/handlers/LabelHandler.tsx",9],"./hooks/_useAppPreferencesSetup":["./src/hooks/_useAppPreferencesSetup.tsx",9],"./hooks/_useAppPreferencesSetup.tsx":["./src/hooks/_useAppPreferencesSetup.tsx",9],"./hooks/_useAppThemeSetup":["./src/hooks/_useAppThemeSetup.tsx",9],"./hooks/_useAppThemeSetup.tsx":["./src/hooks/_useAppThemeSetup.tsx",9],"./hooks/useConfirm/useConfirm":["./src/hooks/useConfirm/useConfirm.tsx",9,6022],"./hooks/useConfirm/useConfirm.mdx":["./src/hooks/useConfirm/useConfirm.mdx",9,9684,2268],"./hooks/useConfirm/useConfirm.tsx":["./src/hooks/useConfirm/useConfirm.tsx",9,6022],"./hooks/useModal/editProps.stories":["./src/hooks/useModal/editProps.stories.tsx",9,1391],"./hooks/useModal/editProps.stories.tsx":["./src/hooks/useModal/editProps.stories.tsx",9,1391],"./hooks/useModal/openDrawer.stories":["./src/hooks/useModal/openDrawer.stories.tsx",9,8308],"./hooks/useModal/openDrawer.stories.tsx":["./src/hooks/useModal/openDrawer.stories.tsx",9,8308],"./hooks/useModal/openModal.stories":["./src/hooks/useModal/openModal.stories.tsx",9,4806],"./hooks/useModal/openModal.stories.tsx":["./src/hooks/useModal/openModal.stories.tsx",9,4806],"./hooks/useModal/useModal":["./src/hooks/useModal/useModal.tsx",9],"./hooks/useModal/useModal.mdx":["./src/hooks/useModal/useModal.mdx",9,9684,2122],"./hooks/useModal/useModal.tsx":["./src/hooks/useModal/useModal.tsx",9],"./hooks/useScreenWidth":["./src/hooks/useScreenWidth.tsx",9],"./hooks/useScreenWidth.mdx":["./src/hooks/useScreenWidth.mdx",9,9684,8186],"./hooks/useScreenWidth.tsx":["./src/hooks/useScreenWidth.tsx",9],"./hooks/useToast/useToast":["./src/hooks/useToast/useToast.tsx",9,4464],"./hooks/useToast/useToast.mdx":["./src/hooks/useToast/useToast.mdx",9,9684,834],"./hooks/useToast/useToast.stories":["./src/hooks/useToast/useToast.stories.tsx",9,95],"./hooks/useToast/useToast.stories.tsx":["./src/hooks/useToast/useToast.stories.tsx",9,95],"./hooks/useToast/useToast.tsx":["./src/hooks/useToast/useToast.tsx",9,4464],"./index":["./src/index.ts",7,3880,7270,4702,2870,1478],"./index.ts":["./src/index.ts",7,3880,7270,4702,2870,1478],"./pages/Installation.mdx":["./src/pages/Installation.mdx",9,9684,9817],"./pages/Introduction.mdx":["./src/pages/Introduction.mdx",9,9684,2429],"./pages/Providers.mdx":["./src/pages/Providers.mdx",9,9684,1707],"./providers/BottomSheetProvider":["./src/providers/BottomSheetProvider.tsx",9],"./providers/BottomSheetProvider.tsx":["./src/providers/BottomSheetProvider.tsx",9],"./providers/ConfirmProvider":["./src/providers/ConfirmProvider.tsx",9],"./providers/ConfirmProvider.tsx":["./src/providers/ConfirmProvider.tsx",9],"./providers/LanguageProvider":["./src/providers/LanguageProvider.tsx",9],"./providers/LanguageProvider.tsx":["./src/providers/LanguageProvider.tsx",9],"./providers/ModalProvider":["./src/providers/ModalProvider.tsx",9],"./providers/ModalProvider.tsx":["./src/providers/ModalProvider.tsx",9],"./providers/OverlayProvider":["./src/providers/OverlayProvider.tsx",9],"./providers/OverlayProvider.tsx":["./src/providers/OverlayProvider.tsx",9],"./providers/ThemeProvider":["./src/providers/ThemeProvider.tsx",9],"./providers/ThemeProvider.tsx":["./src/providers/ThemeProvider.tsx",9],"./providers/ToastProvider":["./src/providers/ToastProvider.tsx",9],"./providers/ToastProvider.tsx":["./src/providers/ToastProvider.tsx",9],"./providers/UIProvider":["./src/providers/UIProvider.tsx",9],"./providers/UIProvider.tsx":["./src/providers/UIProvider.tsx",9],"./settings/ThemeConfig/ThemeConfig":["./src/settings/ThemeConfig/ThemeConfig.tsx",9],"./settings/ThemeConfig/ThemeConfig.stories":["./src/settings/ThemeConfig/ThemeConfig.stories.tsx",9,3784],"./settings/ThemeConfig/ThemeConfig.stories.tsx":["./src/settings/ThemeConfig/ThemeConfig.stories.tsx",9,3784],"./settings/ThemeConfig/ThemeConfig.tsx":["./src/settings/ThemeConfig/ThemeConfig.tsx",9],"./settings/ThemeViewer/ThemeViewer":["./src/settings/ThemeViewer/ThemeViewer.tsx",9,5479],"./settings/ThemeViewer/ThemeViewer.stories":["./src/settings/ThemeViewer/ThemeViewer.stories.tsx",9,2328],"./settings/ThemeViewer/ThemeViewer.stories.tsx":["./src/settings/ThemeViewer/ThemeViewer.stories.tsx",9,2328],"./settings/ThemeViewer/ThemeViewer.tsx":["./src/settings/ThemeViewer/ThemeViewer.tsx",9,5479],"./tests/TestModals/TestModals":["./src/tests/TestModals/TestModals.tsx",9,2411],"./tests/TestModals/TestModals.stories":["./src/tests/TestModals/TestModals.stories.tsx",9,2808],"./tests/TestModals/TestModals.stories.tsx":["./src/tests/TestModals/TestModals.stories.tsx",9,2808],"./tests/TestModals/TestModals.tsx":["./src/tests/TestModals/TestModals.tsx",9,2411],"./utils/logger":["./src/utils/logger.ts",9],"./utils/logger.ts":["./src/utils/logger.ts",9]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(2).map(__webpack_require__.e)).then((()=>__webpack_require__.t(id,16|ids[1])))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./src lazy recursive ^\\.\\/.*$",module.exports=webpackAsyncContext},"storybook/internal/channels":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/preview-errors":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/internal/core-events":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"@storybook/global":module=>{"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/internal/preview-api":module=>{"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__},"?5230":()=>{}},__webpack_require__=>{__webpack_require__.O(0,[3918],(()=>{return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]); \ No newline at end of file diff --git a/design-system-storybook/project.json b/design-system-storybook/project.json index 30c063c9..81eb0940 100644 --- a/design-system-storybook/project.json +++ b/design-system-storybook/project.json @@ -1 +1 @@ -{"generatedAt":1728790990215,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@testing-library/react-native":"12.4.5","@types/jest":"29.5.12","eslint-plugin-jest":"27.9.0","jest":"29.7.0"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"4.5.0"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{"jest":{}}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","portableStoriesFileCount":0,"storybookVersion":"8.3.0","storybookVersionSpecifier":"^8.3.0","language":"typescript","storybookPackages":{"@chromatic-com/storybook":{"version":"1.6.1"},"@storybook/addon-essentials":{"version":"8.3.0"},"@storybook/addon-interactions":{"version":"8.3.0"},"@storybook/addon-links":{"version":"8.3.0"},"@storybook/addon-mdx-gfm":{"version":"8.3.0"},"@storybook/addon-onboarding":{"version":"8.3.0"},"@storybook/addon-webpack5-compiler-swc":{"version":"1.0.5"},"@storybook/blocks":{"version":"8.3.0"},"@storybook/react":{"version":"8.3.0"},"@storybook/react-webpack5":{"version":"8.3.0"},"@storybook/test":{"version":"8.3.0"},"@storybook/test-runner":{"version":"0.19.1"},"storybook":{"version":"8.3.0"}},"addons":{"$SNIP/node_modules/@storybook/addon-webpack5-compiler-swc":{"version":null},"$SNIP/node_modules/@storybook/addon-onboarding":{"version":null},"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@chromatic-com/storybook":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null},"@storybook/addon-react-native-web":{"version":"0.0.24"},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null}}} +{"generatedAt":1728791901957,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":0,"testPackages":{"@testing-library/react-native":"12.4.5","@types/jest":"29.5.12","eslint-plugin-jest":"27.9.0","jest":"29.7.0"},"monorepo":"Workspaces","packageManager":{"type":"yarn","version":"4.5.0"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5","options":{"jest":{}}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","portableStoriesFileCount":0,"storybookVersion":"8.3.0","storybookVersionSpecifier":"^8.3.0","language":"typescript","storybookPackages":{"@chromatic-com/storybook":{"version":"1.6.1"},"@storybook/addon-essentials":{"version":"8.3.0"},"@storybook/addon-interactions":{"version":"8.3.0"},"@storybook/addon-links":{"version":"8.3.0"},"@storybook/addon-mdx-gfm":{"version":"8.3.0"},"@storybook/addon-onboarding":{"version":"8.3.0"},"@storybook/addon-webpack5-compiler-swc":{"version":"1.0.5"},"@storybook/blocks":{"version":"8.3.0"},"@storybook/react":{"version":"8.3.0"},"@storybook/react-webpack5":{"version":"8.3.0"},"@storybook/test":{"version":"8.3.0"},"@storybook/test-runner":{"version":"0.19.1"},"storybook":{"version":"8.3.0"}},"addons":{"$SNIP/node_modules/@storybook/addon-webpack5-compiler-swc":{"version":null},"$SNIP/node_modules/@storybook/addon-onboarding":{"version":null},"$SNIP/node_modules/@storybook/addon-links":{"version":null},"$SNIP/node_modules/@storybook/addon-essentials":{"version":null},"$SNIP/node_modules/@chromatic-com/storybook":{"version":null},"$SNIP/node_modules/@storybook/addon-interactions":{"version":null},"@storybook/addon-react-native-web":{"version":"0.0.24"},"$SNIP/node_modules/@storybook/addon-mdx-gfm":{"version":null}}}