rechtspilot-ui 1.4.2 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/chunks-native.cjs +1 -1
  2. package/dist/chunks-native.js +426 -408
  3. package/dist/chunks.cjs +1 -1
  4. package/dist/chunks.js +23 -4
  5. package/dist/icons.cjs +1 -1
  6. package/dist/icons.d.ts +2 -0
  7. package/dist/icons.es.js +2 -2
  8. package/dist/icons.native.cjs +1 -1
  9. package/dist/icons.native.es.js +2 -2
  10. package/dist/index.cjs +96 -96
  11. package/dist/index.es.js +301 -301
  12. package/dist/index.native.cjs +3 -1
  13. package/dist/index.native.es.js +1056 -325
  14. package/dist/native/components/Badge/Badge.native.d.ts +10 -0
  15. package/dist/native/components/Button/Button.native.d.ts +3 -1
  16. package/dist/native/components/Card/Card.native.d.ts +12 -0
  17. package/dist/native/components/Divider/Divider.native.d.ts +2 -0
  18. package/dist/native/components/EmptyState/EmptyState.native.d.ts +9 -0
  19. package/dist/native/components/Input/Input.native.d.ts +12 -2
  20. package/dist/native/components/Letter/Letter.native.d.ts +69 -0
  21. package/dist/native/components/MenuItem/MenuItem.native.d.ts +10 -0
  22. package/dist/native/components/RadioCard/RadioCard.native.d.ts +11 -0
  23. package/dist/native/components/Sheet/Sheet.native.d.ts +5 -1
  24. package/dist/native/components/Spinner/Spinner.native.d.ts +2 -1
  25. package/dist/native/components/StepProgress/StepProgress.native.d.ts +12 -0
  26. package/dist/native/components/Toaster/Toaster.native.d.ts +1 -0
  27. package/dist/native/icons/Warning.d.ts +2 -0
  28. package/dist/native/icons/index.d.ts +1 -0
  29. package/dist/native/icons/index.native.d.ts +1 -0
  30. package/dist/native/icons/native/Warning.native.d.ts +2 -0
  31. package/dist/native/icons/toast/Error.native.d.ts +1 -0
  32. package/dist/native/icons/toast/Info.native.d.ts +1 -0
  33. package/dist/native/icons/toast/Success.native.d.ts +1 -0
  34. package/dist/native/icons/toast/Warning.native.d.ts +1 -0
  35. package/dist/native/index.native.d.ts +16 -0
  36. package/dist/native/lib/ui/command.d.ts +1 -1
  37. package/package.json +17 -2
@@ -1 +1,3 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks-native.cjs`);let t=require(`react`);t=e.Y(t,1);let n=require(`react-native`),r=require(`react-native-svg`),i=require(`react/jsx-runtime`),a=require(`react-native-safe-area-context`);function o({size:a=24,color:o=e.q.fg.primary,trackColor:s=e.q.neutral[`800-A08`],style:c}){let l=(0,t.useRef)(new n.Animated.Value(0)).current;(0,t.useEffect)(()=>{let e=n.Animated.loop(n.Animated.timing(l,{toValue:1,duration:1e3,easing:n.Easing.linear,useNativeDriver:!0}));return e.start(),()=>e.stop()},[l]);let u=l.interpolate({inputRange:[0,1],outputRange:[`0deg`,`360deg`]});return(0,i.jsx)(n.Animated.View,{style:[{width:a,height:a,transform:[{rotate:u}]},c],children:(0,i.jsxs)(r.Svg,{width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,children:[(0,i.jsx)(r.Circle,{cx:`12`,cy:`12`,r:`8`,stroke:s,strokeWidth:3,fill:`none`}),(0,i.jsx)(r.Path,{d:`M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5`,stroke:o,strokeWidth:3,strokeLinecap:`round`,fill:`none`})]})})}var s=t=>{let n={alignItems:`center`,borderRadius:12,borderWidth:1,flexDirection:`row`,height:48,justifyContent:`center`,paddingHorizontal:16},r={fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`500`,textAlign:`center`};switch(t){case`primary`:return{container:{...n,backgroundColor:e.q.primary[500],borderColor:e.q.neutral[`800-A16`]},text:{...r,color:e.q.primary[900]}};case`secondary`:return{container:{...n,backgroundColor:e.q.primary[900],borderColor:e.q.neutral[`800-A16`]},text:{...r,color:e.q.white}};case`tertiary`:return{container:{...n,backgroundColor:e.q.neutral[`800-A04`],borderColor:e.q.neutral[`800-A08`]},text:{...r,color:e.q.primary[900]}};case`destructive`:return{container:{...n,backgroundColor:e.q.fg.accent.error,borderColor:e.q.fg.accent.error},text:{...r,color:e.q.white}};case`destructiveSubtle`:return{container:{...n,backgroundColor:e.q.cream,borderColor:e.q.palePeach},text:{...r,color:e.q.fg.accent.error}}}};function c({variant:t=`primary`,fullWidth:r=!1,children:a,loading:c=!1,disabled:l=!1,onPress:u,...d}){let f=s(t);return(0,i.jsxs)(n.TouchableOpacity,{style:n.StyleSheet.flatten([f.container,r&&{width:`100%`},(l||c)&&{opacity:.4}]),onPress:u,disabled:l||c,activeOpacity:.7,...d,children:[typeof a==`string`?(0,i.jsx)(n.Text,{style:f.text,children:a}):a,c&&(0,i.jsx)(o,{size:16,color:t===`secondary`?e.q.primary[600]:t===`destructiveSubtle`?e.q.fg.accent.error:e.q.white})]})}var l={sm:32,md:40,lg:48},u={base:{backgroundColor:e.q.sf.base},primary:{backgroundColor:e.q.primary[`600-A08`]},outline:{borderWidth:1,borderColor:e.q.sf.base}},d={base:{backgroundColor:e.q.neutral[`800-A08`]},primary:{backgroundColor:e.q.primary[50]},outline:{backgroundColor:e.q.sf.tertiaryHover}};function f({children:e,size:t=`md`,variant:r=`base`,disabled:a=!1,hitSlop:o=10,...s}){let c=l[t],f={width:c,height:c,borderRadius:c/2,alignItems:`center`,justifyContent:`center`};return(0,i.jsx)(n.Pressable,{accessibilityRole:`button`,...s,style:({pressed:e})=>[f,u[r],e&&d[r],a&&{opacity:.4}],disabled:a,hitSlop:o,children:e})}var p=n.StyleSheet.create({container:{marginBottom:8},fieldContainer:{height:49,paddingHorizontal:12,borderRadius:12,flexDirection:`row`,alignItems:`center`,backgroundColor:e.q.bg.secondary,borderWidth:2,borderColor:e.q.bg.tertiary},fieldContainerError:{borderColor:e.q.fg.accent.error},fieldContainerFocused:{borderColor:e.q.fg.base},fieldContainerFocusedError:{borderColor:e.q.fg.accent.error},formGroup:{position:`relative`,paddingVertical:14,width:`100%`,height:`100%`,justifyContent:`center`},input:{width:`100%`,paddingTop:4,backgroundColor:`transparent`,fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.q.primary[900],paddingBottom:0},label:{position:`absolute`,left:0,fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.q.fg.tertiary},currencyPrefix:{fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`400`,color:e.q.fg.secondary,marginRight:4,alignSelf:`center`},labelFloating:{top:2,fontSize:12,color:e.q.fg.secondary},labelNormal:{top:`50%`,transform:[{translateY:-7.5}]},helper:{marginTop:4,fontSize:12,paddingHorizontal:4},helperError:{color:e.q.fg.accent.error},helperNormal:{color:e.q.fg.secondary}});function m({label:r,value:a=``,onChange:o,error:s,helperText:c,placeholder:l,secureTextEntry:u=!1,keyboardType:d,autoCapitalize:f=`sentences`,editable:m=!0,multiline:h=!1,numberOfLines:g=1,currency:_=!1,...v}){let[y,b]=(0,t.useState)(!1),x=a.length>0,S=y||x||_,C=[p.fieldContainer,s&&p.fieldContainerError,y&&!s&&p.fieldContainerFocused,y&&s&&p.fieldContainerFocusedError],w=[p.label,S?p.labelFloating:p.labelNormal],T=n.StyleSheet.flatten([p.input,h&&{height:g*20,textAlignVertical:`top`}]);return(0,i.jsxs)(n.View,{style:p.container,children:[(0,i.jsxs)(n.View,{style:C,children:[_&&(0,i.jsx)(n.Text,{style:p.currencyPrefix,children:`€`}),(0,i.jsxs)(n.View,{style:p.formGroup,children:[(0,i.jsx)(n.TextInput,{style:T,value:a,onChangeText:o,onFocus:()=>b(!0),onBlur:()=>b(!1),placeholder:S?l:``,placeholderTextColor:e.q.fg.tertiary,secureTextEntry:u,keyboardType:d??(_?`numeric`:`default`),autoCapitalize:f,editable:m,multiline:h,numberOfLines:g,...v}),(0,i.jsx)(n.Text,{style:w,children:r})]})]}),(s||c)&&(0,i.jsx)(n.Text,{style:[p.helper,s?p.helperError:p.helperNormal],children:s||c})]})}function h({label:r,value:a,onChange:o,options:s,error:c,disabled:l=!1}){let[u,d]=(0,t.useState)(!1);(0,t.useEffect)(()=>{s.length===1&&!a&&o(s[0].value)},[s,a]);let f=s.find(e=>e.value===a),p=c?e.q.fg.accent.error:u?e.q.fg.base:e.q.bg.tertiary;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.View,{style:g.container,children:[(0,i.jsxs)(n.Pressable,{style:[g.trigger,{borderColor:p},l&&g.triggerDisabled],onPress:()=>d(!0),disabled:l,accessibilityRole:`combobox`,accessibilityLabel:r,accessibilityState:{expanded:u,disabled:l},children:[(0,i.jsxs)(n.View,{style:g.triggerContent,children:[(0,i.jsx)(n.Text,{style:[g.labelText,f&&g.labelFloating],children:r}),f&&(0,i.jsx)(n.Text,{style:g.valueText,numberOfLines:1,children:f.text})]}),(0,i.jsx)(e.K,{direction:`down`,color:e.q.fg.secondary,size:`small`})]}),c&&(0,i.jsx)(n.Text,{style:g.errorText,children:c})]}),(0,i.jsx)(n.Modal,{visible:u,transparent:!0,animationType:`fade`,onRequestClose:()=>d(!1),children:(0,i.jsx)(n.Pressable,{style:g.backdrop,onPress:()=>d(!1),children:(0,i.jsxs)(n.View,{style:g.sheet,children:[(0,i.jsx)(n.View,{style:g.sheetHandle}),(0,i.jsx)(n.ScrollView,{bounces:!1,children:s.map(e=>{let t=e.value===a;return(0,i.jsx)(n.Pressable,{style:[g.option,t&&g.optionActive],onPress:()=>{o(e.value),d(!1)},accessibilityRole:`menuitem`,accessibilityState:{selected:t},children:(0,i.jsx)(n.Text,{style:[g.optionText,t&&g.optionTextActive],children:e.text})},e.value)})})]})})})]})}var g=n.StyleSheet.create({container:{marginBottom:8},trigger:{height:50,paddingHorizontal:12,borderRadius:12,flexDirection:`row`,alignItems:`center`,backgroundColor:e.q.bg.secondary,borderWidth:2},triggerDisabled:{opacity:.4},triggerContent:{flex:1,justifyContent:`center`},labelText:{fontFamily:e.J.body.fontFamily,fontSize:15,color:e.q.fg.tertiary},labelFloating:{fontSize:12,color:e.q.fg.secondary,marginBottom:2},valueText:{fontFamily:e.J.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.q.primary[900]},errorText:{marginTop:4,fontSize:12,paddingHorizontal:4,color:e.q.fg.accent.error,fontFamily:e.J.body.fontFamily},backdrop:{flex:1,backgroundColor:`rgba(0,0,0,0.4)`,justifyContent:`flex-end`},sheet:{backgroundColor:e.q.bg.base,borderTopLeftRadius:16,borderTopRightRadius:16,paddingBottom:32,maxHeight:`70%`},sheetHandle:{width:36,height:4,borderRadius:2,backgroundColor:e.q.border.default,alignSelf:`center`,marginTop:8,marginBottom:8},option:{paddingVertical:16,paddingHorizontal:20,borderBottomWidth:1,borderBottomColor:e.q.border.default},optionActive:{backgroundColor:e.q.primary[50]},optionText:{fontFamily:e.J.body.fontFamily,fontSize:15,color:e.q.fg.base},optionTextActive:{color:e.q.primary[900],fontWeight:`500`}}),_={heading:20,title:16,label:13,body:15,caption:12};function v({variant:t=`body`,color:r,style:a,...o}){return(0,i.jsx)(n.Text,{style:[e.J[t],{fontSize:_[t]},r?{color:r}:void 0,a],...o})}function y({open:t,onClose:r,onGoBack:o,title:s,children:c,footer:l}){let u=(0,a.useSafeAreaInsets)();return(0,i.jsx)(n.Modal,{visible:t,animationType:`slide`,presentationStyle:`pageSheet`,onRequestClose:r,children:(0,i.jsx)(n.KeyboardAvoidingView,{style:b.flex,behavior:n.Platform.OS===`ios`?`padding`:void 0,children:(0,i.jsxs)(n.View,{style:[b.container,{paddingTop:Math.max(u.top,16)}],children:[(0,i.jsxs)(n.View,{style:b.header,children:[(0,i.jsx)(n.View,{style:b.headerSide,children:o&&(0,i.jsx)(f,{variant:`base`,size:`md`,accessibilityLabel:`Go back`,onPress:o,children:(0,i.jsx)(e.K,{color:e.q.fg.secondary,direction:`left`})})}),s?(0,i.jsx)(v,{variant:`heading`,style:b.headerTitle,children:s}):(0,i.jsx)(n.View,{style:b.flex}),(0,i.jsx)(n.View,{style:[b.headerSide,b.headerSideRight],children:(0,i.jsx)(f,{variant:`base`,size:`md`,accessibilityLabel:`Close`,onPress:r,children:(0,i.jsx)(e.G,{color:e.q.fg.secondary,size:`small`})})})]}),(0,i.jsx)(n.ScrollView,{style:b.flex,contentContainerStyle:b.body,children:c}),l&&(0,i.jsx)(n.View,{style:b.footer,children:l})]})})})}var b=n.StyleSheet.create({flex:{flex:1},container:{flex:1,backgroundColor:e.q.bg.base},header:{flexDirection:`row`,alignItems:`center`,paddingHorizontal:8,paddingBottom:8,minHeight:52},headerSide:{flex:1},headerSideRight:{alignItems:`flex-end`},headerTitle:{flex:2,textAlign:`center`},body:{paddingHorizontal:20,paddingBottom:20},footer:{paddingHorizontal:20,paddingVertical:24,borderTopWidth:1,borderTopColor:e.q.border.default}}),x=()=>{let[e,n]=(0,t.useState)(window.innerWidth<=768),r=(0,t.useRef)(window.innerWidth);return(0,t.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<=768&&r.current>768?n(!0):e>768&&r.current<=768&&n(!1),r.current=e};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e},S=1,C=1e6,w=0;function T(){return w=(w+1)%(2**53-1),w.toString()}var E=new Map,D=e=>{if(E.has(e))return;let t=setTimeout(()=>{E.delete(e),j({type:`REMOVE_TOAST`,toastId:e})},C);E.set(e,t)},O=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,S)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?D(n):e.toasts.forEach(e=>{D(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},k=[],A={toasts:[]};function j(e){A=O(A,e),k.forEach(e=>{e(A)})}function M({...e}){let t=T(),n=e=>j({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>j({type:`DISMISS_TOAST`,toastId:t});return j({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function N(){let[e,n]=t.useState(A);return t.useEffect(()=>(k.push(n),()=>{let e=k.indexOf(n);e>-1&&k.splice(e,1)}),[e]),{...e,toast:M,dismiss:e=>j({type:`DISMISS_TOAST`,toastId:e})}}exports.Button=c,exports.IconButton=f,exports.Input=m,exports.Select=h,exports.Sheet=y,exports.Spinner=o,exports.Text=v,exports.colors=e.q,Object.defineProperty(exports,`icons`,{enumerable:!0,get:function(){return e.t}}),exports.typography=e.J,exports.useIsMobile=x,exports.useToast=N;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./chunks-native.cjs`);let t=require(`react`);t=e.X(t,1);let n=require(`react-native`),r=require(`react/jsx-runtime`),i=require(`react-native-svg`),a=require(`react-native-paper`),o=require(`react-native-keyboard-controller`),s=require(`react-native-safe-area-context`);var c={heading:20,title:16,label:13,body:15,caption:12};function l({variant:t=`body`,color:i,style:a,...o}){return(0,r.jsx)(n.Text,{style:[e.Y[t],{fontSize:c[t]},i?{color:i}:void 0,a],...o})}function u({icon:t,children:i,backgroundColor:a=e.J.neutral[`800-A08`],textColor:o=e.J.fg.primary,style:s}){return(0,r.jsxs)(n.View,{style:[d.badge,{backgroundColor:a},s],children:[t,(0,r.jsx)(l,{variant:`label`,color:o,style:d.label,children:i})]})}var d=n.StyleSheet.create({badge:{flexDirection:`row`,alignItems:`center`,gap:4,height:30,paddingHorizontal:6,borderRadius:8},label:{textTransform:`uppercase`}});function f({size:a=24,color:o=e.J.fg.primary,trackColor:s=e.J.neutral[`800-A08`],duration:c=1e3,style:l}){let u=(0,t.useRef)(new n.Animated.Value(0)).current;(0,t.useEffect)(()=>{u.setValue(0);let e=n.Animated.loop(n.Animated.timing(u,{toValue:1,duration:c,easing:n.Easing.linear,useNativeDriver:!0}));return e.start(),()=>e.stop()},[u,c]);let d=u.interpolate({inputRange:[0,1],outputRange:[`0deg`,`360deg`]});return(0,r.jsx)(n.Animated.View,{style:[{width:a,height:a,transform:[{rotate:d}]},l],children:(0,r.jsxs)(i.Svg,{width:a,height:a,viewBox:`0 0 24 24`,fill:`none`,children:[(0,r.jsx)(i.Circle,{cx:`12`,cy:`12`,r:`8`,stroke:s,strokeWidth:3,fill:`none`}),(0,r.jsx)(i.Path,{d:`M12 4C16.4183 4 20 7.58172 20 12C20 14.1304 19.1672 16.0663 17.8095 17.5`,stroke:o,strokeWidth:3,strokeLinecap:`round`,fill:`none`})]})})}var p=t=>{let n={alignItems:`center`,borderRadius:12,borderWidth:1,flexDirection:`row`,height:48,justifyContent:`center`,paddingHorizontal:16},r={fontFamily:e.Y.body.fontFamily,fontSize:15,fontWeight:`500`,textAlign:`center`};switch(t){case`primary`:return{container:{...n,backgroundColor:e.J.primary[500],borderColor:e.J.neutral[`800-A16`]},text:{...r,color:e.J.primary[900]}};case`secondary`:return{container:{...n,backgroundColor:e.J.primary[900],borderColor:e.J.neutral[`800-A16`]},text:{...r,color:e.J.white}};case`tertiary`:return{container:{...n,backgroundColor:e.J.neutral[`800-A04`],borderColor:e.J.neutral[`800-A08`]},text:{...r,color:e.J.primary[900]}};case`destructive`:return{container:{...n,backgroundColor:e.J.fg.accent.error,borderColor:e.J.fg.accent.error},text:{...r,color:e.J.white}};case`destructiveSubtle`:return{container:{...n,backgroundColor:e.J.cream,borderColor:e.J.palePeach},text:{...r,color:e.J.fg.accent.error}}}};function m({variant:t=`primary`,fullWidth:i=!1,children:a,loading:o=!1,disabled:s=!1,onPress:c,style:l,...u}){let d=p(t);return(0,r.jsxs)(n.TouchableOpacity,{style:[d.container,i&&{width:`100%`},(s||o)&&{opacity:.4},l],onPress:c,disabled:s||o,activeOpacity:.7,...u,children:[typeof a==`string`?(0,r.jsx)(n.Text,{style:d.text,children:a}):a,o&&(0,r.jsx)(f,{size:16,color:t===`secondary`?e.J.primary[600]:t===`destructiveSubtle`?e.J.fg.accent.error:e.J.white})]})}var h={outlined:{backgroundColor:e.J.white,borderWidth:1,borderColor:e.J.neutral[`800-A08`]},tinted:{backgroundColor:e.J.primary[`600-A08`]},elevated:{backgroundColor:e.J.bg.base,shadowColor:e.J.black,shadowOpacity:.24,shadowRadius:16,shadowOffset:{width:0,height:0},elevation:8}};function g({variant:e=`outlined`,radius:t=16,padding:i=16,backgroundColor:a,style:o,children:s}){return(0,r.jsx)(n.View,{style:[_.base,h[e],{borderRadius:t,padding:i},a?{backgroundColor:a}:void 0,o],children:s})}var _=n.StyleSheet.create({base:{width:`100%`}});function v({style:e,...t}){return(0,r.jsx)(n.View,{style:[y.divider,e],...t})}var y=n.StyleSheet.create({divider:{height:1,width:`100%`,backgroundColor:e.J.border.default,marginVertical:12}});function b({icon:t,title:i,description:a,actionLabel:o,onAction:s}){return(0,r.jsxs)(n.View,{style:x.container,children:[t,(0,r.jsx)(l,{variant:`title`,style:x.title,children:i}),a&&(0,r.jsx)(l,{variant:`body`,color:e.J.fg.secondary,style:x.description,children:a}),o&&s&&(0,r.jsx)(n.View,{style:x.action,children:(0,r.jsx)(m,{variant:`secondary`,onPress:s,children:o})})]})}var x=n.StyleSheet.create({container:{alignItems:`center`,justifyContent:`center`,padding:24},title:{marginTop:12,textAlign:`center`},description:{marginTop:4,textAlign:`center`},action:{marginTop:16}}),S={sm:32,md:40,lg:48},C={base:{backgroundColor:e.J.sf.base},primary:{backgroundColor:e.J.primary[`600-A08`]},outline:{borderWidth:1,borderColor:e.J.sf.base}},ee={base:{backgroundColor:e.J.neutral[`800-A08`]},primary:{backgroundColor:e.J.primary[50]},outline:{backgroundColor:e.J.sf.tertiaryHover}};function w({children:e,size:t=`md`,variant:i=`base`,disabled:a=!1,hitSlop:o=10,...s}){let c=S[t],l={width:c,height:c,borderRadius:c/2,alignItems:`center`,justifyContent:`center`};return(0,r.jsx)(n.Pressable,{accessibilityRole:`button`,...s,style:({pressed:e})=>[l,C[i],e&&ee[i],a&&{opacity:.4}],disabled:a,hitSlop:o,children:e})}function te({label:t,value:i=``,onChange:o,onFocus:s,onBlur:c,error:l,helperText:u,placeholder:d,secureTextEntry:f=!1,keyboardType:p,autoCapitalize:m,autoComplete:h,autoCorrect:g,textContentType:_,editable:v=!0,multiline:y=!1,numberOfLines:b,currency:x=!1,prefix:S}){return(0,r.jsxs)(n.View,{style:T.container,children:[(0,r.jsx)(a.TextInput,{label:t,value:i,onChangeText:o,onFocus:s,onBlur:c,error:!!l,editable:v,mode:`outlined`,placeholder:d,keyboardType:p??(x?`numeric`:`default`),secureTextEntry:f,autoCapitalize:m,autoComplete:h,autoCorrect:g,textContentType:_,multiline:y,numberOfLines:b,left:x?(0,r.jsx)(a.TextInput.Affix,{text:`€`}):S?(0,r.jsx)(a.TextInput.Affix,{text:S}):void 0,style:[T.input,y&&T.inputMultiline],outlineStyle:[T.outline,l&&T.outlineError],theme:{colors:{primary:e.J.fg.base,error:e.J.fg.accent.error,onSurfaceVariant:e.J.fg.tertiary,onSurface:e.J.primary[900]}},contentStyle:T.content,textColor:e.J.primary[900]}),(l||u)&&(0,r.jsx)(a.HelperText,{type:l?`error`:`info`,visible:!!(l||u),style:T.helperText,children:l||u})]})}var T=n.StyleSheet.create({container:{width:`100%`},input:{backgroundColor:e.J.bg.secondary,fontSize:15,minHeight:49},inputMultiline:{textAlignVertical:`top`},outline:{borderRadius:12,borderWidth:2,borderColor:e.J.bg.tertiary},outlineError:{borderColor:e.J.fg.accent.error},content:{fontFamily:e.Y.body.fontFamily},helperText:{fontFamily:e.Y.body.fontFamily,fontSize:12}}),ne=96/25.4,E=96/72,D=(e,t)=>e*ne*t,O=(e,t)=>e*E*t,k=e.Y.body.fontFamily,A=e=>(e??``).replace(/<br\s*\/?>/gi,`
2
+ `).replace(/<[^>]+>/g,``),j=(0,t.createContext)(1);function M(e){let n=(0,t.useContext)(j);return e??n}function re({children:e}){return(0,r.jsx)(r.Fragment,{children:e||`Date`})}function ie({children:e}){return(0,r.jsx)(r.Fragment,{children:e||`Sehr geehrte Damen und Herren`})}function ae({children:e}){return(0,r.jsx)(r.Fragment,{children:e||`Mit freundlichen Grüßen`})}function oe({address:t,children:i,scale:a}){let o=M(a);return!i&&!t?null:(0,r.jsx)(n.Text,{style:{position:`absolute`,top:D(45,o),left:D(15,o),width:D(100,o),height:D(8,o),fontFamily:k,fontSize:O(9,o),lineHeight:O(9*1.22,o),color:e.J.black},children:i||A(t)})}function se({address:t,children:i,scale:a}){let o=M(a);return(0,r.jsx)(n.Text,{style:{position:`absolute`,top:D(72,o),left:D(15,o),width:D(85,o),height:D(32,o),fontFamily:k,fontSize:O(9,o),lineHeight:O(9*1.22,o),color:e.J.black},children:i||A(t)})}function ce({address:t,children:i,scale:a}){let o=M(a);return(0,r.jsx)(n.Text,{style:{position:`absolute`,top:D(20,o),left:D(105,o),width:D(90,o),textAlign:`right`,fontFamily:k,fontSize:O(10,o),lineHeight:O(10*1.22,o),color:e.J.black},children:i||A(t)})}var N=[195.7333333333,185.149999999,174.566666665,163.983333331];function le({identificationFields:t=[],children:i,scale:a}){let o=M(a);return!i&&t.length===0?null:i?(0,r.jsx)(r.Fragment,{children:i}):(0,r.jsx)(r.Fragment,{children:t.slice(0,N.length).map((t,i)=>(0,r.jsx)(n.View,{style:{position:`absolute`,right:D(15,o),width:D(95.25,o),height:D(42.9166666667,o),bottom:D(N[i],o)},children:(0,r.jsxs)(n.Text,{style:{textAlign:`right`,fontFamily:k,fontSize:O(10,o),lineHeight:O(10*1.22,o),color:e.J.black},children:[t.label,`
3
+ `,(0,r.jsx)(n.Text,{style:{fontWeight:`bold`},children:t.value})]})},i))})}function ue({date:t,children:i,scale:a}){let o=M(a);return!i&&!t?null:(0,r.jsx)(n.Text,{style:{position:`absolute`,right:D(15,o),width:D(95.25,o),height:D(42.9166666667,o),bottom:D(153.872222,o),textAlign:`right`,fontFamily:k,fontSize:O(10,o),lineHeight:O(10*1.22,o),color:e.J.black},children:i||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(re,{}),`: `,t]})})}function de({letterSubject:t,letterText:i,userFullName:a,children:o,scale:s}){let c=M(s);return(0,r.jsx)(n.View,{style:{position:`absolute`,top:D(105,c),left:D(15,c),width:D(175,c)},children:o||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.Text,{style:{fontFamily:k,fontSize:O(10,c),fontWeight:`700`,color:e.J.black},children:t}),(0,r.jsxs)(n.Text,{style:{marginVertical:D(5.2916666667,c),fontFamily:k,fontSize:O(10,c),color:e.J.black},children:[(0,r.jsx)(ie,{}),`,`]}),(0,r.jsx)(n.Text,{style:{fontFamily:k,fontSize:O(10,c),lineHeight:O(13,c),color:e.J.black},children:A(i)}),(0,r.jsx)(n.Text,{style:{marginVertical:D(5.2916666667,c),fontFamily:k,fontSize:O(10,c),color:e.J.black},children:(0,r.jsx)(ae,{})}),(0,r.jsx)(n.Text,{style:{marginVertical:D(5.2916666667,c),fontFamily:k,fontSize:O(10,c),color:e.J.black},children:a})]})})}function fe({senderAddressSlim:t,vendorAddress:i,senderAddress:a,identificationFields:o=[],date:s,letterSubject:c,letterText:l,userFullName:u,scale:d=1,children:f}){return(0,r.jsx)(j.Provider,{value:d,children:(0,r.jsx)(n.View,{style:{width:D(210,d),height:D(297,d),backgroundColor:e.J.white},children:f||(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(oe,{address:t}),(0,r.jsx)(se,{address:i}),(0,r.jsx)(ce,{address:a}),(0,r.jsx)(le,{identificationFields:o}),(0,r.jsx)(ue,{date:s}),(0,r.jsx)(de,{letterSubject:c,letterText:l,userFullName:u})]})})})}function pe({label:t,onPress:i,icon:a,destructive:o=!1,loading:s=!1,disabled:c=!1}){let u=o?e.J.fg.accent.error:e.J.fg.accent.action;return(0,r.jsxs)(n.Pressable,{accessibilityRole:`menuitem`,accessibilityState:{disabled:c||s},onPress:i,disabled:c||s,style:[P.row,(c||s)&&P.disabled],children:[a,(0,r.jsx)(l,{variant:`label`,color:u,style:P.label,children:t}),s&&(0,r.jsx)(f,{size:18,color:u})]})}var P=n.StyleSheet.create({row:{flexDirection:`row`,alignItems:`center`,gap:8,paddingVertical:12,paddingHorizontal:16},label:{flex:1},disabled:{opacity:.4}});function me({selected:t,onSelect:i,icon:a,title:o,description:s,trailing:c,disabled:u=!1}){return(0,r.jsxs)(n.Pressable,{accessibilityRole:`radio`,accessibilityState:{checked:t,disabled:u},onPress:i,disabled:u,style:[F.card,t&&F.cardSelected,u&&F.cardDisabled],children:[(0,r.jsx)(n.View,{style:[F.indicator,t&&F.indicatorSelected],children:t&&(0,r.jsx)(e.q,{size:`small`,color:e.J.white})}),(0,r.jsxs)(n.View,{style:F.content,children:[(0,r.jsxs)(n.View,{style:F.titleRow,children:[a,(0,r.jsx)(l,{variant:`label`,style:F.title,children:o}),c]}),s&&(0,r.jsx)(l,{variant:`body`,color:e.J.fg.secondary,children:s})]})]})}var F=n.StyleSheet.create({card:{minHeight:110,width:`100%`,flexDirection:`row`,alignItems:`center`,gap:12,borderRadius:20,borderWidth:1,borderColor:e.J.neutral[`800-A08`],backgroundColor:e.J.white,padding:16},cardSelected:{borderWidth:2,borderColor:e.J.border.action,backgroundColor:e.J.primary[`600-A08`]},cardDisabled:{opacity:.4},indicator:{width:20,height:20,borderRadius:10,borderWidth:2,borderColor:e.J.neutral[`800-A16`],alignItems:`center`,justifyContent:`center`},indicatorSelected:{borderWidth:0,backgroundColor:e.J.border.action},content:{flex:1,gap:4},titleRow:{flexDirection:`row`,alignItems:`center`,gap:8},title:{flex:1}});function I({label:i,value:a,onChange:o,options:s,error:c,disabled:l=!1}){let[u,d]=(0,t.useState)(!1);(0,t.useEffect)(()=>{s.length===1&&!a&&o(s[0].value)},[s,a]);let f=s.find(e=>e.value===a),p=c?e.J.fg.accent.error:u?e.J.fg.base:e.J.bg.tertiary;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.View,{style:L.container,children:[(0,r.jsxs)(n.Pressable,{style:[L.trigger,{borderColor:p},l&&L.triggerDisabled],onPress:()=>d(!0),disabled:l,accessibilityRole:`combobox`,accessibilityLabel:i,accessibilityState:{expanded:u,disabled:l},children:[(0,r.jsxs)(n.View,{style:L.triggerContent,children:[(0,r.jsx)(n.Text,{style:[L.labelText,f&&L.labelFloating],children:i}),f&&(0,r.jsx)(n.Text,{style:L.valueText,numberOfLines:1,children:f.text})]}),(0,r.jsx)(e.K,{direction:`down`,color:e.J.fg.secondary,size:`small`})]}),c&&(0,r.jsx)(n.Text,{style:L.errorText,children:c})]}),(0,r.jsx)(n.Modal,{visible:u,transparent:!0,animationType:`fade`,onRequestClose:()=>d(!1),children:(0,r.jsx)(n.Pressable,{style:L.backdrop,onPress:()=>d(!1),children:(0,r.jsxs)(n.View,{style:L.sheet,children:[(0,r.jsx)(n.View,{style:L.sheetHandle}),(0,r.jsx)(n.ScrollView,{bounces:!1,children:s.map(e=>{let t=e.value===a;return(0,r.jsx)(n.Pressable,{style:[L.option,t&&L.optionActive],onPress:()=>{o(e.value),d(!1)},accessibilityRole:`menuitem`,accessibilityState:{selected:t},children:(0,r.jsx)(n.Text,{style:[L.optionText,t&&L.optionTextActive],children:e.text})},e.value)})})]})})})]})}var L=n.StyleSheet.create({container:{marginBottom:8},trigger:{height:50,paddingHorizontal:12,borderRadius:12,flexDirection:`row`,alignItems:`center`,backgroundColor:e.J.bg.secondary,borderWidth:2},triggerDisabled:{opacity:.4},triggerContent:{flex:1,justifyContent:`center`},labelText:{fontFamily:e.Y.body.fontFamily,fontSize:15,color:e.J.fg.tertiary},labelFloating:{fontSize:12,color:e.J.fg.secondary,marginBottom:2},valueText:{fontFamily:e.Y.body.fontFamily,fontSize:15,fontWeight:`500`,color:e.J.primary[900]},errorText:{marginTop:4,fontSize:12,paddingHorizontal:4,color:e.J.fg.accent.error,fontFamily:e.Y.body.fontFamily},backdrop:{flex:1,backgroundColor:`rgba(0,0,0,0.4)`,justifyContent:`flex-end`},sheet:{backgroundColor:e.J.bg.base,borderTopLeftRadius:16,borderTopRightRadius:16,paddingBottom:32,maxHeight:`70%`},sheetHandle:{width:36,height:4,borderRadius:2,backgroundColor:e.J.border.default,alignSelf:`center`,marginTop:8,marginBottom:8},option:{paddingVertical:16,paddingHorizontal:20,borderBottomWidth:1,borderBottomColor:e.J.border.default},optionActive:{backgroundColor:e.J.primary[50]},optionText:{fontFamily:e.Y.body.fontFamily,fontSize:15,color:e.J.fg.base},optionTextActive:{color:e.J.primary[900],fontWeight:`500`}});function R({open:i,onClose:a,onDismiss:c,onGoBack:u,title:d,children:f,footer:p,background:m,headerBackgroundColor:h,closeDisabled:g}){let _=(0,s.useSafeAreaInsets)(),v=(0,t.useRef)(i);return(0,t.useEffect)(()=>{let e=v.current;if(v.current=i,n.Platform.OS===`android`&&e&&!i){let e=setTimeout(()=>c?.(),300);return()=>clearTimeout(e)}},[i,c]),(0,r.jsx)(n.Modal,{visible:i,animationType:`slide`,presentationStyle:`pageSheet`,onRequestClose:()=>{g||a()},onDismiss:n.Platform.OS===`ios`?c:void 0,children:(0,r.jsx)(o.KeyboardAvoidingView,{style:z.flex,behavior:`padding`,automaticOffset:!0,children:(0,r.jsxs)(n.View,{style:[z.container,{paddingTop:Math.max(_.top,16),paddingBottom:_.bottom}],children:[m&&(0,r.jsx)(n.View,{style:n.StyleSheet.absoluteFillObject,children:m}),(0,r.jsxs)(n.View,{style:[z.header,h?{backgroundColor:h}:void 0],children:[(0,r.jsx)(n.View,{style:z.headerSide,children:u&&(0,r.jsx)(w,{variant:`base`,size:`md`,accessibilityLabel:`Go back`,onPress:u,children:(0,r.jsx)(e.K,{color:e.J.fg.secondary,direction:`left`})})}),d?(0,r.jsx)(l,{variant:`heading`,style:z.headerTitle,children:d}):(0,r.jsx)(n.View,{style:z.flex}),(0,r.jsx)(n.View,{style:[z.headerSide,z.headerSideRight],children:(0,r.jsx)(w,{variant:`base`,size:`md`,accessibilityLabel:`Close`,onPress:a,disabled:g,children:(0,r.jsx)(e.G,{color:e.J.fg.secondary,size:`small`})})})]}),(0,r.jsx)(n.ScrollView,{style:z.flex,contentContainerStyle:z.body,keyboardDismissMode:`on-drag`,keyboardShouldPersistTaps:`handled`,children:f}),p&&(0,r.jsx)(n.View,{style:z.footer,children:p})]})})})}var z=n.StyleSheet.create({flex:{flex:1},container:{flex:1,backgroundColor:e.J.bg.base},header:{flexDirection:`row`,alignItems:`center`,paddingHorizontal:8,paddingBottom:8,minHeight:52},headerSide:{flex:1},headerSideRight:{alignItems:`flex-end`},headerTitle:{flex:2,textAlign:`center`},body:{flexGrow:1,paddingHorizontal:20,paddingBottom:20},footer:{paddingHorizontal:20,paddingVertical:24,borderTopWidth:1,borderTopColor:e.J.border.default}}),B=24,V=8,H=12,U=2*Math.PI*V,he=n.Animated.createAnimatedComponent(i.Circle);function ge(){return(0,r.jsx)(i.Svg,{width:B,height:B,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Circle,{cx:H,cy:H,r:V,stroke:e.J.neutral[`800-A16`],strokeWidth:3,fill:`none`})})}function _e({durationMs:a=1500}){let o=(0,t.useRef)(new n.Animated.Value(0)).current;(0,t.useEffect)(()=>{o.setValue(0);let e=n.Animated.timing(o,{toValue:1,duration:a,useNativeDriver:!1});return e.start(),()=>e.stop()},[o,a]);let s=o.interpolate({inputRange:[0,1],outputRange:[U,0]});return(0,r.jsxs)(i.Svg,{width:B,height:B,viewBox:`0 0 24 24`,fill:`none`,children:[(0,r.jsx)(i.Circle,{cx:H,cy:H,r:V,stroke:e.J.neutral[`800-A16`],strokeWidth:3,fill:`none`}),(0,r.jsx)(he,{cx:H,cy:H,r:V,stroke:e.J.fg.accent.action,strokeWidth:3,fill:`none`,strokeDasharray:U,strokeDashoffset:s,strokeLinecap:`round`,rotation:`-90`,origin:`${H}, ${H}`})]})}function ve({state:t,mode:n=`determinate`,durationMs:i}){switch(t){case`pending`:return(0,r.jsx)(ge,{});case`loading`:return n===`indeterminate`?(0,r.jsx)(f,{size:B,color:e.J.fg.accent.action,trackColor:e.J.neutral[`800-A16`],duration:i}):(0,r.jsx)(_e,{durationMs:i});case`complete`:return(0,r.jsx)(e.q,{size:B,color:e.J.fg.accent.action});case`error`:return(0,r.jsx)(e.W,{size:B,color:e.J.fg.accent.error})}}function ye({steps:t}){return(0,r.jsx)(n.View,{style:W.container,children:t.map((t,i)=>(0,r.jsxs)(n.View,{style:W.row,children:[(0,r.jsx)(n.View,{style:W.iconSlot,children:(0,r.jsx)(ve,{state:t.state,mode:t.mode,durationMs:t.durationMs})}),(0,r.jsx)(l,{variant:`body`,color:t.state===`error`?e.J.fg.accent.error:void 0,children:t.label})]},i))})}var W=n.StyleSheet.create({container:{gap:12},row:{flexDirection:`row`,alignItems:`center`,gap:12},iconSlot:{width:B,height:B,alignItems:`center`,justifyContent:`center`}}),be=1,xe=1e6,G=0;function Se(){return G=(G+1)%(2**53-1),G.toString()}var K=new Map,q=e=>{if(K.has(e))return;let t=setTimeout(()=>{K.delete(e),X({type:`REMOVE_TOAST`,toastId:e})},xe);K.set(e,t)},Ce=(e,t)=>{switch(t.type){case`ADD_TOAST`:return{...e,toasts:[t.toast,...e.toasts].slice(0,be)};case`UPDATE_TOAST`:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case`DISMISS_TOAST`:{let{toastId:n}=t;return n?q(n):e.toasts.forEach(e=>{q(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||n===void 0?{...e,open:!1}:e)}}case`REMOVE_TOAST`:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},J=[],Y={toasts:[]};function X(e){Y=Ce(Y,e),J.forEach(e=>{e(Y)})}function we({...e}){let t=Se(),n=e=>X({type:`UPDATE_TOAST`,toast:{...e,id:t}}),r=()=>X({type:`DISMISS_TOAST`,toastId:t});return X({type:`ADD_TOAST`,toast:{...e,id:t,open:!0,onOpenChange:e=>{e||r()}}}),{id:t,dismiss:r,update:n}}function Z(){let[e,n]=t.useState(Y);return t.useEffect(()=>(J.push(n),()=>{let e=J.indexOf(n);e>-1&&J.splice(e,1)}),[e]),{...e,toast:we,dismiss:e=>X({type:`DISMISS_TOAST`,toastId:e})}}function Te(){return(0,r.jsx)(i.Svg,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Path,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM9 7.58579L7.58579 9L10.5858 12L7.58579 15L9 16.4142L12 13.4142L15 16.4142L16.4142 15L13.4142 12L16.4142 9L15 7.58579L12 10.5858L9 7.58579Z`,fill:`#FE4C00`})})}function Ee(){return(0,r.jsx)(i.Svg,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Path,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM10 10H13V17H11V12H10V10ZM11 9V7H13V9H11Z`,fill:`#9DA7A2`})})}function De(){return(0,r.jsx)(i.Svg,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Path,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 21.9996C17.5228 21.9996 22 17.5225 22 11.9996C22 6.47679 17.5228 1.99963 12 1.99963C6.47715 1.99963 2 6.47679 2 11.9996C2 17.5225 6.47715 21.9996 12 21.9996ZM10.5744 16.4881L16.4073 9.35888L14.8594 8.09241L10.4259 13.5112L8.50015 11.5854L7.08594 12.9996L10.5744 16.4881Z`,fill:`#3B872C`})})}function Oe(){return(0,r.jsx)(i.Svg,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:(0,r.jsx)(i.Path,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.7367 4.53861C12.9689 3.19498 11.0315 3.19498 10.2637 4.53861L1.71007 19.5075C0.948179 20.8408 1.91091 22.4998 3.44656 22.4998H20.5538C22.0895 22.4998 23.0522 20.8408 22.2903 19.5075L13.7367 4.53861ZM11 9.49997H13V15.5H11V9.49997ZM11 17.5H13V19.5H11V17.5Z`,fill:`#FEA900`})})}var Q={success:{background:e.J.sf.light.action,color:e.J.fg.accent.action},error:{background:e.J.sf.light.error,color:e.J.fg.accent.error},info:{background:e.J.sf.light.tertiary,color:e.J.fg.base},warning:{background:e.J.sf.light.warning,color:e.J.fg.accent.warning}};function ke({variant:e}){switch(e){case`success`:return(0,r.jsx)(De,{});case`error`:return(0,r.jsx)(Te,{});case`warning`:return(0,r.jsx)(Oe,{});default:return(0,r.jsx)(Ee,{})}}var Ae=5e3;function je({id:i,title:a,description:o,variant:s=`info`,duration:c,onDismiss:u}){let{background:d,color:f}=Q[s],p=(0,t.useRef)(new n.Animated.Value(0)).current;(0,t.useEffect)(()=>{let e=n.Animated.timing(p,{toValue:1,duration:200,useNativeDriver:!0});return e.start(),()=>e.stop()},[p]);let m=(0,t.useRef)(u);m.current=u,(0,t.useEffect)(()=>{let e=setTimeout(()=>m.current(i),c??Ae);return()=>clearTimeout(e)},[i,c]);let h=p.interpolate({inputRange:[0,1],outputRange:[16,0]});return(0,r.jsxs)(n.Animated.View,{style:[$.card,{backgroundColor:d,opacity:p,transform:[{translateY:h}]}],children:[(0,r.jsx)(n.View,{style:$.iconWrapper,children:(0,r.jsx)(ke,{variant:s})}),(0,r.jsxs)(n.View,{style:$.content,children:[a&&(0,r.jsx)(l,{variant:`label`,color:f,children:a}),o&&(0,r.jsx)(l,{variant:`body`,color:f,style:$.description,children:o})]}),(0,r.jsx)(w,{size:`sm`,accessibilityLabel:`Dismiss`,onPress:()=>u(i),children:(0,r.jsx)(e.G,{size:`small`,color:f})})]})}function Me(){let{toasts:e,dismiss:t}=Z(),i=(0,s.useSafeAreaInsets)(),a=e.filter(e=>e.open!==!1);return a.length===0?null:(0,r.jsx)(n.View,{style:[$.container,{bottom:Math.max(i.bottom,16)}],pointerEvents:`box-none`,children:a.map(e=>(0,r.jsx)(je,{id:e.id,title:e.title,description:e.description,variant:e.variant,duration:e.duration,onDismiss:t},e.id))})}var $=n.StyleSheet.create({container:{position:`absolute`,left:0,right:0,alignItems:`center`,paddingHorizontal:16},card:{width:`100%`,flexDirection:`row`,alignItems:`center`,gap:8,borderRadius:16,padding:12,shadowColor:e.J.black,shadowOpacity:.04,shadowRadius:16,shadowOffset:{width:0,height:0},elevation:4},iconWrapper:{width:24,height:24,alignItems:`center`,justifyContent:`center`},content:{flex:1},description:{fontSize:13}}),Ne=()=>{let[e,n]=(0,t.useState)(window.innerWidth<=768),r=(0,t.useRef)(window.innerWidth);return(0,t.useEffect)(()=>{let e=()=>{let e=window.innerWidth;e<=768&&r.current>768?n(!0):e>768&&r.current<=768&&n(!1),r.current=e};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),e};exports.Badge=u,exports.Button=m,exports.Card=g,exports.Divider=v,exports.EmptyState=b,exports.IconButton=w,exports.Input=te,exports.Letter=fe,exports.MenuItem=pe,exports.RadioCard=me,exports.Select=I,exports.Sheet=R,exports.Spinner=f,exports.StepProgress=ye,exports.Text=l,exports.Toaster=Me,exports.colors=e.J,Object.defineProperty(exports,`icons`,{enumerable:!0,get:function(){return e.t}}),exports.typography=e.Y,exports.useIsMobile=Ne,exports.useToast=Z;