@rocket.chat/fuselage 0.68.0 → 0.68.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@rocket.chat/css-in-js"),require("@rocket.chat/css-supports"),require("@rocket.chat/fuselage-hooks"),require("@rocket.chat/fuselage-tokens/colors.json"),require("@rocket.chat/fuselage-tokens/dist/badge.json"),require("@rocket.chat/fuselage-tokens/dist/button.json"),require("@rocket.chat/fuselage-tokens/dist/font.json"),require("@rocket.chat/fuselage-tokens/dist/shadow.json"),require("@rocket.chat/fuselage-tokens/dist/status.json"),require("@rocket.chat/fuselage-tokens/dist/statusBullet.json"),require("@rocket.chat/fuselage-tokens/dist/stroke.json"),require("@rocket.chat/fuselage-tokens/dist/surface.json"),require("@rocket.chat/fuselage-tokens/typography.json"),require("@rocket.chat/icons"),require("@rocket.chat/memo"),require("invariant"),require("react"),require("react-aria"),require("react-dom"),require("react-keyed-flatten-children"),require("react-stately"),require("react-virtuoso"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define("RocketChatFuselage",["@rocket.chat/css-in-js","@rocket.chat/css-supports","@rocket.chat/fuselage-hooks","@rocket.chat/fuselage-tokens/colors.json","@rocket.chat/fuselage-tokens/dist/badge.json","@rocket.chat/fuselage-tokens/dist/button.json","@rocket.chat/fuselage-tokens/dist/font.json","@rocket.chat/fuselage-tokens/dist/shadow.json","@rocket.chat/fuselage-tokens/dist/status.json","@rocket.chat/fuselage-tokens/dist/statusBullet.json","@rocket.chat/fuselage-tokens/dist/stroke.json","@rocket.chat/fuselage-tokens/dist/surface.json","@rocket.chat/fuselage-tokens/typography.json","@rocket.chat/icons","@rocket.chat/memo","invariant","react","react-aria","react-dom","react-keyed-flatten-children","react-stately","react-virtuoso","react/jsx-runtime"],r):"object"==typeof exports?exports.RocketChatFuselage=r(require("@rocket.chat/css-in-js"),require("@rocket.chat/css-supports"),require("@rocket.chat/fuselage-hooks"),require("@rocket.chat/fuselage-tokens/colors.json"),require("@rocket.chat/fuselage-tokens/dist/badge.json"),require("@rocket.chat/fuselage-tokens/dist/button.json"),require("@rocket.chat/fuselage-tokens/dist/font.json"),require("@rocket.chat/fuselage-tokens/dist/shadow.json"),require("@rocket.chat/fuselage-tokens/dist/status.json"),require("@rocket.chat/fuselage-tokens/dist/statusBullet.json"),require("@rocket.chat/fuselage-tokens/dist/stroke.json"),require("@rocket.chat/fuselage-tokens/dist/surface.json"),require("@rocket.chat/fuselage-tokens/typography.json"),require("@rocket.chat/icons"),require("@rocket.chat/memo"),require("invariant"),require("react"),require("react-aria"),require("react-dom"),require("react-keyed-flatten-children"),require("react-stately"),require("react-virtuoso"),require("react/jsx-runtime")):e.RocketChatFuselage=r(e["@rocket.chat/css-in-js"],e["@rocket.chat/css-supports"],e["@rocket.chat/fuselage-hooks"],e["@rocket.chat/fuselage-tokens/colors.json"],e["@rocket.chat/fuselage-tokens/dist/badge.json"],e["@rocket.chat/fuselage-tokens/dist/button.json"],e["@rocket.chat/fuselage-tokens/dist/font.json"],e["@rocket.chat/fuselage-tokens/dist/shadow.json"],e["@rocket.chat/fuselage-tokens/dist/status.json"],e["@rocket.chat/fuselage-tokens/dist/statusBullet.json"],e["@rocket.chat/fuselage-tokens/dist/stroke.json"],e["@rocket.chat/fuselage-tokens/dist/surface.json"],e["@rocket.chat/fuselage-tokens/typography.json"],e["@rocket.chat/icons"],e["@rocket.chat/memo"],e.invariant,e.react,e["react-aria"],e["react-dom"],e["react-keyed-flatten-children"],e["react-stately"],e["react-virtuoso"],e["react/jsx-runtime"])}(self,(function(e,r,n,t,o,i,s,a,c,l,d,u,x,f,m,b,h,p,g,v,j,w,_){return function(){"use strict";var k={16:function(e){e.exports=b},26:function(e){e.exports=i},61:function(e){e.exports=f},155:function(e){e.exports=h},179:function(e){e.exports=w},212:function(e){e.exports=x},272:function(e){e.exports=_},307:function(e){e.exports=p},396:function(r){r.exports=e},398:function(e){e.exports=n},403:function(e){e.exports=r},498:function(e){e.exports=d},514:function(e){e.exports=g},623:function(e){e.exports=o},633:function(e){e.exports=v},656:function(e){e.exports=l},684:function(e){e.exports=c},768:function(e){e.exports=j},823:function(e){e.exports=u},851:function(e){e.exports=m},882:function(e){e.exports=a},891:function(e){e.exports=t},973:function(e){e.exports=s}},y={};function S(e){var r=y[e];if(void 0!==r)return r.exports;var n=y[e]={exports:{}};return k[e](n,n.exports,S),n.exports}S.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return S.d(r,{a:r}),r},S.d=function(e,r){for(var n in r)S.o(r,n)&&!S.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},S.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},S.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var N={};S.r(N),S.d(N,{Accordion:function(){return tr},AccordionItem:function(){return lr},ActionButton:function(){return Rn},AnimatedVisibility:function(){return mr},AudioPlayer:function(){return Nr},AutoComplete:function(){return _n},Avatar:function(){return yn},AvatarContainer:function(){return kn},AvatarStack:function(){return Sn},Badge:function(){return Nn},Banner:function(){return Mn},Box:function(){return rr},Bubble:function(){return Dn},Button:function(){return In},ButtonGroup:function(){return zn},Callout:function(){return Vn},Card:function(){return Fn},CardBody:function(){return On},CardCol:function(){return Ln},CardContent:function(){return An},CardControls:function(){return Wn},CardGrid:function(){return Xn},CardGroup:function(){return Un},CardHeader:function(){return Gn},CardRow:function(){return An},CardTitle:function(){return Hn},CheckBox:function(){return qr},CheckOption:function(){return Yr},Chevron:function(){return cr},Chip:function(){return Pr},CodeSnippet:function(){return Qn},Contextualbar:function(){return et},ContextualbarAction:function(){return rt},ContextualbarActions:function(){return nt},ContextualbarButton:function(){return tt},ContextualbarContent:function(){return it},ContextualbarEmptyContent:function(){return at},ContextualbarFooter:function(){return lt},ContextualbarHeader:function(){return dt},ContextualbarIcon:function(){return ut},ContextualbarSection:function(){return ft},ContextualbarSkeleton:function(){return mt},ContextualbarTitle:function(){return bt},ContextualbarV2:function(){return pt},ContextualbarV2Action:function(){return gt},ContextualbarV2Actions:function(){return vt},ContextualbarV2Button:function(){return jt},ContextualbarV2Content:function(){return _t},ContextualbarV2EmptyContent:function(){return yt},ContextualbarV2Footer:function(){return Nt},ContextualbarV2Header:function(){return Ct},ContextualbarV2Icon:function(){return It},ContextualbarV2Section:function(){return Rt},ContextualbarV2Skeleton:function(){return $t},ContextualbarV2Title:function(){return Et},Divider:function(){return Jr},Dropdown:function(){return Dt},EmailInput:function(){return zt},Field:function(){return Ft},FieldDescription:function(){return Ot},FieldError:function(){return Lt},FieldGroup:function(){return Ut},FieldHint:function(){return At},FieldLabel:function(){return qt},FieldLabelInfo:function(){return Ht},FieldLink:function(){return Wt},FieldRow:function(){return Gt},Flex:function(){return Zt},FramedIcon:function(){return Kt},Grid:function(){return Zn},GridItem:function(){return Kn},Icon:function(){return ar},IconButton:function(){return $n},Input:function(){return Dr},InputBox:function(){return Fr},InputBoxSkeleton:function(){return Lr},Label:function(){return gr},Margins:function(){return $r},Menu:function(){return Xt},MenuItem:function(){return uo},MenuItemAvatar:function(){return Hr},MenuItemColumn:function(){return Wr},MenuItemContent:function(){return Gr},MenuItemDescription:function(){return Qr},MenuItemIcon:function(){return Ur},MenuItemInput:function(){return rn},MenuItemSkeleton:function(){return tn},MenuItemTitle:function(){return on},MenuSection:function(){return fo},MenuV2:function(){return ao},Message:function(){return Ii},MessageBlock:function(){return bo},MessageBody:function(){return ho},MessageContainer:function(){return po},MessageContainerFixed:function(){return go},MessageDivider:function(){return vo},MessageEmoji:function(){return Ci},MessageGenericPreview:function(){return Ho},MessageGenericPreviewContent:function(){return Wo},MessageGenericPreviewCoverImage:function(){return Ko},MessageGenericPreviewDescription:function(){return Go},MessageGenericPreviewFooter:function(){return Uo},MessageGenericPreviewIcon:function(){return Qo},MessageGenericPreviewImage:function(){return Zo},MessageGenericPreviewThumb:function(){return Yo},MessageGenericPreviewTitle:function(){return Xo},MessageHeader:function(){return jo},MessageHighlight:function(){return wo},MessageLeftContainer:function(){return _o},MessageMetrics:function(){return yo},MessageMetricsFollowing:function(){return So},MessageMetricsItem:function(){return Ro},MessageMetricsItemAvatarRow:function(){return No},MessageMetricsItemAvatarRowContent:function(){return Co},MessageMetricsItemIcon:function(){return Io},MessageMetricsItemLabel:function(){return Bo},MessageMetricsReply:function(){return $o},MessageName:function(){return Mo},MessageNameContainer:function(){return To},MessageReaction:function(){return fi},MessageReactionAction:function(){return mi},MessageReactionCounter:function(){return di},MessageReactionEmoji:function(){return xi},MessageReactions:function(){return bi},MessageRole:function(){return Do},MessageRoles:function(){return zo},MessageStatusIndicator:function(){return Jo},MessageStatusIndicatorItem:function(){return ri},MessageStatusIndicatorText:function(){return ei},MessageStatusPrivateIndicator:function(){return ni},MessageSystem:function(){return ti},MessageSystemBlock:function(){return oi},MessageSystemBody:function(){return ii},MessageSystemContainer:function(){return si},MessageSystemLeftContainer:function(){return li},MessageSystemName:function(){return ai},MessageSystemTimestamp:function(){return ci},MessageTimestamp:function(){return Vo},MessageToolbar:function(){return Fo},MessageToolbarItem:function(){return Oo},MessageToolbarWrapper:function(){return Lo},MessageUsername:function(){return qo},Modal:function(){return Bi},ModalBackdrop:function(){return Ri},ModalClose:function(){return $i},ModalContent:function(){return Ei},ModalFooter:function(){return Mi},ModalFooterAnnotation:function(){return Ti},ModalFooterControllers:function(){return Pi},ModalHeader:function(){return Di},ModalHeaderText:function(){return zi},ModalHeroImage:function(){return Vi},ModalIcon:function(){return Fi},ModalTagline:function(){return Oi},ModalThumb:function(){return Li},ModalTitle:function(){return Ai},MultiSelect:function(){return Ki},MultiSelectFiltered:function(){return Yi},NavBar:function(){return Xi},NavBarDivider:function(){return es},NavBarGroup:function(){return Qi},NavBarItem:function(){return Ji},NavBarSection:function(){return rs},NumberInput:function(){return ns},Option:function(){return Zr},OptionAvatar:function(){return Hr},OptionColumn:function(){return Wr},OptionContainer:function(){return fn},OptionContent:function(){return Gr},OptionDescription:function(){return Xr},OptionDescriptionBlock:function(){return Qr},OptionDivider:function(){return en},OptionHeader:function(){return sn},OptionIcon:function(){return Ur},OptionInput:function(){return rn},OptionMenu:function(){return nn},OptionSkeleton:function(){return tn},OptionTitle:function(){return on},Options:function(){return xn},PaginatedMultiSelectFiltered:function(){return sa},PaginatedSelectFiltered:function(){return oa},Pagination:function(){return ss},Palette:function(){return pe},PaletteStyleTag:function(){return Cs},PasswordInput:function(){return Is},Popover:function(){return to},Position:function(){return pn},PositionAnimated:function(){return gn},ProgressBar:function(){return Os},RadioButton:function(){return Ls},Scrollable:function(){return cn},SearchInput:function(){return As},Select:function(){return Ys},SelectFiltered:function(){return Qs},SelectInput:function(){return ca},SelectInputOption:function(){return la},SelectLegacy:function(){return Hs},Sidebar:function(){return La},SidebarBanner:function(){return Ca},SidebarDivider:function(){return Ia},SidebarFooter:function(){return Fa},SidebarFooterHighlight:function(){return Oa},SidebarItem:function(){return ya},SidebarItemAction:function(){return ka},SidebarItemActions:function(){return _a},SidebarItemAvatar:function(){return wa},SidebarItemBadge:function(){return pa},SidebarItemContainer:function(){return xa},SidebarItemContent:function(){return ma},SidebarItemIcon:function(){return ja},SidebarItemMenu:function(){return fa},SidebarItemSubtitle:function(){return ga},SidebarItemTime:function(){return ha},SidebarItemTitle:function(){return ba},SidebarItemWrapper:function(){return va},SidebarSection:function(){return Na},SidebarSectionTitle:function(){return Sa},SidebarTopBar:function(){return Va},SidebarV2:function(){return Ya},SidebarV2Accordion:function(){return Xa},SidebarV2AccordionItem:function(){return Ja},SidebarV2Action:function(){return ec},SidebarV2Actions:function(){return rc},SidebarV2Banner:function(){return gc},SidebarV2ButtonGroup:function(){return _c},SidebarV2CollapseGroup:function(){return pc},SidebarV2Divider:function(){return Sc},SidebarV2Footer:function(){return vc},SidebarV2FooterContent:function(){return jc},SidebarV2GroupTitle:function(){return hc},SidebarV2Item:function(){return tc},SidebarV2ItemAction:function(){return oc},SidebarV2ItemAvatarWrapper:function(){return ic},SidebarV2ItemBadge:function(){return sc},SidebarV2ItemCol:function(){return uc},SidebarV2ItemContent:function(){return mc},SidebarV2ItemIcon:function(){return ac},SidebarV2ItemMenu:function(){return cc},SidebarV2ItemRow:function(){return dc},SidebarV2ItemStatusBullet:function(){return bc},SidebarV2ItemTimestamp:function(){return xc},SidebarV2ItemTitle:function(){return lc},SidebarV2Link:function(){return nc},SidebarV2ListItem:function(){return fc},SidebarV2Media:function(){return wc},SidebarV2MediaController:function(){return kc},SidebarV2MediaTitle:function(){return yc},SidebarV2Section:function(){return Nc},Sidepanel:function(){return Aa},SidepanelDivider:function(){return Ga},SidepanelHeader:function(){return Ua},SidepanelHeaderTitle:function(){return Wa},SidepanelList:function(){return Ka},SidepanelListItem:function(){return Za},SidepanelSection:function(){return qa},SidepanelSectionAction:function(){return Ha},Skeleton:function(){return Or},Slider:function(){return yr},States:function(){return Cc},StatesAction:function(){return Ic},StatesActions:function(){return Bc},StatesIcon:function(){return Rc},StatesLink:function(){return $c},StatesSubtitle:function(){return Ec},StatesSuggestion:function(){return Mc},StatesSuggestionList:function(){return Tc},StatesSuggestionListItem:function(){return Pc},StatesSuggestionText:function(){return Dc},StatesTitle:function(){return zc},StatusBullet:function(){return Ps},Table:function(){return Vc},TableBody:function(){return Fc},TableCell:function(){return Ac},TableFoot:function(){return qc},TableHead:function(){return Lc},TableHeadContext:function(){return Oc},TableRow:function(){return Hc},TableSelection:function(){return Wc},TableSelectionButton:function(){return Gc},TableSelectionButtonGroup:function(){return Uc},Tabs:function(){return Zc},TabsItem:function(){return Kc},Tag:function(){return Po},TelephoneInput:function(){return Yc},TextAreaInput:function(){return Xc},TextInput:function(){return Qc},ThreadMessage:function(){return hi},ThreadMessageBody:function(){return pi},ThreadMessageContainer:function(){return gi},ThreadMessageEmoji:function(){return vi},ThreadMessageFollow:function(){return wi},ThreadMessageIconThread:function(){return _i},ThreadMessageLeftContainer:function(){return Ni},ThreadMessageOrigin:function(){return ki},ThreadMessageRow:function(){return yi},ThreadMessageUnfollow:function(){return Si},Throbber:function(){return el},Tile:function(){return dn},ToastBar:function(){return rl},ToggleSwitch:function(){return nl},Tooltip:function(){return tl},TopBar:function(){return Ba},TopBarAction:function(){return Ra},TopBarActions:function(){return $a},TopBarAvatar:function(){return za},TopBarSection:function(){return Ma},TopBarTitle:function(){return Ta},TopBarToolBox:function(){return Pa},TopBarV2:function(){return Da},TopBarWrapper:function(){return Ea},UrlInput:function(){return ol},__setThrowErrorOnInvalidToken__:function(){return X},backgroundColor:function(){return Ce},borderRadius:function(){return ke},borderWidth:function(){return _e},color:function(){return Be},fontColor:function(){return Ie},fontFamily:function(){return Te},fontScale:function(){return Pe},inset:function(){return $e},margin:function(){return Ee},padding:function(){return Me},size:function(){return Re},strokeColor:function(){return Ne},useArrayLikeClassNameProp:function(){return D},useCursor:function(){return bn}});var C=S(272);const I=e=>{throw new Error("Exhaustive check failed")},B=e=>(...r)=>{const n=(e=>r=>e?`${e}--${r}`:r)(e),t=r.map((e=>"string"==typeof e?e:"object"==typeof e&&Array.isArray(e)?e.filter(Boolean).map(n).join(" "):"object"==typeof e&&null!==e?Object.entries(e).map((([e,r])=>"boolean"==typeof r?r?n(e):null:"string"==typeof r||"number"==typeof r?n(`${e}-${r}`):null)).filter(Boolean).join(" "):null)).concat().filter(Boolean).join(" ");return[e,t].filter(Boolean).join(" ")},R=(...e)=>e.flatMap((e=>e?"string"==typeof e?e:"object"==typeof e?Object.entries(e).flatMap((([e,r])=>"boolean"==typeof r?r?e:[]:`${e}-${r}`)):I():[])).join(" "),$=e=>(...r)=>{const n=r.flatMap((r=>r?"string"==typeof r?`${e}--${r}`:"object"==typeof r?Object.entries(r).flatMap((([r,n])=>"boolean"==typeof n?n?`${e}--${r}`:[]:`${e}--${r}-${n}`)):I():[]));return n.unshift(e),n.join(" ")};var E=S(155),M=S(396);const T=(e,r)=>void 0===e||""===e?r:Array.isArray(e)?[...e,r]:`${e} ${r}`,P=(e,r)=>{const n=(0,E.useMemo)((()=>e?e(r):void 0),[r,e]),t=(0,E.useMemo)((()=>{if(n)return n?(0,M.createClassName)(n):void 0}),[n]);return(0,E.useDebugValue)(t),(0,E.useInsertionEffect)((()=>{if(!n||!t)return;const e=(0,M.escapeName)(t),r=(0,M.transpile)(`.${e}`,n),o=(0,M.attachRules)(r);return()=>{setTimeout(o,1e3)}}),[t,n]),t},D=e=>{const r=e.className?[].concat(e.className):[],n=r.filter((e=>"function"==typeof e)),t=P(M.css`
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@rocket.chat/css-in-js"),require("@rocket.chat/css-supports"),require("@rocket.chat/fuselage-hooks"),require("@rocket.chat/fuselage-tokens/colors.json"),require("@rocket.chat/fuselage-tokens/dist/badge.json"),require("@rocket.chat/fuselage-tokens/dist/button.json"),require("@rocket.chat/fuselage-tokens/dist/font.json"),require("@rocket.chat/fuselage-tokens/dist/shadow.json"),require("@rocket.chat/fuselage-tokens/dist/status.json"),require("@rocket.chat/fuselage-tokens/dist/statusBullet.json"),require("@rocket.chat/fuselage-tokens/dist/stroke.json"),require("@rocket.chat/fuselage-tokens/dist/surface.json"),require("@rocket.chat/fuselage-tokens/typography.json"),require("@rocket.chat/icons"),require("@rocket.chat/memo"),require("invariant"),require("react"),require("react-aria"),require("react-dom"),require("react-keyed-flatten-children"),require("react-stately"),require("react-virtuoso"),require("react/jsx-runtime")):"function"==typeof define&&define.amd?define("RocketChatFuselage",["@rocket.chat/css-in-js","@rocket.chat/css-supports","@rocket.chat/fuselage-hooks","@rocket.chat/fuselage-tokens/colors.json","@rocket.chat/fuselage-tokens/dist/badge.json","@rocket.chat/fuselage-tokens/dist/button.json","@rocket.chat/fuselage-tokens/dist/font.json","@rocket.chat/fuselage-tokens/dist/shadow.json","@rocket.chat/fuselage-tokens/dist/status.json","@rocket.chat/fuselage-tokens/dist/statusBullet.json","@rocket.chat/fuselage-tokens/dist/stroke.json","@rocket.chat/fuselage-tokens/dist/surface.json","@rocket.chat/fuselage-tokens/typography.json","@rocket.chat/icons","@rocket.chat/memo","invariant","react","react-aria","react-dom","react-keyed-flatten-children","react-stately","react-virtuoso","react/jsx-runtime"],r):"object"==typeof exports?exports.RocketChatFuselage=r(require("@rocket.chat/css-in-js"),require("@rocket.chat/css-supports"),require("@rocket.chat/fuselage-hooks"),require("@rocket.chat/fuselage-tokens/colors.json"),require("@rocket.chat/fuselage-tokens/dist/badge.json"),require("@rocket.chat/fuselage-tokens/dist/button.json"),require("@rocket.chat/fuselage-tokens/dist/font.json"),require("@rocket.chat/fuselage-tokens/dist/shadow.json"),require("@rocket.chat/fuselage-tokens/dist/status.json"),require("@rocket.chat/fuselage-tokens/dist/statusBullet.json"),require("@rocket.chat/fuselage-tokens/dist/stroke.json"),require("@rocket.chat/fuselage-tokens/dist/surface.json"),require("@rocket.chat/fuselage-tokens/typography.json"),require("@rocket.chat/icons"),require("@rocket.chat/memo"),require("invariant"),require("react"),require("react-aria"),require("react-dom"),require("react-keyed-flatten-children"),require("react-stately"),require("react-virtuoso"),require("react/jsx-runtime")):e.RocketChatFuselage=r(e["@rocket.chat/css-in-js"],e["@rocket.chat/css-supports"],e["@rocket.chat/fuselage-hooks"],e["@rocket.chat/fuselage-tokens/colors.json"],e["@rocket.chat/fuselage-tokens/dist/badge.json"],e["@rocket.chat/fuselage-tokens/dist/button.json"],e["@rocket.chat/fuselage-tokens/dist/font.json"],e["@rocket.chat/fuselage-tokens/dist/shadow.json"],e["@rocket.chat/fuselage-tokens/dist/status.json"],e["@rocket.chat/fuselage-tokens/dist/statusBullet.json"],e["@rocket.chat/fuselage-tokens/dist/stroke.json"],e["@rocket.chat/fuselage-tokens/dist/surface.json"],e["@rocket.chat/fuselage-tokens/typography.json"],e["@rocket.chat/icons"],e["@rocket.chat/memo"],e.invariant,e.react,e["react-aria"],e["react-dom"],e["react-keyed-flatten-children"],e["react-stately"],e["react-virtuoso"],e["react/jsx-runtime"])}(self,(function(e,r,n,t,o,i,s,a,c,l,d,u,x,f,m,b,h,p,g,v,j,w,_){return function(){"use strict";var k={16:function(e){e.exports=b},26:function(e){e.exports=i},61:function(e){e.exports=f},155:function(e){e.exports=h},179:function(e){e.exports=w},212:function(e){e.exports=x},272:function(e){e.exports=_},307:function(e){e.exports=p},396:function(r){r.exports=e},398:function(e){e.exports=n},403:function(e){e.exports=r},498:function(e){e.exports=d},514:function(e){e.exports=g},623:function(e){e.exports=o},633:function(e){e.exports=v},656:function(e){e.exports=l},684:function(e){e.exports=c},768:function(e){e.exports=j},823:function(e){e.exports=u},851:function(e){e.exports=m},882:function(e){e.exports=a},891:function(e){e.exports=t},973:function(e){e.exports=s}},y={};function S(e){var r=y[e];if(void 0!==r)return r.exports;var n=y[e]={exports:{}};return k[e](n,n.exports,S),n.exports}S.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return S.d(r,{a:r}),r},S.d=function(e,r){for(var n in r)S.o(r,n)&&!S.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},S.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},S.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var N={};S.r(N),S.d(N,{Accordion:function(){return tr},AccordionItem:function(){return lr},ActionButton:function(){return Rn},AnimatedVisibility:function(){return mr},AudioPlayer:function(){return Nr},AutoComplete:function(){return _n},Avatar:function(){return yn},AvatarContainer:function(){return kn},AvatarStack:function(){return Sn},Badge:function(){return Nn},Banner:function(){return Mn},Box:function(){return rr},Bubble:function(){return Dn},Button:function(){return In},ButtonGroup:function(){return zn},Callout:function(){return Vn},Card:function(){return Fn},CardBody:function(){return On},CardCol:function(){return Ln},CardContent:function(){return An},CardControls:function(){return Wn},CardGrid:function(){return Xn},CardGroup:function(){return Un},CardHeader:function(){return Gn},CardRow:function(){return An},CardTitle:function(){return Hn},CheckBox:function(){return qr},CheckOption:function(){return Yr},Chevron:function(){return cr},Chip:function(){return Pr},CodeSnippet:function(){return Qn},Contextualbar:function(){return et},ContextualbarAction:function(){return rt},ContextualbarActions:function(){return nt},ContextualbarButton:function(){return tt},ContextualbarContent:function(){return it},ContextualbarEmptyContent:function(){return at},ContextualbarFooter:function(){return lt},ContextualbarHeader:function(){return dt},ContextualbarIcon:function(){return ut},ContextualbarSection:function(){return ft},ContextualbarSkeleton:function(){return mt},ContextualbarTitle:function(){return bt},ContextualbarV2:function(){return pt},ContextualbarV2Action:function(){return gt},ContextualbarV2Actions:function(){return vt},ContextualbarV2Button:function(){return jt},ContextualbarV2Content:function(){return _t},ContextualbarV2EmptyContent:function(){return yt},ContextualbarV2Footer:function(){return Nt},ContextualbarV2Header:function(){return Ct},ContextualbarV2Icon:function(){return It},ContextualbarV2Section:function(){return Rt},ContextualbarV2Skeleton:function(){return $t},ContextualbarV2Title:function(){return Et},Divider:function(){return Jr},Dropdown:function(){return Dt},EmailInput:function(){return zt},Field:function(){return Ft},FieldDescription:function(){return Ot},FieldError:function(){return Lt},FieldGroup:function(){return Ut},FieldHint:function(){return At},FieldLabel:function(){return qt},FieldLabelInfo:function(){return Ht},FieldLink:function(){return Wt},FieldRow:function(){return Gt},Flex:function(){return Zt},FramedIcon:function(){return Kt},Grid:function(){return Zn},GridItem:function(){return Kn},Icon:function(){return ar},IconButton:function(){return $n},Input:function(){return Dr},InputBox:function(){return Fr},InputBoxSkeleton:function(){return Lr},Label:function(){return gr},Margins:function(){return $r},Menu:function(){return Xt},MenuItem:function(){return uo},MenuItemAvatar:function(){return Hr},MenuItemColumn:function(){return Wr},MenuItemContent:function(){return Gr},MenuItemDescription:function(){return Qr},MenuItemIcon:function(){return Ur},MenuItemInput:function(){return rn},MenuItemSkeleton:function(){return tn},MenuItemTitle:function(){return on},MenuSection:function(){return fo},MenuV2:function(){return ao},Message:function(){return Ii},MessageBlock:function(){return bo},MessageBody:function(){return ho},MessageContainer:function(){return po},MessageContainerFixed:function(){return go},MessageDivider:function(){return vo},MessageEmoji:function(){return Ci},MessageGenericPreview:function(){return Ho},MessageGenericPreviewContent:function(){return Wo},MessageGenericPreviewCoverImage:function(){return Ko},MessageGenericPreviewDescription:function(){return Go},MessageGenericPreviewFooter:function(){return Uo},MessageGenericPreviewIcon:function(){return Qo},MessageGenericPreviewImage:function(){return Zo},MessageGenericPreviewThumb:function(){return Yo},MessageGenericPreviewTitle:function(){return Xo},MessageHeader:function(){return jo},MessageHighlight:function(){return wo},MessageLeftContainer:function(){return _o},MessageMetrics:function(){return yo},MessageMetricsFollowing:function(){return So},MessageMetricsItem:function(){return Ro},MessageMetricsItemAvatarRow:function(){return No},MessageMetricsItemAvatarRowContent:function(){return Co},MessageMetricsItemIcon:function(){return Io},MessageMetricsItemLabel:function(){return Bo},MessageMetricsReply:function(){return $o},MessageName:function(){return Mo},MessageNameContainer:function(){return To},MessageReaction:function(){return fi},MessageReactionAction:function(){return mi},MessageReactionCounter:function(){return di},MessageReactionEmoji:function(){return xi},MessageReactions:function(){return bi},MessageRole:function(){return Do},MessageRoles:function(){return zo},MessageStatusIndicator:function(){return Jo},MessageStatusIndicatorItem:function(){return ri},MessageStatusIndicatorText:function(){return ei},MessageStatusPrivateIndicator:function(){return ni},MessageSystem:function(){return ti},MessageSystemBlock:function(){return oi},MessageSystemBody:function(){return ii},MessageSystemContainer:function(){return si},MessageSystemLeftContainer:function(){return li},MessageSystemName:function(){return ai},MessageSystemTimestamp:function(){return ci},MessageTimestamp:function(){return Vo},MessageToolbar:function(){return Fo},MessageToolbarItem:function(){return Oo},MessageToolbarWrapper:function(){return Lo},MessageUsername:function(){return qo},Modal:function(){return Bi},ModalBackdrop:function(){return Ri},ModalClose:function(){return $i},ModalContent:function(){return Ei},ModalFooter:function(){return Mi},ModalFooterAnnotation:function(){return Ti},ModalFooterControllers:function(){return Pi},ModalHeader:function(){return Di},ModalHeaderText:function(){return zi},ModalHeroImage:function(){return Vi},ModalIcon:function(){return Fi},ModalTagline:function(){return Oi},ModalThumb:function(){return Li},ModalTitle:function(){return Ai},MultiSelect:function(){return Ki},MultiSelectFiltered:function(){return Yi},NavBar:function(){return Xi},NavBarDivider:function(){return es},NavBarGroup:function(){return Qi},NavBarItem:function(){return Ji},NavBarSection:function(){return ns},NumberInput:function(){return ts},Option:function(){return Zr},OptionAvatar:function(){return Hr},OptionColumn:function(){return Wr},OptionContainer:function(){return fn},OptionContent:function(){return Gr},OptionDescription:function(){return Xr},OptionDescriptionBlock:function(){return Qr},OptionDivider:function(){return en},OptionHeader:function(){return sn},OptionIcon:function(){return Ur},OptionInput:function(){return rn},OptionMenu:function(){return nn},OptionSkeleton:function(){return tn},OptionTitle:function(){return on},Options:function(){return xn},PaginatedMultiSelectFiltered:function(){return aa},PaginatedSelectFiltered:function(){return ia},Pagination:function(){return as},Palette:function(){return pe},PaletteStyleTag:function(){return Is},PasswordInput:function(){return Bs},Popover:function(){return to},Position:function(){return pn},PositionAnimated:function(){return gn},ProgressBar:function(){return Ls},RadioButton:function(){return As},Scrollable:function(){return cn},SearchInput:function(){return qs},Select:function(){return Xs},SelectFiltered:function(){return Js},SelectInput:function(){return la},SelectInputOption:function(){return da},SelectLegacy:function(){return Ws},Sidebar:function(){return Aa},SidebarBanner:function(){return Ia},SidebarDivider:function(){return Ba},SidebarFooter:function(){return Oa},SidebarFooterHighlight:function(){return La},SidebarItem:function(){return Sa},SidebarItemAction:function(){return ya},SidebarItemActions:function(){return ka},SidebarItemAvatar:function(){return _a},SidebarItemBadge:function(){return ga},SidebarItemContainer:function(){return fa},SidebarItemContent:function(){return ba},SidebarItemIcon:function(){return wa},SidebarItemMenu:function(){return ma},SidebarItemSubtitle:function(){return va},SidebarItemTime:function(){return pa},SidebarItemTitle:function(){return ha},SidebarItemWrapper:function(){return ja},SidebarSection:function(){return Ca},SidebarSectionTitle:function(){return Na},SidebarTopBar:function(){return Fa},SidebarV2:function(){return Xa},SidebarV2Accordion:function(){return Qa},SidebarV2AccordionItem:function(){return ec},SidebarV2Action:function(){return rc},SidebarV2Actions:function(){return nc},SidebarV2Banner:function(){return vc},SidebarV2ButtonGroup:function(){return kc},SidebarV2CollapseGroup:function(){return gc},SidebarV2Divider:function(){return Nc},SidebarV2Footer:function(){return jc},SidebarV2FooterContent:function(){return wc},SidebarV2GroupTitle:function(){return pc},SidebarV2Item:function(){return oc},SidebarV2ItemAction:function(){return ic},SidebarV2ItemAvatarWrapper:function(){return sc},SidebarV2ItemBadge:function(){return ac},SidebarV2ItemCol:function(){return xc},SidebarV2ItemContent:function(){return bc},SidebarV2ItemIcon:function(){return cc},SidebarV2ItemMenu:function(){return lc},SidebarV2ItemRow:function(){return uc},SidebarV2ItemStatusBullet:function(){return hc},SidebarV2ItemTimestamp:function(){return fc},SidebarV2ItemTitle:function(){return dc},SidebarV2Link:function(){return tc},SidebarV2ListItem:function(){return mc},SidebarV2Media:function(){return _c},SidebarV2MediaController:function(){return yc},SidebarV2MediaTitle:function(){return Sc},SidebarV2Section:function(){return Cc},Sidepanel:function(){return qa},SidepanelDivider:function(){return Ua},SidepanelHeader:function(){return Ka},SidepanelHeaderTitle:function(){return Ga},SidepanelList:function(){return Za},SidepanelListItem:function(){return Ya},SidepanelSection:function(){return Ha},SidepanelSectionAction:function(){return Wa},Skeleton:function(){return Or},Slider:function(){return yr},States:function(){return Ic},StatesAction:function(){return Bc},StatesActions:function(){return Rc},StatesIcon:function(){return $c},StatesLink:function(){return Ec},StatesSubtitle:function(){return Mc},StatesSuggestion:function(){return Tc},StatesSuggestionList:function(){return Pc},StatesSuggestionListItem:function(){return Dc},StatesSuggestionText:function(){return zc},StatesTitle:function(){return Vc},StatusBullet:function(){return Ds},Table:function(){return Fc},TableBody:function(){return Oc},TableCell:function(){return qc},TableFoot:function(){return Hc},TableHead:function(){return Ac},TableHeadContext:function(){return Lc},TableRow:function(){return Wc},TableSelection:function(){return Gc},TableSelectionButton:function(){return Uc},TableSelectionButtonGroup:function(){return Kc},Tabs:function(){return Yc},TabsItem:function(){return Zc},Tag:function(){return Po},TelephoneInput:function(){return Xc},TextAreaInput:function(){return Qc},TextInput:function(){return Jc},ThreadMessage:function(){return hi},ThreadMessageBody:function(){return pi},ThreadMessageContainer:function(){return gi},ThreadMessageEmoji:function(){return vi},ThreadMessageFollow:function(){return wi},ThreadMessageIconThread:function(){return _i},ThreadMessageLeftContainer:function(){return Ni},ThreadMessageOrigin:function(){return ki},ThreadMessageRow:function(){return yi},ThreadMessageUnfollow:function(){return Si},Throbber:function(){return rl},Tile:function(){return dn},ToastBar:function(){return nl},ToggleSwitch:function(){return tl},Tooltip:function(){return ol},TopBar:function(){return Ra},TopBarAction:function(){return $a},TopBarActions:function(){return Ea},TopBarAvatar:function(){return Va},TopBarSection:function(){return Ta},TopBarTitle:function(){return Pa},TopBarToolBox:function(){return Da},TopBarV2:function(){return za},TopBarWrapper:function(){return Ma},UrlInput:function(){return il},__setThrowErrorOnInvalidToken__:function(){return X},backgroundColor:function(){return Ce},borderRadius:function(){return ke},borderWidth:function(){return _e},color:function(){return Be},fontColor:function(){return Ie},fontFamily:function(){return Te},fontScale:function(){return Pe},inset:function(){return $e},margin:function(){return Ee},padding:function(){return Me},size:function(){return Re},strokeColor:function(){return Ne},useArrayLikeClassNameProp:function(){return D},useCursor:function(){return bn}});var C=S(272);const I=e=>{throw new Error("Exhaustive check failed")},B=e=>(...r)=>{const n=(e=>r=>e?`${e}--${r}`:r)(e),t=r.map((e=>"string"==typeof e?e:"object"==typeof e&&Array.isArray(e)?e.filter(Boolean).map(n).join(" "):"object"==typeof e&&null!==e?Object.entries(e).map((([e,r])=>"boolean"==typeof r?r?n(e):null:"string"==typeof r||"number"==typeof r?n(`${e}-${r}`):null)).filter(Boolean).join(" "):null)).concat().filter(Boolean).join(" ");return[e,t].filter(Boolean).join(" ")},R=(...e)=>e.flatMap((e=>e?"string"==typeof e?e:"object"==typeof e?Object.entries(e).flatMap((([e,r])=>"boolean"==typeof r?r?e:[]:`${e}-${r}`)):I():[])).join(" "),$=e=>(...r)=>{const n=r.flatMap((r=>r?"string"==typeof r?`${e}--${r}`:"object"==typeof r?Object.entries(r).flatMap((([r,n])=>"boolean"==typeof n?n?`${e}--${r}`:[]:`${e}--${r}-${n}`)):I():[]));return n.unshift(e),n.join(" ")};var E=S(155),M=S(396);const T=(e,r)=>void 0===e||""===e?r:Array.isArray(e)?[...e,r]:`${e} ${r}`,P=(e,r)=>{const n=(0,E.useMemo)((()=>e?e(r):void 0),[r,e]),t=(0,E.useMemo)((()=>{if(n)return n?(0,M.createClassName)(n):void 0}),[n]);return(0,E.useDebugValue)(t),(0,E.useInsertionEffect)((()=>{if(!n||!t)return;const e=(0,M.escapeName)(t),r=(0,M.transpile)(`.${e}`,n),o=(0,M.attachRules)(r);return()=>{setTimeout(o,1e3)}}),[t,n]),t},D=e=>{const r=e.className?[].concat(e.className):[],n=r.filter((e=>"function"==typeof e)),t=P(M.css`
|
|
2
2
|
${n}
|
|
3
3
|
`,e),o=r.filter((e=>"string"==typeof e)).reduce(((e,r)=>T(e,r)),t||"");return Object.assign(e,{className:o})},z=(e,r)=>{return n=e,Array.isArray(n)?[r,...e]:e?`${r} ${e}`:r;var n},V=(0,E.createContext)(null),F=e=>{const r=(0,E.useContext)(V);return(0,E.useMemo)((()=>r?e?n=>e(r(n)):r:e),[e,r])};var O=S(891),L=S.n(O),A=S(16),q=S.n(A);const H={neutral:"n",blue:"b",green:"g",yellow:"y",red:"r",orange:"o",purple:"p"},W=(e,r,n)=>{const t=`${H[e]}${r}`;q()((e=>"string"==typeof e&&e in L())(t),"invalid color reference");const o=L()[t],i=/^#([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})([0-9A-Fa-f]{2})$/.exec(o);if(q()(!!i,"invalid color token format"),void 0!==n){const[,t,o,s]=i;return[`--rcx-color-${e}-${r}-${(100*n).toFixed(0)}`,`rgba(${parseInt(t,16)}, ${parseInt(o,16)}, ${parseInt(s,16)}, ${100*n}%)`]}return[`--rcx-color-${e}-${r}`,o]},G=(0,S(403).cssSupports)("(--foo: bar)")?(e,r)=>`var(${e}, ${r})`:(e,r)=>r,U=(e,r)=>G(`--rcx-color-${e}`,r);class K{name;value;constructor(e,r){this.name=e,this.value=r}toString(){return U(this.name,this.value)}theme(e){return new K(e,this.toString())}}const Z=new K("white","#ffffff");let Y=!1;const X=e=>{Y=e},Q={100:new K("neutral-100",L().n100),200:new K("neutral-200",L().n200),250:new K("neutral-250",L().n250),300:new K("neutral-300",L().n300),400:new K("neutral-400",L().n400),450:new K("neutral-450",L().n450),500:new K("neutral-500",L().n500),600:new K("neutral-600",L().n600),700:new K("neutral-700",L().n700),800:new K("neutral-800",L().n800),900:new K("neutral-900",L().n900)},J={100:new K("primary-100",L().b100),200:new K("primary-200",L().b200),300:new K("primary-300",L().b300),400:new K("primary-400",L().b400),500:new K("primary-500",L().b500),600:new K("primary-600",L().b600),700:new K("primary-700",L().b700),800:new K("primary-800",L().b800),900:new K("primary-900",L().b900)},ee={100:new K("success-100",L().g100),200:new K("success-200",L().g200),300:new K("success-300",L().g300),400:new K("success-400",L().g400),500:new K("success-500",L().g500),600:new K("success-600",L().g600),700:new K("success-700",L().g700),800:new K("success-800",L().g800),900:new K("success-900",L().g900)},re={100:new K("warning-100",L().y100),200:new K("warning-200",L().y200),300:new K("warning-300",L().y300),400:new K("warning-400",L().y400),500:new K("warning-500",L().y500),600:new K("warning-600",L().y600),700:new K("warning-700",L().y700),800:new K("warning-800",L().y800),900:new K("warning-900",L().y900)},ne={100:new K("danger-100",L().r100),200:new K("danger-200",L().r200),300:new K("danger-300",L().r300),400:new K("danger-400",L().r400),500:new K("danger-500",L().r500),600:new K("danger-600",L().r600),700:new K("danger-700",L().r700),800:new K("danger-800",L().r800),900:new K("danger-900",L().r900)},te={100:new K("service-1-100",L().o100),200:new K("service-1-200",L().o200),300:new K("service-1-300",L().o300),400:new K("service-1-400",L().o400),500:new K("service-1-500",L().o500),600:new K("service-1-600",L().o600),700:new K("service-1-700",L().o700),800:new K("service-1-800",L().o800),900:new K("service-1-900",L().o900)},oe={100:new K("service-2-100",L().p100),200:new K("service-2-200",L().p200),300:new K("service-2-300",L().p300),400:new K("service-2-400",L().p400),500:new K("service-2-500",L().p500),600:new K("service-2-600",L().p600),700:new K("service-2-700",L().p700),800:new K("service-2-800",L().p800),900:new K("service-2-900",L().p900)},ie={"surface-light":Z.theme("surface-light"),"surface-tint":Q[100].theme("surface-tint"),"surface-room":Z.theme("surface-room"),"surface-neutral":Q[400].theme("surface-neutral"),"surface-disabled":Q[100].theme("surface-disabled"),"surface-hover":Q[200].theme("surface-hover"),"surface-selected":Q[450].theme("surface-selected"),"surface-dark":Q[800].theme("surface-dark"),"surface-featured":oe[700].theme("surface-featured"),"surface-featured-hover":oe[800].theme("surface-featured-hover"),"surface-overlay":Q[800].theme("surface-overlay"),"surface-transparent":"transparent","surface-sidebar":Q[400].theme("surface-sidebar")},se={"stroke-extra-light":Q[250].theme("stroke-extra-light"),"stroke-light":Q[500].theme("stroke-light"),"stroke-medium":Q[600].theme("stroke-medium"),"stroke-dark":Q[700].theme("stroke-dark"),"stroke-extra-dark":Q[800].theme("stroke-extra-dark"),"stroke-extra-light-highlight":J[200].theme("stroke-extra-light-highlight"),"stroke-highlight":J[500].theme("stroke-highlight"),"stroke-extra-light-error":ne[200].theme("stroke-extra-light-error"),"stroke-error":ne[500].theme("stroke-error")},ae={"font-white":Z.theme("font-white"),"font-disabled":Q[500].theme("font-disabled"),"font-annotation":Q[600].theme("font-annotation"),"font-hint":Q[700].theme("font-hint"),"font-secondary-info":Q[700].theme("font-secondary-info"),"font-default":Q[800].theme("font-default"),"font-titles-labels":Q[900].theme("font-titles-labels"),"font-info":J[600].theme("font-info"),"font-danger":ne[600].theme("font-danger"),"font-pure-black":Q[800].theme("font-pure-black"),"font-pure-white":Z.theme("font-pure-white")},ce={"status-background-info":J[200].theme("status-background-info"),"status-background-success":ee[200].theme("status-background-success"),"status-background-danger":ne[200].theme("status-background-danger"),"status-background-warning":re[200].theme("status-background-warning"),"status-background-warning-2":re[100].theme("status-background-warning-2"),"status-background-service-1":te[200].theme("status-background-service-1"),"status-background-service-2":oe[200].theme("status-background-service-2")},le={"status-font-on-info":J[600].theme("status-font-on-info"),"status-font-on-success":ee[800].theme("status-font-on-success"),"status-font-on-warning":re[800].theme("status-font-on-warning"),"status-font-on-warning-2":Q[800].theme("status-font-on-warning-2"),"status-font-on-danger":ne[800].theme("status-font-on-danger"),"status-font-on-service-1":te[800].theme("status-font-on-service-1"),"status-font-on-service-2":oe[600].theme("status-font-on-service-2")},de={"badge-background-level-0":Q[400].theme("badge-background-level-0"),"badge-background-level-1":Q[600].theme("badge-background-level-1"),"badge-background-level-2":J[500].theme("badge-background-level-2"),"badge-background-level-3":te[500].theme("badge-background-level-3"),"badge-background-level-4":ne[500].theme("badge-background-level-4")},ue={"shadow-elevation-border":se["stroke-extra-light"].theme("shadow-elevation-border"),"shadow-elevation-1":new K("shadow-elevation-1",W("neutral",800,.1)[1]),"shadow-elevation-2x":new K("shadow-elevation-2x",W("neutral",800,.08)[1]),"shadow-elevation-2y":new K("shadow-elevation-2y",W("neutral",800,.12)[1]),"shadow-highlight":J[200].theme("shadow-highlight"),"shadow-danger":ne[100].theme("shadow-danger")},xe=e=>"string"==typeof e&&e in ie,fe=e=>"string"==typeof e&&e in se,me=e=>"string"==typeof e&&e in ae,be=e=>"string"==typeof e&&e in ce,he=e=>"string"==typeof e&&e in le,pe={surface:ie,status:ce,statusColor:le,badge:de,text:ae,stroke:se,shadow:ue};var ge=S(212),ve=S.n(ge),je=S(851);const we=e=>(0,je.memoize)((r=>{if("number"==typeof r)return`${r}px`;if("string"!=typeof r)return;const n=/^(neg-|-)?x(\d+)$/.exec(r);if(n){const[,e,r]=n;return(e?-1:1)*parseInt(r,10)/16+"rem"}return e&&e(r)||r})),_e=we((e=>"none"===e?"0px":"default"===e?_e("x1"):void 0)),ke=we((e=>"none"===e?"0px":"full"===e?"9999px":void 0)),ye={neutral:"n",blue:"b",green:"g",yellow:"y",red:"r",orange:"o",purple:"p"},Se=/^(neutral|blue|green|yellow|red|orange|purple)-(\d+)(-(\d+))?$/,Ne=(0,je.memoize)((e=>{const r=`stroke-${e}`;return fe(r)?se[r].toString():Be(e)})),Ce=(0,je.memoize)((e=>{const r=`surface-${e}`;return xe(e)?ie[e].toString():xe(r)?ie[r].toString():be(e)?ce[e].toString():he(e)?le[e].toString():(e=>"string"==typeof e&&e in de)(e)?de[e].toString():Be(e)})),Ie=(0,je.memoize)((e=>{const r=`font-${e}`;return me(r)?ae[r].toString():he(e)?le[e].toString():Be(e)})),Be=(0,je.memoize)((e=>{if("string"!=typeof e)return;if(Y)throw new Error(`The color token "${e}" is deprecated. Please use the new color tokens instead.`);if(xe(e))return ie[e].toString();if(be(e))return ce[e].toString();if(fe(e))return se[e].toString();if(me(e))return ae[e].toString();if("surface"===e||"surface-light"===e)return ie["surface-light"].toString();if("surface-tint"===e)return U(e,Q[100]);if("secondary-info"===e)return U(e,Q[700]);if("surface-neutral"===e)return U(e,Q[400]);const r=Se.exec(String(e));if("number"==typeof r?.length&&r?.length>=5){const[,e,n,,t]=r,o=parseInt(n,10),i=void 0!==t?parseInt(t,10)/100:void 0;q()((e=>"string"==typeof e&&e in ye)(e),"invalid color type"),q()((e=>"number"==typeof e&&e%100==0&&e/100>=1&&e/100<=9)(o),"invalid color grade"),q()((e=>void 0===e||"number"==typeof e&&e>=0&&e<=1)(i),"invalid color alpha");const[s,a]=W(e,o,i);return s?G(s,a):a}return e})),Re=we((e=>"none"===e?"0px":"full"===e?"100%":"sw"===e?"100vw":"sh"===e?"100vh":void 0)),$e=we((e=>{if("none"===e)return"0px"})),Ee=we((e=>{if("none"===e)return"0px"})),Me=we((e=>{if("none"===e)return"0px"})),Te=(0,je.memoize)((e=>{if((e=>"string"==typeof e&&e in ve().fontFamilies)(e))return((e,r)=>G(`--rcx-font-family-${e}`,r))(e,ve().fontFamilies[e].map((e=>e.includes(" ")?`'${e}'`:e)).join(", "))})),Pe=(0,je.memoize)((e=>{if(!(e=>"string"==typeof e&&e in ve().fontScales)(e))return;const{fontSize:r,fontWeight:n,lineHeight:t,letterSpacing:o}=ve().fontScales[e];return{fontSize:r/16+"rem",fontWeight:n,lineHeight:t/16+"rem",letterSpacing:o/16+"rem"}})),De={toCSSValue:e=>"string"==typeof e?e:void 0},ze={toCSSValue:e=>{if("number"==typeof e||"string"==typeof e)return String(e)}},Ve={toCSSValue:_e},Fe={toCSSValue:ke},Oe={toCSSValue:Ne},Le={toCSSValue:Re},Ae={toCSSValue:$e},qe={toCSSValue:Ee},He={toCSSValue:Me},We={toCSSValue:Te},Ge={toCSSValue:e=>Pe(e)?.fontSize||Re(e)},Ue={toCSSValue:e=>e?String(Pe(e)?.fontWeight||e):void 0},Ke={toCSSValue:e=>Pe(e)?.lineHeight||Re(e)},Ze={toCSSValue:e=>e?String(Pe(e)?.letterSpacing||e):void 0},Ye=e=>({aliasOf:e}),Xe={border:De,borderBlock:De,borderBlockStart:De,borderBlockEnd:De,borderInline:De,borderInlineStart:De,borderInlineEnd:De,borderWidth:Ve,borderBlockWidth:Ve,borderBlockStartWidth:Ve,borderBlockEndWidth:Ve,borderInlineWidth:Ve,borderInlineStartWidth:Ve,borderInlineEndWidth:Ve,borderStyle:De,borderBlockStyle:De,borderBlockStartStyle:De,borderBlockEndStyle:De,borderInlineStyle:De,borderInlineStartStyle:De,borderInlineEndStyle:De,borderColor:Oe,borderBlockColor:Oe,borderBlockStartColor:Oe,borderBlockEndColor:Oe,borderInlineColor:Oe,borderInlineStartColor:Oe,borderInlineEndColor:Oe,borderRadius:Fe,borderStartStartRadius:Fe,borderStartEndRadius:Fe,borderEndStartRadius:Fe,borderEndEndRadius:Fe,color:{toCSSValue:Ie},backgroundColor:{toCSSValue:Ce},bg:Ye("backgroundColor"),opacity:ze,alignItems:De,alignContent:De,justifyItems:De,justifyContent:De,flexWrap:De,flexDirection:De,flexGrow:ze,flexShrink:ze,flexBasis:De,justifySelf:De,alignSelf:De,order:ze,w:Ye("width"),width:Le,minWidth:Le,maxWidth:Le,h:Ye("height"),height:Le,minHeight:Le,maxHeight:Le,display:De,verticalAlign:De,overflow:De,overflowX:De,overflowY:De,position:De,zIndex:ze,inset:Ae,insetBlock:Ae,insetBlockStart:Ae,insetBlockEnd:Ae,insetInline:Ae,insetInlineStart:Ae,insetInlineEnd:Ae,m:Ye("margin"),margin:qe,mb:Ye("marginBlock"),marginBlock:qe,mbs:Ye("marginBlockStart"),marginBlockStart:qe,mbe:Ye("marginBlockEnd"),marginBlockEnd:qe,mi:Ye("marginInline"),marginInline:qe,mis:Ye("marginInlineStart"),marginInlineStart:qe,mie:Ye("marginInlineEnd"),marginInlineEnd:qe,p:Ye("padding"),padding:He,pb:Ye("paddingBlock"),paddingBlock:He,pbs:Ye("paddingBlockStart"),paddingBlockStart:He,pbe:Ye("paddingBlockEnd"),paddingBlockEnd:He,pi:Ye("paddingInline"),paddingInline:He,pis:Ye("paddingInlineStart"),paddingInlineStart:He,pie:Ye("paddingInlineEnd"),paddingInlineEnd:He,fontFamily:We,fontSize:Ge,fontStyle:De,fontWeight:Ue,letterSpacing:Ze,lineHeight:Ke,textAlign:De,textTransform:De,textDecorationLine:De,wordBreak:De,elevation:{toStyle:e=>"0"===e?M.css`
|
|
4
4
|
box-shadow: none;
|
|
@@ -194,12 +194,12 @@
|
|
|
194
194
|
${t&&M.css`
|
|
195
195
|
scroll-behavior: smooth !important;
|
|
196
196
|
`}
|
|
197
|
-
`,null),l=(0,E.useCallback)((e=>(e.className=c&&T(e.className,c),void 0!==o&&void 0===e.onScroll&&(e.onScroll=a),e)),[c,a,o]);return(0,C.jsx)(V.Provider,{children:e,value:F(l)})};const ln=(0,E.forwardRef)((function({elevation:e="1",padding:r=16,...n},t){return(0,C.jsx)(rr,{ref:t,"rcx-tile":!0,"rcx-tile--elevation":e,padding:r,...n})}));var dn=ln,un=(0,E.memo)((({customEmpty:e})=>(0,C.jsx)(Zr,{label:e||"Empty"})));var xn=(0,E.forwardRef)((function({maxHeight:e="x144",multiple:r,renderEmpty:n=un,options:t,cursor:o,renderItem:i=Zr,onSelect:s,customEmpty:a,...c},l){const d=(0,E.useRef)(null);(0,E.useLayoutEffect)((()=>{if(!d.current)return;const{current:e}=d,r=e?.querySelector(".rcx-option--focus");r&&(r.offsetTop+r.clientHeight>e.scrollTop+e.clientHeight||r.offsetTop-r.clientHeight<e.scrollTop)&&(e.scrollTop=r.offsetTop)}),[o]);const u=(0,E.useMemo)((()=>t?.map((([e,n,t,a,c,l],d)=>{switch(c){case"heading":return(0,C.jsx)(sn,{children:n},e);case"divider":return(0,C.jsx)(en,{},e);default:return(0,C.jsx)(i,{role:"option",label:n,onMouseDown:r=>{if(!a)return Ar(r),s([e,n,t,a,c,l]),!1},value:e,selected:t||!0!==r&&null,disabled:a,focus:o===d||null},e)}}))),[t,r,o,s,i]);return(0,C.jsx)(rr,{"rcx-options":!0,...c,ref:l,children:(0,C.jsx)(dn,{padding:0,paddingBlock:"x12",paddingInline:0,elevation:"2",children:(0,C.jsx)(cn,{vertical:!0,smooth:!0,children:(0,C.jsxs)(dn,{ref:d,elevation:"0",padding:"none",maxHeight:e,onMouseDown:Ar,onClick:Ar,is:"ol","aria-multiselectable":r||!0,role:"listbox","aria-activedescendant":t?.[o]?.[0]?String(t?.[o]?.[0]):void 0,children:[!t.length&&(0,C.jsx)(n,{customEmpty:a}),u]})})})})})),fn=(0,E.forwardRef)((function({children:e,...r},n){return(0,C.jsx)(rr,{"rcx-options":!0,children:(0,C.jsx)(dn,{padding:0,paddingBlock:"x12",paddingInline:0,children:(0,C.jsx)(cn,{vertical:!0,smooth:!0,children:(0,C.jsx)(dn,{ref:n,elevation:"0",padding:"none",maxHeight:"x240",...r,children:e})})})})}));const mn=(e=mr.HIDDEN)=>{const[r,n]=(0,or.useDebouncedState)(e,10);return[r,(0,or.useEffectEvent)((()=>n(mr.HIDDEN))),(0,or.useEffectEvent)((()=>n(mr.VISIBLE)))]},bn=(e,r,n)=>{const[t,o]=(0,E.useState)(e),i=mn(),[s,a,c]=i,l=(0,or.useEffectEvent)((()=>o(0))),d=(0,or.useEffectEvent)((e=>{const{keyCode:r}=e;if(mr.HIDDEN===s&&9===r)return c()})),u=(0,or.useEffectEvent)((e=>{const d=([,,,e])=>!e||"option"===e,u=()=>((e,r)=>{for(let n=e.length-1;n>=0;n--)if(r(e[n],n,e))return n;return-1})(r,d),{keyCode:x,key:f}=e;switch(mr.HIDDEN===s&&27!==x&&9!==x&&c(),x){case 36:return e.preventDefault(),l();case 35:return e.preventDefault(),o(u());case 38:return e.preventDefault(),o(t<1?u():e=>((e,r,n)=>{for(let t=n-1;t>=0;t--)if(r(e[t],t,e))return t;return-1})(r,d,e));case 40:return e.preventDefault(),t===u()?o(0):o((e=>((e,r,n)=>{for(let t=n+1;t<e.length;t++)if(r(e[t],t,e))return t;return-1})(r,d,e)));case 13:return e.preventDefault(),s===mr.VISIBLE&&(e.persist(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()),a(),void n(r[t],i);case 27:if(e.preventDefault(),l(),a(),s===mr.VISIBLE)return e.persist(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation(),!1;break;default:if(f.match(/^[\d\w]$/i)){const e=r.findIndex((e=>{if(!d(e))return!1;const[,r]=e;return"string"==typeof r&&r[0].toLowerCase()===f}));~e&&o(e)}}}));return[t,u,d,l,i]};var hn=S(514),pn=({anchor:e,children:r,placement:n,margin:t,className:o,...i})=>{const s=(0,E.useRef)(null),{style:a,placement:c}=(0,or.usePosition)(e,s,(0,E.useMemo)((()=>({placement:n,margin:t})),[n,t]))||{},l=(0,E.useMemo)((()=>({position:"fixed",...a})),[a]),[d]=(0,E.useState)((()=>{const e=document.getElementById("position-container");if(e)return e;const r=document.createElement("div");return r.id="position-container",document.body.appendChild(r),r}));return(0,E.useEffect)((()=>()=>{0===d.childNodes.length&&document.body.removeChild(d)}),[d]),(0,hn.createPortal)((0,E.cloneElement)(r,{ref:s,style:l,...i,placement:c}),d)},gn=({width:e,visible:r,children:n,...t})=>(0,C.jsx)(mr,{visibility:r,children:(0,C.jsx)(pn,{...t,children:n})});const vn=e=>(0,C.jsx)(rr,{"rcx-autocomplete__addon":!0,...e}),jn=(e,r)=>e?"string"==typeof e?r.filter((r=>r.value===e)):r?.filter((r=>e.includes(r.value))):[],wn=e=>r=>!!e&&("string"==typeof e?r.value===e:e.includes(r.value));function _n({value:e,filter:r,setFilter:n,options:t=[],renderItem:o,renderSelected:i,onChange:s,renderEmpty:a,placeholder:c,error:l,disabled:d,multiple:u,onBlur:x=()=>{},...f}){const m=(0,E.useRef)(null),{ref:b,borderBoxSize:h}=(0,or.useResizeObserver)(),[p,g]=(0,E.useState)((()=>jn(e,t)||[]));(0,E.useEffect)((()=>{g((r=>r.every(wn(e))?r:r.filter(wn(e))))}),[e]);const v=(0,or.useEffectEvent)((([r])=>{p.some((e=>e.value===r))||(u?(g([...p,...jn(r,t)]),s([...e||[],r])):(g(jn(r,t)),s(r)),n?.("")),I()})),j=(0,or.useEffectEvent)((r=>{r.stopPropagation(),r.preventDefault();const n=p.filter((e=>e.value!==r.currentTarget.value)),t=u&&Array.isArray(e)?e?.filter((e=>e!==r.currentTarget.value))||[]:"";g(n),s(t),I()})),w=(0,E.useMemo)((()=>t.map((({value:e,label:r})=>[e,r]))),[t]),_=(0,E.useMemo)((()=>t.findIndex((e=>p[0]?.value===e.value))),[t,p]),[k,y,,S,[N,I,B]]=bn(_,w,v),R=(0,or.useEffectEvent)((e=>{I(),x(e)}));return(0,E.useEffect)(S,[r,S]),(0,C.jsxs)(rr,{"rcx-autocomplete":!0,ref:b,onClick:(0,or.useEffectEvent)((()=>m.current?.focus())),flexGrow:1,className:(0,E.useMemo)((()=>[l&&"invalid",d&&"disabled"]),[l,d]),children:[(0,C.jsx)(rr,{display:"flex",flexGrow:1,alignItems:"center",flexWrap:"wrap",margin:"neg-x4",role:"group",children:(0,C.jsxs)($r,{all:"x4",children:[(0,C.jsx)(Dr,{ref:m,onChange:(0,or.useEffectEvent)((e=>n?.(e.currentTarget.value))),onBlur:R,onFocus:B,onKeyDown:y,placeholder:N!==mr.HIDDEN&&e?void 0:c,order:1,"rcx-input-box--undecorated":!0,value:r,disabled:d,...f}),p.map((e=>i?(0,C.jsx)(i,{selected:e,onRemove:j},e.value):(0,C.jsx)(Pr,{value:e.value,children:e.label,onClick:j},e.value)))]})}),(0,C.jsx)(vn,{children:(0,C.jsx)(ar,{name:N===mr.VISIBLE?"cross":"magnifier",size:"x20",color:"default"})}),(0,C.jsx)(gn,{visible:N,anchor:b,children:(0,C.jsx)(xn,{width:h.inlineSize,onSelect:v,renderItem:o,renderEmpty:a,cursor:k,value:e,options:w})})]})}var kn=({size:e="x36",children:r,...n})=>(n.className=z(n.className,["rcx-box rcx-box--full rcx-avatar",e&&`rcx-avatar--${e}`].filter(Boolean).join(" ")),(0,C.jsx)("figure",{...n,children:r})),yn=({size:e="x36",rounded:r=!1,objectFit:n=!1,url:t,className:o,alt:i,...s})=>{const a=["rcx-avatar__element",n&&"rcx-avatar__element--object-fit",e&&`rcx-avatar__element--${e}`,r&&"rcx-avatar__element--rounded"].filter(Boolean).join(" ");return(0,C.jsx)(kn,{size:e,className:o,children:(0,C.jsx)("img",{src:t,className:a,alt:i||"",...s})})},Sn=({children:e,...r})=>(r.className=z(r.className,"rcx-avatar-stack"),(0,C.jsx)("div",{...r,children:Ir()(e).reverse()}));function Nn({is:e="span",variant:r="secondary",small:n,className:t,disabled:o,...i}){const s=[r,n&&"small",o&&"disabled"].filter(Boolean).map((e=>`rcx-badge--${e}`)).join(" ");return(0,C.jsx)(e,{className:z(t,`rcx-box rcx-box--full rcx-badge ${s}`),...i})}const Cn=(0,E.forwardRef)((function({primary:e,secondary:r,danger:n,warning:t,success:o,external:i,icon:s,is:a="button",rel:c,tiny:l,mini:d,small:u,medium:x,large:f,square:m,loading:b,disabled:h,children:p,...g},v){const j="a"===a&&{rel:i?"noopener noreferrer":void 0,target:i?"_blank":void 0}||"button"===a&&{type:"button"}||{},w=(0,E.useMemo)((()=>{const i=(e?"primary":r&&o&&"secondary-success")||r&&t&&"secondary-warning"||r&&n&&"secondary-danger"||o&&"success"||t&&"warning"||n&&"danger"||r&&"secondary";return i?{[`rcx-button--${[i].filter(Boolean).join("-")}`]:!0}:{}}),[e,r,n,t,o]);return(0,C.jsx)(rr,{is:a,type:"button","rcx-button":!0,...w,"rcx-button--small":u,"rcx-button--medium":x,"rcx-button--large":f,"rcx-button--square":m,"rcx-button--tiny-square":l&&m,"rcx-button--mini-square":d&&m,"rcx-button--small-square":u&&m,"rcx-button--medium-square":x&&m,"rcx-button--large-square":f&&m,"rcx-button--loading":b,disabled:h||b,ref:v,...j,...g,children:(0,C.jsxs)("span",{className:"rcx-button--content",children:[s&&!b&&(0,C.jsx)(ar,{size:"x16",name:s,mie:4}),b&&(0,C.jsx)(ar,{size:"x16",name:"loading",mie:4}),p]})})}));var In=Cn;const Bn=({tiny:e,mini:r,small:n})=>r?"x16":"x20",Rn=(0,E.forwardRef)((({icon:e,children:r,...n},t)=>(0,C.jsxs)(Cn,{ref:t,square:!0,flexShrink:0,...n,children:[r,(0,C.jsx)(ar,{name:e,size:Bn(n)})]}))),$n=(0,E.forwardRef)((({icon:e,primary:r,info:n,secondary:t,danger:o,warning:i,success:s,mini:a,large:c,tiny:l,small:d,medium:u,pressed:x,children:f,...m},b)=>{const h=(0,E.useMemo)((()=>(t&&o?"secondary-danger":t&&i&&"secondary-warning")||t&&s&&"secondary-success"||t&&n&&"secondary-info"||n&&"info"||s&&"success"||i&&"warning"||o&&"danger"||r&&"secondary-info"||t&&"secondary"||""),[o,n,r,t,s,i]),p=(0,E.useMemo)((()=>{const e={};return h&&(e[`${(e=>e?[`rcx-button--icon-${[e].filter(Boolean).join("-")}`]:[""])(h)}`]=!0),x&&(e[`${(e=>[`rcx-button--icon-${[e].filter(Boolean).join("-")}-pressed`])(h)}`]=!0),e}),[h,x]),g=(0,E.useMemo)((()=>(a?"mini":l&&"tiny")||d&&"small"||u&&"medium"||c&&"large"||"large"),[u,a,d,l,c]);return(0,C.jsxs)(rr,{is:"button",type:"button","rcx-button":!0,"rcx-button--icon":!0,"rcx-button--square":!0,...p,[`rcx-button--${g}-square`]:!0,"rcx-button--icon-pressed":x,ref:b,...m,children:[(0,E.isValidElement)(e)?e:(0,C.jsx)(ar,{name:e,size:(c?"x28":u&&"x24")||d&&"x20"||l&&"x16"||a&&"x12"||"x28"}),f]})})),En=["neutral","info","success","warning","danger"];var Mn=({actionable:e,children:r,className:n,closeable:t,icon:o,inline:i=!1,link:s,linkText:a="More info",linkTarget:c="_blank",onAction:l,onClose:d,title:u,variant:x="neutral",...f})=>{const m=(0,E.useRef)(null),{inlineSize:b}=(0,or.useBorderBoxSize)(m,{debounceDelay:70}),h=(0,E.useMemo)((()=>b>375),[b]);x=En.includes(x)?x:En[0];const p=(0,E.useCallback)((()=>{l&&l()}),[l]),g=(0,E.useCallback)((e=>{e.stopPropagation(),d&&d()}),[d]),v=(0,or.useButtonPattern)(p);return(0,C.jsxs)("div",{className:B("rcx-banner")({[x]:!0,inline:i,actionable:e},n),ref:m,...l?{...v}:{role:"banner",tabIndex:-1},...f,children:[o&&h&&(0,C.jsx)("div",{className:B(`rcx-banner__icon rcx-banner__icon--${x}`)({inline:i}),children:o}),(0,C.jsxs)("div",{className:B("rcx-banner__content")({inline:i}),children:[u&&(0,C.jsx)("h6",{className:B("rcx-banner__title")({inline:i}),children:u}),r,s&&(0,C.jsx)("a",{href:s,target:c,className:B("rcx-banner__link")({[x]:!0}),children:a})]}),t&&(0,C.jsx)("div",{className:B("rcx-banner__close-button")({inline:i}),children:(0,C.jsx)($n,{small:!0,onClick:g,icon:"cross"})})]})};const Tn=({secondary:e,label:r,onClick:n,icon:t,...o})=>(0,C.jsxs)("button",{className:"rcx-box rcx-box--full rcx-bubble__button "+(e?"rcx-bubble__button--secondary":"rcx-bubble__button--primary"),onClick:n,...o,children:[t&&(0,C.jsx)(ar,{name:t,size:"x16"}),r&&(0,C.jsx)("span",{children:r})]}),Pn=({secondary:e,label:r,icon:n,...t})=>(0,C.jsxs)("span",{className:"rcx-bubble__item "+(e?"rcx-bubble__item--secondary":"rcx-bubble__item--primary"),...t,children:[n&&(0,C.jsx)(ar,{name:n,size:"x16",mie:8}),r&&(0,C.jsx)("span",{children:r})]}),Dn=({secondary:e,children:r,onClick:n,icon:t,onDismiss:o,small:i,contentProps:s,dismissProps:a,...c})=>(0,C.jsxs)("div",{className:["rcx-bubble","rcx-box","rcx-box--full",o&&"rcx-bubble__group",i&&"rcx-bubble--small"].join(" "),...c,children:[n?(0,C.jsx)(Tn,{onClick:n,secondary:e,icon:t,label:r,...s}):(0,C.jsx)(Pn,{secondary:e,icon:t,label:r,...s}),o&&(0,C.jsx)(Tn,{onClick:o,secondary:e,icon:"cross-small","aria-label":`Dismiss ${r}`,...a})]}),zn=(0,E.forwardRef)((function({align:e="start",children:r,stretch:n,vertical:t,wrap:o,small:i,large:s,className:a,...c},l){return(0,C.jsx)("div",{ref:l,className:["rcx-button-group",n&&"rcx-button-group--stretch",t&&"rcx-button-group--vertical",e&&`rcx-button-group--align-${e}`,i&&"rcx-button-group--small",s&&"rcx-button-group--large",o&&"rcx-button-group--wrap",a].filter(Boolean).join(" "),role:"group",...c,children:Rr(r,(e=>({className:T(e.className,"rcx-button-group__item")})))})})),Vn=({type:e,title:r,children:n,icon:t,className:o,actions:i,...s})=>{const{ref:a,borderBoxSize:c}=(0,or.useResizeObserver)(),l=c.inlineSize&&c.inlineSize>=420,d=("info"===e?"info-circled":"success"===e&&"checkmark-circled")||"warning"===e&&"warning"||"danger"===e&&"ban"||"info-circled";return(0,C.jsxs)(rr,{ref:a,is:"section",className:["rcx-callout",e&&`rcx-callout--${e}`,o].filter(Boolean).join(" "),...s,children:[(0,C.jsx)(ar,{className:"rcx-callout__icon",name:t||d,size:"x20"}),(0,C.jsxs)(rr,{"rcx-callout__wrapper":!0,"rcx-callout__wrapper--large":l,children:[(0,C.jsxs)(rr,{"rcx-callout__wrapper-content":!0,children:[r&&(0,C.jsx)(rr,{"rcx-callout__title":!0,children:r}),n&&(0,C.jsx)(rr,{"rcx-callout__content":!0,children:n})]}),i&&(0,C.jsx)(rr,{"rcx-callout__actions":!0,children:i})]})]})};var Fn=({horizontal:e,hero:r,clickable:n,...t})=>{const o=!(0,or.useBreakpoints)().includes("sm");return(0,C.jsx)(rr,{"rcx-card":!0,"rcx-card__horizontal":e,"rcx-card__vertical":!e,"rcx-card__hero":r,"rcx-card__horizontal--wrap":e&&o,"rcx-card__clickable":n,...t})},On=({children:e,flexDirection:r="row",height:n,...t})=>(0,C.jsx)(rr,{fontScale:"p2m",display:"flex",flexDirection:r,flexGrow:1,height:n,"rcx-card__body":!0,...t,children:e}),Ln=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-card__col",...r,children:e}),An=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-card__row",...r,children:e});const qn=({title:e,id:r,...n})=>(0,C.jsxs)(rr,{is:"span",mi:2,"rcx-label__info":!0,children:[(0,C.jsx)("span",{hidden:!0,id:r,children:e}),(0,C.jsx)(ar,{...n,name:"info-circled",title:e})]});var Hn=({children:e,info:r,variant:n="h4",...t})=>(0,C.jsxs)(rr,{fontScale:n,is:n,"rcx-card__title":!0,...t,children:[e,r&&(0,C.jsx)(qn,{title:r})]}),Wn=({...e})=>(0,C.jsx)("div",{className:"rcx-card__controls",...e}),Gn=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-card__header",...r,children:e});const Un=({align:e="start",children:r,stretch:n,vertical:t,wrap:o,...i})=>(0,C.jsx)(rr,{"rcx-card-group":!0,"rcx-card-group--align":e,"rcx-card-group--stretch":n,"rcx-card-group--vertical":t,"rcx-card-group--wrap":o,role:"group",...i,children:Rr(r,(e=>({className:T(e.className,"rcx-card-group__item")})))}),Kn=({xs:e,sm:r,md:n,lg:t,xl:o,...i})=>(0,C.jsx)(rr,{"rcx-grid__item":!0,"rcx-grid__item--xs":e,"rcx-grid__item--sm":r,"rcx-grid__item--md":n,"rcx-grid__item--lg":t,"rcx-grid__item--xl":o,...i}),Zn=({xs:e,sm:r,md:n,lg:t,xl:o,...i})=>(0,C.jsx)(rr,{"rcx-grid__wrapper":!0,children:(0,C.jsx)(rr,{"rcx-grid":!0,"rcx-grid--xs":e,"rcx-grid--sm":r,"rcx-grid--md":n,"rcx-grid--lg":t,"rcx-grid--xl":o,...i})});Zn.Item=Kn;var Yn=Zn;const Xn=({children:e,breakpoints:r,...n})=>(0,C.jsx)(Yn,{"rcx-card-grid":!0,m:-8,...n,children:E.Children.map(e,(e=>(0,C.jsx)(Kn,{"rcx-card-grid__item":!0,p:8,...r,children:e})))});var Qn=({children:e,onClick:r,buttonText:n="Copy",buttonDisabled:t=!1,...o})=>e?(0,C.jsxs)(rr,{is:"pre","rcx-code-snippet":!0,...o,children:[(0,C.jsx)(rr,{role:"code","rcx-code-snippet__codebox":!0,children:e}),r&&e&&(0,C.jsx)(rr,{children:(0,C.jsx)(Cn,{small:!0,primary:!0,onClick:r,disabled:t,children:n})})]}):(0,C.jsx)(rr,{is:"pre","rcx-code-snippet":!0,...o,children:(0,C.jsx)(Or,{w:"100%","aria-hidden":!0,"aria-busy":!0})});const Jn=(0,E.forwardRef)((function({children:e,width:r,position:n,bg:t="room",...o},i){return(0,C.jsx)(rr,{ref:i,"rcx-vertical-bar":!0,bg:t,color:"default",display:"flex",flexDirection:"column",flexShrink:0,width:r,borderInlineStartWidth:"default",borderInlineStartColor:"extra-light",borderInlineStartStyle:"solid",height:"full",position:n,insetInlineEnd:"none",insetBlockStart:"none",zIndex:10,...o,children:e})}));var et=(0,E.memo)(Jn),rt=(0,E.memo)((({name:e,...r})=>(0,C.jsx)($n,{...r,small:!0,flexShrink:0,icon:e}))),nt=(0,E.memo)((e=>(0,C.jsx)(zn,{...e}))),tt=(0,E.memo)((e=>(0,C.jsx)(In,{...e})));const ot=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,"rcx-vertical-bar__content":!0,paddingInline:24,display:"flex",flexDirection:"column",overflowY:"hidden",height:"full",...e})}));var it=(0,E.memo)(ot);const st=(0,E.forwardRef)((function({icon:e="magnifier",title:r="Nothing Found",subtitle:n,...t},o){return(0,C.jsx)(it,{justifyContent:"center",...t,ref:o,children:(0,C.jsxs)(Cc,{children:[(0,C.jsx)(Rc,{name:e}),(0,C.jsx)(zc,{children:r}),n&&(0,C.jsx)(Ec,{children:n})]})})}));var at=(0,E.memo)(st);const ct=(0,E.forwardRef)((function({children:e,...r},n){return(0,C.jsx)(rr,{ref:n,p:24,...r,children:e})}));var lt=(0,E.memo)(ct),dt=(0,E.memo)((({children:e,...r})=>(0,C.jsx)(rr,{display:"flex",alignItems:"center",height:"x56",pi:24,borderBlockEndWidth:"default",borderBlockColor:"extra-light",flexShrink:0,...r,children:(0,C.jsx)(rr,{marginInline:"neg-x4",display:"flex",alignItems:"center",justifyContent:"space-between",flexGrow:1,height:"100%",overflow:"hidden",children:(0,C.jsx)($r,{inline:"x4",children:e})})}))),ut=(0,E.memo)((e=>(0,C.jsx)(ar,{...e,pi:2,size:"x24"})));const xt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,"rcx-vertical-bar__section":!0,pi:24,pb:16,display:"flex",alignItems:"center",flexGrow:1,borderBlockEndWidth:"default",borderBlockColor:"extra-light",...e})}));var ft=(0,E.memo)(xt),mt=(0,E.memo)((e=>(0,C.jsxs)(et,{...e,children:[(0,C.jsx)(dt,{children:(0,C.jsx)(Or,{width:"100%"})}),(0,C.jsxs)(rr,{p:24,children:[(0,C.jsx)(Or,{mbe:4,width:"32px",height:"32px",variant:"rect"}),Array(5).fill(5).map(((e,r)=>(0,C.jsx)(Or,{},r)))]})]}))),bt=(0,E.memo)((e=>(0,C.jsx)(rr,{flexShrink:1,flexGrow:1,fontScale:"h4",withTruncatedText:!0,...e})));const ht=(0,E.forwardRef)((function({children:e,width:r,position:n,bg:t="room",...o},i){return(0,C.jsx)(rr,{ref:i,"rcx-vertical-bar":!0,bg:t,color:"default",display:"flex",flexDirection:"column",flexShrink:0,width:r,borderInlineStartWidth:"default",borderInlineStartColor:"extra-light",borderInlineStartStyle:"solid",height:"full",position:n,insetInlineEnd:"none",insetBlockStart:"none",zIndex:10,...o,children:e})}));var pt=(0,E.memo)(ht),gt=(0,E.memo)((({name:e,...r})=>(0,C.jsx)($n,{...r,small:!0,flexShrink:0,icon:e}))),vt=(0,E.memo)((e=>(0,C.jsx)(zn,{...e}))),jt=(0,E.memo)((e=>(0,C.jsx)(In,{...e})));const wt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,"rcx-vertical-bar__content":!0,paddingInline:24,display:"flex",flexDirection:"column",overflowY:"hidden",height:"full",...e})}));var _t=(0,E.memo)(wt);const kt=(0,E.forwardRef)((function({icon:e="magnifier",title:r="Nothing Found",subtitle:n,...t},o){return(0,C.jsx)(_t,{justifyContent:"center",...t,ref:o,children:(0,C.jsxs)(Cc,{children:[(0,C.jsx)(Rc,{name:e}),(0,C.jsx)(zc,{children:r}),n&&(0,C.jsx)(Ec,{children:n})]})})}));var yt=(0,E.memo)(kt);const St=(0,E.forwardRef)((function({children:e,...r},n){return(0,C.jsx)(rr,{ref:n,pi:16,pb:20,...r,children:e})}));var Nt=(0,E.memo)(St),Ct=(0,E.memo)((({children:e,...r})=>(0,C.jsx)(rr,{display:"flex",alignItems:"center",height:"x44",pi:16,borderBlockEndWidth:"default",borderBlockColor:"extra-light",flexShrink:0,...r,children:(0,C.jsx)(rr,{display:"flex",alignItems:"center",justifyContent:"space-between",flexGrow:1,height:"100%",overflow:"hidden",className:M.css`
|
|
197
|
+
`,null),l=(0,E.useCallback)((e=>(e.className=c&&T(e.className,c),void 0!==o&&void 0===e.onScroll&&(e.onScroll=a),e)),[c,a,o]);return(0,C.jsx)(V.Provider,{children:e,value:F(l)})};const ln=(0,E.forwardRef)((function({elevation:e="1",padding:r=16,...n},t){return(0,C.jsx)(rr,{ref:t,"rcx-tile":!0,"rcx-tile--elevation":e,padding:r,...n})}));var dn=ln,un=(0,E.memo)((({customEmpty:e})=>(0,C.jsx)(Zr,{label:e||"Empty"})));var xn=(0,E.forwardRef)((function({maxHeight:e="x144",multiple:r,renderEmpty:n=un,options:t,cursor:o,renderItem:i=Zr,onSelect:s,customEmpty:a,...c},l){const d=(0,E.useRef)(null);(0,E.useLayoutEffect)((()=>{if(!d.current)return;const{current:e}=d,r=e?.querySelector(".rcx-option--focus");r&&(r.offsetTop+r.clientHeight>e.scrollTop+e.clientHeight||r.offsetTop-r.clientHeight<e.scrollTop)&&(e.scrollTop=r.offsetTop)}),[o]);const u=(0,E.useMemo)((()=>t?.map((([e,n,t,a,c,l],d)=>{switch(c){case"heading":return(0,C.jsx)(sn,{children:n},e);case"divider":return(0,C.jsx)(en,{},e);default:return(0,C.jsx)(i,{role:"option",label:n,onMouseDown:r=>{if(!a)return Ar(r),s([e,n,t,a,c,l]),!1},value:e,selected:t||!0!==r&&null,disabled:a,focus:o===d||null},e)}}))),[t,r,o,s,i]);return(0,C.jsx)(rr,{"rcx-options":!0,...c,ref:l,children:(0,C.jsx)(dn,{padding:0,paddingBlock:"x12",paddingInline:0,elevation:"2",children:(0,C.jsx)(cn,{vertical:!0,smooth:!0,children:(0,C.jsxs)(dn,{ref:d,elevation:"0",padding:"none",maxHeight:e,onMouseDown:Ar,onClick:Ar,is:"ol","aria-multiselectable":r||!0,role:"listbox","aria-activedescendant":t?.[o]?.[0]?String(t?.[o]?.[0]):void 0,children:[!t.length&&(0,C.jsx)(n,{customEmpty:a}),u]})})})})})),fn=(0,E.forwardRef)((function({children:e,...r},n){return(0,C.jsx)(rr,{"rcx-options":!0,children:(0,C.jsx)(dn,{padding:0,paddingBlock:"x12",paddingInline:0,children:(0,C.jsx)(cn,{vertical:!0,smooth:!0,children:(0,C.jsx)(dn,{ref:n,elevation:"0",padding:"none",maxHeight:"x240",...r,children:e})})})})}));const mn=(e=mr.HIDDEN)=>{const[r,n]=(0,or.useDebouncedState)(e,10);return[r,(0,or.useEffectEvent)((()=>n(mr.HIDDEN))),(0,or.useEffectEvent)((()=>n(mr.VISIBLE)))]},bn=(e,r,n)=>{const[t,o]=(0,E.useState)(e),i=mn(),[s,a,c]=i,l=(0,or.useEffectEvent)((()=>o(0))),d=(0,or.useEffectEvent)((e=>{const{keyCode:r}=e;if(mr.HIDDEN===s&&9===r)return c()})),u=(0,or.useEffectEvent)((e=>{const d=([,,,e])=>!e||"option"===e,u=()=>((e,r)=>{for(let n=e.length-1;n>=0;n--)if(r(e[n],n,e))return n;return-1})(r,d),{keyCode:x,key:f}=e;switch(mr.HIDDEN===s&&27!==x&&9!==x&&c(),x){case 36:return e.preventDefault(),l();case 35:return e.preventDefault(),o(u());case 38:return e.preventDefault(),o(t<1?u():e=>((e,r,n)=>{for(let t=n-1;t>=0;t--)if(r(e[t],t,e))return t;return-1})(r,d,e));case 40:return e.preventDefault(),t===u()?o(0):o((e=>((e,r,n)=>{for(let t=n+1;t<e.length;t++)if(r(e[t],t,e))return t;return-1})(r,d,e)));case 13:return e.preventDefault(),s===mr.VISIBLE&&(e.persist(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()),a(),void n(r[t],i);case 27:if(e.preventDefault(),l(),a(),s===mr.VISIBLE)return e.persist(),e.nativeEvent.stopImmediatePropagation(),e.stopPropagation(),!1;break;default:if(f.match(/^[\d\w]$/i)){const e=r.findIndex((e=>{if(!d(e))return!1;const[,r]=e;return"string"==typeof r&&r[0].toLowerCase()===f}));~e&&o(e)}}}));return[t,u,d,l,i]};var hn=S(514),pn=({anchor:e,children:r,placement:n,margin:t,className:o,...i})=>{const s=(0,E.useRef)(null),{style:a,placement:c}=(0,or.usePosition)(e,s,(0,E.useMemo)((()=>({placement:n,margin:t})),[n,t]))||{},l=(0,E.useMemo)((()=>({position:"fixed",...a})),[a]),[d]=(0,E.useState)((()=>{const e=document.getElementById("position-container");if(e)return e;const r=document.createElement("div");return r.id="position-container",document.body.appendChild(r),r}));return(0,E.useEffect)((()=>()=>{0===d.childNodes.length&&document.body.removeChild(d)}),[d]),(0,hn.createPortal)((0,E.cloneElement)(r,{ref:s,style:l,...i,placement:c}),d)},gn=({width:e,visible:r,children:n,...t})=>(0,C.jsx)(mr,{visibility:r,children:(0,C.jsx)(pn,{...t,children:n})});const vn=e=>(0,C.jsx)(rr,{"rcx-autocomplete__addon":!0,...e}),jn=(e,r)=>e?"string"==typeof e?r.filter((r=>r.value===e)):r?.filter((r=>e.includes(r.value))):[],wn=e=>r=>!!e&&("string"==typeof e?r.value===e:e.includes(r.value));function _n({value:e,filter:r,setFilter:n,options:t=[],renderItem:o,renderSelected:i,onChange:s,renderEmpty:a,placeholder:c,error:l,disabled:d,multiple:u,onBlur:x=()=>{},...f}){const m=(0,E.useRef)(null),{ref:b,borderBoxSize:h}=(0,or.useResizeObserver)(),[p,g]=(0,E.useState)((()=>jn(e,t)||[]));(0,E.useEffect)((()=>{g((r=>r.every(wn(e))?r:r.filter(wn(e))))}),[e]);const v=(0,or.useEffectEvent)((([r])=>{p.some((e=>e.value===r))||(u?(g([...p,...jn(r,t)]),s([...e||[],r])):(g(jn(r,t)),s(r)),n?.("")),I()})),j=(0,or.useEffectEvent)((r=>{r.stopPropagation(),r.preventDefault();const n=p.filter((e=>e.value!==r.currentTarget.value)),t=u&&Array.isArray(e)?e?.filter((e=>e!==r.currentTarget.value))||[]:"";g(n),s(t),I()})),w=(0,E.useMemo)((()=>t.map((({value:e,label:r})=>[e,r]))),[t]),_=(0,E.useMemo)((()=>t.findIndex((e=>p[0]?.value===e.value))),[t,p]),[k,y,,S,[N,I,B]]=bn(_,w,v),R=(0,or.useEffectEvent)((e=>{I(),x(e)}));return(0,E.useEffect)(S,[r,S]),(0,C.jsxs)(rr,{"rcx-autocomplete":!0,ref:b,onClick:(0,or.useEffectEvent)((()=>m.current?.focus())),flexGrow:1,className:(0,E.useMemo)((()=>[l&&"invalid",d&&"disabled"]),[l,d]),children:[(0,C.jsx)(rr,{display:"flex",flexGrow:1,alignItems:"center",flexWrap:"wrap",margin:"neg-x4",role:"group",children:(0,C.jsxs)($r,{all:"x4",children:[(0,C.jsx)(Dr,{ref:m,onChange:(0,or.useEffectEvent)((e=>n?.(e.currentTarget.value))),onBlur:R,onFocus:B,onKeyDown:y,placeholder:N!==mr.HIDDEN&&e?void 0:c,order:1,"rcx-input-box--undecorated":!0,value:r,disabled:d,...f}),p.map((e=>i?(0,C.jsx)(i,{selected:e,onRemove:j},e.value):(0,C.jsx)(Pr,{value:e.value,children:e.label,onClick:j},e.value)))]})}),(0,C.jsx)(vn,{children:(0,C.jsx)(ar,{name:N===mr.VISIBLE?"cross":"magnifier",size:"x20",color:"default"})}),(0,C.jsx)(gn,{visible:N,anchor:b,children:(0,C.jsx)(xn,{width:h.inlineSize,onSelect:v,renderItem:o,renderEmpty:a,cursor:k,value:e,options:w})})]})}var kn=({size:e="x36",children:r,...n})=>(n.className=z(n.className,["rcx-box rcx-box--full rcx-avatar",e&&`rcx-avatar--${e}`].filter(Boolean).join(" ")),(0,C.jsx)("figure",{...n,children:r})),yn=({size:e="x36",rounded:r=!1,objectFit:n=!1,url:t,className:o,alt:i,...s})=>{const a=["rcx-avatar__element",n&&"rcx-avatar__element--object-fit",e&&`rcx-avatar__element--${e}`,r&&"rcx-avatar__element--rounded"].filter(Boolean).join(" ");return(0,C.jsx)(kn,{size:e,className:o,children:(0,C.jsx)("img",{src:t,className:a,alt:i||"",...s})})},Sn=({children:e,...r})=>(r.className=z(r.className,"rcx-avatar-stack"),(0,C.jsx)("div",{...r,children:Ir()(e).reverse()}));function Nn({is:e="span",variant:r="secondary",small:n,className:t,disabled:o,...i}){const s=[r,n&&"small",o&&"disabled"].filter(Boolean).map((e=>`rcx-badge--${e}`)).join(" ");return(0,C.jsx)(e,{className:z(t,`rcx-box rcx-box--full rcx-badge ${s}`),...i})}const Cn=(0,E.forwardRef)((function({primary:e,secondary:r,danger:n,warning:t,success:o,external:i,icon:s,is:a="button",rel:c,tiny:l,mini:d,small:u,medium:x,large:f,square:m,loading:b,disabled:h,children:p,...g},v){const j="a"===a&&{rel:i?"noopener noreferrer":void 0,target:i?"_blank":void 0}||"button"===a&&{type:"button"}||{},w=(0,E.useMemo)((()=>{const i=(e?"primary":r&&o&&"secondary-success")||r&&t&&"secondary-warning"||r&&n&&"secondary-danger"||o&&"success"||t&&"warning"||n&&"danger"||r&&"secondary";return i?{[`rcx-button--${[i].filter(Boolean).join("-")}`]:!0}:{}}),[e,r,n,t,o]);return(0,C.jsx)(rr,{is:a,type:"button","rcx-button":!0,...w,"rcx-button--small":u,"rcx-button--medium":x,"rcx-button--large":f,"rcx-button--square":m,"rcx-button--tiny-square":l&&m,"rcx-button--mini-square":d&&m,"rcx-button--small-square":u&&m,"rcx-button--medium-square":x&&m,"rcx-button--large-square":f&&m,"rcx-button--loading":b,disabled:h||b,ref:v,...j,...g,children:(0,C.jsxs)("span",{className:"rcx-button--content",children:[s&&!b&&(0,C.jsx)(ar,{size:"x16",name:s,mie:4}),b&&(0,C.jsx)(ar,{size:"x16",name:"loading",mie:4}),p]})})}));var In=Cn;const Bn=({tiny:e,mini:r,small:n})=>r?"x16":"x20",Rn=(0,E.forwardRef)((({icon:e,children:r,...n},t)=>(0,C.jsxs)(Cn,{ref:t,square:!0,flexShrink:0,...n,children:[r,(0,C.jsx)(ar,{name:e,size:Bn(n)})]}))),$n=(0,E.forwardRef)((({icon:e,primary:r,info:n,secondary:t,danger:o,warning:i,success:s,mini:a,large:c,tiny:l,small:d,medium:u,pressed:x,children:f,...m},b)=>{const h=(0,E.useMemo)((()=>(t&&o?"secondary-danger":t&&i&&"secondary-warning")||t&&s&&"secondary-success"||t&&n&&"secondary-info"||n&&"info"||s&&"success"||i&&"warning"||o&&"danger"||r&&"secondary-info"||t&&"secondary"||""),[o,n,r,t,s,i]),p=(0,E.useMemo)((()=>{const e={};return h&&(e[`${(e=>e?[`rcx-button--icon-${[e].filter(Boolean).join("-")}`]:[""])(h)}`]=!0),x&&(e[`${(e=>[`rcx-button--icon-${[e].filter(Boolean).join("-")}-pressed`])(h)}`]=!0),e}),[h,x]),g=(0,E.useMemo)((()=>(a?"mini":l&&"tiny")||d&&"small"||u&&"medium"||c&&"large"||"large"),[u,a,d,l,c]);return(0,C.jsxs)(rr,{is:"button",type:"button","rcx-button":!0,"rcx-button--icon":!0,"rcx-button--square":!0,...p,[`rcx-button--${g}-square`]:!0,"rcx-button--icon-pressed":x,ref:b,...m,children:[(0,E.isValidElement)(e)?e:(0,C.jsx)(ar,{name:e,size:(c?"x28":u&&"x24")||d&&"x20"||l&&"x16"||a&&"x12"||"x28"}),f]})})),En=["neutral","info","success","warning","danger"];var Mn=({actionable:e,children:r,className:n,closeable:t,icon:o,inline:i=!1,link:s,linkText:a="More info",linkTarget:c="_blank",onAction:l,onClose:d,title:u,variant:x="neutral",...f})=>{const m=(0,E.useRef)(null),{inlineSize:b}=(0,or.useBorderBoxSize)(m,{debounceDelay:70}),h=(0,E.useMemo)((()=>b>375),[b]);x=En.includes(x)?x:En[0];const p=(0,E.useCallback)((()=>{l&&l()}),[l]),g=(0,E.useCallback)((e=>{e.stopPropagation(),d&&d()}),[d]),v=(0,or.useButtonPattern)(p);return(0,C.jsxs)("div",{className:B("rcx-banner")({[x]:!0,inline:i,actionable:e},n),ref:m,...l?{...v}:{role:"banner",tabIndex:-1},...f,children:[o&&h&&(0,C.jsx)("div",{className:B(`rcx-banner__icon rcx-banner__icon--${x}`)({inline:i}),children:o}),(0,C.jsxs)("div",{className:B("rcx-banner__content")({inline:i}),children:[u&&(0,C.jsx)("h6",{className:B("rcx-banner__title")({inline:i}),children:u}),r,s&&(0,C.jsx)("a",{href:s,target:c,className:B("rcx-banner__link")({[x]:!0}),children:a})]}),t&&(0,C.jsx)("div",{className:B("rcx-banner__close-button")({inline:i}),children:(0,C.jsx)($n,{small:!0,onClick:g,icon:"cross"})})]})};const Tn=({secondary:e,label:r,onClick:n,icon:t,...o})=>(0,C.jsxs)("button",{className:"rcx-box rcx-box--full rcx-bubble__button "+(e?"rcx-bubble__button--secondary":"rcx-bubble__button--primary"),onClick:n,...o,children:[t&&(0,C.jsx)(ar,{name:t,size:"x16"}),r&&(0,C.jsx)("span",{children:r})]}),Pn=({secondary:e,label:r,icon:n,...t})=>(0,C.jsxs)("span",{className:"rcx-bubble__item "+(e?"rcx-bubble__item--secondary":"rcx-bubble__item--primary"),...t,children:[n&&(0,C.jsx)(ar,{name:n,size:"x16",mie:8}),r&&(0,C.jsx)("span",{children:r})]}),Dn=({secondary:e,children:r,onClick:n,icon:t,onDismiss:o,small:i,contentProps:s,dismissProps:a,...c})=>(0,C.jsxs)("div",{className:["rcx-bubble","rcx-box","rcx-box--full",o&&"rcx-bubble__group",i&&"rcx-bubble--small"].join(" "),...c,children:[n?(0,C.jsx)(Tn,{onClick:n,secondary:e,icon:t,label:r,...s}):(0,C.jsx)(Pn,{secondary:e,icon:t,label:r,...s}),o&&(0,C.jsx)(Tn,{onClick:o,secondary:e,icon:"cross-small","aria-label":`Dismiss ${r}`,...a})]}),zn=(0,E.forwardRef)((function({align:e="start",children:r,stretch:n,vertical:t,wrap:o,small:i,large:s,className:a,...c},l){return(0,C.jsx)("div",{ref:l,className:["rcx-button-group",n&&"rcx-button-group--stretch",t&&"rcx-button-group--vertical",e&&`rcx-button-group--align-${e}`,i&&"rcx-button-group--small",s&&"rcx-button-group--large",o&&"rcx-button-group--wrap",a].filter(Boolean).join(" "),role:"group",...c,children:Rr(r,(e=>({className:T(e.className,"rcx-button-group__item")})))})})),Vn=({type:e,title:r,children:n,icon:t,className:o,actions:i,...s})=>{const{ref:a,borderBoxSize:c}=(0,or.useResizeObserver)(),l=c.inlineSize&&c.inlineSize>=420,d=("info"===e?"info-circled":"success"===e&&"checkmark-circled")||"warning"===e&&"warning"||"danger"===e&&"ban"||"info-circled";return(0,C.jsxs)(rr,{ref:a,is:"section",className:["rcx-callout",e&&`rcx-callout--${e}`,o].filter(Boolean).join(" "),...s,children:[(0,C.jsx)(ar,{className:"rcx-callout__icon",name:t||d,size:"x20"}),(0,C.jsxs)(rr,{"rcx-callout__wrapper":!0,"rcx-callout__wrapper--large":l,children:[(0,C.jsxs)(rr,{"rcx-callout__wrapper-content":!0,children:[r&&(0,C.jsx)(rr,{"rcx-callout__title":!0,children:r}),n&&(0,C.jsx)(rr,{"rcx-callout__content":!0,children:n})]}),i&&(0,C.jsx)(rr,{"rcx-callout__actions":!0,children:i})]})]})};var Fn=({horizontal:e,hero:r,clickable:n,...t})=>{const o=!(0,or.useBreakpoints)().includes("sm");return(0,C.jsx)(rr,{"rcx-card":!0,"rcx-card__horizontal":e,"rcx-card__vertical":!e,"rcx-card__hero":r,"rcx-card__horizontal--wrap":e&&o,"rcx-card__clickable":n,...t})},On=({children:e,flexDirection:r="row",height:n,...t})=>(0,C.jsx)(rr,{fontScale:"p2m",display:"flex",flexDirection:r,flexGrow:1,height:n,"rcx-card__body":!0,...t,children:e}),Ln=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-card__col",...r,children:e}),An=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-card__row",...r,children:e});const qn=({title:e,id:r,...n})=>(0,C.jsxs)(rr,{is:"span",mi:2,"rcx-label__info":!0,children:[(0,C.jsx)("span",{hidden:!0,id:r,children:e}),(0,C.jsx)(ar,{...n,name:"info-circled",title:e})]});var Hn=({children:e,info:r,variant:n="h4",...t})=>(0,C.jsxs)(rr,{fontScale:n,is:n,"rcx-card__title":!0,...t,children:[e,r&&(0,C.jsx)(qn,{title:r})]}),Wn=({...e})=>(0,C.jsx)("div",{className:"rcx-card__controls",...e}),Gn=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-card__header",...r,children:e});const Un=({align:e="start",children:r,stretch:n,vertical:t,wrap:o,...i})=>(0,C.jsx)(rr,{"rcx-card-group":!0,"rcx-card-group--align":e,"rcx-card-group--stretch":n,"rcx-card-group--vertical":t,"rcx-card-group--wrap":o,role:"group",...i,children:Rr(r,(e=>({className:T(e.className,"rcx-card-group__item")})))}),Kn=({xs:e,sm:r,md:n,lg:t,xl:o,...i})=>(0,C.jsx)(rr,{"rcx-grid__item":!0,"rcx-grid__item--xs":e,"rcx-grid__item--sm":r,"rcx-grid__item--md":n,"rcx-grid__item--lg":t,"rcx-grid__item--xl":o,...i}),Zn=({xs:e,sm:r,md:n,lg:t,xl:o,...i})=>(0,C.jsx)(rr,{"rcx-grid__wrapper":!0,children:(0,C.jsx)(rr,{"rcx-grid":!0,"rcx-grid--xs":e,"rcx-grid--sm":r,"rcx-grid--md":n,"rcx-grid--lg":t,"rcx-grid--xl":o,...i})});Zn.Item=Kn;var Yn=Zn;const Xn=({children:e,breakpoints:r,...n})=>(0,C.jsx)(Yn,{"rcx-card-grid":!0,m:-8,...n,children:E.Children.map(e,(e=>(0,C.jsx)(Kn,{"rcx-card-grid__item":!0,p:8,...r,children:e})))});var Qn=({children:e,onClick:r,buttonText:n="Copy",buttonDisabled:t=!1,...o})=>e?(0,C.jsxs)(rr,{is:"pre","rcx-code-snippet":!0,...o,children:[(0,C.jsx)(rr,{role:"code","rcx-code-snippet__codebox":!0,children:e}),r&&e&&(0,C.jsx)(rr,{children:(0,C.jsx)(Cn,{small:!0,primary:!0,onClick:r,disabled:t,children:n})})]}):(0,C.jsx)(rr,{is:"pre","rcx-code-snippet":!0,...o,children:(0,C.jsx)(Or,{w:"100%","aria-hidden":!0,"aria-busy":!0})});const Jn=(0,E.forwardRef)((function({children:e,width:r,position:n,bg:t="room",...o},i){return(0,C.jsx)(rr,{ref:i,"rcx-vertical-bar":!0,bg:t,color:"default",display:"flex",flexDirection:"column",flexShrink:0,width:r,borderInlineStartWidth:"default",borderInlineStartColor:"extra-light",borderInlineStartStyle:"solid",height:"full",position:n,insetInlineEnd:"none",insetBlockStart:"none",zIndex:10,...o,children:e})}));var et=(0,E.memo)(Jn),rt=(0,E.memo)((({name:e,...r})=>(0,C.jsx)($n,{...r,small:!0,flexShrink:0,icon:e}))),nt=(0,E.memo)((e=>(0,C.jsx)(zn,{...e}))),tt=(0,E.memo)((e=>(0,C.jsx)(In,{...e})));const ot=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,"rcx-vertical-bar__content":!0,paddingInline:24,display:"flex",flexDirection:"column",overflowY:"hidden",height:"full",...e})}));var it=(0,E.memo)(ot);const st=(0,E.forwardRef)((function({icon:e="magnifier",title:r="Nothing Found",subtitle:n,...t},o){return(0,C.jsx)(it,{justifyContent:"center",...t,ref:o,children:(0,C.jsxs)(Ic,{children:[(0,C.jsx)($c,{name:e}),(0,C.jsx)(Vc,{children:r}),n&&(0,C.jsx)(Mc,{children:n})]})})}));var at=(0,E.memo)(st);const ct=(0,E.forwardRef)((function({children:e,...r},n){return(0,C.jsx)(rr,{ref:n,p:24,...r,children:e})}));var lt=(0,E.memo)(ct),dt=(0,E.memo)((({children:e,...r})=>(0,C.jsx)(rr,{display:"flex",alignItems:"center",height:"x56",pi:24,borderBlockEndWidth:"default",borderBlockColor:"extra-light",flexShrink:0,...r,children:(0,C.jsx)(rr,{marginInline:"neg-x4",display:"flex",alignItems:"center",justifyContent:"space-between",flexGrow:1,height:"100%",overflow:"hidden",children:(0,C.jsx)($r,{inline:"x4",children:e})})}))),ut=(0,E.memo)((e=>(0,C.jsx)(ar,{...e,pi:2,size:"x24"})));const xt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,"rcx-vertical-bar__section":!0,pi:24,pb:16,display:"flex",alignItems:"center",flexGrow:1,borderBlockEndWidth:"default",borderBlockColor:"extra-light",...e})}));var ft=(0,E.memo)(xt),mt=(0,E.memo)((e=>(0,C.jsxs)(et,{...e,children:[(0,C.jsx)(dt,{children:(0,C.jsx)(Or,{width:"100%"})}),(0,C.jsxs)(rr,{p:24,children:[(0,C.jsx)(Or,{mbe:4,width:"32px",height:"32px",variant:"rect"}),Array(5).fill(5).map(((e,r)=>(0,C.jsx)(Or,{},r)))]})]}))),bt=(0,E.memo)((e=>(0,C.jsx)(rr,{flexShrink:1,flexGrow:1,fontScale:"h4",withTruncatedText:!0,...e})));const ht=(0,E.forwardRef)((function({children:e,width:r,position:n,bg:t="room",...o},i){return(0,C.jsx)(rr,{ref:i,"rcx-vertical-bar":!0,bg:t,color:"default",display:"flex",flexDirection:"column",flexShrink:0,width:r,borderInlineStartWidth:"default",borderInlineStartColor:"extra-light",borderInlineStartStyle:"solid",height:"full",position:n,insetInlineEnd:"none",insetBlockStart:"none",zIndex:10,...o,children:e})}));var pt=(0,E.memo)(ht),gt=(0,E.memo)((({name:e,...r})=>(0,C.jsx)($n,{...r,small:!0,flexShrink:0,icon:e}))),vt=(0,E.memo)((e=>(0,C.jsx)(zn,{...e}))),jt=(0,E.memo)((e=>(0,C.jsx)(In,{...e})));const wt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,"rcx-vertical-bar__content":!0,paddingInline:24,display:"flex",flexDirection:"column",overflowY:"hidden",height:"full",...e})}));var _t=(0,E.memo)(wt);const kt=(0,E.forwardRef)((function({icon:e="magnifier",title:r="Nothing Found",subtitle:n,...t},o){return(0,C.jsx)(_t,{justifyContent:"center",...t,ref:o,children:(0,C.jsxs)(Ic,{children:[(0,C.jsx)($c,{name:e}),(0,C.jsx)(Vc,{children:r}),n&&(0,C.jsx)(Mc,{children:n})]})})}));var yt=(0,E.memo)(kt);const St=(0,E.forwardRef)((function({children:e,...r},n){return(0,C.jsx)(rr,{ref:n,pi:16,pb:20,...r,children:e})}));var Nt=(0,E.memo)(St),Ct=(0,E.memo)((({children:e,...r})=>(0,C.jsx)(rr,{display:"flex",alignItems:"center",height:"x44",pi:16,borderBlockEndWidth:"default",borderBlockColor:"extra-light",flexShrink:0,...r,children:(0,C.jsx)(rr,{display:"flex",alignItems:"center",justifyContent:"space-between",flexGrow:1,height:"100%",overflow:"hidden",className:M.css`
|
|
198
198
|
gap: 8px;
|
|
199
|
-
`,children:e})}))),It=(0,E.memo)((e=>(0,C.jsx)(ar,{...e,pi:2,size:"x20"})));const Bt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,"rcx-vertical-bar__section":!0,p:16,display:"flex",alignItems:"center",flexGrow:1,borderBlockEndWidth:"default",borderBlockColor:"extra-light",...e})}));var Rt=(0,E.memo)(Bt),$t=(0,E.memo)((e=>(0,C.jsxs)(pt,{...e,children:[(0,C.jsx)(Ct,{children:(0,C.jsx)(Or,{width:"100%"})}),(0,C.jsxs)(rr,{p:24,children:[(0,C.jsx)(Or,{mbe:4,width:"32px",height:"32px",variant:"rect"}),Array(5).fill(5).map(((e,r)=>(0,C.jsx)(Or,{},r)))]})]}))),Et=(0,E.memo)((e=>(0,C.jsx)(rr,{flexShrink:1,flexGrow:1,fontScale:"h5",withTruncatedText:!0,...e})));const Mt=(0,E.forwardRef)((function({children:e,style:r,...n},t){return(0,C.jsx)(dn,{style:r,ref:t,elevation:"2",pi:"0",pb:"0",display:"flex",flexDirection:"column",overflow:"auto","data-testid":"dropdown",...n,children:(0,C.jsx)(rr,{flexShrink:1,pb:12,children:"hidden"===r?.visibility?null:e})})})),Tt=(0,E.forwardRef)((function({children:e,reference:r,placement:n="bottom-start",...t},o){const{style:i}=(0,or.usePosition)(r,o,{placement:n});return(0,C.jsx)(Mt,{style:i,children:e,ref:o,...t})})),Pt=(0,E.forwardRef)((function({children:e,...r},n){return(0,C.jsx)(dn,{ref:n,elevation:"2",pi:"0",pb:"0",w:"100vw",maxHeight:"80%",position:"fixed",display:"flex",flexDirection:"column",overflow:"auto",style:{bottom:0,left:0},zIndex:2,"data-testid":"dropdown",...r,children:(0,C.jsx)(rr,{flexShrink:1,pb:16,children:e})})})),Dt=(0,E.forwardRef)((function({children:e,reference:r,placement:n="bottom-start"},t){return(0,or.useMediaQuery)("(min-width: 500px)")?(0,C.jsx)(Tt,{reference:r,children:e,placement:n,ref:t}):(0,C.jsx)(Pt,{children:e,ref:t})})),zt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"email",ref:r,...e})})),Vt=(0,E.createContext)(!1);var Ft=function(e){return(0,C.jsx)(Vt.Provider,{value:!0,children:(0,C.jsx)(rr,{"rcx-field":!0,...e})})},Ot=e=>(0,C.jsx)(rr,{is:"span","rcx-field__description":!0,...e}),Lt=e=>(0,C.jsx)(rr,{is:"span","rcx-field__error":!0,...e}),At=e=>(0,C.jsx)(rr,{is:"span","rcx-field__hint":!0,...e}),qt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(gr,{"rcx-field__label":!0,...e,ref:r})})),Ht=e=>(0,C.jsx)(qn,{...e}),Wt=e=>(0,C.jsx)(rr,{is:"a",target:"_blank","rcx-field__link":!0,...e}),Gt=e=>(0,C.jsx)(rr,{is:"span","rcx-field__row":!0,...e});const Ut=({children:e,...r})=>(0,C.jsx)(rr,{is:"fieldset","rcx-field-group":!0,role:"group",...r,children:Rr(e,(e=>({className:T(e.className,"rcx-field-group__item")})))}),Kt=({info:e,success:r,warning:n,danger:t,neutral:o,icon:i,...s})=>(0,C.jsx)(ar,{...s,"rcx-framed-icon":!0,"rcx-framed-icon--info":e,"rcx-framed-icon--success":r,"rcx-framed-icon--warning":n,"rcx-framed-icon--danger":t,"rcx-framed-icon--neutral":o||!e&&!r&&!n&&!t,name:i,size:20});var Zt={Container:function({inline:e=!1,children:r,direction:n,wrap:t,alignItems:o,alignContent:i,justifyContent:s}){const a=(0,E.useCallback)((r=>(void 0!==e&&void 0===r.display&&(r.display=e?"inline-flex":"flex"),void 0!==n&&void 0===r.flexDirection&&(r.flexDirection=n),void 0!==t&&void 0===r.flexWrap&&(r.flexWrap="no-wrap"===t?"nowrap":t),void 0!==o&&void 0===r.alignItems&&(r.alignItems=("start"===o?"flex-start":"end"===o&&"flex-end")||o),void 0!==i&&void 0===r.alignContent&&(r.alignContent=("start"===i?"flex-start":"end"===i&&"flex-end")||i),void 0!==s&&void 0===r.justifyContent&&(r.justifyContent=("start"===s?"flex-start":"end"===s&&"flex-end")||s),r)),[i,o,n,e,s,t]);return(0,C.jsx)(V.Provider,{children:r,value:F(a)})},Item:function({children:e,order:r,grow:n,shrink:t,basis:o,align:i}){const s=(0,E.useCallback)((e=>(void 0!==r&&void 0===e.order&&(e.order=r),void 0!==n&&void 0===e.flexGrow&&(e.flexGrow=n),void 0!==t&&void 0===e.flexShrink&&(e.flexShrink=t),void 0!==o&&void 0===e.flexBasis&&(e.flexBasis=o),void 0!==i&&void 0===e.alignSelf&&(e.alignSelf=("start"===i?"flex-start":"end"===i&&"flex-end")||i),e)),[i,o,n,r,t]);return(0,C.jsx)(V.Provider,{children:e,value:F(s)})}};const Yt=([e],r)=>{r[e].action?.()},Xt=({tiny:e,mini:r,small:n=!(e||r),options:t,optionWidth:o,placement:i="bottom-start",renderItem:s,maxHeight:a,icon:c="kebab",...l})=>{const d=(e=>Object.entries(e).map((([e,{type:r="option",label:n,disabled:t}])=>[e,n,void 0,t,r])))(t),[u,x,f,m,[b,h,p]]=bn(-1,d,((e,[,r])=>{Yt(e,t),m(),r()})),g=(0,E.useRef)(null),v=(0,E.useCallback)((()=>{if(g.current?.classList.contains("focus-visible"))return g.current.classList.remove("focus-visible"),void h();g.current&&(g.current.focus(),p(),g.current.classList.add("focus-visible"))}),[h,p]),j=(0,E.useCallback)((e=>{Yt(e,t),m(),h()}),[h,m,t]);return(0,E.useEffect)((()=>{"hidden"===b&&g.current?.classList.remove("focus-visible")}),[b]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)($n,{"data-testid":"menu",ref:g,small:n,tiny:e,mini:r,onClick:v,onBlur:h,onKeyUp:f,onKeyDown:x,icon:c,...l}),(0,C.jsx)(gn,{width:"auto",visible:b,anchor:g,placement:i,children:(0,C.jsx)(xn,{maxHeight:a,renderItem:s,width:o,onSelect:j,options:d,cursor:u,ref:g})})]})},Qt=(0,E.memo)((0,E.forwardRef)((({is:e="li",id:r,children:n,focus:t,selected:o,className:i,title:s,disabled:a,variant:c,onClick:l,...d},u)=>(0,E.createElement)(e,{...d,key:r,id:r,ref:u,"aria-selected":!!o,"aria-disabled":!!a,title:s,onClick:e=>{a?Ar(e):l?.(e)},className:["rcx-option",i,t&&"rcx-option--focus",o&&"rcx-option--selected",a&&"rcx-option--disabled",c&&`rcx-option--${c}`].filter(Boolean).join(" ")},n))));var Jt=Qt,eo=function({item:e,state:r}){const n=(0,E.useRef)(null),{menuItemProps:{onPointerUp:t,...o},isFocused:i,isDisabled:s}=(0,br.useMenuItem)({key:e.key},r,n);return(0,C.jsxs)(Jt,{...(0,br.mergeProps)(o,{onPointerDown:t}),ref:n,focus:i,disabled:s,is:"label",variant:e.value?.variant,children:[(0,C.jsx)("div",{className:"rcx-option__wrapper",children:e.rendered}),e.value&&e.value.description&&(0,C.jsx)(Qr,{children:e.value.description})]})},ro=function({section:e,state:r}){const{itemProps:n,headingProps:t,groupProps:o}=(0,br.useMenuSection)({heading:e.rendered,"aria-label":e["aria-label"]}),{separatorProps:i}=(0,br.useSeparator)({elementType:"span"});return(0,C.jsxs)(C.Fragment,{children:[e.key!==r.collection.getFirstKey()&&(0,C.jsx)(Jr,{...i}),(0,C.jsxs)("div",{...n,children:[e.rendered&&(0,C.jsx)(on,{...t,children:e.rendered}),(0,C.jsx)(rr,{...o,p:"0",children:[...e.childNodes].map((e=>(0,C.jsx)(eo,{item:e,state:r},e.key)))})]})]})},no=function(e){const r=(0,hr.useTreeState)(e),n=(0,E.useRef)(null),{menuProps:t}=(0,br.useMenu)(e,r,n);return(0,C.jsx)("div",{...t,ref:n,children:[...r.collection].map((e=>"section"===e.type?(0,C.jsx)(ro,{section:e,state:r},e.key):(0,C.jsx)(eo,{item:e,state:r},e.key)))})};function to(e){const r=(0,E.useRef)(null),{state:n,children:t,isNonModal:o}=e,{popoverProps:i,underlayProps:s}=(0,br.usePopover)({...e,popoverRef:r},n);return(0,C.jsxs)(br.Overlay,{children:[!o&&(0,C.jsx)("div",{...s}),(0,C.jsxs)("div",{...i,ref:r,children:[!o&&(0,C.jsx)(br.DismissButton,{onDismiss:n.close}),t,(0,C.jsx)(br.DismissButton,{onDismiss:n.close})]})]})}var oo=function({children:e,state:r,offset:n=4,maxWidth:t,...o}){return(0,or.useBreakpoints)().includes("sm")?(0,C.jsx)(to,{state:r,offset:n,...o,children:(0,C.jsx)(Mt,{maxWidth:t,children:e})}):(0,C.jsx)(to,{state:r,offset:n,...o,children:(0,C.jsx)(Pt,{children:e})})};const io=e=>{switch(e){case"bottom":return"bottom";case"bottom-start":default:return"bottom start";case"bottom-end":return"bottom end";case"top":return"top";case"top-start":return"top start";case"top-end":return"top end";case"left":return"left";case"left-start":return"left top";case"left-end":return"left bottom";case"right":return"right";case"right-start":return"right top";case"right-end":return"right bottom"}},so=({icon:e="kebab",placement:r="bottom-start",title:n,is:t=$n,className:o,pressed:i,maxWidth:s="x250",button:a,detached:c,...l})=>{const d=(0,hr.useMenuTriggerState)(l),u=(0,E.useRef)(null),{menuTriggerProps:x,menuProps:f}=(0,br.useMenuTrigger)({},d,u),{buttonProps:m}=(0,br.useButton)({...x,"aria-label":l["aria-label"]||n,preventFocusOnPress:!0},u),{large:b,medium:h,tiny:p,mini:g}=l,v={large:b,medium:h,tiny:p,mini:g},j=!(b||h||p||g),w=d.isOpen&&(0,C.jsx)(oo,{state:d,triggerRef:u,placement:io(r),maxWidth:s,children:(0,C.jsx)(no,{...l,...f})});return(0,C.jsxs)(C.Fragment,{children:[a?(0,E.cloneElement)(a,{...m,ref:u,icon:e,className:o,title:n,pressed:i||d.isOpen}):(0,C.jsx)(t,{...m,ref:u,icon:e,className:o,title:n,pressed:i||d.isOpen,small:j,...v}),c?(0,hn.createPortal)(w,document.body):w]})};so.displayName="MenuV2";var ao=so;function co(e){return null}function lo(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&E.Children.count(e.children)>0)}co.getCollectionNode=function*(e,r){const{childItems:n,title:t,children:o}=e,i=e.title||e.children,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";s||r?.suppressTextValueWarning||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:i,textValue:s,"aria-label":e["aria-label"],hasChildNodes:lo(e),*childNodes(){if(n)for(const e of n)yield{type:"item",value:e};else if(t){const e=[];E.Children.forEach(o,(r=>{e.push({type:"item",element:r})})),yield*e}}}};var uo=co;function xo(e){return null}xo.getCollectionNode=function*(e){const{children:r,title:n,items:t}=e;yield{type:"section",props:e,hasChildNodes:!0,rendered:n,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof r){if(!t)throw new Error("props.children was a function but props.items is missing");for(const e of t)yield{type:"item",value:e,element:r(e)}}else{const e=[];E.Children.forEach(r,(r=>{e.push({type:"item",element:r??void 0})})),yield*e}}}};var fo=xo;const mo=(0,E.forwardRef)((function({className:e,clickable:r,sequential:n,isSelected:t,isEditing:o,isPending:i,highlight:s,...a},c){return(0,C.jsx)("div",{ref:c,className:z(e,["rcx-message",(r||a.onClick)&&"rcx-message--clickable",n&&"rcx-message--sequential",t&&"rcx-message--selected",o&&"rcx-message--editing",i&&"rcx-message--pending",s&&"rcx-message--highlight"].filter(Boolean).join(" ")),...a})})),bo=(0,E.forwardRef)((({className:e,fixedWidth:r,...n},t)=>(0,C.jsx)(rr,{"rcx-message-block":!0,"rcx-message-block--width-fixed":r,ref:t,...n}))),ho=({clamp:e,className:r,...n})=>(0,C.jsx)("div",{className:z(r,["rcx-message-body",e&&`rcx-message-body--clamp rcx-message-body--clamp-${e}`].filter(Boolean).join(" ")),...n}),po=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-container",...e}),go=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-container rcx-message-container--fixed",...e}),vo=({children:e,unreadLabel:r,...n})=>(0,C.jsxs)("div",{role:"separator",className:r?"rcx-message-divider rcx-message-divider--unread":"rcx-message-divider",...n,children:[e&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"rcx-message-divider__bar"}),(0,C.jsx)("div",{className:"rcx-message-divider__wrapper",children:e})," "]}),(0,C.jsx)("div",{className:"rcx-message-divider__bar",children:r&&(0,C.jsx)("div",{className:"rcx-message-divider__wrapper--unread",children:r})})]}),jo=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-header",...r,children:(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-header__wrapper",children:e})});function wo({is:e="span",variant:r="other",className:n,clickable:t,...o}){const i=[r,t&&"clickable"].filter(Boolean).map((e=>`rcx-message__highlight--${e}`)).join(" ");return(0,C.jsx)(e,{className:z(n,`rcx-box rcx-box--full rcx-message__highlight ${i}`),...o})}const _o=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-container rcx-message-container--left",...e}),ko=e=>(0,C.jsx)("div",{className:"rcx-message-metrics__content-item",...e}),yo=e=>(0,C.jsx)(ko,{children:(0,C.jsx)("div",{className:"rcx-message-metrics__content-wrapper",...e})}),So=({name:e,badge:r,...n})=>(0,C.jsx)($n,{position:"relative",overflow:"visible",...n,small:!0,icon:e,children:r&&(0,C.jsx)("div",{className:"rcx-message-metrics__item__follow-badge",children:r})}),No=({className:e,...r})=>(0,C.jsx)("div",{className:z(e,"rcx-message-metrics__avatar-row"),...r}),Co=({className:e,...r})=>(0,C.jsx)("div",{className:z(e,"rcx-message-metrics__avatar-row__content"),...r}),Io=e=>(0,C.jsx)(ar,{size:"x20",...e}),Bo=e=>(0,C.jsx)("div",{className:"rcx-message-metrics__item-label",...e});var Ro=Object.assign((({className:e,...r})=>(0,C.jsx)("div",{className:z(e,"rcx-message-metrics__item"),...r})),{Icon:Io,Label:Bo});const $o=e=>(0,C.jsx)(Ro,{children:(0,C.jsx)(In,{primary:!0,...e,small:!0})});var Eo=Object.assign(yo,{Reply:$o,Item:Ro,Following:So});const Mo=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-header__name",...e}),To=(0,E.forwardRef)((function(e,r){return(0,C.jsx)("span",{ref:r,className:"rcx-box rcx-box--full rcx-message-header__name-container",...e})})),Po=({large:e,medium:r,className:n,disabled:t,onClick:o,variant:i,children:s,icon:a,href:c,...l})=>{const d=[i,r&&"medium",e&&"large",t&&"disabled",o&&"clickable",c&&"clickable"].filter(Boolean).map((e=>`rcx-tag--${e}`)).join(" ");return(0,C.jsxs)(rr,{is:c?"a":"span",className:z(n,`rcx-tag ${d}`),onClick:o,href:c,...l,children:[a,(0,C.jsx)("span",{className:"rcx-tag__inner",children:s})]})},Do=e=>(0,C.jsx)(Po,{className:"rcx-box rcx-box--full rcx-message-header__role",...e}),zo=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-header__roles",...e}),Vo=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-header__time",...e}),Fo=(0,E.forwardRef)((function(e,r){return(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-toolbar",children:(0,C.jsx)(zn,{role:"toolbar",ref:r,small:!0,...e})})})),Oo=(0,E.forwardRef)((function(e,r){return(0,C.jsx)($n,{ref:r,small:!0,...e})})),Lo=(0,E.forwardRef)((function({className:e,visible:r,...n},t){return(0,C.jsx)("div",{ref:t,className:["rcx-box rcx-box--full rcx-message-toolbar__wrapper",r&&"rcx-message-toolbar__wrapper--visible",e].filter(Boolean).join(" "),...n})}));var Ao=Object.assign(Fo,{Item:Oo,Wrapper:Lo,Menu:Xt});const qo=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-header__username",...e}),Ho=e=>(0,C.jsx)("div",{className:"rcx-message-generic-preview",...e}),Wo=({thumb:e,...r})=>(0,C.jsxs)("div",{className:"rcx-message-generic-preview__content",children:[e,(0,C.jsx)("div",{className:"rcx-message-generic-preview__content-wrapper",...r})]}),Go=({children:e,clamp:r=!1})=>(0,C.jsx)("div",{className:["rcx-message-generic-preview__description",r&&"rcx-message-generic-preview__description--clamp"].filter(Boolean).join(" "),children:e}),Uo=({children:e})=>(0,C.jsx)("div",{className:"rcx-message-generic-preview__footer",children:e}),Ko=({url:e,width:r,height:n,className:t,...o})=>(0,C.jsx)("div",{className:z(t,"rcx-message-generic-preview__preview"),style:{backgroundImage:`url(${e})`,maxWidth:"100%"},"data-testid":"preview-image",...o,children:(0,C.jsx)("div",{style:{paddingTop:n/r*100+"%"}})}),Zo=({url:e,className:r,...n})=>(0,C.jsx)("img",{src:e,className:z(r,"rcx-message-generic-preview__image"),alt:"",...n}),Yo=e=>(0,C.jsx)("div",{className:"rcx-message-generic-preview__thumb",...e}),Xo=({externalUrl:e,children:r,...n})=>e?(0,C.jsx)("a",{className:"rcx-message-generic-preview__title rcx-message-generic-preview__title-link",href:e,target:"_blank",...n,children:r}):(0,C.jsx)("span",{className:"rcx-message-generic-preview__title",...n}),Qo=({name:e="attachment-file",size:r=32,color:n="default",type:t="file"})=>(0,C.jsxs)("div",{className:"rcx-message-generic-preview__icon",children:[(0,C.jsx)(ar,{name:e,color:n,size:r}),(0,C.jsx)("div",{className:"rcx-message-generic-preview__icon-title",children:t})]}),Jo=(0,E.forwardRef)(((e,r)=>(0,C.jsx)("div",{ref:r,className:"rcx-message-status-indicator",...e}))),ei=({children:e})=>(0,C.jsx)("span",{className:"rcx-message-status-indicator__text","aria-hidden":!0,children:e}),ri=({name:e,variant:r,...n})=>(0,C.jsx)(ar,{name:e,size:"x16",className:["rcx-message-status-indicator__item",r&&`rcx-message-status-indicator__item--${r}`].filter(Boolean).join(" "),...n}),ni=({children:e,variant:r})=>(0,C.jsx)("span",{className:["rcx-message-status-indicator__item `rcx-message-status-indicator__item--private",r&&`rcx-message-status-indicator__item--${r}`].filter(Boolean).join(" "),children:e}),ti=({children:e,title:r,isSelected:n,...t})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-message-system",n&&"rcx-message-system--selected"].filter(Boolean).join(" "),title:r,...t,children:e}),oi=e=>(0,C.jsx)("div",{className:"rcx-message-system__block",...e}),ii=e=>(0,C.jsx)("div",{className:"rcx-message-system__body",...e}),si=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-system__container",...e}),ai=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-system__name",...e}),ci=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-system__time",...e}),li=_o,di=({counter:e,className:r})=>(0,C.jsx)("div",{className:`rcx-message-reactions__counter ${r}`,children:e}),ui=({name:e,image:r,className:n,...t})=>(0,C.jsx)("span",{className:`${n||""} ${e}`,style:r&&r.length?{backgroundImage:r}:void 0,...t}),xi=({className:e,...r})=>(0,C.jsx)(ui,{className:`rcx-message-reactions__emoji ${e||""}`,...r}),fi=(0,E.forwardRef)((function({name:e,counter:r,mine:n,children:t,className:o,...i},s){return(0,C.jsx)("div",{className:["rcx-message-reactions__reaction",n&&"rcx-message-reactions__reaction--mine",o].filter(Boolean).join(" "),ref:s,role:"button",tabIndex:0,...i,children:t||(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(xi,{name:e}),r&&(0,C.jsx)(di,{counter:r})]})})})),mi=({className:e,...r})=>(0,C.jsx)("div",{role:"button",tabIndex:0,className:["rcx-message-reactions__reaction rcx-message-reactions__reaction--action",e].filter(Boolean).join(" "),...r,children:(0,C.jsx)(ar,{name:"emoji-plus",size:"x16"})}),bi=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(bo,{className:"rcx-message-reactions",children:(0,C.jsx)("div",{ref:r,className:"rcx-message-reactions__container",...e})})}));Object.assign(bi,{Reaction:fi,Action:mi});const hi=e=>(0,C.jsx)(Ii,{className:"rcx-message-thread",...e}),pi=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-thread__message",...e}),gi=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-thread__container",...e}),vi=({className:e,...r})=>(0,C.jsx)(ui,{className:`rcx-message-thread__emoji ${e||""}`,...r}),ji=({...e})=>(0,C.jsx)(ar,{className:"rcx-box rcx-box--full rcx-message-thread__icon",size:"x16",...e}),wi=()=>(0,C.jsx)(ji,{className:"rcx-box rcx-box--full rcx-message-thread__icon rcx-message-thread__icon--follow",name:"bell"}),_i=()=>(0,C.jsx)(ji,{name:"thread"}),ki=({children:e,system:r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-message-thread__origin",r&&"rcx-box rcx-box--full rcx-message-thread__origin--system"].filter(Boolean).join(" "),children:e}),yi=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-thread__row",...e}),Si=()=>(0,C.jsx)(ji,{className:"rcx-box rcx-box--full rcx-message-thread__icon rcx-message-thread__icon--unfollow",name:"bell-off"}),Ni=_o;Object.assign(hi,{Row:yi,Container:gi,LeftContainer:Ni,Origin:ki,Message:pi,Follow:wi,Unfollow:Si,Icon:_i});const Ci=({name:e,className:r,image:n,big:t,...o})=>(0,C.jsx)(ui,{className:["rcx-message__emoji",r,t&&"rcx-message__emoji--big"].filter(Boolean).join(" "),name:e,image:n,...o});var Ii=Object.assign(mo,{Metrics:Eo,Toolbar:Ao,Container:po,ContainerFixed:go,LeftContainer:_o,Header:jo,Body:ho,Block:bo,Timestamp:Vo,NameContainer:To,Name:Mo,Username:qo,Roles:zo,Role:Do,Divider:vo,Highlight:wo});const Bi=(0,E.forwardRef)((({children:e,wrapper:r=rr,wrapperFunction:n,...t},o)=>{const i={children:e,className:"rcx-modal__inner",elevation:"2"};return(0,C.jsx)(rr,{is:"dialog",open:!0,"aria-modal":"true","rcx-modal":!0,ref:o,...t,children:n?n(i):(0,E.createElement)(r,i)})})),Ri=e=>(0,C.jsx)(rr,{"rcx-modal__backdrop":!0,...e}),$i=e=>(0,C.jsx)($n,{"aria-label":"Close",...e,small:!0,icon:"cross"}),Ei=({children:e,onScrollContent:r,...n})=>(0,C.jsx)(cn,{vertical:!0,onScrollContent:r,children:(0,C.jsx)(rr,{"rcx-modal__content":!0,children:(0,C.jsx)(rr,{"rcx-modal__content-wrapper":!0,mi:24,...n,children:e})})}),Mi=({children:e,justifyContent:r="end"})=>(0,C.jsx)(rr,{justifyContent:r,"rcx-modal__footer":!0,children:e}),Ti=({children:e})=>(0,C.jsx)(rr,{"rcx-modal__footer-annotation":!0,children:e}),Pi=({children:e})=>(0,C.jsx)(zn,{align:"end",children:e}),Di=({children:e,...r})=>(0,C.jsx)(rr,{"rcx-modal__header":!0,is:"header",...r,children:(0,C.jsx)(rr,{"rcx-modal__header-inner":!0,children:(0,C.jsx)($r,{all:"x4",children:e})})}),zi=({children:e,...r})=>(0,C.jsx)(rr,{"rcx-modal__header-text":!0,...r,children:e}),Vi=({...e})=>(0,C.jsx)("figure",{className:"rcx-modal__hero-image-wrapper",children:(0,C.jsx)(rr,{"rcx-modal__hero-image":!0,is:"img",...e})}),Fi=({size:e="x20",name:r,alignItems:n="center",...t})=>(0,C.jsx)(rr,{...t,display:"flex",alignItems:n,children:(0,C.jsx)(ar,{mb:4,name:r,size:e})}),Oi=({children:e,...r})=>(0,C.jsx)(rr,{"rcx-modal__tagline":!0,...r,children:e}),Li=e=>(0,C.jsx)(rr,{children:(0,C.jsx)(yn,{size:"x28",...e})}),Ai=({children:e,...r})=>(0,C.jsx)(rr,{is:"h2","rcx-modal__title":!0,...r,children:e}),qi=e=>e.$$typeof===Symbol.for("react.forward_ref");var Hi=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{is:"div","rcx-select__addon":!0,ref:r,...e})})),Wi=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,fontScale:"p2m",color:"hint","rcx-select__focus":!0,is:"button",type:"button",...e})})),Gi=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Wi,{"rcx-input-box--undecorated":!0,ref:r,"aria-haspopup":"listbox",order:1,...e})}));const Ui=(0,E.memo)((function(e){return(0,C.jsx)(Pr,{...e})})),Ki=(0,E.forwardRef)((({value:e,filter:r,setFilter:n,options:t=[],error:o,disabled:i,anchor:s=Gi,onChange:a=()=>{},getLabel:c=([,e]=["",""])=>e,getValue:l=([e])=>e,placeholder:d,renderOptions:u=xn,renderItem:x,customEmpty:f,renderSelected:m,addonIcon:b,...h},p)=>{const[g,v]=(0,E.useState)(e||[]);(0,E.useEffect)((()=>v(e||[])),[e]);const[j,w]=(0,E.useState)(),_=t.findIndex((e=>l(e)===j)),k=()=>P.current?.classList.remove("focus-visible"),y=([e])=>{if(g.includes(e)){w(void 0);const r=g.filter((r=>r!==e));return v(r),a(r)}n?.(""),w(e);const r=[...g,e];return v(r),a(r)},S=t.filter((([,e])=>!r||e.toLowerCase().includes(r.toLowerCase()))).map((([e,r])=>g.includes(e)?[e,r,!0]:[e,r])),[N,I,B,R,[$,M,T]]=bn(_,S,y);(0,E.useEffect)(R,[r]);const P=(0,E.useRef)(null),D=(0,or.useMergedRefs)(p,P),{ref:z,borderBoxSize:V}=(0,or.useResizeObserver)();(0,or.useOutsideClick)([z],k);const F=(0,or.useEffectEvent)((()=>$===mr.VISIBLE?M():(P.current?.focus(),T())));return(0,C.jsxs)(rr,{is:"div","rcx-select":!0,className:[o&&"invalid",i&&"disabled"],ref:z,onClick:F,disabled:i,...h,children:[(0,C.jsx)(Zt.Item,{grow:1,children:(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Zt.Container,{children:(0,C.jsx)(rr,{is:"div",children:(0,C.jsx)(rr,{is:"div",display:"flex",alignItems:"center",flexWrap:"wrap",margin:"-x8",role:"listbox",children:(0,C.jsxs)($r,{all:"x4",children:[(O={ref:D,children:0===g.length?d:null,disabled:i??!1,onClick:T,onBlur:M,onKeyDown:I,onKeyUp:B},qi(s)?(0,C.jsx)(s,{...O}):"function"==typeof s?s(O):null),g.map((e=>{const r=t.find((([r])=>r===e));return m?(0,C.jsx)(m,{role:"option",value:e,label:c(r),onMouseDown:e=>{Ar(e),y(r),k()},children:c(r)},e):(0,C.jsx)(Ui,{tabIndex:-1,role:"option",onMouseDown:e=>{Ar(e),y(r),k()},children:c(r)},String(e))}))]})})})})})}),(0,C.jsx)(Zt.Item,{grow:0,shrink:0,children:(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Hi,{children:(0,C.jsx)(ar,{name:$===mr.VISIBLE?"chevron-up":b||"chevron-down",size:"x20"})})})}),(0,C.jsx)(mr,{visibility:$,children:(0,C.jsx)(pn,{anchor:z,children:(0,C.jsx)(u,{width:V.inlineSize,onMouseDown:Ar,multiple:!0,filter:r,renderItem:x||Yr,role:"listbox",options:S,onSelect:y,cursor:N,customEmpty:f})})})]});var O}));var Zi=(0,E.forwardRef)((function({children:e,filter:r,onChangeFilter:n,placeholder:t,...o},i){return(0,C.jsx)(Zt.Item,{grow:1,children:(0,C.jsx)(Dr,{ref:i,placeholder:t,value:r,onInput:e=>n(e.currentTarget.value),...o,"rcx-input-box--undecorated":!0,"aria-haspopup":"listbox",order:1})})}));const Yi=({options:e,placeholder:r,filter:n,setFilter:t,...o})=>{const[i,s]=(0,E.useState)("");return(0,C.jsx)(Ki,{...o,filter:n||i,setFilter:t||s,options:e,anchor:e=>(0,C.jsx)(Zi,{placeholder:r,filter:n||i,onChangeFilter:t||s,...e})})},Xi=e=>(0,C.jsx)("nav",{className:"rcx-navbar",...e}),Qi=(0,E.forwardRef)(((e,r)=>(0,C.jsx)(zn,{className:"rcx-navbar-group",ref:r,...e}))),Ji=(0,E.forwardRef)((function({children:e,icon:r,...n},t){return(0,C.jsx)(C.Fragment,{children:r?(0,C.jsx)($n,{ref:t,"rcx-navbar-item":!0,icon:r,small:!0,...n}):Rr(e,(e=>({className:T(e.className,"rcx-navbar-item"),ref:t,...n})))})})),es=e=>(0,C.jsx)(Jr,{"rcx-navbar-divider":!0,vertical:!0,...e}),rs=({children:e,...r})=>{const n=E.Children.toArray(e).filter(E.isValidElement);return(0,C.jsx)("span",{className:"rcx-navbar-section",...r,children:n.map(((e,r)=>(0,C.jsxs)(E.Fragment,{children:[e,r<n.length-1&&(0,C.jsx)(es,{})]},r)))})},ns=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"number",ref:r,...e})})),ts=()=>"Items per page:",os=({count:e,current:r,itemsPerPage:n})=>`Showing results ${r+1} - ${Math.min(r+n,e)} of ${e}`,is=[25,50,100],ss=({count:e,current:r=0,itemsPerPage:n=25,itemsPerPageLabel:t=ts,showingResultsLabel:o=os,onSetItemsPerPage:i,onSetCurrent:s,divider:a,...c})=>{const l=is.length>1,d=Math.floor(r/n),u=Math.ceil(e/n),x=(0,E.useMemo)((()=>u<=7?Array.from({length:u},((e,r)=>r)):d<5?[0,1,2,3,4,"⋯",u-1]:d>u-5?[0,"⋯",u-5,u-4,u-3,u-2,u-1]:[0,"⋯",d-1,d,d+1,"⋯",u-1]),[u,d]),f={count:e,pages:u,current:r,currentPage:d,itemsPerPage:n},m=e=>()=>{i?.(e)},b=e=>()=>{s?.(e*n)};return(0,C.jsxs)(rr,{is:"nav","rcx-pagination":!0,"rcx-pagination--divider":a,...c,children:[l&&(0,C.jsxs)(rr,{"rcx-pagination__left":!0,children:[(0,C.jsx)(rr,{is:"span","rcx-pagination__label":!0,children:t(f)}),(0,C.jsx)(rr,{is:"ol","rcx-pagination__list":!0,children:is.map((e=>(0,C.jsx)(rr,{is:"li","rcx-pagination__list-item":!0,children:(0,C.jsx)(rr,{is:"button","rcx-pagination__link":!0,tabIndex:n===e?-1:0,disabled:n===e,onClick:m(e),children:e})},e)))})]}),(0,C.jsxs)(rr,{"rcx-pagination__right":!0,children:[(0,C.jsx)(rr,{is:"span","rcx-pagination__label":!0,children:o(f)}),(0,C.jsxs)(rr,{is:"ol","rcx-pagination__list":!0,children:[(0,C.jsx)(rr,{is:"li","rcx-pagination__list-item":!0,children:(0,C.jsx)(rr,{is:"button","rcx-pagination__back":!0,disabled:0===d,onClick:b(d-1),children:(0,C.jsx)(cr,{left:!0,size:"x16"})})}),x.map(((e,r)=>(0,C.jsx)(rr,{is:"li","rcx-pagination__list-item":!0,children:"⋯"===e?"⋯":(0,C.jsx)(rr,{is:"button","rcx-pagination__link":!0,disabled:d===e,onClick:b(e),children:e+1})},r))),(0,C.jsx)(rr,{is:"li","rcx-pagination__list-item":!0,children:(0,C.jsx)(rr,{is:"button","rcx-pagination__forward":!0,disabled:d===u-1,onClick:b(d+1),children:(0,C.jsx)(cr,{right:!0,size:"x16"})})})]})]})]})};var as=S(623),cs=S.n(as),ls=S(26),ds=S.n(ls),us=S(973),xs=S.n(us),fs=S(882),ms=S.n(fs),bs=S(684),hs=S.n(bs),ps=S(656),gs=S.n(ps),vs=S(498),js=S.n(vs),ws=S(823),_s=S.n(ws);const ks=e=>{const{badge:r,button:n,font:t,shadow:o,status:i,statusBullet:s,stroke:a,surface:c}=(e=>({badge:cs().badge[e],button:ds().button[e],font:xs().font[e],shadow:ms().shadow[e],status:hs().status[e],statusBullet:gs().statusBullet[e],stroke:js().stroke[e],surface:_s().surface[e]}))(e);return{...[{category:"Stroke",description:"Use as component's outline, stroke, dividers",list:[{name:"stroke-extra-light",color:a.extraLight},{name:"stroke-light",color:a.light},{name:"stroke-medium",color:a.medium},{name:"stroke-dark",color:a.dark},{name:"stroke-extra-dark",color:a.extraDark},{name:"stroke-extra-light-highlight",color:a.extraLightHighlight},{name:"stroke-highlight",color:a.highlight},{name:"stroke-extra-light-error",color:a.extraLightError},{name:"stroke-error",color:a.error}]},{category:"Surface",description:"Use as a container on top of the background",list:[{name:"surface-light",color:c.light},{name:"surface-tint",color:c.tint},{name:"surface-room",color:c.room},{name:"surface-neutral",color:c.neutral},{name:"surface-disabled",color:c.disabled},{name:"surface-hover",color:c.hover},{name:"surface-selected",color:c.selected},{name:"surface-dark",color:c.dark},{name:"surface-featured",color:c.featured},{name:"surface-featured-hover",color:c.featuredHover},{name:"surface-overlay",color:c.overlay},{name:"surface-sidebar",color:c.sidebar}]},{category:"Shadow",description:"Use as a shadow color",list:[{name:"shadow-highlight",color:o.highlight},{name:"shadow-danger",color:o.danger},{name:"shadow-elevation-border",color:o["elevation-border"]},{name:"shadow-elevation-1",color:o["elevation-1"]},{name:"shadow-elevation-2x",color:o["elevation-2x"]},{name:"shadow-elevation-2y",color:o["elevation-2y"]}]},{category:"Font",description:"These should be applied according to surfaces",list:[{name:"font-white",color:t.white},{name:"font-disabled",color:t.disabled},{name:"font-annotation",color:t.annotation},{name:"font-hint",color:t.hint},{name:"font-secondary-info",color:t.secondaryInfo},{name:"font-default",color:t.default},{name:"font-titles-labels",color:t.titlesLabels},{name:"font-info",color:t.info},{name:"font-danger",color:t.danger},{name:"font-pure-black",color:t.pureBlack},{name:"font-pure-white",color:t.pureWhite}]},{category:"Status",description:"Status Background",list:[{name:"status-background-info",color:i.info},{name:"status-background-success",color:i.success},{name:"status-background-danger",color:i.danger},{name:"status-background-warning",color:i.warning},{name:"status-background-warning-2",color:i["warning-2"]},{name:"status-background-service-1",color:i["service-1"]},{name:"status-background-service-2",color:i["service-2"]},{name:"status-background-service-3",color:i["service-3"]}]},{description:"Status Font",list:[{name:"status-font-on-info",color:i["font-on-info"]},{name:"status-font-on-success",color:i["font-on-success"]},{name:"status-font-on-danger",color:i["font-on-danger"]},{name:"status-font-on-warning",color:i["font-on-warning"]},{name:"status-font-on-warning-2",color:i["font-on-warning-2"]},{name:"status-font-on-service-1",color:i["font-on-service-1"]},{name:"status-font-on-service-2 ",color:i["font-on-service-2"]},{name:"status-font-on-service-3 ",color:i["font-on-service-3"]}]},{category:"Badge",description:"Badge Background",list:[{name:"badge-background-level-0",color:r["level-0"]},{name:"badge-background-level-1",color:r["level-1"]},{name:"badge-background-level-2",color:r["level-2"]},{name:"badge-background-level-3",color:r["level-3"]},{name:"badge-background-level-4",color:r["level-4"]}]},{category:"Status Bullet",description:"Used to show user status",list:[{name:"status-bullet-online",color:s.online},{name:"status-bullet-away",color:s.away},{name:"status-bullet-busy",color:s.busy},{name:"status-bullet-disabled",color:s.disabled},{name:"status-bullet-offline",color:s.offline},{name:"status-bullet-loading",color:s.loading}]},{category:"Button",description:"Primary Background",list:[{name:"button-background-primary-default",color:n.backgroundPrimaryDefault},{name:"button-background-primary-hover",color:n.backgroundPrimaryHover},{name:"button-background-primary-press",color:n.backgroundPrimaryPress},{name:"button-background-primary-focus",color:n.backgroundPrimaryFocus},{name:"button-background-primary-keyfocus",color:n.backgroundPrimaryKeyfocus},{name:"button-background-primary-disabled",color:n.backgroundPrimaryDisabled}]},{description:"Secondary Background",list:[{name:"button-background-secondary-default",color:n.backgroundSecondaryDefault},{name:"button-background-secondary-hover",color:n.backgroundSecondaryHover},{name:"button-background-secondary-press",color:n.backgroundSecondaryPress},{name:"button-background-secondary-focus",color:n.backgroundSecondaryFocus},{name:"button-background-secondary-keyfocus",color:n.backgroundSecondaryKeyfocus},{name:"button-background-secondary-disabled",color:n.backgroundSecondaryDisabled}]},{description:"Secondary Danger Background",list:[{name:"button-background-secondary-danger-default",color:n.backgroundSecondaryDangerDefault},{name:"button-background-secondary-danger-hover",color:n.backgroundSecondaryDangerHover},{name:"button-background-secondary-danger-press",color:n.backgroundSecondaryDangerPress},{name:"button-background-secondary-danger-focus",color:n.backgroundSecondaryDangerFocus},{name:"button-background-secondary-danger-keyfocus",color:n.backgroundSecondaryDangerKeyfocus},{name:"button-background-secondary-danger-disabled",color:n.backgroundDangerDisabled}]},{description:"Danger Background",list:[{name:"button-background-danger-default",color:n.backgroundDangerDefault},{name:"button-background-danger-hover",color:n.backgroundDangerHover},{name:"button-background-danger-press",color:n.backgroundDangerPress},{name:"button-background-danger-focus",color:n.backgroundDangerFocus},{name:"button-background-danger-keyfocus",color:n.backgroundDangerKeyfocus},{name:"button-background-danger-disabled",color:n.backgroundDangerDisabled}]},{description:"Success Background",list:[{name:"button-background-success-default",color:n.backgroundSuccessDefault},{name:"button-background-success-hover",color:n.backgroundSuccessHover},{name:"button-background-success-press",color:n.backgroundSuccessPress},{name:"button-background-success-focus",color:n.backgroundSuccessFocus},{name:"button-background-success-keyfocus",color:n.backgroundSuccessKeyfocus},{name:"button-background-success-disabled",color:n.backgroundSuccessDisabled}]},{description:"Font",list:[{name:"button-font-on-primary",color:n.fontOnPrimary},{name:"button-font-on-primary-disabled",color:n.fontOnPrimaryDisabled},{name:"button-font-on-secondary",color:n.fontOnSecondary},{name:"button-font-on-secondary-disabled",color:n.fontOnSecondaryDisabled},{name:"button-font-on-secondary-danger",color:n.fontOnSecondaryDanger},{name:"button-font-on-secondary-danger-disabled",color:n.onSecondaryDangerDisabled},{name:"button-font-on-danger",color:n.fontOnDanger},{name:"button-font-on-danger-disabled",color:n.fontOnDangerDisabled},{name:"button-font-on-success",color:n.fontOnSuccess},{name:"button-font-on-success-disabled",color:n.fontOnSuccessDisabled}]}].reduce(((e,r)=>({...e,...r.list.reduce(((e,r)=>({...e,[r.name]:r.color})),{})})),{})}},ys=ks("light"),Ss=ks("high-contrast"),Ns={light:ys,dark:ks("dark"),"high-contrast":Ss},Cs=(0,E.memo)((function({theme:e="light",tagId:r="main-palette",prefix:n="--rcx-color",selector:t,palette:o}){const i=o||((e,r,n=":root")=>`${n} {\n${Object.entries(e).map((([e,n])=>`${r}-${e}: ${n};`)).join("\n")}\n}`)(Ns[e],n,t);return(0,C.jsx)(C.Fragment,{children:(0,hn.createPortal)(i,(s=r,(0,E.useMemo)((()=>{const e=document.getElementById("rcx-styles")||document.head.lastChild,r=document.getElementById(s);if(r)return r;const n=document.createElement("style");return n.setAttribute("id",s),document.head.insertBefore(n,e),document.head.appendChild(document.createElement("style")),n}),[s])))});var s}));var Is=(0,E.forwardRef)((function(e,r){const[n,t]=(0,or.useToggle)(!0);return(0,C.jsx)(Fr,{type:n?"password":"text",addon:(0,C.jsx)(ar,{name:n?"eye-off":"eye",size:20,onClick:()=>{t()}}),ref:r,...e})})),Bs=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"10",height:"10",viewBox:"0 0 10 10",className:`rcx-status-bullet rcx-status-bullet--away ${r} ${"small"===e?"rcx-status-bullet--small":""}`,xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13337 9.93325C7.78434 9.93325 9.93338 7.78422 9.93338 5.13325C9.93338 2.48229 7.78434 0.333252 5.13337 0.333252C2.48241 0.333252 0.333374 2.48229 0.333374 5.13325C0.333374 7.78422 2.48241 9.93325 5.13337 9.93325ZM5.80004 2.33325C5.80004 1.96506 5.50156 1.66659 5.13337 1.66659C4.76518 1.66659 4.46671 1.96506 4.46671 2.33325V5.13325V5.45367L4.71691 5.65383L6.71691 7.25383C7.00442 7.48384 7.42395 7.43722 7.65395 7.14972C7.88396 6.86221 7.83735 6.44268 7.54984 6.21267L5.80004 4.81284V2.33325Z"})}),Rs=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"10",height:"10",viewBox:"0 0 10 10",className:`rcx-status-bullet rcx-status-bullet--busy ${r} ${"small"===e?"rcx-status-bullet--small":""}`,xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13337 9.93325C7.78434 9.93325 9.93338 7.78422 9.93338 5.13325C9.93338 2.48229 7.78434 0.333252 5.13337 0.333252C2.48241 0.333252 0.333374 2.48229 0.333374 5.13325C0.333374 7.78422 2.48241 9.93325 5.13337 9.93325ZM3.53338 4.46655C3.16519 4.46655 2.86671 4.76503 2.86671 5.13322C2.86671 5.50141 3.16519 5.79989 3.53338 5.79989H6.73338C7.10157 5.79989 7.40004 5.50141 7.40004 5.13322C7.40004 4.76503 7.10157 4.46655 6.73338 4.46655H3.53338Z"})}),$s=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"24",height:"24",viewBox:"0 0 24 24",className:`rcx-status-bullet rcx-status-bullet--disabled ${r} ${"small"===e?"rcx-status-bullet--small":""}`,xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM13.3367 5.33333C13.3367 4.59695 12.7398 4 12.0034 4C11.267 4 10.67 4.59695 10.67 5.33333V14.6667C10.67 15.403 11.267 16 12.0034 16C12.7398 16 13.3367 15.403 13.3367 14.6667V5.33333ZM13.3367 18.6667C13.3367 17.9303 12.7398 17.3333 12.0034 17.3333C11.267 17.3333 10.67 17.9303 10.67 18.6667C10.67 19.403 11.267 20 12.0034 20C12.7398 20 13.3367 19.403 13.3367 18.6667Z"})}),Es=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`rcx-status-bullet rcx-status-bullet--loading ${r} ${"small"===e?"rcx-status-bullet--small":""}`,children:(0,C.jsx)("circle",{cx:"6",cy:"6",r:"5",className:"rcx-status-bullet rcx-status-bullet--loading",strokeWidth:"2",strokeDasharray:"2 2"})}),Ms=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`rcx-status-bullet rcx-status-bullet--offline ${r} ${"small"===e?"rcx-status-bullet--small":""}`,children:(0,C.jsx)("circle",{cx:"6",cy:"6",r:"5",className:"rcx-status-bullet rcx-status-bullet--offline",strokeWidth:"2"})}),Ts=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"24",height:"24",viewBox:"0 0 24 24",className:`rcx-status-bullet rcx-status-bullet--online ${r} ${"small"===e?"rcx-status-bullet--small":""}`,xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{d:"M24 12.0001C24 18.6275 18.6274 24.0001 12 24.0001C5.37255 24.0001 -3.05176e-05 18.6275 -3.05176e-05 12.0001C-3.05176e-05 5.37271 5.37255 0.00012207 12 0.00012207C18.6274 0.00012207 24 5.37271 24 12.0001Z"})});const Ps=({status:e="loading",...r})=>{switch(e){case"online":return(0,C.jsx)(Ts,{...r});case"away":return(0,C.jsx)(Bs,{...r});case"busy":return(0,C.jsx)(Rs,{...r});case"disabled":return(0,C.jsx)($s,{...r});case"offline":return(0,C.jsx)(Ms,{...r});default:return(0,C.jsx)(Es,{...r})}},Ds=e=>`${Math.min(Math.max(0,e),100).toFixed(1)}%`,zs={info:"status-font-on-info",success:"status-font-on-success",warning:"status-font-on-warning",danger:"status-font-on-danger"},Vs={info:"status-background-info",success:"status-background-success",warning:"status-background-warning",danger:"status-background-danger"},Fs=(e,r,n)=>n?e?Vs.danger:zs.danger:e?Vs[r]:zs[r],Os=(0,E.forwardRef)((function({percentage:e,variant:r="info",error:n,animated:t,light:o=!1,...i},s){return(0,C.jsx)(rr,{ref:s,"rcx-progress-bar":!0,title:n||void 0,overflow:"hidden",...i,children:(0,C.jsx)(rr,{bg:Fs(o,r,n),"rcx-progress-bar__fill--animated":t,"rcx-progress-bar__fill":!0,width:Ds(e)})})})),Ls=(0,E.forwardRef)((function({className:e,labelChildren:r,...n},t){return(0,C.jsxs)(rr,{is:"label",className:e,"rcx-radio-button":!0,children:[r,(0,C.jsx)(rr,{is:"input","rcx-radio-button__input":!0,type:"radio",ref:t,...n}),(0,C.jsx)(rr,{is:"i","rcx-radio-button__fake":!0,"aria-hidden":"true"})]})})),As=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"search",ref:r,...e})})),qs=(0,E.forwardRef)(((e,r)=>(0,C.jsx)(rr,{is:"div","rcx-select__wrapper":!0,ref:r,...e}))),Hs=(0,E.forwardRef)((({value:e,filter:r,error:n,disabled:t,options:o=[],anchor:i=Wi,onChange:s=()=>{},getValue:a=([e]=["",""])=>e,getLabel:c=([,e]=["",""])=>e,placeholder:l="",renderItem:d,renderSelected:u,renderOptions:x=xn,addonIcon:f,customEmpty:m,...b},h)=>{const[p,g]=(0,E.useState)(e||""),v=(0,or.useEffectEvent)((([e])=>{g(e),s(e)})),j=o.find((e=>a(e)===p)),w=o.indexOf(j),_=(0,E.useMemo)((()=>o.filter((([,e])=>!r||~e.toLowerCase().indexOf(r.toLowerCase()))).map((([e,r])=>p===e?[e,r,!0]:[e,r]))),[o,p,r]),[k,y,S,N,[I,B,R]]=bn(w,_,v),$=(0,E.useRef)(null),M=(0,or.useMergedRefs)(h,$),T=()=>$.current?.classList.remove("focus-visible"),P=(0,or.useEffectEvent)((([e])=>{g(e),s(e),T(),B()})),{ref:D,borderBoxSize:z}=(0,or.useResizeObserver)();((e,r)=>{const n=(0,E.useRef)(!1),t=(0,or.useEffectEvent)(e);(0,E.useEffect)((()=>{n.current&&t(),n.current=!0}),r||[])})(N,[r,p]),(0,or.useOutsideClick)([D],T);const V=c(j),F=(void 0===r||I===mr.HIDDEN)&&(V||l||"string"==typeof l),O=(0,or.useEffectEvent)((()=>$.current?.classList.contains("focus-visible")?(T(),B()):($.current?.classList.add("focus-visible"),$.current?.focus(),R())));return(0,C.jsxs)(rr,{"rcx-select":!0,disabled:t,ref:D,onClick:O,className:(0,E.useMemo)((()=>[n&&"invalid",t&&"disabled"]),[n,t]),...b,children:[(0,C.jsxs)(qs,{display:"flex",mi:"neg-x4","rcx-select__wrapper--hidden":!!F,children:[F&&(u?(0,C.jsx)(u,{role:"option",value:a(j),label:V,onClick:P},a(j)):(0,C.jsx)(rr,{flexGrow:1,is:"span",mi:4,"rcx-select__item":!0,fontScale:"p2",color:V?"default":"hint",children:F})),(L={ref:M,children:e?null:j||l,disabled:t??!1,onClick:R,onBlur:B,onKeyDown:y,onKeyUp:S},qi(i)?(0,C.jsx)(i,{...L}):"function"==typeof i?i(L):null),(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Hi,{children:(0,C.jsx)(ar,{name:I===mr.VISIBLE?"chevron-up":f||"chevron-down",size:"x20"})})})]}),(0,C.jsx)(gn,{visible:I,anchor:D,children:(0,C.jsx)(x,{width:z.inlineSize,role:"listbox",filter:r,options:_,onSelect:P,renderItem:d,cursor:k,customEmpty:m})})]});var L}));function Ws(e){const r=(0,E.useRef)(null),{listBoxRef:n=r,state:t}=e,{listBoxProps:o}=(0,br.useListBox)(e,t,n);return(0,C.jsx)("div",{...o,ref:n,children:[...t.collection].map((e=>"section"===e.type?(0,C.jsx)(Gs,{section:e,state:t},e.key):(0,C.jsx)(Us,{item:e,state:t},e.key)))})}function Gs({section:e,state:r}){const{itemProps:n,headingProps:t,groupProps:o}=(0,br.useListBoxSection)({heading:e.rendered,"aria-label":e["aria-label"]});return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("li",{...n,className:"pt-2",children:[e.rendered&&(0,C.jsx)("span",{...t,className:"text-xs font-bold uppercase text-gray-500 mx-3",children:e.rendered}),(0,C.jsx)("ul",{...o,children:[...e.childNodes].map((e=>(0,C.jsx)(Us,{item:e,state:r},e.key)))})]})})}function Us({item:e,state:r}){const n=(0,E.useRef)(null),{optionProps:t,isDisabled:o,isSelected:i,isFocused:s}=(0,br.useOption)({key:e.key},r,n);return(0,C.jsx)(Zr,{ref:n,disabled:o,selected:i,focus:s,label:e.rendered,...t,children:e.rendered},e.key)}const Ks=(0,E.forwardRef)((({small:e,error:r,isDisabled:n,focus:t,id:o,...i},s)=>{const{buttonProps:a}=(0,br.useButton)(i,s);return(0,C.jsx)(rr,{...a,id:o,"rcx-select":!0,ref:s,is:"button",display:"flex",flexDirection:"row",fontScale:"p2",justifyContent:"space-between","rcx-input-box--small":e,className:[r&&"invalid",n&&"disabled",t&&"focus"].filter(Boolean).join(" "),children:i.children})})),Zs=(0,E.forwardRef)((function({error:e,placeholder:r,value:n,onChange:t,small:o,isDisabled:i,disabled:s,id:a,...c},l){const d=i||s,u=(0,hr.useSelectState)({isDisabled:d,selectedKey:"bigint"!=typeof n?n:null,onSelectionChange:t,...c}),{ref:x,borderBoxSize:f}=(0,or.useResizeObserver)(),m=(0,or.useMergedRefs)(l,x),{triggerProps:b,valueProps:h,menuProps:p}=(0,br.useSelect)({isDisabled:d,...c},u,x),{focusProps:g,isFocusVisible:v}=(0,br.useFocusRing)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(Ks,{...(0,br.mergeProps)(g,b),ref:m,small:o,focus:v||u.isOpen,error:e,id:a,children:[(0,C.jsx)(br.HiddenSelect,{state:u,triggerRef:x,label:c.label,name:c.name,isDisabled:d}),(0,C.jsx)(rr,{is:"span",color:u.selectedItem?"default":"hint",...h,...o&&{fontScale:"c1"},children:u.selectedItem?u.selectedItem.rendered:r}),(0,C.jsx)(ar,{color:"default",name:u.isOpen?"chevron-up":"chevron-down",size:"x20"})]}),u.isOpen&&(0,C.jsx)(to,{state:u,triggerRef:x,placement:"bottom",offset:4,containerPadding:8,children:(0,C.jsx)(fn,{style:{width:f?.inlineSize},children:(0,C.jsx)(Ws,{...p,state:u})})})]})})),Ys=(0,E.forwardRef)((function({options:e,...r},n){return(0,C.jsx)(Zs,{ref:n,...r,children:e.map((e=>(0,C.jsx)(hr.Item,{title:e[1]??e[0],textValue:e[0],children:e[1]??e[0]},e[0])))})}));var Xs=(0,E.forwardRef)((function({children:e,filter:r,onChangeFilter:n,placeholder:t,...o},i){return(0,C.jsx)(Dr,{mi:4,flexGrow:1,className:"rcx-select__focus",ref:i,placeholder:t,value:r,onInput:e=>n(e.currentTarget.value),...o,"rcx-input-box--undecorated":!0})}));const Qs=(0,E.forwardRef)((function({options:e,placeholder:r,filter:n,setFilter:t,...o},i){const[s,a]=(0,E.useState)("");return(0,C.jsx)(Hs,{ref:i,placeholder:r,filter:n||s,options:e,...o,anchor:e=>(0,C.jsx)(Xs,{placeholder:r,filter:n||s,onChangeFilter:t||a,...e})})}));var Js=S(179);const ea=(0,E.memo)((()=>(0,C.jsx)(Zr,{label:"Empty"}))),ra=((0,E.memo)((function({selected:e,children:r,...n}){return(0,C.jsx)(Zr,{label:r,selected:e,...n,children:(0,C.jsx)(qr,{checked:e})})})),(0,E.forwardRef)((({withTitle:e,multiple:r,renderEmpty:n=ea,options:t,cursor:o,renderItem:i=Zr,onSelect:s,endReached:a,...c},l)=>{const d=({index:n,data:t})=>{const{value:a,label:c,selected:l}=t;return(0,E.createElement)(i,{...e&&{title:c},index:n,role:"option",label:c,onMouseDown:e=>(Ar(e),s([a,c]),!1),key:a,value:a,selected:l||!0!==r&&null,focus:o===n||null})};return(0,C.jsx)(rr,{"rcx-options":!0,...c,ref:l,children:(0,C.jsx)(dn,{padding:0,paddingBlock:"x12",paddingInline:0,elevation:"2",children:t.length?(0,C.jsx)(Js.Virtuoso,{endReached:a,style:{height:"144px"},totalCount:t.length,data:t,itemContent:(e,r)=>(0,C.jsx)(d,{index:e,data:r})}):(0,C.jsx)(n,{})})})})));var na=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{is:"div","rcx-select__wrapper":!0,ref:r,...e})}));const ta=({value:e,withTitle:r,filter:n,setFilter:t,error:o,disabled:i,options:s=[],anchor:a=Wi,onChange:c=()=>{},placeholder:l,renderOptions:d=ra,renderItem:u=Zr,endReached:x,...f})=>{const[m,b]=(0,E.useState)(e),h=void 0!==e?e:m,p=s.find((e=>e?.value===h)),[g,v,j]=mn(),w=(0,or.useEffectEvent)((([e])=>{b(e),c(e),v()})),_=(0,E.useRef)(null),{ref:k,borderBoxSize:y}=(0,or.useResizeObserver)(),S=p?.label,N=void 0===n||g===mr.HIDDEN?S||l:void 0,I=(0,or.useEffectEvent)((()=>g===mr.VISIBLE?v():_&&_.current?(_.current.focus(),j()):void 0));return(0,C.jsxs)(rr,{"rcx-select":!0,disabled:i,ref:k,onClick:I,className:(0,E.useMemo)((()=>[o&&"invalid",i&&"disabled"]),[o,i]),...f,children:[(0,C.jsxs)(na,{display:"flex",mi:"neg-x4","rcx-select__wrapper--hidden":!!N,children:[N&&(0,C.jsx)(rr,{flexGrow:1,is:"span",mi:4,"rcx-select__item":!0,fontScale:"p2m",color:S?"default":"hint",children:N}),(0,C.jsx)(a,{disabled:i,"rcx-input-box--undecorated":!0,filter:n,ref:_,"aria-haspopup":"listbox",onClick:j,onBlur:v}),(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Hi,{children:(0,C.jsx)(ar,{name:g===mr.VISIBLE?"chevron-up":"chevron-down",size:"x20"})})})]}),(0,C.jsx)(gn,{visible:g,anchor:k,children:(0,C.jsx)(d,{withTitle:r,width:y.inlineSize,role:"listbox",filter:n,options:s,onSelect:w,endReached:x,onMouseDown:Ar,renderItem:u})})]})},oa=({filter:e,setFilter:r,options:n,placeholder:t,...o})=>{const i=(0,E.useMemo)((()=>(0,E.forwardRef)((({filter:e,onChange:n,...o},i)=>(0,C.jsx)(Dr,{mi:4,flexGrow:1,className:"rcx-select__focus",ref:i,placeholder:t,value:e,onChange:(0,or.useEffectEvent)((e=>{r(e.currentTarget.value)})),...o,"rcx-input-box--undecorated":!0})))),[t,r]);return(0,C.jsx)(ta,{placeholder:void 0,filter:e,options:n,...o,anchor:i})};var ia=({withTitle:e,value:r,filter:n,options:t=[],error:o,disabled:i,anchor:s=Wi,onChange:a=()=>{},placeholder:c,renderOptions:l=ra,renderItem:d=Zr,endReached:u,...x})=>{const[f,m]=(0,E.useState)(r||[]),b=void 0!==r?r:f,h=t.filter((e=>b.some((r=>r.value===e.value)))),[p,g,v]=mn(),j=(0,E.useRef)(null),{ref:w,borderBoxSize:_}=(0,or.useResizeObserver)(),k=(0,or.useEffectEvent)((()=>p===mr.VISIBLE?g():j&&j.current?(j.current.focus(),v()):void 0)),y=e=>{const r=b.filter((r=>r.value!==e));m(r),a(r)};return(0,C.jsxs)(rr,{is:"div","rcx-select":!0,className:[o&&"invalid",i&&"disabled"],ref:w,onClick:k,disabled:i,...x,children:[(0,C.jsx)(Zt.Item,{grow:1,children:(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Zt.Container,{children:(0,C.jsx)(rr,{is:"div",children:(0,C.jsx)(rr,{is:"div",display:"flex",alignItems:"center",flexWrap:"wrap",margin:"-x8",role:"listbox",children:(0,C.jsxs)($r,{all:"x4",children:[(0,C.jsx)(s,{disabled:i,ref:j,"aria-haspopup":"listbox",onClick:v,onBlur:g,order:1,"rcx-input-box--undecorated":!0,children:c??null}),h.map((({value:r,label:n},t)=>(0,C.jsx)(Pr,{maxWidth:"x150",withTruncatedText:!0,title:e?n:void 0,tabIndex:-1,role:"option",onClick:e=>{Ar(e),y(r)},children:n},r??t)))]})})})})})}),(0,C.jsx)(Zt.Item,{grow:0,shrink:0,children:(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Hi,{children:(0,C.jsx)(ar,{name:p===mr.VISIBLE?"cross":"chevron-down",size:"x20"})})})}),(0,C.jsx)(mr,{visibility:p,children:(0,C.jsx)(pn,{anchor:w,children:(0,C.jsx)(l,{width:_.inlineSize,onMouseDown:Ar,multiple:!0,filter:n,role:"listbox",options:t,cursor:-1,endReached:u,renderItem:d,onSelect:([e])=>{(e=>{b.some((r=>r.value===e))?y(e):(e=>{const r=t.find((r=>r.value===e));if(!r)return;const n=[...b,r];m(n),a(n)})(e)})(e)}})})})]})};const sa=({filter:e,setFilter:r,options:n,placeholder:t,...o})=>{const i=(0,E.useCallback)((0,E.forwardRef)((({children:e,filter:n,...o},i)=>(0,C.jsx)(Zt.Item,{grow:1,children:(0,C.jsx)(Dr,{ref:i,placeholder:t,value:n,onInput:e=>r?.(e.currentTarget.value),...o,"rcx-input-box--undecorated":!0})}))),[]);return(0,C.jsx)(ia,{filter:e,options:n,anchor:i,...o})};var aa=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{is:"option","rcx-input-box__placeholder":!0,ref:r,...e})})),ca=(0,E.forwardRef)((function({children:e,multiple:r,placeholder:n,onChange:t,...o},i){const[s,a]=(0,E.useState)(!o.value&&!o.defaultValue),c=(0,E.useCallback)((e=>{a(!e.currentTarget.value),t?.call(e.currentTarget,e)}),[t]);return r?(0,C.jsx)(Fr,{children:e,...o,multiple:!0,type:"select",onChange:c}):(0,C.jsxs)(Fr,{placeholderVisible:s?!!n:void 0,ref:i,...o,addon:(0,C.jsx)(ar,{name:"chevron-down",size:"x20"}),type:"select",onChange:c,children:[n&&(0,C.jsx)(aa,{value:"",children:n}),e]})})),la=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{is:"option","rcx-input-box__option":!0,ref:r,...e})}));const da=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(zn,{ref:r,...e})})),ua=(0,E.forwardRef)((function(e,r){return(0,C.jsx)($n,{small:!0,ref:r,...e})})),xa=e=>(0,C.jsx)("div",{className:"rc-box rcx-box--full rcx-sidebar-item__container",...e}),fa=e=>(0,C.jsx)("div",{className:"rc-box rcx-box--full rcx-box--animated rcx-sidebar-item__menu-wrapper",...e}),ma=({className:e="",...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__container rcx-sidebar-item__content ${e}`,...r}),ba=({className:e="",...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__title ${e}`,...r}),ha=({className:e,...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__time ${e}`,...r}),pa=({className:e,...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__badge ${e}`,...r}),ga=({className:e,...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__subtitle ${e}`,...r}),va=({className:e="",...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__wrapper ${e}`,...r}),ja=({highlighted:e,children:r,icon:n,className:t,...o})=>(0,C.jsx)("div",{className:["rc-box rcx-box--full rcx-sidebar-item__icon",e&&"rcx-sidebar-item__icon--highlighted"].filter(Boolean).join(" "),...o,children:r||(0,C.jsx)(ar,{size:"x16",name:n,...o})}),wa=({...e})=>(0,C.jsx)(xa,{children:(0,C.jsx)("div",{className:"rc-box rcx-box--full rcx-sidebar-item__avatar",...e})}),_a=da,ka=e=>(0,C.jsx)(ua,{...e});var ya=Object.assign((({selected:e,highlighted:r,clickable:n,featured:t,is:o="div",children:i,...s})=>(0,C.jsx)(o,{className:["rc-box rcx-box--full rcx-sidebar-item",r&&"rcx-sidebar-item--highlighted",(n||"a"===o)&&"rcx-sidebar-item--clickable",e&&"rcx-sidebar-item--selected",t&&"rcx-sidebar-item--featured"].filter(Boolean).join(" "),...s,children:(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-item__wrapper",children:i})})),{Menu:fa,Container:xa,Content:ma,Title:ba,Subtitle:ga,Time:ha,Wrapper:va,Icon:ja,Avatar:wa,Actions:_a,Action:ka,Badge:pa});const Sa=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-title",...e});var Na=Object.assign((e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-section",...e})),{Title:Sa});const Ca=({text:e,description:r,onClick:n,variant:t="default",addon:o,onClose:i,children:s})=>(0,C.jsxs)("div",{className:`rcx-box rcx-box--full rcx-sidebar-banner rcx-sidebar-banner--${t}`,children:[(0,C.jsxs)("div",{children:[e&&(0,C.jsx)("div",{className:"rcx-sidebar-banner--text",children:e}),r&&(0,C.jsx)("div",{role:n?"link":void 0,tabIndex:0,className:["rcx-sidebar-banner--description",n&&"rcx-sidebar-banner--description--clickable"].filter(Boolean).join(" "),onClick:n,onKeyDown:e=>"Enter"===e.key&&n?.(),children:r}),s]}),(0,C.jsxs)("div",{className:"rcx-sidebar-banner__actions",children:[o,i&&(0,C.jsx)($n,{onClick:i,tiny:!0,icon:"cross"})]})]}),Ia=()=>(0,C.jsx)(Jr,{"rcx-sidebar--divider":!0,mbs:-2,mbe:0}),Ba=({className:e,...r})=>(0,C.jsx)("div",{className:["rc-box rc-box--full rcx-sidebar-topbar",e].filter(Boolean).join(" "),...r}),Ra=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(ua,{ref:r,...e})})),$a=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(da,{ref:r,...e})})),Ea=({children:e})=>(0,C.jsx)("div",{className:"rc-box rc-box--full rcx-sidebar-topbar__wrapper",children:e}),Ma=({className:e,children:r,...n})=>(0,C.jsxs)(Ba,{className:["rcx-sidebar-topbar--section",e].filter(Boolean).join(" "),...n,children:[(0,C.jsx)(Ea,{children:r}),(0,C.jsx)(Ia,{})]}),Ta=e=>(0,C.jsx)(rr,{className:"rcx-sidebar-topbar__title",withTruncatedText:!0,...e}),Pa=({children:e,className:r,...n})=>(0,C.jsxs)(Ba,{className:["rcx-sidebar-topbar--toolbox",r].filter(Boolean).join(" "),...n,children:[(0,C.jsx)(Ea,{children:e}),(0,C.jsx)(Ia,{})]}),Da=({className:e,...r})=>(0,C.jsx)("div",{className:["rc-box rc-box--full rcx-sidebar-topbar-v2 rcx-sidebar-topbar-v2",e].filter(Boolean).join(" "),...r}),za={size:"x24"};var Va=Object.assign(Ba,{Section:Ma,ToolBox:Pa,Wrapper:Ea,Avatar:za,Actions:$a,Action:Ra,Divider:Ia,Title:Ta});const Fa=({elevated:e,...r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-footer",e&&"rcx-sidebar-footer--elevated"].filter(Boolean).join(" "),...r}),Oa=({...e})=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-footer__highlights",...e});var La=Object.assign((e=>(0,C.jsx)(rr,{"rcx-sidebar":!0,...e})),{TopBar:Va,Item:ya,Section:Na,Divider:Ia,Banner:Ca});const Aa=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidepanel",e].filter(Boolean).join(" "),...r}),qa=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidepanel-section",e].filter(Boolean).join(" "),...r}),Ha=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidepanel-section__action",e].filter(Boolean).join(" "),...r}),Wa=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidepanel-header__title",e].filter(Boolean).join(" "),...r}),Ga=()=>(0,C.jsx)(Jr,{"rcx-sidepanel--divider":!0,mbs:-2,mbe:0}),Ua=({className:e,...r})=>(0,C.jsxs)("div",{className:"rcx-sidepanel-header-wrapper",children:[(0,C.jsx)("div",{className:["rcx-sidepanel-header",e].filter(Boolean).join(" "),...r}),(0,C.jsx)(Ga,{})]}),Ka=(0,E.forwardRef)((function({className:e,...r},n){return(0,C.jsx)("div",{role:"list",ref:n,className:["rcx-sidepanel-list",e].filter(Boolean).join(" "),...r})})),Za=(0,E.forwardRef)((function({className:e,...r},n){return(0,C.jsx)("div",{role:"listitem",ref:n,className:["rcx-sidepanel-list__item",e].filter(Boolean).join(" "),...r})})),Ya=(0,E.forwardRef)((({collapsed:e,className:r,...n},t)=>(0,C.jsx)("nav",{ref:t,className:["rcx-box rcx-box--full rcx-sidebar-v2","rcx-box--animated",e&&"rcx-sidebar-v2--collapsed",r].filter(Boolean).join(" "),...n}))),Xa=({className:e,children:r,...n})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-accordion rcx-box--animated",e].filter(Boolean).join(" "),...n,children:(0,C.jsx)("div",{className:"rcx-sidebar-v2-accordion__wrapper",children:r})}),Qa=({expanded:e,defaultExpanded:r,disabled:n,noncollapsible:t,tabIndex:o=0})=>{const[i,s]=(0,or.useToggle)(r),a=(e=>void 0!==e)(e)?e:i,c=t||a,l=(0,E.useId)(),d=(0,E.useId)();return{barProps:t?{"aria-disabled":"true","aria-expanded":"true","aria-labelledby":l}:{"aria-controls":d,"aria-expanded":a?"true":"false",tabIndex:n?void 0:o,onClick:e=>{n||(e.currentTarget?.blur(),s())},onKeyDown:e=>{if(!n&&e.currentTarget===e.target&&["Enter","Space"].includes(e.code)){if(e.preventDefault(),e.repeat)return;s()}}},titleId:l,panelId:d,panelExpanded:c,expanded:a}},Ja=({children:e,title:r,badge:n,noncollapsible:t,disabled:o,expanded:i,defaultExpanded:s,tabIndex:a,...c})=>{const{barProps:l,expanded:d,panelExpanded:u,panelId:x,titleId:f}=Qa({expanded:i,defaultExpanded:s,tabIndex:a,disabled:o,noncollapsible:t});return(0,C.jsxs)("section",{className:"rcx-box rcx-box--full rcx-sidebar-v2-accordion-item",...c,children:[(0,C.jsxs)("div",{role:"button",className:["rcx-box rcx-box--full rcx-sidebar-v2-accordion-item__bar rcx-box--animated",o&&"rcx-sidebar-v2-accordion-item__bar--disabled"].filter(Boolean).join(" "),...l,children:[!t&&(0,C.jsx)(cr,{className:"rcx-sidebar-v2-accordion-item__chevron",size:"x16",right:!d}),r&&(0,C.jsx)("h5",{className:"rcx-sidebar-v2-accordion-item__title",id:f,children:r}),!d&&n&&n]}),(0,C.jsx)("div",{className:["rcx-sidebar-v2-accordion-item__panel","rcx-box--animated",u&&"rcx-sidebar-v2-accordion-item__panel--expanded"].filter(Boolean).join(" "),id:x,children:e})]})},ec=(0,E.forwardRef)((function(e,r){return(0,C.jsx)($n,{small:!0,ref:r,...e})})),rc=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(zn,{ref:r,...e})})),nc=({selected:e,icon:r,badge:n,menu:t,...o})=>(0,C.jsxs)("a",{role:"link",tabIndex:0,className:["rcx-box rcx-box--full","rcx-sidebar-v2-link","rcx-sidebar-v2-item",e&&"rcx-sidebar-v2-item--selected"].filter(Boolean).join(" "),onClick:e=>e.stopPropagation(),onKeyDown:e=>"Enter"===e.code&&e.stopPropagation(),...o,children:[r&&(0,C.jsx)(ar,{name:r,size:"x20",className:"rcx-sidebar-v2-item__icon"}),(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__title",children:o.children}),n,t&&Rr((0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__menu-wrapper",children:t}),(e=>({className:T(e.className,"rcx-box rcx-box--full rcx-sidebar-v2-item__menu rcx-box--animated")})))]}),tc=({selected:e,level:r=1,className:n,children:t,is:o="a",...i})=>(0,C.jsx)(o,{className:["rcx-box rcx-box--full rcx-sidebar-v2-item",e&&"rcx-sidebar-v2-item--selected",r&&`rcx-sidebar-v2-item--level-${r}`,n].filter(Boolean).join(" "),...i,children:t}),oc=({children:e,className:r,icon:n="plus-small",...t})=>(0,C.jsxs)("div",{role:"button",tabIndex:0,className:["rcx-box rcx-box--full rcx-sidebar-v2-item rcx-sidebar-v2-item__action",r].filter(Boolean).join(" "),...t,children:[(0,C.jsx)(ar,{name:n,size:"x20"}),e]}),ic=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__avatar",e].filter(Boolean).join(" "),...r}),sc=({className:e,...r})=>(0,C.jsx)(Nn,{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__badge",e].filter(Boolean).join(" "),...r}),ac=({icon:e,className:r,highlighted:n,...t})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__icon",n&&"rcx-sidebar-v2-item__icon--highlighted",r].filter(Boolean).join(" "),children:(0,E.isValidElement)(e)?e:(0,C.jsx)(ar,{name:e,size:"x20",...t})}),cc=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__menu-wrapper rcx-box--animated",...r,children:Rr((0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__menu",children:e}),(e=>({className:T(e.className,"rcx-sidebar-v2-item__menu")})))}),lc=({className:e,unread:r,...n})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__title",r&&"rcx-sidebar-v2-item__title--highlighted",e].filter(Boolean).join(" "),...n}),dc=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__row",e].filter(Boolean).join(" "),...r}),uc=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__col",e].filter(Boolean).join(" "),...r}),xc=({className:e,unread:r,...n})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__timestamp",r&&"rcx-sidebar-v2-item__timestamp--highlighted",e].filter(Boolean).join(" "),...n}),fc=(0,E.forwardRef)((({className:e,children:r,...n},t)=>(0,C.jsx)("div",{ref:t,role:"listitem",className:["rcx-box rcx-box--full rcx-sidebar-item__list-item",e].filter(Boolean).join(" "),...n,children:r}))),mc=({className:e,unread:r,...n})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__subtitle",r&&"rcx-sidebar-v2-item__subtitle--highlighted",e].filter(Boolean).join(" "),...n}),bc=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__status-bullet",children:(0,C.jsx)(Ps,{...e})}),hc=({title:e,titleId:r,badge:n,barProps:t,expanded:o,...i})=>(0,C.jsxs)("div",{className:["rcx-box rcx-box--full","rcx-sidebar-v2-collapse-group__bar rcx-box--animated"].filter(Boolean).join(" "),...t,...i,children:[void 0!==o&&(0,C.jsx)(cr,{size:"x20",right:!o}),e&&(0,C.jsx)("h4",{className:"rcx-box rcx-box--full rcx-sidebar-v2-collapse-group__title",id:r,children:e}),!o&&n&&n]}),pc=(0,E.forwardRef)((({expanded:e,defaultExpanded:r,tabIndex:n,children:t,badge:o,title:i,...s},a)=>{const{barProps:c,expanded:l,panelExpanded:d,panelId:u,titleId:x}=Qa({expanded:e,defaultExpanded:r,tabIndex:n});return(0,C.jsxs)("section",{className:"rcx-box rcx-box--full rcx-sidebar-v2-collapse-group",...s,children:[(0,C.jsx)(hc,{expanded:l,title:i,titleId:x,badge:o,barProps:c,role:"button"}),(0,C.jsx)("div",{role:"list",ref:a,className:["rcx-box rcx-box--full rcx-sidebar-v2-collapse-group__panel rcx-box--animated",d&&"rcx-sidebar-v2-collapse-group__panel--expanded"].filter(Boolean).join(" "),id:u,children:t})]})})),gc=({title:e,linkText:r,linkProps:n,variant:t="default",addon:o,onClose:i,children:s,...a})=>(0,C.jsxs)("div",{className:`rcx-box rcx-box--full rcx-sidebar-v2-banner rcx-sidebar-v2-banner--${t}`,...a,children:[(0,C.jsxs)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-banner__content",children:[e&&(0,C.jsx)("h5",{className:"rcx-box rcx-box--full rcx-sidebar-v2-banner__title",children:e}),r&&(0,C.jsx)("a",{className:"rcx-box rcx-box--full rcx-sidebar-v2-banner__link",...n,children:r}),s]}),(0,C.jsxs)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-banner__addon",children:[o,i&&(0,C.jsx)($n,{onClick:i,tiny:!0,icon:"cross"})]})]}),vc=({children:e,...r})=>(0,C.jsx)("footer",{className:"rcx-sidebar-v2-footer",...r,children:e}),jc=({children:e,...r})=>(0,C.jsx)(rr,{className:"rcx-sidebar-v2-footer__content",...r,children:e}),wc=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidebar-v2-media",e].filter(Boolean).join(" "),...r}),_c=({align:e="end",small:r=!0,...n})=>(0,C.jsx)(zn,{align:e,small:r,...n}),kc=({className:e,label:r,children:n,...t})=>(0,C.jsxs)("div",{className:["rcx-sidebar-v2-media__controller",e].filter(Boolean).join(" "),children:[(0,C.jsx)("div",{className:"rcx-sidebar-v2-media__controller__label",children:r}),(0,C.jsx)(_c,{small:!0,align:"end",...t,children:n})]}),yc=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidebar-v2-media__title",e].filter(Boolean).join(" "),...r}),Sc=()=>(0,C.jsx)(Jr,{"rcx-sidebar-v2--divider":!0,mbs:-2,mbe:0}),Nc=e=>(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-section",...e}),(0,C.jsx)(Sc,{})]});var Cc=({children:e,...r})=>(0,C.jsx)("div",{...r,className:"rcx-states",children:e}),Ic=({primary:e=!0,...r})=>(0,C.jsx)(In,{...r,primary:e}),Bc=e=>(0,C.jsx)(zn,{...e}),Rc=({variation:e,...r})=>(0,C.jsx)(ar,{...r,"rcx-states__icon":!0,className:e&&`rcx-states__icon--${e}`,size:"x32"}),$c=e=>(0,C.jsx)(rr,{is:"a","rcx-states__link":!0,...e}),Ec=({children:e,...r})=>(0,C.jsx)("div",{...r,className:"rcx-states__subtitle",children:e}),Mc=({children:e,...r})=>(0,C.jsx)("div",{...r,className:"rcx-states__suggestion",children:e}),Tc=({children:e,...r})=>(0,C.jsx)("ul",{...r,className:"rcx-states__list",children:e}),Pc=({children:e,...r})=>(0,C.jsx)("li",{...r,className:"rcx-states__list-item",children:(0,C.jsx)("span",{className:"rcx-states__list-item-wrapper",children:e})}),Dc=({children:e,...r})=>(0,C.jsx)("div",{...r,className:"rcx-states__suggestion-text",children:e}),zc=({children:e,...r})=>(0,C.jsx)("h3",{...r,className:"rcx-states__title",children:e});const Vc=({striped:e,sticky:r,fixed:n=!1,...t})=>(0,C.jsx)(rr,{"rcx-table__wrapper":!0,children:(0,C.jsx)(rr,{is:"table","rcx-table":!0,"rcx-table--fixed":n,"rcx-table--sticky":r,"rcx-table--striped":e,...t})}),Fc=e=>(0,C.jsx)(rr,{is:"tbody","rcx-table__body":!0,...e}),Oc=(0,E.createContext)(!1),Lc=e=>(0,C.jsx)(Oc.Provider,{value:!0,children:(0,C.jsx)(rr,{is:"thead","rcx-table__head":!0,...e})}),Ac=({align:e,clickable:r,children:n,...t})=>{const o=(0,E.useContext)(Oc),i=n??(o?void 0:(0,C.jsx)(rr,{display:"inline-block",is:"hr",width:"x14",borderWidth:1}));return(0,C.jsx)(rr,{is:o?"th":"td","rcx-table__cell":!0,"rcx-table__cell--align":e,"rcx-table__cell--header":o,"rcx-table__cell--clickable":r,children:i,...t})},qc=e=>(0,C.jsx)(rr,{is:"tfoot","rcx-table__foot":!0,...e}),Hc=({action:e,selected:r,...n})=>(0,C.jsx)(rr,{is:"tr","rcx-table__row":!0,"rcx-table__row--selected":r,"rcx-table__row--action":e,...n}),Wc=({children:e,text:r,...n})=>(0,C.jsxs)(rr,{"rcx-table__selection":!0,display:"flex",alignItems:"center",justifyContent:"space-between",pi:24,elevation:"2",...n,children:[(0,C.jsx)(rr,{fontScale:"p2b",mb:16,flexShrink:1,withTruncatedText:!0,children:r}),e&&(0,C.jsx)(rr,{mi:"neg-x8",fontScale:"p2m",flexShrink:0,children:(0,C.jsx)($r,{inline:"x4",children:e})})]}),Gc=e=>(0,C.jsx)(Cn,{small:!0,flexShrink:0,...e}),Uc=e=>(0,C.jsx)(zn,{...e}),Kc=(0,E.forwardRef)((function({selected:e,disabled:r,...n},t){return(0,C.jsx)(rr,{is:"button","rcx-tabs__item":!0,"rcx-tabs__item--selected":e,"rcx-tabs__item--disabled":r,"rcx-tabs__item--selected--disabled":e&&r,"aria-selected":e?"true":"false",ref:t,role:"tab",...n})}));function Zc({children:e,divider:r=!0,...n}){return(0,C.jsx)(rr,{is:"div","rcx-tabs":!0,"rcx-tabs--with-divider":r,...n,children:(0,C.jsx)(rr,{is:"div","rcx-tabs__scroll-box":!0,children:(0,C.jsx)(rr,{is:"div","rcx-tabs__wrapper":!0,children:e,role:"tablist"})})})}Zc.Item=Kc;const Yc=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"tel",ref:r,...e})})),Xc=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"textarea",ref:r,...e})})),Qc=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"text",ref:r,...e})}));function Jc({disabled:e,circleCount:r,iteration:n,inheritColor:t,...o}){return(0,C.jsx)(rr,{is:"span",className:M.css`
|
|
199
|
+
`,children:e})}))),It=(0,E.memo)((e=>(0,C.jsx)(ar,{...e,pi:2,size:"x20"})));const Bt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,"rcx-vertical-bar__section":!0,p:16,display:"flex",alignItems:"center",flexGrow:1,borderBlockEndWidth:"default",borderBlockColor:"extra-light",...e})}));var Rt=(0,E.memo)(Bt),$t=(0,E.memo)((e=>(0,C.jsxs)(pt,{...e,children:[(0,C.jsx)(Ct,{children:(0,C.jsx)(Or,{width:"100%"})}),(0,C.jsxs)(rr,{p:24,children:[(0,C.jsx)(Or,{mbe:4,width:"32px",height:"32px",variant:"rect"}),Array(5).fill(5).map(((e,r)=>(0,C.jsx)(Or,{},r)))]})]}))),Et=(0,E.memo)((e=>(0,C.jsx)(rr,{flexShrink:1,flexGrow:1,fontScale:"h5",withTruncatedText:!0,...e})));const Mt=(0,E.forwardRef)((function({children:e,style:r,...n},t){return(0,C.jsx)(dn,{style:r,ref:t,elevation:"2",pi:"0",pb:"0",display:"flex",flexDirection:"column",overflow:"auto","data-testid":"dropdown",...n,children:(0,C.jsx)(rr,{flexShrink:1,pb:12,children:"hidden"===r?.visibility?null:e})})})),Tt=(0,E.forwardRef)((function({children:e,reference:r,placement:n="bottom-start",...t},o){const{style:i}=(0,or.usePosition)(r,o,{placement:n});return(0,C.jsx)(Mt,{style:i,children:e,ref:o,...t})})),Pt=(0,E.forwardRef)((function({children:e,...r},n){return(0,C.jsx)(dn,{ref:n,elevation:"2",pi:"0",pb:"0",w:"100vw",maxHeight:"80%",position:"fixed",display:"flex",flexDirection:"column",overflow:"auto",style:{bottom:0,left:0},zIndex:2,"data-testid":"dropdown",...r,children:(0,C.jsx)(rr,{flexShrink:1,pb:16,children:e})})})),Dt=(0,E.forwardRef)((function({children:e,reference:r,placement:n="bottom-start"},t){return(0,or.useMediaQuery)("(min-width: 500px)")?(0,C.jsx)(Tt,{reference:r,children:e,placement:n,ref:t}):(0,C.jsx)(Pt,{children:e,ref:t})})),zt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"email",ref:r,...e})})),Vt=(0,E.createContext)(!1);var Ft=function(e){return(0,C.jsx)(Vt.Provider,{value:!0,children:(0,C.jsx)(rr,{"rcx-field":!0,...e})})},Ot=e=>(0,C.jsx)(rr,{is:"span","rcx-field__description":!0,...e}),Lt=e=>(0,C.jsx)(rr,{is:"span","rcx-field__error":!0,...e}),At=e=>(0,C.jsx)(rr,{is:"span","rcx-field__hint":!0,...e}),qt=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(gr,{"rcx-field__label":!0,...e,ref:r})})),Ht=e=>(0,C.jsx)(qn,{...e}),Wt=e=>(0,C.jsx)(rr,{is:"a",target:"_blank","rcx-field__link":!0,...e}),Gt=e=>(0,C.jsx)(rr,{is:"span","rcx-field__row":!0,...e});const Ut=({children:e,...r})=>(0,C.jsx)(rr,{is:"fieldset","rcx-field-group":!0,role:"group",...r,children:Rr(e,(e=>({className:T(e.className,"rcx-field-group__item")})))}),Kt=({info:e,success:r,warning:n,danger:t,neutral:o,icon:i,...s})=>(0,C.jsx)(ar,{...s,"rcx-framed-icon":!0,"rcx-framed-icon--info":e,"rcx-framed-icon--success":r,"rcx-framed-icon--warning":n,"rcx-framed-icon--danger":t,"rcx-framed-icon--neutral":o||!e&&!r&&!n&&!t,name:i,size:20});var Zt={Container:function({inline:e=!1,children:r,direction:n,wrap:t,alignItems:o,alignContent:i,justifyContent:s}){const a=(0,E.useCallback)((r=>(void 0!==e&&void 0===r.display&&(r.display=e?"inline-flex":"flex"),void 0!==n&&void 0===r.flexDirection&&(r.flexDirection=n),void 0!==t&&void 0===r.flexWrap&&(r.flexWrap="no-wrap"===t?"nowrap":t),void 0!==o&&void 0===r.alignItems&&(r.alignItems=("start"===o?"flex-start":"end"===o&&"flex-end")||o),void 0!==i&&void 0===r.alignContent&&(r.alignContent=("start"===i?"flex-start":"end"===i&&"flex-end")||i),void 0!==s&&void 0===r.justifyContent&&(r.justifyContent=("start"===s?"flex-start":"end"===s&&"flex-end")||s),r)),[i,o,n,e,s,t]);return(0,C.jsx)(V.Provider,{children:r,value:F(a)})},Item:function({children:e,order:r,grow:n,shrink:t,basis:o,align:i}){const s=(0,E.useCallback)((e=>(void 0!==r&&void 0===e.order&&(e.order=r),void 0!==n&&void 0===e.flexGrow&&(e.flexGrow=n),void 0!==t&&void 0===e.flexShrink&&(e.flexShrink=t),void 0!==o&&void 0===e.flexBasis&&(e.flexBasis=o),void 0!==i&&void 0===e.alignSelf&&(e.alignSelf=("start"===i?"flex-start":"end"===i&&"flex-end")||i),e)),[i,o,n,r,t]);return(0,C.jsx)(V.Provider,{children:e,value:F(s)})}};const Yt=([e],r)=>{r[e].action?.()},Xt=({tiny:e,mini:r,small:n=!(e||r),options:t,optionWidth:o,placement:i="bottom-start",renderItem:s,maxHeight:a,icon:c="kebab",...l})=>{const d=(e=>Object.entries(e).map((([e,{type:r="option",label:n,disabled:t}])=>[e,n,void 0,t,r])))(t),[u,x,f,m,[b,h,p]]=bn(-1,d,((e,[,r])=>{Yt(e,t),m(),r()})),g=(0,E.useRef)(null),v=(0,E.useCallback)((()=>{if(g.current?.classList.contains("focus-visible"))return g.current.classList.remove("focus-visible"),void h();g.current&&(g.current.focus(),p(),g.current.classList.add("focus-visible"))}),[h,p]),j=(0,E.useCallback)((e=>{Yt(e,t),m(),h()}),[h,m,t]);return(0,E.useEffect)((()=>{"hidden"===b&&g.current?.classList.remove("focus-visible")}),[b]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)($n,{"data-testid":"menu",ref:g,small:n,tiny:e,mini:r,onClick:v,onBlur:h,onKeyUp:f,onKeyDown:x,icon:c,...l}),(0,C.jsx)(gn,{width:"auto",visible:b,anchor:g,placement:i,children:(0,C.jsx)(xn,{maxHeight:a,renderItem:s,width:o,onSelect:j,options:d,cursor:u,ref:g})})]})},Qt=(0,E.memo)((0,E.forwardRef)((({is:e="li",id:r,children:n,focus:t,selected:o,className:i,title:s,disabled:a,variant:c,onClick:l,...d},u)=>(0,E.createElement)(e,{...d,key:r,id:r,ref:u,"aria-selected":!!o,"aria-disabled":!!a,title:s,onClick:e=>{a?Ar(e):l?.(e)},className:["rcx-option",i,t&&"rcx-option--focus",o&&"rcx-option--selected",a&&"rcx-option--disabled",c&&`rcx-option--${c}`].filter(Boolean).join(" ")},n))));var Jt=Qt,eo=function({item:e,state:r}){const n=(0,E.useRef)(null),{menuItemProps:{onPointerUp:t,...o},isFocused:i,isDisabled:s}=(0,br.useMenuItem)({key:e.key},r,n);return(0,C.jsxs)(Jt,{...(0,br.mergeProps)(o,{onPointerDown:t}),ref:n,focus:i,disabled:s,is:"label",variant:e.value?.variant,children:[(0,C.jsx)("div",{className:"rcx-option__wrapper",children:e.rendered}),e.value&&e.value.description&&(0,C.jsx)(Qr,{children:e.value.description})]})},ro=function({section:e,state:r}){const{itemProps:n,headingProps:t,groupProps:o}=(0,br.useMenuSection)({heading:e.rendered,"aria-label":e["aria-label"]}),{separatorProps:i}=(0,br.useSeparator)({elementType:"span"});return(0,C.jsxs)(C.Fragment,{children:[e.key!==r.collection.getFirstKey()&&(0,C.jsx)(Jr,{...i}),(0,C.jsxs)("div",{...n,children:[e.rendered&&(0,C.jsx)(on,{...t,children:e.rendered}),(0,C.jsx)(rr,{...o,p:"0",children:[...e.childNodes].map((e=>(0,C.jsx)(eo,{item:e,state:r},e.key)))})]})]})},no=function(e){const r=(0,hr.useTreeState)(e),n=(0,E.useRef)(null),{menuProps:t}=(0,br.useMenu)(e,r,n);return(0,C.jsx)("div",{...t,ref:n,children:[...r.collection].map((e=>"section"===e.type?(0,C.jsx)(ro,{section:e,state:r},e.key):(0,C.jsx)(eo,{item:e,state:r},e.key)))})};function to(e){const r=(0,E.useRef)(null),{state:n,children:t,isNonModal:o}=e,{popoverProps:i,underlayProps:s}=(0,br.usePopover)({...e,popoverRef:r},n);return(0,C.jsxs)(br.Overlay,{children:[!o&&(0,C.jsx)("div",{...s}),(0,C.jsxs)("div",{...i,ref:r,children:[!o&&(0,C.jsx)(br.DismissButton,{onDismiss:n.close}),t,(0,C.jsx)(br.DismissButton,{onDismiss:n.close})]})]})}var oo=function({children:e,state:r,offset:n=4,maxWidth:t,...o}){return(0,or.useBreakpoints)().includes("sm")?(0,C.jsx)(to,{state:r,offset:n,...o,children:(0,C.jsx)(Mt,{maxWidth:t,children:e})}):(0,C.jsx)(to,{state:r,offset:n,...o,children:(0,C.jsx)(Pt,{children:e})})};const io=e=>{switch(e){case"bottom":return"bottom";case"bottom-start":default:return"bottom start";case"bottom-end":return"bottom end";case"top":return"top";case"top-start":return"top start";case"top-end":return"top end";case"left":return"left";case"left-start":return"left top";case"left-end":return"left bottom";case"right":return"right";case"right-start":return"right top";case"right-end":return"right bottom"}},so=({icon:e="kebab",placement:r="bottom-start",title:n,is:t=$n,className:o,pressed:i,maxWidth:s="x250",button:a,detached:c,...l})=>{const d=(0,hr.useMenuTriggerState)(l),u=(0,E.useRef)(null),{menuTriggerProps:x,menuProps:f}=(0,br.useMenuTrigger)({},d,u),{buttonProps:m}=(0,br.useButton)({...x,"aria-label":l["aria-label"]||n,preventFocusOnPress:!0},u),{large:b,medium:h,tiny:p,mini:g}=l,v={large:b,medium:h,tiny:p,mini:g},j=!(b||h||p||g),w=d.isOpen&&(0,C.jsx)(oo,{state:d,triggerRef:u,placement:io(r),maxWidth:s,children:(0,C.jsx)(no,{...l,...f})});return(0,C.jsxs)(C.Fragment,{children:[a?(0,E.cloneElement)(a,{...m,ref:u,icon:e,className:o,title:n,pressed:i||d.isOpen}):(0,C.jsx)(t,{...m,ref:u,icon:e,className:o,title:n,pressed:i||d.isOpen,small:j,...v}),c?(0,hn.createPortal)(w,document.body):w]})};so.displayName="MenuV2";var ao=so;function co(e){return null}function lo(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&E.Children.count(e.children)>0)}co.getCollectionNode=function*(e,r){const{childItems:n,title:t,children:o}=e,i=e.title||e.children,s=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";s||r?.suppressTextValueWarning||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:i,textValue:s,"aria-label":e["aria-label"],hasChildNodes:lo(e),*childNodes(){if(n)for(const e of n)yield{type:"item",value:e};else if(t){const e=[];E.Children.forEach(o,(r=>{e.push({type:"item",element:r})})),yield*e}}}};var uo=co;function xo(e){return null}xo.getCollectionNode=function*(e){const{children:r,title:n,items:t}=e;yield{type:"section",props:e,hasChildNodes:!0,rendered:n,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof r){if(!t)throw new Error("props.children was a function but props.items is missing");for(const e of t)yield{type:"item",value:e,element:r(e)}}else{const e=[];E.Children.forEach(r,(r=>{e.push({type:"item",element:r??void 0})})),yield*e}}}};var fo=xo;const mo=(0,E.forwardRef)((function({className:e,clickable:r,sequential:n,isSelected:t,isEditing:o,isPending:i,highlight:s,...a},c){return(0,C.jsx)("div",{ref:c,className:z(e,["rcx-message",(r||a.onClick)&&"rcx-message--clickable",n&&"rcx-message--sequential",t&&"rcx-message--selected",o&&"rcx-message--editing",i&&"rcx-message--pending",s&&"rcx-message--highlight"].filter(Boolean).join(" ")),...a})})),bo=(0,E.forwardRef)((({className:e,fixedWidth:r,...n},t)=>(0,C.jsx)(rr,{"rcx-message-block":!0,"rcx-message-block--width-fixed":r,ref:t,...n}))),ho=({clamp:e,className:r,...n})=>(0,C.jsx)("div",{className:z(r,["rcx-message-body",e&&`rcx-message-body--clamp rcx-message-body--clamp-${e}`].filter(Boolean).join(" ")),...n}),po=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-container",...e}),go=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-container rcx-message-container--fixed",...e}),vo=({children:e,unreadLabel:r,...n})=>(0,C.jsxs)("div",{role:"separator",className:r?"rcx-message-divider rcx-message-divider--unread":"rcx-message-divider",...n,children:[e&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"rcx-message-divider__bar"}),(0,C.jsx)("div",{className:"rcx-message-divider__wrapper",children:e})," "]}),(0,C.jsx)("div",{className:"rcx-message-divider__bar",children:r&&(0,C.jsx)("div",{className:"rcx-message-divider__wrapper--unread",children:r})})]}),jo=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-header",...r,children:(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-header__wrapper",children:e})});function wo({is:e="span",variant:r="other",className:n,clickable:t,...o}){const i=[r,t&&"clickable"].filter(Boolean).map((e=>`rcx-message__highlight--${e}`)).join(" ");return(0,C.jsx)(e,{className:z(n,`rcx-box rcx-box--full rcx-message__highlight ${i}`),...o})}const _o=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-container rcx-message-container--left",...e}),ko=e=>(0,C.jsx)("div",{className:"rcx-message-metrics__content-item",...e}),yo=e=>(0,C.jsx)(ko,{children:(0,C.jsx)("div",{className:"rcx-message-metrics__content-wrapper",...e})}),So=({name:e,badge:r,...n})=>(0,C.jsx)($n,{position:"relative",overflow:"visible",...n,small:!0,icon:e,children:r&&(0,C.jsx)("div",{className:"rcx-message-metrics__item__follow-badge",children:r})}),No=({className:e,...r})=>(0,C.jsx)("div",{className:z(e,"rcx-message-metrics__avatar-row"),...r}),Co=({className:e,...r})=>(0,C.jsx)("div",{className:z(e,"rcx-message-metrics__avatar-row__content"),...r}),Io=e=>(0,C.jsx)(ar,{size:"x20",...e}),Bo=e=>(0,C.jsx)("div",{className:"rcx-message-metrics__item-label",...e});var Ro=Object.assign((({className:e,...r})=>(0,C.jsx)("div",{className:z(e,"rcx-message-metrics__item"),...r})),{Icon:Io,Label:Bo});const $o=e=>(0,C.jsx)(Ro,{children:(0,C.jsx)(In,{primary:!0,...e,small:!0})});var Eo=Object.assign(yo,{Reply:$o,Item:Ro,Following:So});const Mo=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-header__name",...e}),To=(0,E.forwardRef)((function(e,r){return(0,C.jsx)("span",{ref:r,className:"rcx-box rcx-box--full rcx-message-header__name-container",...e})})),Po=({large:e,medium:r,className:n,disabled:t,onClick:o,variant:i,children:s,icon:a,href:c,...l})=>{const d=[i,r&&"medium",e&&"large",t&&"disabled",o&&"clickable",c&&"clickable"].filter(Boolean).map((e=>`rcx-tag--${e}`)).join(" ");return(0,C.jsxs)(rr,{is:c?"a":"span",className:z(n,`rcx-tag ${d}`),onClick:o,href:c,...l,children:[a,(0,C.jsx)("span",{className:"rcx-tag__inner",children:s})]})},Do=e=>(0,C.jsx)(Po,{className:"rcx-box rcx-box--full rcx-message-header__role",...e}),zo=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-header__roles",...e}),Vo=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-header__time",...e}),Fo=(0,E.forwardRef)((function(e,r){return(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-toolbar",children:(0,C.jsx)(zn,{role:"toolbar",ref:r,small:!0,...e})})})),Oo=(0,E.forwardRef)((function(e,r){return(0,C.jsx)($n,{ref:r,small:!0,...e})})),Lo=(0,E.forwardRef)((function({className:e,visible:r,...n},t){return(0,C.jsx)("div",{ref:t,className:["rcx-box rcx-box--full rcx-message-toolbar__wrapper",r&&"rcx-message-toolbar__wrapper--visible",e].filter(Boolean).join(" "),...n})}));var Ao=Object.assign(Fo,{Item:Oo,Wrapper:Lo,Menu:Xt});const qo=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-header__username",...e}),Ho=e=>(0,C.jsx)("div",{className:"rcx-message-generic-preview",...e}),Wo=({thumb:e,...r})=>(0,C.jsxs)("div",{className:"rcx-message-generic-preview__content",children:[e,(0,C.jsx)("div",{className:"rcx-message-generic-preview__content-wrapper",...r})]}),Go=({children:e,clamp:r=!1})=>(0,C.jsx)("div",{className:["rcx-message-generic-preview__description",r&&"rcx-message-generic-preview__description--clamp"].filter(Boolean).join(" "),children:e}),Uo=({children:e})=>(0,C.jsx)("div",{className:"rcx-message-generic-preview__footer",children:e}),Ko=({url:e,width:r,height:n,className:t,...o})=>(0,C.jsx)("div",{className:z(t,"rcx-message-generic-preview__preview"),style:{backgroundImage:`url(${e})`,maxWidth:"100%"},"data-testid":"preview-image",...o,children:(0,C.jsx)("div",{style:{paddingTop:n/r*100+"%"}})}),Zo=({url:e,className:r,...n})=>(0,C.jsx)("img",{src:e,className:z(r,"rcx-message-generic-preview__image"),alt:"",...n}),Yo=e=>(0,C.jsx)("div",{className:"rcx-message-generic-preview__thumb",...e}),Xo=({externalUrl:e,children:r,...n})=>e?(0,C.jsx)("a",{className:"rcx-message-generic-preview__title rcx-message-generic-preview__title-link",href:e,target:"_blank",...n,children:r}):(0,C.jsx)("span",{className:"rcx-message-generic-preview__title",...n}),Qo=({name:e="attachment-file",size:r=32,color:n="default",type:t="file"})=>(0,C.jsxs)("div",{className:"rcx-message-generic-preview__icon",children:[(0,C.jsx)(ar,{name:e,color:n,size:r}),(0,C.jsx)("div",{className:"rcx-message-generic-preview__icon-title",children:t})]}),Jo=(0,E.forwardRef)(((e,r)=>(0,C.jsx)("div",{ref:r,className:"rcx-message-status-indicator",...e}))),ei=({children:e})=>(0,C.jsx)("span",{className:"rcx-message-status-indicator__text","aria-hidden":!0,children:e}),ri=({name:e,variant:r,...n})=>(0,C.jsx)(ar,{name:e,size:"x16",className:["rcx-message-status-indicator__item",r&&`rcx-message-status-indicator__item--${r}`].filter(Boolean).join(" "),...n}),ni=({children:e,variant:r})=>(0,C.jsx)("span",{className:["rcx-message-status-indicator__item `rcx-message-status-indicator__item--private",r&&`rcx-message-status-indicator__item--${r}`].filter(Boolean).join(" "),children:e}),ti=({children:e,title:r,isSelected:n,...t})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-message-system",n&&"rcx-message-system--selected"].filter(Boolean).join(" "),title:r,...t,children:e}),oi=e=>(0,C.jsx)("div",{className:"rcx-message-system__block",...e}),ii=e=>(0,C.jsx)("div",{className:"rcx-message-system__body",...e}),si=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-system__container",...e}),ai=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-system__name",...e}),ci=e=>(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-message-system__time",...e}),li=_o,di=({counter:e,className:r})=>(0,C.jsx)("div",{className:`rcx-message-reactions__counter ${r}`,children:e}),ui=({name:e,image:r,className:n,...t})=>(0,C.jsx)("span",{className:`${n||""} ${e}`,style:r&&r.length?{backgroundImage:r}:void 0,...t}),xi=({className:e,...r})=>(0,C.jsx)(ui,{className:`rcx-message-reactions__emoji ${e||""}`,...r}),fi=(0,E.forwardRef)((function({name:e,counter:r,mine:n,children:t,className:o,...i},s){return(0,C.jsx)("div",{className:["rcx-message-reactions__reaction",n&&"rcx-message-reactions__reaction--mine",o].filter(Boolean).join(" "),ref:s,role:"button",tabIndex:0,...i,children:t||(0,C.jsxs)(C.Fragment,{children:[e&&(0,C.jsx)(xi,{name:e}),r&&(0,C.jsx)(di,{counter:r})]})})})),mi=({className:e,...r})=>(0,C.jsx)("div",{role:"button",tabIndex:0,className:["rcx-message-reactions__reaction rcx-message-reactions__reaction--action",e].filter(Boolean).join(" "),...r,children:(0,C.jsx)(ar,{name:"emoji-plus",size:"x16"})}),bi=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(bo,{className:"rcx-message-reactions",children:(0,C.jsx)("div",{ref:r,className:"rcx-message-reactions__container",...e})})}));Object.assign(bi,{Reaction:fi,Action:mi});const hi=e=>(0,C.jsx)(Ii,{className:"rcx-message-thread",...e}),pi=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-thread__message",...e}),gi=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-thread__container",...e}),vi=({className:e,...r})=>(0,C.jsx)(ui,{className:`rcx-message-thread__emoji ${e||""}`,...r}),ji=({...e})=>(0,C.jsx)(ar,{className:"rcx-box rcx-box--full rcx-message-thread__icon",size:"x16",...e}),wi=()=>(0,C.jsx)(ji,{className:"rcx-box rcx-box--full rcx-message-thread__icon rcx-message-thread__icon--follow",name:"bell"}),_i=()=>(0,C.jsx)(ji,{name:"thread"}),ki=({children:e,system:r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-message-thread__origin",r&&"rcx-box rcx-box--full rcx-message-thread__origin--system"].filter(Boolean).join(" "),children:e}),yi=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-message-thread__row",...e}),Si=()=>(0,C.jsx)(ji,{className:"rcx-box rcx-box--full rcx-message-thread__icon rcx-message-thread__icon--unfollow",name:"bell-off"}),Ni=_o;Object.assign(hi,{Row:yi,Container:gi,LeftContainer:Ni,Origin:ki,Message:pi,Follow:wi,Unfollow:Si,Icon:_i});const Ci=({name:e,className:r,image:n,big:t,...o})=>(0,C.jsx)(ui,{className:["rcx-message__emoji",r,t&&"rcx-message__emoji--big"].filter(Boolean).join(" "),name:e,image:n,...o});var Ii=Object.assign(mo,{Metrics:Eo,Toolbar:Ao,Container:po,ContainerFixed:go,LeftContainer:_o,Header:jo,Body:ho,Block:bo,Timestamp:Vo,NameContainer:To,Name:Mo,Username:qo,Roles:zo,Role:Do,Divider:vo,Highlight:wo});const Bi=(0,E.forwardRef)((({children:e,wrapper:r=rr,wrapperFunction:n,...t},o)=>{const i={children:e,className:"rcx-modal__inner",elevation:"2"};return(0,C.jsx)(rr,{is:"dialog",open:!0,"aria-modal":"true","rcx-modal":!0,ref:o,...t,children:n?n(i):(0,E.createElement)(r,i)})})),Ri=e=>(0,C.jsx)(rr,{"rcx-modal__backdrop":!0,...e}),$i=e=>(0,C.jsx)($n,{"aria-label":"Close",...e,small:!0,icon:"cross"}),Ei=({children:e,onScrollContent:r,...n})=>(0,C.jsx)(cn,{vertical:!0,onScrollContent:r,children:(0,C.jsx)(rr,{"rcx-modal__content":!0,children:(0,C.jsx)(rr,{"rcx-modal__content-wrapper":!0,mi:24,...n,children:e})})}),Mi=({children:e,justifyContent:r="end"})=>(0,C.jsx)(rr,{justifyContent:r,"rcx-modal__footer":!0,children:e}),Ti=({children:e})=>(0,C.jsx)(rr,{"rcx-modal__footer-annotation":!0,children:e}),Pi=({children:e})=>(0,C.jsx)(zn,{align:"end",children:e}),Di=({children:e,...r})=>(0,C.jsx)(rr,{"rcx-modal__header":!0,is:"header",...r,children:(0,C.jsx)(rr,{"rcx-modal__header-inner":!0,children:(0,C.jsx)($r,{all:"x4",children:e})})}),zi=({children:e,...r})=>(0,C.jsx)(rr,{"rcx-modal__header-text":!0,...r,children:e}),Vi=({...e})=>(0,C.jsx)("figure",{className:"rcx-modal__hero-image-wrapper",children:(0,C.jsx)(rr,{"rcx-modal__hero-image":!0,is:"img",...e})}),Fi=({size:e="x20",name:r,alignItems:n="center",...t})=>(0,C.jsx)(rr,{...t,display:"flex",alignItems:n,children:(0,C.jsx)(ar,{mb:4,name:r,size:e})}),Oi=({children:e,...r})=>(0,C.jsx)(rr,{"rcx-modal__tagline":!0,...r,children:e}),Li=e=>(0,C.jsx)(rr,{children:(0,C.jsx)(yn,{size:"x28",...e})}),Ai=({children:e,...r})=>(0,C.jsx)(rr,{is:"h2","rcx-modal__title":!0,...r,children:e}),qi=e=>e.$$typeof===Symbol.for("react.forward_ref");var Hi=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{is:"div","rcx-select__addon":!0,ref:r,...e})})),Wi=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{ref:r,fontScale:"p2m",color:"hint","rcx-select__focus":!0,is:"button",type:"button",...e})})),Gi=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Wi,{"rcx-input-box--undecorated":!0,ref:r,"aria-haspopup":"listbox",order:1,...e})}));const Ui=(0,E.memo)((function(e){return(0,C.jsx)(Pr,{...e})})),Ki=(0,E.forwardRef)((({value:e,filter:r,setFilter:n,options:t=[],error:o,disabled:i,anchor:s=Gi,onChange:a=()=>{},getLabel:c=([,e]=["",""])=>e,getValue:l=([e])=>e,placeholder:d,renderOptions:u=xn,renderItem:x,customEmpty:f,renderSelected:m,addonIcon:b,...h},p)=>{const[g,v]=(0,E.useState)(e||[]);(0,E.useEffect)((()=>v(e||[])),[e]);const[j,w]=(0,E.useState)(),_=t.findIndex((e=>l(e)===j)),k=()=>P.current?.classList.remove("focus-visible"),y=([e])=>{if(g.includes(e)){w(void 0);const r=g.filter((r=>r!==e));return v(r),a(r)}n?.(""),w(e);const r=[...g,e];return v(r),a(r)},S=t.filter((([,e])=>!r||e.toLowerCase().includes(r.toLowerCase()))).map((([e,r])=>g.includes(e)?[e,r,!0]:[e,r])),[N,I,B,R,[$,M,T]]=bn(_,S,y);(0,E.useEffect)(R,[r]);const P=(0,E.useRef)(null),D=(0,or.useMergedRefs)(p,P),{ref:z,borderBoxSize:V}=(0,or.useResizeObserver)();(0,or.useOutsideClick)([z],k);const F=(0,or.useEffectEvent)((()=>$===mr.VISIBLE?M():(P.current?.focus(),T())));return(0,C.jsxs)(rr,{is:"div","rcx-select":!0,className:[o&&"invalid",i&&"disabled"],ref:z,onClick:F,disabled:i,...h,children:[(0,C.jsx)(Zt.Item,{grow:1,children:(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Zt.Container,{children:(0,C.jsx)(rr,{is:"div",children:(0,C.jsx)(rr,{is:"div",display:"flex",alignItems:"center",flexWrap:"wrap",margin:"-x8",role:"listbox",children:(0,C.jsxs)($r,{all:"x4",children:[(O={ref:D,children:0===g.length?d:null,disabled:i??!1,onClick:T,onBlur:M,onKeyDown:I,onKeyUp:B},qi(s)?(0,C.jsx)(s,{...O}):"function"==typeof s?s(O):null),g.map((e=>{const r=t.find((([r])=>r===e));return m?(0,C.jsx)(m,{role:"option",value:e,label:c(r),onMouseDown:e=>{Ar(e),y(r),k()},children:c(r)},e):(0,C.jsx)(Ui,{tabIndex:-1,role:"option",onMouseDown:e=>{Ar(e),y(r),k()},children:c(r)},String(e))}))]})})})})})}),(0,C.jsx)(Zt.Item,{grow:0,shrink:0,children:(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Hi,{children:(0,C.jsx)(ar,{name:$===mr.VISIBLE?"chevron-up":b||"chevron-down",size:"x20"})})})}),(0,C.jsx)(mr,{visibility:$,children:(0,C.jsx)(pn,{anchor:z,children:(0,C.jsx)(u,{width:V.inlineSize,onMouseDown:Ar,multiple:!0,filter:r,renderItem:x||Yr,role:"listbox",options:S,onSelect:y,cursor:N,customEmpty:f})})})]});var O}));var Zi=(0,E.forwardRef)((function({children:e,filter:r,onChangeFilter:n,placeholder:t,...o},i){return(0,C.jsx)(Zt.Item,{grow:1,children:(0,C.jsx)(Dr,{ref:i,placeholder:t,value:r,onInput:e=>n(e.currentTarget.value),...o,"rcx-input-box--undecorated":!0,"aria-haspopup":"listbox",order:1})})}));const Yi=({options:e,placeholder:r,filter:n,setFilter:t,...o})=>{const[i,s]=(0,E.useState)("");return(0,C.jsx)(Ki,{...o,filter:n||i,setFilter:t||s,options:e,anchor:e=>(0,C.jsx)(Zi,{placeholder:r,filter:n||i,onChangeFilter:t||s,...e})})},Xi=e=>(0,C.jsx)("nav",{className:"rcx-navbar",...e}),Qi=(0,E.forwardRef)(((e,r)=>(0,C.jsx)(zn,{className:"rcx-navbar-group",ref:r,...e}))),Ji=(0,E.forwardRef)((function({children:e,icon:r,...n},t){return(0,C.jsx)(C.Fragment,{children:r?(0,C.jsx)($n,{ref:t,"rcx-navbar-item":!0,icon:r,small:!0,...n}):Rr(e,(e=>({className:T(e.className,"rcx-navbar-item"),ref:t,...n})))})})),es=e=>(0,C.jsx)(Jr,{"rcx-navbar-divider":!0,vertical:!0,...e}),rs=e=>!!(0,E.isValidElement)(e)&&e.type.displayName===Qi.displayName,ns=({children:e,...r})=>{const n=E.Children.toArray(e).filter(rs);return(0,C.jsx)("span",{className:"rcx-navbar-section",...r,children:E.Children.toArray(e).map(((e,r)=>(0,C.jsxs)(E.Fragment,{children:[e,r<n.length-1&&(0,C.jsx)(es,{})]},r)))})},ts=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"number",ref:r,...e})})),os=()=>"Items per page:",is=({count:e,current:r,itemsPerPage:n})=>`Showing results ${r+1} - ${Math.min(r+n,e)} of ${e}`,ss=[25,50,100],as=({count:e,current:r=0,itemsPerPage:n=25,itemsPerPageLabel:t=os,showingResultsLabel:o=is,onSetItemsPerPage:i,onSetCurrent:s,divider:a,...c})=>{const l=ss.length>1,d=Math.floor(r/n),u=Math.ceil(e/n),x=(0,E.useMemo)((()=>u<=7?Array.from({length:u},((e,r)=>r)):d<5?[0,1,2,3,4,"⋯",u-1]:d>u-5?[0,"⋯",u-5,u-4,u-3,u-2,u-1]:[0,"⋯",d-1,d,d+1,"⋯",u-1]),[u,d]),f={count:e,pages:u,current:r,currentPage:d,itemsPerPage:n},m=e=>()=>{i?.(e)},b=e=>()=>{s?.(e*n)};return(0,C.jsxs)(rr,{is:"nav","rcx-pagination":!0,"rcx-pagination--divider":a,...c,children:[l&&(0,C.jsxs)(rr,{"rcx-pagination__left":!0,children:[(0,C.jsx)(rr,{is:"span","rcx-pagination__label":!0,children:t(f)}),(0,C.jsx)(rr,{is:"ol","rcx-pagination__list":!0,children:ss.map((e=>(0,C.jsx)(rr,{is:"li","rcx-pagination__list-item":!0,children:(0,C.jsx)(rr,{is:"button","rcx-pagination__link":!0,tabIndex:n===e?-1:0,disabled:n===e,onClick:m(e),children:e})},e)))})]}),(0,C.jsxs)(rr,{"rcx-pagination__right":!0,children:[(0,C.jsx)(rr,{is:"span","rcx-pagination__label":!0,children:o(f)}),(0,C.jsxs)(rr,{is:"ol","rcx-pagination__list":!0,children:[(0,C.jsx)(rr,{is:"li","rcx-pagination__list-item":!0,children:(0,C.jsx)(rr,{is:"button","rcx-pagination__back":!0,disabled:0===d,onClick:b(d-1),children:(0,C.jsx)(cr,{left:!0,size:"x16"})})}),x.map(((e,r)=>(0,C.jsx)(rr,{is:"li","rcx-pagination__list-item":!0,children:"⋯"===e?"⋯":(0,C.jsx)(rr,{is:"button","rcx-pagination__link":!0,disabled:d===e,onClick:b(e),children:e+1})},r))),(0,C.jsx)(rr,{is:"li","rcx-pagination__list-item":!0,children:(0,C.jsx)(rr,{is:"button","rcx-pagination__forward":!0,disabled:d===u-1,onClick:b(d+1),children:(0,C.jsx)(cr,{right:!0,size:"x16"})})})]})]})]})};var cs=S(623),ls=S.n(cs),ds=S(26),us=S.n(ds),xs=S(973),fs=S.n(xs),ms=S(882),bs=S.n(ms),hs=S(684),ps=S.n(hs),gs=S(656),vs=S.n(gs),js=S(498),ws=S.n(js),_s=S(823),ks=S.n(_s);const ys=e=>{const{badge:r,button:n,font:t,shadow:o,status:i,statusBullet:s,stroke:a,surface:c}=(e=>({badge:ls().badge[e],button:us().button[e],font:fs().font[e],shadow:bs().shadow[e],status:ps().status[e],statusBullet:vs().statusBullet[e],stroke:ws().stroke[e],surface:ks().surface[e]}))(e);return{...[{category:"Stroke",description:"Use as component's outline, stroke, dividers",list:[{name:"stroke-extra-light",color:a.extraLight},{name:"stroke-light",color:a.light},{name:"stroke-medium",color:a.medium},{name:"stroke-dark",color:a.dark},{name:"stroke-extra-dark",color:a.extraDark},{name:"stroke-extra-light-highlight",color:a.extraLightHighlight},{name:"stroke-highlight",color:a.highlight},{name:"stroke-extra-light-error",color:a.extraLightError},{name:"stroke-error",color:a.error}]},{category:"Surface",description:"Use as a container on top of the background",list:[{name:"surface-light",color:c.light},{name:"surface-tint",color:c.tint},{name:"surface-room",color:c.room},{name:"surface-neutral",color:c.neutral},{name:"surface-disabled",color:c.disabled},{name:"surface-hover",color:c.hover},{name:"surface-selected",color:c.selected},{name:"surface-dark",color:c.dark},{name:"surface-featured",color:c.featured},{name:"surface-featured-hover",color:c.featuredHover},{name:"surface-overlay",color:c.overlay},{name:"surface-sidebar",color:c.sidebar}]},{category:"Shadow",description:"Use as a shadow color",list:[{name:"shadow-highlight",color:o.highlight},{name:"shadow-danger",color:o.danger},{name:"shadow-elevation-border",color:o["elevation-border"]},{name:"shadow-elevation-1",color:o["elevation-1"]},{name:"shadow-elevation-2x",color:o["elevation-2x"]},{name:"shadow-elevation-2y",color:o["elevation-2y"]}]},{category:"Font",description:"These should be applied according to surfaces",list:[{name:"font-white",color:t.white},{name:"font-disabled",color:t.disabled},{name:"font-annotation",color:t.annotation},{name:"font-hint",color:t.hint},{name:"font-secondary-info",color:t.secondaryInfo},{name:"font-default",color:t.default},{name:"font-titles-labels",color:t.titlesLabels},{name:"font-info",color:t.info},{name:"font-danger",color:t.danger},{name:"font-pure-black",color:t.pureBlack},{name:"font-pure-white",color:t.pureWhite}]},{category:"Status",description:"Status Background",list:[{name:"status-background-info",color:i.info},{name:"status-background-success",color:i.success},{name:"status-background-danger",color:i.danger},{name:"status-background-warning",color:i.warning},{name:"status-background-warning-2",color:i["warning-2"]},{name:"status-background-service-1",color:i["service-1"]},{name:"status-background-service-2",color:i["service-2"]},{name:"status-background-service-3",color:i["service-3"]}]},{description:"Status Font",list:[{name:"status-font-on-info",color:i["font-on-info"]},{name:"status-font-on-success",color:i["font-on-success"]},{name:"status-font-on-danger",color:i["font-on-danger"]},{name:"status-font-on-warning",color:i["font-on-warning"]},{name:"status-font-on-warning-2",color:i["font-on-warning-2"]},{name:"status-font-on-service-1",color:i["font-on-service-1"]},{name:"status-font-on-service-2 ",color:i["font-on-service-2"]},{name:"status-font-on-service-3 ",color:i["font-on-service-3"]}]},{category:"Badge",description:"Badge Background",list:[{name:"badge-background-level-0",color:r["level-0"]},{name:"badge-background-level-1",color:r["level-1"]},{name:"badge-background-level-2",color:r["level-2"]},{name:"badge-background-level-3",color:r["level-3"]},{name:"badge-background-level-4",color:r["level-4"]}]},{category:"Status Bullet",description:"Used to show user status",list:[{name:"status-bullet-online",color:s.online},{name:"status-bullet-away",color:s.away},{name:"status-bullet-busy",color:s.busy},{name:"status-bullet-disabled",color:s.disabled},{name:"status-bullet-offline",color:s.offline},{name:"status-bullet-loading",color:s.loading}]},{category:"Button",description:"Primary Background",list:[{name:"button-background-primary-default",color:n.backgroundPrimaryDefault},{name:"button-background-primary-hover",color:n.backgroundPrimaryHover},{name:"button-background-primary-press",color:n.backgroundPrimaryPress},{name:"button-background-primary-focus",color:n.backgroundPrimaryFocus},{name:"button-background-primary-keyfocus",color:n.backgroundPrimaryKeyfocus},{name:"button-background-primary-disabled",color:n.backgroundPrimaryDisabled}]},{description:"Secondary Background",list:[{name:"button-background-secondary-default",color:n.backgroundSecondaryDefault},{name:"button-background-secondary-hover",color:n.backgroundSecondaryHover},{name:"button-background-secondary-press",color:n.backgroundSecondaryPress},{name:"button-background-secondary-focus",color:n.backgroundSecondaryFocus},{name:"button-background-secondary-keyfocus",color:n.backgroundSecondaryKeyfocus},{name:"button-background-secondary-disabled",color:n.backgroundSecondaryDisabled}]},{description:"Secondary Danger Background",list:[{name:"button-background-secondary-danger-default",color:n.backgroundSecondaryDangerDefault},{name:"button-background-secondary-danger-hover",color:n.backgroundSecondaryDangerHover},{name:"button-background-secondary-danger-press",color:n.backgroundSecondaryDangerPress},{name:"button-background-secondary-danger-focus",color:n.backgroundSecondaryDangerFocus},{name:"button-background-secondary-danger-keyfocus",color:n.backgroundSecondaryDangerKeyfocus},{name:"button-background-secondary-danger-disabled",color:n.backgroundDangerDisabled}]},{description:"Danger Background",list:[{name:"button-background-danger-default",color:n.backgroundDangerDefault},{name:"button-background-danger-hover",color:n.backgroundDangerHover},{name:"button-background-danger-press",color:n.backgroundDangerPress},{name:"button-background-danger-focus",color:n.backgroundDangerFocus},{name:"button-background-danger-keyfocus",color:n.backgroundDangerKeyfocus},{name:"button-background-danger-disabled",color:n.backgroundDangerDisabled}]},{description:"Success Background",list:[{name:"button-background-success-default",color:n.backgroundSuccessDefault},{name:"button-background-success-hover",color:n.backgroundSuccessHover},{name:"button-background-success-press",color:n.backgroundSuccessPress},{name:"button-background-success-focus",color:n.backgroundSuccessFocus},{name:"button-background-success-keyfocus",color:n.backgroundSuccessKeyfocus},{name:"button-background-success-disabled",color:n.backgroundSuccessDisabled}]},{description:"Font",list:[{name:"button-font-on-primary",color:n.fontOnPrimary},{name:"button-font-on-primary-disabled",color:n.fontOnPrimaryDisabled},{name:"button-font-on-secondary",color:n.fontOnSecondary},{name:"button-font-on-secondary-disabled",color:n.fontOnSecondaryDisabled},{name:"button-font-on-secondary-danger",color:n.fontOnSecondaryDanger},{name:"button-font-on-secondary-danger-disabled",color:n.onSecondaryDangerDisabled},{name:"button-font-on-danger",color:n.fontOnDanger},{name:"button-font-on-danger-disabled",color:n.fontOnDangerDisabled},{name:"button-font-on-success",color:n.fontOnSuccess},{name:"button-font-on-success-disabled",color:n.fontOnSuccessDisabled}]}].reduce(((e,r)=>({...e,...r.list.reduce(((e,r)=>({...e,[r.name]:r.color})),{})})),{})}},Ss=ys("light"),Ns=ys("high-contrast"),Cs={light:Ss,dark:ys("dark"),"high-contrast":Ns},Is=(0,E.memo)((function({theme:e="light",tagId:r="main-palette",prefix:n="--rcx-color",selector:t,palette:o}){const i=o||((e,r,n=":root")=>`${n} {\n${Object.entries(e).map((([e,n])=>`${r}-${e}: ${n};`)).join("\n")}\n}`)(Cs[e],n,t);return(0,C.jsx)(C.Fragment,{children:(0,hn.createPortal)(i,(s=r,(0,E.useMemo)((()=>{const e=document.getElementById("rcx-styles")||document.head.lastChild,r=document.getElementById(s);if(r)return r;const n=document.createElement("style");return n.setAttribute("id",s),document.head.insertBefore(n,e),document.head.appendChild(document.createElement("style")),n}),[s])))});var s}));var Bs=(0,E.forwardRef)((function(e,r){const[n,t]=(0,or.useToggle)(!0);return(0,C.jsx)(Fr,{type:n?"password":"text",addon:(0,C.jsx)(ar,{name:n?"eye-off":"eye",size:20,onClick:()=>{t()}}),ref:r,...e})})),Rs=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"10",height:"10",viewBox:"0 0 10 10",className:`rcx-status-bullet rcx-status-bullet--away ${r} ${"small"===e?"rcx-status-bullet--small":""}`,xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13337 9.93325C7.78434 9.93325 9.93338 7.78422 9.93338 5.13325C9.93338 2.48229 7.78434 0.333252 5.13337 0.333252C2.48241 0.333252 0.333374 2.48229 0.333374 5.13325C0.333374 7.78422 2.48241 9.93325 5.13337 9.93325ZM5.80004 2.33325C5.80004 1.96506 5.50156 1.66659 5.13337 1.66659C4.76518 1.66659 4.46671 1.96506 4.46671 2.33325V5.13325V5.45367L4.71691 5.65383L6.71691 7.25383C7.00442 7.48384 7.42395 7.43722 7.65395 7.14972C7.88396 6.86221 7.83735 6.44268 7.54984 6.21267L5.80004 4.81284V2.33325Z"})}),$s=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"10",height:"10",viewBox:"0 0 10 10",className:`rcx-status-bullet rcx-status-bullet--busy ${r} ${"small"===e?"rcx-status-bullet--small":""}`,xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.13337 9.93325C7.78434 9.93325 9.93338 7.78422 9.93338 5.13325C9.93338 2.48229 7.78434 0.333252 5.13337 0.333252C2.48241 0.333252 0.333374 2.48229 0.333374 5.13325C0.333374 7.78422 2.48241 9.93325 5.13337 9.93325ZM3.53338 4.46655C3.16519 4.46655 2.86671 4.76503 2.86671 5.13322C2.86671 5.50141 3.16519 5.79989 3.53338 5.79989H6.73338C7.10157 5.79989 7.40004 5.50141 7.40004 5.13322C7.40004 4.76503 7.10157 4.46655 6.73338 4.46655H3.53338Z"})}),Es=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"24",height:"24",viewBox:"0 0 24 24",className:`rcx-status-bullet rcx-status-bullet--disabled ${r} ${"small"===e?"rcx-status-bullet--small":""}`,xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24ZM13.3367 5.33333C13.3367 4.59695 12.7398 4 12.0034 4C11.267 4 10.67 4.59695 10.67 5.33333V14.6667C10.67 15.403 11.267 16 12.0034 16C12.7398 16 13.3367 15.403 13.3367 14.6667V5.33333ZM13.3367 18.6667C13.3367 17.9303 12.7398 17.3333 12.0034 17.3333C11.267 17.3333 10.67 17.9303 10.67 18.6667C10.67 19.403 11.267 20 12.0034 20C12.7398 20 13.3367 19.403 13.3367 18.6667Z"})}),Ms=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`rcx-status-bullet rcx-status-bullet--loading ${r} ${"small"===e?"rcx-status-bullet--small":""}`,children:(0,C.jsx)("circle",{cx:"6",cy:"6",r:"5",className:"rcx-status-bullet rcx-status-bullet--loading",strokeWidth:"2",strokeDasharray:"2 2"})}),Ts=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`rcx-status-bullet rcx-status-bullet--offline ${r} ${"small"===e?"rcx-status-bullet--small":""}`,children:(0,C.jsx)("circle",{cx:"6",cy:"6",r:"5",className:"rcx-status-bullet rcx-status-bullet--offline",strokeWidth:"2"})}),Ps=({size:e,className:r,...n})=>(0,C.jsx)("svg",{...n,width:"24",height:"24",viewBox:"0 0 24 24",className:`rcx-status-bullet rcx-status-bullet--online ${r} ${"small"===e?"rcx-status-bullet--small":""}`,xmlns:"http://www.w3.org/2000/svg",children:(0,C.jsx)("path",{d:"M24 12.0001C24 18.6275 18.6274 24.0001 12 24.0001C5.37255 24.0001 -3.05176e-05 18.6275 -3.05176e-05 12.0001C-3.05176e-05 5.37271 5.37255 0.00012207 12 0.00012207C18.6274 0.00012207 24 5.37271 24 12.0001Z"})});const Ds=({status:e="loading",...r})=>{switch(e){case"online":return(0,C.jsx)(Ps,{...r});case"away":return(0,C.jsx)(Rs,{...r});case"busy":return(0,C.jsx)($s,{...r});case"disabled":return(0,C.jsx)(Es,{...r});case"offline":return(0,C.jsx)(Ts,{...r});default:return(0,C.jsx)(Ms,{...r})}},zs=e=>`${Math.min(Math.max(0,e),100).toFixed(1)}%`,Vs={info:"status-font-on-info",success:"status-font-on-success",warning:"status-font-on-warning",danger:"status-font-on-danger"},Fs={info:"status-background-info",success:"status-background-success",warning:"status-background-warning",danger:"status-background-danger"},Os=(e,r,n)=>n?e?Fs.danger:Vs.danger:e?Fs[r]:Vs[r],Ls=(0,E.forwardRef)((function({percentage:e,variant:r="info",error:n,animated:t,light:o=!1,...i},s){return(0,C.jsx)(rr,{ref:s,"rcx-progress-bar":!0,title:n||void 0,overflow:"hidden",...i,children:(0,C.jsx)(rr,{bg:Os(o,r,n),"rcx-progress-bar__fill--animated":t,"rcx-progress-bar__fill":!0,width:zs(e)})})})),As=(0,E.forwardRef)((function({className:e,labelChildren:r,...n},t){return(0,C.jsxs)(rr,{is:"label",className:e,"rcx-radio-button":!0,children:[r,(0,C.jsx)(rr,{is:"input","rcx-radio-button__input":!0,type:"radio",ref:t,...n}),(0,C.jsx)(rr,{is:"i","rcx-radio-button__fake":!0,"aria-hidden":"true"})]})})),qs=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"search",ref:r,...e})})),Hs=(0,E.forwardRef)(((e,r)=>(0,C.jsx)(rr,{is:"div","rcx-select__wrapper":!0,ref:r,...e}))),Ws=(0,E.forwardRef)((({value:e,filter:r,error:n,disabled:t,options:o=[],anchor:i=Wi,onChange:s=()=>{},getValue:a=([e]=["",""])=>e,getLabel:c=([,e]=["",""])=>e,placeholder:l="",renderItem:d,renderSelected:u,renderOptions:x=xn,addonIcon:f,customEmpty:m,...b},h)=>{const[p,g]=(0,E.useState)(e||""),v=(0,or.useEffectEvent)((([e])=>{g(e),s(e)})),j=o.find((e=>a(e)===p)),w=o.indexOf(j),_=(0,E.useMemo)((()=>o.filter((([,e])=>!r||~e.toLowerCase().indexOf(r.toLowerCase()))).map((([e,r])=>p===e?[e,r,!0]:[e,r]))),[o,p,r]),[k,y,S,N,[I,B,R]]=bn(w,_,v),$=(0,E.useRef)(null),M=(0,or.useMergedRefs)(h,$),T=()=>$.current?.classList.remove("focus-visible"),P=(0,or.useEffectEvent)((([e])=>{g(e),s(e),T(),B()})),{ref:D,borderBoxSize:z}=(0,or.useResizeObserver)();((e,r)=>{const n=(0,E.useRef)(!1),t=(0,or.useEffectEvent)(e);(0,E.useEffect)((()=>{n.current&&t(),n.current=!0}),r||[])})(N,[r,p]),(0,or.useOutsideClick)([D],T);const V=c(j),F=(void 0===r||I===mr.HIDDEN)&&(V||l||"string"==typeof l),O=(0,or.useEffectEvent)((()=>$.current?.classList.contains("focus-visible")?(T(),B()):($.current?.classList.add("focus-visible"),$.current?.focus(),R())));return(0,C.jsxs)(rr,{"rcx-select":!0,disabled:t,ref:D,onClick:O,className:(0,E.useMemo)((()=>[n&&"invalid",t&&"disabled"]),[n,t]),...b,children:[(0,C.jsxs)(Hs,{display:"flex",mi:"neg-x4","rcx-select__wrapper--hidden":!!F,children:[F&&(u?(0,C.jsx)(u,{role:"option",value:a(j),label:V,onClick:P},a(j)):(0,C.jsx)(rr,{flexGrow:1,is:"span",mi:4,"rcx-select__item":!0,fontScale:"p2",color:V?"default":"hint",children:F})),(L={ref:M,children:e?null:j||l,disabled:t??!1,onClick:R,onBlur:B,onKeyDown:y,onKeyUp:S},qi(i)?(0,C.jsx)(i,{...L}):"function"==typeof i?i(L):null),(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Hi,{children:(0,C.jsx)(ar,{name:I===mr.VISIBLE?"chevron-up":f||"chevron-down",size:"x20"})})})]}),(0,C.jsx)(gn,{visible:I,anchor:D,children:(0,C.jsx)(x,{width:z.inlineSize,role:"listbox",filter:r,options:_,onSelect:P,renderItem:d,cursor:k,customEmpty:m})})]});var L}));function Gs(e){const r=(0,E.useRef)(null),{listBoxRef:n=r,state:t}=e,{listBoxProps:o}=(0,br.useListBox)(e,t,n);return(0,C.jsx)("div",{...o,ref:n,children:[...t.collection].map((e=>"section"===e.type?(0,C.jsx)(Us,{section:e,state:t},e.key):(0,C.jsx)(Ks,{item:e,state:t},e.key)))})}function Us({section:e,state:r}){const{itemProps:n,headingProps:t,groupProps:o}=(0,br.useListBoxSection)({heading:e.rendered,"aria-label":e["aria-label"]});return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)("li",{...n,className:"pt-2",children:[e.rendered&&(0,C.jsx)("span",{...t,className:"text-xs font-bold uppercase text-gray-500 mx-3",children:e.rendered}),(0,C.jsx)("ul",{...o,children:[...e.childNodes].map((e=>(0,C.jsx)(Ks,{item:e,state:r},e.key)))})]})})}function Ks({item:e,state:r}){const n=(0,E.useRef)(null),{optionProps:t,isDisabled:o,isSelected:i,isFocused:s}=(0,br.useOption)({key:e.key},r,n);return(0,C.jsx)(Zr,{ref:n,disabled:o,selected:i,focus:s,label:e.rendered,...t,children:e.rendered},e.key)}const Zs=(0,E.forwardRef)((({small:e,error:r,isDisabled:n,focus:t,id:o,...i},s)=>{const{buttonProps:a}=(0,br.useButton)(i,s);return(0,C.jsx)(rr,{...a,id:o,"rcx-select":!0,ref:s,is:"button",display:"flex",flexDirection:"row",fontScale:"p2",justifyContent:"space-between","rcx-input-box--small":e,className:[r&&"invalid",n&&"disabled",t&&"focus"].filter(Boolean).join(" "),children:i.children})})),Ys=(0,E.forwardRef)((function({error:e,placeholder:r,value:n,onChange:t,small:o,isDisabled:i,disabled:s,id:a,...c},l){const d=i||s,u=(0,hr.useSelectState)({isDisabled:d,selectedKey:"bigint"!=typeof n?n:null,onSelectionChange:t,...c}),{ref:x,borderBoxSize:f}=(0,or.useResizeObserver)(),m=(0,or.useMergedRefs)(l,x),{triggerProps:b,valueProps:h,menuProps:p}=(0,br.useSelect)({isDisabled:d,...c},u,x),{focusProps:g,isFocusVisible:v}=(0,br.useFocusRing)();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(Zs,{...(0,br.mergeProps)(g,b),ref:m,small:o,focus:v||u.isOpen,error:e,id:a,children:[(0,C.jsx)(br.HiddenSelect,{state:u,triggerRef:x,label:c.label,name:c.name,isDisabled:d}),(0,C.jsx)(rr,{is:"span",color:u.selectedItem?"default":"hint",...h,...o&&{fontScale:"c1"},children:u.selectedItem?u.selectedItem.rendered:r}),(0,C.jsx)(ar,{color:"default",name:u.isOpen?"chevron-up":"chevron-down",size:"x20"})]}),u.isOpen&&(0,C.jsx)(to,{state:u,triggerRef:x,placement:"bottom",offset:4,containerPadding:8,children:(0,C.jsx)(fn,{style:{width:f?.inlineSize},children:(0,C.jsx)(Gs,{...p,state:u})})})]})})),Xs=(0,E.forwardRef)((function({options:e,...r},n){return(0,C.jsx)(Ys,{ref:n,...r,children:e.map((e=>(0,C.jsx)(hr.Item,{title:e[1]??e[0],textValue:e[0],children:e[1]??e[0]},e[0])))})}));var Qs=(0,E.forwardRef)((function({children:e,filter:r,onChangeFilter:n,placeholder:t,...o},i){return(0,C.jsx)(Dr,{mi:4,flexGrow:1,className:"rcx-select__focus",ref:i,placeholder:t,value:r,onInput:e=>n(e.currentTarget.value),...o,"rcx-input-box--undecorated":!0})}));const Js=(0,E.forwardRef)((function({options:e,placeholder:r,filter:n,setFilter:t,...o},i){const[s,a]=(0,E.useState)("");return(0,C.jsx)(Ws,{ref:i,placeholder:r,filter:n||s,options:e,...o,anchor:e=>(0,C.jsx)(Qs,{placeholder:r,filter:n||s,onChangeFilter:t||a,...e})})}));var ea=S(179);const ra=(0,E.memo)((()=>(0,C.jsx)(Zr,{label:"Empty"}))),na=((0,E.memo)((function({selected:e,children:r,...n}){return(0,C.jsx)(Zr,{label:r,selected:e,...n,children:(0,C.jsx)(qr,{checked:e})})})),(0,E.forwardRef)((({withTitle:e,multiple:r,renderEmpty:n=ra,options:t,cursor:o,renderItem:i=Zr,onSelect:s,endReached:a,...c},l)=>{const d=({index:n,data:t})=>{const{value:a,label:c,selected:l}=t;return(0,E.createElement)(i,{...e&&{title:c},index:n,role:"option",label:c,onMouseDown:e=>(Ar(e),s([a,c]),!1),key:a,value:a,selected:l||!0!==r&&null,focus:o===n||null})};return(0,C.jsx)(rr,{"rcx-options":!0,...c,ref:l,children:(0,C.jsx)(dn,{padding:0,paddingBlock:"x12",paddingInline:0,elevation:"2",children:t.length?(0,C.jsx)(ea.Virtuoso,{endReached:a,style:{height:"144px"},totalCount:t.length,data:t,itemContent:(e,r)=>(0,C.jsx)(d,{index:e,data:r})}):(0,C.jsx)(n,{})})})})));var ta=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{is:"div","rcx-select__wrapper":!0,ref:r,...e})}));const oa=({value:e,withTitle:r,filter:n,setFilter:t,error:o,disabled:i,options:s=[],anchor:a=Wi,onChange:c=()=>{},placeholder:l,renderOptions:d=na,renderItem:u=Zr,endReached:x,...f})=>{const[m,b]=(0,E.useState)(e),h=void 0!==e?e:m,p=s.find((e=>e?.value===h)),[g,v,j]=mn(),w=(0,or.useEffectEvent)((([e])=>{b(e),c(e),v()})),_=(0,E.useRef)(null),{ref:k,borderBoxSize:y}=(0,or.useResizeObserver)(),S=p?.label,N=void 0===n||g===mr.HIDDEN?S||l:void 0,I=(0,or.useEffectEvent)((()=>g===mr.VISIBLE?v():_&&_.current?(_.current.focus(),j()):void 0));return(0,C.jsxs)(rr,{"rcx-select":!0,disabled:i,ref:k,onClick:I,className:(0,E.useMemo)((()=>[o&&"invalid",i&&"disabled"]),[o,i]),...f,children:[(0,C.jsxs)(ta,{display:"flex",mi:"neg-x4","rcx-select__wrapper--hidden":!!N,children:[N&&(0,C.jsx)(rr,{flexGrow:1,is:"span",mi:4,"rcx-select__item":!0,fontScale:"p2m",color:S?"default":"hint",children:N}),(0,C.jsx)(a,{disabled:i,"rcx-input-box--undecorated":!0,filter:n,ref:_,"aria-haspopup":"listbox",onClick:j,onBlur:v}),(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Hi,{children:(0,C.jsx)(ar,{name:g===mr.VISIBLE?"chevron-up":"chevron-down",size:"x20"})})})]}),(0,C.jsx)(gn,{visible:g,anchor:k,children:(0,C.jsx)(d,{withTitle:r,width:y.inlineSize,role:"listbox",filter:n,options:s,onSelect:w,endReached:x,onMouseDown:Ar,renderItem:u})})]})},ia=({filter:e,setFilter:r,options:n,placeholder:t,...o})=>{const i=(0,E.useMemo)((()=>(0,E.forwardRef)((({filter:e,onChange:n,...o},i)=>(0,C.jsx)(Dr,{mi:4,flexGrow:1,className:"rcx-select__focus",ref:i,placeholder:t,value:e,onChange:(0,or.useEffectEvent)((e=>{r(e.currentTarget.value)})),...o,"rcx-input-box--undecorated":!0})))),[t,r]);return(0,C.jsx)(oa,{placeholder:void 0,filter:e,options:n,...o,anchor:i})};var sa=({withTitle:e,value:r,filter:n,options:t=[],error:o,disabled:i,anchor:s=Wi,onChange:a=()=>{},placeholder:c,renderOptions:l=na,renderItem:d=Zr,endReached:u,...x})=>{const[f,m]=(0,E.useState)(r||[]),b=void 0!==r?r:f,h=t.filter((e=>b.some((r=>r.value===e.value)))),[p,g,v]=mn(),j=(0,E.useRef)(null),{ref:w,borderBoxSize:_}=(0,or.useResizeObserver)(),k=(0,or.useEffectEvent)((()=>p===mr.VISIBLE?g():j&&j.current?(j.current.focus(),v()):void 0)),y=e=>{const r=b.filter((r=>r.value!==e));m(r),a(r)};return(0,C.jsxs)(rr,{is:"div","rcx-select":!0,className:[o&&"invalid",i&&"disabled"],ref:w,onClick:k,disabled:i,...x,children:[(0,C.jsx)(Zt.Item,{grow:1,children:(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Zt.Container,{children:(0,C.jsx)(rr,{is:"div",children:(0,C.jsx)(rr,{is:"div",display:"flex",alignItems:"center",flexWrap:"wrap",margin:"-x8",role:"listbox",children:(0,C.jsxs)($r,{all:"x4",children:[(0,C.jsx)(s,{disabled:i,ref:j,"aria-haspopup":"listbox",onClick:v,onBlur:g,order:1,"rcx-input-box--undecorated":!0,children:c??null}),h.map((({value:r,label:n},t)=>(0,C.jsx)(Pr,{maxWidth:"x150",withTruncatedText:!0,title:e?n:void 0,tabIndex:-1,role:"option",onClick:e=>{Ar(e),y(r)},children:n},r??t)))]})})})})})}),(0,C.jsx)(Zt.Item,{grow:0,shrink:0,children:(0,C.jsx)($r,{inline:"x4",children:(0,C.jsx)(Hi,{children:(0,C.jsx)(ar,{name:p===mr.VISIBLE?"cross":"chevron-down",size:"x20"})})})}),(0,C.jsx)(mr,{visibility:p,children:(0,C.jsx)(pn,{anchor:w,children:(0,C.jsx)(l,{width:_.inlineSize,onMouseDown:Ar,multiple:!0,filter:n,role:"listbox",options:t,cursor:-1,endReached:u,renderItem:d,onSelect:([e])=>{(e=>{b.some((r=>r.value===e))?y(e):(e=>{const r=t.find((r=>r.value===e));if(!r)return;const n=[...b,r];m(n),a(n)})(e)})(e)}})})})]})};const aa=({filter:e,setFilter:r,options:n,placeholder:t,...o})=>{const i=(0,E.useCallback)((0,E.forwardRef)((({children:e,filter:n,...o},i)=>(0,C.jsx)(Zt.Item,{grow:1,children:(0,C.jsx)(Dr,{ref:i,placeholder:t,value:n,onInput:e=>r?.(e.currentTarget.value),...o,"rcx-input-box--undecorated":!0})}))),[]);return(0,C.jsx)(sa,{filter:e,options:n,anchor:i,...o})};var ca=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{is:"option","rcx-input-box__placeholder":!0,ref:r,...e})})),la=(0,E.forwardRef)((function({children:e,multiple:r,placeholder:n,onChange:t,...o},i){const[s,a]=(0,E.useState)(!o.value&&!o.defaultValue),c=(0,E.useCallback)((e=>{a(!e.currentTarget.value),t?.call(e.currentTarget,e)}),[t]);return r?(0,C.jsx)(Fr,{children:e,...o,multiple:!0,type:"select",onChange:c}):(0,C.jsxs)(Fr,{placeholderVisible:s?!!n:void 0,ref:i,...o,addon:(0,C.jsx)(ar,{name:"chevron-down",size:"x20"}),type:"select",onChange:c,children:[n&&(0,C.jsx)(ca,{value:"",children:n}),e]})})),da=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(rr,{is:"option","rcx-input-box__option":!0,ref:r,...e})}));const ua=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(zn,{ref:r,...e})})),xa=(0,E.forwardRef)((function(e,r){return(0,C.jsx)($n,{small:!0,ref:r,...e})})),fa=e=>(0,C.jsx)("div",{className:"rc-box rcx-box--full rcx-sidebar-item__container",...e}),ma=e=>(0,C.jsx)("div",{className:"rc-box rcx-box--full rcx-box--animated rcx-sidebar-item__menu-wrapper",...e}),ba=({className:e="",...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__container rcx-sidebar-item__content ${e}`,...r}),ha=({className:e="",...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__title ${e}`,...r}),pa=({className:e,...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__time ${e}`,...r}),ga=({className:e,...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__badge ${e}`,...r}),va=({className:e,...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__subtitle ${e}`,...r}),ja=({className:e="",...r})=>(0,C.jsx)("div",{className:`rc-box rcx-box--full rcx-sidebar-item__wrapper ${e}`,...r}),wa=({highlighted:e,children:r,icon:n,className:t,...o})=>(0,C.jsx)("div",{className:["rc-box rcx-box--full rcx-sidebar-item__icon",e&&"rcx-sidebar-item__icon--highlighted"].filter(Boolean).join(" "),...o,children:r||(0,C.jsx)(ar,{size:"x16",name:n,...o})}),_a=({...e})=>(0,C.jsx)(fa,{children:(0,C.jsx)("div",{className:"rc-box rcx-box--full rcx-sidebar-item__avatar",...e})}),ka=ua,ya=e=>(0,C.jsx)(xa,{...e});var Sa=Object.assign((({selected:e,highlighted:r,clickable:n,featured:t,is:o="div",children:i,...s})=>(0,C.jsx)(o,{className:["rc-box rcx-box--full rcx-sidebar-item",r&&"rcx-sidebar-item--highlighted",(n||"a"===o)&&"rcx-sidebar-item--clickable",e&&"rcx-sidebar-item--selected",t&&"rcx-sidebar-item--featured"].filter(Boolean).join(" "),...s,children:(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-item__wrapper",children:i})})),{Menu:ma,Container:fa,Content:ba,Title:ha,Subtitle:va,Time:pa,Wrapper:ja,Icon:wa,Avatar:_a,Actions:ka,Action:ya,Badge:ga});const Na=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-title",...e});var Ca=Object.assign((e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-section",...e})),{Title:Na});const Ia=({text:e,description:r,onClick:n,variant:t="default",addon:o,onClose:i,children:s})=>(0,C.jsxs)("div",{className:`rcx-box rcx-box--full rcx-sidebar-banner rcx-sidebar-banner--${t}`,children:[(0,C.jsxs)("div",{children:[e&&(0,C.jsx)("div",{className:"rcx-sidebar-banner--text",children:e}),r&&(0,C.jsx)("div",{role:n?"link":void 0,tabIndex:0,className:["rcx-sidebar-banner--description",n&&"rcx-sidebar-banner--description--clickable"].filter(Boolean).join(" "),onClick:n,onKeyDown:e=>"Enter"===e.key&&n?.(),children:r}),s]}),(0,C.jsxs)("div",{className:"rcx-sidebar-banner__actions",children:[o,i&&(0,C.jsx)($n,{onClick:i,tiny:!0,icon:"cross"})]})]}),Ba=()=>(0,C.jsx)(Jr,{"rcx-sidebar--divider":!0,mbs:-2,mbe:0}),Ra=({className:e,...r})=>(0,C.jsx)("div",{className:["rc-box rc-box--full rcx-sidebar-topbar",e].filter(Boolean).join(" "),...r}),$a=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(xa,{ref:r,...e})})),Ea=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(ua,{ref:r,...e})})),Ma=({children:e})=>(0,C.jsx)("div",{className:"rc-box rc-box--full rcx-sidebar-topbar__wrapper",children:e}),Ta=({className:e,children:r,...n})=>(0,C.jsxs)(Ra,{className:["rcx-sidebar-topbar--section",e].filter(Boolean).join(" "),...n,children:[(0,C.jsx)(Ma,{children:r}),(0,C.jsx)(Ba,{})]}),Pa=e=>(0,C.jsx)(rr,{className:"rcx-sidebar-topbar__title",withTruncatedText:!0,...e}),Da=({children:e,className:r,...n})=>(0,C.jsxs)(Ra,{className:["rcx-sidebar-topbar--toolbox",r].filter(Boolean).join(" "),...n,children:[(0,C.jsx)(Ma,{children:e}),(0,C.jsx)(Ba,{})]}),za=({className:e,...r})=>(0,C.jsx)("div",{className:["rc-box rc-box--full rcx-sidebar-topbar-v2 rcx-sidebar-topbar-v2",e].filter(Boolean).join(" "),...r}),Va={size:"x24"};var Fa=Object.assign(Ra,{Section:Ta,ToolBox:Da,Wrapper:Ma,Avatar:Va,Actions:Ea,Action:$a,Divider:Ba,Title:Pa});const Oa=({elevated:e,...r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-footer",e&&"rcx-sidebar-footer--elevated"].filter(Boolean).join(" "),...r}),La=({...e})=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-footer__highlights",...e});var Aa=Object.assign((e=>(0,C.jsx)(rr,{"rcx-sidebar":!0,...e})),{TopBar:Fa,Item:Sa,Section:Ca,Divider:Ba,Banner:Ia});const qa=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidepanel",e].filter(Boolean).join(" "),...r}),Ha=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidepanel-section",e].filter(Boolean).join(" "),...r}),Wa=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidepanel-section__action",e].filter(Boolean).join(" "),...r}),Ga=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidepanel-header__title",e].filter(Boolean).join(" "),...r}),Ua=()=>(0,C.jsx)(Jr,{"rcx-sidepanel--divider":!0,mbs:-2,mbe:0}),Ka=({className:e,...r})=>(0,C.jsxs)("div",{className:"rcx-sidepanel-header-wrapper",children:[(0,C.jsx)("div",{className:["rcx-sidepanel-header",e].filter(Boolean).join(" "),...r}),(0,C.jsx)(Ua,{})]}),Za=(0,E.forwardRef)((function({className:e,...r},n){return(0,C.jsx)("div",{role:"list",ref:n,className:["rcx-sidepanel-list",e].filter(Boolean).join(" "),...r})})),Ya=(0,E.forwardRef)((function({className:e,...r},n){return(0,C.jsx)("div",{role:"listitem",ref:n,className:["rcx-sidepanel-list__item",e].filter(Boolean).join(" "),...r})})),Xa=(0,E.forwardRef)((({collapsed:e,className:r,...n},t)=>(0,C.jsx)("nav",{ref:t,className:["rcx-box rcx-box--full rcx-sidebar-v2","rcx-box--animated",e&&"rcx-sidebar-v2--collapsed",r].filter(Boolean).join(" "),...n}))),Qa=({className:e,children:r,...n})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-accordion rcx-box--animated",e].filter(Boolean).join(" "),...n,children:(0,C.jsx)("div",{className:"rcx-sidebar-v2-accordion__wrapper",children:r})}),Ja=({expanded:e,defaultExpanded:r,disabled:n,noncollapsible:t,tabIndex:o=0})=>{const[i,s]=(0,or.useToggle)(r),a=(e=>void 0!==e)(e)?e:i,c=t||a,l=(0,E.useId)(),d=(0,E.useId)();return{barProps:t?{"aria-disabled":"true","aria-expanded":"true","aria-labelledby":l}:{"aria-controls":d,"aria-expanded":a?"true":"false",tabIndex:n?void 0:o,onClick:e=>{n||(e.currentTarget?.blur(),s())},onKeyDown:e=>{if(!n&&e.currentTarget===e.target&&["Enter","Space"].includes(e.code)){if(e.preventDefault(),e.repeat)return;s()}}},titleId:l,panelId:d,panelExpanded:c,expanded:a}},ec=({children:e,title:r,badge:n,noncollapsible:t,disabled:o,expanded:i,defaultExpanded:s,tabIndex:a,...c})=>{const{barProps:l,expanded:d,panelExpanded:u,panelId:x,titleId:f}=Ja({expanded:i,defaultExpanded:s,tabIndex:a,disabled:o,noncollapsible:t});return(0,C.jsxs)("section",{className:"rcx-box rcx-box--full rcx-sidebar-v2-accordion-item",...c,children:[(0,C.jsxs)("div",{role:"button",className:["rcx-box rcx-box--full rcx-sidebar-v2-accordion-item__bar rcx-box--animated",o&&"rcx-sidebar-v2-accordion-item__bar--disabled"].filter(Boolean).join(" "),...l,children:[!t&&(0,C.jsx)(cr,{className:"rcx-sidebar-v2-accordion-item__chevron",size:"x16",right:!d}),r&&(0,C.jsx)("h5",{className:"rcx-sidebar-v2-accordion-item__title",id:f,children:r}),!d&&n&&n]}),(0,C.jsx)("div",{className:["rcx-sidebar-v2-accordion-item__panel","rcx-box--animated",u&&"rcx-sidebar-v2-accordion-item__panel--expanded"].filter(Boolean).join(" "),id:x,children:e})]})},rc=(0,E.forwardRef)((function(e,r){return(0,C.jsx)($n,{small:!0,ref:r,...e})})),nc=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(zn,{ref:r,...e})})),tc=({selected:e,icon:r,badge:n,menu:t,...o})=>(0,C.jsxs)("a",{role:"link",tabIndex:0,className:["rcx-box rcx-box--full","rcx-sidebar-v2-link","rcx-sidebar-v2-item",e&&"rcx-sidebar-v2-item--selected"].filter(Boolean).join(" "),onClick:e=>e.stopPropagation(),onKeyDown:e=>"Enter"===e.code&&e.stopPropagation(),...o,children:[r&&(0,C.jsx)(ar,{name:r,size:"x20",className:"rcx-sidebar-v2-item__icon"}),(0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__title",children:o.children}),n,t&&Rr((0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__menu-wrapper",children:t}),(e=>({className:T(e.className,"rcx-box rcx-box--full rcx-sidebar-v2-item__menu rcx-box--animated")})))]}),oc=({selected:e,level:r=1,className:n,children:t,is:o="a",...i})=>(0,C.jsx)(o,{className:["rcx-box rcx-box--full rcx-sidebar-v2-item",e&&"rcx-sidebar-v2-item--selected",r&&`rcx-sidebar-v2-item--level-${r}`,n].filter(Boolean).join(" "),...i,children:t}),ic=({children:e,className:r,icon:n="plus-small",...t})=>(0,C.jsxs)("div",{role:"button",tabIndex:0,className:["rcx-box rcx-box--full rcx-sidebar-v2-item rcx-sidebar-v2-item__action",r].filter(Boolean).join(" "),...t,children:[(0,C.jsx)(ar,{name:n,size:"x20"}),e]}),sc=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__avatar",e].filter(Boolean).join(" "),...r}),ac=({className:e,...r})=>(0,C.jsx)(Nn,{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__badge",e].filter(Boolean).join(" "),...r}),cc=({icon:e,className:r,highlighted:n,...t})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__icon",n&&"rcx-sidebar-v2-item__icon--highlighted",r].filter(Boolean).join(" "),children:(0,E.isValidElement)(e)?e:(0,C.jsx)(ar,{name:e,size:"x20",...t})}),lc=({children:e,...r})=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__menu-wrapper rcx-box--animated",...r,children:Rr((0,C.jsx)("span",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__menu",children:e}),(e=>({className:T(e.className,"rcx-sidebar-v2-item__menu")})))}),dc=({className:e,unread:r,...n})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__title",r&&"rcx-sidebar-v2-item__title--highlighted",e].filter(Boolean).join(" "),...n}),uc=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__row",e].filter(Boolean).join(" "),...r}),xc=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__col",e].filter(Boolean).join(" "),...r}),fc=({className:e,unread:r,...n})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__timestamp",r&&"rcx-sidebar-v2-item__timestamp--highlighted",e].filter(Boolean).join(" "),...n}),mc=(0,E.forwardRef)((({className:e,children:r,...n},t)=>(0,C.jsx)("div",{ref:t,role:"listitem",className:["rcx-box rcx-box--full rcx-sidebar-item__list-item",e].filter(Boolean).join(" "),...n,children:r}))),bc=({className:e,unread:r,...n})=>(0,C.jsx)("div",{className:["rcx-box rcx-box--full rcx-sidebar-v2-item__subtitle",r&&"rcx-sidebar-v2-item__subtitle--highlighted",e].filter(Boolean).join(" "),...n}),hc=e=>(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-item__status-bullet",children:(0,C.jsx)(Ds,{...e})}),pc=({title:e,titleId:r,badge:n,barProps:t,expanded:o,...i})=>(0,C.jsxs)("div",{className:["rcx-box rcx-box--full","rcx-sidebar-v2-collapse-group__bar rcx-box--animated"].filter(Boolean).join(" "),...t,...i,children:[void 0!==o&&(0,C.jsx)(cr,{size:"x20",right:!o}),e&&(0,C.jsx)("h4",{className:"rcx-box rcx-box--full rcx-sidebar-v2-collapse-group__title",id:r,children:e}),!o&&n&&n]}),gc=(0,E.forwardRef)((({expanded:e,defaultExpanded:r,tabIndex:n,children:t,badge:o,title:i,...s},a)=>{const{barProps:c,expanded:l,panelExpanded:d,panelId:u,titleId:x}=Ja({expanded:e,defaultExpanded:r,tabIndex:n});return(0,C.jsxs)("section",{className:"rcx-box rcx-box--full rcx-sidebar-v2-collapse-group",...s,children:[(0,C.jsx)(pc,{expanded:l,title:i,titleId:x,badge:o,barProps:c,role:"button"}),(0,C.jsx)("div",{role:"list",ref:a,className:["rcx-box rcx-box--full rcx-sidebar-v2-collapse-group__panel rcx-box--animated",d&&"rcx-sidebar-v2-collapse-group__panel--expanded"].filter(Boolean).join(" "),id:u,children:t})]})})),vc=({title:e,linkText:r,linkProps:n,variant:t="default",addon:o,onClose:i,children:s,...a})=>(0,C.jsxs)("div",{className:`rcx-box rcx-box--full rcx-sidebar-v2-banner rcx-sidebar-v2-banner--${t}`,...a,children:[(0,C.jsxs)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-banner__content",children:[e&&(0,C.jsx)("h5",{className:"rcx-box rcx-box--full rcx-sidebar-v2-banner__title",children:e}),r&&(0,C.jsx)("a",{className:"rcx-box rcx-box--full rcx-sidebar-v2-banner__link",...n,children:r}),s]}),(0,C.jsxs)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-banner__addon",children:[o,i&&(0,C.jsx)($n,{onClick:i,tiny:!0,icon:"cross"})]})]}),jc=({children:e,...r})=>(0,C.jsx)("footer",{className:"rcx-sidebar-v2-footer",...r,children:e}),wc=({children:e,...r})=>(0,C.jsx)(rr,{className:"rcx-sidebar-v2-footer__content",...r,children:e}),_c=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidebar-v2-media",e].filter(Boolean).join(" "),...r}),kc=({align:e="end",small:r=!0,...n})=>(0,C.jsx)(zn,{align:e,small:r,...n}),yc=({className:e,label:r,children:n,...t})=>(0,C.jsxs)("div",{className:["rcx-sidebar-v2-media__controller",e].filter(Boolean).join(" "),children:[(0,C.jsx)("div",{className:"rcx-sidebar-v2-media__controller__label",children:r}),(0,C.jsx)(kc,{small:!0,align:"end",...t,children:n})]}),Sc=({className:e,...r})=>(0,C.jsx)("div",{className:["rcx-sidebar-v2-media__title",e].filter(Boolean).join(" "),...r}),Nc=()=>(0,C.jsx)(Jr,{"rcx-sidebar-v2--divider":!0,mbs:-2,mbe:0}),Cc=e=>(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{className:"rcx-box rcx-box--full rcx-sidebar-v2-section",...e}),(0,C.jsx)(Nc,{})]});var Ic=({children:e,...r})=>(0,C.jsx)("div",{...r,className:"rcx-states",children:e}),Bc=({primary:e=!0,...r})=>(0,C.jsx)(In,{...r,primary:e}),Rc=e=>(0,C.jsx)(zn,{...e}),$c=({variation:e,...r})=>(0,C.jsx)(ar,{...r,"rcx-states__icon":!0,className:e&&`rcx-states__icon--${e}`,size:"x32"}),Ec=e=>(0,C.jsx)(rr,{is:"a","rcx-states__link":!0,...e}),Mc=({children:e,...r})=>(0,C.jsx)("div",{...r,className:"rcx-states__subtitle",children:e}),Tc=({children:e,...r})=>(0,C.jsx)("div",{...r,className:"rcx-states__suggestion",children:e}),Pc=({children:e,...r})=>(0,C.jsx)("ul",{...r,className:"rcx-states__list",children:e}),Dc=({children:e,...r})=>(0,C.jsx)("li",{...r,className:"rcx-states__list-item",children:(0,C.jsx)("span",{className:"rcx-states__list-item-wrapper",children:e})}),zc=({children:e,...r})=>(0,C.jsx)("div",{...r,className:"rcx-states__suggestion-text",children:e}),Vc=({children:e,...r})=>(0,C.jsx)("h3",{...r,className:"rcx-states__title",children:e});const Fc=({striped:e,sticky:r,fixed:n=!1,...t})=>(0,C.jsx)(rr,{"rcx-table__wrapper":!0,children:(0,C.jsx)(rr,{is:"table","rcx-table":!0,"rcx-table--fixed":n,"rcx-table--sticky":r,"rcx-table--striped":e,...t})}),Oc=e=>(0,C.jsx)(rr,{is:"tbody","rcx-table__body":!0,...e}),Lc=(0,E.createContext)(!1),Ac=e=>(0,C.jsx)(Lc.Provider,{value:!0,children:(0,C.jsx)(rr,{is:"thead","rcx-table__head":!0,...e})}),qc=({align:e,clickable:r,children:n,...t})=>{const o=(0,E.useContext)(Lc),i=n??(o?void 0:(0,C.jsx)(rr,{display:"inline-block",is:"hr",width:"x14",borderWidth:1}));return(0,C.jsx)(rr,{is:o?"th":"td","rcx-table__cell":!0,"rcx-table__cell--align":e,"rcx-table__cell--header":o,"rcx-table__cell--clickable":r,children:i,...t})},Hc=e=>(0,C.jsx)(rr,{is:"tfoot","rcx-table__foot":!0,...e}),Wc=({action:e,selected:r,...n})=>(0,C.jsx)(rr,{is:"tr","rcx-table__row":!0,"rcx-table__row--selected":r,"rcx-table__row--action":e,...n}),Gc=({children:e,text:r,...n})=>(0,C.jsxs)(rr,{"rcx-table__selection":!0,display:"flex",alignItems:"center",justifyContent:"space-between",pi:24,elevation:"2",...n,children:[(0,C.jsx)(rr,{fontScale:"p2b",mb:16,flexShrink:1,withTruncatedText:!0,children:r}),e&&(0,C.jsx)(rr,{mi:"neg-x8",fontScale:"p2m",flexShrink:0,children:(0,C.jsx)($r,{inline:"x4",children:e})})]}),Uc=e=>(0,C.jsx)(Cn,{small:!0,flexShrink:0,...e}),Kc=e=>(0,C.jsx)(zn,{...e}),Zc=(0,E.forwardRef)((function({selected:e,disabled:r,...n},t){return(0,C.jsx)(rr,{is:"button","rcx-tabs__item":!0,"rcx-tabs__item--selected":e,"rcx-tabs__item--disabled":r,"rcx-tabs__item--selected--disabled":e&&r,"aria-selected":e?"true":"false",ref:t,role:"tab",...n})}));function Yc({children:e,divider:r=!0,...n}){return(0,C.jsx)(rr,{is:"div","rcx-tabs":!0,"rcx-tabs--with-divider":r,...n,children:(0,C.jsx)(rr,{is:"div","rcx-tabs__scroll-box":!0,children:(0,C.jsx)(rr,{is:"div","rcx-tabs__wrapper":!0,children:e,role:"tablist"})})})}Yc.Item=Zc;const Xc=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"tel",ref:r,...e})})),Qc=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"textarea",ref:r,...e})})),Jc=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"text",ref:r,...e})}));function el({disabled:e,circleCount:r,iteration:n,inheritColor:t,...o}){return(0,C.jsx)(rr,{is:"span",className:M.css`
|
|
200
200
|
animation-duration: ${.466*r}s;
|
|
201
201
|
animation-delay: ${.16*n}s;
|
|
202
|
-
`,"rcx-throbber__circle":!0,"rcx-throbber__circle--disabled":e,"rcx-throbber__circle--inherit-color":t,...o})}const
|
|
202
|
+
`,"rcx-throbber__circle":!0,"rcx-throbber__circle--disabled":e,"rcx-throbber__circle--inherit-color":t,...o})}const rl=(0,E.forwardRef)((function({disabled:e,size:r="x16",circleCount:n=3,inheritColor:t,...o},i){return(0,C.jsx)(rr,{"rcx-throbber":!0,ref:i,...o,children:Array.from({length:n||3},((o,i)=>(0,C.jsx)(el,{circleCount:n,iteration:i,disabled:!!e,size:r,inheritColor:!!t},i)))})}));function nl({children:e,className:r="",variant:n="info",time:t=5,isPaused:o,id:i,onClose:s,buttonLabel:a="Dismiss alert",...c}){const l=("success"===n?"circle-check":"error"===n&&"ban")||"info",d=M.keyframes`
|
|
203
203
|
from {
|
|
204
204
|
opacity: 0;
|
|
205
205
|
}
|
|
@@ -223,4 +223,4 @@
|
|
|
223
223
|
animation-fill-mode: forwards;
|
|
224
224
|
animation-play-state: ${o?"paused":"running"};
|
|
225
225
|
}
|
|
226
|
-
`,m=(0,E.useId)(),b=i||m;return(0,C.jsxs)(rr,{className:[`rcx-toastbar rcx-toastbar--${n} ${r}`,x],elevation:"2nb",borderRadius:"x4",...c,children:[(0,C.jsxs)("div",{className:"rcx-toastbar_inner",children:[(0,C.jsx)(ar,{className:`rcx-toastbar_icon--${n}`,size:"x20",name:l}),(0,C.jsx)("div",{role:"alert",className:"rcx-toastbar_content",children:e}),s&&(0,C.jsx)("div",{className:"rcx-toastbar-close",children:(0,C.jsx)($n,{tiny:!0,"aria-label":a,onClick:()=>s(b),icon:"cross"})})]}),(0,C.jsx)(rr,{className:[f,"rcx-toastbar_progressbar"]})]})}const
|
|
226
|
+
`,m=(0,E.useId)(),b=i||m;return(0,C.jsxs)(rr,{className:[`rcx-toastbar rcx-toastbar--${n} ${r}`,x],elevation:"2nb",borderRadius:"x4",...c,children:[(0,C.jsxs)("div",{className:"rcx-toastbar_inner",children:[(0,C.jsx)(ar,{className:`rcx-toastbar_icon--${n}`,size:"x20",name:l}),(0,C.jsx)("div",{role:"alert",className:"rcx-toastbar_content",children:e}),s&&(0,C.jsx)("div",{className:"rcx-toastbar-close",children:(0,C.jsx)($n,{tiny:!0,"aria-label":a,onClick:()=>s(b),icon:"cross"})})]}),(0,C.jsx)(rr,{className:[f,"rcx-toastbar_progressbar"]})]})}const tl=(0,E.forwardRef)((function({className:e,labelChildren:r,...n},t){return(0,C.jsxs)(rr,{is:"label",className:e,"rcx-toggle-switch":!0,children:[r,(0,C.jsx)(rr,{is:"input",ref:t,"rcx-toggle-switch__input":!0,type:"checkbox",...n}),(0,C.jsx)(rr,{is:"i","rcx-toggle-switch__fake":!0,"aria-hidden":"true"})]})}));var ol=(0,E.forwardRef)((function({variation:e="dark",placement:r,...n},t){const[o,i]=(e=>{const[r,n]=e?e.split("-"):[!1,!1];return"right"===r||"left"===r?[r,!1]:[r,n]})(r);return(0,C.jsx)(rr,{is:"div",ref:t,"rcx-tooltip":!0,"rcx-tooltip--dir":o,"rcx-tooltip--pos":i,"rcx-tooltip--light":"light"===e,"rcx-tooltip--dark":"dark"===e,...n})})),il=(0,E.forwardRef)((function(e,r){return(0,C.jsx)(Fr,{type:"url",ref:r,...e})}));return N}()}));
|