From bb8135d2a1a257502e159d6d09eab0199fcc6e53 Mon Sep 17 00:00:00 2001 From: abretonc7s Date: Tue, 8 Oct 2024 09:57:05 +0800 Subject: [PATCH] Updates --- ...fbb13d.iframe.bundle.js => 1478.673b3bef.iframe.bundle.js} | 2 +- design-system-storybook/1607.0c5328d0.iframe.bundle.js | 1 + design-system-storybook/2870.24b21eb2.iframe.bundle.js | 1 - design-system-storybook/2870.3aee43c4.iframe.bundle.js | 1 + ...afadba.iframe.bundle.js => 4267.76d16ea7.iframe.bundle.js} | 2 +- ...a40b81.iframe.bundle.js => 5543.0c132676.iframe.bundle.js} | 2 +- ...702e87.iframe.bundle.js => 5838.93774e77.iframe.bundle.js} | 2 +- ...2c9316.iframe.bundle.js => 7424.89f87837.iframe.bundle.js} | 2 +- ...fe1f74.iframe.bundle.js => 7445.6cc738eb.iframe.bundle.js} | 2 +- design-system-storybook/iframe.html | 4 ++-- design-system-storybook/main.045b5bc5.iframe.bundle.js | 1 - design-system-storybook/main.227e13e3.iframe.bundle.js | 1 + design-system-storybook/project.json | 2 +- .../runtime~main.59d03e91.iframe.bundle.js | 1 - .../runtime~main.edc17ea1.iframe.bundle.js | 1 + 15 files changed, 13 insertions(+), 12 deletions(-) rename design-system-storybook/{1478.48fbb13d.iframe.bundle.js => 1478.673b3bef.iframe.bundle.js} (99%) create mode 100644 design-system-storybook/1607.0c5328d0.iframe.bundle.js delete mode 100644 design-system-storybook/2870.24b21eb2.iframe.bundle.js create mode 100644 design-system-storybook/2870.3aee43c4.iframe.bundle.js rename design-system-storybook/{4267.ebafadba.iframe.bundle.js => 4267.76d16ea7.iframe.bundle.js} (96%) rename design-system-storybook/{5543.2ea40b81.iframe.bundle.js => 5543.0c132676.iframe.bundle.js} (95%) rename design-system-storybook/{5838.d4702e87.iframe.bundle.js => 5838.93774e77.iframe.bundle.js} (97%) rename design-system-storybook/{7424.8a2c9316.iframe.bundle.js => 7424.89f87837.iframe.bundle.js} (95%) rename design-system-storybook/{7445.bbfe1f74.iframe.bundle.js => 7445.6cc738eb.iframe.bundle.js} (94%) delete mode 100644 design-system-storybook/main.045b5bc5.iframe.bundle.js create mode 100644 design-system-storybook/main.227e13e3.iframe.bundle.js delete mode 100644 design-system-storybook/runtime~main.59d03e91.iframe.bundle.js create mode 100644 design-system-storybook/runtime~main.edc17ea1.iframe.bundle.js diff --git a/design-system-storybook/1478.48fbb13d.iframe.bundle.js b/design-system-storybook/1478.673b3bef.iframe.bundle.js similarity index 99% rename from design-system-storybook/1478.48fbb13d.iframe.bundle.js rename to design-system-storybook/1478.673b3bef.iframe.bundle.js index b1419203..a0a43107 100644 --- a/design-system-storybook/1478.48fbb13d.iframe.bundle.js +++ b/design-system-storybook/1478.673b3bef.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[1478,8276,3895,7228,4618,5580,4983,560,7596,2076,5838,6040,3610,7123,4680,1336,7036,8908,4800,6786,5346,8140,6022,4464],{"./src/components/Accordion/Accordion.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.Accordion=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")),_AccordionItem=__webpack_require__("./src/components/Accordion/AccordionItem/AccordionItem.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 Accordion=exports.Accordion=function Accordion(_ref){var data=_ref.data,titleStyle=_ref.titleStyle,contentContainerStyle=_ref.contentContainerStyle,_ref$singleExpand=_ref.singleExpand,singleExpand=void 0!==_ref$singleExpand&&_ref$singleExpand,_useState=(0,_react.useState)(data.reduce((function(acc,item,index){return item.expanded?[].concat((0,_toConsumableArray2.default)(acc),[index]):acc}),[])),_useState2=(0,_slicedToArray2.default)(_useState,2),expandedIndices=_useState2[0],setExpandedIndices=_useState2[1],handleHeaderPress=(0,_react.useCallback)((function(index){var _data$index;setExpandedIndices((function(prevIndices){var isExpanded=prevIndices.includes(index);return singleExpand?isExpanded?[]:[index]:isExpanded?prevIndices.filter((function(i){return i!==index})):[].concat((0,_toConsumableArray2.default)(prevIndices),[index])})),null==(_data$index=data[index])||null==_data$index.onHeaderPress||_data$index.onHeaderPress()}),[singleExpand,data]);return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:data.map((function(item,index){return(0,_jsxRuntime.jsx)(_AccordionItem.AccordionItem,Object.assign({},item,{titleStyle:[titleStyle,item.titleStyle],contentContainerStyle:[contentContainerStyle,item.contentContainerStyle],expanded:expandedIndices.includes(index),onHeaderPress:function onHeaderPress(){return handleHeaderPress(index)}}),index)}))})};try{Accordion.displayName="Accordion",Accordion.__docgenInfo={description:"",displayName:"Accordion",props:{data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"AccordionItemProps[]"}},titleStyle:{defaultValue:null,description:"",name:"titleStyle",required:!1,type:{name:"StyleProp"}},contentContainerStyle:{defaultValue:null,description:"",name:"contentContainerStyle",required:!1,type:{name:"StyleProp"}},singleExpand:{defaultValue:{value:"false"},description:"",name:"singleExpand",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Accordion/Accordion.tsx#Accordion"]={docgenInfo:Accordion.__docgenInfo,name:"Accordion",path:"src/components/Accordion/Accordion.tsx#Accordion"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Accordion/AccordionItem/AccordionItem.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.AccordionItem=void 0;var _react=_interopRequireWildcard(__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"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.js"),_reactNativeReanimated=_interopRequireWildcard(__webpack_require__("./node_modules/react-native-reanimated/lib/module/index.web.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)}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}var animationConfig={duration:300,easing:_reactNativeReanimated.Easing.bezier(.4,0,.2,1)},_worklet_14197898985804_init_data={code:"function anonymous(){const{animationProgress}=this.__closure;return{opacity:animationProgress.value,height:animationProgress.value===0?0:'auto'};}"},_worklet_13209353803972_init_data={code:'function anonymous(){const{animationProgress}=this.__closure;return{transform:[{rotate:animationProgress.value*90+"deg"}]};}'},AccordionItem=exports.AccordionItem=function AccordionItem(_ref2){var anonymous,title=_ref2.title,titleStyle=_ref2.titleStyle,contentContainerStyle=_ref2.contentContainerStyle,children=_ref2.children,_ref2$expanded=_ref2.expanded,expanded=void 0!==_ref2$expanded&&_ref2$expanded,onHeaderPress=_ref2.onHeaderPress,theme=(0,_ThemeProvider.useTheme)(),styles=function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{},header:{padding:12,backgroundColor:theme.colors.primaryContainer,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{color:theme.colors.text},contentContainer:{backgroundColor:theme.colors.background,overflow:"hidden"},content:{padding:5}})}({theme}),animationProgress=(0,_reactNativeReanimated.useSharedValue)(expanded?1:0),contentAnimatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(((anonymous=function anonymous(){return{opacity:animationProgress.value,height:0===animationProgress.value?0:"auto"}}).__closure={animationProgress},anonymous.__workletHash=0xce9b4b9c14c,anonymous.__initData=_worklet_14197898985804_init_data,anonymous)),iconAnimatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function(){var anonymous=function anonymous(){return{transform:[{rotate:90*animationProgress.value+"deg"}]}};return anonymous.__closure={animationProgress},anonymous.__workletHash=0xc038ad758c4,anonymous.__initData=_worklet_13209353803972_init_data,anonymous}()),handlePress=(0,_react.useCallback)((function(){onHeaderPress&&onHeaderPress(),animationProgress.value=(0,_reactNativeReanimated.withTiming)(0===animationProgress.value?1:0,animationConfig)}),[onHeaderPress]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsxs)(_Pressable.default,{style:styles.header,onPress:handlePress,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.title,titleStyle],children:title}),(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:iconAnimatedStyle,children:(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"chevron-right",size:24,color:theme.colors.text})})]}),(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[styles.contentContainer,contentAnimatedStyle,contentContainerStyle],children:(0,_jsxRuntime.jsx)(_View.default,{style:styles.content,children})})]})};try{AccordionItem.displayName="AccordionItem",AccordionItem.__docgenInfo={description:"",displayName:"AccordionItem",props:{titleStyle:{defaultValue:null,description:"",name:"titleStyle",required:!1,type:{name:"StyleProp"}},contentContainerStyle:{defaultValue:null,description:"",name:"contentContainerStyle",required:!1,type:{name:"StyleProp"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},expanded:{defaultValue:{value:"false"},description:"",name:"expanded",required:!1,type:{name:"boolean"}},onHeaderPress:{defaultValue:null,description:"",name:"onHeaderPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Accordion/AccordionItem/AccordionItem.tsx#AccordionItem"]={docgenInfo:AccordionItem.__docgenInfo,name:"AccordionItem",path:"src/components/Accordion/AccordionItem/AccordionItem.tsx#AccordionItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Colors/ColorItem/ColorItem.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.ColorItem=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")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_TouchableOpacity=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/TouchableOpacity/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/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 ColorItem=exports.ColorItem=function ColorItem(_ref){var color=_ref.color,labelStyle=_ref.labelStyle,label=_ref.label,_ref$previewSize=_ref.previewSize,previewSize=void 0===_ref$previewSize?20:_ref$previewSize,onPress=_ref.onPress,styles=(0,_react.useMemo)((function(){return function getStyles(){return _StyleSheet.default.create({container:{width:"100%",flex:1,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:10},colorPreview:{borderWidth:1,minWidth:20,minHeight:20},labelContainer:{flexDirection:"row",gap:5,alignItems:"center",justifyContent:"center"},textStyle:{}})}()}),[]),content=(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[(0,_jsxRuntime.jsx)(_View.default,{style:[styles.colorPreview,{backgroundColor:color,width:previewSize,height:previewSize}]}),label?(0,_jsxRuntime.jsxs)(_View.default,{style:styles.labelContainer,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.textStyle,labelStyle],children:label}),(0,_jsxRuntime.jsxs)(_reactNativePaper.Text,{style:[styles.textStyle,labelStyle],children:["( ",color," )"]})]}):(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.textStyle,labelStyle],children:color})]});return onPress?(0,_jsxRuntime.jsx)(_TouchableOpacity.default,{style:styles.container,onPress,children:content}):(0,_jsxRuntime.jsx)(_View.default,{style:styles.container,children:content})};try{ColorItem.displayName="ColorItem",ColorItem.__docgenInfo={description:"",displayName:"ColorItem",props:{label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"StyleProp"}},color:{defaultValue:null,description:"",name:"color",required:!0,type:{name:"string"}},previewSize:{defaultValue:{value:"20"},description:"",name:"previewSize",required:!1,type:{name:"number"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Colors/ColorItem/ColorItem.tsx#ColorItem"]={docgenInfo:ColorItem.__docgenInfo,name:"ColorItem",path:"src/components/Colors/ColorItem/ColorItem.tsx#ColorItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Divider/Divider.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.Divider=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),styles=(exports.Divider=function Divider(){return(0,_jsxRuntime.jsx)(_View.default,{style:styles.container})},_StyleSheet.default.create({container:{width:"100%",height:_StyleSheet.default.hairlineWidth}}))},"./src/components/EditableInfoCard/EditableInfoCard.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.EditableInfoCard=EditableInfoCard;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")),_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"),_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 getStyles=function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{flexDirection:"row",alignItems:"center",paddingHorizontal:5,backgroundColor:theme.colors.background,borderWidth:1,borderRadius:8},contentContainer:{flex:1,flexDirection:"column",justifyContent:"center"},label:{fontWeight:"bold"},content:{maxWidth:"100%"},iconContainer:{alignSelf:"stretch",justifyContent:"center",marginLeft:5},icon:{}})};function EditableInfoCard(_ref2){var label=_ref2.label,value=_ref2.value,error=_ref2.error,processing=_ref2.processing,editable=_ref2.editable,inlineEditable=_ref2.inlineEditable,onEdit=_ref2.onEdit,onInlineEdit=_ref2.onInlineEdit,renderValue=_ref2.renderValue,containerStyle=_ref2.containerStyle,contentStyle=_ref2.contentStyle,labelStyle=_ref2.labelStyle,rightAction=_ref2.rightAction,onRightActionPress=_ref2.onRightActionPress,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return getStyles({theme})}),[theme]),_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),isEditing=_useState2[0],setIsEditing=_useState2[1],_useState3=(0,_react.useState)(value),_useState4=(0,_slicedToArray2.default)(_useState3,2),editedValue=_useState4[0],setEditedValue=_useState4[1];(0,_react.useEffect)((function(){setEditedValue(value)}),[value]);var handleEdit=function handleEdit(){inlineEditable?setIsEditing(!0):editable&&onEdit&&onEdit()},handleInlineEditComplete=function handleInlineEditComplete(){setIsEditing(!1),onInlineEdit&&editedValue!==value&&onInlineEdit(editedValue)},defaultRightAction=editable||inlineEditable?(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[isEditing&&(0,_jsxRuntime.jsx)(_reactNativePaper.IconButton,{icon:"close",size:20,style:styles.icon,onPress:function handleInlineEditCancel(){setIsEditing(!1),setEditedValue(value)},accessibilityLabel:"Cancel editing"}),(0,_jsxRuntime.jsx)(_reactNativePaper.IconButton,{icon:isEditing?"check":"pencil",size:20,style:styles.icon,onPress:isEditing?handleInlineEditComplete:handleEdit,accessibilityLabel:isEditing?"Confirm edit":"Edit value"})]}):null,rightActionComponent=null!=rightAction?rightAction:defaultRightAction,content=(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,containerStyle],children:[(0,_jsxRuntime.jsxs)(_View.default,{style:styles.contentContainer,children:[label?(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.label,labelStyle],children:label}):null,(0,_jsxRuntime.jsx)(_View.default,{style:[styles.content,contentStyle],children:processing?(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{size:"small"}):isEditing?(0,_jsxRuntime.jsx)(_TextInput.TextInput,{autoFocus:!0,value:editedValue,onChangeText:setEditedValue,onBlur:handleInlineEditComplete,onSubmitEditing:handleInlineEditComplete,style:{backgroundColor:"transparent"}}):renderValue?renderValue(value):(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:{color:error?theme.colors.error:theme.colors.text},children:"string"==typeof value?value:null==value?void 0:value.toString()})})]}),rightActionComponent&&(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:rightActionComponent})]});return(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:function handlePress(){inlineEditable||editable?handleEdit():onRightActionPress&&onRightActionPress()},disabled:!editable&&!inlineEditable&&!onRightActionPress,children:content})}try{EditableInfoCard.displayName="EditableInfoCard",EditableInfoCard.__docgenInfo={description:"",displayName:"EditableInfoCard",props:{label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"unknown"}},processing:{defaultValue:null,description:"",name:"processing",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"boolean"}},renderValue:{defaultValue:null,description:"",name:"renderValue",required:!1,type:{name:"((value?: unknown) => ReactNode)"}},editable:{defaultValue:null,description:"",name:"editable",required:!1,type:{name:"boolean"}},inlineEditable:{defaultValue:null,description:"",name:"inlineEditable",required:!1,type:{name:"boolean"}},onEdit:{defaultValue:null,description:"",name:"onEdit",required:!1,type:{name:"(() => void)"}},onInlineEdit:{defaultValue:null,description:"",name:"onInlineEdit",required:!1,type:{name:"((newValue?: unknown) => void)"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"StyleProp"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}},contentStyle:{defaultValue:null,description:"",name:"contentStyle",required:!1,type:{name:"StyleProp"}},rightAction:{defaultValue:null,description:"",name:"rightAction",required:!1,type:{name:"ReactNode"}},onRightActionPress:{defaultValue:null,description:"",name:"onRightActionPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/EditableInfoCard/EditableInfoCard.tsx#EditableInfoCard"]={docgenInfo:EditableInfoCard.__docgenInfo,name:"EditableInfoCard",path:"src/components/EditableInfoCard/EditableInfoCard.tsx#EditableInfoCard"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Empty/Empty.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.Empty=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")),_Image=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Image/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"),_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 Empty=exports.Empty=function Empty(_ref){var message=_ref.message,onPress=_ref.onPress,buttonValue=_ref.buttonValue,image=_ref.image,theme=(0,_reactNativePaper.useTheme)(),styles=(0,_react.useMemo)((function(){return function getItemStyle(_){return _StyleSheet.default.create({container:{flexDirection:"column",alignItems:"center",justifyContent:"center",flexGrow:1,display:"flex",gap:20,marginTop:20},image:{height:200,width:200,padding:5}})}()}),[theme]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsx)(_Image.default,{source:image,style:styles.image,resizeMode:"contain"}),(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"labelMedium",children:message}),buttonValue&&(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress,children:buttonValue})]})};try{Empty.displayName="Empty",Empty.__docgenInfo={description:"",displayName:"Empty",props:{image:{defaultValue:null,description:"",name:"image",required:!0,type:{name:"ImageSourcePropType"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string"}},buttonValue:{defaultValue:null,description:"",name:"buttonValue",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Empty/Empty.tsx#Empty"]={docgenInfo:Empty.__docgenInfo,name:"Empty",path:"src/components/Empty/Empty.tsx#Empty"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/FAB/FABGroup.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.FABGroup=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")),_Animated=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Animated/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")),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_utils=__webpack_require__("./src/components/FAB/utils.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 AnimatedPressable=_Animated.default.createAnimatedComponent(_Pressable.default);(exports.FABGroup=function FABGroup(_ref){var actions=_ref.actions,icon=_ref.icon,open=_ref.open,_onPress=_ref.onPress,_onLongPress=_ref.onLongPress,toggleStackOnLongPress=_ref.toggleStackOnLongPress,accessibilityLabel=_ref.accessibilityLabel,style=_ref.style,fabStyle=_ref.fabStyle,visible=_ref.visible,label=_ref.label,testID=_ref.testID,onStateChange=_ref.onStateChange,colorProp=_ref.color,_ref$delayLongPress=_ref.delayLongPress,delayLongPress=void 0===_ref$delayLongPress?200:_ref$delayLongPress,_ref$variant=_ref.variant,variant=void 0===_ref$variant?"primary":_ref$variant,_ref$enableLongPressW=_ref.enableLongPressWhenStackOpened,enableLongPressWhenStackOpened=void 0!==_ref$enableLongPressW&&_ref$enableLongPressW,customBackdropColor=_ref.backdropColor,rippleColor=_ref.rippleColor,theme=(0,_reactNativePaper.useTheme)(),backdrop=React.useRef(new _Animated.default.Value(0)).current,animations=React.useRef(actions.map((function(){return new _Animated.default.Value(open?1:0)}))),_React$useState=React.useState(null),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),prevActions=_React$useState2[0],setPrevActions=_React$useState2[1],scale=theme.animation.scale,isV3=theme.isV3;React.useEffect((function(){open?_Animated.default.parallel([_Animated.default.timing(backdrop,{toValue:1,duration:250*scale,useNativeDriver:!0}),_Animated.default.stagger(isV3?15:50*scale,animations.current.map((function(animation){return _Animated.default.timing(animation,{toValue:1,duration:150*scale,useNativeDriver:!0})})).reverse())]).start():_Animated.default.parallel([_Animated.default.timing(backdrop,{toValue:0,duration:200*scale,useNativeDriver:!0})].concat((0,_toConsumableArray2.default)(animations.current.map((function(animation){return _Animated.default.timing(animation,{toValue:0,duration:150*scale,useNativeDriver:!0})}))))).start()}),[open,actions,backdrop,scale,isV3]);var close=function close(){return onStateChange({open:!1})},toggle=function toggle(){return onStateChange({open:!open})},_getFABGroupColors=(0,_utils.getFABGroupColors)({theme,customBackdropColor}),labelColor=_getFABGroupColors.labelColor,backdropColor=_getFABGroupColors.backdropColor,stackedFABBackgroundColor=_getFABGroupColors.stackedFABBackgroundColor,backdropOpacity=open?backdrop.interpolate({inputRange:[0,.5,1],outputRange:[0,1,1]}):backdrop,opacities=animations.current,scales=opacities.map((function(opacity){return open?opacity.interpolate({inputRange:[0,1],outputRange:[.5,1]}):1})),translations=opacities.map((function(opacity){return open?opacity.interpolate({inputRange:[0,1],outputRange:[24,-8]}):-8})),labelTranslations=opacities.map((function(opacity){return open?opacity.interpolate({inputRange:[0,1],outputRange:[8,-8]}):-8})),_useSafeAreaInsets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),top=_useSafeAreaInsets.top,containerPaddings={paddingBottom:_useSafeAreaInsets.bottom,paddingRight:_useSafeAreaInsets.right,paddingLeft:_useSafeAreaInsets.left,paddingTop:top};return actions.length!==(null==prevActions?void 0:prevActions.length)&&(animations.current=actions.map((function(_,i){return animations.current[i]||new _Animated.default.Value(open?1:0)})),setPrevActions(actions)),(0,_jsxRuntime.jsxs)(_View.default,{pointerEvents:"box-none",style:[styles.container,containerPaddings,style],children:[(0,_jsxRuntime.jsx)(AnimatedPressable,{accessibilityRole:"button",onPress:close,pointerEvents:open?"auto":"none",style:[styles.backdrop,{opacity:backdropOpacity,backgroundColor:backdropColor}]}),(0,_jsxRuntime.jsxs)(_View.default,{pointerEvents:"box-none",style:styles.safeArea,children:[open&&(0,_jsxRuntime.jsx)(_View.default,{pointerEvents:open?"box-none":"none",children:actions.map((function(it,i){var _it$labelTextColor,labelTextStyle=Object.assign({color:null!=(_it$labelTextColor=it.labelTextColor)?_it$labelTextColor:labelColor},isV3?theme.fonts.titleMedium:{}),marginHorizontal=void 0===it.size||"small"===it.size?24:16,accessibilityLabel=void 0!==it.accessibilityLabel?it.accessibilityLabel:it.label,size=void 0!==it.size?it.size:"small";return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.item,{marginHorizontal}],pointerEvents:open?"box-none":"none",accessibilityRole:"button",importantForAccessibility:"yes",accessible:!0,accessibilityLabel,children:[it.label&&(0,_jsxRuntime.jsx)(_View.default,{children:(0,_jsxRuntime.jsx)(_reactNativePaper.Card,{mode:isV3?"contained":"elevated",onPress:function onPress(e){it.onPress(e),close()},accessibilityHint:it.accessibilityHint,importantForAccessibility:"no-hide-descendants",accessibilityElementsHidden:!0,style:[styles.containerStyle,{transform:[isV3?{translateY:labelTranslations[i]}:{scale:scales[i]}],opacity:opacities[i]},isV3&&styles.v3ContainerStyle,it.containerStyle],children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"titleMedium",importantForAccessibility:"no-hide-descendants",accessibilityElementsHidden:!0,style:[labelTextStyle,it.labelStyle],maxFontSizeMultiplier:it.labelMaxFontSizeMultiplier,children:it.label})})}),(0,_jsxRuntime.jsx)(_reactNativePaper.FAB,{size,icon:it.icon,color:it.color,style:[{transform:[{scale:scales[i]}],opacity:opacities[i],backgroundColor:stackedFABBackgroundColor},isV3&&{transform:[{translateY:translations[i]}]},it.style],accessibilityElementsHidden:!0,theme,onPress:function onPress(e){it.onPress(e),close()},importantForAccessibility:"no-hide-descendants",testID:it.testID,visible:open,rippleColor:it.rippleColor})]},i)}))}),(0,_jsxRuntime.jsx)(_reactNativePaper.FAB,{onPress:function onPress(e){null==_onPress||_onPress(e),toggleStackOnLongPress&&!open||toggle()},onLongPress:function onLongPress(e){open&&!enableLongPressWhenStackOpened||(null==_onLongPress||_onLongPress(e),toggleStackOnLongPress&&toggle())},delayLongPress,icon,color:colorProp,accessibilityLabel,accessibilityRole:"button",accessibilityState:{expanded:open},style:[styles.fab,fabStyle],theme,visible,label,testID,variant,rippleColor})]})]})}).displayName="FAB.Group";var styles=_StyleSheet.default.create({safeArea:{alignItems:"flex-end"},container:Object.assign({},_StyleSheet.default.absoluteFillObject,{justifyContent:"flex-end"}),fab:{marginHorizontal:16,marginBottom:16,marginTop:0},backdrop:Object.assign({},_StyleSheet.default.absoluteFillObject),containerStyle:{borderRadius:5,paddingHorizontal:12,paddingVertical:6,marginVertical:8,marginHorizontal:16,elevation:2},item:{marginBottom:16,flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},v3ContainerStyle:{backgroundColor:"transparent",elevation:0}});try{FAB.Group.displayName="FAB.Group",FAB.Group.__docgenInfo={description:"A component to display a stack of FABs with related actions in a speed dial.\nTo render the group above other components, you'll need to wrap it with the [`Portal`](../Portal) component.\n\n## Usage\n```js\nimport * as React from 'react';\nimport { FAB, Portal, PaperProvider } from 'react-native-paper';\n\nconst MyComponent = () => {\n const [state, setState] = React.useState({ open: false });\n\n const onStateChange = ({ open }) => setState({ open });\n\n const { open } = state;\n\n return (\n \n \n console.log('Pressed add') },\n {\n icon: 'star',\n label: 'Star',\n onPress: () => console.log('Pressed star'),\n },\n {\n icon: 'email',\n label: 'Email',\n onPress: () => console.log('Pressed email'),\n },\n {\n icon: 'bell',\n label: 'Remind',\n onPress: () => console.log('Pressed notifications'),\n },\n ]}\n onStateChange={onStateChange}\n onPress={() => {\n if (open) {\n // do something if the speed dial is open\n }\n }}\n />\n \n \n );\n};\n\nexport default MyComponent;\n```",displayName:"FAB.Group",props:{actions:{defaultValue:null,description:"Action items to display in the form of a speed dial.\nAn action item should contain the following properties:\n- `icon`: icon to display (required)\n- `label`: optional label text\n- `color`: custom icon color of the action item\n- `labelTextColor`: custom label text color of the action item\n- `accessibilityLabel`: accessibility label for the action, uses label by default if specified\n- `accessibilityHint`: accessibility hint for the action\n- `style`: pass additional styles for the fab item, for example, `backgroundColor`\n- `containerStyle`: pass additional styles for the fab item label container, for example, `backgroundColor`\n@supported Available in 5.x\n- `labelStyle`: pass additional styles for the fab item label, for example, `fontSize`\n- `labelMaxFontSizeMultiplier`: specifies the largest possible scale a title font can reach.\n- `onPress`: callback that is called when `FAB` is pressed (required)\n- `onLongPress`: callback that is called when `FAB` is long pressed\n- `toggleStackOnLongPress`: callback that is called when `FAB` is long pressed\n- `size`: size of action item. Defaults to `small`.\n@supported Available in v5.x\n- `testID`: testID to be used on tests\n- `rippleColor`: color of the ripple effect.",name:"actions",required:!0,type:{name:"{ icon: IconSource; label?: string | undefined; color?: string | undefined; labelTextColor?: string | undefined; accessibilityLabel?: string | undefined; accessibilityHint?: string | undefined; ... 7 more ...; rippleColor?: ColorValue | undefined; }[]"}},icon:{defaultValue:null,description:"Icon to display for the `FAB`.\nYou can toggle it based on whether the speed dial is open to display a different icon.",name:"icon",required:!0,type:{name:"IconSource"}},accessibilityLabel:{defaultValue:null,description:"Accessibility label for the FAB. This is read by the screen reader when the user taps the FAB.",name:"accessibilityLabel",required:!1,type:{name:"string"}},color:{defaultValue:null,description:"Custom color for the `FAB`.",name:"color",required:!1,type:{name:"string"}},backdropColor:{defaultValue:null,description:"Custom backdrop color for opened speed dial background.",name:"backdropColor",required:!1,type:{name:"string"}},rippleColor:{defaultValue:null,description:"Color of the ripple effect.",name:"rippleColor",required:!1,type:{name:"ColorValue"}},onPress:{defaultValue:null,description:"Function to execute on pressing the `FAB`.",name:"onPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onLongPress:{defaultValue:null,description:"Function to execute on long pressing the `FAB`.",name:"onLongPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},toggleStackOnLongPress:{defaultValue:null,description:"Makes actions stack appear on long press instead of on press.",name:"toggleStackOnLongPress",required:!1,type:{name:"boolean"}},delayLongPress:{defaultValue:{value:"200"},description:"Changes the delay for long press reaction.",name:"delayLongPress",required:!1,type:{name:"number"}},enableLongPressWhenStackOpened:{defaultValue:{value:"false"},description:"Allows for onLongPress when stack is opened.",name:"enableLongPressWhenStackOpened",required:!1,type:{name:"boolean"}},open:{defaultValue:null,description:"Whether the speed dial is open.",name:"open",required:!0,type:{name:"boolean"}},onStateChange:{defaultValue:null,description:"Callback which is called on opening and closing the speed dial.\nThe open state needs to be updated when it's called, otherwise the change is dropped.",name:"onStateChange",required:!0,type:{name:"(state: { open: boolean; }) => void"}},visible:{defaultValue:null,description:"Whether `FAB` is currently visible.",name:"visible",required:!0,type:{name:"boolean"}},style:{defaultValue:null,description:"Style for the group. You can use it to pass additional styles if you need.\nFor example, you can set an additional padding if you have a tab bar at the bottom.",name:"style",required:!1,type:{name:"StyleProp"}},fabStyle:{defaultValue:null,description:"Style for the FAB. It allows to pass the FAB button styles, such as backgroundColor.",name:"fabStyle",required:!1,type:{name:"false | RegisteredStyle | Value | AnimatedInterpolation | WithAnimatedObject | WithAnimatedArray<...> | null"}},variant:{defaultValue:{value:"primary"},description:"@supported Available in v5.x with theme version 3\n\nColor mappings variant for combinations of container and icon colors.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"surface"'}]}},theme:{defaultValue:null,description:"@optional",name:"theme",required:!1,type:{name:"ThemeProp"}},label:{defaultValue:null,description:"Optional label for `FAB`.",name:"label",required:!1,type:{name:"string"}},testID:{defaultValue:null,description:"Pass down testID from Group props to FAB.",name:"testID",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/FAB/FABGroup.tsx#FAB.Group"]={docgenInfo:FAB.Group.__docgenInfo,name:"FAB.Group",path:"src/components/FAB/FABGroup.tsx#FAB.Group"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/FAB/utils.ts":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFABGroupColors=void 0;var _color=_interopRequireDefault(__webpack_require__("./node_modules/color/index.js")),getLabelColor=function getLabelColor(_ref){var theme=_ref.theme;return theme.isV3?theme.colors.onSurface:theme.dark?theme.colors.text:(0,_color.default)(theme.colors.text).fade(.54).rgb().string()},getBackdropColor=function getBackdropColor(_ref2){var _theme$colors,theme=_ref2.theme,customBackdropColor=_ref2.customBackdropColor;return customBackdropColor||(theme.isV3?(0,_color.default)(theme.colors.background).alpha(.95).rgb().string():null==(_theme$colors=theme.colors)?void 0:_theme$colors.backdrop)},getStackedFABBackgroundColor=function getStackedFABBackgroundColor(_ref3){var theme=_ref3.theme;return theme.isV3?theme.colors.elevation.level3:theme.colors.surface};exports.getFABGroupColors=function getFABGroupColors(_ref4){var theme=_ref4.theme,customBackdropColor=_ref4.customBackdropColor;return{labelColor:getLabelColor({theme}),backdropColor:getBackdropColor({theme,customBackdropColor}),stackedFABBackgroundColor:getStackedFABBackgroundColor({theme})}}},"./src/components/HelperText/HelperText.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.HelperText=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_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")),_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")),_TouchableOpacity=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/TouchableOpacity/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/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 HelperText=exports.HelperText=function HelperText(_ref2){var text=_ref2.text,_ref2$iconSize=_ref2.iconSize,iconSize=void 0===_ref2$iconSize?24:_ref2$iconSize,iconColor=_ref2.iconColor,textStyle=_ref2.textStyle,containerStyle=_ref2.containerStyle,_ref2$maxLines=_ref2.maxLines,maxLines=void 0===_ref2$maxLines?3:_ref2$maxLines,theme=(0,_ThemeProvider.useTheme)(),styles=function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{flexDirection:"row",alignItems:"center"},iconContainer:{marginRight:10,marginTop:2},textContainer:{flex:1},text:{color:theme.colors.outline}})}({theme}),_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),isExpanded=_useState2[0],setIsExpanded=_useState2[1],toggleExpand=(0,_react.useCallback)((function(){setIsExpanded((function(prev){return!prev}))}),[]);return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,containerStyle],children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:(0,_jsxRuntime.jsx)(_vectorIcons.Ionicons,{name:"information-circle",size:iconSize,color:iconColor||theme.colors.primary})}),(0,_jsxRuntime.jsx)(_TouchableOpacity.default,{style:styles.textContainer,onPress:toggleExpand,children:(0,_jsxRuntime.jsx)(_Text.default,{style:[styles.text,textStyle],numberOfLines:isExpanded?void 0:maxLines,ellipsizeMode:"tail",children:text})})]})};try{HelperText.displayName="HelperText",HelperText.__docgenInfo={description:"",displayName:"HelperText",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},iconSize:{defaultValue:{value:"24"},description:"",name:"iconSize",required:!1,type:{name:"number"}},iconColor:{defaultValue:null,description:"",name:"iconColor",required:!1,type:{name:"string"}},textStyle:{defaultValue:null,description:"",name:"textStyle",required:!1,type:{name:"StyleProp"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}},maxLines:{defaultValue:{value:"3"},description:"",name:"maxLines",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/HelperText/HelperText.tsx#HelperText"]={docgenInfo:HelperText.__docgenInfo,name:"HelperText",path:"src/components/HelperText/HelperText.tsx#HelperText"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/HelperWrapper/HelperWrapper.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.HelperWrapper=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")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_TouchableOpacity=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/TouchableOpacity/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_useModal2=__webpack_require__("./src/hooks/useModal/useModal.tsx"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_HelperText=__webpack_require__("./src/components/HelperText/HelperText.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 HelperWrapper=exports.HelperWrapper=function HelperWrapper(_ref2){var children=_ref2.children,_ref2$iconPosition=_ref2.iconPosition,iconPosition=void 0===_ref2$iconPosition?"left":_ref2$iconPosition,iconColor=_ref2.iconColor,helperText=_ref2.helperText,_ref2$visible=_ref2.visible,visible=void 0===_ref2$visible||_ref2$visible,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{flexDirection:"row",alignItems:"center"},iconContainer:{marginLeft:8,marginRight:8,justifyContent:"center"},childrenContainer:{flex:1},modalContent:{padding:20,width:"100%"},modalInner:{gap:20},buttonContainer:{alignItems:"center"},modalButton:{minWidth:100,borderColor:theme.colors.primary}})}({theme})}),[theme]),openModal=(0,_useModal2.useModal)().openModal,iconElement=(0,_jsxRuntime.jsx)(_TouchableOpacity.default,{onPress:function handleIconPress(){openModal({modalProps:{styles:{modalContent:styles.modalContent}},render:function render(_ref3){var resolve=_ref3.resolve;return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.modalInner,children:[(0,_jsxRuntime.jsx)(_HelperText.HelperText,{text:helperText,maxLines:10}),(0,_jsxRuntime.jsx)(_View.default,{style:styles.buttonContainer,children:(0,_jsxRuntime.jsx)(_Button.Button,{mode:"outlined",onPress:function onPress(){return null==resolve?void 0:resolve(!0)},style:styles.modalButton,children:"Ok"})})]})}})},style:styles.iconContainer,children:(0,_jsxRuntime.jsx)(_vectorIcons.Ionicons,{name:"information-circle-outline",size:24,color:iconColor||theme.colors.primary})});return visible?(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:["left"===iconPosition&&iconElement,(0,_jsxRuntime.jsx)(_View.default,{style:styles.childrenContainer,children}),"right"===iconPosition&&iconElement]}):children};try{HelperWrapper.displayName="HelperWrapper",HelperWrapper.__docgenInfo={description:"",displayName:"HelperWrapper",props:{helperText:{defaultValue:null,description:"",name:"helperText",required:!0,type:{name:"string"}},visible:{defaultValue:{value:"true"},description:"",name:"visible",required:!1,type:{name:"boolean"}},iconPosition:{defaultValue:{value:"left"},description:"",name:"iconPosition",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'}]}},iconColor:{defaultValue:null,description:"",name:"iconColor",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/HelperWrapper/HelperWrapper.tsx#HelperWrapper"]={docgenInfo:HelperWrapper.__docgenInfo,name:"HelperWrapper",path:"src/components/HelperWrapper/HelperWrapper.tsx#HelperWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/ListItem/ListItem.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.ListItem=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")),_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")),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/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 ListItem=exports.ListItem=function ListItem(_ref){var label=_ref.label,labelStyle=_ref.labelStyle,subLabel=_ref.subLabel,contentContainerStyle=_ref.contentContainerStyle,textContentContainerStyle=_ref.textContentContainerStyle,subLabelStyle=_ref.subLabelStyle,onPress=_ref.onPress,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyle(theme){return _StyleSheet.default.create({container:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:10,margin:10,backgroundColor:theme.colors.surface},textContainer:{flex:1},label:{paddingRight:10,fontWeight:"bold"},subLabel:{color:theme.colors.text}})}(theme)}),[theme]);return(0,_jsxRuntime.jsxs)(_Pressable.default,{style:[styles.container,contentContainerStyle],onPress,children:[(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.textContainer,textContentContainerStyle],children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.label,labelStyle],children:label}),subLabel?(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.subLabel,subLabelStyle],children:subLabel}):null]}),(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"chevron-right",size:24,color:theme.colors.text})]})};try{ListItem.displayName="ListItem",ListItem.__docgenInfo={description:"",displayName:"ListItem",props:{contentContainerStyle:{defaultValue:null,description:"",name:"contentContainerStyle",required:!1,type:{name:"StyleProp"}},textContentContainerStyle:{defaultValue:null,description:"",name:"textContentContainerStyle",required:!1,type:{name:"StyleProp"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"StyleProp"}},subLabel:{defaultValue:null,description:"",name:"subLabel",required:!1,type:{name:"string"}},subLabelStyle:{defaultValue:null,description:"",name:"subLabelStyle",required:!1,type:{name:"StyleProp"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ListItem/ListItem.tsx#ListItem"]={docgenInfo:ListItem.__docgenInfo,name:"ListItem",path:"src/components/ListItem/ListItem.tsx#ListItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/LockInput/LockInput.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.LockInput=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),LockInput=exports.LockInput=function LockInput(_ref){var locked=_ref.locked,label=_ref.label,text=_ref.text,onPress=_ref.onPress;return(0,_jsxRuntime.jsx)(_TextInput.TextInput,{label,value:text,disabled:locked,right:(0,_jsxRuntime.jsx)(_reactNativePaper.TextInput.Icon,{icon:locked?"lock":"lock-open-variant-outline",onPress})})};try{LockInput.displayName="LockInput",LockInput.__docgenInfo={description:"",displayName:"LockInput",props:{locked:{defaultValue:null,description:"",name:"locked",required:!0,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/LockInput/LockInput.tsx#LockInput"]={docgenInfo:LockInput.__docgenInfo,name:"LockInput",path:"src/components/LockInput/LockInput.tsx#LockInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Notice/Notice.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.Notice=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")),_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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 icons={info:"information-outline",warning:"alert-circle-outline",success:"check-circle-outline",error:"close-circle-outline"},Notice=exports.Notice=function Notice(_ref2){var title=_ref2.title,_ref2$withIcon=_ref2.withIcon,withIcon=void 0===_ref2$withIcon||_ref2$withIcon,iconStyle=_ref2.iconStyle,_ref2$closable=_ref2.closable,closable=void 0!==_ref2$closable&&_ref2$closable,onClose=_ref2.onClose,message=_ref2.message,type=_ref2.type,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,type=_ref.type,backgroundColor={info:theme.colors.infoContainer,warning:theme.colors.warningContainer,error:theme.colors.errorContainer,success:theme.colors.successContainer}[type],iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[type];return _StyleSheet.default.create({container:{padding:10,backgroundColor,gap:5,flexDirection:"row",justifyContent:"center",alignContent:"center"},contentContainer:{flex:1,flexDirection:"column",justifyContent:"center",alignContent:"center"},text:{color:theme.colors.onSurface},title:{color:theme.colors.onSurface,fontWeight:"bold"},iconContainer:{justifyContent:"center",alignContent:"center"},iconStyle:{color:iconColor},closeIcon:{marginLeft:"auto"}})}({theme,type})}),[theme,type]),hasMessage=message&&message.length>0,_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),closed=_useState2[0],setClosed=_useState2[1],handleClose=(0,_react.useCallback)((function(){setClosed(!0),null==onClose||onClose()}),[onClose]);return closed?null:(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:withIcon&&(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icons[type],style:[styles.iconStyle,iconStyle],size:20})}),(0,_jsxRuntime.jsxs)(_View.default,{style:styles.contentContainer,children:[title&&(0,_jsxRuntime.jsx)(_Text.default,{style:styles.title,children:title}),hasMessage?(0,_jsxRuntime.jsx)(_Text.default,{children:message}):null]}),closable&&(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleClose,style:styles.closeIcon,children:(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"close",style:styles.iconStyle,size:20})})]})};try{Notice.displayName="Notice",Notice.__docgenInfo={description:"",displayName:"Notice",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},withIcon:{defaultValue:{value:"true"},description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:{value:"false"},description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.tsx#Notice"]={docgenInfo:Notice.__docgenInfo,name:"Notice",path:"src/components/Notice/Notice.tsx#Notice"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/NumberAdjuster/NumberAdjuster.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.NumberAdjuster=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _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")),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),NumberAdjuster=exports.NumberAdjuster=function NumberAdjuster(_ref){var label=_ref.label,value=_ref.value,onChange=_ref.onChange,_ref$min=_ref.min,min=void 0===_ref$min?1:_ref$min,_ref$max=_ref.max,max=void 0===_ref$max?1/0:_ref$max,_ref$step=_ref.step,step=void 0===_ref$step?1:_ref$step,containerStyle=_ref.containerStyle,inputStyle=_ref.inputStyle,buttonStyle=_ref.buttonStyle,buttonContainerStyle=_ref.buttonContainerStyle,styles=function getStyles(){return _StyleSheet.default.create({inputRow:{flexDirection:"row",alignItems:"center",marginBottom:10,gap:5},input:{flex:1},buttonContainer:{flexDirection:"row",gap:5}})}();return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.inputRow,containerStyle],children:[(0,_jsxRuntime.jsx)(_TextInput.TextInput,{label,value:value.toString(),style:[styles.input,inputStyle],onChangeText:function handleChangeText(text){var newValue=parseInt(text,10);isNaN(newValue)?onChange(min):onChange(Math.max(Math.min(newValue,max),min))},keyboardType:"numeric"}),(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.buttonContainer,buttonContainerStyle],children:[(0,_jsxRuntime.jsxs)(_Button.Button,{onPress:function handleDecrement(){onChange(Math.max(value-step,min))},style:[buttonStyle],children:["-",step]}),(0,_jsxRuntime.jsxs)(_Button.Button,{onPress:function handleIncrement(){onChange(Math.min(value+step,max))},style:[buttonStyle],children:["+",step]})]})]})};try{NumberAdjuster.displayName="NumberAdjuster",NumberAdjuster.__docgenInfo={description:"",displayName:"NumberAdjuster",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: number) => void"}},min:{defaultValue:{value:"1"},description:"",name:"min",required:!1,type:{name:"number"}},max:{defaultValue:null,description:"",name:"max",required:!1,type:{name:"number"}},step:{defaultValue:{value:"1"},description:"",name:"step",required:!1,type:{name:"number"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}},inputStyle:{defaultValue:null,description:"",name:"inputStyle",required:!1,type:{name:"StyleProp"}},buttonStyle:{defaultValue:null,description:"",name:"buttonStyle",required:!1,type:{name:"StyleProp"}},buttonContainerStyle:{defaultValue:null,description:"",name:"buttonContainerStyle",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/NumberAdjuster/NumberAdjuster.tsx#NumberAdjuster"]={docgenInfo:NumberAdjuster.__docgenInfo,name:"NumberAdjuster",path:"src/components/NumberAdjuster/NumberAdjuster.tsx#NumberAdjuster"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Pagination/Pagination.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.Pagination=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")),_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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx"),_TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx"),_PaginationItem=__webpack_require__("./src/components/Pagination/PaginationItem.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 Pagination=exports.Pagination=function Pagination(_ref2){var current=_ref2.current,_ref2$defaultCurrent=_ref2.defaultCurrent,defaultCurrent=void 0===_ref2$defaultCurrent?1:_ref2$defaultCurrent,pageSize=_ref2.pageSize,_ref2$defaultPageSize=_ref2.defaultPageSize,defaultPageSize=void 0===_ref2$defaultPageSize?10:_ref2$defaultPageSize,_ref2$maxVisiblePages=_ref2.maxVisiblePages,maxVisiblePages=void 0===_ref2$maxVisiblePages?5:_ref2$maxVisiblePages,_ref2$disabled=_ref2.disabled,disabled=void 0!==_ref2$disabled&&_ref2$disabled,_ref2$hideOnSinglePag=_ref2.hideOnSinglePage,hideOnSinglePage=void 0!==_ref2$hideOnSinglePag&&_ref2$hideOnSinglePag,itemRender=_ref2.itemRender,_ref2$pageSizeOptions=_ref2.pageSizeOptions,pageSizeOptions=void 0===_ref2$pageSizeOptions?[10,20,50,100]:_ref2$pageSizeOptions,_ref2$showSizeChanger=_ref2.showSizeChanger,showSizeChanger=void 0!==_ref2$showSizeChanger&&_ref2$showSizeChanger,_ref2$showQuickJumper=_ref2.showQuickJumper,showQuickJumper=void 0!==_ref2$showQuickJumper&&_ref2$showQuickJumper,showTotal=_ref2.showTotal,_ref2$total=_ref2.total,total=void 0===_ref2$total?0:_ref2$total,onChange=_ref2.onChange,onPageSizeChange=_ref2.onPageSizeChange,isMobile=(0,_useScreenWidth.useScreenWidth)()<480,styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var isMobile=_ref.isMobile;return _StyleSheet.default.create({container:{flexDirection:"row",justifyContent:"center",alignItems:"center",padding:10},pageSizeOptionsContainer:{flexDirection:"row",flexWrap:isMobile?"wrap":"nowrap"},pageSizeOption:{marginHorizontal:4,padding:8},paginationContainer:{flexDirection:"row",alignItems:"center",gap:5},pageNumber:{marginHorizontal:4,padding:8},currentPage:{},currentPageText:{fontWeight:"bold",textDecorationLine:"underline"},ellipsis:{fontSize:16},pageIndicator:{fontSize:isMobile?16:14},arrow:{fontSize:isMobile?20:16,fontWeight:"bold",padding:isMobile?16:8},quickJumperContainer:{flexDirection:"row",alignItems:"center"},quickJumperInput:{borderWidth:1,borderColor:"gray",padding:8,marginRight:8,minWidth:60}})}({isMobile})}),[isMobile]),_useState=(0,_react.useState)(null!=current?current:defaultCurrent),_useState2=(0,_slicedToArray2.default)(_useState,2),currentPage=_useState2[0],setCurrentPage=_useState2[1],_useState3=(0,_react.useState)(null!=pageSize?pageSize:defaultPageSize),_useState4=(0,_slicedToArray2.default)(_useState3,2),currentPageSize=_useState4[0],setCurrentPageSize=_useState4[1];(0,_react.useEffect)((function(){void 0!==current&&setCurrentPage(current)}),[current]),(0,_react.useEffect)((function(){void 0!==pageSize&&setCurrentPageSize(pageSize)}),[pageSize]);var totalPages=Math.ceil(total/currentPageSize),_useState5=(0,_react.useState)(""),_useState6=(0,_slicedToArray2.default)(_useState5,2),jumperPage=_useState6[0],setJumperPage=_useState6[1],inputRef=(0,_react.useRef)(null),visiblePages=(0,_react.useMemo)((function(){var startPage,endPage,totalVisiblePages=Math.min(maxVisiblePages,totalPages);if(totalPages<=totalVisiblePages)startPage=1,endPage=totalPages;else{var visiblePagesBeforeCurrent=Math.floor((totalVisiblePages-1)/2);startPage=Math.max(currentPage-visiblePagesBeforeCurrent,1),(endPage=Math.min(startPage+totalVisiblePages-1,totalPages))-startPage1&&(range.unshift(-1),range.unshift(1)),endPage=1&&page<=totalPages&&(handlePageChange(page),setJumperPage(""),_Keyboard.default.dismiss())};return isMobile?(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[currentPage>1&&renderItem(currentPage-1,"<"),showTotal?renderTotal():(0,_jsxRuntime.jsxs)(_Text.default,{style:styles.pageIndicator,children:["Page ",currentPage," of ",totalPages]}),currentPage")]}):(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsxs)(_View.default,{style:styles.paginationContainer,children:[renderTotal(),renderItem(currentPage-1,"<"),visiblePages.map((function(page){return-1===page?renderItem(page,"..."):renderItem(page)})),renderItem(currentPage+1,">")]}),function renderQuickJumper(){return showQuickJumper?(0,_jsxRuntime.jsxs)(_View.default,{style:styles.quickJumperContainer,children:[(0,_jsxRuntime.jsx)(_TextInput.TextInput,{ref:inputRef,style:styles.quickJumperInput,onChangeText:setJumperPage,value:jumperPage,keyboardType:"number-pad",placeholder:"Jump to page",returnKeyType:"go",onSubmitEditing:handleJump,editable:!disabled}),"object"==typeof showQuickJumper&&showQuickJumper.goButton?(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleJump,children:showQuickJumper.goButton}):(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleJump,disabled,children:(0,_jsxRuntime.jsx)(_Text.default,{children:"Go"})})]}):null}(),function renderPageSizeOptions(){return showSizeChanger?(0,_jsxRuntime.jsx)(_View.default,{style:styles.pageSizeOptionsContainer,children:pageSizeOptions.map((function(size){return(0,_jsxRuntime.jsx)(_Pressable.default,{style:styles.pageSizeOption,onPress:function onPress(){return function handlePageSizeChange(size){setCurrentPageSize(size),null==onPageSizeChange||onPageSizeChange(null!=current?current:1,size)}(Number(size))},disabled,children:(0,_jsxRuntime.jsxs)(_Text.default,{children:[size," / Page"]})},size)}))}):null}()]})};try{Pagination.displayName="Pagination",Pagination.__docgenInfo={description:"",displayName:"Pagination",props:{current:{defaultValue:null,description:"",name:"current",required:!1,type:{name:"number"}},defaultCurrent:{defaultValue:{value:"1"},description:"",name:"defaultCurrent",required:!1,type:{name:"number"}},defaultPageSize:{defaultValue:{value:"10"},description:"",name:"defaultPageSize",required:!1,type:{name:"number"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},maxVisiblePages:{defaultValue:{value:"5"},description:"",name:"maxVisiblePages",required:!1,type:{name:"number"}},hideOnSinglePage:{defaultValue:{value:"false"},description:"",name:"hideOnSinglePage",required:!1,type:{name:"boolean"}},itemRender:{defaultValue:null,description:"",name:"itemRender",required:!1,type:{name:"((_: { page: number; label?: string; originalElement: ReactNode; }) => ReactNode)"}},pageSize:{defaultValue:null,description:"",name:"pageSize",required:!1,type:{name:"number"}},pageSizeOptions:{defaultValue:{value:"[10, 20, 50, 100]"},description:"",name:"pageSizeOptions",required:!1,type:{name:"number[]"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}},showQuickJumper:{defaultValue:{value:"false"},description:"",name:"showQuickJumper",required:!1,type:{name:"boolean | { goButton: ReactNode; }"}},showSizeChanger:{defaultValue:{value:"false"},description:"",name:"showSizeChanger",required:!1,type:{name:"boolean"}},showTotal:{defaultValue:null,description:"",name:"showTotal",required:!1,type:{name:"((total: number, range: [number, number]) => ReactNode)"}},simple:{defaultValue:null,description:"",name:"simple",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"small"'}]}},total:{defaultValue:{value:"0"},description:"",name:"total",required:!1,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((page: number, pageSize: number) => void)"}},onPageSizeChange:{defaultValue:null,description:"",name:"onPageSizeChange",required:!1,type:{name:"((current: number, size: number) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Pagination/Pagination.tsx#Pagination"]={docgenInfo:Pagination.__docgenInfo,name:"Pagination",path:"src/components/Pagination/Pagination.tsx#Pagination"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Pagination/PaginationItem.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.PaginationItem=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")),_Dimensions=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Dimensions/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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/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 windowWidth=_Dimensions.default.get("window").width,PaginationItem=exports.PaginationItem=function PaginationItem(_ref){var page=_ref.page,label=_ref.label,isCurrent=_ref.isCurrent,_ref$disabled=_ref.disabled,disabled=void 0!==_ref$disabled&&_ref$disabled,_onPress=_ref.onPress,styles=(0,_react.useMemo)((function(){return function getStyles(){var isMobile=windowWidth<480;return _StyleSheet.default.create({container:{flexDirection:"row",alignItems:"center",padding:10},pageItem:{marginHorizontal:8,paddingVertical:4,paddingHorizontal:12,minWidth:isMobile?44:void 0,minHeight:isMobile?44:void 0,borderRadius:4,borderWidth:1,borderColor:"transparent"},currentPageItem:{borderColor:"blue",backgroundColor:"#f0f8ff"},ellipsis:{fontSize:16},arrow:{fontSize:16,fontWeight:"bold"},pageText:{fontSize:16},pageSizeSelector:{marginLeft:16,padding:4,borderWidth:1,borderRadius:4,borderColor:"gray"}})}()}),[]);return(0,_jsxRuntime.jsx)(_Pressable.default,{style:[styles.pageItem,isCurrent&&styles.currentPageItem],onPress:function onPress(){return _onPress(page)},disabled,children:(0,_jsxRuntime.jsx)(_Text.default,{style:styles.pageText,children:null!=label?label:page})})};try{PaginationItem.displayName="PaginationItem",PaginationItem.__docgenInfo={description:"",displayName:"PaginationItem",props:{page:{defaultValue:null,description:"",name:"page",required:!0,type:{name:"number"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},isCurrent:{defaultValue:null,description:"",name:"isCurrent",required:!0,type:{name:"boolean"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"(page: number) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Pagination/PaginationItem.tsx#PaginationItem"]={docgenInfo:PaginationItem.__docgenInfo,name:"PaginationItem",path:"src/components/Pagination/PaginationItem.tsx#PaginationItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/SelectItems/SelectItems.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.SelectItems=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")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_FlatList=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/FlatList/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"),_useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_logger=__webpack_require__("./src/utils/logger.ts"),_SelectButtons=__webpack_require__("./src/components/SelectButtons/SelectButtons.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("SelectItems"),SelectItems=exports.SelectItems=function SelectItems(_ref){var options=_ref.options,_ref$min=_ref.min,min=void 0===_ref$min?0:_ref$min,max=_ref.max,cols=_ref.cols,renderItem=_ref.renderItem,_ref$multiSelect=_ref.multiSelect,multiSelect=void 0!==_ref$multiSelect&&_ref$multiSelect,_ref$showFooter=_ref.showFooter,showFooter=void 0===_ref$showFooter||_ref$showFooter,showSearch=_ref.showSearch,onFinish=_ref.onFinish,onChange=_ref.onChange,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,backgroundColor:theme.colors.surface},footer:{borderTopWidth:2,borderTopColor:theme.colors.outline,marginBottom:20,display:"flex",flexDirection:"row",justifyContent:"space-around",padding:10},finishButton:{},cancelButton:{}})}(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],refInit=(0,_react.useRef)(null),t=(0,_reactI18next.useTranslation)("select_items").t;null===refInit.current&&(refInit.current=options.map((function(option,index){return{index,selected:!!option.selected}})));var screenWidth=(0,_useScreenWidth.useScreenWidth)(),numColumns=(0,_react.useMemo)((function(){return cols||(screenWidth>=_SelectButtons.BREAKPOINTS.LG?4:screenWidth>=_SelectButtons.BREAKPOINTS.MD?3:screenWidth>=_SelectButtons.BREAKPOINTS.SM?2:1)}),[screenWidth,cols]),filteredOptions=(0,_react.useMemo)((function(){return currentOptions.filter((function(option){return option.label.toLowerCase().includes(searchQuery.toLowerCase())})).sort((function(a,b){return(a.order||1)-(b.order||1)}))}),[currentOptions,searchQuery]),handleSearchChange=(0,_react.useCallback)((function(query){return setSearchQuery(query)}),[]),handleItemChange=(0,_react.useCallback)((function(_ref2){var index=_ref2.index,newOptions=(0,_toConsumableArray2.default)(currentOptions),optionIndex=currentOptions.findIndex((function(option){return option===filteredOptions[index]})),option=newOptions[optionIndex];void 0!==option&&(option.selected=!option.selected,multiSelect||(newOptions=newOptions.map((function(opt,idx){return Object.assign({},opt,{selected:idx===optionIndex&&option.selected})})))),setCurrentOptions(newOptions),logger.log("newOptions",newOptions),null==onChange||onChange(newOptions)}),[currentOptions,filteredOptions,multiSelect,onChange,logger]),selectedOptionsCount=(0,_react.useMemo)((function(){return 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?t("max_error",{count:max}):""}),[selectedOptionsCount,min,max,t]),handleRender=(0,_react.useCallback)((function(_ref3){var item=_ref3.item,index=_ref3.index;return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:renderItem({item,index,onChange:handleItemChange})})}),[renderItem,handleItemChange]),handleKeyPress=(0,_react.useCallback)((function(event){"web"===_Platform.default.OS&&("Escape"===event.code&&setSearchQuery(""))}),[]),handleCancel=(0,_react.useCallback)((function(){var _refInit$current,newOptions=(0,_toConsumableArray2.default)(currentOptions);null==(_refInit$current=refInit.current)||_refInit$current.forEach((function(_ref4){var index=_ref4.index,selected=_ref4.selected,option=newOptions[index];option&&(option.selected=selected)})),setCurrentOptions(newOptions),null==onFinish||onFinish(options)}),[onFinish,currentOptions,options,refInit]),handleFinish=(0,_react.useCallback)((function(){refInit.current=null,null==onFinish||onFinish(currentOptions)}),[onFinish,currentOptions,refInit]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[showSearch&&(0,_jsxRuntime.jsx)(_reactNativePaper.Searchbar,{placeholder:t("search_placeholder"),clearButtonMode:"while-editing",onChangeText:handleSearchChange,onKeyPress:handleKeyPress,value:searchQuery}),(0,_jsxRuntime.jsx)(_reactNativePaper.HelperText,{type:"error",visible:isErrorVisible||!1,children:errorText}),(0,_jsxRuntime.jsx)(_FlatList.default,{data:filteredOptions,renderItem:handleRender,keyExtractor:function keyExtractor(_item,index){return`opt${index}`},numColumns},`flatlist-${numColumns}`),showFooter&&(0,_jsxRuntime.jsxs)(_View.default,{style:styles.footer,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{style:styles.cancelButton,onPress:handleCancel,children:t("cancel")}),(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{style:styles.finishButton,mode:"contained",onPress:handleFinish,children:t("finish")})]})]})};try{SelectItems.displayName="SelectItems",SelectItems.__docgenInfo={description:"",displayName:"SelectItems",props:{multiSelect:{defaultValue:{value:"false"},description:"",name:"multiSelect",required:!1,type:{name:"boolean"}},showSearch:{defaultValue:null,description:"",name:"showSearch",required:!1,type:{name:"boolean"}},renderItem:{defaultValue:null,description:"",name:"renderItem",required:!0,type:{name:"({ item, index, }: { item: SelectItemOption; index: number; onChange?: (({ item, index, }: { item: SelectItemOption; index: number; }) => void) | undefined; }) => ReactNode"}},showFooter:{defaultValue:{value:"true"},description:"",name:"showFooter",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"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectItemOption[]"}},onFinish:{defaultValue:null,description:"",name:"onFinish",required:!1,type:{name:"((options: SelectItemOption[]) => void)"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((options: SelectItemOption[]) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/SelectItems/SelectItems.tsx#SelectItems"]={docgenInfo:SelectItems.__docgenInfo,name:"SelectItems",path:"src/components/SelectItems/SelectItems.tsx#SelectItems"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.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.LoadingPulseBar=void 0;var _react=_interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_reactNativeReanimated=_interopRequireWildcard(__webpack_require__("./node_modules/react-native-reanimated/lib/module/index.web.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)}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}var _worklet_8964404333244_init_data={code:"function anonymous(){const{opacity}=this.__closure;return{opacity:opacity.value};}"},LoadingPulseBar=exports.LoadingPulseBar=function LoadingPulseBar(_ref2){var style=_ref2.style,_ref2$height=_ref2.height,height=void 0===_ref2$height?20:_ref2$height,_ref2$color=_ref2.color,color=void 0===_ref2$color?"#ccc":_ref2$color,_ref2$width=_ref2.width,width=void 0===_ref2$width?"100%":_ref2$width,_ref2$animationDurati=_ref2.animationDuration,animationDuration=void 0===_ref2$animationDurati?1e3:_ref2$animationDurati,_ref2$minOpacity=_ref2.minOpacity,minOpacity=void 0===_ref2$minOpacity?.5:_ref2$minOpacity,_ref2$maxOpacity=_ref2.maxOpacity,maxOpacity=void 0===_ref2$maxOpacity?1:_ref2$maxOpacity,styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var height=_ref.height,color=_ref.color,width=_ref.width;return _StyleSheet.default.create({pulseBar:{height,backgroundColor:color,borderRadius:5,width}})}({color,width,height})}),[color,width,height]),opacity=(0,_reactNativeReanimated.useSharedValue)(minOpacity);opacity.value=(0,_reactNativeReanimated.withRepeat)((0,_reactNativeReanimated.withTiming)(maxOpacity,{duration:animationDuration}),-1,!0);var anonymous,animatedStyles=(0,_reactNativeReanimated.useAnimatedStyle)(((anonymous=function anonymous(){return{opacity:opacity.value}}).__closure={opacity},anonymous.__workletHash=8964404333244,anonymous.__initData=_worklet_8964404333244_init_data,anonymous));return(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[styles.pulseBar,animatedStyles,style]})};try{LoadingPulseBar.displayName="LoadingPulseBar",LoadingPulseBar.__docgenInfo={description:"",displayName:"LoadingPulseBar",props:{style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},height:{defaultValue:{value:"20"},description:"",name:"height",required:!1,type:{name:"number"}},color:{defaultValue:{value:"#ccc"},description:"",name:"color",required:!1,type:{name:"string"}},width:{defaultValue:{value:"100%"},description:"",name:"width",required:!1,type:{name:"DimensionValue"}},animationDuration:{defaultValue:{value:"1000"},description:"",name:"animationDuration",required:!1,type:{name:"number"}},minOpacity:{defaultValue:{value:"0.5"},description:"",name:"minOpacity",required:!1,type:{name:"number"}},maxOpacity:{defaultValue:{value:"1"},description:"",name:"maxOpacity",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx#LoadingPulseBar"]={docgenInfo:LoadingPulseBar.__docgenInfo,name:"LoadingPulseBar",path:"src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx#LoadingPulseBar"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.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.LoadingPulseCircle=void 0;var _react=_interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_reactNativeReanimated=_interopRequireWildcard(__webpack_require__("./node_modules/react-native-reanimated/lib/module/index.web.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)}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}var _worklet_8964404333244_init_data={code:"function anonymous(){const{opacity}=this.__closure;return{opacity:opacity.value};}"},LoadingPulseCircle=exports.LoadingPulseCircle=function LoadingPulseCircle(_ref2){var style=_ref2.style,_ref2$color=_ref2.color,color=void 0===_ref2$color?"#CCC":_ref2$color,_ref2$size=_ref2.size,size=void 0===_ref2$size?50:_ref2$size,_ref2$animationDurati=_ref2.animationDuration,animationDuration=void 0===_ref2$animationDurati?1e3:_ref2$animationDurati,_ref2$minOpacity=_ref2.minOpacity,minOpacity=void 0===_ref2$minOpacity?.5:_ref2$minOpacity,_ref2$maxOpacity=_ref2.maxOpacity,maxOpacity=void 0===_ref2$maxOpacity?1:_ref2$maxOpacity,styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var size=_ref.size,color=_ref.color;return _StyleSheet.default.create({pulseCircle:{height:size,width:size,backgroundColor:color,borderRadius:size/2}})}({size,color})}),[size,color]),opacity=(0,_reactNativeReanimated.useSharedValue)(minOpacity);opacity.value=(0,_reactNativeReanimated.withRepeat)((0,_reactNativeReanimated.withTiming)(maxOpacity,{duration:animationDuration}),-1,!0);var anonymous,animatedStyles=(0,_reactNativeReanimated.useAnimatedStyle)(((anonymous=function anonymous(){return{opacity:opacity.value}}).__closure={opacity},anonymous.__workletHash=8964404333244,anonymous.__initData=_worklet_8964404333244_init_data,anonymous));return(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[styles.pulseCircle,animatedStyles,style]})};try{LoadingPulseCircle.displayName="LoadingPulseCircle",LoadingPulseCircle.__docgenInfo={description:"",displayName:"LoadingPulseCircle",props:{style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},size:{defaultValue:{value:"50"},description:"",name:"size",required:!1,type:{name:"number"}},color:{defaultValue:{value:"#CCC"},description:"",name:"color",required:!1,type:{name:"string"}},animationDuration:{defaultValue:{value:"1000"},description:"",name:"animationDuration",required:!1,type:{name:"number"}},minOpacity:{defaultValue:{value:"0.5"},description:"",name:"minOpacity",required:!1,type:{name:"number"}},maxOpacity:{defaultValue:{value:"1"},description:"",name:"maxOpacity",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx#LoadingPulseCircle"]={docgenInfo:LoadingPulseCircle.__docgenInfo,name:"LoadingPulseCircle",path:"src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx#LoadingPulseCircle"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Skeleton/Skeleton.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.Skeleton=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")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_LoadingPulseBar=__webpack_require__("./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx"),_LoadingPulseCircle=__webpack_require__("./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.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 defaultSkeletonItems=[{circles:1,bars:3},{circles:1,bars:3}],Skeleton=exports.Skeleton=function Skeleton(_ref){var _ref$items=_ref.items,items=void 0===_ref$items?defaultSkeletonItems:_ref$items,_ref$circleSize=_ref.circleSize,circleSize=void 0===_ref$circleSize?50:_ref$circleSize,_ref$barHeight=_ref.barHeight,barHeight=void 0===_ref$barHeight?20:_ref$barHeight,_ref$color=_ref.color,color=void 0===_ref$color?"#ccc":_ref$color,_ref$animationDuratio=_ref.animationDuration,animationDuration=void 0===_ref$animationDuratio?1e3:_ref$animationDuratio,_ref$minOpacity=_ref.minOpacity,minOpacity=void 0===_ref$minOpacity?.5:_ref$minOpacity,_ref$maxOpacity=_ref.maxOpacity,maxOpacity=void 0===_ref$maxOpacity?1:_ref$maxOpacity,style=_ref.style,styles=(0,_react.useMemo)((function(){return function getStyles(){return _StyleSheet.default.create({container:{},itemRow:{flexDirection:"row",alignItems:"center",marginBottom:10},circleContainer:{marginRight:10,gap:10},barContainer:{flex:1,gap:5,flexDirection:"column",justifyContent:"space-around"}})}()}),[]);return(0,_jsxRuntime.jsx)(_View.default,{style:[styles.container,style],children:items.map((function(item,index){return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.itemRow,children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.circleContainer,children:Array.from({length:item.circles},(function(_,circleIndex){return(0,_jsxRuntime.jsx)(_LoadingPulseCircle.LoadingPulseCircle,{size:circleSize,color,animationDuration,minOpacity,maxOpacity},`circle-${circleIndex}`)}))}),(0,_jsxRuntime.jsx)(_View.default,{style:styles.barContainer,children:Array.from({length:item.bars},(function(_,barIndex){return(0,_jsxRuntime.jsx)(_LoadingPulseBar.LoadingPulseBar,{height:barHeight,color,animationDuration,minOpacity,maxOpacity},`bar-${barIndex}`)}))})]},`skeleton-item-${index}`)}))})};try{Skeleton.displayName="Skeleton",Skeleton.__docgenInfo={description:"",displayName:"Skeleton",props:{items:{defaultValue:{value:"[\n { circles: 1, bars: 3 },\n { circles: 1, bars: 3 },\n]"},description:"",name:"items",required:!1,type:{name:"SkeletonItem[]"}},circleSize:{defaultValue:{value:"50"},description:"",name:"circleSize",required:!1,type:{name:"number"}},barHeight:{defaultValue:{value:"20"},description:"",name:"barHeight",required:!1,type:{name:"number"}},color:{defaultValue:{value:"#ccc"},description:"",name:"color",required:!1,type:{name:"string"}},animationDuration:{defaultValue:{value:"1000"},description:"",name:"animationDuration",required:!1,type:{name:"number"}},minOpacity:{defaultValue:{value:"0.5"},description:"",name:"minOpacity",required:!1,type:{name:"number"}},maxOpacity:{defaultValue:{value:"1"},description:"",name:"maxOpacity",required:!1,type:{name:"number"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Skeleton/Skeleton.tsx#Skeleton"]={docgenInfo:Skeleton.__docgenInfo,name:"Skeleton",path:"src/components/Skeleton/Skeleton.tsx#Skeleton"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Slider/Slider.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.Slider=void 0;var _slider=_interopRequireDefault(__webpack_require__("./node_modules/@react-native-community/slider/dist/Slider.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")),_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 Slider=exports.Slider=function Slider(_ref2){var _ref2$label=_ref2.label,label=void 0===_ref2$label?"":_ref2$label,value=_ref2.value,minimumValue=_ref2.minimumValue,maximumValue=_ref2.maximumValue,onValueChange=_ref2.onValueChange,onSlidingComplete=_ref2.onSlidingComplete,_ref2$disabled=_ref2.disabled,disabled=void 0!==_ref2$disabled&&_ref2$disabled,_ref2$step=_ref2.step,step=void 0===_ref2$step?1:_ref2$step,_ref2$showValue=_ref2.showValue,showValue=void 0!==_ref2$showValue&&_ref2$showValue,_ref2$valueFormatter=_ref2.valueFormatter,valueFormatter=void 0===_ref2$valueFormatter?function(val){return val.toString()}:_ref2$valueFormatter,containerStyle=_ref2.containerStyle,labelStyle=_ref2.labelStyle,sliderStyle=_ref2.sliderStyle,valueLabelStyle=_ref2.valueLabelStyle,onSlidingStart=_ref2.onSlidingStart,theme=(0,_ThemeProvider.useTheme)(),defaultStyles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,disabled=_ref.disabled;return _StyleSheet.default.create({container:{width:"100%",opacity:disabled?.5:1},label:{marginBottom:8,color:disabled?theme.colors.outline:theme.colors.text},webSlider:{width:"100%",height:30},valueLabel:{marginTop:8,textAlign:"right",color:disabled?theme.colors.outline:theme.colors.text}})}({theme,disabled})}),[theme,disabled]),handleWebSliderChange=(0,_react.useCallback)((function(event){disabled||onValueChange(Number(event.target.value))}),[onValueChange,disabled]),handleWebSliderComplete=(0,_react.useCallback)((function(event){if(!disabled){var inputElement=event.currentTarget;null==onSlidingComplete||onSlidingComplete(Number(inputElement.value))}}),[onSlidingComplete,disabled]),handleWebSliderStart=(0,_react.useCallback)((function(){!disabled&&onSlidingStart&&onSlidingStart()}),[disabled,onSlidingStart]);return(0,_jsxRuntime.jsxs)(_View.default,{style:_StyleSheet.default.flatten([defaultStyles.container,containerStyle]),children:[label&&(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:_StyleSheet.default.flatten([defaultStyles.label,labelStyle]),children:label}),function renderSlider(){var combinedSliderStyle=_StyleSheet.default.flatten([defaultStyles.webSlider,sliderStyle]);return"web"===_Platform.default.OS?(0,_jsxRuntime.jsx)("input",{type:"range",min:minimumValue,max:maximumValue,value,onChange:handleWebSliderChange,onMouseDown:handleWebSliderStart,onMouseUp:handleWebSliderComplete,style:Object.assign({},combinedSliderStyle,{cursor:disabled?"not-allowed":"pointer",backgroundColor:"transparent"}),disabled,step}):(0,_jsxRuntime.jsx)(_slider.default,{style:combinedSliderStyle,minimumValue,maximumValue,value,onValueChange:disabled?void 0:onValueChange,onSlidingStart:disabled?void 0:onSlidingStart,onSlidingComplete:disabled?void 0:onSlidingComplete,minimumTrackTintColor:disabled?theme.colors.outline:theme.colors.primary,maximumTrackTintColor:disabled?theme.colors.outline:theme.colors.secondary,disabled,step})}(),showValue&&(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:_StyleSheet.default.flatten([defaultStyles.valueLabel,valueLabelStyle]),children:valueFormatter(value)})]})};try{Slider.displayName="Slider",Slider.__docgenInfo={description:"",displayName:"Slider",props:{label:{defaultValue:{value:""},description:"",name:"label",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"number"}},minimumValue:{defaultValue:null,description:"",name:"minimumValue",required:!0,type:{name:"number"}},maximumValue:{defaultValue:null,description:"",name:"maximumValue",required:!0,type:{name:"number"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!0,type:{name:"(value: number) => void"}},onSlidingComplete:{defaultValue:null,description:"",name:"onSlidingComplete",required:!1,type:{name:"((value: number) => void)"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},step:{defaultValue:{value:"1"},description:"",name:"step",required:!1,type:{name:"number"}},showValue:{defaultValue:{value:"false"},description:"",name:"showValue",required:!1,type:{name:"boolean"}},valueFormatter:{defaultValue:{value:"(val: number) => val.toString()"},description:"",name:"valueFormatter",required:!1,type:{name:"((value: number) => string)"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"ViewStyle"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"TextStyle"}},sliderStyle:{defaultValue:null,description:"",name:"sliderStyle",required:!1,type:{name:"ViewStyle"}},valueLabelStyle:{defaultValue:null,description:"",name:"valueLabelStyle",required:!1,type:{name:"TextStyle"}},onSlidingStart:{defaultValue:null,description:"",name:"onSlidingStart",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Slider/Slider.tsx#Slider"]={docgenInfo:Slider.__docgenInfo,name:"Slider",path:"src/components/Slider/Slider.tsx#Slider"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Spacer/Spacer.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.Spacer=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Spacer=exports.Spacer=function Spacer(_ref){var horizontal=_ref.horizontal,vertical=_ref.vertical;return(0,_jsxRuntime.jsx)(_View.default,{style:{paddingHorizontal:horizontal,paddingVertical:vertical}})};try{Spacer.displayName="Spacer",Spacer.__docgenInfo={description:"",displayName:"Spacer",props:{horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"number"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Spacer/Spacer.tsx#Spacer"]={docgenInfo:Spacer.__docgenInfo,name:"Spacer",path:"src/components/Spacer/Spacer.tsx#Spacer"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/ThemedView/ThemedView.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.ThemedView=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")),_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");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 ThemedView=exports.ThemedView=function ThemedView(_ref2){var children=_ref2.children,style=_ref2.style,theme=(0,_ThemeProvider.useTheme)(),insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,insets=_ref.insets;return _StyleSheet.default.create({container:{flex:1,backgroundColor:theme.colors.background,paddingBottom:insets.bottom,paddingLeft:insets.left,paddingRight:insets.left}})}({theme,insets})}),[theme,insets]);return(0,_jsxRuntime.jsx)(_View.default,{style:[styles.container,style],children})};try{ThemedView.displayName="ThemedView",ThemedView.__docgenInfo={description:"",displayName:"ThemedView",props:{style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ThemedView/ThemedView.tsx#ThemedView"]={docgenInfo:ThemedView.__docgenInfo,name:"ThemedView",path:"src/components/ThemedView/ThemedView.tsx#ThemedView"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/bottom-modal/CustomBackdrop/CustomBackdrop.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.styles=exports.CustomBackdrop=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_bottomSheet=__webpack_require__("./node_modules/@gorhom/bottom-sheet/lib/module/index.js"),_react=_interopRequireWildcard(__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")),_reactNativeReanimated=_interopRequireWildcard(__webpack_require__("./node_modules/react-native-reanimated/lib/module/index.web.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)}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}var AnimatedPressable=_reactNativeReanimated.default.createAnimatedComponent(_Pressable.default),styles=exports.styles=_StyleSheet.default.create({container:{backgroundColor:"black"}}),_worklet_12614392125157_init_data={code:"function anonymous(){const{interpolate,animatedIndex,disappearsOnIndex,appearsOnIndex,opacity,Extrapolate}=this.__closure;return{opacity:interpolate(animatedIndex.value,[-1,disappearsOnIndex,appearsOnIndex],[0,opacity,opacity],Extrapolate.CLAMP),flex:1};}"},_worklet_13286801629332_init_data={code:"function anonymous(){const{animatedIndex,disappearsOnIndex}=this.__closure;return animatedIndex.value<=disappearsOnIndex;}"},_worklet_7854563618277_init_data={code:"function anonymous(shouldDisableTouchability,previous){const{disappearsOnIndex,runOnJS,handleContainerTouchability}=this.__closure;if(shouldDisableTouchability===previous||disappearsOnIndex===-1){return;}runOnJS(handleContainerTouchability)(shouldDisableTouchability);}"},CustomBackdrop=exports.CustomBackdrop=function CustomBackdrop(_ref){var anonymous,animatedIndex=_ref.animatedIndex,_providedOpacity=_ref.opacity,_providedAppearsOnIndex=_ref.appearsOnIndex,_providedDisappearsOnIndex=_ref.disappearsOnIndex,_providedEnableTouchThrough=_ref.enableTouchThrough,_ref$pressBehavior=_ref.pressBehavior,pressBehavior=void 0===_ref$pressBehavior?"close":_ref$pressBehavior,onPress=_ref.onPress,style=_ref.style,children=_ref.children,_useBottomSheet=(0,_bottomSheet.useBottomSheet)(),snapToIndex=_useBottomSheet.snapToIndex,close=_useBottomSheet.close,opacity=null!=_providedOpacity?_providedOpacity:.5,appearsOnIndex=null!=_providedAppearsOnIndex?_providedAppearsOnIndex:1,disappearsOnIndex=null!=_providedDisappearsOnIndex?_providedDisappearsOnIndex:0,enableTouchThrough=null!=_providedEnableTouchThrough&&_providedEnableTouchThrough,_useState=(0,_react.useState)(enableTouchThrough?"none":"auto"),_useState2=(0,_slicedToArray2.default)(_useState,2),pointerEvents=_useState2[0],setPointerEvents=_useState2[1],handleOnPress=(0,_react.useCallback)((function(){null==onPress||onPress(),"close"===pressBehavior?close():"collapse"===pressBehavior?snapToIndex(disappearsOnIndex):"number"==typeof pressBehavior&&snapToIndex(pressBehavior)}),[snapToIndex,close,disappearsOnIndex,pressBehavior,onPress]),handleContainerTouchability=(0,_react.useCallback)((function(shouldDisableTouchability){setPointerEvents(shouldDisableTouchability?"none":"auto")}),[]),containerAnimatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(((anonymous=function anonymous(){return{opacity:(0,_reactNativeReanimated.interpolate)(animatedIndex.value,[-1,disappearsOnIndex,appearsOnIndex],[0,opacity,opacity],_reactNativeReanimated.Extrapolate.CLAMP),flex:1}}).__closure={interpolate:_reactNativeReanimated.interpolate,animatedIndex,disappearsOnIndex,appearsOnIndex,opacity,Extrapolate:_reactNativeReanimated.Extrapolate},anonymous.__workletHash=0xb79045c96e5,anonymous.__initData=_worklet_12614392125157_init_data,anonymous)),containerStyle=(0,_react.useMemo)((function(){return[styles.container,style,containerAnimatedStyle]}),[style,containerAnimatedStyle]);return(0,_reactNativeReanimated.useAnimatedReaction)(function(){var anonymous=function anonymous(){return animatedIndex.value<=disappearsOnIndex};return anonymous.__closure={animatedIndex,disappearsOnIndex},anonymous.__workletHash=0xc1593176094,anonymous.__initData=_worklet_13286801629332_init_data,anonymous}(),function(){var anonymous=function anonymous(shouldDisableTouchability,previous){shouldDisableTouchability!==previous&&-1!==disappearsOnIndex&&(0,_reactNativeReanimated.runOnJS)(handleContainerTouchability)(shouldDisableTouchability)};return anonymous.__closure={disappearsOnIndex,runOnJS:_reactNativeReanimated.runOnJS,handleContainerTouchability},anonymous.__workletHash=7854563618277,anonymous.__initData=_worklet_7854563618277_init_data,anonymous}(),[disappearsOnIndex]),"none"!==pressBehavior?(0,_jsxRuntime.jsx)(AnimatedPressable,{onPress:handleOnPress,style:containerStyle,pointerEvents,accessible:!0,accessibilityRole:"button",accessibilityLabel:"Bottom Sheet backdrop",accessibilityHint:`Tap to ${"string"==typeof pressBehavior?pressBehavior:"move"} the Bottom Sheet`,children}):(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{pointerEvents,style:containerStyle,children})};try{CustomBackdrop.displayName="CustomBackdrop",CustomBackdrop.__docgenInfo={description:"",displayName:"CustomBackdrop",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx#CustomBackdrop"]={docgenInfo:CustomBackdrop.__docgenInfo,name:"CustomBackdrop",path:"src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx#CustomBackdrop"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/useConfirm/useConfirm.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.useConfirm=void 0;var _react=__webpack_require__("./node_modules/react/index.js"),_ConfirmProvider=__webpack_require__("./src/providers/ConfirmProvider.tsx");exports.useConfirm=function useConfirm(){var context=(0,_react.useContext)(_ConfirmProvider.ConfirmContext);if(!context)throw new Error("useConfirm must be used within a ConfirmProvider");return context}},"./src/hooks/useToast/useToast.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.useToast=void 0;var _react=__webpack_require__("./node_modules/react/index.js"),_ToastProvider=__webpack_require__("./src/providers/ToastProvider.tsx"),useToast=exports.useToast=function useToast(){var toast=(0,_react.useContext)(_ToastProvider.ToastContext);if(!toast)throw new Error("useToast must be used within a ToastProvider.");return toast};try{useToast.displayName="useToast",useToast.__docgenInfo={description:"useToast hook is used to show and hide Toast messages.\n## Usage\nImport the `useToast` hook from the library. Calling it will return you an object with two functions `show` and `hide` to show or hide toast.\n\n```tsx\nimport { useToast } from 'react-native-paper-toast';\n\nexport const Screen: React.FC = (props) => {\n const toaster = useToast();\n // You can now toast methods from handler functions, effects or onPress props!\n\n // Call from handler function\n const handleError = () =>\n toaster.show({ message: 'Invalid Username', type: 'error' });\n\n // Call from Effects\n useEffect(() => {\n login(username, password).then((v) =>\n toaster.show({ message: 'Login successful', duration: 2000 })\n );\n });\n\n return (\n \n \n \n \n );\n};\n```",displayName:"useToast",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useToast/useToast.tsx#useToast"]={docgenInfo:useToast.__docgenInfo,name:"useToast",path:"src/hooks/useToast/useToast.tsx#useToast"})}catch(__react_docgen_typescript_loader_error){}},"./src/index.ts":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var _Accordion=__webpack_require__("./src/components/Accordion/Accordion.tsx");Object.keys(_Accordion).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Accordion[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Accordion[key]}}))}));var _AccordionItem=__webpack_require__("./src/components/Accordion/AccordionItem/AccordionItem.tsx");Object.keys(_AccordionItem).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_AccordionItem[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _AccordionItem[key]}}))}));var _CustomBackdrop=__webpack_require__("./src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx");Object.keys(_CustomBackdrop).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_CustomBackdrop[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _CustomBackdrop[key]}}))}));var _ConfirmCancelFooter=__webpack_require__("./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx");Object.keys(_ConfirmCancelFooter).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ConfirmCancelFooter[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ConfirmCancelFooter[key]}}))}));var _LabelHandler=__webpack_require__("./src/components/bottom-modal/handlers/LabelHandler.tsx");Object.keys(_LabelHandler).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LabelHandler[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LabelHandler[key]}}))}));var _Button=__webpack_require__("./src/components/Button/Button.tsx");Object.keys(_Button).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Button[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Button[key]}}))}));var _ColorItem=__webpack_require__("./src/components/Colors/ColorItem/ColorItem.tsx");Object.keys(_ColorItem).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ColorItem[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ColorItem[key]}}))}));var _ColorPicker=__webpack_require__("./src/components/Colors/ColorPicker/ColorPicker.tsx");Object.keys(_ColorPicker).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ColorPicker[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ColorPicker[key]}}))}));var _Divider=__webpack_require__("./src/components/Divider/Divider.tsx");Object.keys(_Divider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Divider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Divider[key]}}))}));var _DynInput=__webpack_require__("./src/components/DynInput/DynInput.tsx");Object.keys(_DynInput).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_DynInput[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _DynInput[key]}}))}));var _Empty=__webpack_require__("./src/components/Empty/Empty.tsx");Object.keys(_Empty).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Empty[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Empty[key]}}))}));var _Picker=__webpack_require__("./src/components/Picker/Picker.tsx");Object.keys(_Picker).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Picker[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Picker[key]}}))}));var _LabelSwitch=__webpack_require__("./src/components/LabelSwitch/LabelSwitch.tsx");Object.keys(_LabelSwitch).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LabelSwitch[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LabelSwitch[key]}}))}));var _LockInput=__webpack_require__("./src/components/LockInput/LockInput.tsx");Object.keys(_LockInput).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LockInput[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LockInput[key]}}))}));var _ScreenWrapper=__webpack_require__("./src/components/ScreenWrapper/ScreenWrapper.tsx");Object.keys(_ScreenWrapper).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ScreenWrapper[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ScreenWrapper[key]}}))}));var _SelectButtons=__webpack_require__("./src/components/SelectButtons/SelectButtons.tsx");Object.keys(_SelectButtons).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_SelectButtons[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _SelectButtons[key]}}))}));var _SelectItems=__webpack_require__("./src/components/SelectItems/SelectItems.tsx");Object.keys(_SelectItems).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_SelectItems[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _SelectItems[key]}}))}));var _Spacer=__webpack_require__("./src/components/Spacer/Spacer.tsx");Object.keys(_Spacer).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Spacer[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Spacer[key]}}))}));var _TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx");Object.keys(_TextInput).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_TextInput[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _TextInput[key]}}))}));var _ThemedView=__webpack_require__("./src/components/ThemedView/ThemedView.tsx");Object.keys(_ThemedView).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ThemedView[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ThemedView[key]}}))}));var _Notice=__webpack_require__("./src/components/Notice/Notice.tsx");Object.keys(_Notice).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Notice[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Notice[key]}}))}));var _Result=__webpack_require__("./src/components/Result/Result.tsx");Object.keys(_Result).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Result[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Result[key]}}))}));var _ConfirmDialog=__webpack_require__("./src/components/ConfirmDialog/ConfirmDialog.tsx");Object.keys(_ConfirmDialog).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ConfirmDialog[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ConfirmDialog[key]}}))}));var _Toast=__webpack_require__("./src/components/Toast/Toast.tsx");Object.keys(_Toast).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Toast[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Toast[key]}}))}));var _Skeleton=__webpack_require__("./src/components/Skeleton/Skeleton.tsx");Object.keys(_Skeleton).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Skeleton[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Skeleton[key]}}))}));var _LoadingPulseCircle=__webpack_require__("./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx");Object.keys(_LoadingPulseCircle).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LoadingPulseCircle[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LoadingPulseCircle[key]}}))}));var _LoadingPulseBar=__webpack_require__("./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx");Object.keys(_LoadingPulseBar).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LoadingPulseBar[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LoadingPulseBar[key]}}))}));var _Pagination=__webpack_require__("./src/components/Pagination/Pagination.tsx");Object.keys(_Pagination).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Pagination[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Pagination[key]}}))}));var _PaginationItem=__webpack_require__("./src/components/Pagination/PaginationItem.tsx");Object.keys(_PaginationItem).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_PaginationItem[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _PaginationItem[key]}}))}));var _ListItem=__webpack_require__("./src/components/ListItem/ListItem.tsx");Object.keys(_ListItem).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ListItem[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ListItem[key]}}))}));var _EditableInfoCard=__webpack_require__("./src/components/EditableInfoCard/EditableInfoCard.tsx");Object.keys(_EditableInfoCard).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_EditableInfoCard[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _EditableInfoCard[key]}}))}));var _RefreshControl=__webpack_require__("./src/components/RefreshControl/RefreshControl.tsx");Object.keys(_RefreshControl).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_RefreshControl[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _RefreshControl[key]}}))}));var _NumberAdjuster=__webpack_require__("./src/components/NumberAdjuster/NumberAdjuster.tsx");Object.keys(_NumberAdjuster).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_NumberAdjuster[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _NumberAdjuster[key]}}))}));var _FABGroup=__webpack_require__("./src/components/FAB/FABGroup.tsx");Object.keys(_FABGroup).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_FABGroup[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _FABGroup[key]}}))}));var _Slider=__webpack_require__("./src/components/Slider/Slider.tsx");Object.keys(_Slider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Slider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Slider[key]}}))}));var _HelperWrapper=__webpack_require__("./src/components/HelperWrapper/HelperWrapper.tsx");Object.keys(_HelperWrapper).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_HelperWrapper[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _HelperWrapper[key]}}))}));var _HelperText=__webpack_require__("./src/components/HelperText/HelperText.tsx");Object.keys(_HelperText).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_HelperText[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _HelperText[key]}}))}));var _ThemeConfig=__webpack_require__("./src/settings/ThemeConfig/ThemeConfig.tsx");Object.keys(_ThemeConfig).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ThemeConfig[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ThemeConfig[key]}}))}));var _ThemeViewer=__webpack_require__("./src/settings/ThemeViewer/ThemeViewer.tsx");Object.keys(_ThemeViewer).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ThemeViewer[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ThemeViewer[key]}}))}));var _useAppPreferencesSetup=__webpack_require__("./src/hooks/_useAppPreferencesSetup.tsx");Object.keys(_useAppPreferencesSetup).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useAppPreferencesSetup[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useAppPreferencesSetup[key]}}))}));var _useAppThemeSetup=__webpack_require__("./src/hooks/_useAppThemeSetup.tsx");Object.keys(_useAppThemeSetup).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useAppThemeSetup[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useAppThemeSetup[key]}}))}));var _useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx");Object.keys(_useScreenWidth).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useScreenWidth[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useScreenWidth[key]}}))}));var _useConfirm=__webpack_require__("./src/hooks/useConfirm/useConfirm.tsx");Object.keys(_useConfirm).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useConfirm[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useConfirm[key]}}))}));var _useToast=__webpack_require__("./src/hooks/useToast/useToast.tsx");Object.keys(_useToast).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useToast[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useToast[key]}}))}));var _useModal=__webpack_require__("./src/hooks/useModal/useModal.tsx");Object.keys(_useModal).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useModal[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useModal[key]}}))}));var _BottomSheetProvider=__webpack_require__("./src/providers/BottomSheetProvider.tsx");Object.keys(_BottomSheetProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_BottomSheetProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _BottomSheetProvider[key]}}))}));var _ModalProvider=__webpack_require__("./src/providers/ModalProvider.tsx");Object.keys(_ModalProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ModalProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ModalProvider[key]}}))}));var _LanguageProvider=__webpack_require__("./src/providers/LanguageProvider.tsx");Object.keys(_LanguageProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LanguageProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LanguageProvider[key]}}))}));var _ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx");Object.keys(_ThemeProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ThemeProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ThemeProvider[key]}}))}));var _UIProvider=__webpack_require__("./src/providers/UIProvider.tsx");Object.keys(_UIProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_UIProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _UIProvider[key]}}))}));var _ConfirmProvider=__webpack_require__("./src/providers/ConfirmProvider.tsx");Object.keys(_ConfirmProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ConfirmProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ConfirmProvider[key]}}))}));var _ToastProvider=__webpack_require__("./src/providers/ToastProvider.tsx");Object.keys(_ToastProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ToastProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ToastProvider[key]}}))}))},"./src/settings/ThemeViewer/ThemeViewer.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.ThemeViewer=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")),_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")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ColorItem=__webpack_require__("./src/components/Colors/ColorItem/ColorItem.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_UIProvider=__webpack_require__("./src/providers/UIProvider.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 ThemeViewer=exports.ThemeViewer=function ThemeViewer(_){var _useTheme=(0,_ThemeProvider.useTheme)(),colors=_useTheme.colors,dark=_useTheme.dark,styles=(0,_react.useMemo)((function(){return function getStyles(){return _StyleSheet.default.create({container:{flex:1},scrollView:{maxWidth:"100%"}})}()}),[]),colorEntries=Object.entries(colors).filter((function(_ref){return"string"==typeof(0,_slicedToArray2.default)(_ref,2)[1]})),darkThemeEntries=Object.entries(_UIProvider.DefaultDarkTheme.colors).filter((function(_ref3){return"string"==typeof(0,_slicedToArray2.default)(_ref3,2)[1]})),lightThemeEntries=Object.entries(_UIProvider.DefaultLightTheme.colors).filter((function(_ref5){return"string"==typeof(0,_slicedToArray2.default)(_ref5,2)[1]}));return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsxs)(_reactNativePaper.Text,{children:["DarkMode: ",dark?"YES":"NO"]}),(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:colors.background,label:"colors.background"}),(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:colors.backdrop,label:"colors.backdrop"}),(0,_jsxRuntime.jsxs)(_ScrollView.default,{style:styles.scrollView,contentContainerStyle:{flexDirection:"row"},children:[(0,_jsxRuntime.jsxs)(_View.default,{style:{borderWidth:1,padding:5,width:"30%"},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{children:"Active Theme Colors"}),colorEntries.map((function(_ref7){var _ref8=(0,_slicedToArray2.default)(_ref7,2),key=_ref8[0],value=_ref8[1];return(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:value,label:`colors.${key}`},key)}))]}),(0,_jsxRuntime.jsxs)(_View.default,{style:{borderWidth:1,padding:5,width:"30%",backgroundColor:_UIProvider.DefaultDarkTheme.colors.background},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:{color:_UIProvider.DefaultDarkTheme.colors.text},children:"Dark Theme Colors"}),darkThemeEntries.map((function(_ref9){var _ref10=(0,_slicedToArray2.default)(_ref9,2),key=_ref10[0],value=_ref10[1];return(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:value,labelStyle:{color:_UIProvider.DefaultDarkTheme.colors.text},label:`colors.${key}`},key)}))]}),(0,_jsxRuntime.jsxs)(_View.default,{style:{borderWidth:1,padding:5,width:"30%",backgroundColor:_UIProvider.DefaultLightTheme.colors.background},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:{color:_UIProvider.DefaultLightTheme.colors.text},children:"Light Theme Colors"}),lightThemeEntries.map((function(_ref11){var _ref12=(0,_slicedToArray2.default)(_ref11,2),key=_ref12[0],value=_ref12[1];return(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:value,labelStyle:{color:_UIProvider.DefaultLightTheme.colors.text},label:`colors.${key}`},key)}))]})]})]})};try{ThemeViewer.displayName="ThemeViewer",ThemeViewer.__docgenInfo={description:"",displayName:"ThemeViewer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/settings/ThemeViewer/ThemeViewer.tsx#ThemeViewer"]={docgenInfo:ThemeViewer.__docgenInfo,name:"ThemeViewer",path:"src/settings/ThemeViewer/ThemeViewer.tsx#ThemeViewer"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file +(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[1478,8276,3895,7228,4618,5580,4983,560,7596,2076,5838,6040,3610,7123,4680,1336,7036,8908,4800,6786,5346,8140,6022,4464],{"./src/components/Accordion/Accordion.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.Accordion=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")),_AccordionItem=__webpack_require__("./src/components/Accordion/AccordionItem/AccordionItem.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 Accordion=exports.Accordion=function Accordion(_ref){var data=_ref.data,titleStyle=_ref.titleStyle,contentContainerStyle=_ref.contentContainerStyle,_ref$singleExpand=_ref.singleExpand,singleExpand=void 0!==_ref$singleExpand&&_ref$singleExpand,_useState=(0,_react.useState)(data.reduce((function(acc,item,index){return item.expanded?[].concat((0,_toConsumableArray2.default)(acc),[index]):acc}),[])),_useState2=(0,_slicedToArray2.default)(_useState,2),expandedIndices=_useState2[0],setExpandedIndices=_useState2[1],handleHeaderPress=(0,_react.useCallback)((function(index){var _data$index;setExpandedIndices((function(prevIndices){var isExpanded=prevIndices.includes(index);return singleExpand?isExpanded?[]:[index]:isExpanded?prevIndices.filter((function(i){return i!==index})):[].concat((0,_toConsumableArray2.default)(prevIndices),[index])})),null==(_data$index=data[index])||null==_data$index.onHeaderPress||_data$index.onHeaderPress()}),[singleExpand,data]);return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:data.map((function(item,index){return(0,_jsxRuntime.jsx)(_AccordionItem.AccordionItem,Object.assign({},item,{titleStyle:[titleStyle,item.titleStyle],contentContainerStyle:[contentContainerStyle,item.contentContainerStyle],expanded:expandedIndices.includes(index),onHeaderPress:function onHeaderPress(){return handleHeaderPress(index)}}),index)}))})};try{Accordion.displayName="Accordion",Accordion.__docgenInfo={description:"",displayName:"Accordion",props:{data:{defaultValue:null,description:"",name:"data",required:!0,type:{name:"AccordionItemProps[]"}},titleStyle:{defaultValue:null,description:"",name:"titleStyle",required:!1,type:{name:"StyleProp"}},contentContainerStyle:{defaultValue:null,description:"",name:"contentContainerStyle",required:!1,type:{name:"StyleProp"}},singleExpand:{defaultValue:{value:"false"},description:"",name:"singleExpand",required:!1,type:{name:"boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Accordion/Accordion.tsx#Accordion"]={docgenInfo:Accordion.__docgenInfo,name:"Accordion",path:"src/components/Accordion/Accordion.tsx#Accordion"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Accordion/AccordionItem/AccordionItem.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.AccordionItem=void 0;var _react=_interopRequireWildcard(__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"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.js"),_reactNativeReanimated=_interopRequireWildcard(__webpack_require__("./node_modules/react-native-reanimated/lib/module/index.web.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)}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}var animationConfig={duration:300,easing:_reactNativeReanimated.Easing.bezier(.4,0,.2,1)},_worklet_14197898985804_init_data={code:"function anonymous(){const{animationProgress}=this.__closure;return{opacity:animationProgress.value,height:animationProgress.value===0?0:'auto'};}"},_worklet_13209353803972_init_data={code:'function anonymous(){const{animationProgress}=this.__closure;return{transform:[{rotate:animationProgress.value*90+"deg"}]};}'},AccordionItem=exports.AccordionItem=function AccordionItem(_ref2){var anonymous,title=_ref2.title,titleStyle=_ref2.titleStyle,contentContainerStyle=_ref2.contentContainerStyle,children=_ref2.children,_ref2$expanded=_ref2.expanded,expanded=void 0!==_ref2$expanded&&_ref2$expanded,onHeaderPress=_ref2.onHeaderPress,theme=(0,_ThemeProvider.useTheme)(),styles=function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{},header:{padding:12,backgroundColor:theme.colors.primaryContainer,flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{color:theme.colors.text},contentContainer:{backgroundColor:theme.colors.background,overflow:"hidden"},content:{padding:5}})}({theme}),animationProgress=(0,_reactNativeReanimated.useSharedValue)(expanded?1:0),contentAnimatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(((anonymous=function anonymous(){return{opacity:animationProgress.value,height:0===animationProgress.value?0:"auto"}}).__closure={animationProgress},anonymous.__workletHash=0xce9b4b9c14c,anonymous.__initData=_worklet_14197898985804_init_data,anonymous)),iconAnimatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(function(){var anonymous=function anonymous(){return{transform:[{rotate:90*animationProgress.value+"deg"}]}};return anonymous.__closure={animationProgress},anonymous.__workletHash=0xc038ad758c4,anonymous.__initData=_worklet_13209353803972_init_data,anonymous}()),handlePress=(0,_react.useCallback)((function(){onHeaderPress&&onHeaderPress(),animationProgress.value=(0,_reactNativeReanimated.withTiming)(0===animationProgress.value?1:0,animationConfig)}),[onHeaderPress]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsxs)(_Pressable.default,{style:styles.header,onPress:handlePress,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.title,titleStyle],children:title}),(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:iconAnimatedStyle,children:(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"chevron-right",size:24,color:theme.colors.text})})]}),(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[styles.contentContainer,contentAnimatedStyle,contentContainerStyle],children:(0,_jsxRuntime.jsx)(_View.default,{style:styles.content,children})})]})};try{AccordionItem.displayName="AccordionItem",AccordionItem.__docgenInfo={description:"",displayName:"AccordionItem",props:{titleStyle:{defaultValue:null,description:"",name:"titleStyle",required:!1,type:{name:"StyleProp"}},contentContainerStyle:{defaultValue:null,description:"",name:"contentContainerStyle",required:!1,type:{name:"StyleProp"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"string"}},expanded:{defaultValue:{value:"false"},description:"",name:"expanded",required:!1,type:{name:"boolean"}},onHeaderPress:{defaultValue:null,description:"",name:"onHeaderPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Accordion/AccordionItem/AccordionItem.tsx#AccordionItem"]={docgenInfo:AccordionItem.__docgenInfo,name:"AccordionItem",path:"src/components/Accordion/AccordionItem/AccordionItem.tsx#AccordionItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Colors/ColorItem/ColorItem.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.ColorItem=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")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_TouchableOpacity=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/TouchableOpacity/index.js")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/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 ColorItem=exports.ColorItem=function ColorItem(_ref){var color=_ref.color,labelStyle=_ref.labelStyle,label=_ref.label,_ref$previewSize=_ref.previewSize,previewSize=void 0===_ref$previewSize?20:_ref$previewSize,onPress=_ref.onPress,styles=(0,_react.useMemo)((function(){return function getStyles(){return _StyleSheet.default.create({container:{width:"100%",flex:1,flexDirection:"row",alignItems:"center",justifyContent:"flex-start",gap:10},colorPreview:{borderWidth:1,minWidth:20,minHeight:20},labelContainer:{flexDirection:"row",gap:5,alignItems:"center",justifyContent:"center"},textStyle:{}})}()}),[]),content=(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[(0,_jsxRuntime.jsx)(_View.default,{style:[styles.colorPreview,{backgroundColor:color,width:previewSize,height:previewSize}]}),label?(0,_jsxRuntime.jsxs)(_View.default,{style:styles.labelContainer,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.textStyle,labelStyle],children:label}),(0,_jsxRuntime.jsxs)(_reactNativePaper.Text,{style:[styles.textStyle,labelStyle],children:["( ",color," )"]})]}):(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.textStyle,labelStyle],children:color})]});return onPress?(0,_jsxRuntime.jsx)(_TouchableOpacity.default,{style:styles.container,onPress,children:content}):(0,_jsxRuntime.jsx)(_View.default,{style:styles.container,children:content})};try{ColorItem.displayName="ColorItem",ColorItem.__docgenInfo={description:"",displayName:"ColorItem",props:{label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"StyleProp"}},color:{defaultValue:null,description:"",name:"color",required:!0,type:{name:"string"}},previewSize:{defaultValue:{value:"20"},description:"",name:"previewSize",required:!1,type:{name:"number"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Colors/ColorItem/ColorItem.tsx#ColorItem"]={docgenInfo:ColorItem.__docgenInfo,name:"ColorItem",path:"src/components/Colors/ColorItem/ColorItem.tsx#ColorItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Divider/Divider.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.Divider=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),styles=(exports.Divider=function Divider(){return(0,_jsxRuntime.jsx)(_View.default,{style:styles.container})},_StyleSheet.default.create({container:{width:"100%",height:_StyleSheet.default.hairlineWidth}}))},"./src/components/EditableInfoCard/EditableInfoCard.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.EditableInfoCard=EditableInfoCard;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")),_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"),_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 getStyles=function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{flexDirection:"row",alignItems:"center",paddingHorizontal:5,backgroundColor:theme.colors.background,borderWidth:1,borderRadius:8},contentContainer:{flex:1,flexDirection:"column",justifyContent:"center"},label:{fontWeight:"bold"},content:{maxWidth:"100%"},iconContainer:{alignSelf:"stretch",justifyContent:"center",marginLeft:5},icon:{}})};function EditableInfoCard(_ref2){var label=_ref2.label,value=_ref2.value,error=_ref2.error,processing=_ref2.processing,editable=_ref2.editable,inlineEditable=_ref2.inlineEditable,onEdit=_ref2.onEdit,onInlineEdit=_ref2.onInlineEdit,renderValue=_ref2.renderValue,containerStyle=_ref2.containerStyle,contentStyle=_ref2.contentStyle,labelStyle=_ref2.labelStyle,rightAction=_ref2.rightAction,onRightActionPress=_ref2.onRightActionPress,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return getStyles({theme})}),[theme]),_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),isEditing=_useState2[0],setIsEditing=_useState2[1],_useState3=(0,_react.useState)(value),_useState4=(0,_slicedToArray2.default)(_useState3,2),editedValue=_useState4[0],setEditedValue=_useState4[1];(0,_react.useEffect)((function(){setEditedValue(value)}),[value]);var handleEdit=function handleEdit(){inlineEditable?setIsEditing(!0):editable&&onEdit&&onEdit()},handleInlineEditComplete=function handleInlineEditComplete(){setIsEditing(!1),onInlineEdit&&editedValue!==value&&onInlineEdit(editedValue)},defaultRightAction=editable||inlineEditable?(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[isEditing&&(0,_jsxRuntime.jsx)(_reactNativePaper.IconButton,{icon:"close",size:20,style:styles.icon,onPress:function handleInlineEditCancel(){setIsEditing(!1),setEditedValue(value)},accessibilityLabel:"Cancel editing"}),(0,_jsxRuntime.jsx)(_reactNativePaper.IconButton,{icon:isEditing?"check":"pencil",size:20,style:styles.icon,onPress:isEditing?handleInlineEditComplete:handleEdit,accessibilityLabel:isEditing?"Confirm edit":"Edit value"})]}):null,rightActionComponent=null!=rightAction?rightAction:defaultRightAction,content=(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,containerStyle],children:[(0,_jsxRuntime.jsxs)(_View.default,{style:styles.contentContainer,children:[label?(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.label,labelStyle],children:label}):null,(0,_jsxRuntime.jsx)(_View.default,{style:[styles.content,contentStyle],children:processing?(0,_jsxRuntime.jsx)(_reactNativePaper.ActivityIndicator,{size:"small"}):isEditing?(0,_jsxRuntime.jsx)(_TextInput.TextInput,{autoFocus:!0,value:editedValue,onChangeText:setEditedValue,onBlur:handleInlineEditComplete,onSubmitEditing:handleInlineEditComplete,style:{backgroundColor:"transparent"}}):renderValue?renderValue(value):(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:{color:error?theme.colors.error:theme.colors.text},children:"string"==typeof value?value:null==value?void 0:value.toString()})})]}),rightActionComponent&&(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:rightActionComponent})]});return(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:function handlePress(){inlineEditable||editable?handleEdit():onRightActionPress&&onRightActionPress()},disabled:!editable&&!inlineEditable&&!onRightActionPress,children:content})}try{EditableInfoCard.displayName="EditableInfoCard",EditableInfoCard.__docgenInfo={description:"",displayName:"EditableInfoCard",props:{label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"unknown"}},processing:{defaultValue:null,description:"",name:"processing",required:!1,type:{name:"boolean"}},error:{defaultValue:null,description:"",name:"error",required:!1,type:{name:"boolean"}},renderValue:{defaultValue:null,description:"",name:"renderValue",required:!1,type:{name:"((value?: unknown) => ReactNode)"}},editable:{defaultValue:null,description:"",name:"editable",required:!1,type:{name:"boolean"}},inlineEditable:{defaultValue:null,description:"",name:"inlineEditable",required:!1,type:{name:"boolean"}},onEdit:{defaultValue:null,description:"",name:"onEdit",required:!1,type:{name:"(() => void)"}},onInlineEdit:{defaultValue:null,description:"",name:"onInlineEdit",required:!1,type:{name:"((newValue?: unknown) => void)"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"StyleProp"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}},contentStyle:{defaultValue:null,description:"",name:"contentStyle",required:!1,type:{name:"StyleProp"}},rightAction:{defaultValue:null,description:"",name:"rightAction",required:!1,type:{name:"ReactNode"}},onRightActionPress:{defaultValue:null,description:"",name:"onRightActionPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/EditableInfoCard/EditableInfoCard.tsx#EditableInfoCard"]={docgenInfo:EditableInfoCard.__docgenInfo,name:"EditableInfoCard",path:"src/components/EditableInfoCard/EditableInfoCard.tsx#EditableInfoCard"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Empty/Empty.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.Empty=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")),_Image=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Image/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"),_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 Empty=exports.Empty=function Empty(_ref){var message=_ref.message,onPress=_ref.onPress,buttonValue=_ref.buttonValue,image=_ref.image,theme=(0,_reactNativePaper.useTheme)(),styles=(0,_react.useMemo)((function(){return function getItemStyle(_){return _StyleSheet.default.create({container:{flexDirection:"column",alignItems:"center",justifyContent:"center",flexGrow:1,display:"flex",gap:20,marginTop:20},image:{height:200,width:200,padding:5}})}()}),[theme]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsx)(_Image.default,{source:image,style:styles.image,resizeMode:"contain"}),(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"labelMedium",children:message}),buttonValue&&(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{onPress,children:buttonValue})]})};try{Empty.displayName="Empty",Empty.__docgenInfo={description:"",displayName:"Empty",props:{image:{defaultValue:null,description:"",name:"image",required:!0,type:{name:"ImageSourcePropType"}},message:{defaultValue:null,description:"",name:"message",required:!0,type:{name:"string"}},buttonValue:{defaultValue:null,description:"",name:"buttonValue",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Empty/Empty.tsx#Empty"]={docgenInfo:Empty.__docgenInfo,name:"Empty",path:"src/components/Empty/Empty.tsx#Empty"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/FAB/FABGroup.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.FABGroup=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")),_Animated=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Animated/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")),_reactNativeSafeAreaContext=__webpack_require__("./node_modules/react-native-safe-area-context/lib/module/index.js"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_utils=__webpack_require__("./src/components/FAB/utils.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 AnimatedPressable=_Animated.default.createAnimatedComponent(_Pressable.default);(exports.FABGroup=function FABGroup(_ref){var actions=_ref.actions,icon=_ref.icon,open=_ref.open,_onPress=_ref.onPress,_onLongPress=_ref.onLongPress,toggleStackOnLongPress=_ref.toggleStackOnLongPress,accessibilityLabel=_ref.accessibilityLabel,style=_ref.style,fabStyle=_ref.fabStyle,visible=_ref.visible,label=_ref.label,testID=_ref.testID,onStateChange=_ref.onStateChange,colorProp=_ref.color,_ref$delayLongPress=_ref.delayLongPress,delayLongPress=void 0===_ref$delayLongPress?200:_ref$delayLongPress,_ref$variant=_ref.variant,variant=void 0===_ref$variant?"primary":_ref$variant,_ref$enableLongPressW=_ref.enableLongPressWhenStackOpened,enableLongPressWhenStackOpened=void 0!==_ref$enableLongPressW&&_ref$enableLongPressW,customBackdropColor=_ref.backdropColor,rippleColor=_ref.rippleColor,theme=(0,_reactNativePaper.useTheme)(),backdrop=React.useRef(new _Animated.default.Value(0)).current,animations=React.useRef(actions.map((function(){return new _Animated.default.Value(open?1:0)}))),_React$useState=React.useState(null),_React$useState2=(0,_slicedToArray2.default)(_React$useState,2),prevActions=_React$useState2[0],setPrevActions=_React$useState2[1],scale=theme.animation.scale,isV3=theme.isV3;React.useEffect((function(){open?_Animated.default.parallel([_Animated.default.timing(backdrop,{toValue:1,duration:250*scale,useNativeDriver:!0}),_Animated.default.stagger(isV3?15:50*scale,animations.current.map((function(animation){return _Animated.default.timing(animation,{toValue:1,duration:150*scale,useNativeDriver:!0})})).reverse())]).start():_Animated.default.parallel([_Animated.default.timing(backdrop,{toValue:0,duration:200*scale,useNativeDriver:!0})].concat((0,_toConsumableArray2.default)(animations.current.map((function(animation){return _Animated.default.timing(animation,{toValue:0,duration:150*scale,useNativeDriver:!0})}))))).start()}),[open,actions,backdrop,scale,isV3]);var close=function close(){return onStateChange({open:!1})},toggle=function toggle(){return onStateChange({open:!open})},_getFABGroupColors=(0,_utils.getFABGroupColors)({theme,customBackdropColor}),labelColor=_getFABGroupColors.labelColor,backdropColor=_getFABGroupColors.backdropColor,stackedFABBackgroundColor=_getFABGroupColors.stackedFABBackgroundColor,backdropOpacity=open?backdrop.interpolate({inputRange:[0,.5,1],outputRange:[0,1,1]}):backdrop,opacities=animations.current,scales=opacities.map((function(opacity){return open?opacity.interpolate({inputRange:[0,1],outputRange:[.5,1]}):1})),translations=opacities.map((function(opacity){return open?opacity.interpolate({inputRange:[0,1],outputRange:[24,-8]}):-8})),labelTranslations=opacities.map((function(opacity){return open?opacity.interpolate({inputRange:[0,1],outputRange:[8,-8]}):-8})),_useSafeAreaInsets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),top=_useSafeAreaInsets.top,containerPaddings={paddingBottom:_useSafeAreaInsets.bottom,paddingRight:_useSafeAreaInsets.right,paddingLeft:_useSafeAreaInsets.left,paddingTop:top};return actions.length!==(null==prevActions?void 0:prevActions.length)&&(animations.current=actions.map((function(_,i){return animations.current[i]||new _Animated.default.Value(open?1:0)})),setPrevActions(actions)),(0,_jsxRuntime.jsxs)(_View.default,{pointerEvents:"box-none",style:[styles.container,containerPaddings,style],children:[(0,_jsxRuntime.jsx)(AnimatedPressable,{accessibilityRole:"button",onPress:close,pointerEvents:open?"auto":"none",style:[styles.backdrop,{opacity:backdropOpacity,backgroundColor:backdropColor}]}),(0,_jsxRuntime.jsxs)(_View.default,{pointerEvents:"box-none",style:styles.safeArea,children:[open&&(0,_jsxRuntime.jsx)(_View.default,{pointerEvents:open?"box-none":"none",children:actions.map((function(it,i){var _it$labelTextColor,labelTextStyle=Object.assign({color:null!=(_it$labelTextColor=it.labelTextColor)?_it$labelTextColor:labelColor},isV3?theme.fonts.titleMedium:{}),marginHorizontal=void 0===it.size||"small"===it.size?24:16,accessibilityLabel=void 0!==it.accessibilityLabel?it.accessibilityLabel:it.label,size=void 0!==it.size?it.size:"small";return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.item,{marginHorizontal}],pointerEvents:open?"box-none":"none",accessibilityRole:"button",importantForAccessibility:"yes",accessible:!0,accessibilityLabel,children:[it.label&&(0,_jsxRuntime.jsx)(_View.default,{children:(0,_jsxRuntime.jsx)(_reactNativePaper.Card,{mode:isV3?"contained":"elevated",onPress:function onPress(e){it.onPress(e),close()},accessibilityHint:it.accessibilityHint,importantForAccessibility:"no-hide-descendants",accessibilityElementsHidden:!0,style:[styles.containerStyle,{transform:[isV3?{translateY:labelTranslations[i]}:{scale:scales[i]}],opacity:opacities[i]},isV3&&styles.v3ContainerStyle,it.containerStyle],children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"titleMedium",importantForAccessibility:"no-hide-descendants",accessibilityElementsHidden:!0,style:[labelTextStyle,it.labelStyle],maxFontSizeMultiplier:it.labelMaxFontSizeMultiplier,children:it.label})})}),(0,_jsxRuntime.jsx)(_reactNativePaper.FAB,{size,icon:it.icon,color:it.color,style:[{transform:[{scale:scales[i]}],opacity:opacities[i],backgroundColor:stackedFABBackgroundColor},isV3&&{transform:[{translateY:translations[i]}]},it.style],accessibilityElementsHidden:!0,theme,onPress:function onPress(e){it.onPress(e),close()},importantForAccessibility:"no-hide-descendants",testID:it.testID,visible:open,rippleColor:it.rippleColor})]},i)}))}),(0,_jsxRuntime.jsx)(_reactNativePaper.FAB,{onPress:function onPress(e){null==_onPress||_onPress(e),toggleStackOnLongPress&&!open||toggle()},onLongPress:function onLongPress(e){open&&!enableLongPressWhenStackOpened||(null==_onLongPress||_onLongPress(e),toggleStackOnLongPress&&toggle())},delayLongPress,icon,color:colorProp,accessibilityLabel,accessibilityRole:"button",accessibilityState:{expanded:open},style:[styles.fab,fabStyle],theme,visible,label,testID,variant,rippleColor})]})]})}).displayName="FAB.Group";var styles=_StyleSheet.default.create({safeArea:{alignItems:"flex-end"},container:Object.assign({},_StyleSheet.default.absoluteFillObject,{justifyContent:"flex-end"}),fab:{marginHorizontal:16,marginBottom:16,marginTop:0},backdrop:Object.assign({},_StyleSheet.default.absoluteFillObject),containerStyle:{borderRadius:5,paddingHorizontal:12,paddingVertical:6,marginVertical:8,marginHorizontal:16,elevation:2},item:{marginBottom:16,flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},v3ContainerStyle:{backgroundColor:"transparent",elevation:0}});try{FAB.Group.displayName="FAB.Group",FAB.Group.__docgenInfo={description:"A component to display a stack of FABs with related actions in a speed dial.\nTo render the group above other components, you'll need to wrap it with the [`Portal`](../Portal) component.\n\n## Usage\n```js\nimport * as React from 'react';\nimport { FAB, Portal, PaperProvider } from 'react-native-paper';\n\nconst MyComponent = () => {\n const [state, setState] = React.useState({ open: false });\n\n const onStateChange = ({ open }) => setState({ open });\n\n const { open } = state;\n\n return (\n \n \n console.log('Pressed add') },\n {\n icon: 'star',\n label: 'Star',\n onPress: () => console.log('Pressed star'),\n },\n {\n icon: 'email',\n label: 'Email',\n onPress: () => console.log('Pressed email'),\n },\n {\n icon: 'bell',\n label: 'Remind',\n onPress: () => console.log('Pressed notifications'),\n },\n ]}\n onStateChange={onStateChange}\n onPress={() => {\n if (open) {\n // do something if the speed dial is open\n }\n }}\n />\n \n \n );\n};\n\nexport default MyComponent;\n```",displayName:"FAB.Group",props:{actions:{defaultValue:null,description:"Action items to display in the form of a speed dial.\nAn action item should contain the following properties:\n- `icon`: icon to display (required)\n- `label`: optional label text\n- `color`: custom icon color of the action item\n- `labelTextColor`: custom label text color of the action item\n- `accessibilityLabel`: accessibility label for the action, uses label by default if specified\n- `accessibilityHint`: accessibility hint for the action\n- `style`: pass additional styles for the fab item, for example, `backgroundColor`\n- `containerStyle`: pass additional styles for the fab item label container, for example, `backgroundColor`\n@supported Available in 5.x\n- `labelStyle`: pass additional styles for the fab item label, for example, `fontSize`\n- `labelMaxFontSizeMultiplier`: specifies the largest possible scale a title font can reach.\n- `onPress`: callback that is called when `FAB` is pressed (required)\n- `onLongPress`: callback that is called when `FAB` is long pressed\n- `toggleStackOnLongPress`: callback that is called when `FAB` is long pressed\n- `size`: size of action item. Defaults to `small`.\n@supported Available in v5.x\n- `testID`: testID to be used on tests\n- `rippleColor`: color of the ripple effect.",name:"actions",required:!0,type:{name:"{ icon: IconSource; label?: string | undefined; color?: string | undefined; labelTextColor?: string | undefined; accessibilityLabel?: string | undefined; accessibilityHint?: string | undefined; ... 7 more ...; rippleColor?: ColorValue | undefined; }[]"}},icon:{defaultValue:null,description:"Icon to display for the `FAB`.\nYou can toggle it based on whether the speed dial is open to display a different icon.",name:"icon",required:!0,type:{name:"IconSource"}},accessibilityLabel:{defaultValue:null,description:"Accessibility label for the FAB. This is read by the screen reader when the user taps the FAB.",name:"accessibilityLabel",required:!1,type:{name:"string"}},color:{defaultValue:null,description:"Custom color for the `FAB`.",name:"color",required:!1,type:{name:"string"}},backdropColor:{defaultValue:null,description:"Custom backdrop color for opened speed dial background.",name:"backdropColor",required:!1,type:{name:"string"}},rippleColor:{defaultValue:null,description:"Color of the ripple effect.",name:"rippleColor",required:!1,type:{name:"ColorValue"}},onPress:{defaultValue:null,description:"Function to execute on pressing the `FAB`.",name:"onPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onLongPress:{defaultValue:null,description:"Function to execute on long pressing the `FAB`.",name:"onLongPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},toggleStackOnLongPress:{defaultValue:null,description:"Makes actions stack appear on long press instead of on press.",name:"toggleStackOnLongPress",required:!1,type:{name:"boolean"}},delayLongPress:{defaultValue:{value:"200"},description:"Changes the delay for long press reaction.",name:"delayLongPress",required:!1,type:{name:"number"}},enableLongPressWhenStackOpened:{defaultValue:{value:"false"},description:"Allows for onLongPress when stack is opened.",name:"enableLongPressWhenStackOpened",required:!1,type:{name:"boolean"}},open:{defaultValue:null,description:"Whether the speed dial is open.",name:"open",required:!0,type:{name:"boolean"}},onStateChange:{defaultValue:null,description:"Callback which is called on opening and closing the speed dial.\nThe open state needs to be updated when it's called, otherwise the change is dropped.",name:"onStateChange",required:!0,type:{name:"(state: { open: boolean; }) => void"}},visible:{defaultValue:null,description:"Whether `FAB` is currently visible.",name:"visible",required:!0,type:{name:"boolean"}},style:{defaultValue:null,description:"Style for the group. You can use it to pass additional styles if you need.\nFor example, you can set an additional padding if you have a tab bar at the bottom.",name:"style",required:!1,type:{name:"StyleProp"}},fabStyle:{defaultValue:null,description:"Style for the FAB. It allows to pass the FAB button styles, such as backgroundColor.",name:"fabStyle",required:!1,type:{name:"false | RegisteredStyle | Value | AnimatedInterpolation | WithAnimatedObject | WithAnimatedArray<...> | null"}},variant:{defaultValue:{value:"primary"},description:"@supported Available in v5.x with theme version 3\n\nColor mappings variant for combinations of container and icon colors.",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"surface"'}]}},theme:{defaultValue:null,description:"@optional",name:"theme",required:!1,type:{name:"ThemeProp"}},label:{defaultValue:null,description:"Optional label for `FAB`.",name:"label",required:!1,type:{name:"string"}},testID:{defaultValue:null,description:"Pass down testID from Group props to FAB.",name:"testID",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/FAB/FABGroup.tsx#FAB.Group"]={docgenInfo:FAB.Group.__docgenInfo,name:"FAB.Group",path:"src/components/FAB/FABGroup.tsx#FAB.Group"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/FAB/utils.ts":(__unused_webpack_module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFABGroupColors=void 0;var _color=_interopRequireDefault(__webpack_require__("./node_modules/color/index.js")),getLabelColor=function getLabelColor(_ref){var theme=_ref.theme;return theme.isV3?theme.colors.onSurface:theme.dark?theme.colors.text:(0,_color.default)(theme.colors.text).fade(.54).rgb().string()},getBackdropColor=function getBackdropColor(_ref2){var _theme$colors,theme=_ref2.theme,customBackdropColor=_ref2.customBackdropColor;return customBackdropColor||(theme.isV3?(0,_color.default)(theme.colors.background).alpha(.95).rgb().string():null==(_theme$colors=theme.colors)?void 0:_theme$colors.backdrop)},getStackedFABBackgroundColor=function getStackedFABBackgroundColor(_ref3){var theme=_ref3.theme;return theme.isV3?theme.colors.elevation.level3:theme.colors.surface};exports.getFABGroupColors=function getFABGroupColors(_ref4){var theme=_ref4.theme,customBackdropColor=_ref4.customBackdropColor;return{labelColor:getLabelColor({theme}),backdropColor:getBackdropColor({theme,customBackdropColor}),stackedFABBackgroundColor:getStackedFABBackgroundColor({theme})}}},"./src/components/HelperText/HelperText.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.HelperText=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_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")),_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")),_TouchableOpacity=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/TouchableOpacity/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/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 HelperText=exports.HelperText=function HelperText(_ref2){var text=_ref2.text,_ref2$iconSize=_ref2.iconSize,iconSize=void 0===_ref2$iconSize?24:_ref2$iconSize,iconColor=_ref2.iconColor,textStyle=_ref2.textStyle,containerStyle=_ref2.containerStyle,_ref2$maxLines=_ref2.maxLines,maxLines=void 0===_ref2$maxLines?3:_ref2$maxLines,theme=(0,_ThemeProvider.useTheme)(),styles=function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{flexDirection:"row",alignItems:"center"},iconContainer:{marginRight:10,marginTop:2},textContainer:{flex:1},text:{color:theme.colors.outline}})}({theme}),_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),isExpanded=_useState2[0],setIsExpanded=_useState2[1],toggleExpand=(0,_react.useCallback)((function(){setIsExpanded((function(prev){return!prev}))}),[]);return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,containerStyle],children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:(0,_jsxRuntime.jsx)(_vectorIcons.Ionicons,{name:"information-circle",size:iconSize,color:iconColor||theme.colors.primary})}),(0,_jsxRuntime.jsx)(_TouchableOpacity.default,{style:styles.textContainer,onPress:toggleExpand,children:(0,_jsxRuntime.jsx)(_Text.default,{style:[styles.text,textStyle],numberOfLines:isExpanded?void 0:maxLines,ellipsizeMode:"tail",children:text})})]})};try{HelperText.displayName="HelperText",HelperText.__docgenInfo={description:"",displayName:"HelperText",props:{text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},iconSize:{defaultValue:{value:"24"},description:"",name:"iconSize",required:!1,type:{name:"number"}},iconColor:{defaultValue:null,description:"",name:"iconColor",required:!1,type:{name:"string"}},textStyle:{defaultValue:null,description:"",name:"textStyle",required:!1,type:{name:"StyleProp"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}},maxLines:{defaultValue:{value:"3"},description:"",name:"maxLines",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/HelperText/HelperText.tsx#HelperText"]={docgenInfo:HelperText.__docgenInfo,name:"HelperText",path:"src/components/HelperText/HelperText.tsx#HelperText"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/HelperWrapper/HelperWrapper.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.HelperWrapper=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")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_TouchableOpacity=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/TouchableOpacity/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_useModal2=__webpack_require__("./src/hooks/useModal/useModal.tsx"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_HelperText=__webpack_require__("./src/components/HelperText/HelperText.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 HelperWrapper=exports.HelperWrapper=function HelperWrapper(_ref2){var children=_ref2.children,_ref2$iconPosition=_ref2.iconPosition,iconPosition=void 0===_ref2$iconPosition?"left":_ref2$iconPosition,iconColor=_ref2.iconColor,helperText=_ref2.helperText,_ref2$visible=_ref2.visible,visible=void 0===_ref2$visible||_ref2$visible,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{flexDirection:"row",alignItems:"center"},iconContainer:{marginLeft:8,marginRight:8,justifyContent:"center"},childrenContainer:{flex:1},modalContent:{padding:20,width:"100%"},modalInner:{gap:20},buttonContainer:{alignItems:"center"},modalButton:{minWidth:100,borderColor:theme.colors.primary}})}({theme})}),[theme]),openModal=(0,_useModal2.useModal)().openModal,iconElement=(0,_jsxRuntime.jsx)(_TouchableOpacity.default,{onPress:function handleIconPress(){openModal({modalProps:{styles:{modalContent:styles.modalContent}},render:function render(_ref3){var resolve=_ref3.resolve;return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.modalInner,children:[(0,_jsxRuntime.jsx)(_HelperText.HelperText,{text:helperText,maxLines:10}),(0,_jsxRuntime.jsx)(_View.default,{style:styles.buttonContainer,children:(0,_jsxRuntime.jsx)(_Button.Button,{mode:"outlined",onPress:function onPress(){return null==resolve?void 0:resolve(!0)},style:styles.modalButton,children:"Ok"})})]})}})},style:styles.iconContainer,children:(0,_jsxRuntime.jsx)(_vectorIcons.Ionicons,{name:"information-circle-outline",size:24,color:iconColor||theme.colors.primary})});return visible?(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:["left"===iconPosition&&iconElement,(0,_jsxRuntime.jsx)(_View.default,{style:styles.childrenContainer,children}),"right"===iconPosition&&iconElement]}):children};try{HelperWrapper.displayName="HelperWrapper",HelperWrapper.__docgenInfo={description:"",displayName:"HelperWrapper",props:{helperText:{defaultValue:null,description:"",name:"helperText",required:!0,type:{name:"string"}},visible:{defaultValue:{value:"true"},description:"",name:"visible",required:!1,type:{name:"boolean"}},iconPosition:{defaultValue:{value:"left"},description:"",name:"iconPosition",required:!1,type:{name:"enum",value:[{value:'"left"'},{value:'"right"'}]}},iconColor:{defaultValue:null,description:"",name:"iconColor",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/HelperWrapper/HelperWrapper.tsx#HelperWrapper"]={docgenInfo:HelperWrapper.__docgenInfo,name:"HelperWrapper",path:"src/components/HelperWrapper/HelperWrapper.tsx#HelperWrapper"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/ListItem/ListItem.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.ListItem=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")),_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")),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/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 ListItem=exports.ListItem=function ListItem(_ref){var label=_ref.label,labelStyle=_ref.labelStyle,subLabel=_ref.subLabel,contentContainerStyle=_ref.contentContainerStyle,textContentContainerStyle=_ref.textContentContainerStyle,subLabelStyle=_ref.subLabelStyle,onPress=_ref.onPress,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyle(theme){return _StyleSheet.default.create({container:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",padding:10,margin:10,backgroundColor:theme.colors.surface},textContainer:{flex:1},label:{paddingRight:10,fontWeight:"bold"},subLabel:{color:theme.colors.text}})}(theme)}),[theme]);return(0,_jsxRuntime.jsxs)(_Pressable.default,{style:[styles.container,contentContainerStyle],onPress,children:[(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.textContainer,textContentContainerStyle],children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.label,labelStyle],children:label}),subLabel?(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:[styles.subLabel,subLabelStyle],children:subLabel}):null]}),(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"chevron-right",size:24,color:theme.colors.text})]})};try{ListItem.displayName="ListItem",ListItem.__docgenInfo={description:"",displayName:"ListItem",props:{contentContainerStyle:{defaultValue:null,description:"",name:"contentContainerStyle",required:!1,type:{name:"StyleProp"}},textContentContainerStyle:{defaultValue:null,description:"",name:"textContentContainerStyle",required:!1,type:{name:"StyleProp"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"StyleProp"}},subLabel:{defaultValue:null,description:"",name:"subLabel",required:!1,type:{name:"string"}},subLabelStyle:{defaultValue:null,description:"",name:"subLabelStyle",required:!1,type:{name:"StyleProp"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ListItem/ListItem.tsx#ListItem"]={docgenInfo:ListItem.__docgenInfo,name:"ListItem",path:"src/components/ListItem/ListItem.tsx#ListItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/LockInput/LockInput.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.LockInput=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),LockInput=exports.LockInput=function LockInput(_ref){var locked=_ref.locked,label=_ref.label,text=_ref.text,onPress=_ref.onPress;return(0,_jsxRuntime.jsx)(_TextInput.TextInput,{label,value:text,disabled:locked,right:(0,_jsxRuntime.jsx)(_reactNativePaper.TextInput.Icon,{icon:locked?"lock":"lock-open-variant-outline",onPress})})};try{LockInput.displayName="LockInput",LockInput.__docgenInfo={description:"",displayName:"LockInput",props:{locked:{defaultValue:null,description:"",name:"locked",required:!0,type:{name:"boolean"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"string"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/LockInput/LockInput.tsx#LockInput"]={docgenInfo:LockInput.__docgenInfo,name:"LockInput",path:"src/components/LockInput/LockInput.tsx#LockInput"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Notice/Notice.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.Notice=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")),_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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 icons={info:"information-outline",warning:"alert-circle-outline",success:"check-circle-outline",error:"close-circle-outline"},Notice=exports.Notice=function Notice(_ref2){var title=_ref2.title,_ref2$withIcon=_ref2.withIcon,withIcon=void 0===_ref2$withIcon||_ref2$withIcon,iconStyle=_ref2.iconStyle,_ref2$closable=_ref2.closable,closable=void 0!==_ref2$closable&&_ref2$closable,onClose=_ref2.onClose,message=_ref2.message,type=_ref2.type,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,type=_ref.type,backgroundColor={info:theme.colors.infoContainer,warning:theme.colors.warningContainer,error:theme.colors.errorContainer,success:theme.colors.successContainer}[type],iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[type];return _StyleSheet.default.create({container:{padding:10,backgroundColor,gap:5,flexDirection:"row",justifyContent:"center",alignContent:"center"},contentContainer:{flex:1,flexDirection:"column",justifyContent:"center",alignContent:"center"},text:{color:theme.colors.onSurface},title:{color:theme.colors.onSurface,fontWeight:"bold"},iconContainer:{justifyContent:"center",alignContent:"center"},iconStyle:{color:iconColor},closeIcon:{marginLeft:"auto"}})}({theme,type})}),[theme,type]),hasMessage=message&&message.length>0,_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),closed=_useState2[0],setClosed=_useState2[1],handleClose=(0,_react.useCallback)((function(){setClosed(!0),null==onClose||onClose()}),[onClose]);return closed?null:(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:withIcon&&(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icons[type],style:[styles.iconStyle,iconStyle],size:20})}),(0,_jsxRuntime.jsxs)(_View.default,{style:styles.contentContainer,children:[title&&(0,_jsxRuntime.jsx)(_Text.default,{style:styles.title,children:title}),hasMessage?(0,_jsxRuntime.jsx)(_Text.default,{children:message}):null]}),closable&&(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleClose,style:styles.closeIcon,children:(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"close",style:styles.iconStyle,size:20})})]})};try{Notice.displayName="Notice",Notice.__docgenInfo={description:"",displayName:"Notice",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},withIcon:{defaultValue:{value:"true"},description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:{value:"false"},description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.tsx#Notice"]={docgenInfo:Notice.__docgenInfo,name:"Notice",path:"src/components/Notice/Notice.tsx#Notice"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/NumberAdjuster/NumberAdjuster.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.NumberAdjuster=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _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")),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),NumberAdjuster=exports.NumberAdjuster=function NumberAdjuster(_ref){var label=_ref.label,value=_ref.value,onChange=_ref.onChange,_ref$min=_ref.min,min=void 0===_ref$min?1:_ref$min,_ref$max=_ref.max,max=void 0===_ref$max?1/0:_ref$max,_ref$step=_ref.step,step=void 0===_ref$step?1:_ref$step,containerStyle=_ref.containerStyle,inputStyle=_ref.inputStyle,buttonStyle=_ref.buttonStyle,buttonContainerStyle=_ref.buttonContainerStyle,styles=function getStyles(){return _StyleSheet.default.create({inputRow:{flexDirection:"row",alignItems:"center",marginBottom:10,gap:5},input:{flex:1},buttonContainer:{flexDirection:"row",gap:5}})}();return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.inputRow,containerStyle],children:[(0,_jsxRuntime.jsx)(_TextInput.TextInput,{label,value:value.toString(),style:[styles.input,inputStyle],onChangeText:function handleChangeText(text){var newValue=parseInt(text,10);isNaN(newValue)?onChange(min):onChange(Math.max(Math.min(newValue,max),min))},keyboardType:"numeric"}),(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.buttonContainer,buttonContainerStyle],children:[(0,_jsxRuntime.jsxs)(_Button.Button,{onPress:function handleDecrement(){onChange(Math.max(value-step,min))},style:[buttonStyle],children:["-",step]}),(0,_jsxRuntime.jsxs)(_Button.Button,{onPress:function handleIncrement(){onChange(Math.min(value+step,max))},style:[buttonStyle],children:["+",step]})]})]})};try{NumberAdjuster.displayName="NumberAdjuster",NumberAdjuster.__docgenInfo={description:"",displayName:"NumberAdjuster",props:{label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(value: number) => void"}},min:{defaultValue:{value:"1"},description:"",name:"min",required:!1,type:{name:"number"}},max:{defaultValue:null,description:"",name:"max",required:!1,type:{name:"number"}},step:{defaultValue:{value:"1"},description:"",name:"step",required:!1,type:{name:"number"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"StyleProp"}},inputStyle:{defaultValue:null,description:"",name:"inputStyle",required:!1,type:{name:"StyleProp"}},buttonStyle:{defaultValue:null,description:"",name:"buttonStyle",required:!1,type:{name:"StyleProp"}},buttonContainerStyle:{defaultValue:null,description:"",name:"buttonContainerStyle",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/NumberAdjuster/NumberAdjuster.tsx#NumberAdjuster"]={docgenInfo:NumberAdjuster.__docgenInfo,name:"NumberAdjuster",path:"src/components/NumberAdjuster/NumberAdjuster.tsx#NumberAdjuster"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Pagination/Pagination.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.Pagination=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")),_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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx"),_TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx"),_PaginationItem=__webpack_require__("./src/components/Pagination/PaginationItem.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 Pagination=exports.Pagination=function Pagination(_ref2){var current=_ref2.current,_ref2$defaultCurrent=_ref2.defaultCurrent,defaultCurrent=void 0===_ref2$defaultCurrent?1:_ref2$defaultCurrent,pageSize=_ref2.pageSize,_ref2$defaultPageSize=_ref2.defaultPageSize,defaultPageSize=void 0===_ref2$defaultPageSize?10:_ref2$defaultPageSize,_ref2$maxVisiblePages=_ref2.maxVisiblePages,maxVisiblePages=void 0===_ref2$maxVisiblePages?5:_ref2$maxVisiblePages,_ref2$disabled=_ref2.disabled,disabled=void 0!==_ref2$disabled&&_ref2$disabled,_ref2$hideOnSinglePag=_ref2.hideOnSinglePage,hideOnSinglePage=void 0!==_ref2$hideOnSinglePag&&_ref2$hideOnSinglePag,itemRender=_ref2.itemRender,_ref2$pageSizeOptions=_ref2.pageSizeOptions,pageSizeOptions=void 0===_ref2$pageSizeOptions?[10,20,50,100]:_ref2$pageSizeOptions,_ref2$showSizeChanger=_ref2.showSizeChanger,showSizeChanger=void 0!==_ref2$showSizeChanger&&_ref2$showSizeChanger,_ref2$showQuickJumper=_ref2.showQuickJumper,showQuickJumper=void 0!==_ref2$showQuickJumper&&_ref2$showQuickJumper,showTotal=_ref2.showTotal,_ref2$total=_ref2.total,total=void 0===_ref2$total?0:_ref2$total,onChange=_ref2.onChange,onPageSizeChange=_ref2.onPageSizeChange,isMobile=(0,_useScreenWidth.useScreenWidth)()<480,styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var isMobile=_ref.isMobile;return _StyleSheet.default.create({container:{flexDirection:"row",justifyContent:"center",alignItems:"center",padding:10},pageSizeOptionsContainer:{flexDirection:"row",flexWrap:isMobile?"wrap":"nowrap"},pageSizeOption:{marginHorizontal:4,padding:8},paginationContainer:{flexDirection:"row",alignItems:"center",gap:5},pageNumber:{marginHorizontal:4,padding:8},currentPage:{},currentPageText:{fontWeight:"bold",textDecorationLine:"underline"},ellipsis:{fontSize:16},pageIndicator:{fontSize:isMobile?16:14},arrow:{fontSize:isMobile?20:16,fontWeight:"bold",padding:isMobile?16:8},quickJumperContainer:{flexDirection:"row",alignItems:"center"},quickJumperInput:{borderWidth:1,borderColor:"gray",padding:8,marginRight:8,minWidth:60}})}({isMobile})}),[isMobile]),_useState=(0,_react.useState)(null!=current?current:defaultCurrent),_useState2=(0,_slicedToArray2.default)(_useState,2),currentPage=_useState2[0],setCurrentPage=_useState2[1],_useState3=(0,_react.useState)(null!=pageSize?pageSize:defaultPageSize),_useState4=(0,_slicedToArray2.default)(_useState3,2),currentPageSize=_useState4[0],setCurrentPageSize=_useState4[1];(0,_react.useEffect)((function(){void 0!==current&&setCurrentPage(current)}),[current]),(0,_react.useEffect)((function(){void 0!==pageSize&&setCurrentPageSize(pageSize)}),[pageSize]);var totalPages=Math.ceil(total/currentPageSize),_useState5=(0,_react.useState)(""),_useState6=(0,_slicedToArray2.default)(_useState5,2),jumperPage=_useState6[0],setJumperPage=_useState6[1],inputRef=(0,_react.useRef)(null),visiblePages=(0,_react.useMemo)((function(){var startPage,endPage,totalVisiblePages=Math.min(maxVisiblePages,totalPages);if(totalPages<=totalVisiblePages)startPage=1,endPage=totalPages;else{var visiblePagesBeforeCurrent=Math.floor((totalVisiblePages-1)/2);startPage=Math.max(currentPage-visiblePagesBeforeCurrent,1),(endPage=Math.min(startPage+totalVisiblePages-1,totalPages))-startPage1&&(range.unshift(-1),range.unshift(1)),endPage=1&&page<=totalPages&&(handlePageChange(page),setJumperPage(""),_Keyboard.default.dismiss())};return isMobile?(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[currentPage>1&&renderItem(currentPage-1,"<"),showTotal?renderTotal():(0,_jsxRuntime.jsxs)(_Text.default,{style:styles.pageIndicator,children:["Page ",currentPage," of ",totalPages]}),currentPage")]}):(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsxs)(_View.default,{style:styles.paginationContainer,children:[renderTotal(),renderItem(currentPage-1,"<"),visiblePages.map((function(page){return-1===page?renderItem(page,"..."):renderItem(page)})),renderItem(currentPage+1,">")]}),function renderQuickJumper(){return showQuickJumper?(0,_jsxRuntime.jsxs)(_View.default,{style:styles.quickJumperContainer,children:[(0,_jsxRuntime.jsx)(_TextInput.TextInput,{ref:inputRef,style:styles.quickJumperInput,onChangeText:setJumperPage,value:jumperPage,keyboardType:"number-pad",placeholder:"Jump to page",returnKeyType:"go",onSubmitEditing:handleJump,editable:!disabled}),"object"==typeof showQuickJumper&&showQuickJumper.goButton?(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleJump,children:showQuickJumper.goButton}):(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleJump,disabled,children:(0,_jsxRuntime.jsx)(_Text.default,{children:"Go"})})]}):null}(),function renderPageSizeOptions(){return showSizeChanger?(0,_jsxRuntime.jsx)(_View.default,{style:styles.pageSizeOptionsContainer,children:pageSizeOptions.map((function(size){return(0,_jsxRuntime.jsx)(_Pressable.default,{style:styles.pageSizeOption,onPress:function onPress(){return function handlePageSizeChange(size){setCurrentPageSize(size),null==onPageSizeChange||onPageSizeChange(null!=current?current:1,size)}(Number(size))},disabled,children:(0,_jsxRuntime.jsxs)(_Text.default,{children:[size," / Page"]})},size)}))}):null}()]})};try{Pagination.displayName="Pagination",Pagination.__docgenInfo={description:"",displayName:"Pagination",props:{current:{defaultValue:null,description:"",name:"current",required:!1,type:{name:"number"}},defaultCurrent:{defaultValue:{value:"1"},description:"",name:"defaultCurrent",required:!1,type:{name:"number"}},defaultPageSize:{defaultValue:{value:"10"},description:"",name:"defaultPageSize",required:!1,type:{name:"number"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},maxVisiblePages:{defaultValue:{value:"5"},description:"",name:"maxVisiblePages",required:!1,type:{name:"number"}},hideOnSinglePage:{defaultValue:{value:"false"},description:"",name:"hideOnSinglePage",required:!1,type:{name:"boolean"}},itemRender:{defaultValue:null,description:"",name:"itemRender",required:!1,type:{name:"((_: { page: number; label?: string; originalElement: ReactNode; }) => ReactNode)"}},pageSize:{defaultValue:null,description:"",name:"pageSize",required:!1,type:{name:"number"}},pageSizeOptions:{defaultValue:{value:"[10, 20, 50, 100]"},description:"",name:"pageSizeOptions",required:!1,type:{name:"number[]"}},responsive:{defaultValue:null,description:"",name:"responsive",required:!1,type:{name:"boolean"}},showQuickJumper:{defaultValue:{value:"false"},description:"",name:"showQuickJumper",required:!1,type:{name:"boolean | { goButton: ReactNode; }"}},showSizeChanger:{defaultValue:{value:"false"},description:"",name:"showSizeChanger",required:!1,type:{name:"boolean"}},showTotal:{defaultValue:null,description:"",name:"showTotal",required:!1,type:{name:"((total: number, range: [number, number]) => ReactNode)"}},simple:{defaultValue:null,description:"",name:"simple",required:!1,type:{name:"boolean"}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"default"'},{value:'"small"'}]}},total:{defaultValue:{value:"0"},description:"",name:"total",required:!1,type:{name:"number"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((page: number, pageSize: number) => void)"}},onPageSizeChange:{defaultValue:null,description:"",name:"onPageSizeChange",required:!1,type:{name:"((current: number, size: number) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Pagination/Pagination.tsx#Pagination"]={docgenInfo:Pagination.__docgenInfo,name:"Pagination",path:"src/components/Pagination/Pagination.tsx#Pagination"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Pagination/PaginationItem.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.PaginationItem=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")),_Dimensions=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Dimensions/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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/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 windowWidth=_Dimensions.default.get("window").width,PaginationItem=exports.PaginationItem=function PaginationItem(_ref){var page=_ref.page,label=_ref.label,isCurrent=_ref.isCurrent,_ref$disabled=_ref.disabled,disabled=void 0!==_ref$disabled&&_ref$disabled,_onPress=_ref.onPress,styles=(0,_react.useMemo)((function(){return function getStyles(){var isMobile=windowWidth<480;return _StyleSheet.default.create({container:{flexDirection:"row",alignItems:"center",padding:10},pageItem:{marginHorizontal:8,paddingVertical:4,paddingHorizontal:12,minWidth:isMobile?44:void 0,minHeight:isMobile?44:void 0,borderRadius:4,borderWidth:1,borderColor:"transparent"},currentPageItem:{borderColor:"blue",backgroundColor:"#f0f8ff"},ellipsis:{fontSize:16},arrow:{fontSize:16,fontWeight:"bold"},pageText:{fontSize:16},pageSizeSelector:{marginLeft:16,padding:4,borderWidth:1,borderRadius:4,borderColor:"gray"}})}()}),[]);return(0,_jsxRuntime.jsx)(_Pressable.default,{style:[styles.pageItem,isCurrent&&styles.currentPageItem],onPress:function onPress(){return _onPress(page)},disabled,children:(0,_jsxRuntime.jsx)(_Text.default,{style:styles.pageText,children:null!=label?label:page})})};try{PaginationItem.displayName="PaginationItem",PaginationItem.__docgenInfo={description:"",displayName:"PaginationItem",props:{page:{defaultValue:null,description:"",name:"page",required:!0,type:{name:"number"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},isCurrent:{defaultValue:null,description:"",name:"isCurrent",required:!0,type:{name:"boolean"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},onPress:{defaultValue:null,description:"",name:"onPress",required:!0,type:{name:"(page: number) => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Pagination/PaginationItem.tsx#PaginationItem"]={docgenInfo:PaginationItem.__docgenInfo,name:"PaginationItem",path:"src/components/Pagination/PaginationItem.tsx#PaginationItem"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/SelectItems/SelectItems.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.SelectItems=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")),_reactI18next=__webpack_require__("./node_modules/react-i18next/dist/es/index.js"),_FlatList=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/FlatList/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"),_useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_logger=__webpack_require__("./src/utils/logger.ts"),_SelectButtons=__webpack_require__("./src/components/SelectButtons/SelectButtons.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("SelectItems"),SelectItems=exports.SelectItems=function SelectItems(_ref){var options=_ref.options,_ref$min=_ref.min,min=void 0===_ref$min?0:_ref$min,max=_ref.max,cols=_ref.cols,renderItem=_ref.renderItem,_ref$multiSelect=_ref.multiSelect,multiSelect=void 0!==_ref$multiSelect&&_ref$multiSelect,_ref$showFooter=_ref.showFooter,showFooter=void 0===_ref$showFooter||_ref$showFooter,showSearch=_ref.showSearch,onFinish=_ref.onFinish,onChange=_ref.onChange,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,backgroundColor:theme.colors.surface},footer:{borderTopWidth:2,borderTopColor:theme.colors.outline,marginBottom:20,display:"flex",flexDirection:"row",justifyContent:"space-around",padding:10},finishButton:{},cancelButton:{}})}(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],refInit=(0,_react.useRef)(null),t=(0,_reactI18next.useTranslation)("select_items").t;null===refInit.current&&(refInit.current=options.map((function(option,index){return{index,selected:!!option.selected}})));var screenWidth=(0,_useScreenWidth.useScreenWidth)(),numColumns=(0,_react.useMemo)((function(){return cols||(screenWidth>=_SelectButtons.BREAKPOINTS.LG?4:screenWidth>=_SelectButtons.BREAKPOINTS.MD?3:screenWidth>=_SelectButtons.BREAKPOINTS.SM?2:1)}),[screenWidth,cols]),filteredOptions=(0,_react.useMemo)((function(){return currentOptions.filter((function(option){return option.label.toLowerCase().includes(searchQuery.toLowerCase())})).sort((function(a,b){return(a.order||1)-(b.order||1)}))}),[currentOptions,searchQuery]),handleSearchChange=(0,_react.useCallback)((function(query){return setSearchQuery(query)}),[]),handleItemChange=(0,_react.useCallback)((function(_ref2){var index=_ref2.index,newOptions=(0,_toConsumableArray2.default)(currentOptions),optionIndex=currentOptions.findIndex((function(option){return option===filteredOptions[index]})),option=newOptions[optionIndex];void 0!==option&&(option.selected=!option.selected,multiSelect||(newOptions=newOptions.map((function(opt,idx){return Object.assign({},opt,{selected:idx===optionIndex&&option.selected})})))),setCurrentOptions(newOptions),logger.log("newOptions",newOptions),null==onChange||onChange(newOptions)}),[currentOptions,filteredOptions,multiSelect,onChange,logger]),selectedOptionsCount=(0,_react.useMemo)((function(){return 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?t("max_error",{count:max}):""}),[selectedOptionsCount,min,max,t]),handleRender=(0,_react.useCallback)((function(_ref3){var item=_ref3.item,index=_ref3.index;return(0,_jsxRuntime.jsx)(_jsxRuntime.Fragment,{children:renderItem({item,index,onChange:handleItemChange})})}),[renderItem,handleItemChange]),handleKeyPress=(0,_react.useCallback)((function(event){"web"===_Platform.default.OS&&("Escape"===event.code&&setSearchQuery(""))}),[]),handleCancel=(0,_react.useCallback)((function(){var _refInit$current,newOptions=(0,_toConsumableArray2.default)(currentOptions);null==(_refInit$current=refInit.current)||_refInit$current.forEach((function(_ref4){var index=_ref4.index,selected=_ref4.selected,option=newOptions[index];option&&(option.selected=selected)})),setCurrentOptions(newOptions),null==onFinish||onFinish(options)}),[onFinish,currentOptions,options,refInit]),handleFinish=(0,_react.useCallback)((function(){refInit.current=null,null==onFinish||onFinish(currentOptions)}),[onFinish,currentOptions,refInit]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[showSearch&&(0,_jsxRuntime.jsx)(_reactNativePaper.Searchbar,{placeholder:t("search_placeholder"),clearButtonMode:"while-editing",onChangeText:handleSearchChange,onKeyPress:handleKeyPress,value:searchQuery}),(0,_jsxRuntime.jsx)(_reactNativePaper.HelperText,{type:"error",visible:isErrorVisible||!1,children:errorText}),(0,_jsxRuntime.jsx)(_FlatList.default,{data:filteredOptions,renderItem:handleRender,keyExtractor:function keyExtractor(_item,index){return`opt${index}`},numColumns},`flatlist-${numColumns}`),showFooter&&(0,_jsxRuntime.jsxs)(_View.default,{style:styles.footer,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{style:styles.cancelButton,onPress:handleCancel,children:t("cancel")}),(0,_jsxRuntime.jsx)(_reactNativePaper.Button,{style:styles.finishButton,mode:"contained",onPress:handleFinish,children:t("finish")})]})]})};try{SelectItems.displayName="SelectItems",SelectItems.__docgenInfo={description:"",displayName:"SelectItems",props:{multiSelect:{defaultValue:{value:"false"},description:"",name:"multiSelect",required:!1,type:{name:"boolean"}},showSearch:{defaultValue:null,description:"",name:"showSearch",required:!1,type:{name:"boolean"}},renderItem:{defaultValue:null,description:"",name:"renderItem",required:!0,type:{name:"({ item, index, }: { item: SelectItemOption; index: number; onChange?: (({ item, index, }: { item: SelectItemOption; index: number; }) => void) | undefined; }) => ReactNode"}},showFooter:{defaultValue:{value:"true"},description:"",name:"showFooter",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"}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectItemOption[]"}},onFinish:{defaultValue:null,description:"",name:"onFinish",required:!1,type:{name:"((options: SelectItemOption[]) => void)"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((options: SelectItemOption[]) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/SelectItems/SelectItems.tsx#SelectItems"]={docgenInfo:SelectItems.__docgenInfo,name:"SelectItems",path:"src/components/SelectItems/SelectItems.tsx#SelectItems"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.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.LoadingPulseBar=void 0;var _react=_interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_reactNativeReanimated=_interopRequireWildcard(__webpack_require__("./node_modules/react-native-reanimated/lib/module/index.web.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)}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}var _worklet_8964404333244_init_data={code:"function anonymous(){const{opacity}=this.__closure;return{opacity:opacity.value};}"},LoadingPulseBar=exports.LoadingPulseBar=function LoadingPulseBar(_ref2){var style=_ref2.style,_ref2$height=_ref2.height,height=void 0===_ref2$height?20:_ref2$height,_ref2$color=_ref2.color,color=void 0===_ref2$color?"#ccc":_ref2$color,_ref2$width=_ref2.width,width=void 0===_ref2$width?"100%":_ref2$width,_ref2$animationDurati=_ref2.animationDuration,animationDuration=void 0===_ref2$animationDurati?1e3:_ref2$animationDurati,_ref2$minOpacity=_ref2.minOpacity,minOpacity=void 0===_ref2$minOpacity?.5:_ref2$minOpacity,_ref2$maxOpacity=_ref2.maxOpacity,maxOpacity=void 0===_ref2$maxOpacity?1:_ref2$maxOpacity,styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var height=_ref.height,color=_ref.color,width=_ref.width;return _StyleSheet.default.create({pulseBar:{height,backgroundColor:color,borderRadius:5,width}})}({color,width,height})}),[color,width,height]),opacity=(0,_reactNativeReanimated.useSharedValue)(minOpacity);opacity.value=(0,_reactNativeReanimated.withRepeat)((0,_reactNativeReanimated.withTiming)(maxOpacity,{duration:animationDuration}),-1,!0);var anonymous,animatedStyles=(0,_reactNativeReanimated.useAnimatedStyle)(((anonymous=function anonymous(){return{opacity:opacity.value}}).__closure={opacity},anonymous.__workletHash=8964404333244,anonymous.__initData=_worklet_8964404333244_init_data,anonymous));return(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[styles.pulseBar,animatedStyles,style]})};try{LoadingPulseBar.displayName="LoadingPulseBar",LoadingPulseBar.__docgenInfo={description:"",displayName:"LoadingPulseBar",props:{style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},height:{defaultValue:{value:"20"},description:"",name:"height",required:!1,type:{name:"number"}},color:{defaultValue:{value:"#ccc"},description:"",name:"color",required:!1,type:{name:"string"}},width:{defaultValue:{value:"100%"},description:"",name:"width",required:!1,type:{name:"DimensionValue"}},animationDuration:{defaultValue:{value:"1000"},description:"",name:"animationDuration",required:!1,type:{name:"number"}},minOpacity:{defaultValue:{value:"0.5"},description:"",name:"minOpacity",required:!1,type:{name:"number"}},maxOpacity:{defaultValue:{value:"1"},description:"",name:"maxOpacity",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx#LoadingPulseBar"]={docgenInfo:LoadingPulseBar.__docgenInfo,name:"LoadingPulseBar",path:"src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx#LoadingPulseBar"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.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.LoadingPulseCircle=void 0;var _react=_interopRequireWildcard(__webpack_require__("./node_modules/react/index.js")),_StyleSheet=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/StyleSheet/index.js")),_reactNativeReanimated=_interopRequireWildcard(__webpack_require__("./node_modules/react-native-reanimated/lib/module/index.web.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)}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}var _worklet_8964404333244_init_data={code:"function anonymous(){const{opacity}=this.__closure;return{opacity:opacity.value};}"},LoadingPulseCircle=exports.LoadingPulseCircle=function LoadingPulseCircle(_ref2){var style=_ref2.style,_ref2$color=_ref2.color,color=void 0===_ref2$color?"#CCC":_ref2$color,_ref2$size=_ref2.size,size=void 0===_ref2$size?50:_ref2$size,_ref2$animationDurati=_ref2.animationDuration,animationDuration=void 0===_ref2$animationDurati?1e3:_ref2$animationDurati,_ref2$minOpacity=_ref2.minOpacity,minOpacity=void 0===_ref2$minOpacity?.5:_ref2$minOpacity,_ref2$maxOpacity=_ref2.maxOpacity,maxOpacity=void 0===_ref2$maxOpacity?1:_ref2$maxOpacity,styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var size=_ref.size,color=_ref.color;return _StyleSheet.default.create({pulseCircle:{height:size,width:size,backgroundColor:color,borderRadius:size/2}})}({size,color})}),[size,color]),opacity=(0,_reactNativeReanimated.useSharedValue)(minOpacity);opacity.value=(0,_reactNativeReanimated.withRepeat)((0,_reactNativeReanimated.withTiming)(maxOpacity,{duration:animationDuration}),-1,!0);var anonymous,animatedStyles=(0,_reactNativeReanimated.useAnimatedStyle)(((anonymous=function anonymous(){return{opacity:opacity.value}}).__closure={opacity},anonymous.__workletHash=8964404333244,anonymous.__initData=_worklet_8964404333244_init_data,anonymous));return(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{style:[styles.pulseCircle,animatedStyles,style]})};try{LoadingPulseCircle.displayName="LoadingPulseCircle",LoadingPulseCircle.__docgenInfo={description:"",displayName:"LoadingPulseCircle",props:{style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},size:{defaultValue:{value:"50"},description:"",name:"size",required:!1,type:{name:"number"}},color:{defaultValue:{value:"#CCC"},description:"",name:"color",required:!1,type:{name:"string"}},animationDuration:{defaultValue:{value:"1000"},description:"",name:"animationDuration",required:!1,type:{name:"number"}},minOpacity:{defaultValue:{value:"0.5"},description:"",name:"minOpacity",required:!1,type:{name:"number"}},maxOpacity:{defaultValue:{value:"1"},description:"",name:"maxOpacity",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx#LoadingPulseCircle"]={docgenInfo:LoadingPulseCircle.__docgenInfo,name:"LoadingPulseCircle",path:"src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx#LoadingPulseCircle"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Skeleton/Skeleton.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.Skeleton=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")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_LoadingPulseBar=__webpack_require__("./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx"),_LoadingPulseCircle=__webpack_require__("./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.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 defaultSkeletonItems=[{circles:1,bars:3},{circles:1,bars:3}],Skeleton=exports.Skeleton=function Skeleton(_ref){var _ref$items=_ref.items,items=void 0===_ref$items?defaultSkeletonItems:_ref$items,_ref$circleSize=_ref.circleSize,circleSize=void 0===_ref$circleSize?50:_ref$circleSize,_ref$barHeight=_ref.barHeight,barHeight=void 0===_ref$barHeight?20:_ref$barHeight,_ref$color=_ref.color,color=void 0===_ref$color?"#ccc":_ref$color,_ref$animationDuratio=_ref.animationDuration,animationDuration=void 0===_ref$animationDuratio?1e3:_ref$animationDuratio,_ref$minOpacity=_ref.minOpacity,minOpacity=void 0===_ref$minOpacity?.5:_ref$minOpacity,_ref$maxOpacity=_ref.maxOpacity,maxOpacity=void 0===_ref$maxOpacity?1:_ref$maxOpacity,style=_ref.style,styles=(0,_react.useMemo)((function(){return function getStyles(){return _StyleSheet.default.create({container:{},itemRow:{flexDirection:"row",alignItems:"center",marginBottom:10},circleContainer:{marginRight:10,gap:10},barContainer:{flex:1,gap:5,flexDirection:"column",justifyContent:"space-around"}})}()}),[]);return(0,_jsxRuntime.jsx)(_View.default,{style:[styles.container,style],children:items.map((function(item,index){return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.itemRow,children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.circleContainer,children:Array.from({length:item.circles},(function(_,circleIndex){return(0,_jsxRuntime.jsx)(_LoadingPulseCircle.LoadingPulseCircle,{size:circleSize,color,animationDuration,minOpacity,maxOpacity},`circle-${circleIndex}`)}))}),(0,_jsxRuntime.jsx)(_View.default,{style:styles.barContainer,children:Array.from({length:item.bars},(function(_,barIndex){return(0,_jsxRuntime.jsx)(_LoadingPulseBar.LoadingPulseBar,{height:barHeight,color,animationDuration,minOpacity,maxOpacity},`bar-${barIndex}`)}))})]},`skeleton-item-${index}`)}))})};try{Skeleton.displayName="Skeleton",Skeleton.__docgenInfo={description:"",displayName:"Skeleton",props:{items:{defaultValue:{value:"[\n { circles: 1, bars: 3 },\n { circles: 1, bars: 3 },\n]"},description:"",name:"items",required:!1,type:{name:"SkeletonItem[]"}},circleSize:{defaultValue:{value:"50"},description:"",name:"circleSize",required:!1,type:{name:"number"}},barHeight:{defaultValue:{value:"20"},description:"",name:"barHeight",required:!1,type:{name:"number"}},color:{defaultValue:{value:"#ccc"},description:"",name:"color",required:!1,type:{name:"string"}},animationDuration:{defaultValue:{value:"1000"},description:"",name:"animationDuration",required:!1,type:{name:"number"}},minOpacity:{defaultValue:{value:"0.5"},description:"",name:"minOpacity",required:!1,type:{name:"number"}},maxOpacity:{defaultValue:{value:"1"},description:"",name:"maxOpacity",required:!1,type:{name:"number"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Skeleton/Skeleton.tsx#Skeleton"]={docgenInfo:Skeleton.__docgenInfo,name:"Skeleton",path:"src/components/Skeleton/Skeleton.tsx#Skeleton"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Slider/Slider.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.Slider=void 0;var _slider=_interopRequireDefault(__webpack_require__("./node_modules/@react-native-community/slider/dist/Slider.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")),_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 Slider=exports.Slider=function Slider(_ref2){var _ref2$label=_ref2.label,label=void 0===_ref2$label?"":_ref2$label,value=_ref2.value,minimumValue=_ref2.minimumValue,maximumValue=_ref2.maximumValue,onValueChange=_ref2.onValueChange,onSlidingComplete=_ref2.onSlidingComplete,_ref2$disabled=_ref2.disabled,disabled=void 0!==_ref2$disabled&&_ref2$disabled,_ref2$step=_ref2.step,step=void 0===_ref2$step?1:_ref2$step,_ref2$showValue=_ref2.showValue,showValue=void 0!==_ref2$showValue&&_ref2$showValue,_ref2$valueFormatter=_ref2.valueFormatter,valueFormatter=void 0===_ref2$valueFormatter?function(val){return val.toString()}:_ref2$valueFormatter,containerStyle=_ref2.containerStyle,labelStyle=_ref2.labelStyle,sliderStyle=_ref2.sliderStyle,valueLabelStyle=_ref2.valueLabelStyle,onSlidingStart=_ref2.onSlidingStart,theme=(0,_ThemeProvider.useTheme)(),defaultStyles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,disabled=_ref.disabled;return _StyleSheet.default.create({container:{width:"100%",opacity:disabled?.5:1},label:{marginBottom:8,color:disabled?theme.colors.outline:theme.colors.text},webSlider:{width:"100%",height:30},valueLabel:{marginTop:8,textAlign:"right",color:disabled?theme.colors.outline:theme.colors.text}})}({theme,disabled})}),[theme,disabled]),handleWebSliderChange=(0,_react.useCallback)((function(event){disabled||onValueChange(Number(event.target.value))}),[onValueChange,disabled]),handleWebSliderComplete=(0,_react.useCallback)((function(event){if(!disabled){var inputElement=event.currentTarget;null==onSlidingComplete||onSlidingComplete(Number(inputElement.value))}}),[onSlidingComplete,disabled]),handleWebSliderStart=(0,_react.useCallback)((function(){!disabled&&onSlidingStart&&onSlidingStart()}),[disabled,onSlidingStart]);return(0,_jsxRuntime.jsxs)(_View.default,{style:_StyleSheet.default.flatten([defaultStyles.container,containerStyle]),children:[label&&(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:_StyleSheet.default.flatten([defaultStyles.label,labelStyle]),children:label}),function renderSlider(){var combinedSliderStyle=_StyleSheet.default.flatten([defaultStyles.webSlider,sliderStyle]);return"web"===_Platform.default.OS?(0,_jsxRuntime.jsx)("input",{type:"range",min:minimumValue,max:maximumValue,value,onChange:handleWebSliderChange,onMouseDown:handleWebSliderStart,onMouseUp:handleWebSliderComplete,style:Object.assign({},combinedSliderStyle,{cursor:disabled?"not-allowed":"pointer",backgroundColor:"transparent"}),disabled,step}):(0,_jsxRuntime.jsx)(_slider.default,{style:combinedSliderStyle,minimumValue,maximumValue,value,onValueChange:disabled?void 0:onValueChange,onSlidingStart:disabled?void 0:onSlidingStart,onSlidingComplete:disabled?void 0:onSlidingComplete,minimumTrackTintColor:disabled?theme.colors.outline:theme.colors.primary,maximumTrackTintColor:disabled?theme.colors.outline:theme.colors.secondary,disabled,step})}(),showValue&&(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:_StyleSheet.default.flatten([defaultStyles.valueLabel,valueLabelStyle]),children:valueFormatter(value)})]})};try{Slider.displayName="Slider",Slider.__docgenInfo={description:"",displayName:"Slider",props:{label:{defaultValue:{value:""},description:"",name:"label",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"number"}},minimumValue:{defaultValue:null,description:"",name:"minimumValue",required:!0,type:{name:"number"}},maximumValue:{defaultValue:null,description:"",name:"maximumValue",required:!0,type:{name:"number"}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!0,type:{name:"(value: number) => void"}},onSlidingComplete:{defaultValue:null,description:"",name:"onSlidingComplete",required:!1,type:{name:"((value: number) => void)"}},disabled:{defaultValue:{value:"false"},description:"",name:"disabled",required:!1,type:{name:"boolean"}},step:{defaultValue:{value:"1"},description:"",name:"step",required:!1,type:{name:"number"}},showValue:{defaultValue:{value:"false"},description:"",name:"showValue",required:!1,type:{name:"boolean"}},valueFormatter:{defaultValue:{value:"(val: number) => val.toString()"},description:"",name:"valueFormatter",required:!1,type:{name:"((value: number) => string)"}},containerStyle:{defaultValue:null,description:"",name:"containerStyle",required:!1,type:{name:"ViewStyle"}},labelStyle:{defaultValue:null,description:"",name:"labelStyle",required:!1,type:{name:"TextStyle"}},sliderStyle:{defaultValue:null,description:"",name:"sliderStyle",required:!1,type:{name:"ViewStyle"}},valueLabelStyle:{defaultValue:null,description:"",name:"valueLabelStyle",required:!1,type:{name:"TextStyle"}},onSlidingStart:{defaultValue:null,description:"",name:"onSlidingStart",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Slider/Slider.tsx#Slider"]={docgenInfo:Slider.__docgenInfo,name:"Slider",path:"src/components/Slider/Slider.tsx#Slider"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Spacer/Spacer.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.Spacer=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),Spacer=exports.Spacer=function Spacer(_ref){var horizontal=_ref.horizontal,vertical=_ref.vertical;return(0,_jsxRuntime.jsx)(_View.default,{style:{paddingHorizontal:horizontal,paddingVertical:vertical}})};try{Spacer.displayName="Spacer",Spacer.__docgenInfo={description:"",displayName:"Spacer",props:{horizontal:{defaultValue:null,description:"",name:"horizontal",required:!1,type:{name:"number"}},vertical:{defaultValue:null,description:"",name:"vertical",required:!1,type:{name:"number"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Spacer/Spacer.tsx#Spacer"]={docgenInfo:Spacer.__docgenInfo,name:"Spacer",path:"src/components/Spacer/Spacer.tsx#Spacer"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/ThemedView/ThemedView.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.ThemedView=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")),_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");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 ThemedView=exports.ThemedView=function ThemedView(_ref2){var children=_ref2.children,style=_ref2.style,theme=(0,_ThemeProvider.useTheme)(),insets=(0,_reactNativeSafeAreaContext.useSafeAreaInsets)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,insets=_ref.insets;return _StyleSheet.default.create({container:{flex:1,backgroundColor:theme.colors.background,paddingBottom:insets.bottom,paddingLeft:insets.left,paddingRight:insets.left}})}({theme,insets})}),[theme,insets]);return(0,_jsxRuntime.jsx)(_View.default,{style:[styles.container,style],children})};try{ThemedView.displayName="ThemedView",ThemedView.__docgenInfo={description:"",displayName:"ThemedView",props:{style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/ThemedView/ThemedView.tsx#ThemedView"]={docgenInfo:ThemedView.__docgenInfo,name:"ThemedView",path:"src/components/ThemedView/ThemedView.tsx#ThemedView"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/bottom-modal/CustomBackdrop/CustomBackdrop.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.styles=exports.CustomBackdrop=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_bottomSheet=__webpack_require__("./node_modules/@gorhom/bottom-sheet/lib/module/index.js"),_react=_interopRequireWildcard(__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")),_reactNativeReanimated=_interopRequireWildcard(__webpack_require__("./node_modules/react-native-reanimated/lib/module/index.web.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)}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}var AnimatedPressable=_reactNativeReanimated.default.createAnimatedComponent(_Pressable.default),styles=exports.styles=_StyleSheet.default.create({container:{backgroundColor:"black"}}),_worklet_12614392125157_init_data={code:"function anonymous(){const{interpolate,animatedIndex,disappearsOnIndex,appearsOnIndex,opacity,Extrapolate}=this.__closure;return{opacity:interpolate(animatedIndex.value,[-1,disappearsOnIndex,appearsOnIndex],[0,opacity,opacity],Extrapolate.CLAMP),flex:1};}"},_worklet_13286801629332_init_data={code:"function anonymous(){const{animatedIndex,disappearsOnIndex}=this.__closure;return animatedIndex.value<=disappearsOnIndex;}"},_worklet_7854563618277_init_data={code:"function anonymous(shouldDisableTouchability,previous){const{disappearsOnIndex,runOnJS,handleContainerTouchability}=this.__closure;if(shouldDisableTouchability===previous||disappearsOnIndex===-1){return;}runOnJS(handleContainerTouchability)(shouldDisableTouchability);}"},CustomBackdrop=exports.CustomBackdrop=function CustomBackdrop(_ref){var anonymous,animatedIndex=_ref.animatedIndex,_providedOpacity=_ref.opacity,_providedAppearsOnIndex=_ref.appearsOnIndex,_providedDisappearsOnIndex=_ref.disappearsOnIndex,_providedEnableTouchThrough=_ref.enableTouchThrough,_ref$pressBehavior=_ref.pressBehavior,pressBehavior=void 0===_ref$pressBehavior?"close":_ref$pressBehavior,onPress=_ref.onPress,style=_ref.style,children=_ref.children,_useBottomSheet=(0,_bottomSheet.useBottomSheet)(),snapToIndex=_useBottomSheet.snapToIndex,close=_useBottomSheet.close,opacity=null!=_providedOpacity?_providedOpacity:.5,appearsOnIndex=null!=_providedAppearsOnIndex?_providedAppearsOnIndex:1,disappearsOnIndex=null!=_providedDisappearsOnIndex?_providedDisappearsOnIndex:0,enableTouchThrough=null!=_providedEnableTouchThrough&&_providedEnableTouchThrough,_useState=(0,_react.useState)(enableTouchThrough?"none":"auto"),_useState2=(0,_slicedToArray2.default)(_useState,2),pointerEvents=_useState2[0],setPointerEvents=_useState2[1],handleOnPress=(0,_react.useCallback)((function(){null==onPress||onPress(),"close"===pressBehavior?close():"collapse"===pressBehavior?snapToIndex(disappearsOnIndex):"number"==typeof pressBehavior&&snapToIndex(pressBehavior)}),[snapToIndex,close,disappearsOnIndex,pressBehavior,onPress]),handleContainerTouchability=(0,_react.useCallback)((function(shouldDisableTouchability){setPointerEvents(shouldDisableTouchability?"none":"auto")}),[]),containerAnimatedStyle=(0,_reactNativeReanimated.useAnimatedStyle)(((anonymous=function anonymous(){return{opacity:(0,_reactNativeReanimated.interpolate)(animatedIndex.value,[-1,disappearsOnIndex,appearsOnIndex],[0,opacity,opacity],_reactNativeReanimated.Extrapolate.CLAMP),flex:1}}).__closure={interpolate:_reactNativeReanimated.interpolate,animatedIndex,disappearsOnIndex,appearsOnIndex,opacity,Extrapolate:_reactNativeReanimated.Extrapolate},anonymous.__workletHash=0xb79045c96e5,anonymous.__initData=_worklet_12614392125157_init_data,anonymous)),containerStyle=(0,_react.useMemo)((function(){return[styles.container,style,containerAnimatedStyle]}),[style,containerAnimatedStyle]);return(0,_reactNativeReanimated.useAnimatedReaction)(function(){var anonymous=function anonymous(){return animatedIndex.value<=disappearsOnIndex};return anonymous.__closure={animatedIndex,disappearsOnIndex},anonymous.__workletHash=0xc1593176094,anonymous.__initData=_worklet_13286801629332_init_data,anonymous}(),function(){var anonymous=function anonymous(shouldDisableTouchability,previous){shouldDisableTouchability!==previous&&-1!==disappearsOnIndex&&(0,_reactNativeReanimated.runOnJS)(handleContainerTouchability)(shouldDisableTouchability)};return anonymous.__closure={disappearsOnIndex,runOnJS:_reactNativeReanimated.runOnJS,handleContainerTouchability},anonymous.__workletHash=7854563618277,anonymous.__initData=_worklet_7854563618277_init_data,anonymous}(),[disappearsOnIndex]),"none"!==pressBehavior?(0,_jsxRuntime.jsx)(AnimatedPressable,{onPress:handleOnPress,style:containerStyle,pointerEvents,accessible:!0,accessibilityRole:"button",accessibilityLabel:"Bottom Sheet backdrop",accessibilityHint:`Tap to ${"string"==typeof pressBehavior?pressBehavior:"move"} the Bottom Sheet`,children}):(0,_jsxRuntime.jsx)(_reactNativeReanimated.default.View,{pointerEvents,style:containerStyle,children})};try{CustomBackdrop.displayName="CustomBackdrop",CustomBackdrop.__docgenInfo={description:"",displayName:"CustomBackdrop",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx#CustomBackdrop"]={docgenInfo:CustomBackdrop.__docgenInfo,name:"CustomBackdrop",path:"src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx#CustomBackdrop"})}catch(__react_docgen_typescript_loader_error){}},"./src/hooks/useConfirm/useConfirm.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.useConfirm=void 0;var _react=__webpack_require__("./node_modules/react/index.js"),_ConfirmProvider=__webpack_require__("./src/providers/ConfirmProvider.tsx");exports.useConfirm=function useConfirm(){var context=(0,_react.useContext)(_ConfirmProvider.ConfirmContext);if(!context)throw new Error("useConfirm must be used within a ConfirmProvider");return context}},"./src/hooks/useToast/useToast.tsx":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.useToast=void 0;var _react=__webpack_require__("./node_modules/react/index.js"),_ToastProvider=__webpack_require__("./src/providers/ToastProvider.tsx"),useToast=exports.useToast=function useToast(){var toast=(0,_react.useContext)(_ToastProvider.ToastContext);if(!toast)throw new Error("useToast must be used within a ToastProvider.");return toast};try{useToast.displayName="useToast",useToast.__docgenInfo={description:"useToast hook is used to show and hide Toast messages.\n## Usage\nImport the `useToast` hook from the library. Calling it will return you an object with two functions `show` and `hide` to show or hide toast.\n\n```tsx\nimport { useToast } from 'react-native-paper-toast';\n\nexport const Screen: React.FC = (props) => {\n const toaster = useToast();\n // You can now toast methods from handler functions, effects or onPress props!\n\n // Call from handler function\n const handleError = () =>\n toaster.show({ message: 'Invalid Username', type: 'error' });\n\n // Call from Effects\n useEffect(() => {\n login(username, password).then((v) =>\n toaster.show({ message: 'Login successful', duration: 2000 })\n );\n });\n\n return (\n \n \n \n \n );\n};\n```",displayName:"useToast",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/hooks/useToast/useToast.tsx#useToast"]={docgenInfo:useToast.__docgenInfo,name:"useToast",path:"src/hooks/useToast/useToast.tsx#useToast"})}catch(__react_docgen_typescript_loader_error){}},"./src/index.ts":(__unused_webpack_module,exports,__webpack_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0});var _Accordion=__webpack_require__("./src/components/Accordion/Accordion.tsx");Object.keys(_Accordion).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Accordion[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Accordion[key]}}))}));var _AccordionItem=__webpack_require__("./src/components/Accordion/AccordionItem/AccordionItem.tsx");Object.keys(_AccordionItem).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_AccordionItem[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _AccordionItem[key]}}))}));var _CustomBackdrop=__webpack_require__("./src/components/bottom-modal/CustomBackdrop/CustomBackdrop.tsx");Object.keys(_CustomBackdrop).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_CustomBackdrop[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _CustomBackdrop[key]}}))}));var _ConfirmCancelFooter=__webpack_require__("./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx");Object.keys(_ConfirmCancelFooter).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ConfirmCancelFooter[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ConfirmCancelFooter[key]}}))}));var _LabelHandler=__webpack_require__("./src/components/bottom-modal/handlers/LabelHandler.tsx");Object.keys(_LabelHandler).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LabelHandler[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LabelHandler[key]}}))}));var _Button=__webpack_require__("./src/components/Button/Button.tsx");Object.keys(_Button).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Button[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Button[key]}}))}));var _ColorItem=__webpack_require__("./src/components/Colors/ColorItem/ColorItem.tsx");Object.keys(_ColorItem).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ColorItem[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ColorItem[key]}}))}));var _ColorPicker=__webpack_require__("./src/components/Colors/ColorPicker/ColorPicker.tsx");Object.keys(_ColorPicker).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ColorPicker[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ColorPicker[key]}}))}));var _Divider=__webpack_require__("./src/components/Divider/Divider.tsx");Object.keys(_Divider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Divider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Divider[key]}}))}));var _DynInput=__webpack_require__("./src/components/DynInput/DynInput.tsx");Object.keys(_DynInput).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_DynInput[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _DynInput[key]}}))}));var _Empty=__webpack_require__("./src/components/Empty/Empty.tsx");Object.keys(_Empty).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Empty[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Empty[key]}}))}));var _Picker=__webpack_require__("./src/components/Picker/Picker.tsx");Object.keys(_Picker).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Picker[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Picker[key]}}))}));var _LabelSwitch=__webpack_require__("./src/components/LabelSwitch/LabelSwitch.tsx");Object.keys(_LabelSwitch).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LabelSwitch[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LabelSwitch[key]}}))}));var _LockInput=__webpack_require__("./src/components/LockInput/LockInput.tsx");Object.keys(_LockInput).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LockInput[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LockInput[key]}}))}));var _ScreenWrapper=__webpack_require__("./src/components/ScreenWrapper/ScreenWrapper.tsx");Object.keys(_ScreenWrapper).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ScreenWrapper[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ScreenWrapper[key]}}))}));var _SelectButtons=__webpack_require__("./src/components/SelectButtons/SelectButtons.tsx");Object.keys(_SelectButtons).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_SelectButtons[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _SelectButtons[key]}}))}));var _SelectItems=__webpack_require__("./src/components/SelectItems/SelectItems.tsx");Object.keys(_SelectItems).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_SelectItems[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _SelectItems[key]}}))}));var _Spacer=__webpack_require__("./src/components/Spacer/Spacer.tsx");Object.keys(_Spacer).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Spacer[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Spacer[key]}}))}));var _TextInput=__webpack_require__("./src/components/TextInput/TextInput.tsx");Object.keys(_TextInput).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_TextInput[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _TextInput[key]}}))}));var _ThemedView=__webpack_require__("./src/components/ThemedView/ThemedView.tsx");Object.keys(_ThemedView).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ThemedView[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ThemedView[key]}}))}));var _Notice=__webpack_require__("./src/components/Notice/Notice.tsx");Object.keys(_Notice).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Notice[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Notice[key]}}))}));var _Result=__webpack_require__("./src/components/Result/Result.tsx");Object.keys(_Result).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Result[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Result[key]}}))}));var _ConfirmDialog=__webpack_require__("./src/components/ConfirmDialog/ConfirmDialog.tsx");Object.keys(_ConfirmDialog).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ConfirmDialog[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ConfirmDialog[key]}}))}));var _Toast=__webpack_require__("./src/components/Toast/Toast.tsx");Object.keys(_Toast).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Toast[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Toast[key]}}))}));var _Skeleton=__webpack_require__("./src/components/Skeleton/Skeleton.tsx");Object.keys(_Skeleton).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Skeleton[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Skeleton[key]}}))}));var _LoadingPulseCircle=__webpack_require__("./src/components/Skeleton/LoadingPulseCircle/LoadingPulseCircle.tsx");Object.keys(_LoadingPulseCircle).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LoadingPulseCircle[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LoadingPulseCircle[key]}}))}));var _LoadingPulseBar=__webpack_require__("./src/components/Skeleton/LoadingPulseBar/LoadingPulseBar.tsx");Object.keys(_LoadingPulseBar).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LoadingPulseBar[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LoadingPulseBar[key]}}))}));var _Pagination=__webpack_require__("./src/components/Pagination/Pagination.tsx");Object.keys(_Pagination).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Pagination[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Pagination[key]}}))}));var _PaginationItem=__webpack_require__("./src/components/Pagination/PaginationItem.tsx");Object.keys(_PaginationItem).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_PaginationItem[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _PaginationItem[key]}}))}));var _ListItem=__webpack_require__("./src/components/ListItem/ListItem.tsx");Object.keys(_ListItem).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ListItem[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ListItem[key]}}))}));var _EditableInfoCard=__webpack_require__("./src/components/EditableInfoCard/EditableInfoCard.tsx");Object.keys(_EditableInfoCard).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_EditableInfoCard[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _EditableInfoCard[key]}}))}));var _RefreshControl=__webpack_require__("./src/components/RefreshControl/RefreshControl.tsx");Object.keys(_RefreshControl).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_RefreshControl[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _RefreshControl[key]}}))}));var _NumberAdjuster=__webpack_require__("./src/components/NumberAdjuster/NumberAdjuster.tsx");Object.keys(_NumberAdjuster).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_NumberAdjuster[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _NumberAdjuster[key]}}))}));var _FABGroup=__webpack_require__("./src/components/FAB/FABGroup.tsx");Object.keys(_FABGroup).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_FABGroup[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _FABGroup[key]}}))}));var _Slider=__webpack_require__("./src/components/Slider/Slider.tsx");Object.keys(_Slider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_Slider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _Slider[key]}}))}));var _HelperWrapper=__webpack_require__("./src/components/HelperWrapper/HelperWrapper.tsx");Object.keys(_HelperWrapper).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_HelperWrapper[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _HelperWrapper[key]}}))}));var _HelperText=__webpack_require__("./src/components/HelperText/HelperText.tsx");Object.keys(_HelperText).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_HelperText[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _HelperText[key]}}))}));var _ThemeConfig=__webpack_require__("./src/settings/ThemeConfig/ThemeConfig.tsx");Object.keys(_ThemeConfig).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ThemeConfig[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ThemeConfig[key]}}))}));var _ThemeViewer=__webpack_require__("./src/settings/ThemeViewer/ThemeViewer.tsx");Object.keys(_ThemeViewer).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ThemeViewer[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ThemeViewer[key]}}))}));var _useAppPreferencesSetup=__webpack_require__("./src/hooks/_useAppPreferencesSetup.tsx");Object.keys(_useAppPreferencesSetup).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useAppPreferencesSetup[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useAppPreferencesSetup[key]}}))}));var _useAppThemeSetup=__webpack_require__("./src/hooks/_useAppThemeSetup.tsx");Object.keys(_useAppThemeSetup).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useAppThemeSetup[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useAppThemeSetup[key]}}))}));var _useScreenWidth=__webpack_require__("./src/hooks/useScreenWidth.tsx");Object.keys(_useScreenWidth).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useScreenWidth[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useScreenWidth[key]}}))}));var _useConfirm=__webpack_require__("./src/hooks/useConfirm/useConfirm.tsx");Object.keys(_useConfirm).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useConfirm[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useConfirm[key]}}))}));var _useToast=__webpack_require__("./src/hooks/useToast/useToast.tsx");Object.keys(_useToast).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useToast[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useToast[key]}}))}));var _useModal=__webpack_require__("./src/hooks/useModal/useModal.tsx");Object.keys(_useModal).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_useModal[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _useModal[key]}}))}));var _BottomSheetProvider=__webpack_require__("./src/providers/BottomSheetProvider.tsx");Object.keys(_BottomSheetProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_BottomSheetProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _BottomSheetProvider[key]}}))}));var _ModalProvider=__webpack_require__("./src/providers/ModalProvider.tsx");Object.keys(_ModalProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ModalProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ModalProvider[key]}}))}));var _LanguageProvider=__webpack_require__("./src/providers/LanguageProvider.tsx");Object.keys(_LanguageProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_LanguageProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _LanguageProvider[key]}}))}));var _ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx");Object.keys(_ThemeProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ThemeProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ThemeProvider[key]}}))}));var _UIProvider=__webpack_require__("./src/providers/UIProvider.tsx");Object.keys(_UIProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_UIProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _UIProvider[key]}}))}));var _ConfirmProvider=__webpack_require__("./src/providers/ConfirmProvider.tsx");Object.keys(_ConfirmProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ConfirmProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ConfirmProvider[key]}}))}));var _ToastProvider=__webpack_require__("./src/providers/ToastProvider.tsx");Object.keys(_ToastProvider).forEach((function(key){"default"!==key&&"__esModule"!==key&&(key in exports&&exports[key]===_ToastProvider[key]||Object.defineProperty(exports,key,{enumerable:!0,get:function get(){return _ToastProvider[key]}}))}))},"./src/settings/ThemeViewer/ThemeViewer.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.ThemeViewer=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")),_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")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ColorItem=__webpack_require__("./src/components/Colors/ColorItem/ColorItem.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_UIProvider=__webpack_require__("./src/providers/UIProvider.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 ThemeViewer=exports.ThemeViewer=function ThemeViewer(_){var _useTheme=(0,_ThemeProvider.useTheme)(),colors=_useTheme.colors,dark=_useTheme.dark,styles=(0,_react.useMemo)((function(){return function getStyles(){return _StyleSheet.default.create({container:{flex:1},scrollView:{maxWidth:"100%"}})}()}),[]),colorEntries=Object.entries(colors).filter((function(_ref){return"string"==typeof(0,_slicedToArray2.default)(_ref,2)[1]})),darkThemeEntries=Object.entries(_UIProvider.DefaultDarkTheme.colors).filter((function(_ref3){return"string"==typeof(0,_slicedToArray2.default)(_ref3,2)[1]})),lightThemeEntries=Object.entries(_UIProvider.DefaultLightTheme.colors).filter((function(_ref5){return"string"==typeof(0,_slicedToArray2.default)(_ref5,2)[1]}));return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsxs)(_reactNativePaper.Text,{children:["DarkMode: ",dark?"YES":"NO"]}),(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:colors.background,label:"colors.background"}),(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:colors.backdrop,label:"colors.backdrop"}),(0,_jsxRuntime.jsxs)(_ScrollView.default,{style:styles.scrollView,contentContainerStyle:{flexDirection:"row"},children:[(0,_jsxRuntime.jsxs)(_View.default,{style:{borderWidth:1,padding:5,width:"30%"},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{children:"Active Theme Colors"}),colorEntries.map((function(_ref7){var _ref8=(0,_slicedToArray2.default)(_ref7,2),key=_ref8[0],value=_ref8[1];return(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:value,label:`colors.${key}`},key)}))]}),(0,_jsxRuntime.jsxs)(_View.default,{style:{borderWidth:1,padding:5,width:"30%",backgroundColor:_UIProvider.DefaultDarkTheme.colors.background},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:{color:_UIProvider.DefaultDarkTheme.colors.text},children:"Dark Theme Colors"}),darkThemeEntries.map((function(_ref9){var _ref10=(0,_slicedToArray2.default)(_ref9,2),key=_ref10[0],value=_ref10[1];return(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:value,labelStyle:{color:_UIProvider.DefaultDarkTheme.colors.text},label:`colors.${key}`},key)}))]}),(0,_jsxRuntime.jsxs)(_View.default,{style:{borderWidth:1,padding:5,width:"30%",backgroundColor:_UIProvider.DefaultLightTheme.colors.background},children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:{color:_UIProvider.DefaultLightTheme.colors.text},children:"Light Theme Colors"}),lightThemeEntries.map((function(_ref11){var _ref12=(0,_slicedToArray2.default)(_ref11,2),key=_ref12[0],value=_ref12[1];return(0,_jsxRuntime.jsx)(_ColorItem.ColorItem,{color:value,labelStyle:{color:_UIProvider.DefaultLightTheme.colors.text},label:`colors.${key}`},key)}))]})]})]})};try{ThemeViewer.displayName="ThemeViewer",ThemeViewer.__docgenInfo={description:"",displayName:"ThemeViewer",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/settings/ThemeViewer/ThemeViewer.tsx#ThemeViewer"]={docgenInfo:ThemeViewer.__docgenInfo,name:"ThemeViewer",path:"src/settings/ThemeViewer/ThemeViewer.tsx#ThemeViewer"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/design-system-storybook/1607.0c5328d0.iframe.bundle.js b/design-system-storybook/1607.0c5328d0.iframe.bundle.js new file mode 100644 index 00000000..b70e9247 --- /dev/null +++ b/design-system-storybook/1607.0c5328d0.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[1607,7424],{"./src/components/Picker/PickerContent.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.PickerContent=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")),_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"),_Result=__webpack_require__("./src/components/Result/Result.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 PickerContent=exports.PickerContent=function PickerContent(_ref){var options=_ref.options,multi=_ref.multi,showSearch=_ref.showSearch,fullWidthOptions=_ref.fullWidthOptions,emptyAction=_ref.emptyAction,emptyOptionsTitle=_ref.emptyOptionsTitle,emptyOptionsMessage=_ref.emptyOptionsMessage,emptyActionLabel=_ref.emptyActionLabel,noResultsText=_ref.noResultsText,onChange=_ref.onChange,onItemPress=_ref.onItemPress,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{padding:theme.spacing.padding},searchBar:{marginBottom:theme.spacing.margin},optionsContainer:{flexDirection:"row",flexWrap:"wrap",gap:theme.spacing.gap,minHeight:40},optionItem:{marginBottom:theme.spacing.margin}})}(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),tempOptions=_useState4[0],setTempOptions=_useState4[1],filteredOptions=(0,_react.useMemo)((function(){return tempOptions.filter((function(option){return option.label.toLowerCase().includes(searchQuery.toLowerCase())}))}),[tempOptions,searchQuery]),handleSelectOption=(0,_react.useCallback)((function(selectedOption){var updatedOptions=tempOptions.map((function(option){return option.value===selectedOption.value?Object.assign({},option,{selected:!multi||!option.selected}):multi?option:Object.assign({},option,{selected:!1})}));console.log("updatedOptions",updatedOptions),setTempOptions(updatedOptions),onChange(updatedOptions),null==onItemPress||onItemPress(selectedOption)}),[tempOptions,multi,onChange,onItemPress]),renderOptions=(0,_react.useCallback)((function(){return(0,_jsxRuntime.jsx)(_View.default,{style:styles.optionsContainer,children:filteredOptions.map((function(option){return(0,_jsxRuntime.jsx)(_View.default,{style:[styles.optionItem,fullWidthOptions&&{width:"100%"}],children:(0,_jsxRuntime.jsx)(_reactNativePaper.Chip,{mode:option.selected?"flat":"outlined",selected:option.selected,onPress:function onPress(){return handleSelectOption(option)},style:fullWidthOptions?{width:"100%"}:{},children:option.label})},option.value)}))})}),[filteredOptions,styles,fullWidthOptions,handleSelectOption]);return 0===tempOptions.length?(0,_jsxRuntime.jsx)(_View.default,{style:styles.container,children:(0,_jsxRuntime.jsx)(_Result.Result,{status:"info",title:emptyOptionsTitle,message:emptyOptionsMessage,buttonText:emptyActionLabel,onButtonPress:emptyAction})}):(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[showSearch&&(0,_jsxRuntime.jsx)(_reactNativePaper.Searchbar,{placeholder:"Search options",onChangeText:setSearchQuery,value:searchQuery,style:styles.searchBar}),0===filteredOptions.length?(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{children:noResultsText}):renderOptions()]})};try{PickerContent.displayName="PickerContent",PickerContent.__docgenInfo={description:"",displayName:"PickerContent",props:{options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}},multi:{defaultValue:null,description:"",name:"multi",required:!0,type:{name:"boolean"}},showSearch:{defaultValue:null,description:"",name:"showSearch",required:!0,type:{name:"boolean"}},fullWidthOptions:{defaultValue:null,description:"",name:"fullWidthOptions",required:!0,type:{name:"boolean"}},emptyLabel:{defaultValue:null,description:"",name:"emptyLabel",required:!0,type:{name:"string"}},emptyAction:{defaultValue:null,description:"",name:"emptyAction",required:!1,type:{name:"(() => void)"}},emptyOptionsTitle:{defaultValue:null,description:"",name:"emptyOptionsTitle",required:!0,type:{name:"string"}},emptyOptionsMessage:{defaultValue:null,description:"",name:"emptyOptionsMessage",required:!0,type:{name:"string"}},noResultsText:{defaultValue:null,description:"",name:"noResultsText",required:!0,type:{name:"string"}},emptyActionLabel:{defaultValue:null,description:"",name:"emptyActionLabel",required:!0,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(options: SelectOption[]) => void"}},onItemPress:{defaultValue:null,description:"",name:"onItemPress",required:!1,type:{name:"((item: SelectOption) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Picker/PickerContent.tsx#PickerContent"]={docgenInfo:PickerContent.__docgenInfo,name:"PickerContent",path:"src/components/Picker/PickerContent.tsx#PickerContent"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Result/Result.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.Result=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")),_Image=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Image/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"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 Result=exports.Result=function Result(_ref2){var _ref2$buttonText=_ref2.buttonText,buttonText=void 0===_ref2$buttonText?"ACTION":_ref2$buttonText,_ref2$buttonMode=_ref2.buttonMode,buttonMode=void 0===_ref2$buttonMode?"contained":_ref2$buttonMode,_ref2$secondaryButton=_ref2.secondaryButtonMode,secondaryButtonMode=void 0===_ref2$secondaryButton?"outlined":_ref2$secondaryButton,secondaryButtonText=_ref2.secondaryButtonText,_ref2$status=_ref2.status,status=void 0===_ref2$status?"info":_ref2$status,img=_ref2.img,imgUrl=_ref2.imgUrl,imgStyle=_ref2.imgStyle,message=_ref2.message,extra=_ref2.extra,onButtonPress=_ref2.onButtonPress,onSecondaryButtonPress=_ref2.onSecondaryButtonPress,style=_ref2.style,title=_ref2.title,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{alignItems:"center",paddingVertical:theme.padding.l,gap:10},imgWrap:{margin:0},img:{width:60,height:60},titleContainer:{},titleText:{},messageContainer:{},messageText:{},buttonWrap:{flexDirection:"row",gap:10},extraContainer:{},button:{flex:1}})}({theme})}),[theme]),imgContent=null;if(img)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:img});else if(imgUrl)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:(0,_jsxRuntime.jsx)(_Image.default,{source:imgUrl,style:[styles.img,imgStyle]})});else{var icon="information",iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[status];switch(status){case"success":icon="check-circle";break;case"error":icon="close-circle";break;case"info":icon="information";break;case"warning":icon="alert"}imgContent=(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icon,size:60,color:iconColor})}return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,style],children:[imgContent,title?(0,_jsxRuntime.jsx)(_View.default,{style:styles.titleContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"headlineMedium",style:styles.titleText,children:title})}):null,message?(0,_jsxRuntime.jsx)(_View.default,{style:styles.messageContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"bodyMedium",style:styles.messageText,children:message})}):null,(0,_jsxRuntime.jsxs)(_View.default,{style:styles.buttonWrap,children:[onButtonPress?(0,_jsxRuntime.jsx)(_Button.Button,{style:styles.button,mode:buttonMode,onPress:onButtonPress,children:buttonText}):null,secondaryButtonText?(0,_jsxRuntime.jsx)(_Button.Button,{mode:secondaryButtonMode,onPress:onSecondaryButtonPress,children:secondaryButtonText}):null]}),extra&&(0,_jsxRuntime.jsx)(_View.default,{style:styles.extraContainer,children:extra})]})};try{Result.displayName="Result",Result.__docgenInfo={description:"",displayName:"Result",props:{status:{defaultValue:{value:"info"},description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},img:{defaultValue:null,description:"",name:"img",required:!1,type:{name:"ReactNode"}},imgUrl:{defaultValue:null,description:"",name:"imgUrl",required:!1,type:{name:"ImageSourcePropType"}},imgStyle:{defaultValue:null,description:"",name:"imgStyle",required:!1,type:{name:"StyleProp"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"ReactNode"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"ReactNode"}},buttonText:{defaultValue:{value:"ACTION"},description:"",name:"buttonText",required:!1,type:{name:"string"}},buttonMode:{defaultValue:{value:"contained"},description:"",name:"buttonMode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},secondaryButtonText:{defaultValue:null,description:"",name:"secondaryButtonText",required:!1,type:{name:"string"}},secondaryButtonMode:{defaultValue:{value:"outlined"},description:"",name:"secondaryButtonMode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},extra:{defaultValue:null,description:"",name:"extra",required:!1,type:{name:"ReactNode"}},onButtonPress:{defaultValue:null,description:"",name:"onButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onSecondaryButtonPress:{defaultValue:null,description:"",name:"onSecondaryButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Result/Result.tsx#Result"]={docgenInfo:Result.__docgenInfo,name:"Result",path:"src/components/Result/Result.tsx#Result"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/design-system-storybook/2870.24b21eb2.iframe.bundle.js b/design-system-storybook/2870.24b21eb2.iframe.bundle.js deleted file mode 100644 index 01af2693..00000000 --- a/design-system-storybook/2870.24b21eb2.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[2870,7424],{"./src/components/Picker/Picker.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.Picker=void 0;var _slicedToArray2=_interopRequireDefault(__webpack_require__("./node_modules/@babel/runtime/helpers/slicedToArray.js")),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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")),_Pressable=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Pressable/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")),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_Result=__webpack_require__("./src/components/Result/Result.tsx"),_ConfirmCancelFooter=__webpack_require__("./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx"),_LabelHandler=__webpack_require__("./src/components/bottom-modal/handlers/LabelHandler.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 Picker=exports.Picker=function Picker(_ref){var onFinish=_ref.onFinish,onItemPress=_ref.onItemPress,options=_ref.options,_ref$multi=_ref.multi,multi=void 0!==_ref$multi&&_ref$multi,_ref$closable=_ref.closable,closable=void 0!==_ref$closable&&_ref$closable,_ref$showFooter=_ref.showFooter,showFooter=void 0===_ref$showFooter||_ref$showFooter,_ref$showSearch=_ref.showSearch,showSearch=void 0!==_ref$showSearch&&_ref$showSearch,_ref$fullWidthOptions=_ref.fullWidthOptions,fullWidthOptions=void 0===_ref$fullWidthOptions||_ref$fullWidthOptions,_ref$emptyLabel=_ref.emptyLabel,emptyLabel=void 0===_ref$emptyLabel?"No selection":_ref$emptyLabel,label=_ref.label,emptyAction=_ref.emptyAction,_ref$emptyOptionsTitl=_ref.emptyOptionsTitle,emptyOptionsTitle=void 0===_ref$emptyOptionsTitl?"No Options":_ref$emptyOptionsTitl,_ref$emptyOptionsMess=_ref.emptyOptionsMessage,emptyOptionsMessage=void 0===_ref$emptyOptionsMess?"You don't have any options yet":_ref$emptyOptionsMess,_ref$noResultsText=_ref.noResultsText,noResultsText=void 0===_ref$noResultsText?"No options match your search":_ref$noResultsText,_ref$emptyActionLabel=_ref.emptyActionLabel,emptyActionLabel=void 0===_ref$emptyActionLabel?"Create New":_ref$emptyActionLabel,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{backgroundColor:theme.colors.surface,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:theme.spacing.padding},leftSide:{flexGrow:1,flexShrink:1},scrollview:{flexGrow:1,flexShrink:1},scrollContainer:{gap:theme.spacing.gap,padding:theme.spacing.padding},title:{},emptyText:{padding:theme.spacing.padding,color:theme.colors.scrim},modalHeader:{padding:theme.spacing.padding},modalContent:{flex:1,padding:theme.spacing.padding},scrollViewContent:{backgroundColor:theme.colors.surface,paddingHorizontal:theme.spacing.padding,paddingBottom:80},optionItem:{},searchInput:{borderWidth:1,borderColor:theme.colors.outline,borderRadius:5,padding:theme.spacing.padding,marginBottom:theme.spacing.margin},optionItemsContainer:{flexDirection:"row",flexWrap:"wrap",gap:theme.spacing.gap},emptyStateContainer:{flex:1,justifyContent:"center",alignItems:"center",padding:theme.spacing.padding},noResultsText:{textAlign:"center",marginTop:theme.spacing.margin,marginBottom:theme.spacing.margin}})}(theme)}),[theme]),_useState=(0,_react.useState)(options),_useState2=(0,_slicedToArray2.default)(_useState,2),activeOptions=_useState2[0],setActiveOptions=_useState2[1],_useState3=(0,_react.useState)(options),_useState4=(0,_slicedToArray2.default)(_useState3,2),tempOptions=_useState4[0],setTempOptions=_useState4[1],_useState5=(0,_react.useState)(""),_useState6=(0,_slicedToArray2.default)(_useState5,2),searchQuery=_useState6[0],setSearchQuery=_useState6[1],selectedOptions=activeOptions.filter((function(option){return option.selected})),bottomSheetModalRef=(0,_react.useRef)(null);(0,_react.useEffect)((function(){setActiveOptions(options),setTempOptions(options)}),[options]);var filteredOptions=(0,_react.useMemo)((function(){return tempOptions.filter((function(option){return option.label.toLowerCase().includes(searchQuery.toLowerCase())}))}),[tempOptions,searchQuery]),handlePick=(0,_react.useCallback)((function(){var _bottomSheetModalRef$;setTempOptions(activeOptions),setSearchQuery(""),null==(_bottomSheetModalRef$=bottomSheetModalRef.current)||_bottomSheetModalRef$.present()}),[activeOptions]),handleClose=(0,_react.useCallback)((function(){var _bottomSheetModalRef$2;null==(_bottomSheetModalRef$2=bottomSheetModalRef.current)||_bottomSheetModalRef$2.dismiss()}),[]),handleSelectOption=(0,_react.useCallback)((function(option){setTempOptions((function(prev){return prev.map((function(o){return o.value===option.value?Object.assign({},o,{selected:!multi||!o.selected}):multi?o:Object.assign({},o,{selected:!1})}))}))}),[multi]),handleConfirm=(0,_react.useCallback)((function(){setActiveOptions(tempOptions),null==onFinish||onFinish(tempOptions.filter((function(o){return o.selected}))),handleClose()}),[onFinish,tempOptions,handleClose]),handleCancel=(0,_react.useCallback)((function(){setTempOptions(activeOptions),handleClose()}),[activeOptions,handleClose]),renderBackdrop=(0,_react.useCallback)((function(props){return(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetBackdrop,Object.assign({},props,{pressBehavior:"close",disappearsOnIndex:-1,appearsOnIndex:0,opacity:.6}))}),[]),renderFooter=(0,_react.useCallback)((function(props){return(0,_jsxRuntime.jsx)(_ConfirmCancelFooter.ConfirmCancelFooter,Object.assign({},props,{onCancel:handleCancel,onFinish:handleConfirm}))}),[handleCancel,handleConfirm]),renderOptions=(0,_react.useCallback)((function(){return(0,_jsxRuntime.jsx)(_View.default,{style:styles.optionItemsContainer,children:filteredOptions.map((function(item){return(0,_jsxRuntime.jsx)(_View.default,{style:[styles.optionItem,fullWidthOptions&&{width:"100%"}],children:(0,_jsxRuntime.jsx)(_reactNativePaper.Chip,{mode:item.selected?"flat":"outlined",selected:item.selected,onPress:function onPress(){return handleSelectOption(item)},style:fullWidthOptions?{width:"100%"}:{},children:item.label})},item.value)}))})}),[filteredOptions,styles.optionItem,styles.emptyStateContainer,handleSelectOption,emptyAction,emptyActionLabel,fullWidthOptions]),renderHeader=(0,_react.useCallback)((function(){return(0,_jsxRuntime.jsx)(_View.default,{style:styles.modalHeader,children:showSearch&&(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetTextInput,{style:styles.searchInput,placeholder:"Filter...",value:searchQuery,onChangeText:setSearchQuery})})}),[styles.modalHeader,styles.searchInput,showSearch,searchQuery]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsxs)(_View.default,{style:styles.leftSide,children:[(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handlePick,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:styles.title,variant:"headlineMedium",children:label})}),0===selectedOptions.length?(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:styles.emptyText,children:emptyLabel}):(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handlePick,children:(0,_jsxRuntime.jsx)(_ScrollView.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:styles.scrollview,contentContainerStyle:styles.scrollContainer,children:selectedOptions.map((function(option,index){return(0,_jsxRuntime.jsx)(_reactNativePaper.Chip,{style:{backgroundColor:option.color},compact:!0,onPress:function onPress(event){event.stopPropagation(),onItemPress?null==onItemPress||onItemPress(option):handlePick()},onClose:closable?function(){setActiveOptions((function(prev){return prev.map((function(o){return o.value===option.value?Object.assign({},o,{selected:!1}):o}))}))}:void 0,mode:"flat",children:option.label},`option-${index}`)}))})})]}),activeOptions.length>0&&(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handlePick,testID:"picker-right-handle",children:(0,_jsxRuntime.jsx)(_vectorIcons.AntDesign,{name:"right",size:24,color:theme.colors.text})}),(0,_jsxRuntime.jsx)(_bottomSheet.BottomSheetModal,{ref:bottomSheetModalRef,enableDynamicSizing:!0,enableDismissOnClose:!0,backdropComponent:renderBackdrop,handleComponent:function handleComponent(props){return(0,_jsxRuntime.jsx)(_LabelHandler.LabelHandler,Object.assign({},props))},footerComponent:showFooter&&tempOptions.length>0?renderFooter:void 0,children:(0,_jsxRuntime.jsxs)(_bottomSheet.BottomSheetScrollView,{contentContainerStyle:styles.scrollViewContent,children:[renderHeader(),0===tempOptions.length?(0,_jsxRuntime.jsx)(_Result.Result,{status:"warning",title:emptyOptionsTitle,message:emptyOptionsMessage,buttonText:emptyActionLabel,onButtonPress:function onButtonPress(){null==emptyAction||emptyAction(),handleClose()}}):0===filteredOptions.length?(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:styles.noResultsText,children:noResultsText}):renderOptions()]})})]})};try{Picker.displayName="Picker",Picker.__docgenInfo={description:"",displayName:"Picker",props:{options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},multi:{defaultValue:{value:"false"},description:"",name:"multi",required:!1,type:{name:"boolean"}},closable:{defaultValue:{value:"false"},description:"",name:"closable",required:!1,type:{name:"boolean"}},showFooter:{defaultValue:{value:"true"},description:"",name:"showFooter",required:!1,type:{name:"boolean"}},emptyLabel:{defaultValue:{value:"No selection"},description:"",name:"emptyLabel",required:!1,type:{name:"string"}},enableDynamicSizing:{defaultValue:null,description:"",name:"enableDynamicSizing",required:!1,type:{name:"boolean"}},showSearch:{defaultValue:{value:"false"},description:"",name:"showSearch",required:!1,type:{name:"boolean"}},fullWidthOptions:{defaultValue:{value:"true"},description:"",name:"fullWidthOptions",required:!1,type:{name:"boolean"}},onFinish:{defaultValue:null,description:"",name:"onFinish",required:!1,type:{name:"((selection: SelectOption[]) => void)"}},onItemPress:{defaultValue:null,description:"",name:"onItemPress",required:!1,type:{name:"((item: SelectOption) => void)"}},emptyAction:{defaultValue:null,description:"",name:"emptyAction",required:!1,type:{name:"(() => void)"}},emptyOptionsTitle:{defaultValue:{value:"No Options"},description:"",name:"emptyOptionsTitle",required:!1,type:{name:"string"}},emptyOptionsMessage:{defaultValue:{value:"You don't have any options yet"},description:"",name:"emptyOptionsMessage",required:!1,type:{name:"string"}},noResultsText:{defaultValue:{value:"No options match your search"},description:"",name:"noResultsText",required:!1,type:{name:"string"}},emptyActionLabel:{defaultValue:{value:"Create New"},description:"",name:"emptyActionLabel",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Picker/Picker.tsx#Picker"]={docgenInfo:Picker.__docgenInfo,name:"Picker",path:"src/components/Picker/Picker.tsx#Picker"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Result/Result.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.Result=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")),_Image=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Image/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"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 Result=exports.Result=function Result(_ref2){var _ref2$buttonText=_ref2.buttonText,buttonText=void 0===_ref2$buttonText?"ACTION":_ref2$buttonText,_ref2$buttonMode=_ref2.buttonMode,buttonMode=void 0===_ref2$buttonMode?"contained":_ref2$buttonMode,_ref2$secondaryButton=_ref2.secondaryButtonMode,secondaryButtonMode=void 0===_ref2$secondaryButton?"outlined":_ref2$secondaryButton,secondaryButtonText=_ref2.secondaryButtonText,_ref2$status=_ref2.status,status=void 0===_ref2$status?"info":_ref2$status,img=_ref2.img,imgUrl=_ref2.imgUrl,imgStyle=_ref2.imgStyle,message=_ref2.message,extra=_ref2.extra,onButtonPress=_ref2.onButtonPress,onSecondaryButtonPress=_ref2.onSecondaryButtonPress,style=_ref2.style,title=_ref2.title,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{alignItems:"center",paddingVertical:theme.padding.l,gap:10},imgWrap:{margin:0},img:{width:60,height:60},titleContainer:{},titleText:{},messageContainer:{},messageText:{},buttonWrap:{flexDirection:"row",gap:10},extraContainer:{},button:{flex:1}})}({theme})}),[theme]),imgContent=null;if(img)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:img});else if(imgUrl)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:(0,_jsxRuntime.jsx)(_Image.default,{source:imgUrl,style:[styles.img,imgStyle]})});else{var icon="information",iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[status];switch(status){case"success":icon="check-circle";break;case"error":icon="close-circle";break;case"info":icon="information";break;case"warning":icon="alert"}imgContent=(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icon,size:60,color:iconColor})}return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,style],children:[imgContent,title?(0,_jsxRuntime.jsx)(_View.default,{style:styles.titleContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"headlineMedium",style:styles.titleText,children:title})}):null,message?(0,_jsxRuntime.jsx)(_View.default,{style:styles.messageContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"bodyMedium",style:styles.messageText,children:message})}):null,(0,_jsxRuntime.jsxs)(_View.default,{style:styles.buttonWrap,children:[onButtonPress?(0,_jsxRuntime.jsx)(_Button.Button,{style:styles.button,mode:buttonMode,onPress:onButtonPress,children:buttonText}):null,secondaryButtonText?(0,_jsxRuntime.jsx)(_Button.Button,{mode:secondaryButtonMode,onPress:onSecondaryButtonPress,children:secondaryButtonText}):null]}),extra&&(0,_jsxRuntime.jsx)(_View.default,{style:styles.extraContainer,children:extra})]})};try{Result.displayName="Result",Result.__docgenInfo={description:"",displayName:"Result",props:{status:{defaultValue:{value:"info"},description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},img:{defaultValue:null,description:"",name:"img",required:!1,type:{name:"ReactNode"}},imgUrl:{defaultValue:null,description:"",name:"imgUrl",required:!1,type:{name:"ImageSourcePropType"}},imgStyle:{defaultValue:null,description:"",name:"imgStyle",required:!1,type:{name:"StyleProp"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"ReactNode"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"ReactNode"}},buttonText:{defaultValue:{value:"ACTION"},description:"",name:"buttonText",required:!1,type:{name:"string"}},buttonMode:{defaultValue:{value:"contained"},description:"",name:"buttonMode",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"outlined"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},secondaryButtonText:{defaultValue:null,description:"",name:"secondaryButtonText",required:!1,type:{name:"string"}},secondaryButtonMode:{defaultValue:{value:"outlined"},description:"",name:"secondaryButtonMode",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"outlined"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},extra:{defaultValue:null,description:"",name:"extra",required:!1,type:{name:"ReactNode"}},onButtonPress:{defaultValue:null,description:"",name:"onButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onSecondaryButtonPress:{defaultValue:null,description:"",name:"onSecondaryButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Result/Result.tsx#Result"]={docgenInfo:Result.__docgenInfo,name:"Result",path:"src/components/Result/Result.tsx#Result"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/design-system-storybook/2870.3aee43c4.iframe.bundle.js b/design-system-storybook/2870.3aee43c4.iframe.bundle.js new file mode 100644 index 00000000..bf317424 --- /dev/null +++ b/design-system-storybook/2870.3aee43c4.iframe.bundle.js @@ -0,0 +1 @@ +(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[2870,1607,7424],{"./src/components/Picker/Picker.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.Picker=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")),_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")),_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"),_useModal2=__webpack_require__("./src/hooks/useModal/useModal.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_logger=__webpack_require__("./src/utils/logger.ts"),_ConfirmCancelFooter=__webpack_require__("./src/components/bottom-modal/footers/ConfirmCancelFooter.tsx"),_PickerContent=__webpack_require__("./src/components/Picker/PickerContent.tsx"),_reactNativeGestureHandler=__webpack_require__("./node_modules/react-native-gesture-handler/lib/module/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 logger=_logger.baseLogger.extend("Picker"),Picker=exports.Picker=function Picker(_ref){var initialOptions=_ref.options,label=_ref.label,_ref$multi=_ref.multi,multi=void 0!==_ref$multi&&_ref$multi,_ref$showSearch=_ref.showSearch,showSearch=void 0!==_ref$showSearch&&_ref$showSearch,_ref$fullWidthOptions=_ref.fullWidthOptions,fullWidthOptions=void 0!==_ref$fullWidthOptions&&_ref$fullWidthOptions,_ref$emptyLabel=_ref.emptyLabel,emptyLabel=void 0===_ref$emptyLabel?"No options available":_ref$emptyLabel,_ref$emptyOptionsTitl=_ref.emptyOptionsTitle,emptyOptionsTitle=void 0===_ref$emptyOptionsTitl?"No options available":_ref$emptyOptionsTitl,_ref$emptyOptionsMess=_ref.emptyOptionsMessage,emptyOptionsMessage=void 0===_ref$emptyOptionsMess?"No options available":_ref$emptyOptionsMess,_ref$noResultsText=_ref.noResultsText,noResultsText=void 0===_ref$noResultsText?"No options available":_ref$noResultsText,_ref$emptyActionLabel=_ref.emptyActionLabel,emptyActionLabel=void 0===_ref$emptyActionLabel?"Create New":_ref$emptyActionLabel,onFinish=_ref.onFinish,emptyAction=_ref.emptyAction,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{backgroundColor:theme.colors.surface,padding:theme.spacing.padding},header:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},title:{flexGrow:1},optionsContainer:{flexDirection:"row",flexWrap:"wrap",gap:theme.spacing.gap,minHeight:40},scrollViewContent:{flexGrow:1,paddingVertical:8}})}(theme)}),[theme]),_useState=(0,_react.useState)(initialOptions),_useState2=(0,_slicedToArray2.default)(_useState,2),activeOptions=_useState2[0],setActiveOptions=_useState2[1],_useState3=(0,_react.useState)(initialOptions),_useState4=(0,_slicedToArray2.default)(_useState3,2),tempOptions=_useState4[0],setTempOptions=_useState4[1],selectedOptions=activeOptions.filter((function(option){return option.selected})),openDrawer=(0,_useModal2.useModal)().openDrawer;(0,_react.useEffect)((function(){setActiveOptions(initialOptions),setTempOptions(initialOptions)}),[initialOptions]);var handlePick=(0,_react.useCallback)((0,_asyncToGenerator2.default)((function*(){try{var result=yield openDrawer({title:label,initialData:tempOptions,render:function render(_ref3){var onChange=_ref3.onChange,data=_ref3.data;return(0,_jsxRuntime.jsx)(_PickerContent.PickerContent,{options:data||[],multi,showSearch,emptyLabel,emptyOptionsTitle,emptyOptionsMessage,noResultsText,emptyActionLabel,fullWidthOptions,onChange,emptyAction})},renderFooter:function renderFooter(_ref4){var data=_ref4.data,resolve=_ref4.resolve;return 0!==initialOptions.length||data?(0,_jsxRuntime.jsx)(_ConfirmCancelFooter.ConfirmCancelFooter,{onCancel:function onCancel(){logger.debug("onCancel"),resolve(void 0)},onFinish:function onFinish(){logger.debug("onConfirm > selectedData",data),setActiveOptions(data||[]),logger.debug("resolve now",data),resolve(data),logger.debug("resolve done")}}):null}});logger.debug("result",result),null==onFinish||onFinish(result||initialOptions)}catch(error){logger.error("Error opening picker",error)}})),[openDrawer,label,tempOptions,multi,showSearch,fullWidthOptions,emptyAction,initialOptions.length,selectedOptions,onFinish]);return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsxs)(_Pressable.default,{style:styles.header,onPress:handlePick,children:[(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{style:styles.title,variant:"headlineMedium",children:label}),(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handlePick,testID:"picker-right-handle",children:(0,_jsxRuntime.jsx)(_vectorIcons.AntDesign,{name:"right",size:24,color:theme.colors.text})})]}),(0,_jsxRuntime.jsx)(_reactNativeGestureHandler.ScrollView,{horizontal:!0,contentContainerStyle:[styles.optionsContainer,styles.scrollViewContent],showsHorizontalScrollIndicator:!1,children:0===selectedOptions.length?(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{children:"No options selected"}):selectedOptions.map((function(option){return(0,_jsxRuntime.jsx)(_reactNativePaper.Chip,{mode:"flat",style:{backgroundColor:option.color},children:option.label},option.value)}))})]})};try{Picker.displayName="Picker",Picker.__docgenInfo={description:"",displayName:"Picker",props:{options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},multi:{defaultValue:{value:"false"},description:"",name:"multi",required:!1,type:{name:"boolean"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},showFooter:{defaultValue:null,description:"",name:"showFooter",required:!1,type:{name:"boolean"}},emptyLabel:{defaultValue:{value:"No options available"},description:"",name:"emptyLabel",required:!1,type:{name:"string"}},enableDynamicSizing:{defaultValue:null,description:"",name:"enableDynamicSizing",required:!1,type:{name:"boolean"}},showSearch:{defaultValue:{value:"false"},description:"",name:"showSearch",required:!1,type:{name:"boolean"}},fullWidthOptions:{defaultValue:{value:"false"},description:"",name:"fullWidthOptions",required:!1,type:{name:"boolean"}},onFinish:{defaultValue:null,description:"",name:"onFinish",required:!1,type:{name:"((selection: SelectOption[]) => void)"}},onItemPress:{defaultValue:null,description:"",name:"onItemPress",required:!1,type:{name:"((item: SelectOption) => void)"}},emptyAction:{defaultValue:null,description:"",name:"emptyAction",required:!1,type:{name:"(() => void)"}},emptyOptionsTitle:{defaultValue:{value:"No options available"},description:"",name:"emptyOptionsTitle",required:!1,type:{name:"string"}},emptyOptionsMessage:{defaultValue:{value:"No options available"},description:"",name:"emptyOptionsMessage",required:!1,type:{name:"string"}},noResultsText:{defaultValue:{value:"No options available"},description:"",name:"noResultsText",required:!1,type:{name:"string"}},emptyActionLabel:{defaultValue:{value:"Create New"},description:"",name:"emptyActionLabel",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Picker/Picker.tsx#Picker"]={docgenInfo:Picker.__docgenInfo,name:"Picker",path:"src/components/Picker/Picker.tsx#Picker"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Picker/PickerContent.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.PickerContent=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")),_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"),_Result=__webpack_require__("./src/components/Result/Result.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 PickerContent=exports.PickerContent=function PickerContent(_ref){var options=_ref.options,multi=_ref.multi,showSearch=_ref.showSearch,fullWidthOptions=_ref.fullWidthOptions,emptyAction=_ref.emptyAction,emptyOptionsTitle=_ref.emptyOptionsTitle,emptyOptionsMessage=_ref.emptyOptionsMessage,emptyActionLabel=_ref.emptyActionLabel,noResultsText=_ref.noResultsText,onChange=_ref.onChange,onItemPress=_ref.onItemPress,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({container:{padding:theme.spacing.padding},searchBar:{marginBottom:theme.spacing.margin},optionsContainer:{flexDirection:"row",flexWrap:"wrap",gap:theme.spacing.gap,minHeight:40},optionItem:{marginBottom:theme.spacing.margin}})}(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),tempOptions=_useState4[0],setTempOptions=_useState4[1],filteredOptions=(0,_react.useMemo)((function(){return tempOptions.filter((function(option){return option.label.toLowerCase().includes(searchQuery.toLowerCase())}))}),[tempOptions,searchQuery]),handleSelectOption=(0,_react.useCallback)((function(selectedOption){var updatedOptions=tempOptions.map((function(option){return option.value===selectedOption.value?Object.assign({},option,{selected:!multi||!option.selected}):multi?option:Object.assign({},option,{selected:!1})}));console.log("updatedOptions",updatedOptions),setTempOptions(updatedOptions),onChange(updatedOptions),null==onItemPress||onItemPress(selectedOption)}),[tempOptions,multi,onChange,onItemPress]),renderOptions=(0,_react.useCallback)((function(){return(0,_jsxRuntime.jsx)(_View.default,{style:styles.optionsContainer,children:filteredOptions.map((function(option){return(0,_jsxRuntime.jsx)(_View.default,{style:[styles.optionItem,fullWidthOptions&&{width:"100%"}],children:(0,_jsxRuntime.jsx)(_reactNativePaper.Chip,{mode:option.selected?"flat":"outlined",selected:option.selected,onPress:function onPress(){return handleSelectOption(option)},style:fullWidthOptions?{width:"100%"}:{},children:option.label})},option.value)}))})}),[filteredOptions,styles,fullWidthOptions,handleSelectOption]);return 0===tempOptions.length?(0,_jsxRuntime.jsx)(_View.default,{style:styles.container,children:(0,_jsxRuntime.jsx)(_Result.Result,{status:"info",title:emptyOptionsTitle,message:emptyOptionsMessage,buttonText:emptyActionLabel,onButtonPress:emptyAction})}):(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[showSearch&&(0,_jsxRuntime.jsx)(_reactNativePaper.Searchbar,{placeholder:"Search options",onChangeText:setSearchQuery,value:searchQuery,style:styles.searchBar}),0===filteredOptions.length?(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{children:noResultsText}):renderOptions()]})};try{PickerContent.displayName="PickerContent",PickerContent.__docgenInfo={description:"",displayName:"PickerContent",props:{options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"SelectOption[]"}},multi:{defaultValue:null,description:"",name:"multi",required:!0,type:{name:"boolean"}},showSearch:{defaultValue:null,description:"",name:"showSearch",required:!0,type:{name:"boolean"}},fullWidthOptions:{defaultValue:null,description:"",name:"fullWidthOptions",required:!0,type:{name:"boolean"}},emptyLabel:{defaultValue:null,description:"",name:"emptyLabel",required:!0,type:{name:"string"}},emptyAction:{defaultValue:null,description:"",name:"emptyAction",required:!1,type:{name:"(() => void)"}},emptyOptionsTitle:{defaultValue:null,description:"",name:"emptyOptionsTitle",required:!0,type:{name:"string"}},emptyOptionsMessage:{defaultValue:null,description:"",name:"emptyOptionsMessage",required:!0,type:{name:"string"}},noResultsText:{defaultValue:null,description:"",name:"noResultsText",required:!0,type:{name:"string"}},emptyActionLabel:{defaultValue:null,description:"",name:"emptyActionLabel",required:!0,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!0,type:{name:"(options: SelectOption[]) => void"}},onItemPress:{defaultValue:null,description:"",name:"onItemPress",required:!1,type:{name:"((item: SelectOption) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Picker/PickerContent.tsx#PickerContent"]={docgenInfo:PickerContent.__docgenInfo,name:"PickerContent",path:"src/components/Picker/PickerContent.tsx#PickerContent"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Result/Result.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.Result=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")),_Image=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Image/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"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 Result=exports.Result=function Result(_ref2){var _ref2$buttonText=_ref2.buttonText,buttonText=void 0===_ref2$buttonText?"ACTION":_ref2$buttonText,_ref2$buttonMode=_ref2.buttonMode,buttonMode=void 0===_ref2$buttonMode?"contained":_ref2$buttonMode,_ref2$secondaryButton=_ref2.secondaryButtonMode,secondaryButtonMode=void 0===_ref2$secondaryButton?"outlined":_ref2$secondaryButton,secondaryButtonText=_ref2.secondaryButtonText,_ref2$status=_ref2.status,status=void 0===_ref2$status?"info":_ref2$status,img=_ref2.img,imgUrl=_ref2.imgUrl,imgStyle=_ref2.imgStyle,message=_ref2.message,extra=_ref2.extra,onButtonPress=_ref2.onButtonPress,onSecondaryButtonPress=_ref2.onSecondaryButtonPress,style=_ref2.style,title=_ref2.title,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{alignItems:"center",paddingVertical:theme.padding.l,gap:10},imgWrap:{margin:0},img:{width:60,height:60},titleContainer:{},titleText:{},messageContainer:{},messageText:{},buttonWrap:{flexDirection:"row",gap:10},extraContainer:{},button:{flex:1}})}({theme})}),[theme]),imgContent=null;if(img)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:img});else if(imgUrl)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:(0,_jsxRuntime.jsx)(_Image.default,{source:imgUrl,style:[styles.img,imgStyle]})});else{var icon="information",iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[status];switch(status){case"success":icon="check-circle";break;case"error":icon="close-circle";break;case"info":icon="information";break;case"warning":icon="alert"}imgContent=(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icon,size:60,color:iconColor})}return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,style],children:[imgContent,title?(0,_jsxRuntime.jsx)(_View.default,{style:styles.titleContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"headlineMedium",style:styles.titleText,children:title})}):null,message?(0,_jsxRuntime.jsx)(_View.default,{style:styles.messageContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"bodyMedium",style:styles.messageText,children:message})}):null,(0,_jsxRuntime.jsxs)(_View.default,{style:styles.buttonWrap,children:[onButtonPress?(0,_jsxRuntime.jsx)(_Button.Button,{style:styles.button,mode:buttonMode,onPress:onButtonPress,children:buttonText}):null,secondaryButtonText?(0,_jsxRuntime.jsx)(_Button.Button,{mode:secondaryButtonMode,onPress:onSecondaryButtonPress,children:secondaryButtonText}):null]}),extra&&(0,_jsxRuntime.jsx)(_View.default,{style:styles.extraContainer,children:extra})]})};try{Result.displayName="Result",Result.__docgenInfo={description:"",displayName:"Result",props:{status:{defaultValue:{value:"info"},description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},img:{defaultValue:null,description:"",name:"img",required:!1,type:{name:"ReactNode"}},imgUrl:{defaultValue:null,description:"",name:"imgUrl",required:!1,type:{name:"ImageSourcePropType"}},imgStyle:{defaultValue:null,description:"",name:"imgStyle",required:!1,type:{name:"StyleProp"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"ReactNode"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"ReactNode"}},buttonText:{defaultValue:{value:"ACTION"},description:"",name:"buttonText",required:!1,type:{name:"string"}},buttonMode:{defaultValue:{value:"contained"},description:"",name:"buttonMode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},secondaryButtonText:{defaultValue:null,description:"",name:"secondaryButtonText",required:!1,type:{name:"string"}},secondaryButtonMode:{defaultValue:{value:"outlined"},description:"",name:"secondaryButtonMode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},extra:{defaultValue:null,description:"",name:"extra",required:!1,type:{name:"ReactNode"}},onButtonPress:{defaultValue:null,description:"",name:"onButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onSecondaryButtonPress:{defaultValue:null,description:"",name:"onSecondaryButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Result/Result.tsx#Result"]={docgenInfo:Result.__docgenInfo,name:"Result",path:"src/components/Result/Result.tsx#Result"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/design-system-storybook/4267.ebafadba.iframe.bundle.js b/design-system-storybook/4267.76d16ea7.iframe.bundle.js similarity index 96% rename from design-system-storybook/4267.ebafadba.iframe.bundle.js rename to design-system-storybook/4267.76d16ea7.iframe.bundle.js index 5408f13a..9723799f 100644 --- a/design-system-storybook/4267.ebafadba.iframe.bundle.js +++ b/design-system-storybook/4267.76d16ea7.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[4267,7424],{"./src/components/Result/Result.stories.tsx":(module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.WithExtra=exports.Warning=exports.Success=exports.Error=exports.CustomImage=exports.BasicUsage=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _Result=__webpack_require__("./src/components/Result/Result.tsx"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),ResultMeta={component:_Result.Result,tags:["autodocs"],argTypes:{},args:{title:"Your operation has been executed successfully!"}};exports.default=ResultMeta,exports.BasicUsage={args:{},parameters:{}},exports.Error={args:{status:"error",title:"Your operation has failed!",message:"Please try again later.",onButtonPress:function onButtonPress(){console.log("Button Pressed")}},parameters:{}},exports.Warning={args:{status:"warning",title:"Warning!",message:"Please be careful."},parameters:{}},exports.Success={args:{status:"success",title:"Congratulations!",message:"You have successfully completed the operation."},parameters:{}},exports.CustomImage={args:{status:"info",title:"Your operation has been executed successfully!",message:"",buttonText:"Button",imgUrl:__webpack_require__("./assets/bookmarks_empty.png"),imgStyle:{width:150,height:150}},parameters:{}},exports.WithExtra={args:{status:"info",title:"Your operation has been executed successfully!",message:"",buttonText:"Button",secondaryButtonText:"Secondary Button",secondaryButtonMode:"outlined",extra:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{children:"This is anohter extra text"})},parameters:{}};module.exports.__namedExportsOrder=["WithExtra","Warning","Success","Error","CustomImage","BasicUsage"]},"./src/components/Result/Result.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.Result=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")),_Image=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Image/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"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 Result=exports.Result=function Result(_ref2){var _ref2$buttonText=_ref2.buttonText,buttonText=void 0===_ref2$buttonText?"ACTION":_ref2$buttonText,_ref2$buttonMode=_ref2.buttonMode,buttonMode=void 0===_ref2$buttonMode?"contained":_ref2$buttonMode,_ref2$secondaryButton=_ref2.secondaryButtonMode,secondaryButtonMode=void 0===_ref2$secondaryButton?"outlined":_ref2$secondaryButton,secondaryButtonText=_ref2.secondaryButtonText,_ref2$status=_ref2.status,status=void 0===_ref2$status?"info":_ref2$status,img=_ref2.img,imgUrl=_ref2.imgUrl,imgStyle=_ref2.imgStyle,message=_ref2.message,extra=_ref2.extra,onButtonPress=_ref2.onButtonPress,onSecondaryButtonPress=_ref2.onSecondaryButtonPress,style=_ref2.style,title=_ref2.title,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{alignItems:"center",paddingVertical:theme.padding.l,gap:10},imgWrap:{margin:0},img:{width:60,height:60},titleContainer:{},titleText:{},messageContainer:{},messageText:{},buttonWrap:{flexDirection:"row",gap:10},extraContainer:{},button:{flex:1}})}({theme})}),[theme]),imgContent=null;if(img)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:img});else if(imgUrl)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:(0,_jsxRuntime.jsx)(_Image.default,{source:imgUrl,style:[styles.img,imgStyle]})});else{var icon="information",iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[status];switch(status){case"success":icon="check-circle";break;case"error":icon="close-circle";break;case"info":icon="information";break;case"warning":icon="alert"}imgContent=(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icon,size:60,color:iconColor})}return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,style],children:[imgContent,title?(0,_jsxRuntime.jsx)(_View.default,{style:styles.titleContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"headlineMedium",style:styles.titleText,children:title})}):null,message?(0,_jsxRuntime.jsx)(_View.default,{style:styles.messageContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"bodyMedium",style:styles.messageText,children:message})}):null,(0,_jsxRuntime.jsxs)(_View.default,{style:styles.buttonWrap,children:[onButtonPress?(0,_jsxRuntime.jsx)(_Button.Button,{style:styles.button,mode:buttonMode,onPress:onButtonPress,children:buttonText}):null,secondaryButtonText?(0,_jsxRuntime.jsx)(_Button.Button,{mode:secondaryButtonMode,onPress:onSecondaryButtonPress,children:secondaryButtonText}):null]}),extra&&(0,_jsxRuntime.jsx)(_View.default,{style:styles.extraContainer,children:extra})]})};try{Result.displayName="Result",Result.__docgenInfo={description:"",displayName:"Result",props:{status:{defaultValue:{value:"info"},description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},img:{defaultValue:null,description:"",name:"img",required:!1,type:{name:"ReactNode"}},imgUrl:{defaultValue:null,description:"",name:"imgUrl",required:!1,type:{name:"ImageSourcePropType"}},imgStyle:{defaultValue:null,description:"",name:"imgStyle",required:!1,type:{name:"StyleProp"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"ReactNode"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"ReactNode"}},buttonText:{defaultValue:{value:"ACTION"},description:"",name:"buttonText",required:!1,type:{name:"string"}},buttonMode:{defaultValue:{value:"contained"},description:"",name:"buttonMode",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"outlined"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},secondaryButtonText:{defaultValue:null,description:"",name:"secondaryButtonText",required:!1,type:{name:"string"}},secondaryButtonMode:{defaultValue:{value:"outlined"},description:"",name:"secondaryButtonMode",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"outlined"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},extra:{defaultValue:null,description:"",name:"extra",required:!1,type:{name:"ReactNode"}},onButtonPress:{defaultValue:null,description:"",name:"onButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onSecondaryButtonPress:{defaultValue:null,description:"",name:"onSecondaryButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Result/Result.tsx#Result"]={docgenInfo:Result.__docgenInfo,name:"Result",path:"src/components/Result/Result.tsx#Result"})}catch(__react_docgen_typescript_loader_error){}},"./assets/bookmarks_empty.png":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/bookmarks_empty.57214b73.png"}}]); \ No newline at end of file +(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[4267,7424],{"./src/components/Result/Result.stories.tsx":(module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.WithExtra=exports.Warning=exports.Success=exports.Error=exports.CustomImage=exports.BasicUsage=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _Result=__webpack_require__("./src/components/Result/Result.tsx"),_reactNativePaper=__webpack_require__("./node_modules/react-native-paper/lib/module/index.js"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),ResultMeta={component:_Result.Result,tags:["autodocs"],argTypes:{},args:{title:"Your operation has been executed successfully!"}};exports.default=ResultMeta,exports.BasicUsage={args:{},parameters:{}},exports.Error={args:{status:"error",title:"Your operation has failed!",message:"Please try again later.",onButtonPress:function onButtonPress(){console.log("Button Pressed")}},parameters:{}},exports.Warning={args:{status:"warning",title:"Warning!",message:"Please be careful."},parameters:{}},exports.Success={args:{status:"success",title:"Congratulations!",message:"You have successfully completed the operation."},parameters:{}},exports.CustomImage={args:{status:"info",title:"Your operation has been executed successfully!",message:"",buttonText:"Button",imgUrl:__webpack_require__("./assets/bookmarks_empty.png"),imgStyle:{width:150,height:150}},parameters:{}},exports.WithExtra={args:{status:"info",title:"Your operation has been executed successfully!",message:"",buttonText:"Button",secondaryButtonText:"Secondary Button",secondaryButtonMode:"outlined",extra:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{children:"This is anohter extra text"})},parameters:{}};module.exports.__namedExportsOrder=["WithExtra","Warning","Success","Error","CustomImage","BasicUsage"]},"./src/components/Result/Result.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.Result=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")),_Image=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Image/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"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 Result=exports.Result=function Result(_ref2){var _ref2$buttonText=_ref2.buttonText,buttonText=void 0===_ref2$buttonText?"ACTION":_ref2$buttonText,_ref2$buttonMode=_ref2.buttonMode,buttonMode=void 0===_ref2$buttonMode?"contained":_ref2$buttonMode,_ref2$secondaryButton=_ref2.secondaryButtonMode,secondaryButtonMode=void 0===_ref2$secondaryButton?"outlined":_ref2$secondaryButton,secondaryButtonText=_ref2.secondaryButtonText,_ref2$status=_ref2.status,status=void 0===_ref2$status?"info":_ref2$status,img=_ref2.img,imgUrl=_ref2.imgUrl,imgStyle=_ref2.imgStyle,message=_ref2.message,extra=_ref2.extra,onButtonPress=_ref2.onButtonPress,onSecondaryButtonPress=_ref2.onSecondaryButtonPress,style=_ref2.style,title=_ref2.title,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{alignItems:"center",paddingVertical:theme.padding.l,gap:10},imgWrap:{margin:0},img:{width:60,height:60},titleContainer:{},titleText:{},messageContainer:{},messageText:{},buttonWrap:{flexDirection:"row",gap:10},extraContainer:{},button:{flex:1}})}({theme})}),[theme]),imgContent=null;if(img)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:img});else if(imgUrl)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:(0,_jsxRuntime.jsx)(_Image.default,{source:imgUrl,style:[styles.img,imgStyle]})});else{var icon="information",iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[status];switch(status){case"success":icon="check-circle";break;case"error":icon="close-circle";break;case"info":icon="information";break;case"warning":icon="alert"}imgContent=(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icon,size:60,color:iconColor})}return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,style],children:[imgContent,title?(0,_jsxRuntime.jsx)(_View.default,{style:styles.titleContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"headlineMedium",style:styles.titleText,children:title})}):null,message?(0,_jsxRuntime.jsx)(_View.default,{style:styles.messageContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"bodyMedium",style:styles.messageText,children:message})}):null,(0,_jsxRuntime.jsxs)(_View.default,{style:styles.buttonWrap,children:[onButtonPress?(0,_jsxRuntime.jsx)(_Button.Button,{style:styles.button,mode:buttonMode,onPress:onButtonPress,children:buttonText}):null,secondaryButtonText?(0,_jsxRuntime.jsx)(_Button.Button,{mode:secondaryButtonMode,onPress:onSecondaryButtonPress,children:secondaryButtonText}):null]}),extra&&(0,_jsxRuntime.jsx)(_View.default,{style:styles.extraContainer,children:extra})]})};try{Result.displayName="Result",Result.__docgenInfo={description:"",displayName:"Result",props:{status:{defaultValue:{value:"info"},description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},img:{defaultValue:null,description:"",name:"img",required:!1,type:{name:"ReactNode"}},imgUrl:{defaultValue:null,description:"",name:"imgUrl",required:!1,type:{name:"ImageSourcePropType"}},imgStyle:{defaultValue:null,description:"",name:"imgStyle",required:!1,type:{name:"StyleProp"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"ReactNode"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"ReactNode"}},buttonText:{defaultValue:{value:"ACTION"},description:"",name:"buttonText",required:!1,type:{name:"string"}},buttonMode:{defaultValue:{value:"contained"},description:"",name:"buttonMode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},secondaryButtonText:{defaultValue:null,description:"",name:"secondaryButtonText",required:!1,type:{name:"string"}},secondaryButtonMode:{defaultValue:{value:"outlined"},description:"",name:"secondaryButtonMode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},extra:{defaultValue:null,description:"",name:"extra",required:!1,type:{name:"ReactNode"}},onButtonPress:{defaultValue:null,description:"",name:"onButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onSecondaryButtonPress:{defaultValue:null,description:"",name:"onSecondaryButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Result/Result.tsx#Result"]={docgenInfo:Result.__docgenInfo,name:"Result",path:"src/components/Result/Result.tsx#Result"})}catch(__react_docgen_typescript_loader_error){}},"./assets/bookmarks_empty.png":(module,__unused_webpack_exports,__webpack_require__)=>{"use strict";module.exports=__webpack_require__.p+"static/media/bookmarks_empty.57214b73.png"}}]); \ No newline at end of file diff --git a/design-system-storybook/5543.2ea40b81.iframe.bundle.js b/design-system-storybook/5543.0c132676.iframe.bundle.js similarity index 95% rename from design-system-storybook/5543.2ea40b81.iframe.bundle.js rename to design-system-storybook/5543.0c132676.iframe.bundle.js index 3ac9a788..93cc42b9 100644 --- a/design-system-storybook/5543.2ea40b81.iframe.bundle.js +++ b/design-system-storybook/5543.0c132676.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[5543],{"./src/components/Toast/Toast.stories.tsx":(module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Warning=exports.SuccessWithAction=exports.Success=exports.Loading=exports.Info=exports.Error=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _Toast=__webpack_require__("./src/components/Toast/Toast.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),ToastMeta={component:_Toast.Toast,tags:["autodocs"],argTypes:{onDismiss:{action:"dismissed"},action:{action:"clicked"}},args:{message:"Information message",subMessage:"More details about the info",type:"info",position:"top",duration:3e3,visibility:!0,iconVisible:!0,onDismiss:function onDismiss(){console.log("this is dismissed")},action:void 0,loading:!1}},Info=(exports.default=ToastMeta,exports.Info=function Info(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args))}),Success=exports.Success=function Success(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Success message",type:"success"}))},SuccessWithAction=exports.SuccessWithAction=function SuccessWithAction(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Success message",type:"success",action:function action(){}}))},Warning=exports.Warning=function Warning(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Warning message",type:"warning"}))},Error=exports.Error=function Error(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Error message",type:"error"}))},Loading=exports.Loading=function Loading(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Loading message",loading:!0}))};module.exports.__namedExportsOrder=["Warning","SuccessWithAction","Success","Loading","Info","Error"];try{Info.displayName="Info",Info.__docgenInfo={description:"",displayName:"Info",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Info"]={docgenInfo:Info.__docgenInfo,name:"Info",path:"src/components/Toast/Toast.stories.tsx#Info"})}catch(__react_docgen_typescript_loader_error){}try{Success.displayName="Success",Success.__docgenInfo={description:"",displayName:"Success",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Success"]={docgenInfo:Success.__docgenInfo,name:"Success",path:"src/components/Toast/Toast.stories.tsx#Success"})}catch(__react_docgen_typescript_loader_error){}try{SuccessWithAction.displayName="SuccessWithAction",SuccessWithAction.__docgenInfo={description:"",displayName:"SuccessWithAction",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#SuccessWithAction"]={docgenInfo:SuccessWithAction.__docgenInfo,name:"SuccessWithAction",path:"src/components/Toast/Toast.stories.tsx#SuccessWithAction"})}catch(__react_docgen_typescript_loader_error){}try{Warning.displayName="Warning",Warning.__docgenInfo={description:"",displayName:"Warning",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Warning"]={docgenInfo:Warning.__docgenInfo,name:"Warning",path:"src/components/Toast/Toast.stories.tsx#Warning"})}catch(__react_docgen_typescript_loader_error){}try{Error.displayName="Error",Error.__docgenInfo={description:"",displayName:"Error",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Error"]={docgenInfo:Error.__docgenInfo,name:"Error",path:"src/components/Toast/Toast.stories.tsx#Error"})}catch(__react_docgen_typescript_loader_error){}try{Loading.displayName="Loading",Loading.__docgenInfo={description:"",displayName:"Loading",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Loading"]={docgenInfo:Loading.__docgenInfo,name:"Loading",path:"src/components/Toast/Toast.stories.tsx#Loading"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file +(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[5543],{"./src/components/Toast/Toast.stories.tsx":(module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.Warning=exports.SuccessWithAction=exports.Success=exports.Loading=exports.Info=exports.Error=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _Toast=__webpack_require__("./src/components/Toast/Toast.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),ToastMeta={component:_Toast.Toast,tags:["autodocs"],argTypes:{onDismiss:{action:"dismissed"},action:{action:"clicked"}},args:{message:"Information message",subMessage:"More details about the info",type:"info",position:"top",duration:3e3,visibility:!0,iconVisible:!0,onDismiss:function onDismiss(){console.log("this is dismissed")},action:void 0,loading:!1}},Info=(exports.default=ToastMeta,exports.Info=function Info(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args))}),Success=exports.Success=function Success(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Success message",type:"success"}))},SuccessWithAction=exports.SuccessWithAction=function SuccessWithAction(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Success message",type:"success",action:function action(){}}))},Warning=exports.Warning=function Warning(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Warning message",type:"warning"}))},Error=exports.Error=function Error(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Error message",type:"error"}))},Loading=exports.Loading=function Loading(args){return(0,_jsxRuntime.jsx)(_Toast.Toast,Object.assign({},args,{message:"Loading message",loading:!0}))};module.exports.__namedExportsOrder=["Warning","SuccessWithAction","Success","Loading","Info","Error"];try{Info.displayName="Info",Info.__docgenInfo={description:"",displayName:"Info",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Info"]={docgenInfo:Info.__docgenInfo,name:"Info",path:"src/components/Toast/Toast.stories.tsx#Info"})}catch(__react_docgen_typescript_loader_error){}try{Success.displayName="Success",Success.__docgenInfo={description:"",displayName:"Success",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Success"]={docgenInfo:Success.__docgenInfo,name:"Success",path:"src/components/Toast/Toast.stories.tsx#Success"})}catch(__react_docgen_typescript_loader_error){}try{SuccessWithAction.displayName="SuccessWithAction",SuccessWithAction.__docgenInfo={description:"",displayName:"SuccessWithAction",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#SuccessWithAction"]={docgenInfo:SuccessWithAction.__docgenInfo,name:"SuccessWithAction",path:"src/components/Toast/Toast.stories.tsx#SuccessWithAction"})}catch(__react_docgen_typescript_loader_error){}try{Warning.displayName="Warning",Warning.__docgenInfo={description:"",displayName:"Warning",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Warning"]={docgenInfo:Warning.__docgenInfo,name:"Warning",path:"src/components/Toast/Toast.stories.tsx#Warning"})}catch(__react_docgen_typescript_loader_error){}try{Error.displayName="Error",Error.__docgenInfo={description:"",displayName:"Error",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Error"]={docgenInfo:Error.__docgenInfo,name:"Error",path:"src/components/Toast/Toast.stories.tsx#Error"})}catch(__react_docgen_typescript_loader_error){}try{Loading.displayName="Loading",Loading.__docgenInfo={description:"",displayName:"Loading",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:null,description:"Type of toast",name:"type",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},position:{defaultValue:null,description:"Position of the toast",name:"position",required:!1,type:{name:"enum",value:[{value:'"top"'},{value:'"bottom"'},{value:'"middle"'}]}},duration:{defaultValue:null,description:"Toast duration",name:"duration",required:!1,type:{name:"number"}},loading:{defaultValue:null,description:"",name:"loading",required:!1,type:{name:"boolean"}},visibility:{defaultValue:null,description:"Toast Visibility",name:"visibility",required:!1,type:{name:"boolean"}},iconVisible:{defaultValue:null,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:null,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.stories.tsx#Loading"]={docgenInfo:Loading.__docgenInfo,name:"Loading",path:"src/components/Toast/Toast.stories.tsx#Loading"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/design-system-storybook/5838.d4702e87.iframe.bundle.js b/design-system-storybook/5838.93774e77.iframe.bundle.js similarity index 97% rename from design-system-storybook/5838.d4702e87.iframe.bundle.js rename to design-system-storybook/5838.93774e77.iframe.bundle.js index 4f77076b..f8fdcc13 100644 --- a/design-system-storybook/5838.d4702e87.iframe.bundle.js +++ b/design-system-storybook/5838.93774e77.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[5838],{"./src/components/Notice/Notice.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.Notice=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")),_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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 icons={info:"information-outline",warning:"alert-circle-outline",success:"check-circle-outline",error:"close-circle-outline"},Notice=exports.Notice=function Notice(_ref2){var title=_ref2.title,_ref2$withIcon=_ref2.withIcon,withIcon=void 0===_ref2$withIcon||_ref2$withIcon,iconStyle=_ref2.iconStyle,_ref2$closable=_ref2.closable,closable=void 0!==_ref2$closable&&_ref2$closable,onClose=_ref2.onClose,message=_ref2.message,type=_ref2.type,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,type=_ref.type,backgroundColor={info:theme.colors.infoContainer,warning:theme.colors.warningContainer,error:theme.colors.errorContainer,success:theme.colors.successContainer}[type],iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[type];return _StyleSheet.default.create({container:{padding:10,backgroundColor,gap:5,flexDirection:"row",justifyContent:"center",alignContent:"center"},contentContainer:{flex:1,flexDirection:"column",justifyContent:"center",alignContent:"center"},text:{color:theme.colors.onSurface},title:{color:theme.colors.onSurface,fontWeight:"bold"},iconContainer:{justifyContent:"center",alignContent:"center"},iconStyle:{color:iconColor},closeIcon:{marginLeft:"auto"}})}({theme,type})}),[theme,type]),hasMessage=message&&message.length>0,_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),closed=_useState2[0],setClosed=_useState2[1],handleClose=(0,_react.useCallback)((function(){setClosed(!0),null==onClose||onClose()}),[onClose]);return closed?null:(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:withIcon&&(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icons[type],style:[styles.iconStyle,iconStyle],size:20})}),(0,_jsxRuntime.jsxs)(_View.default,{style:styles.contentContainer,children:[title&&(0,_jsxRuntime.jsx)(_Text.default,{style:styles.title,children:title}),hasMessage?(0,_jsxRuntime.jsx)(_Text.default,{children:message}):null]}),closable&&(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleClose,style:styles.closeIcon,children:(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"close",style:styles.iconStyle,size:20})})]})};try{Notice.displayName="Notice",Notice.__docgenInfo={description:"",displayName:"Notice",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},withIcon:{defaultValue:{value:"true"},description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:{value:"false"},description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.tsx#Notice"]={docgenInfo:Notice.__docgenInfo,name:"Notice",path:"src/components/Notice/Notice.tsx#Notice"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file +(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[5838],{"./src/components/Notice/Notice.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.Notice=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")),_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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 icons={info:"information-outline",warning:"alert-circle-outline",success:"check-circle-outline",error:"close-circle-outline"},Notice=exports.Notice=function Notice(_ref2){var title=_ref2.title,_ref2$withIcon=_ref2.withIcon,withIcon=void 0===_ref2$withIcon||_ref2$withIcon,iconStyle=_ref2.iconStyle,_ref2$closable=_ref2.closable,closable=void 0!==_ref2$closable&&_ref2$closable,onClose=_ref2.onClose,message=_ref2.message,type=_ref2.type,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,type=_ref.type,backgroundColor={info:theme.colors.infoContainer,warning:theme.colors.warningContainer,error:theme.colors.errorContainer,success:theme.colors.successContainer}[type],iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[type];return _StyleSheet.default.create({container:{padding:10,backgroundColor,gap:5,flexDirection:"row",justifyContent:"center",alignContent:"center"},contentContainer:{flex:1,flexDirection:"column",justifyContent:"center",alignContent:"center"},text:{color:theme.colors.onSurface},title:{color:theme.colors.onSurface,fontWeight:"bold"},iconContainer:{justifyContent:"center",alignContent:"center"},iconStyle:{color:iconColor},closeIcon:{marginLeft:"auto"}})}({theme,type})}),[theme,type]),hasMessage=message&&message.length>0,_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),closed=_useState2[0],setClosed=_useState2[1],handleClose=(0,_react.useCallback)((function(){setClosed(!0),null==onClose||onClose()}),[onClose]);return closed?null:(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:withIcon&&(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icons[type],style:[styles.iconStyle,iconStyle],size:20})}),(0,_jsxRuntime.jsxs)(_View.default,{style:styles.contentContainer,children:[title&&(0,_jsxRuntime.jsx)(_Text.default,{style:styles.title,children:title}),hasMessage?(0,_jsxRuntime.jsx)(_Text.default,{children:message}):null]}),closable&&(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleClose,style:styles.closeIcon,children:(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"close",style:styles.iconStyle,size:20})})]})};try{Notice.displayName="Notice",Notice.__docgenInfo={description:"",displayName:"Notice",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},withIcon:{defaultValue:{value:"true"},description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:{value:"false"},description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.tsx#Notice"]={docgenInfo:Notice.__docgenInfo,name:"Notice",path:"src/components/Notice/Notice.tsx#Notice"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/design-system-storybook/7424.8a2c9316.iframe.bundle.js b/design-system-storybook/7424.89f87837.iframe.bundle.js similarity index 95% rename from design-system-storybook/7424.8a2c9316.iframe.bundle.js rename to design-system-storybook/7424.89f87837.iframe.bundle.js index 87574b6a..1404b641 100644 --- a/design-system-storybook/7424.8a2c9316.iframe.bundle.js +++ b/design-system-storybook/7424.89f87837.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[7424],{"./src/components/Result/Result.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.Result=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")),_Image=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Image/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"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 Result=exports.Result=function Result(_ref2){var _ref2$buttonText=_ref2.buttonText,buttonText=void 0===_ref2$buttonText?"ACTION":_ref2$buttonText,_ref2$buttonMode=_ref2.buttonMode,buttonMode=void 0===_ref2$buttonMode?"contained":_ref2$buttonMode,_ref2$secondaryButton=_ref2.secondaryButtonMode,secondaryButtonMode=void 0===_ref2$secondaryButton?"outlined":_ref2$secondaryButton,secondaryButtonText=_ref2.secondaryButtonText,_ref2$status=_ref2.status,status=void 0===_ref2$status?"info":_ref2$status,img=_ref2.img,imgUrl=_ref2.imgUrl,imgStyle=_ref2.imgStyle,message=_ref2.message,extra=_ref2.extra,onButtonPress=_ref2.onButtonPress,onSecondaryButtonPress=_ref2.onSecondaryButtonPress,style=_ref2.style,title=_ref2.title,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{alignItems:"center",paddingVertical:theme.padding.l,gap:10},imgWrap:{margin:0},img:{width:60,height:60},titleContainer:{},titleText:{},messageContainer:{},messageText:{},buttonWrap:{flexDirection:"row",gap:10},extraContainer:{},button:{flex:1}})}({theme})}),[theme]),imgContent=null;if(img)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:img});else if(imgUrl)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:(0,_jsxRuntime.jsx)(_Image.default,{source:imgUrl,style:[styles.img,imgStyle]})});else{var icon="information",iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[status];switch(status){case"success":icon="check-circle";break;case"error":icon="close-circle";break;case"info":icon="information";break;case"warning":icon="alert"}imgContent=(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icon,size:60,color:iconColor})}return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,style],children:[imgContent,title?(0,_jsxRuntime.jsx)(_View.default,{style:styles.titleContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"headlineMedium",style:styles.titleText,children:title})}):null,message?(0,_jsxRuntime.jsx)(_View.default,{style:styles.messageContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"bodyMedium",style:styles.messageText,children:message})}):null,(0,_jsxRuntime.jsxs)(_View.default,{style:styles.buttonWrap,children:[onButtonPress?(0,_jsxRuntime.jsx)(_Button.Button,{style:styles.button,mode:buttonMode,onPress:onButtonPress,children:buttonText}):null,secondaryButtonText?(0,_jsxRuntime.jsx)(_Button.Button,{mode:secondaryButtonMode,onPress:onSecondaryButtonPress,children:secondaryButtonText}):null]}),extra&&(0,_jsxRuntime.jsx)(_View.default,{style:styles.extraContainer,children:extra})]})};try{Result.displayName="Result",Result.__docgenInfo={description:"",displayName:"Result",props:{status:{defaultValue:{value:"info"},description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},img:{defaultValue:null,description:"",name:"img",required:!1,type:{name:"ReactNode"}},imgUrl:{defaultValue:null,description:"",name:"imgUrl",required:!1,type:{name:"ImageSourcePropType"}},imgStyle:{defaultValue:null,description:"",name:"imgStyle",required:!1,type:{name:"StyleProp"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"ReactNode"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"ReactNode"}},buttonText:{defaultValue:{value:"ACTION"},description:"",name:"buttonText",required:!1,type:{name:"string"}},buttonMode:{defaultValue:{value:"contained"},description:"",name:"buttonMode",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"outlined"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},secondaryButtonText:{defaultValue:null,description:"",name:"secondaryButtonText",required:!1,type:{name:"string"}},secondaryButtonMode:{defaultValue:{value:"outlined"},description:"",name:"secondaryButtonMode",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"outlined"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},extra:{defaultValue:null,description:"",name:"extra",required:!1,type:{name:"ReactNode"}},onButtonPress:{defaultValue:null,description:"",name:"onButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onSecondaryButtonPress:{defaultValue:null,description:"",name:"onSecondaryButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Result/Result.tsx#Result"]={docgenInfo:Result.__docgenInfo,name:"Result",path:"src/components/Result/Result.tsx#Result"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file +(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[7424],{"./src/components/Result/Result.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.Result=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")),_Image=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Image/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"),_Button=__webpack_require__("./src/components/Button/Button.tsx"),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 Result=exports.Result=function Result(_ref2){var _ref2$buttonText=_ref2.buttonText,buttonText=void 0===_ref2$buttonText?"ACTION":_ref2$buttonText,_ref2$buttonMode=_ref2.buttonMode,buttonMode=void 0===_ref2$buttonMode?"contained":_ref2$buttonMode,_ref2$secondaryButton=_ref2.secondaryButtonMode,secondaryButtonMode=void 0===_ref2$secondaryButton?"outlined":_ref2$secondaryButton,secondaryButtonText=_ref2.secondaryButtonText,_ref2$status=_ref2.status,status=void 0===_ref2$status?"info":_ref2$status,img=_ref2.img,imgUrl=_ref2.imgUrl,imgStyle=_ref2.imgStyle,message=_ref2.message,extra=_ref2.extra,onButtonPress=_ref2.onButtonPress,onSecondaryButtonPress=_ref2.onSecondaryButtonPress,style=_ref2.style,title=_ref2.title,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme;return _StyleSheet.default.create({container:{alignItems:"center",paddingVertical:theme.padding.l,gap:10},imgWrap:{margin:0},img:{width:60,height:60},titleContainer:{},titleText:{},messageContainer:{},messageText:{},buttonWrap:{flexDirection:"row",gap:10},extraContainer:{},button:{flex:1}})}({theme})}),[theme]),imgContent=null;if(img)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:img});else if(imgUrl)imgContent=(0,_jsxRuntime.jsx)(_View.default,{style:styles.imgWrap,children:(0,_jsxRuntime.jsx)(_Image.default,{source:imgUrl,style:[styles.img,imgStyle]})});else{var icon="information",iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[status];switch(status){case"success":icon="check-circle";break;case"error":icon="close-circle";break;case"info":icon="information";break;case"warning":icon="alert"}imgContent=(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icon,size:60,color:iconColor})}return(0,_jsxRuntime.jsxs)(_View.default,{style:[styles.container,style],children:[imgContent,title?(0,_jsxRuntime.jsx)(_View.default,{style:styles.titleContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"headlineMedium",style:styles.titleText,children:title})}):null,message?(0,_jsxRuntime.jsx)(_View.default,{style:styles.messageContainer,children:(0,_jsxRuntime.jsx)(_reactNativePaper.Text,{variant:"bodyMedium",style:styles.messageText,children:message})}):null,(0,_jsxRuntime.jsxs)(_View.default,{style:styles.buttonWrap,children:[onButtonPress?(0,_jsxRuntime.jsx)(_Button.Button,{style:styles.button,mode:buttonMode,onPress:onButtonPress,children:buttonText}):null,secondaryButtonText?(0,_jsxRuntime.jsx)(_Button.Button,{mode:secondaryButtonMode,onPress:onSecondaryButtonPress,children:secondaryButtonText}):null]}),extra&&(0,_jsxRuntime.jsx)(_View.default,{style:styles.extraContainer,children:extra})]})};try{Result.displayName="Result",Result.__docgenInfo={description:"",displayName:"Result",props:{status:{defaultValue:{value:"info"},description:"",name:"status",required:!1,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},img:{defaultValue:null,description:"",name:"img",required:!1,type:{name:"ReactNode"}},imgUrl:{defaultValue:null,description:"",name:"imgUrl",required:!1,type:{name:"ImageSourcePropType"}},imgStyle:{defaultValue:null,description:"",name:"imgStyle",required:!1,type:{name:"StyleProp"}},title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"ReactNode"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"ReactNode"}},buttonText:{defaultValue:{value:"ACTION"},description:"",name:"buttonText",required:!1,type:{name:"string"}},buttonMode:{defaultValue:{value:"contained"},description:"",name:"buttonMode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},secondaryButtonText:{defaultValue:null,description:"",name:"secondaryButtonText",required:!1,type:{name:"string"}},secondaryButtonMode:{defaultValue:{value:"outlined"},description:"",name:"secondaryButtonMode",required:!1,type:{name:"enum",value:[{value:'"outlined"'},{value:'"text"'},{value:'"contained"'},{value:'"elevated"'},{value:'"contained-tonal"'}]}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"StyleProp"}},extra:{defaultValue:null,description:"",name:"extra",required:!1,type:{name:"ReactNode"}},onButtonPress:{defaultValue:null,description:"",name:"onButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}},onSecondaryButtonPress:{defaultValue:null,description:"",name:"onSecondaryButtonPress",required:!1,type:{name:"((e: GestureResponderEvent) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Result/Result.tsx#Result"]={docgenInfo:Result.__docgenInfo,name:"Result",path:"src/components/Result/Result.tsx#Result"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/design-system-storybook/7445.bbfe1f74.iframe.bundle.js b/design-system-storybook/7445.6cc738eb.iframe.bundle.js similarity index 94% rename from design-system-storybook/7445.bbfe1f74.iframe.bundle.js rename to design-system-storybook/7445.6cc738eb.iframe.bundle.js index 52d54fde..ee9e2cf1 100644 --- a/design-system-storybook/7445.bbfe1f74.iframe.bundle.js +++ b/design-system-storybook/7445.6cc738eb.iframe.bundle.js @@ -1 +1 @@ -(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[7445,5838],{"./src/components/Notice/Notice.stories.tsx":(module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.warning=exports.success=exports.error=exports.default=exports.Info=exports.CustomClose=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _Notice=__webpack_require__("./src/components/Notice/Notice.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),NoticeMeta={component:_Notice.Notice,tags:["autodocs"],argTypes:{title:{control:"text"},message:{control:"text"},withIcon:{control:"boolean"},onClose:{action:"closed"}},args:{onClose:void 0,closable:!0}},Info=(exports.default=NoticeMeta,exports.Info=function Info(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))});Info.args={title:"Information",message:"This is an informational message.",type:"info",onClose:void 0,withIcon:!0};var success=exports.success=function success(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))};success.args={title:"Success",message:"This is a success message.",type:"success",onClose:void 0,withIcon:!0};var warning=exports.warning=function warning(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))};warning.args={title:"Warning",message:"This is a warning message.",type:"warning",onClose:void 0,withIcon:!0};var error=exports.error=function error(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))};error.args={title:"Error",message:"This is an error message.",type:"error",onClose:void 0,withIcon:!0};var CustomClose=exports.CustomClose=function CustomClose(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))};CustomClose.args={title:"Custom Close",message:void 0,type:"info",onClose:function onClose(){console.log("Closed")},withIcon:!0},module.exports.__namedExportsOrder=["warning","success","error","Info","CustomClose"];try{Info.displayName="Info",Info.__docgenInfo={description:"",displayName:"Info",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#Info"]={docgenInfo:Info.__docgenInfo,name:"Info",path:"src/components/Notice/Notice.stories.tsx#Info"})}catch(__react_docgen_typescript_loader_error){}try{success.displayName="success",success.__docgenInfo={description:"",displayName:"success",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#success"]={docgenInfo:success.__docgenInfo,name:"success",path:"src/components/Notice/Notice.stories.tsx#success"})}catch(__react_docgen_typescript_loader_error){}try{warning.displayName="warning",warning.__docgenInfo={description:"",displayName:"warning",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#warning"]={docgenInfo:warning.__docgenInfo,name:"warning",path:"src/components/Notice/Notice.stories.tsx#warning"})}catch(__react_docgen_typescript_loader_error){}try{error.displayName="error",error.__docgenInfo={description:"",displayName:"error",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#error"]={docgenInfo:error.__docgenInfo,name:"error",path:"src/components/Notice/Notice.stories.tsx#error"})}catch(__react_docgen_typescript_loader_error){}try{CustomClose.displayName="CustomClose",CustomClose.__docgenInfo={description:"",displayName:"CustomClose",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#CustomClose"]={docgenInfo:CustomClose.__docgenInfo,name:"CustomClose",path:"src/components/Notice/Notice.stories.tsx#CustomClose"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Notice/Notice.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.Notice=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")),_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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 icons={info:"information-outline",warning:"alert-circle-outline",success:"check-circle-outline",error:"close-circle-outline"},Notice=exports.Notice=function Notice(_ref2){var title=_ref2.title,_ref2$withIcon=_ref2.withIcon,withIcon=void 0===_ref2$withIcon||_ref2$withIcon,iconStyle=_ref2.iconStyle,_ref2$closable=_ref2.closable,closable=void 0!==_ref2$closable&&_ref2$closable,onClose=_ref2.onClose,message=_ref2.message,type=_ref2.type,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,type=_ref.type,backgroundColor={info:theme.colors.infoContainer,warning:theme.colors.warningContainer,error:theme.colors.errorContainer,success:theme.colors.successContainer}[type],iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[type];return _StyleSheet.default.create({container:{padding:10,backgroundColor,gap:5,flexDirection:"row",justifyContent:"center",alignContent:"center"},contentContainer:{flex:1,flexDirection:"column",justifyContent:"center",alignContent:"center"},text:{color:theme.colors.onSurface},title:{color:theme.colors.onSurface,fontWeight:"bold"},iconContainer:{justifyContent:"center",alignContent:"center"},iconStyle:{color:iconColor},closeIcon:{marginLeft:"auto"}})}({theme,type})}),[theme,type]),hasMessage=message&&message.length>0,_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),closed=_useState2[0],setClosed=_useState2[1],handleClose=(0,_react.useCallback)((function(){setClosed(!0),null==onClose||onClose()}),[onClose]);return closed?null:(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:withIcon&&(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icons[type],style:[styles.iconStyle,iconStyle],size:20})}),(0,_jsxRuntime.jsxs)(_View.default,{style:styles.contentContainer,children:[title&&(0,_jsxRuntime.jsx)(_Text.default,{style:styles.title,children:title}),hasMessage?(0,_jsxRuntime.jsx)(_Text.default,{children:message}):null]}),closable&&(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleClose,style:styles.closeIcon,children:(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"close",style:styles.iconStyle,size:20})})]})};try{Notice.displayName="Notice",Notice.__docgenInfo={description:"",displayName:"Notice",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},withIcon:{defaultValue:{value:"true"},description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:{value:"false"},description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.tsx#Notice"]={docgenInfo:Notice.__docgenInfo,name:"Notice",path:"src/components/Notice/Notice.tsx#Notice"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file +(self.webpackChunk_siteed_design_system=self.webpackChunk_siteed_design_system||[]).push([[7445,5838],{"./src/components/Notice/Notice.stories.tsx":(module,exports,__webpack_require__)=>{var _interopRequireDefault=__webpack_require__("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.warning=exports.success=exports.error=exports.default=exports.Info=exports.CustomClose=void 0;_interopRequireDefault(__webpack_require__("./node_modules/react/index.js"));var _Notice=__webpack_require__("./src/components/Notice/Notice.tsx"),_jsxRuntime=__webpack_require__("./node_modules/react/jsx-runtime.js"),NoticeMeta={component:_Notice.Notice,tags:["autodocs"],argTypes:{title:{control:"text"},message:{control:"text"},withIcon:{control:"boolean"},onClose:{action:"closed"}},args:{onClose:void 0,closable:!0}},Info=(exports.default=NoticeMeta,exports.Info=function Info(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))});Info.args={title:"Information",message:"This is an informational message.",type:"info",onClose:void 0,withIcon:!0};var success=exports.success=function success(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))};success.args={title:"Success",message:"This is a success message.",type:"success",onClose:void 0,withIcon:!0};var warning=exports.warning=function warning(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))};warning.args={title:"Warning",message:"This is a warning message.",type:"warning",onClose:void 0,withIcon:!0};var error=exports.error=function error(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))};error.args={title:"Error",message:"This is an error message.",type:"error",onClose:void 0,withIcon:!0};var CustomClose=exports.CustomClose=function CustomClose(args){return(0,_jsxRuntime.jsx)(_Notice.Notice,Object.assign({},args))};CustomClose.args={title:"Custom Close",message:void 0,type:"info",onClose:function onClose(){console.log("Closed")},withIcon:!0},module.exports.__namedExportsOrder=["warning","success","error","Info","CustomClose"];try{Info.displayName="Info",Info.__docgenInfo={description:"",displayName:"Info",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#Info"]={docgenInfo:Info.__docgenInfo,name:"Info",path:"src/components/Notice/Notice.stories.tsx#Info"})}catch(__react_docgen_typescript_loader_error){}try{success.displayName="success",success.__docgenInfo={description:"",displayName:"success",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#success"]={docgenInfo:success.__docgenInfo,name:"success",path:"src/components/Notice/Notice.stories.tsx#success"})}catch(__react_docgen_typescript_loader_error){}try{warning.displayName="warning",warning.__docgenInfo={description:"",displayName:"warning",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#warning"]={docgenInfo:warning.__docgenInfo,name:"warning",path:"src/components/Notice/Notice.stories.tsx#warning"})}catch(__react_docgen_typescript_loader_error){}try{error.displayName="error",error.__docgenInfo={description:"",displayName:"error",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#error"]={docgenInfo:error.__docgenInfo,name:"error",path:"src/components/Notice/Notice.stories.tsx#error"})}catch(__react_docgen_typescript_loader_error){}try{CustomClose.displayName="CustomClose",CustomClose.__docgenInfo={description:"",displayName:"CustomClose",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},withIcon:{defaultValue:null,description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:null,description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.stories.tsx#CustomClose"]={docgenInfo:CustomClose.__docgenInfo,name:"CustomClose",path:"src/components/Notice/Notice.stories.tsx#CustomClose"})}catch(__react_docgen_typescript_loader_error){}},"./src/components/Notice/Notice.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.Notice=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")),_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")),_Text=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/Text/index.js")),_View=_interopRequireDefault(__webpack_require__("./node_modules/react-native-web/dist/exports/View/index.js")),_ThemeProvider=__webpack_require__("./src/providers/ThemeProvider.tsx"),_vectorIcons=__webpack_require__("./node_modules/@expo/vector-icons/build/Icons.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 icons={info:"information-outline",warning:"alert-circle-outline",success:"check-circle-outline",error:"close-circle-outline"},Notice=exports.Notice=function Notice(_ref2){var title=_ref2.title,_ref2$withIcon=_ref2.withIcon,withIcon=void 0===_ref2$withIcon||_ref2$withIcon,iconStyle=_ref2.iconStyle,_ref2$closable=_ref2.closable,closable=void 0!==_ref2$closable&&_ref2$closable,onClose=_ref2.onClose,message=_ref2.message,type=_ref2.type,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(_ref){var theme=_ref.theme,type=_ref.type,backgroundColor={info:theme.colors.infoContainer,warning:theme.colors.warningContainer,error:theme.colors.errorContainer,success:theme.colors.successContainer}[type],iconColor={info:theme.colors.info,warning:theme.colors.warning,error:theme.colors.error,success:theme.colors.success}[type];return _StyleSheet.default.create({container:{padding:10,backgroundColor,gap:5,flexDirection:"row",justifyContent:"center",alignContent:"center"},contentContainer:{flex:1,flexDirection:"column",justifyContent:"center",alignContent:"center"},text:{color:theme.colors.onSurface},title:{color:theme.colors.onSurface,fontWeight:"bold"},iconContainer:{justifyContent:"center",alignContent:"center"},iconStyle:{color:iconColor},closeIcon:{marginLeft:"auto"}})}({theme,type})}),[theme,type]),hasMessage=message&&message.length>0,_useState=(0,_react.useState)(!1),_useState2=(0,_slicedToArray2.default)(_useState,2),closed=_useState2[0],setClosed=_useState2[1],handleClose=(0,_react.useCallback)((function(){setClosed(!0),null==onClose||onClose()}),[onClose]);return closed?null:(0,_jsxRuntime.jsxs)(_View.default,{style:styles.container,children:[(0,_jsxRuntime.jsx)(_View.default,{style:styles.iconContainer,children:withIcon&&(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:icons[type],style:[styles.iconStyle,iconStyle],size:20})}),(0,_jsxRuntime.jsxs)(_View.default,{style:styles.contentContainer,children:[title&&(0,_jsxRuntime.jsx)(_Text.default,{style:styles.title,children:title}),hasMessage?(0,_jsxRuntime.jsx)(_Text.default,{children:message}):null]}),closable&&(0,_jsxRuntime.jsx)(_Pressable.default,{onPress:handleClose,style:styles.closeIcon,children:(0,_jsxRuntime.jsx)(_vectorIcons.MaterialCommunityIcons,{name:"close",style:styles.iconStyle,size:20})})]})};try{Notice.displayName="Notice",Notice.__docgenInfo={description:"",displayName:"Notice",props:{title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"string"}},message:{defaultValue:null,description:"",name:"message",required:!1,type:{name:"string"}},type:{defaultValue:null,description:"",name:"type",required:!0,type:{name:"enum",value:[{value:'"info"'},{value:'"success"'},{value:'"warning"'},{value:'"error"'}]}},withIcon:{defaultValue:{value:"true"},description:"",name:"withIcon",required:!1,type:{name:"boolean"}},iconStyle:{defaultValue:null,description:"",name:"iconStyle",required:!1,type:{name:"StyleProp"}},closable:{defaultValue:{value:"false"},description:"",name:"closable",required:!1,type:{name:"boolean"}},onClose:{defaultValue:null,description:"",name:"onClose",required:!1,type:{name:"(() => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Notice/Notice.tsx#Notice"]={docgenInfo:Notice.__docgenInfo,name:"Notice",path:"src/components/Notice/Notice.tsx#Notice"})}catch(__react_docgen_typescript_loader_error){}}}]); \ No newline at end of file diff --git a/design-system-storybook/iframe.html b/design-system-storybook/iframe.html index be3653a8..9ffa33b7 100644 --- a/design-system-storybook/iframe.html +++ b/design-system-storybook/iframe.html @@ -504,8 +504,8 @@ window['TAGS_OPTIONS'] = {"dev-only":{"excludeFromDocsStories":true},"docs-only":{"excludeFromSidebar":true},"test-only":{"excludeFromSidebar":true,"excludeFromDocsStories":true}}; \ No newline at end of file + import './main.227e13e3.iframe.bundle.js'; \ No newline at end of file diff --git a/design-system-storybook/main.045b5bc5.iframe.bundle.js b/design-system-storybook/main.045b5bc5.iframe.bundle.js deleted file mode 100644 index 58239f4d..00000000 --- a/design-system-storybook/main.045b5bc5.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(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:'"text"'},{value:'"outlined"'},{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)"}},label:{defaultValue:null,description:"The text or component to use for the floating label.",name:"label",required:!1,type:{name:"TextInputLabelProp"}},mandatory:{defaultValue:null,description:"",name:"mandatory",required:!1,type:{name:"boolean"}},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"}},error:{defaultValue:null,description:"Whether to style the TextInput with error style.",name:"error",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:'"error"'},{value:'"info"'},{value:'"success"'},{value:'"warning"'}]}},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")),_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(_ref){var onCancel=_ref.onCancel,onFinish=_ref.onFinish,theme=(0,_ThemeProvider.useTheme)(),styles=(0,_react.useMemo)((function(){return function getStyles(theme){return _StyleSheet.default.create({footer:{backgroundColor:theme.colors.surfaceVariant,borderTopColor:theme.colors.outline,borderTopWidth:1,display:"flex",flexDirection:"row",justifyContent:"space-around",padding:theme.padding.m},finishButton:{paddingHorizontal:20},cancelButton:{paddingHorizontal:20}})}(theme)}),[theme]),t=(0,_reactI18next.useTranslation)("confirm_cancel_footer").t;return(0,_jsxRuntime.jsxs)(_View.default,{style:styles.footer,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)"}}}},"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,_useState=(0,_react.useState)([]),_useState2=(0,_slicedToArray2.default)(_useState,2),modalStack=_useState2[0],setModalStack=_useState2[1],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){setModalStack((function(prevStack){return prevStack.map((function(modal){return modal.id===modalId?Object.assign({},modal,{latestData:newValue}):modal}))}))}),[]),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 modalIndex=_ref2.modalIndex,footerProps=_ref2.footerProps,modal=modalStack[modalIndex];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){if(modalIndex===modalStack.length-1){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 modalIndex=_ref3.modalIndex,HandlerComponent=function HandlerComponent(props){var modal=modalStack[modalIndex];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}))}),[]),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,modalId=modalIdCounter.current++,modalResolved=!1,wrapResolve=function wrapResolve(value){logger.debug("openDrawer wrapResolve",value),setModalStack((function(prevStack){logger.debug("wrapResolve setModalStack called");var currentModal=prevStack.find((function(modal){return modal.id===modalId}));if(currentModal&&!currentModal.resolved&&!currentModal.rejected){logger.debug("Resolving modal:",modalId);var _newStack,_newStack$bottomSheet,newStack=prevStack.map((function(modal){return modal.id===modalId?Object.assign({},modal,{resolved:!0}):modal})).filter((function(modal){return modal.id!==modalId}));return newStack.length>0&&(null==(_newStack=newStack[newStack.length-1])||null==(_newStack$bottomSheet=_newStack.bottomSheetRef.current)||_newStack$bottomSheet.present()),newStack}return logger.debug("Modal already resolved or rejected:",modalId),prevStack})),modalResolved?logger.debug("Resolve already called, skipping"):(logger.debug("Calling resolve function"),modalResolved=!0,resolve(value))},wrapReject=function wrapReject(error){logger.debug("openDrawer wrapReject",error),setModalStack((function(prevStack){var _newStack2,_newStack2$bottomShee,newStack=prevStack.map((function(modal){return modal.id===modalId?Object.assign({},modal,{rejected:!0}):modal})).filter((function(modal){return modal.id!==modalId}));return newStack.length>0&&(null==(_newStack2=newStack[newStack.length-1])||null==(_newStack2$bottomShee=_newStack2.bottomSheetRef.current)||_newStack2$bottomShee.present()),newStack})),modalResolved||(modalResolved=!0,reject(error))};setModalStack((function(prevStack){return[].concat((0,_toConsumableArray2.default)(prevStack),[{id:modalId,render:props.render,props,resolve:wrapResolve,reject:wrapReject,bottomSheetRef:newBottomSheetRef,initialData,latestData:initialData,resolved:!1,rejected:!1}])})),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]),dismiss=(0,_react.useCallback)((function(){return new Promise((function(resolvePromise){var _currentModal$bottomS;if(0!==modalStack.length){var currentModal=modalStack[modalStack.length-1];null==currentModal||null==(_currentModal$bottomS=currentModal.bottomSheetRef.current)||_currentModal$bottomS.dismiss(),setTimeout((function(){null==currentModal||currentModal.resolve(void 0),resolvePromise(!0)}),300)}else resolvePromise(!1)}))}),[modalStack]),dismissAll=(0,_react.useCallback)((function(){modalStack.forEach((function(modal){var _modal$bottomSheetRef;null==(_modal$bottomSheetRef=modal.bottomSheetRef.current)||_modal$bottomSheetRef.dismiss()})),setModalStack([])}),[modalStack]),handleSheetChanges=(0,_react.useCallback)((function(_ref5){var _currentModal$props$b,modalIndex=_ref5.modalIndex,index=_ref5.index,position=_ref5.position,type=_ref5.type,currentModal=modalStack[modalIndex];currentModal&&(-1===index?setModalStack((function(prevStack){var _modalToResolve$props,newStack=(0,_toConsumableArray2.default)(prevStack),modalToResolve=newStack[modalIndex];return modalToResolve?("replace"===(null==(_modalToResolve$props=modalToResolve.props.bottomSheetProps)?void 0:_modalToResolve$props.stackBehavior)?newStack=newStack.slice(0,modalIndex):newStack.splice(modalIndex,1),modalToResolve.resolved||modalToResolve.rejected?logger.debug("handleSheetChanges: modal already resolved or rejected:",modalToResolve.id):(logger.debug("handleSheetChanges resolving modal:",modalToResolve.id),setTimeout((function(){modalToResolve.resolve(modalToResolve.latestData)}),100),modalToResolve.resolved=!0),newStack.length>0&&setTimeout((function(){var _newStack3,_newStack3$bottomShee;null==(_newStack3=newStack[newStack.length-1])||null==(_newStack3$bottomShee=_newStack3.bottomSheetRef.current)||_newStack3$bottomShee.present()}),0),newStack):prevStack})):null==(_currentModal$props$b=currentModal.props.bottomSheetProps)||null==_currentModal$props$b.onChange||_currentModal$props$b.onChange(index,position,type))}),[modalStack]),renderContent=(0,_react.useCallback)((function(_ref6){var modalIndex=_ref6.modalIndex,currentModal=modalStack[modalIndex];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.map((function(modal,index){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({modalIndex:index,index:sheetIndex,position,type})},containerComponent:function containerComponent(_ref7){var children=_ref7.children;return(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:"modal",children:(0,_jsxRuntime.jsx)(_View.default,{style:Object.assign({},_StyleSheet.default.absoluteFillObject),children})})},stackBehavior:(null==(_modal$props$bottomSh=modal.props.bottomSheetProps)?void 0:_modal$props$bottomSh.stackBehavior)||"push",footerComponent:function footerComponent(props){return renderFooter({modalIndex:index,footerProps:props})},handleComponent:renderHandler({modalIndex:index}),backdropComponent:renderBackdrop,children:renderContent({modalIndex:index})}),modal.id)}))]})})};try{BottomSheetProvider.displayName="BottomSheetProvider",BottomSheetProvider.__docgenInfo={description:"",displayName:"BottomSheetProvider",props:{}},"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,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:"modal",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:1e3+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:{}},"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/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"),_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,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)(_ConfirmProvider.ConfirmProvider,Object.assign({},confirmProviderProps,{children:(0,_jsxRuntime.jsx)(_ToastProvider.ToastProvider,Object.assign({},toastProviderProps,{children:(0,_jsxRuntime.jsx)(_BottomSheetProvider.BottomSheetProvider,{children:(0,_jsxRuntime.jsx)(_ModalProvider.ModalProvider,{children:(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[children,(0,_jsxRuntime.jsx)(_portal.PortalHost,{name:"modal"})]})})})}))}))})})}):(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"}},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/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/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/main.227e13e3.iframe.bundle.js b/design-system-storybook/main.227e13e3.iframe.bundle.js new file mode 100644 index 00000000..8c39905e --- /dev/null +++ b/design-system-storybook/main.227e13e3.iframe.bundle.js @@ -0,0 +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"}},error:{defaultValue:null,description:"Whether to style the TextInput with error style.",name:"error",required:!1,type:{name:"boolean"}},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)"}},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,_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){setModalStack((function(prevStack){return prevStack.map((function(modal){return modal.id===modalId?Object.assign({},modal,{latestData:newValue}):modal}))}))}),[]),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){var _currentModal$bottomS;logger.debug("wrapResolve value",value);var currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?(logger.debug("wrapResolve currentModal.bottomSheetRef",null==currentModal?void 0:currentModal.bottomSheetRef.current),null!=currentModal&&null!=(_currentModal$bottomS=currentModal.bottomSheetRef)&&_currentModal$bottomS.current&¤tModal.bottomSheetRef.current.dismiss(),logger.debug("wrapResolve Calling resolve function"),resolve(value)):logger.error(`wrapResolve: modal ${modalId} not found`,modalStackRef.current)}),[]),wrapReject=(0,_react.useCallback)((function(modalId,error,reject){var _currentModal$bottomS2;logger.debug("wrapReject",error);var currentModal=modalStackRef.current.find((function(m){return m.id===modalId}));currentModal?(logger.debug("wrapResolve currentModal.bottomSheetRef",null==currentModal?void 0:currentModal.bottomSheetRef.current),null!=currentModal&&null!=(_currentModal$bottomS2=currentModal.bottomSheetRef)&&_currentModal$bottomS2.current&¤tModal.bottomSheetRef.current.dismiss(),reject(error)):logger.error(`wrapResolve: modal ${modalId} not found`,modalStackRef.current)}),[setModalStack]),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,modalId=modalIdCounter.current++,modalResolved=!1,newModal={id:modalId,render:props.render,props,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};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]),dismiss=(0,_react.useCallback)((function(modalId){return new Promise((function(resolvePromise){var _currentModal$bottomS3,currentModal=modalId?modalStack.find((function(m){return m.id===modalId})):modalStack[modalStack.length-1];if(!currentModal)return logger.error("dismiss: modal not found"),void resolvePromise(!1);logger.debug(`dismiss: modalId: ${currentModal.id}`,currentModal),null==(_currentModal$bottomS3=currentModal.bottomSheetRef.current)||_currentModal$bottomS3.dismiss(),setTimeout((function(){logger.debug("dismiss: resolving modal after delay:",currentModal.id),currentModal.resolve(void 0),resolvePromise(!0)}),300)}))}),[modalStack]),dismissAll=(0,_react.useCallback)((function(){modalStack.forEach((function(modal){var _modal$bottomSheetRef;null==(_modal$bottomSheetRef=modal.bottomSheetRef.current)||_modal$bottomSheetRef.dismiss()})),setModalStack([])}),[modalStack]),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: ${modalStack.length}`);var _currentModal$props$b,currentModal=modalStack.find((function(m){return m.id===modalId}));currentModal?-1===index?(logger.debug(`handleSheetChanges: modalId: ${modalId} is closing`),currentModal.resolved||(logger.debug(`handleSheetChanges: modalId: ${modalId} is closing and not resolved, resolving with initialData`,currentModal.initialData),currentModal.resolve(void 0)),setTimeout((function(){setModalStack((function(prevStack){var newStack=prevStack.filter((function(m){return m.id!==modalId}));return logger.debug("handleSheetChanges: newStack",newStack),newStack}))}),100)):(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`,modalStack)}),[modalStack]),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.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,containerComponent:function containerComponent(_ref7){var children=_ref7.children;return(0,_jsxRuntime.jsx)(_portal.Portal,{hostName:"modal",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:{}},"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,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:"modal",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:{}},"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,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,{children:(0,_jsxRuntime.jsx)(_ModalProvider.ModalProvider,{children:(0,_jsxRuntime.jsxs)(_jsxRuntime.Fragment,{children:[children,(0,_jsxRuntime.jsx)(_portal.PortalHost,{name:"modal"})]})})})}))}))})})})}):(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"}},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 9ad4a809..d714d857 100644 --- a/design-system-storybook/project.json +++ b/design-system-storybook/project.json @@ -1 +1 @@ -{"generatedAt":1728288296968,"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":1728352596169,"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}}} diff --git a/design-system-storybook/runtime~main.59d03e91.iframe.bundle.js b/design-system-storybook/runtime~main.59d03e91.iframe.bundle.js deleted file mode 100644 index 8b526ce5..00000000 --- a/design-system-storybook/runtime~main.59d03e91.iframe.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>chunkId+"."+{95:"a678ef98",411:"cbb1080c",560:"40f75002",834:"c3d6e64b",843:"faf8b9e6",868:"3730f460",1027:"07e003b0",1202:"e60cae10",1336:"b0c7a420",1357:"e1027298",1372:"38dd9ef7",1391:"79d4c364",1478:"48fbb13d",1625:"32053d56",1707:"c2403949",1863:"0c803df2",2076:"efb617ef",2122:"a045c5ca",2268:"3c623081",2328:"65ab614f",2411:"3783b0c3",2429:"4a17b210",2653:"5da07364",2758:"f9ecda8e",2808:"d18d6d62",2819:"0221a7eb",2870:"24b21eb2",3047:"314bf7a6",3154:"04305cd7",3443:"75cd3b79",3499:"b265ee47",3535:"ade0e114",3610:"928307ee",3784:"7cbd8ff6",3880:"68f275c4",3885:"c6703af7",3888:"05552a65",3891:"5239a95e",3895:"45cba23f",4085:"e693d4b2",4103:"973c8824",4267:"ebafadba",4383:"aeab2e90",4396:"81cc268d",4464:"99682cb1",4618:"d5b99fd6",4680:"a414cac0",4702:"40286ddf",4800:"97396558",4806:"69299a5f",4983:"651661fe",5346:"aa136857",5428:"ba14724b",5479:"af385b3d",5491:"91cd28f7",5543:"2ea40b81",5580:"5c2128c0",5604:"5a8bbe09",5654:"6a5c8852",5838:"d4702e87",6022:"dd157274",6040:"e2bd37a2",6119:"cd90c530",6349:"f3c421c1",6385:"13336ab5",6510:"a2451df0",6786:"0eed9c26",6945:"182e3890",7e3:"8ce9fa0b",7036:"2b1bd7c2",7115:"d9fdd96b",7123:"757b0176",7228:"a1e1a5ed",7270:"d3bdc9f0",7340:"cc518fc7",7364:"e1dd6392",7424:"8a2c9316",7445:"bbfe1f74",7535:"8bf1c731",7596:"33561e6c",8023:"c60110de",8109:"ea9fc893",8140:"8d814c66",8186:"8af88844",8276:"a569af7a",8308:"43b3f2f5",8654:"51c92ac3",8735:"4843a42d",8782:"9c69f437",8908:"ab260a78",9235:"d0ec33dd",9287:"31ad517f",9541:"a35db0ca",9684:"463641bf",9764:"fa0bacab",9817:"334f6132"}[chunkId]+".iframe.bundle.js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=module=>((module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,loaded:!1,exports:{}};return __webpack_modules__[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;"object"==typeof current&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>chunkId+"."+{95:"a678ef98",411:"cbb1080c",560:"40f75002",834:"c3d6e64b",843:"faf8b9e6",868:"3730f460",1027:"07e003b0",1202:"e60cae10",1336:"b0c7a420",1357:"e1027298",1372:"38dd9ef7",1391:"79d4c364",1478:"673b3bef",1607:"0c5328d0",1625:"32053d56",1707:"c2403949",1863:"0c803df2",2076:"efb617ef",2122:"a045c5ca",2268:"3c623081",2328:"65ab614f",2411:"3783b0c3",2429:"4a17b210",2653:"5da07364",2758:"f9ecda8e",2808:"d18d6d62",2819:"0221a7eb",2870:"3aee43c4",3047:"314bf7a6",3154:"04305cd7",3443:"75cd3b79",3499:"b265ee47",3535:"ade0e114",3610:"928307ee",3784:"7cbd8ff6",3880:"68f275c4",3885:"c6703af7",3888:"05552a65",3891:"5239a95e",3895:"45cba23f",4085:"e693d4b2",4103:"973c8824",4267:"76d16ea7",4383:"aeab2e90",4396:"81cc268d",4464:"99682cb1",4618:"d5b99fd6",4680:"a414cac0",4702:"40286ddf",4800:"97396558",4806:"69299a5f",4983:"651661fe",5346:"aa136857",5428:"ba14724b",5479:"af385b3d",5491:"91cd28f7",5543:"0c132676",5580:"5c2128c0",5604:"5a8bbe09",5654:"6a5c8852",5838:"93774e77",6022:"dd157274",6040:"e2bd37a2",6119:"cd90c530",6349:"f3c421c1",6385:"13336ab5",6510:"a2451df0",6786:"0eed9c26",6945:"182e3890",7e3:"8ce9fa0b",7036:"2b1bd7c2",7115:"d9fdd96b",7123:"757b0176",7228:"a1e1a5ed",7270:"d3bdc9f0",7340:"cc518fc7",7364:"e1dd6392",7424:"89f87837",7445:"6cc738eb",7535:"8bf1c731",7596:"33561e6c",8023:"c60110de",8109:"ea9fc893",8140:"8d814c66",8186:"8af88844",8276:"a569af7a",8308:"43b3f2f5",8654:"51c92ac3",8735:"4843a42d",8782:"9c69f437",8908:"ab260a78",9235:"d0ec33dd",9287:"31ad517f",9541:"a35db0ca",9684:"463641bf",9764:"fa0bacab",9817:"334f6132"}[chunkId]+".iframe.bundle.js",__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.hmd=module=>((module=Object.create(module)).children||(module.children=[]),Object.defineProperty(module,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+module.id)}}),module),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.nmd=module=>(module.paths=[],module.children||(module.children=[]),module),__webpack_require__.p="",(()=>{var installedChunks={5354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(5354!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i