@qasa/qds-ui 0.29.1 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -7,7 +7,15 @@ import { Checkbox as Checkbox$1, DropdownMenu as DropdownMenu$1, RadioGroup as R
7
7
  import * as _emotion_styled from '@emotion/styled';
8
8
  import { LucideIcon } from 'lucide-react';
9
9
 
10
+ /**
11
+ * @deprecated The `theme` object is deprecated and will be removed in a future version.
12
+ * Use Tailwind CSS instead.
13
+ */
10
14
  declare const theme: {
15
+ /**
16
+ * @deprecated Using QDS with `@emotion` is deprecated and will be removed in a future version.
17
+ * Use Tailwind CSS instead.
18
+ */
11
19
  mediaQueries: {
12
20
  readonly smUp: "@media(min-width: 480px)";
13
21
  readonly mdUp: "@media(min-width: 768px)";
@@ -422,6 +430,9 @@ declare const theme: {
422
430
  };
423
431
  };
424
432
  };
433
+ /**
434
+ * @deprecated The `Theme` type is deprecated and will be removed in a future version.
435
+ */
425
436
  type Theme = typeof theme;
426
437
 
427
438
  type LegitimateAny = any;
@@ -893,6 +904,11 @@ interface AvatarOptions {
893
904
  * @default 'md'
894
905
  */
895
906
  size?: ResponsiveProp<AvatarSize>;
907
+ /**
908
+ * A custom alt text for the image. If not passed it
909
+ * defaults to the `name` prop.
910
+ */
911
+ imageAlt?: string;
896
912
  }
897
913
  interface AvatarProps extends HTMLQdsProps<'span'>, AvatarOptions {
898
914
  }
@@ -938,7 +954,7 @@ interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends For
938
954
  */
939
955
  type PropsOf<E> = E extends react.ComponentType<infer P> ? P : never;
940
956
 
941
- type IconSize = 16 | 20 | 24 | 32;
957
+ type IconSize = 12 | 16 | 20 | 24 | 32;
942
958
  type IconColor = keyof Theme['colors']['icon'] | 'currentColor';
943
959
  interface IconOptions {
944
960
  /**
@@ -1279,7 +1295,13 @@ interface DisplayTextOptions {
1279
1295
  textWrap?: DisplayTextWrap;
1280
1296
  }
1281
1297
  type DisplayTextComponent = ForwardRefComponent<'h2', DisplayTextOptions>;
1298
+ /**
1299
+ * @deprecated
1300
+ */
1282
1301
  type DisplayTextProps = PropsOf<DisplayTextComponent>;
1302
+ /**
1303
+ * @deprecated Use Tailwind CSS instead.
1304
+ */
1283
1305
  declare const DisplayText: DisplayTextComponent;
1284
1306
 
1285
1307
  interface CheckboxOptions {
@@ -1512,7 +1534,13 @@ interface HeadingOptions {
1512
1534
  textAlign?: 'left' | 'center' | 'right';
1513
1535
  }
1514
1536
  type HeadingComponent = ForwardRefComponent<'h2', HeadingOptions>;
1537
+ /**
1538
+ * @deprecated
1539
+ */
1515
1540
  type HeadingProps = PropsOf<HeadingComponent>;
1541
+ /**
1542
+ * @deprecated Use Tailwind CSS instead.
1543
+ */
1516
1544
  declare const Heading: HeadingComponent;
1517
1545
 
1518
1546
  type HintBoxTitleProps = HTMLQdsProps<'span'>;
@@ -1808,7 +1836,13 @@ interface ParagraphOptions {
1808
1836
  textAlign?: 'left' | 'center' | 'right';
1809
1837
  }
1810
1838
  type ParagraphComponent = ForwardRefComponent<'p', ParagraphOptions>;
1839
+ /**
1840
+ * @deprecated
1841
+ */
1811
1842
  type ParagraphProps = PropsOf<ParagraphComponent>;
1843
+ /**
1844
+ * @deprecated Use Tailwind CSS instead.
1845
+ */
1812
1846
  declare const Paragraph: ParagraphComponent;
1813
1847
 
1814
1848
  interface SelectBaseOptions {
@@ -2002,8 +2036,14 @@ interface SpacerOptions {
2002
2036
  axis?: 'x' | 'y';
2003
2037
  size: ResponsiveProp<Spacing>;
2004
2038
  }
2039
+ /**
2040
+ * @deprecated
2041
+ */
2005
2042
  interface SpacerProps extends HTMLQdsProps<'span'>, SpacerOptions {
2006
2043
  }
2044
+ /**
2045
+ * @deprecated Use Tailwind CSS instead.
2046
+ */
2007
2047
  declare const Spacer: react.ForwardRefExoticComponent<SpacerProps & react.RefAttributes<HTMLSpanElement>>;
2008
2048
 
2009
2049
  type AlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
@@ -2047,7 +2087,13 @@ interface StackOptions {
2047
2087
  divider?: ReactNode;
2048
2088
  }
2049
2089
  type StackComponent = ForwardRefComponent<'div', StackOptions>;
2090
+ /**
2091
+ * @deprecated
2092
+ */
2050
2093
  type StackProps = PropsOf<StackComponent>;
2094
+ /**
2095
+ * @deprecated Use Tailwind CSS instead.
2096
+ */
2051
2097
  declare const Stack: StackComponent;
2052
2098
 
2053
2099
  interface SwitchOptions {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import{ThemeProvider as Cr,CacheProvider as Sr}from"@emotion/react";import yr from"@emotion/cache";var _e={base:0,sm:480,md:768,lg:1024,xl:1280,"2xl":1536};var Ra={black:"var(--color-black)",white:"var(--color-white)",gray90:"var(--color-gray-90)",gray80:"var(--color-gray-80)",gray70:"var(--color-gray-70)",gray60:"var(--color-gray-60)",gray50:"var(--color-gray-50)",gray40:"var(--color-gray-40)",gray30:"var(--color-gray-30)",gray20:"var(--color-gray-20)",gray10:"var(--color-gray-10)",pink:"var(--color-pink)",uiPink:"var(--color-uiPink)",uiPinkDark:"var(--color-uiPink-dark)",uiPinkLight:"var(--color-uiPink-light)",brown:"var(--color-brown)",brownDark:"var(--color-brown-dark)",brownLight:"var(--color-brown-light)",offWhite:"var(--color-offWhite)",offWhiteDark:"var(--color-offWhite-dark)",offWhiteLight:"var(--color-offWhite-light)",softPink:"var(--color-softPink)",warmYellow:"var(--color-warmYellow)",softYellow:"var(--color-softYellow)",red90:"var(--color-red-90)",red80:"var(--color-red-80)",red70:"var(--color-red-70)",red60:"var(--color-red-60)",red50:"var(--color-red-50)",red40:"var(--color-red-40)",red30:"var(--color-red-30)",red20:"var(--color-red-20)",red10:"var(--color-red-10)",green90:"var(--color-green-90)",green80:"var(--color-green-80)",green70:"var(--color-green-70)",green60:"var(--color-green-60)",green50:"var(--color-green-50)",green40:"var(--color-green-40)",green30:"var(--color-green-30)",green20:"var(--color-green-20)",green10:"var(--color-green-10)",blue90:"var(--color-blue-90)",blue80:"var(--color-blue-80)",blue70:"var(--color-blue-70)",blue60:"var(--color-blue-60)",blue50:"var(--color-blue-50)",blue40:"var(--color-blue-40)",blue30:"var(--color-blue-30)",blue20:"var(--color-blue-20)",blue10:"var(--color-blue-10)",yellow90:"var(--color-yellow-90)",yellow80:"var(--color-yellow-80)",yellow70:"var(--color-yellow-70)",yellow60:"var(--color-yellow-60)",yellow50:"var(--color-yellow-50)",yellow40:"var(--color-yellow-40)",yellow30:"var(--color-yellow-30)",yellow20:"var(--color-yellow-20)",yellow10:"var(--color-yellow-10)",blackAlpha5:"rgba(0, 0, 0, 0.05)",blackAlpha10:"rgba(0, 0, 0, 0.1)",blackAlpha20:"rgba(0, 0, 0, 0.2)"},Ma={core:Ra,bg:{default:"var(--background-color-default)",brandPrimary:"var(--background-color-brandPrimary)",brandPrimaryHover:"var(--background-color-brandPrimary-hover)",brandPrimaryActive:"var(--background-color-brandPrimary-active)",brandSecondary:"var(--background-color-brandSecondary)",brandSecondaryHover:"var(--background-color-brandSecondary-hover)",brandSecondaryActive:"var(--background-color-brandSecondary-active)",brandTertiary:"var(--background-color-brandTertiary)",brandTertiaryHover:"var(--background-color-brandTertiary-hover)",brandTertiaryActive:"var(--background-color-brandTertiary-active)",negative:"var(--background-color-negative)",warning:"var(--background-color-warning)",positive:"var(--background-color-positive)",inset:"var(--background-color-inset)",backdrop:Ra.blackAlpha20},text:{strong:"var(--text-color-strong)",default:"var(--text-color-default)",subtle:"var(--text-color-subtle)",disabled:"var(--text-color-disabled)",negative:"var(--text-color-negative)",warning:"var(--text-color-warning)",positive:"var(--text-color-positive)",onBrandPrimary:"var(--text-color-onBrandPrimary)",onBrandSecondary:"var(--text-color-onBrandSecondary)",onBrandTertiary:"var(--text-color-onBrandTertiary)"},icon:{default:"var(--stroke-default)",strong:"var(--stroke-strong)",subtle:"var(--stroke-subtle)",disabled:"var(--stroke-disabled)",negative:"var(--stroke-negative)",warning:"var(--stroke-warning)",positive:"var(--stroke-positive)",onBrandPrimary:"var(--stroke-onBrandPrimary)",onBrandSecondary:"var(--stroke-onBrandSecondary)",onBrandTertiary:"var(--stroke-onBrandTertiary)"},border:{default:"var(--border-color-default)",defaultHover:"var(--border-color-default-hover)",defaultSelected:"var(--border-color-default-selected)",strong:"var(--border-color-strong)",subtle:"var(--border-color-subtle)",negative:"var(--border-color-negative)",warning:"var(--border-color-warning)",positive:"var(--border-color-positive)"}};function w(e){return a=>e(a)}function Ba(e){return a=>e(a)}var r=e=>`${e/16}rem`;var Y=Ba(({colors:e,radii:a,typography:t,spacing:o})=>({width:"100%",minWidth:0,appearance:"none",paddingLeft:o["4x"],paddingRight:o["4x"],border:`1px solid ${e.border.default}`,borderRadius:a.sm,backgroundColor:e.bg.default,color:e.text.default,WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent","&::-webkit-date-and-time-value":{textAlign:"left"},alignItems:"center",...t.body.md,"&::placeholder":{color:e.text.disabled},"&:hover":{borderColor:e.border.defaultHover},"&:focus":{outline:0,borderColor:e.border.defaultSelected,boxShadow:`0 0 0 1px ${e.border.defaultSelected}`},'&[aria-invalid="true"]':{borderColor:e.border.negative,"&:focus":{boxShadow:`0 0 0 1px ${e.border.negative}`}},"&[disabled], &:disabled, &[data-disabled]":{opacity:.4,borderColor:e.border.default},transitionProperty:"opacity, border-color, box-shadow",transitionDuration:"120ms",transitionTimingFunction:"ease"}));var Ke={"0x":r(0),"1x":r(4),"2x":r(8),"3x":r(12),"4x":r(16),"5x":r(20),"6x":r(24),"8x":r(32),"10x":r(40),"12x":r(48),"14x":r(56),"16x":r(64),"20x":r(80),"24x":r(96)};var Da={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800};var Aa={...Ke,112:r(112),128:r(128),144:r(144),160:r(160),176:r(176),192:r(192),224:r(224),256:r(256),288:r(288),320:r(320),384:r(384),448:r(448),512:r(512),576:r(576),672:r(672),768:r(768),896:r(896),1024:r(1024)};var Fa={none:"0px","2xs":"6px",xs:"8px",sm:"12px",md:"16px",lg:"24px",xl:"32px","2xl":"48px",full:"9999px"};var Oa={none:"none",sm:"0px 0.9px 2.1px 0px rgba(0, 0, 0, 0.0197), 0px 2.1px 5px 0px rgba(0, 0, 0, 0.0283), 0px 3.9px 9.4px 0px rgba(0, 0, 0, 0.035)",md:"0px 0.9px 2.1px 0px rgba(0, 0, 0, 0.0197), 0px 2.1px 5px 0px rgba(0, 0, 0, 0.0283), 0px 3.9px 9.4px 0px rgba(0, 0, 0, 0.035), 0px 7px 16.8px 0px rgba(0, 0, 0, 0.0417)",lg:"0px 0.9px 2.1px 0px rgba(0, 0, 0, 0.0197), 0px 2.1px 5px 0px rgba(0, 0, 0, 0.0283), 0px 3.9px 9.4px 0px rgba(0, 0, 0, 0.035), 0px 7px 16.8px 0px rgba(0, 0, 0, 0.0417), 0px 13px 31.3px 0px rgba(0, 0, 0, 0.0503)",xl:"0px 0.9px 2.1px 0px rgba(0, 0, 0, 0.0197), 0px 2.1px 5px 0px rgba(0, 0, 0, 0.0283), 0px 3.9px 9.4px 0px rgba(0, 0, 0, 0.035), 0px 7px 16.8px 0px rgba(0, 0, 0, 0.0417), 0px 13px 31.3px 0px rgba(0, 0, 0, 0.0503), 0px 31px 75px 0px rgba(0, 0, 0, 0.07)"};var I={display:"var(--font-family-semi-mono),Helvetica,-apple-system,Arial, sans-serif",sans:"var(--font-family-sans),Helvetica,-apple-system,Arial,sans-serif"},qa={display:{"3xl":{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(80),lineHeight:r(80),letterSpacing:"-0.06em",fontFeatureSettings:"'ss05' on"},"2xl":{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(72),lineHeight:r(72),letterSpacing:"-0.06em",fontFeatureSettings:"'ss05' on"},xl:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(64),lineHeight:r(64),letterSpacing:"-0.05em",fontFeatureSettings:"'ss05' on"},lg:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(56),lineHeight:r(56),letterSpacing:"-0.05em",fontFeatureSettings:"'ss05' on"},md:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(48),lineHeight:r(48),letterSpacing:"-0.04em",fontFeatureSettings:"'ss05' on"},sm:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(40),lineHeight:r(44),letterSpacing:"-0.04em",fontFeatureSettings:"'ss05' on"},xs:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(32),lineHeight:r(36),letterSpacing:"-0.03em",fontFeatureSettings:"'ss05' on"},"2xs":{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(28),lineHeight:r(32),letterSpacing:"-0.03em",fontFeatureSettings:"'ss05' on"}},title:{lg:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(32),lineHeight:r(36),letterSpacing:"-0.02em"},md:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(24),lineHeight:r(28),letterSpacing:"-0.02em"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(20),lineHeight:r(24),letterSpacing:"-0.02em"},xs:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(18),lineHeight:r(22),letterSpacing:"-0.015em"},"2xs":{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(16),lineHeight:r(20),letterSpacing:"-0.01em"},"3xs":{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(14),lineHeight:r(18),letterSpacing:"-0.005em"}},body:{xl:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(20),lineHeight:r(28),letterSpacing:"-0.02em"},lg:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(18),lineHeight:r(26),letterSpacing:"-0.02em"},md:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(16),lineHeight:r(24),letterSpacing:"-0.01em"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(14),lineHeight:r(20),letterSpacing:"-0.01em"},xs:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(12),lineHeight:r(16),letterSpacing:"0"}},label:{md:{fontFamily:I.sans,fontWeight:"var(--font-weight-medium)",fontSize:r(16),lineHeight:r(20),letterSpacing:"-0.02em"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-medium)",fontSize:r(14),lineHeight:r(18),letterSpacing:"-0.01em"}},button:{md:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(16),lineHeight:r(18),letterSpacing:"-0.01em"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(14),lineHeight:r(16),letterSpacing:"-0.01em"}},caption:{md:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(12),lineHeight:r(12),letterSpacing:"0"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(10),lineHeight:r(10),letterSpacing:"0"}}};var j={spacing:Ke,breakpoints:_e,zIndices:Da,colors:Ma,sizes:Aa,radii:Fa,shadows:Oa,typography:qa};var Yt={smUp:`@media(min-width: ${j.breakpoints.sm}px)`,mdUp:`@media(min-width: ${j.breakpoints.md}px)`,lgUp:`@media(min-width: ${j.breakpoints.lg}px)`,xlUp:`@media(min-width: ${j.breakpoints.xl}px)`,"2xlUp":`@media(min-width: ${j.breakpoints["2xl"]}px)`},D={...j,mediaQueries:Yt};var la=e=>Object.keys(e);var eo=e=>{let a=Object.assign({},D.typography);return la(a).forEach(t=>{let o=e[t];if(o){let d=a[t];la(d).forEach(s=>{d[s].fontFamily=o.fontFamily||d[s].fontFamily,d[s].fontWeight=o.fontWeight||d[s].fontWeight})}}),a},Ha=e=>{let a=D.typography;return e.typography&&(a=eo(e.typography)),{...D,typography:a}};import{createContext as ao,useContext as to}from"react";import{jsx as oo}from"react/jsx-runtime";var Ua=ao(void 0);function za({language:e,children:a}){return oo(Ua.Provider,{value:{currentLanguage:e},children:a})}function Ea(){let e=to(Ua);if(!e)throw new Error("useLocale must be used within a LocaleProvider");return e}import{Toast as Ja}from"radix-ui";import{useSyncExternalStore as Lr}from"react";import xr from"@emotion/styled";import{AnimatePresence as Ir}from"motion/react";import{flushSync as ro}from"react-dom";var sa=class{toasts;subscribers;id;constructor(){this.subscribers=[],this.toasts=[],this.id=0}subscribe=a=>(this.subscribers.push(a),()=>{let t=this.subscribers.indexOf(a);this.subscribers.splice(t,1)});notify=()=>{this.subscribers.forEach(a=>a())};add=a=>{this.id=this.id+1;let t=a.id??this.id;return a.id&&(this.toasts=this.toasts.filter(o=>o.id!==t),ro(()=>{this.notify()})),this.toasts=[...this.toasts,{...a,id:t}],this.notify(),t};addNeutral=(a,t)=>this.add({text:a,variant:"neutral",...t});addError=(a,t)=>this.add({text:a,variant:"error",...t});remove=a=>{this.toasts=[...this.toasts.filter(t=>t.id!==a)],this.notify()};removeAll=()=>{this.toasts=[],this.notify()};getSnapshot=()=>this.toasts},q=new sa,lo=Object.assign(q.addNeutral,{error:q.addError,remove:q.remove,removeAll:q.removeAll});import{Toast as $a}from"radix-ui";import ia from"@emotion/styled";import{motion as fr}from"motion/react";import so from"@emotion/styled";import{Children as uo,forwardRef as fo}from"react";import{jsx as Wa}from"react/jsx-runtime";var io=so.svg(({theme:e,color:a="default"})=>({color:a==="currentColor"?"currentcolor":e.colors.icon[a],display:"inline-block",lineHeight:"1em"})),ua=e=>{let{viewBox:a,d:t,displayName:o="UnnamedIcon"}=e,d=uo.toArray(e.path),s=fo((f,u)=>{let{size:n=24,...c}=f;return Wa(io,{ref:u,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,focusable:"false",viewBox:a,fill:"currentColor",...c,children:d.length?d:Wa("path",{fill:"currentColor",d:t})})});return s.displayName=o,s};import{useTheme as no}from"@emotion/react";import{forwardRef as co}from"react";import{jsx as po}from"react/jsx-runtime";var i=e=>{let a=co(({size:t=24,color:o="default",...d},s)=>{let f=no(),u=o==="currentColor"?"currentcolor":f.colors.icon[o];return po(e,{ref:s,size:t,strokeWidth:2,absoluteStrokeWidth:t<24,color:u,...d})});return a.displayName=e.displayName,a};import{forwardRef as xo,createElement as Io}from"react";var Ga=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),fa=e=>{let a=mo(e);return a.charAt(0).toUpperCase()+a.slice(1)},Qe=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim(),Va=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};import{forwardRef as Lo,createElement as Xa}from"react";var Na={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var _a=Lo(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:f,...u},n)=>Xa("svg",{ref:n,...Na,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:Qe("lucide",d),...!s&&!Va(u)&&{"aria-hidden":"true"},...u},[...f.map(([c,x])=>Xa(c,x)),...Array.isArray(s)?s:[s]]));var l=(e,a)=>{let t=xo(({className:o,...d},s)=>Io(_a,{ref:s,iconNode:a,className:Qe(`lucide-${Ga(fa(e))}`,`lucide-${e}`,o),...d}));return t.displayName=fa(e),t};var ho=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],le=l("arrow-down",ho);var go=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],se=l("arrow-left",go);var Co=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ue=l("arrow-right",Co);var So=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],fe=l("arrow-up",So);var yo=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],ie=l("bell-off",yo);var Po=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],ne=l("bell",Po);var bo=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],ce=l("bookmark",bo);var ko=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],pe=l("calendar",ko);var wo=[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],me=l("camera",wo);var vo=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],H=l("check",vo);var To=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Le=l("chevron-down",To);var Ro=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],xe=l("chevron-left",Ro);var Mo=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ie=l("chevron-right",Mo);var Bo=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],he=l("chevron-up",Bo);var Do=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],z=l("circle-alert",Do);var Ao=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],E=l("circle-check",Ao);var Fo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],W=l("circle-help",Fo);var Oo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],G=l("circle-x",Oo);var qo=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],V=l("ellipsis-vertical",qo);var Ho=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],N=l("ellipsis",Ho);var Uo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],ge=l("globe",Uo);var zo=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Ce=l("heart",zo);var Eo=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Se=l("history",Eo);var Wo=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],X=l("house",Wo);var Go=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ye=l("image",Go);var Vo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Pe=l("info",Vo);var No=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],be=l("list-filter",No);var Xo=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],ke=l("list",Xo);var _o=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],we=l("log-out",_o);var Ko=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ve=l("map-pin",Ko);var Qo=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Te=l("map",Qo);var Zo=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],Re=l("menu",Zo);var $o=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],Me=l("message-circle",$o);var Jo=[["path",{d:"M5 12h14",key:"1ays0h"}]],Be=l("minus",Jo);var jo=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],_=l("pen",jo);var Yo=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],De=l("plus",Yo);var er=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ae=l("search",er);var ar=[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Fe=l("settings-2",ar);var tr=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Oe=l("settings",tr);var or=[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["polyline",{points:"16 6 12 2 8 6",key:"m901s6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15",key:"1p0rca"}]],qe=l("share",or);var rr=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],He=l("star",rr);var dr=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Ue=l("trash-2",dr);var lr=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],K=l("triangle-alert",lr);var sr=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],A=l("user-round",sr);var ur=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ze=l("x",ur);var Ka=i(z),Hn=i(K),Un=i(le),zn=i(se),En=i(ue),Wn=i(fe),Gn=i(ne),Vn=i(ie),Nn=i(ce),Xn=i(pe),_n=i(me),Kn=i(E),Qn=i(H),Qa=i(Le),Zn=i(xe),$n=i(Ie),Jn=i(he),jn=i(ge),Yn=ua({viewBox:"0 0 24 24",d:"M2.90381 3.90381C4.12279 2.68482 5.77609 2 7.5 2C8.48018 2 9.37318 2.14018 10.2468 2.52068C10.8597 2.78762 11.4321 3.15937 12 3.63935C12.5679 3.15937 13.1403 2.78762 13.7532 2.52068C14.6268 2.14018 15.5198 2 16.5 2C18.2239 2 19.8772 2.68482 21.0962 3.90381C22.3152 5.12279 23 6.77609 23 8.5C23 11.2418 21.1906 13.2531 19.7035 14.7107L12.7071 21.7071C12.3166 22.0976 11.6834 22.0976 11.2929 21.7071L4.29885 14.7131C2.79442 13.258 1 11.2494 1 8.5C1 6.77609 1.68482 5.12279 2.90381 3.90381Z",displayName:"HeartFilledIcon"}),ec=i(Ce),ac=i(W),tc=i(Se),oc=i(X),rc=i(ye),dc=i(Pe),lc=i(ke),sc=i(be),uc=i(we),fc=i(Te),ic=i(ve),nc=i(Re),cc=i(Me),pc=i(Be),mc=i(N),Lc=i(V),xc=i(_),Ic=i(De),hc=i(Ae),gc=i(Oe),Cc=i(qe),Sc=i(Fe),yc=ua({viewBox:"0 0 24 24",d:"M12 1C12.3806 1 12.7282 1.21607 12.8967 1.55738L15.7543 7.34647L22.1446 8.28051C22.5212 8.33555 22.8339 8.59956 22.9512 8.96157C23.0686 9.32358 22.9703 9.72083 22.6977 9.98636L18.0745 14.4894L19.1656 20.851C19.23 21.2261 19.0757 21.6053 18.7677 21.8291C18.4598 22.0528 18.0515 22.0823 17.7145 21.9051L12 18.8998L6.28545 21.9051C5.94853 22.0823 5.54024 22.0528 5.23226 21.8291C4.92429 21.6053 4.77004 21.2261 4.83439 20.851L5.92548 14.4894L1.30227 9.98636C1.02965 9.72083 0.931375 9.32358 1.04875 8.96157C1.16613 8.59956 1.47881 8.33555 1.85537 8.28051L8.24574 7.34647L11.1033 1.55738C11.2718 1.21607 11.6194 1 12 1Z",displayName:"StarFilledIcon"}),Pc=i(He),bc=i(Ue),kc=i(A),wc=i(G),vc=i(ze);var Za=w(({colors:e})=>({neutral:{background:e.core.black,color:e.core.white},error:{background:e.bg.negative,color:e.core.white}}));import{jsx as Ze,jsxs as mr}from"react/jsx-runtime";var ir=ia(fr.div)(({theme:e,variant:a})=>({borderRadius:e.radii.md,paddingInline:e.spacing["4x"],paddingBlock:e.spacing["3x"],display:"flex",flexDirection:"row",gap:e.spacing["3x"],boxShadow:e.shadows.lg,...Za(e)[a]})),nr=ia($a.Title)(({theme:e})=>({...e.typography.label.md})),cr=ia.div({marginTop:1,flexShrink:0}),pr={neutral:void 0,error:Ka};function na(e){let{text:a,variant:t="neutral",...o}=e,d=pr[t];return Ze($a.Root,{asChild:!0,forceMount:!0,...o,children:mr(ir,{variant:t,layout:!0,initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0},transition:{y:{type:"spring",bounce:.1}},children:[d&&Ze(cr,{children:Ze(d,{size:16,color:"onBrandSecondary"})}),Ze(nr,{children:a})]})})}import{jsx as $e,jsxs as gr}from"react/jsx-runtime";var hr=xr.div(({theme:e})=>({position:"fixed",bottom:e.spacing["12x"],left:"50%",transform:"translateX(-50%)",zIndex:e.zIndices.toast,display:"flex",flexDirection:"column",gap:e.spacing["2x"],width:`calc(100vw - ${e.spacing["8x"]})`,[e.mediaQueries.smUp]:{width:e.sizes[320]}}));function ja({children:e}){let a=Lr(q.subscribe,q.getSnapshot,q.getSnapshot);return gr(Ja.Provider,{children:[e,$e(Ir,{children:a.map(({id:t,text:o,variant:d})=>$e(na,{text:o,variant:d,onOpenChange:s=>{s||q.remove(t)}},t))}),$e(Ja.Viewport,{asChild:!0,children:$e(hr,{})})]})}import{jsx as Je}from"react/jsx-runtime";var Pr=yr({key:"qds"});function br({children:e,themeOverrides:a,emotionCache:t,locale:o}){let d=a?Ha(a):D;return Je(za,{language:o||"en",children:Je(Sr,{value:t||Pr,children:Je(Cr,{theme:d,children:Je(ja,{children:e})})})})}import Ee from"@emotion/styled";import vr from"@emotion/is-prop-valid";import{forwardRef as Tr}from"react";import{Avatar as ca}from"radix-ui";function kr(e){return e&&typeof e=="object"&&"base"in e}var wr=e=>Object.entries(e),m=(e,a)=>{if(!kr(e))return a(e);let{base:t,...o}=e,d=a(t);return wr(o).forEach(([s,f])=>{let u=D.mediaQueries[`${s}Up`];f&&(d={...d,[u]:a(f)})}),d};import{jsx as je,jsxs as Ur}from"react/jsx-runtime";var Ya={xs:32,sm:40,md:48,lg:64,xl:96,"2xl":128},Rr={xs:14,sm:16,md:20,lg:32,xl:48,"2xl":64},Mr={xs:12,sm:16,md:20,lg:28,xl:40,"2xl":56},Br=e=>{let a=e.trim().split(/\s+/),t=a[0],o=a.length>1?a[a.length-1]:"";return`${t.charAt(0)}${o.charAt(0)}`.toUpperCase()},Dr=Ee(ca.Root)(({theme:e,size:a})=>({...m(a,t=>({width:Ya[t],height:Ya[t]})),flexShrink:0,borderRadius:e.radii.full,background:e.colors.core.gray20,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",boxShadow:`0 0 0 1px ${e.colors.core.blackAlpha5}`,color:e.colors.text.subtle})),Ar=Ee(ca.Image)({width:"100%",height:"100%",objectFit:"cover"}),Fr=Ee(ca.Fallback)(({theme:e})=>({color:e.colors.text.subtle})),Or=Ee.span(({avatarSize:e})=>({fontWeight:"bold",...m(e,a=>({fontSize:Mr[a]})),paddingTop:"0.08em",display:"block",userSelect:"none"})),qr=e=>Math.round(e*100)/100,Hr=Ee(A,{shouldForwardProp:vr})(({avatarSize:e})=>({...m(e,a=>{let t=Rr[a];return{width:t,height:t,...t<24&&{strokeWidth:qr(24/t*2)}}})})),sp=Tr((e,a)=>{let{src:t,name:o,size:d="md",...s}=e;return Ur(Dr,{ref:a,size:d,...s,children:[je(Ar,{src:t,alt:o}),je(Fr,{delayMs:t?200:void 0,children:o?je(Or,{avatarSize:d,children:Br(o)}):je(Hr,{avatarSize:d,role:"img","aria-label":o})})]})});import ha from"@emotion/styled";import{forwardRef as Qr}from"react";import Zr from"@emotion/is-prop-valid";import{keyframes as zr}from"@emotion/react";import at from"@emotion/styled";import{forwardRef as Er}from"react";import{jsx as ma,jsxs as Xr}from"react/jsx-runtime";var Wr=1200,et=160,Gr=w(()=>({sm:{fontSize:r(8)},md:{fontSize:r(16)}})),Vr=at.span(({theme:e,size:a})=>({color:e.colors.core.brown,display:"inline-flex",...m(a,t=>Gr(e)[t]),gap:r(6)})),Nr=zr({"0%, 80%, 100%":{transform:"scale(0)"},"40%":{transform:"scale(1)"}}),pa=at.span({display:"block",width:"1em",height:"1em",background:"currentColor",borderRadius:999,animationDuration:`${Wr}ms`,animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationFillMode:"both","&:nth-of-type(2)":{animationDelay:`${et}ms`},"&:nth-of-type(3)":{animationDelay:`${et*2}ms`},animationName:Nr}),tt=Er((e,a)=>{let{size:t="md",...o}=e;return Xr(Vr,{ref:a,size:t,...o,children:[ma(pa,{}),ma(pa,{}),ma(pa,{})]})});var La=":not([disabled])",ot=w(({typography:e,spacing:a})=>({xs:{height:r(32),paddingLeft:a["4x"],paddingRight:a["4x"],...e.button.sm},sm:{height:r(40),paddingLeft:a["5x"],paddingRight:a["5x"],...e.button.sm},md:{height:r(48),paddingLeft:a["6x"],paddingRight:a["6x"],...e.button.md},lg:{height:r(56),paddingLeft:a["8x"],paddingRight:a["8x"],...e.button.md},xl:{height:r(64),paddingLeft:a["8x"],paddingRight:a["8x"],...e.button.md}})),rt=w(({colors:e})=>({primary:{background:e.bg.brandPrimary,color:e.text.onBrandPrimary,[La]:{"@media(hover: hover)":{":hover":{background:e.bg.brandPrimaryHover}},":active":{background:e.bg.brandPrimaryActive}}},secondary:{background:e.bg.brandSecondary,color:e.text.onBrandSecondary,[La]:{"@media(hover: hover)":{":hover":{background:e.bg.brandSecondaryHover}},":active":{background:e.bg.brandSecondaryActive}}},tertiary:{background:e.bg.brandTertiary,color:e.text.onBrandTertiary,[La]:{"@media(hover: hover)":{":hover":{background:e.bg.brandTertiaryHover}},":active":{background:e.bg.brandTertiaryActive}}}}));import lt from"@emotion/styled";import{jsx as dt}from"react/jsx-runtime";var st=e=>Math.round(e*100)/100,ut={xs:16,sm:16,md:20,lg:20,xl:20},ft={xs:"2x",sm:"3x",md:"3x",lg:"4x",xl:"4x"},it={xs:"1x",sm:"1x",md:"1x",lg:"2x",xl:"2x"},_r=lt.span(({theme:e,buttonSize:a})=>({flexShrink:0,...m(a,t=>{let o=ut[t];return{marginLeft:`-${e.spacing[it[t]]}`,marginRight:e.spacing[ft[t]],"> svg":{width:o,height:o,...o<24&&{strokeWidth:st(24/o*2)}}}})})),Kr=lt.span(({theme:e,buttonSize:a})=>({flexShrink:0,...m(a,t=>{let o=ut[t];return{marginRight:`-${e.spacing[it[t]]}`,marginLeft:e.spacing[ft[t]],"> svg":{width:o,height:o,...o<24&&{strokeWidth:st(24/o*2)}}}})}));function xa({buttonSize:e,icon:a,placement:t}){return dt(t==="left"?_r:Kr,{buttonSize:e,children:dt(a,{"aria-hidden":"true",color:"currentColor"})})}import{jsx as Ia,jsxs as nt}from"react/jsx-runtime";var $r=ha("button",{shouldForwardProp:Zr})(({theme:e,size:a,variant:t,isFullWidth:o})=>({borderRadius:e.radii.full,display:"inline-flex",justifyContent:"center",alignItems:"center",position:"relative",flexShrink:0,WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",userSelect:"none",transitionProperty:"box-shadow, transform, opacity, background-color, color",transitionDuration:"150ms",transitionTimingFunction:"ease","&[disabled]":{opacity:.4},"&:not([disabled]):active":{transform:"scale(0.97)"},...m(a,d=>ot(e)[d]),...rt(e)[t],...o&&{width:"100%"}})),Jr=ha(tt)({position:"absolute",color:"currentColor"}),jr=ha.span(({isHidden:e})=>({opacity:e?0:1,display:"flex",alignItems:"center"})),Mp=Qr((e,a)=>{let{as:t,children:o,type:d=t?void 0:"button",size:s="md",variant:f="secondary",isFullWidth:u=!1,isLoading:n=!1,isDisabled:c=!1,disabled:x,iconLeft:C,iconRight:h,...L}=e;return nt($r,{as:t,ref:a,variant:f,size:s,isFullWidth:u,disabled:c||x||n,type:d,...L,children:[nt(jr,{isHidden:n,children:[C&&Ia(xa,{buttonSize:s,icon:C,placement:"left"}),o,h&&Ia(xa,{buttonSize:s,icon:h,placement:"right"})]}),n&&Ia(Jr,{size:"sm","data-testid":"button-spinner"})]})});import Yr from"@emotion/styled";import ed from"@emotion/is-prop-valid";import{forwardRef as ad}from"react";import{jsx as od}from"react/jsx-runtime";var td=Yr("h2",{shouldForwardProp:ed})(({theme:e,size:a,textAlign:t,textWrap:o})=>({margin:0,...m(a,d=>e.typography.display[d]),color:e.colors.text.default,textAlign:t,textWrap:o,overflowWrap:"break-word",wordWrap:"break-word"})),Hp=ad((e,a)=>{let{as:t,children:o,size:d="md",textAlign:s="left",textWrap:f="pretty",...u}=e;return od(td,{as:t,ref:a,size:d,textAlign:s,textWrap:f,...u,children:o})});import We from"@emotion/styled";import{forwardRef as pd}from"react";import{Checkbox as ht}from"radix-ui";import{useEffect as rd,useState as dd}from"react";var ct=Object.entries(D.breakpoints).map(([e,a])=>({name:e,breakpoint:a})),mt=ct.map(({name:e,breakpoint:a},t)=>{let o=ct?.[t+1]?.breakpoint,d=o?`(min-width: ${a}px) and (max-width: ${o-1}px)`:`(min-width: ${a}px)`;return{name:e,media:d}}),pt=()=>mt.find(({media:a})=>window.matchMedia(a).matches)?.name||"base";function Lt(e){let{ssr:a=!1}=e||{},t=a?"base":pt,[o,d]=dd(t);return rd(()=>{let s=mt.map(({media:u})=>window.matchMedia(u)),f=()=>{d(pt())};return f(),s.forEach(u=>{typeof u.addListener=="function"?u.addListener(f):u.addEventListener("change",f)}),()=>{s.forEach(u=>{typeof u.addListener=="function"?u.removeListener(f):u.removeEventListener("change",f)})}},[]),{currentBreakpoint:o}}function Xp(e,a){let{currentBreakpoint:t}=Lt(a),o;if(t in e)o=e[t];else{let d=Object.keys(_e),s=d.indexOf(t);for(let f=s;f>=0;f--){let u=d[f];if(u in e){o=e[u];break}}}return o}import{useCallback as ea}from"react";import sd,{useState as ud}from"react";import{useLayoutEffect as ld}from"react";var Ye=globalThis?.document?ld:()=>{};var fd=sd.useId||(()=>{}),id=0;function v(e){let[a,t]=ud(fd());return Ye(()=>{e||t(o=>o??String(id++))},[e]),e||(a?`qds-${a}`:"")}var ee=e=>{let{id:a,isDisabled:t,helperText:o,errorMessage:d,isInvalid:s,isRequired:f}=e,u=v(a),n=`${u}-error`,c=`${u}-helper`,x=ea(p=>({...p,htmlFor:u,"data-disabled":t?"":void 0}),[u,t]),C=ea(p=>({...p,id:c,"data-disabled":t?"":void 0}),[c,t]),h=ea(p=>({...p,id:n,"aria-live":"polite"}),[n]),L=ea(p=>{let S=[];return d&&s?S.push(n):o&&S.push(c),p?.["aria-describedby"]&&S.push(p["aria-describedby"]),{...p,"aria-describedby":S.join(" ")||void 0,id:p?.id??u,isDisabled:t,isRequired:f,"aria-invalid":s?!0:void 0}},[d,n,o,c,u,t,s,f]);return{getLabelProps:x,getFieldProps:L,getHelperTextProps:C,getErrorMessageProps:h}};var R=e=>e?"":void 0,Q=e=>e?"true":void 0;import ga from"@emotion/styled";import{jsx as cd}from"react/jsx-runtime";var nd=ga.div(({theme:e})=>({position:"relative",display:"flex",flexDirection:"column",gap:e.spacing["2x"],width:"100%"}));function ae({children:e}){return cd(nd,{role:"group",children:e})}var F=ga.div(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.negative})),O=ga.span(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.subtle,"&[data-disabled]":{opacity:.4}}));import{jsx as Z,jsxs as It}from"react/jsx-runtime";var md=We.div({width:"100%",display:"flex",flexDirection:"column"}),Ld=We.label(({theme:e})=>({width:"100%",display:"grid",gridTemplateColumns:"auto 1fr",alignItems:"start",gap:e.spacing["3x"],position:"relative",cursor:"pointer",WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",'&:has([role="checkbox"][data-disabled])':{cursor:"not-allowed"}})),xd=We(ht.Root)(({theme:e})=>({position:"relative",WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",marginTop:r(1),display:"flex",justifyContent:"center",alignItems:"center",width:r(20),height:r(20),flexShrink:0,border:"2px solid",borderColor:e.colors.border.strong,borderRadius:e.radii["2xs"],color:"transparent",transitionProperty:"background-color, color",transitionDuration:"80ms",transitionTimingFunction:"ease",'&[data-state="checked"]':{backgroundColor:e.colors.border.strong,color:e.colors.core.brown,'&[aria-invalid="true"]':{borderColor:e.colors.border.negative}},'&[data-state="unchecked"]':{backgroundColor:e.colors.bg.default,"@media(hover: hover)":{"&:hover":{backgroundColor:e.colors.bg.inset,color:e.colors.core.gray20}},'&[aria-invalid="true"]':{borderColor:e.colors.border.negative}},"&[data-disabled], &:disabled, &[disabled]":{opacity:.4,'&[data-state="unchecked"]':{backgroundColor:e.colors.bg.default,"&:hover":{color:"transparent"}},'&[data-state="checked"]':{backgroundColor:e.colors.border.strong}}})),Id=We.span(({theme:e})=>({...e.typography.body.md,"&[data-disabled], &:disabled":{opacity:.4,cursor:"not-allowed"}})),xt=We.div(({theme:e})=>({display:"flex",marginLeft:e.spacing["8x"]})),pm=pd((e,a)=>{let{label:t,helperText:o,id:d,defaultChecked:s,isDefaultChecked:f,isChecked:u,checked:n,isDisabled:c,disabled:x,isRequired:C,required:h,isInvalid:L,errorMessage:p,"aria-labelledby":S,"aria-describedby":y,...g}=e,b=v(d),k=`${b}-label`,M=f??s,P=u??n,T=c??x,U=C??h,B=[k,S].filter(Boolean).join(" "),Xe=!!o?`${b}-helper`:void 0,ra=o&&Z(xt,{children:Z(O,{id:Xe,"data-disabled":R(T),children:o})}),da=L&&p,va=da?`${b}-error`:void 0,Jt=da&&Z(xt,{children:Z(F,{id:va,role:"alert","aria-live":"polite",children:p})}),jt=[va,!da&&Xe,y].filter(Boolean).join(" ")||void 0;return It(md,{children:[It(Ld,{children:[Z(xd,{id:b,ref:a,defaultChecked:M,checked:P,disabled:T,required:U,"aria-invalid":Q(L),"aria-labelledby":B,"aria-describedby":jt,...g,children:Z(ht.Indicator,{forceMount:!0,children:Z(H,{size:12,strokeWidth:3,absoluteStrokeWidth:!0,"aria-hidden":"true",role:"presentation"})})}),Z(Id,{id:k,"data-disabled":R(T),onMouseDown:Ta=>{Ta.detail>1&&Ta.preventDefault()},children:t})]}),Jt||ra]})});import hd from"@emotion/styled";import{forwardRef as gd}from"react";import{jsx as Sd}from"react/jsx-runtime";var Cd=hd.span(({theme:e,orientation:a})=>{let t=a==="horizontal"?"borderTop":"borderLeft";return{display:"block",[a==="horizontal"?"width":"height"]:"100%",flexShrink:0,[t]:`1px solid ${e.colors.border.default}`}}),hm=gd((e,a)=>{let{orientation:t="horizontal",...o}=e;return Sd(Cd,{ref:a,orientation:t,role:"separator",...o})});import{DropdownMenu as Xd}from"radix-ui";import{keyframes as $}from"@emotion/react";import yd from"@emotion/styled";import{DropdownMenu as Ct}from"radix-ui";import{forwardRef as Pd}from"react";import{jsx as gt}from"react/jsx-runtime";var bd=$({"0%":{opacity:0,transform:"translateY(4px) scale(0.94)"},"100%":{opacity:1,transform:"translateY(0)"}}),kd=$({"0%":{opacity:0,transform:"translateX(-4px) scale(0.94)"},"100%":{opacity:1,transform:"translateX(0)"}}),wd=$({"0%":{opacity:0,transform:"translateY(-4px) scale(0.94)"},"100%":{opacity:1,transform:"translateY(0)"}}),vd=$({"0%":{opacity:0,transform:"translateX(4px) scale(0.94)"},"100%":{opacity:1,transform:"translateX(0)"}}),Td=$({"0%":{opacity:1,transform:"translateY(0px)"},"100%":{opacity:0,transform:"translateY(-4px) scale(0.94)"}}),Rd=$({"0%":{opacity:1,transform:"translateX(0px)"},"100%":{opacity:0,transform:"translateX(4px) scale(0.94)"}}),Md=$({"0%":{opacity:1,transform:"translateY(0)"},"100%":{opacity:0,transform:"translateY(4px) scale(0.94)"}}),Bd=$({"0%":{opacity:1,transform:"translateX(0)"},"100%":{opacity:0,transform:"translateX(-4px) scale(0.94)"}}),Dd=yd(Ct.Content)(({theme:e})=>({background:e.colors.bg.default,minWidth:e.sizes[192],maxWidth:e.sizes[288],borderRadius:e.radii.md,boxShadow:e.shadows.md,padding:e.spacing["2x"],"@media (prefers-reduced-motion: no-preference)":{transformOrigin:"var(--radix-dropdown-menu-content-transform-origin)",animationDuration:"240ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:bd},'&[data-side="right"]':{animationName:kd},'&[data-side="bottom"]':{animationName:wd},'&[data-side="left"]':{animationName:vd}},'&[data-state="closed"]':{animationDuration:"180ms",'&[data-side="top"]':{animationName:Md},'&[data-side="right"]':{animationName:Bd},'&[data-side="bottom"]':{animationName:Td},'&[data-side="left"]':{animationName:Rd}}}})),St=Pd((e,a)=>{let{children:t,sideOffset:o=8,...d}=e;return gt(Ct.Portal,{children:gt(Dd,{collisionPadding:16,ref:a,sideOffset:o,...d,children:t})})});import{forwardRef as Ad}from"react";import{DropdownMenu as Fd}from"radix-ui";import Od from"@emotion/styled";import{jsx as Hd}from"react/jsx-runtime";var qd=Od(Fd.Separator)(({theme:e})=>({height:1,background:e.colors.border.subtle,marginTop:e.spacing["1x"],marginBottom:e.spacing["1x"],marginLeft:`-${e.spacing["2x"]}`,marginRight:`-${e.spacing["2x"]}`})),yt=Ad((e,a)=>Hd(qd,{ref:a,...e}));import{forwardRef as Ud}from"react";import{DropdownMenu as zd}from"radix-ui";import bt from"@emotion/styled";import{jsx as Pt,jsxs as Gd}from"react/jsx-runtime";var Ed=bt(zd.Item)(({theme:e})=>({...e.typography.label.sm,color:e.colors.text.default,height:r(40),borderRadius:e.radii.xs,display:"flex",alignItems:"center",gap:e.spacing["3x"],paddingLeft:e.spacing["3x"],paddingRight:e.spacing["3x"],cursor:"pointer",outline:"none",userSelect:"none","&[data-highlighted]":{background:e.colors.core.gray10},":focus-visible":{boxShadow:`0 0 0 2px ${e.colors.border.defaultSelected}`},":not([data-disabled])":{":active":{background:e.colors.core.gray20}},"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}})),Wd=bt.span({textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),kt=Ud((e,a)=>{let{children:t,disabled:o,isDisabled:d,icon:s,...f}=e;return Gd(Ed,{ref:a,disabled:o||d,...f,children:[s&&Pt(s,{color:"default",size:16,"aria-hidden":!0}),Pt(Wd,{children:t})]})});import{DropdownMenu as Vd}from"radix-ui";import{forwardRef as Nd}from"react";import{jsx as wt}from"react/jsx-runtime";var vt=Nd((e,a)=>{let{children:t,as:o,...d}=e,s=o||"button";return wt(Vd.Trigger,{ref:a,asChild:!0,children:wt(s,{...d,children:t})})});import{jsx as Kd}from"react/jsx-runtime";function _d(e){let{children:a,isOpen:t,onOpenChange:o,defaultOpen:d=!1}=e;return Kd(Xd.Root,{defaultOpen:d,open:t,onOpenChange:o,modal:!0,children:a})}var Km=Object.assign(_d,{Trigger:vt,Content:St,Item:kt,Divider:yt});import Qd from"@emotion/styled";import Zd from"@emotion/is-prop-valid";import{forwardRef as $d}from"react";import{jsx as jd}from"react/jsx-runtime";var Jd=Qd("h2",{shouldForwardProp:Zd})(({theme:e,size:a,color:t,numberOfLines:o,textAlign:d})=>({margin:0,...m(a,s=>e.typography.title[s]),color:e.colors.text[t],textAlign:d,overflowWrap:"break-word",wordWrap:"break-word",...o&&{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,overflow:"hidden",textOverflow:"ellipsis"}})),eL=$d((e,a)=>{let{as:t,children:o,size:d="md",color:s="default",textAlign:f="left",...u}=e;return jd(Jd,{as:t,ref:a,textAlign:f,size:d,color:s,...u,children:o})});import{forwardRef as Yd}from"react";import Tt from"@emotion/styled";import{jsx as ol}from"react/jsx-runtime";var el=Tt.aside(({theme:e})=>({backgroundColor:e.colors.bg.inset,borderRadius:e.radii.md,paddingInline:e.spacing["5x"],paddingBlock:e.spacing["4x"],...e.typography.body.sm})),al=Tt.p(({theme:e})=>({...e.typography.title["3xs"],marginBottom:e.spacing["1x"]})),tl=Yd((e,a)=>{let{children:t,...o}=e;return ol(el,{ref:a,...o,children:t})}),dL=Object.assign(tl,{Title:al});import{forwardRef as rl}from"react";import dl from"@emotion/styled";import ll from"@emotion/is-prop-valid";var Ge=":not([disabled])",Rt=w(()=>({xs:{width:r(32),height:r(32)},sm:{width:r(40),height:r(40)},md:{width:r(48),height:r(48)}})),Mt=w(({colors:e})=>({primary:{background:e.bg.brandPrimary,color:e.text.onBrandPrimary,[Ge]:{"@media(hover: hover)":{":hover":{background:e.bg.brandPrimaryHover}},":active":{background:e.bg.brandPrimaryActive}}},secondary:{background:e.bg.brandSecondary,color:e.text.onBrandSecondary,[Ge]:{"@media(hover: hover)":{":hover":{background:e.bg.brandSecondaryHover}},":active":{background:e.bg.brandSecondaryActive}}},tertiary:{background:e.bg.brandTertiary,color:e.text.onBrandTertiary,[Ge]:{"@media(hover: hover)":{":hover":{background:e.bg.brandTertiaryHover}},":active":{background:e.bg.brandTertiaryActive}}},ghost:{color:e.text.default,[Ge]:{"@media(hover: hover)":{":hover":{background:e.core.blackAlpha5}},":active":{background:e.core.blackAlpha10}}},white:{background:e.bg.default,color:e.text.default,[Ge]:{"@media(hover: hover)":{":hover":{background:e.core.gray10}},":active":{background:e.core.gray20}}}}));import{jsx as Bt}from"react/jsx-runtime";var sl=e=>Math.round(e*100)/100,ul={xs:16,sm:20,md:20},fl=dl("button",{shouldForwardProp:ll})(({theme:e,size:a,variant:t})=>({borderRadius:e.radii.full,display:"inline-flex",justifyContent:"center",alignItems:"center",position:"relative",flexShrink:0,WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",userSelect:"none",transitionProperty:"box-shadow, transform, opacity, background-color, color",transitionDuration:"150ms",transitionTimingFunction:"ease","&[disabled]":{opacity:.4},"&:not([disabled]):active":{transform:"scale(0.97)"},...m(a,o=>{let d=ul[o];return{...Rt(e)[o],"> svg":{width:d,height:d,...d<24&&{strokeWidth:sl(24/d*2)}}}}),...Mt(e)[t]})),LL=rl((e,a)=>{let{as:t,icon:o,label:d,"aria-label":s=d,variant:f="white",size:u="md",type:n=t?void 0:"button",isDisabled:c=!1,...x}=e;return Bt(fl,{as:t,ref:a,"aria-label":s,variant:f,size:u,disabled:c,type:n,...x,children:Bt(o,{"aria-hidden":"true",color:"currentColor"})})});import Sa from"@emotion/styled";import{forwardRef as kl,useRef as wl,useState as vl}from"react";var il={close:"Close",optional:"Optional"},nl={close:"St\xE4ng",optional:"Valfritt"},cl={close:"Sulje",optional:"Valinnainen"},pl={close:"Fermer",optional:"Facultatif"},ml={close:"Steng",optional:"Valgfri"},Dt={en:il,sv:nl,fi:cl,fr:pl,nb:ml};function te(){let{currentLanguage:e}=Ea();return{t:t=>Dt[e][t]}}import Ll from"@emotion/styled";import xl from"@emotion/is-prop-valid";import{forwardRef as Il}from"react";import{jsx as Cl}from"react/jsx-runtime";var hl=w(({typography:e})=>({sm:{...e.label.sm},md:{...e.label.md}})),gl=Ll("label",{shouldForwardProp:xl})(({theme:e,color:a,size:t})=>({display:"block",color:e.colors.text[a],cursor:"default",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",...m(t,o=>hl(e)[o]),"&[data-disabled]":{opacity:.4}})),J=Il((e,a)=>{let{as:t,children:o,color:d="default",size:s="md",onMouseDown:f,...u}=e;return Cl(gl,{as:t,ref:a,...u,size:s,color:d,onMouseDown:n=>{f?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()},children:o})});import Sl from"@emotion/styled";import{forwardRef as yl}from"react";import{jsx as bl}from"react/jsx-runtime";var Pl=Sl("input")(({theme:e})=>({...Y(e),height:48})),At=yl((e,a)=>{let{isInvalid:t,isDisabled:o,isRequired:d,...s}=e;return bl(Pl,{ref:a,"aria-invalid":Q(t),disabled:o,required:d,...s})});import{jsx as Ve,jsxs as Ca}from"react/jsx-runtime";var Tl=Sa.div(({isPositionRelative:e})=>({width:"100%",position:e?"relative":void 0})),Rl=Sa.span(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.subtle})),Ml=Sa.div(({theme:e})=>({...e.typography.body.md,position:"absolute",height:"100%",top:0,right:0,display:"flex",alignItems:"center",paddingLeft:e.spacing["4x"],paddingRight:e.spacing["4x"],pointerEvents:"none","&[data-disabled]":{opacity:.4}})),VL=kl((e,a)=>{let{label:t,isInvalid:o,isDisabled:d,isRequired:s,isOptional:f,errorMessage:u,helperText:n,suffix:c,...x}=e,{getLabelProps:C,getFieldProps:h,getErrorMessageProps:L,getHelperTextProps:p}=ee(e),[S,y]=vl(void 0),g=wl(null),{t:b}=te();Ye(()=>{y(g.current?.offsetWidth)},[c]);let k=n?Ve(O,{...p(),children:n}):null,P=o&&u?Ve(F,{...L(),children:u}):null,T=!!c,U=!!(!s&&f);return Ca(ae,{children:[Ca(J,{...C(),children:[t,U&&Ve(Rl,{children:` (${b("optional")})`})]}),Ca(Tl,{isPositionRelative:T,children:[Ve(At,{ref:a,...h({...x,style:{paddingRight:S}})}),T&&Ve(Ml,{ref:g,"aria-hidden":"true","data-disabled":R(d),children:c})]}),P||k]})});import{forwardRef as Bl}from"react";import Dl from"@emotion/styled";import Al from"@emotion/is-prop-valid";import{jsx as Ol}from"react/jsx-runtime";var Fl=Dl("a",{shouldForwardProp:Al})(({theme:e})=>({WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",...e.typography.body.md,WebkitAppearance:"none",transitionProperty:"box-shadow, transform, opacity, background-color, color",transitionDuration:"150ms",transitionTimingFunction:"ease",flexShrink:0,fontSize:"inherit",color:"inherit",textDecoration:"underline"})),ZL=Bl((e,a)=>{let{children:t,href:o,isExternal:d=!1,...s}=e;return Ol(Fl,{ref:a,href:o,...d?{target:"_blank",rel:"noopener noreferrer"}:{},...s,children:t})});import ql from"@emotion/styled";import Hl from"@emotion/is-prop-valid";import{forwardRef as Ul}from"react";import{jsx as Wl}from"react/jsx-runtime";var zl=w(({typography:e})=>({xs:e.body.xs,sm:e.body.sm,md:e.body.md,lg:e.body.lg,xl:e.body.xl})),El=ql("p",{shouldForwardProp:Hl})(({theme:e,size:a,color:t,numberOfLines:o,textAlign:d})=>({margin:0,...m(a,s=>zl(e)[s]),color:e.colors.text[t],textAlign:d,overflowWrap:"break-word",wordWrap:"break-word",...o&&{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,overflow:"hidden",textOverflow:"ellipsis"}})),ox=Ul((e,a)=>{let{children:t,size:o="md",color:d="default",textAlign:s="left",...f}=e;return Wl(El,{ref:a,size:o,color:d,textAlign:s,...f,children:t})});import Pa from"@emotion/styled";import{forwardRef as Gl}from"react";import{jsx as ya,jsxs as Ft}from"react/jsx-runtime";var Vl=Pa.div({width:"100%",height:"fit-content",position:"relative"}),Nl=Pa.div({pointerEvents:"none",position:"absolute",height:"100%",width:48,right:0,top:0,color:"currentcolor",display:"inline-flex",justifyContent:"center",alignItems:"center","&[data-disabled]":{opacity:.4}}),Xl=Pa.select(({theme:e})=>({...Y(e),height:48,paddingRight:40})),Ot=Gl((e,a)=>{let{placeholder:t,children:o,isInvalid:d,isDisabled:s,isRequired:f,...u}=e;return Ft(Vl,{children:[Ft(Xl,{ref:a,"aria-invalid":d?!0:void 0,disabled:s,required:f,...u,children:[t&&ya("option",{value:"",children:t}),o]}),ya(Nl,{"data-disabled":s?"":void 0,children:ya(Qa,{role:"presentation","aria-hidden":"true",size:16})})]})});import _l from"@emotion/styled";import{forwardRef as Kl}from"react";import{jsx as Zl}from"react/jsx-runtime";var Ql=_l.textarea(({theme:e,resize:a,minRows:t})=>{let o=Y(e),d=e.spacing["3x"],s=`calc(${o.lineHeight} * ${t} + ${d} * 2 + 2px)`;return{...o,paddingTop:d,paddingBottom:d,scrollPaddingBlockEnd:d,resize:a,minHeight:s}}),qt=Kl((e,a)=>{let{isInvalid:t,isDisabled:o,isRequired:d,resize:s="vertical",minRows:f=3,...u}=e;return Zl(Ql,{ref:a,"aria-invalid":Q(t),disabled:o,required:d,resize:s,minRows:f,...u})});import{forwardRef as ys,useCallback as Ps,useState as bs}from"react";import{RadioGroup as ks}from"radix-ui";import ws from"@emotion/styled";import{createContext as $l,useContext as Jl}from"react";import{jsx as jl}from"react/jsx-runtime";var Ht=$l(null);function Ut({value:e,children:a}){return jl(Ht.Provider,{value:e,children:a})}var oe=({consumerName:e})=>{let a=Jl(Ht);if(!a)throw new Error(`\`${e}\` must be used within \`RadioGroup\``);return a};import zt from"@emotion/styled";import{RadioGroup as rs}from"radix-ui";import{forwardRef as ds,useState as ls}from"react";import Yl from"@emotion/styled";import{RadioGroup as es}from"radix-ui";import{forwardRef as as}from"react";import{jsx as os}from"react/jsx-runtime";var ts=Yl(es.Indicator)(({theme:e})=>({background:e.colors.bg.default,border:"2px solid",borderColor:e.colors.border.strong,width:r(20),height:r(20),flexShrink:0,borderRadius:e.radii.full,transitionProperty:"background",transitionDuration:"120ms",transitionTimingFunction:"ease-out",display:"flex",alignItems:"center",justifyContent:"center","&::after":{content:'""',display:"block",width:r(10),height:r(10),borderRadius:e.radii.full,background:e.colors.border.strong,transform:"scale(0.5)",opacity:0,transitionProperty:"transform, opacity",transitionDuration:"120ms",transitionTimingFunction:"ease-out",transformOrigin:"center"},'&[data-state="unchecked"]':{"@media(hover: hover)":{"&:not(&[data-disabled])[data-hover]::after":{transform:"scale(0.8)",opacity:1}}},'&[data-state="checked"]':{background:e.colors.border.strong,"&::after":{opacity:1,transform:"scale(1)",background:e.colors.border.defaultSelected}}})),aa=as((e,a)=>os(ts,{ref:a,forceMount:!0,...e}));import{jsx as ba,jsxs as fs}from"react/jsx-runtime";var ss=zt(rs.Item)(({theme:e})=>({width:"100%",textAlign:"left",background:e.colors.bg.default,paddingLeft:e.spacing["5x"],paddingRight:e.spacing["5x"],paddingTop:r(17),paddingBottom:r(17),minHeight:r(56),justifyContent:"center",border:"1px solid",borderColor:e.colors.border.default,borderRadius:e.radii.md,display:"grid",gridTemplateColumns:"1fr min-content",alignItems:"start",alignContent:"start",columnGap:e.spacing["3x"],rowGap:e.spacing["1x"],boxShadow:"none",transitionProperty:"background, border-color, box-shadow, transform, outline",transitionDuration:"120ms",transitionTimingFunction:"ease-out",'&[data-state="checked"]':{borderColor:e.colors.border.defaultSelected,boxShadow:`inset 0 0 0 1px ${e.colors.border.defaultSelected}`,background:e.colors.bg.inset,":active":{transform:"scale(0.995)"}},'&[data-state="unchecked"]':{"@media(hover: hover)":{":hover":{borderColor:e.colors.border.defaultHover,background:e.colors.bg.inset}},":active":{transform:"scale(0.98)"}},outlineOffset:0,outline:"0 solid transparent",":focus-visible":{outlineColor:e.colors.border.defaultSelected,outlineWidth:2,outlineStyle:"solid",outlineOffset:3},"&[data-disabled], &:disabled, &[disabled]":{opacity:.4,'&[data-state="unchecked"]':{":hover":{background:e.colors.bg.default,borderColor:e.colors.border.default}},":active":{transform:"none"}},WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent"})),us=zt.span(({theme:e})=>({...e.typography.label.md})),Et=ds((e,a)=>{let{label:t,helperText:o,disabled:d,isDisabled:s,required:f,isRequired:u,id:n,"aria-describedby":c,onMouseEnter:x,onMouseLeave:C,...h}=e,[L,p]=ls(!1),{errorMessageId:S}=oe({consumerName:"RadioCard"}),y=v(n),g=`${y}-label`,k=!!o?`${y}-helper-text`:void 0,M=[S,k,c].filter(Boolean).join(" ")||void 0,P=o?ba(O,{id:k,children:o}):null;return fs(ss,{ref:a,disabled:s??d,...(u??f)&&{required:!0},"aria-labelledby":g,"aria-describedby":M,onMouseEnter:B=>{p(!0),x?.(B)},onMouseLeave:B=>{p(!1),C?.(B)},...h,children:[ba(us,{id:g,children:t}),ba(aa,{"data-hover":R(L)}),P]})});import ns from"@emotion/styled";import{forwardRef as cs}from"react";function is(e,a){if(e!=null){if(typeof e=="function"){e(a);return}e.current=a}}var Wt=(...e)=>a=>{e.forEach(t=>is(t,a))};import{jsx as ms}from"react/jsx-runtime";var ps=ns.span(({theme:e})=>({...e.typography.label.md,"&[data-disabled]":{opacity:.4}})),Gt=cs((e,a)=>{let{id:t,...o}=e,d=v(t),{labelRefCallback:s,isDisabled:f}=oe({consumerName:"RadioGroupLabel"});return ms(ps,{ref:Wt(s,a),id:d,"data-disabled":R(f),...o})});import wa from"@emotion/styled";import{forwardRef as Ls,useState as xs}from"react";import{RadioGroup as Is}from"radix-ui";import{jsx as ka,jsxs as Ss}from"react/jsx-runtime";var hs=wa.label(({theme:e})=>({display:"grid",gridTemplateColumns:"auto 1fr",alignItems:"start",gap:e.spacing["3x"],cursor:"pointer",WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",'&:has([role="radio"][data-disabled])':{cursor:"not-allowed"}})),gs=wa(Is.Item)(({theme:e})=>({borderRadius:e.radii.full,transitionProperty:"outline",transitionDuration:"120ms",transitionTimingFunction:"ease-out",outlineOffset:0,outline:"0 solid transparent",":focus-visible":{outlineColor:e.colors.border.defaultSelected,outlineWidth:2,outlineStyle:"solid",outlineOffset:3},"&[data-disabled], &:disabled, &[disabled]":{opacity:.4},WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent"})),Cs=wa.span(({theme:e})=>({...e.typography.body.md,"&[data-disabled]":{opacity:.4}})),Vt=Ls((e,a)=>{let{label:t,disabled:o,isDisabled:d,required:s,isRequired:f,id:u,"aria-describedby":n,onMouseEnter:c,onMouseLeave:x,...C}=e,[h,L]=xs(!1),S=`${v(u)}-label`,{errorMessageId:y,isDisabled:g}=oe({consumerName:"RadioButton"}),b=[y,n].filter(Boolean).join(" ")||void 0,k=d??o??g;return Ss(hs,{children:[ka(gs,{ref:a,disabled:k,...(f??s)&&{required:!0},"aria-labelledby":S,"aria-describedby":b,onMouseEnter:P=>{L(!0),c?.(P)},onMouseLeave:P=>{L(!1),x?.(P)},...C,children:ka(aa,{"data-hover":R(h)})}),ka(Cs,{id:S,"data-disabled":R(k),onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),onMouseDown:P=>{P.detail>1&&P.preventDefault()},children:t})]})});import{jsx as Nt,jsxs as Rs}from"react/jsx-runtime";var vs=ws(ks.Root)(({theme:e})=>({width:"100%",display:"flex",flexDirection:"column",gap:e.spacing["3x"]})),Ts=ys((e,a)=>{let{children:t,id:o,disabled:d,isDisabled:s,required:f,isRequired:u,"aria-labelledby":n,"aria-describedby":c,isInvalid:x,errorMessage:C,...h}=e,L=s??d,p=u??f,S=v(o),y=x&&C,g=y?`${S}-error`:void 0,[b,k]=bs(null),M=Ps(de=>k(de),[]),P=b?.id,T=y?Nt(F,{id:g,role:"alert","aria-live":"polite",children:C}):null,U=[P,n].filter(Boolean).join(" ")||void 0,B=[g,c].filter(Boolean).join(" ")||void 0;return Nt(Ut,{value:{labelRefCallback:M,isDisabled:L,errorMessageId:g},children:Rs(vs,{ref:a,id:S,disabled:L,required:p,"aria-invalid":Q(x),"aria-labelledby":U,"aria-describedby":B,...h,children:[t,T]})})}),cI=Object.assign(Ts,{Card:Et,Button:Vt,Label:Gt});import{forwardRef as Ds}from"react";import As from"@emotion/styled";import{forwardRef as Ms}from"react";import{jsx as Bs}from"react/jsx-runtime";var Xt=Ms((e,a)=>{let{children:t,isDisabled:o,...d}=e;return Bs("option",{ref:a,disabled:o,...d,children:t})});import{jsx as ta,jsxs as _t}from"react/jsx-runtime";var Fs=As.span(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.subtle})),Os=Ds((e,a)=>{let{children:t,label:o,isInvalid:d,errorMessage:s,helperText:f,isRequired:u,isOptional:n,...c}=e,{getLabelProps:x,getFieldProps:C,getErrorMessageProps:h,getHelperTextProps:L}=ee(e),{t:p}=te(),S=f?ta(O,{...L(),children:f}):null,g=d&&s?ta(F,{...h(),children:s}):null,b=!!(!u&&n);return _t(ae,{children:[_t(J,{...x(),children:[o,b&&ta(Fs,{children:` (${p("optional")})`})]}),ta(Ot,{ref:a,...C(c),children:t}),g||S]})}),wI=Object.assign(Os,{Option:Xt});import{forwardRef as qs}from"react";import Hs from"@emotion/styled";import{jsx as zs}from"react/jsx-runtime";var Us=Hs.span(({axis:e,size:a,theme:t})=>({display:"block",...m(a,o=>{let d=t.spacing[o];return{width:e==="x"?d:1,minWidth:e==="x"?d:1,height:e==="y"?d:1,minHeight:e==="y"?d:1}})})),DI=qs((e,a)=>{let{axis:t="y",size:o,...d}=e;return zs(Us,{ref:a,"aria-hidden":"true",size:o,axis:t,...d})});import{Fragment as Gs,forwardRef as Vs}from"react";import Ns from"@emotion/styled";import Xs from"@emotion/is-prop-valid";import{Children as Es,isValidElement as Ws}from"react";function Kt(e){return Es.toArray(e).filter(a=>Ws(a))}import{jsx as Qs,jsxs as Ks}from"react/jsx-runtime";var _s=Ns("div",{shouldForwardProp:Xs})(({theme:e,wrap:a,gap:t})=>({display:"flex",flexWrap:a,...m(t,o=>({gap:e.spacing[o]}))}),({justifyContent:e})=>({...m(e,a=>({justifyContent:a}))}),({alignItems:e})=>({...m(e,a=>({alignItems:a}))}),({direction:e})=>({...m(e,a=>({flexDirection:a}))})),GI=Vs((e,a)=>{let{as:t,children:o,direction:d="column",justifyContent:s="flex-start",alignItems:f="stretch",divider:u,gap:n="0x",...c}=e,C=!!u?Kt(o).map((h,L,p)=>{let S=typeof h.key<"u"?h.key:L,g=L+1===p.length?null:u;return Ks(Gs,{children:[h,g]},S)}):o;return Qs(_s,{as:t,ref:a,direction:d,justifyContent:s,alignItems:f,gap:n,...c,children:C})});import re from"@emotion/styled";import{Switch as Zt}from"radix-ui";import{forwardRef as Zs}from"react";import{jsx as Ne,jsxs as Qt}from"react/jsx-runtime";var jI=Zs((e,a)=>{let{id:t,label:o,helperText:d,defaultChecked:s,isDefaultChecked:f,isChecked:u,checked:n,disabled:c,isDisabled:x,isRequired:C,required:h,"aria-labelledby":L,"aria-describedby":p,onCheckedChange:S,...y}=e,g=v(t),b=f??s,k=u??n,M=x??c,P=C??h,T=`${g}-label`,U=[T,L].filter(Boolean).join(" "),B=!!d,de=B?`${g}-helper-text`:void 0,Xe=[de,p].filter(Boolean).join(" ")||void 0;return Qt(js,{children:[Qt(Ys,{children:[Ne($s,{id:T,htmlFor:g,"data-disabled":M?"":void 0,children:o}),B&&Ne(Js,{id:de,"data-disabled":M?"":void 0,children:d})]}),Ne(eu,{id:g,ref:a,defaultChecked:b,checked:k,disabled:M,required:P,"aria-labelledby":U,"aria-describedby":Xe,onCheckedChange:ra=>S?.(ra),...y,children:Ne(au,{children:Ne(H,{"data-part":"switch-icon",size:12,absoluteStrokeWidth:!0,strokeWidth:2})})})]})}),$s=re(J)(()=>({marginTop:r(6)})),Js=re.div(({theme:e})=>({flexGrow:1,flexShrink:1,color:e.colors.text.subtle,cursor:"default",...e.typography.body.sm,"&[data-disabled]":{opacity:.4}})),js=re.div(({theme:e})=>({display:"flex",gap:e.spacing["4x"],alignItems:"start"})),Ys=re.div(({theme:e})=>({display:"flex",flexDirection:"column",flexGrow:1,flexShrink:1,justifyContent:"space-between",gap:e.sizes["2x"]})),eu=re(Zt.Root)(({theme:e})=>({flexGrow:0,flexShrink:0,flexBasis:"auto",width:r(56),height:r(32),backgroundColor:e.colors.core.gray40,transition:"background-color 200ms",borderRadius:e.radii.full,"&:hover:not([data-disabled])":{backgroundColor:e.colors.core.gray30},"&[data-disabled]":{opacity:.4},'&[data-state="checked"]':{backgroundColor:e.colors.bg.brandSecondary,'[data-part="switch-icon"]':{opacity:1}},'&:hover[data-state="checked"]':{backgroundColor:e.colors.bg.brandSecondaryHover},'[data-part="switch-icon"]':{opacity:0,transition:"opacity 200ms"}})),au=re(Zt.Thumb)(({theme:e})=>({display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",justifyContent:"center",alignItems:"center",width:e.sizes["6x"],height:e.sizes["6x"],boxShadow:e.shadows.sm,backgroundColor:e.colors.bg.default,borderRadius:e.radii.full,transition:"transform 300ms",transform:`translateX(${r(4)})`,willChange:"transform",'&[data-state="checked"]':{transform:`translateX(${r(28)})`},"&[data-disabled]":{boxShadow:e.shadows.none}}));import{forwardRef as tu}from"react";import ou from"@emotion/styled";import{jsx as oa,jsxs as $t}from"react/jsx-runtime";var ru=ou.span(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.subtle})),uh=tu((e,a)=>{let{label:t,isInvalid:o,errorMessage:d,helperText:s,isRequired:f,isOptional:u,...n}=e,{getLabelProps:c,getFieldProps:x,getErrorMessageProps:C,getHelperTextProps:h}=ee(e),{t:L}=te(),p=s?oa(O,{...h(),children:s}):null,y=o&&d?oa(F,{...C(),children:d}):null,g=!!(!f&&u);return $t(ae,{children:[$t(J,{...c(),children:[t,g&&oa(ru,{children:` (${L("optional")})`})]}),oa(qt,{ref:a,...x(n)}),y||p]})});export{Ka as AlertCircleIcon,Hn as AlertTriangleIcon,Un as ArrowDownIcon,zn as ArrowLeftIcon,En as ArrowRightIcon,Wn as ArrowUpIcon,sp as Avatar,Gn as BellIcon,Vn as BellOffIcon,Nn as BookmarkIcon,Mp as Button,Xn as CalendarIcon,_n as CameraIcon,Kn as CheckCircleIcon,Qn as CheckIcon,pm as Checkbox,Qa as ChevronDownIcon,Zn as ChevronLeftIcon,$n as ChevronRightIcon,Jn as ChevronUpIcon,Hp as DisplayText,hm as Divider,Km as DropdownMenu,jn as GlobeIcon,eL as Heading,Yn as HeartFilledIcon,ec as HeartIcon,ac as HelpCircleIcon,dL as HintBox,tc as HistoryIcon,oc as HomeIcon,LL as IconButton,rc as ImageIcon,dc as InfoIcon,At as InputBase,J as Label,ZL as Link,sc as ListFilterIcon,lc as ListIcon,tt as LoadingDots,uc as LogOutIcon,fc as MapIcon,ic as MapPinIcon,nc as MenuIcon,cc as MessageCircleIcon,pc as MinusIcon,mc as MoreHorizontalIcon,Lc as MoreVerticalIcon,ox as Paragraph,xc as PenIcon,Ic as PlusIcon,br as QdsProvider,cI as RadioGroup,hc as SearchIcon,wI as Select,Ot as SelectBase,gc as SettingsIcon,Cc as ShareIcon,Sc as SlidersIcon,DI as Spacer,GI as Stack,yc as StarFilledIcon,Pc as StarIcon,jI as Switch,VL as TextField,uh as Textarea,qt as TextareaBase,na as Toast,bc as TrashIcon,kc as UserIcon,wc as XCircleIcon,vc as XIcon,ua as createIcon,i as createLucideIcon,Ba as createStyle,w as createStyleVariants,Y as getFormFieldBaseStyles,Ha as overrideTheme,r as pxToRem,D as theme,lo as toast,Lt as useBreakpoint,Xp as useBreakpointValue,ee as useFormField,Ye as useSafeLayoutEffect,v as useStableId};
3
+ import{ThemeProvider as Cr,CacheProvider as Sr}from"@emotion/react";import yr from"@emotion/cache";var _e={base:0,sm:480,md:768,lg:1024,xl:1280,"2xl":1536};var Ra={black:"var(--color-black)",white:"var(--color-white)",gray90:"var(--color-gray-90)",gray80:"var(--color-gray-80)",gray70:"var(--color-gray-70)",gray60:"var(--color-gray-60)",gray50:"var(--color-gray-50)",gray40:"var(--color-gray-40)",gray30:"var(--color-gray-30)",gray20:"var(--color-gray-20)",gray10:"var(--color-gray-10)",pink:"var(--color-pink)",uiPink:"var(--color-uiPink)",uiPinkDark:"var(--color-uiPink-dark)",uiPinkLight:"var(--color-uiPink-light)",brown:"var(--color-brown)",brownDark:"var(--color-brown-dark)",brownLight:"var(--color-brown-light)",offWhite:"var(--color-offWhite)",offWhiteDark:"var(--color-offWhite-dark)",offWhiteLight:"var(--color-offWhite-light)",softPink:"var(--color-softPink)",warmYellow:"var(--color-warmYellow)",softYellow:"var(--color-softYellow)",red90:"var(--color-red-90)",red80:"var(--color-red-80)",red70:"var(--color-red-70)",red60:"var(--color-red-60)",red50:"var(--color-red-50)",red40:"var(--color-red-40)",red30:"var(--color-red-30)",red20:"var(--color-red-20)",red10:"var(--color-red-10)",green90:"var(--color-green-90)",green80:"var(--color-green-80)",green70:"var(--color-green-70)",green60:"var(--color-green-60)",green50:"var(--color-green-50)",green40:"var(--color-green-40)",green30:"var(--color-green-30)",green20:"var(--color-green-20)",green10:"var(--color-green-10)",blue90:"var(--color-blue-90)",blue80:"var(--color-blue-80)",blue70:"var(--color-blue-70)",blue60:"var(--color-blue-60)",blue50:"var(--color-blue-50)",blue40:"var(--color-blue-40)",blue30:"var(--color-blue-30)",blue20:"var(--color-blue-20)",blue10:"var(--color-blue-10)",yellow90:"var(--color-yellow-90)",yellow80:"var(--color-yellow-80)",yellow70:"var(--color-yellow-70)",yellow60:"var(--color-yellow-60)",yellow50:"var(--color-yellow-50)",yellow40:"var(--color-yellow-40)",yellow30:"var(--color-yellow-30)",yellow20:"var(--color-yellow-20)",yellow10:"var(--color-yellow-10)",blackAlpha5:"rgba(0, 0, 0, 0.05)",blackAlpha10:"rgba(0, 0, 0, 0.1)",blackAlpha20:"rgba(0, 0, 0, 0.2)"},Ma={core:Ra,bg:{default:"var(--background-color-default)",brandPrimary:"var(--background-color-brandPrimary)",brandPrimaryHover:"var(--background-color-brandPrimary-hover)",brandPrimaryActive:"var(--background-color-brandPrimary-active)",brandSecondary:"var(--background-color-brandSecondary)",brandSecondaryHover:"var(--background-color-brandSecondary-hover)",brandSecondaryActive:"var(--background-color-brandSecondary-active)",brandTertiary:"var(--background-color-brandTertiary)",brandTertiaryHover:"var(--background-color-brandTertiary-hover)",brandTertiaryActive:"var(--background-color-brandTertiary-active)",negative:"var(--background-color-negative)",warning:"var(--background-color-warning)",positive:"var(--background-color-positive)",inset:"var(--background-color-inset)",backdrop:Ra.blackAlpha20},text:{strong:"var(--text-color-strong)",default:"var(--text-color-default)",subtle:"var(--text-color-subtle)",disabled:"var(--text-color-disabled)",negative:"var(--text-color-negative)",warning:"var(--text-color-warning)",positive:"var(--text-color-positive)",onBrandPrimary:"var(--text-color-onBrandPrimary)",onBrandSecondary:"var(--text-color-onBrandSecondary)",onBrandTertiary:"var(--text-color-onBrandTertiary)"},icon:{default:"var(--stroke-default)",strong:"var(--stroke-strong)",subtle:"var(--stroke-subtle)",disabled:"var(--stroke-disabled)",negative:"var(--stroke-negative)",warning:"var(--stroke-warning)",positive:"var(--stroke-positive)",onBrandPrimary:"var(--stroke-onBrandPrimary)",onBrandSecondary:"var(--stroke-onBrandSecondary)",onBrandTertiary:"var(--stroke-onBrandTertiary)"},border:{default:"var(--border-color-default)",defaultHover:"var(--border-color-default-hover)",defaultSelected:"var(--border-color-default-selected)",strong:"var(--border-color-strong)",subtle:"var(--border-color-subtle)",negative:"var(--border-color-negative)",warning:"var(--border-color-warning)",positive:"var(--border-color-positive)"}};function w(e){return a=>e(a)}function Ba(e){return a=>e(a)}var r=e=>`${e/16}rem`;var Y=Ba(({colors:e,radii:a,typography:t,spacing:o})=>({width:"100%",minWidth:0,appearance:"none",paddingLeft:o["4x"],paddingRight:o["4x"],border:`1px solid ${e.border.default}`,borderRadius:a.sm,backgroundColor:e.bg.default,color:e.text.default,WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent","&::-webkit-date-and-time-value":{textAlign:"left"},alignItems:"center",...t.body.md,"&::placeholder":{color:e.text.disabled},"&:hover":{borderColor:e.border.defaultHover},"&:focus":{outline:0,borderColor:e.border.defaultSelected,boxShadow:`0 0 0 1px ${e.border.defaultSelected}`},'&[aria-invalid="true"]':{borderColor:e.border.negative,"&:focus":{boxShadow:`0 0 0 1px ${e.border.negative}`}},"&[disabled], &:disabled, &[data-disabled]":{opacity:.4,borderColor:e.border.default},transitionProperty:"opacity, border-color, box-shadow",transitionDuration:"120ms",transitionTimingFunction:"ease"}));var Ke={"0x":r(0),"1x":r(4),"2x":r(8),"3x":r(12),"4x":r(16),"5x":r(20),"6x":r(24),"8x":r(32),"10x":r(40),"12x":r(48),"14x":r(56),"16x":r(64),"20x":r(80),"24x":r(96)};var Da={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800};var Aa={...Ke,112:r(112),128:r(128),144:r(144),160:r(160),176:r(176),192:r(192),224:r(224),256:r(256),288:r(288),320:r(320),384:r(384),448:r(448),512:r(512),576:r(576),672:r(672),768:r(768),896:r(896),1024:r(1024)};var Fa={none:"0px","2xs":"6px",xs:"8px",sm:"12px",md:"16px",lg:"24px",xl:"32px","2xl":"48px",full:"9999px"};var Oa={none:"none",sm:"0px 0.9px 2.1px 0px rgba(0, 0, 0, 0.0197), 0px 2.1px 5px 0px rgba(0, 0, 0, 0.0283), 0px 3.9px 9.4px 0px rgba(0, 0, 0, 0.035)",md:"0px 0.9px 2.1px 0px rgba(0, 0, 0, 0.0197), 0px 2.1px 5px 0px rgba(0, 0, 0, 0.0283), 0px 3.9px 9.4px 0px rgba(0, 0, 0, 0.035), 0px 7px 16.8px 0px rgba(0, 0, 0, 0.0417)",lg:"0px 0.9px 2.1px 0px rgba(0, 0, 0, 0.0197), 0px 2.1px 5px 0px rgba(0, 0, 0, 0.0283), 0px 3.9px 9.4px 0px rgba(0, 0, 0, 0.035), 0px 7px 16.8px 0px rgba(0, 0, 0, 0.0417), 0px 13px 31.3px 0px rgba(0, 0, 0, 0.0503)",xl:"0px 0.9px 2.1px 0px rgba(0, 0, 0, 0.0197), 0px 2.1px 5px 0px rgba(0, 0, 0, 0.0283), 0px 3.9px 9.4px 0px rgba(0, 0, 0, 0.035), 0px 7px 16.8px 0px rgba(0, 0, 0, 0.0417), 0px 13px 31.3px 0px rgba(0, 0, 0, 0.0503), 0px 31px 75px 0px rgba(0, 0, 0, 0.07)"};var I={display:"var(--font-family-semi-mono),Helvetica,-apple-system,Arial, sans-serif",sans:"var(--font-family-sans),Helvetica,-apple-system,Arial,sans-serif"},qa={display:{"3xl":{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(80),lineHeight:r(80),letterSpacing:"-0.06em",fontFeatureSettings:"'ss05' on"},"2xl":{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(72),lineHeight:r(72),letterSpacing:"-0.06em",fontFeatureSettings:"'ss05' on"},xl:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(64),lineHeight:r(64),letterSpacing:"-0.05em",fontFeatureSettings:"'ss05' on"},lg:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(56),lineHeight:r(56),letterSpacing:"-0.05em",fontFeatureSettings:"'ss05' on"},md:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(48),lineHeight:r(48),letterSpacing:"-0.04em",fontFeatureSettings:"'ss05' on"},sm:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(40),lineHeight:r(44),letterSpacing:"-0.04em",fontFeatureSettings:"'ss05' on"},xs:{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(32),lineHeight:r(36),letterSpacing:"-0.03em",fontFeatureSettings:"'ss05' on"},"2xs":{fontFamily:I.display,fontWeight:"var(--font-weight-bold)",fontSize:r(28),lineHeight:r(32),letterSpacing:"-0.03em",fontFeatureSettings:"'ss05' on"}},title:{lg:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(32),lineHeight:r(36),letterSpacing:"-0.02em"},md:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(24),lineHeight:r(28),letterSpacing:"-0.02em"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(20),lineHeight:r(24),letterSpacing:"-0.02em"},xs:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(18),lineHeight:r(22),letterSpacing:"-0.015em"},"2xs":{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(16),lineHeight:r(20),letterSpacing:"-0.01em"},"3xs":{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(14),lineHeight:r(18),letterSpacing:"-0.005em"}},body:{xl:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(20),lineHeight:r(28),letterSpacing:"-0.02em"},lg:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(18),lineHeight:r(26),letterSpacing:"-0.02em"},md:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(16),lineHeight:r(24),letterSpacing:"-0.01em"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(14),lineHeight:r(20),letterSpacing:"-0.01em"},xs:{fontFamily:I.sans,fontWeight:"var(--font-weight-normal)",fontSize:r(12),lineHeight:r(16),letterSpacing:"0"}},label:{md:{fontFamily:I.sans,fontWeight:"var(--font-weight-medium)",fontSize:r(16),lineHeight:r(20),letterSpacing:"-0.02em"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-medium)",fontSize:r(14),lineHeight:r(18),letterSpacing:"-0.01em"}},button:{md:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(16),lineHeight:r(18),letterSpacing:"-0.01em"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(14),lineHeight:r(16),letterSpacing:"-0.01em"}},caption:{md:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(12),lineHeight:r(12),letterSpacing:"0"},sm:{fontFamily:I.sans,fontWeight:"var(--font-weight-bold)",fontSize:r(10),lineHeight:r(10),letterSpacing:"0"}}};var j={spacing:Ke,breakpoints:_e,zIndices:Da,colors:Ma,sizes:Aa,radii:Fa,shadows:Oa,typography:qa};var Yt={smUp:`@media(min-width: ${j.breakpoints.sm}px)`,mdUp:`@media(min-width: ${j.breakpoints.md}px)`,lgUp:`@media(min-width: ${j.breakpoints.lg}px)`,xlUp:`@media(min-width: ${j.breakpoints.xl}px)`,"2xlUp":`@media(min-width: ${j.breakpoints["2xl"]}px)`},D={...j,mediaQueries:Yt};var la=e=>Object.keys(e);var eo=e=>{let a=Object.assign({},D.typography);return la(a).forEach(t=>{let o=e[t];if(o){let d=a[t];la(d).forEach(s=>{d[s].fontFamily=o.fontFamily||d[s].fontFamily,d[s].fontWeight=o.fontWeight||d[s].fontWeight})}}),a},Ha=e=>{let a=D.typography;return e.typography&&(a=eo(e.typography)),{...D,typography:a}};import{createContext as ao,useContext as to}from"react";import{jsx as oo}from"react/jsx-runtime";var Ua=ao(void 0);function za({language:e,children:a}){return oo(Ua.Provider,{value:{currentLanguage:e},children:a})}function Ea(){let e=to(Ua);if(!e)throw new Error("useLocale must be used within a LocaleProvider");return e}import{Toast as Ja}from"radix-ui";import{useSyncExternalStore as Lr}from"react";import xr from"@emotion/styled";import{AnimatePresence as Ir}from"motion/react";import{flushSync as ro}from"react-dom";var sa=class{toasts;subscribers;id;constructor(){this.subscribers=[],this.toasts=[],this.id=0}subscribe=a=>(this.subscribers.push(a),()=>{let t=this.subscribers.indexOf(a);this.subscribers.splice(t,1)});notify=()=>{this.subscribers.forEach(a=>a())};add=a=>{this.id=this.id+1;let t=a.id??this.id;return a.id&&(this.toasts=this.toasts.filter(o=>o.id!==t),ro(()=>{this.notify()})),this.toasts=[...this.toasts,{...a,id:t}],this.notify(),t};addNeutral=(a,t)=>this.add({text:a,variant:"neutral",...t});addError=(a,t)=>this.add({text:a,variant:"error",...t});remove=a=>{this.toasts=[...this.toasts.filter(t=>t.id!==a)],this.notify()};removeAll=()=>{this.toasts=[],this.notify()};getSnapshot=()=>this.toasts},q=new sa,lo=Object.assign(q.addNeutral,{error:q.addError,remove:q.remove,removeAll:q.removeAll});import{Toast as $a}from"radix-ui";import ia from"@emotion/styled";import{motion as fr}from"motion/react";import so from"@emotion/styled";import{Children as uo,forwardRef as fo}from"react";import{jsx as Wa}from"react/jsx-runtime";var io=so.svg(({theme:e,color:a="default"})=>({color:a==="currentColor"?"currentcolor":e.colors.icon[a],display:"inline-block",lineHeight:"1em"})),ua=e=>{let{viewBox:a,d:t,displayName:o="UnnamedIcon"}=e,d=uo.toArray(e.path),s=fo((u,f)=>{let{size:n=24,...c}=u;return Wa(io,{ref:f,xmlns:"http://www.w3.org/2000/svg",width:n,height:n,focusable:"false",viewBox:a,fill:"currentColor",...c,children:d.length?d:Wa("path",{fill:"currentColor",d:t})})});return s.displayName=o,s};import{useTheme as no}from"@emotion/react";import{forwardRef as co}from"react";import{jsx as po}from"react/jsx-runtime";var i=e=>{let a=co(({size:t=24,color:o="default",...d},s)=>{let u=no(),f=o==="currentColor"?"currentcolor":u.colors.icon[o];return po(e,{ref:s,size:t,color:f,...d})});return a.displayName=e.displayName,a};import{forwardRef as xo,createElement as Io}from"react";var Ga=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mo=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),fa=e=>{let a=mo(e);return a.charAt(0).toUpperCase()+a.slice(1)},Qe=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim(),Va=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};import{forwardRef as Lo,createElement as Xa}from"react";var Na={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var _a=Lo(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:d="",children:s,iconNode:u,...f},n)=>Xa("svg",{ref:n,...Na,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:Qe("lucide",d),...!s&&!Va(f)&&{"aria-hidden":"true"},...f},[...u.map(([c,x])=>Xa(c,x)),...Array.isArray(s)?s:[s]]));var l=(e,a)=>{let t=xo(({className:o,...d},s)=>Io(_a,{ref:s,iconNode:a,className:Qe(`lucide-${Ga(fa(e))}`,`lucide-${e}`,o),...d}));return t.displayName=fa(e),t};var go=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],le=l("arrow-down",go);var ho=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],se=l("arrow-left",ho);var Co=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ue=l("arrow-right",Co);var So=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],fe=l("arrow-up",So);var yo=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],ie=l("bell-off",yo);var Po=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],ne=l("bell",Po);var bo=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],ce=l("bookmark",bo);var ko=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],pe=l("calendar",ko);var wo=[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],me=l("camera",wo);var vo=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],H=l("check",vo);var To=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Le=l("chevron-down",To);var Ro=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],xe=l("chevron-left",Ro);var Mo=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ie=l("chevron-right",Mo);var Bo=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],ge=l("chevron-up",Bo);var Do=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],z=l("circle-alert",Do);var Ao=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],E=l("circle-check",Ao);var Fo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],W=l("circle-help",Fo);var Oo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],G=l("circle-x",Oo);var qo=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],V=l("ellipsis-vertical",qo);var Ho=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],N=l("ellipsis",Ho);var Uo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],he=l("globe",Uo);var zo=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Ce=l("heart",zo);var Eo=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Se=l("history",Eo);var Wo=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],X=l("house",Wo);var Go=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ye=l("image",Go);var Vo=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Pe=l("info",Vo);var No=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M10 18h4",key:"1ulq68"}]],be=l("list-filter",No);var Xo=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],ke=l("list",Xo);var _o=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],we=l("log-out",_o);var Ko=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],ve=l("map-pin",Ko);var Qo=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Te=l("map",Qo);var Zo=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],Re=l("menu",Zo);var $o=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],Me=l("message-circle",$o);var Jo=[["path",{d:"M5 12h14",key:"1ays0h"}]],Be=l("minus",Jo);var jo=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],_=l("pen",jo);var Yo=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],De=l("plus",Yo);var er=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ae=l("search",er);var ar=[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Fe=l("settings-2",ar);var tr=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Oe=l("settings",tr);var or=[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["polyline",{points:"16 6 12 2 8 6",key:"m901s6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15",key:"1p0rca"}]],qe=l("share",or);var rr=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],He=l("star",rr);var dr=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],Ue=l("trash-2",dr);var lr=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],K=l("triangle-alert",lr);var sr=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],A=l("user-round",sr);var ur=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ze=l("x",ur);var Ka=i(z),Hn=i(K),Un=i(le),zn=i(se),En=i(ue),Wn=i(fe),Gn=i(ne),Vn=i(ie),Nn=i(ce),Xn=i(pe),_n=i(me),Kn=i(E),Qn=i(H),Qa=i(Le),Zn=i(xe),$n=i(Ie),Jn=i(ge),jn=i(he),Yn=ua({viewBox:"0 0 24 24",d:"M2.90381 3.90381C4.12279 2.68482 5.77609 2 7.5 2C8.48018 2 9.37318 2.14018 10.2468 2.52068C10.8597 2.78762 11.4321 3.15937 12 3.63935C12.5679 3.15937 13.1403 2.78762 13.7532 2.52068C14.6268 2.14018 15.5198 2 16.5 2C18.2239 2 19.8772 2.68482 21.0962 3.90381C22.3152 5.12279 23 6.77609 23 8.5C23 11.2418 21.1906 13.2531 19.7035 14.7107L12.7071 21.7071C12.3166 22.0976 11.6834 22.0976 11.2929 21.7071L4.29885 14.7131C2.79442 13.258 1 11.2494 1 8.5C1 6.77609 1.68482 5.12279 2.90381 3.90381Z",displayName:"HeartFilledIcon"}),ec=i(Ce),ac=i(W),tc=i(Se),oc=i(X),rc=i(ye),dc=i(Pe),lc=i(ke),sc=i(be),uc=i(we),fc=i(Te),ic=i(ve),nc=i(Re),cc=i(Me),pc=i(Be),mc=i(N),Lc=i(V),xc=i(_),Ic=i(De),gc=i(Ae),hc=i(Oe),Cc=i(qe),Sc=i(Fe),yc=ua({viewBox:"0 0 24 24",d:"M12 1C12.3806 1 12.7282 1.21607 12.8967 1.55738L15.7543 7.34647L22.1446 8.28051C22.5212 8.33555 22.8339 8.59956 22.9512 8.96157C23.0686 9.32358 22.9703 9.72083 22.6977 9.98636L18.0745 14.4894L19.1656 20.851C19.23 21.2261 19.0757 21.6053 18.7677 21.8291C18.4598 22.0528 18.0515 22.0823 17.7145 21.9051L12 18.8998L6.28545 21.9051C5.94853 22.0823 5.54024 22.0528 5.23226 21.8291C4.92429 21.6053 4.77004 21.2261 4.83439 20.851L5.92548 14.4894L1.30227 9.98636C1.02965 9.72083 0.931375 9.32358 1.04875 8.96157C1.16613 8.59956 1.47881 8.33555 1.85537 8.28051L8.24574 7.34647L11.1033 1.55738C11.2718 1.21607 11.6194 1 12 1Z",displayName:"StarFilledIcon"}),Pc=i(He),bc=i(Ue),kc=i(A),wc=i(G),vc=i(ze);var Za=w(({colors:e})=>({neutral:{background:e.core.black,color:e.core.white},error:{background:e.bg.negative,color:e.core.white}}));import{jsx as Ze,jsxs as mr}from"react/jsx-runtime";var ir=ia(fr.div)(({theme:e,variant:a})=>({borderRadius:e.radii.md,paddingInline:e.spacing["4x"],paddingBlock:e.spacing["3x"],display:"flex",flexDirection:"row",gap:e.spacing["3x"],boxShadow:e.shadows.lg,...Za(e)[a]})),nr=ia($a.Title)(({theme:e})=>({...e.typography.label.md})),cr=ia.div({marginTop:1,flexShrink:0}),pr={neutral:void 0,error:Ka};function na(e){let{text:a,variant:t="neutral",...o}=e,d=pr[t];return Ze($a.Root,{asChild:!0,forceMount:!0,...o,children:mr(ir,{variant:t,layout:!0,initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0},transition:{y:{type:"spring",bounce:.1}},children:[d&&Ze(cr,{children:Ze(d,{size:16,color:"onBrandSecondary"})}),Ze(nr,{children:a})]})})}import{jsx as $e,jsxs as hr}from"react/jsx-runtime";var gr=xr.div(({theme:e})=>({position:"fixed",bottom:e.spacing["12x"],left:"50%",transform:"translateX(-50%)",zIndex:e.zIndices.toast,display:"flex",flexDirection:"column",gap:e.spacing["2x"],width:`calc(100vw - ${e.spacing["8x"]})`,[e.mediaQueries.smUp]:{width:e.sizes[320]}}));function ja({children:e}){let a=Lr(q.subscribe,q.getSnapshot,q.getSnapshot);return hr(Ja.Provider,{children:[e,$e(Ir,{children:a.map(({id:t,text:o,variant:d})=>$e(na,{text:o,variant:d,onOpenChange:s=>{s||q.remove(t)}},t))}),$e(Ja.Viewport,{asChild:!0,children:$e(gr,{})})]})}import{jsx as Je}from"react/jsx-runtime";var Pr=yr({key:"qds"});function br({children:e,themeOverrides:a,emotionCache:t,locale:o}){let d=a?Ha(a):D;return Je(za,{language:o||"en",children:Je(Sr,{value:t||Pr,children:Je(Cr,{theme:d,children:Je(ja,{children:e})})})})}import vr from"@emotion/is-prop-valid";import Ee from"@emotion/styled";import{Avatar as ca}from"radix-ui";import{forwardRef as Tr}from"react";function kr(e){return e&&typeof e=="object"&&"base"in e}var wr=e=>Object.entries(e),m=(e,a)=>{if(!kr(e))return a(e);let{base:t,...o}=e,d=a(t);return wr(o).forEach(([s,u])=>{let f=D.mediaQueries[`${s}Up`];u&&(d={...d,[f]:a(u)})}),d};import{jsx as je,jsxs as Ur}from"react/jsx-runtime";var Ya={xs:32,sm:40,md:48,lg:64,xl:96,"2xl":128},Rr={xs:14,sm:16,md:20,lg:32,xl:48,"2xl":64},Mr={xs:12,sm:16,md:20,lg:28,xl:40,"2xl":56},Br=e=>{let a=e.trim().split(/\s+/),t=a[0],o=a.length>1?a[a.length-1]:"";return`${t.charAt(0)}${o.charAt(0)}`.toUpperCase()},Dr=Ee(ca.Root)(({theme:e,size:a})=>({...m(a,t=>({width:Ya[t],height:Ya[t]})),flexShrink:0,borderRadius:e.radii.full,background:e.colors.core.gray20,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center",boxShadow:`0 0 0 1px ${e.colors.core.blackAlpha5}`,color:e.colors.text.subtle})),Ar=Ee(ca.Image)({width:"100%",height:"100%",objectFit:"cover"}),Fr=Ee(ca.Fallback)(({theme:e})=>({color:e.colors.text.subtle})),Or=Ee.span(({avatarSize:e})=>({fontWeight:"bold",...m(e,a=>({fontSize:Mr[a]})),paddingTop:"0.08em",display:"block",userSelect:"none"})),qr=e=>Math.round(e*100)/100,Hr=Ee(A,{shouldForwardProp:vr})(({avatarSize:e})=>({...m(e,a=>{let t=Rr[a];return{width:t,height:t,...t<24&&{strokeWidth:qr(24/t*2)}}})})),sp=Tr((e,a)=>{let{src:t,name:o,size:d="md",imageAlt:s,...u}=e;return Ur(Dr,{ref:a,size:d,...u,children:[je(Ar,{src:t,alt:s??o}),je(Fr,{delayMs:t?200:void 0,children:o?je(Or,{avatarSize:d,children:Br(o)}):je(Hr,{avatarSize:d,role:"img","aria-label":o})})]})});import ga from"@emotion/styled";import{forwardRef as Qr}from"react";import Zr from"@emotion/is-prop-valid";import{keyframes as zr}from"@emotion/react";import at from"@emotion/styled";import{forwardRef as Er}from"react";import{jsx as ma,jsxs as Xr}from"react/jsx-runtime";var Wr=1200,et=160,Gr=w(()=>({sm:{fontSize:r(8)},md:{fontSize:r(16)}})),Vr=at.span(({theme:e,size:a})=>({color:e.colors.core.brown,display:"inline-flex",...m(a,t=>Gr(e)[t]),gap:r(6)})),Nr=zr({"0%, 80%, 100%":{transform:"scale(0)"},"40%":{transform:"scale(1)"}}),pa=at.span({display:"block",width:"1em",height:"1em",background:"currentColor",borderRadius:999,animationDuration:`${Wr}ms`,animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationFillMode:"both","&:nth-of-type(2)":{animationDelay:`${et}ms`},"&:nth-of-type(3)":{animationDelay:`${et*2}ms`},animationName:Nr}),tt=Er((e,a)=>{let{size:t="md",...o}=e;return Xr(Vr,{ref:a,size:t,...o,children:[ma(pa,{}),ma(pa,{}),ma(pa,{})]})});var La=":not([disabled])",ot=w(({typography:e,spacing:a})=>({xs:{height:r(32),paddingLeft:a["4x"],paddingRight:a["4x"],...e.button.sm},sm:{height:r(40),paddingLeft:a["5x"],paddingRight:a["5x"],...e.button.sm},md:{height:r(48),paddingLeft:a["6x"],paddingRight:a["6x"],...e.button.md},lg:{height:r(56),paddingLeft:a["8x"],paddingRight:a["8x"],...e.button.md},xl:{height:r(64),paddingLeft:a["8x"],paddingRight:a["8x"],...e.button.md}})),rt=w(({colors:e})=>({primary:{background:e.bg.brandPrimary,color:e.text.onBrandPrimary,[La]:{"@media(hover: hover)":{":hover":{background:e.bg.brandPrimaryHover}},":active":{background:e.bg.brandPrimaryActive}}},secondary:{background:e.bg.brandSecondary,color:e.text.onBrandSecondary,[La]:{"@media(hover: hover)":{":hover":{background:e.bg.brandSecondaryHover}},":active":{background:e.bg.brandSecondaryActive}}},tertiary:{background:e.bg.brandTertiary,color:e.text.onBrandTertiary,[La]:{"@media(hover: hover)":{":hover":{background:e.bg.brandTertiaryHover}},":active":{background:e.bg.brandTertiaryActive}}}}));import lt from"@emotion/styled";import{jsx as dt}from"react/jsx-runtime";var st=e=>Math.round(e*100)/100,ut={xs:16,sm:16,md:20,lg:20,xl:20},ft={xs:"2x",sm:"3x",md:"3x",lg:"4x",xl:"4x"},it={xs:"1x",sm:"1x",md:"1x",lg:"2x",xl:"2x"},_r=lt.span(({theme:e,buttonSize:a})=>({flexShrink:0,...m(a,t=>{let o=ut[t];return{marginLeft:`-${e.spacing[it[t]]}`,marginRight:e.spacing[ft[t]],"> svg":{width:o,height:o,...o<24&&{strokeWidth:st(24/o*2)}}}})})),Kr=lt.span(({theme:e,buttonSize:a})=>({flexShrink:0,...m(a,t=>{let o=ut[t];return{marginRight:`-${e.spacing[it[t]]}`,marginLeft:e.spacing[ft[t]],"> svg":{width:o,height:o,...o<24&&{strokeWidth:st(24/o*2)}}}})}));function xa({buttonSize:e,icon:a,placement:t}){return dt(t==="left"?_r:Kr,{buttonSize:e,children:dt(a,{"aria-hidden":"true",color:"currentColor"})})}import{jsx as Ia,jsxs as nt}from"react/jsx-runtime";var $r=ga("button",{shouldForwardProp:Zr})(({theme:e,size:a,variant:t,isFullWidth:o})=>({borderRadius:e.radii.full,display:"inline-flex",justifyContent:"center",alignItems:"center",position:"relative",flexShrink:0,WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",userSelect:"none",transitionProperty:"box-shadow, transform, opacity, background-color, color",transitionDuration:"150ms",transitionTimingFunction:"ease","&[disabled]":{opacity:.4},"&:not([disabled]):active":{transform:"scale(0.97)"},...m(a,d=>ot(e)[d]),...rt(e)[t],...o&&{width:"100%"}})),Jr=ga(tt)({position:"absolute",color:"currentColor"}),jr=ga.span(({isHidden:e})=>({opacity:e?0:1,display:"flex",alignItems:"center"})),Mp=Qr((e,a)=>{let{as:t,children:o,type:d=t?void 0:"button",size:s="md",variant:u="secondary",isFullWidth:f=!1,isLoading:n=!1,isDisabled:c=!1,disabled:x,iconLeft:C,iconRight:g,...L}=e;return nt($r,{as:t,ref:a,variant:u,size:s,isFullWidth:f,disabled:c||x||n,type:d,...L,children:[nt(jr,{isHidden:n,children:[C&&Ia(xa,{buttonSize:s,icon:C,placement:"left"}),o,g&&Ia(xa,{buttonSize:s,icon:g,placement:"right"})]}),n&&Ia(Jr,{size:"sm","data-testid":"button-spinner"})]})});import Yr from"@emotion/styled";import ed from"@emotion/is-prop-valid";import{forwardRef as ad}from"react";import{jsx as od}from"react/jsx-runtime";var td=Yr("h2",{shouldForwardProp:ed})(({theme:e,size:a,textAlign:t,textWrap:o})=>({margin:0,...m(a,d=>e.typography.display[d]),color:e.colors.text.default,textAlign:t,textWrap:o,overflowWrap:"break-word",wordWrap:"break-word"})),Hp=ad((e,a)=>{let{as:t,children:o,size:d="md",textAlign:s="left",textWrap:u="pretty",...f}=e;return od(td,{as:t,ref:a,size:d,textAlign:s,textWrap:u,...f,children:o})});import We from"@emotion/styled";import{forwardRef as pd}from"react";import{Checkbox as gt}from"radix-ui";import{useEffect as rd,useState as dd}from"react";var ct=Object.entries(D.breakpoints).map(([e,a])=>({name:e,breakpoint:a})),mt=ct.map(({name:e,breakpoint:a},t)=>{let o=ct?.[t+1]?.breakpoint,d=o?`(min-width: ${a}px) and (max-width: ${o-1}px)`:`(min-width: ${a}px)`;return{name:e,media:d}}),pt=()=>mt.find(({media:a})=>window.matchMedia(a).matches)?.name||"base";function Lt(e){let{ssr:a=!1}=e||{},t=a?"base":pt,[o,d]=dd(t);return rd(()=>{let s=mt.map(({media:f})=>window.matchMedia(f)),u=()=>{d(pt())};return u(),s.forEach(f=>{typeof f.addListener=="function"?f.addListener(u):f.addEventListener("change",u)}),()=>{s.forEach(f=>{typeof f.addListener=="function"?f.removeListener(u):f.removeEventListener("change",u)})}},[]),{currentBreakpoint:o}}function Xp(e,a){let{currentBreakpoint:t}=Lt(a),o;if(t in e)o=e[t];else{let d=Object.keys(_e),s=d.indexOf(t);for(let u=s;u>=0;u--){let f=d[u];if(f in e){o=e[f];break}}}return o}import{useCallback as ea}from"react";import sd,{useState as ud}from"react";import{useLayoutEffect as ld}from"react";var Ye=globalThis?.document?ld:()=>{};var fd=sd.useId||(()=>{}),id=0;function v(e){let[a,t]=ud(fd());return Ye(()=>{e||t(o=>o??String(id++))},[e]),e||(a?`qds-${a}`:"")}var ee=e=>{let{id:a,isDisabled:t,helperText:o,errorMessage:d,isInvalid:s,isRequired:u}=e,f=v(a),n=`${f}-error`,c=`${f}-helper`,x=ea(p=>({...p,htmlFor:f,"data-disabled":t?"":void 0}),[f,t]),C=ea(p=>({...p,id:c,"data-disabled":t?"":void 0}),[c,t]),g=ea(p=>({...p,id:n,"aria-live":"polite"}),[n]),L=ea(p=>{let S=[];return d&&s?S.push(n):o&&S.push(c),p?.["aria-describedby"]&&S.push(p["aria-describedby"]),{...p,"aria-describedby":S.join(" ")||void 0,id:p?.id??f,isDisabled:t,isRequired:u,"aria-invalid":s?!0:void 0}},[d,n,o,c,f,t,s,u]);return{getLabelProps:x,getFieldProps:L,getHelperTextProps:C,getErrorMessageProps:g}};var R=e=>e?"":void 0,Q=e=>e?"true":void 0;import ha from"@emotion/styled";import{jsx as cd}from"react/jsx-runtime";var nd=ha.div(({theme:e})=>({position:"relative",display:"flex",flexDirection:"column",gap:e.spacing["2x"],width:"100%"}));function ae({children:e}){return cd(nd,{role:"group",children:e})}var F=ha.div(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.negative})),O=ha.span(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.subtle,"&[data-disabled]":{opacity:.4}}));import{jsx as Z,jsxs as It}from"react/jsx-runtime";var md=We.div({width:"100%",display:"flex",flexDirection:"column"}),Ld=We.label(({theme:e})=>({width:"100%",display:"grid",gridTemplateColumns:"auto 1fr",alignItems:"start",gap:e.spacing["3x"],position:"relative",cursor:"pointer",WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",'&:has([role="checkbox"][data-disabled])':{cursor:"not-allowed"}})),xd=We(gt.Root)(({theme:e})=>({position:"relative",WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",marginTop:r(1),display:"flex",justifyContent:"center",alignItems:"center",width:r(20),height:r(20),flexShrink:0,border:"2px solid",borderColor:e.colors.border.strong,borderRadius:e.radii["2xs"],color:"transparent",transitionProperty:"background-color, color",transitionDuration:"80ms",transitionTimingFunction:"ease",'&[data-state="checked"]':{backgroundColor:e.colors.border.strong,color:e.colors.core.brown,'&[aria-invalid="true"]':{borderColor:e.colors.border.negative}},'&[data-state="unchecked"]':{backgroundColor:e.colors.bg.default,"@media(hover: hover)":{"&:hover":{backgroundColor:e.colors.bg.inset,color:e.colors.core.gray20}},'&[aria-invalid="true"]':{borderColor:e.colors.border.negative}},"&[data-disabled], &:disabled, &[disabled]":{opacity:.4,'&[data-state="unchecked"]':{backgroundColor:e.colors.bg.default,"&:hover":{color:"transparent"}},'&[data-state="checked"]':{backgroundColor:e.colors.border.strong}}})),Id=We.span(({theme:e})=>({...e.typography.body.md,"&[data-disabled], &:disabled":{opacity:.4,cursor:"not-allowed"}})),xt=We.div(({theme:e})=>({display:"flex",marginLeft:e.spacing["8x"]})),pm=pd((e,a)=>{let{label:t,helperText:o,id:d,defaultChecked:s,isDefaultChecked:u,isChecked:f,checked:n,isDisabled:c,disabled:x,isRequired:C,required:g,isInvalid:L,errorMessage:p,"aria-labelledby":S,"aria-describedby":y,...h}=e,b=v(d),k=`${b}-label`,M=u??s,P=f??n,T=c??x,U=C??g,B=[k,S].filter(Boolean).join(" "),Xe=!!o?`${b}-helper`:void 0,ra=o&&Z(xt,{children:Z(O,{id:Xe,"data-disabled":R(T),children:o})}),da=L&&p,va=da?`${b}-error`:void 0,Jt=da&&Z(xt,{children:Z(F,{id:va,role:"alert","aria-live":"polite",children:p})}),jt=[va,!da&&Xe,y].filter(Boolean).join(" ")||void 0;return It(md,{children:[It(Ld,{children:[Z(xd,{id:b,ref:a,defaultChecked:M,checked:P,disabled:T,required:U,"aria-invalid":Q(L),"aria-labelledby":B,"aria-describedby":jt,...h,children:Z(gt.Indicator,{forceMount:!0,children:Z(H,{size:12,strokeWidth:3,absoluteStrokeWidth:!0,"aria-hidden":"true",role:"presentation"})})}),Z(Id,{id:k,"data-disabled":R(T),onMouseDown:Ta=>{Ta.detail>1&&Ta.preventDefault()},children:t})]}),Jt||ra]})});import gd from"@emotion/styled";import{forwardRef as hd}from"react";import{jsx as Sd}from"react/jsx-runtime";var Cd=gd.span(({theme:e,orientation:a})=>{let t=a==="horizontal"?"borderTop":"borderLeft";return{display:"block",[a==="horizontal"?"width":"height"]:"100%",flexShrink:0,[t]:`1px solid ${e.colors.border.default}`}}),gm=hd((e,a)=>{let{orientation:t="horizontal",...o}=e;return Sd(Cd,{ref:a,orientation:t,role:"separator",...o})});import{DropdownMenu as Xd}from"radix-ui";import{keyframes as $}from"@emotion/react";import yd from"@emotion/styled";import{DropdownMenu as Ct}from"radix-ui";import{forwardRef as Pd}from"react";import{jsx as ht}from"react/jsx-runtime";var bd=$({"0%":{opacity:0,transform:"translateY(4px) scale(0.94)"},"100%":{opacity:1,transform:"translateY(0)"}}),kd=$({"0%":{opacity:0,transform:"translateX(-4px) scale(0.94)"},"100%":{opacity:1,transform:"translateX(0)"}}),wd=$({"0%":{opacity:0,transform:"translateY(-4px) scale(0.94)"},"100%":{opacity:1,transform:"translateY(0)"}}),vd=$({"0%":{opacity:0,transform:"translateX(4px) scale(0.94)"},"100%":{opacity:1,transform:"translateX(0)"}}),Td=$({"0%":{opacity:1,transform:"translateY(0px)"},"100%":{opacity:0,transform:"translateY(-4px) scale(0.94)"}}),Rd=$({"0%":{opacity:1,transform:"translateX(0px)"},"100%":{opacity:0,transform:"translateX(4px) scale(0.94)"}}),Md=$({"0%":{opacity:1,transform:"translateY(0)"},"100%":{opacity:0,transform:"translateY(4px) scale(0.94)"}}),Bd=$({"0%":{opacity:1,transform:"translateX(0)"},"100%":{opacity:0,transform:"translateX(-4px) scale(0.94)"}}),Dd=yd(Ct.Content)(({theme:e})=>({background:e.colors.bg.default,minWidth:e.sizes[192],maxWidth:e.sizes[288],borderRadius:e.radii.md,boxShadow:e.shadows.md,padding:e.spacing["2x"],"@media (prefers-reduced-motion: no-preference)":{transformOrigin:"var(--radix-dropdown-menu-content-transform-origin)",animationDuration:"240ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",willChange:"transform, opacity",'&[data-state="open"]':{'&[data-side="top"]':{animationName:bd},'&[data-side="right"]':{animationName:kd},'&[data-side="bottom"]':{animationName:wd},'&[data-side="left"]':{animationName:vd}},'&[data-state="closed"]':{animationDuration:"180ms",'&[data-side="top"]':{animationName:Md},'&[data-side="right"]':{animationName:Bd},'&[data-side="bottom"]':{animationName:Td},'&[data-side="left"]':{animationName:Rd}}}})),St=Pd((e,a)=>{let{children:t,sideOffset:o=8,...d}=e;return ht(Ct.Portal,{children:ht(Dd,{collisionPadding:16,ref:a,sideOffset:o,...d,children:t})})});import{forwardRef as Ad}from"react";import{DropdownMenu as Fd}from"radix-ui";import Od from"@emotion/styled";import{jsx as Hd}from"react/jsx-runtime";var qd=Od(Fd.Separator)(({theme:e})=>({height:1,background:e.colors.border.subtle,marginTop:e.spacing["1x"],marginBottom:e.spacing["1x"],marginLeft:`-${e.spacing["2x"]}`,marginRight:`-${e.spacing["2x"]}`})),yt=Ad((e,a)=>Hd(qd,{ref:a,...e}));import{forwardRef as Ud}from"react";import{DropdownMenu as zd}from"radix-ui";import bt from"@emotion/styled";import{jsx as Pt,jsxs as Gd}from"react/jsx-runtime";var Ed=bt(zd.Item)(({theme:e})=>({...e.typography.label.sm,color:e.colors.text.default,height:r(40),borderRadius:e.radii.xs,display:"flex",alignItems:"center",gap:e.spacing["3x"],paddingLeft:e.spacing["3x"],paddingRight:e.spacing["3x"],cursor:"pointer",outline:"none",userSelect:"none","&[data-highlighted]":{background:e.colors.core.gray10},":focus-visible":{boxShadow:`0 0 0 2px ${e.colors.border.defaultSelected}`},":not([data-disabled])":{":active":{background:e.colors.core.gray20}},"&[data-disabled]":{opacity:.4,cursor:"not-allowed"}})),Wd=bt.span({textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),kt=Ud((e,a)=>{let{children:t,disabled:o,isDisabled:d,icon:s,...u}=e;return Gd(Ed,{ref:a,disabled:o||d,...u,children:[s&&Pt(s,{color:"default",size:16,"aria-hidden":!0}),Pt(Wd,{children:t})]})});import{DropdownMenu as Vd}from"radix-ui";import{forwardRef as Nd}from"react";import{jsx as wt}from"react/jsx-runtime";var vt=Nd((e,a)=>{let{children:t,as:o,...d}=e,s=o||"button";return wt(Vd.Trigger,{ref:a,asChild:!0,children:wt(s,{...d,children:t})})});import{jsx as Kd}from"react/jsx-runtime";function _d(e){let{children:a,isOpen:t,onOpenChange:o,defaultOpen:d=!1}=e;return Kd(Xd.Root,{defaultOpen:d,open:t,onOpenChange:o,modal:!0,children:a})}var Km=Object.assign(_d,{Trigger:vt,Content:St,Item:kt,Divider:yt});import Qd from"@emotion/styled";import Zd from"@emotion/is-prop-valid";import{forwardRef as $d}from"react";import{jsx as jd}from"react/jsx-runtime";var Jd=Qd("h2",{shouldForwardProp:Zd})(({theme:e,size:a,color:t,numberOfLines:o,textAlign:d})=>({margin:0,...m(a,s=>e.typography.title[s]),color:e.colors.text[t],textAlign:d,overflowWrap:"break-word",wordWrap:"break-word",...o&&{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,overflow:"hidden",textOverflow:"ellipsis"}})),eL=$d((e,a)=>{let{as:t,children:o,size:d="md",color:s="default",textAlign:u="left",...f}=e;return jd(Jd,{as:t,ref:a,textAlign:u,size:d,color:s,...f,children:o})});import{forwardRef as Yd}from"react";import Tt from"@emotion/styled";import{jsx as ol}from"react/jsx-runtime";var el=Tt.aside(({theme:e})=>({backgroundColor:e.colors.bg.inset,borderRadius:e.radii.md,paddingInline:e.spacing["5x"],paddingBlock:e.spacing["4x"],...e.typography.body.sm})),al=Tt.p(({theme:e})=>({...e.typography.title["3xs"],marginBottom:e.spacing["1x"]})),tl=Yd((e,a)=>{let{children:t,...o}=e;return ol(el,{ref:a,...o,children:t})}),dL=Object.assign(tl,{Title:al});import{forwardRef as rl}from"react";import dl from"@emotion/styled";import ll from"@emotion/is-prop-valid";var Ge=":not([disabled])",Rt=w(()=>({xs:{width:r(32),height:r(32)},sm:{width:r(40),height:r(40)},md:{width:r(48),height:r(48)}})),Mt=w(({colors:e})=>({primary:{background:e.bg.brandPrimary,color:e.text.onBrandPrimary,[Ge]:{"@media(hover: hover)":{":hover":{background:e.bg.brandPrimaryHover}},":active":{background:e.bg.brandPrimaryActive}}},secondary:{background:e.bg.brandSecondary,color:e.text.onBrandSecondary,[Ge]:{"@media(hover: hover)":{":hover":{background:e.bg.brandSecondaryHover}},":active":{background:e.bg.brandSecondaryActive}}},tertiary:{background:e.bg.brandTertiary,color:e.text.onBrandTertiary,[Ge]:{"@media(hover: hover)":{":hover":{background:e.bg.brandTertiaryHover}},":active":{background:e.bg.brandTertiaryActive}}},ghost:{color:e.text.default,[Ge]:{"@media(hover: hover)":{":hover":{background:e.core.blackAlpha5}},":active":{background:e.core.blackAlpha10}}},white:{background:e.bg.default,color:e.text.default,[Ge]:{"@media(hover: hover)":{":hover":{background:e.core.gray10}},":active":{background:e.core.gray20}}}}));import{jsx as Bt}from"react/jsx-runtime";var sl=e=>Math.round(e*100)/100,ul={xs:16,sm:20,md:20},fl=dl("button",{shouldForwardProp:ll})(({theme:e,size:a,variant:t})=>({borderRadius:e.radii.full,display:"inline-flex",justifyContent:"center",alignItems:"center",position:"relative",flexShrink:0,WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",userSelect:"none",transitionProperty:"box-shadow, transform, opacity, background-color, color",transitionDuration:"150ms",transitionTimingFunction:"ease","&[disabled]":{opacity:.4},"&:not([disabled]):active":{transform:"scale(0.97)"},...m(a,o=>{let d=ul[o];return{...Rt(e)[o],"> svg":{width:d,height:d,...d<24&&{strokeWidth:sl(24/d*2)}}}}),...Mt(e)[t]})),LL=rl((e,a)=>{let{as:t,icon:o,label:d,"aria-label":s=d,variant:u="white",size:f="md",type:n=t?void 0:"button",isDisabled:c=!1,...x}=e;return Bt(fl,{as:t,ref:a,"aria-label":s,variant:u,size:f,disabled:c,type:n,...x,children:Bt(o,{"aria-hidden":"true",color:"currentColor"})})});import Sa from"@emotion/styled";import{forwardRef as kl,useRef as wl,useState as vl}from"react";var il={close:"Close",optional:"Optional"},nl={close:"St\xE4ng",optional:"Valfritt"},cl={close:"Sulje",optional:"Valinnainen"},pl={close:"Fermer",optional:"Facultatif"},ml={close:"Steng",optional:"Valgfri"},Dt={en:il,sv:nl,fi:cl,fr:pl,nb:ml};function te(){let{currentLanguage:e}=Ea();return{t:t=>Dt[e][t]}}import Ll from"@emotion/styled";import xl from"@emotion/is-prop-valid";import{forwardRef as Il}from"react";import{jsx as Cl}from"react/jsx-runtime";var gl=w(({typography:e})=>({sm:{...e.label.sm},md:{...e.label.md}})),hl=Ll("label",{shouldForwardProp:xl})(({theme:e,color:a,size:t})=>({display:"block",color:e.colors.text[a],cursor:"default",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",...m(t,o=>gl(e)[o]),"&[data-disabled]":{opacity:.4}})),J=Il((e,a)=>{let{as:t,children:o,color:d="default",size:s="md",onMouseDown:u,...f}=e;return Cl(hl,{as:t,ref:a,...f,size:s,color:d,onMouseDown:n=>{u?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()},children:o})});import Sl from"@emotion/styled";import{forwardRef as yl}from"react";import{jsx as bl}from"react/jsx-runtime";var Pl=Sl("input")(({theme:e})=>({...Y(e),height:48})),At=yl((e,a)=>{let{isInvalid:t,isDisabled:o,isRequired:d,...s}=e;return bl(Pl,{ref:a,"aria-invalid":Q(t),disabled:o,required:d,...s})});import{jsx as Ve,jsxs as Ca}from"react/jsx-runtime";var Tl=Sa.div(({isPositionRelative:e})=>({width:"100%",position:e?"relative":void 0})),Rl=Sa.span(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.subtle})),Ml=Sa.div(({theme:e})=>({...e.typography.body.md,position:"absolute",height:"100%",top:0,right:0,display:"flex",alignItems:"center",paddingLeft:e.spacing["4x"],paddingRight:e.spacing["4x"],pointerEvents:"none","&[data-disabled]":{opacity:.4}})),VL=kl((e,a)=>{let{label:t,isInvalid:o,isDisabled:d,isRequired:s,isOptional:u,errorMessage:f,helperText:n,suffix:c,...x}=e,{getLabelProps:C,getFieldProps:g,getErrorMessageProps:L,getHelperTextProps:p}=ee(e),[S,y]=vl(void 0),h=wl(null),{t:b}=te();Ye(()=>{y(h.current?.offsetWidth)},[c]);let k=n?Ve(O,{...p(),children:n}):null,P=o&&f?Ve(F,{...L(),children:f}):null,T=!!c,U=!!(!s&&u);return Ca(ae,{children:[Ca(J,{...C(),children:[t,U&&Ve(Rl,{children:` (${b("optional")})`})]}),Ca(Tl,{isPositionRelative:T,children:[Ve(At,{ref:a,...g({...x,style:{paddingRight:S}})}),T&&Ve(Ml,{ref:h,"aria-hidden":"true","data-disabled":R(d),children:c})]}),P||k]})});import{forwardRef as Bl}from"react";import Dl from"@emotion/styled";import Al from"@emotion/is-prop-valid";import{jsx as Ol}from"react/jsx-runtime";var Fl=Dl("a",{shouldForwardProp:Al})(({theme:e})=>({WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",...e.typography.body.md,WebkitAppearance:"none",transitionProperty:"box-shadow, transform, opacity, background-color, color",transitionDuration:"150ms",transitionTimingFunction:"ease",flexShrink:0,fontSize:"inherit",color:"inherit",textDecoration:"underline"})),ZL=Bl((e,a)=>{let{children:t,href:o,isExternal:d=!1,...s}=e;return Ol(Fl,{ref:a,href:o,...d?{target:"_blank",rel:"noopener noreferrer"}:{},...s,children:t})});import ql from"@emotion/styled";import Hl from"@emotion/is-prop-valid";import{forwardRef as Ul}from"react";import{jsx as Wl}from"react/jsx-runtime";var zl=w(({typography:e})=>({xs:e.body.xs,sm:e.body.sm,md:e.body.md,lg:e.body.lg,xl:e.body.xl})),El=ql("p",{shouldForwardProp:Hl})(({theme:e,size:a,color:t,numberOfLines:o,textAlign:d})=>({margin:0,...m(a,s=>zl(e)[s]),color:e.colors.text[t],textAlign:d,overflowWrap:"break-word",wordWrap:"break-word",...o&&{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,overflow:"hidden",textOverflow:"ellipsis"}})),ox=Ul((e,a)=>{let{children:t,size:o="md",color:d="default",textAlign:s="left",...u}=e;return Wl(El,{ref:a,size:o,color:d,textAlign:s,...u,children:t})});import Pa from"@emotion/styled";import{forwardRef as Gl}from"react";import{jsx as ya,jsxs as Ft}from"react/jsx-runtime";var Vl=Pa.div({width:"100%",height:"fit-content",position:"relative"}),Nl=Pa.div({pointerEvents:"none",position:"absolute",height:"100%",width:48,right:0,top:0,color:"currentcolor",display:"inline-flex",justifyContent:"center",alignItems:"center","&[data-disabled]":{opacity:.4}}),Xl=Pa.select(({theme:e})=>({...Y(e),height:48,paddingRight:40})),Ot=Gl((e,a)=>{let{placeholder:t,children:o,isInvalid:d,isDisabled:s,isRequired:u,...f}=e;return Ft(Vl,{children:[Ft(Xl,{ref:a,"aria-invalid":d?!0:void 0,disabled:s,required:u,...f,children:[t&&ya("option",{value:"",children:t}),o]}),ya(Nl,{"data-disabled":s?"":void 0,children:ya(Qa,{role:"presentation","aria-hidden":"true",size:16})})]})});import _l from"@emotion/styled";import{forwardRef as Kl}from"react";import{jsx as Zl}from"react/jsx-runtime";var Ql=_l.textarea(({theme:e,resize:a,minRows:t})=>{let o=Y(e),d=e.spacing["3x"],s=`calc(${o.lineHeight} * ${t} + ${d} * 2 + 2px)`;return{...o,paddingTop:d,paddingBottom:d,scrollPaddingBlockEnd:d,resize:a,minHeight:s}}),qt=Kl((e,a)=>{let{isInvalid:t,isDisabled:o,isRequired:d,resize:s="vertical",minRows:u=3,...f}=e;return Zl(Ql,{ref:a,"aria-invalid":Q(t),disabled:o,required:d,resize:s,minRows:u,...f})});import{forwardRef as ys,useCallback as Ps,useState as bs}from"react";import{RadioGroup as ks}from"radix-ui";import ws from"@emotion/styled";import{createContext as $l,useContext as Jl}from"react";import{jsx as jl}from"react/jsx-runtime";var Ht=$l(null);function Ut({value:e,children:a}){return jl(Ht.Provider,{value:e,children:a})}var oe=({consumerName:e})=>{let a=Jl(Ht);if(!a)throw new Error(`\`${e}\` must be used within \`RadioGroup\``);return a};import zt from"@emotion/styled";import{RadioGroup as rs}from"radix-ui";import{forwardRef as ds,useState as ls}from"react";import Yl from"@emotion/styled";import{RadioGroup as es}from"radix-ui";import{forwardRef as as}from"react";import{jsx as os}from"react/jsx-runtime";var ts=Yl(es.Indicator)(({theme:e})=>({background:e.colors.bg.default,border:"2px solid",borderColor:e.colors.border.strong,width:r(20),height:r(20),flexShrink:0,borderRadius:e.radii.full,transitionProperty:"background",transitionDuration:"120ms",transitionTimingFunction:"ease-out",display:"flex",alignItems:"center",justifyContent:"center","&::after":{content:'""',display:"block",width:r(10),height:r(10),borderRadius:e.radii.full,background:e.colors.border.strong,transform:"scale(0.5)",opacity:0,transitionProperty:"transform, opacity",transitionDuration:"120ms",transitionTimingFunction:"ease-out",transformOrigin:"center"},'&[data-state="unchecked"]':{"@media(hover: hover)":{"&:not(&[data-disabled])[data-hover]::after":{transform:"scale(0.8)",opacity:1}}},'&[data-state="checked"]':{background:e.colors.border.strong,"&::after":{opacity:1,transform:"scale(1)",background:e.colors.border.defaultSelected}}})),aa=as((e,a)=>os(ts,{ref:a,forceMount:!0,...e}));import{jsx as ba,jsxs as fs}from"react/jsx-runtime";var ss=zt(rs.Item)(({theme:e})=>({width:"100%",textAlign:"left",background:e.colors.bg.default,paddingLeft:e.spacing["5x"],paddingRight:e.spacing["5x"],paddingTop:r(17),paddingBottom:r(17),minHeight:r(56),justifyContent:"center",border:"1px solid",borderColor:e.colors.border.default,borderRadius:e.radii.md,display:"grid",gridTemplateColumns:"1fr min-content",alignItems:"start",alignContent:"start",columnGap:e.spacing["3x"],rowGap:e.spacing["1x"],boxShadow:"none",transitionProperty:"background, border-color, box-shadow, transform, outline",transitionDuration:"120ms",transitionTimingFunction:"ease-out",'&[data-state="checked"]':{borderColor:e.colors.border.defaultSelected,boxShadow:`inset 0 0 0 1px ${e.colors.border.defaultSelected}`,background:e.colors.bg.inset,":active":{transform:"scale(0.995)"}},'&[data-state="unchecked"]':{"@media(hover: hover)":{":hover":{borderColor:e.colors.border.defaultHover,background:e.colors.bg.inset}},":active":{transform:"scale(0.98)"}},outlineOffset:0,outline:"0 solid transparent",":focus-visible":{outlineColor:e.colors.border.defaultSelected,outlineWidth:2,outlineStyle:"solid",outlineOffset:3},"&[data-disabled], &:disabled, &[disabled]":{opacity:.4,'&[data-state="unchecked"]':{":hover":{background:e.colors.bg.default,borderColor:e.colors.border.default}},":active":{transform:"none"}},WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent"})),us=zt.span(({theme:e})=>({...e.typography.label.md})),Et=ds((e,a)=>{let{label:t,helperText:o,disabled:d,isDisabled:s,required:u,isRequired:f,id:n,"aria-describedby":c,onMouseEnter:x,onMouseLeave:C,...g}=e,[L,p]=ls(!1),{errorMessageId:S}=oe({consumerName:"RadioCard"}),y=v(n),h=`${y}-label`,k=!!o?`${y}-helper-text`:void 0,M=[S,k,c].filter(Boolean).join(" ")||void 0,P=o?ba(O,{id:k,children:o}):null;return fs(ss,{ref:a,disabled:s??d,...(f??u)&&{required:!0},"aria-labelledby":h,"aria-describedby":M,onMouseEnter:B=>{p(!0),x?.(B)},onMouseLeave:B=>{p(!1),C?.(B)},...g,children:[ba(us,{id:h,children:t}),ba(aa,{"data-hover":R(L)}),P]})});import ns from"@emotion/styled";import{forwardRef as cs}from"react";function is(e,a){if(e!=null){if(typeof e=="function"){e(a);return}e.current=a}}var Wt=(...e)=>a=>{e.forEach(t=>is(t,a))};import{jsx as ms}from"react/jsx-runtime";var ps=ns.span(({theme:e})=>({...e.typography.label.md,"&[data-disabled]":{opacity:.4}})),Gt=cs((e,a)=>{let{id:t,...o}=e,d=v(t),{labelRefCallback:s,isDisabled:u}=oe({consumerName:"RadioGroupLabel"});return ms(ps,{ref:Wt(s,a),id:d,"data-disabled":R(u),...o})});import wa from"@emotion/styled";import{forwardRef as Ls,useState as xs}from"react";import{RadioGroup as Is}from"radix-ui";import{jsx as ka,jsxs as Ss}from"react/jsx-runtime";var gs=wa.label(({theme:e})=>({display:"grid",gridTemplateColumns:"auto 1fr",alignItems:"start",gap:e.spacing["3x"],cursor:"pointer",WebkitTapHighlightColor:"transparent",WebkitTouchCallout:"none",'&:has([role="radio"][data-disabled])':{cursor:"not-allowed"}})),hs=wa(Is.Item)(({theme:e})=>({borderRadius:e.radii.full,transitionProperty:"outline",transitionDuration:"120ms",transitionTimingFunction:"ease-out",outlineOffset:0,outline:"0 solid transparent",":focus-visible":{outlineColor:e.colors.border.defaultSelected,outlineWidth:2,outlineStyle:"solid",outlineOffset:3},"&[data-disabled], &:disabled, &[disabled]":{opacity:.4},WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent"})),Cs=wa.span(({theme:e})=>({...e.typography.body.md,"&[data-disabled]":{opacity:.4}})),Vt=Ls((e,a)=>{let{label:t,disabled:o,isDisabled:d,required:s,isRequired:u,id:f,"aria-describedby":n,onMouseEnter:c,onMouseLeave:x,...C}=e,[g,L]=xs(!1),S=`${v(f)}-label`,{errorMessageId:y,isDisabled:h}=oe({consumerName:"RadioButton"}),b=[y,n].filter(Boolean).join(" ")||void 0,k=d??o??h;return Ss(gs,{children:[ka(hs,{ref:a,disabled:k,...(u??s)&&{required:!0},"aria-labelledby":S,"aria-describedby":b,onMouseEnter:P=>{L(!0),c?.(P)},onMouseLeave:P=>{L(!1),x?.(P)},...C,children:ka(aa,{"data-hover":R(g)})}),ka(Cs,{id:S,"data-disabled":R(k),onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),onMouseDown:P=>{P.detail>1&&P.preventDefault()},children:t})]})});import{jsx as Nt,jsxs as Rs}from"react/jsx-runtime";var vs=ws(ks.Root)(({theme:e})=>({width:"100%",display:"flex",flexDirection:"column",gap:e.spacing["3x"]})),Ts=ys((e,a)=>{let{children:t,id:o,disabled:d,isDisabled:s,required:u,isRequired:f,"aria-labelledby":n,"aria-describedby":c,isInvalid:x,errorMessage:C,...g}=e,L=s??d,p=f??u,S=v(o),y=x&&C,h=y?`${S}-error`:void 0,[b,k]=bs(null),M=Ps(de=>k(de),[]),P=b?.id,T=y?Nt(F,{id:h,role:"alert","aria-live":"polite",children:C}):null,U=[P,n].filter(Boolean).join(" ")||void 0,B=[h,c].filter(Boolean).join(" ")||void 0;return Nt(Ut,{value:{labelRefCallback:M,isDisabled:L,errorMessageId:h},children:Rs(vs,{ref:a,id:S,disabled:L,required:p,"aria-invalid":Q(x),"aria-labelledby":U,"aria-describedby":B,...g,children:[t,T]})})}),cI=Object.assign(Ts,{Card:Et,Button:Vt,Label:Gt});import{forwardRef as Ds}from"react";import As from"@emotion/styled";import{forwardRef as Ms}from"react";import{jsx as Bs}from"react/jsx-runtime";var Xt=Ms((e,a)=>{let{children:t,isDisabled:o,...d}=e;return Bs("option",{ref:a,disabled:o,...d,children:t})});import{jsx as ta,jsxs as _t}from"react/jsx-runtime";var Fs=As.span(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.subtle})),Os=Ds((e,a)=>{let{children:t,label:o,isInvalid:d,errorMessage:s,helperText:u,isRequired:f,isOptional:n,...c}=e,{getLabelProps:x,getFieldProps:C,getErrorMessageProps:g,getHelperTextProps:L}=ee(e),{t:p}=te(),S=u?ta(O,{...L(),children:u}):null,h=d&&s?ta(F,{...g(),children:s}):null,b=!!(!f&&n);return _t(ae,{children:[_t(J,{...x(),children:[o,b&&ta(Fs,{children:` (${p("optional")})`})]}),ta(Ot,{ref:a,...C(c),children:t}),h||S]})}),wI=Object.assign(Os,{Option:Xt});import{forwardRef as qs}from"react";import Hs from"@emotion/styled";import{jsx as zs}from"react/jsx-runtime";var Us=Hs.span(({axis:e,size:a,theme:t})=>({display:"block",...m(a,o=>{let d=t.spacing[o];return{width:e==="x"?d:1,minWidth:e==="x"?d:1,height:e==="y"?d:1,minHeight:e==="y"?d:1}})})),DI=qs((e,a)=>{let{axis:t="y",size:o,...d}=e;return zs(Us,{ref:a,"aria-hidden":"true",size:o,axis:t,...d})});import{Fragment as Gs,forwardRef as Vs}from"react";import Ns from"@emotion/styled";import Xs from"@emotion/is-prop-valid";import{Children as Es,isValidElement as Ws}from"react";function Kt(e){return Es.toArray(e).filter(a=>Ws(a))}import{jsx as Qs,jsxs as Ks}from"react/jsx-runtime";var _s=Ns("div",{shouldForwardProp:Xs})(({theme:e,wrap:a,gap:t})=>({display:"flex",flexWrap:a,...m(t,o=>({gap:e.spacing[o]}))}),({justifyContent:e})=>({...m(e,a=>({justifyContent:a}))}),({alignItems:e})=>({...m(e,a=>({alignItems:a}))}),({direction:e})=>({...m(e,a=>({flexDirection:a}))})),GI=Vs((e,a)=>{let{as:t,children:o,direction:d="column",justifyContent:s="flex-start",alignItems:u="stretch",divider:f,gap:n="0x",...c}=e,C=!!f?Kt(o).map((g,L,p)=>{let S=typeof g.key<"u"?g.key:L,h=L+1===p.length?null:f;return Ks(Gs,{children:[g,h]},S)}):o;return Qs(_s,{as:t,ref:a,direction:d,justifyContent:s,alignItems:u,gap:n,...c,children:C})});import re from"@emotion/styled";import{Switch as Zt}from"radix-ui";import{forwardRef as Zs}from"react";import{jsx as Ne,jsxs as Qt}from"react/jsx-runtime";var jI=Zs((e,a)=>{let{id:t,label:o,helperText:d,defaultChecked:s,isDefaultChecked:u,isChecked:f,checked:n,disabled:c,isDisabled:x,isRequired:C,required:g,"aria-labelledby":L,"aria-describedby":p,onCheckedChange:S,...y}=e,h=v(t),b=u??s,k=f??n,M=x??c,P=C??g,T=`${h}-label`,U=[T,L].filter(Boolean).join(" "),B=!!d,de=B?`${h}-helper-text`:void 0,Xe=[de,p].filter(Boolean).join(" ")||void 0;return Qt(js,{children:[Qt(Ys,{children:[Ne($s,{id:T,htmlFor:h,"data-disabled":M?"":void 0,children:o}),B&&Ne(Js,{id:de,"data-disabled":M?"":void 0,children:d})]}),Ne(eu,{id:h,ref:a,defaultChecked:b,checked:k,disabled:M,required:P,"aria-labelledby":U,"aria-describedby":Xe,onCheckedChange:ra=>S?.(ra),...y,children:Ne(au,{children:Ne(H,{"data-part":"switch-icon",size:12,absoluteStrokeWidth:!0,strokeWidth:2})})})]})}),$s=re(J)(()=>({marginTop:r(6)})),Js=re.div(({theme:e})=>({flexGrow:1,flexShrink:1,color:e.colors.text.subtle,cursor:"default",...e.typography.body.sm,"&[data-disabled]":{opacity:.4}})),js=re.div(({theme:e})=>({display:"flex",gap:e.spacing["4x"],alignItems:"start"})),Ys=re.div(({theme:e})=>({display:"flex",flexDirection:"column",flexGrow:1,flexShrink:1,justifyContent:"space-between",gap:e.sizes["2x"]})),eu=re(Zt.Root)(({theme:e})=>({flexGrow:0,flexShrink:0,flexBasis:"auto",width:r(56),height:r(32),backgroundColor:e.colors.core.gray40,transition:"background-color 200ms",borderRadius:e.radii.full,"&:hover:not([data-disabled])":{backgroundColor:e.colors.core.gray30},"&[data-disabled]":{opacity:.4},'&[data-state="checked"]':{backgroundColor:e.colors.bg.brandSecondary,'[data-part="switch-icon"]':{opacity:1}},'&:hover[data-state="checked"]':{backgroundColor:e.colors.bg.brandSecondaryHover},'[data-part="switch-icon"]':{opacity:0,transition:"opacity 200ms"}})),au=re(Zt.Thumb)(({theme:e})=>({display:"flex",flexGrow:0,flexShrink:0,flexBasis:"auto",justifyContent:"center",alignItems:"center",width:e.sizes["6x"],height:e.sizes["6x"],boxShadow:e.shadows.sm,backgroundColor:e.colors.bg.default,borderRadius:e.radii.full,transition:"transform 300ms",transform:`translateX(${r(4)})`,willChange:"transform",'&[data-state="checked"]':{transform:`translateX(${r(28)})`},"&[data-disabled]":{boxShadow:e.shadows.none}}));import{forwardRef as tu}from"react";import ou from"@emotion/styled";import{jsx as oa,jsxs as $t}from"react/jsx-runtime";var ru=ou.span(({theme:e})=>({...e.typography.body.sm,color:e.colors.text.subtle})),ug=tu((e,a)=>{let{label:t,isInvalid:o,errorMessage:d,helperText:s,isRequired:u,isOptional:f,...n}=e,{getLabelProps:c,getFieldProps:x,getErrorMessageProps:C,getHelperTextProps:g}=ee(e),{t:L}=te(),p=s?oa(O,{...g(),children:s}):null,y=o&&d?oa(F,{...C(),children:d}):null,h=!!(!u&&f);return $t(ae,{children:[$t(J,{...c(),children:[t,h&&oa(ru,{children:` (${L("optional")})`})]}),oa(qt,{ref:a,...x(n)}),y||p]})});export{Ka as AlertCircleIcon,Hn as AlertTriangleIcon,Un as ArrowDownIcon,zn as ArrowLeftIcon,En as ArrowRightIcon,Wn as ArrowUpIcon,sp as Avatar,Gn as BellIcon,Vn as BellOffIcon,Nn as BookmarkIcon,Mp as Button,Xn as CalendarIcon,_n as CameraIcon,Kn as CheckCircleIcon,Qn as CheckIcon,pm as Checkbox,Qa as ChevronDownIcon,Zn as ChevronLeftIcon,$n as ChevronRightIcon,Jn as ChevronUpIcon,Hp as DisplayText,gm as Divider,Km as DropdownMenu,jn as GlobeIcon,eL as Heading,Yn as HeartFilledIcon,ec as HeartIcon,ac as HelpCircleIcon,dL as HintBox,tc as HistoryIcon,oc as HomeIcon,LL as IconButton,rc as ImageIcon,dc as InfoIcon,At as InputBase,J as Label,ZL as Link,sc as ListFilterIcon,lc as ListIcon,tt as LoadingDots,uc as LogOutIcon,fc as MapIcon,ic as MapPinIcon,nc as MenuIcon,cc as MessageCircleIcon,pc as MinusIcon,mc as MoreHorizontalIcon,Lc as MoreVerticalIcon,ox as Paragraph,xc as PenIcon,Ic as PlusIcon,br as QdsProvider,cI as RadioGroup,gc as SearchIcon,wI as Select,Ot as SelectBase,hc as SettingsIcon,Cc as ShareIcon,Sc as SlidersIcon,DI as Spacer,GI as Stack,yc as StarFilledIcon,Pc as StarIcon,jI as Switch,VL as TextField,ug as Textarea,qt as TextareaBase,na as Toast,bc as TrashIcon,kc as UserIcon,wc as XCircleIcon,vc as XIcon,ua as createIcon,i as createLucideIcon,Ba as createStyle,w as createStyleVariants,Y as getFormFieldBaseStyles,Ha as overrideTheme,r as pxToRem,D as theme,lo as toast,Lt as useBreakpoint,Xp as useBreakpointValue,ee as useFormField,Ye as useSafeLayoutEffect,v as useStableId};
4
4
  /*! Bundled license information:
5
5
 
6
6
  lucide-react/dist/esm/shared/src/utils.js: