@plyaz/ui 0.6.8 → 0.6.9

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.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var re=Object.defineProperty;var ne=(t,e,a)=>e in t?re(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var j=(t,e,a)=>ne(t,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),i=require("./utils-D4NY0-fZ.cjs"),se=require("clsx"),le=require("@radix-ui/react-slot"),D=require("react"),oe=require("@radix-ui/react-select"),S=require("lucide-react"),F=require("next-intl");function ie(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const d=ie(oe),h=({children:t,element:e="div",className:a="",...r})=>{const n=e;return l.jsx(n,{className:a,...r,"data-testid":"box",children:t})},ce=({className:t="",children:e,element:a,...r})=>l.jsx(h,{element:a,className:i.cn("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",t),...r,children:e}),A=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,E=se.clsx,ue=(t,e)=>a=>{var r;if((e==null?void 0:e.variants)==null)return E(t,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:n,defaultVariants:s}=e,o=Object.keys(n).map(g=>{const p=a==null?void 0:a[g],w=s==null?void 0:s[g];if(p===null)return null;const b=A(p)||A(w);return n[g][b]}),u=a&&Object.entries(a).reduce((g,p)=>{let[w,b]=p;return b===void 0||(g[w]=b),g},{}),x=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((g,p)=>{let{class:w,className:b,...te}=p;return Object.entries(te).every(ae=>{let[z,L]=ae;return Array.isArray(L)?L.includes({...s,...u}[z]):{...s,...u}[z]===L})?[...g,w,b]:g},[]);return E(t,o,x,a==null?void 0:a.class,a==null?void 0:a.className)},C={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},M={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},de={body:"font-general",heading:"font-general",caption:"font-general"},ge={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},fe={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",light:"font-light"},xe={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9"},me={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9"},V={1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9"},pe=ue("inline-flex justify-center items-center gap-2 disabled:opacity-50 aria-invalid:border-destructive focus-visible:border-ring rounded-md outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap transition-all [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",{variants:{variant:{default:`
1
+ "use strict";var fn=Object.defineProperty;var vn=(e,t,n)=>t in e?fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Z=(e,t,n)=>vn(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),y=require("./utils-D4NY0-fZ.cjs"),gn=require("clsx"),ie=require("@radix-ui/react-slot"),ce=require("react"),mn=require("@radix-ui/react-select"),le=require("lucide-react"),Xe=require("next-intl"),Ze=require("react-dom");function Pe(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=Pe(ce),C=Pe(mn),pn=Pe(Ze),K=({children:e,element:t="div",className:n="",...r})=>{const a=t;return l.jsx(a,{className:n,...r,"data-testid":"box",children:e})},hn=({className:e="",children:t,element:n,...r})=>l.jsx(K,{element:n,className:y.cn("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",e),...r,children:t}),Ie=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Le=gn.clsx,xn=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Le(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:o}=t,c=Object.keys(a).map(u=>{const f=n==null?void 0:n[u],g=o==null?void 0:o[u];if(f===null)return null;const m=Ie(f)||Ie(g);return a[u][m]}),s=n&&Object.entries(n).reduce((u,f)=>{let[g,m]=f;return m===void 0||(u[g]=m),u},{}),v=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:g,className:m,...h}=f;return Object.entries(h).every(E=>{let[d,p]=E;return Array.isArray(p)?p.includes({...o,...s}[d]):{...o,...s}[d]===p})?[...u,g,m]:u},[]);return Le(e,c,v,n==null?void 0:n.class,n==null?void 0:n.className)},Qe={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},Je={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},bn={body:"font-general",heading:"font-general",caption:"font-general"},yn={xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl","5xl":"text-5xl","6xl":"text-6xl","7xl":"text-7xl","8xl":"text-8xl","9xl":"text-9xl"},En={normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",light:"font-light"},wn={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9"},Sn={1:"grid-rows-1",2:"grid-rows-2",3:"grid-rows-3",4:"grid-rows-4",5:"grid-rows-5",6:"grid-rows-6",7:"grid-rows-7",8:"grid-rows-8",9:"grid-rows-9"},et={1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",7:"gap-7",8:"gap-8",9:"gap-9"},Re=xn("inline-flex justify-center items-center gap-2 disabled:opacity-50 aria-invalid:border-destructive focus-visible:border-ring rounded-md outline-none aria-invalid:ring-destructive/20 focus-visible:ring-[3px] focus-visible:ring-ring/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 font-medium text-sm whitespace-nowrap transition-all [&_svg]:pointer-events-none disabled:pointer-events-none shrink-0 [&_svg]:shrink-0",{variants:{variant:{default:`
2
2
  bg-primary text-primary-foreground shadow-xs
3
3
  hover:bg-primary/90
4
4
  `,destructive:`
@@ -28,7 +28,7 @@
28
28
  `,lg:`
29
29
  h-10 rounded-md px-6
30
30
  has-[>svg]:px-4
31
- `,icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),be={row:"flex-row",col:"flex-col",row_reverse:"flex-row-reverse",col_reverse:"flex-col-reverse"},ve={wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},he=({children:t,gap:e,direction:a,justify:r,align:n,wrap:s,className:o="",element:u,...x})=>l.jsx(h,{element:u,className:i.cn("flex",a&&be[a],r&&C[r],n&&M[n],s&&ve[s],e&&V[e],o),...x,children:t}),ye=({children:t,className:e,cols:a,rows:r,gap:n,justify:s,align:o,element:u,...x})=>l.jsx(h,{element:u,className:i.cn("grid",a&&xe[a],r&&me[r],n&&V[n],s&&C[s],o&&M[o],e),...x,children:t}),we={xs:"xs",sm:"sm",base:"base",lg:"lg",xl:"xl","2xl":"2xl","3xl":"3xl","4xl":"4xl"},je=({children:t,element:e,className:a,size:r,...n})=>l.jsx(y,{className:a,element:e,size:we[r],variant:"heading",weight:"medium",...n,children:t}),Ne=({children:t,className:e,href:a,...r})=>l.jsx("a",{"data-testid":"link",href:a,rel:"noopener noreferrer",target:"_blank",className:i.cn("focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",e),...r,children:t}),Se={xs:"xs",sm:"sm",base:"base",lg:"lg"},ke=({children:t,className:e,size:a,...r})=>l.jsx(y,{className:e,element:"p",size:Se[a],variant:"body",weight:"normal",...r,children:t}),Le=({className:t="",children:e,...a})=>l.jsx(h,{element:"section",className:t,...a,children:e}),Pe=({children:t,direction:e="horizontal",spacing:a="space-x-2",element:r,className:n,...s})=>{const o=e==="vertical"?"flex-col":"flex-row";return l.jsx(h,{className:i.cn("flex",o,a,n),element:r,...s,children:t})},y=({className:t,children:e,element:a,weight:r,variant:n,size:s,...o})=>{const u=a;return l.jsx(u,{"data-testid":"text",className:i.cn("font-normal text-base",s&&ge[s],r&&fe[r],n&&de[n],t),...o,children:e})};function _e({className:t,variant:e,size:a,asChild:r=!1,...n}){const s=r?le.Slot:"button";return l.jsx(s,{"data-slot":"button",className:i.cn(pe({variant:e,size:a,className:t})),...n,"data-testid":"button"})}function Te({className:t,type:e,...a}){return l.jsx("input",{type:e,"data-slot":"input",className:i.cn(`
31
+ `,icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),Nn={row:"flex-row",col:"flex-col",row_reverse:"flex-row-reverse",col_reverse:"flex-col-reverse"},An={wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},Dn=({children:e,gap:t,direction:n,justify:r,align:a,wrap:o,className:c="",element:s,...v})=>l.jsx(K,{element:s,className:y.cn("flex",n&&Nn[n],r&&Qe[r],a&&Je[a],o&&An[o],t&&et[t],c),...v,children:e}),Cn=({children:e,className:t,cols:n,rows:r,gap:a,justify:o,align:c,element:s,...v})=>l.jsx(K,{element:s,className:y.cn("grid",n&&wn[n],r&&Sn[r],a&&et[a],o&&Qe[o],c&&Je[c],t),...v,children:e}),Pn={xs:"xs",sm:"sm",base:"base",lg:"lg",xl:"xl","2xl":"2xl","3xl":"3xl","4xl":"4xl"},Rn=({children:e,element:t,className:n,size:r,...a})=>l.jsx(q,{className:n,element:t,size:Pn[r],variant:"heading",weight:"medium",...a,children:e}),Tn=({children:e,className:t,href:n,...r})=>l.jsx("a",{"data-testid":"link",href:n,rel:"noopener noreferrer",target:"_blank",className:y.cn("focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",t),...r,children:e}),jn={xs:"xs",sm:"sm",base:"base",lg:"lg"},On=({children:e,className:t,size:n,...r})=>l.jsx(q,{className:t,element:"p",size:jn[n],variant:"body",weight:"normal",...r,children:e}),_n=({className:e="",children:t,...n})=>l.jsx(K,{element:"section",className:e,...n,children:t}),Mn=({children:e,direction:t="horizontal",spacing:n="space-x-2",element:r,className:a,...o})=>{const c=t==="vertical"?"flex-col":"flex-row";return l.jsx(K,{className:y.cn("flex",c,n,a),element:r,...o,children:e})},q=({className:e,children:t,element:n,weight:r,variant:a,size:o,...c})=>{const s=n;return l.jsx(s,{"data-testid":"text",className:y.cn("font-normal text-base",o&&yn[o],r&&En[r],a&&bn[a],e),...c,children:t})};function In({className:e,variant:t,size:n,asChild:r=!1,...a}){const o=r?ie.Slot:"button";return l.jsx(o,{"data-slot":"button",className:y.cn(Re({variant:t,size:n,className:e})),...a,"data-testid":"button"})}function Ln({className:e,type:t,...n}){return l.jsx("input",{type:t,"data-slot":"input",className:y.cn(`
32
32
  flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent
33
33
  px-3 py-1 text-base shadow-xs transition-[color,box-shadow]
34
34
  outline-none
@@ -46,13 +46,13 @@
46
46
  `,`
47
47
  aria-invalid:border-destructive aria-invalid:ring-destructive/20
48
48
  dark:aria-invalid:ring-destructive/40
49
- `,t),...a,"data-testid":"input"})}const q=D.memo(({children:t,className:e="",colors:a=["#FF0080","#7928CA","#0070F3","#38bdf8"],speed:r=1})=>{const n={backgroundImage:`linear-gradient(135deg, ${a.join(", ")}, ${a[0]})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animationDuration:`${10/r}s`};return l.jsxs("span",{className:`
49
+ `,e),...n,"data-testid":"input"})}const tt=ce.memo(({children:e,className:t="",colors:n=["#FF0080","#7928CA","#0070F3","#38bdf8"],speed:r=1})=>{const a={backgroundImage:`linear-gradient(135deg, ${n.join(", ")}, ${n[0]})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animationDuration:`${10/r}s`};return l.jsxs("span",{className:`
50
50
  relative inline-block
51
- ${e}
52
- `,"data-testid":"auroraText",children:[l.jsx("span",{className:"sr-only",children:t}),l.jsx("span",{className:`
51
+ ${t}
52
+ `,"data-testid":"auroraText",children:[l.jsx("span",{className:"sr-only",children:e}),l.jsx("span",{className:`
53
53
  relative animate-aurora bg-clip-text text-transparent
54
54
  bg-[length:200%_auto]
55
- `,style:n,"aria-hidden":"true",children:t})]})});q.displayName="AuroraText";function B({...t}){return l.jsx(d.Root,{"data-slot":"select",...t})}function Ie({...t}){return l.jsx(d.Group,{"data-slot":"select-group",...t})}function O({...t}){return l.jsx(d.Value,{"data-slot":"select-value",...t})}function $({className:t,size:e="default",children:a,...r}){return l.jsxs(d.Trigger,{"data-slot":"select-trigger","data-size":e,className:i.cn(`
55
+ `,style:a,"aria-hidden":"true",children:e})]})});tt.displayName="AuroraText";function nt({...e}){return l.jsx(C.Root,{"data-slot":"select",...e})}function kn({...e}){return l.jsx(C.Group,{"data-slot":"select-group",...e})}function rt({...e}){return l.jsx(C.Value,{"data-slot":"select-value",...e})}function at({className:e,size:t="default",children:n,...r}){return l.jsxs(C.Trigger,{"data-slot":"select-trigger","data-size":t,className:y.cn(`
56
56
  flex w-fit items-center justify-between gap-2 rounded-md border
57
57
  border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap
58
58
  shadow-xs transition-[color,box-shadow] outline-none
@@ -72,7 +72,7 @@
72
72
  [&_svg]:pointer-events-none [&_svg]:shrink-0
73
73
  [&_svg:not([class*='size-'])]:size-4
74
74
  [&_svg:not([class*='text-'])]:text-muted-foreground
75
- `,t),...r,children:[a,l.jsx(d.Icon,{asChild:!0,children:l.jsx(S.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function G({className:t,children:e,position:a="popper",...r}){return l.jsx(d.Portal,{"data-testid":"select",children:l.jsxs(d.Content,{"data-slot":"select-content",className:i.cn(`
75
+ `,e),...r,children:[n,l.jsx(C.Icon,{asChild:!0,children:l.jsx(le.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function ot({className:e,children:t,position:n="popper",...r}){return l.jsx(C.Portal,{"data-testid":"select",children:l.jsxs(C.Content,{"data-slot":"select-content",className:y.cn(`
76
76
  relative z-50 max-h-(--radix-select-content-available-height)
77
77
  min-w-[8rem] origin-(--radix-select-content-transform-origin)
78
78
  overflow-x-hidden overflow-y-auto rounded-md border bg-popover
@@ -85,15 +85,15 @@
85
85
  data-[state=closed]:zoom-out-95
86
86
  data-[state=open]:animate-in data-[state=open]:fade-in-0
87
87
  data-[state=open]:zoom-in-95
88
- `,a==="popper"&&`
88
+ `,n==="popper"&&`
89
89
  data-[side=bottom]:translate-y-1
90
90
  data-[side=left]:-translate-x-1
91
91
  data-[side=right]:translate-x-1
92
92
  data-[side=top]:-translate-y-1
93
- `,t),position:a,...r,children:[l.jsx(K,{}),l.jsx(d.Viewport,{className:i.cn("p-1",a==="popper"&&`
93
+ `,e),position:n,...r,children:[l.jsx(it,{}),l.jsx(C.Viewport,{className:y.cn("p-1",n==="popper"&&`
94
94
  h-[var(--radix-select-trigger-height)] w-full
95
95
  min-w-[var(--radix-select-trigger-width)] scroll-my-1
96
- `),children:e}),l.jsx(W,{})]})})}function Re({className:t,...e}){return l.jsx(d.Label,{"data-slot":"select-label",className:i.cn("px-2 py-1.5 text-xs text-muted-foreground",t),...e})}function U({className:t,children:e,...a}){return l.jsxs(d.Item,{"data-slot":"select-item",className:i.cn(`
96
+ `),children:t}),l.jsx(ct,{})]})})}function Fn({className:e,...t}){return l.jsx(C.Label,{"data-slot":"select-label",className:y.cn("px-2 py-1.5 text-xs text-muted-foreground",e),...t})}function st({className:e,children:t,...n}){return l.jsxs(C.Item,{"data-slot":"select-item",className:y.cn(`
97
97
  relative flex w-full cursor-default items-center gap-2 rounded-sm
98
98
  py-1.5 pr-8 pl-2 text-sm outline-hidden select-none
99
99
  focus:bg-accent focus:text-accent-foreground
@@ -102,4 +102,54 @@
102
102
  [&_svg:not([class*='size-'])]:size-4
103
103
  [&_svg:not([class*='text-'])]:text-muted-foreground
104
104
  *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
105
- `,t),...a,children:[l.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:l.jsx(d.ItemIndicator,{children:l.jsx(S.CheckIcon,{className:"size-4"})})}),l.jsx(d.ItemText,{children:e})]})}function ze({className:t,...e}){return l.jsx(d.Separator,{"data-slot":"select-separator",className:i.cn("pointer-events-none -mx-1 my-1 h-px bg-border",t),...e})}function K({className:t,...e}){return l.jsx(d.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:i.cn("flex cursor-default items-center justify-center py-1",t),...e,children:l.jsx(S.ChevronUpIcon,{className:"size-4"})})}function W({className:t,...e}){return l.jsx(d.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:i.cn("flex cursor-default items-center justify-center py-1",t),...e,children:l.jsx(S.ChevronDownIcon,{className:"size-4"})})}const Ae=({translationKey:t,translationOptions:e,namespace:a,...r})=>{const s=F.useTranslations(a)(t,e==null?void 0:e.args);return l.jsx(y,{...r,children:s})},Ee=({translationKey:t,translationOptions:e,namespace:a,className:r,tag:n="div"})=>{const o=F.useTranslations(a)(t,e==null?void 0:e.args);return D.createElement(n,{className:r,"data-testid":"translated-html"},o)};var De=Object.defineProperty,c=(t,e)=>De(t,"name",{value:e,configurable:!0}),P=new Map,_=new Map;function I(t,e){return`${t}:${JSON.stringify(e??{})}`}c(I,"getFormatterKey");function H(t){const e=typeof t=="string"||typeof t=="number"?new Date(t):t;return e instanceof Date&&!Number.isNaN(e.getTime())?e:null}c(H,"parseDate");function Q(t,e="en",a){var s;const r=H(t);if(!r)return"";const n=I(e,a);return P.has(n)||P.set(n,new Intl.DateTimeFormat(e,a)),((s=P.get(n))==null?void 0:s.format(r))??""}c(Q,"formatDate");function Z(t,e="en",a){var n;if(typeof t!="number"||Number.isNaN(t))return"";const r=I(e,a);return _.has(r)||_.set(r,new Intl.NumberFormat(e,a)),((n=_.get(r))==null?void 0:n.format(t))??""}c(Z,"formatNumber");var k={defaultLocale:"en",supportedLocales:["en","es","fr","it","pt-BR","pt-PT"],fallbackLocale:"en"};function Fe(){return k.supportedLocales}c(Fe,"getSupportedLanguages");function Ce(){return k.defaultLocale}c(Ce,"getDefaultLanguage");function Me(){return k.fallbackLocale}c(Me,"getFallbackLanguage");function Ve(t){return k.supportedLocales.includes(t)}c(Ve,"isSupportedLanguage");var m=new Map;function qe({value:t,forms:e,lang:a,type:r="cardinal"}){if(!X(t,e))return"";if(t===0&&e.zero)return T(e.zero,t);const s=Y(a,r).select(t),o=J(e,s)??e.other??Object.values(e)[0];return o?T(o,t):""}c(qe,"pluralize");function R(t,e){return`${t}:${e}`}c(R,"getPluralRulesKey");var Be=/{count}|#/g;function J(t,e){switch(e){case"zero":return t.zero;case"one":return t.one;case"two":return t.two;case"few":return t.few;case"many":return t.many;case"other":return t.other;default:return}}c(J,"selectTemplate");function X(t,e){return typeof t=="number"&&e&&typeof e=="object"}c(X,"isValidInput");function T(t,e){return t.replaceAll(Be,e.toString())}c(T,"replacePlaceholders");function Y(t,e){const a=R(t,e);if(!m.has(a))try{m.set(a,new Intl.PluralRules(t,{type:e}))}catch{return N(a,e)}return m.get(a)??N(a,e)}c(Y,"getPluralRules");function N(t,e){const a=R("en",e);m.has(a)||m.set(a,new Intl.PluralRules("en",{type:e}));const r=m.get(a)??N(a,e);return m.set(t,r),r}c(N,"getFallbackPluralRules");var f;f=class{constructor(){j(this,"fallbackLocale");this.fallbackLocale="en"}static getInstance(){return f.instance||(f.instance=new f),f.instance}detectLocale(e){return e?this.detectFromRequest(e):this.fallbackLocale}detectFromRequest(e){var s,o,u;const a=(s=e.url.split("?")[1])==null?void 0:s.split("=")[1],r=e.headers.get("accept-language"),n=(u=(o=e.headers.get("cookie"))==null?void 0:o.split("; ").find(x=>x.startsWith("locale=")))==null?void 0:u.split("=")[1];return a??n??this.parseAcceptLanguage(r??"")??this.fallbackLocale}parseAcceptLanguage(e){if(!e)return null;let a=null,r=0;for(const n of e.split(",")){const{lang:s,q:o}=this.parseLangAndQ(n.trim());if(o>r&&(r=o,a=s,o===1))break}return a}parseLangAndQ(e){const a=e.indexOf(";"),r=a===-1?e:e.slice(0,Math.max(0,a));let n=1;if(a!==-1){const s=/q=(?<q>[\d.]+)/.exec(e.slice(a+1));n=s!=null&&s.groups?Number.parseFloat(s.groups.q)||0:1}return{lang:r,q:n}}setFallbackLocale(e){this.fallbackLocale=e}},c(f,"LocaleDetector"),j(f,"instance");var v;v=class{constructor(e){j(this,"namespaces");this.namespaces=e?new Map(e):new Map}addNamespace(e,a){if(!ee(e))throw new Error("Invalid namespace name");this.namespaces.set(e,a)}getNamespace(e){return this.namespaces.get(e)}getAllNamespaces(){return[...this.namespaces.keys()]}mergeNamespaces(e,a){const r=this.namespaces.get(e)??{},n=this.namespaces.get(a)??{};this.namespaces.set(e,{...r,...n})}validateNamespace(e,a){const r=this.namespaces.get(e);return r?a?Object.entries(a).every(([n,s])=>{var u;const o=(u=Object.getOwnPropertyDescriptor(r,n))==null?void 0:u.value;return o!==void 0&&typeof o===s}):!0:!1}},c(v,"NamespaceManager");function ee(t){return/^\w+$/.test(t)}c(ee,"isSafeKey");const Oe=({date:t,formatOptions:e,locale:a,...r})=>{const n=Q(t,a,e);return l.jsx(y,{...r,children:n})},$e=({value:t,formatOptions:e,locale:a,...r})=>{const n=Z(t,a,e);return l.jsx(y,{...r,children:n})};function Ge({locale:t,locales:e,onChange:a,getLabel:r,disabled:n}){return l.jsxs(B,{value:t,onValueChange:a,disabled:n,children:[l.jsx($,{children:l.jsx(O,{placeholder:r(t)})}),l.jsx(G,{children:e.map(s=>l.jsx(U,{value:s,children:r(s)},s))})]})}function Ue({className:t,reverse:e=!1,pauseOnHover:a=!1,paused:r=!1,children:n,vertical:s=!1,repeat:o=4,...u}){return l.jsx("div",{...u,className:i.cn("group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",{"flex-row":!s,"flex-col":s},t),children:Array(o).fill(0).map((x,g)=>l.jsx("div",{className:i.cn("flex shrink-0 justify-around [gap:var(--gap)]",{"animate-marquee flex-row":!s,"animate-marquee-vertical flex-col":s,"group-hover:[animation-play-state:paused]":a,"[animation-direction:reverse]":e,"[animation-play-state:paused]":r}),children:n},g))})}exports.AuroraText=q;exports.Box=h;exports.Button=_e;exports.Container=ce;exports.ExternalLink=Ne;exports.Flex=he;exports.FormattedDate=Oe;exports.FormattedNumber=$e;exports.Grid=ye;exports.Heading=je;exports.Input=Te;exports.LanguageSelector=Ge;exports.Marquee=Ue;exports.Paragraph=ke;exports.Section=Le;exports.Select=B;exports.SelectContent=G;exports.SelectGroup=Ie;exports.SelectItem=U;exports.SelectLabel=Re;exports.SelectScrollDownButton=W;exports.SelectScrollUpButton=K;exports.SelectSeparator=ze;exports.SelectTrigger=$;exports.SelectValue=O;exports.Stack=Pe;exports.Text=y;exports.TranslatedHtml=Ee;exports.TranslatedText=Ae;
105
+ `,e),...n,children:[l.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:l.jsx(C.ItemIndicator,{children:l.jsx(le.CheckIcon,{className:"size-4"})})}),l.jsx(C.ItemText,{children:t})]})}function Wn({className:e,...t}){return l.jsx(C.Separator,{"data-slot":"select-separator",className:y.cn("pointer-events-none -mx-1 my-1 h-px bg-border",e),...t})}function it({className:e,...t}){return l.jsx(C.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:y.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(le.ChevronUpIcon,{className:"size-4"})})}function ct({className:e,...t}){return l.jsx(C.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:y.cn("flex cursor-default items-center justify-center py-1",e),...t,children:l.jsx(le.ChevronDownIcon,{className:"size-4"})})}function $n(e,t){const n=i.createContext(t),r=o=>{const{children:c,...s}=o,v=i.useMemo(()=>s,Object.values(s));return l.jsx(n.Provider,{value:v,children:c})};r.displayName=e+"Provider";function a(o){const c=i.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,a]}function lt(e,t=[]){let n=[];function r(o,c){const s=i.createContext(c),v=n.length;n=[...n,c];const u=g=>{var x;const{scope:m,children:h,...E}=g,d=((x=m==null?void 0:m[e])==null?void 0:x[v])||s,p=i.useMemo(()=>E,Object.values(E));return l.jsx(d.Provider,{value:p,children:h})};u.displayName=o+"Provider";function f(g,m){var d;const h=((d=m==null?void 0:m[e])==null?void 0:d[v])||s,E=i.useContext(h);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${o}\``)}return[u,f]}const a=()=>{const o=n.map(c=>i.createContext(c));return function(s){const v=(s==null?void 0:s[e])||o;return i.useMemo(()=>({[`__scope${e}`]:{...s,[e]:v}}),[s,v])}};return a.scopeName=e,[r,Bn(a,...t)]}function Bn(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const c=r.reduce((s,{useScope:v,scopeName:u})=>{const g=v(o)[`__scope${u}`];return{...s,...g}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function ke(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Un(...e){return t=>{let n=!1;const r=e.map(a=>{const o=ke(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():ke(e[a],null)}}}}function M(...e){return i.useCallback(Un(...e),e)}function _(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}var Y=globalThis!=null&&globalThis.document?i.useLayoutEffect:()=>{},zn=i[" useId ".trim().toString()]||(()=>{}),Vn=0;function me(e){const[t,n]=i.useState(zn());return Y(()=>{n(r=>r??String(Vn++))},[e]),e||(t?`radix-${t}`:"")}var Gn=i[" useInsertionEffect ".trim().toString()]||Y;function Kn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,o,c]=qn({defaultProp:t,onChange:n}),s=e!==void 0,v=s?e:a;{const f=i.useRef(e!==void 0);i.useEffect(()=>{const g=f.current;g!==s&&console.warn(`${r} is changing from ${g?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=s},[s,r])}const u=i.useCallback(f=>{var g;if(s){const m=Hn(f)?f(e):f;m!==e&&((g=c.current)==null||g.call(c,m))}else o(f)},[s,e,o,c]);return[v,u]}function qn({defaultProp:e,onChange:t}){const[n,r]=i.useState(e),a=i.useRef(n),o=i.useRef(t);return Gn(()=>{o.current=t},[t]),i.useEffect(()=>{var c;a.current!==n&&((c=o.current)==null||c.call(o,n),a.current=n)},[n,a]),[n,r,o]}function Hn(e){return typeof e=="function"}var Yn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],I=Yn.reduce((e,t)=>{const n=ie.createSlot(`Primitive.${t}`),r=i.forwardRef((a,o)=>{const{asChild:c,...s}=a,v=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(v,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Xn(e,t){e&&pn.flushSync(()=>e.dispatchEvent(t))}function X(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Zn(e,t=globalThis==null?void 0:globalThis.document){const n=X(e);i.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Qn="DismissableLayer",Ae="dismissableLayer.update",Jn="dismissableLayer.pointerDownOutside",er="dismissableLayer.focusOutside",Fe,ut=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dt=i.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:c,onDismiss:s,...v}=e,u=i.useContext(ut),[f,g]=i.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=i.useState({}),E=M(t,b=>g(b)),d=Array.from(u.layers),[p]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=d.indexOf(p),w=f?d.indexOf(f):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,N=w>=x,A=rr(b=>{const O=b.target,H=[...u.branches].some(ge=>ge.contains(O));!N||H||(a==null||a(b),c==null||c(b),b.defaultPrevented||s==null||s())},m),j=ar(b=>{const O=b.target;[...u.branches].some(ge=>ge.contains(O))||(o==null||o(b),c==null||c(b),b.defaultPrevented||s==null||s())},m);return Zn(b=>{w===u.layers.size-1&&(r==null||r(b),!b.defaultPrevented&&s&&(b.preventDefault(),s()))},m),i.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Fe=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),We(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=Fe)}},[f,m,n,u]),i.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),We())},[f,u]),i.useEffect(()=>{const b=()=>h({});return document.addEventListener(Ae,b),()=>document.removeEventListener(Ae,b)},[]),l.jsx(I.div,{...v,ref:E,style:{pointerEvents:S?N?"auto":"none":void 0,...e.style},onFocusCapture:_(e.onFocusCapture,j.onFocusCapture),onBlurCapture:_(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:_(e.onPointerDownCapture,A.onPointerDownCapture)})});dt.displayName=Qn;var tr="DismissableLayerBranch",nr=i.forwardRef((e,t)=>{const n=i.useContext(ut),r=i.useRef(null),a=M(t,r);return i.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),l.jsx(I.div,{...e,ref:a})});nr.displayName=tr;function rr(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{const o=s=>{if(s.target&&!r.current){let v=function(){ft(Jn,n,u,{discrete:!0})};const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=v,t.addEventListener("click",a.current,{once:!0})):v()}else t.removeEventListener("click",a.current);r.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ar(e,t=globalThis==null?void 0:globalThis.document){const n=X(e),r=i.useRef(!1);return i.useEffect(()=>{const a=o=>{o.target&&!r.current&&ft(er,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function We(){const e=new CustomEvent(Ae);document.dispatchEvent(e)}function ft(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?Xn(a,o):a.dispatchEvent(o)}var pe="focusScope.autoFocusOnMount",he="focusScope.autoFocusOnUnmount",$e={bubbles:!1,cancelable:!0},or="FocusScope",vt=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...c}=e,[s,v]=i.useState(null),u=X(a),f=X(o),g=i.useRef(null),m=M(t,d=>v(d)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let d=function(S){if(h.paused||!s)return;const N=S.target;s.contains(N)?g.current=N:k(g.current,{select:!0})},p=function(S){if(h.paused||!s)return;const N=S.relatedTarget;N!==null&&(s.contains(N)||k(g.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const A of S)A.removedNodes.length>0&&k(s)};document.addEventListener("focusin",d),document.addEventListener("focusout",p);const w=new MutationObserver(x);return s&&w.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",p),w.disconnect()}}},[r,s,h.paused]),i.useEffect(()=>{if(s){Ue.add(h);const d=document.activeElement;if(!s.contains(d)){const x=new CustomEvent(pe,$e);s.addEventListener(pe,u),s.dispatchEvent(x),x.defaultPrevented||(sr(dr(gt(s)),{select:!0}),document.activeElement===d&&k(s))}return()=>{s.removeEventListener(pe,u),setTimeout(()=>{const x=new CustomEvent(he,$e);s.addEventListener(he,f),s.dispatchEvent(x),x.defaultPrevented||k(d??document.body,{select:!0}),s.removeEventListener(he,f),Ue.remove(h)},0)}}},[s,u,f,h]);const E=i.useCallback(d=>{if(!n&&!r||h.paused)return;const p=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,x=document.activeElement;if(p&&x){const w=d.currentTarget,[S,N]=ir(w);S&&N?!d.shiftKey&&x===N?(d.preventDefault(),n&&k(S,{select:!0})):d.shiftKey&&x===S&&(d.preventDefault(),n&&k(N,{select:!0})):x===w&&d.preventDefault()}},[n,r,h.paused]);return l.jsx(I.div,{tabIndex:-1,...c,ref:m,onKeyDown:E})});vt.displayName=or;function sr(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(k(r,{select:t}),document.activeElement!==n)return}function ir(e){const t=gt(e),n=Be(t,e),r=Be(t.reverse(),e);return[n,r]}function gt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Be(e,t){for(const n of e)if(!cr(n,{upTo:t}))return n}function cr(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function lr(e){return e instanceof HTMLInputElement&&"select"in e}function k(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&lr(e)&&t&&e.select()}}var Ue=ur();function ur(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ze(e,t),e.unshift(t)},remove(t){var n;e=ze(e,t),(n=e[0])==null||n.resume()}}}function ze(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function dr(e){return e.filter(t=>t.tagName!=="A")}var fr="Portal",mt=i.forwardRef((e,t)=>{var s;const{container:n,...r}=e,[a,o]=i.useState(!1);Y(()=>o(!0),[]);const c=n||a&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return c?Ze.createPortal(l.jsx(I.div,{...r,ref:t}),c):null});mt.displayName=fr;function vr(e,t){return i.useReducer((n,r)=>t[n][r]??n,e)}var ue=e=>{const{present:t,children:n}=e,r=gr(t),a=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),o=M(r.ref,mr(a));return typeof n=="function"||r.isPresent?i.cloneElement(a,{ref:o}):null};ue.displayName="Presence";function gr(e){const[t,n]=i.useState(),r=i.useRef(null),a=i.useRef(e),o=i.useRef("none"),c=e?"mounted":"unmounted",[s,v]=vr(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const u=Q(r.current);o.current=s==="mounted"?u:"none"},[s]),Y(()=>{const u=r.current,f=a.current;if(f!==e){const m=o.current,h=Q(u);e?v("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?v("UNMOUNT"):v(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,v]),Y(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,g=h=>{const d=Q(r.current).includes(h.animationName);if(h.target===t&&d&&(v("ANIMATION_END"),!a.current)){const p=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},m=h=>{h.target===t&&(o.current=Q(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else v("ANIMATION_END")},[t,v]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:i.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Q(e){return(e==null?void 0:e.animationName)||"none"}function mr(e){var r,a;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var xe=0;function pr(){i.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ve()),document.body.insertAdjacentElement("beforeend",e[1]??Ve()),xe++,()=>{xe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),xe--}},[])}function Ve(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var T=function(){return T=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},T.apply(this,arguments)};function pt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function hr(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var re="right-scroll-bar-position",ae="width-before-scroll-bar",xr="with-scroll-bars-hidden",br="--removed-body-scroll-bar-size";function be(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yr(e,t){var n=ce.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var Er=typeof window<"u"?i.useLayoutEffect:i.useEffect,Ge=new WeakMap;function wr(e,t){var n=yr(null,function(r){return e.forEach(function(a){return be(a,r)})});return Er(function(){var r=Ge.get(n);if(r){var a=new Set(r),o=new Set(e),c=n.current;a.forEach(function(s){o.has(s)||be(s,null)}),o.forEach(function(s){a.has(s)||be(s,c)})}Ge.set(n,e)},[e]),n}function Sr(e){return e}function Nr(e,t){t===void 0&&(t=Sr);var n=[],r=!1,a={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var c=t(o,r);return n.push(c),function(){n=n.filter(function(s){return s!==c})}},assignSyncMedium:function(o){for(r=!0;n.length;){var c=n;n=[],c.forEach(o)}n={push:function(s){return o(s)},filter:function(){return n}}},assignMedium:function(o){r=!0;var c=[];if(n.length){var s=n;n=[],s.forEach(o),c=n}var v=function(){var f=c;c=[],f.forEach(o)},u=function(){return Promise.resolve().then(v)};u(),n={push:function(f){c.push(f),u()},filter:function(f){return c=c.filter(f),n}}}};return a}function Ar(e){e===void 0&&(e={});var t=Nr(null);return t.options=T({async:!0,ssr:!1},e),t}var ht=function(e){var t=e.sideCar,n=pt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return i.createElement(r,T({},n))};ht.isSideCarExport=!0;function Dr(e,t){return e.useMedium(t),ht}var xt=Ar(),ye=function(){},de=i.forwardRef(function(e,t){var n=i.useRef(null),r=i.useState({onScrollCapture:ye,onWheelCapture:ye,onTouchMoveCapture:ye}),a=r[0],o=r[1],c=e.forwardProps,s=e.children,v=e.className,u=e.removeScrollBar,f=e.enabled,g=e.shards,m=e.sideCar,h=e.noRelative,E=e.noIsolation,d=e.inert,p=e.allowPinchZoom,x=e.as,w=x===void 0?"div":x,S=e.gapMode,N=pt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=m,j=wr([n,t]),b=T(T({},N),a);return i.createElement(i.Fragment,null,f&&i.createElement(A,{sideCar:xt,removeScrollBar:u,shards:g,noRelative:h,noIsolation:E,inert:d,setCallbacks:o,allowPinchZoom:!!p,lockRef:n,gapMode:S}),c?i.cloneElement(i.Children.only(s),T(T({},b),{ref:j})):i.createElement(w,T({},b,{className:v,ref:j}),s))});de.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};de.classNames={fullWidth:ae,zeroRight:re};var Cr=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Pr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Cr();return t&&e.setAttribute("nonce",t),e}function Rr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Tr(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var jr=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Pr())&&(Rr(t,n),Tr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Or=function(){var e=jr();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},bt=function(){var e=Or(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},_r={left:0,top:0,right:0,gap:0},Ee=function(e){return parseInt(e||"",10)||0},Mr=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Ee(n),Ee(r),Ee(a)]},Ir=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _r;var t=Mr(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Lr=bt(),z="data-scroll-locked",kr=function(e,t,n,r){var a=e.left,o=e.top,c=e.right,s=e.gap;return n===void 0&&(n="margin"),`
106
+ .`.concat(xr,` {
107
+ overflow: hidden `).concat(r,`;
108
+ padding-right: `).concat(s,"px ").concat(r,`;
109
+ }
110
+ body[`).concat(z,`] {
111
+ overflow: hidden `).concat(r,`;
112
+ overscroll-behavior: contain;
113
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
114
+ padding-left: `.concat(a,`px;
115
+ padding-top: `).concat(o,`px;
116
+ padding-right: `).concat(c,`px;
117
+ margin-left:0;
118
+ margin-top:0;
119
+ margin-right: `).concat(s,"px ").concat(r,`;
120
+ `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),`
121
+ }
122
+
123
+ .`).concat(re,` {
124
+ right: `).concat(s,"px ").concat(r,`;
125
+ }
126
+
127
+ .`).concat(ae,` {
128
+ margin-right: `).concat(s,"px ").concat(r,`;
129
+ }
130
+
131
+ .`).concat(re," .").concat(re,` {
132
+ right: 0 `).concat(r,`;
133
+ }
134
+
135
+ .`).concat(ae," .").concat(ae,` {
136
+ margin-right: 0 `).concat(r,`;
137
+ }
138
+
139
+ body[`).concat(z,`] {
140
+ `).concat(br,": ").concat(s,`px;
141
+ }
142
+ `)},Ke=function(){var e=parseInt(document.body.getAttribute(z)||"0",10);return isFinite(e)?e:0},Fr=function(){i.useEffect(function(){return document.body.setAttribute(z,(Ke()+1).toString()),function(){var e=Ke()-1;e<=0?document.body.removeAttribute(z):document.body.setAttribute(z,e.toString())}},[])},Wr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;Fr();var o=i.useMemo(function(){return Ir(a)},[a]);return i.createElement(Lr,{styles:kr(o,!t,a,n?"":"!important")})},De=!1;if(typeof window<"u")try{var J=Object.defineProperty({},"passive",{get:function(){return De=!0,!0}});window.addEventListener("test",J,J),window.removeEventListener("test",J,J)}catch{De=!1}var $=De?{passive:!1}:!1,$r=function(e){return e.tagName==="TEXTAREA"},yt=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!$r(e)&&n[t]==="visible")},Br=function(e){return yt(e,"overflowY")},Ur=function(e){return yt(e,"overflowX")},qe=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=Et(e,r);if(a){var o=wt(e,r),c=o[1],s=o[2];if(c>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zr=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Vr=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Et=function(e,t){return e==="v"?Br(t):Ur(t)},wt=function(e,t){return e==="v"?zr(t):Vr(t)},Gr=function(e,t){return e==="h"&&t==="rtl"?-1:1},Kr=function(e,t,n,r,a){var o=Gr(e,window.getComputedStyle(t).direction),c=o*r,s=n.target,v=t.contains(s),u=!1,f=c>0,g=0,m=0;do{if(!s)break;var h=wt(e,s),E=h[0],d=h[1],p=h[2],x=d-p-o*E;(E||x)&&Et(e,s)&&(g+=x,m+=E);var w=s.parentNode;s=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!v&&s!==document.body||v&&(t.contains(s)||t===s));return(f&&Math.abs(g)<1||!f&&Math.abs(m)<1)&&(u=!0),u},ee=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},He=function(e){return[e.deltaX,e.deltaY]},Ye=function(e){return e&&"current"in e?e.current:e},qr=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Hr=function(e){return`
143
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
144
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
145
+ `)},Yr=0,B=[];function Xr(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),a=i.useState(Yr++)[0],o=i.useState(bt)[0],c=i.useRef(e);i.useEffect(function(){c.current=e},[e]),i.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var d=hr([e.lockRef.current],(e.shards||[]).map(Ye),!0).filter(Boolean);return d.forEach(function(p){return p.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),d.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=i.useCallback(function(d,p){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var x=ee(d),w=n.current,S="deltaX"in d?d.deltaX:w[0]-x[0],N="deltaY"in d?d.deltaY:w[1]-x[1],A,j=d.target,b=Math.abs(S)>Math.abs(N)?"h":"v";if("touches"in d&&b==="h"&&j.type==="range")return!1;var O=qe(b,j);if(!O)return!0;if(O?A=b:(A=b==="v"?"h":"v",O=qe(b,j)),!O)return!1;if(!r.current&&"changedTouches"in d&&(S||N)&&(r.current=A),!A)return!0;var H=r.current||A;return Kr(H,p,d,H==="h"?S:N)},[]),v=i.useCallback(function(d){var p=d;if(!(!B.length||B[B.length-1]!==o)){var x="deltaY"in p?He(p):ee(p),w=t.current.filter(function(A){return A.name===p.type&&(A.target===p.target||p.target===A.shadowParent)&&qr(A.delta,x)})[0];if(w&&w.should){p.cancelable&&p.preventDefault();return}if(!w){var S=(c.current.shards||[]).map(Ye).filter(Boolean).filter(function(A){return A.contains(p.target)}),N=S.length>0?s(p,S[0]):!c.current.noIsolation;N&&p.cancelable&&p.preventDefault()}}},[]),u=i.useCallback(function(d,p,x,w){var S={name:d,delta:p,target:x,should:w,shadowParent:Zr(x)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(N){return N!==S})},1)},[]),f=i.useCallback(function(d){n.current=ee(d),r.current=void 0},[]),g=i.useCallback(function(d){u(d.type,He(d),d.target,s(d,e.lockRef.current))},[]),m=i.useCallback(function(d){u(d.type,ee(d),d.target,s(d,e.lockRef.current))},[]);i.useEffect(function(){return B.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener("wheel",v,$),document.addEventListener("touchmove",v,$),document.addEventListener("touchstart",f,$),function(){B=B.filter(function(d){return d!==o}),document.removeEventListener("wheel",v,$),document.removeEventListener("touchmove",v,$),document.removeEventListener("touchstart",f,$)}},[]);var h=e.removeScrollBar,E=e.inert;return i.createElement(i.Fragment,null,E?i.createElement(o,{styles:Hr(a)}):null,h?i.createElement(Wr,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Zr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Qr=Dr(xt,Xr);var St=i.forwardRef(function(e,t){return i.createElement(de,T({},e,{ref:t,sideCar:Qr}))});St.classNames=de.classNames;var Jr=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},U=new WeakMap,te=new WeakMap,ne={},we=0,Nt=function(e){return e&&(e.host||Nt(e.parentNode))},ea=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Nt(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ta=function(e,t,n,r){var a=ea(t,Array.isArray(e)?e:[e]);ne[n]||(ne[n]=new WeakMap);var o=ne[n],c=[],s=new Set,v=new Set(a),u=function(g){!g||s.has(g)||(s.add(g),u(g.parentNode))};a.forEach(u);var f=function(g){!g||v.has(g)||Array.prototype.forEach.call(g.children,function(m){if(s.has(m))f(m);else try{var h=m.getAttribute(r),E=h!==null&&h!=="false",d=(U.get(m)||0)+1,p=(o.get(m)||0)+1;U.set(m,d),o.set(m,p),c.push(m),d===1&&E&&te.set(m,!0),p===1&&m.setAttribute(n,"true"),E||m.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",m,x)}})};return f(t),s.clear(),we++,function(){c.forEach(function(g){var m=U.get(g)-1,h=o.get(g)-1;U.set(g,m),o.set(g,h),m||(te.has(g)||g.removeAttribute(r),te.delete(g)),h||g.removeAttribute(n)}),we--,we||(U=new WeakMap,U=new WeakMap,te=new WeakMap,ne={})}},na=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=Jr(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),ta(r,a,n,"aria-hidden")):function(){return null}},fe="Dialog",[At,Dt]=lt(fe),[ra,R]=At(fe),Ct=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:c=!0}=e,s=i.useRef(null),v=i.useRef(null),[u,f]=Kn({prop:r,defaultProp:a??!1,onChange:o,caller:fe});return l.jsx(ra,{scope:t,triggerRef:s,contentRef:v,contentId:me(),titleId:me(),descriptionId:me(),open:u,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(g=>!g),[f]),modal:c,children:n})};Ct.displayName=fe;var Pt="DialogTrigger",Rt=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=R(Pt,n),o=M(t,a.triggerRef);return l.jsx(I.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Oe(a.open),...r,ref:o,onClick:_(e.onClick,a.onOpenToggle)})});Rt.displayName=Pt;var Te="DialogPortal",[aa,Tt]=At(Te,{forceMount:void 0}),jt=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=R(Te,t);return l.jsx(aa,{scope:t,forceMount:n,children:i.Children.map(r,c=>l.jsx(ue,{present:n||o.open,children:l.jsx(mt,{asChild:!0,container:a,children:c})}))})};jt.displayName=Te;var oe="DialogOverlay",Ot=i.forwardRef((e,t)=>{const n=Tt(oe,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=R(oe,e.__scopeDialog);return o.modal?l.jsx(ue,{present:r||o.open,children:l.jsx(sa,{...a,ref:t})}):null});Ot.displayName=oe;var oa=ie.createSlot("DialogOverlay.RemoveScroll"),sa=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=R(oe,n);return l.jsx(St,{as:oa,allowPinchZoom:!0,shards:[a.contentRef],children:l.jsx(I.div,{"data-state":Oe(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),W="DialogContent",_t=i.forwardRef((e,t)=>{const n=Tt(W,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=R(W,e.__scopeDialog);return l.jsx(ue,{present:r||o.open,children:o.modal?l.jsx(ia,{...a,ref:t}):l.jsx(ca,{...a,ref:t})})});_t.displayName=W;var ia=i.forwardRef((e,t)=>{const n=R(W,e.__scopeDialog),r=i.useRef(null),a=M(t,n.contentRef,r);return i.useEffect(()=>{const o=r.current;if(o)return na(o)},[]),l.jsx(Mt,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:_(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0;(c.button===2||s)&&o.preventDefault()}),onFocusOutside:_(e.onFocusOutside,o=>o.preventDefault())})}),ca=i.forwardRef((e,t)=>{const n=R(W,e.__scopeDialog),r=i.useRef(!1),a=i.useRef(!1);return l.jsx(Mt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,s;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(s=n.triggerRef.current)==null||s.focus(),o.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:o=>{var v,u;(v=e.onInteractOutside)==null||v.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=o.target;((u=n.triggerRef.current)==null?void 0:u.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),Mt=i.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...c}=e,s=R(W,n),v=i.useRef(null),u=M(t,v);return pr(),l.jsxs(l.Fragment,{children:[l.jsx(vt,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:l.jsx(dt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Oe(s.open),...c,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(ua,{titleId:s.titleId}),l.jsx(fa,{contentRef:v,descriptionId:s.descriptionId})]})]})}),je="DialogTitle",It=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=R(je,n);return l.jsx(I.h2,{id:a.titleId,...r,ref:t})});It.displayName=je;var Lt="DialogDescription",kt=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=R(Lt,n);return l.jsx(I.p,{id:a.descriptionId,...r,ref:t})});kt.displayName=Lt;var Ft="DialogClose",Wt=i.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=R(Ft,n);return l.jsx(I.button,{type:"button",...r,ref:t,onClick:_(e.onClick,()=>a.onOpenChange(!1))})});Wt.displayName=Ft;function Oe(e){return e?"open":"closed"}var $t="DialogTitleWarning",[la,Bt]=$n($t,{contentName:W,titleName:je,docsSlug:"dialog"}),ua=({titleId:e})=>{const t=Bt($t),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
146
+
147
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
148
+
149
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return i.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},da="DialogDescriptionWarning",fa=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bt(da).contentName}}.`;return i.useEffect(()=>{var o;const a=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},va=Ct,ga=Rt,ma=jt,pa=Ot,ha=_t,xa=It,ba=kt,Ut=Wt,zt="AlertDialog",[ya,io]=lt(zt,[Dt]),L=Dt(),Vt=e=>{const{__scopeAlertDialog:t,...n}=e,r=L(t);return l.jsx(va,{...r,...n,modal:!0})};Vt.displayName=zt;var Ea="AlertDialogTrigger",Gt=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=L(n);return l.jsx(ga,{...a,...r,ref:t})});Gt.displayName=Ea;var wa="AlertDialogPortal",Kt=e=>{const{__scopeAlertDialog:t,...n}=e,r=L(t);return l.jsx(ma,{...r,...n})};Kt.displayName=wa;var Sa="AlertDialogOverlay",qt=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=L(n);return l.jsx(pa,{...a,...r,ref:t})});qt.displayName=Sa;var V="AlertDialogContent",[Na,Aa]=ya(V),Da=ie.createSlottable("AlertDialogContent"),Ht=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...a}=e,o=L(n),c=i.useRef(null),s=M(t,c),v=i.useRef(null);return l.jsx(la,{contentName:V,titleName:Yt,docsSlug:"alert-dialog",children:l.jsx(Na,{scope:n,cancelRef:v,children:l.jsxs(ha,{role:"alertdialog",...o,...a,ref:s,onOpenAutoFocus:_(a.onOpenAutoFocus,u=>{var f;u.preventDefault(),(f=v.current)==null||f.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[l.jsx(Da,{children:r}),l.jsx(Pa,{contentRef:c})]})})})});Ht.displayName=V;var Yt="AlertDialogTitle",Xt=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=L(n);return l.jsx(xa,{...a,...r,ref:t})});Xt.displayName=Yt;var Zt="AlertDialogDescription",Qt=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=L(n);return l.jsx(ba,{...a,...r,ref:t})});Qt.displayName=Zt;var Ca="AlertDialogAction",Jt=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,a=L(n);return l.jsx(Ut,{...a,...r,ref:t})});Jt.displayName=Ca;var en="AlertDialogCancel",tn=i.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:a}=Aa(en,n),o=L(n),c=M(t,a);return l.jsx(Ut,{...o,...r,ref:c})});tn.displayName=en;var Pa=({contentRef:e})=>{const t=`\`${V}\` requires a description for the component to be accessible for screen reader users.
150
+
151
+ You can add a description to the \`${V}\` by passing a \`${Zt}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
152
+
153
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${V}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
154
+
155
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return i.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},Ra=Vt,Ta=Gt,ja=Kt,Oa=qt,_a=Ht,Ma=Jt,Ia=tn,La=Xt,ka=Qt;function Fa({...e}){return l.jsx(Ra,{"data-slot":"alert-dialog",...e})}function Wa({...e}){return l.jsx(Ta,{"data-slot":"alert-dialog-trigger",...e})}function nn({...e}){return l.jsx(ja,{"data-slot":"alert-dialog-portal",...e})}function rn({className:e,...t}){return l.jsx(Oa,{"data-slot":"alert-dialog-overlay",className:y.cn("z-50 fixed inset-0 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t})}function $a({className:e,...t}){return l.jsxs(nn,{children:[l.jsx(rn,{}),l.jsx(_a,{"data-slot":"alert-dialog-content",className:y.cn("top-[50%] left-[50%] z-50 fixed gap-4 grid bg-background shadow-lg p-6 border rounded-lg w-full max-w-[calc(100%-2rem)] sm:max-w-lg translate-x-[-50%] translate-y-[-50%] data-[state=closed]:animate-out data-[state=open]:animate-in duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",e),...t})]})}function Ba({className:e,...t}){return l.jsx("div",{"data-slot":"alert-dialog-header",className:y.cn("flex flex-col gap-2 sm:text-left text-center",e),...t})}function Ua({className:e,...t}){return l.jsx("div",{"data-slot":"alert-dialog-footer",className:y.cn("flex sm:flex-row flex-col-reverse sm:justify-end gap-2",e),...t})}function za({className:e,...t}){return l.jsx(La,{"data-slot":"alert-dialog-title",className:y.cn("font-semibold text-lg",e),...t})}function Va({className:e,...t}){return l.jsx(ka,{"data-slot":"alert-dialog-description",className:y.cn("text-muted-foreground text-sm",e),...t})}function Ga({className:e,...t}){return l.jsx(Ma,{className:y.cn(Re(),e),...t})}function Ka({className:e,...t}){return l.jsx(Ia,{className:y.cn(Re({variant:"outline"}),e),...t})}const qa=({translationKey:e,translationOptions:t,namespace:n,...r})=>{const o=Xe.useTranslations(n)(e,t==null?void 0:t.args);return l.jsx(q,{...r,children:o})},Ha=({translationKey:e,translationOptions:t,namespace:n,className:r,tag:a="div"})=>{const c=Xe.useTranslations(n)(e,t==null?void 0:t.args);return ce.createElement(a,{className:r,"data-testid":"translated-html"},c)};var Ya=Object.defineProperty,D=(e,t)=>Ya(e,"name",{value:t,configurable:!0}),Se=new Map,Ne=new Map;function _e(e,t){return`${e}:${JSON.stringify(t??{})}`}D(_e,"getFormatterKey");function an(e){const t=typeof e=="string"||typeof e=="number"?new Date(e):e;return t instanceof Date&&!Number.isNaN(t.getTime())?t:null}D(an,"parseDate");function on(e,t="en",n){var o;const r=an(e);if(!r)return"";const a=_e(t,n);return Se.has(a)||Se.set(a,new Intl.DateTimeFormat(t,n)),((o=Se.get(a))==null?void 0:o.format(r))??""}D(on,"formatDate");function sn(e,t="en",n){var a;if(typeof e!="number"||Number.isNaN(e))return"";const r=_e(t,n);return Ne.has(r)||Ne.set(r,new Intl.NumberFormat(t,n)),((a=Ne.get(r))==null?void 0:a.format(e))??""}D(sn,"formatNumber");var ve={defaultLocale:"en",supportedLocales:["en","es","fr","it","pt-BR","pt-PT"],fallbackLocale:"en"};function Xa(){return ve.supportedLocales}D(Xa,"getSupportedLanguages");function Za(){return ve.defaultLocale}D(Za,"getDefaultLanguage");function Qa(){return ve.fallbackLocale}D(Qa,"getFallbackLanguage");function Ja(e){return ve.supportedLocales.includes(e)}D(Ja,"isSupportedLanguage");var F=new Map;function eo({value:e,forms:t,lang:n,type:r="cardinal"}){if(!ln(e,t))return"";if(e===0&&t.zero)return Ce(t.zero,e);const o=un(n,r).select(e),c=cn(t,o)??t.other??Object.values(t)[0];return c?Ce(c,e):""}D(eo,"pluralize");function Me(e,t){return`${e}:${t}`}D(Me,"getPluralRulesKey");var to=/{count}|#/g;function cn(e,t){switch(t){case"zero":return e.zero;case"one":return e.one;case"two":return e.two;case"few":return e.few;case"many":return e.many;case"other":return e.other;default:return}}D(cn,"selectTemplate");function ln(e,t){return typeof e=="number"&&t&&typeof t=="object"}D(ln,"isValidInput");function Ce(e,t){return e.replaceAll(to,t.toString())}D(Ce,"replacePlaceholders");function un(e,t){const n=Me(e,t);if(!F.has(n))try{F.set(n,new Intl.PluralRules(e,{type:t}))}catch{return se(n,t)}return F.get(n)??se(n,t)}D(un,"getPluralRules");function se(e,t){const n=Me("en",t);F.has(n)||F.set(n,new Intl.PluralRules("en",{type:t}));const r=F.get(n)??se(n,t);return F.set(e,r),r}D(se,"getFallbackPluralRules");var P;P=class{constructor(){Z(this,"fallbackLocale");this.fallbackLocale="en"}static getInstance(){return P.instance||(P.instance=new P),P.instance}detectLocale(t){return t?this.detectFromRequest(t):this.fallbackLocale}detectFromRequest(t){var o,c,s;const n=(o=t.url.split("?")[1])==null?void 0:o.split("=")[1],r=t.headers.get("accept-language"),a=(s=(c=t.headers.get("cookie"))==null?void 0:c.split("; ").find(v=>v.startsWith("locale=")))==null?void 0:s.split("=")[1];return n??a??this.parseAcceptLanguage(r??"")??this.fallbackLocale}parseAcceptLanguage(t){if(!t)return null;let n=null,r=0;for(const a of t.split(",")){const{lang:o,q:c}=this.parseLangAndQ(a.trim());if(c>r&&(r=c,n=o,c===1))break}return n}parseLangAndQ(t){const n=t.indexOf(";"),r=n===-1?t:t.slice(0,Math.max(0,n));let a=1;if(n!==-1){const o=/q=(?<q>[\d.]+)/.exec(t.slice(n+1));a=o!=null&&o.groups?Number.parseFloat(o.groups.q)||0:1}return{lang:r,q:a}}setFallbackLocale(t){this.fallbackLocale=t}},D(P,"LocaleDetector"),Z(P,"instance");var G;G=class{constructor(t){Z(this,"namespaces");this.namespaces=t?new Map(t):new Map}addNamespace(t,n){if(!dn(t))throw new Error("Invalid namespace name");this.namespaces.set(t,n)}getNamespace(t){return this.namespaces.get(t)}getAllNamespaces(){return[...this.namespaces.keys()]}mergeNamespaces(t,n){const r=this.namespaces.get(t)??{},a=this.namespaces.get(n)??{};this.namespaces.set(t,{...r,...a})}validateNamespace(t,n){const r=this.namespaces.get(t);return r?n?Object.entries(n).every(([a,o])=>{var s;const c=(s=Object.getOwnPropertyDescriptor(r,a))==null?void 0:s.value;return c!==void 0&&typeof c===o}):!0:!1}},D(G,"NamespaceManager");function dn(e){return/^\w+$/.test(e)}D(dn,"isSafeKey");const no=({date:e,formatOptions:t,locale:n,...r})=>{const a=on(e,n,t);return l.jsx(q,{...r,children:a})},ro=({value:e,formatOptions:t,locale:n,...r})=>{const a=sn(e,n,t);return l.jsx(q,{...r,children:a})};function ao({locale:e,locales:t,onChange:n,getLabel:r,disabled:a}){return l.jsxs(nt,{value:e,onValueChange:n,disabled:a,children:[l.jsx(at,{children:l.jsx(rt,{placeholder:r(e)})}),l.jsx(ot,{children:t.map(o=>l.jsx(st,{value:o,children:r(o)},o))})]})}function oo({className:e,reverse:t=!1,pauseOnHover:n=!1,paused:r=!1,children:a,vertical:o=!1,repeat:c=4,...s}){return l.jsx("div",{...s,className:y.cn("group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",{"flex-row":!o,"flex-col":o},e),children:Array(c).fill(0).map((v,u)=>l.jsx("div",{className:y.cn("flex shrink-0 justify-around [gap:var(--gap)]",{"animate-marquee flex-row":!o,"animate-marquee-vertical flex-col":o,"group-hover:[animation-play-state:paused]":n,"[animation-direction:reverse]":t,"[animation-play-state:paused]":r}),children:a},u))})}exports.AlertDialog=Fa;exports.AlertDialogAction=Ga;exports.AlertDialogCancel=Ka;exports.AlertDialogContent=$a;exports.AlertDialogDescription=Va;exports.AlertDialogFooter=Ua;exports.AlertDialogHeader=Ba;exports.AlertDialogOverlay=rn;exports.AlertDialogPortal=nn;exports.AlertDialogTitle=za;exports.AlertDialogTrigger=Wa;exports.AuroraText=tt;exports.Box=K;exports.Button=In;exports.Container=hn;exports.ExternalLink=Tn;exports.Flex=Dn;exports.FormattedDate=no;exports.FormattedNumber=ro;exports.Grid=Cn;exports.Heading=Rn;exports.Input=Ln;exports.LanguageSelector=ao;exports.Marquee=oo;exports.Paragraph=On;exports.Section=_n;exports.Select=nt;exports.SelectContent=ot;exports.SelectGroup=kn;exports.SelectItem=st;exports.SelectLabel=Fn;exports.SelectScrollDownButton=ct;exports.SelectScrollUpButton=it;exports.SelectSeparator=Wn;exports.SelectTrigger=at;exports.SelectValue=rt;exports.Stack=Mn;exports.Text=q;exports.TranslatedHtml=Ha;exports.TranslatedText=qa;