@webority/mobile-ui 0.178.0 → 0.178.1

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.
@@ -7,7 +7,7 @@ import e,{Children as t,Fragment as n,cloneElement as r,createContext as i,creat
7
7
  `),s),ctx:t})});case`list`:return G(V,{children:qT(e.items).map(({key:e,value:a})=>K(V,{style:[r.listRow,{marginLeft:a.depth*n.space.md}],children:[G($,{variant:`body`,style:[r.marker,i],children:a.ordered?`${a.number}.`:`•`}),G($,{variant:`body`,selectable:o,style:[r.listText,i],children:G(YT,{tokens:fT(a.text,s),ctx:t})})]},e))});case`table`:return G(I,{horizontal:!0,showsHorizontalScrollIndicator:!1,style:r.block,children:G(V,{style:r.table,children:qT([e.header,...e.rows]).map(({key:n,value:a})=>G(V,{style:[r.row,n===0&&r.headerRow],children:qT(e.header).map(({key:e})=>G(V,{style:r.cell,children:G($,{variant:`bodySmall`,weight:n===0?`semibold`:void 0,selectable:o,style:i,children:G(YT,{tokens:fT(a[e]??``,s),ctx:t})})},e))},n))})});case`code`:return G(I,{horizontal:!0,style:r.code,children:G($,{variant:`body`,size:`sm`,selectable:!0,style:r.codeText,children:e.text})});case`quote`:return G(V,{style:r.quote,children:G($,{variant:`body`,selectable:o,style:[r.quoteText,i],children:G(YT,{tokens:fT(e.lines.join(`
8
8
  `),s),ctx:t})})});case`rule`:return G(V,{style:r.rule});default:return null}}var $T=({style:e,testID:t})=>{let n=Ir();return K(V,{style:e,testID:t,children:[G(vh,{shape:`text`,width:`70%`,height:20,style:{marginBottom:n.space.sm}}),G(vh,{shape:`text`,width:`100%`,height:14,style:{marginBottom:n.space.xs}}),G(vh,{shape:`text`,width:`92%`,height:14,style:{marginBottom:n.space.xs}}),G(vh,{shape:`text`,width:`60%`,height:14})]})};function eE({children:e,links:t=`web`,headings:n=`outline`,figureText:r,resolveLink:i,isCitation:a,onOpenCitation:o,onAppLinkPress:s,onLinkPress:c,onPageLinkPress:l,loading:u=!1,style:d,textStyle:f,selectable:p=!1,testID:h}){let g=Ir(),_=m(()=>KT(g),[g]),v=m(()=>zT(e??``),[e]);if(u)return G($T,{style:d,testID:h});if(v.length===0)return null;let y={theme:g,styles:_,links:t,headings:n,textStyle:f,selectable:p,figureText:r,resolveLink:i,isCitation:a,onOpenCitation:o,onAppLinkPress:s,onLinkPress:c,onPageLinkPress:l};return G(V,{style:d,testID:h,children:v.map(e=>G(QT,{block:e,ctx:y},e.key))})}eE.displayName=`Markdown`;var tE=(e,t)=>t?Op(e.replyTo,{author:t}):e.reply,nE=e=>{switch(e){case`sending`:return`clock`;case`sent`:return`check`;case`failed`:return`alert-circle`;default:return`check-check`}},rE=(e,t)=>{switch(t){case`read`:return e.colors[`info-text`];case`failed`:return e.colors[`danger-text`];default:return e.colors[`text-subtle`]}},iE=({side:e,text:t,children:n,markdown:r,groupPosition:i=`single`,author:a,time:o,status:s,replyTo:l,streaming:d=!1,error:f,onRetry:p,actions:g,onCopy:_,onLongPress:v,footer:y,labels:b,haptic:x,style:S,testID:C})=>{Q(`MessageBubble`,`side`,e,[`mine`,`theirs`]),Q(`MessageBubble`,`groupPosition`,i,[`single`,`first`,`middle`,`last`]),Q(`MessageBubble`,`status`,s,[`sending`,`sent`,`delivered`,`read`,`failed`]);let w=Ir(),T=m(()=>aE(w),[w]),E=Zm(`messageBubble`,fm),D=m(()=>b?{...E,...b}:E,[E,b]),O=e===`mine`,k=!f&&(r??e===`theirs`),A=i===`single`||i===`first`,j=i===`single`||i===`last`,M=o==null?``:me(o),F=(s===`failed`||!!f)&&!!p,I=O?D.you:a??``,L=m(()=>{let e=[];return _&&!g?.some(e=>e.name===`copy`)&&e.push({name:`copy`,label:D.copy,onPress:()=>_(t)}),g&&e.push(...g),l?.onPress&&e.push({name:`openReply`,label:tE(D,l.author),onPress:l.onPress}),F&&p&&e.push({name:`retry`,label:D.retry,onPress:p}),e},[g,_,t,l,F,p,D]),R=(g?.length??0)>0||!!_,z=L_(m(()=>R?{items:L.map(({name:e,label:t,onPress:n})=>({key:e,label:t,onPress:n}))}:void 0,[R,L]),{haptic:x,testID:C}),ee=z.hostProps.onLongPress,B=!n||(g?.length??0)>0,te=s&&O?D[s]:``,ne=m(()=>k&&n==null?UT(t):t,[k,n,t]),H=[I,M,ne,l?`${tE(D,l.author)}: ${l.text}`:``,te].filter(Boolean).join(`, `),re=h(d);u(()=>{re.current&&!d&&!f&&t&&eh(I?`${I}, ${ne}`:ne),re.current=d},[d,f,t,ne,I]);let U=h(f);u(()=>{f&&f!==U.current&&eh(f,{polite:!1}),U.current=f},[f]);let W=c(e=>{ee?.(e),v?.()},[ee,v]),ie=c(e=>{L.find(t=>t.name===e.nativeEvent.actionName)?.onPress()},[L]),ae=w.radius.xl,q=w.radius.sm,J=O?{borderTopRightRadius:A?ae:q,borderBottomRightRadius:j?ae:q}:{borderTopLeftRadius:A?ae:q,borderBottomLeftRadius:j?ae:q},Y=n??(k?G(eE,{children:t}):G($,{variant:`body`,children:t})),X=l?K(P,{onPress:l.onPress,disabled:!l.onPress,accessibilityRole:l.onPress?`button`:void 0,accessibilityLabel:`${tE(D,l.author)}: ${l.text}`,style:T.quote,children:[l.author?G($,{variant:`caption`,weight:`semibold`,color:`link`,numberOfLines:1,children:l.author}):null,G($,{variant:`bodySmall`,color:`secondary`,numberOfLines:2,children:l.text})]}):null,Z=[T.bubble,O?T.mine:T.theirs,J],oe=B?{accessible:!0,accessibilityLabel:H,accessibilityState:{busy:d},"aria-busy":d,accessibilityActions:L.map(({name:e,label:t})=>({name:e,label:t})),onAccessibilityAction:ie}:{accessible:!1},se=R?K(P,{ref:z.hostRef,...z.hostProps,onLongPress:W,delayLongPress:350,style:Z,testID:C?`${C}-bubble`:void 0,...oe,children:[X,Y]}):K(V,{style:Z,testID:C?`${C}-bubble`:void 0,...oe,children:[X,Y]}),ce=j&&(M!==``||O&&s);return K(V,{style:[T.root,O?T.rootMine:T.rootTheirs,{marginTop:A?w.space.sm:w.space.xxs},S],accessibilityState:{busy:d},"aria-busy":d,testID:C,children:[!O&&A&&a?G($,{variant:`caption`,color:`secondary`,style:T.author,numberOfLines:1,importantForAccessibility:B?`no-hide-descendants`:`auto`,accessibilityElementsHidden:B,...N.OS===`web`?{"aria-hidden":!0}:null,children:a}):null,se,z.renderSurface(),ce?K(V,{style:[T.meta,O?T.metaMine:null],importantForAccessibility:B?`no-hide-descendants`:`auto`,accessibilityElementsHidden:B,children:[M?G($,{variant:`caption`,color:`tertiary`,children:M}):null,O&&s?G(_p,{name:nE(s),size:14,color:rE(w,s),accessibilityLabel:D[s],testID:C?`${C}-status-${s}`:void 0}):null]}):null,f?G($,{variant:`bodySmall`,color:`danger`,style:O?T.endText:null,children:f}):null,F?G(fg,{label:D.retry,variant:`link`,size:`sm`,leftIcon:`refresh-cw`,onPress:p,testID:C?`${C}-retry`:void 0}):null,y]})},aE=e=>R.create({root:{maxWidth:`85%`,gap:e.space.xs},rootMine:{alignSelf:`flex-end`,alignItems:`flex-end`},rootTheirs:{alignSelf:`flex-start`,alignItems:`flex-start`},author:{paddingHorizontal:e.space.md},bubble:{borderRadius:e.radius.xl,...ni,paddingHorizontal:e.space.md,paddingVertical:e.space.sm,gap:e.space.xs},mine:{backgroundColor:e.colors[`primary-soft`]},theirs:{backgroundColor:e.colors[`bg-subtle`]},quote:{borderLeftWidth:3,borderLeftColor:e.colors.primary,paddingLeft:e.space.sm,paddingVertical:e.space.xs},meta:{flexDirection:`row`,alignItems:`center`,gap:e.space.xs,paddingHorizontal:e.space.xs},metaMine:{justifyContent:`flex-end`},endText:{textAlign:`right`}}),oE={minIndexForVisible:0,autoscrollToTopThreshold:160},sE=(e,t)=>e?t?`middle`:`last`:t?`first`:`single`;function cE({messages:e,keyExtractor:t,renderMessage:n,getAuthorKey:r,getDate:i,firstUnreadKey:a,onLoadOlder:o,loadingOlder:s=!1,hasOlder:l=!0,typing:d,empty:f,getAnnouncement:p,followNew:_,keyboardAware:v=!0,keyboardOffset:y,labels:b,now:x,onScroll:S,onContentSizeChange:C,contentContainerStyle:w,style:E,testID:D,...O}){let k=Ir(),A=xt(),j=Rn(),M=m(()=>lE(k),[k]),N=Zm(`messageList`,pm),P=m(()=>({...N,...b}),[N,b]),F=y??A.bottom,I=h(null),L=h(!1),R=h(!0),z=h(0),[ee,B]=g(!1),[te,ne]=g(0),re=m(()=>{let n=i?e.map(e=>le(i(e))):null,o=r?e.map(r):null,s=a===void 0?-1:e.findIndex(e=>t(e)===a);return e.map((t,r)=>{let a=r===e.length-1,c=n!==null&&(a||n[r]!==n[r+1]);return{groupPosition:sE(o!==null&&!a&&o[r+1]===o[r]&&!c&&r!==s,o!==null&&r>0&&o[r-1]===o[r]&&(n===null||n[r-1]===n[r])&&r-1!==s),day:c&&i?lC(i(t),{now:x,labels:P}):null,unread:r===s}})},[e,i,r,a,t,x,P]),U=c(()=>{R.current=!0,I.current?.scrollToOffset({offset:0,animated:!j}),ne(0)},[j]),W=e[0],ie=W===void 0?null:t(W),ae=h(ie);u(()=>{let n=ae.current;if(ae.current=ie,n===null||ie===null||n===ie)return;let r=e.findIndex(e=>t(e)===n);if(r===-1)return void ne(0);let i=e.slice(0,r).reverse();for(let e of i){let t=p?.(e);t&&eh(t)}_&&i.some(_)?U():L.current&&ne(e=>e+i.length)},[ie,e,t,p,_,U]);let q=c(e=>{R.current=e.nativeEvent.contentOffset.y<=48;let t=e.nativeEvent.contentOffset.y>160;t!==L.current&&(L.current=t,B(t),t||ne(0)),S?.(e)},[S]),J=c((e,t)=>{let n=t>z.current;z.current=t,n&&R.current&&I.current?.scrollToOffset({offset:0,animated:!1}),C?.(e,t)},[C]),Y=c(()=>{l&&!s&&o?.()},[l,s,o]),X=c(({item:e,index:t})=>{let r=re[t];return K(V,{children:[r?.day?G(uC,{label:r.day}):null,r?.unread?G(uC,{label:P.unread,emphasis:!0}):null,n({item:e,index:t,groupPosition:r?.groupPosition??`single`})]})},[re,P.unread,n]),Z=c(e=>t(e),[t]),oe=c(e=>G(H,{...e,inverted:!0,offset:F}),[F]),se=te>0?`${kp(P,`newMessages`,te)}. ${P.jumpToLatest}`:P.jumpToLatest;return K(V,{style:[M.root,E],children:[G(T,{keyboardShouldPersistTaps:`handled`,maintainVisibleContentPosition:oE,...O,ref:I,data:e,renderItem:X,keyExtractor:Z,inverted:!0,onScroll:q,onContentSizeChange:J,onEndReached:o?Y:void 0,ListHeaderComponent:d?G(V,{children:d}):void 0,ListFooterComponent:s?G(ug,{size:`sm`,accessibilityLabel:P.loadingOlder,style:M.older}):void 0,ListEmptyComponent:f?G(V,{style:M.fill,children:f}):void 0,renderScrollComponent:v?oe:void 0,contentContainerStyle:[M.content,e.length===0?M.grow:null,w],testID:D}),ee?K(V,{style:M.jump,pointerEvents:`box-none`,children:[G(V,{style:M.jumpDisc,children:G(mS,{icon:`arrow-down`,accessibilityLabel:se,variant:`ghost`,tone:`neutral`,onPress:U,testID:D?`${D}-jump`:void 0})}),te>0?G(V,{style:M.count,pointerEvents:`none`,importantForAccessibility:`no-hide-descendants`,accessibilityElementsHidden:!0,children:G(bb,{value:te,max:99,tone:`primary`,size:`sm`})}):null]}):null]})}var lE=e=>R.create({root:{flex:1},content:{paddingHorizontal:e.space.md,paddingVertical:e.space.sm},grow:{flexGrow:1},fill:{flex:1},older:{paddingVertical:e.space.md},jump:{position:`absolute`,right:e.space.md,bottom:e.space.md},jumpDisc:{borderRadius:e.radius.pill,...ni,backgroundColor:e.colors.surface,...e.shadow.elevated},count:{position:`absolute`,top:-e.space.xs,right:-e.space.xs}}),uE=`[@webority/mobile-ui] NonModalBottomSheet: `,dE={damping:20,stiffness:240,mass:1},fE=/^(\d+(?:\.\d+)?|\.\d+)%$/,pE=e=>{if(typeof e!=`string`)return;let t=fE.exec(e);if(!t)return;let n=Number(t[1]);return n>0&&n<=100?n:void 0},mE=e=>typeof e==`number`?Number.isFinite(e)&&e>0:pE(e)!==void 0,hE=(e,t)=>{if(e.length===0)throw Error(`${uE}snapPoints needs at least one snap point.`);for(let t of e)if(!mE(t))throw Error(`${uE}snap point ${String(t)} is not a positive number or a percentage up to 100%.`);if(t!=null&&(!Number.isInteger(t)||t<0||t>=e.length))throw Error(`${uE}snapIndex ${t} is outside the snap points.`)},gE=(e,t)=>e.map(e=>typeof e==`number`?e:parseFloat(e)/100*t).sort((e,t)=>e-t),_E=(e,t,n)=>{let r=e[n];if(r===void 0)throw Error(`${uE}snap index ${n} has no snap point.`);return Math.max(0,t-r)},vE=e=>{let{open:t,onClose:n,snapPoints:r,snapIndex:i,onSnapChange:a,enablePanDownToClose:o=!0,scrollable:s=!1,title:l,header:f,footer:p,labels:_,handleIndicatorStyle:v,sheetStyle:y,children:b,accessibilityLabel:x,testID:S}=e;hE(r,i);let w=Zm(`nonModalBottomSheet`,hm),T=m(()=>({...w,..._}),[w,_]),E=Ir(),D=ti(),O=D.reduced,k=m(()=>yE(E),[E]),[A,j]=g(()=>C.get(`window`).height),M=c(e=>{let t=e.nativeEvent.layout.height;t>0&&j(t)},[]),N=m(()=>gE(r,A),[r,A]),P=N[N.length-1]??0,F=A,L=Math.max(0,A-P),z=c(e=>_E(N,A,e),[N,A]),[ee,B]=g(!1),[te,ne]=g(-1),H=h(-1),re=h(n);re.current=n;let U=h(a);U.current=a;let W=Xe(F),ie=Xe(F),ae=c(()=>{H.current<0&&B(!1)},[]),q=c(()=>{if(H.current=-1,ne(-1),O)return W.value=F,void ae();W.value=tt(F,{duration:D.duration(`fast`),easing:De.bezier(...E.motion.ease.accelerate),reduceMotion:ei},e=>{"worklet";e&&yt(ae)})},[F,D,O,E.motion.ease.accelerate,W,ae]),J=c(e=>{let t=z(e);W.value=O?t:et(t,dE)},[O,z,W]),Y=c((e,t)=>{e!==H.current&&(H.current=e,ne(e),J(e),t&&U.current?.(e))},[J]),X=d(e=>{if(!e)return void(H.current>=0&&q());let t=i??0;B(!0);let n=z(t);O?W.value=n:(W.value=F,W.value=et(n,dE)),H.current=t,ne(t)});u(()=>{X(t)},[t]);let Z=d(e=>{t&&ee&&e!==H.current&&Y(e,!1)});u(()=>{i!=null&&Z(i)},[i]);let oe=d(e=>{let t=H.current;t>=0&&(W.value=_E(N,e,t))});u(()=>{oe(A)},[A]);let se=c(e=>{if(e<0)return si(`selection`),q(),void re.current();e===H.current?J(e):Y(e,!0)},[Y,J,q]),ce=c(e=>{let t=H.current;t<0||Y(Math.min(Math.max(t+e,0),N.length-1),!0)},[Y,N.length]),le=m(()=>N.map(e=>A-e),[N,A]),ue=m(()=>{let e=le,t=L,n=o;return{testID:S?`${S}-pan-gesture`:`non-modal-bottom-sheet-pan-gesture`,activeOffsetY:[-10,10],onActivate:()=>{"worklet";ie.value=W.value},onUpdate:e=>{"worklet";let n=ie.value+e.translationY;W.value=n<t?t+.25*(n-t):n},onDeactivate:t=>{"worklet";let r=W.value,i=e[0];if(i===void 0)return;if(t.velocityY>1e3)return void yt(se,n?-1:0);if(n&&r-i>80)return void yt(se,-1);let a=0,o=1/0,s=0;for(let t of e){let e=Math.abs(r-t);e<o&&(o=e,a=s),s++}yt(se,a)}}},[ie,o,se,L,le,S,W]),de=ht(ue),fe=Ge(()=>({top:Math.max(W.value,L)}),[L]),pe=Ge(()=>{let e=Math.max(W.value,L),t=A-e;return{height:Math.max(0,Math.min(t,P))}},[A,P,L]);return ee?G(V,{collapsable:!1,style:R.absoluteFill,pointerEvents:`box-none`,onLayout:M,testID:S,children:G(Ee.View,{accessibilityLabel:x,testID:S?`${S}-sheet`:void 0,style:[k.sheet,{height:P,backgroundColor:E.colors.surface,borderTopLeftRadius:E.radius.xl,borderTopRightRadius:E.radius.xl,...ni,...E.shadow.modal},y,fe],children:K(Ee.View,{style:[k.body,pe],children:[G(ut,{gesture:de,children:G(V,{style:k.handleRow,accessible:!0,accessibilityRole:`adjustable`,accessibilityLabel:T.dragHandle,accessibilityHint:T.swipeHintText,accessibilityValue:{text:Op(T.snapPointText,{position:te+1,total:N.length})},accessibilityActions:[{name:`increment`},{name:`decrement`}],onAccessibilityAction:e=>{e.nativeEvent.actionName===`increment`?ce(1):e.nativeEvent.actionName===`decrement`&&ce(-1)},testID:S?`${S}-handle`:void 0,children:G(V,{style:[k.handle,{backgroundColor:E.colors.border},v]})})}),l==null?null:G($,{variant:`title`,accessibilityRole:`header`,children:l}),f,s?G(I,{style:k.scrollContent,children:b}):G(V,{style:k.content,children:b}),p]})})}):null};vE.displayName=`NonModalBottomSheet`;var yE=e=>R.create({sheet:{position:`absolute`,left:0,right:0,overflow:`hidden`},body:{overflow:`hidden`},handleRow:{alignItems:`center`,justifyContent:`center`,alignSelf:`stretch`,paddingTop:e.space.md,paddingBottom:e.space.xl},handle:{width:36,height:4,borderRadius:e.radius.pill,...ni},content:{flex:1,overflow:`hidden`},scrollContent:{flex:1}}),bE=[`sm`,`md`,`lg`],xE=[`inline`,`horizontal`],SE=(e,t)=>{if(!Number.isFinite(e))return 0;if(t<=0)return Math.round(e);let n=10**t;return Math.round(e*n)/n},CE=(e,t,n)=>e<t?t:e>n?n:e,wE=(e,t,n)=>Number.isFinite(e)?t&&n>0?e.toFixed(n):String(Math.trunc(e)):``,TE=(e,t)=>{if(!e)return``;let n=e.replace(/[^0-9.-]/g,``);if(n=n.replace(/(?!^)-/g,``),t){let e=n.indexOf(`.`);e!==-1&&(n=n.slice(0,e+1)+n.slice(e+1).replace(/\./g,``))}else n=n.replace(/\./g,``);return n};function EE({ref:t,...n}){let{value:r,defaultValue:i,onChange:a,min:o=-1/0,max:s=1/0,step:l=1,allowDecimal:d=!1,precision:f=0,label:p,help:_,helperText:v,error:y,disabled:b=!1,size:x=`md`,variant:S=`inline`,unit:C,haptic:w,labels:T,accessibilityLabel:E,style:D,inputStyle:O,buttonStyle:k,unitStyle:A,labelStyle:j,textInputProps:M,testID:N}=n;Q(`NumberInput`,`size`,n.size,bE),Q(`NumberInput`,`variant`,n.variant,xE);let F=Zm(`numberInput`,gm),I=m(()=>({...F,...T}),[F,T]),[L,R]=Bh({value:r,defaultValue:i??n.min??0,onChange:a}),z=Ir(),B=fn(z,x),te=xg(z,{disabled:b}),ne=m(()=>DE(z),[z]),H=h(null),[re,U]=g(wE(L,d,f)),[W,ie]=g(!1),[ae,q]=g(!1),J=c(()=>{b||H.current?.focus()},[b]),Y=h(null),X=h(null),Z=c(()=>{Y.current!==null&&(clearTimeout(Y.current),Y.current=null),X.current!==null&&(clearInterval(X.current),X.current=null)},[]);u(()=>Z,[Z]),u(()=>{W||U(wE(L,d,f))},[L,d,f,W]);let oe=L<=o,se=L>=s,ce=!b,le=c(e=>{let t=CE(SE(e,d?f:0),o,s);t!==L&&R(t)},[d,s,o,R,f,L]),ue=c(()=>{if(!ce||oe)return;let e=ci(w,`selection`);e&&si(e),le(L-l)},[oe,ce,w,le,l,L]),de=c(()=>{if(!ce||se)return;let e=ci(w,`selection`);e&&si(e),le(L+l)},[se,ce,w,le,l,L]);e.useImperativeHandle(t,()=>({focus:()=>H.current?.focus(),blur:()=>H.current?.blur(),clear:()=>{U(``),R(Number.isFinite(o)&&o>0||0<o?o:Math.min(s,0))}}),[s,o,R]);let fe=c(e=>{ce&&(Z(),Y.current=setTimeout(()=>{X.current=setInterval(()=>{e===`inc`?de():ue()},80)},500))},[Z,ue,de,ce]),pe=c(e=>{we();let t=TE(e,d);U(t);let n=Number(t);t!==``&&t!==`-`&&t!==`.`&&Number.isFinite(n)&&n>=o&&n<=s&&n!==L&&R(SE(n,d?f:0))},[d,s,o,R,f,L]),me=c(()=>{ie(!1),q(!1);let e=Number(re);if(re===``||!Number.isFinite(e))return void U(wE(L,d,f));let t=CE(SE(e,d?f:0),o,s);t!==L&&R(t),U(wE(t,d,f))},[d,re,s,o,R,f,L]),he=c(()=>{ie(!0),q(!0)},[]),ge=oe||b?z.colors[`text-disabled`]:z.colors[`text-body`],_e=se||b?z.colors[`text-disabled`]:z.colors[`text-body`],ve=B.icon+8,ye=(e,t,n,r,i,a)=>G(P,{onPress:t,onLongPress:()=>fe(e),onPressOut:Z,delayLongPress:500,disabled:n,accessibilityRole:`button`,accessibilityLabel:r,accessibilityState:{disabled:n},"aria-disabled":n,style:({pressed:e})=>[{width:ve,height:ve,alignItems:`center`,justifyContent:`center`,borderRadius:z.radius.pill,...ni},e&&!n?{backgroundColor:z.colors[`surface-pressed`]}:null,k],testID:`${N??`numberinput`}-${e===`inc`?`plus`:`minus`}`,children:G($,{variant:`body`,weight:`semibold`,style:{fontSize:B.icon,color:i,fontWeight:z.weight.semibold,lineHeight:B.icon+2},children:a})}),be=E??Eg(p)??I.input,xe=!0===y||Tg(y),Se=G(jg,{testID:N?`${N}-field`:void 0,size:x,disabled:b,error:xe,filled:!0,focused:ae,onPress:J,pressFeedback:!1,leading:ye(`dec`,ue,oe||b,I.decrease,ge,`−`),trailing:ye(`inc`,de,se||b,I.increase,_e,`+`),children:K(V,{style:ne.inputRow,children:[G(ee,{ref:H,value:re,onChangeText:pe,onFocus:he,onBlur:me,editable:!b,keyboardType:d?`decimal-pad`:`number-pad`,selectTextOnFocus:!0,accessibilityRole:`adjustable`,accessibilityLabel:be,accessibilityValue:{now:Number.isFinite(L)?L:0},accessibilityState:{disabled:b},"aria-disabled":b,accessibilityActions:[{name:`increment`,label:I.increase},{name:`decrement`,label:I.decrease}],onAccessibilityAction:e=>{e.nativeEvent.actionName===`increment`&&de(),e.nativeEvent.actionName===`decrement`&&ue()},style:[ne.input,{fontSize:B.text,color:te.color,...te.weightStyle},O],...M}),C?G($,{variant:`bodySmall`,style:[ne.unit,{fontSize:B.text,color:te.placeholderColor},A],children:C}):null]})}),Ce=Tg(p)?G(Dg,{size:x,help:_,style:j,children:p}):null,Te=G(Og,{size:x,error:xe,text:xe?y:v});return K(V,S===`horizontal`?{style:[ne.horizontalContainer,D],testID:N,accessibilityState:{disabled:b},"aria-disabled":b,children:[G(V,{style:ne.horizontalLabelWrap,children:Ce}),K(V,{children:[Se,Te]})]}:{style:[D],testID:N,accessibilityState:{disabled:b},"aria-disabled":b,children:[Ce,Se,Te]})}var DE=e=>R.create({inputRow:{flex:1,flexDirection:`row`,alignItems:`center`,justifyContent:`center`},input:{flex:1,textAlign:`center`,padding:e.space.none,margin:e.space.none,includeFontPadding:!1},unit:{marginLeft:e.space.xs},label:{marginBottom:e.space.xs},helper:{marginTop:e.space.xs},horizontalContainer:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`},horizontalLabelWrap:{flexShrink:1,paddingRight:e.space.md}}),OE=({pages:e,onDone:t,onSkip:n,labels:r,safeArea:i=!0,haptic:a=`selection`,testID:o})=>{let s=Ir(),l=xt(),d=Rn(),f=m(()=>ME(s),[s]),p=Zm(`onboardingPager`,_m),_=m(()=>r?{...p,...r}:p,[p,r]),v=m(()=>e.slice(0,6),[e]),y=v.length,b=c((e,t)=>Op(_.step,{position:e,total:t}),[_.step]),x=h(null),[S,C]=g(0),w=S>=y-1,T=c(e=>{e<0||e>=y||x.current?.scrollTo(e,!d)},[y,d]),E=c(e=>T(S+e),[T,S]),D=c(()=>{w?t():T(S+1)},[w,t,T,S]),O=h(S);u(()=>{if(O.current===S)return;O.current=S;let e=v[S];e&&eh(`${b(S+1,y)}, ${e.title}`)},[S,v,y,b]);let k=c((e,t)=>G(I,{style:f.page,contentContainerStyle:f.pageContent,showsVerticalScrollIndicator:!1,bounces:!1,children:K(V,{accessible:!0,accessibilityLabel:`${b(t+1,y)}, ${e.title}. ${e.body}`,style:f.pageGroup,children:[e.art?G(V,{style:f.art,children:e.art}):null,G($,{variant:`h2`,align:`center`,children:e.title}),G($,{variant:`body`,color:`secondary`,align:`center`,children:e.body})]})}),[f,b,y]);return y===0?null:K(V,{style:[f.root,i?{paddingTop:l.top,paddingBottom:l.bottom}:null],testID:o,children:[G(V,{style:f.skipRow,children:G(fg,{label:_.skip,variant:`ghost`,tone:`neutral`,hitSlop:{top:2,bottom:2,left:8,right:8},haptic:a,onPress:n,testID:o?`${o}-skip`:void 0})}),G(Rx,{ref:x,data:v,renderItem:k,keyExtractor:e=>e.key,onIndexChange:C,showPagination:!1,style:f.carousel,testID:o?`${o}-pages`:void 0}),K(V,{style:f.footer,children:[y>1?G(kE,{keys:v.map(e=>e.key),index:S,label:_.pageControl,valueText:b(S+1,y),reduceMotion:d,theme:s,onStep:E,testID:o?`${o}-dots`:void 0}):null,G(fg,{label:w?_.done:_.next,size:`lg`,fullWidth:!0,haptic:a,onPress:D,testID:o?`${o}-next`:void 0})]})]})};OE.displayName=`OnboardingPager`;var kE=({keys:e,index:t,label:n,valueText:r,reduceMotion:i,theme:a,onStep:o,testID:s})=>{let l=c(e=>{e.nativeEvent.actionName===`increment`?o(1):e.nativeEvent.actionName===`decrement`&&o(-1)},[o]);return K(V,{accessible:!0,accessibilityRole:`adjustable`,accessibilityLabel:n,accessibilityValue:{min:0,max:e.length-1,now:t,text:r},accessibilityActions:[{name:`increment`},{name:`decrement`}],onAccessibilityAction:l,style:jE.control,testID:s,children:[G(V,{style:jE.dots,pointerEvents:`none`,children:e.map((e,n)=>G(AE,{active:n===t,reduceMotion:i,theme:a},e))}),G(P,{accessible:!1,importantForAccessibility:`no`,style:jE.back,onPress:()=>o(-1),testID:s?`${s}-back`:void 0}),G(P,{accessible:!1,importantForAccessibility:`no`,style:jE.forward,onPress:()=>o(1),testID:s?`${s}-forward`:void 0})]})},AE=({active:e,reduceMotion:t,theme:n})=>{let r=h(Ht(+!!e)).current;return u(()=>{let i=b.timing(r,{toValue:+!!e,duration:t?0:n.motion.duration.default,easing:w.bezier(...n.motion.ease[`in-out`]),useNativeDriver:!1});return i.start(),()=>i.stop()},[e,t,r,n]),G(b.View,{style:{width:r.interpolate({inputRange:[0,1],outputRange:[8,24]}),height:8,marginHorizontal:n.space.xs,borderRadius:4,...ni,backgroundColor:r.interpolate({inputRange:[0,1],outputRange:[n.colors.border,n.colors.primary]})}})},jE=R.create({control:{alignSelf:`center`,height:44,minWidth:88,alignItems:`center`,justifyContent:`center`},dots:{flexDirection:`row`,alignItems:`center`},back:{position:`absolute`,top:0,bottom:0,start:0,width:`50%`},forward:{position:`absolute`,top:0,bottom:0,end:0,width:`50%`}}),ME=e=>R.create({root:{flex:1,backgroundColor:e.colors.bg},skipRow:{minHeight:44,paddingHorizontal:e.space.lg,alignItems:`flex-end`,justifyContent:`center`},carousel:{flex:1},page:{flex:1},pageContent:{flexGrow:1,justifyContent:`center`,paddingHorizontal:e.space.xl,paddingVertical:e.space.lg},pageGroup:{alignItems:`stretch`,gap:e.space.md},art:{alignItems:`center`,alignSelf:`stretch`,marginBottom:e.space.xl},footer:{paddingHorizontal:e.space.lg,paddingBottom:e.space.lg,gap:e.space.sm}}),NE=(e,t)=>{let n=e[t];if(n===void 0)throw Error(`OTP cell ${t} is outside the ${e.length} cells.`);return n},PE=(e,t)=>e?t===`number-pad`?e.replace(/\D/g,``):e:``;function FE({ref:e,...t}){let{value:n,defaultValue:r,onChange:i,onComplete:a,length:o=6,keyboardType:s=`number-pad`,autoFocus:l=!1,autoFocusDelay:d=0,disabled:p=!1,error:_,size:v=`md`,secure:y=!1,haptic:x,labels:S,onFocus:C,accessibilityLabel:T,style:E,cellStyle:D,textStyle:O,testID:k}=t;Q(`OTPInput`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`OTPInput`,`keyboardType`,t.keyboardType,[`number-pad`,`default`]);let A=Zm(`otpInput`,ym),j=m(()=>({...A,...S}),[A,S]),[M,N]=Bh({value:n,defaultValue:r??``,onChange:i}),F=Ir(),I=m(()=>IE(F),[F]),L=bn(F,v),R=F.components[`otp-input`][v].radius,z=h([]),[B,te]=g(-1),[ne,H]=g(0),re=h(null),U=h(Ht(0)).current,W=h(new Map),ie=m(()=>{let e=W.current,t=[];for(let n=0;n<o;n+=1){let r=e.get(n);r||(r=new b.Value(0),e.set(n,r)),t.push(r)}for(let t of Array.from(e.keys()))t>=o&&e.delete(t);return t},[o]),ae=h(-1),q=F.settings.components[`otp-input`]?.shakeOnError??!1,J=Rn(),Y=!0===_||Tg(_);u(()=>{let e;return re.current===null||!Y||re.current||(x&&si(`notificationError`),q&&!J&&(Ut(U,0),e=b.sequence([b.timing(U,{toValue:1,duration:F.motion.duration.instant,easing:w.linear,useNativeDriver:Vt}),b.timing(U,{toValue:-1,duration:F.motion.duration.instant,easing:w.linear,useNativeDriver:Vt}),b.timing(U,{toValue:1,duration:F.motion.duration.instant,easing:w.linear,useNativeDriver:Vt}),b.timing(U,{toValue:0,duration:F.motion.duration.instant,easing:w.linear,useNativeDriver:Vt})]),e.start())),re.current=Y,()=>e?.stop()},[Y,U,q,x,J,F.motion.duration.instant]),u(()=>{let e=ae.current;if(ae.current=B,e===B||e===-1&&B===-1)return;let t=[];return ie.forEach((n,r)=>{let i=+(r===B);if(r!==B&&r!==e)return;let a=b.timing(n,{toValue:i,duration:F.motion.duration.fast,easing:w.bezier(...F.motion.ease[`in-out`]),useNativeDriver:Vt});a.start(),t.push(a)}),()=>t.forEach(e=>{e.stop()})},[B,ie,F]);let X=c(e=>{let t=z.current[e];t&&t.focus()},[]);f(e,()=>({focus:()=>X(0),blur:()=>{z.current[Math.max(B,0)]?.blur()},clear:()=>{N(``),X(0)}}),[X,B,N]),u(()=>{if(l&&!p){let e=setTimeout(()=>X(0),d);return()=>clearTimeout(e)}},[l,d,p,X]);let Z=m(()=>{let e=Array(o).fill(``);for(let t=0;t<Math.min(M.length,o);t+=1)e[t]=M.charAt(t);return e},[M,o]),oe=m(()=>Z.map((e,t)=>({key:`otp-cell-${t}`,index:t,char:e})),[Z]),se=c(e=>{let t=e.slice(0,o);t!==M&&(N(t),t.length===o&&a&&a(t))},[o,N,a,M]),ce=c((e,t)=>{let n=PE(t.replace(/\u200B/g,``),s);if(!n){let t=Z.slice(),n=NE(Z,e).length>0;if(t[e]=``,se(t.join(``).slice(0,o)),!n&&e>0){let t=Z.slice();t[e-1]=``,se(t.join(``)),X(e-1)}return}let r=NE(Z,e),i=r&&n.length>o&&n.startsWith(r)?n.slice(r.length):n;if(i.length>=o){let t=i.slice(0,o),n=M.length;se(t),t.length!==n&&x&&si(x),z.current[e]?.blur();return}let a=Z.slice(),c=e;for(let e=0;e<n.length&&c<o;e+=1)a[c]=n.charAt(e),c+=1;let l=a.join(``).slice(0,o),u=M.length;se(l),l.length!==u&&x&&si(x);let d=Math.min(c,o-1);c>=o?z.current[e]?.blur():X(d)},[Z,X,s,o,x,se,M]),le=c((e,t)=>{if(t.nativeEvent.key===`Backspace`){if(NE(Z,e).length===0){if(e>0){let t=Z.slice();t[e-1]=``,se(t.join(``)),X(e-1)}}else{let t=Z.slice();t[e]=``,se(t.join(``))}}},[Z,X,se]),ue=c((e,t)=>{te(e),C?.(t)},[C]),de=c(()=>{te(-1)},[]),fe=c(()=>{if(p)return;let e=Z.indexOf(``);X(e===-1?o-1:e)},[Z,p,X,o]),pe=c(e=>{H(e.nativeEvent.layout.width)},[]),me=T??Op(j.field,{length:o}),he=ne>0?Math.max(24,Math.min(L.cell,Math.floor((ne-L.gap*(o-1))/o))):L.cell,ge=U.interpolate({inputRange:[-1,1],outputRange:[-6,6]});return K(V,{style:E,onLayout:pe,accessible:!0,accessibilityRole:`none`,accessibilityLabel:me,accessibilityValue:{text:n},accessibilityState:{disabled:p},"aria-disabled":p,testID:k,children:[G(P,{onPress:fe,disabled:p,accessible:!1,children:G(b.View,{style:[I.row,{columnGap:L.gap,transform:[{translateX:ge}]}],children:oe.map(({key:e,index:t,char:n})=>{let r=B===t,i=n.length>0,a=Y?F.colors[`danger-border`]:F.colors[`focus-ring`],c=ie[t];if(!c)return null;let l=y&&i?`●`:n;return K(V,{style:I.cellWrapper,children:[K(jg,{size:v,width:he,height:he,radius:R,borderWidth:1.5,focused:r,error:Y,filled:i,disabled:p,paddingHorizontal:F.space.none,paddingVertical:F.space.none,gap:F.space.none,style:D,children:[G(ee,{ref:e=>{z.current[t]=e},value:(y&&i?``:n)||`​`,onChangeText:e=>{we(),ce(t,e)},onKeyPress:e=>le(t,e),onFocus:e=>ue(t,e),onBlur:de,keyboardType:s,editable:!p,selectTextOnFocus:!0,caretHidden:i,maxLength:o+1,textContentType:`oneTimeCode`,autoComplete:t===0?`sms-otp`:`off`,importantForAutofill:t===0?`yes`:`no`,style:[I.input,{fontSize:L.text,color:F.colors[`text-body`],...Rr(F,`semibold`)},O]}),y&&i?G(V,{pointerEvents:`none`,style:I.maskOverlay,children:G($,{variant:`body`,weight:`semibold`,style:[{fontSize:L.text},O],children:l})}):null]}),G(b.View,{style:[I.underline,{backgroundColor:a,opacity:c}]})]},e)})})}),G(Og,{size:v,error:!0,text:_})]})}var IE=e=>R.create({row:{flexDirection:`row`,alignItems:`center`},cellWrapper:{alignItems:`center`},input:{width:`100%`,height:`100%`,textAlign:`center`,padding:e.space.none},maskOverlay:{...R.absoluteFill,alignItems:`center`,justifyContent:`center`},underline:{marginTop:e.space.xs,height:2,width:`60%`,borderRadius:e.radius.pill,...ni}}),LE=e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,`0`)}`,RE=Lr(e=>({row:{alignItems:`center`,columnGap:e.space.md,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`space-between`,minHeight:44,rowGap:e.space.xs,width:`100%`}})),zE=({resendSecondsLeft:e,expirySecondsLeft:t,onResend:n,resending:r=!1,labels:i,style:a,testID:o})=>{let s=RE(),c=Zm(`otpInput`,ym),l=m(()=>({...c,...i}),[c,i]),u=t===0,d=u||e===0;return K(V,{style:[s.row,a],children:[t==null?G(V,{}):G($,{variant:`caption`,testID:o?`${o}-expiry`:void 0,children:u?l.expired:Op(l.expiresIn,{time:LE(t)})}),d?G(fg,{variant:`link`,label:u?l.sendNew:l.resend,onPress:n,disabled:r,testID:o?`${o}-resend`:void 0}):G($,{variant:`caption`,accessibilityLabel:kp(l,`resendWaitSpoken`,e,{seconds:e}),testID:o?`${o}-resend-wait`:void 0,children:Op(l.resendIn,{time:LE(e)})})]})};zE.displayName=`OTPResendRow`;var BE=(e,t)=>{switch(e.state){case`Failed`:return{label:e.lastFailure?.message??t.failed,color:`danger`};case`Sending`:return{label:t.sending,color:`secondary`};case`Pending`:return{label:t.waiting,color:`secondary`};default:return e.state}},VE=s(function({entry:e,text:t,styles:n,testID:r,onRetry:i,onDiscard:a}){let o=BE(e,t),s=e.state===`Sending`;return K(wx,{bodyStyle:n.card,testID:`${r}-${e.id}`,children:[G($,{variant:`title`,numberOfLines:2,children:e.label}),G($,{variant:`bodySmall`,color:o.color,children:o.label}),K(V,{style:n.actions,children:[G(fg,{label:t.sendNow,size:`sm`,variant:`ghost`,disabled:s,onPress:()=>i(e.id),testID:`${r}-retry-${e.id}`}),G(fg,{label:t.discard,size:`sm`,variant:`ghost`,tone:`danger`,onPress:()=>(async()=>{await YS({title:t.discardTitle,message:t.discardText,confirmLabel:t.discard,tone:`danger`})&&a(e.id)})().catch(e=>J.recordError(e)),testID:`${r}-discard-${e.id}`})]})]})}),HE=({entries:e,error:t,onRetry:n,onDiscard:r,labels:i,testID:a=`outbox-entry`})=>{let o=Ir(),s=Zm(`outboxEntryList`,bm),c=m(()=>({...s,...i}),[s,i]),l=m(()=>({list:{gap:o.space.sm},card:{gap:o.space.xxs},actions:{flexDirection:`row`,gap:o.space.xs,marginTop:o.space.xxs}}),[o]);return e.length!==0||t?K(V,{style:l.list,testID:a,children:[t?G(V,{accessibilityLiveRegion:`polite`,children:G($,{variant:`bodySmall`,color:`danger`,children:t.message})}):null,e.map(e=>G(VE,{entry:e,text:c,styles:l,testID:a,onRetry:n,onDiscard:r},e.id))]}):null},UE=Lr(e=>({root:{alignItems:`center`,flexDirection:`row`,gap:e.space.sm,justifyContent:`center`,paddingVertical:e.space.md}}));function WE({paging:e,labels:t,testID:n}){let r=UE(),i=Zm(`pagedListFooter`,xm),a=m(()=>({...i,...t}),[i,t]);return e.errorMore?K(V,{style:r.root,accessibilityLiveRegion:`polite`,testID:n,children:[G($,{variant:`caption`,color:`danger`,children:a.failed}),G(fg,{label:a.retry,variant:`ghost`,size:`sm`,onPress:e.retryMore,testID:n?`${n}-retry`:void 0})]}):e.loadingMore?G(V,{style:r.root,testID:n,children:G(ug,{size:`sm`,accessibilityLabel:a.loadingMore})}):null}var GE=()=>{},KE=R.create({flex:{flex:1},grow:{flexGrow:1}}),qE=e=>o(e);function JE(e){return e==null?null:qE(e)?e:G(e,{})}function YE(e){let{state:t,paging:n,empty:i,skeleton:a,errorTitle:o,data:s,placeholderStyle:c,onRefresh:l,refreshing:u,progressViewOffset:d,ref:f,onEndReached:p,ListFooterComponent:m,style:h,contentContainerStyle:g,..._}=e,v=Zm(`asyncBlock`,Pp),y=t?.status===`data`||t?.status===`empty`?t:void 0,{refreshControl:b}=Xh({onRefresh:y?y.refresh:l??GE,refreshing:y?y.refreshing:u}),x=l||y?d===void 0?b:r(b,{progressViewOffset:d}):void 0,S=e=>{n?.hasMore&&!n.loadingMore&&n.errorMore==null&&n.loadMore(),p?.(e)},C=(e,t)=>G(T,{data:e,keyboardShouldPersistTaps:`handled`,onEndReachedThreshold:n?.5:void 0,..._,ref:f,refreshControl:x,onEndReached:n?S:p,ListEmptyComponent:t,ListFooterComponent:n||m?K(ae,{children:[JE(m),n?G(WE,{paging:n}):null]}):void 0,style:[KE.flex,h],contentContainerStyle:[g,t?KE.grow:void 0]});return t?.status===`empty`?C([],G(qv,{...i??{title:v.emptyTitle}})):t?G(Xv,{state:t,skeleton:a,errorTitle:o,style:[KE.flex,c],children:e=>C(e,void 0)}):C(s,i?G(qv,{...i}):void 0)}var XE={view:`pending`,status:null,requesting:!1,answered:!1},ZE=e=>e===`granted`||e===`limited`,QE=e=>e===`undetermined`||e===`denied`,$E=e=>ZE(e)?`authorized`:`unavailable`,eD=async(e,t,n)=>{try{return await n()}catch(n){return J.error(`[@webority/mobile-ui] PermissionPrompt: ${e}(${t}) failed.`,n),`unavailable`}},tD=(e,{onResult:t}={})=>{let[n,r]=g(XE),i=h(n);i.current=n;let a=h(t);a.current=t;let o=h(0),s=h(!1),l=N.OS===`android`,d=c(async t=>{if(s.current)return null;s.current=!0,r(e=>({...e,requesting:!0}));let n=await eD(`request`,e,()=>Dt.request(e));return s.current=!1,t!==o.current||(r({view:$E(n),status:n,requesting:!1,answered:!0}),a.current?.(n)),n},[e]);u(()=>{o.current+=1;let t=o.current;return r(XE),(async()=>{let n=await eD(`check`,e,()=>Dt.check(e));if(t===o.current){if(l&&n===`undetermined`){r({...XE,status:n}),await d(t)===null&&t===o.current&&r({...XE,view:`explain`,status:n});return}QE(n)?r({...XE,view:`explain`,status:n}):(r({...XE,view:$E(n),status:n}),a.current?.(n))}})(),()=>{o.current+=1}},[e,l,d]);let f=n.view===`unavailable`&&n.status===`blocked`&&!n.answered;u(()=>{if(!f)return;let t=o.current,n=x.addEventListener(`change`,n=>{n===`active`&&eD(`check`,e,()=>Dt.check(e)).then(e=>{t===o.current&&(ZE(e)?(r({view:`authorized`,status:e,requesting:!1,answered:!0}),a.current?.(e)):QE(e)&&r({...XE,view:`explain`,status:e}))})});return()=>n.remove()},[f,e]);let p=c(()=>d(o.current),[d]),m=c(()=>{let e=i.current;e.view!==`explain`||e.status===null||e.requesting||(r({...e,view:`unavailable`,answered:!0}),a.current?.(e.status))},[]);return{view:n.view,status:n.status,requesting:n.requesting,cancellable:l,showSettings:f,request:p,cancel:m,openSettings:Dt.openSettings}},nD={camera:`accessCamera`,microphone:`accessMicrophone`,photos:`accessPhotos`,photosAdd:`accessPhotos`,mediaLibrary:`accessMediaLibrary`,location:`accessLocation`,locationAlways:`accessLocation`,contacts:`accessContacts`,calendar:`accessCalendar`,reminders:`accessReminders`,notifications:`accessNotifications`,bluetooth:`accessBluetooth`,storage:`accessStorage`},rD=(e,t,n,r)=>{let i=r[nD[e]];return Op(t===`unavailable`?r.notAvailable:n?r.offWithSettings:r.off,{access:i})},iD=e=>{let{kind:t,title:n,reason:r,icon:i,onResult:a,fallback:o,haptic:s=`selection`,labels:c,style:l,testID:d}=e;Q(`PermissionPrompt`,`kind`,t,Object.keys(nD));let f=Zm(`permissionPrompt`,Sm),p=m(()=>({...f,...c}),[f,c]),g=Ir(),_=m(()=>aD(g),[g]),v=tD(t,{onResult:a}),y=rD(t,v.status,v.showSettings,p),b=h(!1);if(u(()=>{v.view===`explain`?b.current=!0:(v.view===`unavailable`&&b.current&&eh(y),b.current=!1)},[v.view,y]),v.view!==`explain`&&v.view!==`unavailable`)return G(V,{style:l,testID:d});let x=v.view===`explain`;return K(V,{style:[_.root,l],testID:d,children:[K(V,{style:_.header,children:[i?G(D_,{icon:i,size:`lg`,tone:x?`primary`:`neutral`}):null,G($,{variant:`h3`,align:`center`,children:n}),G($,{variant:`body`,color:`secondary`,align:`center`,children:x?r:y})]}),K(V,x?{style:_.actions,children:[G(fg,{haptic:s,label:p.proceed,size:`lg`,fullWidth:!0,loading:v.requesting,onPress:()=>{v.request()}}),v.cancellable?G(fg,{haptic:s,label:p.cancel,size:`lg`,fullWidth:!0,variant:`ghost`,tone:`neutral`,disabled:v.requesting,onPress:v.cancel}):null]}:{style:_.actions,children:[o?G(fg,{haptic:s,label:o.label,size:`lg`,fullWidth:!0,onPress:o.onPress}):null,v.showSettings?G(V,{style:_.link,children:G(fg,{haptic:s,label:p.openSettings,variant:`link`,onPress:()=>{v.openSettings()}})}):null]})]})},aD=e=>R.create({root:{gap:e.space.lg,paddingVertical:e.space.lg},header:{alignItems:`center`,gap:e.space.sm},actions:{gap:e.space.sm},link:{alignItems:`center`,paddingVertical:e.space.sm}}),oD=_e().map(e=>({iso:e.iso,code:e.callingCode,label:Ot[e.iso]??e.iso})).sort((e,t)=>e.label.localeCompare(t.label)),sD=e=>e.replace(/[^0-9]/g,``),cD=e=>`+${e.callingCode}${e.nationalNumber}`,lD=(e,t,n)=>{let r=e.replace(/[^0-9]/g,``);if(!r)return null;let i=Te(`+${r}`),a=i?.callingCode,o=i?.nationalNumber??``;if(!a){if(a=Array.from(new Set(t.map(e=>e.code))).sort((e,t)=>t.length-e.length).find(e=>r.startsWith(e)),!a)return null;o=r.slice(a.length)}let s=t.filter(e=>e.code===a),c=s.find(e=>e.iso===n)?.iso??s.find(e=>e.iso===i?.country)?.iso??i?.country??s[0]?.iso??``;return{callingCode:a,nationalNumber:o,iso:c}},uD=e=>be(e)?e:null,dD=(e,t)=>{if(e!==void 0&&!t.some(t=>t.iso===e))throw RangeError(`PhoneNumberInput: defaultCountry "${e}" is not among the visible countries. Add it to countries, or remove it from hiddenCountries.`)},fD=({ref:e,...t})=>{let{value:n,defaultValue:r,onChange:i,e164:a,onChangeE164:o,returnKeyType:s,submitBehavior:l,onSubmitEditing:d,onComplete:p,onValidityChange:_,countries:v=oD,popularCountries:y,hiddenCountries:b,showFlag:x=!0,renderFlag:S,renderCountry:C,showAlphabetIndex:w,defaultCountry:T,validation:E=`any`,maxLength:D,formatAsYouType:O=!0,countryLocked:k=!1,label:A,labelMode:j=`top`,labelStyle:M,placeholder:N,helperText:F,error:I,invalidMessage:L,required:R,disabled:z=!1,size:B=`md`,variant:te,radius:ne,labels:H,haptic:re,accessibilityLabel:U,countryAccessibilityLabel:W,onFocus:ie,onBlur:ae,style:q,testID:J}=t;Q(`PhoneNumberInput`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`PhoneNumberInput`,`variant`,t.variant,[`outline`,`filled`,`underline`]),Q(`PhoneNumberInput`,`labelMode`,t.labelMode,[`top`,`float`]),Q(`PhoneNumberInput`,`validation`,!1===t.validation?void 0:t.validation,[`any`,`mobile`]);let Y=Ir(),X=m(()=>pD(Y),[Y]),Z=h(null),se=Zm(`phoneNumberInput`,Cm),ce=m(()=>({...se,...H}),[se,H]),le=N??ce.placeholder,ue=m(()=>/-([A-Za-z]{2})(?:-|$)/.exec(ge().locale)?.[1]?.toUpperCase(),[]),de=m(()=>b?.length?v.filter(e=>!b.includes(e.iso)):v,[v,b]),fe=m(()=>{if(!y?.length)return;let e=y.map(e=>de.find(t=>t.iso===e)).filter(e=>e!==void 0);return e.length?[{title:ce.popular,options:e},{title:ce.allCountries,options:de}]:void 0},[y,ce.popular,ce.allCountries,de]),me=c((e,t,n)=>{if(!e)return null;if(S)return S(e);if(!x)return null;let r=oe(e.iso);return r?G($,{variant:`body`,style:[X.flag,{fontSize:t}],testID:n,children:r}):null},[S,x,X.flag]),he=c(e=>{let t=uD(e),n=t?Se(t,!1===E?`any`:E):1/0;return D?Math.min(n,D):n},[D,E]),_e=c((e,t)=>e.slice(0,he(t)),[he]),ve=c((e,t)=>{let n=uD(t)??void 0,r=Te(e,n);if(!r)return null;let i=r.country??t,a=v.find(e=>e.iso===i);return{callingCode:a?.code??r.callingCode,nationalNumber:_e(r.nationalNumber,i),iso:a?.iso??i}},[v,_e]);g(()=>dD(T,de));let ye=m(()=>{let e=de.find(e=>e.iso===(T??ue))??de[0]??v[0],t={callingCode:e?.code??``,nationalNumber:``,iso:e?.iso??``};return typeof r==`string`?ve(r,t.iso)??t:r??t},[v,de,T,ue,r,ve]),be=c(e=>{if(!1===E)return e.nationalNumber.length>0;let t=uD(e.iso);return t?xe(e.nationalNumber,t,E):e.nationalNumber.length>0},[E]),[Ce,Ee]=g(ye.iso),De=m(()=>{if(a===void 0)return;let e=a?lD(a,v,Ce):null;return e?{...e,nationalNumber:_e(e.nationalNumber,e.iso)}:{callingCode:v.find(e=>e.iso===Ce)?.code??ye.callingCode,nationalNumber:``,iso:Ce}},[a,v,Ce,ye.callingCode,_e]),Oe=c(e=>{Ee(e.iso),i?.(e),o?.(e.nationalNumber?cD(e):``,{country:v.find(t=>t.iso===e.iso),national:e.nationalNumber,valid:be(e)})},[i,o,v,be]),[ke,Ae]=Bh({value:n??De,defaultValue:ye,onChange:Oe}),[je,Me]=g(!1),Ne=c(()=>{z||Z.current?.focus()},[z]),[Pe,Fe]=g(!1),[Ie,Le]=g(!1),[Re,ze]=g(!1),Be=h(!1);u(()=>{Re||(Be.current=!1)},[Re]);let Ve=fn(Y,B),He=xg(Y,{disabled:z}),Ue=te??Y.settings.components.field?.defaultVariant??`outline`,We=Ue===`underline`,Ge=Y.space.md,[Ke,qe]=g(0),Je=Ke+Ge+1+Ge,Ye=ke.nationalNumber.length>0,Xe=R&&!A&&!Ye&&le.length>0,Ze=je||Ye,Qe=!!A&&j===`float`&&Ke>0,$e=Ng({label:A,enabled:Qe,floated:Ze,required:R,variant:Ue,sizeTokens:Ve,leadingOffset:Je,paddingLeft:We?Y.space.none:Ve[`padding-x`],color:Y.colors[`field-label`],style:M}),et=m(()=>v.find(e=>e.iso===ke.iso),[v,ke.iso]),tt=uD(ke.iso),nt=O&&tt?pe(ke.nationalNumber,tt):ke.nationalNumber,rt=he(ke.iso),it=ke.nationalNumber.length===0||Pe||!Number.isFinite(rt)?void 0:nt.length+Math.max(0,rt-ke.nationalNumber.length),at=be(ke);u(()=>{Ye||Le(!1)},[Ye]);let ot=tt?Se(tt,!1===E?`any`:E):1/0,st=ke.nationalNumber.length>=ot,ct=!1!==E&&!1!==L&&Ye&&!at&&(Ie||st),lt=E===`mobile`?ce.invalidMobile:ce.invalid,ut=Tg(I)?I:ct?L||lt:void 0,dt=!0===I||Tg(ut),ft=h(at),pt=h(ke);pt.current=ke,u(()=>{ft.current!==at&&(ft.current=at,_?.(at),at&&p?.(cD(pt.current)))},[at,p,_]);let mt=c(e=>{if(we(),e.includes(`+`)){let t=ve(e,ke.iso);if(t&&!k&&de.some(e=>e.iso===t.iso)||t&&t.iso===ke.iso)return void Ae(t)}Ae({...ke,nationalNumber:_e(sD(e),ke.iso)})},[de,k,ke,ve,_e,Ae]),ht=c(e=>{Ae({callingCode:e.code,iso:e.iso,nationalNumber:_e(ke.nationalNumber,e.iso)}),ze(!1);let t=ci(re,`selection`);t&&si(t)},[ke,re,_e,Ae]);f(e,()=>({focus:()=>Z.current?.focus(),blur:()=>Z.current?.blur(),clear:()=>Ae({...pt.current,nationalNumber:``}),isFocused:()=>Z.current?.isFocused()??!1,getValue:()=>pt.current,getE164:()=>cD(pt.current),getFormatted:()=>{let e=pt.current,t=uD(e.iso);return t?pe(e.nationalNumber,t):e.nationalNumber},isValid:()=>be(pt.current),getCountry:()=>v.find(e=>e.iso===pt.current.iso)}),[v,be,Ae]);let gt=z||k,_t=G(jg,{testID:J?`${J}-field`:void 0,size:B,variant:Ue,radius:ne,topNotch:$e.topNotch,focused:je,disabled:z,error:dt,filled:Ye,onPress:Ne,pressFeedback:!1,leadingDivider:!0,paddingLeft:We?Y.space.none:void 0,leading:K(P,{onPress:()=>{gt||(Be.current=!0,ze(!0))},disabled:gt,accessibilityRole:`button`,accessibilityLabel:W??Op(ce.countryButton,{callingCode:ke.callingCode}),accessibilityState:{disabled:gt},"aria-disabled":gt,hitSlop:6,...Zh(6),onLayout:e=>{let{width:t}=e.nativeEvent.layout;qe(e=>e===t?e:t)},style:X.codeTrigger,testID:J?`${J}-code`:void 0,children:[me(et,Ve.text,J?`${J}-flag`:void 0),G($,{variant:`body`,style:[X.codeText,{color:He.color,fontSize:Ve.text}],children:`+${ke.callingCode}`}),k?null:G(XS,{color:z?Y.colors[`field-icon-disabled`]:Y.colors[`field-icon`],size:Ve.icon,open:Re})]}),children:K(V,{style:X.inputWrap,children:[G(ee,{ref:Z,value:nt,maxLength:it,onChangeText:mt,returnKeyType:s,submitBehavior:l,onSubmitEditing:d,onSelectionChange:e=>{let{start:t,end:n}=e.nativeEvent.selection;Fe(t!==n)},onFocus:()=>{Me(!0),ie?.()},onBlur:()=>{Me(!1),Ye&&!Be.current&&Le(!0),ae?.()},editable:!z,placeholder:Qe&&!Ze||Xe?void 0:le,placeholderTextColor:He.placeholderColor,accessibilityLabel:U??A??le,selectionColor:Y.colors[`field-caret`],keyboardType:`phone-pad`,textContentType:`telephoneNumber`,autoComplete:`tel`,style:[X.input,{color:He.color,fontSize:Ve.text,...He.weightStyle,paddingLeft:We?Y.space.none:void 0}],testID:J?`${J}-input`:void 0}),Xe?G(Cg,{text:le,color:He.placeholderColor,fontSize:Ve.text,weightStyle:He.weightStyle}):null]})});return K(V,{style:q,testID:J,children:[A&&j===`top`?G(Dg,{size:B,required:R,style:M,children:A}):null,K(V,{style:X.fieldWrapper,children:[_t,$e.node]}),G(Og,{size:B,error:dt,text:dt?ut:F}),G(Mv,{open:Re,haptic:re,onClose:()=>ze(!1),title:ce.countrySheetTitle,options:de,sections:fe,getOptionLabel:e=>`${e.label} (+${e.code})`,getOptionValue:e=>e.iso,getOptionIcon:e=>me(e,Y.text.lg.size),renderOption:C?({option:e,selected:t})=>C(e,{selected:t}):void 0,value:et?.iso,onChange:(e,t)=>ht(t),searchable:de.length>8,labels:{searchPlaceholder:ce.countrySearchPlaceholder},alphabetIndex:w??de.length>20})]})},pD=e=>R.create({fieldWrapper:{position:`relative`,overflow:`visible`},codeTrigger:{flexDirection:`row`,alignItems:`center`,gap:e.space.xxs},flag:{includeFontPadding:!1,marginRight:e.space.xs},codeText:{...Rr(e,`semibold`),fontWeight:`600`,includeFontPadding:!1,writingDirection:`ltr`},input:{padding:e.space.none,margin:e.space.none,includeFontPadding:!1,writingDirection:`ltr`},inputWrap:{flex:1,alignSelf:`stretch`,justifyContent:`center`}}),mD=b.createAnimatedComponent(it),hD=(e,t)=>{switch(t){case`success`:return e.colors.success;case`warning`:return e.colors.warning;case`danger`:return e.colors.danger;case`info`:return e.colors.info;case`neutral`:return e.colors[`text-muted`];default:return e.colors.primary}},gD=e=>typeof e!=`number`||Number.isNaN(e)?0:Math.min(1,Math.max(0,e)),_D=[1/3,2/3];function vD({ref:e,...t}){let{progress:n,size:r=48,strokeWidth:i,tone:a=`primary`,trackColor:o,ringColor:s,colorByProgress:c=!1,animated:l=!0,rounded:d=!0,children:f,accessibilityLabel:p,style:g,testID:_}=t;Q(`ProgressRing`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]);let v=Ir(),y=Rn(),x=gD(n),S=i??4,C=o??v.colors[`surface-disabled`],[T,E]=_D,D=Math.max(0,(r-S)/2),O=2*Math.PI*D,k=h(Ht(x)).current;u(()=>{if(!l||y)return void k.setValue(x);let e=b.timing(k,{toValue:x,duration:600,easing:w.bezier(...v.motion.ease[`in-out`]),useNativeDriver:!1});return e.start(),()=>e.stop()},[l,x,k,y,v.motion.ease[`in-out`]]);let A=k.interpolate({inputRange:[0,1],outputRange:[O,0]}),j=k.interpolate({inputRange:[0,.001,1],outputRange:[0,1,1]}),M=m(()=>k.interpolate({inputRange:[0,T-1e-4,T,E-1e-4,E,1],outputRange:[v.colors.danger,v.colors.danger,v.colors.warning,v.colors.warning,v.colors.success,v.colors.success]}),[k,v.colors.danger,v.colors.warning,v.colors.success]),N=s??(c?M:hD(v,a)),P=m(()=>yD(),[]),F=r/2;return K(V,{ref:e,accessible:f==null,accessibilityRole:`progressbar`,accessibilityLabel:p,accessibilityValue:{min:0,max:100,now:Math.round(100*x)},testID:_,style:[P.root,{width:r,height:r},g],children:[K(rt,{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:[G(it,{cx:F,cy:F,r:D,stroke:C,strokeWidth:S,fill:`none`}),G(mD,{cx:F,cy:F,r:D,stroke:N,strokeWidth:S,strokeLinecap:d?`round`:`butt`,strokeDasharray:`${O} ${O}`,strokeDashoffset:A,strokeOpacity:j,fill:`none`,transform:`rotate(-90 ${F} ${F})`,..._?{testID:`${_}-fill`}:{}})]}),f==null?null:G(V,{style:P.content,pointerEvents:`box-none`,children:f})]})}var yD=()=>R.create({root:{alignItems:`center`,justifyContent:`center`},content:{position:`absolute`,top:0,right:0,bottom:0,left:0,alignItems:`center`,justifyContent:`center`}}),bD={sm:32,md:48,lg:64,xl:80},xD=(e,t)=>{switch(t){case`success`:return e.colors.success;case`warning`:return e.colors.warning;case`danger`:return e.colors.danger;case`info`:return e.colors.info;case`neutral`:return e.colors[`text-muted`];default:return e.colors.primary}},SD=1;function CD({ref:e,...t}){let{progress:n,title:r,subtitle:i,description:a,source:o,ImageComponent:s,size:c=`md`,avatarTone:l=`neutral`,avatarBackgroundColor:u,avatarColor:d,ringWidth:f,ringGap:p=SD,ringVariant:h=`banded`,tone:g,ringColor:_,animated:v=!0,showCompleteBadge:y=!0,trailing:b,labels:x,accessibilityLabel:S,style:C,titleStyle:w,subtitleStyle:T,descriptionStyle:E,testID:D}=t;Q(`ProfileCompletion`,`size`,t.size,[`sm`,`md`,`lg`,`xl`]),Q(`ProfileCompletion`,`ringVariant`,t.ringVariant,[`banded`,`single`]),Q(`ProfileCompletion`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]);let O=Ir(),k=m(()=>wD(O),[O]),A=Zm(`profileCompletion`,Tm),j=m(()=>({...A,...x}),[A,x]),M=f??3,N=bD[c]+2*(p+M),P=Math.min(100,Math.max(0,Number.isNaN(n)?0:n)),F=Math.round(P),I=S??Op(j.summary,{title:r,percent:F}),L=D??`profile-completion`,R=y&&P>=100,z=Math.max(16,Math.round(.3*N)),ee=N/2*(1+Math.SQRT1_2)-M/2,B=_??(h===`banded`&&g==null?O.colors.success:xD(O,g??`primary`));return K(V,{ref:e,style:[k.root,C],testID:D,children:[K(V,{style:k.summary,accessible:!0,accessibilityRole:`summary`,accessibilityLabel:I,accessibilityValue:{min:0,max:100,now:F},testID:`${L}-summary`,children:[K(V,{style:{width:N,height:N},children:[G(vD,{progress:P/100,size:N,strokeWidth:M,tone:g??`primary`,ringColor:_,colorByProgress:h===`banded`&&g==null&&_==null,animated:v,testID:`${L}-ring`,children:G(cb,{name:r,source:o,ImageComponent:s,size:c,tone:l,backgroundColor:u,color:d,accessibilityLabel:Op(j.avatar,{title:r})})}),R?G(D_,{dimension:z,fill:`surface`,icon:G(_p,{name:`verify`,variant:`bold`,size:z-2,color:B}),pointerEvents:`none`,style:[k.badge,{left:ee-z/2,top:ee-z/2}],testID:`${L}-complete-badge`}):null]}),K(V,{style:k.body,children:[G($,{variant:`h3`,numberOfLines:2,style:w,children:r}),i?G($,{variant:`label`,color:`tertiary`,numberOfLines:1,style:[k.subtitle,T],children:i}):null,a?G($,{variant:`body`,color:`secondary`,style:E,children:a}):null]})]}),b==null?null:G(V,{style:k.trailing,children:b})]})}var wD=e=>R.create({root:{flexDirection:`row`,alignItems:`center`,columnGap:e.space.md},summary:{flex:1,flexDirection:`row`,alignItems:`center`,columnGap:e.space.md},body:{flex:1,rowGap:e.space.xxs},badge:{position:`absolute`},subtitle:{textTransform:`uppercase`,letterSpacing:e[`letter-spacing`].wide},trailing:{alignSelf:`flex-start`}}),TD=[`image/*`],ED={sm:72,md:120,lg:160},DD=(e,t,n)=>Math.min(n,Math.max(t,e)),OD=(e,t)=>{switch(t){case`success`:return{base:e.colors.success,on:e.colors[`on-success`]};case`warning`:return{base:e.colors.warning,on:e.colors[`on-warning`]};case`danger`:return{base:e.colors.danger,on:e.colors[`on-danger`]};case`info`:return{base:e.colors.info,on:e.colors[`on-info`]};case`neutral`:return{base:e.colors[`text-muted`],on:e.colors[`on-neutral-strong`]};default:return{base:e.colors.primary,on:e.colors[`on-primary`]}}},kD=(e,t,n)=>{let r=OD(e,t),i=r.base,a=e.colors.bg,o=t===`neutral`,s;switch(n){case`soft`:s={fill:o?e.colors[`bg-muted`]:Gn(i,.14,a,e.colors[`bg-subtle`]),ring:a,icon:i};break;case`outline`:s={fill:a,ring:o?e.colors.border:i,icon:i};break;default:s={fill:i,ring:a,icon:r.on}}return s},AD=(e,t)=>e===`circle`?t/2:e===`rounded`?Math.max(6,Math.round(.22*t)):0,jD=`__profile-picker-remove__`;function MD(e){let{ref:t,value:n,name:r,sources:i,onPick:a,onRemove:o,loading:s=!1,disabled:l=!1,accept:u=TD,maxSizeMB:d,size:f=`md`,shape:p=`circle`,badgeIcon:_=`camera`,tone:v,variant:y,avatarTone:b,avatarBackgroundColor:x,avatarColor:S,label:C,required:w=!1,helperText:T,error:E,layout:D=`stacked`,title:O,subtitle:k,ImageComponent:A,labels:j,haptic:M,onError:N,accessibilityLabel:F,style:I,testID:L}=e;Q(`ProfilePicker`,`size`,e.size,[`sm`,`md`,`lg`]),Q(`ProfilePicker`,`shape`,e.shape,[`circle`,`rounded`,`square`]),Q(`ProfilePicker`,`tone`,e.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`ProfilePicker`,`variant`,e.variant,[`solid`,`soft`,`outline`]),Q(`ProfilePicker`,`layout`,e.layout,[`stacked`,`inline`,`profile`]);let R=Ir(),z=R.settings.components[`profile-picker`],ee=v??z?.defaultTone??`primary`,B=y??z?.defaultVariant??`solid`,te=m(()=>kD(R,ee,B),[R,ee,B]),ne=b??z?.defaultAvatarTone,H=Zm(`profilePicker`,Em),re=m(()=>({...H,...j}),[H,j]),[U,W]=g(null),[ie,ae]=g(null),[q,J]=g(!1),[Y,X]=g(n);n!==Y&&(X(n),W(null));let Z=s||l,oe=U??n??null,se=m(()=>oe?{uri:oe}:void 0,[oe]),ce=E??ie??void 0,le=!Z&&(U!==null||!!n&&!!o),ue=i.length>0||le,de=ED[f],fe=AD(p,de),pe=fe*(1-Math.SQRT1_2),me=DD(Math.round(.28*de),24,44),he=pe-me/2,ge=Math.max(0,-he),_e=c(e=>{ae(e),N?.(e),!1!==M&&si(`notificationError`)},[N,M]),ve=c(async e=>{let t;try{t=await e.pick()}catch(e){_e(e instanceof Error?e.message:String(e));return}let n=t?.[0];if(!n)return;if(typeof d==`number`&&typeof n.size==`number`&&n.size>1024*d*1024)return void _e(Op(re.errorTooLarge,{maxSizeMB:d}));if(n.type&&!NC(n.type,u))return void _e(re.errorWrongType);ae(null),W(n.uri);let r=ci(M,`selection`);r&&si(r),a?.(n)},[d,u,re,M,a,_e]),ye=c(()=>{if(Z)return;Se.current=null;let[e]=i;e===void 0||i.length!==1||le?(i.length>0||le)&&J(!0):ve(e)},[Z,i,le,ve]),be=c(()=>{W(null),ae(null);let e=ci(M,`selection`);e&&si(e),o?.()},[M,o]),xe=m(()=>{let e=i.map(e=>({kind:`source`,source:e}));return le&&e.push({kind:`remove`}),e},[i,le]),Se=h(null),Ce=c(e=>{Se.current||(J(!1),e.kind===`remove`?be():Se.current=e.source)},[be]),we=h(ve);we.current=ve;let Te=c(()=>{let e=Se.current;Se.current=null,e&&we.current(e)},[]),Ee=L??`profile-picker`,De=F??(ue?re.pick:r),Oe=G(V,{style:{width:de,height:de,marginBottom:ge,marginRight:ge},children:K(P,{onPress:ye,disabled:Z||!ue,accessibilityRole:ue?`button`:`image`,accessibilityLabel:De,accessibilityHint:Eg(ce),accessibilityState:ue?{disabled:Z,busy:s}:{busy:s},"aria-disabled":ue?Z:void 0,"aria-busy":s,testID:`${Ee}-button`,style:({pressed:e})=>[{width:de,height:de,borderRadius:fe,...ni},{opacity:l?.55:e?.85:1}],children:[G(V,{importantForAccessibility:`no-hide-descendants`,accessibilityElementsHidden:!0,pointerEvents:`none`,children:G(cb,{testID:L?`${L}-avatar`:void 0,dimension:de,shape:p,name:r||void 0,source:se,ImageComponent:A,tone:ne,backgroundColor:x,color:S,placeholderIcon:`user`})}),s?G(V,{style:[ND.fill,ND.overlay,{borderRadius:fe,...ni,backgroundColor:R.colors.scrim}],testID:`${Ee}-loading`,children:G(ug,{size:de>=100?`md`:`sm`,color:R.colors[`on-primary`]})}):null,!l&&ue?G(V,{pointerEvents:`none`,testID:`${Ee}-badge`,accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,style:[ND.badge,{width:me,height:me,borderRadius:R.radius.pill,...ni,right:he,bottom:he,backgroundColor:te.fill,borderColor:te.ring}],children:$h(_,{color:te.icon,size:Math.round(.55*me),disabled:!1})}):null]})}),ke=D===`stacked`?G(Og,{text:ce??T,error:Tg(ce)}):K(V,{style:[ND.meta,D===`profile`?ND.metaCentred:null],children:[O?G($,{variant:`body`,weight:`semibold`,style:[ND.title,D===`profile`?ND.textCentred:null],children:O}):null,k?G($,{variant:`bodySmall`,color:`secondary`,style:[ND.subtitle,D===`profile`?ND.textCentred:null,{marginTop:R.space.xxs}],children:k}):null,G(Og,{text:ce??T,error:Tg(ce)})]});return K(V,{ref:t,style:I,testID:L,children:[C?G(Dg,{required:w,children:C}):null,K(V,{style:D===`inline`?[ND.row,{columnGap:R.space.md}]:[D===`profile`?ND.columnCentred:ND.column,{rowGap:R.space.xs}],children:[Oe,ke]}),G(Mv,{open:q,haptic:M,onClose:()=>J(!1),onAfterClose:Te,title:re.sheetTitle,options:xe,getOptionLabel:e=>e.kind===`remove`?re.remove:e.source.label,getOptionValue:e=>e.kind===`remove`?jD:e.source.key,destructiveOf:e=>e.kind===`remove`,getOptionDescription:e=>e.kind===`remove`?void 0:e.source.description,getOptionIcon:e=>e.kind===`remove`?G(_p,{name:`trash`,size:20,color:R.colors[`danger-text`]}):e.source.icon,onChange:(e,t)=>Ce(t)})]})}MD.displayName=`ProfilePicker`;var ND=R.create({fill:{alignItems:`center`,justifyContent:`center`,overflow:`hidden`},overlay:{...R.absoluteFill},badge:{position:`absolute`,alignItems:`center`,justifyContent:`center`,borderWidth:2},row:{flexDirection:`row`,alignItems:`center`},column:{alignItems:`flex-start`},columnCentred:{alignItems:`center`},meta:{flexShrink:1},metaCentred:{alignItems:`center`},title:{includeFontPadding:!1},subtitle:{includeFontPadding:!1},textCentred:{textAlign:`center`}}),PD=(e,t)=>{switch(t){case`success`:return e.colors.success;case`warning`:return e.colors.warning;case`danger`:return e.colors.danger;case`info`:return e.colors.info;case`neutral`:return e.colors.neutral;case`primary`:return e.colors.primary}},FD=[0,.35,.5,.65,1],ID=e=>{let t=Bn(e,0,`transparent`),n=Bn(e,.6,e);return{colors:[t,n,e,n,t],locations:FD,start:{x:0,y:.5},end:{x:1,y:.5}}},LD=e=>typeof e!=`number`||Number.isNaN(e)||e<0?0:e>1?1:e;function RD({ref:e,...t}){let n=Ir(),r=Rn(),{progress:i,label:a,showPercent:o=!1,valueLabel:s,indeterminate:c,height:l=6,radius:d,tone:f=`primary`,trackColor:p,barColor:g,gradient:_,segments:v,animated:y=!0,style:x,barStyle:S,accessibilityLabel:C,labels:T,testID:E}=t;Q(`ProgressBar`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]);let D=Zm(`progressBar`,Dm),O=m(()=>({...D,...T}),[D,T]),k=c??typeof i!=`number`,A=LD(i),j=h(Ht(A)).current,M=h(Ht(0)).current,N=h(Ht(0)).current,P=h(0),F=m(()=>zD(n),[n]),I=d??n.radius.pill,L=p??n.colors[`surface-disabled`],z=g??PD(n,f),ee=m(()=>{if(_==null)return null;if(typeof _!=`string`)return _;let e=n.settings.gradients[_];if(e===void 0){let e=Object.keys(n.settings.gradients);throw RangeError(`[@webority/mobile-ui] <ProgressBar> received gradient="${_}", which is not a gradient in theme.settings.gradients (${e.length>0?`known: ${e.map(e=>`"${e}"`).join(`, `)}`:`the theme defines none`}). Pass a known gradient name or a GradientDefinition, or omit the prop.`)}return e},[_,n.settings.gradients]),B=m(()=>ID(z),[z]),te=Array.isArray(v)&&v.length>0,ne=m(()=>(v??[]).map((e,t)=>({key:`segment-${t}`,segment:e})),[v]);u(()=>{k||(y?b.timing(j,{toValue:A,duration:400,easing:w.bezier(...n.motion.ease[`in-out`]),useNativeDriver:!1}).start():j.setValue(A))},[y,A,j,k,n]),u(()=>{if(!k)return;Ut(M,0);let e=b.loop(b.timing(M,{toValue:1,duration:1500,easing:w.inOut(w.ease),useNativeDriver:Vt}));return e.start(),()=>{e.stop()}},[k,M]);let H=j.interpolate({inputRange:[0,1],outputRange:[`0%`,`100%`]}),re=M.interpolate({inputRange:[0,1],outputRange:[-1,1]}),U=M.interpolate({inputRange:[0,.5,1],outputRange:[.4,1,.4]}),W=o&&!k&&!te,ie=a!=null||W||s!=null,ae=G(V,{ref:e,accessibilityRole:`progressbar`,accessibilityLabel:C??(typeof a==`string`?a:void 0),accessibilityValue:k?{text:O.loading}:{min:0,max:100,now:Math.round(100*A)},testID:E,onLayout:e=>{let t=e.nativeEvent.layout.width;P.current=t,Ut(N,t)},style:[F.track,{height:l,borderRadius:I,...ni,backgroundColor:L},x],children:te?G(V,{style:[F.segments,{height:l}],children:ne.map(({key:e,segment:t})=>G(V,{style:{width:100*LD(t.value)+`%`,height:l,backgroundColor:t.color??PD(n,t.tone??`primary`)}},e))}):G(b.View,k?{style:[F.indeterminateBar,{height:l,width:r?`100%`:`30%`,opacity:r?U:1,transform:r?[]:[{translateX:b.multiply(re,N)}]},S],children:G(jn,{gradient:B,style:R.absoluteFill})}:{style:[F.determinateBar,{height:l,borderRadius:I,...ni,backgroundColor:ee?`transparent`:z,width:H,overflow:ee?`hidden`:void 0},S],children:ee?G(jn,{gradient:ee,style:R.absoluteFill}):null})});return ie?K(V,{style:F.wrapper,children:[K(V,{style:[F.labelRow,{marginBottom:n.space.xs}],children:[typeof a==`string`||typeof a==`number`?G($,{variant:`label`,color:`primary`,style:F.label,children:a}):G(V,{style:F.label,children:a}),s==null?W?G($,{variant:`label`,color:`secondary`,accessible:!1,importantForAccessibility:`no`,children:`${Math.round(100*A)}%`}):null:typeof s==`string`||typeof s==`number`?G($,{variant:`label`,color:`secondary`,accessible:!1,importantForAccessibility:`no`,children:s}):s]}),ae]}):ae}var zD=e=>R.create({wrapper:{width:`100%`},labelRow:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,columnGap:e.space.sm},label:{flexShrink:1},track:{width:`100%`,overflow:`hidden`},determinateBar:{position:`absolute`,left:0,top:0},indeterminateBar:{position:`absolute`,left:0,top:0},segments:{flexDirection:`row`,width:`100%`}}),BD=i(null),VD=()=>l(BD),HD=(e,t)=>{switch(t){case`success`:return e.colors.success;case`warning`:return e.colors.warning;case`danger`:return e.colors.danger;case`info`:return e.colors.info;case`neutral`:return e.colors.neutral;default:return e.colors.primary}};function UD(e){let{ref:t,value:n,selected:r,onChange:i,disabled:a=!1,label:o,helperText:s,description:c,error:l,size:u=`md`,tone:d=`primary`,accessibilityLabel:f,haptic:p,style:h,circleStyle:g,dotStyle:_,labelStyle:v,testID:y,hitSlop:b,...x}=e;Q(`Radio`,`size`,e.size,[`sm`,`md`,`lg`]),Q(`Radio`,`tone`,e.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]);let S=Ir(),C=m(()=>WD(S),[S]),w=VD(),T=w?w.selectedValue===n:!!r,E=w&&w.disabled||a,D=HD(S,d),O=Yt(S,S.components.radio[`label-gap`]),k=b??6,A=f??Eg(o),j=typeof l==`string`?l:void 0,M={description:c,helperText:s,error:j},N=!0===w?.error||!0===l||Tg(l);return K(P,{ref:t,onPress:e=>{if(E)return;let t=ci(p,`selection`);t&&si(t),w?w.onChange(n):i?.(n)},disabled:E,accessibilityRole:`radio`,accessibilityLabel:A,accessibilityHint:x.accessibilityHint??Eg(s)??Eg(c),accessibilityState:{checked:T,disabled:E},"aria-checked":T,"aria-disabled":E,testID:y,hitSlop:k,...Zh(k),...x,style:({pressed:e})=>[C.row,Kx(M)?C.rowTop:null,{opacity:E?.55:e?.85:1},h],children:[G(oS,{selected:T,color:D,disabled:E&&!T,size:u,style:[!N||T||E?null:{borderColor:S.colors[`field-border-error`]},g],dotStyle:_}),G(qx,{label:o,helperText:s,description:c,error:j,disabled:E,style:{marginLeft:O},labelStyle:v})]})}var WD=e=>R.create({row:{flexDirection:`row`,alignItems:`center`},rowTop:{alignItems:`flex-start`}}),GD=e=>{let{value:t,defaultValue:n,onChange:r,children:i,disabled:a=!1,error:o,accessibilityLabel:s,style:l,testID:u}=e,d=c(e=>{if(typeof e!=`string`&&typeof e!=`number`)throw Error(`RadioGroup received a missing value in single mode.`);r?.(e)},[r]),[f,p]=Bh({controlled:`value`in e,value:t,defaultValue:n??void 0,onChange:d}),h=!0===o||Tg(o),g=m(()=>({selectedValue:f,onChange:p,disabled:a,error:h}),[f,p,a,h]);return K(BD,{value:g,children:[G(V,{accessibilityRole:`radiogroup`,accessibilityLabel:s,accessibilityState:{disabled:a},"aria-disabled":a,testID:u,style:l,children:i}),G(qx,{error:typeof o==`string`?o:void 0})]})};GD.displayName=`RadioGroup`;var KD=[`sm`,`md`,`lg`],qD=[`primary`,`success`,`warning`,`danger`,`info`,`neutral`],JD={sm:16,md:24,lg:32},YD=e=>JD[e],XD=(e,t)=>{switch(t){case`success`:return e.colors.success;case`warning`:return e.colors.warning;case`danger`:return e.colors.danger;case`info`:return e.colors.info;case`neutral`:return e.colors.neutral;case`primary`:return e.colors.primary}},ZD=(e,t,n)=>{let r=Math.round(Math.max(0,Math.min(t,e))/n)*n;return Number(r.toFixed(2))},QD=({index:e,filled:t,size:n,filledColor:r,emptyColor:i,scale:a})=>{let o=Math.max(0,Math.min(1,t-e));return K(b.View,{style:[nO.starWrap,{width:n,height:n,transform:[{scale:a}]}],children:[G($,{variant:`body`,style:[nO.glyph,{color:i,fontSize:n,lineHeight:n}],accessible:!1,children:`☆`}),o>0?G(V,{pointerEvents:`none`,style:[nO.fillClip,{width:n*o,height:n}],children:G($,{variant:`body`,style:[nO.glyph,{color:r,fontSize:n,lineHeight:n}],accessible:!1,children:`★`})}):null]})};function $D({ref:e,...t}){let{value:n,onChange:r,max:i=5,allowHalf:a=!0,readonly:o=!1,size:s=`md`,tone:l=`warning`,label:u,loading:d=!1,haptic:f,labels:p,accessibilityLabel:g,style:_,starContainerStyle:v,testID:y}=t;Q(`Rating`,`size`,t.size,KD),Q(`Rating`,`tone`,t.tone,qD);let x=Zm(`rating`,Om),S=m(()=>({...x,...p}),[x,p]),C=Ir(),T=m(()=>rO(C),[C]),E=!o&&typeof r==`function`,D=a?.5:1,O=YD(s),k=XD(C,l),A=C.colors.border,j=h(O),M=c(e=>{j.current=e.nativeEvent.layout.width},[]),N=h(new Map),F=m(()=>{let e=N.current,t=[];for(let n=0;n<i;n+=1){let r=e.get(n);r||(r=new b.Value(1),e.set(n,r)),t.push(r)}for(let t of Array.from(e.keys()))t>=i&&e.delete(t);return t},[i]),I=C.settings.components.rating?.pulseOnPress??!1,L=c(e=>{let t=F[e];if(!t)throw Error(`Rating has no star at index ${e}; the pulse index must be below max.`);b.sequence([b.timing(t,{toValue:1.2,duration:C.motion.duration.fast,easing:w.bezier(...C.motion.ease[`in-out`]),useNativeDriver:Vt}),b.spring(t,{toValue:1,damping:C.motion.spring.bouncy.damping,stiffness:C.motion.spring.bouncy.stiffness,mass:C.motion.spring.bouncy.mass,useNativeDriver:Vt})]).start()},[C.motion,F]),R=c((e,t)=>{if(!E||!r)return;let n=ZD(e,i,D),a=ci(f,`selection`);a&&si(a),I&&typeof t==`number`&&L(t),r(n)},[E,r,i,D,L,f,I]),z=c(e=>t=>{if(!E)return;let n=j.current||O,r=t.nativeEvent.locationX??n,i;i=a&&r<n/2?e+.5:e+1,R(i,e)},[E,O,a,R]),ee=c(e=>{E&&(e.nativeEvent.actionName===`increment`?R(n+D):e.nativeEvent.actionName===`decrement`&&R(n-D))},[E,n,D,R]),B=Op(S.value,{value:n,max:i}),te=g??u??B,ne=[];for(let[e,t]of F.entries()){let r=G(QD,{index:e,filled:n,size:O,filledColor:k,emptyColor:A,scale:t},e);ne.push(E?G(P,{onPress:z(e),onLayout:e===0?M:void 0,hitSlop:4,...Zh(4),accessible:!1,style:T.starPress,children:r},e):G(V,{onLayout:e===0?M:void 0,style:T.starPress,children:r},e))}let H=K(V,{style:[T.wrapper,_],ref:e,testID:y,children:[u?G($,{variant:`bodySmall`,color:`secondary`,style:T.label,children:u}):null,G(V,{style:[T.row,v],accessible:!0,accessibilityRole:E?`adjustable`:`text`,accessibilityLabel:te,accessibilityValue:E?{min:0,max:i,now:n,text:B}:void 0,accessibilityActions:E?[{name:`increment`},{name:`decrement`}]:void 0,onAccessibilityAction:E?ee:void 0,children:ne})]});return d?G(eO,{...t}):H}$D.displayName=`Rating`;var eO=({max:e=5,size:t=`md`,label:n,starContainerStyle:r,style:i})=>{let a=Ir(),o=YD(t),s=Math.max(1,e),c=m(()=>Array.from({length:s},(e,t)=>({key:`sk-star-${t}`,index:t})),[s]);return K(V,{style:[{alignItems:`flex-start`},i],accessibilityRole:`progressbar`,accessibilityState:{busy:!0},"aria-busy":!0,children:[n===void 0?null:G(vh,{shape:`text`,width:80,height:14,style:{marginBottom:a.space.xs}}),G(V,{style:[{flexDirection:`row`},r],children:c.map(({key:e,index:t})=>G(vh,{width:o,height:o,radius:Math.round(.25*o),style:t<s-1?{marginRight:a.space.xs}:void 0},e))})]})};eO.displayName=`RatingSkeleton`;var tO=Object.assign($D,{Skeleton:eO}),nO=R.create({starWrap:{position:`relative`,alignItems:`flex-start`,justifyContent:`center`},glyph:{textAlign:`left`,includeFontPadding:!1},fillClip:{position:`absolute`,top:0,left:0,overflow:`hidden`}}),rO=e=>R.create({wrapper:{flexDirection:`column`},row:{flexDirection:`row`,alignItems:`center`},starPress:{marginRight:e.space.xs},label:{marginBottom:e.space.xs}}),iO=0,aO=()=>(iO+=1,`row-${iO}`),oO=({value:e,onChange:t,createRow:n,renderRow:r,labels:i,renderRowHeader:a,onRemove:o,minRows:s=0,maxRows:l,removable:u=!0,disabled:d=!1,haptic:f,style:p,testID:g})=>{let _=Ir(),v=Zm(`repeater`,Am),y=m(()=>({...v,empty:``,row:null,...i}),[v,i]),b=h([]);if(b.current.length<e.length)for(;b.current.length<e.length;)b.current.push(aO());else b.current.length>e.length&&(b.current.length=e.length);let x=typeof l==`number`&&e.length>=l,S=u&&e.length>s,C=c(e=>{let t=ci(f,e);t&&si(t)},[f]),w=c(()=>{d||x||(t([...e,n()]),C(`impactLight`))},[x,n,d,C,t,e]),T=c((n,r)=>{t(e.map((e,t)=>t===n?r:e))},[t,e]),E=c(n=>{if(d||!S)return;let r=e[n];if(r===void 0)throw Error(`Repeater: no row at index ${n} to remove.`);b.current=b.current.filter((e,t)=>t!==n),o?.(n,r),t(e.filter((e,t)=>t!==n)),C(`notificationWarning`)},[S,d,C,t,o,e]);return K(V,{style:[{gap:_.space.md},p],testID:g,children:[e.length===0&&y.empty.length>0?G($,{variant:`bodySmall`,color:`tertiary`,children:y.empty}):null,e.map((e,t)=>{let n={item:e,index:t,update:e=>T(t,e),remove:()=>E(t),canRemove:S};return K(V,{style:{gap:_.space.xs},children:[a?a(n):y.row||S&&!d?K(V,{style:sO.rowHeader,children:[y.row?G($,{variant:`overline`,color:`tertiary`,children:y.row(t)}):G(V,{}),S&&!d?G(mS,{icon:({color:e,size:t})=>G(_p,{name:`x`,size:t,color:e}),onPress:()=>E(t),accessibilityLabel:Op(y.removeRow,{name:y.row?y.row(t):Op(y.fallbackRow,{index:t+1})}),size:`sm`,tone:`danger`,variant:`ghost`,haptic:!1,testID:g?`${g}-remove-${t}`:void 0}):null]}):null,r(n)]},b.current[t])}),x||d?null:G(fg,{label:y.add,onPress:w,variant:`outline`,size:`sm`,haptic:!1,testID:g?`${g}-add`:void 0})]})},sO=R.create({rowHeader:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,minHeight:24}}),cO={bold:`**`,italic:`*`,strikethrough:`~~`,code:"`"},lO=/^\[([^\]]*)\]\(([^)\s]*)\)$/,uO={heading1:{has:e=>/^#\s/.test(e),prefix:()=>`# `},heading2:{has:e=>/^##\s/.test(e),prefix:()=>`## `},bulletList:{has:e=>/^[-*+]\s/.test(e),prefix:()=>`- `},numberedList:{has:e=>/^\d+[.)]\s/.test(e),prefix:e=>`${e+1}. `},quote:{has:e=>/^>\s?/.test(e),prefix:()=>`> `}},dO=/^(?:#{1,6}\s+|[-*+]\s+|\d+[.)]\s+|>\s?)/,fO=e=>e in uO,pO=(e,t)=>!Number.isFinite(e)||e<0?0:Math.min(Math.trunc(e),t),mO=(e,t)=>{let n=pO(e.start,t),r=pO(e.end,t);return{start:Math.min(n,r),end:Math.max(n,r)}},hO=e=>({start:e,end:e}),gO=(e,t,n)=>{let{start:r,end:i}=t,a=e.slice(r,i),o=n.length,s=n===`*`;if(a.length>=2*o&&a.startsWith(n)&&a.endsWith(n)&&!(s&&a.startsWith(`**`)&&a.endsWith(`**`))){let t=a.slice(o,a.length-o);return{text:e.slice(0,r)+t+e.slice(i),selection:{start:r,end:r+t.length}}}let c=e.slice(Math.max(0,r-o),r),l=e.slice(i,i+o);return r>=o&&c===n&&l===n&&!(s&&e.slice(Math.max(0,r-2),r)===`**`)?{text:e.slice(0,r-o)+a+e.slice(i+o),selection:{start:r-o,end:i-o}}:{text:e.slice(0,r)+n+a+n+e.slice(i),selection:r===i?hO(r+o):{start:r+o,end:i+o}}},_O=(e,t)=>{let n=Tp(`richTextEditor`,jm).linkUrlPlaceholder,{start:r,end:i}=t,a=e.slice(r,i),o=lO.exec(a);if(o){let t=o[1];if(t===void 0)throw Error(`WHOLE_LINK always captures the label in group 1 when it matches`);return{text:e.slice(0,r)+t+e.slice(i),selection:{start:r,end:r+t.length}}}let s=`[${a}](${n})`,c=e.slice(0,r)+s+e.slice(i);if(r===i)return{text:c,selection:hO(r+1)};let l=r+a.length+3;return{text:c,selection:{start:l,end:l+n.length}}},vO=(e,t,n)=>{let r=uO[n],i=e.split(`
9
9
  `),a=[],o=0;for(let e of i)a.push(o),o+=e.length+1;let s=e=>{let t=0;for(let[n,r]of a.entries())r<=e&&(t=n);return t},c=s(t.start),l=s(t.end),u=i.slice(c,l+1),d=u.every(e=>r.has(e)),f=u.map((e,t)=>({before:e,after:d?e.replace(dO,``):r.prefix(t)+e.replace(dO,``)})),p=f.map(e=>e.after),[m]=f;if(m===void 0)throw Error(`applyBlockPrefix: the selection always covers at least one line`);let h=a[c];if(h===void 0)throw Error(`applyBlockPrefix: the first selected line always has an offset`);let g=m.after.length-m.before.length,_=f.reduce((e,t)=>e+(t.after.length-t.before.length),0),v=[...i.slice(0,c),...p,...i.slice(l+1)].join(`
10
- `);return{text:v,selection:mO({start:Math.max(h,t.start+g),end:t.end+_},v.length)}},yO=(e,t)=>{let n=e.text??``,r=mO(e.selection,n.length);return fO(t)?vO(n,r,t):t===`link`?_O(n,r):gO(n,r,cO[t])},bO={bold:`B`,italic:`I`,strikethrough:`S`,code:`</>`,link:`link`,heading1:`H1`,heading2:`H2`,bulletList:`•`,numberedList:`1.`,quote:`>`},xO=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading1`,`heading2`,`bulletList`,`numberedList`,`quote`],SO=160,CO=e=>{let{ref:t,value:n,onChangeText:r,placeholder:i,actions:a=xO,disabled:o=!1,loading:s=!1,minHeight:l=SO,autoFocus:u=!1,accessibilityLabel:d,haptic:f,labels:p,style:h,toolbarStyle:_,inputStyle:v,testID:y}=e,b=Ir(),x=m(()=>EO(b),[b]),S=Zm(`richTextEditor`,jm),C=m(()=>p?{...S,...p}:S,[S,p]),w=n??``,[T,E]=g({start:0,end:0}),[D,O]=g(!1),[k,A]=g(null),j=c(e=>{E(e.nativeEvent.selection),A(null)},[]),M=c(e=>{we(),A(null),r?.(e)},[r]),N=c(e=>{if(o)return;let t=ci(f,`selection`);t&&si(t);let n=yO({text:w,selection:mO(T,w.length)},e);E(n.selection),A(n.selection),r?.(n.text)},[o,f,r,T,w]);return s?G(TO,{actionCount:a.length,minHeight:l,style:h,testID:y}):K(V,{testID:y,style:[x.container,{borderColor:D?b.colors[`focus-ring`]:b.colors.border,opacity:o?.55:1},h],children:[G(V,{style:[x.toolbar,_],children:a.map(e=>G(wO,{action:e,label:C[e],disabled:o,onPress:N,styles:x,theme:b,testID:y?`${y}-${e}`:void 0},e))}),G(ee,{ref:t,value:w,onChangeText:M,onSelectionChange:j,onFocus:()=>O(!0),onBlur:()=>O(!1),selection:k??void 0,editable:!o,autoFocus:u,multiline:!0,textAlignVertical:`top`,placeholder:i,placeholderTextColor:b.colors[`text-subtle`],accessibilityLabel:d,style:[x.input,{minHeight:l},v],testID:y?`${y}-input`:void 0})]})},wO=({action:e,label:t,disabled:n,onPress:r,styles:i,theme:a,testID:o})=>{let s={color:n?a.colors[`text-disabled`]:a.colors[`text-body`],...e===`bold`?{fontWeight:a.weight.bold}:{},...e===`italic`?{fontStyle:`italic`}:{},...e===`strikethrough`?{textDecorationLine:`line-through`}:{}};return G(P,{onPress:()=>r(e),disabled:n,accessibilityRole:`button`,accessibilityLabel:t,accessibilityState:{disabled:n},"aria-disabled":n,hitSlop:4,...Zh(4),testID:o,style:({pressed:e})=>[i.button,{backgroundColor:e?a.colors[`surface-pressed`]:a.colors[`bg-subtle`]}],children:G($,{variant:`body`,maxFontSizeMultiplier:Math.min(a.settings.maxFontSizeMultiplier??1.5,1.5),style:[i.buttonLabel,s],children:bO[e]})})};wO.displayName=`RichTextEditorToolbarButton`;var TO=({actionCount:e,minHeight:t,style:n,testID:r})=>{let i=Ir(),a=m(()=>EO(i),[i]),o=Array.from({length:Math.max(1,e)},(e,t)=>t);return K(V,{testID:r,style:[a.container,n],children:[G(V,{style:a.toolbar,children:o.map(e=>G(vh,{width:34,height:30,radius:`sm`},e))}),K(V,{style:[a.skeletonBody,{minHeight:t}],children:[G(vh,{shape:`text`,width:`94%`,height:14}),G(vh,{shape:`text`,width:`100%`,height:14}),G(vh,{shape:`text`,width:`72%`,height:14})]})]})};TO.displayName=`RichTextEditorSkeleton`;var EO=e=>R.create({container:{borderWidth:e.size.border,borderColor:e.colors.border,borderRadius:e.radius.md,...ni,backgroundColor:e.colors.bg,overflow:`hidden`},toolbar:{flexDirection:`row`,flexWrap:`wrap`,alignItems:`center`,gap:e.space.xs,padding:e.space.xs,borderBottomWidth:R.hairlineWidth,borderBottomColor:e.colors[`border-subtle`],backgroundColor:e.colors[`bg-subtle`]},button:{minWidth:34,height:30,paddingHorizontal:e.space.xs,borderRadius:e.radius.sm,...ni,alignItems:`center`,justifyContent:`center`},buttonLabel:{...Rr(e,`medium`),fontSize:e.text.sm.size},input:{...Rr(e,`normal`),color:e.colors[`text-body`],fontSize:e.text.base.size,lineHeight:1.5*e.text.base.size,paddingHorizontal:e.space.md,paddingVertical:e.space.sm},skeletonBody:{paddingHorizontal:e.space.md,paddingVertical:e.space.sm,gap:e.space.sm}}),DO=260,OO=[{key:`tl`,style:{top:0,left:0,borderTopWidth:4,borderLeftWidth:4}},{key:`tr`,style:{top:0,right:0,borderTopWidth:4,borderRightWidth:4}},{key:`bl`,style:{bottom:0,left:0,borderBottomWidth:4,borderLeftWidth:4}},{key:`br`,style:{bottom:0,right:0,borderBottomWidth:4,borderRightWidth:4}}];function kO(e){Q(`ScannerOverlay`,`state`,e.state,[`scanning`,`found`,`invalid`,`noPermission`,`noCamera`]);let{children:t,state:n,helperText:r,labels:i,torch:a=!1,onTorchChange:o,onManualEntry:s,onGallery:c,onPermissionAction:l,frameSize:d=DO,haptic:f,style:p,testID:_,ref:v}=e,y=n??`scanning`,x=Ir(),S=xt(),C=Rn(),w=m(()=>AO(x),[x]),T=Zm(`scannerOverlay`,Mm),E=m(()=>({...T,...i}),[T,i]),D=r??E.hint,[O,k]=g({width:0,height:0}),[A,j]=g(0),M=y===`scanning`||y===`found`||y===`invalid`,N=h(Ht(1)).current,P=x.motion.duration.slower,F=x.motion.duration.default;u(()=>{if(N.setValue(1),C)return;let e;return y===`scanning`&&P>0?e=b.loop(b.sequence([b.timing(N,{toValue:1.03,duration:2*P,useNativeDriver:Vt}),b.timing(N,{toValue:1,duration:2*P,useNativeDriver:Vt})])):y===`found`&&F>0&&(N.setValue(1.08),e=b.timing(N,{toValue:1,duration:F,useNativeDriver:Vt})),e?.start(),()=>e?.stop()},[y,C,P,F,N]);let I=h(y);u(()=>{I.current!==y&&(I.current=y,!1!==f&&(y===`found`?si(`notificationSuccess`):y===`invalid`&&si(`notificationError`)))},[y,f]);let{found:L,invalid:z}=E,{noPermissionTitle:ee,noPermissionMessage:B}=E,{noCameraTitle:te,noCameraMessage:ne}=E;u(()=>{switch(y){case`scanning`:eh(D);break;case`found`:eh(L);break;case`invalid`:eh(z,{polite:!1});break;case`noPermission`:eh(`${ee}. ${B}`);break;case`noCamera`:eh(`${te}. ${ne}`)}},[y,D,L,z,ee,B,te,ne]);let H=Math.max(240,Math.min(d,O.width-2*x.space.xl)),re=(O.width-H)/2,U=Math.max(x.space.md,(O.height-A-H)/2),W=O.width>0&&O.height>0,ie={borderColor:y===`found`?x.colors.success:y===`invalid`?x.colors.danger:x.colors[`on-scrim`],width:32,height:32},q=y===`found`||y===`invalid`?G(V,{style:[w.pill,{backgroundColor:y===`found`?x.colors.success:x.colors.danger}],children:G($,{variant:`bodySmall`,weight:`semibold`,align:`center`,style:{color:y===`found`?x.colors[`on-success`]:x.colors[`on-danger`]},children:y===`found`?L:z})}):G($,{variant:`bodySmall`,align:`center`,style:{color:x.colors[`on-scrim`]},children:D}),J=M&&o!=null,Y=M?`glass`:`outline`;return K(V,{ref:v,testID:_,onLayout:e=>{let{width:t,height:n}=e.nativeEvent.layout;k(e=>e.width===t&&e.height===n?e:{width:t,height:n})},style:[w.root,!M&&{backgroundColor:x.colors.bg},p],children:[M?G(V,{style:R.absoluteFill,children:t}):null,M&&W?G(ae,{children:K(V,{pointerEvents:`none`,style:R.absoluteFill,accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:[G(V,{style:[w.scrim,{left:0,right:0,top:0,height:U}]}),G(V,{style:[w.scrim,{left:0,right:0,top:U+H,bottom:0}]}),G(V,{style:[w.scrim,{left:0,width:re,top:U,height:H}]}),G(V,{style:[w.scrim,{left:re+H,right:0,top:U,height:H}]}),G(b.View,{style:{position:`absolute`,left:re,top:U,width:H,height:H,transform:[{scale:N}]},children:OO.map(e=>G(V,{style:[w.mark,ie,e.style]},e.key))})]})}):null,M?null:G(V,{style:w.panel,children:G(qv,{fill:!0,icon:G(_p,{name:y===`noPermission`?`camera`:`camera-slash`,size:48,color:x.colors[`text-subtle`]}),title:y===`noPermission`?ee:te,description:y===`noPermission`?B:ne,action:y===`noPermission`&&l?{label:E.permissionAction,onPress:l}:void 0})}),K(V,{pointerEvents:`box-none`,onLayout:e=>{let{height:t}=e.nativeEvent.layout;j(e=>e===t?e:t)},style:[w.bar,{paddingBottom:Math.max(S.bottom,x.space.md)}],children:[M&&W?G(V,{pointerEvents:`none`,style:w.message,children:q}):null,K(V,{style:w.actions,children:[J?G(mS,{icon:a?`flash`:`flash-slash`,variant:`glass`,size:`lg`,active:a,haptic:f,accessibilityLabel:a?E.torchOff:E.torchOn,onPress:()=>o?.(!a)}):null,c?G(fg,{label:E.gallery,leftIcon:`gallery`,variant:Y,tone:`neutral`,size:`lg`,haptic:f,onPress:c}):null,s?G(fg,{label:E.manualEntry,leftIcon:`keyboard`,variant:Y,tone:`neutral`,size:`lg`,haptic:f,onPress:s}):null]})]})]})}var AO=e=>R.create({root:{flex:1,overflow:`hidden`},scrim:{position:`absolute`,backgroundColor:e.colors.scrim},mark:{position:`absolute`},message:{alignItems:`center`,paddingHorizontal:e.space.xl},pill:{paddingHorizontal:e.space.md,paddingVertical:e.space.xs,borderRadius:e.radius.pill,...ni},panel:{...R.absoluteFill,justifyContent:`center`},bar:{position:`absolute`,left:0,right:0,bottom:0,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:e.space.sm,paddingHorizontal:e.space.md},actions:{flexDirection:`row`,flexWrap:`wrap`,alignItems:`center`,justifyContent:`center`,gap:e.space.sm}}),jO=i(null);function MO(){return l(jO)}var NO=[`top`,`bottom`],PO=()=>{},FO=e=>R.create({flex:{flex:1},root:{flex:1,backgroundColor:e.colors.bg},overlay:{position:`absolute`,top:0,left:0,right:0},headerRaised:{zIndex:1},footer:{backgroundColor:e.colors.bg,borderTopWidth:R.hairlineWidth,borderTopColor:e.colors.border}});function IO(e){let{title:t,subtitle:n,largeTitle:i=!0,headerShadowOnScroll:a,onBack:o,rightActions:s,leading:l,trailing:d,children:f,onRefresh:p,refreshing:_=!1,footer:v,scroll:y=!0,list:x,edges:C=NO,keyboardToolbar:w=!0,bottomInset:E=0,gutter:D,floatingAction:O,scrollRef:k,onScroll:A,contentContainerStyle:j,testID:M}=e,N=Ir(),P=D??x===void 0,F=N.space[N.components.screen.gutter],I=P?F:0,L=xt(),R=m(()=>FO(N),[N]),[z]=g(()=>new b.Value(0)),[ee,B]=g(0),[te,ne]=g(0),H=o!==void 0,re=h(o);re.current=o;let W=!!(t||n||o||l||d||s?.length),ie=i&&t!==void 0,ae=ie&&(x!==void 0||y),q=ae?ee:0,J=W&&!ae&&(a??N.settings.components.screen?.headerShadowOnScroll??!0),[Y,X]=g(!1),Z=h(J);Z.current=J;let oe=e=>e>0?e:W?N.space.lg:0,se=v!==void 0,{refreshControl:ce}=Xh({onRefresh:p??PO,refreshing:_}),le=p?r(ce,{progressViewOffset:q}):void 0,ue=Xe(0),de=Xe(0),fe=Xe(0),pe=Xe(0),me=h(null),he=h(0),ge=h(0),_e=m(()=>({top:ue,bottom:de,offset:fe,maxOffset:pe,scrollTo:e=>{let t=me.current;t instanceof T?t.scrollToOffset({offset:e,animated:!1}):t?.scrollTo({y:e,animated:!1})}}),[ue,de,fe,pe]),ve=c(e=>{me.current=e,typeof k==`function`?k(e):k&&(k.current=e)},[k]),ye=c(()=>{pe.value=Math.max(0,he.current-ge.current)},[pe]),be=h(A);be.current=A;let xe=m(()=>b.event([{nativeEvent:{contentOffset:{y:z}}}],{useNativeDriver:!1,listener:e=>{if(fe.value=e.nativeEvent.contentOffset.y,Z.current){let t=e.nativeEvent.contentOffset.y>0;X(e=>e===t?e:t)}be.current?.(e)}}),[z,fe]),Se=c(e=>{let{height:t}=e.nativeEvent.layout;B(e=>Math.max(e,t))},[]),Ce=c(e=>{ne(e.nativeEvent.layout.height)},[]);u(()=>{if(!H)return;let e=S.addEventListener(`hardwareBackPress`,()=>(re.current?.(),!0));return()=>e.remove()},[H]);let we=C.includes(`left`)?L.left:0,Te=C.includes(`right`)?L.right:0,Ee=C.includes(`bottom`)?L.bottom:0,De=C.includes(`top`)&&!W?L.top:0,Oe=N.space[N.components[`floating-action-button`][`bottom-offset`]],ke=O?.props.bottomOffset??Oe,Ae=O?wn(N,O.props.size??`md`).diameter+ke+N.space.lg:0,je=se?Math.max(0,te-L.bottom):E,Me=O?r(O,{bottomOffset:ke+je,position:O.props.position??`bottomRight`}):null,Ne=se?Ae:Math.max(Ee,O?Ae+L.bottom:0),Pe=E+Ne-(se?0:Ee),Fe=C.filter(e=>e!==`top`&&!(e===`bottom`&&se)),Ie=W?G(V,{style:ae?R.overlay:J?R.headerRaised:void 0,onLayout:ae?Se:void 0,children:G(Uv,{title:t,subtitle:n,variant:ie?`large`:`default`,scrollY:ae?z:void 0,elevated:J&&Y,onBack:o,rightActions:s,leading:l,trailing:d,gutter:F,testID:M?`${M}-app-bar`:void 0})}):null,Le=c(()=>{let e=me.current?.getNativeScrollRef();e&&e.measureInWindow((e,t,n,r)=>{ge.current=r,ue.value=t+q,de.value=t+r,ye()})},[q,ue,de,ye]);u(()=>{Le()},[Le]);let Re=c((e,t)=>{he.current=t,ye()},[ye]),ze;if(x!==void 0){let e=Bw([x.contentContainerStyle,j]);ze=G(jO,{value:_e,children:G(YE,{...x,ref:ve,onRefresh:x.state?void 0:p,refreshing:x.state?void 0:_,progressViewOffset:q,placeholderStyle:[R.flex,{paddingTop:q+oe(e)}],onScroll:xe,onLayout:e=>{Le(),x.onLayout?.(e)},onContentSizeChange:(e,t)=>{Re(e,t),x.onContentSizeChange?.(e,t)},scrollEventThrottle:16,style:R.flex,contentContainerStyle:[{paddingTop:q,paddingLeft:we+I,paddingRight:Te+I},x.contentContainerStyle,j,{paddingTop:q+oe(e),paddingBottom:Vw([x.contentContainerStyle,j])+E+Ne}]})})}else ze=y?G(jO,{value:_e,children:K(Gw,{ref:ve,refreshControl:le,onScroll:xe,scrollEventThrottle:16,onLayout:Le,onContentSizeChange:Re,safeAreaEdges:Fe,style:R.flex,contentContainerStyle:[{paddingHorizontal:I},j,{paddingTop:q+oe(Bw(j))}],children:[f,Pe>0?G(V,{style:{height:Pe}}):null]})}):G(V,{style:[R.flex,{paddingLeft:we+I,paddingRight:Te+I},j,{paddingBottom:Vw(j)+E+Ne}],children:f});let Be=se?G(U,{onLayout:Ce,style:[R.footer,{paddingLeft:we+F,paddingRight:Te+F,paddingBottom:Ee+E}],children:v}):null;return K(V,{testID:M,style:[R.root,{paddingTop:De}],children:[ae?null:Ie,ze,Be,Me,x===void 0?null:f,ae?Ie:null,w?G(qw,{}):null]})}var LO=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),RO=(e,t)=>{let n=t.trim().split(/\s+/).filter(Boolean).slice(0,8).sort((e,t)=>t.length-e.length);if(!e||n.length===0)return[{text:e,match:!1,start:0}];let r=new RegExp(n.map(LO).join(`|`),`gi`),i=[],a=0,o=r.exec(e);for(;o!==null;){let t=o.index,n=t+o[0].length;t>a&&i.push({text:e.slice(a,t),match:!1,start:a});let s=i[i.length-1];s?.match&&t===a?s.text+=o[0]:i.push({text:o[0],match:!0,start:t}),a=n,o=r.exec(e)}return a<e.length&&i.push({text:e.slice(a),match:!1,start:a}),i.length>0?i:[{text:e,match:!1,start:0}]},zO=e=>typeof e==`string`?{text:e}:e,BO=({scopes:e,scope:t,disabled:n,haptic:r,labels:i,onChange:a})=>{let o=Ir(),s=m(()=>WO(o),[o]);return G(I,{horizontal:!0,showsHorizontalScrollIndicator:!1,keyboardShouldPersistTaps:`handled`,contentContainerStyle:s.scopes,accessibilityLabel:i.scope,children:e.map(e=>G(iS,{label:e.label,selected:e.value===t,disabled:n,haptic:r,onPress:()=>a(e.value),style:s.scopeChip},e.value))})},VO=({recents:e,labels:t,onSelect:n,onRemove:r,onClear:i,onHold:a,onRelease:o})=>{let s=Ir(),c=m(()=>WO(s),[s]);return K(V,{style:c.list,children:[K(V,{style:c.header,children:[G($,{variant:`label`,accessibilityRole:`header`,style:c.headerTitle,children:t.recents}),i?G(P,{onPress:i,onPressIn:a,onPressOut:o,accessibilityRole:`button`,accessibilityLabel:t.clearAllRecents,style:c.clearAll,children:G($,{variant:`label`,color:`link`,children:t.clearAll})}):null]}),e.map(e=>K(V,{style:c.row,children:[K(P,{onPress:()=>n(e),onPressIn:a,onPressOut:o,accessibilityRole:`button`,accessibilityLabel:e,accessibilityHint:t.searchAgain,android_ripple:{color:s.colors[`surface-pressed`]},style:({pressed:e})=>[c.rowMain,e?{backgroundColor:s.colors[`surface-pressed`]}:null],children:[G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:G(_p,{name:`history`,size:18,color:s.colors[`text-subtle`]})}),G($,{variant:`body`,numberOfLines:1,style:c.rowText,children:e})]}),r?G(P,{onPress:()=>r(e),onPressIn:a,onPressOut:o,accessibilityRole:`button`,accessibilityLabel:Op(t.removeRecent,{text:e}),style:c.remove,children:G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:G(_p,{name:`x`,size:18,color:s.colors[`text-muted`]})})}):null]},e))]})},HO=s(({item:e,query:t,onSelect:n,onHold:r,onRelease:i,theme:a,styles:o})=>{let s=RO(e.text,t),c=e.icon?$h(e.icon,{size:18,color:a.colors[`text-subtle`],disabled:!1}):G(_p,{name:`search`,size:18,color:a.colors[`text-subtle`]});return K(P,{onPress:()=>n(e),onPressIn:r,onPressOut:i,accessibilityRole:`button`,accessibilityLabel:e.subtitle?`${e.text}, ${e.subtitle}`:e.text,android_ripple:{color:a.colors[`surface-pressed`]},style:({pressed:e})=>[o.rowMain,o.suggestion,e?{backgroundColor:a.colors[`surface-pressed`]}:null],children:[G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:c}),K(V,{style:o.rowText,children:[G($,{variant:`body`,color:`secondary`,numberOfLines:1,children:s.map(e=>G($,{variant:`body`,color:`secondary`,style:e.match?o.match:void 0,children:e.text},e.start))}),e.subtitle?G($,{variant:`caption`,numberOfLines:1,children:e.subtitle}):null]})]})});HO.displayName=`SuggestionRow`;var UO=({suggestions:e,query:t,onSelect:n,onHold:r,onRelease:i})=>{let a=Ir(),o=m(()=>WO(a),[a]);return G(V,{style:o.list,children:e.map(e=>G(HO,{item:e,query:t,onSelect:n,onHold:r,onRelease:i,theme:a,styles:o},e.id??e.text))})},WO=e=>({...R.create({scopes:{flexDirection:`row`,alignItems:`center`,gap:e.space.sm,paddingTop:e.space.sm},scopeChip:{minHeight:44},list:{width:`100%`,paddingTop:e.space.xs},header:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,minHeight:44,paddingHorizontal:e.space.xs},headerTitle:{flex:1},clearAll:{minHeight:44,minWidth:44,justifyContent:`center`,alignItems:`flex-end`},row:{flexDirection:`row`,alignItems:`center`},rowMain:{flex:1,flexDirection:`row`,alignItems:`center`,gap:e.space.md,minHeight:44,paddingHorizontal:e.space.xs},suggestion:{paddingVertical:e.space.xs},rowText:{flex:1},remove:{width:44,height:44,alignItems:`center`,justifyContent:`center`}}),match:{...Rr(e,`bold`),color:e.colors[`text-body`]}}),GO=8;function KO({ref:e,...t}){let{value:n,onChangeText:r,onSubmit:i,onFocus:a,onBlur:o,placeholder:s,autoFocus:l=!1,disabled:d=!1,onClear:f,leftIcon:p,debounceMs:_,size:v=`md`,variant:y,radius:b,label:x,labelMode:S=`top`,labelStyle:C,scopes:w,scope:T,onScopeChange:E,recents:D,maxRecents:O=GO,onSelectRecent:k,onRemove:A,onClearRecents:j,suggestions:M,maxSuggestions:N=GO,onSelect:F,haptic:I,labels:L,style:R,inputStyle:z,accessibilityLabel:B,testID:te,...ne}=t;Q(`SearchBar`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`SearchBar`,`variant`,t.variant,[`outline`,`filled`,`underline`]),Q(`SearchBar`,`labelMode`,t.labelMode,[`top`,`float`]);let H=Ir(),re=Zm(`searchBar`,Nm),U=m(()=>({...re,...L}),[re,L]),W=s??U.placeholder,ie=y??H.settings.components[`search-bar`]?.defaultVariant??H.settings.components.field?.defaultVariant??`filled`,ae=ie===`underline`,q=fn(H,v),J=b??H.components[`search-bar`][v].radius,Y=xg(H,{disabled:d}),X=h(null),Z=m(()=>th(X,e),[e]),oe=c(()=>{d||X.current?.focus()},[d]),se=m(()=>qO(H),[H]),ce=typeof n==`string`?n:``,[le,ue]=g(!1),de=c(e=>{ue(!0),a?.(e)},[a]),fe=c(e=>{ue(!1),o?.(e)},[o]),[pe,me]=g(ce),he=h(pe);he.current=pe;let ge=Vh(pe,_??0);u(()=>{_!==void 0&&ce!==he.current&&me(ce)},[ce,_]);let _e=h(ce);u(()=>{_!==void 0&&ge!==_e.current&&(_e.current=ge,r(ge))},[ge,_,r]);let ve=c(e=>{we(),_===void 0?r(e):me(e)},[_,r]),ye=c(()=>{let e=ci(I,`selection`);e&&si(e),_!==void 0&&(me(``),_e.current=``),r(``),f?.()},[I,_,r,f]),be=c(()=>{i?.(_===void 0?ce:pe)},[i,_,pe,ce]),xe=_===void 0?ce:pe,Se=xe.length>0,[Ce,Te]=Bh({value:T,defaultValue:w?.[0]?.value??``,onChange:E}),Ee=c(e=>{Te(e);let t=w?.find(t=>t.value===e)?.label;t&&eh(Op(U.searching,{label:t}))},[w,Te,U]),[De,Oe]=g(!1),ke=h(null),Ae=c(()=>{ke.current&&=(clearTimeout(ke.current),null)},[]),je=c(()=>{Ae(),Oe(!0)},[Ae]),Me=c(()=>{Ae(),ke.current=setTimeout(()=>Oe(!1),50)},[Ae]);u(()=>Ae,[Ae]);let Ne=!d&&(le||De),Pe=m(()=>(D??[]).slice(0,O),[D,O]),Fe=m(()=>(M??[]).slice(0,N).map(zO),[M,N]),Ie=Ne&&!Se&&Pe.length>0,Le=Ne&&Se&&Fe.length>0,Re=Le?Fe.length:0,ze=Re>0?kp(U,`suggestionCount`,Re):``;u(()=>{ze&&eh(ze)},[ze]);let Be=c(()=>{let e=ci(I,`selection`);e&&si(e)},[I]),Ve=c(e=>{Be(),X.current?.blur(),Oe(!1),k?.(e)},[Be,k]),He=c(e=>{Be(),X.current?.blur(),Oe(!1),F?.(e)},[Be,F]),Ue=c(e=>{Be(),A?.(e),eh(Op(U.removed,{text:e})),oe()},[Be,A,oe,U]),We=c(()=>{Be(),j?.(),eh(U.recentsCleared),oe()},[Be,j,oe,U]),Ge={size:q.icon,color:d?H.colors[`text-disabled`]:H.colors[`text-subtle`],disabled:d},Ke=p?$h(p,Ge):(H.settings.icons.search??vp.search)(Ge),qe=G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:Ke}),Je=!!x&&S===`float`,Ye=Ng({label:x,enabled:Je,floated:le||Se,variant:ie,sizeTokens:q,leadingOffset:q.icon+H.space.md,trailingOffset:Se?q.icon+H.space.md:0,paddingLeft:ae?H.space.none:q[`padding-x`],color:H.colors[`field-label`],style:C}),Xe=Se&&!d?G(P,{onPress:ye,hitSlop:8,...Zh(8),accessibilityRole:`button`,accessibilityLabel:U.clearSearch,children:(H.settings.icons.close??vp.close)({size:q.icon,color:H.colors[`text-muted`]})}):null;return K(V,{style:R,testID:te,children:[x&&!Je?G(Dg,{size:v,style:C,children:x}):null,G(V,{style:se.root,children:K(V,{style:se.fieldWrap,children:[G(jg,{testID:te?`${te}-field`:void 0,size:v,variant:ie,focused:le,disabled:d,filled:Se,minHeight:q[`min-height`],paddingHorizontal:ae?H.space.none:q[`padding-x`],radius:J,leading:qe,trailing:Xe,topNotch:Ye.topNotch,onPress:oe,pressFeedback:!1,accessibilityRole:`search`,accessibilityLabel:B??W,children:G(ee,{ref:Z,style:[se.input,{fontSize:q.text,color:Y.color,...Y.weightStyle},z],value:xe,onChangeText:ve,onSubmitEditing:be,onFocus:de,onBlur:fe,placeholder:!Je||le||Se?W:void 0,placeholderTextColor:Y.placeholderColor,autoFocus:l,editable:!d,returnKeyType:`search`,selectionColor:Ag(H,ie).borderFocusedRepresentative,accessibilityLabel:B??W,accessibilityState:{disabled:d},"aria-disabled":d,...ne})}),Ye.node]})}),w&&w.length>0?G(BO,{scopes:w,scope:Ce||(w[0]?.value??``),disabled:d,haptic:I,labels:U,onChange:Ee}):null,Ie?G(VO,{recents:Pe,labels:U,onSelect:Ve,onRemove:A?Ue:void 0,onClear:j?We:void 0,onHold:je,onRelease:Me}):null,Le?G(UO,{suggestions:Fe,query:xe,onSelect:He,onHold:je,onRelease:Me}):null]})}var qO=e=>R.create({root:{flexDirection:`row`,alignItems:`center`,width:`100%`,position:`relative`,overflow:`visible`},fieldWrap:{flex:1,position:`relative`,overflow:`visible`},input:{flex:1,padding:e.space.none,margin:e.space.none,includeFontPadding:!1}}),JO=(e,t)=>{switch(t){case`primary`:return e.colors.primary;case`neutral`:return e.colors[`text-body`];case`success`:return e.colors[`success-text`];case`warning`:return e.colors[`warning-text`];case`danger`:return e.colors[`danger-text`];case`info`:return e.colors[`info-text`]}};function YO({ref:e,...t}){let{segments:n,label:r,helperText:i,error:a,value:o,defaultValue:s,onChange:l,size:d=`md`,fullWidth:f=!0,disabled:p=!1,tone:_=`primary`,variant:v=`segmented`,radius:y,labelLines:x=1,haptic:S,accessibilityLabel:C,style:w,segmentStyle:T,selectedIndicatorStyle:E,textStyle:D,labelStyle:O,testID:k}=t;Q(`SegmentedControl`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`SegmentedControl`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`SegmentedControl`,`variant`,t.variant,[`underline`,`pills`,`segmented`]);let[A]=n;if(A===void 0)throw Error(`SegmentedControl needs at least one segment`);let[j,M]=Bh({value:o,defaultValue:s??A.value,onChange:e=>{e!==null&&l?.(e)}}),N=Ir(),F=N.components[`segmented-control`],I=m(()=>XO(N),[N]),L=m(()=>xn(N,d),[N,d]),z=x>=2?2:1,ee=z>1,B=v===`segmented`,te=v===`underline`,ne=v===`pills`,H=B?N.space[F[`track-padding`]]:0,re=Math.ceil(1.25*L.text)*(z-1),U=F[`underline-height`],W=N.space[F[`pill-inset`]],ie=typeof y==`number`?y:y?N.radius[y]:void 0,ae=ie??N.radius.md,q=ie===void 0?N.radius.sm:Math.max(ie-H,0),J=ie??N.radius.pill,Y=ie??N.radius.none,[X,Z]=g([]),oe=h(Ht(0)).current,se=Math.max(0,n.findIndex(e=>e.value===j)),ce=X[se],le=ce?.x,ue=c(e=>{let t=N.motion.spring.snappy,n=b.spring(oe,{toValue:e,damping:t.damping,stiffness:t.stiffness,mass:t.mass,overshootClamping:!0,useNativeDriver:Vt});return n.start(),n},[N.motion.spring.snappy,oe]);u(()=>{Z(e=>e.length===n.length||e.length===0?e:[])},[n.length]);let de=h(null);u(()=>{if(le===void 0)return;let e=de.current!==null&&de.current!==se;if(de.current=se,!e)return void oe.setValue(le);let t=ue(le);return()=>t.stop()},[se,le,ue,oe]);let fe=c((e,t)=>{let{x:n,width:r}=t.nativeEvent.layout;Z(t=>{let i=t[e];if(i&&i.x===n&&i.width===r)return t;let a=t.slice();return a[e]={x:n,width:r},a})},[]),pe=c(e=>{if(p||e.value===j)return;let t=ci(S,`selection`);t&&si(t),M(e.value)},[p,M,j,S]),me=B?N.colors.thumb:ne?N.colors[`primary-soft`]:N.colors.primary,he=B?q:ne?J:Y,ge=JO(N,_),_e=N.colors[`bg-muted`],ve=ag(B,ae),ye=!0===a||Tg(a),be=ye&&!p,xe=N.colors[`field-border-error`],Se=N.size.border,Ce=Tg(r),we=ye?a:i,Te=Tg(we),Ee=K(V,{ref:e,accessibilityRole:`radiogroup`,accessibilityLabel:C??(typeof r==`string`?r:void 0),testID:k,style:[I.track,{...ee?{minHeight:L.height+re}:{height:L.height},opacity:p?.55:1,alignSelf:f?`stretch`:`flex-start`},B?{borderRadius:ae,...ni,backgroundColor:ve.active?`transparent`:_e,padding:H}:te?{borderBottomColor:be?xe:N.colors[`border-subtle`],borderBottomWidth:R.hairlineWidth}:null,w],onLayout:ve.onLayout,children:[ve.active&&ve.size?G(ig,{width:ve.size.width,height:ve.size.height,radius:ae,fill:_e,stroke:be?xe:void 0,strokeWidth:Se}):null,K(V,{style:I.row,children:[ce?G(b.View,{pointerEvents:`none`,style:[I.thumb,B?ee?{top:0,bottom:0}:{top:0,height:L.height-2*H}:ne?{top:W,bottom:W,left:W}:{bottom:0,height:U},{width:ne?Math.max(ce.width-2*W,0):ce.width,borderRadius:he,...ni,backgroundColor:me,transform:[{translateX:oe}]},E]}):null,n.map((e,t)=>{let n=e.value===j,r=n?ge:N.colors[`text-subtle`],i=$h(e.icon,{color:r,size:L.icon,selected:n,disabled:p}),a=!!i;return K(P,{onPress:()=>pe(e),onLayout:e=>fe(t,e),disabled:p,accessibilityRole:`radio`,accessibilityLabel:e.label,accessibilityState:{checked:n,selected:n,disabled:p},"aria-checked":n,"aria-disabled":p,style:({pressed:e})=>[I.segment,ee?I.segmentMultiline:null,{paddingHorizontal:L[`padding-x`],opacity:e&&!n?.7:1},T],children:[a?G(V,{style:I.segmentIcon,accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:i}):null,G($,{variant:`label`,weight:n?`semibold`:`medium`,style:[I.segmentLabel,ee?I.segmentLabelMultiline:null,{color:r,fontSize:L.text},D,O],numberOfLines:z,children:e.label})]},String(e.value))})]}),!be||te||ve.active?null:G(V,{pointerEvents:`none`,style:[R.absoluteFill,{borderWidth:Se,borderColor:xe,borderRadius:B?ae:J,...ni}]})]});return Ce||Te?K(V,{style:{alignSelf:f?`stretch`:`flex-start`},children:[Ce?G(Dg,{size:d,children:r}):null,Ee,Te?G(Og,{size:d,text:we,error:ye}):null]}):Ee}var XO=e=>R.create({track:{flexDirection:`row`,alignItems:`stretch`,position:`relative`},row:{flex:1,flexDirection:`row`,alignItems:`stretch`,position:`relative`,overflow:`hidden`},thumb:{position:`absolute`,left:0},segment:{flexGrow:1,flexShrink:1,flexBasis:`auto`,flexDirection:`row`,alignItems:`center`,justifyContent:`center`},segmentIcon:{marginRight:e.space.xs},segmentMultiline:{paddingVertical:e.space.xs},segmentLabel:{includeFontPadding:!1},segmentLabelMultiline:{flexShrink:1,textAlign:`center`}}),ZO=(e,t)=>String(e)===String(t),QO=(e,t)=>e.some(e=>ZO(e,t));function $O(e){Q(`Select`,`size`,e.size,[`sm`,`md`,`lg`]),Q(`Select`,`variant`,e.variant,[`outline`,`filled`,`underline`]);let{options:t,getOptionLabel:n,getOptionValue:r,isOptionDisabled:i,getOptionDescription:a,getOptionIcon:o,placeholder:s,onOpenChange:l,searchable:u=!1,haptic:d,labels:f,label:p,help:h,title:_,required:v=!1,error:y,helperText:b,prefix:x,numberOfLines:S=1,disabled:C=!1,size:w=`md`,variant:T,leftIcon:E,rightIcon:D,chevronColor:O,chevronSize:k,radius:A,accessibilityLabel:j,labelStyle:M,style:N,triggerStyle:P,textStyle:F,optionStyle:I,selectedOptionStyle:L,optionTextStyle:R,selectedOptionTextStyle:z,testID:ee,ref:B}=e,te=!0===e.multi,ne={...Zm(`select`,Fm),...f},H=c(e=>n?n(e):Cv(e),[n]),re=c(e=>r?r(e):wv(e),[r]),U=c(e=>i?i(e):Ev(e),[i]),W=c(e=>a?a(e):Tv(e),[a]),ie=c(e=>o?o(e):Dv(e),[o]),ae=Ir(),q=m(()=>ek(ae),[ae]),J=fn(ae,w),Y=xg(ae,{disabled:C}),X=T??ae.settings.components.select?.defaultVariant??ae.settings.components.field?.defaultVariant??`outline`,[Z,oe]=g(!1),se=m(()=>{if(te){let n=e.value??[];return t.filter(e=>QO(n,re(e)))}let n=e.value;if(n==null)return[];let r=t.find(e=>ZO(re(e),n));return r?[r]:[]},[te,t,e.value,re]),ce=c(()=>{if(C)return;let e=ci(d,`selection`);e&&si(e),oe(!0)},[C,d]),le=c(()=>{oe(!1)},[]),ue=c(t=>{if(U(t))return;let n=re(t),r=ci(d,`selection`);if(r&&si(r),te){let t=e.value??[],r=QO(t,n)?t.filter(e=>!ZO(e,n)):[...t,n];e.onChange(r)}else e.onChange(n),le()},[te,e,le,U,re,d]),de=se.length===0?s??ne.placeholder:se.map(e=>H(e)).join(`, `),fe=se.length===0,pe=!0===y||Tg(y),me=Tg(p),he=Eg(p),ge=Math.round(1.4*J.text),_e=m(()=>({fontSize:J.text,color:Y.placeholderColor}),[J.text,Y.placeholderColor]),ve={color:C?ae.colors[`field-icon-disabled`]:Z?ae.colors[`field-icon-focus`]:ae.colors[`field-icon`],size:J.icon,disabled:C,focused:Z,error:pe},ye=se.length===0?s??ne.noSelection:Op(ne.selected,{summary:se.map(e=>H(e)).join(`, `)}),be=j??`${he??ne.fallbackName}. ${ye}`;return K(V,{style:[q.container,N],testID:ee,children:[me?G(Dg,{size:w,required:v,help:h,style:M,children:p}):null,G(V,{ref:B,collapsable:!1,children:K(jg,{size:w,variant:X,disabled:C,error:pe,filled:se.length>0,onPress:ce,radius:A,paddingHorizontal:X===`underline`?ae.space.none:void 0,accessibilityRole:`button`,accessibilityLabel:be,accessibilityState:{disabled:C,expanded:Z},"aria-disabled":C,"aria-expanded":Z,style:P,slotAlign:S===1?`center`:`top`,slotLineHeight:S===1?void 0:ge,leading:E?tg(E,$h(E,ve)):null,trailing:D?tg(D,$h(D,ve)):G(XS,{color:O??(C?ae.colors[`text-disabled`]:ae.colors[`text-subtle`]),size:k??J.icon,open:Z,style:q.chevron}),children:[Tg(x)?typeof x==`string`||typeof x==`number`?G($,{variant:`body`,style:[q.prefix,{color:Y.placeholderColor,fontSize:J.text,lineHeight:S===1?void 0:ge,marginRight:ae.space.xs}],children:x}):G(V,{style:[q.prefixNode,{minHeight:S===1?void 0:ge,justifyContent:`center`,marginRight:ae.space.xs}],children:G($,{variant:`body`,style:[q.prefix,{color:Y.placeholderColor,fontSize:J.text,lineHeight:S===1?void 0:ge}],children:G(li,{value:_e,children:x})})}):null,K($,{variant:`body`,style:[q.triggerText,{color:fe?Y.placeholderColor:Y.color,fontSize:J.text,lineHeight:S===1?void 0:ge,...Y.weightStyle},F],numberOfLines:S,children:[de,fe&&v&&!me?G(Sg,{}):null]})]})}),G(Og,{size:w,error:pe,text:pe?y:b}),G(Mv,{open:Z,onClose:le,onOpenChange:l,haptic:d,title:_??he,accessibilityLabel:he??(me?_:void 0)??s??ne.sheetName,options:t,getOptionLabel:H,getOptionValue:re,isOptionDisabled:U,getOptionDescription:W,getOptionIcon:ie,value:e.value,onChange:(e,t)=>ue(t),multi:te,searchable:u,labels:{...ne.searchPlaceholder===void 0?{}:{searchPlaceholder:ne.searchPlaceholder},...ne.empty===void 0?{}:{empty:ne.empty}},optionStyle:I,selectedOptionStyle:L,optionTextStyle:R,selectedOptionTextStyle:z,searchSelectionColor:Ag(ae,X).borderFocusedRepresentative})]})}$O.displayName=`Select`;var ek=e=>R.create({container:{width:`100%`},label:{includeFontPadding:!1},triggerText:{flex:1,includeFontPadding:!1},errorText:{includeFontPadding:!1},prefix:{flexShrink:0,includeFontPadding:!1},prefixNode:{flexShrink:0},chevron:{marginLeft:e.space.sm}}),tk=.7,nk=e=>Math.round(10*e)/10,rk=(e,t)=>[nk(e),nk(t)],ik=(e,t)=>Math.hypot(e[0]-t[0],e[1]-t[1]),ak=e=>e.toFixed(1),ok=e=>{let[t,n,...r]=e;if(t===void 0)return``;let i=[`M${ak(t[0])} ${ak(t[1])}`];if(n===void 0)return i.push(`L${ak(t[0])} ${ak(t[1])}`),i.join(` `);if(r.length===0)return i.push(`L${ak(n[0])} ${ak(n[1])}`),i.join(` `);let a=n;for(let e of r){let t=(a[0]+e[0])/2,n=(a[1]+e[1])/2;i.push(`Q${ak(a[0])} ${ak(a[1])} ${ak(t)} ${ak(n)}`),a=e}return i.push(`L${ak(a[0])} ${ak(a[1])}`),i.join(` `)},sk=(e,t)=>{let n=Math.max(1,t.length),r=Math.floor(.88*e/(.5*n));return Math.min(56,Math.max(18,r))},ck=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`),lk=e=>{let{width:t,height:n,mode:r,strokes:i,typedName:a,ink:o,paper:s,strokeWidth:c,fontFamily:l}=e,u=Math.round(t),d=Math.round(n),f=[`<rect x="0" y="0" width="${u}" height="${d}" fill="${ck(s)}"/>`];if(r===`type`){let e=a.trim();e&&f.push(`<text x="${u/2}" y="${ak(.7*d)}" text-anchor="middle" font-family="${ck(l)}" font-size="${sk(u,e)}" fill="${ck(o)}">${ck(e)}</text>`)}else for(let e of i)f.push(`<path d="${ok(e)}" fill="none" stroke="${ck(o)}" stroke-width="${c}" stroke-linecap="round" stroke-linejoin="round"/>`);return`<svg xmlns="http://www.w3.org/2000/svg" width="${u}" height="${d}" viewBox="0 0 ${u} ${d}">${f.join(``)}</svg>`},uk=async e=>{let{File:t,Paths:n}=Lt(`expo-file-system`),r=new t(n.cache,`signature-${Date.now().toString(36)}.png`);return r.create({intermediates:!0,overwrite:!0}),await r.write(e,{encoding:`base64`}),r.uri},dk=180,fk=100,pk={minHeight:44},mk=()=>N.select({ios:`Snell Roundhand`,default:`cursive`}),hk=e=>e===`cursive`?`cursive`:`'${e}', cursive`,gk=()=>{let[e,t]=g(!1);return u(()=>{let e=!0;v.isScreenReaderEnabled().then(n=>{e&&t(n)});let n=v.addEventListener(`screenReaderChanged`,t);return()=>{e=!1,n.remove()}},[]),e},_k=s(({points:e,color:t})=>G(at,{d:ok(e),stroke:t,strokeWidth:2.5,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`}));_k.displayName=`SignaturePadStroke`;var vk=({mode:e,strokes:t,name:n,color:r,fontFamily:i,width:a,height:o})=>e===`draw`?G(ae,{children:t.map(e=>G(_k,{points:e.points,color:r},e.id))}):n?G(lt,{x:a/2,y:o*tk,fontSize:sk(a,n),fontFamily:i,textAnchor:`middle`,fill:r,children:n}):null;function yk({ref:e,...t}){let{expandable:n,initialStrokes:r,onChange:i,initialTypedName:a=``,onTypedNameChange:o,defaultMode:s=`draw`,onModeChange:l,onEmptyChange:d,allowTyped:p=!0,signedBy:_,signedAt:v,height:y=dk,maxNameLength:b=fk,inkColor:x,paperColor:S,scriptFontFamily:C,labels:w,haptic:T=`selection`,disabled:E=!1,style:D,testID:O}=t;Q(`SignaturePad`,`defaultMode`,t.defaultMode,[`draw`,`type`]);let k=Ir(),j=x===void 0&&S===void 0,N=j?k.colors[`text-body`]:x??Ar.colors[`text-body`],P=j?k.colors.surface:S??Ar.colors.surface,F=j?Ar.colors[`text-body`]:N,I=j?Ar.colors.surface:P,L=F!==N||I!==P,z=C??mk(),ee=Zm(`signaturePad`,Im),B=m(()=>({...ee,...w}),[ee,w]),ne=gk(),H=h(null),re=h(null),[U,W]=g(0),[ie,q]=g(()=>(r??[]).map((e,t)=>({id:t+1,points:[...e]}))),J=h(ie),Y=h(ie.length),X=h(null),Z=h(null),[oe,se]=g(p?s:`draw`),[ce,le]=g(a),[de,fe]=g(null),pe=h(!1),{height:me}=te(),[he,ge]=g(!1),[_e,ve]=g([]),ye=h({onChange:i,onTypedNameChange:o,onModeChange:l,onEmptyChange:d});u(()=>{ye.current={onChange:i,onTypedNameChange:o,onModeChange:l,onEmptyChange:d}});let be=oe===`draw`&&!E,xe=oe===`draw`?ie.length===0:ce.trim().length===0,Se=h(null);u(()=>{Se.current!==xe&&(Se.current=xe,ye.current.onEmptyChange?.(xe))},[xe]);let Ce=c(e=>{J.current=e,q(e)},[]),we=c(()=>{fe(Date.now()),ye.current.onChange?.(J.current.map(e=>e.points))},[]),Te=m(()=>{let e=e=>({enabled:be,runOnJS:!0,onBegin:e=>{X.current=rk(e.x,e.y)},onActivate:t=>{Z.current=e,Y.current+=1;let n=rk(t.x,t.y);Ce([...J.current,{id:Y.current,points:[X.current??n,n]}])},onUpdate:t=>{if(Z.current!==e)return;let n=J.current[J.current.length-1];if(n===void 0)throw Error(`The stroke being drawn is missing.`);let r=rk(t.x,t.y),i=n.points[n.points.length-1];if(i===void 0)throw Error(`A drawn stroke has no points.`);ik(i,r)<.8||Ce([...J.current.slice(0,-1),{...n,points:[...n.points,r]}])},onFinalize:()=>{Z.current===e&&(Z.current=null,we())}});return{sidewaysConfig:{...e(`sideways`),activeOffsetX:[-6,6],failOffsetY:[-8,8]},restedConfig:{...e(`rested`),activateAfterLongPress:200}}},[be,Ce,we]),Ee=ht(Te.sidewaysConfig),De=ht(Te.restedConfig),Oe=pt(Ee,De),ke=c(e=>{se(e),ye.current.onModeChange?.(e),eh(e===`type`?B.typingAnnouncement:B.drawingAnnouncement)},[B.typingAnnouncement,B.drawingAnnouncement]);u(()=>{ne&&p&&!pe.current&&oe===`draw`&&J.current.length===0&&ke(`type`)},[ne,p,oe,ke]);let Ae=c(()=>{pe.current=!0,ke(oe===`draw`?`type`:`draw`)},[oe,ke]),je=c(e=>{le(e),fe(Date.now()),ye.current.onTypedNameChange?.(e)},[]),Me=c(()=>{oe===`type`?je(``):(Ce([]),we()),eh(B.clearedAnnouncement)},[oe,je,Ce,we,B.clearedAnnouncement]),Ne=c(()=>{oe===`draw`&&J.current.length!==0&&(Ce(J.current.slice(0,-1)),we(),eh(B.undoneAnnouncement))},[oe,Ce,we,B.undoneAnnouncement]),Pe=c(()=>{ve(J.current.map(e=>e.points)),ge(!0)},[]),Fe=c(()=>{ge(!1)},[]),Ie=c(()=>{Ce(_e.map(e=>(Y.current+=1,{id:Y.current,points:[...e]}))),we(),ge(!1)},[_e,Ce,we]),Le=U||320;f(e,()=>({toFile:()=>new Promise((e,t)=>{if(xe)return void t(Error(B.emptyError));let n=L?re.current:H.current;if(!n)return void t(Error(`The signature pad is not on screen.`));let r=Math.min(3,Math.max(1,M.get()));n.toDataURL(n=>{uk(n).then(e,t)},{width:Le*r,height:y*r})}),toSvg:()=>lk({width:Le,height:y,mode:oe,strokes:ie.map(e=>e.points),typedName:ce,ink:F,paper:I,strokeWidth:2.5,fontFamily:hk(z)}),clear:Me,undo:Ne,isEmpty:()=>xe}),[xe,B.emptyError,Le,y,oe,ie,ce,L,F,I,z,Me,Ne]);let Re=m(()=>[{name:`undo`,label:B.undo},{name:`clear`,label:B.clear},...p?[{name:`toggleMode`,label:oe===`draw`?B.typeInstead:B.drawInstead}]:[]],[B.undo,B.clear,B.typeInstead,B.drawInstead,p,oe]),ze=c(e=>{if(E)return;let{actionName:t}=e.nativeEvent;t===`undo`?Ne():t===`clear`?Me():t===`toggleMode`&&p&&Ae()},[E,Ne,Me,Ae,p]),Be=c(e=>{W(e.nativeEvent.layout.width)},[]),Ve=m(()=>R.create({root:{gap:k.space.sm},pad:{height:y,borderWidth:k.size.border,borderColor:k.colors.border,borderRadius:k.radius.md,...ni,overflow:`hidden`,backgroundColor:P,opacity:E?.5:1},baseline:{position:`absolute`,left:k.space.md,right:k.space.md,top:y*tk,height:R.hairlineWidth,backgroundColor:N,opacity:.3},actions:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,flexWrap:`wrap`,gap:k.space.xs},trailing:{flexDirection:`row`,alignItems:`center`,gap:k.space.xs},expandedRoot:{flex:1,padding:k.space.md,gap:k.space.sm,backgroundColor:k.colors.bg},expandedBar:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`}}),[k,y,P,N,E]),He=ce.trim(),Ue=v??de,We=_&&!xe?`Signed by ${_}${Ue?`, ${ue(Ue)}`:``}`:null,Ge=oe===`type`&&He?`${B.pad}. ${He}`:B.pad;return K(V,{style:[Ve.root,D],testID:O,children:[G(ut,{gesture:Oe,children:K(V,{style:Ve.pad,onLayout:Be,accessible:!0,accessibilityRole:`image`,accessibilityLabel:Ge,accessibilityHint:oe===`draw`?B.padHint:void 0,accessibilityValue:{text:xe?B.empty:B.signed},accessibilityState:{disabled:E},"aria-disabled":E,accessibilityActions:Re,onAccessibilityAction:ze,children:[L?K(rt,{ref:re,style:R.absoluteFill,width:`100%`,height:y,children:[G(st,{x:`0`,y:`0`,width:`100%`,height:`100%`,fill:I}),G(vk,{mode:oe,strokes:ie,name:He,color:F,fontFamily:z,width:Le,height:y})]}):null,K(rt,{ref:H,width:`100%`,height:y,children:[G(st,{x:`0`,y:`0`,width:`100%`,height:`100%`,fill:P}),G(vk,{mode:oe,strokes:ie,name:He,color:N,fontFamily:z,width:Le,height:y})]}),G(V,{pointerEvents:`none`,style:Ve.baseline})]})}),oe===`type`?G(Fg,{label:B.typedLabel,placeholder:B.typedPlaceholder,value:ce,onChangeText:je,maxLength:b,disabled:E,autoComplete:`name`,textContentType:`name`,autoCapitalize:`words`,autoCorrect:!1,returnKeyType:`done`,testID:O?`${O}-name`:void 0}):null,G($,{variant:`caption`,color:`tertiary`,children:oe===`draw`?B.caption:B.typedCaption}),K(V,{style:Ve.actions,children:[p?G(fg,{label:oe===`draw`?B.typeInstead:B.drawInstead,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Ae,testID:O?`${O}-mode`:void 0}):G(V,{}),oe===`draw`?K(V,{style:Ve.trailing,children:[ie.length>0?K(ae,{children:[G(fg,{label:B.undo,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Ne,testID:O?`${O}-undo`:void 0}),G(fg,{label:B.clear,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Me,testID:O?`${O}-clear`:void 0})]}):null,n?G(fg,{label:B.expand,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Pe,testID:O?`${O}-expand`:void 0}):null]}):null,oe===`type`&&He?G(fg,{label:B.clear,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Me,testID:O?`${O}-clear`:void 0}):null]}),We?G($,{variant:`caption`,color:`secondary`,children:We}):null,n?G(A,{visible:he,animationType:`slide`,presentationStyle:`fullScreen`,onRequestClose:Fe,children:K(bk,{style:Ve.expandedRoot,children:[K(V,{style:Ve.expandedBar,children:[G(fg,{label:B.close,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,onPress:Fe,testID:O?`${O}-close`:void 0}),G(fg,{label:B.done,variant:`solid`,tone:`primary`,size:`md`,style:pk,haptic:T,onPress:Ie,testID:O?`${O}-done`:void 0})]}),he?G(yk,{expandable:!1,defaultMode:`draw`,allowTyped:!1,initialStrokes:_e,onChange:ve,height:Math.max(dk,me-200),inkColor:x,paperColor:S,scriptFontFamily:C,labels:w,haptic:T,testID:O?`${O}-expanded`:void 0}):null]})}):null]})}var bk=N.OS===`android`?dt:V;function xk({ref:e,...t}){return G(yk,{...t,expandable:!0,ref:e})}var Sk=({title:e,content:t,action:n,onAction:r,focusRef:i,actionRef:a,messageStyle:o})=>{let s=Ir(),c=m(()=>Ck(s),[s]);return K(V,{style:c.card,children:[e?G($,{ref:i,variant:`label`,weight:`semibold`,accessibilityRole:`header`,children:e}):null,typeof t==`string`?G($,{ref:e?void 0:i,variant:`bodySmall`,color:`secondary`,style:o,children:t}):t,n?G(V,{style:c.actions,children:G(fg,{ref:a,label:n.label,variant:`ghost`,size:`sm`,accessibilityLabel:n.accessibilityLabel,onPress:r})}):null]})},Ck=e=>R.create({card:{gap:e.space.xs,paddingHorizontal:e.space.md,paddingTop:e.space.md,paddingBottom:e.space.sm,backgroundColor:e.colors.surface,borderRadius:e.radius.md,...ni,...e.shadow.popover},actions:{flexDirection:`row`,justifyContent:`flex-end`,marginTop:e.space.xs}}),wk=(e,t,n)=>Math.max(t,Math.min(e,n)),Tk=(e,t)=>{let n={top:e.y,bottom:t.height-(e.y+e.height),left:e.x,right:t.width-(e.x+e.width)},r=Math.max(n.top,n.bottom,n.left,n.right);return r===n.bottom?`bottom`:r===n.top?`top`:r===n.right?`right`:`left`},Ek=e=>{let{anchor:t,size:n,placement:r,rich:i,viewport:a,maxWidth:o,gap:s,padding:c}=e;if(!t)return{top:c,left:c,placement:`bottom`,arrowOffset:0};let{insets:l}=a,u=n.width||Math.min(o,a.width-2*c),d=n.height||0,f=l.top+c,p=a.height-l.bottom-c-d,m;if(m=i?r===`top`||r===`bottom`?r:`auto`:r===`auto`?Tk(t,a):r,m!==`left`&&m!==`right`){let n=d_(t,{width:u,height:d},a,m,{gap:s,margin:c}),r=t.x+t.width/2;return{top:wk(n.y,f,p),left:n.x,placement:n.placement,arrowOffset:f_(r,n.x,u,e.arrowCornerPadding)}}let h=m===`left`?t.x-u-s:t.x+t.width+s,g=a.width-l.right-c-u,_=wk(h,l.left+c,g),v=wk(t.y+t.height/2-d/2,f,p),y=t.y+t.height/2;return{top:v,left:_,placement:m,arrowOffset:f_(y,v,d,e.arrowCornerPadding)}},Dk=t=>{let{content:n,children:r,variant:i=`plain`,title:a,action:o,placement:s=`auto`,open:l,onOpenChange:d,hideOnContentPress:f=!0,maxWidth:p,showArrow:_=!0,accessibilityLabel:v,style:y,arrowStyle:x,messageStyle:S,labels:C,testID:T}=t;Q(`Tooltip`,`variant`,t.variant,[`plain`,`rich`]),Q(`Tooltip`,`placement`,t.placement,[`top`,`bottom`,`left`,`right`,`auto`]),Q(`Tooltip`,`trigger`,t.trigger,[`longPress`,`press`,`manual`]);let E=i===`rich`,D=t.trigger??(E?`press`:`longPress`),O=Zm(`tooltip`,qm),k=m(()=>({...O,...C}),[O,C]),A=Ir(),j=ti(),M=xt(),[P,F]=tv(),I=m(()=>({...M,top:P.top,bottom:P.bottom}),[M,P]),L=te(),z=m(()=>Ok(A),[A]),ee=A.space.sm,B=A.space.sm,ne=p??(E?280:240),H=D===`press`&&!E,re=(A.settings.components.tooltip?.enableScaleAnimation??!1)&&!j.reduced,U=D===`manual`||typeof l==`boolean`,[W,ie]=g(!1),q=U?!!l:W,[J,Y]=g(null),[X,Z]=g({width:0,height:0}),oe=h(null),se=h(null),ce=h(null),le=h(null),ue=h(null),de=h(!1),fe=h(!1),pe=h(Ht(q||!re?1:.85)).current,me=h(Ht(+!!q)).current,he=h(null),ge=h(!1),[_e,ve]=g(q),ye=c(e=>{U||ie(e),d?.(e)},[U,d]),be=c(()=>{oe.current&&oe.current.measureInWindow((e,t,n,r)=>{Y({x:e,y:t,width:n,height:r})})},[]),xe=c(e=>{be(),ye(!0)},[be,ye]),Se=c(()=>{ye(!1)},[ye]),Ce=h(Se);Ce.current=Se;let we=c(()=>{if(!de.current)return;de.current=!1;let e=ue.current;ue.current=null,e?e():E&&Fv(se.current??oe.current)},[E]);u(()=>{if(q)return fe.current=!0,de.current=!1,m_(()=>Ce.current());fe.current&&(fe.current=!1,de.current=!0)},[q]),u(()=>{q&&ve(!0)},[q]);let Te=c(()=>{ue.current=o?.onPress??null,Se()},[o,Se]),Ee=h({autoHide:H,scaleAnimates:re,presence:j,theme:A,handleHide:Se});Ee.current={autoHide:H,scaleAnimates:re,presence:j,theme:A,handleHide:Se},u(()=>{let{autoHide:e,scaleAnimates:t,presence:n,theme:r,handleHide:i}=Ee.current;if(!ge.current)return ge.current=!0,q&&(be(),e&&(he.current&&clearTimeout(he.current),he.current=setTimeout(()=>{i()},4e3))),()=>{he.current&&=(clearTimeout(he.current),null)};let a;if(q){be();let o=[b.timing(me,{toValue:1,duration:n.duration(`fast`),useNativeDriver:Vt})];t?o.push(b.spring(pe,{toValue:1,damping:r.motion.spring.snappy.damping,stiffness:r.motion.spring.snappy.stiffness,mass:r.motion.spring.snappy.mass,useNativeDriver:Vt})):Ut(pe,1),a=b.parallel(o),a.start(),e&&(he.current&&clearTimeout(he.current),he.current=setTimeout(()=>{i()},4e3))}else{let e=[b.timing(me,{toValue:0,duration:n.reduced?n.duration(`fast`):150,easing:w.bezier(...r.motion.ease.accelerate),useNativeDriver:Vt})];t&&e.push(b.timing(pe,{toValue:.85,duration:150,easing:w.bezier(...r.motion.ease.accelerate),useNativeDriver:Vt})),a=b.parallel(e),a.start(({finished:e})=>{e&&ve(!1)}),he.current&&=(clearTimeout(he.current),null)}return()=>{a?.stop(),he.current&&=(clearTimeout(he.current),null)}},[q,be,me,pe]);let De=e=>{let{width:t,height:n}=e.nativeEvent.layout;t===X.width&&n===X.height||Z({width:t,height:n})},Oe=m(()=>Ek({anchor:J,size:X,placement:s,rich:E,viewport:{width:L.width,height:L.height,insets:I},maxWidth:ne,gap:ee,padding:B,arrowCornerPadding:12}),[J,X,s,E,L.width,L.height,I,ne,ee,B]),ke=J!==null&&X.width>0,Ae=q&&ke;u(()=>{if(!E||!Ae)return;let e=N.OS===`web`?le:ce,t=setTimeout(()=>Fv(e.current),150);return()=>clearTimeout(t)},[E,Ae]),u(()=>{!E&&Ae&&N.OS===`ios`&&typeof n==`string`&&eh(n)},[E,Ae,n]);let je=r.props,Me=m(()=>th(je.ref,se),[je.ref]),Ne={};D!==`longPress`||je.contextMenu?D===`press`&&(Ne.onPress=e=>{je.onPress?.(e),xe(e)}):(Ne.onLongPress=xe,Ne.accessibilityHint=k.longPressHint),E&&(Ne.ref=Me);let Pe=e.cloneElement(r,Ne),Fe=v??(typeof n==`string`?n:k.fallbackName),Ie=m(()=>{if(!_)return null;let e={position:`absolute`,width:0,height:0,backgroundColor:`transparent`,borderStyle:`solid`,borderLeftWidth:4,borderRightWidth:4,borderBottomWidth:6,borderTopWidth:0,borderLeftColor:`transparent`,borderRightColor:`transparent`,borderTopColor:`transparent`,borderBottomColor:E?A.colors.surface:A.colors[`surface-inverse`]};return Oe.placement===`top`?{...e,bottom:-6,left:Oe.arrowOffset-4,transform:[{rotate:`180deg`}]}:Oe.placement===`bottom`?{...e,top:-6,left:Oe.arrowOffset-4}:Oe.placement===`left`?{...e,right:-6,top:Oe.arrowOffset-4,transform:[{rotate:`90deg`}]}:{...e,left:-6,top:Oe.arrowOffset-4,transform:[{rotate:`-90deg`}]}},[_,Oe,A,E]),Le={position:`absolute`,top:Oe.top,left:Oe.left,maxWidth:ne,opacity:q&&!ke?0:me,transform:[{scale:pe}]},Re=Ie?G(V,{style:[Ie,x],pointerEvents:`none`}):null;return K(ae,{children:[G(V,{ref:oe,collapsable:!1,onLayout:be,testID:T,children:Pe}),K(bv,{open:_e,onClose:Se,presentation:`fullScreen`,bare:!0,backdropOpacity:0,backdropPressClose:f,haptic:!1,labels:{close:k.close},onInsetsChange:F,onDismissed:we,testID:T,children:[_e&&E?K(b.View,{onLayout:De,style:[Le,y],children:[G(Sk,{title:a,content:n,action:o,onAction:Te,focusRef:ce,actionRef:le,messageStyle:S}),Re]}):null,_e&&!E?K(b.View,{accessibilityRole:N.OS===`web`?`tooltip`:void 0,accessibilityLiveRegion:`polite`,accessibilityLabel:Fe,onLayout:De,style:[Le,y],children:[G(V,{style:[z.tooltip,{backgroundColor:A.colors[`surface-inverse`],borderRadius:A.radius.md,...ni,paddingHorizontal:A.space.md,paddingVertical:A.space.sm,...A.shadow.popover,shadowColor:A.shadow.popover.shadowColor}],children:typeof n==`string`?G($,{variant:`bodySmall`,color:`inverse`,style:{lineHeight:18,...R.flatten(S)},children:n}):n}),Re]}):null]})]})},Ok=e=>R.create({tooltip:{overflow:`hidden`}}),kk=72,Ak=e=>String(e),jk=e=>String(e).split(`.`)[1]?.length??0,Mk=({draft:e,error:t,disabled:n,width:r,accessibilityLabel:i,styles:a,style:o,testID:s,fieldTestID:l})=>{let u=Ir(),d=fn(u,`sm`),f=xg(u,{disabled:n}),p=h(null),m=c(()=>{n||p.current?.focus()},[n]),g=c(t=>{we(),e.onChangeText(t)},[e.onChangeText]);return G(jg,{testID:l,size:`sm`,focused:e.editing,disabled:n,error:t,filled:!0,width:r,onPress:m,pressFeedback:!1,paddingHorizontal:u.space.sm,gap:u.space.xs,trailing:t?G(_p,{name:`info-circle`,size:d.icon,color:u.colors[`danger-text`]}):void 0,style:o,children:G(ee,{ref:p,style:[a.boxInput,{color:f.color,fontSize:d.text,...f.weightStyle}],value:e.text,onChangeText:g,onFocus:e.onFocus,onBlur:e.onBlur,onSubmitEditing:e.onBlur,editable:!n,keyboardType:`decimal-pad`,returnKeyType:`done`,textAlign:`center`,selectionColor:u.colors.primary,accessibilityLabel:i,accessibilityState:{disabled:n},"aria-disabled":n,testID:s})})};function Nk({ref:e,...t}){let{label:n,unit:r,info:i,required:a=!1,helperText:o,error:s,min:l=0,max:u=100,step:d=1,disabled:f=!1,tone:p=`primary`,size:h,variant:g,haptic:_,showBubble:v=!0,showBounds:y=!0,showInput:b=!1,showStepper:x=!1,leftIcon:S,rightIcon:C,startLabel:w,endLabel:T,formatValue:E=Ak,parseInput:D,animationDuration:O,inputWidth:k=kk,labels:A,accessibilityLabel:j,style:M,labelStyle:N,boundStyle:F,sliderStyle:I,inputStyle:L,testID:R}=t;Q(`SliderField`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`SliderField`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`SliderField`,`variant`,t.variant,[`default`,`inset`,`minimal`,`bar`]);let z=Zm(`sliderField`,zm),ee=m(()=>({...z,...A}),[z,A]),B=Ir(),te=m(()=>Pk(B),[B]),ne=O??B.motion.duration.fast,H=!0===t.range,re=!0===s||Tg(s),U=jk(d),W=c(e=>{if(!0!==t.range){if(Array.isArray(e))throw Error(`SliderField received a range value in single mode.`);t.onChange?.(e)}else{if(!Array.isArray(e))throw Error(`SliderField received a single value in range mode.`);t.onChange?.(e)}},[t.onChange,t.range]),[ie,ae]=Bh({value:t.value,defaultValue:t.defaultValue??(H?[l,u]:l),onChange:W}),[q,J]=Array.isArray(ie)?ie:[ie,u],Y=Rg(Math.min(q,J),l,u),X=Rg(Math.max(q,J),l,u),Z=Wg({value:Y,min:l,max:u,step:d,format:E,parse:D,onChange:e=>ae(H?[Math.min(e,X),X]:e)}),oe=Wg({value:X,min:l,max:u,step:d,format:E,parse:D,onChange:e=>ae([Y,Math.max(e,Y)])}),se=e=>{let t=zg(Y+e*d,l,u,d);t!==Y&&ae(t)},ce={color:f?B.colors[`text-disabled`]:B.colors[`text-muted`],size:fn(B,`md`).icon,disabled:f},le=[te.bubbleText,{color:Lg(B,p)}],ue=e=>G($,{variant:`bodySmall`,style:[te.bound,{color:f?B.colors[`text-disabled`]:B.colors[`text-muted`]},F],children:e}),de={min:l,max:u,step:d,disabled:f,tone:p,size:h,variant:g,haptic:_,showLabel:!!v&&`always`,renderLabel:v?e=>G(Ug,{value:e,format:E,decimals:U,duration:ne,style:le,testID:R&&!H?`${R}-bubble`:void 0}):void 0,accessibilityLabel:j??n,style:I,testID:R?`${R}-slider`:void 0};return K(V,{ref:e,style:[te.container,M],testID:R,children:[n?K(V,{style:te.labelRow,children:[G(Dg,{required:a,style:N,children:n}),r?G($,{variant:`caption`,style:{color:B.colors[`text-subtle`]},children:r}):null,i?G(Dk,{content:i,trigger:`press`,placement:`top`,children:G(P,{accessibilityRole:`button`,accessibilityLabel:Op(ee.about,{label:n}),hitSlop:8,...Zh(8),style:te.infoButton,children:G(_p,{name:`info-circle`,variant:`bold`,size:16,color:B.colors[`text-subtle`]})})}):null]}):null,K(V,{style:[te.row,v?te.rowWithBubble:null],children:[S?G(V,{children:$h(S,ce)}):null,x&&!H?G(mS,{icon:e=>G(_p,{name:`minus`,size:e.size,color:e.color}),onPress:()=>se(-1),accessibilityLabel:ee.decrease,variant:`ghost`,tone:`neutral`,size:`sm`,disabled:f||Y<=l,haptic:_,testID:R?`${R}-minus`:void 0}):null,H&&b?G(Mk,{draft:Z,error:re,disabled:f,width:k,accessibilityLabel:Op(ee.low,{name:n??ee.fallbackName}),styles:te,style:L,testID:R?`${R}-input-low`:void 0,fieldTestID:R?`${R}-field-low`:void 0}):y?ue(w??E(l)):null,G(V,{style:te.sliderWrap,children:G(e_,H?{...de,range:!0,value:[Y,X],onChange:ae}:{...de,value:Y,onChange:ae})}),H&&b?G(Mk,{draft:oe,error:re,disabled:f,width:k,accessibilityLabel:Op(ee.high,{name:n??ee.fallbackName}),styles:te,style:L,testID:R?`${R}-input-high`:void 0,fieldTestID:R?`${R}-field-high`:void 0}):y?ue(T??E(u)):null,x&&!H?G(mS,{icon:e=>G(_p,{name:`add`,size:e.size,color:e.color}),onPress:()=>se(1),accessibilityLabel:ee.increase,variant:`ghost`,tone:`neutral`,size:`sm`,disabled:f||Y>=u,haptic:_,testID:R?`${R}-plus`:void 0}):null,C?G(V,{children:$h(C,ce)}):null,!H&&b?G(Mk,{draft:Z,error:re,disabled:f,width:k,accessibilityLabel:Op(ee.current,{name:n??ee.fallbackName}),styles:te,style:L,testID:R?`${R}-input`:void 0,fieldTestID:R?`${R}-field`:void 0}):null]}),G(Og,{text:re?s:o,error:re})]})}var Pk=e=>R.create({container:{width:`100%`},labelRow:{flexDirection:`row`,alignItems:`center`,gap:e.space.xs},infoButton:{marginLeft:e.space.xxs},row:{flexDirection:`row`,alignItems:`center`,gap:e.space.sm},rowWithBubble:{marginTop:e.space.lg},sliderWrap:{flex:1,paddingHorizontal:e.space.sm},bound:{fontVariant:[`tabular-nums`]},bubbleText:{fontVariant:[`tabular-nums`]},boxInput:{flex:1,padding:e.space.none,margin:e.space.none,includeFontPadding:!1}}),Fk={sm:{height:44,pad:`xxs`},md:{height:56,pad:`xs`},lg:{height:64,pad:`sm`}},Ik=({color:e,size:t})=>G(V,{style:{width:0,height:0,borderTopWidth:.4*t,borderBottomWidth:.4*t,borderLeftWidth:.55*t,borderTopColor:`transparent`,borderBottomColor:`transparent`,borderLeftColor:e,marginLeft:.2*t}});function Lk({ref:t,...n}){let{onConfirm:r,label:i,tone:a=`primary`,size:o=`md`,disabled:s=!1,threshold:l=.9,resetAfter:u=!1,haptic:d,icon:f,labels:p,style:_,trackStyle:v,handleStyle:y,labelStyle:b,testID:x}=n;Q(`SlideToConfirm`,`tone`,n.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`SlideToConfirm`,`size`,n.size,[`sm`,`md`,`lg`]);let S=Zm(`slideToConfirm`,Bm),C=m(()=>({...S,...p}),[S,p]),w=m(()=>[{name:`activate`,label:C.confirmAction},{name:`increment`,label:C.confirmAction}],[C.confirmAction]),T=Ir(),E=Fk[o],D=T.space[E.pad],O=E.height-2*D,k=m(()=>Rk(T,E),[T,E]),A=T.colors[a],[j,M]=g(!1),N=Xe(0),P=Xe(0),F=Xe(0),I=h(null),L=c(()=>{let e=ci(d,`notificationSuccess`);e&&si(e)},[d]),R=c(()=>{M(!1),N.value=et(0,{damping:18,stiffness:160,mass:1})},[N]),z=c(()=>{M(!0),L(),r(),!1!==u&&(I.current&&clearTimeout(I.current),I.current=setTimeout(R,u))},[L,r,u,R]),ee=c(e=>{if(s||j)return;let{actionName:t}=e.nativeEvent;t!==`activate`&&t!==`increment`||z()},[s,j,z]);e.useEffect(()=>()=>{Re(N),I.current&&clearTimeout(I.current)},[N]);let B=c(e=>{P.value=Math.max(0,e.nativeEvent.layout.width-O-2*D)},[P,O,D]),te=m(()=>{let e=l,t={damping:18,stiffness:160,mass:1},n={duration:T.motion.duration.fast,easing:De.out(De.cubic)};return{enabled:!s&&!j,minDistance:0,onActivate:()=>{"worklet";F.value=N.value},onUpdate:e=>{"worklet";N.value=Math.min(Math.max(F.value+e.translationX,0),P.value)},onDeactivate:()=>{"worklet";P.value>0&&N.value>=P.value*e?(N.value=tt(P.value,n),yt(z)):N.value=et(0,t)}}},[s,j,l,N,P,F,z,T.motion.duration.fast]),ne=ht(te),H=Ge(()=>({transform:[{translateX:N.value}]}),[N]),re=Ge(()=>({width:N.value+O+D}),[N,O,D]),U=Ge(()=>{let e=P.value>0?P.value:1;return{opacity:Math.max(0,1-N.value/(.6*e))}},[P,N]);return K(V,{ref:t,style:[k.track,{backgroundColor:T.colors[`bg-subtle`]},v,_],onLayout:B,testID:x,accessibilityRole:`adjustable`,accessibilityLabel:j?C.confirmed:i??C.slide,accessibilityState:{disabled:s},"aria-disabled":s,accessibilityActions:w,onAccessibilityAction:ee,children:[G(Ee.View,{style:[k.fill,{backgroundColor:A,opacity:s?.5:1},re],pointerEvents:`none`}),G(Ee.View,{style:[k.labelWrap,U],pointerEvents:`none`,children:G($,{variant:`body`,style:[k.label,{color:T.colors[`text-muted`]},b],numberOfLines:1,children:j?C.confirmed:i??C.slide})}),G(ut,{gesture:ne,children:G(Ee.View,{style:[k.handle,{width:O,height:O,borderRadius:T.radius.pill,...ni,backgroundColor:T.colors.surface,opacity:s?.5:1,...T.shadow.card},y,H],children:f??G(Ik,{color:A,size:.5*O})})})]})}var Rk=(e,t)=>R.create({track:{height:t.height,borderRadius:e.radius.pill,...ni,justifyContent:`center`,overflow:`hidden`,padding:e.space[t.pad]},fill:{position:`absolute`,left:0,top:0,bottom:0,borderRadius:e.radius.pill,...ni},labelWrap:{position:`absolute`,left:t.height,right:t.height},label:{textAlign:`center`,includeFontPadding:!1},handle:{alignItems:`center`,justifyContent:`center`}}),zk={damping:22,stiffness:260,mass:1},Bk={moveUp:-1,moveDown:1},Vk=e=>{};function Hk(e,t,n){let r=e.slice();if(t<0||t>=r.length)return r;let[i]=r.splice(t,1);return i===void 0||r.splice(n,0,i),r}function Uk(e,t){"worklet";let n=0;for(let r=0;r<t;r++)n+=e[r]??0;return n}function Wk(e,t,n){"worklet";let r=0,i=0;for(let a=0;a<e.length&&i<n;a++)a!==t&&(r+=e[a]??0,i++);return r}function Gk(e,t,n){"worklet";let r=Uk(e,t)+(e[t]??0)/2+n,i=0,a=0;for(let n=0;n<e.length;n++){let o=e[n]??0;n!==t&&a+o/2<r&&i++,a+=o}return i}function Kk(e,t,n){let r=[],i=0;for(let t of e)r.push(i),i+=t;let a=e.map(()=>0),o=Hk(e.map((e,t)=>t),t,n),s=0;for(let t of o)a[t]=s-(r[t]??0),s+=e[t]??0;return a}var qk=e=>R.create({handleRow:{flexDirection:`row`,alignItems:`center`},handle:{paddingHorizontal:e.space.sm,paddingVertical:e.space.md,gap:e.space.xxs},bar:{width:e.space.md,height:e.space.xxs,backgroundColor:e.colors[`text-muted`]},body:{flex:1}});function Jk({rowKey:e,index:t,count:n,shift:r,isActive:i,dragging:a,handle:o,disabled:s,shared:c,callbacks:l,labels:d,children:f}){let p=Ir(),h=m(()=>qk(p),[p]),g=Xe(0);u(()=>{g.value=a&&!i?et(r,zk):r},[a,i,r,g]),u(()=>()=>{Re(g)},[g]);let _=Ge(()=>({transform:[{translateY:i?c.dragY.value:g.value}],zIndex:+!!i}),[i,c,g]),v=m(()=>{let{dragIndex:e,dropTo:n,dragY:r,translation:i,absoluteY:a,scrollY:u,scrollStart:d,hostOffset:f,hostStart:p,hostTarget:m,heights:h}=c,{onLift:g,onDrop:_,onSettled:v}=l;return{enabled:!s,...o?{}:{activateAfterLongPress:350},onActivate:o=>{"worklet";a.value=o.absoluteY,e.value=t,n.value=t,d.value=u.value,p.value=f.value,m.value=f.value,i.value=0,r.value=0,yt(g,t)},onUpdate:n=>{"worklet";e.value===t&&(i.value=n.translationY,a.value=n.absoluteY)},onFinalize:()=>{"worklet";if(e.value!==t)return;let i=n.value,a=h.value;e.value=-1,r.value=Uk(a,t)+r.value-Wk(a,t,i),r.value=et(0,zk,e=>{"worklet";e&&yt(v)}),yt(_,t,i)}}},[s,o,t,l,c]),y=ht(v),b=s?[]:[...t>0?[{name:`moveUp`,label:d.moveUp}]:[],...t<n-1?[{name:`moveDown`,label:d.moveDown}]:[]];return G(Ee.View,{style:_,onLayout:t=>l.onHeight(e,t.nativeEvent.layout.height),accessibilityActions:b,onAccessibilityAction:e=>{if(s)return;let r=t+(Bk[e.nativeEvent.actionName]??0);r!==t&&r>=0&&r<n&&l.onMove(t,r)},testID:`sortable-row-${e}`,children:o?K(V,{style:h.handleRow,children:[G(ut,{gesture:y,children:K(V,{style:h.handle,children:[G(V,{style:h.bar}),G(V,{style:h.bar}),G(V,{style:h.bar})]})}),G(V,{style:h.body,children:f})]}):G(ut,{gesture:y,children:G(V,{children:f})})})}function Yk(e){let{data:t,keyExtractor:n,renderItem:r,onReorder:i,handle:a=!1,disabled:o=!1,accessibilityLabel:s,labels:l,testID:d}=e,f=Zm(`sortableList`,Vm),p=m(()=>({...f,...l}),[f,l]),_=m(()=>t.map((e,t)=>({key:n(e,t),item:e})),[t,n]),v=m(()=>_.map(e=>e.key),[_]),y=Ue(),b=Xe(0),x=Xe(0),S=Xe(0),C=MO(),w=Xe(0),T=C!==null,E=C?.top??w,D=C?.bottom??w,O=C?.offset??w,k=C?.maxOffset??w,A=C?.scrollTo??Vk,j=Xe(0),M=Xe(0),N=Xe(0),P=Xe(0),F=Xe(-1),I=Xe(-1),L=Xe(0),R=Xe([]),z=h(new Map),ee=h(v),[B,V]=g(null),te=c(()=>{R.value=ee.current.map(e=>z.current.get(e)??0)},[R]);u(()=>{ee.current=v,te()},[v,te]),u(()=>()=>{Re(L)},[L]);let ne=c(e=>{V(t=>t?.dragging?{...t,to:e}:t)},[]),H=qe(()=>{"worklet";let e=F.value;if(e<0)return;let t=Be(y);if(t){let e=T?Math.max(t.pageY,E.value):t.pageY,n=T?Math.min(t.pageY+t.height,D.value):t.pageY+t.height,r=Math.max(0,S.value-t.height-1);P.value<e+48?b.value>1?Ve(y,0,Math.max(0,b.value-12),!1):T&&M.value>0&&(M.value=Math.max(0,M.value-12),yt(A,M.value)):P.value>n-48&&(b.value<r?Ve(y,0,Math.min(r,b.value+12),!1):T&&M.value<k.value&&(M.value=Math.min(k.value,M.value+12),yt(A,M.value)))}L.value=N.value+b.value-x.value+O.value-j.value;let n=Gk(R.value,e,L.value);n!==I.value&&(I.value=n,yt(ne,n))},!1),re=c(e=>{si(`longPress`),H.setActive(!0),V({key:v[e]??``,from:e,to:e,dragging:!0})},[H,v]),U=c((e,t)=>{H.setActive(!1),V(e=>e&&{...e,to:t,dragging:!1}),t!==e&&i(Hk(v,e,t))},[H,v,i]),W=c(()=>{V(e=>e&&!e.dragging?null:e)},[]),ie=c((e,t)=>{i(Hk(v,e,t))},[v,i]),ae=c((e,t)=>{z.current.set(e,t),te()},[te]),K=We({onScroll:e=>{"worklet";b.value=e.contentOffset.y}}),q=c((e,t)=>{S.value=t},[S]),J=m(()=>({scrollRef:y,scrollY:b,scrollStart:x,hostOffset:O,hostStart:j,hostTarget:M,translation:N,absoluteY:P,dragIndex:F,dropTo:I,dragY:L,heights:R}),[y,b,x,O,j,M,N,P,F,I,L,R]),Y=m(()=>({onLift:re,onDrop:U,onSettled:W,onMove:ie,onHeight:ae}),[re,U,W,ie,ae]),X=!0===B?.dragging,Z=X&&B?Kk(v.map(e=>z.current.get(e)??0),B.from,B.to):null;return G(Ee.ScrollView,{ref:y,onScroll:K,onContentSizeChange:q,scrollEventThrottle:16,scrollEnabled:!X,accessibilityLabel:s,testID:d,children:_.map((e,t)=>{let n=B?.key===e.key;return G(Jk,{rowKey:e.key,index:t,count:_.length,shift:Z?.[t]??0,isActive:n,dragging:X,handle:a,disabled:o,shared:J,callbacks:Y,labels:p,children:r({item:e.item,index:t,isActive:n})},e.key)})})}Yk.displayName=`SortableList`;var Xk=e=>e.filter(e=>Number.isFinite(e)),Zk=e=>(Math.round(100*e)/100).toString(),Qk=(e,t,n,r)=>{let i=Xk(e);if(i.length===0||t<=0||n<=0)return{line:``,area:``,last:null};let a=Math.min(...i),o=Math.max(...i),s=Math.max(0,t-2*r),c=Math.max(0,n-2*r),l=o-a,u=i.map((e,a)=>({x:i.length===1?t/2:r+a*s/(i.length-1),y:l===0?n/2:r+(o-e)/l*c})),d=u.map((e,t)=>`${t===0?`M`:`L`}${Zk(e.x)} ${Zk(e.y)}`).join(` `),f=u[0],p=u[u.length-1];if(f===void 0||p===void 0)throw Error(`A sparkline with values has points to draw.`);return{line:d,area:`${d} L${Zk(p.x)} ${Zk(n)} L${Zk(f.x)} ${Zk(n)} Z`,last:p}},$k=Xk,eA=(e,t)=>{if(t===`neutral`)return e.colors[`text-muted`];let n=`${t}-text`;return e.colors[n]},tA=e=>de(e);function nA(e){let{ref:t,data:n,tone:r=`primary`,color:i,fill:a=!1,highlightLast:o=!0,height:s=32,width:l,strokeWidth:u=2,label:d,formatLabel:f=tA,accessibilityLabel:p,labels:h,style:_,testID:v}=e;Q(`Sparkline`,`tone`,e.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]);let y=Zm(`sparkline`,Hm),b=m(()=>({...y,...h}),[y,h]),x=Ir(),[S,C]=g(0),w=l??S,T=c(e=>{if(l===void 0){let t=Math.round(e.nativeEvent.layout.width);C(e=>e===t?e:t)}},[l]),E=Math.max(3,u/2)+1,D=m(()=>Qk(n,w,s,E),[n,w,s,E]),O=i??eA(x,r),k=m(()=>{if(p!==void 0)return p;let e=$k(n),t=d?`${d}, `:``,[r]=e;if(r===void 0)return`${t}${b.noData}`;if(e.length===1)return`${t}${f(r)}`;let i=e[e.length-1];if(i===void 0)throw Error(`A sparkline with two or more finite values has a last value.`);let a=f(r),o=f(i),s=f(Math.min(...e)),c=f(Math.max(...e));return`${t}${Op(b.range,{first:a,end:o,low:s,high:c})}`},[p,n,f,d,b]);return G(V,{ref:t,accessible:!0,accessibilityRole:`image`,accessibilityLabel:k,testID:v,onLayout:T,style:[rA.root,l===void 0?rA.stretch:{width:l},{height:s},_],children:D.line===``?null:K(rt,{width:w,height:s,viewBox:`0 0 ${w} ${s}`,children:[a?G(at,{d:D.area,fill:O,fillOpacity:.14,stroke:`none`}):null,G(at,{d:D.line,fill:`none`,stroke:O,strokeWidth:u,strokeLinecap:`round`,strokeLinejoin:`round`,...v?{testID:`${v}-line`}:{}}),o&&D.last?G(it,{cx:D.last.x,cy:D.last.y,r:3,fill:O,...v?{testID:`${v}-dot`}:{}}):null]})})}var rA=R.create({root:{overflow:`hidden`},stretch:{alignSelf:`stretch`}}),iA=({width:e,height:t,radius:n,color:r,smoothing:i})=>{let a=`M 0 0 H ${e} V ${t} H 0 Z ${Dr({width:e,height:t,radius:n,smoothing:i})}`;return G(V,{pointerEvents:`none`,style:R.absoluteFill,children:G(rt,{width:e,height:t,viewBox:`0 0 ${e} ${t}`,children:G(at,{d:a,fill:r,fillRule:`evenodd`})})})},aA=({radius:e,cornerColor:t,style:n,onLayout:r,...i})=>{let a=Ir(),o=Xt(a,e),s=ag(o>0,o,r),c={borderRadius:o,overflow:`hidden`};if(N.OS===`ios`){let e={...c,...ni};return G(St,{...i,onLayout:s.onLayout,style:[n,e]})}let l=s.active?s.size:null;return K(V,{style:[n,c],onLayout:s.onLayout,children:[G(St,{...i,style:R.absoluteFill}),l?G(iA,{width:l.width,height:l.height,radius:o,color:t??a.colors.bg,smoothing:a.cornerSmoothing}):null]})};aA.displayName=`SquircleImage`;var oA=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopStartRadius`,`borderTopEndRadius`,`borderBottomStartRadius`,`borderBottomEndRadius`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderStartWidth`,`borderEndWidth`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`,`borderStartColor`,`borderEndColor`],sA=e=>{let{borderRadius:t,backgroundColor:n,borderColor:r,borderWidth:i=0,borderStyle:a}=e;if(typeof t!=`number`||t<=0||e.overflow===`hidden`||(e.elevation??0)>0||a!==void 0&&a!==`solid`||oA.some(t=>e[t]!==void 0))return null;let o=typeof n==`string`&&n!==`transparent`,s=i>0&&typeof r==`string`&&r!==`transparent`;return n!==void 0&&typeof n!=`string`||i>0&&r!==void 0&&typeof r!=`string`||!o&&!s?null:{radius:t,fill:o?n:`transparent`,stroke:s?r:void 0,strokeWidth:s?i:0}};function cA({style:e,children:t,onLayout:n,ref:r,...i}){let a=R.flatten(e)??{},o=sA(a),s=typeof a.borderRadius==`number`?a.borderRadius:0,c=ag(s>0,s,n),l=c.active?c.size:null,u=o!==null&&l!==null;return K(V,{ref:r,...i,onLayout:c.onLayout,style:[s>0?ni:null,e,u?lA.hostTransparent:null],children:[o&&l?G(ig,{width:l.width,height:l.height,radius:o.radius,fill:o.fill,stroke:o.stroke,strokeWidth:o.strokeWidth}):null,t]})}cA.displayName=`SquircleView`;var lA=R.create({hostTransparent:{backgroundColor:`transparent`,borderColor:`transparent`}}),uA=Object.freeze({trendUp:`up`,trendDown:`down`,trendFlat:`no change`}),dA=e=>typeof e==`string`||typeof e==`number`,fA={up:`arrow-up`,down:`arrow-down`,flat:`minus`},pA={up:`+`,down:`-`,flat:``},mA=e=>`${e}-text`,hA=e=>fe(Math.abs(e),{scale:`percent`,maximumFractionDigits:1}),gA=e=>typeof e.value==`number`?`${pA[e.direction]}${hA(e.value)}`:e.value,_A=(e,t)=>{let n=[{up:t.trendUp,down:t.trendDown,flat:t.trendFlat}[e.direction]];return e.direction!==`flat`&&n.push(typeof e.value==`number`?hA(e.value):e.value),e.period&&n.push(e.period),n.join(` `)};function vA(e){let{ref:t,label:n,value:r,icon:i,iconVariant:a,tone:o=`primary`,caption:s,trend:c,sparkline:l,onPress:u,loading:d=!1,accessibilityLabel:f,labels:p,flex:h,style:g,testID:_}=e,v=Ir();Q(`StatTile`,`tone`,e.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`StatTile`,`trend.direction`,c?.direction,[`up`,`down`,`flat`]),Q(`StatTile`,`trend.goodWhen`,c?.goodWhen,[`up`,`down`]);let y=m(()=>({...uA,...p}),[p]),b=c?`, ${_A(c,y)}`:``,x=dA(n)?`${n}, `:``,S=f??(dA(r)?`${x}${r}${b}`:void 0),C=!!c&&c.direction===(c.goodWhen??`up`),w=c&&c.direction!==`flat`?C?`success`:`danger`:`secondary`,T=w===`secondary`?v.colors[`text-muted`]:v.colors[mA(w)];return G(wx,d?{ref:t,variant:`outline`,flex:h,style:g,testID:_,children:K(V,{style:[yA.row,{columnGap:v.space.md}],children:[i===void 0?null:G(vh,{shape:`circle`,width:40,height:40}),K(V,{style:yA.text,children:[G(vh,{shape:`text`,width:`50%`,height:12}),G(vh,{shape:`text`,width:`35%`,height:24,style:{marginTop:v.space.xs}})]})]})}:{ref:t,variant:`outline`,flex:h,onPress:u,accessibilityLabel:S,style:g,testID:_,children:K(V,{style:[yA.row,{columnGap:v.space.md}],children:[i===void 0?null:G(D_,{icon:i,iconVariant:a,tone:o}),K(V,{style:yA.text,children:[G($,{variant:`caption`,color:`secondary`,numberOfLines:1,children:n}),dA(r)?G($,{variant:`h3`,numberOfLines:1,children:r}):r,c?K(V,{style:[yA.trend,{columnGap:v.space.xxs}],testID:_?`${_}-trend`:void 0,children:[G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:G(_p,{name:fA[c.direction],size:`xs`,color:T})}),K($,{variant:`caption`,color:w,numberOfLines:2,style:yA.text,children:[gA(c),c.period?G($,{variant:`caption`,color:`tertiary`,children:` ${c.period}`}):null]})]}):null,s==null||s===``?null:dA(s)?G($,{variant:`caption`,color:`tertiary`,numberOfLines:1,children:s}):s,l==null?null:G(V,{style:{marginTop:v.space.sm},children:l})]})]})})}var yA=R.create({row:{flexDirection:`row`,alignItems:`center`},text:{flex:1,minWidth:0},trend:{flexDirection:`row`,alignItems:`center`}}),bA={sm:{height:22,paddingX:`sm`,dot:5,gap:`xs`},md:{height:24,paddingX:`md`,dot:6,gap:`xs`}},xA=(e,t)=>{let n=bA[t];return{height:n.height,paddingH:e.space[n.paddingX],dot:n.dot,gap:e.space[n.gap]}},SA=(e,t)=>{let{colors:n}=e;switch(t){case`success`:return{base:n.success,on:n[`on-success`],ink:n[`success-text`],soft:n[`success-soft`]};case`warning`:return{base:n.warning,on:n[`on-warning`],ink:n[`warning-text`],soft:n[`warning-soft`]};case`danger`:return{base:n.danger,on:n[`on-danger`],ink:n[`danger-text`],soft:n[`danger-soft`]};case`info`:return{base:n.info,on:n[`on-info`],ink:n[`info-text`],soft:n[`info-soft`]};case`primary`:return{base:n.primary,on:n[`on-primary`],ink:n[`primary-text`],soft:n[`primary-soft`]};default:return{base:n[`text-muted`],on:n[`on-neutral-strong`],ink:n[`text-muted`],soft:n.border}}},CA=e=>typeof e==`string`&&/^#[0-9a-f]{6}$/i.test(e),wA=(e,t,n,r)=>{let i=CA(r),{base:a,on:o,ink:s,soft:c}=i?{base:r,on:e.colors[`text-inverse`],ink:tr(r,[e.colors.bg,e.colors[`bg-subtle`],e.colors[`bg-muted`]],e.mode),soft:Bn(r,.14,e.colors[`bg-subtle`])}:SA(e,t),l=!i&&t===`neutral`,u=l?e.colors[`bg-muted`]:Bn(a,.14,e.colors[`bg-subtle`]),d=l?e.colors.border:Bn(a,.4,a);switch(n){case`solid`:return{fill:a,border:a,text:o,dot:o};case`outline`:return{fill:`transparent`,border:l?d:a,text:s,dot:a};case`flat`:return{fill:u,border:`transparent`,text:s,dot:a};case`ghost`:return{fill:`transparent`,border:`transparent`,text:s,dot:a};case`filled`:return{fill:c,border:`transparent`,text:s,dot:a};default:return{fill:u,border:d,text:s,dot:a}}},TA=({ref:e,...t})=>{let{label:n,tone:r=`neutral`,variant:i=`soft`,size:a=`md`,ink:o=`tone`,weight:s=`semibold`,padding:c=`default`,dot:l=!1,color:u,loading:d=!1,accessibilityLabel:f,style:p,textStyle:h,testID:g}=t;Q(`StatusBadge`,`tone`,t.tone,[`success`,`warning`,`danger`,`info`,`primary`,`neutral`]),Q(`StatusBadge`,`variant`,t.variant,[`solid`,`soft`,`outline`,`ghost`,`flat`,`filled`]),Q(`StatusBadge`,`size`,t.size,[`sm`,`md`]),Q(`StatusBadge`,`ink`,t.ink,[`tone`,`primary`]),Q(`StatusBadge`,`weight`,t.weight,[`semibold`,`bold`]),Q(`StatusBadge`,`padding`,t.padding,[`default`,`sm`,`md`]);let _=Ir(),v=xA(_,a),y=m(()=>wA(_,r,i,u),[_,r,i,u]),b=o===`primary`&&i!==`solid`?_.colors[`text-body`]:y.text,x=c==="default"?{minHeight:v.height,paddingHorizontal:v.paddingH}:{paddingHorizontal:_.space[c],paddingVertical:_.space.xs},S=i===`filled`?0:1;return d?G(EA,{...t}):K(V,{ref:e,accessible:!0,accessibilityRole:`text`,accessibilityLabel:f??n,testID:g,style:[OA.base,{...x,borderRadius:_.radius.pill,...ni,backgroundColor:y.fill,borderColor:y.border,borderWidth:S},p],children:[l?G(V,{testID:`status-badge-dot`,style:{width:v.dot,height:v.dot,borderRadius:v.dot/2,marginRight:v.gap,backgroundColor:y.dot}}):null,G($,{variant:a===`sm`?`caption`:`bodySmall`,weight:s,style:[OA.label,{color:b},h],numberOfLines:1,children:n})]})};TA.displayName=`StatusBadge`;var EA=({label:e,size:t=`md`,variant:n=`soft`,padding:r=`default`,dot:i,style:a})=>{let o=Ir(),s=xA(o,t),c=Math.max(32,Math.min(120,6.5*(e??``).length))+2*(r==="default"?s.paddingH:o.space[r])+(i?s.dot+s.gap:0),l=r==="default"?s.height:Math.round(o.text[t===`sm`?`xs`:`sm`].size*o.leading.body)+2*o.space.xs+2*(n===`filled`?0:1);return G(vh,{width:c,height:l,radius:l/2,style:[OA.skeleton,a]})};EA.displayName=`StatusBadgeSkeleton`;var DA=Object.assign(TA,{Skeleton:EA}),OA=R.create({base:{alignSelf:`flex-start`,flexDirection:`row`,alignItems:`center`,justifyContent:`center`},label:{textAlign:`center`,includeFontPadding:!1,textAlignVertical:`center`},skeleton:{alignSelf:`flex-start`}}),kA=(e,t)=>{switch(t){case`success`:return e.colors.success;case`warning`:return e.colors.warning;case`danger`:return e.colors.danger;case`info`:return e.colors.info;case`neutral`:return e.colors.neutral;case`primary`:return e.colors.primary}},AA=(e,t)=>{switch(t){case`success`:return e.colors[`on-success`];case`warning`:return e.colors[`on-warning`];case`danger`:return e.colors[`on-danger`];case`info`:return e.colors[`on-info`];case`neutral`:return e.colors[`on-neutral`];case`primary`:return e.colors[`on-primary`]}},jA=(e,t)=>{switch(t){case`complete`:return e.statusComplete;case`active`:return e.statusActive;case`upcoming`:return e.statusUpcoming}},MA=({index:e,step:t,status:n,toneColor:r,upcomingColor:i,upcomingFillColor:a,textOnColor:o,upcomingTextColor:s,interactive:c,canPress:l,totalSteps:d,onPress:f,pulseEnabled:p,labels:m,circleStyles:g,circleSlotStyle:_})=>{let v=n===`active`,y=Ir(),x=h(Ht(1)).current,S=h(Ht(.5)).current;u(()=>{if(!v||!p)return x.setValue(1),void S.setValue(0);let e=b.loop(b.parallel([b.sequence([b.timing(x,{toValue:1.4,duration:1100,easing:w.out(w.ease),useNativeDriver:Vt}),b.timing(x,{toValue:1,duration:0,useNativeDriver:Vt})]),b.sequence([b.timing(S,{toValue:0,duration:1100,easing:w.out(w.ease),useNativeDriver:Vt}),b.timing(S,{toValue:.5,duration:0,useNativeDriver:Vt})])]));return e.start(),()=>e.stop()},[v,x,S,p]);let C=n===`upcoming`?a:r,T=n===`upcoming`?i:r,E=n===`upcoming`?s:o,D=n===`complete`,O=Op(m.step,{index:e+1,total:d,label:t.label,status:jA(m,n)}),k=K(V,{style:g.relative,children:[v&&p?G(b.View,{pointerEvents:`none`,style:[g.pulse,{width:32,height:32,borderRadius:y.radius.pill,...ni,backgroundColor:r,opacity:S,transform:[{scale:x}]}]}):null,G(V,{style:[g.circle,{width:24,height:24,borderRadius:y.radius.pill,...ni,backgroundColor:C,borderColor:T},_],children:t.icon?t.icon:G($,D?{variant:`bodySmall`,weight:`semibold`,style:[g.glyph,{color:E}],children:`✓`}:{variant:`bodySmall`,weight:`semibold`,style:[g.glyph,{color:E}],children:e+1})})]});return c?G(P,{onPress:()=>f(e),disabled:!l,accessibilityRole:`button`,accessibilityLabel:O,accessibilityState:{selected:v,disabled:!l},"aria-selected":v,"aria-disabled":!l,hitSlop:8,...Zh(8),children:k}):G(V,{accessibilityRole:`text`,accessibilityLabel:O,accessibilityState:{selected:v},"aria-selected":v,children:k})},NA=()=>R.create({relative:{alignItems:`center`,justifyContent:`center`},pulse:{position:`absolute`},circle:{borderWidth:2,alignItems:`center`,justifyContent:`center`},glyph:{includeFontPadding:!1}});function PA({ref:e,...t}){let{steps:n,activeStep:r,defaultActiveStep:i=0,pressMode:a=`none`,onStepPress:o,onActiveStepChange:s,variant:c=`horizontal`,tone:l=`primary`,formatCaption:d,showCaption:f=!0,loading:p=!1,labels:_,accessibilityLabel:v,style:y,circleStyle:x,labelStyle:S,connectorStyle:C,haptic:T,testID:E}=t;Q(`Stepper`,`variant`,t.variant,[`horizontal`,`vertical`,`segmented`]),Q(`Stepper`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`Stepper`,`pressMode`,t.pressMode,[`none`,`back`,`select`]);let D=Zm(`stepper`,Wm),O=m(()=>({...D,..._}),[D,_]),k=Ir(),A=k.settings.components.stepper?.pulseAnimation??!1,j=ci(T,`selection`),M=m(()=>RA(k),[k]),N=m(()=>NA(),[]),F=kA(k,l),I=k.colors.border,L=k.colors.bg,R=k.colors[`text-muted`],z=AA(k,l),ee=n.length,B=a!==`none`,te=r!==void 0,[ne,H]=g(i),re=te?r:ne,U=re==null||re<0?null:re,W=e=>U===null?`upcoming`:e<U?`complete`:e===U?`active`:`upcoming`,ie=n.map((e,t)=>W(t)),ae=ie.filter(e=>e!==`upcoming`).length,q=ie.filter(e=>e===`complete`).length,J=e=>a===`back`?e===`complete`:B,Y=e=>{if(!J(W(e)))return;j&&si(j),o?.(e);let t=a===`select`&&e===U?null:e;te||H(t),s?.(t)},X=h(Ht(ae)).current,Z=h(ae);u(()=>{let e=Z.current;if(e===ae)return;Z.current=ae;let t=b.timing(X,{toValue:ae,duration:k.motion.duration.default*Math.abs(ae-e),easing:w.linear,useNativeDriver:!1});return t.start(),()=>t.stop()},[ae,X,k.motion]);let oe=e=>X.interpolate({inputRange:[e,e+1],outputRange:[`0%`,`100%`],extrapolate:`clamp`}),se=ee<=1?`0%`:X.interpolate({inputRange:[1,ee],outputRange:[`0%`,`100%`],extrapolate:`clamp`}),ce=U!==null&&U<ee?U:null,le=v??(ce===null?Op(O.progressDone,{done:q,total:ee}):Op(O.progressStep,{step:ce+1,total:ee})),[ue,de]=g(0),fe=ee>0&&ue>0?ue/(2*ee):0,pe=G(V,{ref:e,style:[M.container,y],testID:E,accessibilityRole:`progressbar`,accessibilityLabel:le,accessibilityValue:{min:0,max:ee,now:ae},children:c===`segmented`?(()=>{let e=ce===null?void 0:n[ce],t=f?d?d(ce,ee,e):ce===null?Op(O.captionDone,{done:q,total:ee}):e?.label?Op(O.captionStepLabelled,{step:ce+1,total:ee,label:e.label}):Op(O.captionStep,{step:ce+1,total:ee}):``;return K(V,{children:[f?G($,{variant:`bodySmall`,style:[M.sCaption,{marginBottom:k.space.sm},S],numberOfLines:1,children:t}):null,G(V,{style:M.sRow,children:n.map((e,t)=>{let n=W(t),r=Op(O.step,{index:t+1,total:ee,label:e.label,status:jA(O,n)}),i=G(V,{testID:E?`${E}-segment-${t}`:void 0,style:[M.sTrack,{backgroundColor:I},C],children:G(b.View,{style:[M.sFill,{backgroundColor:F,width:oe(t)}]})});if(B){let a=J(n);return G(P,{style:M.sItem,onPress:()=>Y(t),disabled:!a,accessibilityRole:`button`,accessibilityLabel:r,accessibilityState:{selected:n===`active`,disabled:!a},"aria-selected":n===`active`,"aria-disabled":!a,hitSlop:{top:12,bottom:12},...Zh({top:12,bottom:12}),children:i},e.key)}return G(V,{style:M.sItem,accessibilityRole:`text`,accessibilityLabel:r,accessibilityState:{selected:n===`active`},"aria-selected":n===`active`,children:i},e.key)})})]})})():c===`vertical`?G(V,{style:M.vCol,children:n.map((e,t)=>{let n=W(t),r=t===ee-1;return K(V,{style:M.vRow,children:[K(V,{style:M.vLeft,children:[G(MA,{index:t,step:e,status:n,toneColor:F,upcomingColor:I,upcomingFillColor:L,onPressColor:F,textOnColor:z,upcomingTextColor:R,interactive:B,canPress:J(n),totalSteps:ee,onPress:Y,pulseEnabled:A,labels:O,circleStyles:N,circleSlotStyle:x}),r?null:K(V,{style:[M.vConnectorContainer,C],children:[G(V,{style:[M.vConnectorTrack,{backgroundColor:I}]}),G(b.View,{style:[M.vConnectorFill,{backgroundColor:F,height:oe(t+1)}]})]})]}),K(V,{style:M.vBody,children:[G($,{variant:`body`,weight:`semibold`,style:[M.vLabel,{color:n===`upcoming`?k.colors[`text-subtle`]:k.colors[`text-body`]},S],numberOfLines:1,children:e?.label??` `}),e.description?G($,{variant:`bodySmall`,style:M.vDescription,numberOfLines:3,children:e.description}):null]})]},e.key)})}):K(V,{style:M.hRow,onLayout:e=>de(e.nativeEvent.layout.width),children:[K(V,{pointerEvents:`none`,style:[M.hConnectorContainer,{left:fe,right:fe},C],children:[G(V,{style:[M.hConnectorTrack,{backgroundColor:I}]}),G(b.View,{style:[M.hConnectorFill,{backgroundColor:F,width:se}]})]}),n.map((e,t)=>{let n=W(t);return K(V,{style:M.hStepItem,children:[G(MA,{index:t,step:e,status:n,toneColor:F,upcomingColor:I,upcomingFillColor:L,onPressColor:F,textOnColor:z,upcomingTextColor:R,interactive:B,canPress:J(n),totalSteps:ee,onPress:Y,pulseEnabled:A,labels:O,circleStyles:N,circleSlotStyle:x}),G($,{variant:`caption`,style:[M.hLabel,{color:n===`upcoming`?k.colors[`text-subtle`]:k.colors[`text-body`]},S],numberOfLines:1,children:e?.label??` `})]},e.key)})]})});return p?G(FA,{...t}):pe}PA.displayName=`Stepper`;var FA=({steps:e,variant:t=`horizontal`,showCaption:n=!0,style:r,testID:i})=>{let a=Ir(),o=m(()=>RA(a),[a]),s=m(()=>LA(a),[a]),c=e.length||3,l=m(()=>Array.from({length:c},(e,t)=>({key:`sk-step-${t}`,index:t})),[c]);return t===`segmented`?K(V,{style:[o.container,r],testID:i,accessibilityRole:`progressbar`,accessibilityState:{busy:!0},"aria-busy":!0,children:[n?G(vh,{shape:`text`,width:`45%`,height:14,style:{marginBottom:a.space.sm}}):null,G(V,{style:o.sRow,children:l.map(e=>G(V,{style:o.sItem,children:G(vh,{width:`100%`,height:4,radius:`pill`})},e.key))})]}):G(V,t===`vertical`?{style:[o.container,r],testID:i,accessibilityRole:`progressbar`,accessibilityState:{busy:!0},"aria-busy":!0,children:G(V,{style:s.vCol,children:l.map(e=>{let t=e.index===c-1;return K(V,{style:s.vRow,children:[K(V,{style:[s.vLeft,{width:32}],children:[G(vh,{shape:`circle`,width:24,height:24}),t?null:G(vh,{width:2,height:36})]}),K(V,{style:s.vBody,children:[G(vh,{shape:`text`,width:`55%`,height:16,style:{marginBottom:a.space.xs}}),G(vh,{shape:`text`,width:`80%`,height:12})]})]},e.key)})})}:{style:[o.container,r],testID:i,accessibilityRole:`progressbar`,accessibilityState:{busy:!0},"aria-busy":!0,children:K(V,{style:o.hRow,children:[G(V,{pointerEvents:`none`,style:[o.hConnectorContainer,{left:50/c+`%`,right:50/c+`%`}],children:G(vh,{width:`100%`,height:2,radius:`pill`})}),l.map(e=>K(V,{style:o.hStepItem,children:[G(vh,{shape:`circle`,width:24,height:24}),G(vh,{shape:`text`,width:`80%`,height:12,style:{marginTop:a.space.xs}})]},e.key))]})})};FA.displayName=`StepperSkeleton`;var IA=Object.assign(PA,{Skeleton:FA}),LA=e=>R.create({vCol:{flexDirection:`column`},vRow:{flexDirection:`row`,alignItems:`flex-start`},vLeft:{alignItems:`center`},vBody:{flex:1,paddingLeft:e.space.md,paddingBottom:e.space.lg}}),RA=e=>R.create({container:{width:`100%`},hRow:{flexDirection:`row`,alignItems:`flex-start`,justifyContent:`space-between`,position:`relative`},hConnectorContainer:{position:`absolute`,top:11,height:2,flexDirection:`row`,alignItems:`center`},hConnectorTrack:{position:`absolute`,left:0,right:0,height:2,borderRadius:e.radius.pill,...ni},hConnectorFill:{position:`absolute`,left:0,height:2,borderRadius:e.radius.pill,...ni},hStepItem:{alignItems:`center`,flex:1},hLabel:{marginTop:e.space.xs,textAlign:`center`},vCol:{flexDirection:`column`},vRow:{flexDirection:`row`,alignItems:`flex-start`},vLeft:{alignItems:`center`,alignSelf:`stretch`,width:32},vConnectorContainer:{flex:1,width:2,minHeight:32,position:`relative`,alignSelf:`center`},vConnectorTrack:{position:`absolute`,top:0,bottom:0,width:2,borderRadius:e.radius.pill,...ni},vConnectorFill:{position:`absolute`,top:0,width:2,borderRadius:e.radius.pill,...ni},vBody:{flex:1,paddingLeft:e.space.sm,paddingBottom:e.space.md},vLabel:{marginBottom:e.space.xxs},vDescription:{},sCaption:{includeFontPadding:!1},sRow:{flexDirection:`row`,columnGap:e.space.xs},sItem:{flex:1},sTrack:{height:4,borderRadius:e.radius.pill,overflow:`hidden`},sFill:{height:4,borderRadius:e.radius.pill}}),zA=(e,t)=>{switch(t){case`success`:return e.colors.success;case`warning`:return e.colors.warning;case`danger`:return e.colors.danger;case`info`:return e.colors.info;case`neutral`:return e.colors.neutral;default:return e.colors.primary}};function BA({ref:e,...t}){let{value:n,defaultValue:r,onChange:i,disabled:a=!1,size:o=`md`,tone:s=`primary`,label:c,description:l,helperText:d,error:f,layout:p=`inline`,accessibilityLabel:g,haptic:_=`selection`,bounce:v=!1,style:y,trackStyle:x,thumbStyle:S,testID:C,hitSlop:T,...E}=t,D=Ir(),O=Object.keys(D.components.switch);Q(`Switch`,`size`,t.size,O),Q(`Switch`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`Switch`,`layout`,t.layout,[`inline`,`row`]);let[k,A]=Bh({value:n,defaultValue:r??!1,onChange:i}),j=O.includes(o)?o:`md`,M=m(()=>yn(D,j),[D,j]),N=D.colors[`switch-thumb`],F=m(()=>VA(D),[D]),I=D.mode===`dark`?D.colors.neutral:D.colors[`surface-disabled`],L=zA(D,s),R=T??8,z=h(Ht(+!!k)).current;u(()=>{let e=b.spring(z,{toValue:+!!k,damping:D.motion.spring.snappy.damping,stiffness:D.motion.spring.snappy.stiffness,mass:D.motion.spring.snappy.mass,useNativeDriver:Vt});return e.start(),()=>e.stop()},[k,z,D.motion.spring.snappy]);let ee=h(Ht(+!!k)).current;u(()=>{let e=b.timing(ee,{toValue:+!!k,duration:D.motion.duration.fast,easing:w.out(w.ease),useNativeDriver:!1});return e.start(),()=>e.stop()},[k,ee,D.motion.duration.fast]);let B=M.padding,te=M[`track-width`]-M[`thumb-size`]-M.padding,ne=z.interpolate({inputRange:[0,1],outputRange:[B,te]}),H=ee.interpolate({inputRange:[0,1],outputRange:[I,L]}),re=h(Ht(1)).current,U=h(!0);u(()=>{if(!v)return;if(U.current)return void(U.current=!1);let e=b.sequence([b.spring(re,{toValue:1.15,damping:10,stiffness:220,mass:1,useNativeDriver:Vt}),b.spring(re,{toValue:1,damping:14,stiffness:240,mass:1,useNativeDriver:Vt})]);return e.start(),()=>e.stop()},[k,v,re]);let W=e=>{a||(!1!==_&&si(_),A(!k),E.onPressOut?.(e))},ie=g??Eg(c),ae=typeof f==`string`?f:void 0,q=Kx({description:l,error:ae,helperText:d}),J=Tg(c)||q,Y=(!0===f||Tg(f))&&!k&&!a,X=p===`row`&&J,Z=K(b.View,{style:[F.track,{width:M[`track-width`],height:M[`track-height`],borderRadius:D.radius.pill,...ni,backgroundColor:H},x],children:[Y?G(V,{pointerEvents:`none`,style:[F.errorRing,{borderRadius:D.radius.pill,...ni,borderWidth:D.size.border,borderColor:D.colors[`field-border-error`]}]}):null,G(b.View,{style:[F.thumb,D.shadow.card,{backgroundColor:N,width:M[`thumb-size`],height:M[`thumb-size`],borderRadius:D.radius.pill,...ni,transform:[{translateX:ne},{scale:re}]},S]})]});if(X)return K(P,{ref:e,onPress:W,disabled:a,accessibilityRole:`switch`,accessibilityLabel:ie,accessibilityHint:E.accessibilityHint??Eg(l),accessibilityState:{checked:k,disabled:a},"aria-checked":k,"aria-disabled":a,testID:C,hitSlop:T,...T==null?{}:Zh(T),...E,style:({pressed:e})=>[F.row,F.spreadRow,q?F.rowTop:null,{opacity:a?.55:e?.9:1},y],children:[G(qx,{label:c,description:l,helperText:d,error:ae,disabled:a,style:F.spreadText}),Z]});let oe=G(P,{ref:e,onPress:W,disabled:a,accessibilityRole:`switch`,accessibilityLabel:ie,accessibilityHint:E.accessibilityHint??Eg(l),accessibilityState:{checked:k,disabled:a},"aria-checked":k,"aria-disabled":a,testID:C,hitSlop:R,...Zh(R),...E,style:({pressed:e})=>[{opacity:a?.55:e?.9:1},J?null:y],children:Z});return J?K(V,{style:[F.row,q?F.rowTop:null,y],children:[oe,G(qx,{label:c,description:l,helperText:d,error:ae,disabled:a,style:F.text})]}):oe}var VA=e=>R.create({row:{flexDirection:`row`,alignItems:`center`},track:{justifyContent:`center`},thumb:{position:`absolute`,top:2},errorRing:{...R.absoluteFill},rowTop:{alignItems:`flex-start`},text:{marginLeft:e.space.sm},spreadRow:{minHeight:44,justifyContent:`space-between`},spreadText:{flex:1,marginRight:e.space.md}}),HA=(e,t)=>{let n=e[t];if(n===void 0)throw Error(`Tabs: tab "${t}" has no measured layout while its progress signal drives the indicator`);return n};function UA({ref:e,...t}){let{tabs:n,activeKey:r,onChange:i,variant:a=`underline`,radius:o,size:s=`md`,scrollable:l=!1,align:d=`left`,style:f,tabStyle:p,tabLabelStyle:_,tabIconStyle:v,tabBadgeStyle:y,dividerStyle:x,indicatorStyle:S,progress:C,pages:w,haptic:T,accessibilityLabel:E,testID:D}=t;Q(`Tabs`,`variant`,t.variant,[`underline`,`pills`,`segmented`]),Q(`Tabs`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`Tabs`,`align`,t.align,[`left`,`center`]);let O=Ir(),k=m(()=>WA(O),[O]),A=O.components.tabs,j=m(()=>Sn(O,s),[O,s]),M=l?j[`scrollable-padding-x`]:j[`padding-x`],N=j[`padding-y`],F=j.text,L=O.space[A[`icon-gap`]],z=j.icon,ee=A[`underline-height`],B=O.space[A[`pill-inset`]],te=A[`disabled-opacity`],ne=O.space[A[`badge-gap`]],H=a===`segmented`,re=m(()=>xn(O,s),[O,s]),U=O.space[A[`track-padding`]],W=typeof o==`number`?o:o?O.radius[o]:void 0,ie=W??O.radius.md,q=W===void 0?O.radius.sm:Math.max(W-U,0),J=W??O.radius.pill,Y=W??O.radius.none,X=O.colors[`bg-muted`],Z=ag(H,ie),[oe,se]=g({}),ce=h(Ht(0)).current,le=h(Ht(0)).current,[ue,de]=g(0),fe=h(Ht(0)).current,pe=h(null),me=h(0),he=oe[r],ge=Math.max(0,n.findIndex(e=>e.key===r)),_e=m(()=>w&&ue>0?fe.interpolate({inputRange:[0,ue],outputRange:[0,1]}):void 0,[w,ue,fe])??C,ve=n.every(e=>oe[e.key]!==void 0),ye=_e!==void 0&&ve&&n.length>1,be=m(()=>ye&&_e?_e.interpolate({inputRange:n.map((e,t)=>t),outputRange:n.map(e=>HA(oe,e.key).x),extrapolate:`clamp`}):null,[ye,_e,n,oe]),xe=m(()=>ye&&_e?_e.interpolate({inputRange:n.map((e,t)=>t),outputRange:n.map(e=>HA(oe,e.key).width),extrapolate:`clamp`}):null,[ye,_e,n,oe]),Se=h(null);u(()=>{if(!he||ye)return;let e=Se.current!==null&&Se.current!==r;if(Se.current=r,!e)return ce.setValue(he.x),void le.setValue(he.width);let t=O.motion.spring.snappy,n=b.parallel([b.spring(ce,{toValue:he.x,damping:t.damping,stiffness:t.stiffness,mass:t.mass,overshootClamping:!0,useNativeDriver:!1}),b.spring(le,{toValue:he.width,damping:t.damping,stiffness:t.stiffness,mass:t.mass,overshootClamping:!0,useNativeDriver:!1})]);return n.start(),()=>n.stop()},[he,r,ce,le,O.motion.spring.snappy,ye]),u(()=>{w&&ue!==0&&me.current!==ge&&(me.current=ge,pe.current?.scrollTo({x:ge*ue,animated:!0}))},[w,ue,ge]);let Ce=w?.length;u(()=>{},[Ce,n.length]);let we=c(e=>t=>{let{x:n,width:r}=t.nativeEvent.layout;se(t=>{let i=t[e];return i&&i.x===n&&i.width===r?t:{...t,[e]:{x:n,width:r}}})},[]),Te=c(e=>{if(e.disabled||e.key===r)return;let t=ci(T,`selection`);t&&si(t),i(e.key)},[r,i,T]),Ee=a===`pills`,De=G(b.View,{pointerEvents:`none`,style:[H?k.indicatorThumb:Ee?k.indicatorPill:k.indicatorUnderline,H?null:Ee?{top:B,bottom:B}:{height:ee},{width:xe??le,transform:[{translateX:be??ce}],backgroundColor:H?O.colors.surface:Ee?O.colors[`primary-soft`]:O.colors.primary,borderRadius:H?q:Ee?J:Y,...ni},S]}),Oe=()=>n.map(e=>{let t=e.key===r,n=!0===e.disabled,i=t?O.colors.primary:O.colors[`text-subtle`],a=$h(e.icon,{color:i,size:z,focused:t,disabled:n}),o=!!a;return K(P,{onPress:()=>Te(e),onLayout:we(e.key),disabled:n,accessibilityRole:`tab`,accessibilityLabel:e.label,accessibilityState:{selected:t,disabled:n},"aria-selected":t,"aria-disabled":n,android_ripple:H?void 0:{color:O.colors[`surface-pressed`],borderless:!1},style:({pressed:e})=>[k.tab,l?null:k.tabFlex,H?{paddingHorizontal:re[`padding-x`],height:re.height-2*U}:{paddingHorizontal:M,paddingVertical:N},{opacity:n?te:e&&H&&!t?.7:1,backgroundColor:e&&!H?O.colors[`surface-pressed`]:`transparent`},p],children:[o?G(V,{style:[k.tabIcon,{marginRight:L},v],accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:a}):null,G($,{variant:`label`,weight:t?`semibold`:`medium`,color:t?`brand`:`tertiary`,style:[k.tabLabel,{fontSize:H?re.text:F},_],numberOfLines:1,children:e.label}),e.badge!==void 0&&e.badge!==null?G(bb,{value:String(e.badge),tone:`primary`,fill:`soft`,accessible:!1,style:{marginLeft:ne},badgeStyle:[k.tabBadge,y]}):null]},e.key)}),ke={flexDirection:`row`,alignItems:`stretch`,justifyContent:l?`flex-start`:d===`center`?`center`:`flex-start`,position:`relative`,overflow:`hidden`},Ae=K(ae,H?{children:[De,Oe()]}:{children:[Oe(),De]}),je=K(V,{ref:e,style:[k.container,{borderBottomColor:O.colors[`border-subtle`],borderBottomWidth:a===`underline`?R.hairlineWidth:0},a===`underline`?x:null,H?{padding:U,borderRadius:ie,...ni,backgroundColor:Z.active?`transparent`:X}:null,f],onLayout:Z.onLayout,accessibilityRole:`tablist`,accessibilityLabel:E,testID:D,children:[Z.active&&Z.size?G(ig,{width:Z.size.width,height:Z.size.height,radius:ie,fill:X}):null,l?G(I,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:[ke],keyboardShouldPersistTaps:`handled`,children:Ae}):G(V,{style:ke,children:Ae})]});return w?K(V,{style:k.root,children:[je,G(b.ScrollView,{ref:pe,horizontal:!0,pagingEnabled:!0,showsHorizontalScrollIndicator:!1,scrollEventThrottle:16,onLayout:e=>de(Math.round(e.nativeEvent.layout.width)),onScroll:b.event([{nativeEvent:{contentOffset:{x:fe}}}],{useNativeDriver:!1}),onMomentumScrollEnd:e=>{if(ue===0)return;let t=Math.round(e.nativeEvent.contentOffset.x/ue),a=n[t];a?.disabled?pe.current?.scrollTo({x:ge*ue,animated:!0}):(me.current=t,a&&a.key!==r&&i(a.key))},style:k.pager,testID:D?`${D}-pages`:void 0,children:n.map((e,t)=>G(V,{style:{width:ue},accessibilityElementsHidden:t!==ge,importantForAccessibility:t===ge?`auto`:`no-hide-descendants`,children:w[t]},e.key))})]}):je}var WA=e=>R.create({root:{flex:1},pager:{flex:1},container:{width:`100%`,position:`relative`},tab:{flexDirection:`row`,alignItems:`center`,justifyContent:`center`},tabFlex:{flex:1},tabIcon:{},tabLabel:{includeFontPadding:!1,flexShrink:1},tabBadge:{minWidth:18,minHeight:0},indicatorUnderline:{position:`absolute`,left:0,bottom:0},indicatorPill:{position:`absolute`,left:0,zIndex:-1},indicatorThumb:{position:`absolute`,left:0,top:0,bottom:0}}),GA=({ref:e,...t})=>{let{value:n,defaultValue:r,onChange:i,placeholder:a,label:o,helperText:s,error:l,required:u,disabled:d=!1,size:f=`md`,variant:p,maxTags:_,unique:v=!0,transform:y,separators:b=[`,`],haptic:x,onFocus:S,style:C,testID:w}=t;Q(`TagInput`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`TagInput`,`variant`,t.variant,[`outline`,`filled`,`underline`]);let T=Ir(),E=m(()=>KA(T),[T]),[D,O]=Bh({value:n,defaultValue:r??[],onChange:i}),[k,A]=g(``),[j,M]=g(!1),N=h(null),P=m(()=>th(N,e),[e]),F=c(()=>{d||N.current?.focus()},[d]),I=typeof _==`number`&&D.length>=_,L=!0===l||Tg(l),R=u&&!o&&D.length===0&&k.length===0&&!!a,z=c(e=>{let t=y?y(e.trim()):e.trim();if(!t||I)return;if(v&&D.some(e=>e.toLowerCase()===t.toLowerCase()))return void A(``);O([...D,t]),A(``);let n=ci(x,`selection`);n&&si(n)},[I,x,O,D,y,v]),B=c(e=>{let t=D.filter((t,n)=>n!==e);O(t);let n=ci(x,`selection`);n&&si(n)},[x,O,D]),te=c(e=>{we();let t=b.find(t=>t.length>0&&e.includes(t));t?z(e.slice(0,e.indexOf(t))):A(e)},[z,b]),ne=c(e=>{d||e.nativeEvent.key===`Backspace`&&k===``&&D.length>0&&B(D.length-1)},[d,k,B,D.length]),H=m(()=>D.map((e,t)=>({key:`${e}-${t}`,tag:e,index:t})),[D]),re=G(jg,{testID:w?`${w}-field`:void 0,size:f,variant:p,focused:j,disabled:d,error:L,filled:D.length>0||k.length>0,onPress:F,pressFeedback:!1,style:C,children:K(V,{style:E.wrap,children:[H.map(({key:e,tag:t,index:n})=>G(iS,{label:t,size:`sm`,onRemove:d?void 0:()=>B(n),haptic:x},e)),K(V,{style:E.inputBox,children:[G(ee,{ref:P,value:k,onChangeText:te,onKeyPress:ne,onSubmitEditing:()=>z(k),onFocus:e=>{M(!0),S?.(e)},onBlur:()=>{M(!1),z(k)},editable:!d&&!I,placeholder:I||R?void 0:a,placeholderTextColor:T.colors[`text-subtle`],submitBehavior:`submit`,returnKeyType:`done`,accessibilityLabel:o??a,style:[E.input,{color:T.colors[`text-body`],fontSize:T.text.base.size}],testID:w?`${w}-input`:void 0}),R?G(Cg,{text:a??``,color:T.colors[`text-subtle`],fontSize:T.text.base.size,weightStyle:Rr(T,`normal`)}):null]})]})});return K(V,{testID:w,children:[o?G(Dg,{size:f,required:u,children:o}):null,re,G(Og,{size:f,error:L,text:L?l:s})]})},KA=e=>R.create({wrap:{flex:1,flexDirection:`row`,flexWrap:`wrap`,alignItems:`center`,gap:e.space.xs,paddingVertical:e.space.xs},inputBox:{flexGrow:1,minWidth:80},input:{...Rr(e,`normal`),padding:e.space.none}}),qA=[`upcoming`,`current`,`done`,`onHold`,`rejected`,`cancelled`,`skipped`],JA=({items:e,variant:t=`feed`,orientation:n=`vertical`,style:r,testID:i})=>{let a=Ir(),o=a.space.xs,s=m(()=>YA(a),[a]),l=n===`horizontal`,u=a.colors.border;Q(`Timeline`,`variant`,t,[`feed`,`progress`]),Q(`Timeline`,`orientation`,n,[`vertical`,`horizontal`]);let[d,f]=g(0),p=c(e=>{let{width:t}=e.nativeEvent.layout;f(e=>e===t?e:t)},[]),h=l&&d>0&&e.length>0?d/e.length:0,_=(e,t)=>e.icon?G(V,{style:s.disc,children:e.icon}):G(D_,{dimension:24,color:t,fill:`halo`,icon:G(V,{style:[s.dot,{backgroundColor:t}]})}),v=(e,t)=>K(ae,{children:[G($,{variant:l?`bodySmall`:`body`,weight:`semibold`,style:[{color:t===`upcoming`?a.colors[`text-muted`]:a.colors[`text-body`]},l?s.centred:null],children:e.title}),e.meta?G($,{variant:`caption`,style:[{color:a.colors[`text-subtle`]},l?s.centred:null],children:e.meta}):null,e.description?G($,{variant:`bodySmall`,style:[{color:a.colors[`text-muted`]},l?s.centred:null],children:e.description}):null,e.children]}),y=e.map((n,r)=>{Q(`Timeline`,`status`,n.status,qA);let i=n.status??(t===`feed`?`done`:`upcoming`),c=n.color??(e=>{switch(e){case`done`:return a.colors.success;case`current`:return a.colors.warning;case`onHold`:return a.colors.info;case`rejected`:return a.colors.danger;case`cancelled`:case`skipped`:return a.colors[`text-subtle`];default:return a.colors[`text-disabled`]}})(i),d=r===0,f=r===e.length-1,p=n.key??`${n.title}-${r}`;return K(V,l?{testID:n.testID,style:[s.hColumn,h>0?{width:h,flex:0}:null],children:[K(V,{style:s.hDotRow,children:[G(V,{style:[s.hSegment,{marginRight:o,backgroundColor:d?`transparent`:u}]}),_(n,c),G(V,{style:[s.hSegment,{marginLeft:o,backgroundColor:f?`transparent`:u}]})]}),G(V,{style:s.hBody,children:v(n,i)})]}:{testID:n.testID,style:s.row,children:[K(V,{style:s.gutter,children:[_(n,c),f?null:G(V,{style:[s.rail,{backgroundColor:u}]})]}),G(V,{style:[s.body,{paddingBottom:f?0:a.space.lg}],children:v(n,i)})]},p)});return G(V,{style:[l?s.hRow:null,r],onLayout:l?p:void 0,testID:i,children:y})},YA=e=>R.create({row:{flexDirection:`row`},gutter:{width:28,alignItems:`center`},disc:{width:24,height:24,borderRadius:e.radius.pill,...ni,alignItems:`center`,justifyContent:`center`},dot:{width:12,height:12,borderRadius:e.radius.pill,...ni},rail:{width:2,flex:1,marginTop:e.space.xs,borderRadius:e.radius.pill,...ni},body:{flex:1,gap:e.space.xxs,paddingLeft:e.space.sm},hRow:{flexDirection:`row`,alignItems:`flex-start`},hColumn:{flex:1,minWidth:0,alignItems:`center`},hDotRow:{alignSelf:`stretch`,flexDirection:`row`,alignItems:`center`},hSegment:{flex:1,height:2,borderRadius:e.radius.pill,...ni},hBody:{alignSelf:`stretch`,alignItems:`center`,paddingHorizontal:e.space.xs,marginTop:e.space.sm,gap:e.space.xxs},centred:{textAlign:`center`}}),XA=[-2,-1,0,1,2],ZA=s(({label:e,index:t,scrollY:n,itemHeight:r,selected:i,theme:a,reducedMotion:o,onPress:s,hidden:c})=>{let{opacity:l,scale:u}=m(()=>{let e=b.subtract(b.divide(n,r),t);return{opacity:e.interpolate({inputRange:XA,outputRange:[.3,.6,1,.6,.3],extrapolate:`clamp`}),scale:e.interpolate({inputRange:XA,outputRange:[.85,.95,1.05,.95,.85],extrapolate:`clamp`})}},[n,r,t]),d=G($,{variant:`h3`,weight:i?`semibold`:`medium`,color:i?`primary`:`secondary`,numberOfLines:1,maxFontSizeMultiplier:1.5,style:{letterSpacing:a[`letter-spacing`].normal},children:e});return G(b.View,{style:[$A.row,{height:r},o?{opacity:l}:{opacity:l,transform:[{scale:u}]},c?$A.rowHidden:null],accessible:!1,importantForAccessibility:`no`,children:s?G(P,{focusable:!1,accessible:!1,onPress:()=>s(t),style:$A.rowPress,children:d}):d})}),QA=({label:e,items:t,selectedIndex:r,onIndexChange:i,itemHeight:a,width:o,theme:s,haptic:l,disabled:d,reducedMotion:f,typeable:p,typeAction:_,typeEditor:y,testID:x})=>{let S=Zm(`wheelPicker`,Xm),C=N.OS===`web`,[w,T]=g(null),E=c(e=>{we(),T(e)},[]),D=h(!1),O=h(null),k=h(null),A=h(!1),j=h(Ht(r*a)).current,M=h(r*a),P=h(r*a),F=h(r),I=h(0),L=h(null),R=h(()=>{}),z=t.length-1;u(()=>{F.current=r;let e=r*a;if(P.current===e||(P.current=e,Math.abs(M.current-e)<1))return;M.current=e,C||Ut(j,e);let t=requestAnimationFrame(()=>{O.current?.scrollTo({y:e,animated:!1})});return()=>cancelAnimationFrame(t)},[r,a,j,C]),u(()=>{let e=M.current,t=requestAnimationFrame(()=>{O.current?.scrollTo({y:e,animated:!1})});return()=>cancelAnimationFrame(t)},[]),u(()=>()=>{L.current&&clearTimeout(L.current)},[]);let B=c((e,n)=>{if(!(e===r||e<0||e>z)){if(n===`accessibility`){let e=ci(l,`denseTick`);e&&si(e)}if(n!==`keyboard`){let n=t[e];n&&eh(n.accessibilityLabel??n.label)}i(e)}},[r,z,t,l,i]),te=c(()=>{!d&&p&&(D.current=!0,T(String(t[r]?.value??``)))},[d,p,t,r]),ne=c(e=>{if(!D.current)return;D.current=!1,T(null);let n=e.trim();if(!/^\d+$/.test(n))return;let r=Number(n),i=t.findIndex(e=>e.value===r);i>=0&&B(i,`keyboard`)},[t,B]);u(()=>{if(w!==null||!A.current)return;A.current=!1;let e=k.current;e&&N.OS!==`web`&&v.sendAccessibilityEvent(e,`focus`)},[w]),R.current=()=>{L.current=null;let e=Math.max(0,Math.min(z,Math.round(M.current/a))),t=e*a;Math.abs(M.current-t)>=1&&O.current?.scrollTo({y:t,animated:!f}),B(e,`scroll`)};let H=m(()=>b.event([{nativeEvent:{contentOffset:{y:j}}}],{useNativeDriver:Vt,listener:e=>{let t=e.nativeEvent.contentOffset.y;M.current=t;let n=Math.round(t/a);if(n!==F.current&&n>=0&&n<=z){let e=Date.now();if(e-I.current>=35){let t=ci(l,`denseTick`);t&&si(t),I.current=e}F.current=n}C&&(L.current&&clearTimeout(L.current),L.current=setTimeout(()=>R.current(),120))}}),[j,a,z,l,C]),re=c(e=>{let t=e.nativeEvent.contentOffset.y;B(Math.max(0,Math.min(z,Math.round(t/a))),`scroll`)},[B,z,a]),U=c(t=>{if(d)return;let n=t.nativeEvent.actionName;n===`increment`?B(Math.min(z,r+1),`accessibility`):n===`decrement`?B(Math.max(0,r-1),`accessibility`):n===`type`&&(A.current=!0,te(),eh(`${e}. ${y??S.typeEditor}`))},[d,B,z,r,te,e,y,S.typeEditor]),W=m(()=>[{name:`increment`},{name:`decrement`},...p&&!d?[{name:`type`,label:_??S.typeAction}]:[]],[p,d,_,S.typeAction]),ie=c(e=>{d||O.current?.scrollTo({y:e*a,animated:!f})},[d,a,f]),ae=c(({item:e,index:t})=>{let n=t===r;return G(ZA,{label:e.label,index:t,scrollY:j,itemHeight:a,selected:n,theme:s,reducedMotion:f,onPress:n&&p?te:C?ie:void 0,hidden:n&&w!==null})},[j,a,r,s,f,C,ie,p,te,w]),q=c((e,t)=>`${String(e.value)}-${t}`,[]),J=t[r]?t[r].accessibilityLabel??t[r].label:``,Y=C?{focusable:!0,role:`spinbutton`,"aria-label":e,"aria-valuetext":J,"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":z,"aria-disabled":d,onKeyDown:e=>{if(d)return;let t={ArrowDown:Math.min(z,r+1),PageDown:Math.min(z,r+1),ArrowUp:Math.max(0,r-1),PageUp:Math.max(0,r-1),Home:0,End:z}[e.nativeEvent.key];t!==void 0&&(e.preventDefault(),B(t,`keyboard`))}}:void 0;return K(V,{style:[o===void 0?$A.columnFlex:{width:o},{height:5*a},$A.column,d?$A.disabled:null],testID:x,...Y,children:[C?null:G(V,{pointerEvents:`none`,style:$A.a11yLayer,ref:k,accessible:w===null,importantForAccessibility:w===null?`yes`:`no-hide-descendants`,accessibilityRole:`adjustable`,accessibilityLabel:e,accessibilityValue:{text:J},accessibilityState:{disabled:!!d},"aria-disabled":!!d,accessibilityActions:W,onAccessibilityAction:U}),G(b.ScrollView,{ref:O,showsVerticalScrollIndicator:!1,snapToInterval:a,snapToAlignment:`start`,decelerationRate:`fast`,bounces:!1,scrollEnabled:!d,nestedScrollEnabled:!0,scrollEventThrottle:16,onScroll:H,onMomentumScrollEnd:re,contentOffset:{x:0,y:r*a},contentContainerStyle:{paddingVertical:a*2},style:[$A.list,{height:5*a}],importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:t.map((e,t)=>G(n,{children:ae({item:e,index:t})},q(e,t)))}),w===null?null:G(V,{style:[$A.editorBand,{top:a*2,height:a,backgroundColor:s.colors.surface}],children:G(ee,{autoFocus:!0,selectTextOnFocus:!0,keyboardType:`number-pad`,returnKeyType:`done`,accessibilityLabel:e,value:w,onChangeText:E,onSubmitEditing:()=>ne(w),onBlur:()=>ne(w),style:{width:`100%`,padding:s.space.none,textAlign:`center`,fontSize:s.text.xl.size,color:s.colors[`text-body`],fontWeight:s.weight.semibold,letterSpacing:s[`letter-spacing`].normal}})})]})},$A=R.create({column:{overflow:`hidden`},columnFlex:{flex:1},disabled:{opacity:.5},list:{flexGrow:0},row:{alignItems:`center`,justifyContent:`center`},rowHidden:{opacity:0},editorBand:{position:`absolute`,left:0,right:0,justifyContent:`center`,zIndex:3},rowPress:{alignItems:`center`,justifyContent:`center`,alignSelf:`stretch`,flex:1},a11yLayer:{...R.absoluteFill,zIndex:2}}),ej=(e,t,n=1)=>{let r=[];for(let i=e;i<=t;i+=n)r.push(i);return r},tj=(e,t,n)=>{let r=Math.floor(e/60),i=e%60;return r===0?`${i} ${n}`:i===0?`${r} ${t}`:`${r} ${t} ${i} ${n}`},nj=e=>typeof e==`object`?e:{value:e,label:String(e)},rj=e=>{let{haptic:t,disabled:r,testID:i,style:a,labels:o}=e;Q(`WheelPicker`,`mode`,e.mode,[`columns`,`list`,`duration`]);let s=Ir(),l=Rn(),{fontScale:u}=te(),d=Math.round(40*Math.min(Math.max(u,1),1.5)),f=m(()=>ij(s,d),[s,d]),p=e.mode===`list`?e.items:void 0,h=m(()=>p?.map(nj),[p]),g=e.mode===`duration`?e.minuteStep??1:1,_=e.mode===`duration`?Math.max(0,Math.min(1439,Math.floor(e.maxMinutes??1/0))):0,v=Math.floor(_/60),y=Zm(`wheelPicker`,Xm),b=m(()=>({...y,...o}),[y,o]),x=e.mode===`duration`?e.presets:void 0;for(let e of x??[])if(!Number.isInteger(e)||e<0||e>_||e%g!==0)throw Error(`WheelPicker preset ${e} must be a whole number of minutes from 0 to ${_} in steps of ${g}.`);let S=c(e=>{let t=e===v?_%60:59;return Math.floor(t/g)*g},[v,_,g]),C=e.mode===`duration`?e.value:0,w=m(()=>{let e=Math.max(0,Math.min(_,Number.isFinite(C)?C:0)),t=Math.floor(e/60),n=Math.round(e%60/g)*g;return{hour:t,minute:Math.min(S(t),n)}},[C,_,g,S]),T=m(()=>e.mode===`duration`?ej(0,v).map(e=>({value:e,label:String(e),accessibilityLabel:kp(b,`hour`,e)})):[],[e.mode,v,b]),E=S(w.hour),D=m(()=>e.mode===`duration`?ej(0,E,g).map(e=>({value:e,label:String(e).padStart(2,`0`),accessibilityLabel:kp(b,`minute`,e)})):[],[e.mode,E,g,b]),O=m(()=>e.mode===`list`?[{key:`list`,label:e.label??b.value,items:h??[],value:e.value??``,width:e.width}]:e.mode===`duration`?[{key:`hours`,label:b.hours,items:T,value:w.hour,unit:b.hourUnit,gapAfter:s.space.md},{key:`minutes`,label:b.minutes,items:D,value:w.minute,unit:b.minuteUnit}]:e.columns,[e,h,T,D,w,b,s.space.md]),k=e.mode===`list`?e.onChange:void 0,A=e.mode===`duration`?e.onChange:void 0,j=e.mode===`list`||e.mode===`duration`?void 0:e.onChange,M=c((e,t)=>{let n=e.items[t];if(n){if(k)k(n.value);else if(A){let t=Number(n.value);e.key===`hours`?A(60*t+Math.min(w.minute,S(t))):A(60*w.hour+t)}else j?.(e.key,n.value)}},[k,A,j,w,S]),N=c(e=>{A?.(e)},[A]),P=60*w.hour+w.minute,F=K(V,{style:[f.wheels,a],testID:i,children:[K(V,{pointerEvents:`none`,style:f.selectionBand,children:[G(V,{style:f.bandLine}),G(V,{style:f.bandLine})]}),O.map(i=>{if(i.items.length===0)return null;let a=i.items.findIndex(e=>e.value===i.value);return K(n,{children:[G(QA,{label:i.label,items:i.items,selectedIndex:Math.max(0,a),onIndexChange:e=>M(i,e),itemHeight:d,width:i.width??(e.mode===`list`?void 0:64),theme:s,haptic:t,disabled:r,reducedMotion:l,typeable:e.mode===`duration`,typeAction:b.typeAction,typeEditor:b.typeEditor,testID:i.testID}),i.unit?G($,{variant:`body`,weight:`semibold`,color:`secondary`,style:f.unit,maxFontSizeMultiplier:1.5,numberOfLines:1,accessible:!1,importantForAccessibility:`no`,"aria-hidden":!0,children:i.unit}):null,i.separator?G($,{variant:`h2`,weight:`bold`,style:f.separator,maxFontSizeMultiplier:1.5,accessible:!1,importantForAccessibility:`no`,"aria-hidden":!0,children:i.separator}):null,i.gapAfter?G(V,{style:{width:i.gapAfter}}):null]},i.key)})]});return x&&x.length!==0?K(V,{children:[F,G(V,{style:f.presets,children:x.map(e=>G(iS,{label:tj(e,b.hourUnit,b.minuteUnit),size:`sm`,selected:e===P,disabled:r,onPress:()=>N(e)},e))})]}):F},ij=(e,t)=>R.create({wheels:{flexDirection:`row`,alignItems:`center`,justifyContent:`center`,height:t*5,position:`relative`},selectionBand:{position:`absolute`,left:0,right:0,top:t*2,height:t,justifyContent:`space-between`},bandLine:{height:2*R.hairlineWidth,backgroundColor:e.colors.primary,opacity:.85},separator:{paddingHorizontal:e.space.xs},unit:{paddingLeft:e.space.xs},presets:{flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,gap:e.space.xs,paddingTop:e.space.sm}}),aj=(e,t,n=1)=>{let r=[];for(let i=e;i<=t;i+=n)r.push(i);return r},oj=e=>e.toString().padStart(2,`0`),sj=(e,t,n)=>n===`24h`?e:t===`AM`?e===12?0:e:e===12?12:e+12,cj=(e,t)=>t===`24h`?{displayHour:e,period:`AM`}:e===0?{displayHour:12,period:`AM`}:e===12?{displayHour:12,period:`PM`}:e>12?{displayHour:e-12,period:`PM`}:{displayHour:e,period:`AM`},lj=(e,t)=>{let n=Math.round(e/t)*t;return Math.min(59,Math.max(0,n))},uj=e=>{let{open:t,value:n,onChange:r,onClose:i,format:a=`12h`,minuteStep:o=1,labels:s,testID:l,style:d,sheetStyle:f,headerLabelStyle:p,footerButtonStyle:h,formatValue:_,haptic:v,triggerLabels:y,label:b,help:x,placeholder:S,helperText:C,error:w,required:T,disabled:E,size:D,variant:O,clearable:k,onClear:A,leftIcon:j,trailing:M,triggerStyle:N,valueStyle:P,labelStyle:F,messageStyle:I,accessibilityLabel:L}=e,R={label:b,help:x,placeholder:S,helperText:C,error:w,required:T,disabled:E,size:D,variant:O,clearable:k,onClear:A,leftIcon:j,trailing:M,triggerStyle:N,valueStyle:P,labelStyle:F,messageStyle:I,accessibilityLabel:L,style:d};Q(`TimePicker`,`format`,e.format,[`12h`,`24h`]),Q(`TimePicker`,`minuteStep`,e.minuteStep?.toString(),[`1`,`5`,`15`,`30`]),Q(`TimePicker`,`size`,e.size,[`sm`,`md`,`lg`]),Q(`TimePicker`,`variant`,e.variant,[`outline`,`filled`,`underline`]);let z=Zm(`timePicker`,Gm),ee=m(()=>({...z,...s}),[z,s]),B=t!==void 0,[te,ne]=g(!1),H=B?t:te,re=B?l:l?`${l}-modal`:void 0,U=Ir(),W=m(()=>dj(U),[U]),ie=c(()=>{B?i?.():ne(!1)},[B,i]),q=m(()=>a===`24h`?aj(0,23):aj(1,12),[a]),J=m(()=>aj(0,59,o),[o]),Y=m(()=>[`AM`,`PM`],[]),X=m(()=>{let e=n&&Number.isFinite(n.hour)?n.hour:new Date().getHours(),t=lj(n&&Number.isFinite(n.minute)?n.minute:new Date().getMinutes(),o),{displayHour:r,period:i}=cj(e,a);return{displayHour:r,minute:t,period:i,hour24:e}},[n,a,o]),[Z,oe]=g(()=>{let e=q.indexOf(X.displayHour);return Math.max(e,0)}),[se,ce]=g(()=>{let e=J.indexOf(X.minute);return Math.max(e,0)}),[le,ue]=g(()=>+(X.period===`PM`));u(()=>{if(!H)return;let e=n&&Number.isFinite(n.hour)?n.hour:new Date().getHours(),t=lj(n&&Number.isFinite(n.minute)?n.minute:new Date().getMinutes(),o),{displayHour:r,period:i}=cj(e,a),s=q.indexOf(r);oe(Math.max(s,0));let c=J.indexOf(t);ce(Math.max(c,0)),ue(+(i===`PM`))},[H,n,a,o,q,J]);let de=c((e,t)=>{e===`hour`?oe(Math.max(0,q.indexOf(Number(t)))):e===`minute`?ce(Math.max(0,J.indexOf(Number(t)))):ue(+(t===`PM`))},[q,J]),fe=c(()=>{!1!==v&&si(`selection`),ie()},[ie,v]),pe=c(()=>{let e=sj(q[Z]??0,Y[le]??`AM`,a),t=J[se]??0;!1!==v&&si(`notificationSuccess`),r?.({hour:e,minute:t}),ie()},[q,Z,Y,le,J,se,a,r,ie,v]),me=m(()=>{let e=q[Z]??0,t=J[se]??0;if(a===`24h`)return`${oj(e)}:${oj(t)}`;let n=Y[le]??`AM`;return`${oj(e)}:${oj(t)} ${n}`},[q,Z,J,se,Y,le,a]),he=m(()=>q.map(e=>({value:e,label:oj(e),accessibilityLabel:Op(ee.hourItem,{hour:e})})),[q,ee]),ge=m(()=>J.map(e=>({value:e,label:oj(e),accessibilityLabel:Op(ee.minuteItem,{minute:e})})),[J,ee]),_e=m(()=>Y.map(e=>({value:e,label:e})),[Y]),ve=m(()=>{let e=[{key:`hour`,label:ee.hour,items:he,value:q[Z]??0,separator:`:`,testID:`time-picker-hour`},{key:`minute`,label:ee.minute,items:ge,value:J[se]??0,gapAfter:a===`12h`?U.space.md:void 0,testID:`time-picker-minute`}];return a===`12h`&&e.push({key:`period`,label:ee.period,items:_e,value:Y[le]??`AM`,testID:`time-picker-period`}),e},[he,ge,_e,q,Z,J,se,Y,le,a,U.space.md,ee]),ye=c(e=>{if(a===`24h`)return`${oj(e.hour)}:${oj(e.minute)}`;let{displayHour:t,period:n}=cj(e.hour,`12h`);return`${t}:${oj(e.minute)} ${n}`},[a]),be=!B&&n&&Number.isFinite(n.hour)&&Number.isFinite(n.minute)?(_??ye)(n):void 0,xe=K(bv,{open:H,onClose:ie,presentation:`bottom`,accessibilityLabel:ee.title,haptic:v,contentStyle:f,testID:re,children:[G($,{variant:`title`,align:`center`,accessibilityRole:`header`,style:[W.title,p],children:ee.title}),G(V,{style:W.summaryWrap,accessibilityLiveRegion:`polite`,accessibilityLabel:Op(ee.selected,{summary:me}),children:G($,{variant:`h2`,weight:`bold`,color:`brand`,style:W.summary,children:me})}),G(rj,{columns:ve,onChange:de,haptic:v,style:W.wheels}),K(V,{style:W.footer,children:[G(fg,{label:ee.cancel,haptic:!1,variant:`ghost`,tone:`neutral`,onPress:fe,style:[W.footerBtn,h],accessibilityHint:ee.cancelHint,testID:`time-picker-cancel`}),G(fg,{label:ee.confirm,variant:`solid`,tone:`primary`,haptic:!1,onPress:pe,style:[W.footerBtn,h],accessibilityHint:ee.confirmHint,testID:`time-picker-confirm`})]})]});return B?xe:K(ae,{children:[G(ZS,{...R,labels:y,value:be,onPress:()=>ne(!0),testID:l}),xe]})},dj=e=>R.create({title:{marginBottom:e.space.sm},summaryWrap:{alignItems:`center`,marginBottom:e.space.md},summary:{letterSpacing:e[`letter-spacing`].wide},wheels:{marginBottom:e.space.lg},footer:{flexDirection:`row`,justifyContent:`flex-end`,alignItems:`center`,gap:e.space.sm},footerBtn:{paddingHorizontal:e.space.lg}}),fj=e=>new Promise(t=>{let n=e.current;n?n.measureInWindow((e,n,r,i)=>t({x:e,y:n,width:r,height:i})):t(null)}),pj=(e,t)=>e.width>0&&e.height>0&&e.x<t.width&&e.y<t.height&&e.x+e.width>0&&e.y+e.height>0,mj=({tourId:e,steps:t,open:n,onClose:r,seenStore:i,labels:a,haptic:o,testID:s})=>{let l=Ir(),d=ti().duration(`fast`),f=m(()=>hj(l),[l]),p=te(),_=h(p);_.current=p;let y=l.space.sm,x=l.space.sm,S=Zm(`tour`,Jm),C=m(()=>({...S,...a}),[S,a]),[w,T]=g(null),[E,D]=g(0),O=h(Ht(0)).current,k=h(t);k.current=t;let A=h(C);A.current=C;let j=h(r);j.current=r;let M=h(i);M.current=i;let N=c(async(e,t)=>{for(let n=e;n>=0&&n<k.current.length;n+=t){let e=k.current[n];if(e===void 0)throw Error(`Tour: no step at index ${n}, though the loop bound checked it`);let t=await fj(e.target);if(t&&pj(t,_.current))return{index:n,rect:t}}return null},[]);u(()=>{if(!n)return void T(null);let t=!1;return(async()=>{let n=M.current;if(n&&await n.isSeen(e))return void(t||j.current(`alreadySeen`));let r=await N(0,1);t||(r?(D(r.index),T(r)):j.current(`noTargets`))})(),()=>{t=!0}},[n,e,N]),u(()=>{if(!w)return;let e=k.current[w.index];if(e===void 0)throw Error(`Tour: the current step ${w.index} is missing from the steps list`);let t=Op(A.current.position,{step:w.index+1,total:k.current.length});v.announceForAccessibility([t,e.title,e.description].filter(Boolean).join(`. `)),O.setValue(0);let n=b.timing(O,{toValue:1,duration:d,useNativeDriver:Vt});return n.start(),()=>n.stop()},[w,O,d]);let P=c(async t=>{T(null),await M.current?.markSeen(e),j.current(t)},[e]),F=c(async()=>{if(!w)return;let e=await N(w.index+1,1);e?T(e):await P(`finished`)},[w,N,P]),I=c(async()=>{if(!w)return;let e=await N(w.index-1,-1);e&&T(e)},[w,N]),L=c(()=>{P(`skipped`)},[P]),z=w?t[w.index]:void 0,ee=!!w&&w.index===t.length-1,B=l.space.xs,ne=w?{x:w.rect.x-B,y:w.rect.y-B,width:w.rect.width+2*B,height:w.rect.height+2*B}:null,H=Math.min(p.width-2*x,360),re=ne?(()=>{let e=ne.x+ne.width/2,t=Math.max(x,Math.min(e-H/2,p.width-H-x)),n=ne.y,r=p.height-(ne.y+ne.height);return r>=n?{left:t,top:ne.y+ne.height+y,maxHeight:Math.max(r-y-x,0)}:{left:t,bottom:p.height-ne.y+y,maxHeight:Math.max(n-y-x,0)}})():null,U=l.colors.scrim,W=ne?Math.min(z?.radius?l.radius[z.radius]+B:l.radius.md,Math.min(ne.width,ne.height)/2):0,ie=Math.max(p.width,p.height);return G(bv,{open:w!==null,onClose:L,presentation:`fullScreen`,backdropPressClose:!1,backdropStyle:f.transparent,contentStyle:f.transparent,accessibilityLabel:z?.title??z?.description,haptic:o,testID:s,children:ne&&re&&z?K(V,{style:R.absoluteFill,children:[G(V,{style:[f.dim,{borderColor:U,borderWidth:ie,top:ne.y-ie,left:ne.x-ie,width:ne.width+2*ie,height:ne.height+2*ie,borderRadius:W+ie}]}),G(V,{pointerEvents:`none`,style:[f.highlight,{top:ne.y,left:ne.x,width:ne.width,height:ne.height,borderRadius:W}]}),K(b.View,{accessibilityLiveRegion:`polite`,style:[f.card,re,{width:H,opacity:O}],testID:s?`${s}-card`:void 0,children:[G($,{variant:`caption`,children:Op(C.position,{step:(w?.index??0)+1,total:t.length})}),z.title?G($,{variant:`title`,accessibilityRole:`header`,children:z.title}):null,G($,{variant:`bodySmall`,children:z.description}),K(V,{style:f.actions,children:[G(fg,{label:C.skip,variant:`ghost`,size:`sm`,haptic:o,onPress:L,testID:s?`${s}-skip`:void 0}),K(V,{style:f.navigation,children:[w&&w.index>E?G(fg,{label:C.back,variant:`outline`,size:`sm`,haptic:o,onPress:()=>{I()},testID:s?`${s}-back`:void 0}):null,G(fg,{label:ee?C.done:C.next,size:`sm`,haptic:o,onPress:()=>{F()},testID:s?`${s}-next`:void 0})]})]})]})]}):null})};mj.displayName=`Tour`;var hj=e=>R.create({transparent:{backgroundColor:`transparent`},dim:{position:`absolute`},highlight:{position:`absolute`,borderWidth:2,borderColor:e.colors.primary,borderRadius:e.radius.md,...ni},card:{position:`absolute`,backgroundColor:e.colors.surface,borderRadius:e.radius.lg,...ni,padding:e.space.lg,gap:e.space.sm,...e.shadow.popover},actions:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,marginTop:e.space.xs},navigation:{flexDirection:`row`,gap:e.space.sm}}),gj=[1,.65,.3],_j=[`first`,`second`,`third`],vj=({index:e,still:t,colour:n,dotStyle:r})=>{let i=Xe(.3);u(()=>{if(!t)return i.value=Ze(160*e,Qe($e(tt(1,{duration:400}),tt(.3,{duration:400})),-1)),()=>Re(i)},[t,e,i]);let a=Ge(()=>({opacity:i.value}),[i]);return G(Ee.View,{style:[r,{backgroundColor:n},t?{opacity:gj[e]}:a]})},yj=({label:e,accessibilityLabel:t,labels:n,bubble:r=!0,style:i,testID:a})=>{let o=Ir(),s=m(()=>bj(o),[o]),c=Rn(),l=o.colors[`text-subtle`],u=Zm(`typingIndicator`,Ym),d=m(()=>({...u,...n}),[u,n]);return K(V,{style:[s.root,r?s.bubble:null,i],accessible:!0,accessibilityRole:`progressbar`,accessibilityLabel:e??t??d.typing,accessibilityState:{busy:!0},"aria-busy":!0,testID:a,children:[G(V,{style:s.dots,children:_j.map((e,t)=>G(vj,{index:t,still:c,colour:l,dotStyle:s.dot},e))}),e?G($,{variant:`bodySmall`,color:`secondary`,children:e}):null]})},bj=e=>R.create({dot:{width:6,height:6,borderRadius:e.radius.pill,...ni},root:{flexDirection:`row`,alignItems:`center`,alignSelf:`flex-start`,gap:e.space.sm,marginTop:e.space.sm},bubble:{backgroundColor:e.colors[`bg-subtle`],borderRadius:e.radius.xl,...ni,paddingHorizontal:e.space.md,paddingVertical:e.space.sm+e.space.xs},dots:{flexDirection:`row`,alignItems:`center`,gap:e.space.xs}}),xj={damping:18,stiffness:220,mass:1},Sj=({children:e,maxScale:t=4,minScale:n=1,doubleTapScale:r=2,disabled:i=!1,haptic:a,style:o,accessibilityLabel:s,testID:l})=>{let d=Xe(1),f=Xe(1),p=Xe(0),h=Xe(0),g=Xe(0),_=Xe(0),v=c(()=>{d.value=et(1,xj),f.value=1,p.value=et(0,xj),h.value=et(0,xj),g.value=0,_.value=0},[d,f,p,h,g,_]);u(()=>{i&&v()},[i,v]);let y=c(()=>{let e=ci(a,`impactLight`);e&&si(e)},[a]),b=m(()=>({enabled:!i,onActivate:()=>{"worklet";f.value=d.value},onUpdate:e=>{"worklet";let r=f.value*e.scale;d.value=r<n?n+.3*(r-n):r>t?t+.2*(r-t):r},onDeactivate:()=>{"worklet";d.value<n?(d.value=et(n,xj),p.value=et(0,xj),h.value=et(0,xj),f.value=n,g.value=0,_.value=0):d.value>t?(d.value=et(t,xj),f.value=t):f.value=d.value}}),[i,d,f,p,h,g,_,n,t]),x=gt(b),S=m(()=>({enabled:!i,minPointers:1,maxPointers:1,onActivate:()=>{"worklet";g.value=p.value,_.value=h.value},onUpdate:e=>{"worklet";d.value<=1||(p.value=g.value+e.translationX,h.value=_.value+e.translationY)},onDeactivate:()=>{"worklet";g.value=p.value,_.value=h.value}}),[i,d,p,h,g,_]),C=ht(S),w=m(()=>({enabled:!i,numberOfTaps:2,onDeactivate:()=>{"worklet";yt(y),d.value>1?(d.value=et(1,xj),p.value=et(0,xj),h.value=et(0,xj),f.value=1,g.value=0,_.value=0):(d.value=et(r,xj),f.value=r)}}),[i,d,f,p,h,g,_,y,r]),T=vt(w),E=pt(x,C,T),D=Ge(()=>({transform:[{translateX:p.value},{translateY:h.value},{scale:d.value}]}),[p,h,d]);return G(ut,{gesture:E,children:G(Ee.View,{style:[Cj.container,o],testID:l,accessibilityLabel:s,accessibilityState:{disabled:i},"aria-disabled":i,children:G(Ee.View,{style:[Cj.content,D],children:e})})})};Sj.displayName=`ZoomableImage`;var Cj=R.create({container:{flex:1,alignItems:`center`,justifyContent:`center`,overflow:`hidden`},content:{width:`100%`,height:`100%`,alignItems:`center`,justifyContent:`center`}}),wj=Bt({components:{Accordion:Lh,AccordionGroup:Ph,AmountSlider:a_,AnimatePresence:s_,AppBar:Uv,AppIcon:_p,AsyncBlock:Xv,AuthedImage:Vy,Autocomplete:Wy,Avatar:cb,AvatarGroup:fb,Badge:bb,Banner:wb,BarChart:Lb,BottomNavigation:Ub,BottomSheet:$b,Button:fg,Calendar:gx,Card:wx,Carousel:Rx,Checkbox:Qx,Chip:iS,ChoiceGroup:uS,Composer:gS,Confetti:RS,DatePicker:rC,DateRangePicker:oC,DateSeparator:uC,DecimalInput:yC,Descriptions:CC,Dialog:VS,Divider:S_,Drawer:TC,EmptyState:qv,FilePicker:LC,FileViewer:aw,FilterChipRow:cw,FloatingActionButton:gw,FloatingActionButtonGroup:vw,ForceUpdateDialog:xw,FormField:Sw,IconBadge:D_,IconButton:mS,IdleTimeoutDialog:Ew,ImageGallery:Ow,InlineSelect:Lw,Input:Fg,KeyboardToolbar:qw,ListItem:$_,ListSection:Zw,LoaderOverlay:nT,Markdown:eE,Menu:Bv,MessageBubble:iE,MessageList:cE,Modal:bv,NonModalBottomSheet:vE,NumberInput:EE,OTPInput:FE,OTPResendRow:zE,OnboardingPager:OE,OptionSheet:Mv,OutboxEntryList:HE,PagedList:YE,PagedListFooter:WE,PermissionPrompt:iD,PhoneNumberInput:fD,PickerTrigger:ZS,ProfileCompletion:CD,ProfilePicker:MD,ProgressBar:RD,ProgressRing:vD,Radio:UD,RadioGroup:GD,Rating:tO,Repeater:oO,RichTextEditor:CO,ScannerOverlay:kO,Screen:IO,SearchBar:KO,SectionHeader:Yw,SegmentedControl:YO,Select:$O,SignaturePad:xk,Skeleton:vh,SkeletonCircle:yh,SkeletonContent:kh,SkeletonList:Ah,SkeletonText:bh,SlideToConfirm:Lk,Slider:e_,SliderField:Nk,SortableList:Yk,Spacer:b_,Sparkline:nA,Spinner:ug,SquircleImage:aA,SquircleView:cA,StatTile:vA,StatusBadge:DA,Stepper:IA,Swipeable:V_,Switch:BA,Tabs:UA,TagInput:GA,Text:$,TimePicker:uj,Timeline:JA,Toast:ov,Tooltip:Dk,Tour:mj,TypingIndicator:yj,WheelPickerColumns:zt(a,rj,{mode:`columns`},`WheelPickerColumns`),WheelPickerDuration:zt(a,rj,{mode:`duration`},`WheelPickerDuration`),WheelPickerList:zt(a,rj,{mode:`list`},`WheelPickerList`),ZoomableImage:Sj,StatusBar:Jr,HomeIndicator:Yr,NavigationBar:Xr,SafeArea:Zr,KeyboardFrame:$r},markers:{AppBar:`AppBar`,AppIcon:`AppIcon`,HomeIndicator:`AppHomeIndicator`,KeyboardFrame:`AppKeyboardFrame`,NavigationBar:`AppNavigationBar`,SafeArea:`AppSafeArea`,StatusBar:`AppStatusBar`},tokenValues:{color:{"avatar-1":{light:`#4f46e5`,dark:`#8b8bee`},"avatar-2":{light:`#0a7979`,dark:`#2dd4bf`},"avatar-3":{light:`#a45a05`,dark:`#fcd34d`},"avatar-4":{light:`#cd226e`,dark:`#f472b6`},"avatar-5":{light:`#2462eb`,dark:`#60a5fa`},"avatar-6":{light:`#7c3aed`,dark:`#a78bfa`},"avatar-7":{light:`#047c57`,dark:`#34d399`},"avatar-8":{light:`#d42222`,dark:`#f87171`},bg:{light:`#ffffff`,dark:`#0b0b12`},"bg-muted":{light:`#f1f1f5`,dark:`#1c1c26`},"bg-subtle":{light:`#f8f8fb`,dark:`#13131c`},border:{light:`#e5e5ec`,dark:`#27272f`},"border-subtle":{light:`#efeff3`,dark:`#1c1c26`},danger:{light:`#e12c32`,dark:`#f87171`},"danger-border":{light:`#e5484d`,dark:`#f87171`},"danger-soft":{light:`#ffeaef`,dark:`#e826462e`},"danger-text":{light:`#bc1b20`,dark:`#f87171`},"field-bg":{light:`#f9fbfc`,dark:`#13131c`},"field-bg-disabled":{light:`#f5f6fa`,dark:`#1c1c26`},"field-bg-focus":{light:`#ffffff`,dark:`#0b0b12`},"field-border":{light:`#ebedf3`,dark:`#27272f`},"field-border-error":{light:`#fdbfce`,dark:`#8a2f42`},"field-border-focus":{light:`#bed2f9`,dark:`#3d5fb0`},"field-caret":{light:`#5b8dee`,dark:`#7c9ef0`},"field-icon":{light:`#7a849f`,dark:`#8b8b95`},"field-icon-disabled":{light:`#c4cada`,dark:`#52525b`},"field-icon-focus":{light:`#4b5675`,dark:`#d4d4db`},"field-label":{light:`#242f4a`,dark:`#e4e6ee`},"field-message":{light:`#d81736`,dark:`#f87171`},"field-placeholder":{light:`#626d8b`,dark:`#84848d`},"field-placeholder-disabled":{light:`#7a8197`,dark:`#71717a`},"field-text":{light:`#252f4a`,dark:`#fafafa`},"field-text-disabled":{light:`#7a8197`,dark:`#71717a`},"focus-ring":{light:`#4f46e5`,dark:`#7c7ce8`},"glass-badge":{light:`#ffffff`,dark:`#ffffff`},"glass-border":{light:`#ffffff73`,dark:`#ffffff73`},"glass-fill":{light:`#ffffff47`,dark:`#ffffff47`},info:{light:`#1b6ef5`,dark:`#60a5fa`},"info-soft":{light:`#e9f3ff`,dark:`#056ee92e`},"info-text":{light:`#0958d9`,dark:`#60a5fa`},link:{light:`#4f46e5`,dark:`#9292ee`},neutral:{light:`#f4f4f8`,dark:`#1f1f26`},"neutral-hover":{light:`#e9e9f0`,dark:`#2a2a33`},"neutral-text":{light:`#52525b`,dark:`#b4b4bb`},"offline-fill":{light:`#e82646`,dark:`#e82646`},"on-danger":{light:`#ffffff`,dark:`#0f0f1a`},"on-glass":{light:`#0f0f1a`,dark:`#0f0f1a`},"on-info":{light:`#ffffff`,dark:`#0f0f1a`},"on-neutral":{light:`#0f0f1a`,dark:`#fafafa`},"on-neutral-strong":{light:`#ffffff`,dark:`#0f0f1a`},"on-primary":{light:`#ffffff`,dark:`#0f0f1a`},"on-scrim":{light:`#ffffff`,dark:`#ffffff`},"on-success":{light:`#ffffff`,dark:`#0f0f1a`},"on-surface-dark":{light:`#ffffff`,dark:`#ffffff`},"on-surface-dark-muted":{light:`#babdc7`,dark:`#babdc7`},"on-warning":{light:`#0f0f1a`,dark:`#0f0f1a`},"online-fill":{light:`#04b440`,dark:`#04b440`},primary:{light:`#4f46e5`,dark:`#7c7ce8`},"primary-hover":{light:`#4338ca`,dark:`#9292ee`},"primary-pressed":{light:`#3730a3`,dark:`#a8a8f2`},"primary-soft":{light:`#e0e7ff`,dark:`#1f1f3d`},"primary-text":{light:`#4f46e5`,dark:`#8989ea`},"primary-wash":{light:`#4f46e514`,dark:`#7c7ce814`},"primary-wash-strong":{light:`#4f46e533`,dark:`#7c7ce833`},scrim:{light:`#0f0f1a80`,dark:`#000000a6`},skeleton:{light:`#ebedf3`,dark:`#1c1c26`},"skeleton-highlight":{light:`#f5f6fa`,dark:`#27272f`},success:{light:`#18864f`,dark:`#30c780`},"success-soft":{light:`#e8faee`,dark:`#04b4402e`},"success-text":{light:`#147042`,dark:`#30c780`},surface:{light:`#ffffff`,dark:`#1c1c26`},"surface-dark":{light:`#071437`,dark:`#071437`},"surface-dark-border":{light:`#2a3553`,dark:`#2a3553`},"surface-disabled":{light:`#f1f1f5`,dark:`#1c1c26`},"surface-hover":{light:`#0f0f1a0a`,dark:`#ffffff0d`},"surface-ink":{light:`#0b0e16`,dark:`#0b0e16`},"surface-inverse":{light:`#0f0f1a`,dark:`#fafafa`},"surface-pressed":{light:`#0f0f1a0f`,dark:`#ffffff14`},"surface-selected":{light:`#4f46e51a`,dark:`#7c7ce82e`},"switch-thumb":{light:`#ffffff`,dark:`#ffffff`},text:{light:`#252f4a`,dark:`#e2e2e2`},"text-body":{light:`#0f0f1a`,dark:`#fafafa`},"text-disabled":{light:`#b4b4bb`,dark:`#52525b`},"text-inverse":{light:`#ffffff`,dark:`#0f0f1a`},"text-muted":{light:`#52525b`,dark:`#b4b4bb`},"text-subtle":{light:`#62626b`,dark:`#919199`},thumb:{light:`#ffffff`,dark:`#3a3e49`},warning:{light:`#f59e0b`,dark:`#fbbf24`},"warning-soft":{light:`#fff8e6`,dark:`#dfa0002e`},"warning-text":{light:`#8f5c06`,dark:`#fbbf24`}},space:{"2xl":32,"3xl":48,"4xl":64,lg:16,md:12,none:0,sm:8,xl:24,xs:4,xxs:2},radius:{"2xl":18,"3xl":20,lg:14,md:10,none:0,pill:9999,sm:6,xl:20},shadow:{card:{x:0,y:2,blur:4,spread:0,color:`#0000000f`,elevation:2},drawer:{x:0,y:12,blur:24,spread:0,color:`#00000024`,elevation:12},elevated:{x:0,y:4,blur:8,spread:0,color:`#00000014`,elevation:4},modal:{x:0,y:12,blur:24,spread:0,color:`#00000024`,elevation:12},popover:{x:0,y:8,blur:16,spread:0,color:`#0000001a`,elevation:8}},font:{display:{family:`System`,fallback:``},mono:{family:`System`,fallback:``},ui:{family:`System`,fallback:``}},text:{"2xl":{size:24,weight:null},"3xl":{size:30,weight:null},"4xl":{size:36,weight:null},"5xl":{size:45,weight:null},"6xl":{size:57,weight:null},"7xl":{size:64,weight:null},"8xl":{size:72,weight:null},base:{size:15,weight:null},lg:{size:17,weight:null},sm:{size:13,weight:null},xl:{size:20,weight:null},xs:{size:11,weight:null}},leading:{body:1.4,display:1.2,heading:1.2}},manifest:{kind:`WeborityPhone`,library:{name:`@webority/mobile-ui`,version:`0.178.0`},rendererProtocolVersion:14,platform:`Phone`,kitModuleVersion:2,productKit:null,components:[{name:`Accordion`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the spoken label of the header; it defaults to the title.`},{name:`defaultExpanded`,type:`boolean`,required:!1,description:`The open state at first, when the accordion manages its own state.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks toggling and dims the title and chevron.`,default:!1},{name:`expanded`,type:`boolean`,required:!1,description:`The open state when the parent controls it; leave out to let the accordion manage its own state.`},{name:`icon`,type:`icon`,required:!1,description:`An optional icon drawn before the title.`},{name:`id`,type:`string`,required:!1,description:`Names the accordion inside an AccordionGroup, where it is required.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the skeleton placeholder in place of the accordion.`,default:!1},{name:`title`,type:`string`,required:!0,description:`The header text shown beside the chevron.`},{name:`variant`,type:`enum`,enum:[`card`,`plain`],required:!1,description:`A plain header row or an elevated card.`,default:`plain`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Hide secondary content behind a tappable header so a long screen stays short.`,`Show one open section at a time or several, by placing accordions inside an AccordionGroup.`],whenNot:[{text:`The content is needed to make the next decision.`,instead:`Show it inline in a Card.`},{text:`Switching between peer views of the same data.`,instead:`Use Tabs.`}],do:[{note:`Give every accordion a short, specific title that says what is inside.`,example:[{component:`Accordion`,props:{title:`Section one`},children:`Text of section one.`}]},{note:`Give each accordion in a group its own id.`,example:[{component:`AccordionGroup`,props:{},children:[{component:`Accordion`,props:{id:`shipping`,title:`Section one`},children:`Text of section one.`},{component:`Accordion`,props:{id:`returns`,title:`Section two`},children:`Text of section two.`}]}]}],dont:[{note:`Do not use a vague title such as More or Details.`,example:[{component:`Accordion`,props:{title:`More`},children:`Text of section one.`}]},{note:`Do not nest an accordion inside another accordion.`,example:[{component:`Accordion`,props:{title:`Section one`},children:[{component:`Accordion`,props:{title:`Section two`},children:`Text of section two.`}]}]}],a11y:[`The header is announced as a button with its expanded or collapsed state.`,`Set accessibilityLabel only when the title alone does not describe the action.`]}},{name:`AccordionGroup`,marker:null,acceptsChildren:!0,props:[{name:`allowMultiple`,type:`boolean`,required:!1,description:`When false, opening one accordion closes the others; when true, several stay open.`,default:!1},{name:`defaultExpandedKeys`,type:`array`,required:!1,description:`The ids of the accordions open at first, when the group manages its own state.`},{name:`expandedKeys`,type:`array`,required:!1,description:`The ids of the open accordions when the parent controls them.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Coordinate several accordions so opening one can close the others.`,`Keep the set of open sections in one place.`],whenNot:[{text:`There is a single accordion.`,instead:`Use Accordion on its own.`}],do:[{note:`Give every accordion inside the group a unique id.`,example:[{component:`AccordionGroup`,props:{defaultExpandedKeys:[`first`]},children:[{component:`Accordion`,props:{id:`first`,title:`First section`},children:`First section content.`},{component:`Accordion`,props:{id:`second`,title:`Second section`},children:`Second section content.`}]}]}],dont:[{note:`Do not also set expanded on an accordion inside a group.`,example:[{component:`AccordionGroup`,props:{defaultExpandedKeys:[`first`]},children:[{component:`Accordion`,props:{id:`first`,title:`First section`,expanded:!0},children:`First section content.`},{component:`Accordion`,props:{id:`second`,title:`Second section`},children:`Second section content.`}]}]}],a11y:[`Each accordion keeps its own button semantics; the group adds none.`]}},{name:`AmountSlider`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the slider.`},{name:`animationDuration`,type:`number`,required:!1,description:`The length in milliseconds of one digit roll; it defaults to the theme's normal duration.`},{name:`currency`,type:`string`,required:!0,description:`The ISO 4217 code of the amount; the symbol is drawn from it.`},{name:`defaultValue`,type:`number`,required:!1,description:`The amount at first, when the slider manages its own state.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks the slider and the input box.`,default:!1},{name:`max`,type:`number`,required:!1,description:`The largest amount.`,default:100},{name:`min`,type:`number`,required:!1,description:`The smallest amount.`,default:0},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the track and thumb.`},{name:`step`,type:`number`,required:!1,description:`The distance between selectable amounts.`,default:1},{name:`tone`,type:`enum`,enum:[`danger`,`primary`,`success`,`warning`],required:!1,description:`The colour of the filled track.`},{name:`units`,type:`enum`,enum:[`indian`,`international`],required:!1,description:`Whether the large amount reads in Thousand, Lakh and Crore or in Thousand, Million and Billion.`},{name:`value`,type:`number`,required:!1,description:`The amount when the parent controls it.`},{name:`variant`,type:`enum`,enum:[`bar`,`default`,`inset`,`minimal`],required:!1,description:`The look of the slider.`,default:`inset`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Pick an amount where both a rough drag and an exact entry make sense.`,`Show the amount in scaled units next to an exact editable figure.`],whenNot:[{text:`The value is not money or has only a few choices.`,instead:`Use Slider or SegmentedControl.`},{text:`The person must type a precise figure and never drag.`,instead:`Use Input or DecimalInput.`}],do:[{note:`Set min, max and step so every stop is a sensible amount.`,example:[{component:`AmountSlider`,props:{value:5e3,min:1e3,max:5e4,step:500,currency:`USD`,accessibilityLabel:`Amount`}}]}],dont:[{note:`Do not use a step so small that the thumb cannot land on a round figure.`,example:[{component:`AmountSlider`,props:{value:1234,min:0,max:1e4,step:1,currency:`USD`,accessibilityLabel:`Tiny step`}}]}],a11y:[`Set accessibilityLabel to say what the amount is for.`,`The input box carries its own label through labels.inputLabel.`]}},{name:`AnimatePresence`,marker:null,acceptsChildren:!0,props:[{name:`duration`,type:`number`,required:!1,description:`The animation length in milliseconds; it defaults to the theme's normal duration.`},{name:`preset`,type:`enum`,enum:[`fade`,`scale`,`slide-down`,`slide-up`],required:!1,description:`The shape of the enter and exit animation.`,default:`fade`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Animate a single conditional child in on mount and out on unmount.`,`Let a panel, banner or message finish its exit animation before it disappears.`],whenNot:[{text:`Animating rows inside a list.`,instead:`Use the list's own item layout animation.`}],do:[{note:`Pass the child only while it should be visible, such as a condition that is either the element or null.`,example:[{component:`AnimatePresence`,props:{preset:`fade`},children:`Visible content`}]}],dont:[{note:`Do not wrap several siblings; wrap one element.`,example:[{component:`AnimatePresence`,props:{preset:`fade`},children:[{component:`AnimatePresence`,props:{preset:`slide-up`},children:`Nested content`}]}]}],a11y:[`With the system Reduce Motion setting on, every preset fades instead of moving.`]}},{name:`AppBar`,marker:`AppBar`,acceptsChildren:!1,props:[{name:`divider`,type:`boolean`,required:!1,description:`Draws a hairline under the bar; off by default.`},{name:`elevated`,type:`boolean`,required:!1,description:`Draws a shadow under the bar, for content scrolled beneath it; ignored when the bar is transparent.`,default:!1},{name:`gutter`,type:`number`,required:!1,description:`The distance in points from the screen edge to the visible edge of the outermost glyph.`},{name:`height`,type:`number`,required:!1,description:`The bar height in points, without the top safe area; it overrides the variant height.`},{name:`leading`,type:`node`,required:!1,description:`Any element in the left slot, after the left action. On a tab screen with a large title, keep it icon-sized so it does not squeeze the title.`},{name:`leftAction`,type:`object`,fields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the button.`},{name:`dot`,type:`boolean`,required:!1,description:`Draws a small unread dot on the button.`},{name:`glyphSize`,type:`number`,required:!1,description:`The drawn width in points of a glyph larger than the 24 point icon, so the gutter lands on its edge.`},{name:`icon`,type:`icon`,required:!1,description:`The glyph of the button.`},{name:`label`,type:`string`,required:!1,description:`A text label used instead of the glyph.`}],required:!1,description:`The button at the left edge, drawn from an icon or a text label.`},{name:`rightActions`,type:`array`,itemFields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the button.`},{name:`badge`,type:`stringOrNumber`,required:!1,description:`A count or short text drawn on the button; zero draws nothing.`},{name:`dot`,type:`boolean`,required:!1,description:`Draws a small unread dot on the button.`},{name:`glyphSize`,type:`number`,required:!1,description:`The drawn width in points of a glyph larger than the 24 point icon, so the gutter lands on its edge.`},{name:`icon`,type:`icon`,required:!1,description:`The glyph of the button.`},{name:`label`,type:`string`,required:!1,description:`A text label used instead of the glyph.`},{name:`menu`,type:`array`,required:!1,description:`The items of the menu the button opens; such a button has no onPress.`},{name:`menuTitle`,type:`string`,required:!1,description:`A short heading over the menu's items; also the menu's accessible name.`}],required:!1,description:`The buttons at the right edge, in order.`},{name:`subtitle`,type:`string`,required:!1,description:`A second line under the title.`},{name:`title`,type:`string`,required:!1,description:`The bar title.`},{name:`titleAlignment`,type:`enum`,enum:[`center`,`left`],required:!1,description:`Aligns the title and subtitle to the left or the centre.`,default:`left`},{name:`titleOffset`,type:`number`,required:!1,description:`The exact space in points between the left slot and the title.`},{name:`titleVariant`,type:`string`,required:!1,description:`The text style of the title, a Text variant name or a variant the theme registers.`},{name:`trailing`,type:`node`,required:!1,description:`Any element in the right slot, after the right actions.`},{name:`transparent`,type:`boolean`,required:!1,description:`Removes the background and the bottom line, for hero or tinted layouts.`,default:!1},{name:`variant`,type:`enum`,enum:[`compact`,`default`,`large`],required:!1,description:`The bar height and title weight.`,default:`default`}],itemsTakeAction:[`rightActions`],takesAction:[`leftAction`],source:`@webority/mobile-ui`,role:`navigation`,usage:{when:[`Put a title, a back button and a few actions at the top of a screen.`,`Use the large variant for a top-level screen whose title collapses as the list scrolls.`],whenNot:[{text:`A search field is the main control of the screen.`,instead:`Use SearchBar.`},{text:`The page needs a custom header layout.`,instead:`Compose it with the leading and trailing slots before building a new header.`}],do:[{note:`Keep at most three actions on the right and give each an accessibility label.`,example:[{component:`AppBar`,props:{title:`Inbox`,rightActions:[{icon:`search`,accessibilityLabel:`Search messages`},{icon:`filter`,accessibilityLabel:`Filter messages`},{icon:`more`,accessibilityLabel:`More options`}]}}]},{note:`Use the compact variant on screens below the first level.`,example:[{component:`AppBar`,props:{title:`Settings`,variant:`compact`,rightActions:[{icon:`share`,accessibilityLabel:`Share profile`}]}}]}],dont:[{note:`Do not put long text in the title; it truncates.`,example:[{component:`AppBar`,props:{title:`Inbox messages from all your accounts and folders`,rightActions:[{icon:`search`,accessibilityLabel:`Search messages`},{icon:`filter`,accessibilityLabel:`Filter messages`},{icon:`more`,accessibilityLabel:`More options`}]}}]},{note:`Do not give an action neither an icon nor a text label.`,example:[{component:`AppBar`,props:{title:`Settings`,variant:`compact`,rightActions:[{accessibilityLabel:`Share profile`}]}}]}],a11y:[`Every action is at least 44 by 44 points and needs an accessibility label unless it has text.`,`The back arrow is announced as Back.`]}},{name:`AppIcon`,marker:`AppIcon`,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Set when the icon carries meaning on its own; decorative icons stay silent for screen readers.`},{name:`color`,type:`string`,required:!1,description:`A text role or tone name (such as tertiary, success or brand) or any colour value; it defaults to the primary text colour.`},{name:`name`,type:`icon`,required:!0,description:`The icon to draw, by name; add -iconsax to a curated name to draw the Iconsax glyph it shadows.`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`,`xl`,`xs`],required:!1,description:`A size name (14, 18, 22, 28 or 36 pixels) or an exact size in pixels.`,default:`md`},{name:`variant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The icon style; a name missing in a style falls back to linear.`,default:`linear`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Draw an icon from the design system's set by name, the same name as on the web.`,`Pick a style (linear, bold, broken, bulk, outline, twotone) to match the weight of the surrounding text.`],whenNot:[{text:`Showing a photo or a brand logo.`,instead:`Use Image or AuthedImage.`},{text:`The icon is the only content of a button.`,instead:`Use IconButton, which sets the touch size.`}],do:[{note:`Use one style across a screen.`,example:[{component:`AppIcon`,props:{name:`home`,variant:`linear`}},{component:`AppIcon`,props:{name:`search`,variant:`linear`}}]},{note:`Give an icon that stands alone an accessibility label.`,example:[{component:`AppIcon`,props:{name:`search`,accessibilityLabel:`Search`}}]}],dont:[{note:`Do not use an icon without text for an action nobody would recognise.`,example:[{component:`AppIcon`,props:{name:`radar`}}]},{note:`Do not mix icon styles in one toolbar.`,example:[{component:`AppIcon`,props:{name:`home`,variant:`linear`}},{component:`AppIcon`,props:{name:`search`,variant:`bold`}}]}],a11y:[`A decorative icon is hidden from screen readers; set accessibilityLabel when it carries meaning.`,`Colour is never the only signal; pair a coloured icon with text.`]}},{name:`AsyncBlock`,marker:null,acceptsChildren:!0,props:[{name:`empty`,type:`object`,required:!1,description:`The EmptyState of the empty state. Left out, it is titled with labels.emptyTitle.`},{name:`errorTitle`,type:`string`,required:!1,description:`The title of the error state.`,default:`That didn't load`},{name:`errorVariant`,type:`enum`,enum:[`default`,`offline`],required:!1,description:`Draws the error as a lost connection when offline; left out, an offline error picks it by itself.`},{name:`icon`,type:`node`,required:!1,description:`The icon of the error state. Left out, an offline error shows a cloud and any other error shows none.`},{name:`labels`,type:`object`,required:!1,description:`Override the built-in copy: emptyTitle, errorTitle, offlineTitle, retry.`},{name:`offlineTitle`,type:`string`,required:!1,description:`The title of the offline error state.`,default:`You're offline`},{name:`skeleton`,type:`node`,required:!1,description:`A placeholder shaped like the content; it falls back to a centred spinner.`},{name:`state`,type:`any`,required:!0,description:`The request's data state: loading, error (its error and retry), empty (its refresh) or data (its data and refresh).`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Wrap any screen section that fetches data so loading, error, empty and content each have one place.`,`Show a shaped skeleton while data loads so the layout does not jump.`],whenNot:[{text:`The data is already in memory and cannot fail.`,instead:`Render the content directly.`},{text:`A single button is busy.`,instead:`Use the loading state of that Button.`}],do:[{note:`Give the empty state a title that says what will appear and when.`,example:[{component:`Card`,props:{title:`No items yet`},children:`Invoices appear here once you raise one.`}]},{note:`Every error state has a retry: the query's retry runs from the error state's button.`,example:[{component:`Button`,props:{label:`Try again`}}]}],dont:[{note:`Do not show a raw server message; the error state shows the message of the ApiError it is given, so map it to a curated one first.`,example:[{component:`AsyncBlock`,props:{errorTitle:`That didn't load`,state:{status:`error`,error:{code:`SERVER`,message:`Network unreachable`}},labels:{retry:`Try again`}}}]},{note:`Do not leave loading on while showing content.`,example:[{component:`Card`,props:{loading:!0}}]}],a11y:[`The error and empty states are plain text, so screen readers read their title and description.`,`The state decides what is drawn: loading, error, empty or data, one at a time. Idle, a skipped query, draws nothing.`]}},{name:`AuthedImage`,marker:null,acceptsChildren:!1,props:[{name:`authenticated`,type:`boolean`,required:!1,description:`Attaches the stored sign-in token when no client is given, only for a relative address or one on the app's configured API address.`,default:!0},{name:`blurRadius`,type:`number`,required:!1,description:`Blurs the image by this radius in points.`},{name:`cacheKey`,type:`string`,required:!1,description:`Overrides the cache key derived from the address.`},{name:`contentFit`,type:`enum`,enum:[`contain`,`cover`,`fill`,`none`,`scale-down`],required:!1,description:`How the image fits its box, in expo-image's names.`},{name:`fadeDuration`,type:`number`,required:!1,description:`The cross-fade in milliseconds when the image appears.`},{name:`fallback`,type:`node`,required:!1,description:`Shown when no usable image exists.`},{name:`headers`,type:`object`,required:!1,description:`Extra request headers sent with the fetch.`},{name:`labels`,type:`object`,required:!1,description:`Text for the loading spinner and the failed-image box: loading, unavailable and unavailableNamed(name).`},{name:`placeholder`,type:`node`,required:!1,description:`Shown while the image loads.`},{name:`resizeMode`,type:`enum`,enum:[`center`,`contain`,`cover`,`repeat`,`stretch`],required:!1,description:`How the image fits its box, in React Native's names; contentFit wins when both are set.`},{name:`tintColor`,type:`string`,required:!1,description:`Paints the image in one colour, for a mask-like icon.`},{name:`ttlMs`,type:`number`,required:!1,description:`How long a cached image counts as fresh, in milliseconds.`,default:6048e5},{name:`uri`,type:`url`,required:!0,description:`The address of the image.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show an image that sits behind a sign-in, which the plain Image cannot fetch.`,`Cache the image on the device so it opens at once the next time.`],whenNot:[{text:`The image is public and needs no token.`,instead:`Use Image with a plain address.`},{text:`The image is a person's picture.`,instead:`Use Avatar.`}],do:[{note:`Give the image a fixed height or aspect ratio so the layout does not jump.`,example:[{component:`AuthedImage`,props:{uri:`https://picsum.photos/seed/webority/400/300`}}]},{note:`Pass a fallback for the case where the image cannot load.`,example:[{component:`AuthedImage`,props:{uri:`https://picsum.photos/seed/webority/400/300`,fallback:{component:`AppIcon`,props:{name:`user`}}}}]}],dont:[{note:`Do not set one cache key for different pictures.`,example:[{component:`AuthedImage`,props:{uri:`https://picsum.photos/id/10/400/300`,cacheKey:`shared-key`}},{component:`AuthedImage`,props:{uri:`https://picsum.photos/id/11/400/300`,cacheKey:`shared-key`}}]},{note:`Do not send the token to a public address; turn authenticated off.`,example:[{component:`AuthedImage`,props:{uri:`https://picsum.photos/seed/public/400/300`,authenticated:!0}}]}],a11y:[`Pass an accessibility label that describes the picture when it carries meaning.`,`A decorative image needs no label.`]}},{name:`Autocomplete`,marker:null,acceptsChildren:!1,props:[{name:`defaultValue`,type:`string`,required:!1,description:`The input text at first, when the field manages its own text.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks typing and selecting.`,default:!1},{name:`error`,type:`string`,required:!1,description:`An error message shown under the field. true shows the error state without a message.`},{name:`filterMode`,type:`enum`,enum:[`client`,`none`],required:!1,description:`Client filters the options here; none shows them as given, for search done on a server.`,default:`client`},{name:`helperText`,type:`string`,required:!1,description:`A hint shown under the field.`},{name:`label`,type:`string`,required:!1,description:`The field label.`},{name:`labels`,type:`object`,required:!1,description:`The dropdown copy: empty (nothing matches) and searching (the loading row). Missing keys keep their defaults.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner row in the dropdown, for results being fetched.`,default:!1},{name:`loadingText`,type:`string`,required:!1,description:`The text beside the loading spinner. Defaults to labels.searching.`},{name:`maxResults`,type:`number`,required:!1,description:`The most suggestions shown.`,default:8},{name:`minChars`,type:`number`,required:!1,description:`The number of characters typed before suggestions appear.`,default:1},{name:`options`,type:`array`,required:!0,description:`The candidate options to filter.`},{name:`placeholder`,type:`string`,required:!1,description:`The hint shown while the field is empty.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the field.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The input text when the parent controls it.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The look of the field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Let a person pick one item from a long list by typing, such as a country, a city or an assignee.`,`Search on a server by showing a loading row and the fetched options as they are.`],whenNot:[{text:`The list has only a few fixed choices.`,instead:`Use Select or SegmentedControl.`},{text:`The person may enter any text.`,instead:`Use Input.`}],do:[{note:`Set a label that names what is being chosen.`,example:[{component:`Autocomplete`,props:{label:`Country`,options:[`India`,`Indonesia`,`Ireland`],maxResults:8}}]},{note:`Use filterMode none and the loading state when results come from a server.`,example:[{component:`Autocomplete`,props:{label:`City`,options:[],filterMode:`none`,loading:!0,loadingText:`Searching...`}}]}],dont:[{note:`Do not show hundreds of suggestions; keep maxResults small.`,example:[{component:`Autocomplete`,props:{label:`Country`,options:[`India`,`Indonesia`,`Ireland`],maxResults:100}}]},{note:`Do not use it for a list a person would rather scroll.`,example:[{component:`Autocomplete`,props:{label:`Size`,options:[`Small`,`Medium`,`Large`]}}]}],a11y:[`The field keeps the Input semantics, so the label and error are read.`,`Selecting a suggestion closes the keyboard.`]}},{name:`Avatar`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken name; it defaults to the person's name followed by avatar.`},{name:`backgroundColor`,type:`string`,required:!1,description:`A colour for the initials disc that wins over tone.`},{name:`border`,type:`boolean`,required:!1,description:`Draws a 1 pt border inside the frame, with the picture inset by it.`,default:!1},{name:`color`,type:`string`,required:!1,description:`A colour for the initials that wins over tone.`},{name:`contentFit`,type:`enum`,enum:[`contain`,`cover`],required:!1,description:`How the picture fills the frame; contain shows all of it, with no fill behind it.`,default:`cover`},{name:`dimension`,type:`number`,required:!1,description:`Width and height in points; it wins over size.`},{name:`fontSize`,type:`number`,required:!1,description:`The initials font size in pixels; it wins over the size-based default.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the skeleton placeholder in place of the avatar.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The person's name, used for the initials and the fallback colour.`},{name:`placeholderIcon`,type:`icon`,required:!1,description:`Drawn in place of the initials when there is no picture and no name.`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The corner of a rounded avatar, from the radius tokens; left out, it keeps 22 percent of the side.`},{name:`shape`,type:`enum`,enum:[`circle`,`rounded`,`square`],required:!1,description:`The outline of the avatar.`,default:`circle`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`,`xs`],required:!1,description:`A size name: 24, 32, 48, 64 or 80 points.`,default:`md`},{name:`source`,type:`url`,required:!1,description:`The picture to draw; it falls back to initials when it fails to load or is left out.`},{name:`status`,type:`enum`,enum:[`away`,`busy`,`offline`,`online`,`pending`,`rejected`,`verified`],required:!1,description:`A presence dot, or a verified, pending or rejected ring; leave out to show nothing.`},{name:`statusPosition`,type:`enum`,enum:[`bottomRight`,`topRight`],required:!1,description:`The corner where the presence dot sits.`,default:`bottomRight`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`A theme colour for the initials disc; left out, the colour comes from the name.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Represent a person or an organisation with a picture, or with initials when there is none.`,`Show presence or an identity state with a dot or a ring.`],whenNot:[{text:`Showing any other picture.`,instead:`Use AuthedImage or Image.`},{text:`Showing several people together.`,instead:`Use AvatarGroup.`}],do:[{note:`Always pass name so the initials fallback and the spoken label work.`,example:[{component:`Avatar`,props:{name:`Ada Lovelace`,size:`md`}}]},{note:`Keep one size within a list.`,example:[{component:`Avatar`,props:{name:`Ada Lovelace`,size:`sm`}},{component:`Avatar`,props:{name:`Alan Turing`,size:`sm`}}]}],dont:[{note:`Do not rely on the dot colour alone to tell presence.`,example:[{component:`Avatar`,props:{size:`md`,status:`online`}}]},{note:`Do not set both tone and backgroundColor.`,example:[{component:`Avatar`,props:{name:`Ada Lovelace`,size:`md`,tone:`primary`,backgroundColor:`#3b82f4`}}]}],a11y:[`The spoken label is the name followed by avatar, with verified, pending verification or rejected added for the ring states.`,`A pressable avatar is announced as a button and keeps a touch area of at least 44 points.`]}},{name:`AvatarGroup`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the whole group.`},{name:`max`,type:`number`,required:!1,description:`The most avatars shown before the rest collapse into an overflow circle.`,default:4},{name:`overflowVariant`,type:`enum`,enum:[`count`,`plus`],required:!1,description:`Shows the overflow as a count such as +3 or as a plain plus.`,default:`count`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`,`xs`],required:!1,description:`A size name (24, 32, 48, 64 or 80 points), applied to every avatar.`,default:`md`},{name:`spacing`,type:`enum`,enum:[`loose`,`normal`,`tight`],required:!1,description:`How much the avatars overlap.`,default:`normal`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show the people on a task, chat or team as one overlapping stack.`,`Collapse the extra people into a count.`],whenNot:[{text:`Showing one person.`,instead:`Use Avatar.`},{text:`The person must be able to read every name.`,instead:`Use a list of ListItem rows.`}],do:[{note:`Set max so the stack fits the space it sits in.`,example:[{component:`AvatarGroup`,props:{max:2},children:[{component:`Avatar`,props:{name:`Alice`}},{component:`Avatar`,props:{name:`Bob`}}]}]}],dont:[{note:`Do not put anything but Avatar elements inside the group.`,example:[{component:`AvatarGroup`,props:{max:2},children:[{component:`Avatar`,props:{name:`Alice`}},`and others`]}]}],a11y:[`Set accessibilityLabel to say how many people the group holds.`,`The overflow circle is announced with its count.`]}},{name:`Badge`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the badge.`},{name:`accessible`,type:`boolean`,required:!1,description:`False hides the badge from screen readers, for a host that already announces the count.`,default:!0},{name:`anchor`,type:`enum`,enum:[`bottomLeft`,`bottomRight`,`topLeft`,`topRight`],required:!1,description:`The corner of the child where the badge sits.`,default:`topRight`},{name:`fill`,type:`enum`,enum:[`soft`,`solid`],required:!1,description:`Solid fills the pill with the tone; soft draws the tone's soft colour behind a semibold count in the tone.`,default:`solid`},{name:`invisible`,type:`boolean`,required:!1,description:`Hides the badge without removing it from the layout.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Shows the skeleton placeholder in place of the badge.`,default:!1},{name:`max`,type:`number`,required:!1,description:`The largest number shown before it reads as the maximum with a plus.`,default:99},{name:`pulse`,type:`boolean`,required:!1,description:`Pulses the badge to draw attention to something unread.`,default:!1},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The size of the badge.`,default:`sm`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the badge.`,default:`danger`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The count or short text; a number of zero or less draws nothing in the standard variant.`},{name:`variant`,type:`enum`,enum:[`dot`,`standard`],required:!1,description:`A pill with the value or a plain dot.`,default:`standard`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show a count or a status on its own, or on the corner of an icon, avatar or button.`,`Mark something unread with a dot or a pulsing badge.`],whenNot:[{text:`Showing a status with a word.`,instead:`Use StatusBadge.`},{text:`Showing a removable label.`,instead:`Use Chip.`}],do:[{note:`Use the danger tone only for things that need action, such as unread alerts.`,example:[{component:`Badge`,props:{value:3,tone:`danger`},children:[{component:`Button`,props:{label:`Alerts`}}]}]},{note:`Set max so a large count reads 99+ and stays small.`,example:[{component:`Badge`,props:{value:120,max:99},children:[{component:`Button`,props:{label:`Items`}}]}]}],dont:[{note:`Do not rely on the colour alone to carry the meaning.`,example:[{component:`Badge`,props:{variant:`dot`,tone:`danger`},children:[{component:`Button`,props:{label:`Alerts`}}]}]},{note:`Do not stack several badges on one element.`,example:[{component:`Badge`,props:{value:4,anchor:`topRight`},children:[{component:`Badge`,props:{variant:`dot`,tone:`success`,anchor:`bottomRight`},children:[{component:`Button`,props:{label:`Items`}}]}]}]}],a11y:[`Set accessibilityLabel to say what the count means, such as 4 unread messages.`,`Colour is never the only signal; the value or the label carries the meaning.`]}},{name:`Banner`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces what the banner is announced as. Leave it unset so the title, message and each button are read in turn.`},{name:`accessibilityRole`,type:`enum`,enum:[`alert`,`none`,`summary`],required:!1,description:`How a screen reader treats the banner. Alert announces it as it appears; summary and none are read in order.`,default:`alert`},{name:`actions`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The button text.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The button size. Medium is taller, with a 44 point touch target.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The button colour. Primary takes the banner colour, neutral the secondary text colour and every other tone its own colour.`},{name:`variant`,type:`enum`,enum:[`ghost`,`outline`,`solid`],required:!1,description:`The button style: filled, bordered or text only.`}],required:!1,description:`Buttons drawn under the message.`},{name:`animateMount`,type:`boolean`,required:!1,description:`Slides and fades the banner in when it first appears.`,default:!0},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows a close button.`,default:!1},{name:`icon`,type:`icon`,required:!1,description:`Replaces the built-in icon. Pass false to draw no icon.`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the placeholder shape instead of the content while data loads.`,default:!1},{name:`message`,type:`node`,required:!0,description:`The text of the banner. Plain text gets the built-in styling; a node is drawn as it is.`},{name:`open`,type:`boolean`,required:!1,description:`Shows or hides the banner. Hiding plays the exit animation first.`,default:!0},{name:`title`,type:`string`,required:!1,description:`A short heading above the message.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The kind of message, which sets its colour and icon.`,default:`neutral`},{name:`variant`,type:`enum`,enum:[`bar`,`tint`,`wash`],required:!1,description:`The look. Wash fills the banner with the tone's soft colour, with a small corner radius, no leading bar and a title in the tone's colour.`,default:`bar`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A message belongs to the whole screen or a section, such as an update, a warning or a saved state.`,`The message needs a visible place on the page and may offer one or two actions.`,`The person can dismiss it or leave it until it no longer applies.`],whenNot:[{text:`The message is a brief confirmation that should disappear on its own.`,instead:`Toast`},{text:`The person must answer before they can continue.`,instead:`Dialog`}],do:[{note:`Keep the message to one or two sentences and give the action a clear verb.`,example:[{component:`Banner`,props:{tone:`info`,message:`Version 2.4 is ready.`,actions:[{label:`Update`}]}}]}],dont:[{note:`Do not stack several banners on one screen. They compete and the important one gets lost.`,example:[{component:`Banner`,props:{tone:`warning`,message:`Several banners shown at once hide the one that matters.`}}]}],a11y:[`The alert role announces the banner as it appears, so use it only for something the person must hear now.`,`Without an accessibility label, a screen reader reads the title, the message and each button in turn.`]}},{name:`BarChart`,marker:null,acceptsChildren:!1,props:[{name:`color`,type:`string`,required:!1,description:`A single colour for every bar. It wins over the tone. It does not apply with series.`},{name:`data`,type:`array`,itemFields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces the spoken text of the bar.`},{name:`axisLabel`,type:`string`,required:!1,description:`A shorter label drawn under the bar. It defaults to the label.`},{name:`label`,type:`string`,required:!0,description:`The full name of the bar, read aloud and written in the callout.`},{name:`value`,type:`number`,required:!1,description:`The bar value, for a chart without series. A value below zero draws under the zero line.`},{name:`values`,type:`object`,required:!1,description:`With series: each series' value, by series key, in place of value.`}],required:!0,description:`The bars, left to right.`},{name:`defaultSelection`,type:`number`,required:!1,description:`The bar picked at the start when the chart keeps its own selection.`},{name:`height`,type:`number`,required:!1,description:`Height of the plot in points.`,default:160},{name:`label`,type:`string`,required:!1,description:`What the chart shows, read first by a screen reader.`},{name:`selection`,type:`number`,required:!1,description:`The picked bar, counted from 0, when the screen controls the selection.`},{name:`series`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!0,description:`The key of the series in each bar's values.`},{name:`label`,type:`string`,required:!0,description:`The series name, written in the legend and read aloud with its value.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the series. It defaults to the next of primary, info, success, warning, danger and neutral.`}],required:!1,description:`Stacks each bar into one segment per series, in this order, and adds a legend. Each bar then carries values instead of value.`},{name:`showValues`,type:`boolean`,required:!1,description:`Draws each bar's value on the bar. It is on by default when there are 7 bars or fewer.`},{name:`summary`,type:`string`,required:!1,description:`The main message in a sentence, shown while no bar is picked. It defaults to the highest bar.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the bars.`,default:`primary`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A dashboard shows a handful of values side by side, such as a count per day.`,`The main message can be written as one sentence under the chart.`,`Values may be negative and the zero line should stay visible.`],whenNot:[{text:`The values are a trend over many points.`,instead:`Sparkline`},{text:`The chart must show exact numbers for every point.`,instead:`a table of values`}],do:[{note:`Write a summary sentence that names the main message, so the chart reads without touching it.`,example:[{component:`BarChart`,props:{summary:`Approvals peaked on Thursday`,data:[{label:`Mon`,value:14},{label:`Thu`,value:31}]}}]}],dont:[{note:`Do not leave out the label and summary. A reader then has to guess what the bars mean.`,example:[{component:`BarChart`,props:{data:[{label:`Mon`,value:14},{label:`Thu`,value:31}]}}]}],a11y:[`A screen reader gets one adjustable element: swipe up or down to move from bar to bar, each read as its label and value.`,`The label names the chart and is read first.`]}},{name:`BottomNavigation`,marker:null,acceptsChildren:!1,props:[{name:`accessory`,type:`node`,required:!1,description:`A compact strip tied to the bar, such as a status line.`},{name:`activeTab`,type:`string`,required:!0,description:`The key of the active tab.`},{name:`border`,type:`boolean`,required:!1,description:`Draws a hairline border around the bar.`},{name:`centerAction`,type:`object`,fields:[{name:`color`,type:`string`,required:!1,description:`Fill of the circle.`},{name:`content`,type:`node`,required:!1,description:`Replaces the filled circle entirely with any node.`},{name:`gap`,type:`number`,required:!1,description:`Space between the button and the neighbouring tabs, in pixels.`},{name:`icon`,type:`icon`,required:!1,description:`The icon drawn in the filled circle. It defaults to add.`},{name:`iconColor`,type:`string`,required:!1,description:`Colour of the icon in the circle.`},{name:`iconSize`,type:`number`,required:!1,description:`Size of the icon in the circle in pixels.`},{name:`label`,type:`string`,required:!0,description:`The accessible name of the button. It is never drawn.`},{name:`lift`,type:`number`,required:!1,description:`How far the button rises above the centre of the row, in pixels.`},{name:`size`,type:`number`,required:!1,description:`Diameter of the filled circle in pixels.`}],required:!1,description:`A button in the middle of the bar that is not a tab.`},{name:`elevation`,type:`enum`,enum:[`card`,`drawer`,`elevated`,`modal`,`none`,`popover`],required:!1,description:`The shadow under the bar, as a shadow name or none.`},{name:`iconSize`,type:`number`,required:!1,description:`Size of every tab icon in pixels.`},{name:`indicatorPosition`,type:`enum`,enum:[`bottom`,`top`],required:!1,description:`Where the active line sits, for the variants that draw a line.`,default:`bottom`},{name:`indicatorRadius`,type:`stringOrNumber`,required:!1,description:`Corner radius of the active tab background in pixels, or the text auto to follow the bar.`,default:`auto`},{name:`labelMaxFontScale`,type:`number`,required:!1,description:`The largest text scale the tab label follows.`},{name:`marginHorizontal`,type:`number`,required:!1,description:`Space between the bar and the left and right screen edges, in pixels.`},{name:`marginVertical`,type:`number`,required:!1,description:`Space above and below the bar, in pixels.`},{name:`minimizeOnScroll`,type:`boolean`,required:!1,description:`Shrinks the bar to its icons while the person scrolls down and restores it on scroll up.`,default:!1},{name:`paddingHorizontal`,type:`number`,required:!1,description:`Space inside the bar between its edges and the tab row, in pixels.`},{name:`paddingVertical`,type:`number`,required:!1,description:`Space inside the bar above and below the tab row, in pixels.`},{name:`radius`,type:`stringOrNumber`,required:!1,description:`Corner radius of the bar in pixels, or the text pill for fully round ends.`},{name:`scrollDirection`,type:`enum`,enum:[`down`,`idle`,`up`],required:!1,description:`The scroll direction of the screen, read only when minimizeOnScroll is on.`,default:`idle`},{name:`showLabels`,type:`boolean`,required:!1,description:`Shows the text label under each icon. Expand only labels the active tab.`,default:!0},{name:`tabs`,type:`array`,itemFields:[{name:`activeIcon`,type:`icon`,required:!1,description:`The icon drawn while the tab is active.`},{name:`badge`,type:`stringOrNumber`,required:!1,description:`A number or text drawn on the tab. True draws a dot.`},{name:`icon`,type:`icon`,required:!0,description:`The tab icon, an icon name or any node.`},{name:`key`,type:`string`,required:!0,description:`A stable id for the tab.`},{name:`label`,type:`string`,required:!0,description:`The text under the icon and the accessible name of the tab.`},{name:`showLabel`,type:`boolean`,required:!1,description:`Draws this tab's label. False hides the text and keeps it as the accessible name.`}],required:!0,description:`The tabs, left to right.`},{name:`variant`,type:`enum`,enum:[`bubble`,`expand`,`floating`,`pill`,`solid`,`tile`,`underline`],required:!1,description:`The look of the bar.`,default:`pill`}],itemsTakeAction:[`tabs`],takesAction:[`centerAction`],source:`@webority/mobile-ui`,role:`navigation`,usage:{when:[`The app has three to five top-level places the person moves between often.`,`The bar should stay on screen so the person always knows where they are.`,`A badge should show unread or pending work on a tab.`],whenNot:[{text:`There are more than five destinations.`,instead:`Drawer`},{text:`The choices switch views inside one screen.`,instead:`Tabs`}],do:[{note:`Give every tab a short label, even when it also has an icon.`,example:[{component:`BottomNavigation`,props:{activeTab:`home`,tabs:[{key:`home`,label:`Home`,icon:`home`},{key:`inbox`,label:`Items`,icon:`sms`}]}}]}],dont:[{note:`Do not hide every label with no accessible name left on the tab.`,example:[{component:`BottomNavigation`,props:{showLabels:!1,activeTab:`home`,tabs:[{key:`home`,label:``,icon:`home`},{key:`inbox`,label:``,icon:`sms`}]}}]}],a11y:[`A tab's label is its accessible name, also when showLabel is false.`,`The bar stays expanded while a screen reader is on.`,`The centre action's label is its accessible name and is never drawn.`]}},{name:`BottomSheet`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the sheet for a screen reader.`},{name:`accessibilityViewIsModal`,type:`boolean`,required:!1,description:`Tells a screen reader to ignore what is behind the sheet.`},{name:`actions`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`Dims the action and blocks its press (a confirm waiting on a typed phrase, say).`},{name:`label`,type:`string`,required:!0,description:`The text drawn on the action button.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and blocks its press.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The color scheme of the action.`}],required:!1,description:`Action buttons drawn in the footer, above footer.`},{name:`actionsLayout`,type:`enum`,enum:[`auto`,`row`,`stacked`],required:!1,description:`How the actions are laid out: auto stacks them when a label wraps, row never stacks, stacked is a column of full-width buttons.`,default:`auto`},{name:`animateMount`,type:`boolean`,required:!1,description:`Slides the sheet up when it opens as it mounts. Off, it is drawn at its snap point at once.`,default:!0},{name:`enableBackdropPress`,type:`boolean`,required:!1,description:`Lets a tap on the scrim close the sheet. Back and Escape follow it.`,default:!0},{name:`enablePanDownToClose`,type:`boolean`,required:!1,description:`Lets a drag on the handle past the threshold close the sheet.`,default:!0},{name:`footer`,type:`node`,required:!1,description:`A fixed region at the bottom of the sheet, such as a row of buttons.`},{name:`header`,type:`node`,required:!1,description:`A fixed region between the handle and the content. It does not scroll.`},{name:`inline`,type:`boolean`,required:!1,description:`Off covers the whole screen in a native modal; on overlays the parent view.`,default:!1},{name:`keyboardBehavior`,type:`enum`,enum:[`none`,`shift`],required:!1,description:`How the sheet reacts to the keyboard. Shift rides up with it; none stays put.`,default:`shift`},{name:`labels`,type:`object`,fields:[{name:`close`,type:`string`,required:!1,description:`Names the scrim and the Escape action for a screen reader.`},{name:`dragHandle`,type:`string`,required:!1,description:`Names the drag handle for a screen reader.`}],required:!1,description:`Spoken labels for the sheet's own controls.`},{name:`open`,type:`boolean`,required:!0,description:`Whether the sheet is open. A dismissal by the person closes it; the parent sets this to false.`},{name:`presentation`,type:`enum`,enum:[`auto`,`dialog`,`sheet`],required:!1,description:`Sheet is full width at the bottom; dialog is centred; auto picks a dialog on a tablet.`,default:`sheet`},{name:`scrollEventThrottle`,type:`number`,required:!1,description:`How often the inner scroll view reports scrolling, in milliseconds. Used only with scrollable.`},{name:`scrollable`,type:`boolean`,required:!1,description:`Wraps the content in a vertical scroll view between the header and the footer.`,default:!1},{name:`snapIndex`,type:`number`,required:!1,description:`The snap point the sheet opens at, counted from 0.`},{name:`snapPoints`,type:`array`,required:!1,description:`The heights the sheet rests at: a number of points, a percentage such as 50%, or content to hug the content.`,default:[`content`]},{name:`title`,type:`string`,required:!1,description:`A heading drawn above the header, read as a heading by a screen reader.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A short task or a list of choices belongs on top of the current screen.`,`The person should be able to drag the sheet between a small and a tall height.`,`The content needs a fixed header or a fixed row of buttons.`],whenNot:[{text:`The person must answer one question before going on.`,instead:`Dialog`},{text:`The content is a full screen of its own.`,instead:`a new screen`}],do:[{note:`Use the content snap point so the sheet is as tall as what it holds.`,example:[{component:`BottomSheet`,props:{snapPoints:[`content`],inline:!0,open:!0}}]}],dont:[{note:`Do not set a snap point taller than the content needs. It leaves a large empty area.`,example:[{component:`BottomSheet`,props:{snapPoints:[`90%`],inline:!0,open:!0}}]}],a11y:[`Turning off backdrop press also turns off Back and Escape, so a sheet that must be answered stays open.`,`Set accessibilityLabel so a screen reader names the sheet when it opens.`]}},{name:`Button`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the control is used, read after its name by a screen reader.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces the label as the accessible name of the button.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the button.`,default:!1},{name:`fullWidth`,type:`boolean`,required:!1,description:`Stretches the button to the full width of its parent.`,default:!1},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The icon style for an icon given by name.`},{name:`label`,type:`string`,required:!0,description:`The label, and the accessible name of the button unless an accessibility label is set.`},{name:`labels`,type:`object`,required:!1,description:`Overrides the text the button draws for its own states. The loading key names the spinner.`},{name:`leftIcon`,type:`icon`,required:!1,description:`An icon before the title.`},{name:`leftIconBadge`,type:`boolean`,required:!1,description:`Draws the left icon inside its own disc at the left edge. Ignored on a link.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Disables the button and draws a spinner before the title.`,default:!1},{name:`rightIcon`,type:`icon`,required:!1,description:`An icon after the title.`},{name:`rounded`,type:`boolean`,required:!1,description:`Gives the button fully round ends.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`,`xs`],required:!1,description:`The size of the button.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour family of the button.`,default:`primary`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`The visual weight, heaviest first. Glass suits a button on a gradient or a photo.`,default:`solid`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person starts an action, such as saving, sending or adding.`,`One action on a screen is the main one and should stand out.`,`An action is in progress and the button should show it with a spinner.`],whenNot:[{text:`The control moves to another screen as part of the text.`,instead:`a link variant button`},{text:`The control toggles a setting on or off.`,instead:`Switch`}],do:[{note:`Label the button with a verb that says what happens.`,example:[{component:`Button`,props:{label:`Save changes`}}]}],dont:[{note:`Do not use several solid primary buttons side by side. Only one action is the main one.`,example:[{component:`Button`,props:{label:`Save`}},{component:`Button`,props:{label:`Send`}}]}],a11y:[`The label is the accessible name; set an accessibility label only when it should differ.`,"Pass the label as `label`.",`While loading, the button reports itself as disabled and busy.`]}},{name:`Calendar`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the calendar. It is read with the month heading.`},{name:`cellSize`,type:`number`,required:!1,description:`Fixed width and height of each day, at least 44. Unset, days share the width equally.`},{name:`disabledDates`,type:`array`,required:!1,description:`Days that cannot be picked, as ISO dates.`},{name:`locale`,type:`string`,required:!1,description:`The locale for month, weekday and day names.`,default:`en-IN`},{name:`marks`,type:`array`,itemFields:[{name:`date`,type:`string`,required:!0,description:`The marked day, as an ISO date.`},{name:`label`,type:`string`,required:!1,description:`What the day is, read aloud with the day. Without it the day reads Marked.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!0,description:`The dot colour.`}],required:!1,description:`Days drawn with a dot in their tone and read aloud with each day.`},{name:`maxDate`,type:`string`,required:!1,description:`The latest day that can be picked, as an ISO date.`},{name:`minDate`,type:`string`,required:!1,description:`The earliest day that can be picked, as an ISO date.`},{name:`month`,type:`string`,required:!1,description:`A day in the month shown, as an ISO date. Leave it out to let the calendar keep the month.`},{name:`selectionMode`,type:`enum`,enum:[`range`,`single`],required:!1,description:`Single picks one day; range picks a start and then an end.`,default:`single`},{name:`value`,type:`object`,fields:[{name:`end`,type:`string`,required:!1,description:`The last day of a range, as an ISO date. It is absent while a range is in progress.`},{name:`start`,type:`string`,required:!0,description:`The first day, as an ISO date.`}],required:!0,description:`The selection, or null when nothing is picked. Dates are written as ISO strings.`},{name:`weekStartsOn`,type:`enum`,enum:[0,1,6],required:!1,description:`The first weekday of the grid: 0 is Sunday, 1 is Monday and 6 is Saturday.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person picks one day or a range from a visible month, such as leave dates.`,`Closed days or events should show as marks on the days.`,`The grid should sit inside the page rather than in a sheet.`],whenNot:[{text:`The person picks a date from a form field.`,instead:`DatePicker`},{text:`The person picks a range from a form field.`,instead:`DateRangePicker`}],do:[{note:`Mark closed days so the person sees them before picking a range.`,example:[{component:`Calendar`,props:{selectionMode:`range`,marks:[{date:`2026-10-14`,tone:`danger`,label:`Closed`}]}}]}],dont:[{note:`Do not set a cell size below 44. The days become hard to tap.`,example:[{component:`Calendar`,props:{selectionMode:`single`,cellSize:30}}]}],a11y:[`Each marked day is read aloud with its label.`,`Days keep a touch target of at least 44 points.`,`Set accessibilityLabel so the calendar is named with its month heading.`]}},{name:`Card`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the control is used, read after its name by a screen reader.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the card for a screen reader.`},{name:`action`,type:`node`,required:!1,description:`A header action: a node is drawn as it is, or a label with a press handler draws a text action.`},{name:`bg`,type:`string`,required:!1,description:`The background: a background colour name (including primary-wash) or any colour value. It replaces the variant surface.`},{name:`collapsed`,type:`boolean`,required:!1,description:`The folded state, when the screen controls it.`},{name:`collapsedSummary`,type:`node`,required:!1,description:`Shown under the title while the card is folded.`},{name:`collapsible`,type:`boolean`,required:!1,description:`Draws a chevron in the header that folds the body and footer away.`,default:!1},{name:`contextMenu`,type:`object`,fields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the menu for a screen reader.`},{name:`backLabel`,type:`string`,required:!1,description:`The accessible name of a submenu's Back row.`},{name:`closeLabel`,type:`string`,required:!1,description:`The accessible name of the tap outside area.`},{name:`items`,type:`any`,required:!0,description:`The menu entries: a list of items, or a list of groups of items.`},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`top`],required:!1,description:`The preferred side of the pressed card.`},{name:`presentation`,type:`enum`,enum:[`auto`,`popover`,`sheet`],required:!1,description:`How the menu is drawn. Auto picks a sheet on a phone past seven items or with a description.`},{name:`preview`,type:`node`,required:!1,description:`What lifts over the dimmed screen while the menu is open.`},{name:`title`,type:`string`,required:!1,description:`A short heading over the items. It is also the accessible name of the menu.`},{name:`topActions`,type:`array`,itemFields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces the item text for a screen reader.`},{name:`checked`,type:`boolean`,required:!1,description:`Draws a check mark and reports the checked state.`},{name:`description`,type:`string`,required:!1,description:`A line under the label. Any description presents the menu as a sheet on a phone.`},{name:`destructive`,type:`boolean`,required:!1,description:`Draws the item in the error colour.`},{name:`detail`,type:`string`,required:!1,description:`Short trailing text, such as a count.`},{name:`disabled`,type:`boolean`,required:!1,description:`Marks the item as unavailable now.`},{name:`hidden`,type:`boolean`,required:!1,description:`Never shows the item.`},{name:`icon`,type:`icon`,required:!1,description:`A leading icon.`},{name:`key`,type:`string`,required:!0,description:`A stable id for the item.`},{name:`label`,type:`string`,required:!0,description:`The item text.`},{name:`submenu`,type:`array`,required:!1,description:`One level of items that replaces the list when this item is chosen.`}],required:!1,description:`Up to three icon actions in a row above the list.`},{name:`unavailable`,type:`enum`,enum:[`disable`,`hide`],required:!1,description:`Hide drops an unavailable item; disable shows it dimmed.`}],required:!1,description:`A long press menu. Every item is also a screen reader action on the card.`},{name:`defaultCollapsed`,type:`boolean`,required:!1,description:`The folded state at the start, when the card keeps its own.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses on an interactive card.`},{name:`elevation`,type:`enum`,enum:[`card`,`drawer`,`elevated`,`modal`,`none`,`popover`],required:!1,description:`The shadow under the card, as a shadow name or none.`,default:`card`},{name:`flex`,type:`number`,required:!1,description:`Share of the free space along the parent's main axis, as React Native flex. Unset, the card sizes to its content.`},{name:`footer`,type:`node`,required:!1,description:`A footer slot below the body.`},{name:`header`,type:`node`,required:!1,description:`A free header slot. When set it replaces the built-in header.`},{name:`headerActions`,type:`node`,required:!1,description:`Extra nodes drawn in the header row after the action.`},{name:`imageAspectRatio`,type:`number`,required:!1,description:`The width to height ratio of the card image.`},{name:`imageHeight`,type:`number`,required:!1,description:`Height of the card image in points.`,default:160},{name:`imageOverlay`,type:`node`,required:!1,description:`A node drawn over the card image.`},{name:`interactive`,type:`boolean`,required:!1,description:`Makes the whole card pressable.`,default:!1},{name:`lead`,type:`node`,required:!1,description:`A subtitle line under the title.`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the placeholder shape instead of the content while data loads.`,default:!1},{name:`padding`,type:`enum`,enum:[`lg`,`md`,`none`,`sm`,`xl`],required:!1,description:`The space inside the card.`,default:`md`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius, a theme radius token name.`,default:`lg`},{name:`separatorHeight`,type:`number`,required:!1,description:`Height of the bottom band of the flat variant. It defaults to a hairline.`},{name:`title`,type:`string`,required:!1,description:`The built-in header title, drawn as a heading. A custom heading goes in header.`},{name:`titleFont`,type:`enum`,enum:[`sans`,`serif`],required:!1,description:`The face of the title: the sans text face, or the serif display face.`,default:`sans`},{name:`variant`,type:`enum`,enum:[`elevated`,`filled`,`flat`,`outline`],required:!1,description:`The surface style of the card.`,default:`elevated`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Related content should read as one group, such as a summary, a record or a list item.`,`The group may need a header, a footer, an image or a menu.`,`The whole group should be pressable and lead somewhere.`],whenNot:[{text:`The content is a plain row in a list.`,instead:`ListItem`},{text:`The content only needs spacing.`,instead:`Box`}],do:[{note:`Give the card a title so the group has a name.`,example:[{component:`Card`,props:{title:`Account summary`}}]}],dont:[{note:`Do not nest cards inside cards. The surfaces and shadows pile up.`,example:[{component:`Card`,props:{title:`Outer`},children:[{component:`Card`,props:{title:`Inner`}}]}]}],a11y:[`Context menu items are also screen reader actions on the card.`,`Set accessibilityLabel on an interactive card so its purpose is announced.`]}},{name:`Carousel`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the carousel for a screen reader.`},{name:`autoPlay`,type:`boolean`,required:!1,description:`Advances the slides on a timer. It implies loop.`,default:!1},{name:`autoPlayInterval`,type:`number`,required:!1,description:`The time between slides when autoPlay is on, in milliseconds.`,default:4e3},{name:`data`,type:`array`,required:!0,description:`The slides. Each entry is handed to the slide renderer.`},{name:`defaultIndex`,type:`number`,required:!1,description:`The slide shown at the start when the carousel keeps its own position.`,default:0},{name:`index`,type:`number`,required:!1,description:`The slide shown, counted from 0, when the screen controls it.`},{name:`itemWidth`,type:`stringOrNumber`,required:!1,description:`Width of each slide in points, or the text screen for the width of the parent.`,default:`screen`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the placeholder shape instead of the slides while data loads.`,default:!1},{name:`loop`,type:`boolean`,required:!1,description:`Jumps back to the first slide after the last.`,default:!1},{name:`paginationStyle`,type:`enum`,enum:[`bars`,`dots`,`numbers`],required:!1,description:`The look of the pagination marks.`,default:`dots`},{name:`showPagination`,type:`boolean`,required:!1,description:`Draws the pagination marks under the slides.`,default:!0},{name:`showThumbnails`,type:`boolean`,required:!1,description:`Draws a strip of small thumbnails under the carousel.`,default:!1},{name:`spacing`,type:`number`,required:!1,description:`Horizontal space between slides, in points.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A few slides of the same kind share one place, such as promotions or photos.`,`The person swipes sideways and sees where they are in the set.`,`A slide strip should advance on its own, such as a banner rotation.`],whenNot:[{text:`The slides are steps of a first run flow.`,instead:`OnboardingPager`},{text:`The items are a long scrolling list.`,instead:`a list`}],do:[{note:`Keep the set short and show the pagination so the person knows more slides follow.`,example:[{component:`Carousel`,props:{data:[`One`,`Two`,`Three`],showPagination:!0}}]}],dont:[{note:`Do not auto play a carousel that holds text the person must read. The slide changes before they finish.`,example:[{component:`Carousel`,props:{data:[`One`,`Two`,`Three`],autoPlay:!0,autoPlayInterval:1e3}}]}],a11y:[`Set accessibilityLabel so a screen reader names the carousel.`,`Auto play pauses while the person drags and resumes after a short idle time.`]}},{name:`Checkbox`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the control is used, read after its name by a screen reader.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The accessible name of the checkbox. Needed when the label is a node.`},{name:`checked`,type:`boolean`,required:!1,description:`Whether the box is checked, when the screen controls it.`},{name:`defaultChecked`,type:`boolean`,required:!1,description:`Whether the box starts checked, when the checkbox keeps its own state.`},{name:`description`,type:`node`,required:!1,description:`A secondary line under the label and the helper text.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the checkbox.`,default:!1},{name:`error`,type:`string`,required:!1,description:`A string: an error line under the label, helper text and description, which also draws the box in the error colour. true shows the error state without a message.`},{name:`help`,type:`node`,required:!1,description:`A node beside the label, such as an info button. It is not part of the checkbox and does not toggle it.`},{name:`helperText`,type:`node`,required:!1,description:`A hint under the label.`},{name:`indeterminate`,type:`boolean`,required:!1,description:`Draws the mixed state, such as a select all box with some rows chosen.`,default:!1},{name:`label`,type:`node`,required:!1,description:`The text beside the box. A node label needs an accessibility label.`},{name:`shape`,type:`enum`,enum:[`circle`],required:!1,description:`circle draws a round box with the tick inside, for a task that is completed. Omit it for the square box.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the box.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the checked box.`,default:`primary`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person picks any number of options from a list.`,`A single yes or no needs to be saved with a form, such as accepting terms.`,`A parent box should show that only some of its rows are chosen.`],whenNot:[{text:`The person picks exactly one option.`,instead:`Radio`},{text:`The setting takes effect at once when changed.`,instead:`Switch`}],do:[{note:`Write the label so a checked box reads as a true statement.`,example:[{component:`Checkbox`,props:{checked:!0,label:`Email me a receipt`}}]}],dont:[{note:`Do not leave a checkbox with no label. The person cannot tell what it controls.`,example:[{component:`Checkbox`,props:{checked:!1}}]}],a11y:[`A node label needs an accessibility label, which becomes the screen reader name.`,`Pressing the help node beside the label does not toggle the checkbox.`]}},{name:`Chip`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the default accessibility label.`},{name:`count`,type:`stringOrNumber`,required:!1,description:'A figure after the label, drawn quieter than it (regular weight, caption size, tabular digits): "Open" with `count={4}`.'},{name:`disabled`,type:`boolean`,required:!1,description:`Disabled state.`,default:!1},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`Iconsax style for a leftIcon given as a name. Default linear.`},{name:`label`,type:`string`,required:!0,description:`Chip text.`},{name:`labels`,type:`object`,required:!1,description:`Announcement text for the close button; merged over the defaults.`},{name:`leftIcon`,type:`icon`,required:!1,description:`Icon before the label.`},{name:`loading`,type:`boolean`,required:!1,description:`When true, renders the component as its authored skeleton placeholder shape.`,default:!1},{name:`removeTestID`,type:`string`,required:!1,description:`Test id on the close button of a removable chip.`},{name:`selected`,type:`boolean`,required:!1,description:`Selected visual state.`,default:!1},{name:`selectionMode`,type:`enum`,enum:[`multiple`,`radio`,`single`],required:!1,description:`How a pressable chip announces itself.`,default:`single`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Size scale.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic color.`,default:`neutral`},{name:`variant`,type:`enum`,enum:[`outline`,`soft`,`solid`],required:!1,description:`Visual style.`,default:`soft`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A compact tag, optionally selectable or closable.`,`A compact pill for filters, tags, and selections.`],whenNot:[{text:`When the affordance is an action.`,instead:`Button`},{text:`For 2 to 4 short values in a single exclusive switch.`,instead:`SegmentedControl`},{text:`When options can wrap freely or be multi-select and the library should manage the selection state.`,instead:`ChoiceGroup`}],do:[{note:`Pass a string or number to count to render a figure after the label.`,example:[{component:`Chip`,props:{label:`Open`,count:4}}]}],dont:[{note:`Do not pass 0 to count if you want it hidden while loading.`,example:[{component:`Chip`,props:{label:`Open`,count:0}}]}],a11y:[`Announces as a radio, a checkbox, or a button depending on the selection mode.`,`Exposes a checked state for radio and multiple selection modes, and a selected state otherwise.`,`A radio chip adds vertical hit slop to reach a 44 point touch target.`]}},{name:`ChoiceGroup`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Accessible label for the group.`},{name:`description`,type:`node`,required:!1,description:`A line of text drawn above the options.`},{name:`descriptionLines`,type:`number`,required:!1,description:`Lines an option description may take in the card before it ends in an ellipsis.`,default:2},{name:`direction`,type:`enum`,enum:[`column`,`row`],required:!1,description:`Main axis of the option list.`,default:`row`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the whole group; per-option disabled still applies on top.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Drawn under the options in place of helperText. A boolean true marks the group invalid without text.`},{name:`fullWidth`,type:`boolean`,required:!1,description:`Stretch options equally along the main axis. Default true for an unwrapped row of cards, false otherwise; a chip hugs its content.`},{name:`gap`,type:`number`,required:!1,description:`Gap between options. Default theme.space.sm.`},{name:`helperText`,type:`node`,required:!1,description:`A hint drawn under the options; hidden while error is set.`},{name:`indicatorPosition`,type:`enum`,enum:[`leading`,`trailing`],required:!1,description:`Side of the card the radio dot sits on; the chip has no dot.`,default:`trailing`},{name:`label`,type:`node`,required:!1,description:`A label above the group, drawn like the other fields' labels; a string also names the group.`},{name:`labelLines`,type:`number`,required:!1,description:`Lines an option label may take in the built-in templates before it ends in an ellipsis. Unset means no limit.`},{name:`max`,type:`number`,required:!1,description:`Multiple mode only: most options that can be selected. At this count the unselected options are disabled.`},{name:`min`,type:`number`,required:!1,description:`Multiple mode only: fewest options that stay selected. Pressing a selected option at this count does nothing.`},{name:`options`,type:`array`,itemFields:[{name:`color`,type:`string`,required:!1,description:`Tints the default card's label, border, dot and selected fill; defaults to the primary colour.`},{name:`description`,type:`string`,required:!1,description:`A second line shown on the card only; the chip is label and icon alone.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables this option only.`},{name:`icon`,type:`icon`,required:!1,description:`Icon before the label: an AppIcon name drawn in the option's current ink and bold while selected, or a name and variant object, a render function or any node.`},{name:`label`,type:`string`,required:!0,description:`The text shown for the option and read aloud.`},{name:`testID`,type:`string`,required:!1,description:`A test selector put on this option's pressable.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value the group stores when this option is chosen.`}],required:!0,description:`The choices, in the ChoiceOption shape by default.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the label as required, as on the other fields.`},{name:`selectionMode`,type:`enum`,enum:[`multiple`,`single`],required:!1,description:`Single picks one option (radio); multiple toggles any number (checkbox). Defaults to single.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Density of the built-in templates: padding, font size, icon and dot.`,default:`md`},{name:`value`,type:`any`,required:!1,description:`The selected value when the parent controls it: one option's value, or a list of them when several can be chosen.`},{name:`variant`,type:`enum`,enum:[`card`,`chip`],required:!1,description:`Look of the built-in template: the bordered card or the icon-and-label chip.`,default:`card`},{name:`wrap`,type:`boolean`,required:!1,description:`Allow options to wrap onto multiple lines (swatch grids).`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Choosing one option from a short, fully visible set, such as a status or a plan.`,`Picking a role or filter where each choice has its own icon (the chip variant).`],whenNot:[{text:`The list is long and needs scrolling or search`,instead:`Select`},{text:`The options must join into one bar of segments that slides`,instead:`SegmentedControl`},{text:`The question is a single yes or no`,instead:`Checkbox`}],do:[{note:`Give each option a label and a value, and pass a default so one option starts selected.`,example:[{component:`ChoiceGroup`,props:{options:[{label:`Hot`,value:`Hot`},{label:`Warm`,value:`Warm`},{label:`Cold`,value:`Cold`}],value:`Hot`}}]}],dont:[{note:`Pass a single value in multiple mode; multiple mode takes an array of values.`,example:[{component:`ChoiceGroup`,props:{selectionMode:`multiple`,options:[{label:`Hot`,value:`Hot`},{label:`Warm`,value:`Warm`}],value:`Hot`}}]}],a11y:[`Single mode exposes a radiogroup of radio options; multiple mode exposes checkboxes with checked state and no radiogroup role.`,`Each option is read with its label, and a card reads its full description even when the text is cut short on screen.`,`A disabled group or option is announced as disabled and cannot be pressed.`]}},{name:`Composer`,marker:null,acceptsChildren:!1,props:[{name:`above`,type:`node`,required:!1,description:`Inside the bar, above the row: a banner or note that rides the keyboard too.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The text box's screen reader name, defaulting to the placeholder.`},{name:`autoFocus`,type:`boolean`,required:!1,description:`Focuses the text input when the component mounts.`},{name:`below`,type:`node`,required:!1,description:`Inside the bar, below the row: a disclaimer.`},{name:`canSend`,type:`boolean`,required:!1,description:`Decides whether send is enabled. Unset, send is enabled while the text is not empty. Pass true to allow a message with an attachment and no text.`},{name:`disabled`,type:`boolean`,required:!1,description:`Nothing can be typed or sent.`,default:!1},{name:`hint`,type:`string`,required:!1,description:`Read after the text box's name, never drawn: a hint a sighted person does not need.`},{name:`keyboardAware`,type:`boolean`,required:!1,description:`Rides the keyboard so the composer stays visible above it.`,default:!0},{name:`keyboardOffset`,type:`number`,required:!1,description:`How far below the bar the keyboard top starts: the bottom safe area inset plus anything under it.`},{name:`labels`,type:`object`,fields:[{name:`message`,type:`string`,required:!1,description:`The placeholder when no placeholder is given, defaulting to Message.`},{name:`send`,type:`string`,required:!1,description:`The send button's screen reader name, defaulting to Send.`}],required:!1,description:`Override the built-in copy: send and message.`},{name:`leading`,type:`node`,required:!1,description:`Before the box, e.g. an attach button.`},{name:`loading`,type:`boolean`,required:!1,description:`A reply is arriving: the person can type but not send. With onStop given, the send button shows a stop icon and calls onStop; without it, send shows a spinner.`,default:!1},{name:`maxLength`,type:`number`,required:!1,description:`The maximum number of characters the box accepts.`},{name:`maxLines`,type:`number`,required:!1,description:`The box grows to this many lines, then scrolls.`,default:5},{name:`placeholder`,type:`string`,required:!1,description:`The placeholder text shown while the box is empty.`,default:`Message`},{name:`ring`,type:`boolean`,required:!1,description:`Draws a ring on the box that moves between two theme colours, for a typing or loading state. Holds still under reduced motion.`,default:!1},{name:`safeArea`,type:`boolean`,required:!1,description:`Pad the bar for the bottom safe area, or turn off above a tab bar.`,default:!0},{name:`sendIcon`,type:`icon`,required:!1,description:`The icon of the send button.`,default:`send`},{name:`sendReveal`,type:`enum`,enum:[`always`,`onText`],required:!1,description:`onText shows the send button only while there is something to send or stop.`,default:`always`},{name:`stopLabel`,type:`string`,required:!1,description:`The stop button's screen reader name, shown while loading with onStop given.`,default:`Stop`},{name:`trailing`,type:`node`,required:!1,description:`Between the box and send, e.g. a microphone button.`},{name:`value`,type:`string`,required:!1,description:`Controlled draft text; leave unset and the composer keeps its own.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Provide the message input bar at the bottom of a chat screen.`,`Allow typing messages with an integrated send button and action slots.`,`Pair with MessageList to ride the keyboard automatically in a chat view.`],whenNot:[{text:`A single labelled field.`,instead:`Input`},{text:`A long form answer.`,instead:`Input with type textarea`}],do:[{note:`Turn off keyboardAware when placing the composer inside a sheet that already moves with the keyboard.`,example:[{component:`Composer`,props:{placeholder:`Message Asha`,keyboardAware:!1}}]}],dont:[{note:`Do not leave keyboardAware enabled inside a sheet that already moves with the keyboard.`,example:[{component:`Composer`,props:{placeholder:`Message Asha`,keyboardAware:!0}}]}],a11y:[`The text input accessibility label defaults to the placeholder text when accessibilityLabel is unset.`,`The send button accessibility label uses labels.send, which defaults to Send.`,`The send button reports its disabled or loading state to assistive technologies.`]}},{name:`Confetti`,marker:null,acceptsChildren:!1,props:[{name:`autoStart`,type:`boolean`,required:!1,description:`Fire automatically on mount.`,default:!1},{name:`colors`,type:`array`,required:!1,description:`Piece colours. Defaults to a vibrant set drawn from the theme palette.`},{name:`count`,type:`number`,required:!1,description:`Number of pieces.`,default:80},{name:`duration`,type:`number`,required:!1,description:`Base animation duration in ms, before speed scales it.`,default:2800},{name:`fadeOut`,type:`boolean`,required:!1,description:`Fade pieces out near the end.`,default:!0},{name:`origin`,type:`object`,fields:[{name:`x`,type:`number`,required:!0,description:`Horizontal origin coordinate.`},{name:`y`,type:`number`,required:!0,description:`Vertical origin coordinate.`}],required:!1,description:`Burst origin for 'pop'. Defaults to the centre of the container.`},{name:`physics`,type:`object`,fields:[{name:`drag`,type:`number`,required:!1,description:`Air resistance. Above 1 makes pieces give up their launch speed sooner.`},{name:`fallSpeed`,type:`number`,required:!1,description:`Steady falling speed once the launch speed is spent.`},{name:`spread`,type:`number`,required:!1,description:`Burst arc in degrees, for 'pop' and 'fireworks'. Ignored by 'rain'.`},{name:`velocity`,type:`number`,required:!1,description:`Launch speed. Above 1 throws pieces further from the origin.`}],required:!1,description:`Tune the preset's motion. Each value multiplies the preset's own.`},{name:`preset`,type:`enum`,enum:[`fireworks`,`pop`,`rain`],required:!1,description:`Which animation to run. 'pop' bursts open from the origin, rises, hangs, then floats down; 'rain' falls from the top edge; 'fireworks' fires several staggered bursts at random points.`,default:`pop`},{name:`recycle`,type:`boolean`,required:!1,description:"Loop continuously until `stop()` is called.",default:!1},{name:`shapes`,type:`array`,required:!1,description:`Which shapes appear. Defaults to a mix chosen per preset. Members: strip, square, circle, triangle, star, streamer.`},{name:`size`,type:`number`,required:!1,description:`Base piece size in px, varied ±40% per piece.`,default:10},{name:`speed`,type:`enum`,enum:[`fast`,`normal`,`slow`],required:!1,description:`Scales duration. Slow is 1.6x, fast is 0.6x.`,default:`normal`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Celebration moments such as an order confirmed or an achievement unlocked.`,`When a decorative burst should overlay the current screen without blocking interaction.`],whenNot:[{text:`An element entering or leaving the screen.`,instead:`AnimatePresence`},{text:`A quiet confirmation without a celebration.`,instead:`Toast`}],do:[{note:`Place Confetti last in the parent so it covers the area, and fire it through a ref or with autoStart.`,example:[{component:`Confetti`,props:{preset:`pop`,count:80,autoStart:!0}}]}],dont:[{note:`Do not rely on Confetti for layout space; it draws an absolute-fill overlay with no pointer events.`,example:[{component:`Confetti`,props:{preset:`pop`,recycle:!0}}]}],a11y:[`The burst is decorative and conveys no information.`,`Under reduced motion the animation stops and onComplete fires immediately.`]}},{name:`DatePicker`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the trigger.`},{name:`clearable`,type:`boolean`,required:!1,description:`Shows a clear button once a value is set.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the trigger field.`},{name:`disabledDates`,type:`array`,required:!1,description:`Single dates that cannot be picked.`},{name:`error`,type:`string`,required:!1,description:`Error message shown below the field; true shows the error state with no message.`},{name:`help`,type:`node`,required:!1,description:`Content drawn beside the label, outside the trigger, such as an info button.`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the field when used in trigger mode.`},{name:`inline`,type:`boolean`,required:!1,description:`Shows the calendar inline in the page instead of in a sheet.`,default:!1},{name:`label`,type:`string`,required:!1,description:`Field label when used in trigger mode.`},{name:`labels`,type:`object`,required:!1,description:`Override the built-in copy: title, confirm, cancel, dismiss, previousMonth, nextMonth, previousYears, nextYears, previousDecades, nextDecades, switchToYears, switchToDecades, year, decade.`},{name:`leftIcon`,type:`node`,required:!1,description:`Icon slot before the text, such as a calendar.`},{name:`locale`,type:`string`,required:!1,description:`Locale for month and weekday labels.`,default:`en-IN`},{name:`maxDate`,type:`string`,required:!1,description:`The latest date that can be picked.`},{name:`minDate`,type:`string`,required:!1,description:`The earliest date that can be picked.`},{name:`open`,type:`boolean`,required:!1,description:`Opens the calendar sheet when the parent controls it; leave out to use the built-in trigger field.`},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text when used in trigger mode.`},{name:`required`,type:`boolean`,required:!1,description:`Shows a required marker on the trigger label.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Size of the trigger field.`},{name:`title`,type:`string`,required:!1,description:`The heading of the calendar sheet.`,default:`Select Date`},{name:`trailing`,type:`node`,required:!1,description:`Slot at the end of the trigger, a chevron when left out.`},{name:`triggerLabels`,type:`object`,required:!1,description:`Copy for the trigger field: placeholder, selection, noSelection, clear. Separate from labels, which is the copy of the sheet.`},{name:`value`,type:`string`,required:!1,description:`The selected date.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`Visual style of the trigger field.`},{name:`weekStartsOn`,type:`enum`,enum:[0,1,6],required:!1,description:`First day of week, 0 is Sunday.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A modal calendar is needed with bounds and disabled dates.`,`A calendar with locale aware labels is required.`],whenNot:[{text:`A time needs to be picked.`,instead:`TimePicker`},{text:`A start and end date need to be picked.`,instead:`DateRangePicker`},{text:`An always visible month grid is needed.`,instead:`Calendar`}],do:[{note:`Omit the open prop to use trigger mode and let the component manage its own open state.`,example:[{component:`DatePicker`,props:{label:`Date of birth`,placeholder:`Select date`}}]}],dont:[{note:`Do not pass the open prop unless you need to own the open state externally with a custom trigger.`,example:[{component:`DatePicker`,props:{open:!0}}]}],a11y:[`The modal sheet traps focus for screen readers when open.`,`Day cells announce their full date and their selected or disabled states.`,`Under Reduce Motion the sheet fades in and out and day cells do not scale on press.`]}},{name:`DateRangePicker`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the trigger.`},{name:`clearable`,type:`boolean`,required:!1,description:`Shows a clear affordance in the trigger field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the trigger field.`},{name:`disabledDates`,type:`array`,required:!1,description:`Specific dates, as ISO 8601 dates, that cannot be picked.`},{name:`error`,type:`string`,required:!1,description:`An error message that replaces the helper text. true shows the error state without a message.`},{name:`help`,type:`node`,required:!1,description:`Content drawn beside the label, outside the trigger, such as an info button.`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown below the trigger field.`},{name:`label`,type:`string`,required:!1,description:`Label shown above the trigger field.`},{name:`labels`,type:`object`,fields:[{name:`cancel`,type:`string`,required:!1,description:`Label of the cancel button.`,default:`Cancel`},{name:`confirm`,type:`string`,required:!1,description:`Label of the confirm button.`,default:`Confirm`},{name:`dismiss`,type:`string`,required:!1,description:`Screen-reader label of the backdrop that closes the sheet.`,default:`Dismiss`},{name:`title`,type:`string`,required:!1,description:`Heading shown at the top of the sheet.`,default:`Select Date Range`}],required:!1,description:`Copy of the sheet: title, confirm, cancel and dismiss. Unset keys use the defaults.`},{name:`leftIcon`,type:`node`,required:!1,description:`Icon slot before the text, such as a calendar or clock.`},{name:`locale`,type:`string`,required:!1,description:`Locale used to format dates in the grid and the range header.`,default:`en-IN`},{name:`marks`,type:`array`,itemFields:[{name:`date`,type:`string`,required:!0,description:`The day, as an ISO 8601 date.`},{name:`label`,type:`string`,required:!1,description:`What the day is, such as Closed; read aloud with the day.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!0,description:`Dot colour.`}],required:!1,description:`Days drawn on the grid with a dot and a label, such as a closed day or a pending request; see Calendar.`},{name:`maxDate`,type:`string`,required:!1,description:`Selection bound: days after this date cannot be picked, as an ISO 8601 date.`},{name:`maxRange`,type:`number`,required:!1,description:`Cap on the selected range length, in days.`},{name:`minDate`,type:`string`,required:!1,description:`Selection bound: days before this date cannot be picked, as an ISO 8601 date.`},{name:`open`,type:`boolean`,required:!1,description:`Opens the range sheet when the parent controls it; leave out to use the built-in trigger field.`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the trigger field when no range is set.`},{name:`required`,type:`boolean`,required:!1,description:`Shows a required marker on the trigger field.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Size of the trigger field.`},{name:`title`,type:`string`,required:!1,description:`Heading shown at the top of the sheet; overrides labels.title.`},{name:`trailing`,type:`node`,required:!1,description:`Slot at the end, a chevron when left out.`},{name:`triggerLabels`,type:`object`,required:!1,description:`Copy for the field (placeholder, selection, noSelection, clear), apart from labels, which is the sheet copy.`},{name:`value`,type:`object`,fields:[{name:`end`,type:`string`,required:!0,description:`End day of the range, as an ISO 8601 date, or null.`},{name:`start`,type:`string`,required:!0,description:`Start day of the range, as an ISO 8601 date, or null.`}],required:!0,description:`The chosen range, from a start day to an end day.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`Visual treatment of the trigger field.`},{name:`weekStartsOn`,type:`enum`,enum:[0,1,6],required:!1,description:`First weekday of the grid: 0 Sunday, 1 Monday, 6 Saturday.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Pick a start day and an end day as one range, such as the dates of a stay or a leave request.`,`Confirm a range in one step inside a sheet, with an optional cap on its length.`],whenNot:[{text:`Picking a single day.`,instead:`DatePicker`},{text:`Showing a month grid that stays on screen.`,instead:`Calendar`},{text:`Picking a time of day.`,instead:`TimePicker`}],do:[{note:`Set maxRange when a range has a limit, such as a 14-day leave cap, so a longer pick restarts from the new tap.`,example:[{component:`DateRangePicker`,props:{label:`Leave`,weekStartsOn:1,maxRange:14}}]}],dont:[{note:`Do not use it for one day; a single day belongs in DatePicker.`,example:[{component:`DateRangePicker`,props:{label:`Day`}}]}],a11y:[`Marked days are read aloud with their label, such as Closed.`,`A range longer than maxRange is rejected with a warning haptic, and the selection restarts from the tapped day.`,`The picker opens as a modal sheet that screen readers treat as modal; Cancel, Dismiss or a drag down from the title closes it.`]}},{name:`DateSeparator`,marker:null,acceptsChildren:!1,props:[{name:`date`,type:`string`,required:!1,description:`The day to name.`},{name:`emphasis`,type:`boolean`,required:!1,description:`Draws the text and rules in the brand colour, for an unread divider.`,default:!1},{name:`label`,type:`string`,required:!1,description:`Draws this text instead of a day, e.g. "New messages" above the first unread.`},{name:`labels`,type:`object`,fields:[{name:`today`,type:`string`,required:!1,description:`The label for today, defaulting to Today.`},{name:`yesterday`,type:`string`,required:!1,description:`The label for yesterday, defaulting to Yesterday.`}],required:!1,description:`Custom relative day labels, defaulting to Today and Yesterday.`},{name:`now`,type:`string`,required:!1,description:`The reference for Today and Yesterday.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Separate groups of chat messages by day in a message list.`,`Draw an unread divider line above the first unread message with label and emphasis.`],whenNot:[{text:`A heading above a block of content.`,instead:`SectionHeader`},{text:`Separating days inside MessageList where the list already inserts separators.`,instead:`MessageList day grouping`}],do:[{note:`Pass either date for a day divider or label with emphasis for an unread messages divider.`,example:[{component:`DateSeparator`,props:{date:`2026-10-11T09:00:00Z`}}]}],dont:[{note:`Do not pass both date and label together, because label overrides date.`,example:[{component:`DateSeparator`,props:{date:`2026-10-11T09:00:00Z`,label:`Today`}}]}],a11y:[`The date is plain text, as on the web chat, so a conversation has no heading per day.`,`The centred text element is announced directly to assistive technologies.`]}},{name:`DecimalInput`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the field. When left out, the label is used, or the placeholder when there is no label.`},{name:`action`,type:`object`,fields:[{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses. The button is also disabled whenever the field is.`},{name:`icon`,type:`icon`,required:!1,description:`Icon drawn before the button label.`},{name:`label`,type:`string`,required:!0,description:`The button's text.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the button's spinner and blocks presses.`},{name:`tone`,type:`enum`,enum:[`danger`,`neutral`,`primary`,`secondary`,`success`,`warning`],required:!1,description:`Button tone.`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Button variant.`}],required:!1,description:`A button beside the field box, for a Verify, Apply or Look up action on what was typed.`},{name:`allowExponent`,type:`boolean`,required:!1,description:`Allow exponent notation such as 1e-5.`,default:!1},{name:`decimals`,type:`number`,required:!1,description:`Most fraction digits kept after the point.`},{name:`disabled`,type:`boolean`,required:!1,description:`Dims the field out and blocks editing.`,default:!1},{name:`error`,type:`node`,required:!1,description:`A string or a node puts the field in the error state and replaces the helper; true shows the error state without a message.`},{name:`help`,type:`node`,required:!1,description:`Drawn beside the static label, right after it and centred on its line, such as a glossary info button.`},{name:`helperText`,type:`node`,required:!1,description:`A string or a node, shown below the field when there is no error.`},{name:`label`,type:`node`,required:!1,description:`A string, or a node for a symbol with a subscript. A node label needs an explicit accessibilityLabel.`},{name:`labelMode`,type:`enum`,enum:[`float`,`top`],required:!1,description:`top keeps the static label above the field. float uses a floating label that rises to the top border on focus.`},{name:`leftIcon`,type:`icon`,required:!1,description:`Leading slot: an icon name such as user, a name and variant object, a render function or a node.`},{name:`max`,type:`number`,required:!1,description:`A keystroke or paste that would pass this is refused; a figure already past it can still be edited down.`},{name:`maxLength`,type:`number`,required:!1,description:`Character limit passed to the text input.`},{name:`min`,type:`number`,required:!1,description:`Lower bound, refused the same way as max.`},{name:`multiline`,type:`boolean`,required:!1,description:`React Native's own prop, the same as type textarea.`,default:!1},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text shown while the field is empty.`},{name:`prefix`,type:`node`,required:!1,description:`Fixed text drawn before the value in the leading slot, such as a currency symbol or a country code.`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius of the field box, a theme radius name, overriding the size's radius.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Selectable and focusable but not editable. Unlike disabled, the field is not dimmed.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`rightIcon`,type:`icon`,required:!1,description:`Trailing slot, same contract as leftIcon.`},{name:`secureTextEntry`,type:`boolean`,required:!1,description:`React Native's own prop: masks the value without the eye toggle.`,default:!1},{name:`showCounter`,type:`boolean`,required:!1,description:`Renders a character counter below the field when maxLength is set. Set false for fields that cap input without advertising it.`,default:!0},{name:`showPasswordToggle`,type:`boolean`,required:!1,description:`Setting this alone also puts the field in password mode, the same as type password.`,default:!1},{name:`signed`,type:`boolean`,required:!1,description:`Allow one leading minus. Numeric keyboard.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Field height, padding and font size.`,default:`md`},{name:`symbol`,type:`node`,required:!1,description:`The quantity's symbol, drawn in the prefix box before the value.`},{name:`type`,type:`enum`,enum:[`input`,`password`,`textarea`],required:!1,description:`One switch for the behaviour set: input for single-line text, password for a masked value with an eye toggle, textarea for multi-line text.`,default:`input`},{name:`unit`,type:`string`,required:!1,description:`A fixed unit drawn after the value in the trailing slot, such as km, % or /month.`},{name:`value`,type:`number`,required:!1,description:`The figure as a number. Null and undefined show an empty field.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The field's look. When left out, the theme's field variant is used, and outlined when the theme sets none.`},{name:`whole`,type:`boolean`,required:!1,description:`Digits only. Number-pad keyboard.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The figure can be empty or half-typed while the person types, such as 12. or a lone minus.`,`The value is a measurement, a tolerance or an amount the person types, not a count changed by steps.`],whenNot:[{text:`The value changes by taps and is never empty or half-typed.`,instead:`NumberInput`},{text:`The field takes free text rather than a figure.`,instead:`Input`}],do:[{note:`Give the figure a label, and a symbol or unit so the number has a meaning.`,example:[{component:`DecimalInput`,props:{label:`Length`,symbol:`L`,unit:`m`,max:500}}]}],dont:[{note:`Do not use it for a stepper quantity. Use NumberInput when the value is changed by steps.`,example:[{component:`DecimalInput`,props:{label:`Quantity`,whole:!0,max:10}}]}],a11y:[`Every figure needs a label. A symbol or unit alone does not name the field.`,`A comma before exactly three digits, such as 2,500, shows the unclearComma label as the field error, which a screen reader announces.`,`readOnly keeps the figure focusable and announced. disabled greys it out and drops it from the focus order.`]}},{name:`Descriptions`,marker:null,acceptsChildren:!1,props:[{name:`bordered`,type:`boolean`,required:!1,description:`Hairlines between rows.`,default:!1},{name:`columns`,type:`enum`,enum:[1,2],required:!1,description:`1 stacks label above value; 2 puts them side by side.`,default:1},{name:`items`,type:`array`,itemFields:[{name:`full`,type:`boolean`,required:!1,description:`Make this row span both columns.`},{name:`key`,type:`string`,required:!1,description:`React key.`},{name:`label`,type:`node`,required:!0,description:`A string renders as text.`},{name:`strong`,type:`boolean`,required:!1,description:`Draw a string value in the semibold weight.`},{name:`tone`,type:`enum`,enum:[`danger`,`disabled`,`info`,`inverse`,`link`,`primary`,`secondary`,`success`,`tertiary`,`textStrong`,`warning`],required:!1,description:`Colour of a string value: a text role, a semantic tone or a raw colour.`},{name:`value`,type:`node`,required:!1,description:"A string, a number or a list of those renders as text in the value's size, weight and colour (`strong`, `tone`)."}],required:!0,description:`The rows.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Row padding + font size.`,default:`md`},{name:`title`,type:`string`,required:!1,description:`Optional heading above the list.`},{name:`variant`,type:`enum`,enum:[`list`,`summary`],required:!1,description:`'list' (default) is the record-detail layout.`,default:`list`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Display read-only labelled facts and record details on a screen.`,`Show a compact summary table of key metrics with right-aligned values.`,`Present structured fields where missing values should read as no value rather than a broken row.`],whenNot:[{text:`The row is interactive or navigates to another screen.`,instead:`ListItem`},{text:`Displaying a single prominent headline metric or KPI.`,instead:`StatTile`}],do:[{note:`Leave missing or empty values undefined so the component renders the standard hyphen.`,example:[{component:`Descriptions`,props:{items:[{label:`Status`,value:`Active`},{label:`Paid on`}]}}]}],dont:[{note:`Do not pass placeholder strings like N/A for missing values.`,example:[{component:`Descriptions`,props:{items:[{label:`Status`,value:`Active`},{label:`Paid on`,value:`N/A`}]}}]}],a11y:[`A missing value renders a plain hyphen so a row is never blank to a screen reader.`,`Labels and textual values are read in natural order by screen readers.`]}},{name:`Dialog`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the alert region label.`},{name:`actions`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`Dims the action and blocks its press (a confirm waiting on a typed phrase, say).`},{name:`label`,type:`string`,required:!0,description:`The text drawn on the action button.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and blocks its press.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The color scheme of the action.`}],required:!1,description:`Ordered action buttons.`},{name:`actionsLayout`,type:`enum`,enum:[`auto`,`row`,`stacked`],required:!1,description:`How the actions are laid out: auto stacks them when a label wraps, row never stacks, stacked is a column of full-width buttons.`,default:`auto`},{name:`dismissOnAction`,type:`boolean`,required:!1,description:`Automatically close after an action fires.`,default:!0},{name:`icon`,type:`node`,required:!1,description:`Top icon.`},{name:`message`,type:`string`,required:!1,description:`Body text.`},{name:`open`,type:`boolean`,required:!0,description:`Controls whether the dialog is shown.`},{name:`title`,type:`string`,required:!1,description:`Headline.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic styling: tints the disc and draws its status mark.`,default:`neutral`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`For a confirm, alert or destructive dialog with action buttons.`,`When the user must explicitly choose an action to proceed.`],whenNot:[{text:`For content anchored to the bottom edge.`,instead:`BottomSheet`},{text:`For a menu or a longer form.`,instead:`Drawer`},{text:`For a message that needs no answer.`,instead:`Toast`}],do:[{note:`Use a warning or danger tone for destructive operations.`,example:[{component:`Dialog`,props:{open:!0,title:`Delete account?`,message:`This cannot be undone.`,tone:`danger`}}]}],dont:[{note:`Do not use the neutral tone for destructive operations.`,example:[{component:`Dialog`,props:{open:!0,title:`Delete account?`,message:`This cannot be undone.`}}]}],a11y:[`The dialog sets the alert role and its accessible name defaults to the title.`,`Dismissing the dialog delays action execution until after the native modal has dismissed.`,`You can override the accessible name using the accessibility label prop.`]}},{name:`Divider`,marker:null,acceptsChildren:!1,props:[{name:`color`,type:`string`,required:!1,description:`Line color; the theme border color when left out.`},{name:`inset`,type:`number`,required:!1,description:`Extra offset from the leading edge, to line up with an avatar or icon column.`,default:0},{name:`label`,type:`string`,required:!1,description:`Text drawn inline that splits the line in two; ignored on a vertical line.`},{name:`labelPosition`,type:`enum`,enum:[`center`,`end`,`start`],required:!1,description:`Where the label sits along the line.`,default:`center`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Direction of the line; a vertical line stretches to fill the height of its parent.`,default:`horizontal`},{name:`spacing`,type:`enum`,enum:[`lg`,`md`,`none`,`sm`],required:!1,description:`Margin around the line, vertical for a horizontal line and horizontal for a vertical one.`,default:`none`},{name:`thickness`,type:`number`,required:!1,description:`Line thickness in points.`,default:1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Separate groups of rows in a list or form.`,`Show an OR break between two paths with a short label.`],whenNot:[{text:`Spacing alone separates the content.`,instead:`Use gap or margin, not a line.`},{text:`A section needs a heading.`,instead:`SectionHeader`}],do:[{note:`Keep a label to a word or two.`,example:[{component:`Divider`,props:{label:`OR`}}]}],dont:[{note:`Do not put a sentence in the label; it is cut to one line.`,example:[{component:`Divider`,props:{label:`Or continue with your email address instead`}}]}],a11y:[`The line is decorative and hidden from screen readers, so never rely on it alone to show a grouping.`,`A label is read as plain text, so keep it meaningful.`]}},{name:`Drawer`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Name announced for the drawer panel; Drawer when left out.`},{name:`backdropOpacity`,type:`number`,required:!1,description:`Backdrop opacity from 0 to 1 when the drawer is fully open.`,default:.5},{name:`defaultOpen`,type:`boolean`,required:!1,description:`Initial visibility when the drawer manages its own state.`,default:!1},{name:`enableBackdropPress`,type:`boolean`,required:!1,description:`Allows a tap on the dimmed backdrop to dismiss the drawer.`,default:!0},{name:`enableSwipe`,type:`boolean`,required:!1,description:`Allows dragging the drawer toward its edge to dismiss it.`,default:!0},{name:`open`,type:`boolean`,required:!1,description:`Controlled open state; leave it out to let the drawer manage its own state.`},{name:`side`,type:`enum`,enum:[`bottom`,`left`,`right`,`top`],required:!1,description:`Edge the drawer slides in from.`,default:`left`},{name:`width`,type:`stringOrNumber`,required:!1,description:`Size along the slide axis, in points or as a percent string; 280 for left and right and 40% of the window height for top and bottom when left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A navigation menu or contextual actions that slide over the screen from an edge.`,`A settings or filter panel that keeps the page visible behind a dimmed backdrop.`],whenNot:[{text:`The surface is partial height and driven by its content.`,instead:`BottomSheet`},{text:`A short confirmation or choice.`,instead:`Dialog`}],do:[{note:`Give the drawer a close button at the foot.`,example:[{component:`ListItem`,props:{title:`Profile`,chevron:!0}},{component:`Button`,props:{label:`Close drawer`,variant:`outline`}}]}],dont:[{note:`Do not leave a drawer with no visible way to close it when swipe and backdrop dismissal are off.`,example:[{component:`ListItem`,props:{title:`Profile`,chevron:!0}}]}],a11y:[`The panel is announced with its accessibilityLabel, Drawer when left out, and the backdrop is a Close drawer button.`,`The rest of the screen is hidden from screen readers while the drawer is open.`]}},{name:`EmptyState`,marker:null,acceptsChildren:!1,props:[{name:`action`,type:`object`,fields:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What pressing the button does, spoken after the label.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label, when it differs from the text.`},{name:`label`,type:`string`,required:!0,description:`The button's text.`}],required:!1,description:`The main button under the message, filled in the primary colour.`},{name:`description`,type:`string`,required:!1,description:`Supporting copy under the title.`},{name:`fill`,type:`boolean`,required:!1,description:`Grows to fill the space it is given and centres its content; pass it as the empty component of a list.`,default:!1},{name:`icon`,type:`node`,required:!1,description:`Illustration or icon drawn in a circle above the title.`},{name:`secondaryAction`,type:`object`,fields:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What pressing the button does, spoken after the label.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label, when it differs from the text.`},{name:`label`,type:`string`,required:!0,description:`The button's text.`}],required:!1,description:`A second, quieter button beside the main one.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Icon size, type scale and vertical padding.`,default:`md`},{name:`title`,type:`string`,required:!0,description:`Headline message.`},{name:`variant`,type:`enum`,enum:[`block`,`inline`],required:!1,description:`Block is the centred block with room around it. Inline is one quiet centred caption line with the title only.`,default:`block`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A list, search or screen has no data yet and needs a clear next step.`,`A load failed and the screen shows a message with a retry action.`],whenNot:[{text:`Data is still loading.`,instead:`Skeleton`},{text:`A short passing message about an action.`,instead:`Toast`}],do:[{note:`Say what is missing and what to do about it.`,example:[{component:`EmptyState`,props:{title:`No orders yet`,description:`When you place an order it will show up here.`}}]}],dont:[{note:`Do not leave a bare title with no explanation.`,example:[{component:`EmptyState`,props:{title:`Empty`}}]}],a11y:[`Announced as a summary region, so write the title and description as plain sentences.`,`Put the meaning in the title and description, not in the icon.`]}},{name:`FilePicker`,marker:null,acceptsChildren:!1,props:[{name:`accept`,type:`array`,required:!1,description:`Accepted mime types, such as image/* or application/pdf; every type is accepted when left out.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the generated Attachments label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks picking and removing files and dims the trigger.`,default:!1},{name:`error`,type:`node`,required:!1,description:`External error shown under the field; it wins over validation errors.`},{name:`helperText`,type:`string`,required:!1,description:`Hint under the trigger, such as the file limits.`},{name:`maxFiles`,type:`number`,required:!1,description:`Most files that can be attached.`},{name:`maxSizeMB`,type:`number`,required:!1,description:`Largest size of one file in megabytes; bigger picks are rejected with an error.`},{name:`variant`,type:`enum`,enum:[`card`,`list`],required:!1,description:`card shows a dashed upload tile and a strip of thumbnails; list shows one row per file.`,default:`card`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A form needs photos or documents attached, with limits on count, size and type.`,`An edit screen shows files already uploaded beside new picks.`],whenNot:[{text:`The file only needs to be viewed.`,instead:`FileViewer`},{text:`The person picks one value from a short list.`,instead:`Select`}],do:[{note:`Show the limits in the helper text so a rejection is no surprise.`,example:[{component:`FilePicker`,props:{maxFiles:4,helperText:`Up to 4 files, max 100MB each.`}}]}],dont:[{note:`Do not set limits without telling the person.`,example:[{component:`FilePicker`,props:{maxFiles:4}}]}],a11y:[`The picker is announced as a button named Attachments with the file count; set accessibilityLabel to name the field.`,`Remove and retry controls carry their own labels.`]}},{name:`FileViewer`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Spoken name for the viewer.`},{name:`kind`,type:`enum`,enum:[`auto`,`image`,`pdf`],required:!1,description:`Whether the file is drawn as a PDF or as one zoomable picture. Auto reads the file name.`,default:`auto`},{name:`maxZoom`,type:`number`,required:!1,description:`Upper bound on pinch zoom, as a multiple of the page fitting the width.`,default:4},{name:`zoomEnabled`,type:`boolean`,required:!1,description:`Allows pinch, double tap zoom and panning while zoomed; off also resets any zoom.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Showing a PDF or a single picture inside the app, from a link or a saved file.`],whenNot:[{text:`The document is not a PDF.`,instead:`Open it with the system viewer.`},{text:`The files are a set of pictures to swipe through.`,instead:`ImageGallery`}],do:[{note:`Leave zoom on so small print stays readable.`,example:[{component:`FileViewer`,props:{}}]}],dont:[{note:`Do not turn zoom off for a dense document.`,example:[{component:`FileViewer`,props:{zoomEnabled:!1}}]}],a11y:[`Give the viewer an accessibilityLabel that names the document; without one it is not announced as a labelled element.`]}},{name:`FilterChipRow`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the radiogroup for screen readers, e.g. "Filter by status".`},{name:`bleed`,type:`number`,required:!1,description:`The page gutter in points.`,default:0},{name:`items`,type:`array`,itemFields:[{name:`count`,type:`stringOrNumber`,required:!1,description:`Shown after the label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables this chip only.`},{name:`key`,type:`string`,required:!0,description:`Stable id of the chip.`},{name:`label`,type:`string`,required:!0,description:`The text on the chip.`},{name:`testID`,type:`string`,required:!1,description:`A test selector put on this chip's pressable.`}],required:!0,description:`The chips to show in the row.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Size scale.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic color.`},{name:`value`,type:`string`,required:!0,description:`Key of the selected item.`},{name:`variant`,type:`enum`,enum:[`outline`,`soft`,`solid`],required:!1,description:`Visual style.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A scrolling horizontal row of single-choice filter chips above a list.`],whenNot:[{text:`To switch between entirely different views or tabs of a screen.`,instead:`Tabs`}],do:[{note:`Provide a unique key for each item and pass the currently selected key to value.`,example:[{component:`FilterChipRow`,props:{items:[{key:`active`,label:`Active`},{key:`inactive`,label:`Inactive`}],value:`active`}}]},{note:`Use the count field on an item to show the number of results for that filter.`,example:[{component:`FilterChipRow`,props:{items:[{key:`draft`,label:`Drafts`,count:2},{key:`published`,label:`Published`,count:15}],value:`draft`}}]}],dont:[{note:`Do not leave value empty; one item should always be selected by default.`,example:[{component:`FilterChipRow`,props:{items:[{key:`active`,label:`Active`},{key:`inactive`,label:`Inactive`}],value:``}}]},{note:`Do not put the count in the label string; use the count field so it is styled correctly.`,example:[{component:`FilterChipRow`,props:{items:[{key:`draft`,label:`Drafts (2)`},{key:`published`,label:`Published (15)`}],value:`draft`}}]}],a11y:[`Announces as a radiogroup of radios.`,`Use accessibilityLabel to name the group for screen readers.`]}},{name:`FloatingActionButton`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the button is pressed, read after its name by a screen reader.`},{name:`accessibilityLabel`,type:`string`,required:!0,description:`The name a screen reader reads for the button.`},{name:`bottomOffset`,type:`number`,required:!1,description:`The gap above the bottom edge, in points, before the safe area inset is added.`},{name:`collapsed`,type:`boolean`,required:!1,description:`Folds an extended button to its round icon, with the label fading out, and has no effect without a label.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the button.`,default:!1},{name:`hideOnScroll`,type:`boolean`,required:!1,description:`Slides the button off the bottom edge while isScrolling is true.`,default:!1},{name:`icon`,type:`icon`,required:!0,description:`The icon drawn in the button, sized by the button's size.`},{name:`isScrolling`,type:`boolean`,required:!1,description:`Whether the list behind the button is scrolling right now; wire it to your scroll handler.`,default:!1},{name:`label`,type:`string`,required:!1,description:`Text beside the icon; makes the button extended, a pill.`},{name:`loading`,type:`boolean`,required:!1,description:`Replaces the icon with a spinner and ignores presses, for an action already in flight.`,default:!1},{name:`position`,type:`enum`,enum:[`bottomCenter`,`bottomLeft`,`bottomRight`],required:!1,description:`The corner or edge of the screen the button is pinned to; leave it unset to place the button yourself.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The diameter of the round button.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour family of the button.`,default:`primary`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A screen has one main action that a person repeats often, such as adding an item.`,`The action has to stay reachable while the list behind it scrolls.`],whenNot:[{text:`The action is a confirmation or a submit inside a form or dialog.`,instead:`Button`}],do:[{note:`Use one button per screen for its main action, with a label that says what happens.`,example:[{component:`FloatingActionButton`,props:{label:`New item`,accessibilityLabel:`New item`}}]},{note:`Fold an extended button with collapsed while the list scrolls, so it covers fewer rows.`,example:[{component:`FloatingActionButton`,props:{label:`New item`,accessibilityLabel:`New item`,collapsed:!0}}]}],dont:[{note:`Do not put two buttons on one screen; the second competes with the first for attention.`,example:[{component:`FloatingActionButton`,props:{label:`New item`,accessibilityLabel:`New item`}},{component:`FloatingActionButton`,props:{label:`Import`,accessibilityLabel:`Import items`}}]},{note:`Do not set collapsed on a button with no label, because there is nothing to fold.`,example:[{component:`FloatingActionButton`,props:{accessibilityLabel:`New item`,collapsed:!0}}]}],a11y:[`The accessibility label names the button for a screen reader; set it to the action, not to the icon.`,`A collapsed button keeps its label as the accessible name, so a screen reader still hears what it does.`]}},{name:`FloatingActionButtonGroup`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The name a screen reader reads for the primary button.`,default:`Quick actions`},{name:`bottomOffset`,type:`number`,required:!1,description:`The gap above the bottom edge, in points, before the safe area inset is added.`},{name:`defaultExpanded`,type:`boolean`,required:!1,description:`Whether the group starts expanded when it is not controlled by expanded.`,default:!1},{name:`expanded`,type:`boolean`,required:!1,description:`Whether the actions are expanded. Set it to control the group; leave it unset to let the group track its own state.`},{name:`hideOnScroll`,type:`boolean`,required:!1,description:`Slides the whole group off the bottom edge while isScrolling is true, and closes it first.`,default:!1},{name:`isScrolling`,type:`boolean`,required:!1,description:`Whether the list behind the group is scrolling right now; wire it to your scroll handler.`,default:!1},{name:`position`,type:`enum`,enum:[`bottomCenter`,`bottomLeft`,`bottomRight`],required:!1,description:`The corner or edge of the screen the group is pinned to.`,default:`bottomRight`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The diameter of the primary button and of the action buttons.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A screen has one main task that offers two to six related actions, such as creating an item of several kinds.`,`The actions have to stay reachable while the list behind them scrolls.`],whenNot:[{text:`The screen has one action only; a single button does the job.`,instead:`FloatingActionButton`},{text:`The choices belong to a field or a row, not to the screen.`,instead:`Menu`}],do:[{note:`Pin the group to a corner, where a thumb reaches it, and name it for what its actions create.`,example:[{component:`FloatingActionButtonGroup`,props:{accessibilityLabel:`Create`,position:`bottomRight`}}]},{note:`Set hideOnScroll so the group slides away while the list behind it scrolls.`,example:[{component:`FloatingActionButtonGroup`,props:{accessibilityLabel:`Create`,hideOnScroll:!0}}]}],dont:[{note:`Do not centre the group at the bottom of the screen, where it covers the buttons there.`,example:[{component:`FloatingActionButtonGroup`,props:{accessibilityLabel:`Create`,position:`bottomCenter`}}]},{note:`Do not leave hideOnScroll off on a long list, because the group then covers the rows as they scroll.`,example:[{component:`FloatingActionButtonGroup`,props:{accessibilityLabel:`Create`,hideOnScroll:!1}}]}],a11y:[`The accessibility label names the group for a screen reader, so set it to what the actions create, not to an icon.`,`The primary button announces whether the group is expanded, and each action reads its own accessibility label.`]}},{name:`ForceUpdateDialog`,marker:null,acceptsChildren:!1,props:[{name:`mandatory`,type:`boolean`,required:!1,description:`Hides the Later action and ignores backdrop and Back dismissal; use it for updates that must not be skipped.`,default:!1},{name:`message`,type:`string`,required:!1,description:`Dialog message.`,default:`A new version of the app is available. Please update to continue using the latest features and security improvements.`},{name:`open`,type:`boolean`,required:!0,description:`Whether the dialog is open.`},{name:`title`,type:`string`,required:!1,description:`Dialog title.`,default:`Update available`},{name:`updateFallbackUrl`,type:`string`,required:!1,description:`Address shown as a tappable link when the store cannot be opened; nothing extra shows when left out.`},{name:`updateUrl`,type:`string`,required:!1,description:`Address the Update action opens; the platform store when left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The installed version is too old and the person must move to the store version.`,`A newer version is out and the app offers it with a Later choice.`],whenNot:[{text:`A passing notice about something new.`,instead:`Banner`},{text:`Any other confirmation.`,instead:`Dialog`}],do:[{note:`Mark the update mandatory only when the old version cannot keep working.`,example:[{component:`ForceUpdateDialog`,props:{open:!0,mandatory:!0}}]}],dont:[{note:`Do not make an ordinary update mandatory; the person cannot dismiss it.`,example:[{component:`ForceUpdateDialog`,props:{open:!0,mandatory:!0,message:`A small colour tweak is available.`}}]}],a11y:[`Shown as a modal dialog: focus stays inside until it is dismissed, and a mandatory one cannot be dismissed.`,`Keep the message short and say why the update is needed.`]}},{name:`FormField`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the spoken label built from the label and the error.`},{name:`error`,type:`node`,required:!1,description:`Error message in the error color; it hides the helper text and marks the field invalid.`},{name:`help`,type:`node`,required:!1,description:`Drawn right after the label, such as an info button; not part of the label's spoken text.`},{name:`helperLines`,type:`number`,required:!1,description:`Lines the helper text and error may take before an ellipsis; no limit when left out or 0.`},{name:`helperText`,type:`node`,required:!1,description:`Hint under the input; hidden while an error shows.`},{name:`label`,type:`node`,required:!1,description:`Field label above the input, or left of it in the inline layout; a node label needs accessibilityLabel.`},{name:`layout`,type:`enum`,enum:[`inline`,`stacked`],required:!1,description:`stacked puts the label above the input; inline puts it on the left.`,default:`stacked`},{name:`required`,type:`boolean`,required:!1,description:`Adds the required marker after the label.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Wrap one input with a label, a helper or an error so every field in a form is laid out the same way.`,`Any input type: Input, Select, Switch or a date picker.`],whenNot:[{text:`The control already draws its own label and error.`,instead:`Use the control on its own.`},{text:`The form is wired with react-hook-form.`,instead:`HookFormField`}],do:[{note:`Say what to fix in the error, and keep the hint for what to enter.`,example:[{component:`FormField`,props:{label:`Email`,error:`Enter a valid email address.`},children:[{component:`Input`,props:{placeholder:`you@example.com`}}]}]}],dont:[{note:`Do not repeat the label as the placeholder.`,example:[{component:`FormField`,props:{label:`Email`},children:[{component:`Input`,props:{placeholder:`Email`}}]}]}],a11y:[`The field is announced as the label plus the error when one shows; a node label needs accessibilityLabel.`,`The error is read out when it appears, through a live region.`]}},{name:`HomeIndicator`,marker:`AppHomeIndicator`,acceptsChildren:!1,props:[{name:`os`,type:`enum`,enum:[`Ios`,`Android`],required:!0},{name:`colorMode`,type:`enum`,enum:[`light`,`dark`],required:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`},{name:`IconBadge`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Announces the badge as an image to screen readers; without it the badge is decorative.`},{name:`color`,type:`string`,required:!1,description:`A colour of your own for the fill tint and the icon; it wins over the tone.`},{name:`dimension`,type:`number`,required:!1,description:`The width and height of the circle in points; it wins over the size.`},{name:`fill`,type:`enum`,enum:[`halo`,`surface`,`tint`],required:!1,description:`The fill: a low tint, a stronger halo tint, or the surface colour as a seal.`,default:`tint`},{name:`icon`,type:`icon`,required:!0,description:`The icon to draw inside the badge.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The Iconsax style for the icon when given as a name.`,default:`linear`},{name:`pointerEvents`,type:`enum`,enum:[`auto`,`box-none`,`box-only`,`none`],required:!1,description:`Passed to the root view; "none" lets touches reach what sits under the badge.`},{name:`shape`,type:`enum`,enum:[`circle`,`squircle`],required:!1,description:`The outline: a full circle, or a smooth-cornered squircle drawn the same on both platforms.`,default:`circle`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the badge circle and its icon.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the tinted background and the icon.`,default:`primary`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Draw an icon on a circular surface tinted with the same colour.`],whenNot:[{text:`Providing a tappable icon action.`,instead:`Use IconButton.`}],do:[{note:`Give a standalone badge an accessibility label when it carries meaning.`,example:[{component:`IconBadge`,props:{icon:`user`,accessibilityLabel:`User profile`}}]},{note:`Use the danger tone to highlight an error or a critical warning.`,example:[{component:`IconBadge`,props:{icon:`alert-circle`,tone:`danger`,accessibilityLabel:`Error`}}]}],dont:[{note:`Do not leave a meaningful badge silent for screen readers.`,example:[{component:`IconBadge`,props:{icon:`user`}}]},{note:`Do not use the danger tone for a standard status or an informational icon.`,example:[{component:`IconBadge`,props:{icon:`user`,tone:`danger`,accessibilityLabel:`User profile`}}]}],a11y:[`A decorative badge is hidden from screen readers; set accessibilityLabel when it carries meaning.`,`Colour is never the only signal; pair a coloured badge with text.`]}},{name:`IconButton`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`Read after the name, never drawn: what the press does, for a control whose name alone is not enough.`},{name:`accessibilityLabel`,type:`string`,required:!0,description:`The accessible name of the button, required for an icon-only control.`},{name:`accessibilityState`,type:`object`,required:!1,description:`Accessibility state beyond the ones IconButton sets. Selected from here does not fill the button; only active does. The button's own disabled state wins over a caller's.`},{name:`active`,type:`boolean`,required:!1,description:`Draws the button filled regardless of the variant, as for an active nav tile.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the button.`,default:!1},{name:`icon`,type:`icon`,required:!0,description:`The icon the button draws, given by name or as an element.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The Iconsax style for the icon when it is given by name.`,default:`linear`},{name:`loading`,type:`boolean`,required:!1,description:`Replaces the icon with a spinner and disables the button.`,default:!1},{name:`shape`,type:`enum`,enum:[`circle`,`rounded`],required:!1,description:`The outline of the button.`,default:`circle`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The diameter of the button and the size of its icon.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour family of the button.`,default:`primary`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`outline`,`soft`,`solid`],required:!1,description:`The visual weight of the button, from a solid fill to no fill.`,default:`solid`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A single icon action that needs a clear touch target, such as a back or close control.`,`A navigation tile that is selected and should render filled.`],whenNot:[{text:`A button with a text label.`,instead:`Button`},{text:`A decorative icon with no action.`,instead:`AppIcon`},{text:`A floating action button over the main content.`,instead:`FloatingActionButton`}],do:[{note:`Always set an accessibility label so screen readers can announce the action.`,example:[{component:`IconButton`,props:{accessibilityLabel:`Close dialog`}}]},{note:`Use the outline variant for a quiet action beside stronger controls.`,example:[{component:`IconButton`,props:{accessibilityLabel:`Copy`,variant:`outline`,tone:`neutral`}}]}],dont:[{note:`Do not omit the accessibility label; an icon-only button is invisible to screen readers without it.`,example:[{component:`IconButton`,props:{variant:`solid`}}]},{note:`Do not use the danger tone for a standard destructive action without confirmation.`,example:[{component:`IconButton`,props:{accessibilityLabel:`Delete`,tone:`danger`}}]}],a11y:[`The accessibility label is the spoken name; without it the button has no accessible name.`,`The button announces itself as disabled when disabled or loading, with a disabled state.`,`The active state is exposed as selected for screen readers.`]}},{name:`IdleTimeoutDialog`,marker:null,acceptsChildren:!1,props:[{name:`open`,type:`boolean`,required:!0,description:`Shows the warning. True while the idle timer is in its warning phase.`},{name:`remainingMs`,type:`number`,required:!0,description:`Time left before sign-out, in milliseconds. Drawn as minutes and seconds.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A session is about to end for lack of activity and the person must choose to stay signed in or sign out.`],whenNot:[{text:`A message that needs no answer.`,instead:`Toast`}],do:[],dont:[],a11y:[`The dialog sets the alert role and its title is its accessible name.`,`The hardware back button does not answer the warning; only Stay signed in or Sign out does.`]}},{name:`ImageGallery`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the gallery for a screen reader.`},{name:`enableLightbox`,type:`boolean`,required:!1,description:`Opens a full screen view when the person taps a photo.`,default:!0},{name:`enablePinchZoom`,type:`boolean`,required:!1,description:`Lets the person pinch and double tap to zoom into a photo in the full screen view.`,default:!0},{name:`images`,type:`array`,required:!0,description:`The photos in order. Each entry holds a source, and may hold a caption and alt text.`},{name:`initialIndex`,type:`number`,required:!1,description:`The photo shown first, counted from 0.`,default:0},{name:`loading`,type:`boolean`,required:!1,description:`Draws the placeholder shape instead of the photos while data loads.`,default:!1},{name:`showCounter`,type:`boolean`,required:!1,description:`Draws a counter such as 2 / 5 over the photo.`,default:!0},{name:`showThumbnails`,type:`boolean`,required:!1,description:`Draws a strip of small thumbnails under the photo.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A short set of photos belongs together and the person looks through them in one place.`,`The person may need to zoom into a photo to see its detail.`],whenNot:[{text:`The items are slides of a banner or promotion that rotate on their own.`,instead:`Carousel`}],do:[{note:`Give each photo a caption so the person knows what it shows.`,example:[{component:`ImageGallery`,props:{images:[{source:{uri:`https://picsum.photos/seed/sunset/800/600`},caption:`Sunset`},{source:{uri:`https://picsum.photos/seed/coast/800/600`},caption:`Coast`}]}}]},{note:`Keep the full screen view on so the person can open each photo at full size.`,example:[{component:`ImageGallery`,props:{images:[{source:{uri:`https://picsum.photos/seed/harbor/800/600`},caption:`Harbor`},{source:{uri:`https://picsum.photos/seed/meadow/800/600`},caption:`Meadow`}],enableLightbox:!0}}]}],dont:[{note:`Do not leave out captions. Photos with no caption give the person no context.`,example:[{component:`ImageGallery`,props:{images:[{source:{uri:`https://picsum.photos/seed/sunset/800/600`}},{source:{uri:`https://picsum.photos/seed/coast/800/600`}}]}}]},{note:`Do not turn off the full screen view for photos the person must inspect. They cannot open them at full size.`,example:[{component:`ImageGallery`,props:{images:[{source:{uri:`https://picsum.photos/seed/harbor/800/600`},caption:`Harbor`},{source:{uri:`https://picsum.photos/seed/meadow/800/600`},caption:`Meadow`}],enableLightbox:!1}}]}],a11y:[`Set accessibilityLabel to name the gallery for a screen reader.`,`Each photo is announced by its alt text, or by its position in the set when it has no alt text.`]}},{name:`InlineSelect`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken name of the trigger for screen readers.`},{name:`chevronColor`,type:`string`,required:!1,description:`Color override for the chevron glyph.`},{name:`chevronSize`,type:`number`,required:!1,description:`Chevron size in pixels, falling back to the icon size of the chosen field size.`},{name:`color`,type:`string`,required:!1,description:`Color for the trigger text and chevron, falling back to the primary brand color.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks opening the sheet and dims the trigger.`,default:!1},{name:`label`,type:`string`,required:!1,description:`A label drawn above the trigger like a field label.`},{name:`options`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A supporting description line under the label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks selection of this option.`},{name:`icon`,type:`icon`,required:!1,description:`An icon drawn beside the option.`},{name:`label`,type:`string`,required:!0,description:`The text shown for the option.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value the option stands for.`}],required:!0,description:`The options to pick from, each with a label, a value and an optional icon, description or disabled flag.`},{name:`placeholder`,type:`string`,required:!1,description:`Trigger text shown when nothing is selected.`,default:`Select`},{name:`searchable`,type:`boolean`,required:!1,description:`Shows a search box above the option list in the sheet.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Density of the trigger text and chevron, matching the host field.`,default:`md`},{name:`title`,type:`string`,required:!1,description:`Heading shown at the top of the options bottom sheet.`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The selected option value.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A compact dropdown trigger inside a field prefix or suffix slot.`,`A borderless picker trigger in a toolbar or list header.`],whenNot:[{text:`The choice needs a full standalone field with its own border or multi selection.`,instead:`Select`}],do:[{note:`Provide a title so the sheet heading and spoken name describe the choice.`,example:[{component:`InlineSelect`,props:{options:[{label:`GBP`,value:`GBP`},{label:`USD`,value:`USD`}],value:`GBP`,title:`Currency`}}]},{note:`Turn on search when the list of options is long.`,example:[{component:`InlineSelect`,props:{options:[{label:`Bengaluru`,value:`blr`},{label:`Chennai`,value:`maa`},{label:`Berlin`,value:`ber`}],title:`City`,searchable:!0}}]}],dont:[{note:`Do not leave the trigger with no title or label to describe the choice.`,example:[{component:`InlineSelect`,props:{options:[{label:`GBP`,value:`GBP`},{label:`USD`,value:`USD`}],value:`GBP`}}]},{note:`Do not leave search off when the list of options is long.`,example:[{component:`InlineSelect`,props:{options:[{label:`Bengaluru`,value:`blr`},{label:`Chennai`,value:`maa`},{label:`Berlin`,value:`ber`}],title:`City`,searchable:!1}}]}],a11y:[`The trigger announces as a button with its label, selected value and expanded state.`,`Set title, label or accessibilityLabel so the trigger has a descriptive name for screen readers.`]}},{name:`Input`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the field. Without it the label text is used.`},{name:`autoCapitalize`,type:`enum`,enum:[`characters`,`none`,`sentences`,`words`],required:!1,description:`Which letters the keyboard capitalises automatically.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks editing and dims the field.`,default:!1},{name:`editable`,type:`boolean`,required:!1,description:`Whether the field accepts editing.`},{name:`error`,type:`node`,required:!1,description:`An error message that puts the field in the error state and replaces the helper text.`},{name:`help`,type:`node`,required:!1,description:`An info control drawn beside the static label. It is not part of the label's accessibility text.`},{name:`helperText`,type:`node`,required:!1,description:`Help text shown under the field.`},{name:`keyboardType`,type:`enum`,enum:[`decimal-pad`,`default`,`email-address`,`number-pad`,`numbers-and-punctuation`,`numeric`,`phone-pad`,`url`,`visible-password`],required:!1,description:`The keyboard layout shown while the field is focused.`},{name:`label`,type:`node`,required:!1,description:`The field label. A node label needs an explicit accessibilityLabel.`},{name:`labelMode`,type:`enum`,enum:[`float`,`top`],required:!1,description:`Where the label sits: permanently above the field, or floating inside it until focus.`,default:`top`},{name:`maxLength`,type:`number`,required:!1,description:`The most characters the field accepts.`},{name:`multiline`,type:`boolean`,required:!1,description:`Lets the value span several lines, the same as the textarea type.`,default:!1},{name:`placeholder`,type:`string`,required:!1,description:`Hint text shown while the field is empty.`},{name:`prefix`,type:`node`,required:!1,description:`Fixed text drawn before the value, such as a currency symbol or a country code.`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius of the field box, a theme radius name, overriding the size's radius.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value in normal ink and lets it be selected and copied, but not edited.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`returnKeyType`,type:`enum`,enum:[`default`,`done`,`emergency-call`,`go`,`google`,`join`,`next`,`none`,`previous`,`route`,`search`,`send`,`yahoo`],required:!1,description:`The label of the return key on the keyboard.`},{name:`secureTextEntry`,type:`boolean`,required:!1,description:`Masks the value without the eye toggle. The password type is the usual way to mask a field.`,default:!1},{name:`showCounter`,type:`boolean`,required:!1,description:`Shows the character count under the field when maxLength is set.`,default:!0},{name:`showPasswordToggle`,type:`boolean`,required:!1,description:`Adds the show and hide eye toggle to a masked field.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The field height and text size.`,default:`md`},{name:`type`,type:`enum`,enum:[`input`,`password`,`textarea`],required:!1,description:`The kind of field: single-line text, a masked password with an eye toggle, or a multi-line textarea.`,default:`input`},{name:`unit`,type:`string`,required:!1,description:`Fixed text drawn after the value, such as km or %.`},{name:`value`,type:`string`,required:!1,description:`The controlled text value.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The look of the field box.`,default:`outline`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The value is free text or a secret that the person types, such as a name, an email address or a password.`,`The field needs a visible label, an error message or a character limit.`],whenNot:[{text:`The value is a count or quantity that needs plus and minus buttons.`,instead:`NumberInput`}],do:[{note:`Give the field a visible label with label, so its name stays on screen once the person starts typing.`,example:[{component:`Input`,props:{label:`Email`,placeholder:`name@example.com`,keyboardType:`email-address`}}]},{note:`Set type to password for a secret: the value is masked and autocorrect and auto-capitalisation are turned off.`,example:[{component:`Input`,props:{label:`Password`,type:`password`}}]}],dont:[{note:`A placeholder alone disappears on the first key press, so the field loses its name.`,example:[{component:`Input`,props:{placeholder:`name@example.com`,keyboardType:`email-address`}}]},{note:`A plain text type shows a secret in clear text.`,example:[{component:`Input`,props:{label:`Password`,type:`input`}}]}],a11y:[`The field takes its screen reader name from accessibilityLabel, or from the label text when that is a string, and reads its error or helper text with it.`,`A password field keeps its value masked and names its eye toggle Show password or Hide password.`]}},{name:`KeyboardFrame`,marker:`AppKeyboardFrame`,acceptsChildren:!0,props:[{name:`colorMode`,type:`enum`,enum:[`light`,`dark`],required:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`},{name:`KeyboardToolbar`,marker:null,acceptsChildren:!1,props:[{name:`leading`,type:`node`,required:!1,description:`Custom content rendered between the nav chevrons and the Done button.`},{name:`showNavigation`,type:`boolean`,required:!1,description:`Show the prev/next chevrons.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Help users navigate between text inputs and easily dismiss the keyboard.`],whenNot:[{text:`The user is navigating between full screens.`,instead:`Use BottomNavigation.`}],do:[{note:`Use a clear and short label to dismiss the keyboard.`,example:[{component:`KeyboardToolbar`,props:{showNavigation:!0}}]},{note:`Hide the navigation chevrons when the screen has only one text input.`,example:[{component:`KeyboardToolbar`,props:{showNavigation:!1}}]}],dont:[{note:`Do not use a long phrase for the done label.`,example:[{component:`KeyboardToolbar`,props:{showNavigation:!0}}]},{note:`Do not show navigation chevrons when there are no other text inputs.`,example:[{component:`KeyboardToolbar`,props:{showNavigation:!0}}]}],a11y:[`The navigation chevrons have accessibility labels describing their action.`]}},{name:`ListItem`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the control is used, read after its name.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the row for a screen reader.`},{name:`checked`,type:`boolean`,required:!1,description:`The checked state, used only with selectable.`,default:!1},{name:`chevron`,type:`boolean`,required:!1,description:`A trailing chevron that indicates navigation.`,default:!1},{name:`description`,type:`string`,required:!1,description:`A short line of text under the subtitle.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the row.`,default:!1},{name:`divider`,type:`boolean`,required:!1,description:`A bottom hairline drawn under the row.`,default:!1},{name:`expanded`,type:`boolean`,required:!1,description:`Open or closed state of a row that shows or hides content below it, announced to screen readers. Leave it unset on a row that discloses nothing.`},{name:`icon`,type:`icon`,required:!1,description:`A leading icon in a tinted circle, when leading is not given.`},{name:`iconTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the icon circle.`,default:`primary`},{name:`leading`,type:`node`,required:!1,description:`A node in the leading slot; wins over icon when both are set.`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the skeleton placeholder instead of the content.`,default:!1},{name:`rightPlacement`,type:`enum`,enum:[`auto`,`below`,`side`],required:!1,description:`Where the trailing slot sits relative to the text column.`,default:`auto`},{name:`selectable`,type:`boolean`,required:!1,description:`Selection mode: the row becomes a checkbox and presses toggle it.`,default:!1},{name:`selected`,type:`boolean`,required:!1,description:`Highlights the row with the selected surface colour.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The row size, which sets padding and font scale.`,default:`md`},{name:`subtitle`,type:`node`,required:!1,description:`Subtitle text or any node drawn under the title.`},{name:`subtitleLines`,type:`number`,required:!1,description:`Lines a text subtitle may take before it is truncated; 0 for no limit.`,default:1},{name:`title`,type:`node`,required:!0,description:`The row title text, or any node drawn as is.`},{name:`titleLines`,type:`number`,required:!1,description:`Lines a text title may take before it is truncated; 0 for no limit.`,default:1},{name:`trailing`,type:`node`,required:!1,description:`A node drawn in the trailing slot, beside or below the text.`},{name:`variant`,type:`enum`,enum:[`list`,`menu`],required:!1,description:`The row look: list, or menu for a popup menu row (48 pt high, no press scale, announced as a menu item).`,default:`list`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A single row in a list that has a title, an optional subtitle and an optional trailing indicator.`,`The row may be selectable, pressable or swipeable, or show a leading icon.`],whenNot:[{text:`The content is a grouped card with a header, footer or image.`,instead:`Card`},{text:`The content is just a plain label or divider between sections.`,instead:`Text`}],do:[{note:`Keep the title short and give it a subtitle when the row needs identification.`,example:[{component:`ListItem`,props:{title:`Profile`,subtitle:`Account settings`}}]},{note:`Use the selectable mode with a subtitle for multi-choice lists.`,example:[{component:`ListItem`,props:{title:`Use dark mode`,subtitle:`Applies across the app`,selectable:!0,checked:!1}}]}],dont:[{note:`Do not put a sentence in the title; it overflows on a narrow phone.`,example:[{component:`ListItem`,props:{title:`This is a very long sentence that tries to describe everything about this item at once`}}]},{note:`Do not set both leading and icon; leading wins and hides the icon.`,example:[{component:`ListItem`,props:{title:`Profile`,leading:{component:`Text`,children:`X`},icon:`user`}}]}],a11y:[`A selectable row announces its checked state through the checkbox role.`,`Set accessibilityLabel on a navigation row so the screen reader names its destination.`]}},{name:`ListSection`,marker:null,acceptsChildren:!0,props:[{name:`action`,type:`object`,fields:[{name:`label`,type:`string`,required:!0,description:`The link text.`},{name:`testID`,type:`string`,required:!1,description:`A test selector on the link.`}],required:!1,description:`A link on the heading row, such as See all. It shows only when the section has a title.`},{name:`footer`,type:`string`,required:!1,description:`A muted caption drawn below the card.`},{name:`title`,type:`string`,required:!1,description:`The heading above the card, drawn in the caps heading style.`},{name:`variant`,type:`enum`,enum:[`elevated`,`filled`,`flat`,`outline`],required:!1,description:`The surface style of the card the rows sit on.`,default:`outline`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Several related rows form one group, such as account links or settings toggles.`,`The group needs a heading, a link on its heading or a caption under it.`],whenNot:[{text:`A single row with no group around it.`,instead:`ListItem`},{text:`Free content in a surface, not a list of rows.`,instead:`Card`}],do:[{note:`Pass ListItem rows as children; the dividers between them are drawn for you.`,example:[{component:`ListSection`,props:{title:`Account`},children:[{component:`ListItem`,props:{title:`Profile`,chevron:!0}},{component:`ListItem`,props:{title:`Security`,chevron:!0}}]}]}],dont:[{note:`Do not set divider on the rows; ListSection already draws the lines between them.`,example:[{component:`ListSection`,children:[{component:`ListItem`,props:{title:`Profile`,divider:!0}}]}]}],a11y:[`The title is exposed to screen readers as a header.`,`Each row keeps its own name and role from ListItem.`]}},{name:`LoaderOverlay`,marker:null,acceptsChildren:!1,props:[{name:`backdropColor`,type:`string`,required:!1,description:`The overlay dim colour; the themed scrim colour when left out.`},{name:`minVisibleMs`,type:`number`,required:!1,description:`Minimum milliseconds the overlay stays once shown, so it never flickers.`,default:400},{name:`showDelayMs`,type:`number`,required:!1,description:`Milliseconds to wait before the overlay appears, so a fast request never flashes it.`,default:150}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Block the whole screen while a request the user started is in flight, such as a save or a submit.`,`Stop a second tap during a short request that must finish before the user moves on.`],whenNot:[{text:`A wait inside one card or section while the rest of the screen stays usable.`,instead:`Spinner`}],do:[{note:`Keep the default delay so a fast request never flashes the overlay.`,example:[{component:`LoaderOverlay`,props:{showDelayMs:150}}]},{note:`Place it as the last child of the screen so it covers the whole page.`,example:[{component:`Screen`,props:{title:`Orders`},children:[{component:`LoaderOverlay`,props:{}}]}]}],dont:[{note:`Do not set the delay to 0; every quick request then flashes the overlay.`,example:[{component:`LoaderOverlay`,props:{showDelayMs:0}}]},{note:`Do not place it inside a card; the overlay then covers only that card.`,example:[{component:`Card`,props:{title:`Orders`},children:[{component:`LoaderOverlay`,props:{}}]}]}],a11y:[`While it is visible it blocks touches and announces its message, so pass a message that says what is loading.`,`The Android back key does nothing while it is visible, so a save cannot be left half done.`]}},{name:`Markdown`,marker:null,acceptsChildren:!0,props:[{name:`headings`,type:`enum`,enum:[`outline`,`text`],required:!1,description:`outline sizes each heading by its level; text draws every heading as bold body text.`,default:`outline`},{name:`links`,type:`enum`,enum:[`app`,`page`,`web`],required:!1,description:`web makes web and contact addresses pressable; app makes the links resolveLink maps pressable; page asks resolveLink about every address and opens only relative addresses and addresses on the site's own origin.`,default:`web`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the skeleton placeholder shape instead of the text while data loads.`,default:!1},{name:`selectable`,type:`boolean`,required:!1,description:`Makes every text block selectable so a person can select and copy it.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Display formatted read-only text such as release notes, announcements or help guides.`,`Render headings, bullet lists, inline code and links authored in markdown.`],whenNot:[{text:`Text that people can edit or compose.`,instead:`RichTextEditor`}],do:[{note:`Use markdown syntax to format headings, lists and emphasis.`,example:[{component:`Markdown`,props:{},children:[`### Updates
10
+ `);return{text:v,selection:mO({start:Math.max(h,t.start+g),end:t.end+_},v.length)}},yO=(e,t)=>{let n=e.text??``,r=mO(e.selection,n.length);return fO(t)?vO(n,r,t):t===`link`?_O(n,r):gO(n,r,cO[t])},bO={bold:`B`,italic:`I`,strikethrough:`S`,code:`</>`,link:`link`,heading1:`H1`,heading2:`H2`,bulletList:`•`,numberedList:`1.`,quote:`>`},xO=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading1`,`heading2`,`bulletList`,`numberedList`,`quote`],SO=160,CO=e=>{let{ref:t,value:n,onChangeText:r,placeholder:i,actions:a=xO,disabled:o=!1,loading:s=!1,minHeight:l=SO,autoFocus:u=!1,accessibilityLabel:d,haptic:f,labels:p,style:h,toolbarStyle:_,inputStyle:v,testID:y}=e,b=Ir(),x=m(()=>EO(b),[b]),S=Zm(`richTextEditor`,jm),C=m(()=>p?{...S,...p}:S,[S,p]),w=n??``,[T,E]=g({start:0,end:0}),[D,O]=g(!1),[k,A]=g(null),j=c(e=>{E(e.nativeEvent.selection),A(null)},[]),M=c(e=>{we(),A(null),r?.(e)},[r]),N=c(e=>{if(o)return;let t=ci(f,`selection`);t&&si(t);let n=yO({text:w,selection:mO(T,w.length)},e);E(n.selection),A(n.selection),r?.(n.text)},[o,f,r,T,w]);return s?G(TO,{actionCount:a.length,minHeight:l,style:h,testID:y}):K(V,{testID:y,style:[x.container,{borderColor:D?b.colors[`focus-ring`]:b.colors.border,opacity:o?.55:1},h],children:[G(V,{style:[x.toolbar,_],children:a.map(e=>G(wO,{action:e,label:C[e],disabled:o,onPress:N,styles:x,theme:b,testID:y?`${y}-${e}`:void 0},e))}),G(ee,{ref:t,value:w,onChangeText:M,onSelectionChange:j,onFocus:()=>O(!0),onBlur:()=>O(!1),selection:k??void 0,editable:!o,autoFocus:u,multiline:!0,textAlignVertical:`top`,placeholder:i,placeholderTextColor:b.colors[`text-subtle`],accessibilityLabel:d,style:[x.input,{minHeight:l},v],testID:y?`${y}-input`:void 0})]})},wO=({action:e,label:t,disabled:n,onPress:r,styles:i,theme:a,testID:o})=>{let s={color:n?a.colors[`text-disabled`]:a.colors[`text-body`],...e===`bold`?{fontWeight:a.weight.bold}:{},...e===`italic`?{fontStyle:`italic`}:{},...e===`strikethrough`?{textDecorationLine:`line-through`}:{}};return G(P,{onPress:()=>r(e),disabled:n,accessibilityRole:`button`,accessibilityLabel:t,accessibilityState:{disabled:n},"aria-disabled":n,hitSlop:4,...Zh(4),testID:o,style:({pressed:e})=>[i.button,{backgroundColor:e?a.colors[`surface-pressed`]:a.colors[`bg-subtle`]}],children:G($,{variant:`body`,maxFontSizeMultiplier:Math.min(a.settings.maxFontSizeMultiplier??1.5,1.5),style:[i.buttonLabel,s],children:bO[e]})})};wO.displayName=`RichTextEditorToolbarButton`;var TO=({actionCount:e,minHeight:t,style:n,testID:r})=>{let i=Ir(),a=m(()=>EO(i),[i]),o=Array.from({length:Math.max(1,e)},(e,t)=>t);return K(V,{testID:r,style:[a.container,n],children:[G(V,{style:a.toolbar,children:o.map(e=>G(vh,{width:34,height:30,radius:`sm`},e))}),K(V,{style:[a.skeletonBody,{minHeight:t}],children:[G(vh,{shape:`text`,width:`94%`,height:14}),G(vh,{shape:`text`,width:`100%`,height:14}),G(vh,{shape:`text`,width:`72%`,height:14})]})]})};TO.displayName=`RichTextEditorSkeleton`;var EO=e=>R.create({container:{borderWidth:e.size.border,borderColor:e.colors.border,borderRadius:e.radius.md,...ni,backgroundColor:e.colors.bg,overflow:`hidden`},toolbar:{flexDirection:`row`,flexWrap:`wrap`,alignItems:`center`,gap:e.space.xs,padding:e.space.xs,borderBottomWidth:R.hairlineWidth,borderBottomColor:e.colors[`border-subtle`],backgroundColor:e.colors[`bg-subtle`]},button:{minWidth:34,height:30,paddingHorizontal:e.space.xs,borderRadius:e.radius.sm,...ni,alignItems:`center`,justifyContent:`center`},buttonLabel:{...Rr(e,`medium`),fontSize:e.text.sm.size},input:{...Rr(e,`normal`),color:e.colors[`text-body`],fontSize:e.text.base.size,lineHeight:1.5*e.text.base.size,paddingHorizontal:e.space.md,paddingVertical:e.space.sm},skeletonBody:{paddingHorizontal:e.space.md,paddingVertical:e.space.sm,gap:e.space.sm}}),DO=260,OO=[{key:`tl`,style:{top:0,left:0,borderTopWidth:4,borderLeftWidth:4}},{key:`tr`,style:{top:0,right:0,borderTopWidth:4,borderRightWidth:4}},{key:`bl`,style:{bottom:0,left:0,borderBottomWidth:4,borderLeftWidth:4}},{key:`br`,style:{bottom:0,right:0,borderBottomWidth:4,borderRightWidth:4}}];function kO(e){Q(`ScannerOverlay`,`state`,e.state,[`scanning`,`found`,`invalid`,`noPermission`,`noCamera`]);let{children:t,state:n,helperText:r,labels:i,torch:a=!1,onTorchChange:o,onManualEntry:s,onGallery:c,onPermissionAction:l,frameSize:d=DO,haptic:f,style:p,testID:_,ref:v}=e,y=n??`scanning`,x=Ir(),S=xt(),C=Rn(),w=m(()=>AO(x),[x]),T=Zm(`scannerOverlay`,Mm),E=m(()=>({...T,...i}),[T,i]),D=r??E.hint,[O,k]=g({width:0,height:0}),[A,j]=g(0),M=y===`scanning`||y===`found`||y===`invalid`,N=h(Ht(1)).current,P=x.motion.duration.slower,F=x.motion.duration.default;u(()=>{if(N.setValue(1),C)return;let e;return y===`scanning`&&P>0?e=b.loop(b.sequence([b.timing(N,{toValue:1.03,duration:2*P,useNativeDriver:Vt}),b.timing(N,{toValue:1,duration:2*P,useNativeDriver:Vt})])):y===`found`&&F>0&&(N.setValue(1.08),e=b.timing(N,{toValue:1,duration:F,useNativeDriver:Vt})),e?.start(),()=>e?.stop()},[y,C,P,F,N]);let I=h(y);u(()=>{I.current!==y&&(I.current=y,!1!==f&&(y===`found`?si(`notificationSuccess`):y===`invalid`&&si(`notificationError`)))},[y,f]);let{found:L,invalid:z}=E,{noPermissionTitle:ee,noPermissionMessage:B}=E,{noCameraTitle:te,noCameraMessage:ne}=E;u(()=>{switch(y){case`scanning`:eh(D);break;case`found`:eh(L);break;case`invalid`:eh(z,{polite:!1});break;case`noPermission`:eh(`${ee}. ${B}`);break;case`noCamera`:eh(`${te}. ${ne}`)}},[y,D,L,z,ee,B,te,ne]);let H=Math.max(240,Math.min(d,O.width-2*x.space.xl)),re=(O.width-H)/2,U=Math.max(x.space.md,(O.height-A-H)/2),W=O.width>0&&O.height>0,ie={borderColor:y===`found`?x.colors.success:y===`invalid`?x.colors.danger:x.colors[`on-scrim`],width:32,height:32},q=y===`found`||y===`invalid`?G(V,{style:[w.pill,{backgroundColor:y===`found`?x.colors.success:x.colors.danger}],children:G($,{variant:`bodySmall`,weight:`semibold`,align:`center`,style:{color:y===`found`?x.colors[`on-success`]:x.colors[`on-danger`]},children:y===`found`?L:z})}):G($,{variant:`bodySmall`,align:`center`,style:{color:x.colors[`on-scrim`]},children:D}),J=M&&o!=null,Y=M?`glass`:`outline`;return K(V,{ref:v,testID:_,onLayout:e=>{let{width:t,height:n}=e.nativeEvent.layout;k(e=>e.width===t&&e.height===n?e:{width:t,height:n})},style:[w.root,!M&&{backgroundColor:x.colors.bg},p],children:[M?G(V,{style:R.absoluteFill,children:t}):null,M&&W?G(ae,{children:K(V,{pointerEvents:`none`,style:R.absoluteFill,accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:[G(V,{style:[w.scrim,{left:0,right:0,top:0,height:U}]}),G(V,{style:[w.scrim,{left:0,right:0,top:U+H,bottom:0}]}),G(V,{style:[w.scrim,{left:0,width:re,top:U,height:H}]}),G(V,{style:[w.scrim,{left:re+H,right:0,top:U,height:H}]}),G(b.View,{style:{position:`absolute`,left:re,top:U,width:H,height:H,transform:[{scale:N}]},children:OO.map(e=>G(V,{style:[w.mark,ie,e.style]},e.key))})]})}):null,M?null:G(V,{style:w.panel,children:G(qv,{fill:!0,icon:G(_p,{name:y===`noPermission`?`camera`:`camera-slash`,size:48,color:x.colors[`text-subtle`]}),title:y===`noPermission`?ee:te,description:y===`noPermission`?B:ne,action:y===`noPermission`&&l?{label:E.permissionAction,onPress:l}:void 0})}),K(V,{pointerEvents:`box-none`,onLayout:e=>{let{height:t}=e.nativeEvent.layout;j(e=>e===t?e:t)},style:[w.bar,{paddingBottom:Math.max(S.bottom,x.space.md)}],children:[M&&W?G(V,{pointerEvents:`none`,style:w.message,children:q}):null,K(V,{style:w.actions,children:[J?G(mS,{icon:a?`flash`:`flash-slash`,variant:`glass`,size:`lg`,active:a,haptic:f,accessibilityLabel:a?E.torchOff:E.torchOn,onPress:()=>o?.(!a)}):null,c?G(fg,{label:E.gallery,leftIcon:`gallery`,variant:Y,tone:`neutral`,size:`lg`,haptic:f,onPress:c}):null,s?G(fg,{label:E.manualEntry,leftIcon:`keyboard`,variant:Y,tone:`neutral`,size:`lg`,haptic:f,onPress:s}):null]})]})]})}var AO=e=>R.create({root:{flex:1,overflow:`hidden`},scrim:{position:`absolute`,backgroundColor:e.colors.scrim},mark:{position:`absolute`},message:{alignItems:`center`,paddingHorizontal:e.space.xl},pill:{paddingHorizontal:e.space.md,paddingVertical:e.space.xs,borderRadius:e.radius.pill,...ni},panel:{...R.absoluteFill,justifyContent:`center`},bar:{position:`absolute`,left:0,right:0,bottom:0,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,gap:e.space.sm,paddingHorizontal:e.space.md},actions:{flexDirection:`row`,flexWrap:`wrap`,alignItems:`center`,justifyContent:`center`,gap:e.space.sm}}),jO=i(null);function MO(){return l(jO)}var NO=[`top`,`bottom`],PO=()=>{},FO=e=>R.create({flex:{flex:1},root:{flex:1,backgroundColor:e.colors.bg},overlay:{position:`absolute`,top:0,left:0,right:0},headerRaised:{zIndex:1},footer:{backgroundColor:e.colors.bg,borderTopWidth:R.hairlineWidth,borderTopColor:e.colors.border}});function IO(e){let{title:t,subtitle:n,largeTitle:i=!0,headerShadowOnScroll:a,onBack:o,rightActions:s,leading:l,trailing:d,children:f,onRefresh:p,refreshing:_=!1,footer:v,scroll:y=!0,list:x,edges:C=NO,keyboardToolbar:w=!0,bottomInset:E=0,gutter:D,floatingAction:O,scrollRef:k,onScroll:A,contentContainerStyle:j,testID:M}=e,N=Ir(),P=D??x===void 0,F=N.space[N.components.screen.gutter],I=P?F:0,L=xt(),R=m(()=>FO(N),[N]),[z]=g(()=>new b.Value(0)),[ee,B]=g(0),[te,ne]=g(0),H=o!==void 0,re=h(o);re.current=o;let W=!!(t||n||o||l||d||s?.length),ie=i&&t!==void 0,ae=ie&&(x!==void 0||y),q=ae?ee:0,J=W&&!ae&&(a??N.settings.components.screen?.headerShadowOnScroll??!0),[Y,X]=g(!1),Z=h(J);Z.current=J;let oe=e=>e>0?e:W?N.space.lg:0,se=v!==void 0,{refreshControl:ce}=Xh({onRefresh:p??PO,refreshing:_}),le=p?r(ce,{progressViewOffset:q}):void 0,ue=Xe(0),de=Xe(0),fe=Xe(0),pe=Xe(0),me=h(null),he=h(0),ge=h(0),_e=m(()=>({top:ue,bottom:de,offset:fe,maxOffset:pe,scrollTo:e=>{let t=me.current;t instanceof T?t.scrollToOffset({offset:e,animated:!1}):t?.scrollTo({y:e,animated:!1})}}),[ue,de,fe,pe]),ve=c(e=>{me.current=e,typeof k==`function`?k(e):k&&(k.current=e)},[k]),ye=c(()=>{pe.value=Math.max(0,he.current-ge.current)},[pe]),be=h(A);be.current=A;let xe=m(()=>b.event([{nativeEvent:{contentOffset:{y:z}}}],{useNativeDriver:!1,listener:e=>{if(fe.value=e.nativeEvent.contentOffset.y,Z.current){let t=e.nativeEvent.contentOffset.y>0;X(e=>e===t?e:t)}be.current?.(e)}}),[z,fe]),Se=c(e=>{let{height:t}=e.nativeEvent.layout;B(e=>Math.max(e,t))},[]),Ce=c(e=>{ne(e.nativeEvent.layout.height)},[]);u(()=>{if(!H)return;let e=S.addEventListener(`hardwareBackPress`,()=>(re.current?.(),!0));return()=>e.remove()},[H]);let we=C.includes(`left`)?L.left:0,Te=C.includes(`right`)?L.right:0,Ee=C.includes(`bottom`)?L.bottom:0,De=C.includes(`top`)&&!W?L.top:0,Oe=N.space[N.components[`floating-action-button`][`bottom-offset`]],ke=O?.props.bottomOffset??Oe,Ae=O?wn(N,O.props.size??`md`).diameter+ke+N.space.lg:0,je=se?Math.max(0,te-L.bottom):E,Me=O?r(O,{bottomOffset:ke+je,position:O.props.position??`bottomRight`}):null,Ne=se?Ae:Math.max(Ee,O?Ae+L.bottom:0),Pe=E+Ne-(se?0:Ee),Fe=C.filter(e=>e!==`top`&&!(e===`bottom`&&se)),Ie=W?G(V,{style:ae?R.overlay:J?R.headerRaised:void 0,onLayout:ae?Se:void 0,children:G(Uv,{title:t,subtitle:n,variant:ie?`large`:`default`,scrollY:ae?z:void 0,elevated:J&&Y,onBack:o,rightActions:s,leading:l,trailing:d,gutter:F,testID:M?`${M}-app-bar`:void 0})}):null,Le=c(()=>{let e=me.current?.getNativeScrollRef();e&&e.measureInWindow((e,t,n,r)=>{ge.current=r,ue.value=t+q,de.value=t+r,ye()})},[q,ue,de,ye]);u(()=>{Le()},[Le]);let Re=c((e,t)=>{he.current=t,ye()},[ye]),ze;if(x!==void 0){let e=Bw([x.contentContainerStyle,j]);ze=G(jO,{value:_e,children:G(YE,{...x,ref:ve,onRefresh:x.state?void 0:p,refreshing:x.state?void 0:_,progressViewOffset:q,placeholderStyle:[R.flex,{paddingTop:q+oe(e)}],onScroll:xe,onLayout:e=>{Le(),x.onLayout?.(e)},onContentSizeChange:(e,t)=>{Re(e,t),x.onContentSizeChange?.(e,t)},scrollEventThrottle:16,style:R.flex,contentContainerStyle:[{paddingTop:q,paddingLeft:we+I,paddingRight:Te+I},x.contentContainerStyle,j,{paddingTop:q+oe(e),paddingBottom:Vw([x.contentContainerStyle,j])+E+Ne}]})})}else ze=y?G(jO,{value:_e,children:K(Gw,{ref:ve,refreshControl:le,onScroll:xe,scrollEventThrottle:16,onLayout:Le,onContentSizeChange:Re,safeAreaEdges:Fe,style:R.flex,contentContainerStyle:[{paddingHorizontal:I},j,{paddingTop:q+oe(Bw(j))}],children:[f,Pe>0?G(V,{style:{height:Pe}}):null]})}):G(V,{style:[R.flex,{paddingLeft:we+I,paddingRight:Te+I},j,{paddingBottom:Vw(j)+E+Ne}],children:f});let Be=se?G(U,{onLayout:Ce,style:[R.footer,{paddingLeft:we+F,paddingRight:Te+F,paddingBottom:Ee+E}],children:v}):null;return K(V,{testID:M,style:[R.root,{paddingTop:De}],children:[ae?null:Ie,ze,Be,Me,x===void 0?null:f,ae?Ie:null,w?G(qw,{}):null]})}var LO=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),RO=(e,t)=>{let n=t.trim().split(/\s+/).filter(Boolean).slice(0,8).sort((e,t)=>t.length-e.length);if(!e||n.length===0)return[{text:e,match:!1,start:0}];let r=new RegExp(n.map(LO).join(`|`),`gi`),i=[],a=0,o=r.exec(e);for(;o!==null;){let t=o.index,n=t+o[0].length;t>a&&i.push({text:e.slice(a,t),match:!1,start:a});let s=i[i.length-1];s?.match&&t===a?s.text+=o[0]:i.push({text:o[0],match:!0,start:t}),a=n,o=r.exec(e)}return a<e.length&&i.push({text:e.slice(a),match:!1,start:a}),i.length>0?i:[{text:e,match:!1,start:0}]},zO=e=>typeof e==`string`?{text:e}:e,BO=({scopes:e,scope:t,disabled:n,haptic:r,labels:i,onChange:a})=>{let o=Ir(),s=m(()=>WO(o),[o]);return G(I,{horizontal:!0,showsHorizontalScrollIndicator:!1,keyboardShouldPersistTaps:`handled`,contentContainerStyle:s.scopes,accessibilityLabel:i.scope,children:e.map(e=>G(iS,{label:e.label,selected:e.value===t,disabled:n,haptic:r,onPress:()=>a(e.value),style:s.scopeChip},e.value))})},VO=({recents:e,labels:t,onSelect:n,onRemove:r,onClear:i,onHold:a,onRelease:o})=>{let s=Ir(),c=m(()=>WO(s),[s]);return K(V,{style:c.list,children:[K(V,{style:c.header,children:[G($,{variant:`label`,accessibilityRole:`header`,style:c.headerTitle,children:t.recents}),i?G(P,{onPress:i,onPressIn:a,onPressOut:o,accessibilityRole:`button`,accessibilityLabel:t.clearAllRecents,style:c.clearAll,children:G($,{variant:`label`,color:`link`,children:t.clearAll})}):null]}),e.map(e=>K(V,{style:c.row,children:[K(P,{onPress:()=>n(e),onPressIn:a,onPressOut:o,accessibilityRole:`button`,accessibilityLabel:e,accessibilityHint:t.searchAgain,android_ripple:{color:s.colors[`surface-pressed`]},style:({pressed:e})=>[c.rowMain,e?{backgroundColor:s.colors[`surface-pressed`]}:null],children:[G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:G(_p,{name:`history`,size:18,color:s.colors[`text-subtle`]})}),G($,{variant:`body`,numberOfLines:1,style:c.rowText,children:e})]}),r?G(P,{onPress:()=>r(e),onPressIn:a,onPressOut:o,accessibilityRole:`button`,accessibilityLabel:Op(t.removeRecent,{text:e}),style:c.remove,children:G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:G(_p,{name:`x`,size:18,color:s.colors[`text-muted`]})})}):null]},e))]})},HO=s(({item:e,query:t,onSelect:n,onHold:r,onRelease:i,theme:a,styles:o})=>{let s=RO(e.text,t),c=e.icon?$h(e.icon,{size:18,color:a.colors[`text-subtle`],disabled:!1}):G(_p,{name:`search`,size:18,color:a.colors[`text-subtle`]});return K(P,{onPress:()=>n(e),onPressIn:r,onPressOut:i,accessibilityRole:`button`,accessibilityLabel:e.subtitle?`${e.text}, ${e.subtitle}`:e.text,android_ripple:{color:a.colors[`surface-pressed`]},style:({pressed:e})=>[o.rowMain,o.suggestion,e?{backgroundColor:a.colors[`surface-pressed`]}:null],children:[G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:c}),K(V,{style:o.rowText,children:[G($,{variant:`body`,color:`secondary`,numberOfLines:1,children:s.map(e=>G($,{variant:`body`,color:`secondary`,style:e.match?o.match:void 0,children:e.text},e.start))}),e.subtitle?G($,{variant:`caption`,numberOfLines:1,children:e.subtitle}):null]})]})});HO.displayName=`SuggestionRow`;var UO=({suggestions:e,query:t,onSelect:n,onHold:r,onRelease:i})=>{let a=Ir(),o=m(()=>WO(a),[a]);return G(V,{style:o.list,children:e.map(e=>G(HO,{item:e,query:t,onSelect:n,onHold:r,onRelease:i,theme:a,styles:o},e.id??e.text))})},WO=e=>({...R.create({scopes:{flexDirection:`row`,alignItems:`center`,gap:e.space.sm,paddingTop:e.space.sm},scopeChip:{minHeight:44},list:{width:`100%`,paddingTop:e.space.xs},header:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,minHeight:44,paddingHorizontal:e.space.xs},headerTitle:{flex:1},clearAll:{minHeight:44,minWidth:44,justifyContent:`center`,alignItems:`flex-end`},row:{flexDirection:`row`,alignItems:`center`},rowMain:{flex:1,flexDirection:`row`,alignItems:`center`,gap:e.space.md,minHeight:44,paddingHorizontal:e.space.xs},suggestion:{paddingVertical:e.space.xs},rowText:{flex:1},remove:{width:44,height:44,alignItems:`center`,justifyContent:`center`}}),match:{...Rr(e,`bold`),color:e.colors[`text-body`]}}),GO=8;function KO({ref:e,...t}){let{value:n,onChangeText:r,onSubmit:i,onFocus:a,onBlur:o,placeholder:s,autoFocus:l=!1,disabled:d=!1,onClear:f,leftIcon:p,debounceMs:_,size:v=`md`,variant:y,radius:b,label:x,labelMode:S=`top`,labelStyle:C,scopes:w,scope:T,onScopeChange:E,recents:D,maxRecents:O=GO,onSelectRecent:k,onRemove:A,onClearRecents:j,suggestions:M,maxSuggestions:N=GO,onSelect:F,haptic:I,labels:L,style:R,inputStyle:z,accessibilityLabel:B,testID:te,...ne}=t;Q(`SearchBar`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`SearchBar`,`variant`,t.variant,[`outline`,`filled`,`underline`]),Q(`SearchBar`,`labelMode`,t.labelMode,[`top`,`float`]);let H=Ir(),re=Zm(`searchBar`,Nm),U=m(()=>({...re,...L}),[re,L]),W=s??U.placeholder,ie=y??H.settings.components[`search-bar`]?.defaultVariant??H.settings.components.field?.defaultVariant??`filled`,ae=ie===`underline`,q=fn(H,v),J=b??H.components[`search-bar`][v].radius,Y=xg(H,{disabled:d}),X=h(null),Z=m(()=>th(X,e),[e]),oe=c(()=>{d||X.current?.focus()},[d]),se=m(()=>qO(H),[H]),ce=typeof n==`string`?n:``,[le,ue]=g(!1),de=c(e=>{ue(!0),a?.(e)},[a]),fe=c(e=>{ue(!1),o?.(e)},[o]),[pe,me]=g(ce),he=h(pe);he.current=pe;let ge=Vh(pe,_??0);u(()=>{_!==void 0&&ce!==he.current&&me(ce)},[ce,_]);let _e=h(ce);u(()=>{_!==void 0&&ge!==_e.current&&(_e.current=ge,r(ge))},[ge,_,r]);let ve=c(e=>{we(),_===void 0?r(e):me(e)},[_,r]),ye=c(()=>{let e=ci(I,`selection`);e&&si(e),_!==void 0&&(me(``),_e.current=``),r(``),f?.()},[I,_,r,f]),be=c(()=>{i?.(_===void 0?ce:pe)},[i,_,pe,ce]),xe=_===void 0?ce:pe,Se=xe.length>0,[Ce,Te]=Bh({value:T,defaultValue:w?.[0]?.value??``,onChange:E}),Ee=c(e=>{Te(e);let t=w?.find(t=>t.value===e)?.label;t&&eh(Op(U.searching,{label:t}))},[w,Te,U]),[De,Oe]=g(!1),ke=h(null),Ae=c(()=>{ke.current&&=(clearTimeout(ke.current),null)},[]),je=c(()=>{Ae(),Oe(!0)},[Ae]),Me=c(()=>{Ae(),ke.current=setTimeout(()=>Oe(!1),50)},[Ae]);u(()=>Ae,[Ae]);let Ne=!d&&(le||De),Pe=m(()=>(D??[]).slice(0,O),[D,O]),Fe=m(()=>(M??[]).slice(0,N).map(zO),[M,N]),Ie=Ne&&!Se&&Pe.length>0,Le=Ne&&Se&&Fe.length>0,Re=Le?Fe.length:0,ze=Re>0?kp(U,`suggestionCount`,Re):``;u(()=>{ze&&eh(ze)},[ze]);let Be=c(()=>{let e=ci(I,`selection`);e&&si(e)},[I]),Ve=c(e=>{Be(),X.current?.blur(),Oe(!1),k?.(e)},[Be,k]),He=c(e=>{Be(),X.current?.blur(),Oe(!1),F?.(e)},[Be,F]),Ue=c(e=>{Be(),A?.(e),eh(Op(U.removed,{text:e})),oe()},[Be,A,oe,U]),We=c(()=>{Be(),j?.(),eh(U.recentsCleared),oe()},[Be,j,oe,U]),Ge={size:q.icon,color:d?H.colors[`text-disabled`]:H.colors[`text-subtle`],disabled:d},Ke=p?$h(p,Ge):(H.settings.icons.search??vp.search)(Ge),qe=G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:Ke}),Je=!!x&&S===`float`,Ye=Ng({label:x,enabled:Je,floated:le||Se,variant:ie,sizeTokens:q,leadingOffset:q.icon+H.space.md,trailingOffset:Se?q.icon+H.space.md:0,paddingLeft:ae?H.space.none:q[`padding-x`],color:H.colors[`field-label`],style:C}),Xe=Se&&!d?G(P,{onPress:ye,hitSlop:8,...Zh(8),accessibilityRole:`button`,accessibilityLabel:U.clearSearch,children:(H.settings.icons.close??vp.close)({size:q.icon,color:H.colors[`text-muted`]})}):null;return K(V,{style:R,testID:te,children:[x&&!Je?G(Dg,{size:v,style:C,children:x}):null,G(V,{style:se.root,children:K(V,{style:se.fieldWrap,children:[G(jg,{testID:te?`${te}-field`:void 0,size:v,variant:ie,focused:le,disabled:d,filled:Se,minHeight:q[`min-height`],paddingHorizontal:ae?H.space.none:q[`padding-x`],radius:J,leading:qe,trailing:Xe,topNotch:Ye.topNotch,onPress:oe,pressFeedback:!1,accessibilityRole:`search`,accessibilityLabel:B??W,children:G(ee,{ref:Z,style:[se.input,{fontSize:q.text,color:Y.color,...Y.weightStyle},z],value:xe,onChangeText:ve,onSubmitEditing:be,onFocus:de,onBlur:fe,placeholder:!Je||le||Se?W:void 0,placeholderTextColor:Y.placeholderColor,autoFocus:l,editable:!d,returnKeyType:`search`,selectionColor:Ag(H,ie).borderFocusedRepresentative,accessibilityLabel:B??W,accessibilityState:{disabled:d},"aria-disabled":d,...ne})}),Ye.node]})}),w&&w.length>0?G(BO,{scopes:w,scope:Ce||(w[0]?.value??``),disabled:d,haptic:I,labels:U,onChange:Ee}):null,Ie?G(VO,{recents:Pe,labels:U,onSelect:Ve,onRemove:A?Ue:void 0,onClear:j?We:void 0,onHold:je,onRelease:Me}):null,Le?G(UO,{suggestions:Fe,query:xe,onSelect:He,onHold:je,onRelease:Me}):null]})}var qO=e=>R.create({root:{flexDirection:`row`,alignItems:`center`,width:`100%`,position:`relative`,overflow:`visible`},fieldWrap:{flex:1,position:`relative`,overflow:`visible`},input:{flex:1,padding:e.space.none,margin:e.space.none,includeFontPadding:!1}}),JO=(e,t)=>{switch(t){case`primary`:return e.colors.primary;case`neutral`:return e.colors[`text-body`];case`success`:return e.colors[`success-text`];case`warning`:return e.colors[`warning-text`];case`danger`:return e.colors[`danger-text`];case`info`:return e.colors[`info-text`]}};function YO({ref:e,...t}){let{segments:n,label:r,helperText:i,error:a,value:o,defaultValue:s,onChange:l,size:d=`md`,fullWidth:f=!0,disabled:p=!1,tone:_=`primary`,variant:v=`segmented`,radius:y,labelLines:x=1,haptic:S,accessibilityLabel:C,style:w,segmentStyle:T,selectedIndicatorStyle:E,textStyle:D,labelStyle:O,testID:k}=t;Q(`SegmentedControl`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`SegmentedControl`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`SegmentedControl`,`variant`,t.variant,[`underline`,`pills`,`segmented`]);let[A]=n;if(A===void 0)throw Error(`SegmentedControl needs at least one segment`);let[j,M]=Bh({value:o,defaultValue:s??A.value,onChange:e=>{e!==null&&l?.(e)}}),N=Ir(),F=N.components[`segmented-control`],I=m(()=>XO(N),[N]),L=m(()=>xn(N,d),[N,d]),z=x>=2?2:1,ee=z>1,B=v===`segmented`,te=v===`underline`,ne=v===`pills`,H=B?N.space[F[`track-padding`]]:0,re=Math.ceil(1.25*L.text)*(z-1),U=F[`underline-height`],W=N.space[F[`pill-inset`]],ie=typeof y==`number`?y:y?N.radius[y]:void 0,ae=ie??N.radius.md,q=ie===void 0?N.radius.sm:Math.max(ie-H,0),J=ie??N.radius.pill,Y=ie??N.radius.none,[X,Z]=g([]),oe=h(Ht(0)).current,se=Math.max(0,n.findIndex(e=>e.value===j)),ce=X[se],le=ce?.x,ue=c(e=>{let t=N.motion.spring.snappy,n=b.spring(oe,{toValue:e,damping:t.damping,stiffness:t.stiffness,mass:t.mass,overshootClamping:!0,useNativeDriver:Vt});return n.start(),n},[N.motion.spring.snappy,oe]);u(()=>{Z(e=>e.length===n.length||e.length===0?e:[])},[n.length]);let de=h(null);u(()=>{if(le===void 0)return;let e=de.current!==null&&de.current!==se;if(de.current=se,!e)return void oe.setValue(le);let t=ue(le);return()=>t.stop()},[se,le,ue,oe]);let fe=c((e,t)=>{let{x:n,width:r}=t.nativeEvent.layout;Z(t=>{let i=t[e];if(i&&i.x===n&&i.width===r)return t;let a=t.slice();return a[e]={x:n,width:r},a})},[]),pe=c(e=>{if(p||e.value===j)return;let t=ci(S,`selection`);t&&si(t),M(e.value)},[p,M,j,S]),me=B?N.colors.thumb:ne?N.colors[`primary-soft`]:N.colors.primary,he=B?q:ne?J:Y,ge=JO(N,_),_e=N.colors[`bg-muted`],ve=ag(B,ae),ye=!0===a||Tg(a),be=ye&&!p,xe=N.colors[`field-border-error`],Se=N.size.border,Ce=Tg(r),we=ye?a:i,Te=Tg(we),Ee=K(V,{ref:e,accessibilityRole:`radiogroup`,accessibilityLabel:C??(typeof r==`string`?r:void 0),testID:k,style:[I.track,{...ee?{minHeight:L.height+re}:{height:L.height},opacity:p?.55:1,alignSelf:f?`stretch`:`flex-start`},B?{borderRadius:ae,...ni,backgroundColor:ve.active?`transparent`:_e,padding:H}:te?{borderBottomColor:be?xe:N.colors[`border-subtle`],borderBottomWidth:R.hairlineWidth}:null,w],onLayout:ve.onLayout,children:[ve.active&&ve.size?G(ig,{width:ve.size.width,height:ve.size.height,radius:ae,fill:_e,stroke:be?xe:void 0,strokeWidth:Se}):null,K(V,{style:I.row,children:[ce?G(b.View,{pointerEvents:`none`,style:[I.thumb,B?ee?{top:0,bottom:0}:{top:0,height:L.height-2*H}:ne?{top:W,bottom:W,left:W}:{bottom:0,height:U},{width:ne?Math.max(ce.width-2*W,0):ce.width,borderRadius:he,...ni,backgroundColor:me,transform:[{translateX:oe}]},E]}):null,n.map((e,t)=>{let n=e.value===j,r=n?ge:N.colors[`text-subtle`],i=$h(e.icon,{color:r,size:L.icon,selected:n,disabled:p}),a=!!i;return K(P,{onPress:()=>pe(e),onLayout:e=>fe(t,e),disabled:p,accessibilityRole:`radio`,accessibilityLabel:e.label,accessibilityState:{checked:n,selected:n,disabled:p},"aria-checked":n,"aria-disabled":p,style:({pressed:e})=>[I.segment,ee?I.segmentMultiline:null,{paddingHorizontal:L[`padding-x`],opacity:e&&!n?.7:1},T],children:[a?G(V,{style:I.segmentIcon,accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:i}):null,G($,{variant:`label`,weight:n?`semibold`:`medium`,style:[I.segmentLabel,ee?I.segmentLabelMultiline:null,{color:r,fontSize:L.text},D,O],numberOfLines:z,children:e.label})]},String(e.value))})]}),!be||te||ve.active?null:G(V,{pointerEvents:`none`,style:[R.absoluteFill,{borderWidth:Se,borderColor:xe,borderRadius:B?ae:J,...ni}]})]});return Ce||Te?K(V,{style:{alignSelf:f?`stretch`:`flex-start`},children:[Ce?G(Dg,{size:d,children:r}):null,Ee,Te?G(Og,{size:d,text:we,error:ye}):null]}):Ee}var XO=e=>R.create({track:{flexDirection:`row`,alignItems:`stretch`,position:`relative`},row:{flex:1,flexDirection:`row`,alignItems:`stretch`,position:`relative`,overflow:`hidden`},thumb:{position:`absolute`,left:0},segment:{flexGrow:1,flexShrink:1,flexBasis:`auto`,flexDirection:`row`,alignItems:`center`,justifyContent:`center`},segmentIcon:{marginRight:e.space.xs},segmentMultiline:{paddingVertical:e.space.xs},segmentLabel:{includeFontPadding:!1},segmentLabelMultiline:{flexShrink:1,textAlign:`center`}}),ZO=(e,t)=>String(e)===String(t),QO=(e,t)=>e.some(e=>ZO(e,t));function $O(e){Q(`Select`,`size`,e.size,[`sm`,`md`,`lg`]),Q(`Select`,`variant`,e.variant,[`outline`,`filled`,`underline`]);let{options:t,getOptionLabel:n,getOptionValue:r,isOptionDisabled:i,getOptionDescription:a,getOptionIcon:o,placeholder:s,onOpenChange:l,searchable:u=!1,haptic:d,labels:f,label:p,help:h,title:_,required:v=!1,error:y,helperText:b,prefix:x,numberOfLines:S=1,disabled:C=!1,size:w=`md`,variant:T,leftIcon:E,rightIcon:D,chevronColor:O,chevronSize:k,radius:A,accessibilityLabel:j,labelStyle:M,style:N,triggerStyle:P,textStyle:F,optionStyle:I,selectedOptionStyle:L,optionTextStyle:R,selectedOptionTextStyle:z,testID:ee,ref:B}=e,te=!0===e.multi,ne={...Zm(`select`,Fm),...f},H=c(e=>n?n(e):Cv(e),[n]),re=c(e=>r?r(e):wv(e),[r]),U=c(e=>i?i(e):Ev(e),[i]),W=c(e=>a?a(e):Tv(e),[a]),ie=c(e=>o?o(e):Dv(e),[o]),ae=Ir(),q=m(()=>ek(ae),[ae]),J=fn(ae,w),Y=xg(ae,{disabled:C}),X=T??ae.settings.components.select?.defaultVariant??ae.settings.components.field?.defaultVariant??`outline`,[Z,oe]=g(!1),se=m(()=>{if(te){let n=e.value??[];return t.filter(e=>QO(n,re(e)))}let n=e.value;if(n==null)return[];let r=t.find(e=>ZO(re(e),n));return r?[r]:[]},[te,t,e.value,re]),ce=c(()=>{if(C)return;let e=ci(d,`selection`);e&&si(e),oe(!0)},[C,d]),le=c(()=>{oe(!1)},[]),ue=c(t=>{if(U(t))return;let n=re(t),r=ci(d,`selection`);if(r&&si(r),te){let t=e.value??[],r=QO(t,n)?t.filter(e=>!ZO(e,n)):[...t,n];e.onChange(r)}else e.onChange(n),le()},[te,e,le,U,re,d]),de=se.length===0?s??ne.placeholder:se.map(e=>H(e)).join(`, `),fe=se.length===0,pe=!0===y||Tg(y),me=Tg(p),he=Eg(p),ge=Math.round(1.4*J.text),_e=m(()=>({fontSize:J.text,color:Y.placeholderColor}),[J.text,Y.placeholderColor]),ve={color:C?ae.colors[`field-icon-disabled`]:Z?ae.colors[`field-icon-focus`]:ae.colors[`field-icon`],size:J.icon,disabled:C,focused:Z,error:pe},ye=se.length===0?s??ne.noSelection:Op(ne.selected,{summary:se.map(e=>H(e)).join(`, `)}),be=j??`${he??ne.fallbackName}. ${ye}`;return K(V,{style:[q.container,N],testID:ee,children:[me?G(Dg,{size:w,required:v,help:h,style:M,children:p}):null,G(V,{ref:B,collapsable:!1,children:K(jg,{size:w,variant:X,disabled:C,error:pe,filled:se.length>0,onPress:ce,radius:A,paddingHorizontal:X===`underline`?ae.space.none:void 0,accessibilityRole:`button`,accessibilityLabel:be,accessibilityState:{disabled:C,expanded:Z},"aria-disabled":C,"aria-expanded":Z,style:P,slotAlign:S===1?`center`:`top`,slotLineHeight:S===1?void 0:ge,leading:E?tg(E,$h(E,ve)):null,trailing:D?tg(D,$h(D,ve)):G(XS,{color:O??(C?ae.colors[`text-disabled`]:ae.colors[`text-subtle`]),size:k??J.icon,open:Z,style:q.chevron}),children:[Tg(x)?typeof x==`string`||typeof x==`number`?G($,{variant:`body`,style:[q.prefix,{color:Y.placeholderColor,fontSize:J.text,lineHeight:S===1?void 0:ge,marginRight:ae.space.xs}],children:x}):G(V,{style:[q.prefixNode,{minHeight:S===1?void 0:ge,justifyContent:`center`,marginRight:ae.space.xs}],children:G($,{variant:`body`,style:[q.prefix,{color:Y.placeholderColor,fontSize:J.text,lineHeight:S===1?void 0:ge}],children:G(li,{value:_e,children:x})})}):null,K($,{variant:`body`,style:[q.triggerText,{color:fe?Y.placeholderColor:Y.color,fontSize:J.text,lineHeight:S===1?void 0:ge,...Y.weightStyle},F],numberOfLines:S,children:[de,fe&&v&&!me?G(Sg,{}):null]})]})}),G(Og,{size:w,error:pe,text:pe?y:b}),G(Mv,{open:Z,onClose:le,onOpenChange:l,haptic:d,title:_??he,accessibilityLabel:he??(me?_:void 0)??s??ne.sheetName,options:t,getOptionLabel:H,getOptionValue:re,isOptionDisabled:U,getOptionDescription:W,getOptionIcon:ie,value:e.value,onChange:(e,t)=>ue(t),multi:te,searchable:u,labels:{...ne.searchPlaceholder===void 0?{}:{searchPlaceholder:ne.searchPlaceholder},...ne.empty===void 0?{}:{empty:ne.empty}},optionStyle:I,selectedOptionStyle:L,optionTextStyle:R,selectedOptionTextStyle:z,searchSelectionColor:Ag(ae,X).borderFocusedRepresentative})]})}$O.displayName=`Select`;var ek=e=>R.create({container:{width:`100%`},label:{includeFontPadding:!1},triggerText:{flex:1,includeFontPadding:!1},errorText:{includeFontPadding:!1},prefix:{flexShrink:0,includeFontPadding:!1},prefixNode:{flexShrink:0},chevron:{marginLeft:e.space.sm}}),tk=.7,nk=e=>Math.round(10*e)/10,rk=(e,t)=>[nk(e),nk(t)],ik=(e,t)=>Math.hypot(e[0]-t[0],e[1]-t[1]),ak=e=>e.toFixed(1),ok=e=>{let[t,n,...r]=e;if(t===void 0)return``;let i=[`M${ak(t[0])} ${ak(t[1])}`];if(n===void 0)return i.push(`L${ak(t[0])} ${ak(t[1])}`),i.join(` `);if(r.length===0)return i.push(`L${ak(n[0])} ${ak(n[1])}`),i.join(` `);let a=n;for(let e of r){let t=(a[0]+e[0])/2,n=(a[1]+e[1])/2;i.push(`Q${ak(a[0])} ${ak(a[1])} ${ak(t)} ${ak(n)}`),a=e}return i.push(`L${ak(a[0])} ${ak(a[1])}`),i.join(` `)},sk=(e,t)=>{let n=Math.max(1,t.length),r=Math.floor(.88*e/(.5*n));return Math.min(56,Math.max(18,r))},ck=e=>e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`),lk=e=>{let{width:t,height:n,mode:r,strokes:i,typedName:a,ink:o,paper:s,strokeWidth:c,fontFamily:l}=e,u=Math.round(t),d=Math.round(n),f=[`<rect x="0" y="0" width="${u}" height="${d}" fill="${ck(s)}"/>`];if(r===`type`){let e=a.trim();e&&f.push(`<text x="${u/2}" y="${ak(.7*d)}" text-anchor="middle" font-family="${ck(l)}" font-size="${sk(u,e)}" fill="${ck(o)}">${ck(e)}</text>`)}else for(let e of i)f.push(`<path d="${ok(e)}" fill="none" stroke="${ck(o)}" stroke-width="${c}" stroke-linecap="round" stroke-linejoin="round"/>`);return`<svg xmlns="http://www.w3.org/2000/svg" width="${u}" height="${d}" viewBox="0 0 ${u} ${d}">${f.join(``)}</svg>`},uk=async e=>{let{File:t,Paths:n}=Lt(`expo-file-system`),r=new t(n.cache,`signature-${Date.now().toString(36)}.png`);return r.create({intermediates:!0,overwrite:!0}),await r.write(e,{encoding:`base64`}),r.uri},dk=180,fk=100,pk={minHeight:44},mk=()=>N.select({ios:`Snell Roundhand`,default:`cursive`}),hk=e=>e===`cursive`?`cursive`:`'${e}', cursive`,gk=()=>{let[e,t]=g(!1);return u(()=>{let e=!0;v.isScreenReaderEnabled().then(n=>{e&&t(n)});let n=v.addEventListener(`screenReaderChanged`,t);return()=>{e=!1,n.remove()}},[]),e},_k=s(({points:e,color:t})=>G(at,{d:ok(e),stroke:t,strokeWidth:2.5,strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`}));_k.displayName=`SignaturePadStroke`;var vk=({mode:e,strokes:t,name:n,color:r,fontFamily:i,width:a,height:o})=>e===`draw`?G(ae,{children:t.map(e=>G(_k,{points:e.points,color:r},e.id))}):n?G(lt,{x:a/2,y:o*tk,fontSize:sk(a,n),fontFamily:i,textAnchor:`middle`,fill:r,children:n}):null;function yk({ref:e,...t}){let{expandable:n,initialStrokes:r,onChange:i,initialTypedName:a=``,onTypedNameChange:o,defaultMode:s=`draw`,onModeChange:l,onEmptyChange:d,allowTyped:p=!0,signedBy:_,signedAt:v,height:y=dk,maxNameLength:b=fk,inkColor:x,paperColor:S,scriptFontFamily:C,labels:w,haptic:T=`selection`,disabled:E=!1,style:D,testID:O}=t;Q(`SignaturePad`,`defaultMode`,t.defaultMode,[`draw`,`type`]);let k=Ir(),j=x===void 0&&S===void 0,N=j?k.colors[`text-body`]:x??Ar.colors[`text-body`],P=j?k.colors.surface:S??Ar.colors.surface,F=j?Ar.colors[`text-body`]:N,I=j?Ar.colors.surface:P,L=F!==N||I!==P,z=C??mk(),ee=Zm(`signaturePad`,Im),B=m(()=>({...ee,...w}),[ee,w]),ne=gk(),H=h(null),re=h(null),[U,W]=g(0),[ie,q]=g(()=>(r??[]).map((e,t)=>({id:t+1,points:[...e]}))),J=h(ie),Y=h(ie.length),X=h(null),Z=h(null),[oe,se]=g(p?s:`draw`),[ce,le]=g(a),[de,fe]=g(null),pe=h(!1),{height:me}=te(),[he,ge]=g(!1),[_e,ve]=g([]),ye=h({onChange:i,onTypedNameChange:o,onModeChange:l,onEmptyChange:d});u(()=>{ye.current={onChange:i,onTypedNameChange:o,onModeChange:l,onEmptyChange:d}});let be=oe===`draw`&&!E,xe=oe===`draw`?ie.length===0:ce.trim().length===0,Se=h(null);u(()=>{Se.current!==xe&&(Se.current=xe,ye.current.onEmptyChange?.(xe))},[xe]);let Ce=c(e=>{J.current=e,q(e)},[]),we=c(()=>{fe(Date.now()),ye.current.onChange?.(J.current.map(e=>e.points))},[]),Te=m(()=>{let e=e=>({enabled:be,runOnJS:!0,onBegin:e=>{X.current=rk(e.x,e.y)},onActivate:t=>{Z.current=e,Y.current+=1;let n=rk(t.x,t.y);Ce([...J.current,{id:Y.current,points:[X.current??n,n]}])},onUpdate:t=>{if(Z.current!==e)return;let n=J.current[J.current.length-1];if(n===void 0)throw Error(`The stroke being drawn is missing.`);let r=rk(t.x,t.y),i=n.points[n.points.length-1];if(i===void 0)throw Error(`A drawn stroke has no points.`);ik(i,r)<.8||Ce([...J.current.slice(0,-1),{...n,points:[...n.points,r]}])},onFinalize:()=>{Z.current===e&&(Z.current=null,we())}});return{sidewaysConfig:{...e(`sideways`),activeOffsetX:[-6,6],failOffsetY:[-8,8]},restedConfig:{...e(`rested`),activateAfterLongPress:200}}},[be,Ce,we]),Ee=ht(Te.sidewaysConfig),De=ht(Te.restedConfig),Oe=pt(Ee,De),ke=c(e=>{se(e),ye.current.onModeChange?.(e),eh(e===`type`?B.typingAnnouncement:B.drawingAnnouncement)},[B.typingAnnouncement,B.drawingAnnouncement]);u(()=>{ne&&p&&!pe.current&&oe===`draw`&&J.current.length===0&&ke(`type`)},[ne,p,oe,ke]);let Ae=c(()=>{pe.current=!0,ke(oe===`draw`?`type`:`draw`)},[oe,ke]),je=c(e=>{le(e),fe(Date.now()),ye.current.onTypedNameChange?.(e)},[]),Me=c(()=>{oe===`type`?je(``):(Ce([]),we()),eh(B.clearedAnnouncement)},[oe,je,Ce,we,B.clearedAnnouncement]),Ne=c(()=>{oe===`draw`&&J.current.length!==0&&(Ce(J.current.slice(0,-1)),we(),eh(B.undoneAnnouncement))},[oe,Ce,we,B.undoneAnnouncement]),Pe=c(()=>{ve(J.current.map(e=>e.points)),ge(!0)},[]),Fe=c(()=>{ge(!1)},[]),Ie=c(()=>{Ce(_e.map(e=>(Y.current+=1,{id:Y.current,points:[...e]}))),we(),ge(!1)},[_e,Ce,we]),Le=U||320;f(e,()=>({toFile:()=>new Promise((e,t)=>{if(xe)return void t(Error(B.emptyError));let n=L?re.current:H.current;if(!n)return void t(Error(`The signature pad is not on screen.`));let r=Math.min(3,Math.max(1,M.get()));n.toDataURL(n=>{uk(n).then(e,t)},{width:Le*r,height:y*r})}),toSvg:()=>lk({width:Le,height:y,mode:oe,strokes:ie.map(e=>e.points),typedName:ce,ink:F,paper:I,strokeWidth:2.5,fontFamily:hk(z)}),clear:Me,undo:Ne,isEmpty:()=>xe}),[xe,B.emptyError,Le,y,oe,ie,ce,L,F,I,z,Me,Ne]);let Re=m(()=>[{name:`undo`,label:B.undo},{name:`clear`,label:B.clear},...p?[{name:`toggleMode`,label:oe===`draw`?B.typeInstead:B.drawInstead}]:[]],[B.undo,B.clear,B.typeInstead,B.drawInstead,p,oe]),ze=c(e=>{if(E)return;let{actionName:t}=e.nativeEvent;t===`undo`?Ne():t===`clear`?Me():t===`toggleMode`&&p&&Ae()},[E,Ne,Me,Ae,p]),Be=c(e=>{W(e.nativeEvent.layout.width)},[]),Ve=m(()=>R.create({root:{gap:k.space.sm},pad:{height:y,borderWidth:k.size.border,borderColor:k.colors.border,borderRadius:k.radius.md,...ni,overflow:`hidden`,backgroundColor:P,opacity:E?.5:1},baseline:{position:`absolute`,left:k.space.md,right:k.space.md,top:y*tk,height:R.hairlineWidth,backgroundColor:N,opacity:.3},actions:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,flexWrap:`wrap`,gap:k.space.xs},trailing:{flexDirection:`row`,alignItems:`center`,gap:k.space.xs},expandedRoot:{flex:1,padding:k.space.md,gap:k.space.sm,backgroundColor:k.colors.bg},expandedBar:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`}}),[k,y,P,N,E]),He=ce.trim(),Ue=v??de,We=_&&!xe?`Signed by ${_}${Ue?`, ${ue(Ue)}`:``}`:null,Ge=oe===`type`&&He?`${B.pad}. ${He}`:B.pad;return K(V,{style:[Ve.root,D],testID:O,children:[G(ut,{gesture:Oe,children:K(V,{style:Ve.pad,onLayout:Be,accessible:!0,accessibilityRole:`image`,accessibilityLabel:Ge,accessibilityHint:oe===`draw`?B.padHint:void 0,accessibilityValue:{text:xe?B.empty:B.signed},accessibilityState:{disabled:E},"aria-disabled":E,accessibilityActions:Re,onAccessibilityAction:ze,children:[L?K(rt,{ref:re,style:R.absoluteFill,width:`100%`,height:y,children:[G(st,{x:`0`,y:`0`,width:`100%`,height:`100%`,fill:I}),G(vk,{mode:oe,strokes:ie,name:He,color:F,fontFamily:z,width:Le,height:y})]}):null,K(rt,{ref:H,width:`100%`,height:y,children:[G(st,{x:`0`,y:`0`,width:`100%`,height:`100%`,fill:P}),G(vk,{mode:oe,strokes:ie,name:He,color:N,fontFamily:z,width:Le,height:y})]}),G(V,{pointerEvents:`none`,style:Ve.baseline})]})}),oe===`type`?G(Fg,{label:B.typedLabel,placeholder:B.typedPlaceholder,value:ce,onChangeText:je,maxLength:b,disabled:E,autoComplete:`name`,textContentType:`name`,autoCapitalize:`words`,autoCorrect:!1,returnKeyType:`done`,testID:O?`${O}-name`:void 0}):null,G($,{variant:`caption`,color:`tertiary`,children:oe===`draw`?B.caption:B.typedCaption}),K(V,{style:Ve.actions,children:[p?G(fg,{label:oe===`draw`?B.typeInstead:B.drawInstead,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Ae,testID:O?`${O}-mode`:void 0}):G(V,{}),oe===`draw`?K(V,{style:Ve.trailing,children:[ie.length>0?K(ae,{children:[G(fg,{label:B.undo,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Ne,testID:O?`${O}-undo`:void 0}),G(fg,{label:B.clear,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Me,testID:O?`${O}-clear`:void 0})]}):null,n?G(fg,{label:B.expand,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Pe,testID:O?`${O}-expand`:void 0}):null]}):null,oe===`type`&&He?G(fg,{label:B.clear,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,disabled:E,onPress:Me,testID:O?`${O}-clear`:void 0}):null]}),We?G($,{variant:`caption`,color:`secondary`,children:We}):null,n?G(A,{visible:he,animationType:`slide`,presentationStyle:`fullScreen`,onRequestClose:Fe,children:K(bk,{style:Ve.expandedRoot,children:[K(V,{style:Ve.expandedBar,children:[G(fg,{label:B.close,variant:`ghost`,tone:`primary`,size:`md`,style:pk,haptic:T,onPress:Fe,testID:O?`${O}-close`:void 0}),G(fg,{label:B.done,variant:`solid`,tone:`primary`,size:`md`,style:pk,haptic:T,onPress:Ie,testID:O?`${O}-done`:void 0})]}),he?G(yk,{expandable:!1,defaultMode:`draw`,allowTyped:!1,initialStrokes:_e,onChange:ve,height:Math.max(dk,me-200),inkColor:x,paperColor:S,scriptFontFamily:C,labels:w,haptic:T,testID:O?`${O}-expanded`:void 0}):null]})}):null]})}var bk=N.OS===`android`?dt:V;function xk({ref:e,...t}){return G(yk,{...t,expandable:!0,ref:e})}var Sk=({title:e,content:t,action:n,onAction:r,focusRef:i,actionRef:a,messageStyle:o})=>{let s=Ir(),c=m(()=>Ck(s),[s]);return K(V,{style:c.card,children:[e?G($,{ref:i,variant:`label`,weight:`semibold`,accessibilityRole:`header`,children:e}):null,typeof t==`string`?G($,{ref:e?void 0:i,variant:`bodySmall`,color:`secondary`,style:o,children:t}):t,n?G(V,{style:c.actions,children:G(fg,{ref:a,label:n.label,variant:`ghost`,size:`sm`,accessibilityLabel:n.accessibilityLabel,onPress:r})}):null]})},Ck=e=>R.create({card:{gap:e.space.xs,paddingHorizontal:e.space.md,paddingTop:e.space.md,paddingBottom:e.space.sm,backgroundColor:e.colors.surface,borderRadius:e.radius.md,...ni,...e.shadow.popover},actions:{flexDirection:`row`,justifyContent:`flex-end`,marginTop:e.space.xs}}),wk=(e,t,n)=>Math.max(t,Math.min(e,n)),Tk=(e,t)=>{let n={top:e.y,bottom:t.height-(e.y+e.height),left:e.x,right:t.width-(e.x+e.width)},r=Math.max(n.top,n.bottom,n.left,n.right);return r===n.bottom?`bottom`:r===n.top?`top`:r===n.right?`right`:`left`},Ek=e=>{let{anchor:t,size:n,placement:r,rich:i,viewport:a,maxWidth:o,gap:s,padding:c}=e;if(!t)return{top:c,left:c,placement:`bottom`,arrowOffset:0};let{insets:l}=a,u=n.width||Math.min(o,a.width-2*c),d=n.height||0,f=l.top+c,p=a.height-l.bottom-c-d,m;if(m=i?r===`top`||r===`bottom`?r:`auto`:r===`auto`?Tk(t,a):r,m!==`left`&&m!==`right`){let n=d_(t,{width:u,height:d},a,m,{gap:s,margin:c}),r=t.x+t.width/2;return{top:wk(n.y,f,p),left:n.x,placement:n.placement,arrowOffset:f_(r,n.x,u,e.arrowCornerPadding)}}let h=m===`left`?t.x-u-s:t.x+t.width+s,g=a.width-l.right-c-u,_=wk(h,l.left+c,g),v=wk(t.y+t.height/2-d/2,f,p),y=t.y+t.height/2;return{top:v,left:_,placement:m,arrowOffset:f_(y,v,d,e.arrowCornerPadding)}},Dk=t=>{let{content:n,children:r,variant:i=`plain`,title:a,action:o,placement:s=`auto`,open:l,onOpenChange:d,hideOnContentPress:f=!0,maxWidth:p,showArrow:_=!0,accessibilityLabel:v,style:y,arrowStyle:x,messageStyle:S,labels:C,testID:T}=t;Q(`Tooltip`,`variant`,t.variant,[`plain`,`rich`]),Q(`Tooltip`,`placement`,t.placement,[`top`,`bottom`,`left`,`right`,`auto`]),Q(`Tooltip`,`trigger`,t.trigger,[`longPress`,`press`,`manual`]);let E=i===`rich`,D=t.trigger??(E?`press`:`longPress`),O=Zm(`tooltip`,qm),k=m(()=>({...O,...C}),[O,C]),A=Ir(),j=ti(),M=xt(),[P,F]=tv(),I=m(()=>({...M,top:P.top,bottom:P.bottom}),[M,P]),L=te(),z=m(()=>Ok(A),[A]),ee=A.space.sm,B=A.space.sm,ne=p??(E?280:240),H=D===`press`&&!E,re=(A.settings.components.tooltip?.enableScaleAnimation??!1)&&!j.reduced,U=D===`manual`||typeof l==`boolean`,[W,ie]=g(!1),q=U?!!l:W,[J,Y]=g(null),[X,Z]=g({width:0,height:0}),oe=h(null),se=h(null),ce=h(null),le=h(null),ue=h(null),de=h(!1),fe=h(!1),pe=h(Ht(q||!re?1:.85)).current,me=h(Ht(+!!q)).current,he=h(null),ge=h(!1),[_e,ve]=g(q),ye=c(e=>{U||ie(e),d?.(e)},[U,d]),be=c(()=>{oe.current&&oe.current.measureInWindow((e,t,n,r)=>{Y({x:e,y:t,width:n,height:r})})},[]),xe=c(e=>{be(),ye(!0)},[be,ye]),Se=c(()=>{ye(!1)},[ye]),Ce=h(Se);Ce.current=Se;let we=c(()=>{if(!de.current)return;de.current=!1;let e=ue.current;ue.current=null,e?e():E&&Fv(se.current??oe.current)},[E]);u(()=>{if(q)return fe.current=!0,de.current=!1,m_(()=>Ce.current());fe.current&&(fe.current=!1,de.current=!0)},[q]),u(()=>{q&&ve(!0)},[q]);let Te=c(()=>{ue.current=o?.onPress??null,Se()},[o,Se]),Ee=h({autoHide:H,scaleAnimates:re,presence:j,theme:A,handleHide:Se});Ee.current={autoHide:H,scaleAnimates:re,presence:j,theme:A,handleHide:Se},u(()=>{let{autoHide:e,scaleAnimates:t,presence:n,theme:r,handleHide:i}=Ee.current;if(!ge.current)return ge.current=!0,q&&(be(),e&&(he.current&&clearTimeout(he.current),he.current=setTimeout(()=>{i()},4e3))),()=>{he.current&&=(clearTimeout(he.current),null)};let a;if(q){be();let o=[b.timing(me,{toValue:1,duration:n.duration(`fast`),useNativeDriver:Vt})];t?o.push(b.spring(pe,{toValue:1,damping:r.motion.spring.snappy.damping,stiffness:r.motion.spring.snappy.stiffness,mass:r.motion.spring.snappy.mass,useNativeDriver:Vt})):Ut(pe,1),a=b.parallel(o),a.start(),e&&(he.current&&clearTimeout(he.current),he.current=setTimeout(()=>{i()},4e3))}else{let e=[b.timing(me,{toValue:0,duration:n.reduced?n.duration(`fast`):150,easing:w.bezier(...r.motion.ease.accelerate),useNativeDriver:Vt})];t&&e.push(b.timing(pe,{toValue:.85,duration:150,easing:w.bezier(...r.motion.ease.accelerate),useNativeDriver:Vt})),a=b.parallel(e),a.start(({finished:e})=>{e&&ve(!1)}),he.current&&=(clearTimeout(he.current),null)}return()=>{a?.stop(),he.current&&=(clearTimeout(he.current),null)}},[q,be,me,pe]);let De=e=>{let{width:t,height:n}=e.nativeEvent.layout;t===X.width&&n===X.height||Z({width:t,height:n})},Oe=m(()=>Ek({anchor:J,size:X,placement:s,rich:E,viewport:{width:L.width,height:L.height,insets:I},maxWidth:ne,gap:ee,padding:B,arrowCornerPadding:12}),[J,X,s,E,L.width,L.height,I,ne,ee,B]),ke=J!==null&&X.width>0,Ae=q&&ke;u(()=>{if(!E||!Ae)return;let e=N.OS===`web`?le:ce,t=setTimeout(()=>Fv(e.current),150);return()=>clearTimeout(t)},[E,Ae]),u(()=>{!E&&Ae&&N.OS===`ios`&&typeof n==`string`&&eh(n)},[E,Ae,n]);let je=r.props,Me=m(()=>th(je.ref,se),[je.ref]),Ne={};D!==`longPress`||je.contextMenu?D===`press`&&(Ne.onPress=e=>{je.onPress?.(e),xe(e)}):(Ne.onLongPress=xe,Ne.accessibilityHint=k.longPressHint),E&&(Ne.ref=Me);let Pe=e.cloneElement(r,Ne),Fe=v??(typeof n==`string`?n:k.fallbackName),Ie=m(()=>{if(!_)return null;let e={position:`absolute`,width:0,height:0,backgroundColor:`transparent`,borderStyle:`solid`,borderLeftWidth:4,borderRightWidth:4,borderBottomWidth:6,borderTopWidth:0,borderLeftColor:`transparent`,borderRightColor:`transparent`,borderTopColor:`transparent`,borderBottomColor:E?A.colors.surface:A.colors[`surface-inverse`]};return Oe.placement===`top`?{...e,bottom:-6,left:Oe.arrowOffset-4,transform:[{rotate:`180deg`}]}:Oe.placement===`bottom`?{...e,top:-6,left:Oe.arrowOffset-4}:Oe.placement===`left`?{...e,right:-6,top:Oe.arrowOffset-4,transform:[{rotate:`90deg`}]}:{...e,left:-6,top:Oe.arrowOffset-4,transform:[{rotate:`-90deg`}]}},[_,Oe,A,E]),Le={position:`absolute`,top:Oe.top,left:Oe.left,maxWidth:ne,opacity:q&&!ke?0:me,transform:[{scale:pe}]},Re=Ie?G(V,{style:[Ie,x],pointerEvents:`none`}):null;return K(ae,{children:[G(V,{ref:oe,collapsable:!1,onLayout:be,testID:T,children:Pe}),K(bv,{open:_e,onClose:Se,presentation:`fullScreen`,bare:!0,backdropOpacity:0,backdropPressClose:f,haptic:!1,labels:{close:k.close},onInsetsChange:F,onDismissed:we,testID:T,children:[_e&&E?K(b.View,{onLayout:De,style:[Le,y],children:[G(Sk,{title:a,content:n,action:o,onAction:Te,focusRef:ce,actionRef:le,messageStyle:S}),Re]}):null,_e&&!E?K(b.View,{accessibilityRole:N.OS===`web`?`tooltip`:void 0,accessibilityLiveRegion:`polite`,accessibilityLabel:Fe,onLayout:De,style:[Le,y],children:[G(V,{style:[z.tooltip,{backgroundColor:A.colors[`surface-inverse`],borderRadius:A.radius.md,...ni,paddingHorizontal:A.space.md,paddingVertical:A.space.sm,...A.shadow.popover,shadowColor:A.shadow.popover.shadowColor}],children:typeof n==`string`?G($,{variant:`bodySmall`,color:`inverse`,style:{lineHeight:18,...R.flatten(S)},children:n}):n}),Re]}):null]})]})},Ok=e=>R.create({tooltip:{overflow:`hidden`}}),kk=72,Ak=e=>String(e),jk=e=>String(e).split(`.`)[1]?.length??0,Mk=({draft:e,error:t,disabled:n,width:r,accessibilityLabel:i,styles:a,style:o,testID:s,fieldTestID:l})=>{let u=Ir(),d=fn(u,`sm`),f=xg(u,{disabled:n}),p=h(null),m=c(()=>{n||p.current?.focus()},[n]),g=c(t=>{we(),e.onChangeText(t)},[e.onChangeText]);return G(jg,{testID:l,size:`sm`,focused:e.editing,disabled:n,error:t,filled:!0,width:r,onPress:m,pressFeedback:!1,paddingHorizontal:u.space.sm,gap:u.space.xs,trailing:t?G(_p,{name:`info-circle`,size:d.icon,color:u.colors[`danger-text`]}):void 0,style:o,children:G(ee,{ref:p,style:[a.boxInput,{color:f.color,fontSize:d.text,...f.weightStyle}],value:e.text,onChangeText:g,onFocus:e.onFocus,onBlur:e.onBlur,onSubmitEditing:e.onBlur,editable:!n,keyboardType:`decimal-pad`,returnKeyType:`done`,textAlign:`center`,selectionColor:u.colors.primary,accessibilityLabel:i,accessibilityState:{disabled:n},"aria-disabled":n,testID:s})})};function Nk({ref:e,...t}){let{label:n,unit:r,info:i,required:a=!1,helperText:o,error:s,min:l=0,max:u=100,step:d=1,disabled:f=!1,tone:p=`primary`,size:h,variant:g,haptic:_,showBubble:v=!0,showBounds:y=!0,showInput:b=!1,showStepper:x=!1,leftIcon:S,rightIcon:C,startLabel:w,endLabel:T,formatValue:E=Ak,parseInput:D,animationDuration:O,inputWidth:k=kk,labels:A,accessibilityLabel:j,style:M,labelStyle:N,boundStyle:F,sliderStyle:I,inputStyle:L,testID:R}=t;Q(`SliderField`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`SliderField`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`SliderField`,`variant`,t.variant,[`default`,`inset`,`minimal`,`bar`]);let z=Zm(`sliderField`,zm),ee=m(()=>({...z,...A}),[z,A]),B=Ir(),te=m(()=>Pk(B),[B]),ne=O??B.motion.duration.fast,H=!0===t.range,re=!0===s||Tg(s),U=jk(d),W=c(e=>{if(!0!==t.range){if(Array.isArray(e))throw Error(`SliderField received a range value in single mode.`);t.onChange?.(e)}else{if(!Array.isArray(e))throw Error(`SliderField received a single value in range mode.`);t.onChange?.(e)}},[t.onChange,t.range]),[ie,ae]=Bh({value:t.value,defaultValue:t.defaultValue??(H?[l,u]:l),onChange:W}),[q,J]=Array.isArray(ie)?ie:[ie,u],Y=Rg(Math.min(q,J),l,u),X=Rg(Math.max(q,J),l,u),Z=Wg({value:Y,min:l,max:u,step:d,format:E,parse:D,onChange:e=>ae(H?[Math.min(e,X),X]:e)}),oe=Wg({value:X,min:l,max:u,step:d,format:E,parse:D,onChange:e=>ae([Y,Math.max(e,Y)])}),se=e=>{let t=zg(Y+e*d,l,u,d);t!==Y&&ae(t)},ce={color:f?B.colors[`text-disabled`]:B.colors[`text-muted`],size:fn(B,`md`).icon,disabled:f},le=[te.bubbleText,{color:Lg(B,p)}],ue=e=>G($,{variant:`bodySmall`,style:[te.bound,{color:f?B.colors[`text-disabled`]:B.colors[`text-muted`]},F],children:e}),de={min:l,max:u,step:d,disabled:f,tone:p,size:h,variant:g,haptic:_,showLabel:!!v&&`always`,renderLabel:v?e=>G(Ug,{value:e,format:E,decimals:U,duration:ne,style:le,testID:R&&!H?`${R}-bubble`:void 0}):void 0,accessibilityLabel:j??n,style:I,testID:R?`${R}-slider`:void 0};return K(V,{ref:e,style:[te.container,M],testID:R,children:[n?K(V,{style:te.labelRow,children:[G(Dg,{required:a,style:N,children:n}),r?G($,{variant:`caption`,style:{color:B.colors[`text-subtle`]},children:r}):null,i?G(Dk,{content:i,trigger:`press`,placement:`top`,children:G(P,{accessibilityRole:`button`,accessibilityLabel:Op(ee.about,{label:n}),hitSlop:8,...Zh(8),style:te.infoButton,children:G(_p,{name:`info-circle`,variant:`bold`,size:16,color:B.colors[`text-subtle`]})})}):null]}):null,K(V,{style:[te.row,v?te.rowWithBubble:null],children:[S?G(V,{children:$h(S,ce)}):null,x&&!H?G(mS,{icon:e=>G(_p,{name:`minus`,size:e.size,color:e.color}),onPress:()=>se(-1),accessibilityLabel:ee.decrease,variant:`ghost`,tone:`neutral`,size:`sm`,disabled:f||Y<=l,haptic:_,testID:R?`${R}-minus`:void 0}):null,H&&b?G(Mk,{draft:Z,error:re,disabled:f,width:k,accessibilityLabel:Op(ee.low,{name:n??ee.fallbackName}),styles:te,style:L,testID:R?`${R}-input-low`:void 0,fieldTestID:R?`${R}-field-low`:void 0}):y?ue(w??E(l)):null,G(V,{style:te.sliderWrap,children:G(e_,H?{...de,range:!0,value:[Y,X],onChange:ae}:{...de,value:Y,onChange:ae})}),H&&b?G(Mk,{draft:oe,error:re,disabled:f,width:k,accessibilityLabel:Op(ee.high,{name:n??ee.fallbackName}),styles:te,style:L,testID:R?`${R}-input-high`:void 0,fieldTestID:R?`${R}-field-high`:void 0}):y?ue(T??E(u)):null,x&&!H?G(mS,{icon:e=>G(_p,{name:`add`,size:e.size,color:e.color}),onPress:()=>se(1),accessibilityLabel:ee.increase,variant:`ghost`,tone:`neutral`,size:`sm`,disabled:f||Y>=u,haptic:_,testID:R?`${R}-plus`:void 0}):null,C?G(V,{children:$h(C,ce)}):null,!H&&b?G(Mk,{draft:Z,error:re,disabled:f,width:k,accessibilityLabel:Op(ee.current,{name:n??ee.fallbackName}),styles:te,style:L,testID:R?`${R}-input`:void 0,fieldTestID:R?`${R}-field`:void 0}):null]}),G(Og,{text:re?s:o,error:re})]})}var Pk=e=>R.create({container:{width:`100%`},labelRow:{flexDirection:`row`,alignItems:`center`,gap:e.space.xs},infoButton:{marginLeft:e.space.xxs},row:{flexDirection:`row`,alignItems:`center`,gap:e.space.sm},rowWithBubble:{marginTop:e.space.lg},sliderWrap:{flex:1,paddingHorizontal:e.space.sm},bound:{fontVariant:[`tabular-nums`]},bubbleText:{fontVariant:[`tabular-nums`]},boxInput:{flex:1,padding:e.space.none,margin:e.space.none,includeFontPadding:!1}}),Fk={sm:{height:44,pad:`xxs`},md:{height:56,pad:`xs`},lg:{height:64,pad:`sm`}},Ik=({color:e,size:t})=>G(V,{style:{width:0,height:0,borderTopWidth:.4*t,borderBottomWidth:.4*t,borderLeftWidth:.55*t,borderTopColor:`transparent`,borderBottomColor:`transparent`,borderLeftColor:e,marginLeft:.2*t}});function Lk({ref:t,...n}){let{onConfirm:r,label:i,tone:a=`primary`,size:o=`md`,disabled:s=!1,threshold:l=.9,resetAfter:u=!1,haptic:d,icon:f,labels:p,style:_,trackStyle:v,handleStyle:y,labelStyle:b,testID:x}=n;Q(`SlideToConfirm`,`tone`,n.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`SlideToConfirm`,`size`,n.size,[`sm`,`md`,`lg`]);let S=Zm(`slideToConfirm`,Bm),C=m(()=>({...S,...p}),[S,p]),w=m(()=>[{name:`activate`,label:C.confirmAction},{name:`increment`,label:C.confirmAction}],[C.confirmAction]),T=Ir(),E=Fk[o],D=T.space[E.pad],O=E.height-2*D,k=m(()=>Rk(T,E),[T,E]),A=T.colors[a],[j,M]=g(!1),N=Xe(0),P=Xe(0),F=Xe(0),I=h(null),L=c(()=>{let e=ci(d,`notificationSuccess`);e&&si(e)},[d]),R=c(()=>{M(!1),N.value=et(0,{damping:18,stiffness:160,mass:1})},[N]),z=c(()=>{M(!0),L(),r(),!1!==u&&(I.current&&clearTimeout(I.current),I.current=setTimeout(R,u))},[L,r,u,R]),ee=c(e=>{if(s||j)return;let{actionName:t}=e.nativeEvent;t!==`activate`&&t!==`increment`||z()},[s,j,z]);e.useEffect(()=>()=>{Re(N),I.current&&clearTimeout(I.current)},[N]);let B=c(e=>{P.value=Math.max(0,e.nativeEvent.layout.width-O-2*D)},[P,O,D]),te=m(()=>{let e=l,t={damping:18,stiffness:160,mass:1},n={duration:T.motion.duration.fast,easing:De.out(De.cubic)};return{enabled:!s&&!j,minDistance:0,onActivate:()=>{"worklet";F.value=N.value},onUpdate:e=>{"worklet";N.value=Math.min(Math.max(F.value+e.translationX,0),P.value)},onDeactivate:()=>{"worklet";P.value>0&&N.value>=P.value*e?(N.value=tt(P.value,n),yt(z)):N.value=et(0,t)}}},[s,j,l,N,P,F,z,T.motion.duration.fast]),ne=ht(te),H=Ge(()=>({transform:[{translateX:N.value}]}),[N]),re=Ge(()=>({width:N.value+O+D}),[N,O,D]),U=Ge(()=>{let e=P.value>0?P.value:1;return{opacity:Math.max(0,1-N.value/(.6*e))}},[P,N]);return K(V,{ref:t,style:[k.track,{backgroundColor:T.colors[`bg-subtle`]},v,_],onLayout:B,testID:x,accessibilityRole:`adjustable`,accessibilityLabel:j?C.confirmed:i??C.slide,accessibilityState:{disabled:s},"aria-disabled":s,accessibilityActions:w,onAccessibilityAction:ee,children:[G(Ee.View,{style:[k.fill,{backgroundColor:A,opacity:s?.5:1},re],pointerEvents:`none`}),G(Ee.View,{style:[k.labelWrap,U],pointerEvents:`none`,children:G($,{variant:`body`,style:[k.label,{color:T.colors[`text-muted`]},b],numberOfLines:1,children:j?C.confirmed:i??C.slide})}),G(ut,{gesture:ne,children:G(Ee.View,{style:[k.handle,{width:O,height:O,borderRadius:T.radius.pill,...ni,backgroundColor:T.colors.surface,opacity:s?.5:1,...T.shadow.card},y,H],children:f??G(Ik,{color:A,size:.5*O})})})]})}var Rk=(e,t)=>R.create({track:{height:t.height,borderRadius:e.radius.pill,...ni,justifyContent:`center`,overflow:`hidden`,padding:e.space[t.pad]},fill:{position:`absolute`,left:0,top:0,bottom:0,borderRadius:e.radius.pill,...ni},labelWrap:{position:`absolute`,left:t.height,right:t.height},label:{textAlign:`center`,includeFontPadding:!1},handle:{alignItems:`center`,justifyContent:`center`}}),zk={damping:22,stiffness:260,mass:1},Bk={moveUp:-1,moveDown:1},Vk=e=>{};function Hk(e,t,n){let r=e.slice();if(t<0||t>=r.length)return r;let[i]=r.splice(t,1);return i===void 0||r.splice(n,0,i),r}function Uk(e,t){"worklet";let n=0;for(let r=0;r<t;r++)n+=e[r]??0;return n}function Wk(e,t,n){"worklet";let r=0,i=0;for(let a=0;a<e.length&&i<n;a++)a!==t&&(r+=e[a]??0,i++);return r}function Gk(e,t,n){"worklet";let r=Uk(e,t)+(e[t]??0)/2+n,i=0,a=0;for(let n=0;n<e.length;n++){let o=e[n]??0;n!==t&&a+o/2<r&&i++,a+=o}return i}function Kk(e,t,n){let r=[],i=0;for(let t of e)r.push(i),i+=t;let a=e.map(()=>0),o=Hk(e.map((e,t)=>t),t,n),s=0;for(let t of o)a[t]=s-(r[t]??0),s+=e[t]??0;return a}var qk=e=>R.create({handleRow:{flexDirection:`row`,alignItems:`center`},handle:{paddingHorizontal:e.space.sm,paddingVertical:e.space.md,gap:e.space.xxs},bar:{width:e.space.md,height:e.space.xxs,backgroundColor:e.colors[`text-muted`]},body:{flex:1}});function Jk({rowKey:e,index:t,count:n,shift:r,isActive:i,dragging:a,handle:o,disabled:s,shared:c,callbacks:l,labels:d,children:f}){let p=Ir(),h=m(()=>qk(p),[p]),g=Xe(0);u(()=>{g.value=a&&!i?et(r,zk):r},[a,i,r,g]),u(()=>()=>{Re(g)},[g]);let _=Ge(()=>({transform:[{translateY:i?c.dragY.value:g.value}],zIndex:+!!i}),[i,c,g]),v=m(()=>{let{dragIndex:e,dropTo:n,dragY:r,translation:i,absoluteY:a,scrollY:u,scrollStart:d,hostOffset:f,hostStart:p,hostTarget:m,heights:h}=c,{onLift:g,onDrop:_,onSettled:v}=l;return{enabled:!s,...o?{}:{activateAfterLongPress:350},onActivate:o=>{"worklet";a.value=o.absoluteY,e.value=t,n.value=t,d.value=u.value,p.value=f.value,m.value=f.value,i.value=0,r.value=0,yt(g,t)},onUpdate:n=>{"worklet";e.value===t&&(i.value=n.translationY,a.value=n.absoluteY)},onFinalize:()=>{"worklet";if(e.value!==t)return;let i=n.value,a=h.value;e.value=-1,r.value=Uk(a,t)+r.value-Wk(a,t,i),r.value=et(0,zk,e=>{"worklet";e&&yt(v)}),yt(_,t,i)}}},[s,o,t,l,c]),y=ht(v),b=s?[]:[...t>0?[{name:`moveUp`,label:d.moveUp}]:[],...t<n-1?[{name:`moveDown`,label:d.moveDown}]:[]];return G(Ee.View,{style:_,onLayout:t=>l.onHeight(e,t.nativeEvent.layout.height),accessibilityActions:b,onAccessibilityAction:e=>{if(s)return;let r=t+(Bk[e.nativeEvent.actionName]??0);r!==t&&r>=0&&r<n&&l.onMove(t,r)},testID:`sortable-row-${e}`,children:o?K(V,{style:h.handleRow,children:[G(ut,{gesture:y,children:K(V,{style:h.handle,children:[G(V,{style:h.bar}),G(V,{style:h.bar}),G(V,{style:h.bar})]})}),G(V,{style:h.body,children:f})]}):G(ut,{gesture:y,children:G(V,{children:f})})})}function Yk(e){let{data:t,keyExtractor:n,renderItem:r,onReorder:i,handle:a=!1,disabled:o=!1,accessibilityLabel:s,labels:l,testID:d}=e,f=Zm(`sortableList`,Vm),p=m(()=>({...f,...l}),[f,l]),_=m(()=>t.map((e,t)=>({key:n(e,t),item:e})),[t,n]),v=m(()=>_.map(e=>e.key),[_]),y=Ue(),b=Xe(0),x=Xe(0),S=Xe(0),C=MO(),w=Xe(0),T=C!==null,E=C?.top??w,D=C?.bottom??w,O=C?.offset??w,k=C?.maxOffset??w,A=C?.scrollTo??Vk,j=Xe(0),M=Xe(0),N=Xe(0),P=Xe(0),F=Xe(-1),I=Xe(-1),L=Xe(0),R=Xe([]),z=h(new Map),ee=h(v),[B,V]=g(null),te=c(()=>{R.value=ee.current.map(e=>z.current.get(e)??0)},[R]);u(()=>{ee.current=v,te()},[v,te]),u(()=>()=>{Re(L)},[L]);let ne=c(e=>{V(t=>t?.dragging?{...t,to:e}:t)},[]),H=qe(()=>{"worklet";let e=F.value;if(e<0)return;let t=Be(y);if(t){let e=T?Math.max(t.pageY,E.value):t.pageY,n=T?Math.min(t.pageY+t.height,D.value):t.pageY+t.height,r=Math.max(0,S.value-t.height-1);P.value<e+48?b.value>1?Ve(y,0,Math.max(0,b.value-12),!1):T&&M.value>0&&(M.value=Math.max(0,M.value-12),yt(A,M.value)):P.value>n-48&&(b.value<r?Ve(y,0,Math.min(r,b.value+12),!1):T&&M.value<k.value&&(M.value=Math.min(k.value,M.value+12),yt(A,M.value)))}L.value=N.value+b.value-x.value+O.value-j.value;let n=Gk(R.value,e,L.value);n!==I.value&&(I.value=n,yt(ne,n))},!1),re=c(e=>{si(`longPress`),H.setActive(!0),V({key:v[e]??``,from:e,to:e,dragging:!0})},[H,v]),U=c((e,t)=>{H.setActive(!1),V(e=>e&&{...e,to:t,dragging:!1}),t!==e&&i(Hk(v,e,t))},[H,v,i]),W=c(()=>{V(e=>e&&!e.dragging?null:e)},[]),ie=c((e,t)=>{i(Hk(v,e,t))},[v,i]),ae=c((e,t)=>{z.current.set(e,t),te()},[te]),K=We({onScroll:e=>{"worklet";b.value=e.contentOffset.y}}),q=c((e,t)=>{S.value=t},[S]),J=m(()=>({scrollRef:y,scrollY:b,scrollStart:x,hostOffset:O,hostStart:j,hostTarget:M,translation:N,absoluteY:P,dragIndex:F,dropTo:I,dragY:L,heights:R}),[y,b,x,O,j,M,N,P,F,I,L,R]),Y=m(()=>({onLift:re,onDrop:U,onSettled:W,onMove:ie,onHeight:ae}),[re,U,W,ie,ae]),X=!0===B?.dragging,Z=X&&B?Kk(v.map(e=>z.current.get(e)??0),B.from,B.to):null;return G(Ee.ScrollView,{ref:y,onScroll:K,onContentSizeChange:q,scrollEventThrottle:16,scrollEnabled:!X,accessibilityLabel:s,testID:d,children:_.map((e,t)=>{let n=B?.key===e.key;return G(Jk,{rowKey:e.key,index:t,count:_.length,shift:Z?.[t]??0,isActive:n,dragging:X,handle:a,disabled:o,shared:J,callbacks:Y,labels:p,children:r({item:e.item,index:t,isActive:n})},e.key)})})}Yk.displayName=`SortableList`;var Xk=e=>e.filter(e=>Number.isFinite(e)),Zk=e=>(Math.round(100*e)/100).toString(),Qk=(e,t,n,r)=>{let i=Xk(e);if(i.length===0||t<=0||n<=0)return{line:``,area:``,last:null};let a=Math.min(...i),o=Math.max(...i),s=Math.max(0,t-2*r),c=Math.max(0,n-2*r),l=o-a,u=i.map((e,a)=>({x:i.length===1?t/2:r+a*s/(i.length-1),y:l===0?n/2:r+(o-e)/l*c})),d=u.map((e,t)=>`${t===0?`M`:`L`}${Zk(e.x)} ${Zk(e.y)}`).join(` `),f=u[0],p=u[u.length-1];if(f===void 0||p===void 0)throw Error(`A sparkline with values has points to draw.`);return{line:d,area:`${d} L${Zk(p.x)} ${Zk(n)} L${Zk(f.x)} ${Zk(n)} Z`,last:p}},$k=Xk,eA=(e,t)=>{if(t===`neutral`)return e.colors[`text-muted`];let n=`${t}-text`;return e.colors[n]},tA=e=>de(e);function nA(e){let{ref:t,data:n,tone:r=`primary`,color:i,fill:a=!1,highlightLast:o=!0,height:s=32,width:l,strokeWidth:u=2,label:d,formatLabel:f=tA,accessibilityLabel:p,labels:h,style:_,testID:v}=e;Q(`Sparkline`,`tone`,e.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]);let y=Zm(`sparkline`,Hm),b=m(()=>({...y,...h}),[y,h]),x=Ir(),[S,C]=g(0),w=l??S,T=c(e=>{if(l===void 0){let t=Math.round(e.nativeEvent.layout.width);C(e=>e===t?e:t)}},[l]),E=Math.max(3,u/2)+1,D=m(()=>Qk(n,w,s,E),[n,w,s,E]),O=i??eA(x,r),k=m(()=>{if(p!==void 0)return p;let e=$k(n),t=d?`${d}, `:``,[r]=e;if(r===void 0)return`${t}${b.noData}`;if(e.length===1)return`${t}${f(r)}`;let i=e[e.length-1];if(i===void 0)throw Error(`A sparkline with two or more finite values has a last value.`);let a=f(r),o=f(i),s=f(Math.min(...e)),c=f(Math.max(...e));return`${t}${Op(b.range,{first:a,end:o,low:s,high:c})}`},[p,n,f,d,b]);return G(V,{ref:t,accessible:!0,accessibilityRole:`image`,accessibilityLabel:k,testID:v,onLayout:T,style:[rA.root,l===void 0?rA.stretch:{width:l},{height:s},_],children:D.line===``?null:K(rt,{width:w,height:s,viewBox:`0 0 ${w} ${s}`,children:[a?G(at,{d:D.area,fill:O,fillOpacity:.14,stroke:`none`}):null,G(at,{d:D.line,fill:`none`,stroke:O,strokeWidth:u,strokeLinecap:`round`,strokeLinejoin:`round`,...v?{testID:`${v}-line`}:{}}),o&&D.last?G(it,{cx:D.last.x,cy:D.last.y,r:3,fill:O,...v?{testID:`${v}-dot`}:{}}):null]})})}var rA=R.create({root:{overflow:`hidden`},stretch:{alignSelf:`stretch`}}),iA=({width:e,height:t,radius:n,color:r,smoothing:i})=>{let a=`M 0 0 H ${e} V ${t} H 0 Z ${Dr({width:e,height:t,radius:n,smoothing:i})}`;return G(V,{pointerEvents:`none`,style:R.absoluteFill,children:G(rt,{width:e,height:t,viewBox:`0 0 ${e} ${t}`,children:G(at,{d:a,fill:r,fillRule:`evenodd`})})})},aA=({radius:e,cornerColor:t,style:n,onLayout:r,...i})=>{let a=Ir(),o=Xt(a,e),s=ag(o>0,o,r),c={borderRadius:o,overflow:`hidden`};if(N.OS===`ios`){let e={...c,...ni};return G(St,{...i,onLayout:s.onLayout,style:[n,e]})}let l=s.active?s.size:null;return K(V,{style:[n,c],onLayout:s.onLayout,children:[G(St,{...i,style:R.absoluteFill}),l?G(iA,{width:l.width,height:l.height,radius:o,color:t??a.colors.bg,smoothing:a.cornerSmoothing}):null]})};aA.displayName=`SquircleImage`;var oA=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopStartRadius`,`borderTopEndRadius`,`borderBottomStartRadius`,`borderBottomEndRadius`,`borderTopWidth`,`borderRightWidth`,`borderBottomWidth`,`borderLeftWidth`,`borderStartWidth`,`borderEndWidth`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`,`borderStartColor`,`borderEndColor`],sA=e=>{let{borderRadius:t,backgroundColor:n,borderColor:r,borderWidth:i=0,borderStyle:a}=e;if(typeof t!=`number`||t<=0||e.overflow===`hidden`||(e.elevation??0)>0||a!==void 0&&a!==`solid`||oA.some(t=>e[t]!==void 0))return null;let o=typeof n==`string`&&n!==`transparent`,s=i>0&&typeof r==`string`&&r!==`transparent`;return n!==void 0&&typeof n!=`string`||i>0&&r!==void 0&&typeof r!=`string`||!o&&!s?null:{radius:t,fill:o?n:`transparent`,stroke:s?r:void 0,strokeWidth:s?i:0}};function cA({style:e,children:t,onLayout:n,ref:r,...i}){let a=R.flatten(e)??{},o=sA(a),s=typeof a.borderRadius==`number`?a.borderRadius:0,c=ag(s>0,s,n),l=c.active?c.size:null,u=o!==null&&l!==null;return K(V,{ref:r,...i,onLayout:c.onLayout,style:[s>0?ni:null,e,u?lA.hostTransparent:null],children:[o&&l?G(ig,{width:l.width,height:l.height,radius:o.radius,fill:o.fill,stroke:o.stroke,strokeWidth:o.strokeWidth}):null,t]})}cA.displayName=`SquircleView`;var lA=R.create({hostTransparent:{backgroundColor:`transparent`,borderColor:`transparent`}}),uA=Object.freeze({trendUp:`up`,trendDown:`down`,trendFlat:`no change`}),dA=e=>typeof e==`string`||typeof e==`number`,fA={up:`arrow-up`,down:`arrow-down`,flat:`minus`},pA={up:`+`,down:`-`,flat:``},mA=e=>`${e}-text`,hA=e=>fe(Math.abs(e),{scale:`percent`,maximumFractionDigits:1}),gA=e=>typeof e.value==`number`?`${pA[e.direction]}${hA(e.value)}`:e.value,_A=(e,t)=>{let n=[{up:t.trendUp,down:t.trendDown,flat:t.trendFlat}[e.direction]];return e.direction!==`flat`&&n.push(typeof e.value==`number`?hA(e.value):e.value),e.period&&n.push(e.period),n.join(` `)};function vA(e){let{ref:t,label:n,value:r,icon:i,iconVariant:a,tone:o=`primary`,caption:s,trend:c,sparkline:l,onPress:u,loading:d=!1,accessibilityLabel:f,labels:p,flex:h,style:g,testID:_}=e,v=Ir();Q(`StatTile`,`tone`,e.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`StatTile`,`trend.direction`,c?.direction,[`up`,`down`,`flat`]),Q(`StatTile`,`trend.goodWhen`,c?.goodWhen,[`up`,`down`]);let y=m(()=>({...uA,...p}),[p]),b=c?`, ${_A(c,y)}`:``,x=dA(n)?`${n}, `:``,S=f??(dA(r)?`${x}${r}${b}`:void 0),C=!!c&&c.direction===(c.goodWhen??`up`),w=c&&c.direction!==`flat`?C?`success`:`danger`:`secondary`,T=w===`secondary`?v.colors[`text-muted`]:v.colors[mA(w)];return G(wx,d?{ref:t,variant:`outline`,flex:h,style:g,testID:_,children:K(V,{style:[yA.row,{columnGap:v.space.md}],children:[i===void 0?null:G(vh,{shape:`circle`,width:40,height:40}),K(V,{style:yA.text,children:[G(vh,{shape:`text`,width:`50%`,height:12}),G(vh,{shape:`text`,width:`35%`,height:24,style:{marginTop:v.space.xs}})]})]})}:{ref:t,variant:`outline`,flex:h,onPress:u,accessibilityLabel:S,style:g,testID:_,children:K(V,{style:[yA.row,{columnGap:v.space.md}],children:[i===void 0?null:G(D_,{icon:i,iconVariant:a,tone:o}),K(V,{style:yA.text,children:[G($,{variant:`caption`,color:`secondary`,numberOfLines:1,children:n}),dA(r)?G($,{variant:`h3`,numberOfLines:1,children:r}):r,c?K(V,{style:[yA.trend,{columnGap:v.space.xxs}],testID:_?`${_}-trend`:void 0,children:[G(V,{accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:G(_p,{name:fA[c.direction],size:`xs`,color:T})}),K($,{variant:`caption`,color:w,numberOfLines:2,style:yA.text,children:[gA(c),c.period?G($,{variant:`caption`,color:`tertiary`,children:` ${c.period}`}):null]})]}):null,s==null||s===``?null:dA(s)?G($,{variant:`caption`,color:`tertiary`,numberOfLines:1,children:s}):s,l==null?null:G(V,{style:{marginTop:v.space.sm},children:l})]})]})})}var yA=R.create({row:{flexDirection:`row`,alignItems:`center`},text:{flex:1,minWidth:0},trend:{flexDirection:`row`,alignItems:`center`}}),bA={sm:{height:22,paddingX:`sm`,dot:5,gap:`xs`},md:{height:24,paddingX:`md`,dot:6,gap:`xs`}},xA=(e,t)=>{let n=bA[t];return{height:n.height,paddingH:e.space[n.paddingX],dot:n.dot,gap:e.space[n.gap]}},SA=(e,t)=>{let{colors:n}=e;switch(t){case`success`:return{base:n.success,on:n[`on-success`],ink:n[`success-text`],soft:n[`success-soft`]};case`warning`:return{base:n.warning,on:n[`on-warning`],ink:n[`warning-text`],soft:n[`warning-soft`]};case`danger`:return{base:n.danger,on:n[`on-danger`],ink:n[`danger-text`],soft:n[`danger-soft`]};case`info`:return{base:n.info,on:n[`on-info`],ink:n[`info-text`],soft:n[`info-soft`]};case`primary`:return{base:n.primary,on:n[`on-primary`],ink:n[`primary-text`],soft:n[`primary-soft`]};default:return{base:n[`text-muted`],on:n[`on-neutral-strong`],ink:n[`text-muted`],soft:n.border}}},CA=e=>typeof e==`string`&&/^#[0-9a-f]{6}$/i.test(e),wA=(e,t,n,r)=>{let i=CA(r),{base:a,on:o,ink:s,soft:c}=i?{base:r,on:e.colors[`text-inverse`],ink:tr(r,[e.colors.bg,e.colors[`bg-subtle`],e.colors[`bg-muted`]],e.mode),soft:Bn(r,.14,e.colors[`bg-subtle`])}:SA(e,t),l=!i&&t===`neutral`,u=l?e.colors[`bg-muted`]:Bn(a,.14,e.colors[`bg-subtle`]),d=l?e.colors.border:Bn(a,.4,a);switch(n){case`solid`:return{fill:a,border:a,text:o,dot:o};case`outline`:return{fill:`transparent`,border:l?d:a,text:s,dot:a};case`flat`:return{fill:u,border:`transparent`,text:s,dot:a};case`ghost`:return{fill:`transparent`,border:`transparent`,text:s,dot:a};case`filled`:return{fill:c,border:`transparent`,text:s,dot:a};default:return{fill:u,border:d,text:s,dot:a}}},TA=({ref:e,...t})=>{let{label:n,tone:r=`neutral`,variant:i=`soft`,size:a=`md`,ink:o=`tone`,weight:s=`semibold`,padding:c=`default`,dot:l=!1,color:u,loading:d=!1,accessibilityLabel:f,style:p,textStyle:h,testID:g}=t;Q(`StatusBadge`,`tone`,t.tone,[`success`,`warning`,`danger`,`info`,`primary`,`neutral`]),Q(`StatusBadge`,`variant`,t.variant,[`solid`,`soft`,`outline`,`ghost`,`flat`,`filled`]),Q(`StatusBadge`,`size`,t.size,[`sm`,`md`]),Q(`StatusBadge`,`ink`,t.ink,[`tone`,`primary`]),Q(`StatusBadge`,`weight`,t.weight,[`semibold`,`bold`]),Q(`StatusBadge`,`padding`,t.padding,[`default`,`sm`,`md`]);let _=Ir(),v=xA(_,a),y=m(()=>wA(_,r,i,u),[_,r,i,u]),b=o===`primary`&&i!==`solid`?_.colors[`text-body`]:y.text,x=c==="default"?{minHeight:v.height,paddingHorizontal:v.paddingH}:{paddingHorizontal:_.space[c],paddingVertical:_.space.xs},S=i===`filled`?0:1;return d?G(EA,{...t}):K(V,{ref:e,accessible:!0,accessibilityRole:`text`,accessibilityLabel:f??n,testID:g,style:[OA.base,{...x,borderRadius:_.radius.pill,...ni,backgroundColor:y.fill,borderColor:y.border,borderWidth:S},p],children:[l?G(V,{testID:`status-badge-dot`,style:{width:v.dot,height:v.dot,borderRadius:v.dot/2,marginRight:v.gap,backgroundColor:y.dot}}):null,G($,{variant:a===`sm`?`caption`:`bodySmall`,weight:s,style:[OA.label,{color:b},h],numberOfLines:1,children:n})]})};TA.displayName=`StatusBadge`;var EA=({label:e,size:t=`md`,variant:n=`soft`,padding:r=`default`,dot:i,style:a})=>{let o=Ir(),s=xA(o,t),c=Math.max(32,Math.min(120,6.5*(e??``).length))+2*(r==="default"?s.paddingH:o.space[r])+(i?s.dot+s.gap:0),l=r==="default"?s.height:Math.round(o.text[t===`sm`?`xs`:`sm`].size*o.leading.body)+2*o.space.xs+2*(n===`filled`?0:1);return G(vh,{width:c,height:l,radius:l/2,style:[OA.skeleton,a]})};EA.displayName=`StatusBadgeSkeleton`;var DA=Object.assign(TA,{Skeleton:EA}),OA=R.create({base:{alignSelf:`flex-start`,flexDirection:`row`,alignItems:`center`,justifyContent:`center`},label:{textAlign:`center`,includeFontPadding:!1,textAlignVertical:`center`},skeleton:{alignSelf:`flex-start`}}),kA=(e,t)=>{switch(t){case`success`:return e.colors.success;case`warning`:return e.colors.warning;case`danger`:return e.colors.danger;case`info`:return e.colors.info;case`neutral`:return e.colors.neutral;case`primary`:return e.colors.primary}},AA=(e,t)=>{switch(t){case`success`:return e.colors[`on-success`];case`warning`:return e.colors[`on-warning`];case`danger`:return e.colors[`on-danger`];case`info`:return e.colors[`on-info`];case`neutral`:return e.colors[`on-neutral`];case`primary`:return e.colors[`on-primary`]}},jA=(e,t)=>{switch(t){case`complete`:return e.statusComplete;case`active`:return e.statusActive;case`upcoming`:return e.statusUpcoming}},MA=({index:e,step:t,status:n,toneColor:r,upcomingColor:i,upcomingFillColor:a,textOnColor:o,upcomingTextColor:s,interactive:c,canPress:l,totalSteps:d,onPress:f,pulseEnabled:p,labels:m,circleStyles:g,circleSlotStyle:_})=>{let v=n===`active`,y=Ir(),x=h(Ht(1)).current,S=h(Ht(.5)).current;u(()=>{if(!v||!p)return x.setValue(1),void S.setValue(0);let e=b.loop(b.parallel([b.sequence([b.timing(x,{toValue:1.4,duration:1100,easing:w.out(w.ease),useNativeDriver:Vt}),b.timing(x,{toValue:1,duration:0,useNativeDriver:Vt})]),b.sequence([b.timing(S,{toValue:0,duration:1100,easing:w.out(w.ease),useNativeDriver:Vt}),b.timing(S,{toValue:.5,duration:0,useNativeDriver:Vt})])]));return e.start(),()=>e.stop()},[v,x,S,p]);let C=n===`upcoming`?a:r,T=n===`upcoming`?i:r,E=n===`upcoming`?s:o,D=n===`complete`,O=Op(m.step,{index:e+1,total:d,label:t.label,status:jA(m,n)}),k=K(V,{style:g.relative,children:[v&&p?G(b.View,{pointerEvents:`none`,style:[g.pulse,{width:32,height:32,borderRadius:y.radius.pill,...ni,backgroundColor:r,opacity:S,transform:[{scale:x}]}]}):null,G(V,{style:[g.circle,{width:24,height:24,borderRadius:y.radius.pill,...ni,backgroundColor:C,borderColor:T},_],children:t.icon?t.icon:G($,D?{variant:`bodySmall`,weight:`semibold`,style:[g.glyph,{color:E}],children:`✓`}:{variant:`bodySmall`,weight:`semibold`,style:[g.glyph,{color:E}],children:e+1})})]});return c?G(P,{onPress:()=>f(e),disabled:!l,accessibilityRole:`button`,accessibilityLabel:O,accessibilityState:{selected:v,disabled:!l},"aria-selected":v,"aria-disabled":!l,hitSlop:8,...Zh(8),children:k}):G(V,{accessibilityRole:`text`,accessibilityLabel:O,accessibilityState:{selected:v},"aria-selected":v,children:k})},NA=()=>R.create({relative:{alignItems:`center`,justifyContent:`center`},pulse:{position:`absolute`},circle:{borderWidth:2,alignItems:`center`,justifyContent:`center`},glyph:{includeFontPadding:!1}});function PA({ref:e,...t}){let{steps:n,activeStep:r,defaultActiveStep:i=0,pressMode:a=`none`,onStepPress:o,onActiveStepChange:s,variant:c=`horizontal`,tone:l=`primary`,formatCaption:d,showCaption:f=!0,loading:p=!1,labels:_,accessibilityLabel:v,style:y,circleStyle:x,labelStyle:S,connectorStyle:C,haptic:T,testID:E}=t;Q(`Stepper`,`variant`,t.variant,[`horizontal`,`vertical`,`segmented`]),Q(`Stepper`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`Stepper`,`pressMode`,t.pressMode,[`none`,`back`,`select`]);let D=Zm(`stepper`,Wm),O=m(()=>({...D,..._}),[D,_]),k=Ir(),A=k.settings.components.stepper?.pulseAnimation??!1,j=ci(T,`selection`),M=m(()=>RA(k),[k]),N=m(()=>NA(),[]),F=kA(k,l),I=k.colors.border,L=k.colors.bg,R=k.colors[`text-muted`],z=AA(k,l),ee=n.length,B=a!==`none`,te=r!==void 0,[ne,H]=g(i),re=te?r:ne,U=re==null||re<0?null:re,W=e=>U===null?`upcoming`:e<U?`complete`:e===U?`active`:`upcoming`,ie=n.map((e,t)=>W(t)),ae=ie.filter(e=>e!==`upcoming`).length,q=ie.filter(e=>e===`complete`).length,J=e=>a===`back`?e===`complete`:B,Y=e=>{if(!J(W(e)))return;j&&si(j),o?.(e);let t=a===`select`&&e===U?null:e;te||H(t),s?.(t)},X=h(Ht(ae)).current,Z=h(ae);u(()=>{let e=Z.current;if(e===ae)return;Z.current=ae;let t=b.timing(X,{toValue:ae,duration:k.motion.duration.default*Math.abs(ae-e),easing:w.linear,useNativeDriver:!1});return t.start(),()=>t.stop()},[ae,X,k.motion]);let oe=e=>X.interpolate({inputRange:[e,e+1],outputRange:[`0%`,`100%`],extrapolate:`clamp`}),se=ee<=1?`0%`:X.interpolate({inputRange:[1,ee],outputRange:[`0%`,`100%`],extrapolate:`clamp`}),ce=U!==null&&U<ee?U:null,le=v??(ce===null?Op(O.progressDone,{done:q,total:ee}):Op(O.progressStep,{step:ce+1,total:ee})),[ue,de]=g(0),fe=ee>0&&ue>0?ue/(2*ee):0,pe=G(V,{ref:e,style:[M.container,y],testID:E,accessibilityRole:`progressbar`,accessibilityLabel:le,accessibilityValue:{min:0,max:ee,now:ae},children:c===`segmented`?(()=>{let e=ce===null?void 0:n[ce],t=f?d?d(ce,ee,e):ce===null?Op(O.captionDone,{done:q,total:ee}):e?.label?Op(O.captionStepLabelled,{step:ce+1,total:ee,label:e.label}):Op(O.captionStep,{step:ce+1,total:ee}):``;return K(V,{children:[f?G($,{variant:`bodySmall`,style:[M.sCaption,{marginBottom:k.space.sm},S],numberOfLines:1,children:t}):null,G(V,{style:M.sRow,children:n.map((e,t)=>{let n=W(t),r=Op(O.step,{index:t+1,total:ee,label:e.label,status:jA(O,n)}),i=G(V,{testID:E?`${E}-segment-${t}`:void 0,style:[M.sTrack,{backgroundColor:I},C],children:G(b.View,{style:[M.sFill,{backgroundColor:F,width:oe(t)}]})});if(B){let a=J(n);return G(P,{style:M.sItem,onPress:()=>Y(t),disabled:!a,accessibilityRole:`button`,accessibilityLabel:r,accessibilityState:{selected:n===`active`,disabled:!a},"aria-selected":n===`active`,"aria-disabled":!a,hitSlop:{top:12,bottom:12},...Zh({top:12,bottom:12}),children:i},e.key)}return G(V,{style:M.sItem,accessibilityRole:`text`,accessibilityLabel:r,accessibilityState:{selected:n===`active`},"aria-selected":n===`active`,children:i},e.key)})})]})})():c===`vertical`?G(V,{style:M.vCol,children:n.map((e,t)=>{let n=W(t),r=t===ee-1;return K(V,{style:M.vRow,children:[K(V,{style:M.vLeft,children:[G(MA,{index:t,step:e,status:n,toneColor:F,upcomingColor:I,upcomingFillColor:L,onPressColor:F,textOnColor:z,upcomingTextColor:R,interactive:B,canPress:J(n),totalSteps:ee,onPress:Y,pulseEnabled:A,labels:O,circleStyles:N,circleSlotStyle:x}),r?null:K(V,{style:[M.vConnectorContainer,C],children:[G(V,{style:[M.vConnectorTrack,{backgroundColor:I}]}),G(b.View,{style:[M.vConnectorFill,{backgroundColor:F,height:oe(t+1)}]})]})]}),K(V,{style:M.vBody,children:[G($,{variant:`body`,weight:`semibold`,style:[M.vLabel,{color:n===`upcoming`?k.colors[`text-subtle`]:k.colors[`text-body`]},S],numberOfLines:1,children:e?.label??` `}),e.description?G($,{variant:`bodySmall`,style:M.vDescription,numberOfLines:3,children:e.description}):null]})]},e.key)})}):K(V,{style:M.hRow,onLayout:e=>de(e.nativeEvent.layout.width),children:[K(V,{pointerEvents:`none`,style:[M.hConnectorContainer,{left:fe,right:fe},C],children:[G(V,{style:[M.hConnectorTrack,{backgroundColor:I}]}),G(b.View,{style:[M.hConnectorFill,{backgroundColor:F,width:se}]})]}),n.map((e,t)=>{let n=W(t);return K(V,{style:M.hStepItem,children:[G(MA,{index:t,step:e,status:n,toneColor:F,upcomingColor:I,upcomingFillColor:L,onPressColor:F,textOnColor:z,upcomingTextColor:R,interactive:B,canPress:J(n),totalSteps:ee,onPress:Y,pulseEnabled:A,labels:O,circleStyles:N,circleSlotStyle:x}),G($,{variant:`caption`,style:[M.hLabel,{color:n===`upcoming`?k.colors[`text-subtle`]:k.colors[`text-body`]},S],numberOfLines:1,children:e?.label??` `})]},e.key)})]})});return p?G(FA,{...t}):pe}PA.displayName=`Stepper`;var FA=({steps:e,variant:t=`horizontal`,showCaption:n=!0,style:r,testID:i})=>{let a=Ir(),o=m(()=>RA(a),[a]),s=m(()=>LA(a),[a]),c=e.length||3,l=m(()=>Array.from({length:c},(e,t)=>({key:`sk-step-${t}`,index:t})),[c]);return t===`segmented`?K(V,{style:[o.container,r],testID:i,accessibilityRole:`progressbar`,accessibilityState:{busy:!0},"aria-busy":!0,children:[n?G(vh,{shape:`text`,width:`45%`,height:14,style:{marginBottom:a.space.sm}}):null,G(V,{style:o.sRow,children:l.map(e=>G(V,{style:o.sItem,children:G(vh,{width:`100%`,height:4,radius:`pill`})},e.key))})]}):G(V,t===`vertical`?{style:[o.container,r],testID:i,accessibilityRole:`progressbar`,accessibilityState:{busy:!0},"aria-busy":!0,children:G(V,{style:s.vCol,children:l.map(e=>{let t=e.index===c-1;return K(V,{style:s.vRow,children:[K(V,{style:[s.vLeft,{width:32}],children:[G(vh,{shape:`circle`,width:24,height:24}),t?null:G(vh,{width:2,height:36})]}),K(V,{style:s.vBody,children:[G(vh,{shape:`text`,width:`55%`,height:16,style:{marginBottom:a.space.xs}}),G(vh,{shape:`text`,width:`80%`,height:12})]})]},e.key)})})}:{style:[o.container,r],testID:i,accessibilityRole:`progressbar`,accessibilityState:{busy:!0},"aria-busy":!0,children:K(V,{style:o.hRow,children:[G(V,{pointerEvents:`none`,style:[o.hConnectorContainer,{left:50/c+`%`,right:50/c+`%`}],children:G(vh,{width:`100%`,height:2,radius:`pill`})}),l.map(e=>K(V,{style:o.hStepItem,children:[G(vh,{shape:`circle`,width:24,height:24}),G(vh,{shape:`text`,width:`80%`,height:12,style:{marginTop:a.space.xs}})]},e.key))]})})};FA.displayName=`StepperSkeleton`;var IA=Object.assign(PA,{Skeleton:FA}),LA=e=>R.create({vCol:{flexDirection:`column`},vRow:{flexDirection:`row`,alignItems:`flex-start`},vLeft:{alignItems:`center`},vBody:{flex:1,paddingLeft:e.space.md,paddingBottom:e.space.lg}}),RA=e=>R.create({container:{width:`100%`},hRow:{flexDirection:`row`,alignItems:`flex-start`,justifyContent:`space-between`,position:`relative`},hConnectorContainer:{position:`absolute`,top:11,height:2,flexDirection:`row`,alignItems:`center`},hConnectorTrack:{position:`absolute`,left:0,right:0,height:2,borderRadius:e.radius.pill,...ni},hConnectorFill:{position:`absolute`,left:0,height:2,borderRadius:e.radius.pill,...ni},hStepItem:{alignItems:`center`,flex:1},hLabel:{marginTop:e.space.xs,textAlign:`center`},vCol:{flexDirection:`column`},vRow:{flexDirection:`row`,alignItems:`flex-start`},vLeft:{alignItems:`center`,alignSelf:`stretch`,width:32},vConnectorContainer:{flex:1,width:2,minHeight:32,position:`relative`,alignSelf:`center`},vConnectorTrack:{position:`absolute`,top:0,bottom:0,width:2,borderRadius:e.radius.pill,...ni},vConnectorFill:{position:`absolute`,top:0,width:2,borderRadius:e.radius.pill,...ni},vBody:{flex:1,paddingLeft:e.space.sm,paddingBottom:e.space.md},vLabel:{marginBottom:e.space.xxs},vDescription:{},sCaption:{includeFontPadding:!1},sRow:{flexDirection:`row`,columnGap:e.space.xs},sItem:{flex:1},sTrack:{height:4,borderRadius:e.radius.pill,overflow:`hidden`},sFill:{height:4,borderRadius:e.radius.pill}}),zA=(e,t)=>{switch(t){case`success`:return e.colors.success;case`warning`:return e.colors.warning;case`danger`:return e.colors.danger;case`info`:return e.colors.info;case`neutral`:return e.colors.neutral;default:return e.colors.primary}};function BA({ref:e,...t}){let{value:n,defaultValue:r,onChange:i,disabled:a=!1,size:o=`md`,tone:s=`primary`,label:c,description:l,helperText:d,error:f,layout:p=`inline`,accessibilityLabel:g,haptic:_=`selection`,bounce:v=!1,style:y,trackStyle:x,thumbStyle:S,testID:C,hitSlop:T,...E}=t,D=Ir(),O=Object.keys(D.components.switch);Q(`Switch`,`size`,t.size,O),Q(`Switch`,`tone`,t.tone,[`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Q(`Switch`,`layout`,t.layout,[`inline`,`row`]);let[k,A]=Bh({value:n,defaultValue:r??!1,onChange:i}),j=O.includes(o)?o:`md`,M=m(()=>yn(D,j),[D,j]),N=D.colors[`switch-thumb`],F=m(()=>VA(D),[D]),I=D.mode===`dark`?D.colors.neutral:D.colors[`surface-disabled`],L=zA(D,s),R=T??8,z=h(Ht(+!!k)).current;u(()=>{let e=b.spring(z,{toValue:+!!k,damping:D.motion.spring.snappy.damping,stiffness:D.motion.spring.snappy.stiffness,mass:D.motion.spring.snappy.mass,useNativeDriver:Vt});return e.start(),()=>e.stop()},[k,z,D.motion.spring.snappy]);let ee=h(Ht(+!!k)).current;u(()=>{let e=b.timing(ee,{toValue:+!!k,duration:D.motion.duration.fast,easing:w.out(w.ease),useNativeDriver:!1});return e.start(),()=>e.stop()},[k,ee,D.motion.duration.fast]);let B=M.padding,te=M[`track-width`]-M[`thumb-size`]-M.padding,ne=z.interpolate({inputRange:[0,1],outputRange:[B,te]}),H=ee.interpolate({inputRange:[0,1],outputRange:[I,L]}),re=h(Ht(1)).current,U=h(!0);u(()=>{if(!v)return;if(U.current)return void(U.current=!1);let e=b.sequence([b.spring(re,{toValue:1.15,damping:10,stiffness:220,mass:1,useNativeDriver:Vt}),b.spring(re,{toValue:1,damping:14,stiffness:240,mass:1,useNativeDriver:Vt})]);return e.start(),()=>e.stop()},[k,v,re]);let W=e=>{a||(!1!==_&&si(_),A(!k),E.onPressOut?.(e))},ie=g??Eg(c),ae=typeof f==`string`?f:void 0,q=Kx({description:l,error:ae,helperText:d}),J=Tg(c)||q,Y=(!0===f||Tg(f))&&!k&&!a,X=p===`row`&&J,Z=K(b.View,{style:[F.track,{width:M[`track-width`],height:M[`track-height`],borderRadius:D.radius.pill,...ni,backgroundColor:H},x],children:[Y?G(V,{pointerEvents:`none`,style:[F.errorRing,{borderRadius:D.radius.pill,...ni,borderWidth:D.size.border,borderColor:D.colors[`field-border-error`]}]}):null,G(b.View,{style:[F.thumb,D.shadow.card,{backgroundColor:N,width:M[`thumb-size`],height:M[`thumb-size`],borderRadius:D.radius.pill,...ni,transform:[{translateX:ne},{scale:re}]},S]})]});if(X)return K(P,{ref:e,onPress:W,disabled:a,accessibilityRole:`switch`,accessibilityLabel:ie,accessibilityHint:E.accessibilityHint??Eg(l),accessibilityState:{checked:k,disabled:a},"aria-checked":k,"aria-disabled":a,testID:C,hitSlop:T,...T==null?{}:Zh(T),...E,style:({pressed:e})=>[F.row,F.spreadRow,q?F.rowTop:null,{opacity:a?.55:e?.9:1},y],children:[G(qx,{label:c,description:l,helperText:d,error:ae,disabled:a,style:F.spreadText}),Z]});let oe=G(P,{ref:e,onPress:W,disabled:a,accessibilityRole:`switch`,accessibilityLabel:ie,accessibilityHint:E.accessibilityHint??Eg(l),accessibilityState:{checked:k,disabled:a},"aria-checked":k,"aria-disabled":a,testID:C,hitSlop:R,...Zh(R),...E,style:({pressed:e})=>[{opacity:a?.55:e?.9:1},J?null:y],children:Z});return J?K(V,{style:[F.row,q?F.rowTop:null,y],children:[oe,G(qx,{label:c,description:l,helperText:d,error:ae,disabled:a,style:F.text})]}):oe}var VA=e=>R.create({row:{flexDirection:`row`,alignItems:`center`},track:{justifyContent:`center`},thumb:{position:`absolute`,top:2},errorRing:{...R.absoluteFill},rowTop:{alignItems:`flex-start`},text:{marginLeft:e.space.sm},spreadRow:{minHeight:44,justifyContent:`space-between`},spreadText:{flex:1,marginRight:e.space.md}}),HA=(e,t)=>{let n=e[t];if(n===void 0)throw Error(`Tabs: tab "${t}" has no measured layout while its progress signal drives the indicator`);return n};function UA({ref:e,...t}){let{tabs:n,activeKey:r,onChange:i,variant:a=`underline`,radius:o,size:s=`md`,scrollable:l=!1,align:d=`left`,style:f,tabStyle:p,tabLabelStyle:_,tabIconStyle:v,tabBadgeStyle:y,dividerStyle:x,indicatorStyle:S,progress:C,pages:w,haptic:T,accessibilityLabel:E,testID:D}=t;Q(`Tabs`,`variant`,t.variant,[`underline`,`pills`,`segmented`]),Q(`Tabs`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`Tabs`,`align`,t.align,[`left`,`center`]);let O=Ir(),k=m(()=>WA(O),[O]),A=O.components.tabs,j=m(()=>Sn(O,s),[O,s]),M=l?j[`scrollable-padding-x`]:j[`padding-x`],N=j[`padding-y`],F=j.text,L=O.space[A[`icon-gap`]],z=j.icon,ee=A[`underline-height`],B=O.space[A[`pill-inset`]],te=A[`disabled-opacity`],ne=O.space[A[`badge-gap`]],H=a===`segmented`,re=m(()=>xn(O,s),[O,s]),U=O.space[A[`track-padding`]],W=typeof o==`number`?o:o?O.radius[o]:void 0,ie=W??O.radius.md,q=W===void 0?O.radius.sm:Math.max(W-U,0),J=W??O.radius.pill,Y=W??O.radius.none,X=O.colors[`bg-muted`],Z=ag(H,ie),[oe,se]=g({}),ce=h(Ht(0)).current,le=h(Ht(0)).current,[ue,de]=g(0),fe=h(Ht(0)).current,pe=h(null),me=h(0),he=oe[r],ge=Math.max(0,n.findIndex(e=>e.key===r)),_e=m(()=>w&&ue>0?fe.interpolate({inputRange:[0,ue],outputRange:[0,1]}):void 0,[w,ue,fe])??C,ve=n.every(e=>oe[e.key]!==void 0),ye=_e!==void 0&&ve&&n.length>1,be=m(()=>ye&&_e?_e.interpolate({inputRange:n.map((e,t)=>t),outputRange:n.map(e=>HA(oe,e.key).x),extrapolate:`clamp`}):null,[ye,_e,n,oe]),xe=m(()=>ye&&_e?_e.interpolate({inputRange:n.map((e,t)=>t),outputRange:n.map(e=>HA(oe,e.key).width),extrapolate:`clamp`}):null,[ye,_e,n,oe]),Se=h(null);u(()=>{if(!he||ye)return;let e=Se.current!==null&&Se.current!==r;if(Se.current=r,!e)return ce.setValue(he.x),void le.setValue(he.width);let t=O.motion.spring.snappy,n=b.parallel([b.spring(ce,{toValue:he.x,damping:t.damping,stiffness:t.stiffness,mass:t.mass,overshootClamping:!0,useNativeDriver:!1}),b.spring(le,{toValue:he.width,damping:t.damping,stiffness:t.stiffness,mass:t.mass,overshootClamping:!0,useNativeDriver:!1})]);return n.start(),()=>n.stop()},[he,r,ce,le,O.motion.spring.snappy,ye]),u(()=>{w&&ue!==0&&me.current!==ge&&(me.current=ge,pe.current?.scrollTo({x:ge*ue,animated:!0}))},[w,ue,ge]);let Ce=w?.length;u(()=>{},[Ce,n.length]);let we=c(e=>t=>{let{x:n,width:r}=t.nativeEvent.layout;se(t=>{let i=t[e];return i&&i.x===n&&i.width===r?t:{...t,[e]:{x:n,width:r}}})},[]),Te=c(e=>{if(e.disabled||e.key===r)return;let t=ci(T,`selection`);t&&si(t),i(e.key)},[r,i,T]),Ee=a===`pills`,De=G(b.View,{pointerEvents:`none`,style:[H?k.indicatorThumb:Ee?k.indicatorPill:k.indicatorUnderline,H?null:Ee?{top:B,bottom:B}:{height:ee},{width:xe??le,transform:[{translateX:be??ce}],backgroundColor:H?O.colors.surface:Ee?O.colors[`primary-soft`]:O.colors.primary,borderRadius:H?q:Ee?J:Y,...ni},S]}),Oe=()=>n.map(e=>{let t=e.key===r,n=!0===e.disabled,i=t?O.colors.primary:O.colors[`text-subtle`],a=$h(e.icon,{color:i,size:z,focused:t,disabled:n}),o=!!a;return K(P,{onPress:()=>Te(e),onLayout:we(e.key),disabled:n,accessibilityRole:`tab`,accessibilityLabel:e.label,accessibilityState:{selected:t,disabled:n},"aria-selected":t,"aria-disabled":n,android_ripple:H?void 0:{color:O.colors[`surface-pressed`],borderless:!1},style:({pressed:e})=>[k.tab,l?null:k.tabFlex,H?{paddingHorizontal:re[`padding-x`],height:re.height-2*U}:{paddingHorizontal:M,paddingVertical:N},{opacity:n?te:e&&H&&!t?.7:1,backgroundColor:e&&!H?O.colors[`surface-pressed`]:`transparent`},p],children:[o?G(V,{style:[k.tabIcon,{marginRight:L},v],accessibilityElementsHidden:!0,importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:a}):null,G($,{variant:`label`,weight:t?`semibold`:`medium`,color:t?`brand`:`tertiary`,style:[k.tabLabel,{fontSize:H?re.text:F},_],numberOfLines:1,children:e.label}),e.badge!==void 0&&e.badge!==null?G(bb,{value:String(e.badge),tone:`primary`,fill:`soft`,accessible:!1,style:{marginLeft:ne},badgeStyle:[k.tabBadge,y]}):null]},e.key)}),ke={flexDirection:`row`,alignItems:`stretch`,justifyContent:l?`flex-start`:d===`center`?`center`:`flex-start`,position:`relative`,overflow:`hidden`},Ae=K(ae,H?{children:[De,Oe()]}:{children:[Oe(),De]}),je=K(V,{ref:e,style:[k.container,{borderBottomColor:O.colors[`border-subtle`],borderBottomWidth:a===`underline`?R.hairlineWidth:0},a===`underline`?x:null,H?{padding:U,borderRadius:ie,...ni,backgroundColor:Z.active?`transparent`:X}:null,f],onLayout:Z.onLayout,accessibilityRole:`tablist`,accessibilityLabel:E,testID:D,children:[Z.active&&Z.size?G(ig,{width:Z.size.width,height:Z.size.height,radius:ie,fill:X}):null,l?G(I,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:[ke],keyboardShouldPersistTaps:`handled`,children:Ae}):G(V,{style:ke,children:Ae})]});return w?K(V,{style:k.root,children:[je,G(b.ScrollView,{ref:pe,horizontal:!0,pagingEnabled:!0,showsHorizontalScrollIndicator:!1,scrollEventThrottle:16,onLayout:e=>de(Math.round(e.nativeEvent.layout.width)),onScroll:b.event([{nativeEvent:{contentOffset:{x:fe}}}],{useNativeDriver:!1}),onMomentumScrollEnd:e=>{if(ue===0)return;let t=Math.round(e.nativeEvent.contentOffset.x/ue),a=n[t];a?.disabled?pe.current?.scrollTo({x:ge*ue,animated:!0}):(me.current=t,a&&a.key!==r&&i(a.key))},style:k.pager,testID:D?`${D}-pages`:void 0,children:n.map((e,t)=>G(V,{style:{width:ue},accessibilityElementsHidden:t!==ge,importantForAccessibility:t===ge?`auto`:`no-hide-descendants`,children:w[t]},e.key))})]}):je}var WA=e=>R.create({root:{flex:1},pager:{flex:1},container:{width:`100%`,position:`relative`},tab:{flexDirection:`row`,alignItems:`center`,justifyContent:`center`},tabFlex:{flex:1},tabIcon:{},tabLabel:{includeFontPadding:!1,flexShrink:1},tabBadge:{minWidth:18,minHeight:0},indicatorUnderline:{position:`absolute`,left:0,bottom:0},indicatorPill:{position:`absolute`,left:0,zIndex:-1},indicatorThumb:{position:`absolute`,left:0,top:0,bottom:0}}),GA=({ref:e,...t})=>{let{value:n,defaultValue:r,onChange:i,placeholder:a,label:o,helperText:s,error:l,required:u,disabled:d=!1,size:f=`md`,variant:p,maxTags:_,unique:v=!0,transform:y,separators:b=[`,`],haptic:x,onFocus:S,style:C,testID:w}=t;Q(`TagInput`,`size`,t.size,[`sm`,`md`,`lg`]),Q(`TagInput`,`variant`,t.variant,[`outline`,`filled`,`underline`]);let T=Ir(),E=m(()=>KA(T),[T]),[D,O]=Bh({value:n,defaultValue:r??[],onChange:i}),[k,A]=g(``),[j,M]=g(!1),N=h(null),P=m(()=>th(N,e),[e]),F=c(()=>{d||N.current?.focus()},[d]),I=typeof _==`number`&&D.length>=_,L=!0===l||Tg(l),R=u&&!o&&D.length===0&&k.length===0&&!!a,z=c(e=>{let t=y?y(e.trim()):e.trim();if(!t||I)return;if(v&&D.some(e=>e.toLowerCase()===t.toLowerCase()))return void A(``);O([...D,t]),A(``);let n=ci(x,`selection`);n&&si(n)},[I,x,O,D,y,v]),B=c(e=>{let t=D.filter((t,n)=>n!==e);O(t);let n=ci(x,`selection`);n&&si(n)},[x,O,D]),te=c(e=>{we();let t=b.find(t=>t.length>0&&e.includes(t));t?z(e.slice(0,e.indexOf(t))):A(e)},[z,b]),ne=c(e=>{d||e.nativeEvent.key===`Backspace`&&k===``&&D.length>0&&B(D.length-1)},[d,k,B,D.length]),H=m(()=>D.map((e,t)=>({key:`${e}-${t}`,tag:e,index:t})),[D]),re=G(jg,{testID:w?`${w}-field`:void 0,size:f,variant:p,focused:j,disabled:d,error:L,filled:D.length>0||k.length>0,onPress:F,pressFeedback:!1,style:C,children:K(V,{style:E.wrap,children:[H.map(({key:e,tag:t,index:n})=>G(iS,{label:t,size:`sm`,onRemove:d?void 0:()=>B(n),haptic:x},e)),K(V,{style:E.inputBox,children:[G(ee,{ref:P,value:k,onChangeText:te,onKeyPress:ne,onSubmitEditing:()=>z(k),onFocus:e=>{M(!0),S?.(e)},onBlur:()=>{M(!1),z(k)},editable:!d&&!I,placeholder:I||R?void 0:a,placeholderTextColor:T.colors[`text-subtle`],submitBehavior:`submit`,returnKeyType:`done`,accessibilityLabel:o??a,style:[E.input,{color:T.colors[`text-body`],fontSize:T.text.base.size}],testID:w?`${w}-input`:void 0}),R?G(Cg,{text:a??``,color:T.colors[`text-subtle`],fontSize:T.text.base.size,weightStyle:Rr(T,`normal`)}):null]})]})});return K(V,{testID:w,children:[o?G(Dg,{size:f,required:u,children:o}):null,re,G(Og,{size:f,error:L,text:L?l:s})]})},KA=e=>R.create({wrap:{flex:1,flexDirection:`row`,flexWrap:`wrap`,alignItems:`center`,gap:e.space.xs,paddingVertical:e.space.xs},inputBox:{flexGrow:1,minWidth:80},input:{...Rr(e,`normal`),padding:e.space.none}}),qA=[`upcoming`,`current`,`done`,`onHold`,`rejected`,`cancelled`,`skipped`],JA=({items:e,variant:t=`feed`,orientation:n=`vertical`,style:r,testID:i})=>{let a=Ir(),o=a.space.xs,s=m(()=>YA(a),[a]),l=n===`horizontal`,u=a.colors.border;Q(`Timeline`,`variant`,t,[`feed`,`progress`]),Q(`Timeline`,`orientation`,n,[`vertical`,`horizontal`]);let[d,f]=g(0),p=c(e=>{let{width:t}=e.nativeEvent.layout;f(e=>e===t?e:t)},[]),h=l&&d>0&&e.length>0?d/e.length:0,_=(e,t)=>e.icon?G(V,{style:s.disc,children:e.icon}):G(D_,{dimension:24,color:t,fill:`halo`,icon:G(V,{style:[s.dot,{backgroundColor:t}]})}),v=(e,t)=>K(ae,{children:[G($,{variant:l?`bodySmall`:`body`,weight:`semibold`,style:[{color:t===`upcoming`?a.colors[`text-muted`]:a.colors[`text-body`]},l?s.centred:null],children:e.title}),e.meta?G($,{variant:`caption`,style:[{color:a.colors[`text-subtle`]},l?s.centred:null],children:e.meta}):null,e.description?G($,{variant:`bodySmall`,style:[{color:a.colors[`text-muted`]},l?s.centred:null],children:e.description}):null,e.children]}),y=e.map((n,r)=>{Q(`Timeline`,`status`,n.status,qA);let i=n.status??(t===`feed`?`done`:`upcoming`),c=n.color??(e=>{switch(e){case`done`:return a.colors.success;case`current`:return a.colors.warning;case`onHold`:return a.colors.info;case`rejected`:return a.colors.danger;case`cancelled`:case`skipped`:return a.colors[`text-subtle`];default:return a.colors[`text-disabled`]}})(i),d=r===0,f=r===e.length-1,p=n.key??`${n.title}-${r}`;return K(V,l?{testID:n.testID,style:[s.hColumn,h>0?{width:h,flex:0}:null],children:[K(V,{style:s.hDotRow,children:[G(V,{style:[s.hSegment,{marginRight:o,backgroundColor:d?`transparent`:u}]}),_(n,c),G(V,{style:[s.hSegment,{marginLeft:o,backgroundColor:f?`transparent`:u}]})]}),G(V,{style:s.hBody,children:v(n,i)})]}:{testID:n.testID,style:s.row,children:[K(V,{style:s.gutter,children:[_(n,c),f?null:G(V,{style:[s.rail,{backgroundColor:u}]})]}),G(V,{style:[s.body,{paddingBottom:f?0:a.space.lg}],children:v(n,i)})]},p)});return G(V,{style:[l?s.hRow:null,r],onLayout:l?p:void 0,testID:i,children:y})},YA=e=>R.create({row:{flexDirection:`row`},gutter:{width:28,alignItems:`center`},disc:{width:24,height:24,borderRadius:e.radius.pill,...ni,alignItems:`center`,justifyContent:`center`},dot:{width:12,height:12,borderRadius:e.radius.pill,...ni},rail:{width:2,flex:1,marginTop:e.space.xs,borderRadius:e.radius.pill,...ni},body:{flex:1,gap:e.space.xxs,paddingLeft:e.space.sm},hRow:{flexDirection:`row`,alignItems:`flex-start`},hColumn:{flex:1,minWidth:0,alignItems:`center`},hDotRow:{alignSelf:`stretch`,flexDirection:`row`,alignItems:`center`},hSegment:{flex:1,height:2,borderRadius:e.radius.pill,...ni},hBody:{alignSelf:`stretch`,alignItems:`center`,paddingHorizontal:e.space.xs,marginTop:e.space.sm,gap:e.space.xxs},centred:{textAlign:`center`}}),XA=[-2,-1,0,1,2],ZA=s(({label:e,index:t,scrollY:n,itemHeight:r,selected:i,theme:a,reducedMotion:o,onPress:s,hidden:c})=>{let{opacity:l,scale:u}=m(()=>{let e=b.subtract(b.divide(n,r),t);return{opacity:e.interpolate({inputRange:XA,outputRange:[.3,.6,1,.6,.3],extrapolate:`clamp`}),scale:e.interpolate({inputRange:XA,outputRange:[.85,.95,1.05,.95,.85],extrapolate:`clamp`})}},[n,r,t]),d=G($,{variant:`h3`,weight:i?`semibold`:`medium`,color:i?`primary`:`secondary`,numberOfLines:1,maxFontSizeMultiplier:1.5,style:{letterSpacing:a[`letter-spacing`].normal},children:e});return G(b.View,{style:[$A.row,{height:r},o?{opacity:l}:{opacity:l,transform:[{scale:u}]},c?$A.rowHidden:null],accessible:!1,importantForAccessibility:`no`,children:s?G(P,{focusable:!1,accessible:!1,onPress:()=>s(t),style:$A.rowPress,children:d}):d})}),QA=({label:e,items:t,selectedIndex:r,onIndexChange:i,itemHeight:a,width:o,theme:s,haptic:l,disabled:d,reducedMotion:f,typeable:p,typeAction:_,typeEditor:y,testID:x})=>{let S=Zm(`wheelPicker`,Xm),C=N.OS===`web`,[w,T]=g(null),E=c(e=>{we(),T(e)},[]),D=h(!1),O=h(null),k=h(null),A=h(!1),j=h(Ht(r*a)).current,M=h(r*a),P=h(r*a),F=h(r),I=h(0),L=h(null),R=h(()=>{}),z=t.length-1;u(()=>{F.current=r;let e=r*a;if(P.current===e||(P.current=e,Math.abs(M.current-e)<1))return;M.current=e,C||Ut(j,e);let t=requestAnimationFrame(()=>{O.current?.scrollTo({y:e,animated:!1})});return()=>cancelAnimationFrame(t)},[r,a,j,C]),u(()=>{let e=M.current,t=requestAnimationFrame(()=>{O.current?.scrollTo({y:e,animated:!1})});return()=>cancelAnimationFrame(t)},[]),u(()=>()=>{L.current&&clearTimeout(L.current)},[]);let B=c((e,n)=>{if(!(e===r||e<0||e>z)){if(n===`accessibility`){let e=ci(l,`denseTick`);e&&si(e)}if(n!==`keyboard`){let n=t[e];n&&eh(n.accessibilityLabel??n.label)}i(e)}},[r,z,t,l,i]),te=c(()=>{!d&&p&&(D.current=!0,T(String(t[r]?.value??``)))},[d,p,t,r]),ne=c(e=>{if(!D.current)return;D.current=!1,T(null);let n=e.trim();if(!/^\d+$/.test(n))return;let r=Number(n),i=t.findIndex(e=>e.value===r);i>=0&&B(i,`keyboard`)},[t,B]);u(()=>{if(w!==null||!A.current)return;A.current=!1;let e=k.current;e&&N.OS!==`web`&&v.sendAccessibilityEvent(e,`focus`)},[w]),R.current=()=>{L.current=null;let e=Math.max(0,Math.min(z,Math.round(M.current/a))),t=e*a;Math.abs(M.current-t)>=1&&O.current?.scrollTo({y:t,animated:!f}),B(e,`scroll`)};let H=m(()=>b.event([{nativeEvent:{contentOffset:{y:j}}}],{useNativeDriver:Vt,listener:e=>{let t=e.nativeEvent.contentOffset.y;M.current=t;let n=Math.round(t/a);if(n!==F.current&&n>=0&&n<=z){let e=Date.now();if(e-I.current>=35){let t=ci(l,`denseTick`);t&&si(t),I.current=e}F.current=n}C&&(L.current&&clearTimeout(L.current),L.current=setTimeout(()=>R.current(),120))}}),[j,a,z,l,C]),re=c(e=>{let t=e.nativeEvent.contentOffset.y;B(Math.max(0,Math.min(z,Math.round(t/a))),`scroll`)},[B,z,a]),U=c(t=>{if(d)return;let n=t.nativeEvent.actionName;n===`increment`?B(Math.min(z,r+1),`accessibility`):n===`decrement`?B(Math.max(0,r-1),`accessibility`):n===`type`&&(A.current=!0,te(),eh(`${e}. ${y??S.typeEditor}`))},[d,B,z,r,te,e,y,S.typeEditor]),W=m(()=>[{name:`increment`},{name:`decrement`},...p&&!d?[{name:`type`,label:_??S.typeAction}]:[]],[p,d,_,S.typeAction]),ie=c(e=>{d||O.current?.scrollTo({y:e*a,animated:!f})},[d,a,f]),ae=c(({item:e,index:t})=>{let n=t===r;return G(ZA,{label:e.label,index:t,scrollY:j,itemHeight:a,selected:n,theme:s,reducedMotion:f,onPress:n&&p?te:C?ie:void 0,hidden:n&&w!==null})},[j,a,r,s,f,C,ie,p,te,w]),q=c((e,t)=>`${String(e.value)}-${t}`,[]),J=t[r]?t[r].accessibilityLabel??t[r].label:``,Y=C?{focusable:!0,role:`spinbutton`,"aria-label":e,"aria-valuetext":J,"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":z,"aria-disabled":d,onKeyDown:e=>{if(d)return;let t={ArrowDown:Math.min(z,r+1),PageDown:Math.min(z,r+1),ArrowUp:Math.max(0,r-1),PageUp:Math.max(0,r-1),Home:0,End:z}[e.nativeEvent.key];t!==void 0&&(e.preventDefault(),B(t,`keyboard`))}}:void 0;return K(V,{style:[o===void 0?$A.columnFlex:{width:o},{height:5*a},$A.column,d?$A.disabled:null],testID:x,...Y,children:[C?null:G(V,{pointerEvents:`none`,style:$A.a11yLayer,ref:k,accessible:w===null,importantForAccessibility:w===null?`yes`:`no-hide-descendants`,accessibilityRole:`adjustable`,accessibilityLabel:e,accessibilityValue:{text:J},accessibilityState:{disabled:!!d},"aria-disabled":!!d,accessibilityActions:W,onAccessibilityAction:U}),G(b.ScrollView,{ref:O,showsVerticalScrollIndicator:!1,snapToInterval:a,snapToAlignment:`start`,decelerationRate:`fast`,bounces:!1,scrollEnabled:!d,nestedScrollEnabled:!0,scrollEventThrottle:16,onScroll:H,onMomentumScrollEnd:re,contentOffset:{x:0,y:r*a},contentContainerStyle:{paddingVertical:a*2},style:[$A.list,{height:5*a}],importantForAccessibility:`no-hide-descendants`,"aria-hidden":!0,children:t.map((e,t)=>G(n,{children:ae({item:e,index:t})},q(e,t)))}),w===null?null:G(V,{style:[$A.editorBand,{top:a*2,height:a,backgroundColor:s.colors.surface}],children:G(ee,{autoFocus:!0,selectTextOnFocus:!0,keyboardType:`number-pad`,returnKeyType:`done`,accessibilityLabel:e,value:w,onChangeText:E,onSubmitEditing:()=>ne(w),onBlur:()=>ne(w),style:{width:`100%`,padding:s.space.none,textAlign:`center`,fontSize:s.text.xl.size,color:s.colors[`text-body`],fontWeight:s.weight.semibold,letterSpacing:s[`letter-spacing`].normal}})})]})},$A=R.create({column:{overflow:`hidden`},columnFlex:{flex:1},disabled:{opacity:.5},list:{flexGrow:0},row:{alignItems:`center`,justifyContent:`center`},rowHidden:{opacity:0},editorBand:{position:`absolute`,left:0,right:0,justifyContent:`center`,zIndex:3},rowPress:{alignItems:`center`,justifyContent:`center`,alignSelf:`stretch`,flex:1},a11yLayer:{...R.absoluteFill,zIndex:2}}),ej=(e,t,n=1)=>{let r=[];for(let i=e;i<=t;i+=n)r.push(i);return r},tj=(e,t,n)=>{let r=Math.floor(e/60),i=e%60;return r===0?`${i} ${n}`:i===0?`${r} ${t}`:`${r} ${t} ${i} ${n}`},nj=e=>typeof e==`object`?e:{value:e,label:String(e)},rj=e=>{let{haptic:t,disabled:r,testID:i,style:a,labels:o}=e;Q(`WheelPicker`,`mode`,e.mode,[`columns`,`list`,`duration`]);let s=Ir(),l=Rn(),{fontScale:u}=te(),d=Math.round(40*Math.min(Math.max(u,1),1.5)),f=m(()=>ij(s,d),[s,d]),p=e.mode===`list`?e.items:void 0,h=m(()=>p?.map(nj),[p]),g=e.mode===`duration`?e.minuteStep??1:1,_=e.mode===`duration`?Math.max(0,Math.min(1439,Math.floor(e.maxMinutes??1/0))):0,v=Math.floor(_/60),y=Zm(`wheelPicker`,Xm),b=m(()=>({...y,...o}),[y,o]),x=e.mode===`duration`?e.presets:void 0;for(let e of x??[])if(!Number.isInteger(e)||e<0||e>_||e%g!==0)throw Error(`WheelPicker preset ${e} must be a whole number of minutes from 0 to ${_} in steps of ${g}.`);let S=c(e=>{let t=e===v?_%60:59;return Math.floor(t/g)*g},[v,_,g]),C=e.mode===`duration`?e.value:0,w=m(()=>{let e=Math.max(0,Math.min(_,Number.isFinite(C)?C:0)),t=Math.floor(e/60),n=Math.round(e%60/g)*g;return{hour:t,minute:Math.min(S(t),n)}},[C,_,g,S]),T=m(()=>e.mode===`duration`?ej(0,v).map(e=>({value:e,label:String(e),accessibilityLabel:kp(b,`hour`,e)})):[],[e.mode,v,b]),E=S(w.hour),D=m(()=>e.mode===`duration`?ej(0,E,g).map(e=>({value:e,label:String(e).padStart(2,`0`),accessibilityLabel:kp(b,`minute`,e)})):[],[e.mode,E,g,b]),O=m(()=>e.mode===`list`?[{key:`list`,label:e.label??b.value,items:h??[],value:e.value??``,width:e.width}]:e.mode===`duration`?[{key:`hours`,label:b.hours,items:T,value:w.hour,unit:b.hourUnit,gapAfter:s.space.md},{key:`minutes`,label:b.minutes,items:D,value:w.minute,unit:b.minuteUnit}]:e.columns,[e,h,T,D,w,b,s.space.md]),k=e.mode===`list`?e.onChange:void 0,A=e.mode===`duration`?e.onChange:void 0,j=e.mode===`list`||e.mode===`duration`?void 0:e.onChange,M=c((e,t)=>{let n=e.items[t];if(n){if(k)k(n.value);else if(A){let t=Number(n.value);e.key===`hours`?A(60*t+Math.min(w.minute,S(t))):A(60*w.hour+t)}else j?.(e.key,n.value)}},[k,A,j,w,S]),N=c(e=>{A?.(e)},[A]),P=60*w.hour+w.minute,F=K(V,{style:[f.wheels,a],testID:i,children:[K(V,{pointerEvents:`none`,style:f.selectionBand,children:[G(V,{style:f.bandLine}),G(V,{style:f.bandLine})]}),O.map(i=>{if(i.items.length===0)return null;let a=i.items.findIndex(e=>e.value===i.value);return K(n,{children:[G(QA,{label:i.label,items:i.items,selectedIndex:Math.max(0,a),onIndexChange:e=>M(i,e),itemHeight:d,width:i.width??(e.mode===`list`?void 0:64),theme:s,haptic:t,disabled:r,reducedMotion:l,typeable:e.mode===`duration`,typeAction:b.typeAction,typeEditor:b.typeEditor,testID:i.testID}),i.unit?G($,{variant:`body`,weight:`semibold`,color:`secondary`,style:f.unit,maxFontSizeMultiplier:1.5,numberOfLines:1,accessible:!1,importantForAccessibility:`no`,"aria-hidden":!0,children:i.unit}):null,i.separator?G($,{variant:`h2`,weight:`bold`,style:f.separator,maxFontSizeMultiplier:1.5,accessible:!1,importantForAccessibility:`no`,"aria-hidden":!0,children:i.separator}):null,i.gapAfter?G(V,{style:{width:i.gapAfter}}):null]},i.key)})]});return x&&x.length!==0?K(V,{children:[F,G(V,{style:f.presets,children:x.map(e=>G(iS,{label:tj(e,b.hourUnit,b.minuteUnit),size:`sm`,selected:e===P,disabled:r,onPress:()=>N(e)},e))})]}):F},ij=(e,t)=>R.create({wheels:{flexDirection:`row`,alignItems:`center`,justifyContent:`center`,height:t*5,position:`relative`},selectionBand:{position:`absolute`,left:0,right:0,top:t*2,height:t,justifyContent:`space-between`},bandLine:{height:2*R.hairlineWidth,backgroundColor:e.colors.primary,opacity:.85},separator:{paddingHorizontal:e.space.xs},unit:{paddingLeft:e.space.xs},presets:{flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,gap:e.space.xs,paddingTop:e.space.sm}}),aj=(e,t,n=1)=>{let r=[];for(let i=e;i<=t;i+=n)r.push(i);return r},oj=e=>e.toString().padStart(2,`0`),sj=(e,t,n)=>n===`24h`?e:t===`AM`?e===12?0:e:e===12?12:e+12,cj=(e,t)=>t===`24h`?{displayHour:e,period:`AM`}:e===0?{displayHour:12,period:`AM`}:e===12?{displayHour:12,period:`PM`}:e>12?{displayHour:e-12,period:`PM`}:{displayHour:e,period:`AM`},lj=(e,t)=>{let n=Math.round(e/t)*t;return Math.min(59,Math.max(0,n))},uj=e=>{let{open:t,value:n,onChange:r,onClose:i,format:a=`12h`,minuteStep:o=1,labels:s,testID:l,style:d,sheetStyle:f,headerLabelStyle:p,footerButtonStyle:h,formatValue:_,haptic:v,triggerLabels:y,label:b,help:x,placeholder:S,helperText:C,error:w,required:T,disabled:E,size:D,variant:O,clearable:k,onClear:A,leftIcon:j,trailing:M,triggerStyle:N,valueStyle:P,labelStyle:F,messageStyle:I,accessibilityLabel:L}=e,R={label:b,help:x,placeholder:S,helperText:C,error:w,required:T,disabled:E,size:D,variant:O,clearable:k,onClear:A,leftIcon:j,trailing:M,triggerStyle:N,valueStyle:P,labelStyle:F,messageStyle:I,accessibilityLabel:L,style:d};Q(`TimePicker`,`format`,e.format,[`12h`,`24h`]),Q(`TimePicker`,`minuteStep`,e.minuteStep?.toString(),[`1`,`5`,`15`,`30`]),Q(`TimePicker`,`size`,e.size,[`sm`,`md`,`lg`]),Q(`TimePicker`,`variant`,e.variant,[`outline`,`filled`,`underline`]);let z=Zm(`timePicker`,Gm),ee=m(()=>({...z,...s}),[z,s]),B=t!==void 0,[te,ne]=g(!1),H=B?t:te,re=B?l:l?`${l}-modal`:void 0,U=Ir(),W=m(()=>dj(U),[U]),ie=c(()=>{B?i?.():ne(!1)},[B,i]),q=m(()=>a===`24h`?aj(0,23):aj(1,12),[a]),J=m(()=>aj(0,59,o),[o]),Y=m(()=>[`AM`,`PM`],[]),X=m(()=>{let e=n&&Number.isFinite(n.hour)?n.hour:new Date().getHours(),t=lj(n&&Number.isFinite(n.minute)?n.minute:new Date().getMinutes(),o),{displayHour:r,period:i}=cj(e,a);return{displayHour:r,minute:t,period:i,hour24:e}},[n,a,o]),[Z,oe]=g(()=>{let e=q.indexOf(X.displayHour);return Math.max(e,0)}),[se,ce]=g(()=>{let e=J.indexOf(X.minute);return Math.max(e,0)}),[le,ue]=g(()=>+(X.period===`PM`));u(()=>{if(!H)return;let e=n&&Number.isFinite(n.hour)?n.hour:new Date().getHours(),t=lj(n&&Number.isFinite(n.minute)?n.minute:new Date().getMinutes(),o),{displayHour:r,period:i}=cj(e,a),s=q.indexOf(r);oe(Math.max(s,0));let c=J.indexOf(t);ce(Math.max(c,0)),ue(+(i===`PM`))},[H,n,a,o,q,J]);let de=c((e,t)=>{e===`hour`?oe(Math.max(0,q.indexOf(Number(t)))):e===`minute`?ce(Math.max(0,J.indexOf(Number(t)))):ue(+(t===`PM`))},[q,J]),fe=c(()=>{!1!==v&&si(`selection`),ie()},[ie,v]),pe=c(()=>{let e=sj(q[Z]??0,Y[le]??`AM`,a),t=J[se]??0;!1!==v&&si(`notificationSuccess`),r?.({hour:e,minute:t}),ie()},[q,Z,Y,le,J,se,a,r,ie,v]),me=m(()=>{let e=q[Z]??0,t=J[se]??0;if(a===`24h`)return`${oj(e)}:${oj(t)}`;let n=Y[le]??`AM`;return`${oj(e)}:${oj(t)} ${n}`},[q,Z,J,se,Y,le,a]),he=m(()=>q.map(e=>({value:e,label:oj(e),accessibilityLabel:Op(ee.hourItem,{hour:e})})),[q,ee]),ge=m(()=>J.map(e=>({value:e,label:oj(e),accessibilityLabel:Op(ee.minuteItem,{minute:e})})),[J,ee]),_e=m(()=>Y.map(e=>({value:e,label:e})),[Y]),ve=m(()=>{let e=[{key:`hour`,label:ee.hour,items:he,value:q[Z]??0,separator:`:`,testID:`time-picker-hour`},{key:`minute`,label:ee.minute,items:ge,value:J[se]??0,gapAfter:a===`12h`?U.space.md:void 0,testID:`time-picker-minute`}];return a===`12h`&&e.push({key:`period`,label:ee.period,items:_e,value:Y[le]??`AM`,testID:`time-picker-period`}),e},[he,ge,_e,q,Z,J,se,Y,le,a,U.space.md,ee]),ye=c(e=>{if(a===`24h`)return`${oj(e.hour)}:${oj(e.minute)}`;let{displayHour:t,period:n}=cj(e.hour,`12h`);return`${t}:${oj(e.minute)} ${n}`},[a]),be=!B&&n&&Number.isFinite(n.hour)&&Number.isFinite(n.minute)?(_??ye)(n):void 0,xe=K(bv,{open:H,onClose:ie,presentation:`bottom`,accessibilityLabel:ee.title,haptic:v,contentStyle:f,testID:re,children:[G($,{variant:`title`,align:`center`,accessibilityRole:`header`,style:[W.title,p],children:ee.title}),G(V,{style:W.summaryWrap,accessibilityLiveRegion:`polite`,accessibilityLabel:Op(ee.selected,{summary:me}),children:G($,{variant:`h2`,weight:`bold`,color:`brand`,style:W.summary,children:me})}),G(rj,{columns:ve,onChange:de,haptic:v,style:W.wheels}),K(V,{style:W.footer,children:[G(fg,{label:ee.cancel,haptic:!1,variant:`ghost`,tone:`neutral`,onPress:fe,style:[W.footerBtn,h],accessibilityHint:ee.cancelHint,testID:`time-picker-cancel`}),G(fg,{label:ee.confirm,variant:`solid`,tone:`primary`,haptic:!1,onPress:pe,style:[W.footerBtn,h],accessibilityHint:ee.confirmHint,testID:`time-picker-confirm`})]})]});return B?xe:K(ae,{children:[G(ZS,{...R,labels:y,value:be,onPress:()=>ne(!0),testID:l}),xe]})},dj=e=>R.create({title:{marginBottom:e.space.sm},summaryWrap:{alignItems:`center`,marginBottom:e.space.md},summary:{letterSpacing:e[`letter-spacing`].wide},wheels:{marginBottom:e.space.lg},footer:{flexDirection:`row`,justifyContent:`flex-end`,alignItems:`center`,gap:e.space.sm},footerBtn:{paddingHorizontal:e.space.lg}}),fj=e=>new Promise(t=>{let n=e.current;n?n.measureInWindow((e,n,r,i)=>t({x:e,y:n,width:r,height:i})):t(null)}),pj=(e,t)=>e.width>0&&e.height>0&&e.x<t.width&&e.y<t.height&&e.x+e.width>0&&e.y+e.height>0,mj=({tourId:e,steps:t,open:n,onClose:r,seenStore:i,labels:a,haptic:o,testID:s})=>{let l=Ir(),d=ti().duration(`fast`),f=m(()=>hj(l),[l]),p=te(),_=h(p);_.current=p;let y=l.space.sm,x=l.space.sm,S=Zm(`tour`,Jm),C=m(()=>({...S,...a}),[S,a]),[w,T]=g(null),[E,D]=g(0),O=h(Ht(0)).current,k=h(t);k.current=t;let A=h(C);A.current=C;let j=h(r);j.current=r;let M=h(i);M.current=i;let N=c(async(e,t)=>{for(let n=e;n>=0&&n<k.current.length;n+=t){let e=k.current[n];if(e===void 0)throw Error(`Tour: no step at index ${n}, though the loop bound checked it`);let t=await fj(e.target);if(t&&pj(t,_.current))return{index:n,rect:t}}return null},[]);u(()=>{if(!n)return void T(null);let t=!1;return(async()=>{let n=M.current;if(n&&await n.isSeen(e))return void(t||j.current(`alreadySeen`));let r=await N(0,1);t||(r?(D(r.index),T(r)):j.current(`noTargets`))})(),()=>{t=!0}},[n,e,N]),u(()=>{if(!w)return;let e=k.current[w.index];if(e===void 0)throw Error(`Tour: the current step ${w.index} is missing from the steps list`);let t=Op(A.current.position,{step:w.index+1,total:k.current.length});v.announceForAccessibility([t,e.title,e.description].filter(Boolean).join(`. `)),O.setValue(0);let n=b.timing(O,{toValue:1,duration:d,useNativeDriver:Vt});return n.start(),()=>n.stop()},[w,O,d]);let P=c(async t=>{T(null),await M.current?.markSeen(e),j.current(t)},[e]),F=c(async()=>{if(!w)return;let e=await N(w.index+1,1);e?T(e):await P(`finished`)},[w,N,P]),I=c(async()=>{if(!w)return;let e=await N(w.index-1,-1);e&&T(e)},[w,N]),L=c(()=>{P(`skipped`)},[P]),z=w?t[w.index]:void 0,ee=!!w&&w.index===t.length-1,B=l.space.xs,ne=w?{x:w.rect.x-B,y:w.rect.y-B,width:w.rect.width+2*B,height:w.rect.height+2*B}:null,H=Math.min(p.width-2*x,360),re=ne?(()=>{let e=ne.x+ne.width/2,t=Math.max(x,Math.min(e-H/2,p.width-H-x)),n=ne.y,r=p.height-(ne.y+ne.height);return r>=n?{left:t,top:ne.y+ne.height+y,maxHeight:Math.max(r-y-x,0)}:{left:t,bottom:p.height-ne.y+y,maxHeight:Math.max(n-y-x,0)}})():null,U=l.colors.scrim,W=ne?Math.min(z?.radius?l.radius[z.radius]+B:l.radius.md,Math.min(ne.width,ne.height)/2):0,ie=Math.max(p.width,p.height);return G(bv,{open:w!==null,onClose:L,presentation:`fullScreen`,backdropPressClose:!1,backdropStyle:f.transparent,contentStyle:f.transparent,accessibilityLabel:z?.title??z?.description,haptic:o,testID:s,children:ne&&re&&z?K(V,{style:R.absoluteFill,children:[G(V,{style:[f.dim,{borderColor:U,borderWidth:ie,top:ne.y-ie,left:ne.x-ie,width:ne.width+2*ie,height:ne.height+2*ie,borderRadius:W+ie}]}),G(V,{pointerEvents:`none`,style:[f.highlight,{top:ne.y,left:ne.x,width:ne.width,height:ne.height,borderRadius:W}]}),K(b.View,{accessibilityLiveRegion:`polite`,style:[f.card,re,{width:H,opacity:O}],testID:s?`${s}-card`:void 0,children:[G($,{variant:`caption`,children:Op(C.position,{step:(w?.index??0)+1,total:t.length})}),z.title?G($,{variant:`title`,accessibilityRole:`header`,children:z.title}):null,G($,{variant:`bodySmall`,children:z.description}),K(V,{style:f.actions,children:[G(fg,{label:C.skip,variant:`ghost`,size:`sm`,haptic:o,onPress:L,testID:s?`${s}-skip`:void 0}),K(V,{style:f.navigation,children:[w&&w.index>E?G(fg,{label:C.back,variant:`outline`,size:`sm`,haptic:o,onPress:()=>{I()},testID:s?`${s}-back`:void 0}):null,G(fg,{label:ee?C.done:C.next,size:`sm`,haptic:o,onPress:()=>{F()},testID:s?`${s}-next`:void 0})]})]})]})]}):null})};mj.displayName=`Tour`;var hj=e=>R.create({transparent:{backgroundColor:`transparent`},dim:{position:`absolute`},highlight:{position:`absolute`,borderWidth:2,borderColor:e.colors.primary,borderRadius:e.radius.md,...ni},card:{position:`absolute`,backgroundColor:e.colors.surface,borderRadius:e.radius.lg,...ni,padding:e.space.lg,gap:e.space.sm,...e.shadow.popover},actions:{flexDirection:`row`,alignItems:`center`,justifyContent:`space-between`,marginTop:e.space.xs},navigation:{flexDirection:`row`,gap:e.space.sm}}),gj=[1,.65,.3],_j=[`first`,`second`,`third`],vj=({index:e,still:t,colour:n,dotStyle:r})=>{let i=Xe(.3);u(()=>{if(!t)return i.value=Ze(160*e,Qe($e(tt(1,{duration:400}),tt(.3,{duration:400})),-1)),()=>Re(i)},[t,e,i]);let a=Ge(()=>({opacity:i.value}),[i]);return G(Ee.View,{style:[r,{backgroundColor:n},t?{opacity:gj[e]}:a]})},yj=({label:e,accessibilityLabel:t,labels:n,bubble:r=!0,style:i,testID:a})=>{let o=Ir(),s=m(()=>bj(o),[o]),c=Rn(),l=o.colors[`text-subtle`],u=Zm(`typingIndicator`,Ym),d=m(()=>({...u,...n}),[u,n]);return K(V,{style:[s.root,r?s.bubble:null,i],accessible:!0,accessibilityRole:`progressbar`,accessibilityLabel:e??t??d.typing,accessibilityState:{busy:!0},"aria-busy":!0,testID:a,children:[G(V,{style:s.dots,children:_j.map((e,t)=>G(vj,{index:t,still:c,colour:l,dotStyle:s.dot},e))}),e?G($,{variant:`bodySmall`,color:`secondary`,children:e}):null]})},bj=e=>R.create({dot:{width:6,height:6,borderRadius:e.radius.pill,...ni},root:{flexDirection:`row`,alignItems:`center`,alignSelf:`flex-start`,gap:e.space.sm,marginTop:e.space.sm},bubble:{backgroundColor:e.colors[`bg-subtle`],borderRadius:e.radius.xl,...ni,paddingHorizontal:e.space.md,paddingVertical:e.space.sm+e.space.xs},dots:{flexDirection:`row`,alignItems:`center`,gap:e.space.xs}}),xj={damping:18,stiffness:220,mass:1},Sj=({children:e,maxScale:t=4,minScale:n=1,doubleTapScale:r=2,disabled:i=!1,haptic:a,style:o,accessibilityLabel:s,testID:l})=>{let d=Xe(1),f=Xe(1),p=Xe(0),h=Xe(0),g=Xe(0),_=Xe(0),v=c(()=>{d.value=et(1,xj),f.value=1,p.value=et(0,xj),h.value=et(0,xj),g.value=0,_.value=0},[d,f,p,h,g,_]);u(()=>{i&&v()},[i,v]);let y=c(()=>{let e=ci(a,`impactLight`);e&&si(e)},[a]),b=m(()=>({enabled:!i,onActivate:()=>{"worklet";f.value=d.value},onUpdate:e=>{"worklet";let r=f.value*e.scale;d.value=r<n?n+.3*(r-n):r>t?t+.2*(r-t):r},onDeactivate:()=>{"worklet";d.value<n?(d.value=et(n,xj),p.value=et(0,xj),h.value=et(0,xj),f.value=n,g.value=0,_.value=0):d.value>t?(d.value=et(t,xj),f.value=t):f.value=d.value}}),[i,d,f,p,h,g,_,n,t]),x=gt(b),S=m(()=>({enabled:!i,minPointers:1,maxPointers:1,onActivate:()=>{"worklet";g.value=p.value,_.value=h.value},onUpdate:e=>{"worklet";d.value<=1||(p.value=g.value+e.translationX,h.value=_.value+e.translationY)},onDeactivate:()=>{"worklet";g.value=p.value,_.value=h.value}}),[i,d,p,h,g,_]),C=ht(S),w=m(()=>({enabled:!i,numberOfTaps:2,onDeactivate:()=>{"worklet";yt(y),d.value>1?(d.value=et(1,xj),p.value=et(0,xj),h.value=et(0,xj),f.value=1,g.value=0,_.value=0):(d.value=et(r,xj),f.value=r)}}),[i,d,f,p,h,g,_,y,r]),T=vt(w),E=pt(x,C,T),D=Ge(()=>({transform:[{translateX:p.value},{translateY:h.value},{scale:d.value}]}),[p,h,d]);return G(ut,{gesture:E,children:G(Ee.View,{style:[Cj.container,o],testID:l,accessibilityLabel:s,accessibilityState:{disabled:i},"aria-disabled":i,children:G(Ee.View,{style:[Cj.content,D],children:e})})})};Sj.displayName=`ZoomableImage`;var Cj=R.create({container:{flex:1,alignItems:`center`,justifyContent:`center`,overflow:`hidden`},content:{width:`100%`,height:`100%`,alignItems:`center`,justifyContent:`center`}}),wj=Bt({components:{Accordion:Lh,AccordionGroup:Ph,AmountSlider:a_,AnimatePresence:s_,AppBar:Uv,AppIcon:_p,AsyncBlock:Xv,AuthedImage:Vy,Autocomplete:Wy,Avatar:cb,AvatarGroup:fb,Badge:bb,Banner:wb,BarChart:Lb,BottomNavigation:Ub,BottomSheet:$b,Button:fg,Calendar:gx,Card:wx,Carousel:Rx,Checkbox:Qx,Chip:iS,ChoiceGroup:uS,Composer:gS,Confetti:RS,DatePicker:rC,DateRangePicker:oC,DateSeparator:uC,DecimalInput:yC,Descriptions:CC,Dialog:VS,Divider:S_,Drawer:TC,EmptyState:qv,FilePicker:LC,FileViewer:aw,FilterChipRow:cw,FloatingActionButton:gw,FloatingActionButtonGroup:vw,ForceUpdateDialog:xw,FormField:Sw,IconBadge:D_,IconButton:mS,IdleTimeoutDialog:Ew,ImageGallery:Ow,InlineSelect:Lw,Input:Fg,KeyboardToolbar:qw,ListItem:$_,ListSection:Zw,LoaderOverlay:nT,Markdown:eE,Menu:Bv,MessageBubble:iE,MessageList:cE,Modal:bv,NonModalBottomSheet:vE,NumberInput:EE,OTPInput:FE,OTPResendRow:zE,OnboardingPager:OE,OptionSheet:Mv,OutboxEntryList:HE,PagedList:YE,PagedListFooter:WE,PermissionPrompt:iD,PhoneNumberInput:fD,PickerTrigger:ZS,ProfileCompletion:CD,ProfilePicker:MD,ProgressBar:RD,ProgressRing:vD,Radio:UD,RadioGroup:GD,Rating:tO,Repeater:oO,RichTextEditor:CO,ScannerOverlay:kO,Screen:IO,SearchBar:KO,SectionHeader:Yw,SegmentedControl:YO,Select:$O,SignaturePad:xk,Skeleton:vh,SkeletonCircle:yh,SkeletonContent:kh,SkeletonList:Ah,SkeletonText:bh,SlideToConfirm:Lk,Slider:e_,SliderField:Nk,SortableList:Yk,Spacer:b_,Sparkline:nA,Spinner:ug,SquircleImage:aA,SquircleView:cA,StatTile:vA,StatusBadge:DA,Stepper:IA,Swipeable:V_,Switch:BA,Tabs:UA,TagInput:GA,Text:$,TimePicker:uj,Timeline:JA,Toast:ov,Tooltip:Dk,Tour:mj,TypingIndicator:yj,WheelPickerColumns:zt(a,rj,{mode:`columns`},`WheelPickerColumns`),WheelPickerDuration:zt(a,rj,{mode:`duration`},`WheelPickerDuration`),WheelPickerList:zt(a,rj,{mode:`list`},`WheelPickerList`),ZoomableImage:Sj,StatusBar:Jr,HomeIndicator:Yr,NavigationBar:Xr,SafeArea:Zr,KeyboardFrame:$r},markers:{AppBar:`AppBar`,AppIcon:`AppIcon`,HomeIndicator:`AppHomeIndicator`,KeyboardFrame:`AppKeyboardFrame`,NavigationBar:`AppNavigationBar`,SafeArea:`AppSafeArea`,StatusBar:`AppStatusBar`},tokenValues:{color:{"avatar-1":{light:`#4f46e5`,dark:`#8b8bee`},"avatar-2":{light:`#0a7979`,dark:`#2dd4bf`},"avatar-3":{light:`#a45a05`,dark:`#fcd34d`},"avatar-4":{light:`#cd226e`,dark:`#f472b6`},"avatar-5":{light:`#2462eb`,dark:`#60a5fa`},"avatar-6":{light:`#7c3aed`,dark:`#a78bfa`},"avatar-7":{light:`#047c57`,dark:`#34d399`},"avatar-8":{light:`#d42222`,dark:`#f87171`},bg:{light:`#ffffff`,dark:`#0b0b12`},"bg-muted":{light:`#f1f1f5`,dark:`#1c1c26`},"bg-subtle":{light:`#f8f8fb`,dark:`#13131c`},border:{light:`#e5e5ec`,dark:`#27272f`},"border-subtle":{light:`#efeff3`,dark:`#1c1c26`},danger:{light:`#e12c32`,dark:`#f87171`},"danger-border":{light:`#e5484d`,dark:`#f87171`},"danger-soft":{light:`#ffeaef`,dark:`#e826462e`},"danger-text":{light:`#bc1b20`,dark:`#f87171`},"field-bg":{light:`#f9fbfc`,dark:`#13131c`},"field-bg-disabled":{light:`#f5f6fa`,dark:`#1c1c26`},"field-bg-focus":{light:`#ffffff`,dark:`#0b0b12`},"field-border":{light:`#ebedf3`,dark:`#27272f`},"field-border-error":{light:`#fdbfce`,dark:`#8a2f42`},"field-border-focus":{light:`#bed2f9`,dark:`#3d5fb0`},"field-caret":{light:`#5b8dee`,dark:`#7c9ef0`},"field-icon":{light:`#7a849f`,dark:`#8b8b95`},"field-icon-disabled":{light:`#c4cada`,dark:`#52525b`},"field-icon-focus":{light:`#4b5675`,dark:`#d4d4db`},"field-label":{light:`#242f4a`,dark:`#e4e6ee`},"field-message":{light:`#d81736`,dark:`#f87171`},"field-placeholder":{light:`#626d8b`,dark:`#84848d`},"field-placeholder-disabled":{light:`#7a8197`,dark:`#71717a`},"field-text":{light:`#252f4a`,dark:`#fafafa`},"field-text-disabled":{light:`#7a8197`,dark:`#71717a`},"focus-ring":{light:`#4f46e5`,dark:`#7c7ce8`},"glass-badge":{light:`#ffffff`,dark:`#ffffff`},"glass-border":{light:`#ffffff73`,dark:`#ffffff73`},"glass-fill":{light:`#ffffff47`,dark:`#ffffff47`},info:{light:`#1b6ef5`,dark:`#60a5fa`},"info-soft":{light:`#e9f3ff`,dark:`#056ee92e`},"info-text":{light:`#0958d9`,dark:`#60a5fa`},link:{light:`#4f46e5`,dark:`#9292ee`},neutral:{light:`#f4f4f8`,dark:`#1f1f26`},"neutral-hover":{light:`#e9e9f0`,dark:`#2a2a33`},"neutral-text":{light:`#52525b`,dark:`#b4b4bb`},"offline-fill":{light:`#e82646`,dark:`#e82646`},"on-danger":{light:`#ffffff`,dark:`#0f0f1a`},"on-glass":{light:`#0f0f1a`,dark:`#0f0f1a`},"on-info":{light:`#ffffff`,dark:`#0f0f1a`},"on-neutral":{light:`#0f0f1a`,dark:`#fafafa`},"on-neutral-strong":{light:`#ffffff`,dark:`#0f0f1a`},"on-primary":{light:`#ffffff`,dark:`#0f0f1a`},"on-scrim":{light:`#ffffff`,dark:`#ffffff`},"on-success":{light:`#ffffff`,dark:`#0f0f1a`},"on-surface-dark":{light:`#ffffff`,dark:`#ffffff`},"on-surface-dark-muted":{light:`#babdc7`,dark:`#babdc7`},"on-warning":{light:`#0f0f1a`,dark:`#0f0f1a`},"online-fill":{light:`#04b440`,dark:`#04b440`},primary:{light:`#4f46e5`,dark:`#7c7ce8`},"primary-hover":{light:`#4338ca`,dark:`#9292ee`},"primary-pressed":{light:`#3730a3`,dark:`#a8a8f2`},"primary-soft":{light:`#e0e7ff`,dark:`#1f1f3d`},"primary-text":{light:`#4f46e5`,dark:`#8989ea`},"primary-wash":{light:`#4f46e514`,dark:`#7c7ce814`},"primary-wash-strong":{light:`#4f46e533`,dark:`#7c7ce833`},scrim:{light:`#0f0f1a80`,dark:`#000000a6`},skeleton:{light:`#ebedf3`,dark:`#1c1c26`},"skeleton-highlight":{light:`#f5f6fa`,dark:`#27272f`},success:{light:`#18864f`,dark:`#30c780`},"success-soft":{light:`#e8faee`,dark:`#04b4402e`},"success-text":{light:`#147042`,dark:`#30c780`},surface:{light:`#ffffff`,dark:`#1c1c26`},"surface-dark":{light:`#071437`,dark:`#071437`},"surface-dark-border":{light:`#2a3553`,dark:`#2a3553`},"surface-disabled":{light:`#f1f1f5`,dark:`#1c1c26`},"surface-hover":{light:`#0f0f1a0a`,dark:`#ffffff0d`},"surface-ink":{light:`#0b0e16`,dark:`#0b0e16`},"surface-inverse":{light:`#0f0f1a`,dark:`#fafafa`},"surface-pressed":{light:`#0f0f1a0f`,dark:`#ffffff14`},"surface-selected":{light:`#4f46e51a`,dark:`#7c7ce82e`},"switch-thumb":{light:`#ffffff`,dark:`#ffffff`},text:{light:`#252f4a`,dark:`#e2e2e2`},"text-body":{light:`#0f0f1a`,dark:`#fafafa`},"text-disabled":{light:`#b4b4bb`,dark:`#52525b`},"text-inverse":{light:`#ffffff`,dark:`#0f0f1a`},"text-muted":{light:`#52525b`,dark:`#b4b4bb`},"text-subtle":{light:`#62626b`,dark:`#919199`},thumb:{light:`#ffffff`,dark:`#3a3e49`},warning:{light:`#f59e0b`,dark:`#fbbf24`},"warning-soft":{light:`#fff8e6`,dark:`#dfa0002e`},"warning-text":{light:`#8f5c06`,dark:`#fbbf24`}},space:{"2xl":32,"3xl":48,"4xl":64,lg:16,md:12,none:0,sm:8,xl:24,xs:4,xxs:2},radius:{"2xl":18,"3xl":20,lg:14,md:10,none:0,pill:9999,sm:6,xl:20},shadow:{card:{x:0,y:2,blur:4,spread:0,color:`#0000000f`,elevation:2},drawer:{x:0,y:12,blur:24,spread:0,color:`#00000024`,elevation:12},elevated:{x:0,y:4,blur:8,spread:0,color:`#00000014`,elevation:4},modal:{x:0,y:12,blur:24,spread:0,color:`#00000024`,elevation:12},popover:{x:0,y:8,blur:16,spread:0,color:`#0000001a`,elevation:8}},font:{display:{family:`System`,fallback:``},mono:{family:`System`,fallback:``},ui:{family:`System`,fallback:``}},text:{"2xl":{size:24,weight:null},"3xl":{size:30,weight:null},"4xl":{size:36,weight:null},"5xl":{size:45,weight:null},"6xl":{size:57,weight:null},"7xl":{size:64,weight:null},"8xl":{size:72,weight:null},base:{size:15,weight:null},lg:{size:17,weight:null},sm:{size:13,weight:null},xl:{size:20,weight:null},xs:{size:11,weight:null}},leading:{body:1.4,display:1.2,heading:1.2}},manifest:{kind:`WeborityPhone`,library:{name:`@webority/mobile-ui`,version:`0.178.1`},rendererProtocolVersion:14,platform:`Phone`,kitModuleVersion:2,productKit:null,components:[{name:`Accordion`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the spoken label of the header; it defaults to the title.`},{name:`defaultExpanded`,type:`boolean`,required:!1,description:`The open state at first, when the accordion manages its own state.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks toggling and dims the title and chevron.`,default:!1},{name:`expanded`,type:`boolean`,required:!1,description:`The open state when the parent controls it; leave out to let the accordion manage its own state.`},{name:`icon`,type:`icon`,required:!1,description:`An optional icon drawn before the title.`},{name:`id`,type:`string`,required:!1,description:`Names the accordion inside an AccordionGroup, where it is required.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the skeleton placeholder in place of the accordion.`,default:!1},{name:`title`,type:`string`,required:!0,description:`The header text shown beside the chevron.`},{name:`variant`,type:`enum`,enum:[`card`,`plain`],required:!1,description:`A plain header row or an elevated card.`,default:`plain`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Hide secondary content behind a tappable header so a long screen stays short.`,`Show one open section at a time or several, by placing accordions inside an AccordionGroup.`],whenNot:[{text:`The content is needed to make the next decision.`,instead:`Show it inline in a Card.`},{text:`Switching between peer views of the same data.`,instead:`Use Tabs.`}],do:[{note:`Give every accordion a short, specific title that says what is inside.`,example:[{component:`Accordion`,props:{title:`Section one`},children:`Text of section one.`}]},{note:`Give each accordion in a group its own id.`,example:[{component:`AccordionGroup`,props:{},children:[{component:`Accordion`,props:{id:`shipping`,title:`Section one`},children:`Text of section one.`},{component:`Accordion`,props:{id:`returns`,title:`Section two`},children:`Text of section two.`}]}]}],dont:[{note:`Do not use a vague title such as More or Details.`,example:[{component:`Accordion`,props:{title:`More`},children:`Text of section one.`}]},{note:`Do not nest an accordion inside another accordion.`,example:[{component:`Accordion`,props:{title:`Section one`},children:[{component:`Accordion`,props:{title:`Section two`},children:`Text of section two.`}]}]}],a11y:[`The header is announced as a button with its expanded or collapsed state.`,`Set accessibilityLabel only when the title alone does not describe the action.`]}},{name:`AccordionGroup`,marker:null,acceptsChildren:!0,props:[{name:`allowMultiple`,type:`boolean`,required:!1,description:`When false, opening one accordion closes the others; when true, several stay open.`,default:!1},{name:`defaultExpandedKeys`,type:`array`,required:!1,description:`The ids of the accordions open at first, when the group manages its own state.`},{name:`expandedKeys`,type:`array`,required:!1,description:`The ids of the open accordions when the parent controls them.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Coordinate several accordions so opening one can close the others.`,`Keep the set of open sections in one place.`],whenNot:[{text:`There is a single accordion.`,instead:`Use Accordion on its own.`}],do:[{note:`Give every accordion inside the group a unique id.`,example:[{component:`AccordionGroup`,props:{defaultExpandedKeys:[`first`]},children:[{component:`Accordion`,props:{id:`first`,title:`First section`},children:`First section content.`},{component:`Accordion`,props:{id:`second`,title:`Second section`},children:`Second section content.`}]}]}],dont:[{note:`Do not also set expanded on an accordion inside a group.`,example:[{component:`AccordionGroup`,props:{defaultExpandedKeys:[`first`]},children:[{component:`Accordion`,props:{id:`first`,title:`First section`,expanded:!0},children:`First section content.`},{component:`Accordion`,props:{id:`second`,title:`Second section`},children:`Second section content.`}]}]}],a11y:[`Each accordion keeps its own button semantics; the group adds none.`]}},{name:`AmountSlider`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the slider.`},{name:`animationDuration`,type:`number`,required:!1,description:`The length in milliseconds of one digit roll; it defaults to the theme's normal duration.`},{name:`currency`,type:`string`,required:!0,description:`The ISO 4217 code of the amount; the symbol is drawn from it.`},{name:`defaultValue`,type:`number`,required:!1,description:`The amount at first, when the slider manages its own state.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks the slider and the input box.`,default:!1},{name:`max`,type:`number`,required:!1,description:`The largest amount.`,default:100},{name:`min`,type:`number`,required:!1,description:`The smallest amount.`,default:0},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the track and thumb.`},{name:`step`,type:`number`,required:!1,description:`The distance between selectable amounts.`,default:1},{name:`tone`,type:`enum`,enum:[`danger`,`primary`,`success`,`warning`],required:!1,description:`The colour of the filled track.`},{name:`units`,type:`enum`,enum:[`indian`,`international`],required:!1,description:`Whether the large amount reads in Thousand, Lakh and Crore or in Thousand, Million and Billion.`},{name:`value`,type:`number`,required:!1,description:`The amount when the parent controls it.`},{name:`variant`,type:`enum`,enum:[`bar`,`default`,`inset`,`minimal`],required:!1,description:`The look of the slider.`,default:`inset`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Pick an amount where both a rough drag and an exact entry make sense.`,`Show the amount in scaled units next to an exact editable figure.`],whenNot:[{text:`The value is not money or has only a few choices.`,instead:`Use Slider or SegmentedControl.`},{text:`The person must type a precise figure and never drag.`,instead:`Use Input or DecimalInput.`}],do:[{note:`Set min, max and step so every stop is a sensible amount.`,example:[{component:`AmountSlider`,props:{value:5e3,min:1e3,max:5e4,step:500,currency:`USD`,accessibilityLabel:`Amount`}}]}],dont:[{note:`Do not use a step so small that the thumb cannot land on a round figure.`,example:[{component:`AmountSlider`,props:{value:1234,min:0,max:1e4,step:1,currency:`USD`,accessibilityLabel:`Tiny step`}}]}],a11y:[`Set accessibilityLabel to say what the amount is for.`,`The input box carries its own label through labels.inputLabel.`]}},{name:`AnimatePresence`,marker:null,acceptsChildren:!0,props:[{name:`duration`,type:`number`,required:!1,description:`The animation length in milliseconds; it defaults to the theme's normal duration.`},{name:`preset`,type:`enum`,enum:[`fade`,`scale`,`slide-down`,`slide-up`],required:!1,description:`The shape of the enter and exit animation.`,default:`fade`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Animate a single conditional child in on mount and out on unmount.`,`Let a panel, banner or message finish its exit animation before it disappears.`],whenNot:[{text:`Animating rows inside a list.`,instead:`Use the list's own item layout animation.`}],do:[{note:`Pass the child only while it should be visible, such as a condition that is either the element or null.`,example:[{component:`AnimatePresence`,props:{preset:`fade`},children:`Visible content`}]}],dont:[{note:`Do not wrap several siblings; wrap one element.`,example:[{component:`AnimatePresence`,props:{preset:`fade`},children:[{component:`AnimatePresence`,props:{preset:`slide-up`},children:`Nested content`}]}]}],a11y:[`With the system Reduce Motion setting on, every preset fades instead of moving.`]}},{name:`AppBar`,marker:`AppBar`,acceptsChildren:!1,props:[{name:`divider`,type:`boolean`,required:!1,description:`Draws a hairline under the bar; off by default.`},{name:`elevated`,type:`boolean`,required:!1,description:`Draws a shadow under the bar, for content scrolled beneath it; ignored when the bar is transparent.`,default:!1},{name:`gutter`,type:`number`,required:!1,description:`The distance in points from the screen edge to the visible edge of the outermost glyph.`},{name:`height`,type:`number`,required:!1,description:`The bar height in points, without the top safe area; it overrides the variant height.`},{name:`leading`,type:`node`,required:!1,description:`Any element in the left slot, after the left action. On a tab screen with a large title, keep it icon-sized so it does not squeeze the title.`},{name:`leftAction`,type:`object`,fields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the button.`},{name:`dot`,type:`boolean`,required:!1,description:`Draws a small unread dot on the button.`},{name:`glyphSize`,type:`number`,required:!1,description:`The drawn width in points of a glyph larger than the 24 point icon, so the gutter lands on its edge.`},{name:`icon`,type:`icon`,required:!1,description:`The glyph of the button.`},{name:`label`,type:`string`,required:!1,description:`A text label used instead of the glyph.`}],required:!1,description:`The button at the left edge, drawn from an icon or a text label.`},{name:`rightActions`,type:`array`,itemFields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the button.`},{name:`badge`,type:`stringOrNumber`,required:!1,description:`A count or short text drawn on the button; zero draws nothing.`},{name:`dot`,type:`boolean`,required:!1,description:`Draws a small unread dot on the button.`},{name:`glyphSize`,type:`number`,required:!1,description:`The drawn width in points of a glyph larger than the 24 point icon, so the gutter lands on its edge.`},{name:`icon`,type:`icon`,required:!1,description:`The glyph of the button.`},{name:`label`,type:`string`,required:!1,description:`A text label used instead of the glyph.`},{name:`menu`,type:`array`,required:!1,description:`The items of the menu the button opens; such a button has no onPress.`},{name:`menuTitle`,type:`string`,required:!1,description:`A short heading over the menu's items; also the menu's accessible name.`}],required:!1,description:`The buttons at the right edge, in order.`},{name:`subtitle`,type:`string`,required:!1,description:`A second line under the title.`},{name:`title`,type:`string`,required:!1,description:`The bar title.`},{name:`titleAlignment`,type:`enum`,enum:[`center`,`left`],required:!1,description:`Aligns the title and subtitle to the left or the centre.`,default:`left`},{name:`titleOffset`,type:`number`,required:!1,description:`The exact space in points between the left slot and the title.`},{name:`titleVariant`,type:`string`,required:!1,description:`The text style of the title, a Text variant name or a variant the theme registers.`},{name:`trailing`,type:`node`,required:!1,description:`Any element in the right slot, after the right actions.`},{name:`transparent`,type:`boolean`,required:!1,description:`Removes the background and the bottom line, for hero or tinted layouts.`,default:!1},{name:`variant`,type:`enum`,enum:[`compact`,`default`,`large`],required:!1,description:`The bar height and title weight.`,default:`default`}],itemsTakeAction:[`rightActions`],takesAction:[`leftAction`],source:`@webority/mobile-ui`,role:`navigation`,usage:{when:[`Put a title, a back button and a few actions at the top of a screen.`,`Use the large variant for a top-level screen whose title collapses as the list scrolls.`],whenNot:[{text:`A search field is the main control of the screen.`,instead:`Use SearchBar.`},{text:`The page needs a custom header layout.`,instead:`Compose it with the leading and trailing slots before building a new header.`}],do:[{note:`Keep at most three actions on the right and give each an accessibility label.`,example:[{component:`AppBar`,props:{title:`Inbox`,rightActions:[{icon:`search`,accessibilityLabel:`Search messages`},{icon:`filter`,accessibilityLabel:`Filter messages`},{icon:`more`,accessibilityLabel:`More options`}]}}]},{note:`Use the compact variant on screens below the first level.`,example:[{component:`AppBar`,props:{title:`Settings`,variant:`compact`,rightActions:[{icon:`share`,accessibilityLabel:`Share profile`}]}}]}],dont:[{note:`Do not put long text in the title; it truncates.`,example:[{component:`AppBar`,props:{title:`Inbox messages from all your accounts and folders`,rightActions:[{icon:`search`,accessibilityLabel:`Search messages`},{icon:`filter`,accessibilityLabel:`Filter messages`},{icon:`more`,accessibilityLabel:`More options`}]}}]},{note:`Do not give an action neither an icon nor a text label.`,example:[{component:`AppBar`,props:{title:`Settings`,variant:`compact`,rightActions:[{accessibilityLabel:`Share profile`}]}}]}],a11y:[`Every action is at least 44 by 44 points and needs an accessibility label unless it has text.`,`The back arrow is announced as Back.`]}},{name:`AppIcon`,marker:`AppIcon`,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Set when the icon carries meaning on its own; decorative icons stay silent for screen readers.`},{name:`color`,type:`string`,required:!1,description:`A text role or tone name (such as tertiary, success or brand) or any colour value; it defaults to the primary text colour.`},{name:`name`,type:`icon`,required:!0,description:`The icon to draw, by name; add -iconsax to a curated name to draw the Iconsax glyph it shadows.`},{name:`size`,type:`enumOrNumber`,enum:[`lg`,`md`,`sm`,`xl`,`xs`],required:!1,description:`A size name (14, 18, 22, 28 or 36 pixels) or an exact size in pixels.`,default:`md`},{name:`variant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The icon style; a name missing in a style falls back to linear.`,default:`linear`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Draw an icon from the design system's set by name, the same name as on the web.`,`Pick a style (linear, bold, broken, bulk, outline, twotone) to match the weight of the surrounding text.`],whenNot:[{text:`Showing a photo or a brand logo.`,instead:`Use Image or AuthedImage.`},{text:`The icon is the only content of a button.`,instead:`Use IconButton, which sets the touch size.`}],do:[{note:`Use one style across a screen.`,example:[{component:`AppIcon`,props:{name:`home`,variant:`linear`}},{component:`AppIcon`,props:{name:`search`,variant:`linear`}}]},{note:`Give an icon that stands alone an accessibility label.`,example:[{component:`AppIcon`,props:{name:`search`,accessibilityLabel:`Search`}}]}],dont:[{note:`Do not use an icon without text for an action nobody would recognise.`,example:[{component:`AppIcon`,props:{name:`radar`}}]},{note:`Do not mix icon styles in one toolbar.`,example:[{component:`AppIcon`,props:{name:`home`,variant:`linear`}},{component:`AppIcon`,props:{name:`search`,variant:`bold`}}]}],a11y:[`A decorative icon is hidden from screen readers; set accessibilityLabel when it carries meaning.`,`Colour is never the only signal; pair a coloured icon with text.`]}},{name:`AsyncBlock`,marker:null,acceptsChildren:!0,props:[{name:`empty`,type:`object`,required:!1,description:`The EmptyState of the empty state. Left out, it is titled with labels.emptyTitle.`},{name:`errorTitle`,type:`string`,required:!1,description:`The title of the error state.`,default:`That didn't load`},{name:`errorVariant`,type:`enum`,enum:[`default`,`offline`],required:!1,description:`Draws the error as a lost connection when offline; left out, an offline error picks it by itself.`},{name:`icon`,type:`node`,required:!1,description:`The icon of the error state. Left out, an offline error shows a cloud and any other error shows none.`},{name:`labels`,type:`object`,required:!1,description:`Override the built-in copy: emptyTitle, errorTitle, offlineTitle, retry.`},{name:`offlineTitle`,type:`string`,required:!1,description:`The title of the offline error state.`,default:`You're offline`},{name:`skeleton`,type:`node`,required:!1,description:`A placeholder shaped like the content; it falls back to a centred spinner.`},{name:`state`,type:`any`,required:!0,description:`The request's data state: loading, error (its error and retry), empty (its refresh) or data (its data and refresh).`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Wrap any screen section that fetches data so loading, error, empty and content each have one place.`,`Show a shaped skeleton while data loads so the layout does not jump.`],whenNot:[{text:`The data is already in memory and cannot fail.`,instead:`Render the content directly.`},{text:`A single button is busy.`,instead:`Use the loading state of that Button.`}],do:[{note:`Give the empty state a title that says what will appear and when.`,example:[{component:`Card`,props:{title:`No items yet`},children:`Invoices appear here once you raise one.`}]},{note:`Every error state has a retry: the query's retry runs from the error state's button.`,example:[{component:`Button`,props:{label:`Try again`}}]}],dont:[{note:`Do not show a raw server message; the error state shows the message of the ApiError it is given, so map it to a curated one first.`,example:[{component:`AsyncBlock`,props:{errorTitle:`That didn't load`,state:{status:`error`,error:{code:`SERVER`,message:`Network unreachable`}},labels:{retry:`Try again`}}}]},{note:`Do not leave loading on while showing content.`,example:[{component:`Card`,props:{loading:!0}}]}],a11y:[`The error and empty states are plain text, so screen readers read their title and description.`,`The state decides what is drawn: loading, error, empty or data, one at a time. Idle, a skipped query, draws nothing.`]}},{name:`AuthedImage`,marker:null,acceptsChildren:!1,props:[{name:`authenticated`,type:`boolean`,required:!1,description:`Attaches the stored sign-in token when no client is given, only for a relative address or one on the app's configured API address.`,default:!0},{name:`blurRadius`,type:`number`,required:!1,description:`Blurs the image by this radius in points.`},{name:`cacheKey`,type:`string`,required:!1,description:`Overrides the cache key derived from the address.`},{name:`contentFit`,type:`enum`,enum:[`contain`,`cover`,`fill`,`none`,`scale-down`],required:!1,description:`How the image fits its box, in expo-image's names.`},{name:`fadeDuration`,type:`number`,required:!1,description:`The cross-fade in milliseconds when the image appears.`},{name:`fallback`,type:`node`,required:!1,description:`Shown when no usable image exists.`},{name:`headers`,type:`object`,required:!1,description:`Extra request headers sent with the fetch.`},{name:`labels`,type:`object`,required:!1,description:`Text for the loading spinner and the failed-image box: loading, unavailable and unavailableNamed(name).`},{name:`placeholder`,type:`node`,required:!1,description:`Shown while the image loads.`},{name:`resizeMode`,type:`enum`,enum:[`center`,`contain`,`cover`,`repeat`,`stretch`],required:!1,description:`How the image fits its box, in React Native's names; contentFit wins when both are set.`},{name:`tintColor`,type:`string`,required:!1,description:`Paints the image in one colour, for a mask-like icon.`},{name:`ttlMs`,type:`number`,required:!1,description:`How long a cached image counts as fresh, in milliseconds.`,default:6048e5},{name:`uri`,type:`url`,required:!0,description:`The address of the image.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show an image that sits behind a sign-in, which the plain Image cannot fetch.`,`Cache the image on the device so it opens at once the next time.`],whenNot:[{text:`The image is public and needs no token.`,instead:`Use Image with a plain address.`},{text:`The image is a person's picture.`,instead:`Use Avatar.`}],do:[{note:`Give the image a fixed height or aspect ratio so the layout does not jump.`,example:[{component:`AuthedImage`,props:{uri:`https://picsum.photos/seed/webority/400/300`}}]},{note:`Pass a fallback for the case where the image cannot load.`,example:[{component:`AuthedImage`,props:{uri:`https://picsum.photos/seed/webority/400/300`,fallback:{component:`AppIcon`,props:{name:`user`}}}}]}],dont:[{note:`Do not set one cache key for different pictures.`,example:[{component:`AuthedImage`,props:{uri:`https://picsum.photos/id/10/400/300`,cacheKey:`shared-key`}},{component:`AuthedImage`,props:{uri:`https://picsum.photos/id/11/400/300`,cacheKey:`shared-key`}}]},{note:`Do not send the token to a public address; turn authenticated off.`,example:[{component:`AuthedImage`,props:{uri:`https://picsum.photos/seed/public/400/300`,authenticated:!0}}]}],a11y:[`Pass an accessibility label that describes the picture when it carries meaning.`,`A decorative image needs no label.`]}},{name:`Autocomplete`,marker:null,acceptsChildren:!1,props:[{name:`defaultValue`,type:`string`,required:!1,description:`The input text at first, when the field manages its own text.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks typing and selecting.`,default:!1},{name:`error`,type:`string`,required:!1,description:`An error message shown under the field. true shows the error state without a message.`},{name:`filterMode`,type:`enum`,enum:[`client`,`none`],required:!1,description:`Client filters the options here; none shows them as given, for search done on a server.`,default:`client`},{name:`helperText`,type:`string`,required:!1,description:`A hint shown under the field.`},{name:`label`,type:`string`,required:!1,description:`The field label.`},{name:`labels`,type:`object`,required:!1,description:`The dropdown copy: empty (nothing matches) and searching (the loading row). Missing keys keep their defaults.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner row in the dropdown, for results being fetched.`,default:!1},{name:`loadingText`,type:`string`,required:!1,description:`The text beside the loading spinner. Defaults to labels.searching.`},{name:`maxResults`,type:`number`,required:!1,description:`The most suggestions shown.`,default:8},{name:`minChars`,type:`number`,required:!1,description:`The number of characters typed before suggestions appear.`,default:1},{name:`options`,type:`array`,required:!0,description:`The candidate options to filter.`},{name:`placeholder`,type:`string`,required:!1,description:`The hint shown while the field is empty.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the field.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The input text when the parent controls it.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The look of the field.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Let a person pick one item from a long list by typing, such as a country, a city or an assignee.`,`Search on a server by showing a loading row and the fetched options as they are.`],whenNot:[{text:`The list has only a few fixed choices.`,instead:`Use Select or SegmentedControl.`},{text:`The person may enter any text.`,instead:`Use Input.`}],do:[{note:`Set a label that names what is being chosen.`,example:[{component:`Autocomplete`,props:{label:`Country`,options:[`India`,`Indonesia`,`Ireland`],maxResults:8}}]},{note:`Use filterMode none and the loading state when results come from a server.`,example:[{component:`Autocomplete`,props:{label:`City`,options:[],filterMode:`none`,loading:!0,loadingText:`Searching...`}}]}],dont:[{note:`Do not show hundreds of suggestions; keep maxResults small.`,example:[{component:`Autocomplete`,props:{label:`Country`,options:[`India`,`Indonesia`,`Ireland`],maxResults:100}}]},{note:`Do not use it for a list a person would rather scroll.`,example:[{component:`Autocomplete`,props:{label:`Size`,options:[`Small`,`Medium`,`Large`]}}]}],a11y:[`The field keeps the Input semantics, so the label and error are read.`,`Selecting a suggestion closes the keyboard.`]}},{name:`Avatar`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken name; it defaults to the person's name followed by avatar.`},{name:`backgroundColor`,type:`string`,required:!1,description:`A colour for the initials disc that wins over tone.`},{name:`border`,type:`boolean`,required:!1,description:`Draws a 1 pt border inside the frame, with the picture inset by it.`,default:!1},{name:`color`,type:`string`,required:!1,description:`A colour for the initials that wins over tone.`},{name:`contentFit`,type:`enum`,enum:[`contain`,`cover`],required:!1,description:`How the picture fills the frame; contain shows all of it, with no fill behind it.`,default:`cover`},{name:`dimension`,type:`number`,required:!1,description:`Width and height in points; it wins over size.`},{name:`fontSize`,type:`number`,required:!1,description:`The initials font size in pixels; it wins over the size-based default.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the skeleton placeholder in place of the avatar.`,default:!1},{name:`name`,type:`string`,required:!1,description:`The person's name, used for the initials and the fallback colour.`},{name:`placeholderIcon`,type:`icon`,required:!1,description:`Drawn in place of the initials when there is no picture and no name.`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The corner of a rounded avatar, from the radius tokens; left out, it keeps 22 percent of the side.`},{name:`shape`,type:`enum`,enum:[`circle`,`rounded`,`square`],required:!1,description:`The outline of the avatar.`,default:`circle`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`,`xs`],required:!1,description:`A size name: 24, 32, 48, 64 or 80 points.`,default:`md`},{name:`source`,type:`url`,required:!1,description:`The picture to draw; it falls back to initials when it fails to load or is left out.`},{name:`status`,type:`enum`,enum:[`away`,`busy`,`offline`,`online`,`pending`,`rejected`,`verified`],required:!1,description:`A presence dot, or a verified, pending or rejected ring; leave out to show nothing.`},{name:`statusPosition`,type:`enum`,enum:[`bottomRight`,`topRight`],required:!1,description:`The corner where the presence dot sits.`,default:`bottomRight`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`A theme colour for the initials disc; left out, the colour comes from the name.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Represent a person or an organisation with a picture, or with initials when there is none.`,`Show presence or an identity state with a dot or a ring.`],whenNot:[{text:`Showing any other picture.`,instead:`Use AuthedImage or Image.`},{text:`Showing several people together.`,instead:`Use AvatarGroup.`}],do:[{note:`Always pass name so the initials fallback and the spoken label work.`,example:[{component:`Avatar`,props:{name:`Ada Lovelace`,size:`md`}}]},{note:`Keep one size within a list.`,example:[{component:`Avatar`,props:{name:`Ada Lovelace`,size:`sm`}},{component:`Avatar`,props:{name:`Alan Turing`,size:`sm`}}]}],dont:[{note:`Do not rely on the dot colour alone to tell presence.`,example:[{component:`Avatar`,props:{size:`md`,status:`online`}}]},{note:`Do not set both tone and backgroundColor.`,example:[{component:`Avatar`,props:{name:`Ada Lovelace`,size:`md`,tone:`primary`,backgroundColor:`#3b82f4`}}]}],a11y:[`The spoken label is the name followed by avatar, with verified, pending verification or rejected added for the ring states.`,`A pressable avatar is announced as a button and keeps a touch area of at least 44 points.`]}},{name:`AvatarGroup`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the whole group.`},{name:`max`,type:`number`,required:!1,description:`The most avatars shown before the rest collapse into an overflow circle.`,default:4},{name:`overflowVariant`,type:`enum`,enum:[`count`,`plus`],required:!1,description:`Shows the overflow as a count such as +3 or as a plain plus.`,default:`count`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`,`xs`],required:!1,description:`A size name (24, 32, 48, 64 or 80 points), applied to every avatar.`,default:`md`},{name:`spacing`,type:`enum`,enum:[`loose`,`normal`,`tight`],required:!1,description:`How much the avatars overlap.`,default:`normal`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show the people on a task, chat or team as one overlapping stack.`,`Collapse the extra people into a count.`],whenNot:[{text:`Showing one person.`,instead:`Use Avatar.`},{text:`The person must be able to read every name.`,instead:`Use a list of ListItem rows.`}],do:[{note:`Set max so the stack fits the space it sits in.`,example:[{component:`AvatarGroup`,props:{max:2},children:[{component:`Avatar`,props:{name:`Alice`}},{component:`Avatar`,props:{name:`Bob`}}]}]}],dont:[{note:`Do not put anything but Avatar elements inside the group.`,example:[{component:`AvatarGroup`,props:{max:2},children:[{component:`Avatar`,props:{name:`Alice`}},`and others`]}]}],a11y:[`Set accessibilityLabel to say how many people the group holds.`,`The overflow circle is announced with its count.`]}},{name:`Badge`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the badge.`},{name:`accessible`,type:`boolean`,required:!1,description:`False hides the badge from screen readers, for a host that already announces the count.`,default:!0},{name:`anchor`,type:`enum`,enum:[`bottomLeft`,`bottomRight`,`topLeft`,`topRight`],required:!1,description:`The corner of the child where the badge sits.`,default:`topRight`},{name:`fill`,type:`enum`,enum:[`soft`,`solid`],required:!1,description:`Solid fills the pill with the tone; soft draws the tone's soft colour behind a semibold count in the tone.`,default:`solid`},{name:`invisible`,type:`boolean`,required:!1,description:`Hides the badge without removing it from the layout.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Shows the skeleton placeholder in place of the badge.`,default:!1},{name:`max`,type:`number`,required:!1,description:`The largest number shown before it reads as the maximum with a plus.`,default:99},{name:`pulse`,type:`boolean`,required:!1,description:`Pulses the badge to draw attention to something unread.`,default:!1},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The size of the badge.`,default:`sm`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the badge.`,default:`danger`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The count or short text; a number of zero or less draws nothing in the standard variant.`},{name:`variant`,type:`enum`,enum:[`dot`,`standard`],required:!1,description:`A pill with the value or a plain dot.`,default:`standard`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show a count or a status on its own, or on the corner of an icon, avatar or button.`,`Mark something unread with a dot or a pulsing badge.`],whenNot:[{text:`Showing a status with a word.`,instead:`Use StatusBadge.`},{text:`Showing a removable label.`,instead:`Use Chip.`}],do:[{note:`Use the danger tone only for things that need action, such as unread alerts.`,example:[{component:`Badge`,props:{value:3,tone:`danger`},children:[{component:`Button`,props:{label:`Alerts`}}]}]},{note:`Set max so a large count reads 99+ and stays small.`,example:[{component:`Badge`,props:{value:120,max:99},children:[{component:`Button`,props:{label:`Items`}}]}]}],dont:[{note:`Do not rely on the colour alone to carry the meaning.`,example:[{component:`Badge`,props:{variant:`dot`,tone:`danger`},children:[{component:`Button`,props:{label:`Alerts`}}]}]},{note:`Do not stack several badges on one element.`,example:[{component:`Badge`,props:{value:4,anchor:`topRight`},children:[{component:`Badge`,props:{variant:`dot`,tone:`success`,anchor:`bottomRight`},children:[{component:`Button`,props:{label:`Items`}}]}]}]}],a11y:[`Set accessibilityLabel to say what the count means, such as 4 unread messages.`,`Colour is never the only signal; the value or the label carries the meaning.`]}},{name:`Banner`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces what the banner is announced as. Leave it unset so the title, message and each button are read in turn.`},{name:`accessibilityRole`,type:`enum`,enum:[`alert`,`none`,`summary`],required:!1,description:`How a screen reader treats the banner. Alert announces it as it appears; summary and none are read in order.`,default:`alert`},{name:`actions`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The button text.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`The button size. Medium is taller, with a 44 point touch target.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The button colour. Primary takes the banner colour, neutral the secondary text colour and every other tone its own colour.`},{name:`variant`,type:`enum`,enum:[`ghost`,`outline`,`solid`],required:!1,description:`The button style: filled, bordered or text only.`}],required:!1,description:`Buttons drawn under the message.`},{name:`animateMount`,type:`boolean`,required:!1,description:`Slides and fades the banner in when it first appears.`,default:!0},{name:`dismissible`,type:`boolean`,required:!1,description:`Shows a close button.`,default:!1},{name:`icon`,type:`icon`,required:!1,description:`Replaces the built-in icon. Pass false to draw no icon.`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the placeholder shape instead of the content while data loads.`,default:!1},{name:`message`,type:`node`,required:!0,description:`The text of the banner. Plain text gets the built-in styling; a node is drawn as it is.`},{name:`open`,type:`boolean`,required:!1,description:`Shows or hides the banner. Hiding plays the exit animation first.`,default:!0},{name:`title`,type:`string`,required:!1,description:`A short heading above the message.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The kind of message, which sets its colour and icon.`,default:`neutral`},{name:`variant`,type:`enum`,enum:[`bar`,`tint`,`wash`],required:!1,description:`The look. Wash fills the banner with the tone's soft colour, with a small corner radius, no leading bar and a title in the tone's colour.`,default:`bar`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A message belongs to the whole screen or a section, such as an update, a warning or a saved state.`,`The message needs a visible place on the page and may offer one or two actions.`,`The person can dismiss it or leave it until it no longer applies.`],whenNot:[{text:`The message is a brief confirmation that should disappear on its own.`,instead:`Toast`},{text:`The person must answer before they can continue.`,instead:`Dialog`}],do:[{note:`Keep the message to one or two sentences and give the action a clear verb.`,example:[{component:`Banner`,props:{tone:`info`,message:`Version 2.4 is ready.`,actions:[{label:`Update`}]}}]}],dont:[{note:`Do not stack several banners on one screen. They compete and the important one gets lost.`,example:[{component:`Banner`,props:{tone:`warning`,message:`Several banners shown at once hide the one that matters.`}}]}],a11y:[`The alert role announces the banner as it appears, so use it only for something the person must hear now.`,`Without an accessibility label, a screen reader reads the title, the message and each button in turn.`]}},{name:`BarChart`,marker:null,acceptsChildren:!1,props:[{name:`color`,type:`string`,required:!1,description:`A single colour for every bar. It wins over the tone. It does not apply with series.`},{name:`data`,type:`array`,itemFields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces the spoken text of the bar.`},{name:`axisLabel`,type:`string`,required:!1,description:`A shorter label drawn under the bar. It defaults to the label.`},{name:`label`,type:`string`,required:!0,description:`The full name of the bar, read aloud and written in the callout.`},{name:`value`,type:`number`,required:!1,description:`The bar value, for a chart without series. A value below zero draws under the zero line.`},{name:`values`,type:`object`,required:!1,description:`With series: each series' value, by series key, in place of value.`}],required:!0,description:`The bars, left to right.`},{name:`defaultSelection`,type:`number`,required:!1,description:`The bar picked at the start when the chart keeps its own selection.`},{name:`height`,type:`number`,required:!1,description:`Height of the plot in points.`,default:160},{name:`label`,type:`string`,required:!1,description:`What the chart shows, read first by a screen reader.`},{name:`selection`,type:`number`,required:!1,description:`The picked bar, counted from 0, when the screen controls the selection.`},{name:`series`,type:`array`,itemFields:[{name:`key`,type:`string`,required:!0,description:`The key of the series in each bar's values.`},{name:`label`,type:`string`,required:!0,description:`The series name, written in the legend and read aloud with its value.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the series. It defaults to the next of primary, info, success, warning, danger and neutral.`}],required:!1,description:`Stacks each bar into one segment per series, in this order, and adds a legend. Each bar then carries values instead of value.`},{name:`showValues`,type:`boolean`,required:!1,description:`Draws each bar's value on the bar. It is on by default when there are 7 bars or fewer.`},{name:`summary`,type:`string`,required:!1,description:`The main message in a sentence, shown while no bar is picked. It defaults to the highest bar.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the bars.`,default:`primary`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A dashboard shows a handful of values side by side, such as a count per day.`,`The main message can be written as one sentence under the chart.`,`Values may be negative and the zero line should stay visible.`],whenNot:[{text:`The values are a trend over many points.`,instead:`Sparkline`},{text:`The chart must show exact numbers for every point.`,instead:`a table of values`}],do:[{note:`Write a summary sentence that names the main message, so the chart reads without touching it.`,example:[{component:`BarChart`,props:{summary:`Approvals peaked on Thursday`,data:[{label:`Mon`,value:14},{label:`Thu`,value:31}]}}]}],dont:[{note:`Do not leave out the label and summary. A reader then has to guess what the bars mean.`,example:[{component:`BarChart`,props:{data:[{label:`Mon`,value:14},{label:`Thu`,value:31}]}}]}],a11y:[`A screen reader gets one adjustable element: swipe up or down to move from bar to bar, each read as its label and value.`,`The label names the chart and is read first.`]}},{name:`BottomNavigation`,marker:null,acceptsChildren:!1,props:[{name:`accessory`,type:`node`,required:!1,description:`A compact strip tied to the bar, such as a status line.`},{name:`activeTab`,type:`string`,required:!0,description:`The key of the active tab.`},{name:`border`,type:`boolean`,required:!1,description:`Draws a hairline border around the bar.`},{name:`centerAction`,type:`object`,fields:[{name:`color`,type:`string`,required:!1,description:`Fill of the circle.`},{name:`content`,type:`node`,required:!1,description:`Replaces the filled circle entirely with any node.`},{name:`gap`,type:`number`,required:!1,description:`Space between the button and the neighbouring tabs, in pixels.`},{name:`icon`,type:`icon`,required:!1,description:`The icon drawn in the filled circle. It defaults to add.`},{name:`iconColor`,type:`string`,required:!1,description:`Colour of the icon in the circle.`},{name:`iconSize`,type:`number`,required:!1,description:`Size of the icon in the circle in pixels.`},{name:`label`,type:`string`,required:!0,description:`The accessible name of the button. It is never drawn.`},{name:`lift`,type:`number`,required:!1,description:`How far the button rises above the centre of the row, in pixels.`},{name:`size`,type:`number`,required:!1,description:`Diameter of the filled circle in pixels.`}],required:!1,description:`A button in the middle of the bar that is not a tab.`},{name:`elevation`,type:`enum`,enum:[`card`,`drawer`,`elevated`,`modal`,`none`,`popover`],required:!1,description:`The shadow under the bar, as a shadow name or none.`},{name:`iconSize`,type:`number`,required:!1,description:`Size of every tab icon in pixels.`},{name:`indicatorPosition`,type:`enum`,enum:[`bottom`,`top`],required:!1,description:`Where the active line sits, for the variants that draw a line.`,default:`bottom`},{name:`indicatorRadius`,type:`stringOrNumber`,required:!1,description:`Corner radius of the active tab background in pixels, or the text auto to follow the bar.`,default:`auto`},{name:`labelMaxFontScale`,type:`number`,required:!1,description:`The largest text scale the tab label follows.`},{name:`marginHorizontal`,type:`number`,required:!1,description:`Space between the bar and the left and right screen edges, in pixels.`},{name:`marginVertical`,type:`number`,required:!1,description:`Space above and below the bar, in pixels.`},{name:`minimizeOnScroll`,type:`boolean`,required:!1,description:`Shrinks the bar to its icons while the person scrolls down and restores it on scroll up.`,default:!1},{name:`paddingHorizontal`,type:`number`,required:!1,description:`Space inside the bar between its edges and the tab row, in pixels.`},{name:`paddingVertical`,type:`number`,required:!1,description:`Space inside the bar above and below the tab row, in pixels.`},{name:`radius`,type:`stringOrNumber`,required:!1,description:`Corner radius of the bar in pixels, or the text pill for fully round ends.`},{name:`scrollDirection`,type:`enum`,enum:[`down`,`idle`,`up`],required:!1,description:`The scroll direction of the screen, read only when minimizeOnScroll is on.`,default:`idle`},{name:`showLabels`,type:`boolean`,required:!1,description:`Shows the text label under each icon. Expand only labels the active tab.`,default:!0},{name:`tabs`,type:`array`,itemFields:[{name:`activeIcon`,type:`icon`,required:!1,description:`The icon drawn while the tab is active.`},{name:`badge`,type:`stringOrNumber`,required:!1,description:`A number or text drawn on the tab. True draws a dot.`},{name:`icon`,type:`icon`,required:!0,description:`The tab icon, an icon name or any node.`},{name:`key`,type:`string`,required:!0,description:`A stable id for the tab.`},{name:`label`,type:`string`,required:!0,description:`The text under the icon and the accessible name of the tab.`},{name:`showLabel`,type:`boolean`,required:!1,description:`Draws this tab's label. False hides the text and keeps it as the accessible name.`}],required:!0,description:`The tabs, left to right.`},{name:`variant`,type:`enum`,enum:[`bubble`,`expand`,`floating`,`pill`,`solid`,`tile`,`underline`],required:!1,description:`The look of the bar.`,default:`pill`}],itemsTakeAction:[`tabs`],takesAction:[`centerAction`],source:`@webority/mobile-ui`,role:`navigation`,usage:{when:[`The app has three to five top-level places the person moves between often.`,`The bar should stay on screen so the person always knows where they are.`,`A badge should show unread or pending work on a tab.`],whenNot:[{text:`There are more than five destinations.`,instead:`Drawer`},{text:`The choices switch views inside one screen.`,instead:`Tabs`}],do:[{note:`Give every tab a short label, even when it also has an icon.`,example:[{component:`BottomNavigation`,props:{activeTab:`home`,tabs:[{key:`home`,label:`Home`,icon:`home`},{key:`inbox`,label:`Items`,icon:`sms`}]}}]}],dont:[{note:`Do not hide every label with no accessible name left on the tab.`,example:[{component:`BottomNavigation`,props:{showLabels:!1,activeTab:`home`,tabs:[{key:`home`,label:``,icon:`home`},{key:`inbox`,label:``,icon:`sms`}]}}]}],a11y:[`A tab's label is its accessible name, also when showLabel is false.`,`The bar stays expanded while a screen reader is on.`,`The centre action's label is its accessible name and is never drawn.`]}},{name:`BottomSheet`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the sheet for a screen reader.`},{name:`accessibilityViewIsModal`,type:`boolean`,required:!1,description:`Tells a screen reader to ignore what is behind the sheet.`},{name:`actions`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`Dims the action and blocks its press (a confirm waiting on a typed phrase, say).`},{name:`label`,type:`string`,required:!0,description:`The text drawn on the action button.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and blocks its press.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The color scheme of the action.`}],required:!1,description:`Action buttons drawn in the footer, above footer.`},{name:`actionsLayout`,type:`enum`,enum:[`auto`,`row`,`stacked`],required:!1,description:`How the actions are laid out: auto stacks them when a label wraps, row never stacks, stacked is a column of full-width buttons.`,default:`auto`},{name:`animateMount`,type:`boolean`,required:!1,description:`Slides the sheet up when it opens as it mounts. Off, it is drawn at its snap point at once.`,default:!0},{name:`enableBackdropPress`,type:`boolean`,required:!1,description:`Lets a tap on the scrim close the sheet. Back and Escape follow it.`,default:!0},{name:`enablePanDownToClose`,type:`boolean`,required:!1,description:`Lets a drag on the handle past the threshold close the sheet.`,default:!0},{name:`footer`,type:`node`,required:!1,description:`A fixed region at the bottom of the sheet, such as a row of buttons.`},{name:`header`,type:`node`,required:!1,description:`A fixed region between the handle and the content. It does not scroll.`},{name:`inline`,type:`boolean`,required:!1,description:`Off covers the whole screen in a native modal; on overlays the parent view.`,default:!1},{name:`keyboardBehavior`,type:`enum`,enum:[`none`,`shift`],required:!1,description:`How the sheet reacts to the keyboard. Shift rides up with it; none stays put.`,default:`shift`},{name:`labels`,type:`object`,fields:[{name:`close`,type:`string`,required:!1,description:`Names the scrim and the Escape action for a screen reader.`},{name:`dragHandle`,type:`string`,required:!1,description:`Names the drag handle for a screen reader.`}],required:!1,description:`Spoken labels for the sheet's own controls.`},{name:`open`,type:`boolean`,required:!0,description:`Whether the sheet is open. A dismissal by the person closes it; the parent sets this to false.`},{name:`presentation`,type:`enum`,enum:[`auto`,`dialog`,`sheet`],required:!1,description:`Sheet is full width at the bottom; dialog is centred; auto picks a dialog on a tablet.`,default:`sheet`},{name:`scrollEventThrottle`,type:`number`,required:!1,description:`How often the inner scroll view reports scrolling, in milliseconds. Used only with scrollable.`},{name:`scrollable`,type:`boolean`,required:!1,description:`Wraps the content in a vertical scroll view between the header and the footer.`,default:!1},{name:`snapIndex`,type:`number`,required:!1,description:`The snap point the sheet opens at, counted from 0.`},{name:`snapPoints`,type:`array`,required:!1,description:`The heights the sheet rests at: a number of points, a percentage such as 50%, or content to hug the content.`,default:[`content`]},{name:`title`,type:`string`,required:!1,description:`A heading drawn above the header, read as a heading by a screen reader.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A short task or a list of choices belongs on top of the current screen.`,`The person should be able to drag the sheet between a small and a tall height.`,`The content needs a fixed header or a fixed row of buttons.`],whenNot:[{text:`The person must answer one question before going on.`,instead:`Dialog`},{text:`The content is a full screen of its own.`,instead:`a new screen`}],do:[{note:`Use the content snap point so the sheet is as tall as what it holds.`,example:[{component:`BottomSheet`,props:{snapPoints:[`content`],inline:!0,open:!0}}]}],dont:[{note:`Do not set a snap point taller than the content needs. It leaves a large empty area.`,example:[{component:`BottomSheet`,props:{snapPoints:[`90%`],inline:!0,open:!0}}]}],a11y:[`Turning off backdrop press also turns off Back and Escape, so a sheet that must be answered stays open.`,`Set accessibilityLabel so a screen reader names the sheet when it opens.`]}},{name:`Button`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the control is used, read after its name by a screen reader.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces the label as the accessible name of the button.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the button.`,default:!1},{name:`fullWidth`,type:`boolean`,required:!1,description:`Stretches the button to the full width of its parent.`,default:!1},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The icon style for an icon given by name.`},{name:`label`,type:`string`,required:!0,description:`The label, and the accessible name of the button unless an accessibility label is set.`},{name:`labels`,type:`object`,required:!1,description:`Overrides the text the button draws for its own states. The loading key names the spinner.`},{name:`leftIcon`,type:`icon`,required:!1,description:`An icon before the title.`},{name:`leftIconBadge`,type:`boolean`,required:!1,description:`Draws the left icon inside its own disc at the left edge. Ignored on a link.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Disables the button and draws a spinner before the title.`,default:!1},{name:`rightIcon`,type:`icon`,required:!1,description:`An icon after the title.`},{name:`rounded`,type:`boolean`,required:!1,description:`Gives the button fully round ends.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`,`xs`],required:!1,description:`The size of the button.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour family of the button.`,default:`primary`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`The visual weight, heaviest first. Glass suits a button on a gradient or a photo.`,default:`solid`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person starts an action, such as saving, sending or adding.`,`One action on a screen is the main one and should stand out.`,`An action is in progress and the button should show it with a spinner.`],whenNot:[{text:`The control moves to another screen as part of the text.`,instead:`a link variant button`},{text:`The control toggles a setting on or off.`,instead:`Switch`}],do:[{note:`Label the button with a verb that says what happens.`,example:[{component:`Button`,props:{label:`Save changes`}}]}],dont:[{note:`Do not use several solid primary buttons side by side. Only one action is the main one.`,example:[{component:`Button`,props:{label:`Save`}},{component:`Button`,props:{label:`Send`}}]}],a11y:[`The label is the accessible name; set an accessibility label only when it should differ.`,"Pass the label as `label`.",`While loading, the button reports itself as disabled and busy.`]}},{name:`Calendar`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the calendar. It is read with the month heading.`},{name:`cellSize`,type:`number`,required:!1,description:`Fixed width and height of each day, at least 44. Unset, days share the width equally.`},{name:`disabledDates`,type:`array`,required:!1,description:`Days that cannot be picked, as ISO dates.`},{name:`locale`,type:`string`,required:!1,description:`The locale for month, weekday and day names.`,default:`en-IN`},{name:`marks`,type:`array`,itemFields:[{name:`date`,type:`string`,required:!0,description:`The marked day, as an ISO date.`},{name:`label`,type:`string`,required:!1,description:`What the day is, read aloud with the day. Without it the day reads Marked.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!0,description:`The dot colour.`}],required:!1,description:`Days drawn with a dot in their tone and read aloud with each day.`},{name:`maxDate`,type:`string`,required:!1,description:`The latest day that can be picked, as an ISO date.`},{name:`minDate`,type:`string`,required:!1,description:`The earliest day that can be picked, as an ISO date.`},{name:`month`,type:`string`,required:!1,description:`A day in the month shown, as an ISO date. Leave it out to let the calendar keep the month.`},{name:`selectionMode`,type:`enum`,enum:[`range`,`single`],required:!1,description:`Single picks one day; range picks a start and then an end.`,default:`single`},{name:`value`,type:`object`,fields:[{name:`end`,type:`string`,required:!1,description:`The last day of a range, as an ISO date. It is absent while a range is in progress.`},{name:`start`,type:`string`,required:!0,description:`The first day, as an ISO date.`}],required:!0,description:`The selection, or null when nothing is picked. Dates are written as ISO strings.`},{name:`weekStartsOn`,type:`enum`,enum:[0,1,6],required:!1,description:`The first weekday of the grid: 0 is Sunday, 1 is Monday and 6 is Saturday.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person picks one day or a range from a visible month, such as leave dates.`,`Closed days or events should show as marks on the days.`,`The grid should sit inside the page rather than in a sheet.`],whenNot:[{text:`The person picks a date from a form field.`,instead:`DatePicker`},{text:`The person picks a range from a form field.`,instead:`DateRangePicker`}],do:[{note:`Mark closed days so the person sees them before picking a range.`,example:[{component:`Calendar`,props:{selectionMode:`range`,marks:[{date:`2026-10-14`,tone:`danger`,label:`Closed`}]}}]}],dont:[{note:`Do not set a cell size below 44. The days become hard to tap.`,example:[{component:`Calendar`,props:{selectionMode:`single`,cellSize:30}}]}],a11y:[`Each marked day is read aloud with its label.`,`Days keep a touch target of at least 44 points.`,`Set accessibilityLabel so the calendar is named with its month heading.`]}},{name:`Card`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the control is used, read after its name by a screen reader.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the card for a screen reader.`},{name:`action`,type:`node`,required:!1,description:`A header action: a node is drawn as it is, or a label with a press handler draws a text action.`},{name:`bg`,type:`string`,required:!1,description:`The background: a background colour name (including primary-wash) or any colour value. It replaces the variant surface.`},{name:`collapsed`,type:`boolean`,required:!1,description:`The folded state, when the screen controls it.`},{name:`collapsedSummary`,type:`node`,required:!1,description:`Shown under the title while the card is folded.`},{name:`collapsible`,type:`boolean`,required:!1,description:`Draws a chevron in the header that folds the body and footer away.`,default:!1},{name:`contextMenu`,type:`object`,fields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the menu for a screen reader.`},{name:`backLabel`,type:`string`,required:!1,description:`The accessible name of a submenu's Back row.`},{name:`closeLabel`,type:`string`,required:!1,description:`The accessible name of the tap outside area.`},{name:`items`,type:`any`,required:!0,description:`The menu entries: a list of items, or a list of groups of items.`},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`top`],required:!1,description:`The preferred side of the pressed card.`},{name:`presentation`,type:`enum`,enum:[`auto`,`popover`,`sheet`],required:!1,description:`How the menu is drawn. Auto picks a sheet on a phone past seven items or with a description.`},{name:`preview`,type:`node`,required:!1,description:`What lifts over the dimmed screen while the menu is open.`},{name:`title`,type:`string`,required:!1,description:`A short heading over the items. It is also the accessible name of the menu.`},{name:`topActions`,type:`array`,itemFields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces the item text for a screen reader.`},{name:`checked`,type:`boolean`,required:!1,description:`Draws a check mark and reports the checked state.`},{name:`description`,type:`string`,required:!1,description:`A line under the label. Any description presents the menu as a sheet on a phone.`},{name:`destructive`,type:`boolean`,required:!1,description:`Draws the item in the error colour.`},{name:`detail`,type:`string`,required:!1,description:`Short trailing text, such as a count.`},{name:`disabled`,type:`boolean`,required:!1,description:`Marks the item as unavailable now.`},{name:`hidden`,type:`boolean`,required:!1,description:`Never shows the item.`},{name:`icon`,type:`icon`,required:!1,description:`A leading icon.`},{name:`key`,type:`string`,required:!0,description:`A stable id for the item.`},{name:`label`,type:`string`,required:!0,description:`The item text.`},{name:`submenu`,type:`array`,required:!1,description:`One level of items that replaces the list when this item is chosen.`}],required:!1,description:`Up to three icon actions in a row above the list.`},{name:`unavailable`,type:`enum`,enum:[`disable`,`hide`],required:!1,description:`Hide drops an unavailable item; disable shows it dimmed.`}],required:!1,description:`A long press menu. Every item is also a screen reader action on the card.`},{name:`defaultCollapsed`,type:`boolean`,required:!1,description:`The folded state at the start, when the card keeps its own.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses on an interactive card.`},{name:`elevation`,type:`enum`,enum:[`card`,`drawer`,`elevated`,`modal`,`none`,`popover`],required:!1,description:`The shadow under the card, as a shadow name or none.`,default:`card`},{name:`flex`,type:`number`,required:!1,description:`Share of the free space along the parent's main axis, as React Native flex. Unset, the card sizes to its content.`},{name:`footer`,type:`node`,required:!1,description:`A footer slot below the body.`},{name:`header`,type:`node`,required:!1,description:`A free header slot. When set it replaces the built-in header.`},{name:`headerActions`,type:`node`,required:!1,description:`Extra nodes drawn in the header row after the action.`},{name:`imageAspectRatio`,type:`number`,required:!1,description:`The width to height ratio of the card image.`},{name:`imageHeight`,type:`number`,required:!1,description:`Height of the card image in points.`,default:160},{name:`imageOverlay`,type:`node`,required:!1,description:`A node drawn over the card image.`},{name:`interactive`,type:`boolean`,required:!1,description:`Makes the whole card pressable.`,default:!1},{name:`lead`,type:`node`,required:!1,description:`A subtitle line under the title.`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the placeholder shape instead of the content while data loads.`,default:!1},{name:`padding`,type:`enum`,enum:[`lg`,`md`,`none`,`sm`,`xl`],required:!1,description:`The space inside the card.`,default:`md`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius, a theme radius token name.`,default:`lg`},{name:`separatorHeight`,type:`number`,required:!1,description:`Height of the bottom band of the flat variant. It defaults to a hairline.`},{name:`title`,type:`string`,required:!1,description:`The built-in header title, drawn as a heading. A custom heading goes in header.`},{name:`titleFont`,type:`enum`,enum:[`sans`,`serif`],required:!1,description:`The face of the title: the sans text face, or the serif display face.`,default:`sans`},{name:`variant`,type:`enum`,enum:[`elevated`,`filled`,`flat`,`outline`],required:!1,description:`The surface style of the card.`,default:`elevated`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Related content should read as one group, such as a summary, a record or a list item.`,`The group may need a header, a footer, an image or a menu.`,`The whole group should be pressable and lead somewhere.`],whenNot:[{text:`The content is a plain row in a list.`,instead:`ListItem`},{text:`The content only needs spacing.`,instead:`Box`}],do:[{note:`Give the card a title so the group has a name.`,example:[{component:`Card`,props:{title:`Account summary`}}]}],dont:[{note:`Do not nest cards inside cards. The surfaces and shadows pile up.`,example:[{component:`Card`,props:{title:`Outer`},children:[{component:`Card`,props:{title:`Inner`}}]}]}],a11y:[`Context menu items are also screen reader actions on the card.`,`Set accessibilityLabel on an interactive card so its purpose is announced.`]}},{name:`Carousel`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the carousel for a screen reader.`},{name:`autoPlay`,type:`boolean`,required:!1,description:`Advances the slides on a timer. It implies loop.`,default:!1},{name:`autoPlayInterval`,type:`number`,required:!1,description:`The time between slides when autoPlay is on, in milliseconds.`,default:4e3},{name:`data`,type:`array`,required:!0,description:`The slides. Each entry is handed to the slide renderer.`},{name:`defaultIndex`,type:`number`,required:!1,description:`The slide shown at the start when the carousel keeps its own position.`,default:0},{name:`index`,type:`number`,required:!1,description:`The slide shown, counted from 0, when the screen controls it.`},{name:`itemWidth`,type:`stringOrNumber`,required:!1,description:`Width of each slide in points, or the text screen for the width of the parent.`,default:`screen`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the placeholder shape instead of the slides while data loads.`,default:!1},{name:`loop`,type:`boolean`,required:!1,description:`Jumps back to the first slide after the last.`,default:!1},{name:`paginationStyle`,type:`enum`,enum:[`bars`,`dots`,`numbers`],required:!1,description:`The look of the pagination marks.`,default:`dots`},{name:`showPagination`,type:`boolean`,required:!1,description:`Draws the pagination marks under the slides.`,default:!0},{name:`showThumbnails`,type:`boolean`,required:!1,description:`Draws a strip of small thumbnails under the carousel.`,default:!1},{name:`spacing`,type:`number`,required:!1,description:`Horizontal space between slides, in points.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A few slides of the same kind share one place, such as promotions or photos.`,`The person swipes sideways and sees where they are in the set.`,`A slide strip should advance on its own, such as a banner rotation.`],whenNot:[{text:`The slides are steps of a first run flow.`,instead:`OnboardingPager`},{text:`The items are a long scrolling list.`,instead:`a list`}],do:[{note:`Keep the set short and show the pagination so the person knows more slides follow.`,example:[{component:`Carousel`,props:{data:[`One`,`Two`,`Three`],showPagination:!0}}]}],dont:[{note:`Do not auto play a carousel that holds text the person must read. The slide changes before they finish.`,example:[{component:`Carousel`,props:{data:[`One`,`Two`,`Three`],autoPlay:!0,autoPlayInterval:1e3}}]}],a11y:[`Set accessibilityLabel so a screen reader names the carousel.`,`Auto play pauses while the person drags and resumes after a short idle time.`]}},{name:`Checkbox`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the control is used, read after its name by a screen reader.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The accessible name of the checkbox. Needed when the label is a node.`},{name:`checked`,type:`boolean`,required:!1,description:`Whether the box is checked, when the screen controls it.`},{name:`defaultChecked`,type:`boolean`,required:!1,description:`Whether the box starts checked, when the checkbox keeps its own state.`},{name:`description`,type:`node`,required:!1,description:`A secondary line under the label and the helper text.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the checkbox.`,default:!1},{name:`error`,type:`string`,required:!1,description:`A string: an error line under the label, helper text and description, which also draws the box in the error colour. true shows the error state without a message.`},{name:`help`,type:`node`,required:!1,description:`A node beside the label, such as an info button. It is not part of the checkbox and does not toggle it.`},{name:`helperText`,type:`node`,required:!1,description:`A hint under the label.`},{name:`indeterminate`,type:`boolean`,required:!1,description:`Draws the mixed state, such as a select all box with some rows chosen.`,default:!1},{name:`label`,type:`node`,required:!1,description:`The text beside the box. A node label needs an accessibility label.`},{name:`shape`,type:`enum`,enum:[`circle`],required:!1,description:`circle draws a round box with the tick inside, for a task that is completed. Omit it for the square box.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the box.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the checked box.`,default:`primary`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person picks any number of options from a list.`,`A single yes or no needs to be saved with a form, such as accepting terms.`,`A parent box should show that only some of its rows are chosen.`],whenNot:[{text:`The person picks exactly one option.`,instead:`Radio`},{text:`The setting takes effect at once when changed.`,instead:`Switch`}],do:[{note:`Write the label so a checked box reads as a true statement.`,example:[{component:`Checkbox`,props:{checked:!0,label:`Email me a receipt`}}]}],dont:[{note:`Do not leave a checkbox with no label. The person cannot tell what it controls.`,example:[{component:`Checkbox`,props:{checked:!1}}]}],a11y:[`A node label needs an accessibility label, which becomes the screen reader name.`,`Pressing the help node beside the label does not toggle the checkbox.`]}},{name:`Chip`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the default accessibility label.`},{name:`count`,type:`stringOrNumber`,required:!1,description:'A figure after the label, drawn quieter than it (regular weight, caption size, tabular digits): "Open" with `count={4}`.'},{name:`disabled`,type:`boolean`,required:!1,description:`Disabled state.`,default:!1},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`Iconsax style for a leftIcon given as a name. Default linear.`},{name:`label`,type:`string`,required:!0,description:`Chip text.`},{name:`labels`,type:`object`,required:!1,description:`Announcement text for the close button; merged over the defaults.`},{name:`leftIcon`,type:`icon`,required:!1,description:`Icon before the label.`},{name:`loading`,type:`boolean`,required:!1,description:`When true, renders the component as its authored skeleton placeholder shape.`,default:!1},{name:`removeTestID`,type:`string`,required:!1,description:`Test id on the close button of a removable chip.`},{name:`selected`,type:`boolean`,required:!1,description:`Selected visual state.`,default:!1},{name:`selectionMode`,type:`enum`,enum:[`multiple`,`radio`,`single`],required:!1,description:`How a pressable chip announces itself.`,default:`single`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Size scale.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic color.`,default:`neutral`},{name:`variant`,type:`enum`,enum:[`outline`,`soft`,`solid`],required:!1,description:`Visual style.`,default:`soft`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A compact tag, optionally selectable or closable.`,`A compact pill for filters, tags, and selections.`],whenNot:[{text:`When the affordance is an action.`,instead:`Button`},{text:`For 2 to 4 short values in a single exclusive switch.`,instead:`SegmentedControl`},{text:`When options can wrap freely or be multi-select and the library should manage the selection state.`,instead:`ChoiceGroup`}],do:[{note:`Pass a string or number to count to render a figure after the label.`,example:[{component:`Chip`,props:{label:`Open`,count:4}}]}],dont:[{note:`Do not pass 0 to count if you want it hidden while loading.`,example:[{component:`Chip`,props:{label:`Open`,count:0}}]}],a11y:[`Announces as a radio, a checkbox, or a button depending on the selection mode.`,`Exposes a checked state for radio and multiple selection modes, and a selected state otherwise.`,`A radio chip adds vertical hit slop to reach a 44 point touch target.`]}},{name:`ChoiceGroup`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Accessible label for the group.`},{name:`description`,type:`node`,required:!1,description:`A line of text drawn above the options.`},{name:`descriptionLines`,type:`number`,required:!1,description:`Lines an option description may take in the card before it ends in an ellipsis.`,default:2},{name:`direction`,type:`enum`,enum:[`column`,`row`],required:!1,description:`Main axis of the option list.`,default:`row`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the whole group; per-option disabled still applies on top.`,default:!1},{name:`error`,type:`string`,required:!1,description:`Drawn under the options in place of helperText. A boolean true marks the group invalid without text.`},{name:`fullWidth`,type:`boolean`,required:!1,description:`Stretch options equally along the main axis. Default true for an unwrapped row of cards, false otherwise; a chip hugs its content.`},{name:`gap`,type:`number`,required:!1,description:`Gap between options. Default theme.space.sm.`},{name:`helperText`,type:`node`,required:!1,description:`A hint drawn under the options; hidden while error is set.`},{name:`indicatorPosition`,type:`enum`,enum:[`leading`,`trailing`],required:!1,description:`Side of the card the radio dot sits on; the chip has no dot.`,default:`trailing`},{name:`label`,type:`node`,required:!1,description:`A label above the group, drawn like the other fields' labels; a string also names the group.`},{name:`labelLines`,type:`number`,required:!1,description:`Lines an option label may take in the built-in templates before it ends in an ellipsis. Unset means no limit.`},{name:`max`,type:`number`,required:!1,description:`Multiple mode only: most options that can be selected. At this count the unselected options are disabled.`},{name:`min`,type:`number`,required:!1,description:`Multiple mode only: fewest options that stay selected. Pressing a selected option at this count does nothing.`},{name:`options`,type:`array`,itemFields:[{name:`color`,type:`string`,required:!1,description:`Tints the default card's label, border, dot and selected fill; defaults to the primary colour.`},{name:`description`,type:`string`,required:!1,description:`A second line shown on the card only; the chip is label and icon alone.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables this option only.`},{name:`icon`,type:`icon`,required:!1,description:`Icon before the label: an AppIcon name drawn in the option's current ink and bold while selected, or a name and variant object, a render function or any node.`},{name:`label`,type:`string`,required:!0,description:`The text shown for the option and read aloud.`},{name:`testID`,type:`string`,required:!1,description:`A test selector put on this option's pressable.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value the group stores when this option is chosen.`}],required:!0,description:`The choices, in the ChoiceOption shape by default.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the label as required, as on the other fields.`},{name:`selectionMode`,type:`enum`,enum:[`multiple`,`single`],required:!1,description:`Single picks one option (radio); multiple toggles any number (checkbox). Defaults to single.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Density of the built-in templates: padding, font size, icon and dot.`,default:`md`},{name:`value`,type:`any`,required:!1,description:`The selected value when the parent controls it: one option's value, or a list of them when several can be chosen.`},{name:`variant`,type:`enum`,enum:[`card`,`chip`],required:!1,description:`Look of the built-in template: the bordered card or the icon-and-label chip.`,default:`card`},{name:`wrap`,type:`boolean`,required:!1,description:`Allow options to wrap onto multiple lines (swatch grids).`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Choosing one option from a short, fully visible set, such as a status or a plan.`,`Picking a role or filter where each choice has its own icon (the chip variant).`],whenNot:[{text:`The list is long and needs scrolling or search`,instead:`Select`},{text:`The options must join into one bar of segments that slides`,instead:`SegmentedControl`},{text:`The question is a single yes or no`,instead:`Checkbox`}],do:[{note:`Give each option a label and a value, and pass a default so one option starts selected.`,example:[{component:`ChoiceGroup`,props:{options:[{label:`Hot`,value:`Hot`},{label:`Warm`,value:`Warm`},{label:`Cold`,value:`Cold`}],value:`Hot`}}]}],dont:[{note:`Pass a single value in multiple mode; multiple mode takes an array of values.`,example:[{component:`ChoiceGroup`,props:{selectionMode:`multiple`,options:[{label:`Hot`,value:`Hot`},{label:`Warm`,value:`Warm`}],value:`Hot`}}]}],a11y:[`Single mode exposes a radiogroup of radio options; multiple mode exposes checkboxes with checked state and no radiogroup role.`,`Each option is read with its label, and a card reads its full description even when the text is cut short on screen.`,`A disabled group or option is announced as disabled and cannot be pressed.`]}},{name:`Composer`,marker:null,acceptsChildren:!1,props:[{name:`above`,type:`node`,required:!1,description:`Inside the bar, above the row: a banner or note that rides the keyboard too.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The text box's screen reader name, defaulting to the placeholder.`},{name:`autoFocus`,type:`boolean`,required:!1,description:`Focuses the text input when the component mounts.`},{name:`below`,type:`node`,required:!1,description:`Inside the bar, below the row: a disclaimer.`},{name:`canSend`,type:`boolean`,required:!1,description:`Decides whether send is enabled. Unset, send is enabled while the text is not empty. Pass true to allow a message with an attachment and no text.`},{name:`disabled`,type:`boolean`,required:!1,description:`Nothing can be typed or sent.`,default:!1},{name:`hint`,type:`string`,required:!1,description:`Read after the text box's name, never drawn: a hint a sighted person does not need.`},{name:`keyboardAware`,type:`boolean`,required:!1,description:`Rides the keyboard so the composer stays visible above it.`,default:!0},{name:`keyboardOffset`,type:`number`,required:!1,description:`How far below the bar the keyboard top starts: the bottom safe area inset plus anything under it.`},{name:`labels`,type:`object`,fields:[{name:`message`,type:`string`,required:!1,description:`The placeholder when no placeholder is given, defaulting to Message.`},{name:`send`,type:`string`,required:!1,description:`The send button's screen reader name, defaulting to Send.`}],required:!1,description:`Override the built-in copy: send and message.`},{name:`leading`,type:`node`,required:!1,description:`Before the box, e.g. an attach button.`},{name:`loading`,type:`boolean`,required:!1,description:`A reply is arriving: the person can type but not send. With onStop given, the send button shows a stop icon and calls onStop; without it, send shows a spinner.`,default:!1},{name:`maxLength`,type:`number`,required:!1,description:`The maximum number of characters the box accepts.`},{name:`maxLines`,type:`number`,required:!1,description:`The box grows to this many lines, then scrolls.`,default:5},{name:`placeholder`,type:`string`,required:!1,description:`The placeholder text shown while the box is empty.`,default:`Message`},{name:`ring`,type:`boolean`,required:!1,description:`Draws a ring on the box that moves between two theme colours, for a typing or loading state. Holds still under reduced motion.`,default:!1},{name:`safeArea`,type:`boolean`,required:!1,description:`Pad the bar for the bottom safe area, or turn off above a tab bar.`,default:!0},{name:`sendIcon`,type:`icon`,required:!1,description:`The icon of the send button.`,default:`send`},{name:`sendReveal`,type:`enum`,enum:[`always`,`onText`],required:!1,description:`onText shows the send button only while there is something to send or stop.`,default:`always`},{name:`stopLabel`,type:`string`,required:!1,description:`The stop button's screen reader name, shown while loading with onStop given.`,default:`Stop`},{name:`trailing`,type:`node`,required:!1,description:`Between the box and send, e.g. a microphone button.`},{name:`value`,type:`string`,required:!1,description:`Controlled draft text; leave unset and the composer keeps its own.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Provide the message input bar at the bottom of a chat screen.`,`Allow typing messages with an integrated send button and action slots.`,`Pair with MessageList to ride the keyboard automatically in a chat view.`],whenNot:[{text:`A single labelled field.`,instead:`Input`},{text:`A long form answer.`,instead:`Input with type textarea`}],do:[{note:`Turn off keyboardAware when placing the composer inside a sheet that already moves with the keyboard.`,example:[{component:`Composer`,props:{placeholder:`Message Asha`,keyboardAware:!1}}]}],dont:[{note:`Do not leave keyboardAware enabled inside a sheet that already moves with the keyboard.`,example:[{component:`Composer`,props:{placeholder:`Message Asha`,keyboardAware:!0}}]}],a11y:[`The text input accessibility label defaults to the placeholder text when accessibilityLabel is unset.`,`The send button accessibility label uses labels.send, which defaults to Send.`,`The send button reports its disabled or loading state to assistive technologies.`]}},{name:`Confetti`,marker:null,acceptsChildren:!1,props:[{name:`autoStart`,type:`boolean`,required:!1,description:`Fire automatically on mount.`,default:!1},{name:`colors`,type:`array`,required:!1,description:`Piece colours. Defaults to a vibrant set drawn from the theme palette.`},{name:`count`,type:`number`,required:!1,description:`Number of pieces.`,default:80},{name:`duration`,type:`number`,required:!1,description:`Base animation duration in ms, before speed scales it.`,default:2800},{name:`fadeOut`,type:`boolean`,required:!1,description:`Fade pieces out near the end.`,default:!0},{name:`origin`,type:`object`,fields:[{name:`x`,type:`number`,required:!0,description:`Horizontal origin coordinate.`},{name:`y`,type:`number`,required:!0,description:`Vertical origin coordinate.`}],required:!1,description:`Burst origin for 'pop'. Defaults to the centre of the container.`},{name:`physics`,type:`object`,fields:[{name:`drag`,type:`number`,required:!1,description:`Air resistance. Above 1 makes pieces give up their launch speed sooner.`},{name:`fallSpeed`,type:`number`,required:!1,description:`Steady falling speed once the launch speed is spent.`},{name:`spread`,type:`number`,required:!1,description:`Burst arc in degrees, for 'pop' and 'fireworks'. Ignored by 'rain'.`},{name:`velocity`,type:`number`,required:!1,description:`Launch speed. Above 1 throws pieces further from the origin.`}],required:!1,description:`Tune the preset's motion. Each value multiplies the preset's own.`},{name:`preset`,type:`enum`,enum:[`fireworks`,`pop`,`rain`],required:!1,description:`Which animation to run. 'pop' bursts open from the origin, rises, hangs, then floats down; 'rain' falls from the top edge; 'fireworks' fires several staggered bursts at random points.`,default:`pop`},{name:`recycle`,type:`boolean`,required:!1,description:"Loop continuously until `stop()` is called.",default:!1},{name:`shapes`,type:`array`,required:!1,description:`Which shapes appear. Defaults to a mix chosen per preset. Members: strip, square, circle, triangle, star, streamer.`},{name:`size`,type:`number`,required:!1,description:`Base piece size in px, varied ±40% per piece.`,default:10},{name:`speed`,type:`enum`,enum:[`fast`,`normal`,`slow`],required:!1,description:`Scales duration. Slow is 1.6x, fast is 0.6x.`,default:`normal`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Celebration moments such as an order confirmed or an achievement unlocked.`,`When a decorative burst should overlay the current screen without blocking interaction.`],whenNot:[{text:`An element entering or leaving the screen.`,instead:`AnimatePresence`},{text:`A quiet confirmation without a celebration.`,instead:`Toast`}],do:[{note:`Place Confetti last in the parent so it covers the area, and fire it through a ref or with autoStart.`,example:[{component:`Confetti`,props:{preset:`pop`,count:80,autoStart:!0}}]}],dont:[{note:`Do not rely on Confetti for layout space; it draws an absolute-fill overlay with no pointer events.`,example:[{component:`Confetti`,props:{preset:`pop`,recycle:!0}}]}],a11y:[`The burst is decorative and conveys no information.`,`Under reduced motion the animation stops and onComplete fires immediately.`]}},{name:`DatePicker`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the trigger.`},{name:`clearable`,type:`boolean`,required:!1,description:`Shows a clear button once a value is set.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the trigger field.`},{name:`disabledDates`,type:`array`,required:!1,description:`Single dates that cannot be picked.`},{name:`error`,type:`string`,required:!1,description:`Error message shown below the field; true shows the error state with no message.`},{name:`help`,type:`node`,required:!1,description:`Content drawn beside the label, outside the trigger, such as an info button.`},{name:`helperText`,type:`string`,required:!1,description:`Helper text below the field when used in trigger mode.`},{name:`inline`,type:`boolean`,required:!1,description:`Shows the calendar inline in the page instead of in a sheet.`,default:!1},{name:`label`,type:`string`,required:!1,description:`Field label when used in trigger mode.`},{name:`labels`,type:`object`,required:!1,description:`Override the built-in copy: title, confirm, cancel, dismiss, previousMonth, nextMonth, previousYears, nextYears, previousDecades, nextDecades, switchToYears, switchToDecades, year, decade.`},{name:`leftIcon`,type:`node`,required:!1,description:`Icon slot before the text, such as a calendar.`},{name:`locale`,type:`string`,required:!1,description:`Locale for month and weekday labels.`,default:`en-IN`},{name:`maxDate`,type:`string`,required:!1,description:`The latest date that can be picked.`},{name:`minDate`,type:`string`,required:!1,description:`The earliest date that can be picked.`},{name:`open`,type:`boolean`,required:!1,description:`Opens the calendar sheet when the parent controls it; leave out to use the built-in trigger field.`},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text when used in trigger mode.`},{name:`required`,type:`boolean`,required:!1,description:`Shows a required marker on the trigger label.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Size of the trigger field.`},{name:`title`,type:`string`,required:!1,description:`The heading of the calendar sheet.`,default:`Select Date`},{name:`trailing`,type:`node`,required:!1,description:`Slot at the end of the trigger, a chevron when left out.`},{name:`triggerLabels`,type:`object`,required:!1,description:`Copy for the trigger field: placeholder, selection, noSelection, clear. Separate from labels, which is the copy of the sheet.`},{name:`value`,type:`string`,required:!1,description:`The selected date.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`Visual style of the trigger field.`},{name:`weekStartsOn`,type:`enum`,enum:[0,1,6],required:!1,description:`First day of week, 0 is Sunday.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A modal calendar is needed with bounds and disabled dates.`,`A calendar with locale aware labels is required.`],whenNot:[{text:`A time needs to be picked.`,instead:`TimePicker`},{text:`A start and end date need to be picked.`,instead:`DateRangePicker`},{text:`An always visible month grid is needed.`,instead:`Calendar`}],do:[{note:`Omit the open prop to use trigger mode and let the component manage its own open state.`,example:[{component:`DatePicker`,props:{label:`Date of birth`,placeholder:`Select date`}}]}],dont:[{note:`Do not pass the open prop unless you need to own the open state externally with a custom trigger.`,example:[{component:`DatePicker`,props:{open:!0}}]}],a11y:[`The modal sheet traps focus for screen readers when open.`,`Day cells announce their full date and their selected or disabled states.`,`Under Reduce Motion the sheet fades in and out and day cells do not scale on press.`]}},{name:`DateRangePicker`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the trigger.`},{name:`clearable`,type:`boolean`,required:!1,description:`Shows a clear affordance in the trigger field.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables the trigger field.`},{name:`disabledDates`,type:`array`,required:!1,description:`Specific dates, as ISO 8601 dates, that cannot be picked.`},{name:`error`,type:`string`,required:!1,description:`An error message that replaces the helper text. true shows the error state without a message.`},{name:`help`,type:`node`,required:!1,description:`Content drawn beside the label, outside the trigger, such as an info button.`},{name:`helperText`,type:`string`,required:!1,description:`Helper text shown below the trigger field.`},{name:`label`,type:`string`,required:!1,description:`Label shown above the trigger field.`},{name:`labels`,type:`object`,fields:[{name:`cancel`,type:`string`,required:!1,description:`Label of the cancel button.`,default:`Cancel`},{name:`confirm`,type:`string`,required:!1,description:`Label of the confirm button.`,default:`Confirm`},{name:`dismiss`,type:`string`,required:!1,description:`Screen-reader label of the backdrop that closes the sheet.`,default:`Dismiss`},{name:`title`,type:`string`,required:!1,description:`Heading shown at the top of the sheet.`,default:`Select Date Range`}],required:!1,description:`Copy of the sheet: title, confirm, cancel and dismiss. Unset keys use the defaults.`},{name:`leftIcon`,type:`node`,required:!1,description:`Icon slot before the text, such as a calendar or clock.`},{name:`locale`,type:`string`,required:!1,description:`Locale used to format dates in the grid and the range header.`,default:`en-IN`},{name:`marks`,type:`array`,itemFields:[{name:`date`,type:`string`,required:!0,description:`The day, as an ISO 8601 date.`},{name:`label`,type:`string`,required:!1,description:`What the day is, such as Closed; read aloud with the day.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!0,description:`Dot colour.`}],required:!1,description:`Days drawn on the grid with a dot and a label, such as a closed day or a pending request; see Calendar.`},{name:`maxDate`,type:`string`,required:!1,description:`Selection bound: days after this date cannot be picked, as an ISO 8601 date.`},{name:`maxRange`,type:`number`,required:!1,description:`Cap on the selected range length, in days.`},{name:`minDate`,type:`string`,required:!1,description:`Selection bound: days before this date cannot be picked, as an ISO 8601 date.`},{name:`open`,type:`boolean`,required:!1,description:`Opens the range sheet when the parent controls it; leave out to use the built-in trigger field.`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown in the trigger field when no range is set.`},{name:`required`,type:`boolean`,required:!1,description:`Shows a required marker on the trigger field.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Size of the trigger field.`},{name:`title`,type:`string`,required:!1,description:`Heading shown at the top of the sheet; overrides labels.title.`},{name:`trailing`,type:`node`,required:!1,description:`Slot at the end, a chevron when left out.`},{name:`triggerLabels`,type:`object`,required:!1,description:`Copy for the field (placeholder, selection, noSelection, clear), apart from labels, which is the sheet copy.`},{name:`value`,type:`object`,fields:[{name:`end`,type:`string`,required:!0,description:`End day of the range, as an ISO 8601 date, or null.`},{name:`start`,type:`string`,required:!0,description:`Start day of the range, as an ISO 8601 date, or null.`}],required:!0,description:`The chosen range, from a start day to an end day.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`Visual treatment of the trigger field.`},{name:`weekStartsOn`,type:`enum`,enum:[0,1,6],required:!1,description:`First weekday of the grid: 0 Sunday, 1 Monday, 6 Saturday.`,default:0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Pick a start day and an end day as one range, such as the dates of a stay or a leave request.`,`Confirm a range in one step inside a sheet, with an optional cap on its length.`],whenNot:[{text:`Picking a single day.`,instead:`DatePicker`},{text:`Showing a month grid that stays on screen.`,instead:`Calendar`},{text:`Picking a time of day.`,instead:`TimePicker`}],do:[{note:`Set maxRange when a range has a limit, such as a 14-day leave cap, so a longer pick restarts from the new tap.`,example:[{component:`DateRangePicker`,props:{label:`Leave`,weekStartsOn:1,maxRange:14}}]}],dont:[{note:`Do not use it for one day; a single day belongs in DatePicker.`,example:[{component:`DateRangePicker`,props:{label:`Day`}}]}],a11y:[`Marked days are read aloud with their label, such as Closed.`,`A range longer than maxRange is rejected with a warning haptic, and the selection restarts from the tapped day.`,`The picker opens as a modal sheet that screen readers treat as modal; Cancel, Dismiss or a drag down from the title closes it.`]}},{name:`DateSeparator`,marker:null,acceptsChildren:!1,props:[{name:`date`,type:`string`,required:!1,description:`The day to name.`},{name:`emphasis`,type:`boolean`,required:!1,description:`Draws the text and rules in the brand colour, for an unread divider.`,default:!1},{name:`label`,type:`string`,required:!1,description:`Draws this text instead of a day, e.g. "New messages" above the first unread.`},{name:`labels`,type:`object`,fields:[{name:`today`,type:`string`,required:!1,description:`The label for today, defaulting to Today.`},{name:`yesterday`,type:`string`,required:!1,description:`The label for yesterday, defaulting to Yesterday.`}],required:!1,description:`Custom relative day labels, defaulting to Today and Yesterday.`},{name:`now`,type:`string`,required:!1,description:`The reference for Today and Yesterday.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Separate groups of chat messages by day in a message list.`,`Draw an unread divider line above the first unread message with label and emphasis.`],whenNot:[{text:`A heading above a block of content.`,instead:`SectionHeader`},{text:`Separating days inside MessageList where the list already inserts separators.`,instead:`MessageList day grouping`}],do:[{note:`Pass either date for a day divider or label with emphasis for an unread messages divider.`,example:[{component:`DateSeparator`,props:{date:`2026-10-11T09:00:00Z`}}]}],dont:[{note:`Do not pass both date and label together, because label overrides date.`,example:[{component:`DateSeparator`,props:{date:`2026-10-11T09:00:00Z`,label:`Today`}}]}],a11y:[`The date is plain text, as on the web chat, so a conversation has no heading per day.`,`The centred text element is announced directly to assistive technologies.`]}},{name:`DecimalInput`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the field. When left out, the label is used, or the placeholder when there is no label.`},{name:`action`,type:`object`,fields:[{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses. The button is also disabled whenever the field is.`},{name:`icon`,type:`icon`,required:!1,description:`Icon drawn before the button label.`},{name:`label`,type:`string`,required:!0,description:`The button's text.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the button's spinner and blocks presses.`},{name:`tone`,type:`enum`,enum:[`danger`,`neutral`,`primary`,`secondary`,`success`,`warning`],required:!1,description:`Button tone.`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`link`,`outline`,`soft`,`solid`],required:!1,description:`Button variant.`}],required:!1,description:`A button beside the field box, for a Verify, Apply or Look up action on what was typed.`},{name:`allowExponent`,type:`boolean`,required:!1,description:`Allow exponent notation such as 1e-5.`,default:!1},{name:`decimals`,type:`number`,required:!1,description:`Most fraction digits kept after the point.`},{name:`disabled`,type:`boolean`,required:!1,description:`Dims the field out and blocks editing.`,default:!1},{name:`error`,type:`node`,required:!1,description:`A string or a node puts the field in the error state and replaces the helper; true shows the error state without a message.`},{name:`help`,type:`node`,required:!1,description:`Drawn beside the static label, right after it and centred on its line, such as a glossary info button.`},{name:`helperText`,type:`node`,required:!1,description:`A string or a node, shown below the field when there is no error.`},{name:`label`,type:`node`,required:!1,description:`A string, or a node for a symbol with a subscript. A node label needs an explicit accessibilityLabel.`},{name:`labelMode`,type:`enum`,enum:[`float`,`top`],required:!1,description:`top keeps the static label above the field. float uses a floating label that rises to the top border on focus.`},{name:`leftIcon`,type:`icon`,required:!1,description:`Leading slot: an icon name such as user, a name and variant object, a render function or a node.`},{name:`max`,type:`number`,required:!1,description:`A keystroke or paste that would pass this is refused; a figure already past it can still be edited down.`},{name:`maxLength`,type:`number`,required:!1,description:`Character limit passed to the text input.`},{name:`min`,type:`number`,required:!1,description:`Lower bound, refused the same way as max.`},{name:`multiline`,type:`boolean`,required:!1,description:`React Native's own prop, the same as type textarea.`,default:!1},{name:`placeholder`,type:`string`,required:!1,description:`Placeholder text shown while the field is empty.`},{name:`prefix`,type:`node`,required:!1,description:`Fixed text drawn before the value in the leading slot, such as a currency symbol or a country code.`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius of the field box, a theme radius name, overriding the size's radius.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Selectable and focusable but not editable. Unlike disabled, the field is not dimmed.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`rightIcon`,type:`icon`,required:!1,description:`Trailing slot, same contract as leftIcon.`},{name:`secureTextEntry`,type:`boolean`,required:!1,description:`React Native's own prop: masks the value without the eye toggle.`,default:!1},{name:`showCounter`,type:`boolean`,required:!1,description:`Renders a character counter below the field when maxLength is set. Set false for fields that cap input without advertising it.`,default:!0},{name:`showPasswordToggle`,type:`boolean`,required:!1,description:`Setting this alone also puts the field in password mode, the same as type password.`,default:!1},{name:`signed`,type:`boolean`,required:!1,description:`Allow one leading minus. Numeric keyboard.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Field height, padding and font size.`,default:`md`},{name:`symbol`,type:`node`,required:!1,description:`The quantity's symbol, drawn in the prefix box before the value.`},{name:`type`,type:`enum`,enum:[`input`,`password`,`textarea`],required:!1,description:`One switch for the behaviour set: input for single-line text, password for a masked value with an eye toggle, textarea for multi-line text.`,default:`input`},{name:`unit`,type:`string`,required:!1,description:`A fixed unit drawn after the value in the trailing slot, such as km, % or /month.`},{name:`value`,type:`number`,required:!1,description:`The figure as a number. Null and undefined show an empty field.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The field's look. When left out, the theme's field variant is used, and outlined when the theme sets none.`},{name:`whole`,type:`boolean`,required:!1,description:`Digits only. Number-pad keyboard.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The figure can be empty or half-typed while the person types, such as 12. or a lone minus.`,`The value is a measurement, a tolerance or an amount the person types, not a count changed by steps.`],whenNot:[{text:`The value changes by taps and is never empty or half-typed.`,instead:`NumberInput`},{text:`The field takes free text rather than a figure.`,instead:`Input`}],do:[{note:`Give the figure a label, and a symbol or unit so the number has a meaning.`,example:[{component:`DecimalInput`,props:{label:`Length`,symbol:`L`,unit:`m`,max:500}}]}],dont:[{note:`Do not use it for a stepper quantity. Use NumberInput when the value is changed by steps.`,example:[{component:`DecimalInput`,props:{label:`Quantity`,whole:!0,max:10}}]}],a11y:[`Every figure needs a label. A symbol or unit alone does not name the field.`,`A comma before exactly three digits, such as 2,500, shows the unclearComma label as the field error, which a screen reader announces.`,`readOnly keeps the figure focusable and announced. disabled greys it out and drops it from the focus order.`]}},{name:`Descriptions`,marker:null,acceptsChildren:!1,props:[{name:`bordered`,type:`boolean`,required:!1,description:`Hairlines between rows.`,default:!1},{name:`columns`,type:`enum`,enum:[1,2],required:!1,description:`1 stacks label above value; 2 puts them side by side.`,default:1},{name:`items`,type:`array`,itemFields:[{name:`full`,type:`boolean`,required:!1,description:`Make this row span both columns.`},{name:`key`,type:`string`,required:!1,description:`React key.`},{name:`label`,type:`node`,required:!0,description:`A string renders as text.`},{name:`strong`,type:`boolean`,required:!1,description:`Draw a string value in the semibold weight.`},{name:`tone`,type:`enum`,enum:[`danger`,`disabled`,`info`,`inverse`,`link`,`primary`,`secondary`,`success`,`tertiary`,`textStrong`,`warning`],required:!1,description:`Colour of a string value: a text role, a semantic tone or a raw colour.`},{name:`value`,type:`node`,required:!1,description:"A string, a number or a list of those renders as text in the value's size, weight and colour (`strong`, `tone`)."}],required:!0,description:`The rows.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Row padding + font size.`,default:`md`},{name:`title`,type:`string`,required:!1,description:`Optional heading above the list.`},{name:`variant`,type:`enum`,enum:[`list`,`summary`],required:!1,description:`'list' (default) is the record-detail layout.`,default:`list`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Display read-only labelled facts and record details on a screen.`,`Show a compact summary table of key metrics with right-aligned values.`,`Present structured fields where missing values should read as no value rather than a broken row.`],whenNot:[{text:`The row is interactive or navigates to another screen.`,instead:`ListItem`},{text:`Displaying a single prominent headline metric or KPI.`,instead:`StatTile`}],do:[{note:`Leave missing or empty values undefined so the component renders the standard hyphen.`,example:[{component:`Descriptions`,props:{items:[{label:`Status`,value:`Active`},{label:`Paid on`}]}}]}],dont:[{note:`Do not pass placeholder strings like N/A for missing values.`,example:[{component:`Descriptions`,props:{items:[{label:`Status`,value:`Active`},{label:`Paid on`,value:`N/A`}]}}]}],a11y:[`A missing value renders a plain hyphen so a row is never blank to a screen reader.`,`Labels and textual values are read in natural order by screen readers.`]}},{name:`Dialog`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the alert region label.`},{name:`actions`,type:`array`,itemFields:[{name:`disabled`,type:`boolean`,required:!1,description:`Dims the action and blocks its press (a confirm waiting on a typed phrase, say).`},{name:`label`,type:`string`,required:!0,description:`The text drawn on the action button.`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner and blocks its press.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The color scheme of the action.`}],required:!1,description:`Ordered action buttons.`},{name:`actionsLayout`,type:`enum`,enum:[`auto`,`row`,`stacked`],required:!1,description:`How the actions are laid out: auto stacks them when a label wraps, row never stacks, stacked is a column of full-width buttons.`,default:`auto`},{name:`dismissOnAction`,type:`boolean`,required:!1,description:`Automatically close after an action fires.`,default:!0},{name:`icon`,type:`node`,required:!1,description:`Top icon.`},{name:`message`,type:`string`,required:!1,description:`Body text.`},{name:`open`,type:`boolean`,required:!0,description:`Controls whether the dialog is shown.`},{name:`title`,type:`string`,required:!1,description:`Headline.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic styling: tints the disc and draws its status mark.`,default:`neutral`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`For a confirm, alert or destructive dialog with action buttons.`,`When the user must explicitly choose an action to proceed.`],whenNot:[{text:`For content anchored to the bottom edge.`,instead:`BottomSheet`},{text:`For a menu or a longer form.`,instead:`Drawer`},{text:`For a message that needs no answer.`,instead:`Toast`}],do:[{note:`Use a warning or danger tone for destructive operations.`,example:[{component:`Dialog`,props:{open:!0,title:`Delete account?`,message:`This cannot be undone.`,tone:`danger`}}]}],dont:[{note:`Do not use the neutral tone for destructive operations.`,example:[{component:`Dialog`,props:{open:!0,title:`Delete account?`,message:`This cannot be undone.`}}]}],a11y:[`The dialog sets the alert role and its accessible name defaults to the title.`,`Dismissing the dialog delays action execution until after the native modal has dismissed.`,`You can override the accessible name using the accessibility label prop.`]}},{name:`Divider`,marker:null,acceptsChildren:!1,props:[{name:`color`,type:`string`,required:!1,description:`Line color; the theme border color when left out.`},{name:`inset`,type:`number`,required:!1,description:`Extra offset from the leading edge, to line up with an avatar or icon column.`,default:0},{name:`label`,type:`string`,required:!1,description:`Text drawn inline that splits the line in two; ignored on a vertical line.`},{name:`labelPosition`,type:`enum`,enum:[`center`,`end`,`start`],required:!1,description:`Where the label sits along the line.`,default:`center`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Direction of the line; a vertical line stretches to fill the height of its parent.`,default:`horizontal`},{name:`spacing`,type:`enum`,enum:[`lg`,`md`,`none`,`sm`],required:!1,description:`Margin around the line, vertical for a horizontal line and horizontal for a vertical one.`,default:`none`},{name:`thickness`,type:`number`,required:!1,description:`Line thickness in points.`,default:1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Separate groups of rows in a list or form.`,`Show an OR break between two paths with a short label.`],whenNot:[{text:`Spacing alone separates the content.`,instead:`Use gap or margin, not a line.`},{text:`A section needs a heading.`,instead:`SectionHeader`}],do:[{note:`Keep a label to a word or two.`,example:[{component:`Divider`,props:{label:`OR`}}]}],dont:[{note:`Do not put a sentence in the label; it is cut to one line.`,example:[{component:`Divider`,props:{label:`Or continue with your email address instead`}}]}],a11y:[`The line is decorative and hidden from screen readers, so never rely on it alone to show a grouping.`,`A label is read as plain text, so keep it meaningful.`]}},{name:`Drawer`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Name announced for the drawer panel; Drawer when left out.`},{name:`backdropOpacity`,type:`number`,required:!1,description:`Backdrop opacity from 0 to 1 when the drawer is fully open.`,default:.5},{name:`defaultOpen`,type:`boolean`,required:!1,description:`Initial visibility when the drawer manages its own state.`,default:!1},{name:`enableBackdropPress`,type:`boolean`,required:!1,description:`Allows a tap on the dimmed backdrop to dismiss the drawer.`,default:!0},{name:`enableSwipe`,type:`boolean`,required:!1,description:`Allows dragging the drawer toward its edge to dismiss it.`,default:!0},{name:`open`,type:`boolean`,required:!1,description:`Controlled open state; leave it out to let the drawer manage its own state.`},{name:`side`,type:`enum`,enum:[`bottom`,`left`,`right`,`top`],required:!1,description:`Edge the drawer slides in from.`,default:`left`},{name:`width`,type:`stringOrNumber`,required:!1,description:`Size along the slide axis, in points or as a percent string; 280 for left and right and 40% of the window height for top and bottom when left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A navigation menu or contextual actions that slide over the screen from an edge.`,`A settings or filter panel that keeps the page visible behind a dimmed backdrop.`],whenNot:[{text:`The surface is partial height and driven by its content.`,instead:`BottomSheet`},{text:`A short confirmation or choice.`,instead:`Dialog`}],do:[{note:`Give the drawer a close button at the foot.`,example:[{component:`ListItem`,props:{title:`Profile`,chevron:!0}},{component:`Button`,props:{label:`Close drawer`,variant:`outline`}}]}],dont:[{note:`Do not leave a drawer with no visible way to close it when swipe and backdrop dismissal are off.`,example:[{component:`ListItem`,props:{title:`Profile`,chevron:!0}}]}],a11y:[`The panel is announced with its accessibilityLabel, Drawer when left out, and the backdrop is a Close drawer button.`,`The rest of the screen is hidden from screen readers while the drawer is open.`]}},{name:`EmptyState`,marker:null,acceptsChildren:!1,props:[{name:`action`,type:`object`,fields:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What pressing the button does, spoken after the label.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label, when it differs from the text.`},{name:`label`,type:`string`,required:!0,description:`The button's text.`}],required:!1,description:`The main button under the message, filled in the primary colour.`},{name:`description`,type:`string`,required:!1,description:`Supporting copy under the title.`},{name:`fill`,type:`boolean`,required:!1,description:`Grows to fill the space it is given and centres its content; pass it as the empty component of a list.`,default:!1},{name:`icon`,type:`node`,required:!1,description:`Illustration or icon drawn in a circle above the title.`},{name:`secondaryAction`,type:`object`,fields:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What pressing the button does, spoken after the label.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label, when it differs from the text.`},{name:`label`,type:`string`,required:!0,description:`The button's text.`}],required:!1,description:`A second, quieter button beside the main one.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Icon size, type scale and vertical padding.`,default:`md`},{name:`title`,type:`string`,required:!0,description:`Headline message.`},{name:`variant`,type:`enum`,enum:[`block`,`inline`],required:!1,description:`Block is the centred block with room around it. Inline is one quiet centred caption line with the title only.`,default:`block`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A list, search or screen has no data yet and needs a clear next step.`,`A load failed and the screen shows a message with a retry action.`],whenNot:[{text:`Data is still loading.`,instead:`Skeleton`},{text:`A short passing message about an action.`,instead:`Toast`}],do:[{note:`Say what is missing and what to do about it.`,example:[{component:`EmptyState`,props:{title:`No orders yet`,description:`When you place an order it will show up here.`}}]}],dont:[{note:`Do not leave a bare title with no explanation.`,example:[{component:`EmptyState`,props:{title:`Empty`}}]}],a11y:[`Announced as a summary region, so write the title and description as plain sentences.`,`Put the meaning in the title and description, not in the icon.`]}},{name:`FilePicker`,marker:null,acceptsChildren:!1,props:[{name:`accept`,type:`array`,required:!1,description:`Accepted mime types, such as image/* or application/pdf; every type is accepted when left out.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the generated Attachments label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks picking and removing files and dims the trigger.`,default:!1},{name:`error`,type:`node`,required:!1,description:`External error shown under the field; it wins over validation errors.`},{name:`helperText`,type:`string`,required:!1,description:`Hint under the trigger, such as the file limits.`},{name:`maxFiles`,type:`number`,required:!1,description:`Most files that can be attached.`},{name:`maxSizeMB`,type:`number`,required:!1,description:`Largest size of one file in megabytes; bigger picks are rejected with an error.`},{name:`variant`,type:`enum`,enum:[`card`,`list`],required:!1,description:`card shows a dashed upload tile and a strip of thumbnails; list shows one row per file.`,default:`card`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A form needs photos or documents attached, with limits on count, size and type.`,`An edit screen shows files already uploaded beside new picks.`],whenNot:[{text:`The file only needs to be viewed.`,instead:`FileViewer`},{text:`The person picks one value from a short list.`,instead:`Select`}],do:[{note:`Show the limits in the helper text so a rejection is no surprise.`,example:[{component:`FilePicker`,props:{maxFiles:4,helperText:`Up to 4 files, max 100MB each.`}}]}],dont:[{note:`Do not set limits without telling the person.`,example:[{component:`FilePicker`,props:{maxFiles:4}}]}],a11y:[`The picker is announced as a button named Attachments with the file count; set accessibilityLabel to name the field.`,`Remove and retry controls carry their own labels.`]}},{name:`FileViewer`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Spoken name for the viewer.`},{name:`kind`,type:`enum`,enum:[`auto`,`image`,`pdf`],required:!1,description:`Whether the file is drawn as a PDF or as one zoomable picture. Auto reads the file name.`,default:`auto`},{name:`maxZoom`,type:`number`,required:!1,description:`Upper bound on pinch zoom, as a multiple of the page fitting the width.`,default:4},{name:`zoomEnabled`,type:`boolean`,required:!1,description:`Allows pinch, double tap zoom and panning while zoomed; off also resets any zoom.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Showing a PDF or a single picture inside the app, from a link or a saved file.`],whenNot:[{text:`The document is not a PDF.`,instead:`Open it with the system viewer.`},{text:`The files are a set of pictures to swipe through.`,instead:`ImageGallery`}],do:[{note:`Leave zoom on so small print stays readable.`,example:[{component:`FileViewer`,props:{}}]}],dont:[{note:`Do not turn zoom off for a dense document.`,example:[{component:`FileViewer`,props:{zoomEnabled:!1}}]}],a11y:[`Give the viewer an accessibilityLabel that names the document; without one it is not announced as a labelled element.`]}},{name:`FilterChipRow`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the radiogroup for screen readers, e.g. "Filter by status".`},{name:`bleed`,type:`number`,required:!1,description:`The page gutter in points.`,default:0},{name:`items`,type:`array`,itemFields:[{name:`count`,type:`stringOrNumber`,required:!1,description:`Shown after the label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Disables this chip only.`},{name:`key`,type:`string`,required:!0,description:`Stable id of the chip.`},{name:`label`,type:`string`,required:!0,description:`The text on the chip.`},{name:`testID`,type:`string`,required:!1,description:`A test selector put on this chip's pressable.`}],required:!0,description:`The chips to show in the row.`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`Size scale.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Semantic color.`},{name:`value`,type:`string`,required:!0,description:`Key of the selected item.`},{name:`variant`,type:`enum`,enum:[`outline`,`soft`,`solid`],required:!1,description:`Visual style.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A scrolling horizontal row of single-choice filter chips above a list.`],whenNot:[{text:`To switch between entirely different views or tabs of a screen.`,instead:`Tabs`}],do:[{note:`Provide a unique key for each item and pass the currently selected key to value.`,example:[{component:`FilterChipRow`,props:{items:[{key:`active`,label:`Active`},{key:`inactive`,label:`Inactive`}],value:`active`}}]},{note:`Use the count field on an item to show the number of results for that filter.`,example:[{component:`FilterChipRow`,props:{items:[{key:`draft`,label:`Drafts`,count:2},{key:`published`,label:`Published`,count:15}],value:`draft`}}]}],dont:[{note:`Do not leave value empty; one item should always be selected by default.`,example:[{component:`FilterChipRow`,props:{items:[{key:`active`,label:`Active`},{key:`inactive`,label:`Inactive`}],value:``}}]},{note:`Do not put the count in the label string; use the count field so it is styled correctly.`,example:[{component:`FilterChipRow`,props:{items:[{key:`draft`,label:`Drafts (2)`},{key:`published`,label:`Published (15)`}],value:`draft`}}]}],a11y:[`Announces as a radiogroup of radios.`,`Use accessibilityLabel to name the group for screen readers.`]}},{name:`FloatingActionButton`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the button is pressed, read after its name by a screen reader.`},{name:`accessibilityLabel`,type:`string`,required:!0,description:`The name a screen reader reads for the button.`},{name:`bottomOffset`,type:`number`,required:!1,description:`The gap above the bottom edge, in points, before the safe area inset is added.`},{name:`collapsed`,type:`boolean`,required:!1,description:`Folds an extended button to its round icon, with the label fading out, and has no effect without a label.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the button.`,default:!1},{name:`hideOnScroll`,type:`boolean`,required:!1,description:`Slides the button off the bottom edge while isScrolling is true.`,default:!1},{name:`icon`,type:`icon`,required:!0,description:`The icon drawn in the button, sized by the button's size.`},{name:`isScrolling`,type:`boolean`,required:!1,description:`Whether the list behind the button is scrolling right now; wire it to your scroll handler.`,default:!1},{name:`label`,type:`string`,required:!1,description:`Text beside the icon; makes the button extended, a pill.`},{name:`loading`,type:`boolean`,required:!1,description:`Replaces the icon with a spinner and ignores presses, for an action already in flight.`,default:!1},{name:`position`,type:`enum`,enum:[`bottomCenter`,`bottomLeft`,`bottomRight`],required:!1,description:`The corner or edge of the screen the button is pinned to; leave it unset to place the button yourself.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The diameter of the round button.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour family of the button.`,default:`primary`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A screen has one main action that a person repeats often, such as adding an item.`,`The action has to stay reachable while the list behind it scrolls.`],whenNot:[{text:`The action is a confirmation or a submit inside a form or dialog.`,instead:`Button`}],do:[{note:`Use one button per screen for its main action, with a label that says what happens.`,example:[{component:`FloatingActionButton`,props:{label:`New item`,accessibilityLabel:`New item`}}]},{note:`Fold an extended button with collapsed while the list scrolls, so it covers fewer rows.`,example:[{component:`FloatingActionButton`,props:{label:`New item`,accessibilityLabel:`New item`,collapsed:!0}}]}],dont:[{note:`Do not put two buttons on one screen; the second competes with the first for attention.`,example:[{component:`FloatingActionButton`,props:{label:`New item`,accessibilityLabel:`New item`}},{component:`FloatingActionButton`,props:{label:`Import`,accessibilityLabel:`Import items`}}]},{note:`Do not set collapsed on a button with no label, because there is nothing to fold.`,example:[{component:`FloatingActionButton`,props:{accessibilityLabel:`New item`,collapsed:!0}}]}],a11y:[`The accessibility label names the button for a screen reader; set it to the action, not to the icon.`,`A collapsed button keeps its label as the accessible name, so a screen reader still hears what it does.`]}},{name:`FloatingActionButtonGroup`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The name a screen reader reads for the primary button.`,default:`Quick actions`},{name:`bottomOffset`,type:`number`,required:!1,description:`The gap above the bottom edge, in points, before the safe area inset is added.`},{name:`defaultExpanded`,type:`boolean`,required:!1,description:`Whether the group starts expanded when it is not controlled by expanded.`,default:!1},{name:`expanded`,type:`boolean`,required:!1,description:`Whether the actions are expanded. Set it to control the group; leave it unset to let the group track its own state.`},{name:`hideOnScroll`,type:`boolean`,required:!1,description:`Slides the whole group off the bottom edge while isScrolling is true, and closes it first.`,default:!1},{name:`isScrolling`,type:`boolean`,required:!1,description:`Whether the list behind the group is scrolling right now; wire it to your scroll handler.`,default:!1},{name:`position`,type:`enum`,enum:[`bottomCenter`,`bottomLeft`,`bottomRight`],required:!1,description:`The corner or edge of the screen the group is pinned to.`,default:`bottomRight`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The diameter of the primary button and of the action buttons.`,default:`md`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A screen has one main task that offers two to six related actions, such as creating an item of several kinds.`,`The actions have to stay reachable while the list behind them scrolls.`],whenNot:[{text:`The screen has one action only; a single button does the job.`,instead:`FloatingActionButton`},{text:`The choices belong to a field or a row, not to the screen.`,instead:`Menu`}],do:[{note:`Pin the group to a corner, where a thumb reaches it, and name it for what its actions create.`,example:[{component:`FloatingActionButtonGroup`,props:{accessibilityLabel:`Create`,position:`bottomRight`}}]},{note:`Set hideOnScroll so the group slides away while the list behind it scrolls.`,example:[{component:`FloatingActionButtonGroup`,props:{accessibilityLabel:`Create`,hideOnScroll:!0}}]}],dont:[{note:`Do not centre the group at the bottom of the screen, where it covers the buttons there.`,example:[{component:`FloatingActionButtonGroup`,props:{accessibilityLabel:`Create`,position:`bottomCenter`}}]},{note:`Do not leave hideOnScroll off on a long list, because the group then covers the rows as they scroll.`,example:[{component:`FloatingActionButtonGroup`,props:{accessibilityLabel:`Create`,hideOnScroll:!1}}]}],a11y:[`The accessibility label names the group for a screen reader, so set it to what the actions create, not to an icon.`,`The primary button announces whether the group is expanded, and each action reads its own accessibility label.`]}},{name:`ForceUpdateDialog`,marker:null,acceptsChildren:!1,props:[{name:`mandatory`,type:`boolean`,required:!1,description:`Hides the Later action and ignores backdrop and Back dismissal; use it for updates that must not be skipped.`,default:!1},{name:`message`,type:`string`,required:!1,description:`Dialog message.`,default:`A new version of the app is available. Please update to continue using the latest features and security improvements.`},{name:`open`,type:`boolean`,required:!0,description:`Whether the dialog is open.`},{name:`title`,type:`string`,required:!1,description:`Dialog title.`,default:`Update available`},{name:`updateFallbackUrl`,type:`string`,required:!1,description:`Address shown as a tappable link when the store cannot be opened; nothing extra shows when left out.`},{name:`updateUrl`,type:`string`,required:!1,description:`Address the Update action opens; the platform store when left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The installed version is too old and the person must move to the store version.`,`A newer version is out and the app offers it with a Later choice.`],whenNot:[{text:`A passing notice about something new.`,instead:`Banner`},{text:`Any other confirmation.`,instead:`Dialog`}],do:[{note:`Mark the update mandatory only when the old version cannot keep working.`,example:[{component:`ForceUpdateDialog`,props:{open:!0,mandatory:!0}}]}],dont:[{note:`Do not make an ordinary update mandatory; the person cannot dismiss it.`,example:[{component:`ForceUpdateDialog`,props:{open:!0,mandatory:!0,message:`A small colour tweak is available.`}}]}],a11y:[`Shown as a modal dialog: focus stays inside until it is dismissed, and a mandatory one cannot be dismissed.`,`Keep the message short and say why the update is needed.`]}},{name:`FormField`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Overrides the spoken label built from the label and the error.`},{name:`error`,type:`node`,required:!1,description:`Error message in the error color; it hides the helper text and marks the field invalid.`},{name:`help`,type:`node`,required:!1,description:`Drawn right after the label, such as an info button; not part of the label's spoken text.`},{name:`helperLines`,type:`number`,required:!1,description:`Lines the helper text and error may take before an ellipsis; no limit when left out or 0.`},{name:`helperText`,type:`node`,required:!1,description:`Hint under the input; hidden while an error shows.`},{name:`label`,type:`node`,required:!1,description:`Field label above the input, or left of it in the inline layout; a node label needs accessibilityLabel.`},{name:`layout`,type:`enum`,enum:[`inline`,`stacked`],required:!1,description:`stacked puts the label above the input; inline puts it on the left.`,default:`stacked`},{name:`required`,type:`boolean`,required:!1,description:`Adds the required marker after the label.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Wrap one input with a label, a helper or an error so every field in a form is laid out the same way.`,`Any input type: Input, Select, Switch or a date picker.`],whenNot:[{text:`The control already draws its own label and error.`,instead:`Use the control on its own.`},{text:`The form is wired with react-hook-form.`,instead:`HookFormField`}],do:[{note:`Say what to fix in the error, and keep the hint for what to enter.`,example:[{component:`FormField`,props:{label:`Email`,error:`Enter a valid email address.`},children:[{component:`Input`,props:{placeholder:`you@example.com`}}]}]}],dont:[{note:`Do not repeat the label as the placeholder.`,example:[{component:`FormField`,props:{label:`Email`},children:[{component:`Input`,props:{placeholder:`Email`}}]}]}],a11y:[`The field is announced as the label plus the error when one shows; a node label needs accessibilityLabel.`,`The error is read out when it appears, through a live region.`]}},{name:`HomeIndicator`,marker:`AppHomeIndicator`,acceptsChildren:!1,props:[{name:`os`,type:`enum`,enum:[`Ios`,`Android`],required:!0},{name:`colorMode`,type:`enum`,enum:[`light`,`dark`],required:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`},{name:`IconBadge`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Announces the badge as an image to screen readers; without it the badge is decorative.`},{name:`color`,type:`string`,required:!1,description:`A colour of your own for the fill tint and the icon; it wins over the tone.`},{name:`dimension`,type:`number`,required:!1,description:`The width and height of the circle in points; it wins over the size.`},{name:`fill`,type:`enum`,enum:[`halo`,`surface`,`tint`],required:!1,description:`The fill: a low tint, a stronger halo tint, or the surface colour as a seal.`,default:`tint`},{name:`icon`,type:`icon`,required:!0,description:`The icon to draw inside the badge.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The Iconsax style for the icon when given as a name.`,default:`linear`},{name:`pointerEvents`,type:`enum`,enum:[`auto`,`box-none`,`box-only`,`none`],required:!1,description:`Passed to the root view; "none" lets touches reach what sits under the badge.`},{name:`shape`,type:`enum`,enum:[`circle`,`squircle`],required:!1,description:`The outline: a full circle, or a smooth-cornered squircle drawn the same on both platforms.`,default:`circle`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the badge circle and its icon.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the tinted background and the icon.`,default:`primary`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Draw an icon on a circular surface tinted with the same colour.`],whenNot:[{text:`Providing a tappable icon action.`,instead:`Use IconButton.`}],do:[{note:`Give a standalone badge an accessibility label when it carries meaning.`,example:[{component:`IconBadge`,props:{icon:`user`,accessibilityLabel:`User profile`}}]},{note:`Use the danger tone to highlight an error or a critical warning.`,example:[{component:`IconBadge`,props:{icon:`alert-circle`,tone:`danger`,accessibilityLabel:`Error`}}]}],dont:[{note:`Do not leave a meaningful badge silent for screen readers.`,example:[{component:`IconBadge`,props:{icon:`user`}}]},{note:`Do not use the danger tone for a standard status or an informational icon.`,example:[{component:`IconBadge`,props:{icon:`user`,tone:`danger`,accessibilityLabel:`User profile`}}]}],a11y:[`A decorative badge is hidden from screen readers; set accessibilityLabel when it carries meaning.`,`Colour is never the only signal; pair a coloured badge with text.`]}},{name:`IconButton`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`Read after the name, never drawn: what the press does, for a control whose name alone is not enough.`},{name:`accessibilityLabel`,type:`string`,required:!0,description:`The accessible name of the button, required for an icon-only control.`},{name:`accessibilityState`,type:`object`,required:!1,description:`Accessibility state beyond the ones IconButton sets. Selected from here does not fill the button; only active does. The button's own disabled state wins over a caller's.`},{name:`active`,type:`boolean`,required:!1,description:`Draws the button filled regardless of the variant, as for an active nav tile.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the button.`,default:!1},{name:`icon`,type:`icon`,required:!0,description:`The icon the button draws, given by name or as an element.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The Iconsax style for the icon when it is given by name.`,default:`linear`},{name:`loading`,type:`boolean`,required:!1,description:`Replaces the icon with a spinner and disables the button.`,default:!1},{name:`shape`,type:`enum`,enum:[`circle`,`rounded`],required:!1,description:`The outline of the button.`,default:`circle`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The diameter of the button and the size of its icon.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour family of the button.`,default:`primary`},{name:`variant`,type:`enum`,enum:[`ghost`,`glass`,`outline`,`soft`,`solid`],required:!1,description:`The visual weight of the button, from a solid fill to no fill.`,default:`solid`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A single icon action that needs a clear touch target, such as a back or close control.`,`A navigation tile that is selected and should render filled.`],whenNot:[{text:`A button with a text label.`,instead:`Button`},{text:`A decorative icon with no action.`,instead:`AppIcon`},{text:`A floating action button over the main content.`,instead:`FloatingActionButton`}],do:[{note:`Always set an accessibility label so screen readers can announce the action.`,example:[{component:`IconButton`,props:{accessibilityLabel:`Close dialog`}}]},{note:`Use the outline variant for a quiet action beside stronger controls.`,example:[{component:`IconButton`,props:{accessibilityLabel:`Copy`,variant:`outline`,tone:`neutral`}}]}],dont:[{note:`Do not omit the accessibility label; an icon-only button is invisible to screen readers without it.`,example:[{component:`IconButton`,props:{variant:`solid`}}]},{note:`Do not use the danger tone for a standard destructive action without confirmation.`,example:[{component:`IconButton`,props:{accessibilityLabel:`Delete`,tone:`danger`}}]}],a11y:[`The accessibility label is the spoken name; without it the button has no accessible name.`,`The button announces itself as disabled when disabled or loading, with a disabled state.`,`The active state is exposed as selected for screen readers.`]}},{name:`IdleTimeoutDialog`,marker:null,acceptsChildren:!1,props:[{name:`open`,type:`boolean`,required:!0,description:`Shows the warning. True while the idle timer is in its warning phase.`},{name:`remainingMs`,type:`number`,required:!0,description:`Time left before sign-out, in milliseconds. Drawn as minutes and seconds.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A session is about to end for lack of activity and the person must choose to stay signed in or sign out.`],whenNot:[{text:`A message that needs no answer.`,instead:`Toast`}],do:[],dont:[],a11y:[`The dialog sets the alert role and its title is its accessible name.`,`The hardware back button does not answer the warning; only Stay signed in or Sign out does.`]}},{name:`ImageGallery`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the gallery for a screen reader.`},{name:`enableLightbox`,type:`boolean`,required:!1,description:`Opens a full screen view when the person taps a photo.`,default:!0},{name:`enablePinchZoom`,type:`boolean`,required:!1,description:`Lets the person pinch and double tap to zoom into a photo in the full screen view.`,default:!0},{name:`images`,type:`array`,required:!0,description:`The photos in order. Each entry holds a source, and may hold a caption and alt text.`},{name:`initialIndex`,type:`number`,required:!1,description:`The photo shown first, counted from 0.`,default:0},{name:`loading`,type:`boolean`,required:!1,description:`Draws the placeholder shape instead of the photos while data loads.`,default:!1},{name:`showCounter`,type:`boolean`,required:!1,description:`Draws a counter such as 2 / 5 over the photo.`,default:!0},{name:`showThumbnails`,type:`boolean`,required:!1,description:`Draws a strip of small thumbnails under the photo.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A short set of photos belongs together and the person looks through them in one place.`,`The person may need to zoom into a photo to see its detail.`],whenNot:[{text:`The items are slides of a banner or promotion that rotate on their own.`,instead:`Carousel`}],do:[{note:`Give each photo a caption so the person knows what it shows.`,example:[{component:`ImageGallery`,props:{images:[{source:{uri:`https://picsum.photos/seed/sunset/800/600`},caption:`Sunset`},{source:{uri:`https://picsum.photos/seed/coast/800/600`},caption:`Coast`}]}}]},{note:`Keep the full screen view on so the person can open each photo at full size.`,example:[{component:`ImageGallery`,props:{images:[{source:{uri:`https://picsum.photos/seed/harbor/800/600`},caption:`Harbor`},{source:{uri:`https://picsum.photos/seed/meadow/800/600`},caption:`Meadow`}],enableLightbox:!0}}]}],dont:[{note:`Do not leave out captions. Photos with no caption give the person no context.`,example:[{component:`ImageGallery`,props:{images:[{source:{uri:`https://picsum.photos/seed/sunset/800/600`}},{source:{uri:`https://picsum.photos/seed/coast/800/600`}}]}}]},{note:`Do not turn off the full screen view for photos the person must inspect. They cannot open them at full size.`,example:[{component:`ImageGallery`,props:{images:[{source:{uri:`https://picsum.photos/seed/harbor/800/600`},caption:`Harbor`},{source:{uri:`https://picsum.photos/seed/meadow/800/600`},caption:`Meadow`}],enableLightbox:!1}}]}],a11y:[`Set accessibilityLabel to name the gallery for a screen reader.`,`Each photo is announced by its alt text, or by its position in the set when it has no alt text.`]}},{name:`InlineSelect`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken name of the trigger for screen readers.`},{name:`chevronColor`,type:`string`,required:!1,description:`Color override for the chevron glyph.`},{name:`chevronSize`,type:`number`,required:!1,description:`Chevron size in pixels, falling back to the icon size of the chosen field size.`},{name:`color`,type:`string`,required:!1,description:`Color for the trigger text and chevron, falling back to the primary brand color.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks opening the sheet and dims the trigger.`,default:!1},{name:`label`,type:`string`,required:!1,description:`A label drawn above the trigger like a field label.`},{name:`options`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A supporting description line under the label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks selection of this option.`},{name:`icon`,type:`icon`,required:!1,description:`An icon drawn beside the option.`},{name:`label`,type:`string`,required:!0,description:`The text shown for the option.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value the option stands for.`}],required:!0,description:`The options to pick from, each with a label, a value and an optional icon, description or disabled flag.`},{name:`placeholder`,type:`string`,required:!1,description:`Trigger text shown when nothing is selected.`,default:`Select`},{name:`searchable`,type:`boolean`,required:!1,description:`Shows a search box above the option list in the sheet.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Density of the trigger text and chevron, matching the host field.`,default:`md`},{name:`title`,type:`string`,required:!1,description:`Heading shown at the top of the options bottom sheet.`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The selected option value.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A compact dropdown trigger inside a field prefix or suffix slot.`,`A borderless picker trigger in a toolbar or list header.`],whenNot:[{text:`The choice needs a full standalone field with its own border or multi selection.`,instead:`Select`}],do:[{note:`Provide a title so the sheet heading and spoken name describe the choice.`,example:[{component:`InlineSelect`,props:{options:[{label:`GBP`,value:`GBP`},{label:`USD`,value:`USD`}],value:`GBP`,title:`Currency`}}]},{note:`Turn on search when the list of options is long.`,example:[{component:`InlineSelect`,props:{options:[{label:`Bengaluru`,value:`blr`},{label:`Chennai`,value:`maa`},{label:`Berlin`,value:`ber`}],title:`City`,searchable:!0}}]}],dont:[{note:`Do not leave the trigger with no title or label to describe the choice.`,example:[{component:`InlineSelect`,props:{options:[{label:`GBP`,value:`GBP`},{label:`USD`,value:`USD`}],value:`GBP`}}]},{note:`Do not leave search off when the list of options is long.`,example:[{component:`InlineSelect`,props:{options:[{label:`Bengaluru`,value:`blr`},{label:`Chennai`,value:`maa`},{label:`Berlin`,value:`ber`}],title:`City`,searchable:!1}}]}],a11y:[`The trigger announces as a button with its label, selected value and expanded state.`,`Set title, label or accessibilityLabel so the trigger has a descriptive name for screen readers.`]}},{name:`Input`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the field. Without it the label text is used.`},{name:`autoCapitalize`,type:`enum`,enum:[`characters`,`none`,`sentences`,`words`],required:!1,description:`Which letters the keyboard capitalises automatically.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks editing and dims the field.`,default:!1},{name:`editable`,type:`boolean`,required:!1,description:`Whether the field accepts editing.`},{name:`error`,type:`node`,required:!1,description:`An error message that puts the field in the error state and replaces the helper text.`},{name:`help`,type:`node`,required:!1,description:`An info control drawn beside the static label. It is not part of the label's accessibility text.`},{name:`helperText`,type:`node`,required:!1,description:`Help text shown under the field.`},{name:`keyboardType`,type:`enum`,enum:[`decimal-pad`,`default`,`email-address`,`number-pad`,`numbers-and-punctuation`,`numeric`,`phone-pad`,`url`,`visible-password`],required:!1,description:`The keyboard layout shown while the field is focused.`},{name:`label`,type:`node`,required:!1,description:`The field label. A node label needs an explicit accessibilityLabel.`},{name:`labelMode`,type:`enum`,enum:[`float`,`top`],required:!1,description:`Where the label sits: permanently above the field, or floating inside it until focus.`,default:`top`},{name:`maxLength`,type:`number`,required:!1,description:`The most characters the field accepts.`},{name:`multiline`,type:`boolean`,required:!1,description:`Lets the value span several lines, the same as the textarea type.`,default:!1},{name:`placeholder`,type:`string`,required:!1,description:`Hint text shown while the field is empty.`},{name:`prefix`,type:`node`,required:!1,description:`Fixed text drawn before the value, such as a currency symbol or a country code.`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius of the field box, a theme radius name, overriding the size's radius.`},{name:`readOnly`,type:`boolean`,required:!1,description:`Shows the value in normal ink and lets it be selected and copied, but not edited.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`,default:!1},{name:`returnKeyType`,type:`enum`,enum:[`default`,`done`,`emergency-call`,`go`,`google`,`join`,`next`,`none`,`previous`,`route`,`search`,`send`,`yahoo`],required:!1,description:`The label of the return key on the keyboard.`},{name:`secureTextEntry`,type:`boolean`,required:!1,description:`Masks the value without the eye toggle. The password type is the usual way to mask a field.`,default:!1},{name:`showCounter`,type:`boolean`,required:!1,description:`Shows the character count under the field when maxLength is set.`,default:!0},{name:`showPasswordToggle`,type:`boolean`,required:!1,description:`Adds the show and hide eye toggle to a masked field.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The field height and text size.`,default:`md`},{name:`type`,type:`enum`,enum:[`input`,`password`,`textarea`],required:!1,description:`The kind of field: single-line text, a masked password with an eye toggle, or a multi-line textarea.`,default:`input`},{name:`unit`,type:`string`,required:!1,description:`Fixed text drawn after the value, such as km or %.`},{name:`value`,type:`string`,required:!1,description:`The controlled text value.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The look of the field box.`,default:`outline`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The value is free text or a secret that the person types, such as a name, an email address or a password.`,`The field needs a visible label, an error message or a character limit.`],whenNot:[{text:`The value is a count or quantity that needs plus and minus buttons.`,instead:`NumberInput`}],do:[{note:`Give the field a visible label with label, so its name stays on screen once the person starts typing.`,example:[{component:`Input`,props:{label:`Email`,placeholder:`name@example.com`,keyboardType:`email-address`}}]},{note:`Set type to password for a secret: the value is masked and autocorrect and auto-capitalisation are turned off.`,example:[{component:`Input`,props:{label:`Password`,type:`password`}}]}],dont:[{note:`A placeholder alone disappears on the first key press, so the field loses its name.`,example:[{component:`Input`,props:{placeholder:`name@example.com`,keyboardType:`email-address`}}]},{note:`A plain text type shows a secret in clear text.`,example:[{component:`Input`,props:{label:`Password`,type:`input`}}]}],a11y:[`The field takes its screen reader name from accessibilityLabel, or from the label text when that is a string, and reads its error or helper text with it.`,`A password field keeps its value masked and names its eye toggle Show password or Hide password.`]}},{name:`KeyboardFrame`,marker:`AppKeyboardFrame`,acceptsChildren:!0,props:[{name:`colorMode`,type:`enum`,enum:[`light`,`dark`],required:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`},{name:`KeyboardToolbar`,marker:null,acceptsChildren:!1,props:[{name:`leading`,type:`node`,required:!1,description:`Custom content rendered between the nav chevrons and the Done button.`},{name:`showNavigation`,type:`boolean`,required:!1,description:`Show the prev/next chevrons.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Help users navigate between text inputs and easily dismiss the keyboard.`],whenNot:[{text:`The user is navigating between full screens.`,instead:`Use BottomNavigation.`}],do:[{note:`Use a clear and short label to dismiss the keyboard.`,example:[{component:`KeyboardToolbar`,props:{showNavigation:!0}}]},{note:`Hide the navigation chevrons when the screen has only one text input.`,example:[{component:`KeyboardToolbar`,props:{showNavigation:!1}}]}],dont:[{note:`Do not use a long phrase for the done label.`,example:[{component:`KeyboardToolbar`,props:{showNavigation:!0}}]},{note:`Do not show navigation chevrons when there are no other text inputs.`,example:[{component:`KeyboardToolbar`,props:{showNavigation:!0}}]}],a11y:[`The navigation chevrons have accessibility labels describing their action.`]}},{name:`ListItem`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the control is used, read after its name.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the row for a screen reader.`},{name:`checked`,type:`boolean`,required:!1,description:`The checked state, used only with selectable.`,default:!1},{name:`chevron`,type:`boolean`,required:!1,description:`A trailing chevron that indicates navigation.`,default:!1},{name:`description`,type:`string`,required:!1,description:`A short line of text under the subtitle.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the row.`,default:!1},{name:`divider`,type:`boolean`,required:!1,description:`A bottom hairline drawn under the row.`,default:!1},{name:`expanded`,type:`boolean`,required:!1,description:`Open or closed state of a row that shows or hides content below it, announced to screen readers. Leave it unset on a row that discloses nothing.`},{name:`icon`,type:`icon`,required:!1,description:`A leading icon in a tinted circle, when leading is not given.`},{name:`iconTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the icon circle.`,default:`primary`},{name:`leading`,type:`node`,required:!1,description:`A node in the leading slot; wins over icon when both are set.`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the skeleton placeholder instead of the content.`,default:!1},{name:`rightPlacement`,type:`enum`,enum:[`auto`,`below`,`side`],required:!1,description:`Where the trailing slot sits relative to the text column.`,default:`auto`},{name:`selectable`,type:`boolean`,required:!1,description:`Selection mode: the row becomes a checkbox and presses toggle it.`,default:!1},{name:`selected`,type:`boolean`,required:!1,description:`Highlights the row with the selected surface colour.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The row size, which sets padding and font scale.`,default:`md`},{name:`subtitle`,type:`node`,required:!1,description:`Subtitle text or any node drawn under the title.`},{name:`subtitleLines`,type:`number`,required:!1,description:`Lines a text subtitle may take before it is truncated; 0 for no limit.`,default:1},{name:`title`,type:`node`,required:!0,description:`The row title text, or any node drawn as is.`},{name:`titleLines`,type:`number`,required:!1,description:`Lines a text title may take before it is truncated; 0 for no limit.`,default:1},{name:`trailing`,type:`node`,required:!1,description:`A node drawn in the trailing slot, beside or below the text.`},{name:`variant`,type:`enum`,enum:[`list`,`menu`],required:!1,description:`The row look: list, or menu for a popup menu row (48 pt high, no press scale, announced as a menu item).`,default:`list`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A single row in a list that has a title, an optional subtitle and an optional trailing indicator.`,`The row may be selectable, pressable or swipeable, or show a leading icon.`],whenNot:[{text:`The content is a grouped card with a header, footer or image.`,instead:`Card`},{text:`The content is just a plain label or divider between sections.`,instead:`Text`}],do:[{note:`Keep the title short and give it a subtitle when the row needs identification.`,example:[{component:`ListItem`,props:{title:`Profile`,subtitle:`Account settings`}}]},{note:`Use the selectable mode with a subtitle for multi-choice lists.`,example:[{component:`ListItem`,props:{title:`Use dark mode`,subtitle:`Applies across the app`,selectable:!0,checked:!1}}]}],dont:[{note:`Do not put a sentence in the title; it overflows on a narrow phone.`,example:[{component:`ListItem`,props:{title:`This is a very long sentence that tries to describe everything about this item at once`}}]},{note:`Do not set both leading and icon; leading wins and hides the icon.`,example:[{component:`ListItem`,props:{title:`Profile`,leading:{component:`Text`,children:`X`},icon:`user`}}]}],a11y:[`A selectable row announces its checked state through the checkbox role.`,`Set accessibilityLabel on a navigation row so the screen reader names its destination.`]}},{name:`ListSection`,marker:null,acceptsChildren:!0,props:[{name:`action`,type:`object`,fields:[{name:`label`,type:`string`,required:!0,description:`The link text.`},{name:`testID`,type:`string`,required:!1,description:`A test selector on the link.`}],required:!1,description:`A link on the heading row, such as See all. It shows only when the section has a title.`},{name:`footer`,type:`string`,required:!1,description:`A muted caption drawn below the card.`},{name:`title`,type:`string`,required:!1,description:`The heading above the card, drawn in the caps heading style.`},{name:`variant`,type:`enum`,enum:[`elevated`,`filled`,`flat`,`outline`],required:!1,description:`The surface style of the card the rows sit on.`,default:`outline`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Several related rows form one group, such as account links or settings toggles.`,`The group needs a heading, a link on its heading or a caption under it.`],whenNot:[{text:`A single row with no group around it.`,instead:`ListItem`},{text:`Free content in a surface, not a list of rows.`,instead:`Card`}],do:[{note:`Pass ListItem rows as children; the dividers between them are drawn for you.`,example:[{component:`ListSection`,props:{title:`Account`},children:[{component:`ListItem`,props:{title:`Profile`,chevron:!0}},{component:`ListItem`,props:{title:`Security`,chevron:!0}}]}]}],dont:[{note:`Do not set divider on the rows; ListSection already draws the lines between them.`,example:[{component:`ListSection`,children:[{component:`ListItem`,props:{title:`Profile`,divider:!0}}]}]}],a11y:[`The title is exposed to screen readers as a header.`,`Each row keeps its own name and role from ListItem.`]}},{name:`LoaderOverlay`,marker:null,acceptsChildren:!1,props:[{name:`backdropColor`,type:`string`,required:!1,description:`The overlay dim colour; the themed scrim colour when left out.`},{name:`minVisibleMs`,type:`number`,required:!1,description:`Minimum milliseconds the overlay stays once shown, so it never flickers.`,default:400},{name:`showDelayMs`,type:`number`,required:!1,description:`Milliseconds to wait before the overlay appears, so a fast request never flashes it.`,default:150}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Block the whole screen while a request the user started is in flight, such as a save or a submit.`,`Stop a second tap during a short request that must finish before the user moves on.`],whenNot:[{text:`A wait inside one card or section while the rest of the screen stays usable.`,instead:`Spinner`}],do:[{note:`Keep the default delay so a fast request never flashes the overlay.`,example:[{component:`LoaderOverlay`,props:{showDelayMs:150}}]},{note:`Place it as the last child of the screen so it covers the whole page.`,example:[{component:`Screen`,props:{title:`Orders`},children:[{component:`LoaderOverlay`,props:{}}]}]}],dont:[{note:`Do not set the delay to 0; every quick request then flashes the overlay.`,example:[{component:`LoaderOverlay`,props:{showDelayMs:0}}]},{note:`Do not place it inside a card; the overlay then covers only that card.`,example:[{component:`Card`,props:{title:`Orders`},children:[{component:`LoaderOverlay`,props:{}}]}]}],a11y:[`While it is visible it blocks touches and announces its message, so pass a message that says what is loading.`,`The Android back key does nothing while it is visible, so a save cannot be left half done.`]}},{name:`Markdown`,marker:null,acceptsChildren:!0,props:[{name:`headings`,type:`enum`,enum:[`outline`,`text`],required:!1,description:`outline sizes each heading by its level; text draws every heading as bold body text.`,default:`outline`},{name:`links`,type:`enum`,enum:[`app`,`page`,`web`],required:!1,description:`web makes web and contact addresses pressable; app makes the links resolveLink maps pressable; page asks resolveLink about every address and opens only relative addresses and addresses on the site's own origin.`,default:`web`},{name:`loading`,type:`boolean`,required:!1,description:`Shows the skeleton placeholder shape instead of the text while data loads.`,default:!1},{name:`selectable`,type:`boolean`,required:!1,description:`Makes every text block selectable so a person can select and copy it.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Display formatted read-only text such as release notes, announcements or help guides.`,`Render headings, bullet lists, inline code and links authored in markdown.`],whenNot:[{text:`Text that people can edit or compose.`,instead:`RichTextEditor`}],do:[{note:`Use markdown syntax to format headings, lists and emphasis.`,example:[{component:`Markdown`,props:{},children:[`### Updates
11
11
 
12
12
  - Improved sync
13
13
  - Dark mode support`]}]},{note:`Write descriptive link text that explains where the destination leads.`,example:[{component:`Markdown`,props:{},children:[`Read the [documentation](https://example.com) for setup instructions.`]}]}],dont:[{note:`Do not use HTML tags because the parser renders them as plain text.`,example:[{component:`Markdown`,props:{},children:[`<h3>Updates</h3><ul><li>Improved sync</li><li>Dark mode support</li></ul>`]}]},{note:`Do not paste bare URLs without descriptive link text.`,example:[{component:`Markdown`,props:{},children:[`Read the setup instructions at https://example.com directly.`]}]}],a11y:[`Headings and links use the appropriate accessibility roles so screen reader users can navigate by landmark.`,`Write descriptive link text so the purpose of each link is clear when read out of context.`]}},{name:`Menu`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Accessible name of the menu when there is no title.`},{name:`items`,type:`array`,required:!0,description:`A flat list, or a list of up to three groups split by dividers.`},{name:`open`,type:`boolean`,required:!1,description:`Controlled open state.`},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`top`],required:!1,description:`Preferred side of the trigger; flips when the other side has the room.`,default:`bottom`},{name:`presentation`,type:`enum`,enum:[`auto`,`popover`,`sheet`],required:!1,description:`A sheet on a phone past seven items or with a description.`,default:`auto`},{name:`title`,type:`string`,required:!1,description:`A short heading over the items; also the menu's accessible name.`},{name:`topActions`,type:`array`,required:!1,description:`Up to three icon actions in a row above the list.`},{name:`unavailable`,type:`enum`,enum:[`disable`,`hide`],required:!1,description:`Unavailable items stay visible, dimmed and focusable.`,default:`disable`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person selects an action from a list anchored to a button.`,`The choices are actions to take, not a single value to select.`],whenNot:[{text:`The person is selecting a value for a form field.`,instead:`Select`}],do:[{note:`Keep the menu list short and group related actions.`,example:[{component:`Menu`,props:{open:!0,items:[[{key:`copy`,label:`Copy`},{key:`share`,label:`Share`}],[{key:`rename`,label:`Rename`},{key:`move`,label:`Move`}],[{key:`delete`,label:`Delete`,destructive:!0}]]}}]},{note:`Use a title when the trigger does not clearly describe the menu's purpose.`,example:[{component:`Menu`,props:{open:!0,title:`File actions`,items:[{key:`rename`,label:`Rename`},{key:`move`,label:`Move`}]}}]}],dont:[{note:`A menu with a long flat list of items makes the person search visually for their choice.`,example:[{component:`Menu`,props:{open:!0,items:[{key:`copy`,label:`Copy`},{key:`share`,label:`Share`},{key:`rename`,label:`Rename`},{key:`move`,label:`Move`},{key:`delete`,label:`Delete`,destructive:!0}]}}]},{note:`A menu with no title when anchored to an ambiguous icon leaves the context unclear.`,example:[{component:`Menu`,props:{open:!0,items:[{key:`rename`,label:`Rename`},{key:`move`,label:`Move`}]}}]}],a11y:[`The menu manages focus natively and traps it while open.`,`Screen readers announce the menu's title when it opens.`]}},{name:`MessageBubble`,marker:null,acceptsChildren:!0,props:[{name:`actions`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The action's visible name.`},{name:`name`,type:`string`,required:!0,description:`A stable id for the action, such as copy.`}],required:!1,description:`Long-press actions, also offered to screen readers as accessibility actions.`},{name:`author`,type:`string`,required:!1,description:`The author shown above the first message of a run from the other side.`},{name:`error`,type:`string`,required:!1,description:`A curated message shown under the bubble.`},{name:`footer`,type:`node`,required:!1,description:`Content under the bubble on the same side, such as action cards or a rating.`},{name:`groupPosition`,type:`enum`,enum:[`first`,`last`,`middle`,`single`],required:!1,description:`Where the message sits in a run from one author. Joined corners go small and the author and time show only on the run's edges.`,default:`single`},{name:`markdown`,type:`boolean`,required:!1,description:`Draws the text as Markdown. Defaults to on for theirs and off for mine; an error draws plain text. Ignored when the bubble has children.`},{name:`replyTo`,type:`object`,fields:[{name:`author`,type:`string`,required:!1,description:`The author of the quoted message.`},{name:`text`,type:`string`,required:!0,description:`The quoted text.`}],required:!1,description:`The message this one answers, drawn as a quote at the top of the bubble.`},{name:`side`,type:`enum`,enum:[`mine`,`theirs`],required:!0,description:`Which side the bubble sits on: mine on the trailing side, theirs on the leading side.`},{name:`status`,type:`enum`,enum:[`delivered`,`failed`,`read`,`sending`,`sent`],required:!1,description:`The delivery ticks under a message of your own, read as a word.`},{name:`streaming`,type:`boolean`,required:!1,description:`The reply is still arriving, so the bubble is marked busy.`,default:!1},{name:`text`,type:`string`,required:!0,description:`The message as plain text, drawn when the bubble has no children and read by screen readers.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A chat or assistant thread needs one message drawn with its author, time and delivery state.`,`Consecutive messages from one author should join into a run with shared corners.`],whenNot:[{text:`The content is a standalone notice outside a conversation.`,instead:`Banner`},{text:`A short confirmation that disappears by itself.`,instead:`Toast`}],do:[{note:`Give every message a plain text, even when it holds rich content, so a screen reader can read it.`,example:[{component:`MessageBubble`,props:{side:`theirs`,author:`Alex`,text:`Can you send the site photos?`}}]},{note:`Show a curated error under a failed message, written for the person.`,example:[{component:`MessageBubble`,props:{side:`mine`,text:`See you tomorrow.`,status:`failed`,error:`Not sent. Check your connection.`}}]}],dont:[{note:`An empty text leaves the message with no spoken name.`,example:[{component:`MessageBubble`,props:{side:`theirs`,text:``}}]},{note:`A raw error code tells the person nothing they can act on.`,example:[{component:`MessageBubble`,props:{side:`mine`,text:`See you tomorrow.`,status:`failed`,error:`ERR_503`}}]}],a11y:[`A bubble without rich children reads as one element: author, time, text, reply quote and the delivery word, with its long-press actions offered as accessibility actions.`,`A streaming reply is marked busy and announced once when it finishes, and an error is announced at once.`]}},{name:`MessageList`,marker:null,acceptsChildren:!1,props:[{name:`empty`,type:`node`,required:!1,description:`Drawn while there are no messages.`},{name:`firstUnreadKey`,type:`string`,required:!1,description:`The key of the message that gets the New messages divider above it.`},{name:`hasOlder`,type:`boolean`,required:!1,description:`False once the oldest page is in, so the list stops asking for more.`,default:!0},{name:`keyboardAware`,type:`boolean`,required:!1,description:`Lifts the newest messages above the keyboard. Turn it off when a parent already moves with the keyboard.`,default:!0},{name:`keyboardOffset`,type:`number`,required:!1,description:`The composer's keyboard offset in points. Without it the bottom safe-area inset is used.`},{name:`loadingOlder`,type:`boolean`,required:!1,description:`Shows a spinner under the oldest message while an earlier page loads.`,default:!1},{name:`messages`,type:`array`,required:!0,description:`The messages, newest first, the order the list draws from the bottom up.`},{name:`typing`,type:`node`,required:!1,description:`Drawn under the newest message, such as a typing indicator.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A conversation should start at the newest message and load older pages at the top.`,`Day separators, an unread divider and runs from one author are wanted without extra code.`],whenNot:[{text:`The list is not a conversation and reads top to bottom.`,instead:`a plain list of ListItem rows`},{text:`There are only a few static messages.`,instead:`MessageBubble in a column`}],do:[{note:`Say in the empty area what the person can do next.`,example:[{component:`MessageList`,props:{messages:[],empty:`No messages yet. Say hello.`}}]},{note:`Keep keyboardAware on so the newest message stays above the keyboard.`,example:[{component:`MessageList`,props:{messages:[],keyboardAware:!0}}]}],dont:[{note:`A blank empty area leaves the person unsure whether the list is still loading.`,example:[{component:`MessageList`,props:{messages:[],empty:``}}]},{note:`Turning keyboardAware off on a screen that does not move with the keyboard hides the newest message.`,example:[{component:`MessageList`,props:{messages:[],keyboardAware:!1}}]}],a11y:[`Each new message is announced politely through the app's getAnnouncement text, one announcement per arriving message.`,`The jump to latest button names itself and adds the count of messages that arrived while the person was scrolled away.`]}},{name:`Modal`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The name a screen reader gives the dialog.`},{name:`align`,type:`enum`,enum:[`center`,`end`,`start`],required:!1,description:`How the surface lines up against its anchor. Applies only to the anchored presentation.`,default:`center`},{name:`animateMount`,type:`boolean`,required:!1,description:`Plays the enter animation when the modal is open as it mounts. Off, it is drawn at rest at once.`,default:!0},{name:`animationDuration`,type:`number`,required:!1,description:`The enter animation length in milliseconds. Without it the theme's normal duration is used.`},{name:`backdropOpacity`,type:`number`,required:!1,description:`Overrides the opacity of the dimmed backdrop for this modal.`},{name:`backdropPressClose`,type:`boolean`,required:!1,description:`Whether tapping the dimmed backdrop closes the modal.`,default:!0},{name:`bare`,type:`boolean`,required:!1,description:`Draws no card around the content, the children are the card. For a sheet or surface that draws its own.`,default:!1},{name:`hardwareBackPress`,type:`boolean`,required:!1,description:`Whether the Android back button closes the modal.`,default:!0},{name:`open`,type:`boolean`,required:!0,description:`Whether the modal is open. The parent owns it.`},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`top`],required:!1,description:`Which side of its anchor the surface opens on. Applies only to the anchored presentation.`,default:`auto`},{name:`presentation`,type:`enum`,enum:[`bottom`,`centered`,`fullScreen`],required:!1,description:`How the dialog is laid out: a centred card, a sheet anchored to the bottom, or a full screen takeover.`,default:`centered`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A dialog, confirmation or sheet must sit above the current screen.`,`A full screen takeover such as onboarding or a media viewer is needed.`],whenNot:[{text:`The choice is a list of options.`,instead:`OptionSheet`},{text:`A brief message needs no action.`,instead:`Toast`}],do:[{note:`Name the dialog with an accessibilityLabel so a screen reader announces what opened.`,example:[{component:`Modal`,props:{open:!0,accessibilityLabel:`Delete project`},children:`Delete this project?`}]},{note:`Use the bottom presentation for an action menu.`,example:[{component:`Modal`,props:{open:!0,presentation:`bottom`},children:`Choose an action`}]}],dont:[{note:`A dialog with no label opens in silence for a screen reader.`,example:[{component:`Modal`,props:{open:!0},children:`Delete this project?`}]},{note:`A full screen takeover for a one-line confirmation hides the page for no reason.`,example:[{component:`Modal`,props:{open:!0,presentation:`fullScreen`},children:`Delete this project?`}]}],a11y:[`The dialog is marked as a modal view with an alert role and takes its name from accessibilityLabel.`,`The Android back button closes it unless hardwareBackPress is off, and a screen reader can reach a Close modal button.`]}},{name:`NavigationBar`,marker:`AppNavigationBar`,acceptsChildren:!1,props:[{name:`os`,type:`enum`,enum:[`Ios`,`Android`],required:!0},{name:`colorMode`,type:`enum`,enum:[`light`,`dark`],required:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`},{name:`NonModalBottomSheet`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the sheet for a screen reader.`},{name:`enablePanDownToClose`,type:`boolean`,required:!1,description:`Lets a downward drag on the handle past the threshold close the sheet.`,default:!0},{name:`footer`,type:`node`,required:!1,description:`A fixed region at the bottom of the sheet, such as a row of buttons.`},{name:`header`,type:`node`,required:!1,description:`A fixed region between the handle and the content. It does not scroll.`},{name:`labels`,type:`object`,fields:[{name:`dragHandle`,type:`string`,required:!1,description:`Names the drag handle for a screen reader.`}],required:!1,description:`Spoken labels for the sheet's own controls.`},{name:`open`,type:`boolean`,required:!0,description:`Whether the sheet is open. A drag close calls onClose; the parent sets this to false.`},{name:`scrollable`,type:`boolean`,required:!1,description:`Wraps the content in a vertical scroll view between the header and the footer.`,default:!1},{name:`snapIndex`,type:`number`,required:!1,description:`The snap point the sheet rests at, counted from 0 for the smallest.`},{name:`snapPoints`,type:`array`,required:!0,description:`The heights the sheet rests at: a height in dp, or a percentage such as 50%. Sorted ascending.`},{name:`title`,type:`string`,required:!1,description:`A heading drawn above the header, read as a heading by a screen reader.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A map or live view must stay usable while a short list or detail is open beside it.`],whenNot:[{text:`The person must answer a question before going on.`,instead:`Dialog`},{text:`The content is a full screen of its own.`,instead:`a new screen`}],do:[],dont:[],a11y:[`The drag handle is an adjustable: swipe up or down to change the height, and the screen behind stays reachable.`,`The sheet has no scrim, so it does not block the screen behind it or Back.`]}},{name:`NumberInput`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The input's screen reader name. Without it the label text is used.`},{name:`allowDecimal`,type:`boolean`,required:!1,description:`Accepts a decimal point and shows the decimal keyboard.`,default:!1},{name:`defaultValue`,type:`number`,required:!1,description:`The starting value when the field is not controlled. Without it the minimum, or 0, is used.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks typing and stepping and dims the field.`,default:!1},{name:`error`,type:`node`,required:!1,description:`An error message that puts the field in the error state and replaces the helper text.`},{name:`help`,type:`node`,required:!1,description:`Drawn right after the label, such as an info button. It is not part of the label's accessibility text.`},{name:`helperText`,type:`node`,required:!1,description:`Help shown under the field.`},{name:`label`,type:`node`,required:!1,description:`The field label. A node label needs an explicit accessibilityLabel.`},{name:`max`,type:`number`,required:!1,description:`The upper bound that typed and stepped values clamp to. Without it there is no upper bound.`},{name:`min`,type:`number`,required:!1,description:`The lower bound that typed and stepped values clamp to. Without it there is no lower bound.`},{name:`precision`,type:`number`,required:!1,description:`The number of decimal places kept when decimals are allowed.`,default:0},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The field height, stepper size and text size.`,default:`md`},{name:`step`,type:`number`,required:!1,description:`How much one tap on a stepper button adds or removes.`,default:1},{name:`unit`,type:`string`,required:!1,description:`A suffix shown after the value, such as kg.`},{name:`value`,type:`number`,required:!1,description:`The controlled value.`},{name:`variant`,type:`enum`,enum:[`horizontal`,`inline`],required:!1,description:`How the label sits relative to the field.`,default:`inline`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The value is a count, quantity or measurement that benefits from plus and minus buttons.`,`The value has bounds that the field should enforce.`],whenNot:[{text:`The value is a long figure typed on a number keyboard.`,instead:`DecimalInput`},{text:`The value is a fixed-length code.`,instead:`OTPInput`}],do:[{note:`Set min and max so the stepper stops at real limits.`,example:[{component:`NumberInput`,props:{value:5,label:`Quantity`,min:1,max:10}}]},{note:`Write the unit in the unit prop so it stays beside the value.`,example:[{component:`NumberInput`,props:{value:5,label:`Weight`,unit:`kg`}}]}],dont:[{note:`No bounds let the person step to a value the page cannot use.`,example:[{component:`NumberInput`,props:{value:5,label:`Quantity`}}]},{note:`A unit written into the label is easy to miss next to the value.`,example:[{component:`NumberInput`,props:{value:5,label:`Weight in kg`}}]}],a11y:[`The input is an adjustable element with the label as its name and the current value, and stepper buttons report their disabled state.`,`A node label needs an explicit accessibilityLabel, since a node has no text for the screen reader name.`]}},{name:`OTPInput`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the field. Without it a Enter N-digit code line is used.`},{name:`autoFocus`,type:`boolean`,required:!1,description:`Focuses the first cell when the field appears.`,default:!1},{name:`autoFocusDelay`,type:`number`,required:!1,description:`Milliseconds to wait before the first cell takes focus. Raise it on a screen pushed with a transition.`,default:0},{name:`defaultValue`,type:`string`,required:!1,description:`The starting code when the field is not controlled.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks input and dims every cell.`,default:!1},{name:`error`,type:`node`,required:!1,description:`An error message shown under the cells that puts them in the error state.`},{name:`keyboardType`,type:`enum`,enum:[`default`,`number-pad`],required:!1,description:`Digits only, or any character for an alphanumeric code.`,default:`number-pad`},{name:`length`,type:`number`,required:!1,description:`The number of cells.`,default:6},{name:`secure`,type:`boolean`,required:!1,description:`Masks each filled cell.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The cell size and text size.`,default:`md`},{name:`value`,type:`string`,required:!1,description:`The controlled code.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person enters a fixed-length one-time code or PIN.`,`The code arrives by SMS and should fill in from the keyboard suggestion.`],whenNot:[{text:`The value is free text of any length.`,instead:`Input`},{text:`The value is a count or quantity.`,instead:`NumberInput`}],do:[{note:`Match length to the code you send.`,example:[{component:`OTPInput`,props:{length:6}}]},{note:`Say what is wrong in the error message.`,example:[{component:`OTPInput`,props:{value:`123456`,length:6,error:`That code is not right. Try again.`}}]}],dont:[{note:`A length that differs from the code leaves the person with cells they cannot fill.`,example:[{component:`OTPInput`,props:{length:8}}]},{note:`An error with no message shows red cells but not what to do.`,example:[{component:`OTPInput`,props:{value:`123456`,length:6,error:``}}]}],a11y:[`The whole field is one element named by accessibilityLabel, or Enter N-digit code, and it reports the typed code as its value and its disabled state.`,`The first cell carries the one-time code content type so the keyboard can offer the SMS code.`]}},{name:`OTPResendRow`,marker:null,acceptsChildren:!1,props:[{name:`expirySecondsLeft`,type:`number`,required:!1,description:`Seconds until the sent code expires. Leave it out when the code has no expiry to show.`},{name:`resendSecondsLeft`,type:`number`,required:!0,description:`Seconds until a new code may be asked for. At 0 the resend button is enabled.`},{name:`resending`,type:`boolean`,required:!1,description:`Shows the resend button busy while a new code is being sent.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Under a one-time code field, to show when the code expires and when a new one may be sent.`],whenNot:[{text:`The person types the code.`,instead:`OTPInput`}],do:[{note:`Place it directly under the code field it belongs to.`,example:[{component:`OTPResendRow`,props:{resendSecondsLeft:25,expirySecondsLeft:240}}]}],dont:[{note:`Leaving the expiry out when the code does expire hides the deadline from the person.`,example:[{component:`OTPResendRow`,props:{resendSecondsLeft:25}}]}],a11y:[`While the resend button waits, its spoken name says how many seconds remain.`]}},{name:`OnboardingPager`,marker:null,acceptsChildren:!1,props:[{name:`pages`,type:`array`,itemFields:[{name:`art`,type:`node`,required:!1,description:`The picture above the text.`},{name:`body`,type:`string`,required:!0,description:`The line under the heading.`},{name:`key`,type:`string`,required:!0,description:`A stable identity for the page.`},{name:`title`,type:`string`,required:!0,description:`The page heading.`}],required:!0,description:`The intro pages. Three or four work best and only the first six are shown.`},{name:`safeArea`,type:`boolean`,required:!1,description:`Pads the top and bottom by the device safe area. Turn it off inside a screen that already does.`,default:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A first launch needs a short intro before sign in.`,`Each page makes one point with a picture, a heading and a line of text.`],whenNot:[{text:`The steps collect information from the person.`,instead:`a form flow`},{text:`A feature needs a one-off explanation in context.`,instead:`Tour`}],do:[{note:`Keep to three or four pages, each with one clear heading.`,example:[{component:`OnboardingPager`,props:{pages:[{key:`a`,title:`Everything in one place`,body:`All your work, together.`},{key:`b`,title:`Work from anywhere`,body:`Pick up on any device.`}],safeArea:!1}}]},{note:`Name the final button for what happens next.`,example:[{component:`OnboardingPager`,props:{pages:[{key:`a`,title:`Everything in one place`,body:`All your work, together.`}],safeArea:!1}}]}],dont:[{note:`A page with no heading gives the screen reader nothing to announce.`,example:[{component:`OnboardingPager`,props:{pages:[{key:`a`,title:``,body:`All your work, together.`}],safeArea:!1}}]},{note:`A vague final label does not say what happens next.`,example:[{component:`OnboardingPager`,props:{pages:[{key:`a`,title:`Everything in one place`,body:`All your work, together.`}],safeArea:!1}}]}],a11y:[`Each page reads as one element: its step, title and body, such as Step 2 of 3.`,`The page control is one adjustable element, so a swipe up or down changes page, and pressing Next announces the new step and title.`]}},{name:`OptionSheet`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the sheet. Without it the title, then Options, is used.`},{name:`alphabetIndex`,type:`boolean`,required:!1,description:`Shows a rail of letters that jumps the list to the first option starting with that letter.`,default:!1},{name:`multi`,type:`boolean`,required:!1,description:`Shows checkboxes and a Done footer instead of the selected dot.`,default:!1},{name:`open`,type:`boolean`,required:!0,description:`Whether the sheet is shown. The caller owns it.`},{name:`options`,type:`array`,required:!0,description:"The options to list, each with a label, a value and optionally a description, an icon and a disabled flag. A row may carry an `onPress` action: it runs on tap, the sheet closes and `onChange` does not fire for that row."},{name:`searchSelectionColor`,type:`string`,required:!1,description:`The caret and selection colour of the search box. Without it the focus border colour is used.`},{name:`searchable`,type:`boolean`,required:!1,description:`Shows a search box above the list.`,default:!1},{name:`sections`,type:`array`,itemFields:[{name:`options`,type:`array`,required:!0,description:`The options in the group.`},{name:`title`,type:`string`,required:!0,description:`The group header.`}],required:!1,description:`Groups the options under a header row each instead of listing them flat.`},{name:`title`,type:`string`,required:!1,description:`The sheet heading, also the screen reader name when there is no accessibilityLabel.`},{name:`value`,type:`string`,required:!1,description:`The selected value, or the selected values in multi mode. Those rows are marked selected.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person picks from a list of options in a sheet that slides up from the bottom.`,`The list is long enough to need search or a letter rail.`],whenNot:[{text:`There are only two or three choices.`,instead:`SegmentedControl`},{text:`The choice sits in a form field.`,instead:`Select`}],do:[{note:`Give the sheet a title that says what is being chosen.`,example:[{component:`OptionSheet`,props:{open:!0,title:`Pick a city`,options:[{label:`Alpha`,value:`alpha`}]}}]},{note:`Turn on search when the list is long.`,example:[{component:`OptionSheet`,props:{open:!0,title:`Pick a city`,options:[{label:`Alpha`,value:`alpha`}],searchable:!0}}]}],dont:[{note:`A sheet with no title leaves the person unsure what the list is for.`,example:[{component:`OptionSheet`,props:{open:!0,options:[{label:`Alpha`,value:`alpha`}]}}]},{note:`A long list with no search makes the person scroll for every choice.`,example:[{component:`OptionSheet`,props:{open:!0,title:`Pick a city`,options:[{label:`Alpha`,value:`alpha`}],searchable:!1}}]}],a11y:[`Each option is a button that reports its selected and disabled state, and a section header is a header.`,`The sheet is a modal view named by accessibilityLabel, then the title, and its backdrop and Done footer are reachable as buttons.`]}},{name:`OutboxEntryList`,marker:null,acceptsChildren:!1,props:[{name:`entries`,type:`array`,required:!0,description:`The entries to draw, oldest first; at most the outbox's per-owner cap (50).`},{name:`error`,type:`object`,required:!1,description:`A failed read or action, drawn above the rows.`},{name:`labels`,type:`object`,required:!1,description:`Replaces any built-in text; give only the keys you change.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show saves that are waiting for a connection or that the server refused, above the list they belong to.`],whenNot:[{text:`Showing that the phone is offline`,instead:`Use NetworkStatusBanner.`}],do:[],dont:[],a11y:[`Each row's buttons carry their own label; the error line is announced politely.`]}},{name:`PagedList`,marker:null,acceptsChildren:!1,props:[{name:`errorTitle`,type:`string`,required:!1,description:`Title of the error placeholder when the first page fails to load.`},{name:`progressViewOffset`,type:`number`,required:!1,description:`Moves the pull-to-refresh spinner down, so it shows below a header drawn over the list.`},{name:`refreshing`,type:`boolean`,required:!1,description:`Shows the pull-to-refresh spinner for rows given as data.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A paged list outside the screen shell: in a tab, a sheet or a pane.`],whenNot:[{text:`The list is the whole screen.`,instead:`NavigationScreen list`}],do:[],dont:[],a11y:[`The loading spinner is announced with the loading label, and a failed page with its retry button.`]}},{name:`PagedListFooter`,marker:null,acceptsChildren:!1,props:[],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A list shows a footer at its end while the next page loads, or a retry when that page fails.`],whenNot:[{text:`The first page of a list is loading.`,instead:`SkeletonList`}],do:[],dont:[],a11y:[`The loading spinner is announced with the loading label.`,`A failed page is announced as a polite live region, and its retry button has a text label.`]}},{name:`PermissionPrompt`,marker:null,acceptsChildren:!1,props:[{name:`icon`,type:`icon`,required:!1,description:`An icon drawn in a tinted disc above the title.`},{name:`kind`,type:`enum`,enum:[`bluetooth`,`calendar`,`camera`,`contacts`,`location`,`locationAlways`,`mediaLibrary`,`microphone`,`notifications`,`photos`,`photosAdd`,`reminders`,`storage`],required:!0,description:`The permission being asked for.`},{name:`reason`,type:`string`,required:!0,description:`One sentence on what the app does with the access, ending in a full stop.`},{name:`title`,type:`string`,required:!0,description:`What the feature is. A screen reader reads it first.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The app needs a permission and should explain why before the system prompt.`,`A refusal should leave an inline state with another way to do the job.`],whenNot:[{text:`The permission is already granted and nothing needs explaining.`,instead:`the feature itself`},{text:`The message is a general notice, not about a permission.`,instead:`Banner`}],do:[{note:`Name the feature in the title and say what the access is used for in one sentence.`,example:[{component:`PermissionPrompt`,props:{kind:`camera`,title:`Scan a receipt`,reason:`The camera reads the receipt so you do not have to type the amount.`}}]},{note:`Say plainly what is not done with the data.`,example:[{component:`PermissionPrompt`,props:{kind:`location`,title:`Find branches near you`,reason:`Your location sorts the branch list by distance. It is not stored.`}}]}],dont:[{note:`A reason that only repeats the permission name does not explain anything.`,example:[{component:`PermissionPrompt`,props:{kind:`camera`,title:`Camera`,reason:`We need camera access.`}}]},{note:`A reason that is silent about storage leaves the person guessing.`,example:[{component:`PermissionPrompt`,props:{kind:`location`,title:`Location`,reason:`We need your location.`}}]}],a11y:[`The title is a heading read first, and the reason or the unavailable message sits under it.`,`When a refusal swaps the explanation for the unavailable message, the new message is announced.`]}},{name:`PhoneNumberInput`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the number field.`},{name:`countries`,type:`array`,itemFields:[{name:`code`,type:`string`,required:!0,description:`Dial prefix without the plus.`},{name:`iso`,type:`string`,required:!0,description:`ISO 3166-1 alpha-2 country code.`},{name:`label`,type:`string`,required:!0,description:`Country name shown in the picker.`}],required:!1,description:`The countries the picker lists, every country by default.`},{name:`countryAccessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the country button.`},{name:`countryLocked`,type:`boolean`,required:!1,description:`Keeps the country fixed, with the picker closed and the chevron hidden.`,default:!1},{name:`defaultCountry`,type:`enum`,enum:`AC.AD.AE.AF.AG.AI.AL.AM.AO.AR.AS.AT.AU.AW.AX.AZ.BA.BB.BD.BE.BF.BG.BH.BI.BJ.BL.BM.BN.BO.BQ.BR.BS.BT.BW.BY.BZ.CA.CC.CD.CF.CG.CH.CI.CK.CL.CM.CN.CO.CR.CU.CV.CW.CX.CY.CZ.DE.DJ.DK.DM.DO.DZ.EC.EE.EG.EH.ER.ES.ET.FI.FJ.FK.FM.FO.FR.GA.GB.GD.GE.GF.GG.GH.GI.GL.GM.GN.GP.GQ.GR.GT.GU.GW.GY.HK.HN.HR.HT.HU.ID.IE.IL.IM.IN.IO.IQ.IR.IS.IT.JE.JM.JO.JP.KE.KG.KH.KI.KM.KN.KP.KR.KW.KY.KZ.LA.LB.LC.LI.LK.LR.LS.LT.LU.LV.LY.MA.MC.MD.ME.MF.MG.MH.MK.ML.MM.MN.MO.MP.MQ.MR.MS.MT.MU.MV.MW.MX.MY.MZ.NA.NC.NE.NF.NG.NI.NL.NO.NP.NR.NU.NZ.OM.PA.PE.PF.PG.PH.PK.PL.PM.PR.PS.PT.PW.PY.QA.RE.RO.RS.RU.RW.SA.SB.SC.SD.SE.SG.SH.SI.SJ.SK.SL.SM.SN.SO.SR.SS.ST.SV.SX.SY.SZ.TA.TC.TD.TG.TH.TJ.TK.TL.TM.TN.TO.TR.TT.TV.TW.TZ.UA.UG.US.UY.UZ.VA.VC.VE.VG.VI.VN.VU.WF.WS.XK.YE.YT.ZA.ZM.ZW`.split(`.`),required:!1,description:`The country to start on, an ISO 3166-1 alpha-2 code such as DE. Without it the region of the configured locale is used.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks typing and the country picker.`,default:!1},{name:`e164`,type:`string`,required:!1,description:`The controlled value as one E.164 string such as +14155550123.`},{name:`error`,type:`node`,required:!1,description:`The error text under the field; it replaces the built-in invalid number message.`},{name:`formatAsYouType`,type:`boolean`,required:!1,description:`Groups the digits the way the country writes them while typing.`,default:!0},{name:`helperText`,type:`string`,required:!1,description:`Text under the field.`},{name:`hiddenCountries`,type:`array`,required:!1,description:`ISO codes left out of the picker.`},{name:`label`,type:`string`,required:!1,description:`The field label.`},{name:`labelMode`,type:`enum`,enum:[`float`,`top`],required:!1,description:`Whether the label sits above the box or floats up from inside it.`,default:`top`},{name:`maxLength`,type:`number`,required:!1,description:`A hard stop on national digits, below the country's own limit.`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown while no number is typed.`,default:`Phone number`},{name:`popularCountries`,type:`array`,required:!1,description:`ISO codes listed first under their own heading (labels.popular), with the full list below (labels.allCountries).`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`none`,`pill`,`sm`,`xl`],required:!1,description:`Corner radius token from the theme for this field. Default is the field size's radius.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`},{name:`showAlphabetIndex`,type:`boolean`,required:!1,description:`Shows an A to Z rail down the picker; on by default once the list has more than 20 entries.`},{name:`showFlag`,type:`boolean`,required:!1,description:`Shows the country flag before the dial code and in the picker rows.`,default:!0},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The field size.`,default:`md`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The field look; the theme setting decides when it is left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Ask for a phone number where the country matters, such as sign in, OTP or contact details.`,`Use it wherever the number is stored as country code plus national number.`],whenNot:[{text:`A number the app never validates or dials, such as a free text note.`,instead:`Input`}],do:[{note:`Give the field a visible label so people know which number is wanted.`,example:[{component:`PhoneNumberInput`,props:{label:`Mobile number`}}]}],dont:[{note:`Do not leave the field without a label or helper text.`,example:[{component:`PhoneNumberInput`,props:{placeholder:`Phone number`}}]}],a11y:[`The country button announces the current dial code; set countryAccessibilityLabel when the app is not in English.`,`Keep error text short and say how to fix the number.`]}},{name:`PickerTrigger`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the trigger.`},{name:`clearable`,type:`boolean`,required:!1,description:`Shows a clear button when value is not empty.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the field.`,default:!1},{name:`error`,type:`node`,required:!1,description:`The error text under the field; true shows the error state with no message.`},{name:`help`,type:`node`,required:!1,description:`Content drawn beside the label, outside the trigger, such as an info button.`},{name:`helperText`,type:`node`,required:!1,description:`Text under the field, hidden while an error shows.`},{name:`label`,type:`node`,required:!1,description:`The label above the field.`},{name:`leftIcon`,type:`node`,required:!1,description:`Icon slot before the text, such as a calendar or clock.`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown when value is empty; the component falls back to "Select...".`},{name:`required`,type:`boolean`,required:!1,description:`Adds the required marker to the label.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The field size.`,default:`md`},{name:`trailing`,type:`node`,required:!1,description:`Slot at the end, a chevron when left out.`},{name:`value`,type:`string`,required:!1,description:`The selected value shown as the trigger text.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The field look; the theme setting decides when it is left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show a closed field that opens a picker, sheet or modal when pressed.`,`Build a custom picker that must match Input and Select.`],whenNot:[{text:`Free text entry.`,instead:`Input`},{text:`A list of options chosen inline.`,instead:`Select`}],do:[{note:`Show the current choice as the value and a hint as the placeholder.`,example:[{component:`PickerTrigger`,props:{label:`Time`,value:`10:30 AM`}}]}],dont:[{note:`Do not leave the trigger without a label or placeholder.`,example:[{component:`PickerTrigger`,props:{}}]}],a11y:[`The trigger reads as a button with the label and the chosen value.`,`Set accessibilityLabel when the label is a node.`]}},{name:`ProfileCompletion`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the summary.`},{name:`animated`,type:`boolean`,required:!1,description:`Sweeps the ring to a new progress.`,default:!0},{name:`avatarBackgroundColor`,type:`string`,required:!1,description:`Fill behind the initials; wins over avatarTone.`},{name:`avatarColor`,type:`string`,required:!1,description:`Colour of the initials; wins over avatarTone.`},{name:`avatarTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Colour scheme of the initials circle.`,default:`neutral`},{name:`description`,type:`string`,required:!1,description:`A sentence under the subtitle.`},{name:`progress`,type:`number`,required:!0,description:`Percentage of the profile filled in, 0 to 100.`},{name:`ringColor`,type:`string`,required:!1,description:`Explicit ring colour; wins over tone and the bands.`},{name:`ringGap`,type:`number`,required:!1,description:`Air between the avatar edge and the ring.`,default:1},{name:`ringVariant`,type:`enum`,enum:[`banded`,`single`],required:!1,description:`Whether the ring changes colour by thirds of progress or keeps one colour.`,default:`banded`},{name:`ringWidth`,type:`number`,required:!1,description:`Stroke width of the ring; the theme value applies when it is left out.`},{name:`showCompleteBadge`,type:`boolean`,required:!1,description:`Shows a tick badge on the ring at 100 percent.`,default:!0},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`,`xl`],required:!1,description:`Avatar size; the ring wraps it.`,default:`md`},{name:`source`,type:`url`,required:!1,description:`Avatar image; the initials of the title show when it is left out.`},{name:`subtitle`,type:`string`,required:!1,description:`A second line under the title, such as a role or type.`},{name:`title`,type:`string`,required:!0,description:`The profile name.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`A fixed ring colour that also turns the bands off.`},{name:`trailing`,type:`node`,required:!1,description:`Content at the right edge, such as an Edit link.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show how much of a profile or onboarding form is filled in, next to who it belongs to.`,`Put it at the top of a profile or settings screen.`],whenNot:[{text:`A progress value with no avatar or profile.`,instead:`ProgressRing or ProgressBar`}],do:[{note:`Pass progress as a percentage from 0 to 100.`,example:[{component:`ProfileCompletion`,props:{progress:60,title:`Acme Traders`}}]}],dont:[{note:`Do not pass progress as a fraction between 0 and 1; 0.6 reads as less than one percent.`,example:[{component:`ProfileCompletion`,props:{progress:.6,title:`Acme Traders`}}]}],a11y:[`The ring and the text are one screen reader element that reads the name and the percent.`,`Keep the trailing action focusable on its own; it sits outside that element.`]}},{name:`ProfilePicker`,marker:null,acceptsChildren:!1,props:[{name:`accept`,type:`array`,required:!1,description:`Accepted file types.`,default:[`image/*`]},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the photo button.`},{name:`avatarBackgroundColor`,type:`string`,required:!1,description:`Fill behind the initials or the placeholder icon.`},{name:`avatarColor`,type:`string`,required:!1,description:`Colour of the initials or the placeholder icon.`},{name:`avatarTone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Colour of the initials circle.`},{name:`badgeIcon`,type:`icon`,required:!1,description:`The icon on the badge at the bottom right.`,default:`camera`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and hides the badge.`,default:!1},{name:`error`,type:`node`,required:!1,description:`The error text under the picker.`},{name:`helperText`,type:`string`,required:!1,description:`Text under the picker.`},{name:`label`,type:`string`,required:!1,description:`A label above the picker.`},{name:`layout`,type:`enum`,enum:[`inline`,`profile`,`stacked`],required:!1,description:`Photo alone, photo with text beside it, or text centred beneath it.`,default:`stacked`},{name:`loading`,type:`boolean`,required:!1,description:`Shows a spinner over the photo and blocks presses while an upload runs.`,default:!1},{name:`maxSizeMB`,type:`number`,required:!1,description:`Largest photo size accepted, in megabytes.`},{name:`name`,type:`string`,required:!1,description:`The person's name; it gives the initials shown when there is no photo.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the label as required.`,default:!1},{name:`shape`,type:`enum`,enum:[`circle`,`rounded`,`square`],required:!1,description:`The photo outline.`,default:`circle`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`A preset diameter: sm 72, md 120, lg 160.`,default:`md`},{name:`subtitle`,type:`node`,required:!1,description:`Muted text beside or beneath the photo in the inline and profile layouts.`},{name:`title`,type:`node`,required:!1,description:`Bold text beside or beneath the photo in the inline and profile layouts.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Colour of the badge; the theme setting decides when it is left out.`},{name:`value`,type:`url`,required:!1,description:`Current photo URL or local URI; the initials or a placeholder show when it is left out.`},{name:`variant`,type:`enum`,enum:[`outline`,`soft`,`solid`],required:!1,description:`Look of the badge; the theme setting decides when it is left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Let a person set or change their profile photo.`,`Show the profile photo with a name and role beside it.`],whenNot:[{text:`Showing a photo that cannot be changed.`,instead:`Avatar`},{text:`Attaching documents or other files.`,instead:`FilePicker`}],do:[{note:`Pass the person's name so initials show when there is no photo.`,example:[{component:`ProfilePicker`,props:{name:`Asha Rao`}}]}],dont:[{note:`Do not hide the label and error text; say what is wrong with the photo.`,example:[{component:`ProfilePicker`,props:{error:`Error`}}]}],a11y:[`The photo is a button named Change profile photo; set accessibilityLabel to say more.`,`Errors are passed as the accessibility hint of the photo button.`]}},{name:`ProgressBar`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the bar.`},{name:`animated`,type:`boolean`,required:!1,description:`Animates fill changes; false snaps to the new value.`,default:!0},{name:`barColor`,type:`string`,required:!1,description:`Bar colour override; wins over tone.`},{name:`height`,type:`number`,required:!1,description:`Track height in pixels.`,default:6},{name:`indeterminate`,type:`boolean`,required:!1,description:`Plays a looping sweep instead of a fixed fill; true automatically when progress is not a number.`},{name:`label`,type:`node`,required:!1,description:`Text or content drawn above the bar.`},{name:`progress`,type:`number`,required:!1,description:`Fraction of the track filled, from 0 to 1; the bar is indeterminate when it is left out.`},{name:`radius`,type:`number`,required:!1,description:`Corner radius in pixels; fully rounded when left out.`},{name:`segments`,type:`array`,itemFields:[{name:`color`,type:`string`,required:!1,description:`Explicit segment colour; the tone applies when it is left out.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Segment colour when no colour is set.`},{name:`value`,type:`number`,required:!0,description:`Fraction of the full track, 0 to 1.`}],required:!1,description:`A multi-colour breakdown bar instead of a single fill.`},{name:`showPercent`,type:`boolean`,required:!1,description:`Shows the percent at the right of the label row; determinate bars only.`,default:!1},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Bar colour when no barColor is set.`,default:`primary`},{name:`trackColor`,type:`string`,required:!1,description:`Track colour override.`},{name:`valueLabel`,type:`node`,required:!1,description:`Text or content at the right of the label row, in place of the percent; a string is drawn like the percent.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show known progress, such as an upload or an onboarding step.`,`Show a usage split with segments.`,`Show an unknown wait with the indeterminate sweep.`],whenNot:[{text:`Progress that belongs to a picture or icon.`,instead:`ProgressRing`},{text:`A wait of unknown length with no layout space for a bar.`,instead:`Spinner`}],do:[{note:`Pass progress as a fraction from 0 to 1.`,example:[{component:`ProgressBar`,props:{progress:.6,label:`Upload`,showPercent:!0}}]}],dont:[{note:`Do not pass a percentage; 60 fills the track and reads as complete.`,example:[{component:`ProgressBar`,props:{progress:60}}]}],a11y:[`Give the bar a label or an accessibilityLabel so a screen reader says what is progressing.`,`Do not rely on colour alone; show the percent when the number matters.`]}},{name:`ProgressRing`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the ring.`},{name:`animated`,type:`boolean`,required:!1,description:`Animates progress changes.`,default:!0},{name:`colorByProgress`,type:`boolean`,required:!1,description:`Colours the fill red, amber then green as it fills; ignored when ringColor is set.`,default:!1},{name:`progress`,type:`number`,required:!1,description:`Fraction of the ring filled, 0 to 1; empty when left out.`},{name:`ringColor`,type:`string`,required:!1,description:`Fill colour override; wins over tone.`},{name:`rounded`,type:`boolean`,required:!1,description:`Rounds the ends of the fill arc.`,default:!0},{name:`size`,type:`number`,required:!1,description:`Outer diameter in pixels.`,default:48},{name:`strokeWidth`,type:`number`,required:!1,description:`Stroke width of the track and the fill; the theme value applies when it is left out.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Fill colour when no ringColor is set.`,default:`primary`},{name:`trackColor`,type:`string`,required:!1,description:`Track colour override.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show progress that belongs to a thing, such as a profile picture or a step icon.`,`Wrap an avatar, an icon or a percentage in a ring.`],whenNot:[{text:`Progress shown as a row.`,instead:`ProgressBar`},{text:`A wait of unknown length.`,instead:`Spinner`}],do:[{note:`Pass progress as a fraction from 0 to 1.`,example:[{component:`ProgressRing`,props:{progress:.65,size:96}}]}],dont:[{note:`Do not pass a percentage; 65 fills the whole ring.`,example:[{component:`ProgressRing`,props:{progress:65,size:96}}]}],a11y:[`Set accessibilityLabel to say what the ring measures.`,`A reduced motion setting on the device snaps the ring to the new value.`]}},{name:`Radio`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`What happens when the control is used, read after its name by a screen reader.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`The accessible name of the radio. Needed when the label is a node.`},{name:`description`,type:`node`,required:!1,description:`A secondary line under the label and the helper text.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the radio.`,default:!1},{name:`error`,type:`string`,required:!1,description:`A string: an error line under the label, helper text and description, which also draws the empty ring in the error colour. true shows the error state without a message.`},{name:`helperText`,type:`node`,required:!1,description:`A hint under the label.`},{name:`label`,type:`node`,required:!1,description:`The text beside the radio. A node label needs an accessibilityLabel.`},{name:`selected`,type:`boolean`,required:!1,description:`Whether the radio is selected when it is used on its own, outside a group.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the radio ring.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the selected radio.`,default:`primary`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value this radio stands for, compared with the selected value of its group.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person picks exactly one option from a short list, with every option visible at once.`,`A choice must be seen with its alternatives, such as a delivery speed or a billing period.`],whenNot:[{text:`The person picks any number of options.`,instead:`Checkbox`}],do:[{note:`Give every radio a visible label, so the person can tell what each option means.`,example:[{component:`Radio`,props:{value:`monthly`,label:`Monthly billing`}}]},{note:`Use the danger tone only for a choice that deletes data.`,example:[{component:`Radio`,props:{value:`delete`,label:`Delete my account`,tone:`danger`}}]}],dont:[{note:`Do not leave a radio with no label. The person cannot tell which option it picks.`,example:[{component:`Radio`,props:{value:`monthly`}}]},{note:`Do not show a destructive choice in the primary tone. The colour then gives no warning.`,example:[{component:`Radio`,props:{value:`delete`,label:`Delete my account`,tone:`primary`}}]}],a11y:[`A node label needs an accessibilityLabel, which becomes the screen reader name.`,`The radio announces its selected and disabled states to screen readers.`]}},{name:`RadioGroup`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The accessible name of the group, read when focus enters it.`},{name:`defaultValue`,type:`stringOrNumber`,required:!1,description:`The value selected when the group first renders, when the parent does not control value.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses on every radio in the group and dims it.`,default:!1},{name:`error`,type:`string`,required:!1,description:`One error line under the group, and every radio's empty ring in the error colour. true shows the error state without a message.`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The selected radio's value. Leave it out to let the group keep its own selection.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`The person picks exactly one option from a short list, with every option visible at once.`,`The options must be compared side by side, such as a delivery speed or a billing period.`],whenNot:[{text:`The list is long and needs scrolling or search`,instead:`Select`},{text:`The person picks any number of options`,instead:`Checkbox`}],do:[{note:`Give the group an accessibilityLabel that names the choice, so a screen reader announces what the radios pick.`,example:[{component:`RadioGroup`,props:{value:`monthly`,accessibilityLabel:`Billing period`}}]},{note:`Leave the group enabled and disable only the options that cannot be picked.`,example:[{component:`RadioGroup`,props:{value:`monthly`,accessibilityLabel:`Billing period`}}]}],dont:[{note:`Do not leave the group without a name. Screen readers announce only the radio labels.`,example:[{component:`RadioGroup`,props:{value:`monthly`}}]},{note:`Do not disable the whole group for one unavailable option. The person cannot pick the others either.`,example:[{component:`RadioGroup`,props:{value:`monthly`,accessibilityLabel:`Billing period`,disabled:!0}}]}],a11y:[`The group is read as a radiogroup, and its accessibilityLabel is announced when focus enters it.`,`A disabled group is announced as disabled, and no radio in it can be pressed.`]}},{name:`Rating`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken name of the rating for screen readers.`},{name:`allowHalf`,type:`boolean`,required:!1,description:`Allows selecting half stars.`,default:!0},{name:`label`,type:`string`,required:!1,description:`A text line drawn above the star row.`},{name:`loading`,type:`boolean`,required:!1,description:`Replaces the stars with a skeleton placeholder.`,default:!1},{name:`max`,type:`number`,required:!1,description:`The total number of stars shown.`,default:5},{name:`readonly`,type:`boolean`,required:!1,description:`Disables interaction and shows a static rating.`,default:!1},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the filled stars.`,default:`warning`},{name:`value`,type:`number`,required:!0,description:`The selected number of stars.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show a selected score from a numeric scale, such as a product review or service quality.`,`Let a person tap to change the score when interaction is needed.`],whenNot:[{text:`The scale is unbounded or continuous rather than discrete stars.`,instead:`Slider`},{text:`The value is a simple yes or no.`,instead:`Switch`}],do:[{note:`Label the rating with what the stars measure.`,example:[{component:`Rating`,props:{value:4,max:5,label:`Product quality`}}]},{note:`Keep the value within the zero to max range.`,example:[{component:`Rating`,props:{value:3,max:5}}]}],dont:[{note:`Do not leave a readonly rating unlabeled.`,example:[{component:`Rating`,props:{value:4,readonly:!0}}]},{note:`Do not set a value above max.`,example:[{component:`Rating`,props:{value:6,max:5}}]}],a11y:[`Provide an accessibilityLabel that names what the stars measure, since the stars themselves are not readable text.`,`When interactive, the component exposes an adjustable role with the current value and range.`]}},{name:`Repeater`,marker:null,acceptsChildren:!1,props:[{name:`disabled`,type:`boolean`,required:!1,description:`Blocks adding, removing and editing.`,default:!1},{name:`maxRows`,type:`number`,required:!1,description:`The add button hides at this count; no limit when left out.`},{name:`minRows`,type:`number`,required:!1,description:`Rows at or below this count cannot be removed.`,default:0},{name:`removable`,type:`boolean`,required:!1,description:`Shows the remove control on each row.`,default:!0},{name:`value`,type:`array`,required:!0,description:`The rows, one entry each; the kit shows the rows the app renders.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Let people add, remove and edit a list of form rows, such as line items, phone numbers or addresses.`,`Keep the minimum and maximum row rules in one place.`],whenNot:[{text:`A fixed list of fields.`,instead:`FormField`},{text:`Choosing from a set of options.`,instead:`Select`}],do:[{note:`Say what is being added in the add button label.`,example:[{component:`Repeater`,props:{value:[]}}]}],dont:[{note:`Do not leave the empty state blank when zero rows is allowed.`,example:[{component:`Repeater`,props:{value:[],minRows:0}}]}],a11y:[`Give each row a label so the remove button says which row it removes.`,`Keep the add button reachable after the last row.`]}},{name:`RichTextEditor`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the editor.`},{name:`autoFocus`,type:`boolean`,required:!1,description:`Focuses the text area when it appears.`,default:!1},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks typing and every toolbar action, and dims the editor.`,default:!1},{name:`loading`,type:`boolean`,required:!1,description:`Shows the skeleton placeholder instead of the editor.`,default:!1},{name:`minHeight`,type:`number`,required:!1,description:`Minimum height of the text area, in pixels.`,default:160},{name:`placeholder`,type:`string`,required:!1,description:`Text shown while the draft is empty.`},{name:`value`,type:`string`,required:!1,description:`The markdown text, controlled like any input.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Let people write formatted notes or descriptions as markdown, with a toolbar for bold, lists and links.`,`Pair it with Markdown to preview the text.`],whenNot:[{text:`Short plain text.`,instead:`Input`},{text:`Showing formatted text without editing.`,instead:`Markdown`}],do:[{note:`Set a placeholder that tells people what to write.`,example:[{component:`RichTextEditor`,props:{placeholder:`Write your notes...`}}]}],dont:[{note:`Do not use it for a single short answer; a plain input is simpler.`,example:[{component:`RichTextEditor`,props:{minHeight:40}}]}],a11y:[`Each toolbar button has a spoken name such as Bold or Bulleted list.`,`Set accessibilityLabel to name the field.`]}},{name:`SafeArea`,marker:`AppSafeArea`,acceptsChildren:!0,props:[{name:`os`,type:`enum`,enum:[`Ios`,`Android`],required:!0}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`},{name:`ScannerOverlay`,marker:null,acceptsChildren:!0,props:[{name:`frameSize`,type:`number`,required:!1,description:`Side of the square cutout in points; never drawn under 240.`,default:260},{name:`helperText`,type:`string`,required:!1,description:`The line under the frame while scanning.`},{name:`labels`,type:`object`,fields:[{name:`found`,type:`string`,required:!1,description:`Spoken and shown when a code is found.`,default:`Code found`},{name:`gallery`,type:`string`,required:!1,description:`The button that picks a code from the photo gallery.`,default:`Upload from gallery`},{name:`hint`,type:`string`,required:!1,description:`The line under the frame while scanning.`,default:`Point the camera at the code`},{name:`invalid`,type:`string`,required:!1,description:`Shown when the code cannot be used.`,default:`This code cannot be used. Try another.`},{name:`manualEntry`,type:`string`,required:!1,description:`The button that opens typing the code instead.`,default:`Enter code instead`},{name:`noCameraMessage`,type:`string`,required:!1,description:`The text of the panel shown when the device has no camera.`,default:`This device has no camera available. You can still add the code another way.`},{name:`noCameraTitle`,type:`string`,required:!1,description:`The title of the panel shown when the device has no camera.`,default:`No camera found`},{name:`noPermissionMessage`,type:`string`,required:!1,description:`The text of the panel shown when camera access is off.`,default:`Allow camera access to scan a code.`},{name:`noPermissionTitle`,type:`string`,required:!1,description:`The title of the panel shown when camera access is off.`,default:`Camera access is off`},{name:`permissionAction`,type:`string`,required:!1,description:`The button on the camera access panel.`,default:`Allow camera access`},{name:`torchOff`,type:`string`,required:!1,description:`The torch button name while the torch is on.`,default:`Turn torch off`},{name:`torchOn`,type:`string`,required:!1,description:`The torch button name while the torch is off.`,default:`Turn torch on`}],required:!1,description:`Replaces any of the default texts.`},{name:`state`,type:`enum`,enum:[`found`,`invalid`,`noCamera`,`noPermission`,`scanning`],required:!1,description:`Which camera state to draw: waiting for a code, a code found, a code refused, or a panel for missing permission or camera.`,default:`scanning`},{name:`torch`,type:`boolean`,required:!1,description:`Whether the torch is on.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Scan a QR code or barcode with the camera.`,`Show a clear frame, a hint and the fallbacks around a camera view.`],whenNot:[{text:`Scanning a document or taking a photo.`,instead:`FilePicker`},{text:`Typing a code by hand.`,instead:`Input`}],do:[{note:`Keep the hint short and say what to scan.`,example:[{component:`ScannerOverlay`,props:{helperText:`Point the camera at the code`}}]},{note:`Set the state from the scan result so the frame shows found or refused.`,example:[{component:`ScannerOverlay`,props:{state:`found`}}]}],dont:[{note:`Do not shrink the frame under 240 points; a smaller frame is drawn at 240 anyway.`,example:[{component:`ScannerOverlay`,props:{frameSize:120}}]},{note:`Do not leave a refused code without a message; set the state to invalid.`,example:[{component:`ScannerOverlay`,props:{state:`scanning`}}]}],a11y:[`The cutout and corner marks are hidden from screen readers; the hint and every state change are announced instead.`,`The manual entry button stays reachable in every state.`]}},{name:`Screen`,marker:null,acceptsChildren:!0,props:[{name:`bottomInset`,type:`number`,required:!1,description:`Extra space under the content and the footer, for a tab bar drawn over the screen.`,default:0},{name:`edges`,type:`array`,required:!1,description:`The safe area edges that get padding, from top, bottom, left and right.`,default:[`top`,`bottom`]},{name:`floatingAction`,type:`node`,required:!1,description:`A floating action button. The page lifts it above the tab bar and footer, floats it bottom right unless its own position is set, and keeps room under the content for it.`},{name:`footer`,type:`node`,required:!1,description:`Content pinned under the page, above the keyboard.`},{name:`gutter`,type:`boolean`,required:!1,description:`Keeps the content inside the page's side margin. List pages default to false, because their rows carry their own padding.`,default:!0},{name:`headerShadowOnScroll`,type:`boolean`,required:!1,description:`Shows a shadow under the fixed bar once the content scrolls, and hides it back at the top.`,default:!0},{name:`keyboardToolbar`,type:`boolean`,required:!1,description:`Shows the keyboard toolbar for moving between fields.`,default:!0},{name:`largeTitle`,type:`boolean`,required:!1,description:`Shows the large title that collapses into the bar as the content scrolls.`,default:!0},{name:`leading`,type:`node`,required:!1,description:`Content at the left of the app bar.`},{name:`refreshing`,type:`boolean`,required:!1,description:`Keeps the pull to refresh spinner showing while true.`,default:!1},{name:`rightActions`,type:`array`,itemFields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken name of the action.`},{name:`badge`,type:`stringOrNumber`,required:!1,description:`A count or short text drawn as a badge on the button.`},{name:`dot`,type:`boolean`,required:!1,description:`Draws a small unread dot on the button.`},{name:`icon`,type:`node`,required:!1,description:`The glyph of the action.`},{name:`text`,type:`string`,required:!1,description:`A text action shown in place of the icon.`}],required:!1,description:`Actions at the right of the app bar.`},{name:`scroll`,type:`boolean`,required:!1,description:`Scrolls the content; false draws it in a plain view.`,default:!0},{name:`subtitle`,type:`string`,required:!1,description:`A line under the title in the app bar.`},{name:`title`,type:`string`,required:!1,description:`The app bar title.`},{name:`trailing`,type:`node`,required:!1,description:`Content at the right edge of the app bar, such as a profile avatar, in place of the last right action.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Wrap every page of the app so the safe area, app bar and keyboard are handled the same way.`,`Give a page a large title that collapses as the content scrolls.`],whenNot:[{text:`A bar over content you already lay out yourself.`,instead:`AppBar`},{text:`A sheet or popup above the page.`,instead:`BottomSheet`}],do:[{note:`Give each page a title so the bar and the large title have something to show.`,example:[{component:`Screen`,props:{title:`Orders`}}]},{note:`A page inside tabs pads the top edge only, because the tab bar covers the bottom.`,example:[{component:`Screen`,props:{title:`Home`,edges:[`top`]}}]}],dont:[{note:`Do not nest one Screen inside another; each page has one.`,example:[{component:`Screen`,props:{title:`Orders`,scroll:!1}}]},{note:`Do not turn scrolling off for content that can be longer than the screen.`,example:[{component:`Screen`,props:{scroll:!1}}]}],a11y:[`The title is exposed to screen readers as a header.`,`The back button runs on press and on the Android back key.`]}},{name:`SearchBar`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken name of the field.`},{name:`autoFocus`,type:`boolean`,required:!1,description:`Focuses the field as soon as it appears.`,default:!1},{name:`debounceMs`,type:`number`,required:!1,description:`How long to wait after typing before the change is reported, in milliseconds.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks editing and dims the field.`,default:!1},{name:`label`,type:`string`,required:!1,description:`A label above the field, or floating inside it.`},{name:`labelMode`,type:`enum`,enum:[`float`,`top`],required:!1,description:`Whether the label sits above the field or rises from inside it.`,default:`top`},{name:`leftIcon`,type:`icon`,required:!1,description:`Replaces the magnifier on the left.`},{name:`maxRecents`,type:`number`,required:!1,description:`The most recent searches drawn.`,default:8},{name:`maxSuggestions`,type:`number`,required:!1,description:`The most suggestions drawn.`,default:8},{name:`placeholder`,type:`string`,required:!1,description:`The text shown while the field is empty.`,default:`Search…`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`none`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius, from the theme's radius tokens; an underline field is always square.`},{name:`recents`,type:`array`,required:!1,description:`Recent searches offered while the field is focused and empty, newest first.`},{name:`scope`,type:`string`,required:!1,description:`The value of the chosen chip.`},{name:`scopes`,type:`array`,itemFields:[{name:`label`,type:`string`,required:!0,description:`The text on the chip.`},{name:`value`,type:`string`,required:!0,description:`The value reported when the chip is chosen.`}],required:!1,description:`Chips under the field that narrow what is searched.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The field height and text size.`,default:`md`},{name:`suggestions`,type:`array`,required:!1,description:`Predicted searches offered while the field is focused and has text; each is a text or an object with a text.`},{name:`value`,type:`string`,required:!1,description:`The text in the field.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`A filled pill, an outline field or a bottom line; left out, the theme chooses.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Filter or search a list from one field.`,`Offer recent searches, suggestions or scope chips under the field.`],whenNot:[{text:`Collecting a value to submit in a form.`,instead:`Input`},{text:`Choosing from a fixed list of options.`,instead:`Select`}],do:[{note:`Say what can be searched in the placeholder.`,example:[{component:`SearchBar`,props:{placeholder:`Search by name`}}]},{note:`Put the broadest scope first; it is chosen until the person picks another.`,example:[{component:`SearchBar`,props:{scopes:[{label:`All`,value:`all`},{label:`People`,value:`people`}],scope:`all`}}]}],dont:[{note:`Do not use it as a form field that holds an answer.`,example:[{component:`SearchBar`,props:{label:`Email address`}}]},{note:`Do not leave the placeholder empty; the field then gives no hint.`,example:[{component:`SearchBar`,props:{placeholder:``}}]}],a11y:[`Set accessibilityLabel when the placeholder alone does not name the field.`,`Recent searches and suggestions are reachable and announced when they appear.`]}},{name:`SectionHeader`,marker:null,acceptsChildren:!0,props:[{name:`action`,type:`object`,fields:[{name:`label`,type:`string`,required:!0,description:`The link text.`},{name:`testID`,type:`string`,required:!1,description:`A test selector on the link.`}],required:!1,description:`A link at the end of the heading row, such as See all.`},{name:`flush`,type:`boolean`,required:!1,description:`Drops the room above, for the first heading of a block.`,default:!1},{name:`flushBottom`,type:`boolean`,required:!1,description:`Drops the room below the heading, for a heading that sits tight on the content under it.`,default:!1},{name:`required`,type:`boolean`,required:!1,description:`Draws the required marker after the heading and announces the heading as required.`,default:!1},{name:`variant`,type:`enum`,enum:[`caps`,`sub`,`title`],required:!1,description:`A large heading, a quieter uppercase label, or a smaller heading for use inside a card.`,default:`title`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Title a group of fields in a form, a wizard step or a panel.`,`Let the header carry the spacing instead of setting margins around a heading.`],whenNot:[{text:`The title of the whole page.`,instead:`Screen`},{text:`A line between two rows with no title.`,instead:`Divider`}],do:[{note:`Use flush on the first heading of a block so it does not add room above.`,example:[{component:`SectionHeader`,props:{variant:`caps`,flush:!0},children:`Separation distance`}]},{note:`Use the sub variant for a heading inside a card.`,example:[{component:`SectionHeader`,props:{variant:`sub`},children:`Contact details`}]}],dont:[{note:`Do not stack two headings with no fields between them.`,example:[{component:`SectionHeader`,props:{variant:`title`},children:`Supply lines`}]},{note:`Do not mark a heading required when only some of its fields are.`,example:[{component:`SectionHeader`,props:{required:!0},children:`Optional extras`}]}],a11y:[`It is always exposed to screen readers as a header.`,`A required heading is announced as the text followed by required.`]}},{name:`SegmentedControl`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken name of the group.`},{name:`defaultValue`,type:`stringOrNumber`,required:!1,description:`The segment chosen at the start when the control keeps its own choice; the first segment when left out.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks changes and dims the control.`,default:!1},{name:`error`,type:`node`,required:!1,description:`An error line under the control; the control is outlined in the error colour.`},{name:`fullWidth`,type:`boolean`,required:!1,description:`Stretches the control to the width of its container.`,default:!0},{name:`helperText`,type:`node`,required:!1,description:`A helper line under the control.`},{name:`label`,type:`node`,required:!1,description:`A label above the control, drawn like a field label.`},{name:`labelLines`,type:`enum`,enum:[1,2],required:!1,description:`The lines a segment label may take before it is cut; two lets a longer label wrap.`,default:1},{name:`radius`,type:`enumOrNumber`,enum:[`lg`,`md`,`none`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius, a named step or a number of points; left out, each look keeps its own.`},{name:`segments`,type:`array`,itemFields:[{name:`icon`,type:`icon`,required:!1,description:`An icon drawn with the label.`},{name:`label`,type:`string`,required:!0,description:`The text of the segment.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value the segment stands for.`}],required:!0,description:`The choices, one per segment.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The height and text size of the control.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the chosen label and icon: the brand colour or the text colour.`,default:`primary`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The chosen segment's value.`},{name:`variant`,type:`enum`,enum:[`pills`,`segmented`,`underline`],required:!1,description:`A filled track with a sliding thumb, a sliding underline, or a tinted pill.`,default:`segmented`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Choose one of two to five short options and show them all at once.`,`Switch the view of the same content, such as a day, week or month range.`],whenNot:[{text:`Moving between screens of the app.`,instead:`Tabs`},{text:`Choosing from a long list.`,instead:`Select`}],do:[{note:`Keep each label to a word or two so every segment fits.`,example:[{component:`SegmentedControl`,props:{segments:[{label:`Day`,value:`d`},{label:`Week`,value:`w`}],value:`d`}}]},{note:`Use two label lines only when a two word label has to fit.`,example:[{component:`SegmentedControl`,props:{segments:[{label:`First half`,value:`1`},{label:`Second half`,value:`2`}],value:`1`,labelLines:2}}]}],dont:[{note:`Do not use it to move between screens; use tabs for that.`,example:[{component:`SegmentedControl`,props:{segments:[{label:`Home`,value:`h`},{label:`Orders`,value:`o`}],value:`h`}}]},{note:`Do not put more than five segments in one control.`,example:[{component:`SegmentedControl`,props:{segments:[{label:`A`,value:`a`},{label:`B`,value:`b`},{label:`C`,value:`c`},{label:`D`,value:`d`},{label:`E`,value:`e`},{label:`F`,value:`f`}],value:`a`}}]}],a11y:[`The control is a radio group and each segment is a radio with its selected state.`,`Set accessibilityLabel when there is no label text to name the group.`]}},{name:`Select`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen-reader name of the trigger.`},{name:`chevronColor`,type:`string`,required:!1,description:`Colour of the built-in chevron.`},{name:`chevronSize`,type:`number`,required:!1,description:`Size of the built-in chevron in pixels.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks presses and dims the field.`,default:!1},{name:`error`,type:`node`,required:!1,description:`The error text under the field; true shows the error state with no message.`},{name:`help`,type:`node`,required:!1,description:`Content drawn beside the label, outside the trigger.`},{name:`helperText`,type:`node`,required:!1,description:`Hint under the field, shown while there is no error.`},{name:`label`,type:`node`,required:!1,description:`The label above the field.`},{name:`leftIcon`,type:`icon`,required:!1,description:`Slot rendered to the left of the trigger text.`},{name:`multi`,type:`boolean`,required:!1,description:`Allows selecting multiple options.`,default:!1},{name:`numberOfLines`,type:`number`,required:!1,description:`Lines the chosen value may take before it is truncated.`,default:1},{name:`options`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A supporting description line under the label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks selection of this option.`},{name:`icon`,type:`icon`,required:!1,description:`An icon drawn beside the option.`},{name:`label`,type:`string`,required:!0,description:`The text shown for the option.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value the option stands for.`}],required:!0,description:`The options to pick from, each with a label, a value and an optional icon, description or disabled flag.`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown when nothing is selected.`},{name:`prefix`,type:`node`,required:!1,description:`Fixed text drawn before the value.`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The trigger's corner radius, a theme radius token. Wins over the field size's radius.`},{name:`required`,type:`boolean`,required:!1,description:`Adds the required marker to the label.`,default:!1},{name:`rightIcon`,type:`icon`,required:!1,description:`Replaces the built-in arrow on the right of the trigger.`},{name:`searchable`,type:`boolean`,required:!1,description:`Shows a search box above the option list in the sheet.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The field size.`,default:`md`},{name:`title`,type:`string`,required:!1,description:`Heading shown at the top of the options bottom-sheet.`},{name:`value`,type:`any`,required:!1,description:`The selected value when the parent controls it: one option's value, or a list of them when several can be chosen.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The field look; the theme setting decides when it is left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A form field to pick one or more options from a bottom sheet.`,`The choice needs a full standalone field with its own border.`],whenNot:[{text:`A compact dropdown trigger inside a field prefix or suffix slot.`,instead:`InlineSelect`}],do:[{note:`Use a title so the sheet heading describes the choice.`,example:[{component:`Select`,props:{label:`City`,title:`Select city`,options:[{label:`Bengaluru`,value:`blr`},{label:`Chennai`,value:`maa`}]}}]},{note:`Turn on search when the list of options is long.`,example:[{component:`Select`,props:{label:`Country`,searchable:!0,options:[{label:`India`,value:`IN`},{label:`Australia`,value:`AU`}]}}]}],dont:[{note:`Do not leave the trigger with no title or label to describe the choice.`,example:[{component:`Select`,props:{options:[{label:`Bengaluru`,value:`blr`},{label:`Chennai`,value:`maa`}]}}]},{note:`Do not leave search off when the list of options is long.`,example:[{component:`Select`,props:{label:`Country`,searchable:!1,options:[{label:`India`,value:`IN`},{label:`Australia`,value:`AU`}]}}]}],a11y:[`The trigger reads as a button with the label and the chosen value.`,`Set title, label or accessibilityLabel so the trigger has a descriptive name for screen readers.`]}},{name:`SignaturePad`,marker:null,acceptsChildren:!1,props:[{name:`allowTyped`,type:`boolean`,required:!1,description:`Offers the option to type a name instead of drawing.`,default:!0},{name:`defaultMode`,type:`enum`,enum:[`draw`,`type`],required:!1,description:`Whether the pad starts in drawing or in typing mode.`,default:`draw`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks drawing and typing and dims the pad.`,default:!1},{name:`height`,type:`number`,required:!1,description:`The height of the pad in points.`,default:180},{name:`initialStrokes`,type:`array`,required:!1,description:`A signature kept from before: each stroke is a list of x and y points in points of the pad.`},{name:`initialTypedName`,type:`string`,required:!1,description:`A typed name kept from before.`,default:``},{name:`inkColor`,type:`string`,required:!1,description:`The colour of the strokes and the typed name; left out, the pad follows the theme.`},{name:`labels`,type:`object`,fields:[{name:`caption`,type:`string`,required:!1,description:`The hint under the drawing pad.`,default:`Sign above the line. To start with an up or down stroke, rest your finger a moment first.`},{name:`clear`,type:`string`,required:!1,description:`The clear button.`,default:`Clear`},{name:`clearedAnnouncement`,type:`string`,required:!1,description:`Spoken after the signature is cleared.`,default:`Signature cleared`},{name:`close`,type:`string`,required:!1,description:`The button that closes the full screen pad and discards the strokes.`,default:`Close`},{name:`done`,type:`string`,required:!1,description:`The button that closes the full screen pad and keeps the strokes.`,default:`Done`},{name:`drawInstead`,type:`string`,required:!1,description:`The button that switches back to drawing.`,default:`Draw instead`},{name:`drawingAnnouncement`,type:`string`,required:!1,description:`Spoken when the pad switches to drawing.`,default:`Signing by drawing. Use one finger on the pad.`},{name:`empty`,type:`string`,required:!1,description:`The spoken value while nothing is signed.`,default:`Not signed`},{name:`emptyError`,type:`string`,required:!1,description:`The message of the error raised when exporting an empty pad.`,default:`Add a signature first.`},{name:`expand`,type:`string`,required:!1,description:`The button that opens the pad full screen.`,default:`Expand`},{name:`pad`,type:`string`,required:!1,description:`The spoken name of the pad.`,default:`Signature pad`},{name:`padHint`,type:`string`,required:!1,description:`The spoken hint on the drawing pad.`,default:`Draw with one finger. To sign without drawing, use the type your name action.`},{name:`signed`,type:`string`,required:!1,description:`The spoken value once signed.`,default:`Signed`},{name:`typeInstead`,type:`string`,required:!1,description:`The button that switches to typing a name.`,default:`Type your name instead`},{name:`typedCaption`,type:`string`,required:!1,description:`The hint under the typed name.`,default:`Your typed name is used as your signature.`},{name:`typedLabel`,type:`string`,required:!1,description:`The label of the name field.`,default:`Type your name`},{name:`typedPlaceholder`,type:`string`,required:!1,description:`The placeholder of the name field.`,default:`Your full name`},{name:`typingAnnouncement`,type:`string`,required:!1,description:`Spoken when the pad switches to typing.`,default:`Signing by typing your name. Your typed name is used as your signature. Choose Draw instead to sign with your finger.`},{name:`undo`,type:`string`,required:!1,description:`The undo button.`,default:`Undo`},{name:`undoneAnnouncement`,type:`string`,required:!1,description:`Spoken after the last stroke is removed.`,default:`Last stroke removed`}],required:!1,description:`Replaces any of the default texts, for other languages.`},{name:`maxNameLength`,type:`number`,required:!1,description:`The longest typed name allowed.`,default:100},{name:`paperColor`,type:`string`,required:!1,description:`The colour of the pad ground; left out, the pad follows the theme.`},{name:`scriptFontFamily`,type:`string`,required:!1,description:`The font family of the typed name; left out, a system script face is used.`},{name:`signedAt`,type:`stringOrNumber`,required:!1,description:`When it was signed, shown in the configured time zone; an ISO text or a timestamp number.`},{name:`signedBy`,type:`string`,required:!1,description:`The signer's name, shown on the line under the pad.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Capture a signature by finger on a form, a consent or an agreement.`,`Let people who cannot draw type their name as the signature.`],whenNot:[{text:`Picking or taking a photo or a file.`,instead:`FilePicker`},{text:`Confirming a risky action.`,instead:`SlideToConfirm`}],do:[{note:`Leave typing on so anyone can sign without drawing.`,example:[{component:`SignaturePad`,props:{allowTyped:!0}}]},{note:`Show who is signing with signedBy.`,example:[{component:`SignaturePad`,props:{signedBy:`Alex Morgan`}}]}],dont:[{note:`Do not turn typing off unless a typed signature is not acceptable.`,example:[{component:`SignaturePad`,props:{allowTyped:!1}}]},{note:`Do not make the pad too short to sign in.`,example:[{component:`SignaturePad`,props:{height:60}}]}],a11y:[`Under a screen reader an untouched pad starts on the typed name and says so.`,`Undo, clear and the mode switch are available as accessibility actions.`]}},{name:`Skeleton`,marker:null,acceptsChildren:!1,props:[{name:`colors`,type:`object`,fields:[{name:`background`,type:`string`,required:!1,description:`The resting colour.`},{name:`highlight`,type:`string`,required:!1,description:`The moving shimmer or pulse colour.`}],required:!1,description:`Replaces the resting and highlight colours of the placeholder.`},{name:`height`,type:`number`,required:!1,description:`The height in points.`,default:16},{name:`radius`,type:`enumOrNumber`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius, a named step or a number of points.`},{name:`shape`,type:`enum`,enum:[`circle`,`rect`,`rounded`,`text`],required:!1,description:`The shape of the placeholder: square corners, rounded corners, a circle or a line of text.`,default:`rect`},{name:`variant`,type:`enum`,enum:[`none`,`pulse`,`shimmer`],required:!1,description:`How the placeholder moves: a sweeping shimmer, a pulse, or none; left out, the provider or shimmer is used.`},{name:`width`,type:`stringOrNumber`,required:!1,description:`The width as points, auto, or a percentage text such as 60%.`,default:`100%`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Hold the place of one block of content while it loads.`,`Match the size and shape of the content that will replace it.`],whenNot:[{text:`A wait of unknown shape or a whole screen.`,instead:`Spinner`},{text:`Several lines of text.`,instead:`SkeletonText`}],do:[{note:`Give the block the size of the real content so the page does not jump.`,example:[{component:`Skeleton`,props:{shape:`rounded`,height:80}}]},{note:`Use the circle shape with equal width and height for an avatar.`,example:[{component:`Skeleton`,props:{shape:`circle`,width:48,height:48}}]}],dont:[{note:`Do not leave a skeleton showing after the data has arrived.`,example:[{component:`Skeleton`,props:{variant:`none`,height:16}}]},{note:`Do not draw a circle with different width and height.`,example:[{component:`Skeleton`,props:{shape:`circle`,width:48,height:16}}]}],a11y:[`The placeholder is hidden from screen readers; announce the loading state in the screen that owns it.`,`Under reduced motion the shimmer plays as a pulse.`]}},{name:`SkeletonCircle`,marker:null,acceptsChildren:!1,props:[{name:`colors`,type:`object`,fields:[{name:`background`,type:`string`,required:!1,description:`The resting colour.`},{name:`highlight`,type:`string`,required:!1,description:`The moving shimmer or pulse colour.`}],required:!1,description:`Replaces the resting and highlight colours of the placeholder.`},{name:`radius`,type:`enumOrNumber`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius, a named step or a number of points.`},{name:`size`,type:`number`,required:!0,description:`The diameter in points.`},{name:`variant`,type:`enum`,enum:[`none`,`pulse`,`shimmer`],required:!1,description:`How the placeholder moves: a sweeping shimmer, a pulse, or none; left out, the provider or shimmer is used.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Hold the place of an avatar or a round icon while it loads.`],whenNot:[{text:`A block that is not round.`,instead:`Skeleton`}],do:[{note:`Give it the size of the avatar that will replace it.`,example:[{component:`SkeletonCircle`,props:{size:48}}]}],dont:[{note:`Do not use it for a square or rectangular block.`,example:[{component:`SkeletonCircle`,props:{size:200}}]}],a11y:[`The placeholder is hidden from screen readers.`]}},{name:`SkeletonContent`,marker:null,acceptsChildren:!0,props:[{name:`colors`,type:`object`,fields:[{name:`background`,type:`string`,required:!1,description:`The resting colour.`},{name:`highlight`,type:`string`,required:!1,description:`The moving shimmer or pulse colour.`}],required:!1,description:`Replaces the resting and highlight colours of the placeholder.`},{name:`count`,type:`number`,required:!1,description:`How many times the placeholder is repeated while loading.`,default:1},{name:`fadeDuration`,type:`number`,required:!1,description:`The length of the fade from placeholder to content in milliseconds; 0 turns it off.`},{name:`loading`,type:`boolean`,required:!0,description:`Shows the placeholder while true and the content once false.`},{name:`placeholder`,type:`node`,required:!1,description:`A placeholder drawn as written while loading; left out, the content is turned into placeholder shapes.`},{name:`variant`,type:`enum`,enum:[`none`,`pulse`,`shimmer`],required:!1,description:`How the placeholder moves: a sweeping shimmer, a pulse, or none; left out, the provider or shimmer is used.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Wrap a block so it shows placeholder shapes while its data loads and fades in the content after.`],whenNot:[{text:`A list that loads rows.`,instead:`SkeletonList`},{text:`A wait of unknown shape.`,instead:`Spinner`}],do:[{note:`Pass an explicit placeholder for any layout that is not trivial.`,example:[{component:`SkeletonContent`,props:{loading:!0,count:2}}]}],dont:[{note:`Do not leave loading on after the data has arrived.`,example:[{component:`SkeletonContent`,props:{loading:!0}}]}],a11y:[`Placeholders are hidden from screen readers; announce the loading state in the screen that owns it.`]}},{name:`SkeletonList`,marker:null,acceptsChildren:!1,props:[{name:`colors`,type:`object`,fields:[{name:`background`,type:`string`,required:!1,description:`The resting colour.`},{name:`highlight`,type:`string`,required:!1,description:`The moving shimmer or pulse colour.`}],required:!1,description:`Replaces the resting and highlight colours of the placeholder.`},{name:`loading`,type:`boolean`,required:!0,description:`Shows the placeholder rows while true and the real list once false.`},{name:`placeholderCount`,type:`number`,required:!1,description:`How many placeholder rows to draw while loading; left out, the provider default or 3 is used.`},{name:`variant`,type:`enum`,enum:[`none`,`pulse`,`shimmer`],required:!1,description:`How the placeholder moves: a sweeping shimmer, a pulse, or none; left out, the provider or shimmer is used.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show placeholder rows while the first page of a list loads.`],whenNot:[{text:`One block that is not a list.`,instead:`SkeletonContent`}],do:[{note:`Set the row count to about what fills the screen.`,example:[{component:`SkeletonList`,props:{loading:!0,placeholderCount:5}}]}],dont:[{note:`Do not use it for a refresh of a list that already has rows.`,example:[{component:`SkeletonList`,props:{loading:!0}}]}],a11y:[`Placeholder rows are hidden from screen readers; announce the loading state in the screen that owns the list.`]}},{name:`SkeletonText`,marker:null,acceptsChildren:!1,props:[{name:`colors`,type:`object`,fields:[{name:`background`,type:`string`,required:!1,description:`The resting colour.`},{name:`highlight`,type:`string`,required:!1,description:`The moving shimmer or pulse colour.`}],required:!1,description:`Replaces the resting and highlight colours of the placeholder.`},{name:`fontSize`,type:`number`,required:!1,description:`The height of each line in points; left out, the base text size is used.`},{name:`lastLineWidth`,type:`stringOrNumber`,required:!1,description:`The width of the last line, so the block ends like real text.`,default:`60%`},{name:`lines`,type:`number`,required:!1,description:`How many lines of text to hold.`,default:3},{name:`radius`,type:`enumOrNumber`,enum:[`lg`,`md`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius, a named step or a number of points.`,default:`sm`},{name:`spacing`,type:`number`,required:!1,description:`The gap between lines in points.`},{name:`variant`,type:`enum`,enum:[`none`,`pulse`,`shimmer`],required:!1,description:`How the placeholder moves: a sweeping shimmer, a pulse, or none; left out, the provider or shimmer is used.`},{name:`width`,type:`stringOrNumber`,required:!1,description:`The width as points, auto, or a percentage text such as 60%.`,default:`100%`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Hold the place of a heading or a paragraph while it loads.`],whenNot:[{text:`A single block that is not text.`,instead:`Skeleton`}],do:[{note:`Use as many lines as the real text usually has.`,example:[{component:`SkeletonText`,props:{lines:3}}]}],dont:[{note:`Do not use a long run of lines for a short label.`,example:[{component:`SkeletonText`,props:{lines:12}}]}],a11y:[`The placeholder is hidden from screen readers.`]}},{name:`SlideToConfirm`,marker:null,acceptsChildren:!1,props:[{name:`disabled`,type:`boolean`,required:!1,description:`Blocks dragging and dims the control.`,default:!1},{name:`icon`,type:`node`,required:!1,description:`The handle glyph; a right chevron when left out.`},{name:`label`,type:`string`,required:!1,description:`The resting label, centred on the track.`,default:`Slide to confirm`},{name:`labels`,type:`object`,required:!1,description:`Replaces the resting, confirmed and action texts.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The track height.`,default:`md`},{name:`threshold`,type:`number`,required:!1,description:`The fraction of the track, from 0 to 1, the handle must cross to confirm.`,default:.9},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The fill colour of the track and handle.`,default:`primary`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Confirm a high-stakes or irreversible action such as paying, deleting or submitting, where a plain tap is too easy to fire by accident.`],whenNot:[{text:`A routine action the person can undo.`,instead:`Button`}],do:[{note:`Say what the slide does in the label, such as Slide to pay.`,example:[{component:`SlideToConfirm`,props:{label:`Slide to pay`}}]},{note:`Use the danger tone for destructive actions and the primary tone otherwise.`,example:[{component:`SlideToConfirm`,props:{label:`Slide to delete`,tone:`danger`}},{component:`Button`,props:{label:`Confirm with password`,variant:`outline`}}]}],dont:[{note:`Do not use it for every action on a screen; it loses its weight.`,example:[{component:`SlideToConfirm`,props:{label:`Slide to pay`}},{component:`SlideToConfirm`,props:{label:`Slide to cancel`}}]},{note:`Do not make it the only way to confirm a critical step.`,example:[{component:`SlideToConfirm`,props:{label:`Slide to delete`,tone:`danger`}}]}],a11y:[`A screen reader cannot drag the handle, so it offers a Confirm action instead; keep the label a clear verb phrase.`,`Pair a critical flow with a second accessible way to confirm.`]}},{name:`Slider`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken label of the slider.`},{name:`defaultValue`,type:`any`,required:!1,description:`The value at first, when the slider manages its own state.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks dragging and taps.`,default:!1},{name:`labelOpacity`,type:`number`,required:!1,description:`The opacity of the value bubble when it is shown.`,default:1},{name:`labelShowDuration`,type:`number`,required:!1,description:`The length in milliseconds of the value bubble's fade.`},{name:`max`,type:`number`,required:!1,description:`The largest value.`,default:100},{name:`min`,type:`number`,required:!1,description:`The smallest value.`,default:0},{name:`showLabel`,type:`any`,required:!1,description:`Shows a value bubble above the thumb: true while dragging, or always.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the track and thumb.`,default:`md`},{name:`snapThumb`,type:`boolean`,required:!1,description:`Keeps the thumb on the step positions while it is dragged.`,default:!1},{name:`step`,type:`number`,required:!1,description:`The distance between selectable values.`,default:1},{name:`thumbPressScale`,type:`number`,required:!1,description:`The scale the thumb grows to while it is pressed.`,default:1.1},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the filled track.`,default:`primary`},{name:`value`,type:`any`,required:!1,description:`The value when the parent controls it.`},{name:`variant`,type:`enum`,enum:[`bar`,`default`,`inset`,`minimal`],required:!1,description:`The look of the slider.`,default:`default`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Pick one number on a continuous or stepped scale, such as a volume, brightness or percentage.`,`Show the current value above the thumb with showLabel when the person needs to read it while dragging.`],whenNot:[{text:`The value is one of two or three fixed choices.`,instead:`Use SegmentedControl.`}],do:[{note:`Set min, max and step so every stop is a value the person would pick.`,example:[{component:`Slider`,props:{value:50,min:0,max:100,step:10,accessibilityLabel:`Volume`}}]},{note:`Set accessibilityLabel to say what the slider controls.`,example:[{component:`Slider`,props:{value:50,accessibilityLabel:`Brightness`}}]}],dont:[{note:`Do not use a step of 1 when only round tens are meaningful; the thumb stops on values nobody would pick.`,example:[{component:`Slider`,props:{value:50,min:0,max:100,step:1,accessibilityLabel:`Volume`}}]},{note:`Do not leave out accessibilityLabel; a screen reader then announces only a bare number.`,example:[{component:`Slider`,props:{value:50}}]}],a11y:[`Set accessibilityLabel to say what the value is for.`,`The screen reader's increment and decrement actions move the value by one step.`]}},{name:`SliderField`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Spoken label read out for the slider.`},{name:`animationDuration`,type:`number`,required:!1,description:`Length in milliseconds of the bubble count animation.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks interaction and dims the slider and input controls.`,default:!1},{name:`endLabel`,type:`string`,required:!1,description:`Replaces the formatted max at the end of the track.`},{name:`error`,type:`string`,required:!1,description:`Error message shown below the slider in place of helper text.`},{name:`helperText`,type:`string`,required:!1,description:`Hint text shown below the slider, hidden while an error shows.`},{name:`info`,type:`string`,required:!1,description:`Opens in a tooltip from an info icon after the label.`},{name:`inputWidth`,type:`number`,required:!1,description:`Width of each value box in pixels.`,default:72},{name:`label`,type:`string`,required:!1,description:`Field label above the slider.`},{name:`labels`,type:`object`,required:!1,description:`Replaces the spoken names of the stepper buttons and value boxes.`},{name:`leftIcon`,type:`icon`,required:!1,description:`Icon at the start of the row, outside the bounds.`},{name:`max`,type:`number`,required:!1,description:`The largest selectable value.`,default:100},{name:`min`,type:`number`,required:!1,description:`The smallest selectable value.`,default:0},{name:`range`,type:`boolean`,required:!1,description:`Enables range mode with two thumbs and a value pair.`},{name:`required`,type:`boolean`,required:!1,description:`Appends the required marker to the label.`,default:!1},{name:`rightIcon`,type:`icon`,required:!1,description:`Icon at the end of the row, outside the bounds.`},{name:`showBounds`,type:`boolean`,required:!1,description:`Shows the min and max values at the ends of the track.`,default:!0},{name:`showBubble`,type:`boolean`,required:!1,description:`A value bubble that stays above each thumb and counts to the new value.`,default:!0},{name:`showInput`,type:`boolean`,required:!1,description:`An editable value box beside the track or at each end in range mode.`,default:!1},{name:`showStepper`,type:`boolean`,required:!1,description:`Minus and plus buttons at the ends of the track in single mode.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The size of the track and thumb.`},{name:`startLabel`,type:`string`,required:!1,description:`Replaces the formatted min at the start of the track.`},{name:`step`,type:`number`,required:!1,description:`The distance between selectable values.`,default:1},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the filled track.`,default:`primary`},{name:`unit`,type:`string`,required:!1,description:`Muted text after the label, such as (%).`},{name:`variant`,type:`enum`,enum:[`bar`,`default`,`inset`,`minimal`],required:!1,description:`The visual style of the slider.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Select a numeric value or range from a bounded scale with a field label and helper text.`,`Allow dragging a thumb, stepping with buttons, or typing into an editable value box.`],whenNot:[{text:`Selecting a currency amount with unit tiers.`,instead:`AmountSlider`}],do:[{note:`Label the slider clearly and provide a unit when the value is not a plain count.`,example:[{component:`SliderField`,props:{label:`Opacity`,unit:`(%)`,min:0,max:100,step:5}}]},{note:`Show an editable value box when people need to enter an exact number.`,example:[{component:`SliderField`,props:{label:`Price range`,showInput:!0,min:1e3,max:5e4,step:500}}]}],dont:[{note:`Do not omit the unit when the value represents a percentage or specific measurement.`,example:[{component:`SliderField`,props:{label:`Opacity`,min:0,max:100,step:5}}]},{note:`Do not hide the value box when the range is wide and precise numbers matter.`,example:[{component:`SliderField`,props:{label:`Price range`,showInput:!1,min:1e3,max:5e4,step:500}}]}],a11y:[`The slider announces its label, current value and bounds to assistive technologies.`,`When value boxes are enabled, each input provides an accessible label and keyboard support.`]}},{name:`SortableList`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the list for a screen reader.`},{name:`data`,type:`array`,required:!0,description:`The rows in their current order. Each row shows the app's own content.`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns reordering off: rows cannot be lifted or moved.`,default:!1},{name:`handle`,type:`boolean`,required:!1,description:`Shows a drag handle on each row, and only the handle lifts it. Off, a long press on the row lifts it.`,default:!1},{name:`labels`,type:`object`,required:!1,description:`Replaces the Move up and Move down action names.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A person orders their own list, such as tasks, playlists or a checklist, by dragging the rows.`,`The same order must also change without a drag, which the component exposes to screen readers as Move up and Move down.`],whenNot:[{text:`The order is set by the system, such as a date or a status, and the person cannot change it.`,instead:`ListItem`}],do:[{note:`Keep it to a short list a person orders by hand, and reorder the parent state from the keys onReorder passes back.`,example:[{component:`SortableList`,props:{data:[`Pay the electricity bill`,`Book the dentist`],accessibilityLabel:`Tasks`}}]},{note:`Place it on a screen that does not scroll, so a drag is never mistaken for a scroll.`,example:[{component:`Screen`,props:{title:`Tasks`,scroll:!1},children:[{component:`SortableList`,props:{data:[`Pay the electricity bill`,`Book the dentist`],accessibilityLabel:`Tasks`}}]}]}],dont:[{note:`Do not use it for a long list; it does not virtualise, so every row mounts at once. Use a FlatList and reorder on a dedicated screen.`,example:[{component:`SortableList`,props:{data:[`Row 1`,`Row 2`,`Row 3`,`Row 4`,`Row 5`,`Row 6`,`Row 7`,`Row 8`,`Row 9`,`Row 10`],accessibilityLabel:`Every task this year`}}]},{note:`Do not place it on a scrolling screen; the drag and the scroll then fight over the same gesture.`,example:[{component:`Screen`,props:{title:`Tasks`},children:[{component:`SortableList`,props:{data:[`Pay the electricity bill`,`Book the dentist`],accessibilityLabel:`Tasks`}}]}]}],a11y:[`Each row offers Move up and Move down as screen reader actions, so a drag is never the only way to reorder.`,`Set accessibilityLabel so the list is named when a screen reader focuses it.`]}},{name:`Spacer`,marker:null,acceptsChildren:!1,props:[{name:`size`,type:`enum`,enum:[`2xl`,`3xl`,`4xl`,`lg`,`md`,`none`,`sm`,`xl`,`xs`,`xxs`],required:!1,description:`A fixed gap of this space step. Leave it out for a flexible spacer that pushes its neighbours apart.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Two siblings need a fixed gap that does not belong to either of them.`,`A flexible space should push one sibling to the far end of a row or column.`],whenNot:[{text:`Every child in a row or column needs the same gap.`,instead:`the gap of Row or Stack`}],do:[{note:`Pick a space step by name so the gap follows the shared scale.`,example:[{component:`Spacer`,props:{size:`md`}}]}],dont:[{note:`Do not stack several spacers to make a larger gap. Use the next step up.`,example:[{component:`Spacer`,props:{size:`xs`}},{component:`Spacer`,props:{size:`xs`}}]}],a11y:[`A spacer draws nothing and is skipped by a screen reader.`]}},{name:`Sparkline`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces the whole screen reader label.`},{name:`color`,type:`string`,required:!1,description:`A line colour that wins over the tone.`},{name:`data`,type:`array`,required:!0,description:`The series, oldest first; values that are not finite numbers are dropped.`},{name:`fill`,type:`boolean`,required:!1,description:`Tints the area under the line.`,default:!1},{name:`height`,type:`number`,required:!1,description:`The height in points.`,default:32},{name:`highlightLast`,type:`boolean`,required:!1,description:`Marks the last point with a dot.`,default:!0},{name:`label`,type:`string`,required:!1,description:`What the series is, read first by a screen reader.`},{name:`labels`,type:`object`,required:!1,description:`Overrides the words of the default screen reader label: noData, and range(first, end, low, high).`},{name:`strokeWidth`,type:`number`,required:!1,description:`The line thickness in points.`,default:2},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The line colour, drawn in the tone's text ink.`,default:`primary`},{name:`width`,type:`number`,required:!1,description:`The width in points; the full width of a column parent when left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show the shape of a trend in a row or a tile, where the range is the series' own and no axes are needed.`],whenNot:[{text:`Values the reader must compare against a scale or read off exactly.`,instead:`BarChart`}],do:[{note:`Keep the real figure in text beside the line.`,example:[{component:`Sparkline`,props:{data:[112940,118200,117500,125300,131800,129900,140200,147382],label:`Signups`}},{component:`StatTile`,props:{label:`Signups`,value:147382,caption:`End of period`}}]},{note:`Give it a label that says what the series is and its period.`,example:[{component:`Sparkline`,props:{data:[112940,118200,117500,125300,131800,129900,140200,147382],label:`Signups, last 30 days`,tone:`primary`}}]}],dont:[{note:`Do not use it to compare two series by size; each line uses its own range.`,example:[{component:`Sparkline`,props:{data:[112940,118200,117500,125300,131800],label:`Series A`}},{component:`Sparkline`,props:{data:[4,9,3,11,5,12,2,8,13,6],label:`Series B`,tone:`info`}}]},{note:`Do not rely on the line colour alone to say good or bad.`,example:[{component:`Sparkline`,props:{data:[4,9,3,11,5,12,2],tone:`danger`,highlightLast:!0}}]}],a11y:[`It reads as one image whose label states the start, end, low and high values, so a label is worth writing.`,`Colour never carries the meaning alone.`]}},{name:`Spinner`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader label; the message, or Loading, when left out.`},{name:`backdropColor`,type:`string`,required:!1,description:`The backdrop colour in overlay mode.`},{name:`color`,type:`string`,required:!1,description:`The indicator colour; the primary colour when left out.`},{name:`labels`,type:`object`,required:!1,description:`Replaces the spoken Loading name.`},{name:`message`,type:`string`,required:!1,description:`A caption under the indicator.`},{name:`overlay`,type:`boolean`,required:!1,description:`Draws the spinner full screen over a backdrop; ignored by the contained variant.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The indicator size, 20, 32 or 48 points.`,default:`md`},{name:`variant`,type:`enum`,enum:[`circular`,`contained`,`dots`],required:!1,description:`The indicator style; contained draws it on a tinted round container that fills its parent.`,default:`circular`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show that content or a save is in progress when the wait is short or its length is unknown.`,`Block a whole screen during a save with the overlay, or load one slow section with the contained variant.`],whenNot:[{text:`A wait with a known amount of progress.`,instead:`ProgressBar`}],do:[{note:`Add a message that says what is loading.`,example:[{component:`Spinner`,props:{message:`Loading your dashboard`}}]},{note:`Put the contained variant inside the card or section that loads.`,example:[{component:`Spinner`,props:{variant:`contained`,message:`Loading payslips`}}]}],dont:[{note:`Do not show a spinner without a message.`,example:[{component:`Spinner`,props:{}}]},{note:`Do not use the circular variant to fill a large container.`,example:[{component:`Spinner`,props:{variant:`circular`,message:`Loading payslips`}}]}],a11y:[`It reads as a progress indicator labelled by its message, so write the message as the label.`,`The contained variant announces its label once when it appears.`]}},{name:`SquircleImage`,marker:null,acceptsChildren:!1,props:[{name:`contentFit`,type:`enum`,enum:[`contain`,`cover`,`fill`,`none`,`scale-down`],required:!1,description:`How the image fits its box, in expo-image's names.`},{name:`cornerColor`,type:`string`,required:!1,description:`The colour behind the corners, painted over them on Android. Defaults to the theme's base surface.`},{name:`radius`,type:`enum`,enum:[`lg`,`md`,`none`,`pill`,`sm`,`xl`],required:!0,description:`Corner radius token of the image. none keeps a square corner; every other token gives the smooth corner.`},{name:`source`,type:`url`,required:!0,description:`The picture to show: a web address, or a local asset.`},{name:`transition`,type:`number`,required:!1,description:`The cross-fade in milliseconds when the image appears.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show a photo or a picture inside a rounded frame with the smooth squircle corner.`,`Set radius, and give the image its size in style.`],whenNot:[{text:`The picture is a person's photo in a round or rounded avatar.`,instead:`Avatar`},{text:`The picture sits behind a sign-in and needs a token to load.`,instead:`AuthedImage`}],do:[{note:`Give the image a fixed size so the corners have a box to follow.`,example:[{component:`SquircleImage`,props:{source:`https://picsum.photos/seed/webority/400/300`,radius:`xl`}}]}],dont:[{note:`Do not put the image inside a SquircleView to round it; set radius here.`,example:[{component:`SquircleView`,props:{},children:[{component:`SquircleImage`,props:{source:`https://picsum.photos/seed/webority/400/300`,radius:`xl`}}]}]}],a11y:[`Pass an accessibility label that describes the picture when it carries meaning.`,`A decorative image needs no label.`]}},{name:`SquircleView`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityHint`,type:`string`,required:!1,description:`Says what a screen reader user gets from the view, read after its name.`},{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the view for a screen reader.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A surface the library has no component for needs smooth rounded corners, such as a photo tile or a signature pad frame.`,`Set borderRadius, backgroundColor and a border in style.`],whenNot:[{text:`The surface is a themed card with a header, a footer or a press action.`,instead:`Card`}],do:[{note:`Name the view when its content needs a screen reader name.`,example:[{component:`SquircleView`,props:{accessibilityLabel:`Photo`},children:[{component:`Text`,props:{variant:`caption`},children:[`Photo taken on 12 March.`]}]}]},{note:`Use it for a surface with no component of its own, such as a photo tile.`,example:[{component:`SquircleView`,props:{},children:[{component:`Text`,props:{variant:`body`},children:[`Parcel delivered to the front desk.`]}]}]}],dont:[{note:`Do not leave the view unnamed, so a screen reader reads only the text inside it.`,example:[{component:`SquircleView`,props:{},children:[{component:`Text`,props:{variant:`caption`},children:[`Photo taken on 12 March.`]}]}]},{note:`Do not wrap a Card in SquircleView. Card already draws its own surface and corners.`,example:[{component:`SquircleView`,props:{},children:[{component:`Card`,props:{title:`Parcel`},children:[`Delivered to the front desk.`]}]}]}],a11y:[`Set accessibilityLabel so a screen reader names the view.`,`Set accessibilityHint only together with accessibilityLabel, since the hint is read after the name.`]}},{name:`StatTile`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Read instead of the label and figure.`},{name:`caption`,type:`node`,required:!1,description:`A small line under the figure, such as a period or a delta.`},{name:`flex`,type:`number`,required:!1,description:`Share of the free space along the parent's main axis, as React Native flex. Unset, the tile sizes to its content.`},{name:`icon`,type:`icon`,required:!1,description:`The leading icon in a tinted circle.`},{name:`iconVariant`,type:`enum`,enum:[`bold`,`broken`,`bulk`,`linear`,`outline`,`twotone`],required:!1,description:`The Iconsax style of an icon given as a name.`},{name:`label`,type:`node`,required:!0,description:`What the figure measures, drawn small above it: text, or a node such as sub and sup runs. The spoken label uses the text only when the label is text, so give accessibilityLabel with a node.`},{name:`labels`,type:`object`,fields:[{name:`trendDown`,type:`string`,required:!1,description:`Spoken for a downward change.`},{name:`trendFlat`,type:`string`,required:!1,description:`Spoken for a flat change.`},{name:`trendUp`,type:`string`,required:!1,description:`Spoken for an upward change.`}],required:!1,description:`The words the spoken trend uses for each direction. Give only the ones to change.`},{name:`loading`,type:`boolean`,required:!1,description:`Draws a placeholder of the same footprint while the figure loads.`,default:!1},{name:`sparkline`,type:`node`,required:!1,description:`A small chart under the text, usually a Sparkline.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The tone of the icon circle.`,default:`primary`},{name:`trend`,type:`object`,fields:[{name:`direction`,type:`enum`,enum:[`down`,`flat`,`up`],required:!0,description:`Which way the figure moved; flat draws a dash and no sign.`},{name:`goodWhen`,type:`enum`,enum:[`down`,`up`],required:!1,description:`Which direction is good news, so the change reads green or red.`,default:`up`},{name:`period`,type:`string`,required:!1,description:`What the change is measured against, written in full, such as vs last month.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The change; a number is a percentage drawn without its own sign, a string is drawn as given.`}],required:!1,description:`How the figure changed, drawn under it as an arrow, a sign and the change.`},{name:`value`,type:`node`,required:!0,description:`The figure is always given: text or a number is drawn in the heading style, a node as is.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show one headline figure with its label, such as a dashboard KPI.`,`Make the figure a button that opens its detail by giving it a press handler.`],whenNot:[{text:`Several figures that belong together in rows of label and value.`,instead:`Descriptions`}],do:[{note:`Write the label as what is measured and put the period in the caption or trend.`,example:[{component:`StatTile`,props:{label:`Revenue`,value:`24k`,icon:`tick-circle`,trend:{value:12,direction:`up`,period:`vs last month`}}}]},{note:`Set goodWhen on a trend where a falling figure is good news.`,example:[{component:`StatTile`,props:{label:`Bounce rate`,value:`42%`,trend:{value:2.1,direction:`down`,goodWhen:`down`,period:`vs last month`}}}]}],dont:[{note:`Do not rely on the trend colour alone; the arrow and sign already carry the direction.`,example:[{component:`StatTile`,props:{label:`Revenue vs last month`,value:`24k`,icon:`tick-circle`,tone:`success`,caption:`12%`}}]},{note:`Do not put long text in the value; it is cut to one line.`,example:[{component:`StatTile`,props:{label:`Bounce rate`,value:`42% (down is good)`,trend:{value:2.1,direction:`down`,period:`vs last month`}}}]}],a11y:[`A text figure is read as the label, the value and the trend, such as up 12.4% vs last month.`,`A node figure needs an accessibility label of its own.`]}},{name:`StatusBadge`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Read instead of the label.`},{name:`color`,type:`string`,required:!1,description:`A status colour of the app's own as six-digit hex, for a status the backend names with a colour; it wins over the tone.`},{name:`dot`,type:`boolean`,required:!1,description:`A small disc before the label in the status colour.`,default:!1},{name:`ink`,type:`enum`,enum:[`primary`,`tone`],required:!1,description:`Tone draws the label in the tone colour; primary draws it in the body text colour, except on a solid fill.`,default:`tone`},{name:`label`,type:`string`,required:!0,description:`The status as the reader should see it, such as Active or Pending review.`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the skeleton placeholder at the pill's footprint.`,default:!1},{name:`padding`,type:`enum`,enum:[`default`,`md`,`sm`],required:!1,description:`Default keeps the size's minimum height and side space; sm or md puts that space token at the sides with no minimum height.`,default:`default`},{name:`size`,type:`enum`,enum:[`md`,`sm`],required:!1,description:`A 22 or 24 point pill.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The semantic colour.`,default:`neutral`},{name:`variant`,type:`enum`,enum:[`filled`,`flat`,`ghost`,`outline`,`soft`,`solid`],required:!1,description:`Soft is a light tint with a tone border, flat is the soft tint with no border, outline drops the fill, solid fills with the tone. Ghost draws only the label in the tone colour. Filled is an opaque soft fill with no edge.`,default:`soft`},{name:`weight`,type:`enum`,enum:[`bold`,`semibold`],required:!1,description:`The weight of the label.`,default:`semibold`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Name a record's status in a semantic colour, such as Active, Pending or Rejected.`],whenNot:[{text:`A status the person taps, selects or closes.`,instead:`Chip`},{text:`A count anchored to an icon.`,instead:`Badge`}],do:[{note:`Map the app's status to a label and a tone in one place with defineStatusMap, and send unknown statuses to neutral.`,example:[{component:`StatusBadge`,props:{label:`Active`,tone:`success`}}]},{note:`Keep the label short and in the reader's words.`,example:[{component:`StatusBadge`,props:{label:`Done`,tone:`success`}}]}],dont:[{note:`Do not map an unknown status to the danger tone.`,example:[{component:`StatusBadge`,props:{label:`Unknown`,tone:`danger`}}]},{note:`Do not rely on the tone alone to say the status; the label always says it.`,example:[{component:`StatusBadge`,props:{label:`Success`,tone:`success`}}]}],a11y:[`It reads as plain text with the label as its name, so the label must carry the status without colour.`,`Use accessibilityLabel only when the spoken form needs more than the label.`]}},{name:`StatusBar`,marker:`AppStatusBar`,acceptsChildren:!1,props:[{name:`os`,type:`enum`,enum:[`Ios`,`Android`],required:!0},{name:`colorMode`,type:`enum`,enum:[`light`,`dark`],required:!1},{name:`time`,type:`string`,required:!1,description:`The clock as shown, such as 9:41.`},{name:`signal`,type:`number`,required:!1,description:`Signal strength in bars, 0 to 4.`},{name:`battery`,type:`number`,required:!1,description:`Battery level in percent, 0 to 100.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`},{name:`Stepper`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The progressbar's screen reader name, replacing the progress summary.`},{name:`activeStep`,type:`number`,required:!1,nullable:!0,description:`The zero-based index of the current step, with every earlier step done; null or a negative number means none is active.`},{name:`defaultActiveStep`,type:`number`,required:!1,nullable:!0,description:`The starting active step when activeStep is left out.`,default:0},{name:`labels`,type:`object`,required:!1,description:`Overrides the words the stepper speaks and draws: the step names, their statuses, the progress summary and the segmented caption.`},{name:`loading`,type:`boolean`,required:!1,description:`Draws the skeleton placeholder in place of the stepper while its steps load.`,default:!1},{name:`pressMode`,type:`enum`,enum:[`back`,`none`,`select`],required:!1,description:`What a tap on a step does: nothing, returning to a done step, or choosing any step.`,default:`none`},{name:`showCaption`,type:`boolean`,required:!1,description:`Draws the caption above the bars in the segmented variant.`,default:!0},{name:`steps`,type:`array`,itemFields:[{name:`description`,type:`string`,required:!1,description:`A line under the label, drawn in the vertical variant.`},{name:`icon`,type:`node`,required:!1,description:`An icon drawn in the step's circle in place of its number.`},{name:`key`,type:`string`,required:!0,description:`A stable id for the step.`},{name:`label`,type:`string`,required:!0,description:`The step's name as the reader sees it.`}],required:!0,description:`The steps in the order the person goes through them.`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The colour of the steps that are reached.`,default:`primary`},{name:`variant`,type:`enum`,enum:[`horizontal`,`segmented`,`vertical`],required:!1,description:`The layout: circles in a row, circles in a column with descriptions, or one bar per step.`,default:`horizontal`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A multi-step flow, such as checkout, sign-up or onboarding, where the person needs to see how far they have got.`,`A fixed sequence where every step before the active one is done and no step is skipped.`],whenNot:[{text:`The sections can be opened in any order, with no sequence between them.`,instead:`Tabs`}],do:[{note:`Pass the steps in the order the person goes through them, and set activeStep to the current step.`,example:[{component:`Stepper`,props:{steps:[{key:`cart`,label:`Cart`},{key:`shipping`,label:`Shipping`},{key:`payment`,label:`Payment`}],activeStep:1}}]},{note:`Set pressMode to back so a person can return to a finished step and no further.`,example:[{component:`Stepper`,props:{steps:[{key:`cart`,label:`Cart`},{key:`shipping`,label:`Shipping`},{key:`payment`,label:`Payment`}],activeStep:2,pressMode:`back`}}]}],dont:[{note:`Leave activeStep out and the stepper keeps its own position, so the page cannot show where the person really is.`,example:[{component:`Stepper`,props:{steps:[{key:`cart`,label:`Cart`},{key:`shipping`,label:`Shipping`},{key:`payment`,label:`Payment`}]}}]},{note:`Set pressMode to select on a checkout only when jumping ahead is allowed, since it lets a person skip to steps they have not reached.`,example:[{component:`Stepper`,props:{steps:[{key:`cart`,label:`Cart`},{key:`shipping`,label:`Shipping`},{key:`payment`,label:`Payment`}],activeStep:2,pressMode:`select`}}]}],a11y:[`The stepper is a progressbar whose value is the number of steps reached, and each step reads its position, label and status.`,`A step that a tap can change is a button that reports whether it is selected and whether it is disabled.`]}},{name:`Swipeable`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Names the row for a screen reader.`},{name:`disabled`,type:`boolean`,required:!1,description:`Turns the swipe off, so the row cannot be dragged.`,default:!1},{name:`fullSwipeThreshold`,type:`number`,required:!1,description:`The distance in points past which the first action fires and the row slides away.`,default:200},{name:`threshold`,type:`number`,required:!1,description:`The distance in points that fully reveals the row of actions.`,default:80}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`A list row or card should offer quick actions, such as archive or delete, on a swipe.`,`The same actions must also stay reachable without a swipe, which the component exposes to screen readers.`],whenNot:[{text:`The row always shows its actions on screen, with no swipe needed.`,instead:`ListItem`}],do:[{note:`Wrap one list row so the swipe reveals actions for that row only.`,example:[{component:`Swipeable`,props:{accessibilityLabel:`Inbox`},children:[{component:`ListItem`,props:{title:`Inbox`,subtitle:`3 unread messages`}}]}]},{note:`Give the row an accessibilityLabel so a screen reader announces its name.`,example:[{component:`Swipeable`,props:{accessibilityLabel:`Sent message`},children:[{component:`Text`,props:{variant:`body`},children:[`Lunch is at noon today.`]}]}]}],dont:[{note:`Do not wrap a whole list in one Swipeable; a swipe then moves every row together.`,example:[{component:`Swipeable`,props:{accessibilityLabel:`Inbox`},children:[{component:`ListItem`,props:{title:`Inbox`,subtitle:`3 unread messages`}},{component:`ListItem`,props:{title:`Sent`,subtitle:`12 messages`}}]}]},{note:`Do not leave the row unnamed; a screen reader then reads only its text.`,example:[{component:`Swipeable`,props:{},children:[{component:`Text`,props:{variant:`body`},children:[`Lunch is at noon today.`]}]}]}],a11y:[`Each swipe action is also a screen reader action on the row, so a swipe is never the only way to act.`,`Set accessibilityLabel so the row is named when a screen reader focuses it.`]}},{name:`Switch`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the switch.`},{name:`bounce`,type:`boolean`,required:!1,description:`The thumb briefly scales up when the value changes.`,default:!1},{name:`defaultValue`,type:`boolean`,required:!1,description:`The starting state when value is left out.`,default:!1},{name:`description`,type:`node`,required:!1,description:`A secondary line under the label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks the press and dims the control.`,default:!1},{name:`error`,type:`string`,required:!1,description:`An error line under the label that also outlines the off track; true shows the state with no message.`},{name:`helperText`,type:`node`,required:!1,description:`A hint under the label.`},{name:`label`,type:`node`,required:!1,description:`A string or a node drawn beside the control.`},{name:`layout`,type:`enum`,enum:[`inline`,`row`],required:!1,description:`Inline puts the text beside the control; row puts the text on the left and the control on the right, with the whole row pressable.`,default:`inline`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The track and thumb size.`,default:`md`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`The track colour when on.`,default:`primary`},{name:`value`,type:`boolean`,required:!1,description:`The controlled on or off state.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Turn a setting on or off where the change takes effect at once.`],whenNot:[{text:`A choice that needs an explicit submit, such as a form field.`,instead:`Checkbox`},{text:`Choosing one of several values.`,instead:`SegmentedControl`}],do:[{note:`Label it with what turns on, not with the word on.`,example:[{component:`Switch`,props:{value:!0,label:`Airplane mode`}}]},{note:`Use the row layout for a settings list so the whole row is the target.`,example:[{component:`Switch`,props:{value:!0,layout:`row`,label:`Wi-Fi`,description:`Connect to available networks`}}]}],dont:[{note:`Do not use it to submit or confirm something.`,example:[{component:`Switch`,props:{value:!1,label:`Confirm payment`}}]},{note:`Do not use the danger tone for a normal setting.`,example:[{component:`Switch`,props:{value:!0,tone:`danger`,label:`Dark mode`}}]}],a11y:[`A node label needs an accessibilityLabel, since a screen reader cannot read the node.`,`The control reads as a switch with its state, so the label must name what it controls.`]}},{name:`Tabs`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the tab list.`},{name:`activeKey`,type:`string`,required:!0,description:`The key of the selected tab.`},{name:`align`,type:`enum`,enum:[`center`,`left`],required:!1,description:`The tab alignment when the list is not scrollable.`,default:`left`},{name:`radius`,type:`enumOrNumber`,enum:[`lg`,`md`,`none`,`pill`,`sm`,`xl`],required:!1,description:`The corner radius of the track, pill or underline ends.`},{name:`scrollable`,type:`boolean`,required:!1,description:`Scrolls a long tab list sideways instead of sharing the width equally.`,default:!1},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Scales the text, tab padding and icon together.`,default:`md`},{name:`tabs`,type:`array`,itemFields:[{name:`badge`,type:`stringOrNumber`,required:!1,description:`A count or text drawn after the label.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks the tab.`},{name:`icon`,type:`icon`,required:!1,description:`A leading icon drawn in the label colour.`},{name:`key`,type:`string`,required:!0,description:`The tab's stable identifier.`},{name:`label`,type:`string`,required:!0,description:`The tab's text.`}],required:!0,description:`The tabs in order.`},{name:`variant`,type:`enum`,enum:[`pills`,`segmented`,`underline`],required:!1,description:`A sliding underline, a tinted pill, or a filled track with a thumb.`,default:`underline`}],itemsTakeAction:[`tabs`],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Switch between sections of one screen, such as Overview, Activity and Team.`,`Show a long list of sections that scrolls sideways.`],whenNot:[{text:`Choosing a value, such as a filter or a unit.`,instead:`SegmentedControl`},{text:`An ordered flow where completion state matters.`,instead:`Stepper`}],do:[{note:`Keep labels to one or two words so every tab fits.`,example:[{component:`Tabs`,props:{tabs:[{key:`home`,label:`Home`},{key:`feed`,label:`Feed`},{key:`team`,label:`Team`}],activeKey:`home`}}]},{note:`Use scrollable when the labels no longer fit the width.`,example:[{component:`Tabs`,props:{scrollable:!0,tabs:[{key:`overview`,label:`Overview`},{key:`activity`,label:`Activity`},{key:`team`,label:`Team`},{key:`settings`,label:`Settings`},{key:`profile`,label:`Profile`}],activeKey:`overview`}}]}],dont:[{note:`Do not nest tab bars.`,example:[{component:`Tabs`,props:{tabs:[{key:`main`,label:`Main`},{key:`sub`,label:`Sub`}],activeKey:`main`}}]},{note:`Do not use more than five tabs without scrolling.`,example:[{component:`Tabs`,props:{tabs:[{key:`home`,label:`Home`},{key:`feed`,label:`Feed`},{key:`team`,label:`Team`},{key:`settings`,label:`Settings`},{key:`profile`,label:`Profile`},{key:`help`,label:`Help`}],activeKey:`home`}}]}],a11y:[`The bar reads as a tab list and each tab as a tab with its selected state, so keep labels meaningful.`,`A disabled tab is announced as unavailable; do not hide a section behind one without saying why.`]}},{name:`TagInput`,marker:null,acceptsChildren:!1,props:[{name:`defaultValue`,type:`array`,required:!1,description:`The starting tags when value is left out.`,default:[]},{name:`disabled`,type:`boolean`,required:!1,description:`Keeps the tags visible but blocks adding and removing.`,default:!1},{name:`error`,type:`string`,required:!1,description:`A string puts the field in the error state and replaces the helper text; true shows the error state alone.`},{name:`helperText`,type:`string`,required:!1,description:`A message below the field.`},{name:`label`,type:`string`,required:!1,description:`The label above the field.`},{name:`maxTags`,type:`number`,required:!1,description:`Rejects a tag past this count; unlimited when left out.`},{name:`placeholder`,type:`string`,required:!1,description:`The hint shown while the field is empty.`},{name:`required`,type:`boolean`,required:!1,description:`Adds the required marker to the label.`},{name:`separators`,type:`array`,required:!1,description:`The characters that commit the draft as a tag.`,default:[`,`]},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`The field size.`,default:`md`},{name:`unique`,type:`boolean`,required:!1,description:`Rejects a tag that already exists, ignoring case.`,default:!0},{name:`value`,type:`array`,required:!1,description:`The controlled list of tags.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`The resting fill and border treatment.`,default:`outline`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Collect a small set of discrete values, such as skills, recipients or filters.`],whenNot:[{text:`One free-text value.`,instead:`Input`},{text:`A closed, known list of choices.`,instead:`Select`}],do:[{note:`Say how a tag is committed in the helper text, such as Press comma to add.`,example:[{component:`TagInput`,props:{label:`Skills`,value:[`React Native`,`TypeScript`],helperText:`Press comma to add.`}}]},{note:`Set maxTags when the list has a natural limit.`,example:[{component:`TagInput`,props:{label:`Skills`,value:[`React Native`],maxTags:3,helperText:`Add up to three skills.`}}]}],dont:[{note:`Do not use it for a long list; the tags wrap and push the form down.`,example:[{component:`TagInput`,props:{label:`Tags`,placeholder:`Add tags`,value:[]}}]},{note:`Do not rely on the error colour alone; write the error text.`,example:[{component:`TagInput`,props:{label:`Skills`,value:[`React Native`],error:``}}]}],a11y:[`The label names the field, so always give one.`,`Backspace on an empty draft removes the last tag, and a pending draft commits when the field loses focus.`]}},{name:`Text`,marker:null,acceptsChildren:!0,props:[{name:`align`,type:`enum`,enum:[`auto`,`center`,`justify`,`left`,`right`],required:!1,description:`The text alignment.`},{name:`color`,type:`enum`,enum:[`brand`,`danger`,`disabled`,`info`,`inverse`,`link`,`neutral`,`primary`,`secondary`,`success`,`tertiary`,`textStrong`,`warning`],required:!1,description:`A text role, a tone or brand (the readable brand ink); the variant's own colour when left out.`},{name:`italic`,type:`boolean`,required:!1,description:`Draws the text in italics.`,default:!1},{name:`numberOfLines`,type:`number`,required:!1,description:`Cuts the text to this many lines, ending with an ellipsis.`},{name:`size`,type:`enum`,enum:[`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`base`,`lg`,`sm`,`xl`,`xs`],required:!1,description:`The text step; the variant's own size when left out.`},{name:`strikethrough`,type:`boolean`,required:!1,description:`Draws a line through the text, for a done or reversed item.`,default:!1},{name:`underline`,type:`boolean`,required:!1,description:`Draws a line under the text.`,default:!1},{name:`variant`,type:`enum`,enum:[`body`,`bodySmall`,`caption`,`display`,`h1`,`h2`,`h3`,`label`,`overline`,`title`],required:!1,description:`The built-in typography variant; unknown names fall back to body.`,default:`body`},{name:`weight`,type:`enum`,enum:[`bold`,`medium`,`normal`,`semibold`],required:!1,description:`The font weight override.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Any readable text: headings, paragraphs, labels, captions or links rendered as text.`],whenNot:[{text:`A button or interactive action.`,instead:`Button`},{text:`A multi-line selectable input.`,instead:`Input`}],do:[{note:`Pick the variant that matches the text's role in the design.`,example:[{component:`Text`,props:{variant:`body`},children:[`A plain paragraph.`]}]},{note:`Use italic and underline only for emphasis, not for layout.`,example:[{component:`Text`,props:{variant:`body`,italic:!0},children:[`Note: this is optional.`]}]}],dont:[{note:`Do not use a heading variant for body copy.`,example:[{component:`Text`,props:{variant:`h1`},children:[`A plain paragraph.`]}]},{note:`Do not underline text to fake a link or action.`,example:[{component:`Text`,props:{variant:`body`,underline:!0},children:[`Click here.`]}]}],a11y:[`Set accessibilityLabel when the visible text does not describe the purpose.`,`Colour should reinforce, not replace, the meaning carried by the text.`]}},{name:`TimePicker`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The screen reader name of the field.`},{name:`clearable`,type:`boolean`,required:!1,description:`Shows a clear control once a time is set.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks opening the sheet.`},{name:`error`,type:`string`,required:!1,description:`Error text under the field.`},{name:`format`,type:`enum`,enum:[`12h`,`24h`],required:!1,description:`Wheel labelling and whether an AM or PM wheel shows.`,default:`12h`},{name:`help`,type:`node`,required:!1,description:`Content drawn beside the label, outside the trigger, such as an info button.`},{name:`helperText`,type:`string`,required:!1,description:`Text under the field.`},{name:`label`,type:`string`,required:!1,description:`Field label (field mode).`},{name:`labels`,type:`object`,required:!1,description:`Replaces the sheet title, button texts and spoken names.`},{name:`leftIcon`,type:`node`,required:!1,description:`Icon slot before the text, such as a clock.`},{name:`minuteStep`,type:`enum`,enum:[1,5,15,30],required:!1,description:`Minute wheel step.`,default:1},{name:`open`,type:`boolean`,required:!1,description:`Controlled-modal visibility; leave out and the component shows a field and opens its own sheet.`},{name:`placeholder`,type:`string`,required:!1,description:`Text shown while no time is chosen.`},{name:`required`,type:`boolean`,required:!1,description:`Marks the field as required.`},{name:`size`,type:`enum`,enum:[`lg`,`md`,`sm`],required:!1,description:`Field size.`},{name:`trailing`,type:`node`,required:!1,description:`Slot at the end of the trigger, a chevron when left out.`},{name:`triggerLabels`,type:`object`,required:!1,description:`Copy for the field (placeholder, selection, noSelection, clear), apart from labels, which is the sheet copy.`},{name:`value`,type:`object`,fields:[{name:`hour`,type:`number`,required:!0,description:`The hour 0 to 23 in 24 hour form.`},{name:`minute`,type:`number`,required:!0,description:`The minute 0 to 59.`}],required:!1,description:`The selected time.`},{name:`variant`,type:`enum`,enum:[`filled`,`outline`,`underline`],required:!1,description:`Field look; the theme setting decides when it is left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Ask for a time of day, such as a start time or a reminder.`,`The value is an hour and a minute, not a duration.`],whenNot:[{text:`A length of time in hours and minutes.`,instead:`WheelPickerDuration`},{text:`A date, or a date with a time.`,instead:`DatePicker`}],do:[{note:`Add a visible label that says which time is wanted.`,example:[{component:`TimePicker`,props:{label:`Start time`,placeholder:`Pick a time`}}]},{note:`Set minuteStep to 15 for scheduling flows.`,example:[{component:`TimePicker`,props:{label:`Meeting time`,minuteStep:15}}]}],dont:[{note:`Do not leave the field without a label.`,example:[{component:`TimePicker`,props:{placeholder:`Pick a time`}}]},{note:`Do not use it for a duration such as 90 minutes.`,example:[{component:`TimePicker`,props:{label:`Meeting duration`,minuteStep:15}}]}],a11y:[`Each wheel can be adjusted with a screen reader swipe; keep the title short and clear.`,`Keep error text short and say how to fix the time.`]}},{name:`Timeline`,marker:null,acceptsChildren:!1,props:[{name:`items`,type:`array`,itemFields:[{name:`children`,type:`node`,required:!1,description:`Content below the text block.`},{name:`color`,type:`string`,required:!1,description:`Overrides the dot colour for a stage no status produces; the halo follows it.`},{name:`description`,type:`string`,required:!1,description:`Supporting sentence under the meta line.`},{name:`icon`,type:`node`,required:!1,description:`Replaces the dot and its halo.`},{name:`meta`,type:`string`,required:!1,description:`A timestamp, an actor or another metadata line under the title.`},{name:`status`,type:`enum`,enum:[`cancelled`,`current`,`done`,`onHold`,`rejected`,`skipped`,`upcoming`],required:!1,description:`Drives the dot colour on the progress variant; a feed shows every entry as done when it is left out.`},{name:`title`,type:`string`,required:!0,description:`The entry headline.`}],required:!0,description:`The entries in order, first step or oldest first.`},{name:`orientation`,type:`enum`,enum:[`horizontal`,`vertical`],required:!1,description:`Vertical stacks entries beside a rail, horizontal gives each entry an equal column.`,default:`vertical`},{name:`variant`,type:`enum`,enum:[`feed`,`progress`],required:!1,description:`Feed is an audit trail, progress is a status tracker.`,default:`feed`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show what has happened to a record, such as a sign-off or order history.`,`Track a record through stages where an entry can end in a terminal status.`],whenNot:[{text:`A linear flow where the only question is which step the person is on.`,instead:`Stepper`}],do:[{note:`Give every entry a short title and put the time or actor in meta.`,example:[{component:`Timeline`,props:{variant:`feed`,items:[{title:`Raised`,meta:`12 Aug, 9:04 am`},{title:`Approved`,meta:`12 Aug, 11:20 am`}]}}]},{note:`Use status on the progress variant so each stage reads at a glance.`,example:[{component:`Timeline`,props:{variant:`progress`,items:[{title:`Requirement raised`,status:`done`},{title:`Client sign-off`,status:`current`},{title:`Development`,status:`upcoming`}]}}]}],dont:[{note:`Do not put long paragraphs in a title; use description for the detail.`,example:[{component:`Timeline`,props:{variant:`feed`,items:[{title:`The requirement was raised by the client and requires review before it can move to the next stage`,description:`Requires review.`}]}}]},{note:`Do not rely on dot colour alone to carry the meaning; keep the title clear.`,example:[{component:`Timeline`,props:{variant:`progress`,items:[{title:`Step one`,color:`green`},{title:`Step two`,color:`red`}]}}]}],a11y:[`Each entry reads as its title, meta and description in order, so keep that text complete without the dot colour.`,`A custom icon replaces the status dot, so say the status in the title or description.`]}},{name:`Toast`,marker:null,acceptsChildren:!1,props:[{name:`toast`,type:`object`,fields:[{name:`action`,type:`object`,fields:[{name:`label`,type:`string`,required:!0,description:`The trailing action text.`}],required:!1,description:`Trailing action on the toast.`},{name:`countdown`,type:`boolean`,required:!1,description:`Draws a bar along the bottom edge that empties over the duration.`},{name:`description`,type:`string`,required:!1,description:`Supporting line under the message.`},{name:`duration`,type:`number`,required:!1,description:`Milliseconds before it dismisses itself; 0 keeps it until dismissed.`,default:3e3},{name:`icon`,type:`node`,required:!1,description:`Replaces the leading tone icon.`},{name:`id`,type:`string`,required:!0,description:`Names the toast; the host uses it to dismiss and replace.`},{name:`message`,type:`string`,required:!0,description:`The toast headline.`},{name:`position`,type:`enum`,enum:[`bottom`,`top`],required:!1,description:`Edge the toast sits at.`,default:`bottom`},{name:`tone`,type:`enum`,enum:[`danger`,`info`,`neutral`,`primary`,`success`,`warning`],required:!1,description:`Icon and tint of the toast.`,default:`neutral`}],required:!0,description:`The message the toast shows.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Confirm a quick result without stopping the person, such as a save or a copy.`,`Report a background failure the person does not need to answer right now.`],whenNot:[{text:`A message the person must read before going on.`,instead:`Dialog`},{text:`A message that belongs to one part of the screen and stays there.`,instead:`Banner`}],do:[{note:`Keep the message to a short phrase and use description for the detail.`,example:[{component:`Toast`,props:{toast:{id:`do-1`,message:`Profile saved`,description:`Your changes are now live for everyone to see.`}}}]},{note:`Pick the tone that matches the outcome: success, danger, warning or info.`,example:[{component:`Toast`,props:{toast:{id:`do-2`,message:`Connection lost`,tone:`danger`}}}]}],dont:[{note:`Do not put the only way to finish a task in a toast action; it disappears.`,example:[{component:`Toast`,props:{toast:{id:`dont-1`,message:`Draft saved`,action:{label:`Publish`}}}}]},{note:`Do not stack many toasts at once; the host keeps three.`,example:[{component:`Toast`,props:{toast:{id:`dont-2a`,message:`File uploaded`}}},{component:`Toast`,props:{toast:{id:`dont-2b`,message:`Profile saved`}}},{component:`Toast`,props:{toast:{id:`dont-2c`,message:`Message sent`}}}]}],a11y:[`A toast with an action stays longer when a screen reader is on; keep its text complete without the icon.`,`Do not rely on the tint alone; the message must say what happened.`]}},{name:`Tooltip`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Screen reader name of the tooltip.`},{name:`action`,type:`object`,fields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Replaces the button text for a screen reader.`},{name:`label`,type:`string`,required:!0,description:`The button text.`}],required:!1,description:`Rich only: one text button.`},{name:`content`,type:`node`,required:!0,description:`The tooltip body; a string uses the default text styling.`},{name:`hideOnContentPress`,type:`boolean`,required:!1,description:`Tapping the bubble dismisses it.`,default:!0},{name:`labels`,type:`object`,required:!1,description:`Replaces the spoken names of the close area, the long-press hint and the fallback.`},{name:`maxWidth`,type:`number`,required:!1,description:`Widest the bubble grows, in points; 240 plain, 280 rich when left out.`},{name:`open`,type:`boolean`,required:!1,description:`Controls the tooltip when the trigger is manual.`},{name:`placement`,type:`enum`,enum:[`auto`,`bottom`,`left`,`right`,`top`],required:!1,description:`Where the bubble sits; auto picks the side with the most room, and left and right read as auto on a rich tooltip.`,default:`auto`},{name:`showArrow`,type:`boolean`,required:!1,description:`Draws the caret toward the trigger.`,default:!0},{name:`title`,type:`string`,required:!1,description:`Rich only: one line over the content.`},{name:`trigger`,type:`enum`,enum:[`longPress`,`manual`,`press`],required:!1,description:"What opens the tooltip; manual follows `open`."},{name:`variant`,type:`enum`,enum:[`plain`,`rich`],required:!1,description:`Plain is a short dark hint; rich is a light card with a title, the content and one action.`,default:`plain`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Explain an icon-only button or a shortened label on demand.`,`Give a short secondary explanation that should not take space until asked for.`],whenNot:[{text:`Content with inputs, a list or more than one action.`,instead:`BottomSheet`},{text:`A hint every person needs to read.`,instead:`Banner`}],do:[{note:`Keep plain tooltips to one short line.`,example:[{component:`Tooltip`,props:{content:`Long-press to see more`,variant:`plain`,placement:`auto`,trigger:`press`},children:`Show details`}]},{note:`Use the rich variant when the hint needs a title or one action.`,example:[{component:`Tooltip`,props:{content:`An action that deletes this item`,variant:`rich`,title:`Delete item`,action:{label:`Delete`},placement:`bottom`,trigger:`press`},children:`Delete`}]}],dont:[{note:`Do not put the only copy of important information in a tooltip.`,example:[{component:`Tooltip`,props:{content:`Your payment has failed. Please contact support at support@example.com to resolve this.`,variant:`plain`,placement:`auto`,trigger:`press`},children:`View payment status`}]},{note:`Do not wrap a trigger that already has its own context menu in a long-press tooltip.`,example:[{component:`Tooltip`,props:{content:`Edit this record`,placement:`auto`,trigger:`longPress`},children:`Menu button`}]}],a11y:[`A rich tooltip moves screen reader focus into itself and back on close; keep its title and content short.`,`Set accessibilityLabel when the content is a node with no readable text.`]}},{name:`Tour`,marker:null,acceptsChildren:!1,props:[{name:`labels`,type:`object`,fields:[{name:`back`,type:`string`,required:!1,description:`Back button text.`,default:`Back`},{name:`done`,type:`string`,required:!1,description:`Done button text.`,default:`Done`},{name:`next`,type:`string`,required:!1,description:`Next button text.`,default:`Next`},{name:`position`,type:`string`,required:!1,description:`The step counter text, given the step number and the total as the function (step, total).`,default:`Step N of M`},{name:`skip`,type:`string`,required:!1,description:`Skip button text.`,default:`Skip`}],required:!1,description:`Button texts of the step card.`},{name:`open`,type:`boolean`,required:!0,description:`Runs the tour while true.`},{name:`tourId`,type:`string`,required:!0,description:`Names the tour in the seen store.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Introduce a screen to a first time visitor, one highlighted view at a time.`,`Point at views the person might miss after a release adds a feature.`],whenNot:[{text:`Help that must stay on screen while the person works.`,instead:`Banner`},{text:`A hint for one control, shown on demand.`,instead:`Tooltip`}],do:[{note:`Keep each step to one view and one or two sentences.`,example:[{component:`Tour`,props:{tourId:`feature-tour`,open:!0}}]},{note:`Give the tour a stable tourId so it shows once per person.`,example:[{component:`Tour`,props:{tourId:`onboarding-tour`,open:!0}}]}],dont:[{note:`Do not start a tour on every launch.`,example:[{component:`Tour`,props:{tourId:`launch-tour`,open:!0}}]},{note:`Do not point a step at a view that may be off screen; it is skipped.`,example:[{component:`Tour`,props:{tourId:`offscreen-tour`,open:!0}}]}],a11y:[`The step card is read like a dialog; keep titles and descriptions complete on their own.`,`Skip stays available on every step and by the Android back button.`]}},{name:`TypingIndicator`,marker:null,acceptsChildren:!1,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Screen reader name when there is no visible label.`,default:`Typing`},{name:`bubble`,type:`boolean`,required:!1,description:`Draws the dots inside a received message bubble.`,default:!0},{name:`label`,type:`string`,required:!1,description:`Line shown beside the dots and read by screen readers, such as "Asha is typing".`},{name:`labels`,type:`object`,required:!1,description:`Replaces the spoken Typing name.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Show that the other person is writing a reply at the foot of a conversation.`],whenNot:[{text:`Waiting for a request or a screen to load.`,instead:`Spinner`}],do:[{note:`Put it in the typing slot of the message list so it sits under the newest message.`,example:[{component:`MessageBubble`,props:{side:`mine`,text:`Are you free to talk?`}},{component:`TypingIndicator`,props:{label:`Asha is typing`}}]},{note:`Name who is typing in the label when more than one person can write.`,example:[{component:`TypingIndicator`,props:{label:`Asha is typing`}}]}],dont:[{note:`Do not leave it on screen after the reply arrives.`,example:[{component:`MessageBubble`,props:{side:`mine`,text:`Are you free to talk?`}},{component:`MessageBubble`,props:{side:`theirs`,text:`Yes I am free to talk.`}},{component:`TypingIndicator`,props:{label:`Asha is typing`}}]},{note:`Do not use it as a general loading signal.`,example:[{component:`TypingIndicator`,props:{label:`Loading data`}}]}],a11y:[`It is not announced when it appears; a person hears the reply when it arrives.`,`Set accessibilityLabel when there is no visible label so the dots still have a name.`]}},{name:`WheelPickerColumns`,marker:null,acceptsChildren:!1,props:[{name:`columns`,type:`array`,itemFields:[{name:`gapAfter`,type:`number`,required:!1,description:`Empty space after the column in points.`},{name:`items`,type:`array`,itemFields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken text for a screen reader.`},{name:`label`,type:`string`,required:!0,description:`The text displayed for this row.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value returned when this row is selected.`}],required:!0,description:`The rows.`},{name:`key`,type:`string`,required:!0,description:`Names the column.`},{name:`label`,type:`string`,required:!0,description:`The column name for a screen reader.`},{name:`separator`,type:`string`,required:!1,description:`Text drawn after the column such as ":".`},{name:`unit`,type:`string`,required:!1,description:`Small label beside the selected row.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The selected item's value.`},{name:`width`,type:`number`,required:!1,description:`Fixed width in points, 64 when left out.`}],required:!0,description:`Several wheels side by side.`},{name:`disabled`,type:`boolean`,required:!1,description:`Locks scrolling and dims the wheels.`,default:!1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,component:`WheelPicker`,fixedProps:{mode:`columns`},usage:{when:[`Choose from a short ordered set on each of several wheels, such as colour and size.`],whenNot:[{text:`One value from a long or searchable list.`,instead:`Select`},{text:`A time of day.`,instead:`TimePicker`}],do:[{note:`Give every column a label so a screen reader names it.`,example:[{component:`WheelPickerColumns`,props:{columns:[{key:`colour`,label:`Colour`,value:`Blue`,items:[{value:`Red`,label:`Red`},{value:`Blue`,label:`Blue`}]}]}}]}],dont:[{note:`Do not put more than a handful of rows on a wheel; people cannot scan a long one.`,example:[{component:`WheelPickerColumns`,props:{columns:[{key:`month`,label:`Month`,value:`January`,items:[{value:`Jan`,label:`January`},{value:`Feb`,label:`February`},{value:`Mar`,label:`March`},{value:`Apr`,label:`April`},{value:`May`,label:`May`},{value:`Jun`,label:`June`},{value:`Jul`,label:`July`},{value:`Aug`,label:`August`},{value:`Sep`,label:`September`},{value:`Oct`,label:`October`},{value:`Nov`,label:`November`},{value:`Dec`,label:`December`}]}]}}]}],a11y:[`Each wheel is an adjustable control: swipe up or down to move one row; keep row text short and complete.`]}},{name:`WheelPickerDuration`,marker:null,acceptsChildren:!1,props:[{name:`disabled`,type:`boolean`,required:!1,description:`Locks scrolling and dims the wheels.`,default:!1},{name:`labels`,type:`object`,fields:[{name:`hourOne`,type:`string`,required:!1,description:`Spoken value for one hour; {count} is the number.`,default:`{count} hour`},{name:`hourOther`,type:`string`,required:!1,description:`Spoken value for any other number of hours; {count} is the number.`,default:`{count} hours`},{name:`hourUnit`,type:`string`,required:!1,description:`Unit shown next to the selected hour.`,default:`hr`},{name:`hours`,type:`string`,required:!1,description:`Label for the hours column.`,default:`Hours`},{name:`minuteOne`,type:`string`,required:!1,description:`Spoken value for one minute; {count} is the number.`,default:`{count} minute`},{name:`minuteOther`,type:`string`,required:!1,description:`Spoken value for any other number of minutes; {count} is the number.`,default:`{count} minutes`},{name:`minuteUnit`,type:`string`,required:!1,description:`Unit shown next to the selected minute.`,default:`min`},{name:`minutes`,type:`string`,required:!1,description:`Label for the minutes column.`,default:`Minutes`},{name:`typeAction`,type:`string`,required:!1,description:`Name of the screen reader action that opens the typed entry.`,default:`Type a value`},{name:`typeEditor`,type:`string`,required:!1,description:`Spoken when the typed entry opens.`,default:`Type a number`}],required:!1,description:`Custom labels for the hour and minute wheels and units.`},{name:`maxMinutes`,type:`number`,required:!1,description:`Longest duration in minutes.`,default:1439},{name:`minuteStep`,type:`enum`,enum:[1,5,15,30],required:!1,description:`Minute wheel step.`,default:1},{name:`presets`,type:`array`,required:!1,description:`Durations in minutes shown as chips under the wheel; each must be a whole number of minutes from 0 to maxMinutes in steps of minuteStep.`},{name:`value`,type:`number`,required:!0,description:`The duration as whole minutes.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,component:`WheelPicker`,fixedProps:{mode:`duration`},usage:{when:[`Ask for a length of time in hours and minutes, up to 23 h 59 min.`],whenNot:[{text:`A time of day.`,instead:`TimePicker`}],do:[{note:`Offer presets for the durations people pick most.`,example:[{component:`WheelPickerDuration`,props:{value:30,minuteStep:15,presets:[15,30,45,60]}}]},{note:`Choose minuteStep to match how the duration is used, such as 15 for bookings.`,example:[{component:`WheelPickerDuration`,props:{value:60,minuteStep:15}}]}],dont:[{note:`Do not set a preset that is off the minute step or above maxMinutes; the picker throws.`,example:[{component:`WheelPickerDuration`,props:{value:30,minuteStep:15,presets:[15,20,45,60]}}]},{note:`Do not use a 1 minute step for bookings that only need 15 minute blocks.`,example:[{component:`WheelPickerDuration`,props:{value:60,minuteStep:1}}]}],a11y:[`The value is spoken in words, such as 2 hours; keep labels in the person's language.`,`A screen reader offers a Type a value action on each wheel; it opens a number field and focus returns to the wheel when it closes.`]}},{name:`WheelPickerList`,marker:null,acceptsChildren:!1,props:[{name:`disabled`,type:`boolean`,required:!1,description:`Locks scrolling and dims the wheels.`,default:!1},{name:`items`,type:`array`,itemFields:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`The spoken text for a screen reader.`},{name:`label`,type:`string`,required:!0,description:`The text displayed for this row.`},{name:`value`,type:`stringOrNumber`,required:!0,description:`The value returned when this row is selected.`}],required:!0,description:`The choices on one wheel. Plain strings and numbers are also accepted by the component and are not shown in the kit.`},{name:`label`,type:`string`,required:!1,description:`Names the wheel for a screen reader.`,default:`Value`},{name:`labels`,type:`object`,fields:[{name:`value`,type:`string`,required:!1,description:"Name of the wheel when no `label` is given.",default:`Value`}],required:!1,description:`Custom names for the wheel.`},{name:`value`,type:`stringOrNumber`,required:!1,description:`The selected item's value.`},{name:`width`,type:`number`,required:!1,description:`Fixed width in points; the wheel fills the row when left out.`}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,component:`WheelPicker`,fixedProps:{mode:`list`},usage:{when:[`Choose one value from a short ordered list, such as a repeat interval.`],whenNot:[{text:`A list of more than about a dozen choices, or one that needs search.`,instead:`Select`}],do:[{note:`Set label so a screen reader says what the wheel chooses.`,example:[{component:`WheelPickerList`,props:{label:`Repeat`,value:`Weekly`,items:[{value:`Daily`,label:`Daily`},{value:`Weekly`,label:`Weekly`},{value:`Monthly`,label:`Monthly`},{value:`Yearly`,label:`Yearly`}]}}]}],dont:[{note:`Do not use a wheel for choices that have no natural order.`,example:[{component:`WheelPickerList`,props:{label:`Colors`,value:`Blue`,items:[{value:`Red`,label:`Red`},{value:`Blue`,label:`Blue`},{value:`Green`,label:`Green`},{value:`Yellow`,label:`Yellow`}]}}]}],a11y:[`The wheel is adjustable by swipe; the chosen row is spoken with its accessibilityLabel when it has one.`]}},{name:`ZoomableImage`,marker:null,acceptsChildren:!0,props:[{name:`accessibilityLabel`,type:`string`,required:!1,description:`Screen reader name of the zoomable area.`},{name:`disabled`,type:`boolean`,required:!1,description:`Blocks pinch, pan and double tap and resets any zoom.`,default:!1},{name:`doubleTapScale`,type:`number`,required:!1,description:`Scale a double tap zooms to; a second double tap returns to normal.`,default:2},{name:`maxScale`,type:`number`,required:!1,description:`Upper limit of pinch and double tap zoom.`,default:4},{name:`minScale`,type:`number`,required:!1,description:`Lower limit of pinch zoom; the resting scale a pinch springs back to.`,default:1}],itemsTakeAction:[],takesAction:[],source:`@webority/mobile-ui`,usage:{when:[`Let a person pinch, pan and double tap to look closely at one image or one piece of content.`],whenNot:[{text:`A set of images to swipe between, each zoomable.`,instead:`ImageGallery`}],do:[{note:`Wrap one image and give the wrapper an accessibilityLabel that names it.`,example:[{component:`ZoomableImage`,props:{accessibilityLabel:`Product photo`},children:[`Product photo`]}]},{note:`Keep maxScale high enough to read fine detail, such as 4 for photos.`,example:[{component:`ZoomableImage`,props:{maxScale:4},children:[`Detailed map`]}]}],dont:[{note:`Do not wrap content that scrolls on its own; the two gestures compete.`,example:[{component:`ZoomableImage`,props:{accessibilityLabel:`Product photos`},children:[{component:`Carousel`,props:{data:[`Photo one`,`Photo two`]}}]}]},{note:`Do not rely on pinch alone; double tap is the one handed way to zoom.`,example:[{component:`ZoomableImage`,props:{maxScale:4,doubleTapScale:1},children:[`Detailed map`]}]}],a11y:[`Name the wrapped content with accessibilityLabel; the gestures themselves have no screen reader form.`,`Offer another way to view the detail, such as a download, when zoom matters for the task.`]}}],tokens:{color:`avatar-1.avatar-2.avatar-3.avatar-4.avatar-5.avatar-6.avatar-7.avatar-8.bg.bg-muted.bg-subtle.border.border-subtle.danger.danger-border.danger-soft.danger-text.field-bg.field-bg-disabled.field-bg-focus.field-border.field-border-error.field-border-focus.field-caret.field-icon.field-icon-disabled.field-icon-focus.field-label.field-message.field-placeholder.field-placeholder-disabled.field-text.field-text-disabled.focus-ring.glass-badge.glass-border.glass-fill.info.info-soft.info-text.link.neutral.neutral-hover.neutral-text.offline-fill.on-danger.on-glass.on-info.on-neutral.on-neutral-strong.on-primary.on-scrim.on-success.on-surface-dark.on-surface-dark-muted.on-warning.online-fill.primary.primary-hover.primary-pressed.primary-soft.primary-text.primary-wash.primary-wash-strong.scrim.skeleton.skeleton-highlight.success.success-soft.success-text.surface.surface-dark.surface-dark-border.surface-disabled.surface-hover.surface-ink.surface-inverse.surface-pressed.surface-selected.switch-thumb.text.text-body.text-disabled.text-inverse.text-muted.text-subtle.thumb.warning.warning-soft.warning-text`.split(`.`),space:[`2xl`,`3xl`,`4xl`,`lg`,`md`,`none`,`sm`,`xl`,`xs`,`xxs`],radius:[`2xl`,`3xl`,`lg`,`md`,`none`,`pill`,`sm`,`xl`],shadow:[`card`,`drawer`,`elevated`,`modal`,`popover`],font:[`display`,`mono`,`ui`],text:[`2xl`,`3xl`,`4xl`,`5xl`,`6xl`,`7xl`,`8xl`,`base`,`lg`,`sm`,`xl`,`xs`],leading:[`body`,`display`,`heading`],colorMeanings:{"avatar-1":`Background behind a person's initials, picked by a hash of the name (slot 1 of 8).`,"avatar-2":`Background behind a person's initials, picked by a hash of the name (slot 2 of 8).`,"avatar-3":`Background behind a person's initials, picked by a hash of the name (slot 3 of 8).`,"avatar-4":`Background behind a person's initials, picked by a hash of the name (slot 4 of 8).`,"avatar-5":`Background behind a person's initials, picked by a hash of the name (slot 5 of 8).`,"avatar-6":`Background behind a person's initials, picked by a hash of the name (slot 6 of 8).`,"avatar-7":`Background behind a person's initials, picked by a hash of the name (slot 7 of 8).`,"avatar-8":`Background behind a person's initials, picked by a hash of the name (slot 8 of 8).`,bg:`Page background behind the content area.`,"bg-muted":`Muted background for grouped areas and quiet controls.`,"bg-subtle":`Subtle raised background for side panels and bands.`,border:`Hairline border of cards, tables and dividers.`,"border-subtle":`Softest border for inner dividers and list edges.`,danger:`Vivid danger fill for badges, dots and danger buttons.`,"danger-border":`Tinted danger border of alerts and badges.`,"danger-soft":`Soft danger background of alerts and badges.`,"danger-text":`Danger colour as text on a page or a soft danger tint.`,"field-bg":`Resting fill of input-like controls such as fields and selects.`,"field-bg-disabled":`Fill of a disabled input-like control.`,"field-bg-focus":`Fill of a focused input-like control.`,"field-border":`Resting border of an input-like control such as a field or select.`,"field-border-error":`Border of an input-like control holding an invalid value.`,"field-border-focus":`Border of a focused, open or active control such as an input or select.`,"field-caret":`Text caret inside an input-like control.`,"field-icon":`Icon inside an input-like control.`,"field-icon-disabled":`Icon inside a disabled input-like control.`,"field-icon-focus":`Icon inside a focused input-like control.`,"field-label":`Label above an input-like control.`,"field-message":`Error message under an input-like control.`,"field-placeholder":`Placeholder text inside an empty input-like control.`,"field-placeholder-disabled":`Placeholder text inside a disabled input-like control.`,"field-text":`Value text inside an input-like control.`,"field-text-disabled":`Value text inside a disabled input-like control.`,"focus-ring":`Colour of the keyboard focus ring drawn on focus-visible controls.`,"glass-badge":`Badge fill on a translucent control on a brand surface.`,"glass-border":`Border of a translucent control on a brand surface.`,"glass-fill":`Translucent fill of a control sitting on a brand surface.`,info:`Vivid info fill for badges, dots and info buttons.`,"info-soft":`Soft info background of alerts and badges.`,"info-text":`Info colour as text on a page or a soft info tint.`,link:`Interactive link text.`,neutral:`Quiet unbranded fill for supporting actions such as Back, Skip and Close.`,"neutral-hover":`Neutral fill while a control is hovered.`,"neutral-text":`Text on the soft neutral background.`,"offline-fill":`Fill of the offline network banner: the source red, not the contrast-darkened danger fill.`,"on-danger":`Ink on a solid danger fill.`,"on-glass":`Ink on a translucent control on a brand surface.`,"on-info":`Ink on a solid info fill.`,"on-neutral":`Ink on a neutral fill.`,"on-neutral-strong":`Ink on the solid grey fill of a neutral badge, banner or avatar.`,"on-primary":`Text and icon colour on a solid primary fill.`,"on-scrim":`Ink on a scrim, such as the text of an overlay.`,"on-success":`Ink on a solid success fill.`,"on-surface-dark":`Text and icons on a surface-dark band.`,"on-surface-dark-muted":`Secondary text on a surface-dark band.`,"on-warning":`Ink on a solid warning fill.`,"online-fill":`Fill of the back-online network banner: the source green, not the contrast-darkened success fill.`,primary:`Primary fill for buttons, selected states and borders.`,"primary-hover":`Primary fill while a control is hovered or pressed.`,"primary-pressed":`Primary fill while a control is pressed.`,"primary-soft":`Soft primary tint behind selected and highlighted rows.`,"primary-text":`Primary as text and small glyphs on a page.`,"primary-wash":`Faint translucent primary wash over a surface.`,"primary-wash-strong":`Stronger translucent primary wash over a surface.`,scrim:`Dim behind page-level backdrops such as drawers, modals and the shell.`,skeleton:`Base fill of a loading placeholder.`,"skeleton-highlight":`Moving highlight across a loading placeholder.`,success:`Vivid success fill for badges, dots and success buttons.`,"success-soft":`Soft success background of alerts and badges.`,"success-text":`Success colour as text on a page or a soft success tint.`,surface:`Card and panel surface.`,"surface-dark":`Band that stays dark in light and dark mode, such as a site footer or a dark hero.`,"surface-dark-border":`Hairline border or divider on a surface-dark band.`,"surface-disabled":`Fill of a disabled surface.`,"surface-hover":`Wash over a surface under a pointer.`,"surface-ink":`Neutral near-black band, darker than surface-dark, that stays the same in light and dark mode, such as a footer or a contents box.`,"surface-inverse":`Inverse band on a page, such as a dark footer or an inverse toast.`,"surface-pressed":`Wash over a surface while it is pressed.`,"surface-selected":`Wash over a selected surface such as a chosen list row.`,"switch-thumb":`Knob of an on/off switch, white in both modes.`,text:`Main heading and body ink.`,"text-body":`Body copy on a tinted surface such as an alert body.`,"text-disabled":`Text of a disabled control.`,"text-inverse":`Text on an inverse surface.`,"text-muted":`Secondary text for descriptions and muted copy.`,"text-subtle":`Tertiary text for hints, captions, timestamps and placeholders.`,thumb:`Raised thumb that marks the selected option of a segmented control.`,warning:`Vivid warning fill for badges, dots and warning buttons.`,"warning-soft":`Soft warning background of alerts and badges.`,"warning-text":`Warning colour as text on a page or a soft warning tint.`}},tokenValues:{color:{"avatar-1":{light:`#4f46e5`,dark:`#8b8bee`},"avatar-2":{light:`#0a7979`,dark:`#2dd4bf`},"avatar-3":{light:`#a45a05`,dark:`#fcd34d`},"avatar-4":{light:`#cd226e`,dark:`#f472b6`},"avatar-5":{light:`#2462eb`,dark:`#60a5fa`},"avatar-6":{light:`#7c3aed`,dark:`#a78bfa`},"avatar-7":{light:`#047c57`,dark:`#34d399`},"avatar-8":{light:`#d42222`,dark:`#f87171`},bg:{light:`#ffffff`,dark:`#0b0b12`},"bg-muted":{light:`#f1f1f5`,dark:`#1c1c26`},"bg-subtle":{light:`#f8f8fb`,dark:`#13131c`},border:{light:`#e5e5ec`,dark:`#27272f`},"border-subtle":{light:`#efeff3`,dark:`#1c1c26`},danger:{light:`#e12c32`,dark:`#f87171`},"danger-border":{light:`#e5484d`,dark:`#f87171`},"danger-soft":{light:`#ffeaef`,dark:`#e826462e`},"danger-text":{light:`#bc1b20`,dark:`#f87171`},"field-bg":{light:`#f9fbfc`,dark:`#13131c`},"field-bg-disabled":{light:`#f5f6fa`,dark:`#1c1c26`},"field-bg-focus":{light:`#ffffff`,dark:`#0b0b12`},"field-border":{light:`#ebedf3`,dark:`#27272f`},"field-border-error":{light:`#fdbfce`,dark:`#8a2f42`},"field-border-focus":{light:`#bed2f9`,dark:`#3d5fb0`},"field-caret":{light:`#5b8dee`,dark:`#7c9ef0`},"field-icon":{light:`#7a849f`,dark:`#8b8b95`},"field-icon-disabled":{light:`#c4cada`,dark:`#52525b`},"field-icon-focus":{light:`#4b5675`,dark:`#d4d4db`},"field-label":{light:`#242f4a`,dark:`#e4e6ee`},"field-message":{light:`#d81736`,dark:`#f87171`},"field-placeholder":{light:`#626d8b`,dark:`#84848d`},"field-placeholder-disabled":{light:`#7a8197`,dark:`#71717a`},"field-text":{light:`#252f4a`,dark:`#fafafa`},"field-text-disabled":{light:`#7a8197`,dark:`#71717a`},"focus-ring":{light:`#4f46e5`,dark:`#7c7ce8`},"glass-badge":{light:`#ffffff`,dark:`#ffffff`},"glass-border":{light:`#ffffff73`,dark:`#ffffff73`},"glass-fill":{light:`#ffffff47`,dark:`#ffffff47`},info:{light:`#1b6ef5`,dark:`#60a5fa`},"info-soft":{light:`#e9f3ff`,dark:`#056ee92e`},"info-text":{light:`#0958d9`,dark:`#60a5fa`},link:{light:`#4f46e5`,dark:`#9292ee`},neutral:{light:`#f4f4f8`,dark:`#1f1f26`},"neutral-hover":{light:`#e9e9f0`,dark:`#2a2a33`},"neutral-text":{light:`#52525b`,dark:`#b4b4bb`},"offline-fill":{light:`#e82646`,dark:`#e82646`},"on-danger":{light:`#ffffff`,dark:`#0f0f1a`},"on-glass":{light:`#0f0f1a`,dark:`#0f0f1a`},"on-info":{light:`#ffffff`,dark:`#0f0f1a`},"on-neutral":{light:`#0f0f1a`,dark:`#fafafa`},"on-neutral-strong":{light:`#ffffff`,dark:`#0f0f1a`},"on-primary":{light:`#ffffff`,dark:`#0f0f1a`},"on-scrim":{light:`#ffffff`,dark:`#ffffff`},"on-success":{light:`#ffffff`,dark:`#0f0f1a`},"on-surface-dark":{light:`#ffffff`,dark:`#ffffff`},"on-surface-dark-muted":{light:`#babdc7`,dark:`#babdc7`},"on-warning":{light:`#0f0f1a`,dark:`#0f0f1a`},"online-fill":{light:`#04b440`,dark:`#04b440`},primary:{light:`#4f46e5`,dark:`#7c7ce8`},"primary-hover":{light:`#4338ca`,dark:`#9292ee`},"primary-pressed":{light:`#3730a3`,dark:`#a8a8f2`},"primary-soft":{light:`#e0e7ff`,dark:`#1f1f3d`},"primary-text":{light:`#4f46e5`,dark:`#8989ea`},"primary-wash":{light:`#4f46e514`,dark:`#7c7ce814`},"primary-wash-strong":{light:`#4f46e533`,dark:`#7c7ce833`},scrim:{light:`#0f0f1a80`,dark:`#000000a6`},skeleton:{light:`#ebedf3`,dark:`#1c1c26`},"skeleton-highlight":{light:`#f5f6fa`,dark:`#27272f`},success:{light:`#18864f`,dark:`#30c780`},"success-soft":{light:`#e8faee`,dark:`#04b4402e`},"success-text":{light:`#147042`,dark:`#30c780`},surface:{light:`#ffffff`,dark:`#1c1c26`},"surface-dark":{light:`#071437`,dark:`#071437`},"surface-dark-border":{light:`#2a3553`,dark:`#2a3553`},"surface-disabled":{light:`#f1f1f5`,dark:`#1c1c26`},"surface-hover":{light:`#0f0f1a0a`,dark:`#ffffff0d`},"surface-ink":{light:`#0b0e16`,dark:`#0b0e16`},"surface-inverse":{light:`#0f0f1a`,dark:`#fafafa`},"surface-pressed":{light:`#0f0f1a0f`,dark:`#ffffff14`},"surface-selected":{light:`#4f46e51a`,dark:`#7c7ce82e`},"switch-thumb":{light:`#ffffff`,dark:`#ffffff`},text:{light:`#252f4a`,dark:`#e2e2e2`},"text-body":{light:`#0f0f1a`,dark:`#fafafa`},"text-disabled":{light:`#b4b4bb`,dark:`#52525b`},"text-inverse":{light:`#ffffff`,dark:`#0f0f1a`},"text-muted":{light:`#52525b`,dark:`#b4b4bb`},"text-subtle":{light:`#62626b`,dark:`#919199`},thumb:{light:`#ffffff`,dark:`#3a3e49`},warning:{light:`#f59e0b`,dark:`#fbbf24`},"warning-soft":{light:`#fff8e6`,dark:`#dfa0002e`},"warning-text":{light:`#8f5c06`,dark:`#fbbf24`}},space:{"2xl":32,"3xl":48,"4xl":64,lg:16,md:12,none:0,sm:8,xl:24,xs:4,xxs:2},radius:{"2xl":18,"3xl":20,lg:14,md:10,none:0,pill:9999,sm:6,xl:20},shadow:{card:{x:0,y:2,blur:4,spread:0,color:`#0000000f`,elevation:2},drawer:{x:0,y:12,blur:24,spread:0,color:`#00000024`,elevation:12},elevated:{x:0,y:4,blur:8,spread:0,color:`#00000014`,elevation:4},modal:{x:0,y:12,blur:24,spread:0,color:`#00000024`,elevation:12},popover:{x:0,y:8,blur:16,spread:0,color:`#0000001a`,elevation:8}},font:{display:{family:`System`,fallback:``},mono:{family:`System`,fallback:``},ui:{family:`System`,fallback:``}},text:{"2xl":{size:24,weight:null},"3xl":{size:30,weight:null},"4xl":{size:36,weight:null},"5xl":{size:45,weight:null},"6xl":{size:57,weight:null},"7xl":{size:64,weight:null},"8xl":{size:72,weight:null},base:{size:15,weight:null},lg:{size:17,weight:null},sm:{size:13,weight:null},xl:{size:20,weight:null},xs:{size:11,weight:null}},leading:{body:1.4,display:1.2,heading:1.2}},icons:`aave.activity.add.add-circle.add-square.additem.airdrop.airplane.airplane-square.airpod.airpods.alarm.alert-circle.alert-triangle.align-bottom.align-horizontally.align-left.align-right.align-top.align-vertically.android.ankr.apple.aquarius.archive.archive-add.archive-book.archive-box.archive-minus.archive-slash.archive-tick.arrange-horizontal.arrange-horizontal-circle.arrange-horizontal-square.arrange-vertical.arrange-vertical-circle.arrange-vertical-square.arrow.arrow-circle-down.arrow-circle-down-2.arrow-circle-left.arrow-circle-left-2.arrow-circle-right.arrow-circle-right-2.arrow-circle-up.arrow-circle-up-2.arrow-down.arrow-down-2.arrow-down-3.arrow-down-up.arrow-forward.arrow-forward-square.arrow-left.arrow-left-2.arrow-left-3.arrow-right.arrow-right-1.arrow-right-2.arrow-right-3.arrow-rotate-left.arrow-rotate-right.arrow-square.arrow-square-down.arrow-square-left.arrow-square-right.arrow-square-up.arrow-swap-horizontal.arrow-swap-vertical.arrow-up.arrow-up-2.arrow-up-3.arrow-up-right.at.attach-circle.attach-square.audio-square.augur.autobrightness.autonio.avalanche.award.back.back-square.backward.backward-10-seconds.backward-15-seconds.backward-5-seconds.backward-item.badge-check.bag.bag-2.bag-cross.bag-cross-1.bag-happy.bag-tick.bag-tick-2.bag-timer.ban.bank.barcode.battery-charging.battery-disable.battery-empty.battery-empty-1.battery-full.be.bell.bezier.bill.binance-coin.binance-usd.bitcoin.bitcoin-card.bitcoin-convert.bitcoin-refresh.blend.blend-2.blogger.bluetooth.bluetooth-2.bluetooth-circle.bluetooth-rectangle.blur.bolt.book.book-1.book-saved.book-square.bookmark.bookmark-2.bootstrap.box.box-1.box-2.box-add.box-remove.box-seam.box-search.box-tick.box-time.briefcase.briefcase-cross.briefcase-tick.briefcase-timer.brifecase-cross.brifecase-tick.brifecase-timer.brodcast.broom.brush.brush-2.brush-3.brush-big.brush-square.bubble.bucket.bucket-circle.bucket-square.bug.building.building-2.building-3.building-4.buildings.buildings-2.buliding.bullseye.bus.buy-crypto.cake.calculator.calendar.calendar-1.calendar-2.calendar-add.calendar-check.calendar-circle.calendar-dots.calendar-edit.calendar-remove.calendar-search.calendar-tick.call.call-add.call-calling.call-incoming.call-minus.call-outgoing.call-received.call-remove.call-slash.camera.camera-slash.candle.candle-2.car.card.card-add.card-coin.card-edit.card-pos.card-receive.card-remove.card-remove-1.card-send.card-slash.card-tick.card-tick-1.cardano.cards.cash-stack.category.category-2.cd.celo.celsius.chainlink.chart.chart-1.chart-2.chart-21.chart-circle.chart-column.chart-fail.chart-square.chart-success.chat.chat-dots.check.check-check.check-circle.chemical-glass.chevron-down.chevron-left.chevron-right.chevron-up.chevrons-left.chevrons-right.chevrons-up-down.chrome.circle.circle-help.civic.clipboard.clipboard-check.clipboard-close.clipboard-export.clipboard-import.clipboard-text.clipboard-tick.clock.close-circle.close-square.cloud.cloud-add.cloud-change.cloud-connection.cloud-cross.cloud-drizzle.cloud-fog.cloud-lightning.cloud-minus.cloud-notif.cloud-plus.cloud-remove.cloud-snow.cloud-sunny.code.code-1.code-circle.coffee.coin.coin-1.coins.color-swatch.colorfilter.colors-square.command.command-square.comment.component.computing.contact.convert.convert-3-d-cube.convert-card.convertshape.convertshape-2.copy.copy-success.copyright.courthouse.cpu.cpu-charge.cpu-setting.creative-commons.credit-card.crop.crown.crown-1.cup.cursor.cut.dai.danger.dash.data.data-2.database.decred.dent.designtools.device-message.devices.diagram.diagram-3.diamonds.direct.direct-down.direct-inbox.direct-left.direct-normal.direct-notification.direct-right.direct-send.direct-up.directbox-default.directbox-notif.directbox-receive.directbox-send.discount-circle.discount-shape.discover.dislike.display.document.document-cloud.document-code.document-code-2.document-copy.document-download.document-favorite.document-filter.document-forward.document-like.document-previous.document-sketch.document-text.document-text-1.document-upload.dollar-circle.dollar-square.download.dribbble.driver.driver-2.driver-refresh.driving.drop.dropbox.edit.edit-2.educare.electricity.element.element-2.element-3.element-4.element-equal.element-plus.ellipsis.emercoin.emoji-happy.emoji-normal.emoji-sad.emoji-smile.empty-wallet.empty-wallet-add.empty-wallet-change.empty-wallet-remove.empty-wallet-tick.empty-wallet-time.enjin-coin.eos.eraser.eraser-square.ethereum.ethereum-classic.export.export-circle.export-curve.export-square.external-drive.external-link.eye.eye-off.eye-slash.facebook.factory.fatrows.favorite-chart.figma.figma-1.file-plus-2.file-text.files.filter.filter-add.filter-edit.filter-remove.filter-search.filter-square.filter-tick.finger-cricle.finger-scan.firstline.flag.flag-2.flame.flash.flash-circle.flash-slash.flashy.folder.folder-2.folder-add.folder-cloud.folder-connection.folder-cross.folder-favorite.folder-kanban.folder-minus.folder-open.folder-plus.forbidden.forbidden-2.format-circle.format-square.forward.forward-10-seconds.forward-15-seconds.forward-5-seconds.forward-item.framer.ftx-token.funnel.gallery.gallery-add.gallery-edit.gallery-export.gallery-favorite.gallery-import.gallery-remove.gallery-slash.gallery-tick.game.gameboy.gas-station.gauge.gemini.gemini-2.ghost.gift.github.glass.global.global-edit.global-refresh.global-search.globe.globe2.google.google-drive.google-play.gps.gps-slash.grammerly.graph.grid.grid-1.grid-2.grid-3.grid-4.grid-5.grid-6.grid-7.grid-8.grid-9.grid-edit.grid-eraser.grid-lock.hamberger-menu.hamburger-menu.hand.happyemoji.hard-hat.harmony.hashtag.hashtag-down.hashtag-square.hashtag-up.headphone.headphones.health.heart.heart-add.heart-circle.heart-edit.heart-remove.heart-search.heart-slash.heart-tick.hedera-hashgraph.hex.hierarchy.hierarchy-2.hierarchy-3.hierarchy-square.hierarchy-square-2.hierarchy-square-3.history.home.home-2.home-3.home-hashtag.home-trend-down.home-trend-up.home-wifi.hospital.house.house-2.html-3.html-5.huobi-token.i-24-support.i-3-d-cube-scan.i-3-d-rotate.i-3-d-square.i-3-dcube.i-3-square.icon.illustrator.image.import.import-circle.import-curve.import-square.inbox.info.info-circle.information.instagram.iost.java-script.journal-text.js.judge.kanban.key.key-square.keyboard.keyboard-open.kyber-network.lamp.lamp-charge.lamp-on.lamp-slash.language-circle.language-square.layer.layers.layout-dashboard.layout-grid.layout-maximize.level.lifebuoy.lightbulb.like.like-1.like-dislike.like-shapes.like-tag.link.link-1.link-2.link-21.link-circle.link-square.linkedin.list.litecoin.location.location-add.location-cross.location-discover.location-minus.location-slash.location-tick.lock.lock-1.lock-circle.lock-slash.log-out.login.login-curve.logout.logout-curve.lovely.magic-star.magicpen.mail.main-component.maker.man.map.map-1.map-pin.mask.mask-left.mask-right.math.maximize.maximize-1.maximize-2.maximize-3.maximize-4.maximize-circle.medal.medal-star.menu.menu-board.message.message-2.message-add.message-add-1.message-circle.message-edit.message-favorite.message-minus.message-notif.message-programming.message-question.message-remove.message-search.message-square.message-text.message-text-1.message-tick.message-time.messages.messages-1.messages-2.messages-3.messenger.microphone.microphone-2.microphone-slash.microphone-slash-1.microscope.microsoft.milk.mini-music-sqaure.minus.minus-circle.minus-cirlce.minus-square.mirror.mirroring-screen.mobile.mobile-programming.monero.money.money-2.money-3.money-4.money-add.money-archive.money-change.money-forbidden.money-receive.money-recive.money-remove.money-send.money-tick.money-time.moneys.monitor.monitor-mobbile.monitor-recorder.moon.more.more-2.more-circle.more-horizontal.more-square.mouse.mouse-circle.mouse-square.music.music-circle.music-dashboard.music-filter.music-library-2.music-play.music-playlist.music-square.music-square-add.music-square-remove.music-square-search.musicnote.nebulas.nem.nexo.next.note.note-1.note-2.note-add.note-favorite.note-remove.note-square.note-text.notepad.notepad-2.notification.notification-1.notification-bing.notification-circle.notification-favorite.notification-status.ocean-protocol.okb.okru.omega-circle.omega-square.ontology.paintbucket.palette.panel-left-close.panel-left-open.paperclip.paperclip-2.password-check.path-tool.path-tool-2.path-tool-square.pause.pause-circle.paypal.pen-add.pen-close.pen-remove.pen-tool.pen-tool-2.pencil.people.percentage-circle.percentage-square.personalcard.pet.pharagraphspacing.phone.photoshop.picture-frame.play.play-add.play-circle.play-cricle.play-remove.plug.plus.plus-circle.pointer.polkadot.polygon.polyswarm.presentation-chart.presention-chart.previous.printer.printer-slash.profile.profile-2-user.profile-add.profile-circle.profile-delete.profile-remove.profile-tick.programming-arrow.programming-arrows.python.quant.quote-down.quote-down-circle.quote-down-square.quote-up.quote-up-circle.quote-up-square.radar.radar-2.radio.ram.ram-2.rank.ranking.receipt.receipt-1.receipt-2.receipt-21.receipt-add.receipt-discount.receipt-disscount.receipt-edit.receipt-item.receipt-minus.receipt-search.receipt-square.receipt-text.receive.receive-square.receive-square-2.record.record-circle.recovery-convert.reddit.refresh.refresh-2.refresh-circle.refresh-cw.refresh-left-square.refresh-right-square.refresh-square.repeat.repeat-circle.repeate-music.repeate-one.reserve.robot.rotate-ccw.rotate-cw.rotate-left.rotate-right.route-square.routing.routing-2.row-horizontal.row-vertical.ruler.ruler-pen.safe-home.sagittarius.save-2.save-add.save-minus.save-remove.scan.scan-barcode.scanner.scanning.scissor.screenmirroring.scroll.search.search-favorite.search-favorite-1.search-normal.search-normal-1.search-status.search-status-1.search-zoom-in.search-zoom-in-1.search-zoom-out.search-zoom-out-1.security.security-card.security-safe.security-time.security-user.send.send-2.server.setting.setting-2.setting-3.setting-4.setting-5.settings.shapes.shapes-1.share.share-2.shield.shield-check.shield-cross.shield-lock.shield-plus.shield-search.shield-security.shield-slash.shield-tick.ship.shop.shop-add.shop-remove.shopping-bag.shopping-cart.shuffle.shutterstock.siacoin.sidebar-bottom.sidebar-left.sidebar-right.sidebar-top.signpost.simcard.simcard-1.simcard-2.size.slack.slash.slider.slider-horizontal.slider-horizontal-1.slider-vertical.slider-vertical-1.sliders.sliders-horizontal.smallcaps.smart-car.smart-home.smileys.sms.sms-edit.sms-notification.sms-search.sms-star.sms-tracking.snapchat.snowflake.solana.sort.sound.sparkles.speaker.speedometer.spotify.stacks.star.star-1.star-slash.stars.status.status-up.stellar.sticker.stickynote.stop.stop-circle.story.strongbox.strongbox-2.subtitle.sun.sun-1.sun-fog.table-document.table-lamp.tag.tag-2.tag-cross.tag-right.tag-user.task.task-square.teacher.telephone.tenx.tether.text.text-block.text-bold.text-italic.text-underline.textalign-center.textalign-justifycenter.textalign-justifyleft.textalign-justifyright.textalign-left.textalign-right.the-graph.theta.thorchain.thumbs-down.thumbs-up.tick-circle.tick-square.ticket.ticket-2.ticket-discount.ticket-expired.ticket-star.timer.timer-1.timer-pause.timer-start.toggle-off.toggle-off-circle.toggle-on.toggle-on-circle.trade.transaction-minus.translate.transmit.transmit-sqaure-2.transmit-square.trash.trash-2.tree.trello.trend-down.trend-up.trending-up.triangle.triangle-logo.trontron.truck.truck-fast.truck-remove.truck-tick.truck-time.trush-square.twitch.two-page.ui-8.unlimited.unlock.upload.usd-coin.user.user-add.user-check.user-cirlce-add.user-edit.user-minus.user-octagon.user-plus.user-remove.user-search.user-square.user-tag.user-tick.users.velas.verify.vibe.video.video-add.video-circle.video-horizontal.video-octagon.video-play.video-remove.video-slash.video-square.video-tick.video-time.video-vertical.voice-circle.voice-cricle.voice-square.volume.volume-cross.volume-high.volume-low.volume-low-1.volume-mute.volume-slash.volume-up.wallet.wallet-1.wallet-2.wallet-3.wallet-add.wallet-add-1.wallet-check.wallet-minus.wallet-money.wallet-remove.wallet-search.wallet2.wanchain.wanchain-1.wand-sparkles.warning-2.watch.watch-status.weight.weight-meter.whatsapp.wifi.wifi-square.wind.wind-2.windows.wing.woman.wrist-clock.x.x-circle.xd.xiaomi.xrp.youtube.zap.zel.zoom.zoom-in.zoom-out`.split(`.`),renames:[{version:`0.87.1`,components:[],values:{}},{version:`0.89.0`,components:[],values:{tone:{error:`danger`},variant:{error:`danger`}}},{version:`0.91.0`,components:[],values:{tone:{error:`danger`},variant:{error:`danger`},iconTone:{error:`danger`},avatarTone:{error:`danger`},elevation:{xs:`card`,sm:`card`,md:`elevated`,lg:`popover`,xl:`modal`,"2xl":`modal`}}},{version:`0.93.0`,components:[],values:{}},{version:`0.97.0`,components:[],values:{}},{version:`0.107.0`,components:[{name:`Banner`,props:{variant:`tone`},values:{tone:{default:`neutral`}},added:{},removed:{}},{name:`Toast`,props:{},values:{},added:{},removed:{undoLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`DatePicker`,props:{},values:{},added:{},removed:{mode:`mode is gone: pass the boolean inline prop for mode 'inline', and drop mode for 'modal'`,confirmLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,cancelLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`DateRangePicker`,props:{},values:{},added:{},removed:{confirmLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,cancelLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`OptionSheet`,props:{},values:{},added:{},removed:{emptyText:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`TimePicker`,props:{},values:{},added:{},removed:{confirmLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,cancelLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,title:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`Chip`,props:{},values:{variant:{filled:`solid`,outlined:`outline`}},added:{},removed:{}},{name:`Menu`,props:{},values:{},added:{},removed:{closeLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,backLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`Select`,props:{errorText:`error`},values:{variant:{outlined:`outline`}},added:{},removed:{}},{name:`FloatingActionButtonGroup`,props:{open:`expanded`},values:{},added:{},removed:{}},{name:`Button`,props:{title:`label`,children:`label`},values:{},added:{},removed:{}},{name:`StatusBadge`,props:{text:`label`},values:{},added:{},removed:{}},{name:`ScannerOverlay`,props:{hint:`helperText`},values:{},added:{},removed:{}},{name:`FilePicker`,props:{errorText:`error`},values:{},added:{},removed:{}},{name:`Dialog`,props:{variant:`tone`},values:{tone:{default:`neutral`}},added:{},removed:{}},{name:`Composer`,props:{busy:`loading`},values:{},added:{},removed:{sendLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`Card`,props:{},values:{variant:{outlined:`outline`}},added:{},removed:{removeLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`Input`,props:{},values:{variant:{outlined:`outline`}},added:{},removed:{}},{name:`SearchBar`,props:{},values:{variant:{outlined:`outline`}},added:{},removed:{}},{name:`PickerTrigger`,props:{},values:{variant:{outlined:`outline`}},added:{},removed:{}},{name:`Calendar`,props:{mode:`selectionMode`},values:{},added:{},removed:{}},{name:`BottomSheet`,props:{},values:{},added:{},removed:{mode:`mode is gone: pass the boolean inline prop for mode 'inline', and drop mode for 'modal'`}},{name:`AsyncBlock`,props:{},values:{},added:{},removed:{retryLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`ForceUpdateDialog`,props:{},values:{},added:{},removed:{updateLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,laterLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`OnboardingPager`,props:{},values:{},added:{},removed:{doneLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`KeyboardToolbar`,props:{},values:{},added:{},removed:{doneLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`Tooltip`,props:{},values:{},added:{},removed:{closeLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,backLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`Autocomplete`,props:{},values:{},added:{},removed:{emptyText:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`Repeater`,props:{},values:{},added:{},removed:{emptyText:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,addLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,rowLabel:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}},{name:`PhoneNumberInput`,props:{},values:{},added:{},removed:{allCountriesTitle:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`,countrySheetTitle:`moved into the labels prop: pass labels with this text under the key of the component's Labels type`}}],values:{}},{version:`0.108.0`,components:[],values:{}},{version:`0.114.0`,components:[],values:{}},{version:`0.130.0`,components:[{name:`Banner`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`BottomSheet`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`DatePicker`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`DateRangePicker`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`Dialog`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`Drawer`,props:{visible:`open`,defaultVisible:`defaultOpen`},values:{},added:{},removed:{}},{name:`ForceUpdateDialog`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`Menu`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`Modal`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`OptionSheet`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`TimePicker`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`Tour`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`Tooltip`,props:{visible:`open`},values:{},added:{},removed:{}},{name:`Select`,props:{borderRadius:`radius`},values:{},added:{},removed:{}},{name:`ListItem`,props:{left:`leading`,right:`trailing`},values:{},added:{},removed:{}},{name:`PickerTrigger`,props:{leadingIcon:`leftIcon`},values:{},added:{},removed:{}},{name:`SliderField`,props:{startIcon:`leftIcon`,endIcon:`rightIcon`},values:{},added:{},removed:{}},{name:`Card`,props:{borderRadius:`radius`},values:{},added:{},removed:{}},{name:`Input`,props:{borderRadius:`radius`},values:{},added:{},removed:{}},{name:`PhoneNumberInput`,props:{borderRadius:`radius`},values:{},added:{},removed:{}},{name:`SearchBar`,props:{borderRadius:`radius`},values:{},added:{},removed:{}},{name:`SquircleImage`,props:{borderRadius:`radius`},values:{},added:{},removed:{}}],values:{}},{version:`0.139.0`,components:[],values:{}},{version:`0.152.0`,components:[],values:{}},{version:`0.158.0`,components:[],values:{}},{version:`0.160.0`,components:[],values:{}},{version:`0.164.0`,components:[],values:{}},{version:`0.165.0`,components:[],values:{}},{version:`0.167.0`,components:[],values:{}},{version:`0.172.0`,components:[],values:{}},{version:`0.177.0`,components:[],values:{}}]},themeBridge:Fr});export{wj as default};