UNPKG

@rdsaude/pulso-react-native-components

Version:

Biblioteca de componentes React Native do Pulso Design System da RD Saúde oferece componentes consistentes e de alto desempenho, alinhados com os padrões da RDSaúde. Ideal para desenvolver aplicações modernas e acessíveis.

1 lines 418 kB
var p0=Object.defineProperty,d0=Object.defineProperties;var c0=Object.getOwnPropertyDescriptors;var S2=Object.getOwnPropertySymbols;var g3=Object.prototype.hasOwnProperty,m3=Object.prototype.propertyIsEnumerable;var f3=(o,e,t)=>e in o?p0(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,n=(o,e)=>{for(var t in e||(e={}))g3.call(e,t)&&f3(o,t,e[t]);if(S2)for(var t of S2(e))m3.call(e,t)&&f3(o,t,e[t]);return o},C=(o,e)=>d0(o,c0(e));var T=(o,e)=>{var t={};for(var r in o)g3.call(o,r)&&e.indexOf(r)<0&&(t[r]=o[r]);if(o!=null&&S2)for(var r of S2(o))e.indexOf(r)<0&&m3.call(o,r)&&(t[r]=o[r]);return t};import{createContext as u0,useMemo as f0}from"react";import{DROGASIL_TOKENS as g0,GLOBALS_TOKENS as m0,PRIME_TOKENS as b0,RAIA_TOKENS as y0,RDSAUDESISTEMAS_TOKENS as S0,SUBSCRIPTION_TOKENS as L0,rnFontFamily as T0}from"@raiadrogasil/pulso-design-tokens";import{jsx as K4}from"react/jsx-runtime";var Y4=u0({});function b3({theme:o,children:e}){let t=f0(()=>n(C(n({},{rdsaudesistemas:S0,drogasil:g0,raia:y0,subscription:L0,prime:b0}[o]),{fontFamily:n({},T0)}),m0),[o]);return K4(Y4.Provider,{value:t,children:e})}function x0(o,e){return function(r){return K4(b3,{theme:e,children:K4(o,n({},r))})}}import q4,{useState as X0}from"react";import{Pressable as D0}from"react-native";import{createElement as P0,forwardRef as H0}from"react";import{StyleSheet as h0}from"react-native";import{useContext as I0}from"react";function U(){let o=I0(Y4);if(!o)throw new Error("useTheme deve ser usado dentro de um ThemeProvider do Pulso.");return o}function l(o,e){let t=H0((r,i)=>{let s=U(),{base:a,variants:p={},compoundVariants:d=[]}=typeof e=="function"?e(s):e,u=M0(r,p,d),f=V0(a,u),c=[...Object.values(f),r.style].filter(Boolean);return P0(o,C(n({},r),{ref:i,style:c}))});return t.displayName=`Styled${o.displayName||o.name||"Component"}`,t}function V0(o,e){return h0.create(n({base:o},e.reduce((t,r,i)=>{let s=`variant-${i+1}`;return t[s]=r,t},{})))}function M0(o,e,t){let r=[];return e&&Object.keys(e).length>0&&R0(o,e,r),v0(o,t,r),r}function R0(o,e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let i=o[r];if(i&&e[r]){let s=e[r][i];s&&t.push(s)}}}function v0(o,e,t){for(let r of e)Object.keys(r.variants).every(s=>o[s]===r.variants[s])&&t.push(r.css)}var y3=l(D0,o=>({base:{flexDirection:"row",justifyContent:"center",alignItems:"center",gap:o.spacingInlineTwopulse,borderRadius:o.borderRadiusPill},variants:{variant:{"brand-primary":{borderWidth:o.borderWidthNone,borderColor:o.colorActionBorderBrandPrimaryEnabled,backgroundColor:o.colorActionFillBrandPrimaryEnabled},"neutral-secondary":{borderWidth:o.borderWidthQuarterpulse,borderColor:o.colorActionBorderNeutralSecondaryEnabled,backgroundColor:o.colorActionFillNeutralSecondaryEnabled},"neutral-tertiary":{borderWidth:o.borderWidthNone,borderColor:o.colorActionBorderNeutralTertiaryEnabled,backgroundColor:o.colorActionFillNeutralTertiaryEnabled}},size:{md:{minWidth:o.sizingMedium,height:o.sizingMedium,paddingHorizontal:o.paddingInsetFourpulse},ml:{minWidth:o.sizingMediumlarge,height:o.sizingMediumlarge,paddingHorizontal:o.paddingInsetFourpulse},lg:{minWidth:o.sizingLarge,height:o.sizingLarge,paddingHorizontal:o.paddingInsetFivepulse},xl:{minWidth:o.sizingExtralarge,height:o.sizingExtralarge,paddingHorizontal:o.paddingInsetSixpulse}},hasFull:{true:{width:"100%"}},hasPressed:{true:{}},hasLoading:{true:{paddingHorizontal:o.paddingInsetNone}},hasOnlyIcon:{true:{paddingHorizontal:o.paddingInsetNone}},hasDisabled:{true:{}}},compoundVariants:[{variants:{variant:"brand-primary",hasPressed:!0},css:{borderColor:o.colorActionBorderBrandPrimaryPressed,backgroundColor:o.colorActionFillBrandPrimaryPressed}},{variants:{variant:"brand-primary",hasDisabled:!0},css:{borderWidth:o.borderWidthNone,borderColor:o.colorActionBorderBrandPrimaryDisabled,backgroundColor:o.colorActionFillBrandPrimaryDisabled}},{variants:{variant:"neutral-secondary",hasPressed:!0},css:{borderColor:o.colorActionBorderNeutralSecondaryPressed,backgroundColor:o.colorActionFillNeutralSecondaryPressed}},{variants:{variant:"neutral-secondary",hasDisabled:!0},css:{borderColor:o.colorActionBorderNeutralSecondaryDisabled,backgroundColor:o.colorActionFillNeutralSecondaryDisabled}},{variants:{variant:"neutral-tertiary",hasPressed:!0},css:{borderColor:o.colorActionBorderNeutralTertiaryPressed,backgroundColor:o.colorActionFillNeutralTertiaryPressed}}]}));import{createContext as F0}from"react";import{jsx as Z0}from"react/jsx-runtime";var U4=F0({}),{Provider:A0}=U4;function S3(t){var r=t,{children:o}=r,e=T(r,["children"]);return Z0(A0,{value:e,children:o})}var L3="The internal components of the Button must be its own elements. For more information, see the documentation.";import{ActivityIndicator as z0}from"react-native";var T3=()=>{let o=U(),e={sm:o.sizingSmall,md:o.sizingMedium,lg:o.sizingLarge},t={brand:o.colorActionFillBrandPrimaryEnabled,neutral:o.colorTextNeutralReadonly,black:o.colorTextNeutralDefault,white:o.colorTextNeutralInverse};return{refreshSizeMapping:e,refreshColorMapping:t}};import{jsx as k0}from"react/jsx-runtime";var L2=({color:o,size:e,testID:t})=>{let{refreshSizeMapping:r,refreshColorMapping:i}=T3();return k0(z0,{color:i[o],size:r[e],testID:t})};import{View as B0}from"react-native";import{icoMoonConfig as W0}from"@raiadrogasil/pulso-icons";import O0,{Path as _0}from"@rd-core-svg/svg";import G0 from"react-icomoon";import{View as x3}from"react-native";var I3=l(x3,o=>({base:{},variants:{}})),P3=l(x3,o=>({base:{position:"absolute"},variants:{}}));import{jsx as $4,jsxs as E0}from"react/jsx-runtime";var H3=o=>{let{symbols:e,colors:t,size:r,testID:i}=o;return E0(I3,{testID:i,children:[$4(x,{symbol:e[0],color:t[0],size:r}),$4(P3,{children:$4(x,{symbol:e[1],color:t[1],size:r})})]})};function h3({size:o="small",color:e="colorTextNeutralDefault"}){let t=U(),r={tiny:t.sizingTiny,"extra-small":t.sizingExtrasmall,small:t.sizingSmall,medium:t.sizingMedium},i=t[e];return{size:r[o],color:i}}import{jsx as V3}from"react/jsx-runtime";var x=({size:o="medium",color:e,symbol:t="rdicon-default",testID:r})=>{let{size:i,color:s}=h3({size:o,color:e}),a=t.replace("rdicon-","");return V3(B0,{testID:r,children:V3(G0,C(n({},{size:i,color:s,icon:a}),{SvgComponent:O0,PathComponent:_0,iconSet:W0,native:!0}))})};x.Dual=H3;import{useContext as Q0}from"react";function T2(){return Q0(U4)}import{jsx as K0}from"react/jsx-runtime";function x2({symbol:o,testID:e}){let{variant:t="brand-primary",size:r="md",disabled:i}=T2(),s=!!i,a={"brand-primary":"colorTextNeutralInverse","neutral-secondary":"colorTextNeutralDefault","neutral-tertiary":"colorTextNeutralDefault"};return K0(x,{symbol:o,size:{md:"tiny",ml:"small",lg:"small",xl:"small"}[r],color:s?"colorTextNeutralDisabled":a[t],testID:e})}import{Text as Y0}from"react-native";function I2(){return __DEV__}var P2={warning(o){console.warn(o)}};function h(o){let e=o.slice(0,o.length-1);return Number.parseFloat(e)/100}function y(o,e){let t=h(e);return o*t}var M3=l(Y0,o=>({base:{fontFamily:"RDModern-Bold",fontWeight:String(o.fontWeightBold),letterSpacing:h(o.letterSpacingDefault)},variants:{variant:{"brand-primary":{color:o.colorTextNeutralInverse},"neutral-secondary":{color:o.colorTextNeutralDefault},"neutral-tertiary":{color:o.colorTextNeutralDefault}},size:{md:{fontSize:o.fontSizeThreepulse},ml:{fontSize:o.fontSizeThreeandhalfpulse},lg:{fontSize:o.fontSizeThreeandhalfpulse},xl:{fontSize:o.fontSizeThreeandhalfpulse}},hasDisabled:{true:{color:o.colorTextNeutralDisabled}}}}));import{jsx as $0}from"react/jsx-runtime";function X4({children:o}){let{variant:e,size:t,disabled:r}=T2();return $0(M3,{variant:e,size:t,hasDisabled:r,numberOfLines:1,ellipsizeMode:"clip",children:o})}import{jsx as J4}from"react/jsx-runtime";var R3=q4.forwardRef((f,u)=>{var c=f,{children:o,variant:e="brand-primary",size:t="md",full:r,disabled:i,loading:s,onPressIn:a,onPressOut:p}=c,d=T(c,["children","variant","size","full","disabled","loading","onPressIn","onPressOut"]);let[b,L]=X0(!1),g=q4.Children.map(o,Y=>{if(q4.isValidElement(Y)){if(Y.type===X4||Y.type===x2)return Y;if(I2()){P2.warning(L3);return}}}),m=!!i,P=!!s,S=e==="brand-primary"?"white":"neutral",H={role:"button","aria-disabled":m,accessible:!0},M=g?(g==null?void 0:g.length)>1?!1:g[0].type===x2:!1,G={size:t,variant:e,full:r,disabled:m||P,hasPressed:b,hasLoading:P,hasDisabled:m&&!P,hasFull:r,hasOnlyIcon:M};function Q(Y){L(!0),a==null||a(Y)}function r1(Y){L(!1),p==null||p(Y)}return J4(S3,C(n({},G),{children:J4(y3,C(n(n(n({ref:u},d),G),H),{onPressIn:Q,onPressOut:r1,children:P?J4(L2,{size:"sm",color:S}):g==null?void 0:g.slice(0,3)}))}))});R3.displayName="Button";var V={Root:R3,Label:X4,Icon:x2};import M1 from"react";import{Pressable as q0,View as j4}from"react-native";var v3=l(q0,o=>({base:{width:"100%",borderRadius:o.borderRadiusPill},variants:{}})),D3=l(j4,o=>({base:{flexDirection:"row",alignItems:"center",borderRadius:o.borderRadiusPill,backgroundColor:"transparent",minWidth:o.sizingHuge,minHeight:o.sizingSmall},variants:{size:{md:{paddingTop:o.paddingInsetTwopulse,paddingLeft:o.paddingInsetTwopulse,paddingBottom:o.paddingInsetTwopulse,paddingRight:o.paddingInsetTwopulse,minWidth:o.sizingMedium,minHeight:o.sizingMedium},ml:{paddingTop:o.paddingInsetTwopulse,paddingLeft:o.paddingInsetTwopulse,paddingBottom:o.paddingInsetTwopulse,paddingRight:o.paddingInsetTwopulse,minWidth:o.sizingMediumlarge,minHeight:o.sizingMediumlarge},lg:{paddingTop:o.paddingInsetTwopulse,paddingLeft:o.paddingInsetTwopulse,paddingBottom:o.paddingInsetTwopulse,paddingRight:o.paddingInsetTwopulse,minWidth:o.sizingLarge,minHeight:o.sizingLarge},xl:{paddingTop:o.paddingInsetThreepulse,paddingLeft:o.paddingInsetThreepulse,paddingBottom:o.paddingInsetThreepulse,paddingRight:o.paddingInsetThreepulse,minWidth:o.sizingExtralarge,minHeight:o.sizingExtralarge}},hasPressed:{true:{backgroundColor:o.colorActionFillNeutralTertiaryPressed,borderColor:o.colorActionBorderNeutralTertiaryPressed,borderWidth:o.borderWidthNone}},hasError:{true:{borderWidth:o.borderWidthHalfpulse,borderColor:o.colorFormsBorderError}},hasDisabled:{true:{backgroundColor:o.colorActionFillNeutralTertiaryDisabled,borderColor:o.colorActionBorderNeutralTertiaryDisabled,borderWidth:o.borderWidthNone}},hasReadOnly:{true:{backgroundColor:"#00000000",borderColor:"#00000000",borderWidth:o.borderWidthNone}}},compoundVariants:[{variants:{size:"xl",hasInternalLabel:!0},css:{paddingLeft:o.paddingInsetSixpulse,paddingRight:o.paddingInsetSixpulse}},{variants:{size:"lg",hasInternalLabel:!0},css:{paddingLeft:o.paddingInsetFivepulse,paddingRight:o.paddingInsetFivepulse}},{variants:{size:"ml",hasInternalLabel:!0},css:{paddingLeft:o.paddingInsetFourpulse,paddingRight:o.paddingInsetFourpulse}},{variants:{size:"md",hasInternalLabel:!0},css:{paddingLeft:o.paddingInsetFourpulse,paddingRight:o.paddingInsetFourpulse,paddingTop:o.paddingInsetOnepulse,paddingBottom:o.paddingInsetOnepulse}}]})),w3=l(j4,o=>({base:{alignItems:"center",width:"100%",paddingTop:o.spacingStackTwopulse,backgroundColor:"transparent",paddingLeft:o.paddingInsetSixpulse,paddingRight:o.paddingInsetSixpulse},variants:{size:{md:{paddingLeft:o.paddingInsetFourpulse,paddingRight:o.paddingInsetFourpulse},ml:{paddingLeft:o.paddingInsetFourpulse,paddingRight:o.paddingInsetFourpulse},lg:{paddingLeft:o.paddingInsetFivepulse,paddingRight:o.paddingInsetFivepulse},xl:{paddingLeft:o.paddingInsetSixpulse,paddingRight:o.paddingInsetSixpulse}}}})),o5=l(j4,o=>({base:{paddingTop:o.paddingInsetOnepulse,paddingLeft:o.paddingInsetEightpulse},variants:{}}));import{Text as j0}from"react-native";var F3=l(j0,o=>{let e=String(o.fontWeightRegular),t=String(o.fontWeightSemibold);return{base:{flexShrink:1,textAlign:"left",fontFamily:"RDModern-Regular",fontWeight:e,letterSpacing:h(o.letterSpacingDefault),paddingLeft:o.paddingInsetTwopulse,color:o.colorTextNeutralDefault},variants:{size:{md:{fontSize:o.fontSizeThreepulse,paddingLeft:o.paddingInsetOnepulse,lineHeight:y(o.fontSizeThreepulse,o.lineHeightMedium)},ml:{fontSize:o.fontSizeThreeandhalfpulse,paddingLeft:o.paddingInsetTwopulse,lineHeight:y(o.fontSizeThreeandhalfpulse,o.lineHeightSmall)},lg:{fontSize:o.fontSizeFourpulse,paddingLeft:o.paddingInsetTwopulse,lineHeight:y(o.fontSizeFourpulse,o.lineHeightSmall)},xl:{fontSize:o.fontSizeFourpulse,paddingLeft:o.paddingInsetTwopulse,lineHeight:y(o.fontSizeFourpulse,o.lineHeightSmall)}},hasError:{true:{fontWeight:t}},hasDisabled:{true:{color:o.colorTextNeutralDisabled}},hasReadOnly:{true:{color:o.colorTextNeutralReadonly}}}}});import{jsx as eo}from"react/jsx-runtime";function e5({children:o,size:e,error:t,disabled:r,readOnly:i,testID:s}){return eo(F3,C(n({testID:s},{size:e,hasError:!!t,hasDisabled:!!r,hasReadOnly:!!i&&!r}),{numberOfLines:4,children:o}))}import{Text as to,View as ro}from"react-native";var A3=l(ro,o=>({base:{display:"flex",flexDirection:"row",alignItems:"center",alignContent:"center",justifyContent:"flex-start",gap:o.spacingInlineHalfpulse},variants:{}})),Z3=l(to,o=>{let e=String(o.fontWeightSemibold);return{base:{color:o.colorTextDangerAlternative,fontWeight:e,fontFamily:"RDModern-SemiBold",fontSize:o.fontSizeThreepulse,paddingLeft:o.spacingInlineOnepulse,lineHeight:y(o.fontSizeThreepulse,o.lineHeightDefault),textAlign:"left",textAlignVertical:"top"},variants:{}}});import{jsx as z3,jsxs as io}from"react/jsx-runtime";function t5(r){var i=r,{size:o="md",testID:e}=i,t=T(i,["size","testID"]);return io(A3,{testID:e,children:[z3(x,{size:{md:"tiny",ml:"tiny",lg:"tiny",xl:"tiny"}[o],symbol:"rdicon-warning-circle",color:"colorTextDangerAlternative"}),z3(Z3,{numberOfLines:2,children:t.children})]})}import{useState as lo}from"react";var k3=()=>{let[o,e]=lo(!1);return{renderCurrentStateCheckbox:(i,s)=>i?"rdicon-checkbox-indeterminate":s?"rdicon-checkbox-checked":"rdicon-checkbox-unchecked",iconSizeMapping:{md:"tiny",ml:"small",lg:"medium",xl:"medium"},pressed:o,setPressed:e}};import{jsx as N3,jsxs as E3}from"react/jsx-runtime";var Co=({size:o="md",checked:e=!1,indeterminate:t=!1,onPress:r,error:i,disabled:s,readOnly:a,children:p,testID:d})=>{let{iconSizeMapping:u,renderCurrentStateCheckbox:f,pressed:c,setPressed:b}=k3(),L=M1.Children.map(p,H=>{if(M1.isValidElement(H)&&M1.isValidElement(H)&&H.type===e5)return M1.cloneElement(H,{size:o,disabled:s,readOnly:a,error:i})}),g=M1.Children.map(p,H=>{if(M1.isValidElement(H)&&M1.isValidElement(H)&&H.type===t5)return M1.cloneElement(H,{size:o})}),m=M1.Children.map(p,H=>{if(M1.isValidElement(H)&&H.type===o5)return M1.cloneElement(H,{testID:"checkbox-nested-container"})}),P={size:o,hasPressed:c,hasDisabled:s,hasError:!!i,hasReadOnly:a,hasInternalLabel:!!(L!=null&&L.length),readOnly:a},S=()=>s?"colorTextNeutralDisabled":a?"colorTextNeutralReadonly":"colorTextNeutralDefault";return E3(v3,C(n({testID:d,disabled:s||a,onPress:()=>{typeof r=="function"&&r()},onPressIn:()=>b(!0),onPressOut:()=>b(!1)},P),{children:[E3(D3,C(n({},P),{children:[N3(x,{testID:"checkbox-icon",color:S(),size:u[o],symbol:f(t,e)}),L]})),i&&(L!=null&&L.length)?N3(w3,C(n({},P),{children:g})):null,m]}))},Na={Root:Co,Label:e5,HelperText:t5,NestedContainer:o5};import M2,{useState as po}from"react";import{jsx as B3}from"react/jsx-runtime";function H2(o){return B3(V.Root,C(n({},o),{size:o.size||"md",variant:"neutral-tertiary",children:B3(V.Icon,{symbol:"rdicon-chevron-left"})}))}import{jsx as W3}from"react/jsx-runtime";function h2(o){return W3(V.Root,C(n({},o),{size:o.size||"md",variant:"neutral-tertiary",children:W3(V.Icon,{symbol:"rdicon-barcode-scan-variant"})}))}import{jsx as O3}from"react/jsx-runtime";function V2(o){return O3(V.Root,C(n({},o),{size:o.size||"md",variant:"neutral-tertiary",children:O3(V.Icon,{symbol:"rdicon-microphone"})}))}import{TextInput as so,View as _3}from"react-native";var G3=l(_3,o=>({base:{flexDirection:"row",justifyContent:"center",alignItems:"center",gap:o.spacingInlineTwopulse,backgroundColor:"transparent"},variants:{size:{medium:{height:o.sizingMedium},"medium-large":{height:o.sizingMediumlarge},large:{height:o.sizingLarge}}}})),Q3=l(_3,o=>({base:{flexDirection:"row",alignItems:"center",borderRadius:o.borderRadiusPill,borderWidth:o.borderWidthQuarterpulse,borderColor:o.colorFormsBorderDefault,paddingLeft:o.spacingInlineFourpulse,paddingRight:o.spacingInlineOnepulse,paddingTop:o.spacingInlineOnepulse,paddingBottom:o.spacingInlineOnepulse,minWidth:180,flex:1,gap:o.spacingStackOnepulse,backgroundColor:o.colorFormsFillDefault},variants:{size:{medium:{height:o.sizingMedium},"medium-large":{height:o.sizingMediumlarge},large:{height:o.sizingLarge}},hasFocused:{true:{backgroundColor:o.colorFormsFillFocused,borderWidth:o.borderWidthHalfpulse,borderColor:o.colorActionBorderFocused}},hasFill:{true:{backgroundColor:o.colorFormsFillFocused,borderWidth:o.borderWidthQuarterpulse,borderColor:o.colorFormsBorderFilled}},hasFilledAndActive:{true:{borderWidth:o.borderWidthHalfpulse,borderColor:o.colorActionBorderFocused,backgroundColor:o.colorFormsFillFocused}}}})),K3=l(so,o=>({base:{flexDirection:"row",justifyContent:"center",alignItems:"center",fontSize:o.fontSizeThreeandhalfpulse,fontWeight:"400",fontFamily:"RDModern-Light",letterSpacing:h(o.letterSpacingDefault),color:o.colorTextNeutralAlternative,textAlignVertical:"center",textAlign:"left",flex:1,flexShrink:1,borderWidth:0,height:"100%",overflow:"hidden"},variants:{hasFocused:{true:{color:o.colorTextNeutralPlaceholder}},hasFilledAndActive:{true:{color:o.colorTextNeutralDefault}}}}));var o2=o=>o==="medium-large"||o==="large"?"ml":"md";import{jsx as N1,jsxs as Y3}from"react/jsx-runtime";var co=o=>{let H=o,{value:e,size:t="medium",onChangeText:r,children:i,onClear:s,placeholder:a,maxLength:p,showInternalSearchIcon:d=!0,onFocus:u,onBlur:f}=H,c=T(H,["value","size","onChangeText","children","onClear","placeholder","maxLength","showInternalSearchIcon","onFocus","onBlur"]),[b,L]=po(!1),g={size:t,hasFocused:b,hasFill:e&&!b||!1,hasFilledAndActive:e&&b||!1},m={hasFocused:b,hasFilledAndActive:e&&b||!1},P=M2.Children.map(i,M=>{if(M2.isValidElement(M)){if(M.type===h2)return N1(h2,C(n({},M.props),{size:o2(t)}));if(M.type===V2)return N1(V2,C(n({},M.props),{size:o2(t)}))}}),S=M2.Children.map(i,M=>{if(M2.isValidElement(M)&&M.type===H2)return N1(H2,C(n({},M.props),{size:o2(t)}))});return Y3(G3,{children:[S,Y3(Q3,C(n({},g),{children:[d&&N1(V.Root,{size:o2(t),variant:"neutral-tertiary",children:N1(V.Icon,{symbol:"rdicon-search"})}),N1(K3,n(n({value:e,numberOfLines:1,multiline:!1,onChangeText:r,onFocus:()=>{L(!0),typeof u=="function"&&u()},onBlur:()=>{L(!1),typeof f=="function"&&f()},placeholder:a,maxLength:p},m),c)),e?N1(V.Root,{size:o2(t),variant:"neutral-tertiary",onPress:s,testID:"search-bar-clear-button",children:N1(V.Icon,{symbol:"rdicon-dismiss-circle-outline"})}):null,P]}))]})},pp={Root:co,ButtonBarCode:h2,ButtonMicrophone:V2,ButtonBack:H2};import R1 from"react";import{Text as uo,View as fo}from"react-native";var U3=l(fo,o=>({base:{flexDirection:"row",gap:o.spacingInlineOnepulse,backgroundColor:"transparent",alignItems:"center"},variants:{size:{md:{paddingHorizontal:o.paddingInsetFourpulse},ml:{paddingHorizontal:o.paddingInsetFourpulse},lg:{paddingHorizontal:o.paddingInsetFivepulse},xl:{paddingHorizontal:o.paddingInsetSixpulse}}}})),$3=l(uo,o=>{let e=String(o.fontWeightSemibold);return{base:{color:o.colorTextDangerAlternative,fontWeight:e,fontFamily:o.fontFamily.semiBold,fontSize:o.fontSizeThreepulse,textAlign:"left",textAlignVertical:"top"},variants:{}}});import{jsx as X3,jsxs as mo}from"react/jsx-runtime";function r5(r){var i=r,{size:o="md",testID:e}=i,t=T(i,["size","testID"]);return mo(U3,{testID:e,size:o,children:[X3(x,{size:{md:"tiny",ml:"tiny",lg:"tiny",xl:"tiny"}[o],symbol:"rdicon-warning-circle",color:"colorTextDangerAlternative"}),X3($3,{numberOfLines:2,children:t.children})]})}import{Text as bo}from"react-native";var q3=l(bo,o=>{let e=String(o.fontWeightRegular),t=String(o.fontWeightSemibold);return{base:{flexShrink:1,textAlign:"left",fontFamily:o.fontFamily.regular,fontWeight:e,letterSpacing:h(o.letterSpacingDefault),color:o.colorTextNeutralDefault},variants:{size:{md:{fontSize:o.fontSizeThreepulse,lineHeight:y(o.fontSizeThreepulse,o.lineHeightMedium)},ml:{fontSize:o.fontSizeThreeandhalfpulse,lineHeight:y(o.fontSizeThreeandhalfpulse,o.lineHeightSmall)},lg:{fontSize:o.fontSizeFourpulse,lineHeight:y(o.fontSizeFourpulse,o.lineHeightSmall)},xl:{fontSize:o.fontSizeFourpulse,lineHeight:y(o.fontSizeFourpulse,o.lineHeightSmall)}},hasError:{true:{fontWeight:t}},hasDisabled:{true:{color:o.colorTextNeutralDisabled}},hasReadOnly:{true:{color:o.colorTextNeutralReadonly}}}}});import{jsx as So}from"react/jsx-runtime";function n5({children:o,size:e,error:t,disabled:r,readOnly:i,testID:s}){return So(q3,C(n({testID:s},{size:e,hasError:!!t,hasDisabled:!!r,hasReadOnly:!!i&&!r,numberOfLines:4}),{children:o}))}import{useState as Lo}from"react";var J3=()=>{let[o,e]=Lo(!1);return{renderCurrentStateRadio:i=>i?"rdicon-radio-button-selected":"rdicon-radio-button-unselected",iconSizeMapping:{md:"tiny",ml:"small",lg:"medium",xl:"medium"},pressed:o,setPressed:e}};import{Pressable as To,View as j3}from"react-native";var o9=l(To,o=>({base:{gap:o.spacingInlineTwopulse,backgroundColor:"transparent",borderRadius:o.borderRadiusPill},variants:{}})),e9=l(j3,o=>({base:{flexDirection:"row",alignItems:"center",borderRadius:o.borderRadiusPill,backgroundColor:"transparent"},variants:{size:{md:{paddingVertical:o.paddingInsetTwopulse,paddingHorizontal:o.paddingInsetTwopulse,gap:o.spacingInlineOnepulse,minWidth:o.sizingMedium,minHeight:o.sizingMedium},ml:{paddingVertical:o.paddingInsetTwopulse,paddingHorizontal:o.paddingInsetTwopulse,gap:o.spacingInlineTwopulse,minWidth:o.sizingMediumlarge,minHeight:o.sizingMediumlarge},lg:{paddingVertical:o.paddingInsetTwopulse,paddingHorizontal:o.paddingInsetTwopulse,gap:o.spacingInlineTwopulse,minWidth:o.sizingLarge,minHeight:o.sizingLarge},xl:{paddingVertical:o.paddingInsetThreepulse,paddingHorizontal:o.paddingInsetThreepulse,gap:o.spacingInlineTwopulse,minWidth:o.sizingExtralarge,minHeight:o.sizingExtralarge}},hasPressed:{true:{backgroundColor:o.colorActionFillNeutralTertiaryPressed,borderColor:o.colorActionBorderNeutralTertiaryPressed,borderWidth:o.borderWidthNone}},hasError:{true:{borderWidth:o.borderWidthHalfpulse,borderColor:o.colorFormsBorderError}},hasDisabled:{true:{backgroundColor:o.colorActionFillNeutralTertiaryDisabled,borderColor:o.colorActionBorderNeutralTertiaryDisabled,borderWidth:o.borderWidthNone}},hasReadOnly:{true:{backgroundColor:"#00000000",borderColor:"#00000000",borderWidth:o.borderWidthNone}}},compoundVariants:[{variants:{size:"xl",hasInternalLabel:!0},css:{paddingHorizontal:o.paddingInsetSixpulse,paddingVertical:o.paddingInsetThreepulse}},{variants:{size:"lg",hasInternalLabel:!0},css:{paddingHorizontal:o.paddingInsetFivepulse,paddingVertical:o.paddingInsetTwopulse}},{variants:{size:"ml",hasInternalLabel:!0},css:{paddingHorizontal:o.paddingInsetFourpulse,paddingVertical:o.paddingInsetTwopulse}},{variants:{size:"md",hasInternalLabel:!0},css:{paddingHorizontal:o.paddingInsetFourpulse,paddingVertical:o.paddingInsetOnepulse}}]})),i5=l(j3,()=>({base:{},variants:{}}));import{jsx as Po,jsxs as t9}from"react/jsx-runtime";var Io=({size:o="md",checked:e=!1,onPress:t,error:r,disabled:i=!1,readOnly:s=!1,children:a,testID:p})=>{let{iconSizeMapping:d,renderCurrentStateRadio:u,pressed:f,setPressed:c}=J3(),b=R1.Children.map(a,S=>{if(R1.isValidElement(S)&&R1.isValidElement(S)&&S.type===n5)return R1.cloneElement(S,{size:o,disabled:i,readOnly:s,error:r})}),L=R1.Children.map(a,S=>{if(R1.isValidElement(S)&&R1.isValidElement(S)&&S.type===r5)return R1.cloneElement(S,{size:o})}),g=R1.Children.map(a,S=>{if(R1.isValidElement(S)&&S.type===i5)return R1.cloneElement(S,{testID:"radio-nested-container"})}),m={size:o,hasPressed:f,hasDisabled:i,hasReadOnly:s,hasError:!!r,hasInternalLabel:!!(b!=null&&b.length)},P=()=>i?"colorTextNeutralDisabled":s?"colorTextNeutralReadonly":"colorTextNeutralDefault";return t9(o9,C(n({testID:p,disabled:i||s,onPress:()=>{typeof t=="function"&&t()},onPressIn:()=>c(!0),onPressOut:()=>c(!1)},m),{children:[t9(e9,C(n({},m),{children:[Po(x,{testID:"radio-icon",color:P(),size:d[o],symbol:u(e)}),b]})),r&&(b!=null&&b.length)?L:null,g]}))},Ep={Root:Io,Label:n5,HelperText:r5,NestedContainer:i5};import R2,{useRef as Do}from"react";import{Text as Ho}from"react-native";var r9=l(Ho,o=>{let e=String(o.fontWeightSemibold);return{base:{fontFamily:o.fontFamily.semiBold,fontWeight:e,color:o.colorTextNeutralDefault,letterSpacing:h(o.letterSpacingDefault),textAlign:"center",textDecorationLine:"underline",maxHeight:o.sizingSmall,height:o.sizingSmall},variants:{size:{md:{fontSize:o.fontSizeThreepulse},ml:{fontSize:o.fontSizeThreeandhalfpulse}},hasDisabled:{true:{color:o.colorTextNeutralDisabled}}},compoundVariants:[{variants:{size:"ml"},css:{marginTop:4,lineHeight:y(o.fontSizeThreeandhalfpulse,o.lineHeightSmall),textDecorationLine:"underline"}},{variants:{size:"md"},css:{marginTop:7,lineHeight:y(o.fontSizeThreepulse,o.lineHeightMedium),textDecorationLine:"underline"}}]}});import{jsx as Vo}from"react/jsx-runtime";function l5({children:o,size:e="ml",disabled:t}){return Vo(r9,{size:e,hasDisabled:t,children:o})}import{useState as n9}from"react";var i9=()=>{let o=U(),[e,t]=n9(!1),[r,i]=n9(!1);return{linkSizeMapping:{md:o.sizingMedium,ml:o.sizingMediumlarge},pressed:e,setPressed:t,linkFocus:r,setLinkFocus:i}};import{Pressable as Mo,View as Ro}from"react-native";var l9=l(Mo,o=>({base:{flexDirection:"column",borderRadius:o.borderRadiusPill,backgroundColor:"transparent",minWidth:o.sizingHuge,minHeight:o.sizingSmall,width:"auto"},variants:{size:{md:{minWidth:o.sizingMedium},ml:{minWidth:o.sizingMediumlarge}},hasFull:{true:{width:"100%"}},hasFocused:{true:{backgroundColor:"transparent",borderColor:o.colorActionBorderFocused,borderWidth:o.borderWidthHalfpulse}},hasDisabled:{true:{borderColor:"transparent",backgroundColor:"transparent",borderWidth:o.borderWidthNone}}}})),C9=l(Ro,o=>({base:{flexDirection:"row",alignItems:"center",gap:o.spacingInlineOnepulse,backgroundColor:"transparent",width:"100%"},variants:{size:{md:{height:o.sizingMedium,paddingHorizontal:o.paddingInsetFourpulse},ml:{height:o.sizingMediumlarge,paddingHorizontal:o.paddingInsetFourpulse}},hasPressed:{true:{backgroundColor:o.colorActionFillNeutralTertiaryPressed,borderColor:o.colorActionBorderNeutralTertiaryPressed,borderWidth:o.borderWidthHalfpulse}},hasDisabled:{true:{borderColor:"transparent",backgroundColor:"transparent",borderWidth:o.borderWidthNone}}},compoundVariants:[{variants:{size:"ml"},css:{paddingLeft:o.paddingInsetFourpulse,paddingRight:o.paddingInsetFourpulse,paddingTop:o.paddingInsetTwopulse,paddingBottom:o.paddingInsetTwopulse}},{variants:{size:"md"},css:{paddingLeft:o.paddingInsetFourpulse,paddingRight:o.paddingInsetFourpulse,paddingTop:o.paddingInsetTwopulse,paddingBottom:o.paddingInsetTwopulse}}]}));import{jsx as s9,jsxs as wo}from"react/jsx-runtime";var a9=a=>{var p=a,{size:o="md",children:e,icon:t=!0,disabled:r,full:i}=p,s=T(p,["size","children","icon","disabled","full"]);let{pressed:d,setPressed:u,linkFocus:f,setLinkFocus:c}=i9(),b=Do(),L=!!r,g={size:o,icon:t,hasPressed:d,hasDisabled:L,hasFull:i,hasFocused:f},m=R2.Children.map(e,P=>{if(R2.isValidElement(P)&&R2.isValidElement(P)&&P.type===l5)return R2.cloneElement(P,{size:o,disabled:r})});return s9(l9,C(n(C(n({},s),{ref:b.current,onPressIn:()=>u(!0),onPressOut:()=>u(!1),onFocus:()=>c(!0),onBlur:()=>c(!1)}),g),{children:wo(C9,C(n({},g),{children:[m,t&&s9(x,{symbol:"rdicon-open",size:"tiny",color:L?"colorTextNeutralDisabled":"colorTextNeutralDefault"})]}))}))};a9.displayName="Link";var e2={Root:a9,Label:l5};import c5 from"react";import{createContextScope as jo}from"@radix-ui/react-context";import{ScrollView as Fo,Text as Ao,View as p9}from"react-native";var d9=l(p9,o=>({base:{flex:1,maxHeight:320,borderWidth:o.borderWidthQuarterpulse,borderColor:o.colorBorderNeutralDefault,borderRadius:o.borderRadiusForm,overflow:"hidden",backgroundColor:o.colorFillNeutralDefault},variants:{}})),Cd=l(Fo,{base:{flexGrow:0},variants:{}}),c9=l(p9,o=>({base:{width:"100%",justifyContent:"center",alignItems:"flex-start",paddingVertical:o.paddingInsetTwopulse,paddingHorizontal:o.paddingInsetThreepulse+o.paddingInsetTwopulse},variants:{}})),u9=l(Ao,o=>{let e=String(o.fontWeightRegular);return{base:{fontFamily:o.fontFamily.regular,fontSize:o.fontSizeThreeandhalfpulse,lineHeight:y(o.fontSizeThreeandhalfpulse,o.lineHeightSmall),color:o.colorTextNeutralDefault,letterSpacing:h(o.letterSpacingDefault),fontWeight:e},variants:{}}});import{View as ko}from"react-native";import{useCallback as zo}from"react";function v2(o){return{measureLayout:zo(t=>{o.current&&o.current.measure((r,i,s,a,p,d)=>{t({x:r,y:i,width:s,height:a,pageX:p,pageY:d})})},[o])}}import{jsx as No}from"react/jsx-runtime";function D2(){let o=U();return No(ko,{style:{width:"100%",height:1,backgroundColor:o.colorBorderNeutralDefault}})}import{View as Wo}from"react-native";import{View as Eo}from"react-native";var f9=l(Eo,o=>({base:{flexDirection:"row",alignItems:"center",gap:o.spacingInlineThreepulse,padding:o.paddingInsetThreepulse,borderTopWidth:o.borderWidthQuarterpulse,borderColor:o.colorBorderNeutralDefault,backgroundColor:o.colorFillNeutralDefault},variants:{}}));import{jsx as w2}from"react/jsx-runtime";function C5({controls:o,testID:e}){if(!o)throw new Error("Controls cannot be undefined.");return w2(f9,{testID:e,children:o.slice(0,2).map((t,r)=>{let i=t.type==="confirm"?"brand-primary":"neutral-tertiary";return w2(Wo,{style:{flex:1},children:w2(V.Root,{variant:i,onPress:t.handler,size:"lg",children:w2(V.Label,{children:t.label})})},String(r))})})}import{Text as Oo,View as g9}from"react-native";var m9=l(g9,o=>({base:{paddingTop:o.paddingInsetThreepulse,gap:o.spacingInlineThreepulse,backgroundColor:"transparent"},variants:{}})),b9=l(g9,o=>({base:{paddingVertical:o.paddingInsetTwopulse,paddingHorizontal:o.paddingInsetFivepulse},variants:{}})),y9=l(Oo,o=>{let e=String(o.fontWeightBold);return{base:{fontFamily:o.fontFamily.bold,fontSize:o.fontSizeThreeandhalfpulse,color:o.colorTextNeutralReadonly,lineHeight:y(o.fontSizeThreeandhalfpulse,o.lineHeightSmall),fontWeight:e},variants:{}}});import{jsx as s5,jsxs as Go}from"react/jsx-runtime";function F2({children:o,title:e}){let t=!!(e!=null&&e.length);return Go(m9,{children:[s5(D2,{}),s5(b9,{children:t&&s5(y9,{children:e})}),o]})}import{useCallback as Yo,useState as Uo}from"react";import{Pressable as Qo,Text as S9,View as a5}from"react-native";var L9=l(Qo,o=>({base:{paddingVertical:o.paddingInsetOnepulse,paddingHorizontal:o.paddingInsetTwopulse},variants:{}})),T9=l(a5,o=>({base:{minHeight:o.sizingMediumlarge,flexDirection:"row",alignItems:"center",gap:o.spacingInlineOnepulse,borderRadius:o.borderRadiusPill,paddingVertical:o.paddingInsetTwopulse,backgroundColor:o.colorActionFillNeutralTertiaryEnabled},variants:{type:{single:{paddingHorizontal:o.paddingInsetThreepulse},multi:{paddingLeft:o.paddingInsetOnepulse,paddingRight:o.paddingInsetThreepulse}},hasPressed:{true:{backgroundColor:o.colorActionFillNeutralTertiaryPressed}},hasDisabled:{true:{backgroundColor:o.colorActionFillNeutralTertiaryDisabled}}}})),x9=l(a5,o=>({base:{flex:1,gap:o.spacingStackHalfpulse,backgroundColor:"transparent"},variants:{}})),I9=l(S9,o=>{let e=String(o.fontWeightRegular);return{base:{fontFamily:o.fontFamily.regular,fontSize:o.fontSizeThreeandhalfpulse,lineHeight:y(o.fontSizeThreeandhalfpulse,o.lineHeightSmall),letterSpacing:h(o.letterSpacingDefault),color:o.colorTextNeutralDefault,fontWeight:e},variants:{hasDisabled:{true:{color:o.colorTextNeutralDisabled}}}}}),P9=l(S9,o=>{let e=String(o.fontWeightRegular);return{base:{fontFamily:o.fontFamily.regular,fontSize:o.fontSizeThreepulse,lineHeight:y(o.fontSizeThreepulse,o.lineHeightMedium),letterSpacing:h(o.letterSpacingDefault),color:o.colorTextNeutralPlaceholder,fontWeight:e},variants:{hasDisabled:{true:{color:o.colorTextNeutralDisabled}}}}}),H9=l(a5,o=>({base:{padding:o.paddingInsetTwopulse},variants:{}}));function h9(o,e){return{checkboxSymbol:!o&&e?"rdicon-checkbox-checked":"rdicon-checkbox-unchecked",checkboxColor:o?"colorTextNeutralDisabled":e?"colorActionFillBrandPrimaryEnabled":"colorTextNeutralDefault",prefixIconColor:o?"colorTextNeutralDisabled":"colorTextNeutralDefault",checkColor:o?"colorTextNeutralDisabled":"colorTextSuccessAlternative"}}import{jsx as j1,jsxs as V9}from"react/jsx-runtime";function A2(o){var H,M;let S=o,{type:e="single",content:t,checked:r,disabled:i,testID:s}=S,a=T(S,["type","content","checked","disabled","testID"]),[p,d]=Uo(!1),u=!!((H=t.prefixIcon)!=null&&H.length),f=!!((M=t.description)!=null&&M.length),c=!!i,{checkboxSymbol:b,checkboxColor:L,prefixIconColor:g,checkColor:m}=h9(c,r),P=Yo(G=>{d(G==="in")},[]);return j1(L9,C(n({},a),{onPressIn:()=>P("in"),onPressOut:()=>P("out"),disabled:c,testID:s,children:V9(T9,{type:e,hasPressed:p,hasDisabled:c,children:[e==="multi"&&j1(H9,{children:j1(x,{symbol:b,color:L,size:"small"})}),u&&j1(x,{symbol:t.prefixIcon,color:g,size:"small"}),V9(x9,{children:[j1(I9,{hasDisabled:c,children:t.label}),f&&j1(P9,{hasDisabled:c,numberOfLines:1,ellipsizeMode:"tail",children:t.description})]}),e==="single"&&r?j1(x,{symbol:"rdicon-checkmark",color:m,size:"small"}):null]})}))}import Z2 from"react";import{ScrollView as Xo}from"react-native";import $o from"react";function p5(o){return $o.isValidElement(o)&&o.type===A2}function M9(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,o=>{let e=Math.random()*16|0;return(o==="x"?e:e&3|8).toString(16)})}import{jsx as Jo}from"react/jsx-runtime";var qo="Only Fragment, OptionMenu.Item and Group components are allowed as children of OptionMenu.List. Please remove or replace any other elements.";function d5(o){let{__scopeOptionMenu:e,children:t,testID:r}=o,i=U(),{type:s}=R9("OptionMenuList",e),a=[];return Z2.Children.forEach(t,p=>{if(Z2.isValidElement(p)){if(p.type===Z2.Fragment){let d=p.props.children;a=[...a,d];return}if(p5(p)||p.type===F2)a.push(p);else throw new Error(qo)}}),a=a.map(p=>p5(p)?Z2.cloneElement(p,{key:M9(),type:s}):p),Jo(Xo,{contentContainerStyle:{paddingVertical:i.spacingInlineOnepulse},bounces:!1,testID:r,children:a})}import{jsx as z2}from"react/jsx-runtime";var u5="OptionMenu";function v9(o){let{type:e,children:t,customEmptyMessage:r="N\xE3o foi encontrado nenhum resultado.",__scopeOptionMenu:i,testID:s}=o,a=c5.Children.map(t,p=>{if(c5.isValidElement(p)&&(p.type===d5||p.type===C5))return p});return z2(ee,{scope:i,type:e,children:z2(d9,{testID:s,children:c5.Children.count(t)>0?a:z2(c9,{children:z2(u9,{children:r})})})})}v9.displayName=u5;var[oe]=jo(u5),[ee,R9]=oe(u5),v1={Root:v9,List:d5,Item:A2,Footer:C5,Divider:D2,Group:F2};import{createContext as te,useState as re}from"react";import{jsx as ie}from"react/jsx-runtime";var f5=te({isActive:!1,setIsActive:o=>{},inputValue:"",isFilled:!1,errorText:""}),{Provider:ne}=f5;function D9(r){var i=r,{children:o,value:e}=i,t=T(i,["children","value"]);let[s,a]=re(!1),p=C(n({},t),{isActive:s,setIsActive:a,inputValue:e,isFilled:e.length>0});return ie(ne,{value:n({},p),children:o})}import{Text as le,View as Ce}from"react-native";var w9=l(Ce,o=>({base:{flexDirection:"row",alignItems:"flex-start",justifyContent:"flex-start",gap:o.spacingInlineOnepulse,backgroundColor:"transparent",paddingHorizontal:o.paddingInsetOnepulse,paddingTop:o.spacingInlineHalfpulse},variants:{}})),F9=l(le,o=>{let e=String(o.fontWeightSemibold);return{base:{fontFamily:o.fontFamily.semiBold,fontWeight:e,fontSize:o.fontSizeThreepulse,color:o.colorTextNeutralAlternative,flexShrink:1,lineHeight:y(o.fontSizeThreepulse,o.lineHeightMedium)},variants:{hasError:{true:{color:o.colorTextDangerAlternative}},disabled:{true:{color:o.colorTextNeutralDisabled}},readonly:{true:{color:o.colorTextNeutralReadonly}}},compoundVariants:[{variants:{disabled:!0,readonly:!0},css:{color:o.colorTextNeutralDisabled}}]}});import{jsx as Z9,jsxs as ae}from"react/jsx-runtime";var A9="rdicon-warning-circle";function t2({children:o,withIcon:e=!1,hasError:t=!1,disabled:r=!1,readonly:i=!1,iconSize:s="medium",iconName:a=A9,testID:p}){return ae(w9,{testID:p,children:[e&&Z9(x,{size:s,symbol:t?A9:a,color:t?"colorTextDangerAlternative":r?"colorTextNeutralDisabled":i?"colorTextNeutralReadonly":"colorTextNeutralAlternative"}),Z9(F9,{numberOfLines:2,disabled:r,readonly:i,hasError:t,children:o})]})}import fe from"react";import{Platform as pe,TextInput as de}from"react-native";var z9=l(de,o=>{let e=String(o.fontWeightRegular),t=pe.OS==="web"?{outlineWidth:o.sizingNone}:{};return{base:n({width:"100%",height:o.sizingMedium,flex:1,fontSize:o.fontSizeThreeandhalfpulse,fontWeight:e,paddingHorizontal:o.paddingInsetOnepulse,paddingVertical:o.paddingInsetOnepulse,fontFamily:o.fontFamily.regular,color:o.colorTextNeutralAlternative,backgroundColor:"transparent"},t),variants:{size:{md:{height:o.sizingExtrasmall,fontSize:o.fontSizeThreepulse},ml:{height:o.sizingSmall},lg:{height:o.sizingSmall},xl:{height:o.sizingSmall}},isActive:{true:{color:o.colorTextNeutralDefault}},disabled:{true:{color:o.colorTextNeutralDisabled}},readonly:{true:{color:o.colorTextNeutralReadonly}}}}});import{useContext as ue}from"react";function n1(){return ue(f5)}import{jsx as ge}from"react/jsx-runtime";var k9=fe.forwardRef((r,t)=>{var i=r,{onFocus:o}=i,e=T(i,["onFocus"]);let{id:s,size:a,inputValue:p,disabled:d,readonly:u,isActive:f,setIsActive:c,onChangeText:b}=n1(),L=S=>{c(!0)},g=S=>{c(!1)},m=d||u,P=!m||!u;return ge(z9,C(n({},e),{ref:t,size:a,onFocus:L,onBlur:g,onChangeText:b,value:p,"aria-label":s,nativeID:s,cursorColor:"black",editable:m?!1:P,disabled:m,readonly:u,isActive:f}))});import{Text as me}from"react-native";var N9=l(me,o=>({base:{fontFamily:o.fontFamily.regular,fontWeight:o.fontWeightRegular,paddingHorizontal:o.paddingInsetOnepulse,paddingVertical:o.paddingInsetHalfpulse,fontSize:o.fontSizeThreeandhalfpulse,color:o.colorTextNeutralDefault,maxHeight:o.sizingExtrasmall},variants:{size:{md:{maxHeight:o.sizingExtrasmall,fontSize:o.fontSizeThreepulse},ml:{maxHeight:o.sizingMediumlarge},lg:{maxHeight:o.sizingLarge},xl:{maxHeight:o.sizingExtralarge}},disabled:{true:{color:o.colorTextNeutralDisabled}},readonly:{true:{color:o.colorTextNeutralReadonly}}},compoundVariants:[{variants:{disabled:!0,readonly:!0},css:{color:o.colorTextNeutralDisabled}}]}));import{jsx as ye}from"react/jsx-runtime";var g5=({children:o})=>{let{disabled:e,readonly:t,size:r}=n1();return ye(N9,{numberOfLines:1,disabled:e,readonly:t,size:r,children:o})};import{Children as Ie,isValidElement as Pe}from"react";import{View as Se}from"react-native";var E9=l(Se,o=>({base:{display:"flex"},variants:{isActive:{true:{display:"none"}}}}));import{jsx as m5}from"react/jsx-runtime";function k2(r){var i=r,{onPress:o,testID:e}=i,t=T(i,["onPress","testID"]);let{size:s="md",isActive:a,isFilled:p,onChangeText:d}=n1(),u={md:"md",ml:"ml",lg:"ml",xl:"ml"};function f(c){d==null||d(""),o==null||o(c)}return p?m5(E9,{isActive:!p||a===!1,children:m5(V.Root,C(n({},t),{variant:"neutral-tertiary",size:u[s],onPressIn:f,onPressOut:f,testID:e,children:m5(V.Icon,{symbol:"rdicon-dismiss-circle-outline"})}))}):null}import{View as Te}from"react-native";var B9=l(Te,o=>({base:{display:"flex",gap:o.spacingInlineOnepulse,flexDirection:"row",alignItems:"center",justifyContent:"space-between",minWidth:o.spacingStackTwentypulse,width:"100%",backgroundColor:o.colorFormsFillDefault,borderRadius:o.borderRadiusForm,borderWidth:o.borderWidthHalfpulse,borderColor:"transparent",paddingVertical:o.paddingInsetOnepulse,paddingHorizontal:o.paddingInsetThreepulse},variants:{size:{md:{height:o.sizingMedium,borderWidth:o.borderWidthHalfpulse},ml:{height:o.sizingMediumlarge},lg:{height:o.sizingLarge},xl:{height:o.sizingExtralarge,borderRadius:o.borderRadiusLargecontainer}},isActive:{true:{borderWidth:o.borderWidthHalfpulse,backgroundColor:o.colorFormsFillFocused,borderColor:o.colorActionBorderFocused,paddingHorizontal:o.paddingInsetNone,paddingLeft:o.paddingInsetTwopulse}},hasCleanerButton:{true:{}},isFilled:{true:{borderColor:o.colorFormsBorderFilled,backgroundColor:o.colorFormsFillFilled,borderWidth:o.borderWidthQuarterpulse}},hasError:{true:{borderWidth:o.borderWidthQuarterpulse,borderColor:o.colorFormsBorderError}},disabled:{true:{backgroundColor:o.colorFormsFillDisabled,borderColor:o.colorFormsBorderDisabled,borderWidth:o.borderWidthQuarterpulse}},readonly:{true:{backgroundColor:o.colorFormsFillReadonly,borderColor:o.colorFormsBorderReadonly}}},compoundVariants:[{variants:{isFilled:!0,isActive:!0},css:{borderWidth:o.borderWidthHalfpulse,borderColor:o.colorActionBorderFocused,backgroundColor:o.colorFormsFillFocused}},{variants:{disabled:!0,readonly:!0},css:{backgroundColor:o.colorFormsFillDisabled,borderColor:o.colorFormsBorderDisabled,borderWidth:o.borderWidthQuarterpulse}},{variants:{isFilled:!0,isActive:!0,hasCleanerButton:!1},css:{borderWidth:o.borderWidthHalfpulse,borderColor:o.colorActionBorderFocused,backgroundColor:o.colorFormsFillFocused,paddingRight:o.paddingInsetTwopulse}},{variants:{isFilled:!1,isActive:!0},css:{paddingRight:o.paddingInsetTwopulse}},{variants:{isFilled:!0,isActive:!0,hasError:!0},css:{borderWidth:o.borderWidthHalfpulse,borderColor:o.colorFormsBorderError,backgroundColor:o.colorFormsFillFocused}},{variants:{isActive:!0,hasError:!0},css:{borderWidth:o.borderWidthHalfpulse,borderColor:o.colorFormsBorderError,backgroundColor:o.colorFormsFillFocused}}]}));import{jsx as He}from"react/jsx-runtime";var b5=({children:o})=>{let{size:e,isActive:t,inputValue:r,id:i,hasError:s,disabled:a,readonly:p}=n1(),d=r.length>0,u=Ie.toArray(o).some(f=>Pe(f)&&f.type===k2);return He(B9,{size:e,role:"form",isActive:t,isFilled:d,hasCleanerButton:u,"aria-label":i,hasError:s,disabled:a,readonly:p,children:o})};import{jsx as he}from"react/jsx-runtime";function W9(r){var i=r,{symbol:o="rdicon-default",testID:e}=i,t=T(i,["symbol","testID"]);let{hasError:s,disabled:a,readonly:p,size:d}=n1(),u=()=>a?"colorTextNeutralDisabled":p?"colorTextNeutralReadonly":"colorTextNeutralDefault";return he(x,n({symbol:o,testID:e,size:d==="md"?"extra-small":"small",color:u()},t))}import{jsx as Ve}from"react/jsx-runtime";var y5=({children:o,withIcon:e=!1,iconName:t="rdicon-warning-circle"})=>{let{hasError:r,disabled:i,readonly:s}=n1();return r?null:Ve(t2,{disabled:i,readonly:s,withIcon:e,iconName:t,iconSize:"tiny",children:o})};import{Children as ve,isValidElement as De}from"react";import{View as Me}from"react-native";var O9=l(Me,o=>({base:{flexDirection:"column",gap:o.spacingStackHalfpulse,backgroundColor:"transparent"},variants:{}}));var _9="The internal components of the InputText must be its own elements. For more information, see the documentation.";import{jsx as G9,jsxs as Fe}from"react/jsx-runtime";var we=c=>{var b=c,{children:o,size:e="md",full:t,disabled:r=!1,readonly:i=!1,hasError:s=!1,errorText:a="Dados inv\xE1lidos",value:p="",onChangeText:d,testID:u="inputTest"}=b,f=T(b,["children","size","full","disabled","readonly","hasError","errorText","value","onChangeText","testID"]);let{isActive:L,setIsActive:g}=n1(),m=ve.map(o,S=>{if(De(S)){if(S.type===g5||S.type===b5||S.type===y5)return S;if(I2()){P2.warning(_9);return}}});return G9(D9,C(n({},{size:e,full:t,hasError:s,errorText:a,disabled:r,readonly:i,value:p,onChangeText:d,isActive:L,setIsActive:g,testID:u}),{children:Fe(O9,C(n({},f),{testID:u,children:[m,s&&G9(t2,{disabled:r,readonly:i,hasError:s,withIcon:!0,iconName:"rdicon-warning-circle",iconSize:"tiny",children:a})]}))}))},E1={Root:we,Field:k9,Label:g5,Actions:b5,Icon:W9,Button:k2,HelperText:y5};import{useState as ze}from"react";import{Pressable as ke}from"react-native";import{View as Ae}from"react-native";var Q9=l(Ae,o=>({base:{flexDirection:"row",backgroundColor:"transparent"},variants:{size:{tiny:{gap:o.spacingInlineNone},small:{gap:o.spacingInlineOnepulse}}}}));import{jsx as u2}from"react/jsx-runtime";var Mu=s=>{var a=s,{size:o="tiny",value:e,ratingLimit:t=5,onPress:r}=a,i=T(a,["size","value","ratingLimit","onPress"]);let[p,d]=ze(0),u="colorTextEvaluateDefault";function f(c){let b=c+1;r(b),d(b)}return u2(Q9,{size:o,children:Array.from({length:t},(c,b)=>{let L=e!=null?e:p,g=Math.floor(L),m=L%1,P=g,S=!1;m>=.5&&(S=!0),m>=.99&&(P+=1,S=!1);let H=b<P,M=b===P&&S;return u2(ke,C(n({onPress:()=>f(b)},i),{testID:"star-icon",children:H?u2(x,{symbol:"rdicon-star-filled",color:u,size:o}):M?u2(x,{symbol:"rdicon-star-half",color:u,size:o}):u2(x,{symbol:"rdicon-star-outline",color:u,size:o})}),`${b}-${L}`)})})};import{createContextScope as ot}from"@radix-ui/react-context";import{useCallback as et,useState as tt}from"react";import{View as Ne}from"react-native";var K9=l(Ne,o=>({base:{alignItems:"flex-end",gap:o.spacingInlineTwopulse,padding:o.paddingInsetNone},variants:{}}));import{jsx as Be}from"react/jsx-runtime";function Y9(o){let{children:e,testID:t,__scopeContent:r}=o,{type:i}=C1(i1,r);if(i==="title")return Be(K9,{testID:t,children:e})}import{View as We}from"react-native";var U9=l(We,o=>({base:{flex:1,minWidth:o.sizingTiny,gap:o.spacingInlineTwopulse,padding:o.paddingInsetNone,justifyContent:"center",backgroundColor:o.colorActionFillNeutralTertiaryEnabled},variants:{type:{title:{flexShrink:1,width:"100%"},interactive:{}}}}));import{jsx as _e}from"react/jsx-runtime";function $9(o){let{children:e,testID:t,__scopeContent:r}=o,{type:i}=C1(i1,r);return _e(U9,{testID:t,type:i,children:e})}import{jsx as Ge}from"react/jsx-runtime";function N2(r){var i=r,{testID:o,symbol:e}=i,t=T(i,["testID","symbol"]);let{__scopeContent:s}=t,{size:a}=C1(i1,s),p=()=>a==="default"?"extra-small":"small";return Ge(x,n({symbol:e||"rdicon-default",testID:o,size:p()},t))}import{jsx as X9}from"react/jsx-runtime";function q9(o){let{children:e,testID:t,__scopeContent:r}=o,{size:i}=C1(i1,r),s=()=>i==="default"?"md":"ml";return X9(e2.Root,{testID:t,size:s(),children:X9(e2.Label,{children:e})})}import{Text as Qe}from"react-native";var J9=l(Qe,o=>({base:{color:o.colorTextNeutralAlternative,fontFamily:o.fontFamily.semiBold,letterSpacing:h(o.letterSpacingDefault)},variants:{size:{default:{fontSize:o.fontSizeThreepulse,lineHeight:y(o.fontSizeThreepulse,o.lineHeightMedium)},xs:{fontSize:o.fontSizeThreeandhalfpulse,lineHeight:y(o.fontSizeThreeandhalfpulse,o.lineHeightMedium)}},type:{interactive:{maxWidth:"90%"},title:{}}}}));import{jsx as Ye}from"react/jsx-runtime";function j9(o){let{children:e,testID:t,__scopeContent:r}=o,i=T(C1(i1,r),[]);return Ye(J9,C(n(n({},{numberOfLines:2,ellipsizeMode:"tail"}),i),{testID:t,children:e}))}import{Text as Ue,View as $e}from"react-native";var o8=l(Ue,o=>({base:{color:o.colorTextNeutralDefault,fontFamily:o.fontFamily.semiBold,letterSpacing:h(o.letterSpacingDefault)},variants:{size:{default:{fontSize:o.fontSizeThreeandhalfpulse,lineHeight:y(o.fontSizeThreeandhalfpulse,o.lineHeightSmall)},xs:{fontSize:o.fontSizeFivepulse,lineHeight:y(o.fontSizeFivepulse,o.lineHeightSmall)}}}})),e8=l($e,o=>({base:{flexDirection:"row",alignItems:"center",gap:o.spacingInlineTwopulse,backgroundColor:"transparent"},variants:{type:{interactive:{maxWidth:"90%"},title:{}}}}));import{jsx as t8,jsxs as qe}from"react/jsx-runtime";function r8(o){let{children:e,testID:t,__scopeContent:r}=o,{size:i,type:s}=C1(i1,r);return qe(e8,{type:s,testID:t,children:[t8(o8,C(n({},{numberOfLines:1,ellipsizeMode:"tail"}),{size:i,children:e})),s==="interactive"&&t8(N2,{symbol:"rdicon-chevron-right",color:"colorTextNeutralDefault"})]})}import{Pressable as Je}from"react-native";var n8=l(Je,o=>({base:{width:"100%",minWidth:o.sizingExtrasmall*o.sizingTiny,flexDirection:"row",gap:o.spacingInlineTwopulse,padding:o.paddingInsetFourpulse,borderRadius:o.borderRadiusPill,backgroundColor:o.colorActionFillNeutralTertiaryEnabled,alignItems:"center",overflow:"hidden"},variants:{hasPressed:{true:{backgroundColor:o.colorActionFillNeutralTertiaryPressed}}}}));import{jsx as i8}from"react/jsx-runtime";var i1="Content";function rt(o){let{children:e,type:t,size:r,testID:i,__scopeContent:s}=o,a={size:r,type:t,scope:s},[p,d]=tt(!1),u=et(f=>{d(f==="in")},[]);return i8(it,C(n({},a),{children:i8(n8,{onPressIn:()=>u("in"),onPressOut:()=>u("out"),hasPressed:p,testID:i,disabled:t==="title",children:e})}))}var[nt]=ot(i1),[it,C1]=nt(i1),lt={Root:rt,Icon:N2,ActionsText:$9,Title:r8,Subtitle:j9,Actions:Y9,Link:q9};import B1,{useState as ut}from"react";import{Pressable as Ct}from"react-native";var l8=l(Ct,o=>({base:{alignItems:"center",width:"100%",display:"flex",backgroundColor:o.colorActionFillEmphasisEnabled,borderWidth:o.borderWidthNone,borderColor:o.colorActionBorderEmphasisEnabled,borderRadius:o.borderRadiusPill,paddingLeft:o.spacingStackThreepulse,paddingRight:o.spacingStackThreepulse},variants:{orientation:{horizontal:{minWidth:96,flexDirection:"row",height:o.sizingLarge,paddingLeft:o.paddingInsetThreepulse,paddingTop:o.paddingInsetThreepulse,paddingBottom:o.paddingInsetThreepulse,paddingRight:o.paddingInsetFourpulse,borderRadius:o.borderRadiusPill},vertical:{minWidth:96,width:158,height:108,flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:o.borderRadiusLargecontainer,paddingTop:o.paddingInsetNone,paddingBottom:o.paddingInsetNone,paddingLeft:o.paddingInsetThreepulse,paddingRight:o.paddingInsetThreepulse}},hasPressed:{true:{backgroundColor:o.colorActionFillEmphasisPressed,borderColor:o.colorActionBorderEmphasisPressed}},hasDisabled:{true:{backgroundColor:o.colorActionFillEmphasisDisabled,borderColor:o.colorActionBorderEmphasisDisabled}}}}));import{jsx as at}from"react/jsx-runtime";function S5({disabled:o=!1,orientation:e="horizontal",symbol:t="rdicon-default",testID:r,pressed:i=!1}){let s=()=>o?"colorTextNeutralDisabled":i?"colorActionTextOnbrandPressed":"colorActionTextOnbrandDefault";return at(x,{size:e==="horizontal"?"small":"medium",testID:r,symbol:t,color:s()})}import{Text as pt}from"react-native";var C8=l(pt,o=>({base:{fontFamily:"RDModern-SemiBold",fontWeight:String(o.fontWeightSemibold),textAlign:"center",letterSpaci