@okam/stack-ui 1.9.0 → 1.9.2

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.
@@ -0,0 +1,15 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import l from "lodash.isequal";
3
+ import { memo as t } from "react";
4
+ const i = (e) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", ...e, children: /* @__PURE__ */ o(
5
+ "path",
6
+ {
7
+ fillRule: "evenodd",
8
+ clipRule: "evenodd",
9
+ d: "M2 12.5001C2 17.4501 5.6 21.5501 10.35 22.4001L10.4094 22.3515C10.4063 22.3509 10.4032 22.3503 10.4001 22.3498V15.2998H7.90015V12.4998H10.4001V10.2998C10.4001 7.79978 12.0001 6.39978 14.3001 6.39978C15.0001 6.39978 15.8001 6.49978 16.5001 6.59978V9.14978H15.2001C14.0001 9.14978 13.7001 9.74978 13.7001 10.5498V12.4998H16.3501L15.9001 15.2998H13.7001V22.3498C13.6696 22.3553 13.639 22.3608 13.6084 22.366L13.65 22.4001C18.4 21.5501 22 17.4501 22 12.5001C22 7.00006 17.5 2.50006 12 2.50006C6.5 2.50006 2 7.00006 2 12.5001Z",
10
+ fill: "currentColor"
11
+ }
12
+ ) }), d = t(i, l);
13
+ export {
14
+ d as default
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("lodash.isequal"),n=require("react"),l=o=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...o,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 12.5001C2 17.4501 5.6 21.5501 10.35 22.4001L10.4094 22.3515C10.4063 22.3509 10.4032 22.3503 10.4001 22.3498V15.2998H7.90015V12.4998H10.4001V10.2998C10.4001 7.79978 12.0001 6.39978 14.3001 6.39978C15.0001 6.39978 15.8001 6.49978 16.5001 6.59978V9.14978H15.2001C14.0001 9.14978 13.7001 9.74978 13.7001 10.5498V12.4998H16.3501L15.9001 15.2998H13.7001V22.3498C13.6696 22.3553 13.639 22.3608 13.6084 22.366L13.65 22.4001C18.4 21.5501 22 17.4501 22 12.5001C22 7.00006 17.5 2.50006 12 2.50006C6.5 2.50006 2 7.00006 2 12.5001Z",fill:"currentColor"})}),i=n.memo(l,t);exports.default=i;
@@ -0,0 +1,15 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import e from "lodash.isequal";
3
+ import { memo as l } from "react";
4
+ const t = (C) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: 18, height: 19, viewBox: "0 0 18 19", fill: "none", ...C, children: /* @__PURE__ */ o(
5
+ "path",
6
+ {
7
+ fillRule: "evenodd",
8
+ clipRule: "evenodd",
9
+ d: "M0 1.79773C0 1.07677 0.604838 0.5 1.33064 0.5H16.6694C17.3952 0.5 18 1.07677 18 1.79773V17.2023C18 17.9232 17.3952 18.5 16.6694 18.5H1.33064C0.604838 18.5 0 17.9232 0 17.2023V1.79773ZM5.44373 15.5677V7.44492H2.73405V15.5677H5.44373ZM4.08889 6.31541C5.03244 6.31541 5.63728 5.69058 5.63728 4.92155C5.61308 4.1285 5.05663 3.52769 4.11308 3.52769C3.19373 3.52769 2.5647 4.1285 2.5647 4.92155C2.5647 5.69058 3.14534 6.31541 4.08889 6.31541ZM9.65304 15.5677H6.94336C6.94336 15.5677 6.99175 8.18991 6.94336 7.44492H9.67723V8.58586C9.66903 8.59819 9.66097 8.6104 9.65304 8.62249H9.67723V8.58586C10.0439 8.03441 10.6772 7.25266 12.1208 7.25266C13.9111 7.25266 15.2417 8.4062 15.2417 10.9055V15.5677H12.5321V11.2179C12.5321 10.1365 12.145 9.39151 11.153 9.39151C10.403 9.39151 9.94336 9.89619 9.74981 10.3768C9.67723 10.5451 9.65304 10.7854 9.65304 11.0257V15.5677Z",
10
+ fill: "currentColor"
11
+ }
12
+ ) }), m = l(t, e);
13
+ export {
14
+ m as default
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("lodash.isequal"),o=require("react"),i=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:18,height:19,viewBox:"0 0 18 19",fill:"none",...t,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.79773C0 1.07677 0.604838 0.5 1.33064 0.5H16.6694C17.3952 0.5 18 1.07677 18 1.79773V17.2023C18 17.9232 17.3952 18.5 16.6694 18.5H1.33064C0.604838 18.5 0 17.9232 0 17.2023V1.79773ZM5.44373 15.5677V7.44492H2.73405V15.5677H5.44373ZM4.08889 6.31541C5.03244 6.31541 5.63728 5.69058 5.63728 4.92155C5.61308 4.1285 5.05663 3.52769 4.11308 3.52769C3.19373 3.52769 2.5647 4.1285 2.5647 4.92155C2.5647 5.69058 3.14534 6.31541 4.08889 6.31541ZM9.65304 15.5677H6.94336C6.94336 15.5677 6.99175 8.18991 6.94336 7.44492H9.67723V8.58586C9.66903 8.59819 9.66097 8.6104 9.65304 8.62249H9.67723V8.58586C10.0439 8.03441 10.6772 7.25266 12.1208 7.25266C13.9111 7.25266 15.2417 8.4062 15.2417 10.9055V15.5677H12.5321V11.2179C12.5321 10.1365 12.145 9.39151 11.153 9.39151C10.403 9.39151 9.94336 9.89619 9.74981 10.3768C9.67723 10.5451 9.65304 10.7854 9.65304 11.0257V15.5677Z",fill:"currentColor"})}),l=o.memo(i,n);exports.default=l;
package/X-02116119.mjs ADDED
@@ -0,0 +1,13 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import r from "lodash.isequal";
3
+ import { memo as i } from "react";
4
+ const m = (t) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 25, viewBox: "0 0 24 25", fill: "none", ...t, children: /* @__PURE__ */ o(
5
+ "path",
6
+ {
7
+ d: "M14.119 11.7052L20.4486 4.5H18.9492L13.4509 10.7549L9.0626 4.5H4L10.6374 13.9594L4 21.5142H5.4994L11.3021 14.9074L15.9374 21.5142H21M6.04057 5.60727H8.34407L18.9481 20.4613H16.644",
8
+ fill: "currentColor"
9
+ }
10
+ ) }), s = i(m, r);
11
+ export {
12
+ s as default
13
+ };
package/X-ed6c3d62.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("lodash.isequal"),n=require("react"),r=t=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,viewBox:"0 0 24 25",fill:"none",...t,children:e.jsx("path",{d:"M14.119 11.7052L20.4486 4.5H18.9492L13.4509 10.7549L9.0626 4.5H4L10.6374 13.9594L4 21.5142H5.4994L11.3021 14.9074L15.9374 21.5142H21M6.04057 5.60727H8.34407L18.9481 20.4613H16.644",fill:"currentColor"})}),i=n.memo(r,o);exports.default=i;
@@ -1,3 +1,4 @@
1
+ /// <reference types="trusted-types" />
1
2
  import type React from 'react';
2
3
  import type { TToken } from '../../providers/Theme/interface';
3
4
  import type { TDefaultComponent } from '../../types/components';
@@ -1,8 +1,9 @@
1
+ import type React from 'react';
1
2
  import type { TToken } from '../../providers/Theme/interface';
2
3
  import type { TDefaultComponent } from '../../types/components';
3
4
  export interface TShareButtonProps extends TDefaultComponent<TShareButtonTokens> {
4
5
  id: string;
5
- icon?: string;
6
+ icon?: React.ReactNode;
6
7
  ariaLabel: string;
7
8
  sharingLinksList: TShareButtonLink[];
8
9
  onShare?: (sharingMedium: string) => void;
@@ -17,7 +18,7 @@ export interface TIconsContainerProps extends Omit<TShareButtonProps, 'ariaLabel
17
18
  }
18
19
  export interface TShareButtonLink {
19
20
  ariaLabel: string;
20
- icon: string;
21
+ icon?: React.ReactNode;
21
22
  key: string;
22
23
  onClick?: (linkKey: string) => void;
23
24
  href?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="trusted-types" />
1
2
  import type React from 'react';
2
3
  import type { TToken } from '../../providers/Theme/interface';
3
4
  import type { TDefaultComponent } from '../../types/components';
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const FacebookRounded: React.MemoExoticComponent<(props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
3
+ export default FacebookRounded;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const LinkedIn: React.MemoExoticComponent<(props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
3
+ export default LinkedIn;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const X: React.MemoExoticComponent<(props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
3
+ export default X;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),a=require("react/jsx-runtime"),g=require("tailwind-variants"),_t=require("radash"),y=require("react-aria"),Vt=require("react-div-100vh"),Qt=require("@react-stately/overlays"),E=require("react-spring"),G=require("@react-aria/overlays"),_=require("@react-aria/focus"),rt=require("react-stately"),Wt=require("isomorphic-dompurify"),Ht=require("lodash.isequal"),fe=require("@react-aria/i18n"),je=require("lodash"),ae=require("react-hook-form"),Gt=require("@react-aria/checkbox"),zt=require("@react-aria/visually-hidden"),Kt=require("@react-stately/toggle"),Zt=require("react-i18next"),Te=require("@react-aria/datepicker"),nt=require("@react-stately/datepicker"),Se=require("@react-aria/calendar"),Xt=require("@react-stately/calendar"),er=require("@react-aria/utils");function tr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const rr=tr(h),ot=e=>e;function nr(){const e=h.createContext(void 0);function t(){const r=h.useContext(e);return r===void 0?null:r}return[t,e.Provider]}const or={typography:()=>""},[st,sr]=nr();function at({children:e,brandTheme:t=or}){const r=h.useMemo(()=>({brandTheme:t}),[t]);return a.jsx(sr,{value:r,children:e})}const it=e=>({children:r})=>a.jsx(at,{brandTheme:e,children:r}),ar=g.tv({base:"[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{textAlign:{center:"text-center",left:"text-left"}}}),ir=g.tv({base:"grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black",variants:{titleBold:{true:"font-bold"},textAlign:{center:"grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",left:"grid-cols-[1fr_3rem]"}}}),lr=g.tv({base:"",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"justify-self-center col-start-2",left:"justify-self-start"}}}),cr=g.tv({base:"text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square",variants:{isOpen:{true:"-rotate-90",false:""}}}),ur=g.tv({base:"font-body text-inherit h-auto grid grid-rows-[0fr] transition-all duration-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{isOpen:{true:"pb-8 pt-3 grid-rows-[1fr]",false:""},textAlign:{center:"grid-cols-[3rem_1fr_3rem] px-6 text-center",left:"grid-cols-[1fr_3rem] text-left"}}}),dr=g.tv({base:"overflow-hidden",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"col-start-2",left:""}}}),fr=g.tv({base:"w-full bg-slate-100"}),lt=g.tv({base:"max-w-screen-lg mx-auto w-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"},spacing:{small:"mb-3",medium:"mb-6",large:"mb-8",none:"mb-0"}}}),hr=g.tv({extend:lt,base:"grid grid-cols-12 gap-6 px-4 col-span-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"}}}),mr=g.tv({base:"bg-slate-300 h-64 p-4 flex justify-start items-end",defaultVariants:{size:"small"},variants:{size:{small:"col-span-12 sm:col-span-6 md:col-span-4 lg:col-span-4",medium:"col-span-12 sm:col-span-12 md:col-span-8 lg:col-span-8",large:"lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"}}}),X=g.tv({base:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react"),a=require("react/jsx-runtime"),g=require("tailwind-variants"),_t=require("radash"),y=require("react-aria"),Vt=require("react-div-100vh"),Qt=require("@react-stately/overlays"),E=require("react-spring"),G=require("@react-aria/overlays"),_=require("@react-aria/focus"),rt=require("react-stately"),Wt=require("isomorphic-dompurify"),Ht=require("lodash.isequal"),fe=require("@react-aria/i18n"),je=require("lodash"),ae=require("react-hook-form"),Gt=require("@react-aria/checkbox"),zt=require("@react-aria/visually-hidden"),Kt=require("@react-stately/toggle"),Xt=require("react-i18next"),Te=require("@react-aria/datepicker"),nt=require("@react-stately/datepicker"),ke=require("@react-aria/calendar"),Zt=require("@react-stately/calendar"),er=require("@react-aria/utils");function tr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const rr=tr(h),ot=e=>e;function nr(){const e=h.createContext(void 0);function t(){const r=h.useContext(e);return r===void 0?null:r}return[t,e.Provider]}const or={typography:()=>""},[st,sr]=nr();function at({children:e,brandTheme:t=or}){const r=h.useMemo(()=>({brandTheme:t}),[t]);return a.jsx(sr,{value:r,children:e})}const it=e=>({children:r})=>a.jsx(at,{brandTheme:e,children:r}),ar=g.tv({base:"[border-radius: 32px] p-1.5 focus:outline-none text-color-1-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{textAlign:{center:"text-center",left:"text-left"}}}),ir=g.tv({base:"grid overflow-hidden w-full items-center border-b-2 border-color-1-500 focus-ring-black",variants:{titleBold:{true:"font-bold"},textAlign:{center:"grid-cols-[3rem_1fr_3rem] pl-0 sm:pl-0",left:"grid-cols-[1fr_3rem]"}}}),lr=g.tv({base:"",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"justify-self-center col-start-2",left:"justify-self-start"}}}),cr=g.tv({base:"text-color-1-500 min-h-12 rotate-90 min-w-12 rounded-full flex items-center justify-center transition duration-500 transform ml-auto aspect-square",variants:{isOpen:{true:"-rotate-90",false:""}}}),ur=g.tv({base:"font-body text-inherit h-auto grid grid-rows-[0fr] transition-all duration-500",defaultVariants:{textAlign:"left",isOpen:!1},variants:{isOpen:{true:"pb-8 pt-3 grid-rows-[1fr]",false:""},textAlign:{center:"grid-cols-[3rem_1fr_3rem] px-6 text-center",left:"grid-cols-[1fr_3rem] text-left"}}}),dr=g.tv({base:"overflow-hidden",defaultVariants:{textAlign:"left"},variants:{textAlign:{center:"col-start-2",left:""}}}),fr=g.tv({base:"w-full bg-slate-100"}),lt=g.tv({base:"max-w-screen-lg mx-auto w-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"},spacing:{small:"mb-3",medium:"mb-6",large:"mb-8",none:"mb-0"}}}),hr=g.tv({extend:lt,base:"grid grid-cols-12 gap-6 px-4 col-span-full",variants:{fullWidth:{true:"max-w-full col-span-full p-0"}}}),mr=g.tv({base:"bg-slate-300 h-64 p-4 flex justify-start items-end",defaultVariants:{size:"small"},variants:{size:{small:"col-span-12 sm:col-span-6 md:col-span-4 lg:col-span-4",medium:"col-span-12 sm:col-span-12 md:col-span-8 lg:col-span-8",large:"lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"}}}),Z=g.tv({base:`
2
2
  flex
3
3
  items-center
4
4
  justify-center
@@ -39,7 +39,7 @@
39
39
  text-white
40
40
  pointer-events-none
41
41
  !border-error
42
- `},size:{default:"min-w-12 min-h-6",large:"min-w-36 min-h-18"},shape:{rounded:"rounded-md",circular:"rounded-full"}}}),br=g.tv({base:"inline-block text-gray-800"}),gr=g.tv({base:"flex items-center justify-between pb-4"}),pr=g.tv({base:"flex items-center gap-1"}),yr=g.tv({base:"active:bg-color-1-500 p-2 rounded-full active:text-color-1-100 hover:bg-color-1-200 focus-ring-black"}),xr=g.tv({base:"flex-1"}),$r=g.tv({base:"text-center"}),vr=g.tv({base:"py-0.5 relative",variants:{isFocusVisible:{true:"z-10",false:""}}}),wr=g.tv({base:"w-10 h-10 outline-none group",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"disabled",false:""},isRoundedLeft:{true:"rounded-l-full",false:""},isRoundedRight:{true:"rounded-r-full",false:""}},compoundVariants:[{isSelected:!0,isInvalid:!0,class:"bg-red-300"},{isSelected:!0,isInvalid:!1,class:"bg-color-1-300"}]}),Dr=g.tv({base:"w-full h-full rounded-full flex items-center justify-center cursor-pointer",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"",false:""},isFocusVisible:{true:"ring-2 group-focus:z-2 ring-violet-600 ring-offset-2",false:""},isSelectionStart:{true:"",false:""},isSelectionEnd:{true:"",false:""}},compoundVariants:[{isDisabled:!0,isInvalid:!1,class:"text-gray-400"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 rounded-full text-white hover:bg-color-1-500"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelected:!1,isDisabled:!1,class:"hover:bg-color-1-100"},{isSelected:!0,isDisabled:!1,isInvalid:!1,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-color-1-300"},{isSelected:!0,isDisabled:!1,isInvalid:!0,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-red-400"}]}),Cr=g.tv({base:"text-gray-2 flex flex-row items-start hover:cursor-pointer",variants:{isDisabled:{true:"text-gray-6"}}}),Mr=g.tv({base:"w-5 h-5 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"},isError:{true:"border-red-500"}}}),Pr=g.tv({base:"hidden w-3 h-3 bg-gray-2 rounded-full",variants:{selected:{true:"block"}}}),jr=g.tv({base:"relative inline-flex flex-col text-left"}),Tr=g.tv({base:"flex items-center border-2 border-color-1-500 rounded focus-ring-black"}),Sr=g.tv({base:"fixed inset-0"}),kr=g.tv({base:"absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"}),Rr=g.tv({base:"pr-1 flex gap-2",defaultVariants:{dateFieldShown:!0},variants:{dateFieldShown:{true:"",false:"hidden"}}}),Ir=g.tv({base:"focus-ring-black"}),Ar=g.tv({base:"text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"}),Br=g.tv({base:"text-color-1-500 font-bold px-2"}),L=g.tv({variants:{size:{h1:"text-5xl",h2:"text-4xl",h3:"text-3xl",h4:"text-2xl",h5:"text-xl",h6:"text-lg",leading:"text-md font-bold leading-normal",paragraph:"text-md inline",footnotes:"text-sm",xs:"text-xs"},font:{body:"font-body"},weight:{normal:"font-normal",light:"font-light",bold:"font-bold"},color:{gray:"text-gray-500",white:"text-white"},isError:{true:"text-sm text-error ml-8 py-3"},align:{center:"text-center",left:"text-left",right:"text-right"}},defaultVariants:{size:"paragraph",font:"body"}}),Er=g.tv({base:"focus-ring-black"}),Nr=g.tv({base:" w-screen h-screen relative flex items-center m-auto justify-center"}),Fr=g.tv({base:`
42
+ `},size:{default:"min-w-12 min-h-6",large:"min-w-36 min-h-18"},shape:{rounded:"rounded-md",circular:"rounded-full"}}}),br=g.tv({base:"inline-block text-gray-800"}),gr=g.tv({base:"flex items-center justify-between pb-4"}),pr=g.tv({base:"flex items-center gap-1"}),yr=g.tv({base:"active:bg-color-1-500 p-2 rounded-full active:text-color-1-100 hover:bg-color-1-200 focus-ring-black"}),xr=g.tv({base:"flex-1"}),$r=g.tv({base:"text-center"}),vr=g.tv({base:"py-0.5 relative",variants:{isFocusVisible:{true:"z-10",false:""}}}),wr=g.tv({base:"w-10 h-10 outline-none group",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"disabled",false:""},isRoundedLeft:{true:"rounded-l-full",false:""},isRoundedRight:{true:"rounded-r-full",false:""}},compoundVariants:[{isSelected:!0,isInvalid:!0,class:"bg-red-300"},{isSelected:!0,isInvalid:!1,class:"bg-color-1-300"}]}),Dr=g.tv({base:"w-full h-full rounded-full flex items-center justify-center cursor-pointer",variants:{isSelected:{true:"",false:""},isInvalid:{true:"",fasle:""},isDisabled:{true:"",false:""},isFocusVisible:{true:"ring-2 group-focus:z-2 ring-violet-600 ring-offset-2",false:""},isSelectionStart:{true:"",false:""},isSelectionEnd:{true:"",false:""}},compoundVariants:[{isDisabled:!0,isInvalid:!1,class:"text-gray-400"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!0,isSelectionEnd:!1,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelectionStart:!0,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 rounded-full text-white hover:bg-color-1-500"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!0,class:"bg-red-600 text-white hover:bg-red-700"},{isSelectionStart:!1,isSelectionEnd:!0,isInvalid:!1,class:"bg-color-1-400 text-white hover:bg-color-1-500"},{isSelected:!1,isDisabled:!1,class:"hover:bg-color-1-100"},{isSelected:!0,isDisabled:!1,isInvalid:!1,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-color-1-300"},{isSelected:!0,isDisabled:!1,isInvalid:!0,isSelectionStart:!1,isSelectionEnd:!1,class:"hover:bg-red-400"}]}),Cr=g.tv({base:"text-gray-2 flex flex-row items-start hover:cursor-pointer",variants:{isDisabled:{true:"text-gray-6"}}}),Mr=g.tv({base:"w-5 h-5 mt-0.5 mr-2.5 rounded-full border-2 border-gray-2 shrink-0 hover:cursor-pointer flex items-center justify-center",variants:{isDisabled:{true:"border-gray-6"},isFocused:{true:"outline-black [outline-offset: 2px]"},isError:{true:"border-red-500"}}}),Pr=g.tv({base:"hidden w-3 h-3 bg-gray-2 rounded-full",variants:{selected:{true:"block"}}}),jr=g.tv({base:"relative inline-flex flex-col text-left"}),Tr=g.tv({base:"flex items-center border-2 border-color-1-500 rounded focus-ring-black"}),kr=g.tv({base:"fixed inset-0"}),Sr=g.tv({base:"absolute top-full bg-white border border-gray-300 rounded-md shadow-lg mt-2 p-8 z-10"}),Rr=g.tv({base:"pr-1 flex gap-2",defaultVariants:{dateFieldShown:!0},variants:{dateFieldShown:{true:"",false:"hidden"}}}),Ir=g.tv({base:"focus-ring-black"}),Ar=g.tv({base:"text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"}),Br=g.tv({base:"text-color-1-500 font-bold px-2"}),L=g.tv({variants:{size:{h1:"text-5xl",h2:"text-4xl",h3:"text-3xl",h4:"text-2xl",h5:"text-xl",h6:"text-lg",leading:"text-md font-bold leading-normal",paragraph:"text-md inline",footnotes:"text-sm",xs:"text-xs"},font:{body:"font-body"},weight:{normal:"font-normal",light:"font-light",bold:"font-bold"},color:{gray:"text-gray-500",white:"text-white"},isError:{true:"text-sm text-error ml-8 py-3"},align:{center:"text-center",left:"text-left",right:"text-right"}},defaultVariants:{size:"paragraph",font:"body"}}),Er=g.tv({base:"focus-ring-black"}),Nr=g.tv({base:" w-screen h-screen relative flex items-center m-auto justify-center"}),Fr=g.tv({base:`
43
43
  absolute
44
44
  xl:top-10
45
45
  xl:right-20
@@ -80,4 +80,4 @@
80
80
  placeholder:text-gray-2
81
81
  focus-ring-black
82
82
 
83
- `,variants:{isError:{true:"border-red-500"}}}),Gr=ot({main:e=>fr(e),gridItem:e=>mr(e),grid:e=>hr(e),container:e=>lt(e),accordion:{container:e=>ar(e),button:e=>ir(e),title:e=>lr(e),icon:e=>cr(e),region:e=>ur(e),content:e=>dr(e)},calendar:{container:e=>br(e),header:e=>gr(e),navigationButtonsContainer:e=>pr(e),navigationButtons:e=>yr(e),table:e=>xr(e),dayLabel:e=>$r(e),cellContainer:e=>vr(e),cell:e=>wr(e),cellDate:e=>Dr(e)},datePicker:{container:e=>jr(e),button:e=>Tr(e),icon:e=>Ar(e),dateField:e=>Rr(e),dateSegment:e=>Ir(e),label:e=>Br(e),calendarPopover:e=>kr(e),calendarUnderlay:e=>Sr(e)},popover:{button:e=>X(e),popover:()=>"border-2 text-black p-4"},typography:e=>L(e),button:e=>X(e),sidePanel:{wrapper:e=>Vr(e),container:e=>Qr(e),innerContainer:e=>Wr(e)},lightBox:{wrapper:e=>Er(e),container:e=>Nr(e),closeBtn:e=>Fr(e),label:e=>Lr(e)},shareButton:{icon:e=>Jr(e),button:e=>qr(e),container:e=>Or(e),linksList:e=>Ur(e),link:e=>Yr(e),linkIcons:e=>_r(e)},checkbox:{label:e=>Cr(e),checkBox:e=>Mr(e),checkMark:e=>Pr(e),errorMessage:e=>L(e)},select:{button:e=>X(e),ul:e=>L({...e,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:e=>X(e),errorMessage:e=>L({...e,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:e=>Hr(e),errorMessage:e=>L({...e,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>"text-xs",container:()=>"flex items-center gap-4",input:()=>"",errorMessage:e=>L({...e,size:"footnotes",isError:!0})}}),zr=h.memo(it(Gr)),b=(e,t={},r=null)=>{const n=st();if(n!=null&&e!=null){const{brandTheme:o}=n,s=_t.get(o,e);if(typeof s=="function"){const i=s?.(t);if(typeof i=="string")return i}}if(r)return r},S=({as:e="span",themeName:t="typography",tokens:r,customTheme:n,children:o,...s})=>{const i=b(t,r,n);return a.jsx(e,{...s,className:i,children:o})},ke=h.forwardRef((e,t)=>{const{as:r="span",tokens:n,themeName:o="typography",customTheme:s,children:i,...l}=e,c=b(o,n,s);return a.jsx(r,{...l,ref:t,className:c,children:i})}),ct=h.forwardRef((e,t)=>{const{as:r="a",handlePress:n,children:o,as:s,customTheme:i,tokens:l,themeName:c="button",...u}=e,d=t,{linkProps:p}=y.useLink({...e,elementType:s?.toString(),onPress:n},t??d),f=b(c,l,i);return a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsx(r,{ref:d,...p,...u,className:f,children:o})})}),ut=h.forwardRef((e,t)=>{const{as:r="button",handlePress:n,children:o,as:s,customTheme:i,tokens:l,themeName:c="button",isDisabled:u=!1,...d}=e,p=t,{buttonProps:f}=y.useButton({...e,isDisabled:u,elementType:s,onPress:n},t??p),m=b(c,l,i);return a.jsx(y.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:a.jsx(r,{ref:p,...f,...d,className:m,children:o})})}),V=h.forwardRef((e,t)=>{const{as:r}=e;return r==="a"?a.jsx(ct,{ref:t,...e}):a.jsx(ut,{ref:t,...e})}),Kr=e=>{const{as:t}=e,r=h.useRef(null);return t==="a"?a.jsx(ct,{ref:r,...e}):a.jsx(ut,{ref:r,...e})},Q=h.memo(Kr),Zr=(e,t)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Xr=e=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...e}),dt=h.memo(Xr),en=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),tn=e=>{const{icon:t,...r}=e,n=h.useMemo(()=>h.lazy(()=>Zr(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>require("./ArrowDown-a6edacd9.js")),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>require("./ArrowLeft-4eeead7e.js")),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>wn),"../icons/BrandArrowRight.tsx":()=>Promise.resolve().then(()=>require("./BrandArrowRight-810d374a.js")),"../icons/Check.tsx":()=>Promise.resolve().then(()=>require("./Check-5b690106.js")),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>require("./ChevronLeft-3d464239.js")),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>require("./ChevronRight-5709c683.js")),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>require("./CloseBtn-e65fe8bd.js")),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>require("./Facebook-f2646126.js")),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>require("./FacebookColored-d986225c.js")),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>require("./Globe-cbe70168.js")),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>en),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>require("./Instagram-2f8ef20d.js")),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>require("./InstagramColored-6a2b2b7a.js")),"../icons/Link.tsx":()=>Promise.resolve().then(()=>require("./Link-db71325e.js")),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>require("./Mail-a1aec200.js")),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>require("./Plus-75849570.js")),"../icons/Share.tsx":()=>Promise.resolve().then(()=>require("./Share-608e1dd8.js")),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>require("./Twitter-1eb11c0c.js")),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>require("./TwitterColored-8b72aa64.js")),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>require("./Upload-578304b2.js")),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>require("./YouTube-5dbf2e75.js")),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>require("./YouTubeColored-5baa4a6c.js"))}),`../icons/${t||"ArrowRight"}.tsx`)),[t]);return a.jsx(h.Suspense,{fallback:a.jsx(dt,{className:"overflow-visible pointer-events-none"}),children:a.jsx(n,{...r,className:"overflow-visible pointer-events-none",...e})})},k=e=>{const{icon:t,as:r="span",tokens:n,customTheme:o,themeName:s="icon",children:i,...l}=e,c=b(s,n,o);return typeof t!="string"?a.jsxs(r,{...l,className:c,children:[i,t]}):a.jsxs(r,{className:c,children:[i,a.jsx(tn,{icon:t,...l})]})},rn=e=>{const{customTheme:t,themeName:r="accordion",id:n,tokens:o,title:s,ariaLabel:i,onClick:l,icon:c,children:u}=e,[d,p]=h.useState(!1),f=b(`${r}.container`,{...o,isOpen:d},t),m=b(`${r}.title`,{...o,isOpen:d},t),$=b(`${r}.icon`,{...o,isOpen:d},t),x=b(`${r}.region`,{...o,isOpen:d},t),v=b(`${r}.content`,{...o,isOpen:d},t);return a.jsxs("div",{className:f,id:`accordion-control-${n}`,"aria-label":i,"aria-expanded":d,"aria-controls":`accordion-content-${n}`,children:[a.jsxs(Q,{themeName:`${r}.button`,tokens:{...o,isOpen:d},handlePress:()=>{p(!d),l?.(d)},as:"button",id:`accordion-control-${n}`,"aria-label":i,children:[a.jsx("div",{className:m,children:s}),a.jsx("div",{className:$,children:a.jsx(k,{icon:c??"ArrowDown"})})]}),a.jsx("div",{className:x,role:"region",id:`accordion-content-${n}`,"aria-labelledby":`accordion-control-${n}`,children:a.jsx("div",{className:v,children:u})})]})},nn=e=>{const{sharingLinksList:t,id:r,isOpen:n,setIsOpen:o,onShare:s,themeName:i="shareButton",tokens:l,customTheme:c}=e,u=b(`${i}.linksList`,{...l,isOpen:n},c),d=y.useFocusManager(),p=f=>{f.key==="Escape"&&o(!1);const{listDirection:m}=l??{};m==="row"&&(f.key==="ArrowRight"&&(d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(d.focusPrevious({wrap:!0}),f.preventDefault())),m==="column"&&(f.key==="ArrowDown"&&(d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(d.focusPrevious({wrap:!0}),f.preventDefault()))};return a.jsx("div",{className:u,id:r,role:"listbox",tabIndex:0,onKeyDown:p,children:t?.map(f=>{const{ariaLabel:m,onClick:$,href:x,icon:v,key:w}=f;return a.jsx(Q,{themeName:`${i}.link`,tokens:{...l,isOpen:n},as:"a",handlePress:()=>{s?.(w),$?.(w)},"aria-label":m,target:"_blank",rel:"noopener noreferrer",href:x,role:"option",children:a.jsx(k,{themeName:`${i}.linkIcons`,icon:v})},w)})})},on=e=>{const{ariaLabel:t,icon:r,id:n,sharingLinksList:o,onShare:s,customTheme:i,themeName:l="shareButton",tokens:c,...u}=e,[d,p]=h.useState(!1),f=b(`${l}.container`,c,i),m=()=>{p(!d)};return a.jsxs("div",{className:f,children:[a.jsx(V,{themeName:`${l}.button`,tokens:{...c,isOpen:d},"aria-label":t,"aria-haspopup":"listbox","aria-expanded":d?"true":"false","aria-controls":"share-buttons",handlePress:m,...u,children:a.jsx(k,{themeName:`${l}.icon`,icon:r??"Share"})}),d&&a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsx(nn,{id:n,sharingLinksList:o,onShare:s,isOpen:d,setIsOpen:p,themeName:l,customTheme:i,tokens:c})})]})};function ft(){const e=h.createContext(void 0);function t(){const r=h.useContext(e);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[t,e.Provider]}const ht=(e,t,r)=>{const n=Qt.useOverlayTriggerState({defaultOpen:e,onOpenChange:d=>t?.(d)}),o=h.useRef(null),s=h.useRef(null);h.useEffect(()=>{if(e){n.open();return}n.close()},[e]);const i=()=>{n.open()},l=()=>{n.close(),r?.()},{buttonProps:c}=y.useButton({elementType:"div",onPress:i},o),{buttonProps:u}=y.useButton({onPress:l},s);return{state:n,openButtonProps:c,closeButtonProps:u,handleOpen:i,handleClose:l,openButtonRef:o,closeButtonRef:s}},[mt,sn]=ft();function an({children:e,defaultSelectedKey:t}){const{state:r,closeButtonProps:n,closeButtonRef:o,openButtonProps:s,openButtonRef:i}=ht(!1),l=h.useMemo(()=>({defaultSelectedKey:t,overlayState:r,buttonProps:{closeButtonProps:n,closeButtonRef:o,openButtonProps:s,openButtonRef:i}}),[r,t,n,s]);return a.jsx(sn,{value:l,children:e})}const ln=({isVisible:e,children:t})=>E.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,o)=>o&&a.jsx(E.animated.div,{style:n,children:t})),cn="fixed",un=({isVisible:e,children:t})=>E.useTransition(e,{from:{opacity:0,position:cn,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1},leave:{opacity:0},config:E.config.stiff})((n,o)=>o&&a.jsx(E.animated.div,{style:n,children:t})),dn="fixed",fn=({isVisible:e,children:t})=>E.useTransition(e,{from:{opacity:0,scale:.75,position:dn,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:E.config.stiff})((n,o)=>o&&a.jsx(E.animated.div,{style:n,children:t})),hn=e=>{const{children:t}=e,r=h.useRef(null),{overlayProps:n,underlayProps:o}=y.useOverlay(e,r),{modalProps:s}=y.useModal(),{dialogProps:i}=y.useDialog(e,r);return a.jsx("div",{...o,children:a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:a.jsx(y.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:a.jsx("div",{...n,...i,...s,ref:r,children:t})})})})},Re=e=>{const[t,r]=h.useState(!1),{children:n,state:o,onCloseCallBack:s,transitionComponent:i=fn}=e,l=h.useCallback(()=>{o.close(),s?.()},[o.close,s]);return h.useEffect(()=>{!o.isOpen&&t||r(!0)},[o.isOpen]),t?a.jsx(G.OverlayContainer,{children:a.jsx(i,{isVisible:o.isOpen,children:a.jsx(hn,{isOpen:o.isOpen,onClose:l,isDismissable:!0,children:n})})}):null},mn=e=>{const{children:t,closeBtnRender:r,themeName:n="sidePanel",tokens:o,customTheme:s}=e,i=b(`${n}.wrapper`,o,s),l=b(`${n}.container`,o,s),c=b(`${n}.innerContainer`,o,s),{overlayState:u}=mt();return a.jsx(Re,{state:u,transitionComponent:un,children:a.jsxs(Vt,{className:i,children:[r&&r(),a.jsx(ln,{isVisible:u.isOpen,children:a.jsx("div",{className:l,children:a.jsx("div",{className:c,children:t})})})]})})},bn=h.memo(mn),gn=e=>{const{children:t,thumbnailContent:r,isOpen:n,onOpenCallBack:o,onCloseCallBack:s,label:i,themeName:l="lightBox",tokens:c,customTheme:u}=e,{state:d,openButtonRef:p,openButtonProps:f,closeButtonProps:m,closeButtonRef:$}=ht(n,o,s),x=b(`${l}.container`,c,u);return a.jsxs("div",{children:[a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:a.jsxs(V,{ref:p,themeName:`${l}.wrapper`,...f,...n?{tabIndex:-1}:{},children:[i&&a.jsx(S,{themeName:`${l}.label`,tokens:{size:"footnotes"},children:i}),r]})}),a.jsx(Re,{onCloseCallBack:s,state:d,children:a.jsxs("div",{children:[a.jsx(V,{themeName:`${l}.closeBtn`,type:"button",...m,ref:$,children:a.jsx(k,{icon:"CloseBtn"})}),a.jsx("div",{className:x,children:t})]})})]})},pn=({as:e="div",themeName:t="box",tokens:r,customTheme:n,children:o,className:s,...i})=>{const l=b(t,r,n);return a.jsx(e,{...i,className:l,children:o})},bt=h.forwardRef((e,t)=>{const{as:r="div",tokens:n,themeName:o="box",customTheme:s,children:i,...l}=e,c=b(o,n,s);return a.jsx(r,{...l,ref:t,className:c,children:i})}),yn=h.forwardRef((e,t)=>{const{isOpen:r,onClose:n,children:o,positionProps:s,themeName:i="popover",tokens:l,customTheme:c}=e,{overlayProps:u}=y.useOverlay({isOpen:r,onClose:n,shouldCloseOnBlur:!1,isDismissable:!1},t),{modalProps:d}=y.useModal(),{dialogProps:p}=y.useDialog({},t),f=b(`${i}.popover`,l,c);return a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsxs(bt,{className:f,...y.mergeProps(u,d,p),ref:t,...s,children:[h.Children.map(o,m=>a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:m})),a.jsx(y.DismissButton,{onDismiss:n})]})})});function xn(e){const{children:t,buttonProps:r,placement:n="right",offset:o=5,themeName:s="popover",tokens:i,customTheme:l}=e,c=rt.useOverlayTriggerState({}),u=h.useRef(null),d=h.useRef(null),{triggerProps:p,overlayProps:f}=y.useOverlayTrigger({type:"dialog"},c,u),{overlayProps:m}=y.useOverlayPosition({targetRef:u,overlayRef:d,placement:n,offset:o,isOpen:c.isOpen}),{onPress:$,...x}=p;return a.jsxs(a.Fragment,{children:[a.jsx(V,{themeName:`${s}.button`,handlePress:$,...r,...x,ref:u}),c.isOpen&&a.jsx(y.OverlayContainer,{children:a.jsx(yn,{themeName:s,tokens:i,customTheme:l,...f,positionProps:m,ref:d,isOpen:c.isOpen,onClose:c.close,children:t})})]})}const $n=({content:e,themeName:t="wysiwyg",...r})=>a.jsx(S,{...r,themeName:t,dangerouslySetInnerHTML:{__html:Wt.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling"]})}}),vn=e=>a.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[a.jsx("g",{children:a.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),a.jsx("defs",{children:a.jsx("clipPath",{children:a.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),gt=h.memo(vn,Ht),wn=Object.freeze(Object.defineProperty({__proto__:null,default:gt},Symbol.toStringTag,{value:"Module"})),Dn=e=>{const{as:t="time",date:r,tokens:n,customTheme:o,dateFormatterOptions:s={month:"long",day:"numeric",year:"numeric"},themeName:i="typography",...l}=e,c=y.useIsSSR(),u=new Date(r),p=fe.useDateFormatter(s).format(u),f=b(i,n,o);return c||je.isEmpty(p)?null:a.jsx(t,{...l,dateTime:u.toISOString(),className:f,children:p})},Cn=({item:e,state:t,themeName:r="li"})=>{const n=h.useRef(null),{optionProps:o,isFocusVisible:s}=y.useOption({key:e.key},t,n),i=b(r);return a.jsx(ke,{as:"li",...o,tokens:{className:`${i} ${s?"has-focus-ring":""}`},ref:n,children:e.rendered})},Mn=e=>{const t=h.useRef(null),{listBoxRef:r=t,state:n,themeName:o="option"}=e,{listBoxProps:s}=y.useListBox(e,n,r);return a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsx(ke,{...s,ref:r,as:"ul",themeName:`${o}.ul`,children:[...n.collection].map(i=>a.jsx(Cn,{themeName:`${o}.li`,item:i,state:n},i.key))})})},Pn=e=>{const t=h.useRef(null),{popoverRef:r=t,state:n,children:o,themeName:s="popover",...i}=e,{popoverProps:l,underlayProps:c}=y.usePopover({...e,popoverRef:r},n);return a.jsxs(y.Overlay,{children:[a.jsx("div",{...c,style:{position:"fixed",inset:0}}),a.jsxs(ke,{themeName:s,...i,...l,as:"div",ref:r,children:[a.jsx(y.DismissButton,{onDismiss:n.close}),o,a.jsx(y.DismissButton,{onDismiss:n.close})]})]})},pt=e=>{const{name:t,placeholderLabel:r,disabled:n,hookFormRef:o,isError:s=!1,errorMessage:i,themeName:l="select",tokens:c,customTheme:u,label:d,onSelectionChange:p,defaultValue:f,value:m,icon:$,...x}=e,v=h.useRef(null),w=rt.useSelectState({...x,selectedKey:m,defaultSelectedKey:f,onSelectionChange:p}),{triggerProps:P,menuProps:j,labelProps:C}=y.useSelect({...x},w,v),N=b(`${l}.wrapper`,c,u),F=b(`${l}.container`,c,u);return a.jsxs("div",{className:N,children:[d&&a.jsx(S,{...C,as:"label",themeName:`${l}.label`,children:d}),a.jsx(y.HiddenSelect,{...o,state:w,triggerRef:v,name:t,isDisabled:!0}),a.jsxs("div",{className:F,children:[a.jsxs(V,{...P,ref:v,disabled:n,themeName:`${l}.button`,tokens:{...c,intent:s?"error":"default"},children:[w.selectedItem?w.selectedItem.rendered:r,a.jsx(k,{icon:$??"ArrowDown"})]}),w.isOpen&&v.current&&a.jsx(Pn,{state:w,tokens:{width:`${v.current?.offsetWidth}`},triggerRef:v,placement:"bottom",themeName:`${l}.popover`,children:a.jsx(Mn,{...j,themeName:l,state:w})}),s&&a.jsx(S,{tokens:{...c,isError:s},themeName:`${l}.errorMessage`,children:i})]})]})},jn=e=>{const{name:t,required:r,children:n}=e,{register:o,formState:s}=ae.useFormContext(),l=ae.get(s.errors,t)?.message??void 0,{ref:c}=o(t,{required:r?"This is an error message":!1});return a.jsx(pt,{...e,isError:!je.isEmpty(l),errorMessage:l,hookFormRef:c,children:n})},Tn=e=>{const{id:t,label:r,isDisabled:n=!1,isError:o=!1,errorMessage:s,ariaLabel:i,themeName:l="checkbox",tokens:c,customTheme:u}=e,d=Kt.useToggleState(e),p=h.useRef(null),{inputProps:f}=Gt.useCheckbox(e,d,p),{focusProps:m,isFocusVisible:$}=_.useFocusRing(),x={...c,selected:d.isSelected,isDisabled:n,isError:o,isFocusVisible:$},v=b(`${l}.label`,x,u),w=b(`${l}.checkBox`,x,u),P=b(`${l}.checkMark`,x,u);return a.jsxs("div",{children:[a.jsxs("label",{htmlFor:t,className:v,children:[a.jsx(zt.VisuallyHidden,{children:a.jsx("input",{type:"checkbox",ref:p,"aria-label":i,...y.mergeProps(m,f)})}),a.jsx(_.FocusRing,{focusRingClass:"focus-ring",children:a.jsx("div",{className:w,children:a.jsx("div",{className:P})})}),a.jsx("span",{children:r})]}),o&&s&&a.jsx(S,{themeName:`${l}.errorMessage`,tokens:x,children:s})]})},Sn=e=>{const{id:t,label:r,name:n,placeholder:o,required:s,disabled:i=!1,errorMessage:l,ariaLabel:c,value:u,onBlur:d,onChange:p,fieldRef:f,themeName:m="textarea",tokens:$,customTheme:x}=e,v=h.useRef(null),{errorMessageProps:w,inputProps:P,labelProps:j}=y.useTextField(e,v),C={...$,isDisabled:i,isError:l!=null},N=b(`${m}.wrapper`,C,x),F=b(`${m}.input`,C,x),pe=b(`${m}.label`,C,x),ye=b(`${m}.container`,C,x);return a.jsxs("div",{children:[a.jsxs("div",{className:N,"aria-disabled":i,children:[r&&a.jsx("label",{className:pe,...j,children:r}),a.jsx("div",{className:ye,children:a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsx("textarea",{ref:H=>{f?.(H),v.current=H},className:F,placeholder:o,disabled:i,required:s,id:t,name:n,"aria-label":c,"aria-labelledby":t,value:u,onBlur:d,onChange:p,...P})})})]}),l&&a.jsx(S,{themeName:`${m}.errorMessage`,tokens:C,...w,children:l})]})},yt=e=>{const{id:t,label:r,required:n,disabled:o=!1,errorMessage:s,ariaLabel:i,value:l,onBlur:c,onChange:u,fieldRef:d,type:p="text",children:f,themeName:m="textInput",tokens:$,customTheme:x}=e,v=h.useRef(null),{errorMessageProps:w,inputProps:P,labelProps:j}=y.useTextField(e,v),C={...$,isDisabled:o,isError:s!=null},N=b(`${m}.wrapper`,C,x),F=b(`${m}.label`,C,x),pe=b(`${m}.input`,C,x),ye=b(`${m}.container`,C,x);return a.jsxs("div",{children:[a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:a.jsxs("div",{"aria-disabled":o,className:N,children:[r&&a.jsx("label",{className:F,...j,children:r}),a.jsxs("div",{className:ye,children:[f,a.jsx("input",{...P,className:pe,disabled:o,required:n,ref:H=>{d?.(H),v.current=H},"aria-label":i,"aria-labelledby":t,value:l,onBlur:c,onChange:u,type:p})]})]})}),s&&a.jsx(S,{themeName:`${m}.errorMessage`,tokens:C,...w,children:s})]})},kn=e=>{const{name:t,required:r,minLength:n=0,maxLength:o=99999999,validation:s}=e,{register:i,formState:l}=ae.useFormContext(),u=ae.get(l.errors,t)?.message??void 0,{t:d}=Zt.useTranslation("components"),{ref:p,...f}=i(t,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...s});return a.jsx(yt,{fieldRef:p,...f,...e,isError:!je.isEmpty(u),errorMessage:u})};function Rn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xt(e,t,r){Rn(e,t),t.set(e,r)}function T(e,t){return e-t*Math.floor(e/t)}const $t=1721426;function q(e,t,r,n){t=Z(e,t);let o=t-1,s=-2;return r<=2?s=0:A(t)&&(s=-1),$t-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+s+n)}function A(e){return e%4===0&&(e%100!==0||e%400===0)}function Z(e,t){return e==="BC"?1-t:t}function he(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const In={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class R{fromJulianDay(t){let r=t,n=r-$t,o=Math.floor(n/146097),s=T(n,146097),i=Math.floor(s/36524),l=T(s,36524),c=Math.floor(l/1461),u=T(l,1461),d=Math.floor(u/365),p=o*400+i*100+c*4+d+(i!==4&&d!==4?1:0),[f,m]=he(p),$=r-q(f,m,1,1),x=2;r<q(f,m,3,1)?x=0:A(m)&&(x=1);let v=Math.floor((($+x)*12+373)/367),w=r-q(f,m,v,1)+1;return new D(f,m,v,w)}toJulianDay(t){return q(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return In[A(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return A(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const An={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ne(e,t){return t=me(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function vt(e,t){let r=e.calendar.toJulianDay(e),n=Math.ceil(r+1-Fn(t))%7;return n<0&&(n+=7),n}function wt(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Bn(e,t){return Fe(e)-Fe(t)}function Fe(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let xe=null;function Dt(){return xe==null&&(xe=new Intl.DateTimeFormat().resolvedOptions().timeZone),xe}function En(e){return e.subtract({days:e.day-1})}const Le=new Map;function Nn(e){if(Intl.Locale){let r=Le.get(e);return r||(r=new Intl.Locale(e).maximize().region,Le.set(e,r)),r}let t=e.split("-")[1];return t==="u"?null:t}function Fn(e){let t=Nn(e);return An[t]||0}function Ln(e,t){let r=e.calendar.getDaysInMonth(e);return Math.ceil((vt(En(e),t)+r)/7)}function Oe(e){e=me(e,new R);let t=Z(e.era,e.year);return Ct(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Ct(e,t,r,n,o,s,i){let l=new Date;return l.setUTCHours(n,o,s,i),l.setUTCFullYear(e,t-1,r),l.getTime()}function qe(e,t){if(t==="UTC")return 0;if(e>0&&t===Dt())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:o,hour:s,minute:i,second:l}=Mt(e,t);return Ct(r,n,o,s,i,l,0)-Math.floor(e/1e3)*1e3}const Ue=new Map;function Mt(e,t){let r=Ue.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ue.set(t,r));let n=r.formatToParts(new Date(e)),o={};for(let s of n)s.type!=="literal"&&(o[s.type]=s.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const Ye=864e5;function On(e,t,r,n){return(r===n?[r]:[r,n]).filter(s=>qn(e,t,s))}function qn(e,t,r){let n=Mt(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function Un(e,t,r="compatible"){let n=jt(e);if(t==="UTC")return Oe(n);if(t===Dt()&&r==="compatible"){n=me(n,new R);let c=new Date,u=Z(n.era,n.year);return c.setFullYear(u,n.month-1,n.day),c.setHours(n.hour,n.minute,n.second,n.millisecond),c.getTime()}let o=Oe(n),s=qe(o-Ye,t),i=qe(o+Ye,t),l=On(n,t,o-s,o-i);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-s,o-i);case"compatible":case"later":return Math.max(o-s,o-i);case"reject":throw new RangeError("No such absolute time found")}}function Pt(e,t,r="compatible"){return new Date(Un(e,t,r))}function jt(e,t){let r=0,n=0,o=0,s=0;if("timeZone"in e)({hour:r,minute:n,second:o,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:o,millisecond:s}=t),new ie(e.calendar,e.era,e.year,e.month,e.day,r,n,o,s)}function me(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,W(n),n}function Ie(e,t){let r=e.copy(),n="hour"in r?Wn(r,t):0;we(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,De(r),Tt(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,Yn(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var s,i;let c=(i=(s=r.calendar).isInverseEra)===null||i===void 0?void 0:i.call(s,r);r.year=o,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function we(e,t){var r,n;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function De(e){for(;e.month<1;)we(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,we(e,1)}function Yn(e){for(;e.day<1;)e.month--,De(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,De(e)}function Tt(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function W(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Tt(e)}function Jn(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function St(e,t){return Ie(e,Jn(t))}function kt(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),W(r),r}function _n(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Qn(r),r}function Vn(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ee(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ee(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ee(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ee(e.hour,24),t}function Qn(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ee(e,t){let r=e%t;return r<0&&(r+=t),r}function Wn(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Vn(e)}function Rt(e,t,r,n){let o=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),c=l.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=B(c,r,0,l.length-1,n?.round),o.era=l[c],W(o);break}case"year":var s,i;!((i=(s=o.calendar).isInverseEra)===null||i===void 0)&&i.call(s,o)&&(r=-r),o.year=B(e.year,r,-1/0,9999,n?.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=B(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":o.day=B(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),W(o),o}function Hn(e,t,r,n){let o=e.copy();switch(t){case"hour":{let s=e.hour,i=0,l=23;if(n?.hourCycle===12){let c=s>=12;i=c?12:0,l=c?23:11}o.hour=B(s,r,i,l,n?.round);break}case"minute":o.minute=B(e.minute,r,0,59,n?.round);break;case"second":o.second=B(e.second,r,0,59,n?.round);break;case"millisecond":o.millisecond=B(e.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+t)}return o}function B(e,t,r,n,o=!1){if(o){e+=Math.sign(t),e<r&&(e=n);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function Gn(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function It(e){let t=me(e,new R);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function zn(e){return`${It(e)}T${Gn(e)}`}function At(e){let t=typeof e[0]=="object"?e.shift():new R,r;if(typeof e[0]=="string")r=e.shift();else{let i=t.getEras();r=i[i.length-1]}let n=e.shift(),o=e.shift(),s=e.shift();return[t,r,n,o,s]}var Kn=new WeakMap;class D{copy(){return this.era?new D(this.calendar,this.era,this.year,this.month,this.day):new D(this.calendar,this.year,this.month,this.day)}add(t){return Ie(this,t)}subtract(t){return St(this,t)}set(t){return kt(this,t)}cycle(t,r,n){return Rt(this,t,r,n)}toDate(t){return Pt(this,t)}toString(){return It(this)}compare(t){return wt(this,t)}constructor(...t){xt(this,Kn,{writable:!0,value:void 0});let[r,n,o,s,i]=At(t);this.calendar=r,this.era=n,this.year=o,this.month=s,this.day=i,W(this)}}var Zn=new WeakMap;class ie{copy(){return this.era?new ie(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ie(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ie(this,t)}subtract(t){return St(this,t)}set(t){return kt(_n(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return Rt(this,t,r,n);default:return Hn(this,t,r,n)}}toDate(t,r){return Pt(this,t,r)}toString(){return zn(this)}compare(t){let r=wt(this,t);return r===0?Bn(this,jt(t)):r}constructor(...t){xt(this,Zn,{writable:!0,value:void 0});let[r,n,o,s,i]=At(t);this.calendar=r,this.era=n,this.year=o,this.month=s,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,W(this)}}const Y=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Xn=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ne=[1867,1911,1925,1988,2018],I=["meiji","taisho","showa","heisei","reiwa"];function Je(e){const t=Y.findIndex(([r,n,o])=>e.year<r||e.year===r&&e.month<n||e.year===r&&e.month===n&&e.day<o);return t===-1?Y.length-1:t===0?0:t-1}function $e(e){let t=ne[I.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new D(e.year+t,e.month,e.day)}class eo extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=Je(r);return new D(this,I[n],r.year-ne[n],r.month,r.day)}toJulianDay(t){return super.toJulianDay($e(t))}balanceDate(t){let r=$e(t),n=Je(r);I[n]!==t.era&&(t.era=I[n],t.year=r.year-ne[n]),this.constrainDate(t)}constrainDate(t){let r=I.indexOf(t.era),n=Xn[r];if(n!=null){let[o,s,i]=n,l=o-ne[r];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(i,t.day)))}if(t.year===1&&r>=0){let[,o,s]=Y[r];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(s,t.day))}}getEras(){return I}getYearsInEra(t){let r=I.indexOf(t.era),n=Y[r],o=Y[r+1];if(o==null)return 9999-n[0]+1;let s=o[0]-n[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth($e(t))}getMinimumMonthInYear(t){let r=_e(t);return r?r[1]:1}getMinimumDayInMonth(t){let r=_e(t);return r&&t.month===r[1]?r[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function _e(e){if(e.year===1){let t=I.indexOf(e.era);return Y[t]}}const Bt=-543;class to extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=Z(r.era,r.year);return new D(this,n-Bt,r.month,r.day)}toJulianDay(t){return super.toJulianDay(Ve(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Ve(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Ve(e){let[t,r]=he(e.year+Bt);return new D(t,r,e.month,e.day)}const le=1911;function Et(e){return e.era==="minguo"?e.year+le:1-e.year+le}function Qe(e){let t=e-le;return t>0?["minguo",t]:["before_minguo",1-t]}class ro extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=Z(r.era,r.year),[o,s]=Qe(n);return new D(this,o,s,r.month,r.day)}toJulianDay(t){return super.toJulianDay(We(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[r,n]=Qe(Et(t));t.era=r,t.year=n}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(We(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-le}constructor(...t){super(...t),this.identifier="roc"}}function We(e){let[t,r]=he(Et(e));return new D(t,r,e.month,e.day)}const no=1948321;function oo(e){let t=e>0?e-474:e-473,r=T(t,2820)+474;return T((r+38)*31,128)<31}function te(e,t,r){let n=e>0?e-474:e-473,o=T(n,2820)+474,s=t<=7?31*(t-1):30*(t-1)+6;return no-1+1029983*Math.floor(n/2820)+365*(o-1)+Math.floor((31*o-5)/128)+s+r}class so{fromJulianDay(t){let r=t-te(475,1,1),n=Math.floor(r/1029983),o=T(r,1029983),s=o===1029982?2820:Math.floor((128*o+46878)/46751),i=474+2820*n+s;i<=0&&i--;let l=t-te(i,1,1)+1,c=l<=186?Math.ceil(l/31):Math.ceil((l-6)/31),u=t-te(i,c,1)+1;return new D(this,i,c,u)}toJulianDay(t){return te(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||oo(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const ve=78,He=80;class ao extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=r.year-ve,o=t-q(r.era,r.year,1,1),s;o<He?(n--,s=A(r.year-1)?31:30,o+=s+155+90+10):(s=A(r.year)?31:30,o-=He);let i,l;if(o<s)i=1,l=o+1;else{let c=o-s;c<155?(i=Math.floor(c/31)+2,l=c%31+1):(c-=155,i=Math.floor(c/30)+7,l=c%30+1)}return new D(this,n,i,l)}toJulianDay(t){let r=t.year+ve,[n,o]=he(r),s,i;return A(o)?(s=31,i=q(n,o,3,21)):(s=30,i=q(n,o,3,22)),t.month===1?i+t.day-1:(i+=s+Math.min(t.month-2,5)*31,t.month>=8&&(i+=(t.month-7)*30),i+=t.day-1,i)}getDaysInMonth(t){return t.month===1&&A(t.year+ve)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ce=1948440,Ge=1948439,M=1300,U=1600,io=460322;function ue(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Nt(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+ue(t,n,1,1)))/29.5)+1),s=r-ue(t,n,o,1)+1;return new D(e,n,o,s)}function ze(e){return(14+11*e)%30<11}class Ae{fromJulianDay(t){return Nt(this,ce,t)}toJulianDay(t){return ue(ce,t.year,t.month,t.day)}getDaysInMonth(t){let r=29+t.month%2;return t.month===12&&ze(t.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(t){return ze(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lo extends Ae{fromJulianDay(t){return Nt(this,Ge,t)}toJulianDay(t){return ue(Ge,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const co="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Ce,J;function oe(e){return io+J[e-M]}function z(e,t){let r=e-M,n=1<<11-(t-1);return Ce[r]&n?30:29}function Ke(e,t){let r=oe(e);for(let n=1;n<t;n++)r+=z(e,n);return r}function Ze(e){return J[e+1-M]-J[e-M]}class uo extends Ae{fromJulianDay(t){let r=t-ce,n=oe(M),o=oe(U);if(r<n||r>o)return super.fromJulianDay(t);{let s=M-1,i=1,l=1;for(;l>0;){s++,l=r-oe(s)+1;let c=Ze(s);if(l===c){i=12;break}else if(l<c){let u=z(s,i);for(i=1;l>u;)l-=u,i++,u=z(s,i);break}}return new D(this,s,i,r-Ke(s,i)+1)}}toJulianDay(t){return t.year<M||t.year>U?super.toJulianDay(t):ce+Ke(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<M||t.year>U?super.getDaysInMonth(t):z(t.year,t.month)}getDaysInYear(t){return t.year<M||t.year>U?super.getDaysInYear(t):Ze(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ce||(Ce=new Uint16Array(Uint8Array.from(atob(co),t=>t.charCodeAt(0)).buffer)),!J){J=new Uint32Array(U-M+1);let t=0;for(let r=M;r<=U;r++){J[r-M]=t;for(let n=1;n<=12;n++)t+=z(r,n)}}}}const Xe=347997,Ft=1080,Lt=24*Ft,fo=29,ho=12*Ft+793,mo=fo*Lt+ho;function O(e){return T(e*7+1,19)<7}function se(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,n=t*29+Math.floor(r/25920);return T(3*(n+1),7)<3&&(n+=1),n}function bo(e){let t=se(e-1),r=se(e);return se(e+1)-r===356?2:r-t===382?1:0}function K(e){return se(e)+bo(e)}function Ot(e){return K(e+1)-K(e)}function go(e){let t=Ot(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function re(e,t){if(t>=6&&!O(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let r=go(e);return t===2?r===2?30:29:t===3?r===0?29:30:t===6?O(e)?30:0:30}class po{fromJulianDay(t){let r=t-Xe,n=r*Lt/mo,o=Math.floor((19*n+234)/235)+1,s=K(o),i=Math.floor(r-s);for(;i<1;)o--,s=K(o),i=Math.floor(r-s);let l=1,c=0;for(;c<i;)c+=re(o,l),l++;l--,c-=re(o,l);let u=i-c;return new D(this,o,l,u)}toJulianDay(t){let r=K(t.year);for(let n=1;n<t.month;n++)r+=re(t.year,n);return r+t.day+Xe}getDaysInMonth(t){return re(t.year,t.month)}getMonthsInYear(t){return O(t.year)?13:12}getDaysInYear(t){return Ot(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,r){r.year!==t.year&&(O(r.year)&&!O(t.year)&&r.month>6?t.month--:!O(r.year)&&O(t.year)&&r.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Me=1723856,et=1824665,Pe=5500;function de(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function Be(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-de(e,r,1,1))/30),o=t+1-de(e,r,n,1);return[r,n,o]}function qt(e){return Math.floor(e%4/3)}function Ut(e,t){return t%13!==0?30:qt(e)+5}class Ee{fromJulianDay(t){let[r,n,o]=Be(Me,t),s="AM";return r<=0&&(s="AA",r+=Pe),new D(this,s,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="AA"&&(r-=Pe),de(Me,r,t.month,t.day)}getDaysInMonth(t){return Ut(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+qt(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class yo extends Ee{fromJulianDay(t){let[r,n,o]=Be(Me,t);return r+=Pe,new D(this,"AA",r,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class xo extends Ee{fromJulianDay(t){let[r,n,o]=Be(et,t),s="CE";return r<=0&&(s="BCE",r=1-r),new D(this,s,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="BCE"&&(r=1-r),de(et,r,t.month,t.day)}getDaysInMonth(t){let r=t.year;return t.era==="BCE"&&(r=1-r),Ut(r,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Yt(e){switch(e){case"buddhist":return new to;case"ethiopic":return new Ee;case"ethioaa":return new yo;case"coptic":return new xo;case"hebrew":return new po;case"indian":return new ao;case"islamic-civil":return new Ae;case"islamic-tbla":return new lo;case"islamic-umalqura":return new uo;case"japanese":return new eo;case"persian":return new so;case"roc":return new ro;case"gregory":default:return new R}}function $o({themeName:e="calendar",tokens:t,state:r,date:n}){const o=h.useRef(null),{cellProps:s,buttonProps:i,isSelected:l,isOutsideVisibleRange:c,isDisabled:u,formattedDate:d,isInvalid:p}=Se.useCalendarCell({date:n},r,o),f=r?.highlightedRange?Ne(n,r?.highlightedRange.start):l,m=r?.highlightedRange?Ne(n,r?.highlightedRange.end):l,{locale:$}=y.useLocale(),x=vt(n,$),v=l&&(f||x===0||n.day===1),w=l&&(m||x===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:P,isFocusVisible:j}=_.useFocusRing(),C=b(`${e}.cellContainer`,{...t,isFocusVisible:j}),N=b(`${e}.cell`,{...t,isSelected:l,isInvalid:p,isDisabled:u,isRoundedLeft:v,isRoundedRight:w}),F=b(`${e}.cellDate`,{...t,isSelected:l,isInvalid:p,isDisabled:u,isSelectionStart:f,isSelectionEnd:m});return a.jsx("td",{...s,"aria-disabled":!1,className:C,children:a.jsx("div",{...er.mergeProps(i,P),ref:o,hidden:c,className:N,children:a.jsx("div",{className:F,children:d})})})}function vo({themeName:e="calendar",customTheme:t,tokens:r,state:n,...o}){const{locale:s}=fe.useLocale(),{gridProps:i,headerProps:l,weekDays:c}=Se.useCalendarGrid({...o},n),u=Ln(n.visibleRange.start,s),d=b(`${e}.calendarTable`,r),p=b(`${e}.dayLabel`,r);return a.jsxs("table",{...i,cellPadding:"0",className:d,children:[a.jsx("thead",{...l,children:a.jsx("tr",{children:c.map(f=>a.jsx("th",{className:p,children:f},`${f}`))})}),a.jsx("tbody",{children:[...new Array(u).keys()].map(f=>a.jsx("tr",{children:n.getDatesInWeek(f).map((m,$)=>m?a.jsx($o,{state:n,date:m},m?.day):a.jsx("td",{},$))},f))})]})}function Jt({buttons:e,tokens:t,customTheme:r,themeName:n="calendar",...o}){const{locale:s}=fe.useLocale(),i=Xt.useCalendarState({...o,locale:s,createCalendar:Yt}),l=h.useRef(null),{calendarProps:c,prevButtonProps:u,nextButtonProps:d,title:p}=Se.useCalendar({...o},i),f=b(`${n}.container`,t),m=b(`${n}.header`,t),$=b(`${n}.navigationButtonsContainer`,t);return a.jsxs("div",{...c,ref:l,className:f,children:[a.jsxs("div",{className:m,children:[a.jsx(S,{as:"p",tokens:{size:"h6"},children:p}),a.jsxs("div",{className:$,children:[a.jsx(Q,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...u,handlePress:u?.onPress,children:a.jsx(k,{icon:e?.buttonPrev?.icon??"ArrowLeft"})}),a.jsx(Q,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...d,handlePress:d?.onPress,children:a.jsx(k,{icon:e?.buttonNext?.icon??"ArrowRight"})})]})]}),a.jsx(vo,{state:i})]})}function wo({title:e,children:t,...r}){const n=h.useRef(null),{dialogProps:o}=y.useDialog(r,n);return a.jsx("div",{...o,ref:n,children:t})}function Do({themeName:e="datePicker",tokens:t,...r}){const n=rr.useRef(null),{state:o,children:s}={...r},{popoverProps:i,underlayProps:l}=G.usePopover({...r,popoverRef:n},o),c=b(`${e}.calendarUnderlay`,t),u=b(`${e}.calendarPopover`,t);return a.jsxs(G.Overlay,{children:[a.jsx("div",{...l,className:c}),a.jsxs("div",{...i,ref:n,className:u,children:[a.jsx(G.DismissButton,{onDismiss:o.close}),s,a.jsx(G.DismissButton,{onDismiss:o.close})]})]})}function Co({segment:e,state:t}){const r=h.useRef(null),{segmentProps:n}=Te.useDateSegment(e,t,r),o=b("datePicker.dateSegment");return a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsxs("div",{...n,ref:r,className:o,children:[a.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})})}function tt(e){const{locale:t}=fe.useLocale(),r=nt.useDateFieldState({...e,locale:t,createCalendar:Yt}),n=h.useRef(null),{fieldProps:o}=Te.useDateField(e,r,n);return a.jsx("div",{...o,ref:n,className:"flex",children:r.segments.map((s,i)=>a.jsx(Co,{segment:s,state:r},i))})}function Mo({popoverPlacement:e="bottom start",tokens:t,customTheme:r,themeName:n="datePicker",icon:o="ArrowDown",description:s,buttonLabel:i,...l}){const c=nt.useDatePickerState({...l}),u=h.useRef(null),{groupProps:d,fieldProps:p,labelProps:f,descriptionProps:m,buttonProps:$,dialogProps:x,calendarProps:v}=Te.useDatePicker({...l},c,u),{label:w}={...l},P=b(`${n}.container`,t),j=b(`${n}.dateField`,t),C=b(`${n}.label`,t);return a.jsxs("div",{className:P,children:[w&&a.jsx("span",{...f,children:w}),s&&a.jsx("div",{...m,children:s}),a.jsx("div",{...d,ref:u,children:a.jsxs(Q,{themeName:`${n}.button`,tokens:{...t},type:"button",...$,handlePress:$.onPress,children:[i&&a.jsx("p",{className:C,children:i}),a.jsxs("div",{className:j,children:[a.jsx(tt,{...p}),c.validationState==="invalid"&&"❌"]}),a.jsx(k,{themeName:`${n}.icon`,tokens:{...t},icon:o})]})}),c.isOpen&&a.jsx(Do,{triggerRef:u,state:c,placement:e,children:a.jsxs(wo,{...x,children:[a.jsxs("div",{children:[a.jsx(tt,{...p}),c.validationState==="invalid"&&"❌"]}),a.jsx(Jt,{...v})]})})]})}const[Po,jo]=ft();function To({children:e}){const[t,r]=h.useState(!1);h.useEffect(()=>{r(!0)},[]);const n=h.useMemo(()=>({isClient:t}),[t]);return a.jsx(jo,{value:n,children:e})}const be=(e,t,r="sharing_tool")=>`?utm_source=${e}&utm_medium=${t}&utm_campaign=${r}`,ge=()=>{const[e,t]=h.useState(),[r,n]=h.useState();return h.useEffect(()=>{t(window.location.href),n(window.document.title)},[]),{windowLocation:e,windowTitle:r}},So=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=ge(),s=r??n,i=be(e,t);return`https://www.facebook.com/sharer.php?u=${`${s}${i}`}&t=${o}`},ko=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=ge(),s=r??n,i=be(e,t),l=`${s}${i}`;return`mailto:?to=&body=${o}%20${l}`},Ro=(e,t,r)=>{const{windowLocation:n}=ge(),o=r??n,s=be(e,t);return`https://twitter.com/intent/tweet?text=${`${o}${s}`}`};exports.Accordion=rn;exports.ArrowRight=gt;exports.Box=pn;exports.BoxWithForwardRef=bt;exports.Button=Q;exports.ButtonWithForwardRef=V;exports.Calendar=Jt;exports.Checkbox=Tn;exports.Date=Dn;exports.DatePicker=Mo;exports.Icon=k;exports.IsClientContextProvider=To;exports.Lightbox=gn;exports.Modal=Re;exports.Popover=xn;exports.ReactHookFormInput=kn;exports.ReactHookFormSelect=jn;exports.Select=pt;exports.ShareButton=on;exports.SidePanel=bn;exports.SidePanelContextProvider=an;exports.TextArea=Sn;exports.TextInputField=yt;exports.ThemeContextProvider=at;exports.ThemeProvider=zr;exports.Typography=S;exports.WysiwygBlock=$n;exports.createThemeProvider=it;exports.generateUtmTags=be;exports.makeTheme=ot;exports.useFacebookShareUrl=So;exports.useIsClient=Po;exports.useMailToShareUrl=ko;exports.useSidePanel=mt;exports.useTheme=st;exports.useThemeContext=b;exports.useTwitterShareUrl=Ro;exports.useWindow=ge;
83
+ `,variants:{isError:{true:"border-red-500"}}}),Gr=ot({main:e=>fr(e),gridItem:e=>mr(e),grid:e=>hr(e),container:e=>lt(e),accordion:{container:e=>ar(e),button:e=>ir(e),title:e=>lr(e),icon:e=>cr(e),region:e=>ur(e),content:e=>dr(e)},calendar:{container:e=>br(e),header:e=>gr(e),navigationButtonsContainer:e=>pr(e),navigationButtons:e=>yr(e),table:e=>xr(e),dayLabel:e=>$r(e),cellContainer:e=>vr(e),cell:e=>wr(e),cellDate:e=>Dr(e)},datePicker:{container:e=>jr(e),button:e=>Tr(e),icon:e=>Ar(e),dateField:e=>Rr(e),dateSegment:e=>Ir(e),label:e=>Br(e),calendarPopover:e=>Sr(e),calendarUnderlay:e=>kr(e)},popover:{button:e=>Z(e),popover:()=>"border-2 text-black p-4 bg-gray-300"},typography:e=>L(e),button:e=>Z(e),sidePanel:{wrapper:e=>Vr(e),container:e=>Qr(e),innerContainer:e=>Wr(e)},lightBox:{wrapper:e=>Er(e),container:e=>Nr(e),closeBtn:e=>Fr(e),label:e=>Lr(e)},shareButton:{icon:e=>Jr(e),button:e=>qr(e),container:e=>Or(e),linksList:e=>Ur(e),link:e=>Yr(e),linkIcons:e=>_r(e)},checkbox:{label:e=>Cr(e),checkBox:e=>Mr(e),checkMark:e=>Pr(e),errorMessage:e=>L(e)},select:{button:e=>Z(e),ul:e=>L({...e,className:"outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"}),popover:e=>Z(e),errorMessage:e=>L({...e,size:"footnotes",isError:!0}),wrapper:()=>"flex flex-col gap-4 relative",container:()=>"flex flex-col gap-4",li:()=>"transition w-full hover:text-gray-300 focus-ring-white"},textarea:{wrapper:()=>"flex flex-col",container:()=>"flex items-center gap-4",label:()=>"text-gray-3 px-6",input:e=>Hr(e),errorMessage:e=>L({...e,size:"footnotes",isError:!0})},textInput:{wrapper:()=>"flex flex-col rounded-md px-4 py-1 mb-3 m-0.5 border-2 aria-disabled:pointer-events-none aria-disabled:opacity-30 focus-ring-black",label:()=>"text-xs",container:()=>"flex items-center gap-4",input:()=>"",errorMessage:e=>L({...e,size:"footnotes",isError:!0})}}),zr=h.memo(it(Gr)),b=(e,t={},r=null)=>{const n=st();if(n!=null&&e!=null){const{brandTheme:o}=n,s=_t.get(o,e);if(typeof s=="function"){const i=s?.(t);if(typeof i=="string")return i}}if(r)return r},k=({as:e="span",themeName:t="typography",tokens:r,customTheme:n,children:o,...s})=>{const i=b(t,r,n);return a.jsx(e,{...s,className:i,children:o})},Se=h.forwardRef((e,t)=>{const{as:r="span",tokens:n,themeName:o="typography",customTheme:s,children:i,...l}=e,c=b(o,n,s);return a.jsx(r,{...l,ref:t,className:c,children:i})}),ct=h.forwardRef((e,t)=>{const{as:r="a",handlePress:n,children:o,as:s,customTheme:i,tokens:l,themeName:c="button",...u}=e,d=t,{linkProps:p}=y.useLink({...e,elementType:s?.toString(),onPress:n},t??d),f=b(c,l,i);return a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsx(r,{ref:d,...p,...u,className:f,children:o})})}),ut=h.forwardRef((e,t)=>{const{as:r="button",handlePress:n,children:o,as:s,customTheme:i,tokens:l,themeName:c="button",isDisabled:u=!1,...d}=e,p=t,{buttonProps:f}=y.useButton({...e,isDisabled:u,elementType:s,onPress:n},t??p),m=b(c,l,i);return a.jsx(y.FocusRing,{within:!0,focusRingClass:"has-focus-ring",children:a.jsx(r,{ref:p,...f,...d,className:m,children:o})})}),V=h.forwardRef((e,t)=>{const{as:r}=e;return r==="a"?a.jsx(ct,{ref:t,...e}):a.jsx(ut,{ref:t,...e})}),Kr=e=>{const{as:t}=e,r=h.useRef(null);return t==="a"?a.jsx(ct,{ref:r,...e}):a.jsx(ut,{ref:r,...e})},Q=h.memo(Kr),Xr=(e,t)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((n,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t)))})},Zr=e=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:48,width:48,fill:"currentColor",...e}),dt=h.memo(Zr),en=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),tn=e=>{const{icon:t,...r}=e,n=h.useMemo(()=>h.lazy(()=>Xr(Object.assign({"../icons/ArrowDown.tsx":()=>Promise.resolve().then(()=>require("./ArrowDown-a6edacd9.js")),"../icons/ArrowLeft.tsx":()=>Promise.resolve().then(()=>require("./ArrowLeft-4eeead7e.js")),"../icons/ArrowRight.tsx":()=>Promise.resolve().then(()=>wn),"../icons/BrandArrowRight.tsx":()=>Promise.resolve().then(()=>require("./BrandArrowRight-810d374a.js")),"../icons/Check.tsx":()=>Promise.resolve().then(()=>require("./Check-5b690106.js")),"../icons/ChevronLeft.tsx":()=>Promise.resolve().then(()=>require("./ChevronLeft-3d464239.js")),"../icons/ChevronRight.tsx":()=>Promise.resolve().then(()=>require("./ChevronRight-5709c683.js")),"../icons/CloseBtn.tsx":()=>Promise.resolve().then(()=>require("./CloseBtn-e65fe8bd.js")),"../icons/Facebook.tsx":()=>Promise.resolve().then(()=>require("./Facebook-f2646126.js")),"../icons/FacebookColored.tsx":()=>Promise.resolve().then(()=>require("./FacebookColored-d986225c.js")),"../icons/FacebookRounded.tsx":()=>Promise.resolve().then(()=>require("./FacebookRounded-d75848d2.js")),"../icons/Globe.tsx":()=>Promise.resolve().then(()=>require("./Globe-cbe70168.js")),"../icons/IconFallback.tsx":()=>Promise.resolve().then(()=>en),"../icons/Instagram.tsx":()=>Promise.resolve().then(()=>require("./Instagram-2f8ef20d.js")),"../icons/InstagramColored.tsx":()=>Promise.resolve().then(()=>require("./InstagramColored-6a2b2b7a.js")),"../icons/Link.tsx":()=>Promise.resolve().then(()=>require("./Link-db71325e.js")),"../icons/LinkedIn.tsx":()=>Promise.resolve().then(()=>require("./LinkedIn-4745de60.js")),"../icons/Mail.tsx":()=>Promise.resolve().then(()=>require("./Mail-a1aec200.js")),"../icons/Plus.tsx":()=>Promise.resolve().then(()=>require("./Plus-75849570.js")),"../icons/Share.tsx":()=>Promise.resolve().then(()=>require("./Share-608e1dd8.js")),"../icons/Twitter.tsx":()=>Promise.resolve().then(()=>require("./Twitter-1eb11c0c.js")),"../icons/TwitterColored.tsx":()=>Promise.resolve().then(()=>require("./TwitterColored-8b72aa64.js")),"../icons/Upload.tsx":()=>Promise.resolve().then(()=>require("./Upload-578304b2.js")),"../icons/X.tsx":()=>Promise.resolve().then(()=>require("./X-ed6c3d62.js")),"../icons/YouTube.tsx":()=>Promise.resolve().then(()=>require("./YouTube-5dbf2e75.js")),"../icons/YouTubeColored.tsx":()=>Promise.resolve().then(()=>require("./YouTubeColored-5baa4a6c.js"))}),`../icons/${t||"ArrowRight"}.tsx`)),[t]);return a.jsx(h.Suspense,{fallback:a.jsx(dt,{className:"overflow-visible pointer-events-none"}),children:a.jsx(n,{...r,className:"overflow-visible pointer-events-none",...e})})},S=e=>{const{icon:t,as:r="span",tokens:n,customTheme:o,themeName:s="icon",children:i,...l}=e,c=b(s,n,o);return typeof t!="string"?a.jsxs(r,{...l,className:c,children:[i,t]}):a.jsxs(r,{className:c,children:[i,a.jsx(tn,{icon:t,...l})]})},rn=e=>{const{customTheme:t,themeName:r="accordion",id:n,tokens:o,title:s,ariaLabel:i,onClick:l,icon:c,children:u}=e,[d,p]=h.useState(!1),f=b(`${r}.container`,{...o,isOpen:d},t),m=b(`${r}.title`,{...o,isOpen:d},t),$=b(`${r}.icon`,{...o,isOpen:d},t),x=b(`${r}.region`,{...o,isOpen:d},t),v=b(`${r}.content`,{...o,isOpen:d},t);return a.jsxs("div",{className:f,id:`accordion-control-${n}`,"aria-label":i,"aria-expanded":d,"aria-controls":`accordion-content-${n}`,children:[a.jsxs(Q,{themeName:`${r}.button`,tokens:{...o,isOpen:d},handlePress:()=>{p(!d),l?.(d)},as:"button",id:`accordion-control-${n}`,"aria-label":i,children:[a.jsx("div",{className:m,children:s}),a.jsx("div",{className:$,children:a.jsx(S,{icon:c??"ArrowDown"})})]}),a.jsx("div",{className:x,role:"region",id:`accordion-content-${n}`,"aria-labelledby":`accordion-control-${n}`,children:a.jsx("div",{className:v,children:u})})]})},nn=e=>{const{sharingLinksList:t,id:r,isOpen:n,setIsOpen:o,onShare:s,themeName:i="shareButton",tokens:l,customTheme:c}=e,u=b(`${i}.linksList`,{...l,isOpen:n},c),d=y.useFocusManager(),p=f=>{f.key==="Escape"&&o(!1);const{listDirection:m}=l??{};m==="row"&&(f.key==="ArrowRight"&&(d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowLeft"&&(d.focusPrevious({wrap:!0}),f.preventDefault())),m==="column"&&(f.key==="ArrowDown"&&(d.focusNext({wrap:!0}),f.preventDefault()),f.key==="ArrowUp"&&(d.focusPrevious({wrap:!0}),f.preventDefault()))};return a.jsx("div",{className:u,id:r,role:"listbox",tabIndex:-1,onKeyDown:p,children:t?.map(f=>{const{ariaLabel:m,onClick:$,href:x,icon:v,key:w}=f;return a.jsx(Q,{themeName:`${i}.link`,tokens:{...l,isOpen:n},handlePress:()=>{s?.(w),$?.(w)},"aria-label":m,...x?{href:x,rel:"noopener noreferrer",target:"_blank",as:"a"}:{},role:"option",children:a.jsx(S,{themeName:`${i}.linkIcons`,icon:v})},w)})})},on=e=>{const{ariaLabel:t,icon:r,id:n,sharingLinksList:o,onShare:s,customTheme:i,themeName:l="shareButton",tokens:c,...u}=e,[d,p]=h.useState(!1),f=b(`${l}.container`,c,i),m=()=>{p(!d)};return a.jsxs("div",{className:f,children:[a.jsx(V,{themeName:`${l}.button`,tokens:{...c,isOpen:d},"aria-label":t,"aria-haspopup":"listbox","aria-expanded":d?"true":"false","aria-controls":"share-buttons",handlePress:m,...u,children:a.jsx(S,{themeName:`${l}.icon`,icon:r??"Share"})}),d&&a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsx(nn,{id:n,sharingLinksList:o,onShare:s,isOpen:d,setIsOpen:p,themeName:l,customTheme:i,tokens:c})})]})};function ft(){const e=h.createContext(void 0);function t(){const r=h.useContext(e);if(r===void 0)throw new Error("useCtx must be inside a Provider");return r}return[t,e.Provider]}const ht=(e,t,r)=>{const n=Qt.useOverlayTriggerState({defaultOpen:e,onOpenChange:d=>t?.(d)}),o=h.useRef(null),s=h.useRef(null);h.useEffect(()=>{if(e){n.open();return}n.close()},[e]);const i=()=>{n.open()},l=()=>{n.close(),r?.()},{buttonProps:c}=y.useButton({elementType:"div",onPress:i},o),{buttonProps:u}=y.useButton({onPress:l},s);return{state:n,openButtonProps:c,closeButtonProps:u,handleOpen:i,handleClose:l,openButtonRef:o,closeButtonRef:s}},[mt,sn]=ft();function an({children:e,defaultSelectedKey:t}){const{state:r,closeButtonProps:n,closeButtonRef:o,openButtonProps:s,openButtonRef:i}=ht(!1),l=h.useMemo(()=>({defaultSelectedKey:t,overlayState:r,buttonProps:{closeButtonProps:n,closeButtonRef:o,openButtonProps:s,openButtonRef:i}}),[r,t,n,s]);return a.jsx(sn,{value:l,children:e})}const ln=({isVisible:e,children:t})=>E.useTransition(e,{from:{opacity:0,translateX:"100%"},enter:{opacity:1,translateX:"0%"},leave:{opacity:0,translateX:"25%"}})((n,o)=>o&&a.jsx(E.animated.div,{style:n,children:t})),cn="fixed",un=({isVisible:e,children:t})=>E.useTransition(e,{from:{opacity:0,position:cn,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1},leave:{opacity:0},config:E.config.stiff})((n,o)=>o&&a.jsx(E.animated.div,{style:n,children:t})),dn="fixed",fn=({isVisible:e,children:t})=>E.useTransition(e,{from:{opacity:0,scale:.75,position:dn,left:0,top:0,zIndex:1e3,bottom:0,height:"100%",width:"100%"},enter:{opacity:1,scale:1},leave:{opacity:0,scale:.75},config:E.config.stiff})((n,o)=>o&&a.jsx(E.animated.div,{style:n,children:t})),hn=e=>{const{children:t}=e,r=h.useRef(null),{overlayProps:n,underlayProps:o}=y.useOverlay(e,r),{modalProps:s}=y.useModal(),{dialogProps:i}=y.useDialog(e,r);return a.jsx("div",{...o,children:a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",within:!0,autoFocus:!0,children:a.jsx(y.FocusScope,{contain:!0,restoreFocus:!0,autoFocus:!0,children:a.jsx("div",{...n,...i,...s,ref:r,children:t})})})})},Re=e=>{const[t,r]=h.useState(!1),{children:n,state:o,onCloseCallBack:s,transitionComponent:i=fn}=e,l=h.useCallback(()=>{o.close(),s?.()},[o.close,s]);return h.useEffect(()=>{!o.isOpen&&t||r(!0)},[o.isOpen]),t?a.jsx(G.OverlayContainer,{children:a.jsx(i,{isVisible:o.isOpen,children:a.jsx(hn,{isOpen:o.isOpen,onClose:l,isDismissable:!0,children:n})})}):null},mn=e=>{const{children:t,closeBtnRender:r,themeName:n="sidePanel",tokens:o,customTheme:s}=e,i=b(`${n}.wrapper`,o,s),l=b(`${n}.container`,o,s),c=b(`${n}.innerContainer`,o,s),{overlayState:u}=mt();return a.jsx(Re,{state:u,transitionComponent:un,children:a.jsxs(Vt,{className:i,children:[r&&r(),a.jsx(ln,{isVisible:u.isOpen,children:a.jsx("div",{className:l,children:a.jsx("div",{className:c,children:t})})})]})})},bn=h.memo(mn),gn=e=>{const{children:t,thumbnailContent:r,isOpen:n,onOpenCallBack:o,onCloseCallBack:s,label:i,themeName:l="lightBox",tokens:c,customTheme:u}=e,{state:d,openButtonRef:p,openButtonProps:f,closeButtonProps:m,closeButtonRef:$}=ht(n,o,s),x=b(`${l}.container`,c,u);return a.jsxs("div",{children:[a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:a.jsxs(V,{ref:p,themeName:`${l}.wrapper`,...f,...n?{tabIndex:-1}:{},children:[i&&a.jsx(k,{themeName:`${l}.label`,tokens:{size:"footnotes"},children:i}),r]})}),a.jsx(Re,{onCloseCallBack:s,state:d,children:a.jsxs("div",{children:[a.jsx(V,{themeName:`${l}.closeBtn`,type:"button",...m,ref:$,children:a.jsx(S,{icon:"CloseBtn"})}),a.jsx("div",{className:x,children:t})]})})]})},pn=({as:e="div",themeName:t="box",tokens:r,customTheme:n,children:o,className:s,...i})=>{const l=b(t,r,n);return a.jsx(e,{...i,className:l,children:o})},bt=h.forwardRef((e,t)=>{const{as:r="div",tokens:n,themeName:o="box",customTheme:s,children:i,...l}=e,c=b(o,n,s);return a.jsx(r,{...l,ref:t,className:c,children:i})}),yn=h.forwardRef((e,t)=>{const{isOpen:r,onClose:n,children:o,positionProps:s,themeName:i="popover",tokens:l,customTheme:c}=e,{overlayProps:u}=y.useOverlay({isOpen:r,onClose:n,shouldCloseOnBlur:!1,isDismissable:!1},t),{modalProps:d}=y.useModal(),{dialogProps:p}=y.useDialog({},t),f=b(`${i}.popover`,l,c);return a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsxs(bt,{customTheme:f,...y.mergeProps(u,d,p),ref:t,...s,children:[h.Children.map(o,m=>a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:m})),a.jsx(y.DismissButton,{onDismiss:n})]})})});function xn(e){const{children:t,buttonProps:r,placement:n="right",offset:o=5,themeName:s="popover",tokens:i,customTheme:l}=e,c=rt.useOverlayTriggerState({}),u=h.useRef(null),d=h.useRef(null),{triggerProps:p,overlayProps:f}=y.useOverlayTrigger({type:"dialog"},c,u),{overlayProps:m}=y.useOverlayPosition({targetRef:u,overlayRef:d,placement:n,offset:o,isOpen:c.isOpen}),{onPress:$,...x}=p;return a.jsxs(a.Fragment,{children:[a.jsx(V,{themeName:`${s}.button`,handlePress:$,...r,...x,ref:u}),c.isOpen&&a.jsx(y.OverlayContainer,{children:a.jsx(yn,{themeName:s,tokens:i,customTheme:l,...f,positionProps:m,ref:d,isOpen:c.isOpen,onClose:c.close,children:t})})]})}const $n=({content:e,themeName:t="wysiwyg",...r})=>a.jsx(k,{...r,themeName:t,dangerouslySetInnerHTML:{__html:Wt.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling"]})}}),vn=e=>a.jsxs("svg",{width:24,height:24,fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[a.jsx("g",{children:a.jsx("path",{d:"M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z"})}),a.jsx("defs",{children:a.jsx("clipPath",{children:a.jsx("path",{fill:"currentColor",d:"M0 0h24v24H0z"})})})]}),gt=h.memo(vn,Ht),wn=Object.freeze(Object.defineProperty({__proto__:null,default:gt},Symbol.toStringTag,{value:"Module"})),Dn=e=>{const{as:t="time",date:r,tokens:n,customTheme:o,dateFormatterOptions:s={month:"long",day:"numeric",year:"numeric"},themeName:i="typography",...l}=e,c=y.useIsSSR(),u=new Date(r),p=fe.useDateFormatter(s).format(u),f=b(i,n,o);return c||je.isEmpty(p)?null:a.jsx(t,{...l,dateTime:u.toISOString(),className:f,children:p})},Cn=({item:e,state:t,themeName:r="li"})=>{const n=h.useRef(null),{optionProps:o,isFocusVisible:s}=y.useOption({key:e.key},t,n),i=b(r);return a.jsx(Se,{as:"li",...o,tokens:{className:`${i} ${s?"has-focus-ring":""}`},ref:n,children:e.rendered})},Mn=e=>{const t=h.useRef(null),{listBoxRef:r=t,state:n,themeName:o="option"}=e,{listBoxProps:s}=y.useListBox(e,n,r);return a.jsx(y.FocusScope,{autoFocus:!0,restoreFocus:!0,contain:!0,children:a.jsx(Se,{...s,ref:r,as:"ul",themeName:`${o}.ul`,children:[...n.collection].map(i=>a.jsx(Cn,{themeName:`${o}.li`,item:i,state:n},i.key))})})},Pn=e=>{const t=h.useRef(null),{popoverRef:r=t,state:n,children:o,themeName:s="popover",...i}=e,{popoverProps:l,underlayProps:c}=y.usePopover({...e,popoverRef:r},n);return a.jsxs(y.Overlay,{children:[a.jsx("div",{...c,style:{position:"fixed",inset:0}}),a.jsxs(Se,{themeName:s,...i,...l,as:"div",ref:r,children:[a.jsx(y.DismissButton,{onDismiss:n.close}),o,a.jsx(y.DismissButton,{onDismiss:n.close})]})]})},pt=e=>{const{name:t,placeholderLabel:r,disabled:n,hookFormRef:o,isError:s=!1,errorMessage:i,themeName:l="select",tokens:c,customTheme:u,label:d,onSelectionChange:p,defaultValue:f,value:m,icon:$,...x}=e,v=h.useRef(null),w=rt.useSelectState({...x,selectedKey:m,defaultSelectedKey:f,onSelectionChange:p}),{triggerProps:P,menuProps:j,labelProps:C}=y.useSelect({...x},w,v),N=b(`${l}.wrapper`,c,u),F=b(`${l}.container`,c,u);return a.jsxs("div",{className:N,children:[d&&a.jsx(k,{...C,as:"label",themeName:`${l}.label`,children:d}),a.jsx(y.HiddenSelect,{...o,state:w,triggerRef:v,name:t,isDisabled:!0}),a.jsxs("div",{className:F,children:[a.jsxs(V,{...P,ref:v,disabled:n,themeName:`${l}.button`,tokens:{...c,intent:s?"error":"default"},children:[w.selectedItem?w.selectedItem.rendered:r,a.jsx(S,{icon:$??"ArrowDown"})]}),w.isOpen&&v.current&&a.jsx(Pn,{state:w,tokens:{width:`${v.current?.offsetWidth}`},triggerRef:v,placement:"bottom",themeName:`${l}.popover`,children:a.jsx(Mn,{...j,themeName:l,state:w})}),s&&a.jsx(k,{tokens:{...c,isError:s},themeName:`${l}.errorMessage`,children:i})]})]})},jn=e=>{const{name:t,required:r,children:n}=e,{register:o,formState:s}=ae.useFormContext(),l=ae.get(s.errors,t)?.message??void 0,{ref:c}=o(t,{required:r?"This is an error message":!1});return a.jsx(pt,{...e,isError:!je.isEmpty(l),errorMessage:l,hookFormRef:c,children:n})},Tn=e=>{const{id:t,label:r,isDisabled:n=!1,isError:o=!1,errorMessage:s,ariaLabel:i,themeName:l="checkbox",tokens:c,customTheme:u}=e,d=Kt.useToggleState(e),p=h.useRef(null),{inputProps:f}=Gt.useCheckbox(e,d,p),{focusProps:m,isFocusVisible:$}=_.useFocusRing(),x={...c,selected:d.isSelected,isDisabled:n,isError:o,isFocusVisible:$},v=b(`${l}.label`,x,u),w=b(`${l}.checkBox`,x,u),P=b(`${l}.checkMark`,x,u);return a.jsxs("div",{children:[a.jsxs("label",{htmlFor:t,className:v,children:[a.jsx(zt.VisuallyHidden,{children:a.jsx("input",{type:"checkbox",ref:p,"aria-label":i,...y.mergeProps(m,f)})}),a.jsx(_.FocusRing,{focusRingClass:"focus-ring",children:a.jsx("div",{className:w,children:a.jsx("div",{className:P})})}),a.jsx("span",{children:r})]}),o&&s&&a.jsx(k,{themeName:`${l}.errorMessage`,tokens:x,children:s})]})},kn=e=>{const{id:t,label:r,name:n,placeholder:o,required:s,disabled:i=!1,errorMessage:l,ariaLabel:c,value:u,onBlur:d,onChange:p,fieldRef:f,themeName:m="textarea",tokens:$,customTheme:x}=e,v=h.useRef(null),{errorMessageProps:w,inputProps:P,labelProps:j}=y.useTextField(e,v),C={...$,isDisabled:i,isError:l!=null},N=b(`${m}.wrapper`,C,x),F=b(`${m}.input`,C,x),pe=b(`${m}.label`,C,x),ye=b(`${m}.container`,C,x);return a.jsxs("div",{children:[a.jsxs("div",{className:N,"aria-disabled":i,children:[r&&a.jsx("label",{className:pe,...j,children:r}),a.jsx("div",{className:ye,children:a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsx("textarea",{ref:H=>{f?.(H),v.current=H},className:F,placeholder:o,disabled:i,required:s,id:t,name:n,"aria-label":c,"aria-labelledby":t,value:u,onBlur:d,onChange:p,...P})})})]}),l&&a.jsx(k,{themeName:`${m}.errorMessage`,tokens:C,...w,children:l})]})},yt=e=>{const{id:t,label:r,required:n,disabled:o=!1,errorMessage:s,ariaLabel:i,value:l,onBlur:c,onChange:u,fieldRef:d,type:p="text",children:f,themeName:m="textInput",tokens:$,customTheme:x}=e,v=h.useRef(null),{errorMessageProps:w,inputProps:P,labelProps:j}=y.useTextField(e,v),C={...$,isDisabled:o,isError:s!=null},N=b(`${m}.wrapper`,C,x),F=b(`${m}.label`,C,x),pe=b(`${m}.input`,C,x),ye=b(`${m}.container`,C,x);return a.jsxs("div",{children:[a.jsx(_.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:a.jsxs("div",{"aria-disabled":o,className:N,children:[r&&a.jsx("label",{className:F,...j,children:r}),a.jsxs("div",{className:ye,children:[f,a.jsx("input",{...P,className:pe,disabled:o,required:n,ref:H=>{d?.(H),v.current=H},"aria-label":i,"aria-labelledby":t,value:l,onBlur:c,onChange:u,type:p})]})]})}),s&&a.jsx(k,{themeName:`${m}.errorMessage`,tokens:C,...w,children:s})]})},Sn=e=>{const{name:t,required:r,minLength:n=0,maxLength:o=99999999,validation:s}=e,{register:i,formState:l}=ae.useFormContext(),u=ae.get(l.errors,t)?.message??void 0,{t:d}=Xt.useTranslation("components"),{ref:p,...f}=i(t,{required:r?d("FORM.ERROR.REQUIRED")??"required":!1,minLength:{value:n,message:d("FORM.ERROR.MIN_LENGTH",{length:n})},maxLength:{value:o,message:d("FORM.ERROR.MAX_LENGTH",{length:n})},...s});return a.jsx(yt,{fieldRef:p,...f,...e,isError:!je.isEmpty(u),errorMessage:u})};function Rn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xt(e,t,r){Rn(e,t),t.set(e,r)}function T(e,t){return e-t*Math.floor(e/t)}const $t=1721426;function q(e,t,r,n){t=X(e,t);let o=t-1,s=-2;return r<=2?s=0:A(t)&&(s=-1),$t-1+365*o+Math.floor(o/4)-Math.floor(o/100)+Math.floor(o/400)+Math.floor((367*r-362)/12+s+n)}function A(e){return e%4===0&&(e%100!==0||e%400===0)}function X(e,t){return e==="BC"?1-t:t}function he(e){let t="AD";return e<=0&&(t="BC",e=1-e),[t,e]}const In={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class R{fromJulianDay(t){let r=t,n=r-$t,o=Math.floor(n/146097),s=T(n,146097),i=Math.floor(s/36524),l=T(s,36524),c=Math.floor(l/1461),u=T(l,1461),d=Math.floor(u/365),p=o*400+i*100+c*4+d+(i!==4&&d!==4?1:0),[f,m]=he(p),$=r-q(f,m,1,1),x=2;r<q(f,m,3,1)?x=0:A(m)&&(x=1);let v=Math.floor((($+x)*12+373)/367),w=r-q(f,m,v,1)+1;return new D(f,m,v,w)}toJulianDay(t){return q(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return In[A(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return A(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}}const An={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ne(e,t){return t=me(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function vt(e,t){let r=e.calendar.toJulianDay(e),n=Math.ceil(r+1-Fn(t))%7;return n<0&&(n+=7),n}function wt(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function Bn(e,t){return Fe(e)-Fe(t)}function Fe(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}let xe=null;function Dt(){return xe==null&&(xe=new Intl.DateTimeFormat().resolvedOptions().timeZone),xe}function En(e){return e.subtract({days:e.day-1})}const Le=new Map;function Nn(e){if(Intl.Locale){let r=Le.get(e);return r||(r=new Intl.Locale(e).maximize().region,Le.set(e,r)),r}let t=e.split("-")[1];return t==="u"?null:t}function Fn(e){let t=Nn(e);return An[t]||0}function Ln(e,t){let r=e.calendar.getDaysInMonth(e);return Math.ceil((vt(En(e),t)+r)/7)}function Oe(e){e=me(e,new R);let t=X(e.era,e.year);return Ct(t,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Ct(e,t,r,n,o,s,i){let l=new Date;return l.setUTCHours(n,o,s,i),l.setUTCFullYear(e,t-1,r),l.getTime()}function qe(e,t){if(t==="UTC")return 0;if(e>0&&t===Dt())return new Date(e).getTimezoneOffset()*-6e4;let{year:r,month:n,day:o,hour:s,minute:i,second:l}=Mt(e,t);return Ct(r,n,o,s,i,l,0)-Math.floor(e/1e3)*1e3}const Ue=new Map;function Mt(e,t){let r=Ue.get(t);r||(r=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Ue.set(t,r));let n=r.formatToParts(new Date(e)),o={};for(let s of n)s.type!=="literal"&&(o[s.type]=s.value);return{year:o.era==="BC"||o.era==="B"?-o.year+1:+o.year,month:+o.month,day:+o.day,hour:o.hour==="24"?0:+o.hour,minute:+o.minute,second:+o.second}}const Ye=864e5;function On(e,t,r,n){return(r===n?[r]:[r,n]).filter(s=>qn(e,t,s))}function qn(e,t,r){let n=Mt(r,t);return e.year===n.year&&e.month===n.month&&e.day===n.day&&e.hour===n.hour&&e.minute===n.minute&&e.second===n.second}function Un(e,t,r="compatible"){let n=jt(e);if(t==="UTC")return Oe(n);if(t===Dt()&&r==="compatible"){n=me(n,new R);let c=new Date,u=X(n.era,n.year);return c.setFullYear(u,n.month-1,n.day),c.setHours(n.hour,n.minute,n.second,n.millisecond),c.getTime()}let o=Oe(n),s=qe(o-Ye,t),i=qe(o+Ye,t),l=On(n,t,o-s,o-i);if(l.length===1)return l[0];if(l.length>1)switch(r){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(r){case"earlier":return Math.min(o-s,o-i);case"compatible":case"later":return Math.max(o-s,o-i);case"reject":throw new RangeError("No such absolute time found")}}function Pt(e,t,r="compatible"){return new Date(Un(e,t,r))}function jt(e,t){let r=0,n=0,o=0,s=0;if("timeZone"in e)({hour:r,minute:n,second:o,millisecond:s}=e);else if("hour"in e&&!t)return e;return t&&({hour:r,minute:n,second:o,millisecond:s}=t),new ie(e.calendar,e.era,e.year,e.month,e.day,r,n,o,s)}function me(e,t){if(e.calendar.identifier===t.identifier)return e;let r=t.fromJulianDay(e.calendar.toJulianDay(e)),n=e.copy();return n.calendar=t,n.era=r.era,n.year=r.year,n.month=r.month,n.day=r.day,W(n),n}function Ie(e,t){let r=e.copy(),n="hour"in r?Wn(r,t):0;we(r,t.years||0),r.calendar.balanceYearMonth&&r.calendar.balanceYearMonth(r,e),r.month+=t.months||0,De(r),Tt(r),r.day+=(t.weeks||0)*7,r.day+=t.days||0,r.day+=n,Yn(r),r.calendar.balanceDate&&r.calendar.balanceDate(r),r.year<1&&(r.year=1,r.month=1,r.day=1);let o=r.calendar.getYearsInEra(r);if(r.year>o){var s,i;let c=(i=(s=r.calendar).isInverseEra)===null||i===void 0?void 0:i.call(s,r);r.year=o,r.month=c?1:r.calendar.getMonthsInYear(r),r.day=c?1:r.calendar.getDaysInMonth(r)}r.month<1&&(r.month=1,r.day=1);let l=r.calendar.getMonthsInYear(r);return r.month>l&&(r.month=l,r.day=r.calendar.getDaysInMonth(r)),r.day=Math.max(1,Math.min(r.calendar.getDaysInMonth(r),r.day)),r}function we(e,t){var r,n;!((n=(r=e.calendar).isInverseEra)===null||n===void 0)&&n.call(r,e)&&(t=-t),e.year+=t}function De(e){for(;e.month<1;)we(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,we(e,1)}function Yn(e){for(;e.day<1;)e.month--,De(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,De(e)}function Tt(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function W(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),Tt(e)}function Jn(e){let t={};for(let r in e)typeof e[r]=="number"&&(t[r]=-e[r]);return t}function kt(e,t){return Ie(e,Jn(t))}function St(e,t){let r=e.copy();return t.era!=null&&(r.era=t.era),t.year!=null&&(r.year=t.year),t.month!=null&&(r.month=t.month),t.day!=null&&(r.day=t.day),W(r),r}function _n(e,t){let r=e.copy();return t.hour!=null&&(r.hour=t.hour),t.minute!=null&&(r.minute=t.minute),t.second!=null&&(r.second=t.second),t.millisecond!=null&&(r.millisecond=t.millisecond),Qn(r),r}function Vn(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ee(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ee(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ee(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ee(e.hour,24),t}function Qn(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ee(e,t){let r=e%t;return r<0&&(r+=t),r}function Wn(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,Vn(e)}function Rt(e,t,r,n){let o=e.copy();switch(t){case"era":{let l=e.calendar.getEras(),c=l.indexOf(e.era);if(c<0)throw new Error("Invalid era: "+e.era);c=B(c,r,0,l.length-1,n?.round),o.era=l[c],W(o);break}case"year":var s,i;!((i=(s=o.calendar).isInverseEra)===null||i===void 0)&&i.call(s,o)&&(r=-r),o.year=B(e.year,r,-1/0,9999,n?.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=B(e.month,r,1,e.calendar.getMonthsInYear(e),n?.round);break;case"day":o.day=B(e.day,r,1,e.calendar.getDaysInMonth(e),n?.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),W(o),o}function Hn(e,t,r,n){let o=e.copy();switch(t){case"hour":{let s=e.hour,i=0,l=23;if(n?.hourCycle===12){let c=s>=12;i=c?12:0,l=c?23:11}o.hour=B(s,r,i,l,n?.round);break}case"minute":o.minute=B(e.minute,r,0,59,n?.round);break;case"second":o.second=B(e.second,r,0,59,n?.round);break;case"millisecond":o.millisecond=B(e.millisecond,r,0,999,n?.round);break;default:throw new Error("Unsupported field "+t)}return o}function B(e,t,r,n,o=!1){if(o){e+=Math.sign(t),e<r&&(e=n);let s=Math.abs(t);t>0?e=Math.ceil(e/s)*s:e=Math.floor(e/s)*s,e>n&&(e=r)}else e+=t,e<r?e=n-(r-e-1):e>n&&(e=r+(e-n-1));return e}function Gn(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function It(e){let t=me(e,new R);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function zn(e){return`${It(e)}T${Gn(e)}`}function At(e){let t=typeof e[0]=="object"?e.shift():new R,r;if(typeof e[0]=="string")r=e.shift();else{let i=t.getEras();r=i[i.length-1]}let n=e.shift(),o=e.shift(),s=e.shift();return[t,r,n,o,s]}var Kn=new WeakMap;class D{copy(){return this.era?new D(this.calendar,this.era,this.year,this.month,this.day):new D(this.calendar,this.year,this.month,this.day)}add(t){return Ie(this,t)}subtract(t){return kt(this,t)}set(t){return St(this,t)}cycle(t,r,n){return Rt(this,t,r,n)}toDate(t){return Pt(this,t)}toString(){return It(this)}compare(t){return wt(this,t)}constructor(...t){xt(this,Kn,{writable:!0,value:void 0});let[r,n,o,s,i]=At(t);this.calendar=r,this.era=n,this.year=o,this.month=s,this.day=i,W(this)}}var Xn=new WeakMap;class ie{copy(){return this.era?new ie(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ie(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(t){return Ie(this,t)}subtract(t){return kt(this,t)}set(t){return St(_n(this,t),t)}cycle(t,r,n){switch(t){case"era":case"year":case"month":case"day":return Rt(this,t,r,n);default:return Hn(this,t,r,n)}}toDate(t,r){return Pt(this,t,r)}toString(){return zn(this)}compare(t){let r=wt(this,t);return r===0?Bn(this,jt(t)):r}constructor(...t){xt(this,Xn,{writable:!0,value:void 0});let[r,n,o,s,i]=At(t);this.calendar=r,this.era=n,this.year=o,this.month=s,this.day=i,this.hour=t.shift()||0,this.minute=t.shift()||0,this.second=t.shift()||0,this.millisecond=t.shift()||0,W(this)}}const Y=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Zn=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],ne=[1867,1911,1925,1988,2018],I=["meiji","taisho","showa","heisei","reiwa"];function Je(e){const t=Y.findIndex(([r,n,o])=>e.year<r||e.year===r&&e.month<n||e.year===r&&e.month===n&&e.day<o);return t===-1?Y.length-1:t===0?0:t-1}function $e(e){let t=ne[I.indexOf(e.era)];if(!t)throw new Error("Unknown era: "+e.era);return new D(e.year+t,e.month,e.day)}class eo extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=Je(r);return new D(this,I[n],r.year-ne[n],r.month,r.day)}toJulianDay(t){return super.toJulianDay($e(t))}balanceDate(t){let r=$e(t),n=Je(r);I[n]!==t.era&&(t.era=I[n],t.year=r.year-ne[n]),this.constrainDate(t)}constrainDate(t){let r=I.indexOf(t.era),n=Zn[r];if(n!=null){let[o,s,i]=n,l=o-ne[r];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(s,t.month),t.month===s&&(t.day=Math.min(i,t.day)))}if(t.year===1&&r>=0){let[,o,s]=Y[r];t.month=Math.max(o,t.month),t.month===o&&(t.day=Math.max(s,t.day))}}getEras(){return I}getYearsInEra(t){let r=I.indexOf(t.era),n=Y[r],o=Y[r+1];if(o==null)return 9999-n[0]+1;let s=o[0]-n[0];return(t.month<o[1]||t.month===o[1]&&t.day<o[2])&&s++,s}getDaysInMonth(t){return super.getDaysInMonth($e(t))}getMinimumMonthInYear(t){let r=_e(t);return r?r[1]:1}getMinimumDayInMonth(t){let r=_e(t);return r&&t.month===r[1]?r[2]:1}constructor(...t){super(...t),this.identifier="japanese"}}function _e(e){if(e.year===1){let t=I.indexOf(e.era);return Y[t]}}const Bt=-543;class to extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=X(r.era,r.year);return new D(this,n-Bt,r.month,r.day)}toJulianDay(t){return super.toJulianDay(Ve(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Ve(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}}function Ve(e){let[t,r]=he(e.year+Bt);return new D(t,r,e.month,e.day)}const le=1911;function Et(e){return e.era==="minguo"?e.year+le:1-e.year+le}function Qe(e){let t=e-le;return t>0?["minguo",t]:["before_minguo",1-t]}class ro extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=X(r.era,r.year),[o,s]=Qe(n);return new D(this,o,s,r.month,r.day)}toJulianDay(t){return super.toJulianDay(We(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[r,n]=Qe(Et(t));t.era=r,t.year=n}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(We(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-le}constructor(...t){super(...t),this.identifier="roc"}}function We(e){let[t,r]=he(Et(e));return new D(t,r,e.month,e.day)}const no=1948321;function oo(e){let t=e>0?e-474:e-473,r=T(t,2820)+474;return T((r+38)*31,128)<31}function te(e,t,r){let n=e>0?e-474:e-473,o=T(n,2820)+474,s=t<=7?31*(t-1):30*(t-1)+6;return no-1+1029983*Math.floor(n/2820)+365*(o-1)+Math.floor((31*o-5)/128)+s+r}class so{fromJulianDay(t){let r=t-te(475,1,1),n=Math.floor(r/1029983),o=T(r,1029983),s=o===1029982?2820:Math.floor((128*o+46878)/46751),i=474+2820*n+s;i<=0&&i--;let l=t-te(i,1,1)+1,c=l<=186?Math.ceil(l/31):Math.ceil((l-6)/31),u=t-te(i,c,1)+1;return new D(this,i,c,u)}toJulianDay(t){return te(t.year,t.month,t.day)}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||oo(t.year)?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}}const ve=78,He=80;class ao extends R{fromJulianDay(t){let r=super.fromJulianDay(t),n=r.year-ve,o=t-q(r.era,r.year,1,1),s;o<He?(n--,s=A(r.year-1)?31:30,o+=s+155+90+10):(s=A(r.year)?31:30,o-=He);let i,l;if(o<s)i=1,l=o+1;else{let c=o-s;c<155?(i=Math.floor(c/31)+2,l=c%31+1):(c-=155,i=Math.floor(c/30)+7,l=c%30+1)}return new D(this,n,i,l)}toJulianDay(t){let r=t.year+ve,[n,o]=he(r),s,i;return A(o)?(s=31,i=q(n,o,3,21)):(s=30,i=q(n,o,3,22)),t.month===1?i+t.day-1:(i+=s+Math.min(t.month-2,5)*31,t.month>=8&&(i+=(t.month-7)*30),i+=t.day-1,i)}getDaysInMonth(t){return t.month===1&&A(t.year+ve)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}}const ce=1948440,Ge=1948439,M=1300,U=1600,io=460322;function ue(e,t,r,n){return n+Math.ceil(29.5*(r-1))+(t-1)*354+Math.floor((3+11*t)/30)+e-1}function Nt(e,t,r){let n=Math.floor((30*(r-t)+10646)/10631),o=Math.min(12,Math.ceil((r-(29+ue(t,n,1,1)))/29.5)+1),s=r-ue(t,n,o,1)+1;return new D(e,n,o,s)}function ze(e){return(14+11*e)%30<11}class Ae{fromJulianDay(t){return Nt(this,ce,t)}toJulianDay(t){return ue(ce,t.year,t.month,t.day)}getDaysInMonth(t){let r=29+t.month%2;return t.month===12&&ze(t.year)&&r++,r}getMonthsInYear(){return 12}getDaysInYear(t){return ze(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}}class lo extends Ae{fromJulianDay(t){return Nt(this,Ge,t)}toJulianDay(t){return ue(Ge,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}}const co="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=";let Ce,J;function oe(e){return io+J[e-M]}function z(e,t){let r=e-M,n=1<<11-(t-1);return Ce[r]&n?30:29}function Ke(e,t){let r=oe(e);for(let n=1;n<t;n++)r+=z(e,n);return r}function Xe(e){return J[e+1-M]-J[e-M]}class uo extends Ae{fromJulianDay(t){let r=t-ce,n=oe(M),o=oe(U);if(r<n||r>o)return super.fromJulianDay(t);{let s=M-1,i=1,l=1;for(;l>0;){s++,l=r-oe(s)+1;let c=Xe(s);if(l===c){i=12;break}else if(l<c){let u=z(s,i);for(i=1;l>u;)l-=u,i++,u=z(s,i);break}}return new D(this,s,i,r-Ke(s,i)+1)}}toJulianDay(t){return t.year<M||t.year>U?super.toJulianDay(t):ce+Ke(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<M||t.year>U?super.getDaysInMonth(t):z(t.year,t.month)}getDaysInYear(t){return t.year<M||t.year>U?super.getDaysInYear(t):Xe(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Ce||(Ce=new Uint16Array(Uint8Array.from(atob(co),t=>t.charCodeAt(0)).buffer)),!J){J=new Uint32Array(U-M+1);let t=0;for(let r=M;r<=U;r++){J[r-M]=t;for(let n=1;n<=12;n++)t+=z(r,n)}}}}const Ze=347997,Ft=1080,Lt=24*Ft,fo=29,ho=12*Ft+793,mo=fo*Lt+ho;function O(e){return T(e*7+1,19)<7}function se(e){let t=Math.floor((235*e-234)/19),r=12084+13753*t,n=t*29+Math.floor(r/25920);return T(3*(n+1),7)<3&&(n+=1),n}function bo(e){let t=se(e-1),r=se(e);return se(e+1)-r===356?2:r-t===382?1:0}function K(e){return se(e)+bo(e)}function Ot(e){return K(e+1)-K(e)}function go(e){let t=Ot(e);switch(t>380&&(t-=30),t){case 353:return 0;case 354:return 1;case 355:return 2}}function re(e,t){if(t>=6&&!O(e)&&t++,t===4||t===7||t===9||t===11||t===13)return 29;let r=go(e);return t===2?r===2?30:29:t===3?r===0?29:30:t===6?O(e)?30:0:30}class po{fromJulianDay(t){let r=t-Ze,n=r*Lt/mo,o=Math.floor((19*n+234)/235)+1,s=K(o),i=Math.floor(r-s);for(;i<1;)o--,s=K(o),i=Math.floor(r-s);let l=1,c=0;for(;c<i;)c+=re(o,l),l++;l--,c-=re(o,l);let u=i-c;return new D(this,o,l,u)}toJulianDay(t){let r=K(t.year);for(let n=1;n<t.month;n++)r+=re(t.year,n);return r+t.day+Ze}getDaysInMonth(t){return re(t.year,t.month)}getMonthsInYear(t){return O(t.year)?13:12}getDaysInYear(t){return Ot(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,r){r.year!==t.year&&(O(r.year)&&!O(t.year)&&r.month>6?t.month--:!O(r.year)&&O(t.year)&&r.month>6&&t.month++)}constructor(){this.identifier="hebrew"}}const Me=1723856,et=1824665,Pe=5500;function de(e,t,r,n){return e+365*t+Math.floor(t/4)+30*(r-1)+n-1}function Be(e,t){let r=Math.floor(4*(t-e)/1461),n=1+Math.floor((t-de(e,r,1,1))/30),o=t+1-de(e,r,n,1);return[r,n,o]}function qt(e){return Math.floor(e%4/3)}function Ut(e,t){return t%13!==0?30:qt(e)+5}class Ee{fromJulianDay(t){let[r,n,o]=Be(Me,t),s="AM";return r<=0&&(s="AA",r+=Pe),new D(this,s,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="AA"&&(r-=Pe),de(Me,r,t.month,t.day)}getDaysInMonth(t){return Ut(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+qt(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}}class yo extends Ee{fromJulianDay(t){let[r,n,o]=Be(Me,t);return r+=Pe,new D(this,"AA",r,n,o)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}}class xo extends Ee{fromJulianDay(t){let[r,n,o]=Be(et,t),s="CE";return r<=0&&(s="BCE",r=1-r),new D(this,s,r,n,o)}toJulianDay(t){let r=t.year;return t.era==="BCE"&&(r=1-r),de(et,r,t.month,t.day)}getDaysInMonth(t){let r=t.year;return t.era==="BCE"&&(r=1-r),Ut(r,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}}function Yt(e){switch(e){case"buddhist":return new to;case"ethiopic":return new Ee;case"ethioaa":return new yo;case"coptic":return new xo;case"hebrew":return new po;case"indian":return new ao;case"islamic-civil":return new Ae;case"islamic-tbla":return new lo;case"islamic-umalqura":return new uo;case"japanese":return new eo;case"persian":return new so;case"roc":return new ro;case"gregory":default:return new R}}function $o({themeName:e="calendar",tokens:t,state:r,date:n}){const o=h.useRef(null),{cellProps:s,buttonProps:i,isSelected:l,isOutsideVisibleRange:c,isDisabled:u,formattedDate:d,isInvalid:p}=ke.useCalendarCell({date:n},r,o),f=r?.highlightedRange?Ne(n,r?.highlightedRange.start):l,m=r?.highlightedRange?Ne(n,r?.highlightedRange.end):l,{locale:$}=y.useLocale(),x=vt(n,$),v=l&&(f||x===0||n.day===1),w=l&&(m||x===6||n.day===n.calendar.getDaysInMonth(n)),{focusProps:P,isFocusVisible:j}=_.useFocusRing(),C=b(`${e}.cellContainer`,{...t,isFocusVisible:j}),N=b(`${e}.cell`,{...t,isSelected:l,isInvalid:p,isDisabled:u,isRoundedLeft:v,isRoundedRight:w}),F=b(`${e}.cellDate`,{...t,isSelected:l,isInvalid:p,isDisabled:u,isSelectionStart:f,isSelectionEnd:m});return a.jsx("td",{...s,"aria-disabled":!1,className:C,children:a.jsx("div",{...er.mergeProps(i,P),ref:o,hidden:c,className:N,children:a.jsx("div",{className:F,children:d})})})}function vo({themeName:e="calendar",customTheme:t,tokens:r,state:n,...o}){const{locale:s}=fe.useLocale(),{gridProps:i,headerProps:l,weekDays:c}=ke.useCalendarGrid({...o},n),u=Ln(n.visibleRange.start,s),d=b(`${e}.calendarTable`,r),p=b(`${e}.dayLabel`,r);return a.jsxs("table",{...i,cellPadding:"0",className:d,children:[a.jsx("thead",{...l,children:a.jsx("tr",{children:c.map(f=>a.jsx("th",{className:p,children:f},`${f}`))})}),a.jsx("tbody",{children:[...new Array(u).keys()].map(f=>a.jsx("tr",{children:n.getDatesInWeek(f).map((m,$)=>m?a.jsx($o,{state:n,date:m},m?.day):a.jsx("td",{},$))},f))})]})}function Jt({buttons:e,tokens:t,customTheme:r,themeName:n="calendar",...o}){const{locale:s}=fe.useLocale(),i=Zt.useCalendarState({...o,locale:s,createCalendar:Yt}),l=h.useRef(null),{calendarProps:c,prevButtonProps:u,nextButtonProps:d,title:p}=ke.useCalendar({...o},i),f=b(`${n}.container`,t),m=b(`${n}.header`,t),$=b(`${n}.navigationButtonsContainer`,t);return a.jsxs("div",{...c,ref:l,className:f,children:[a.jsxs("div",{className:m,children:[a.jsx(k,{as:"p",tokens:{size:"h6"},children:p}),a.jsxs("div",{className:$,children:[a.jsx(Q,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...u,handlePress:u?.onPress,children:a.jsx(S,{icon:e?.buttonPrev?.icon??"ArrowLeft"})}),a.jsx(Q,{themeName:`${n}.navigationButtons`,tokens:{...t},type:"button",...d,handlePress:d?.onPress,children:a.jsx(S,{icon:e?.buttonNext?.icon??"ArrowRight"})})]})]}),a.jsx(vo,{state:i})]})}function wo({title:e,children:t,...r}){const n=h.useRef(null),{dialogProps:o}=y.useDialog(r,n);return a.jsx("div",{...o,ref:n,children:t})}function Do({themeName:e="datePicker",tokens:t,...r}){const n=rr.useRef(null),{state:o,children:s}={...r},{popoverProps:i,underlayProps:l}=G.usePopover({...r,popoverRef:n},o),c=b(`${e}.calendarUnderlay`,t),u=b(`${e}.calendarPopover`,t);return a.jsxs(G.Overlay,{children:[a.jsx("div",{...l,className:c}),a.jsxs("div",{...i,ref:n,className:u,children:[a.jsx(G.DismissButton,{onDismiss:o.close}),s,a.jsx(G.DismissButton,{onDismiss:o.close})]})]})}function Co({segment:e,state:t}){const r=h.useRef(null),{segmentProps:n}=Te.useDateSegment(e,t,r),o=b("datePicker.dateSegment");return a.jsx(y.FocusRing,{focusRingClass:"has-focus-ring",children:a.jsxs("div",{...n,ref:r,className:o,children:[a.jsx("span",{"aria-hidden":"true",style:{visibility:e.isPlaceholder?"visible":"hidden",height:e.isPlaceholder?"":0,pointerEvents:"none",display:e.isPlaceholder?"block":"none"},children:e.placeholder}),e.isPlaceholder?"":e.text]})})}function tt(e){const{locale:t}=fe.useLocale(),r=nt.useDateFieldState({...e,locale:t,createCalendar:Yt}),n=h.useRef(null),{fieldProps:o}=Te.useDateField(e,r,n);return a.jsx("div",{...o,ref:n,className:"flex",children:r.segments.map((s,i)=>a.jsx(Co,{segment:s,state:r},i))})}function Mo({popoverPlacement:e="bottom start",tokens:t,customTheme:r,themeName:n="datePicker",icon:o="ArrowDown",description:s,buttonLabel:i,...l}){const c=nt.useDatePickerState({...l}),u=h.useRef(null),{groupProps:d,fieldProps:p,labelProps:f,descriptionProps:m,buttonProps:$,dialogProps:x,calendarProps:v}=Te.useDatePicker({...l},c,u),{label:w}={...l},P=b(`${n}.container`,t),j=b(`${n}.dateField`,t),C=b(`${n}.label`,t);return a.jsxs("div",{className:P,children:[w&&a.jsx("span",{...f,children:w}),s&&a.jsx("div",{...m,children:s}),a.jsx("div",{...d,ref:u,children:a.jsxs(Q,{themeName:`${n}.button`,tokens:{...t},type:"button",...$,handlePress:$.onPress,children:[i&&a.jsx("p",{className:C,children:i}),a.jsxs("div",{className:j,children:[a.jsx(tt,{...p}),c.validationState==="invalid"&&"❌"]}),a.jsx(S,{themeName:`${n}.icon`,tokens:{...t},icon:o})]})}),c.isOpen&&a.jsx(Do,{triggerRef:u,state:c,placement:e,children:a.jsxs(wo,{...x,children:[a.jsxs("div",{children:[a.jsx(tt,{...p}),c.validationState==="invalid"&&"❌"]}),a.jsx(Jt,{...v})]})})]})}const[Po,jo]=ft();function To({children:e}){const[t,r]=h.useState(!1);h.useEffect(()=>{r(!0)},[]);const n=h.useMemo(()=>({isClient:t}),[t]);return a.jsx(jo,{value:n,children:e})}const be=(e,t,r="sharing_tool")=>`?utm_source=${e}&utm_medium=${t}&utm_campaign=${r}`,ge=()=>{const[e,t]=h.useState(),[r,n]=h.useState();return h.useEffect(()=>{t(window.location.href),n(window.document.title)},[]),{windowLocation:e,windowTitle:r}},ko=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=ge(),s=r??n,i=be(e,t);return`https://www.facebook.com/sharer.php?u=${`${s}${i}`}&t=${o}`},So=(e,t,r)=>{const{windowLocation:n,windowTitle:o}=ge(),s=r??n,i=be(e,t),l=`${s}${i}`;return`mailto:?to=&body=${o}%20${l}`},Ro=(e,t,r)=>{const{windowLocation:n}=ge(),o=r??n,s=be(e,t);return`https://twitter.com/intent/tweet?text=${`${o}${s}`}`};exports.Accordion=rn;exports.ArrowRight=gt;exports.Box=pn;exports.BoxWithForwardRef=bt;exports.Button=Q;exports.ButtonWithForwardRef=V;exports.Calendar=Jt;exports.Checkbox=Tn;exports.Date=Dn;exports.DatePicker=Mo;exports.Icon=S;exports.IsClientContextProvider=To;exports.Lightbox=gn;exports.Modal=Re;exports.Popover=xn;exports.ReactHookFormInput=Sn;exports.ReactHookFormSelect=jn;exports.Select=pt;exports.ShareButton=on;exports.SidePanel=bn;exports.SidePanelContextProvider=an;exports.TextArea=kn;exports.TextInputField=yt;exports.ThemeContextProvider=at;exports.ThemeProvider=zr;exports.Typography=k;exports.WysiwygBlock=$n;exports.createThemeProvider=it;exports.generateUtmTags=be;exports.makeTheme=ot;exports.useFacebookShareUrl=ko;exports.useIsClient=Po;exports.useMailToShareUrl=So;exports.useSidePanel=mt;exports.useTheme=st;exports.useThemeContext=b;exports.useTwitterShareUrl=Ro;exports.useWindow=ge;
package/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  import * as Gt from "react";
2
2
  import w, { useMemo as de, useRef as k, memo as lt, lazy as zt, Suspense as Kt, useState as Q, useEffect as fe, useCallback as jt } from "react";
3
- import { jsx as l, jsxs as y, Fragment as Zt } from "react/jsx-runtime";
3
+ import { jsx as l, jsxs as g, Fragment as Xt } from "react/jsx-runtime";
4
4
  import { tv as p } from "tailwind-variants";
5
- import { get as Xt } from "radash";
5
+ import { get as Zt } from "radash";
6
6
  import { useLink as er, FocusRing as j, useButton as we, FocusScope as he, useFocusManager as tr, useOverlay as ct, useModal as ut, useDialog as Se, mergeProps as dt, DismissButton as De, useOverlayTrigger as rr, useOverlayPosition as nr, OverlayContainer as or, useIsSSR as ar, useListBox as sr, useOption as ir, usePopover as lr, Overlay as cr, useSelect as ur, HiddenSelect as dr, useTextField as ft, useLocale as fr } from "react-aria";
7
7
  import hr from "react-div-100vh";
8
8
  import { useOverlayTriggerState as mr } from "@react-stately/overlays";
9
9
  import { useTransition as Ie, animated as Re, config as ht } from "react-spring";
10
- import { OverlayContainer as pr, usePopover as br, Overlay as yr, DismissButton as Je } from "@react-aria/overlays";
10
+ import { OverlayContainer as pr, usePopover as br, Overlay as gr, DismissButton as Je } from "@react-aria/overlays";
11
11
  import { FocusRing as me, useFocusRing as mt } from "@react-aria/focus";
12
- import { useOverlayTriggerState as gr, useSelectState as $r } from "react-stately";
12
+ import { useOverlayTriggerState as yr, useSelectState as $r } from "react-stately";
13
13
  import vr from "isomorphic-dompurify";
14
14
  import xr from "lodash.isequal";
15
15
  import { useDateFormatter as wr, useLocale as Ae } from "@react-aria/i18n";
@@ -111,7 +111,7 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
111
111
  }
112
112
  }), Kr = p({
113
113
  base: "w-full bg-slate-100"
114
- }), yt = p({
114
+ }), gt = p({
115
115
  base: "max-w-screen-lg mx-auto w-full",
116
116
  variants: {
117
117
  fullWidth: {
@@ -125,14 +125,14 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
125
125
  }
126
126
  }
127
127
  }), jr = p({
128
- extend: yt,
128
+ extend: gt,
129
129
  base: "grid grid-cols-12 gap-6 px-4 col-span-full",
130
130
  variants: {
131
131
  fullWidth: {
132
132
  true: "max-w-full col-span-full p-0"
133
133
  }
134
134
  }
135
- }), Zr = p({
135
+ }), Xr = p({
136
136
  base: "bg-slate-300 h-64 p-4 flex justify-start items-end",
137
137
  defaultVariants: {
138
138
  size: "small"
@@ -144,7 +144,7 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
144
144
  large: "lg:col-start-3 sm:col-start-1 sm:col-end-13 lg:col-end-11 md:col-start-3 md:col-end-11 col-start-1 col-end-13"
145
145
  }
146
146
  }
147
- }), X = p({
147
+ }), Z = p({
148
148
  base: `
149
149
  flex
150
150
  items-center
@@ -211,7 +211,7 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
211
211
  circular: "rounded-full"
212
212
  }
213
213
  }
214
- }), Xr = p({
214
+ }), Zr = p({
215
215
  base: "inline-block text-gray-800"
216
216
  }), en = p({
217
217
  base: "flex items-center justify-between pb-4"
@@ -405,9 +405,9 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
405
405
  false: "hidden"
406
406
  }
407
407
  }
408
- }), yn = p({
409
- base: "focus-ring-black"
410
408
  }), gn = p({
409
+ base: "focus-ring-black"
410
+ }), yn = p({
411
411
  base: "text-color-1-500 bg-color-1-100 border-l-2 border-color-1-500 h-full py-2 px-2"
412
412
  }), $n = p({
413
413
  base: "text-color-1-500 font-bold px-2"
@@ -560,9 +560,9 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
560
560
  }
561
561
  }), En = Fr({
562
562
  main: (e) => Kr(e),
563
- gridItem: (e) => Zr(e),
563
+ gridItem: (e) => Xr(e),
564
564
  grid: (e) => jr(e),
565
- container: (e) => yt(e),
565
+ container: (e) => gt(e),
566
566
  accordion: {
567
567
  container: (e) => Qr(e),
568
568
  button: (e) => qr(e),
@@ -572,7 +572,7 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
572
572
  content: (e) => zr(e)
573
573
  },
574
574
  calendar: {
575
- container: (e) => Xr(e),
575
+ container: (e) => Zr(e),
576
576
  header: (e) => en(e),
577
577
  navigationButtonsContainer: (e) => tn(e),
578
578
  navigationButtons: (e) => rn(e),
@@ -585,19 +585,19 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
585
585
  datePicker: {
586
586
  container: (e) => fn(e),
587
587
  button: (e) => hn(e),
588
- icon: (e) => gn(e),
588
+ icon: (e) => yn(e),
589
589
  dateField: (e) => bn(e),
590
- dateSegment: (e) => yn(e),
590
+ dateSegment: (e) => gn(e),
591
591
  label: (e) => $n(e),
592
592
  calendarPopover: (e) => pn(e),
593
593
  calendarUnderlay: (e) => mn(e)
594
594
  },
595
595
  popover: {
596
- button: (e) => X(e),
597
- popover: () => "border-2 text-black p-4"
596
+ button: (e) => Z(e),
597
+ popover: () => "border-2 text-black p-4 bg-gray-300"
598
598
  },
599
599
  typography: (e) => O(e),
600
- button: (e) => X(e),
600
+ button: (e) => Z(e),
601
601
  sidePanel: {
602
602
  wrapper: (e) => In(e),
603
603
  container: (e) => Rn(e),
@@ -624,12 +624,12 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
624
624
  errorMessage: (e) => O(e)
625
625
  },
626
626
  select: {
627
- button: (e) => X(e),
627
+ button: (e) => Z(e),
628
628
  ul: (e) => O({
629
629
  ...e,
630
630
  className: "outline outline-2 outline-white outline-offset-2 p-2 my-4 rounded-md w-full flex flex-col gap-6"
631
631
  }),
632
- popover: (e) => X(e),
632
+ popover: (e) => Z(e),
633
633
  errorMessage: (e) => O({ ...e, size: "footnotes", isError: !0 }),
634
634
  wrapper: () => "flex flex-col gap-4 relative",
635
635
  container: () => "flex flex-col gap-4",
@@ -652,7 +652,7 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
652
652
  }), ka = w.memo(Vr(En)), m = (e, t = {}, r = null) => {
653
653
  const n = Yr();
654
654
  if (n != null && e != null) {
655
- const { brandTheme: o } = n, a = Xt(o, e);
655
+ const { brandTheme: o } = n, a = Zt(o, e);
656
656
  if (typeof a == "function") {
657
657
  const s = a?.(t);
658
658
  if (typeof s == "string")
@@ -674,7 +674,7 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
674
674
  }, Ee = w.forwardRef((e, t) => {
675
675
  const { as: r = "span", tokens: n, themeName: o = "typography", customTheme: a, children: s, ...i } = e, c = m(o, n, a);
676
676
  return /* @__PURE__ */ l(r, { ...i, ref: t, className: c, children: s });
677
- }), gt = w.forwardRef((e, t) => {
677
+ }), yt = w.forwardRef((e, t) => {
678
678
  const { as: r = "a", handlePress: n, children: o, as: a, customTheme: s, tokens: i, themeName: c = "button", ...u } = e, d = t, { linkProps: b } = er(
679
679
  { ...e, elementType: a?.toString(), onPress: n },
680
680
  t ?? d
@@ -699,11 +699,11 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
699
699
  }), z = w.forwardRef(
700
700
  (e, t) => {
701
701
  const { as: r } = e;
702
- return r === "a" ? /* @__PURE__ */ l(gt, { ref: t, ...e }) : /* @__PURE__ */ l($t, { ref: t, ...e });
702
+ return r === "a" ? /* @__PURE__ */ l(yt, { ref: t, ...e }) : /* @__PURE__ */ l($t, { ref: t, ...e });
703
703
  }
704
704
  ), Nn = (e) => {
705
705
  const { as: t } = e, r = k(null);
706
- return t === "a" ? /* @__PURE__ */ l(gt, { ref: r, ...e }) : /* @__PURE__ */ l($t, { ref: r, ...e });
706
+ return t === "a" ? /* @__PURE__ */ l(yt, { ref: r, ...e }) : /* @__PURE__ */ l($t, { ref: r, ...e });
707
707
  }, K = w.memo(Nn), Ln = (e, t) => {
708
708
  const r = e[t];
709
709
  return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((n, o) => {
@@ -713,20 +713,20 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
713
713
  __proto__: null,
714
714
  default: vt
715
715
  }, Symbol.toStringTag, { value: "Module" })), Un = (e) => {
716
- const { icon: t, ...r } = e, n = de(() => zt(() => Ln(/* @__PURE__ */ Object.assign({ "../icons/ArrowDown.tsx": () => import("./ArrowDown-2bdc734f.mjs"), "../icons/ArrowLeft.tsx": () => import("./ArrowLeft-cfc85f6d.mjs"), "../icons/ArrowRight.tsx": () => Promise.resolve().then(() => eo), "../icons/BrandArrowRight.tsx": () => import("./BrandArrowRight-686606ab.mjs"), "../icons/Check.tsx": () => import("./Check-f0e31d77.mjs"), "../icons/ChevronLeft.tsx": () => import("./ChevronLeft-50f70f08.mjs"), "../icons/ChevronRight.tsx": () => import("./ChevronRight-ea754d4d.mjs"), "../icons/CloseBtn.tsx": () => import("./CloseBtn-2f4aad79.mjs"), "../icons/Facebook.tsx": () => import("./Facebook-0c77fec8.mjs"), "../icons/FacebookColored.tsx": () => import("./FacebookColored-9be40f21.mjs"), "../icons/Globe.tsx": () => import("./Globe-cb458fad.mjs"), "../icons/IconFallback.tsx": () => Promise.resolve().then(() => On), "../icons/Instagram.tsx": () => import("./Instagram-bf4a1667.mjs"), "../icons/InstagramColored.tsx": () => import("./InstagramColored-c4931693.mjs"), "../icons/Link.tsx": () => import("./Link-4ef5aaf2.mjs"), "../icons/Mail.tsx": () => import("./Mail-c45e037a.mjs"), "../icons/Plus.tsx": () => import("./Plus-144cf5f8.mjs"), "../icons/Share.tsx": () => import("./Share-c707352d.mjs"), "../icons/Twitter.tsx": () => import("./Twitter-78d0ccc7.mjs"), "../icons/TwitterColored.tsx": () => import("./TwitterColored-334512f5.mjs"), "../icons/Upload.tsx": () => import("./Upload-1f27bbaa.mjs"), "../icons/YouTube.tsx": () => import("./YouTube-782a6434.mjs"), "../icons/YouTubeColored.tsx": () => import("./YouTubeColored-45e92b0e.mjs") }), `../icons/${t || "ArrowRight"}.tsx`)), [t]);
716
+ const { icon: t, ...r } = e, n = de(() => zt(() => Ln(/* @__PURE__ */ Object.assign({ "../icons/ArrowDown.tsx": () => import("./ArrowDown-2bdc734f.mjs"), "../icons/ArrowLeft.tsx": () => import("./ArrowLeft-cfc85f6d.mjs"), "../icons/ArrowRight.tsx": () => Promise.resolve().then(() => eo), "../icons/BrandArrowRight.tsx": () => import("./BrandArrowRight-686606ab.mjs"), "../icons/Check.tsx": () => import("./Check-f0e31d77.mjs"), "../icons/ChevronLeft.tsx": () => import("./ChevronLeft-50f70f08.mjs"), "../icons/ChevronRight.tsx": () => import("./ChevronRight-ea754d4d.mjs"), "../icons/CloseBtn.tsx": () => import("./CloseBtn-2f4aad79.mjs"), "../icons/Facebook.tsx": () => import("./Facebook-0c77fec8.mjs"), "../icons/FacebookColored.tsx": () => import("./FacebookColored-9be40f21.mjs"), "../icons/FacebookRounded.tsx": () => import("./FacebookRounded-9943c951.mjs"), "../icons/Globe.tsx": () => import("./Globe-cb458fad.mjs"), "../icons/IconFallback.tsx": () => Promise.resolve().then(() => On), "../icons/Instagram.tsx": () => import("./Instagram-bf4a1667.mjs"), "../icons/InstagramColored.tsx": () => import("./InstagramColored-c4931693.mjs"), "../icons/Link.tsx": () => import("./Link-4ef5aaf2.mjs"), "../icons/LinkedIn.tsx": () => import("./LinkedIn-0f4aa0ac.mjs"), "../icons/Mail.tsx": () => import("./Mail-c45e037a.mjs"), "../icons/Plus.tsx": () => import("./Plus-144cf5f8.mjs"), "../icons/Share.tsx": () => import("./Share-c707352d.mjs"), "../icons/Twitter.tsx": () => import("./Twitter-78d0ccc7.mjs"), "../icons/TwitterColored.tsx": () => import("./TwitterColored-334512f5.mjs"), "../icons/Upload.tsx": () => import("./Upload-1f27bbaa.mjs"), "../icons/X.tsx": () => import("./X-02116119.mjs"), "../icons/YouTube.tsx": () => import("./YouTube-782a6434.mjs"), "../icons/YouTubeColored.tsx": () => import("./YouTubeColored-45e92b0e.mjs") }), `../icons/${t || "ArrowRight"}.tsx`)), [t]);
717
717
  return /* @__PURE__ */ l(Kt, { fallback: /* @__PURE__ */ l(vt, { className: "overflow-visible pointer-events-none" }), children: /* @__PURE__ */ l(n, { ...r, className: "overflow-visible pointer-events-none", ...e }) });
718
718
  }, N = (e) => {
719
719
  const { icon: t, as: r = "span", tokens: n, customTheme: o, themeName: a = "icon", children: s, ...i } = e, c = m(a, n, o);
720
- return typeof t != "string" ? /* @__PURE__ */ y(r, { ...i, className: c, children: [
720
+ return typeof t != "string" ? /* @__PURE__ */ g(r, { ...i, className: c, children: [
721
721
  s,
722
722
  t
723
- ] }) : /* @__PURE__ */ y(r, { className: c, children: [
723
+ ] }) : /* @__PURE__ */ g(r, { className: c, children: [
724
724
  s,
725
725
  /* @__PURE__ */ l(Un, { icon: t, ...i })
726
726
  ] });
727
727
  }, Pa = (e) => {
728
- const { customTheme: t, themeName: r = "accordion", id: n, tokens: o, title: a, ariaLabel: s, onClick: i, icon: c, children: u } = e, [d, b] = Q(!1), f = m(`${r}.container`, { ...o, isOpen: d }, t), h = m(`${r}.title`, { ...o, isOpen: d }, t), $ = m(`${r}.icon`, { ...o, isOpen: d }, t), g = m(`${r}.region`, { ...o, isOpen: d }, t), v = m(`${r}.content`, { ...o, isOpen: d }, t);
729
- return /* @__PURE__ */ y(
728
+ const { customTheme: t, themeName: r = "accordion", id: n, tokens: o, title: a, ariaLabel: s, onClick: i, icon: c, children: u } = e, [d, b] = Q(!1), f = m(`${r}.container`, { ...o, isOpen: d }, t), h = m(`${r}.title`, { ...o, isOpen: d }, t), $ = m(`${r}.icon`, { ...o, isOpen: d }, t), y = m(`${r}.region`, { ...o, isOpen: d }, t), v = m(`${r}.content`, { ...o, isOpen: d }, t);
729
+ return /* @__PURE__ */ g(
730
730
  "div",
731
731
  {
732
732
  className: f,
@@ -735,7 +735,7 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
735
735
  "aria-expanded": d,
736
736
  "aria-controls": `accordion-content-${n}`,
737
737
  children: [
738
- /* @__PURE__ */ y(
738
+ /* @__PURE__ */ g(
739
739
  K,
740
740
  {
741
741
  themeName: `${r}.button`,
@@ -755,7 +755,7 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
755
755
  /* @__PURE__ */ l(
756
756
  "div",
757
757
  {
758
- className: g,
758
+ className: y,
759
759
  role: "region",
760
760
  id: `accordion-content-${n}`,
761
761
  "aria-labelledby": `accordion-control-${n}`,
@@ -767,25 +767,22 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
767
767
  );
768
768
  }, Yn = (e) => {
769
769
  const { sharingLinksList: t, id: r, isOpen: n, setIsOpen: o, onShare: a, themeName: s = "shareButton", tokens: i, customTheme: c } = e, u = m(`${s}.linksList`, { ...i, isOpen: n }, c), d = tr();
770
- return /* @__PURE__ */ l("div", { className: u, id: r, role: "listbox", tabIndex: 0, onKeyDown: (f) => {
770
+ return /* @__PURE__ */ l("div", { className: u, id: r, role: "listbox", tabIndex: -1, onKeyDown: (f) => {
771
771
  f.key === "Escape" && o(!1);
772
772
  const { listDirection: h } = i ?? {};
773
773
  h === "row" && (f.key === "ArrowRight" && (d.focusNext({ wrap: !0 }), f.preventDefault()), f.key === "ArrowLeft" && (d.focusPrevious({ wrap: !0 }), f.preventDefault())), h === "column" && (f.key === "ArrowDown" && (d.focusNext({ wrap: !0 }), f.preventDefault()), f.key === "ArrowUp" && (d.focusPrevious({ wrap: !0 }), f.preventDefault()));
774
774
  }, children: t?.map((f) => {
775
- const { ariaLabel: h, onClick: $, href: g, icon: v, key: x } = f;
775
+ const { ariaLabel: h, onClick: $, href: y, icon: v, key: x } = f;
776
776
  return /* @__PURE__ */ l(
777
777
  K,
778
778
  {
779
779
  themeName: `${s}.link`,
780
780
  tokens: { ...i, isOpen: n },
781
- as: "a",
782
781
  handlePress: () => {
783
782
  a?.(x), $?.(x);
784
783
  },
785
784
  "aria-label": h,
786
- target: "_blank",
787
- rel: "noopener noreferrer",
788
- href: g,
785
+ ...y ? { href: y, rel: "noopener noreferrer", target: "_blank", as: "a" } : {},
789
786
  role: "option",
790
787
  children: /* @__PURE__ */ l(N, { themeName: `${s}.linkIcons`, icon: v })
791
788
  },
@@ -806,7 +803,7 @@ const Vr = (e) => ({ children: r }) => /* @__PURE__ */ l(_r, { brandTheme: e, ch
806
803
  } = e, [d, b] = Q(!1), f = m(`${i}.container`, c, s), h = () => {
807
804
  b(!d);
808
805
  };
809
- return /* @__PURE__ */ y("div", { className: f, children: [
806
+ return /* @__PURE__ */ g("div", { className: f, children: [
810
807
  /* @__PURE__ */ l(
811
808
  z,
812
809
  {
@@ -952,7 +949,7 @@ const Vn = ({ isVisible: e, children: t }) => Ie(e, {
952
949
  }, [o.isOpen]), t ? /* @__PURE__ */ l(pr, { children: /* @__PURE__ */ l(s, { isVisible: o.isOpen, children: /* @__PURE__ */ l(Gn, { isOpen: o.isOpen, onClose: i, isDismissable: !0, children: n }) }) }) : null;
953
950
  }, zn = (e) => {
954
951
  const { children: t, closeBtnRender: r, themeName: n = "sidePanel", tokens: o, customTheme: a } = e, s = m(`${n}.wrapper`, o, a), i = m(`${n}.container`, o, a), c = m(`${n}.innerContainer`, o, a), { overlayState: u } = Jn();
955
- return /* @__PURE__ */ l(Dt, { state: u, transitionComponent: qn, children: /* @__PURE__ */ y(hr, { className: s, children: [
952
+ return /* @__PURE__ */ l(Dt, { state: u, transitionComponent: qn, children: /* @__PURE__ */ g(hr, { className: s, children: [
956
953
  r && r(),
957
954
  /* @__PURE__ */ l(Vn, { isVisible: u.isOpen, children: /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l("div", { className: c, children: t }) }) })
958
955
  ] }) });
@@ -971,9 +968,9 @@ const Vn = ({ isVisible: e, children: t }) => Ie(e, {
971
968
  n,
972
969
  o,
973
970
  a
974
- ), g = m(`${i}.container`, c, u);
975
- return /* @__PURE__ */ y("div", { children: [
976
- /* @__PURE__ */ l(me, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ y(
971
+ ), y = m(`${i}.container`, c, u);
972
+ return /* @__PURE__ */ g("div", { children: [
973
+ /* @__PURE__ */ l(me, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ g(
977
974
  z,
978
975
  {
979
976
  ref: b,
@@ -986,7 +983,7 @@ const Vn = ({ isVisible: e, children: t }) => Ie(e, {
986
983
  ]
987
984
  }
988
985
  ) }),
989
- /* @__PURE__ */ l(Dt, { onCloseCallBack: a, state: d, children: /* @__PURE__ */ y("div", { children: [
986
+ /* @__PURE__ */ l(Dt, { onCloseCallBack: a, state: d, children: /* @__PURE__ */ g("div", { children: [
990
987
  /* @__PURE__ */ l(
991
988
  z,
992
989
  {
@@ -997,7 +994,7 @@ const Vn = ({ isVisible: e, children: t }) => Ie(e, {
997
994
  children: /* @__PURE__ */ l(N, { icon: "CloseBtn" })
998
995
  }
999
996
  ),
1000
- /* @__PURE__ */ l("div", { className: g, children: t })
997
+ /* @__PURE__ */ l("div", { className: y, children: t })
1001
998
  ] }) })
1002
999
  ] });
1003
1000
  }, Ba = ({
@@ -1024,10 +1021,10 @@ const Vn = ({ isVisible: e, children: t }) => Ie(e, {
1024
1021
  },
1025
1022
  t
1026
1023
  ), { modalProps: d } = ut(), { dialogProps: b } = Se({}, t), f = m(`${s}.popover`, i, c);
1027
- return /* @__PURE__ */ l(he, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ y(
1024
+ return /* @__PURE__ */ l(he, { autoFocus: !0, restoreFocus: !0, contain: !0, children: /* @__PURE__ */ g(
1028
1025
  Kn,
1029
1026
  {
1030
- className: f,
1027
+ customTheme: f,
1031
1028
  ...dt(u, d, b),
1032
1029
  ref: t,
1033
1030
  ...a,
@@ -1039,21 +1036,21 @@ const Vn = ({ isVisible: e, children: t }) => Ie(e, {
1039
1036
  ) });
1040
1037
  });
1041
1038
  function Ea(e) {
1042
- const { children: t, buttonProps: r, placement: n = "right", offset: o = 5, themeName: a = "popover", tokens: s, customTheme: i } = e, c = gr({}), u = w.useRef(null), d = w.useRef(null), { triggerProps: b, overlayProps: f } = rr({ type: "dialog" }, c, u), { overlayProps: h } = nr({
1039
+ const { children: t, buttonProps: r, placement: n = "right", offset: o = 5, themeName: a = "popover", tokens: s, customTheme: i } = e, c = yr({}), u = w.useRef(null), d = w.useRef(null), { triggerProps: b, overlayProps: f } = rr({ type: "dialog" }, c, u), { overlayProps: h } = nr({
1043
1040
  targetRef: u,
1044
1041
  overlayRef: d,
1045
1042
  placement: n,
1046
1043
  offset: o,
1047
1044
  isOpen: c.isOpen
1048
- }), { onPress: $, ...g } = b;
1049
- return /* @__PURE__ */ y(Zt, { children: [
1045
+ }), { onPress: $, ...y } = b;
1046
+ return /* @__PURE__ */ g(Xt, { children: [
1050
1047
  /* @__PURE__ */ l(
1051
1048
  z,
1052
1049
  {
1053
1050
  themeName: `${a}.button`,
1054
1051
  handlePress: $,
1055
1052
  ...r,
1056
- ...g,
1053
+ ...y,
1057
1054
  ref: u
1058
1055
  }
1059
1056
  ),
@@ -1085,12 +1082,12 @@ const Na = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ l
1085
1082
  })
1086
1083
  }
1087
1084
  }
1088
- ), Zn = (e) => /* @__PURE__ */ y("svg", { width: 24, height: 24, fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...e, children: [
1085
+ ), Xn = (e) => /* @__PURE__ */ g("svg", { width: 24, height: 24, fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...e, children: [
1089
1086
  /* @__PURE__ */ l("g", { children: /* @__PURE__ */ l("path", { d: "M23.92 12.38a1 1 0 0 0 0-.76 1 1 0 0 0-.21-.33l-8-8a1.003 1.003 0 1 0-1.42 1.42l6.3 6.29H1a1 1 0 1 0 0 2h19.59l-6.3 6.29a1 1 0 0 0 0 1.42 1.002 1.002 0 0 0 1.42 0l8-8c.091-.095.162-.207.21-.33Z" }) }),
1090
1087
  /* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l("clipPath", { children: /* @__PURE__ */ l("path", { fill: "currentColor", d: "M0 0h24v24H0z" }) }) })
1091
- ] }), Xn = lt(Zn, xr), eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1088
+ ] }), Zn = lt(Xn, xr), eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1092
1089
  __proto__: null,
1093
- default: Xn
1090
+ default: Zn
1094
1091
  }, Symbol.toStringTag, { value: "Module" })), La = (e) => {
1095
1092
  const {
1096
1093
  as: t = "time",
@@ -1125,9 +1122,9 @@ const Na = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ l
1125
1122
  },
1126
1123
  n
1127
1124
  );
1128
- return /* @__PURE__ */ y(cr, { children: [
1125
+ return /* @__PURE__ */ g(cr, { children: [
1129
1126
  /* @__PURE__ */ l("div", { ...c, style: { position: "fixed", inset: 0 } }),
1130
- /* @__PURE__ */ y(Ee, { themeName: a, ...s, ...i, as: "div", ref: r, children: [
1127
+ /* @__PURE__ */ g(Ee, { themeName: a, ...s, ...i, as: "div", ref: r, children: [
1131
1128
  /* @__PURE__ */ l(De, { onDismiss: n.close }),
1132
1129
  o,
1133
1130
  /* @__PURE__ */ l(De, { onDismiss: n.close })
@@ -1149,18 +1146,18 @@ const Na = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ l
1149
1146
  defaultValue: f,
1150
1147
  value: h,
1151
1148
  icon: $,
1152
- ...g
1149
+ ...y
1153
1150
  } = e, v = k(null), x = $r({
1154
- ...g,
1151
+ ...y,
1155
1152
  selectedKey: h,
1156
1153
  defaultSelectedKey: f,
1157
1154
  onSelectionChange: b
1158
- }), { triggerProps: T, menuProps: P, labelProps: C } = ur({ ...g }, x, v), L = m(`${i}.wrapper`, c, u), F = m(`${i}.container`, c, u);
1159
- return /* @__PURE__ */ y("div", { className: L, children: [
1155
+ }), { triggerProps: T, menuProps: P, labelProps: C } = ur({ ...y }, x, v), L = m(`${i}.wrapper`, c, u), F = m(`${i}.container`, c, u);
1156
+ return /* @__PURE__ */ g("div", { className: L, children: [
1160
1157
  d && /* @__PURE__ */ l(E, { ...C, as: "label", themeName: `${i}.label`, children: d }),
1161
1158
  /* @__PURE__ */ l(dr, { ...o, state: x, triggerRef: v, name: t, isDisabled: !0 }),
1162
- /* @__PURE__ */ y("div", { className: F, children: [
1163
- /* @__PURE__ */ y(
1159
+ /* @__PURE__ */ g("div", { className: F, children: [
1160
+ /* @__PURE__ */ g(
1164
1161
  z,
1165
1162
  {
1166
1163
  ...T,
@@ -1204,14 +1201,14 @@ const Na = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ l
1204
1201
  themeName: i = "checkbox",
1205
1202
  tokens: c,
1206
1203
  customTheme: u
1207
- } = e, d = Mr(e), b = k(null), { inputProps: f } = Dr(e, d, b), { focusProps: h, isFocusVisible: $ } = mt(), g = { ...c, selected: d.isSelected, isDisabled: n, isError: o, isFocusVisible: $ }, v = m(`${i}.label`, g, u), x = m(`${i}.checkBox`, g, u), T = m(`${i}.checkMark`, g, u);
1208
- return /* @__PURE__ */ y("div", { children: [
1209
- /* @__PURE__ */ y("label", { htmlFor: t, className: v, children: [
1204
+ } = e, d = Mr(e), b = k(null), { inputProps: f } = Dr(e, d, b), { focusProps: h, isFocusVisible: $ } = mt(), y = { ...c, selected: d.isSelected, isDisabled: n, isError: o, isFocusVisible: $ }, v = m(`${i}.label`, y, u), x = m(`${i}.checkBox`, y, u), T = m(`${i}.checkMark`, y, u);
1205
+ return /* @__PURE__ */ g("div", { children: [
1206
+ /* @__PURE__ */ g("label", { htmlFor: t, className: v, children: [
1210
1207
  /* @__PURE__ */ l(Cr, { children: /* @__PURE__ */ l("input", { type: "checkbox", ref: b, "aria-label": s, ...dt(h, f) }) }),
1211
1208
  /* @__PURE__ */ l(me, { focusRingClass: "focus-ring", children: /* @__PURE__ */ l("div", { className: x, children: /* @__PURE__ */ l("div", { className: T }) }) }),
1212
1209
  /* @__PURE__ */ l("span", { children: r })
1213
1210
  ] }),
1214
- o && a && /* @__PURE__ */ l(E, { themeName: `${i}.errorMessage`, tokens: g, children: a })
1211
+ o && a && /* @__PURE__ */ l(E, { themeName: `${i}.errorMessage`, tokens: y, children: a })
1215
1212
  ] });
1216
1213
  }, Ua = (e) => {
1217
1214
  const {
@@ -1229,12 +1226,12 @@ const Na = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ l
1229
1226
  fieldRef: f,
1230
1227
  themeName: h = "textarea",
1231
1228
  tokens: $,
1232
- customTheme: g
1233
- } = e, v = k(null), { errorMessageProps: x, inputProps: T, labelProps: P } = ft(e, v), C = { ...$, isDisabled: s, isError: i != null }, L = m(`${h}.wrapper`, C, g), F = m(`${h}.input`, C, g), ye = m(`${h}.label`, C, g), ge = m(`${h}.container`, C, g);
1234
- return /* @__PURE__ */ y("div", { children: [
1235
- /* @__PURE__ */ y("div", { className: L, "aria-disabled": s, children: [
1236
- r && /* @__PURE__ */ l("label", { className: ye, ...P, children: r }),
1237
- /* @__PURE__ */ l("div", { className: ge, children: /* @__PURE__ */ l(me, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ l(
1229
+ customTheme: y
1230
+ } = e, v = k(null), { errorMessageProps: x, inputProps: T, labelProps: P } = ft(e, v), C = { ...$, isDisabled: s, isError: i != null }, L = m(`${h}.wrapper`, C, y), F = m(`${h}.input`, C, y), ge = m(`${h}.label`, C, y), ye = m(`${h}.container`, C, y);
1231
+ return /* @__PURE__ */ g("div", { children: [
1232
+ /* @__PURE__ */ g("div", { className: L, "aria-disabled": s, children: [
1233
+ r && /* @__PURE__ */ l("label", { className: ge, ...P, children: r }),
1234
+ /* @__PURE__ */ l("div", { className: ye, children: /* @__PURE__ */ l(me, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ l(
1238
1235
  "textarea",
1239
1236
  {
1240
1237
  ref: (W) => {
@@ -1273,19 +1270,19 @@ const Na = ({ content: e, themeName: t = "wysiwyg", ...r }) => /* @__PURE__ */ l
1273
1270
  children: f,
1274
1271
  themeName: h = "textInput",
1275
1272
  tokens: $,
1276
- customTheme: g
1277
- } = e, v = k(null), { errorMessageProps: x, inputProps: T, labelProps: P } = ft(e, v), C = { ...$, isDisabled: o, isError: a != null }, L = m(`${h}.wrapper`, C, g), F = m(`${h}.label`, C, g), ye = m(`${h}.input`, C, g), ge = m(`${h}.container`, C, g);
1278
- return /* @__PURE__ */ y("div", { children: [
1279
- /* @__PURE__ */ l(me, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ y("div", { "aria-disabled": o, className: L, children: [
1273
+ customTheme: y
1274
+ } = e, v = k(null), { errorMessageProps: x, inputProps: T, labelProps: P } = ft(e, v), C = { ...$, isDisabled: o, isError: a != null }, L = m(`${h}.wrapper`, C, y), F = m(`${h}.label`, C, y), ge = m(`${h}.input`, C, y), ye = m(`${h}.container`, C, y);
1275
+ return /* @__PURE__ */ g("div", { children: [
1276
+ /* @__PURE__ */ l(me, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ g("div", { "aria-disabled": o, className: L, children: [
1280
1277
  r && // eslint-disable-next-line jsx-a11y/label-has-associated-control
1281
1278
  /* @__PURE__ */ l("label", { className: F, ...P, children: r }),
1282
- /* @__PURE__ */ y("div", { className: ge, children: [
1279
+ /* @__PURE__ */ g("div", { className: ye, children: [
1283
1280
  f,
1284
1281
  /* @__PURE__ */ l(
1285
1282
  "input",
1286
1283
  {
1287
1284
  ...T,
1288
- className: ye,
1285
+ className: ge,
1289
1286
  disabled: o,
1290
1287
  required: n,
1291
1288
  ref: (W) => {
@@ -1330,14 +1327,14 @@ function S(e, t) {
1330
1327
  }
1331
1328
  const Mt = 1721426;
1332
1329
  function Y(e, t, r, n) {
1333
- t = Z(e, t);
1330
+ t = X(e, t);
1334
1331
  let o = t - 1, a = -2;
1335
1332
  return r <= 2 ? a = 0 : A(t) && (a = -1), Mt - 1 + 365 * o + Math.floor(o / 4) - Math.floor(o / 100) + Math.floor(o / 400) + Math.floor((367 * r - 362) / 12 + a + n);
1336
1333
  }
1337
1334
  function A(e) {
1338
1335
  return e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0);
1339
1336
  }
1340
- function Z(e, t) {
1337
+ function X(e, t) {
1341
1338
  return e === "BC" ? 1 - t : t;
1342
1339
  }
1343
1340
  function pe(e) {
@@ -1379,9 +1376,9 @@ const io = {
1379
1376
  };
1380
1377
  class I {
1381
1378
  fromJulianDay(t) {
1382
- let r = t, n = r - Mt, o = Math.floor(n / 146097), a = S(n, 146097), s = Math.floor(a / 36524), i = S(a, 36524), c = Math.floor(i / 1461), u = S(i, 1461), d = Math.floor(u / 365), b = o * 400 + s * 100 + c * 4 + d + (s !== 4 && d !== 4 ? 1 : 0), [f, h] = pe(b), $ = r - Y(f, h, 1, 1), g = 2;
1383
- r < Y(f, h, 3, 1) ? g = 0 : A(h) && (g = 1);
1384
- let v = Math.floor((($ + g) * 12 + 373) / 367), x = r - Y(f, h, v, 1) + 1;
1379
+ let r = t, n = r - Mt, o = Math.floor(n / 146097), a = S(n, 146097), s = Math.floor(a / 36524), i = S(a, 36524), c = Math.floor(i / 1461), u = S(i, 1461), d = Math.floor(u / 365), b = o * 400 + s * 100 + c * 4 + d + (s !== 4 && d !== 4 ? 1 : 0), [f, h] = pe(b), $ = r - Y(f, h, 1, 1), y = 2;
1380
+ r < Y(f, h, 3, 1) ? y = 0 : A(h) && (y = 1);
1381
+ let v = Math.floor((($ + y) * 12 + 373) / 367), x = r - Y(f, h, v, 1) + 1;
1385
1382
  return new D(f, h, v, x);
1386
1383
  }
1387
1384
  toJulianDay(t) {
@@ -1558,7 +1555,7 @@ function mo(e, t) {
1558
1555
  }
1559
1556
  function qe(e) {
1560
1557
  e = be(e, new I());
1561
- let t = Z(e.era, e.year);
1558
+ let t = X(e.era, e.year);
1562
1559
  return St(t, e.month, e.day, e.hour, e.minute, e.second, e.millisecond);
1563
1560
  }
1564
1561
  function St(e, t, r, n, o, a, s) {
@@ -1613,13 +1610,13 @@ function bo(e, t, r) {
1613
1610
  let n = It(r, t);
1614
1611
  return e.year === n.year && e.month === n.month && e.day === n.day && e.hour === n.hour && e.minute === n.minute && e.second === n.second;
1615
1612
  }
1616
- function yo(e, t, r = "compatible") {
1613
+ function go(e, t, r = "compatible") {
1617
1614
  let n = At(e);
1618
1615
  if (t === "UTC")
1619
1616
  return qe(n);
1620
1617
  if (t === Pt() && r === "compatible") {
1621
1618
  n = be(n, new I());
1622
- let c = /* @__PURE__ */ new Date(), u = Z(n.era, n.year);
1619
+ let c = /* @__PURE__ */ new Date(), u = X(n.era, n.year);
1623
1620
  return c.setFullYear(u, n.month - 1, n.day), c.setHours(n.hour, n.minute, n.second, n.millisecond), c.getTime();
1624
1621
  }
1625
1622
  let o = qe(n), a = We(o - Ge, t), s = We(o + Ge, t), i = po(n, t, o - a, o - s);
@@ -1646,7 +1643,7 @@ function yo(e, t, r = "compatible") {
1646
1643
  }
1647
1644
  }
1648
1645
  function Rt(e, t, r = "compatible") {
1649
- return new Date(yo(e, t, r));
1646
+ return new Date(go(e, t, r));
1650
1647
  }
1651
1648
  function At(e, t) {
1652
1649
  let r = 0, n = 0, o = 0, a = 0;
@@ -1664,7 +1661,7 @@ function be(e, t) {
1664
1661
  }
1665
1662
  function Ne(e, t) {
1666
1663
  let r = e.copy(), n = "hour" in r ? Do(r, t) : 0;
1667
- Ce(r, t.years || 0), r.calendar.balanceYearMonth && r.calendar.balanceYearMonth(r, e), r.month += t.months || 0, Me(r), Bt(r), r.day += (t.weeks || 0) * 7, r.day += t.days || 0, r.day += n, go(r), r.calendar.balanceDate && r.calendar.balanceDate(r), r.year < 1 && (r.year = 1, r.month = 1, r.day = 1);
1664
+ Ce(r, t.years || 0), r.calendar.balanceYearMonth && r.calendar.balanceYearMonth(r, e), r.month += t.months || 0, Me(r), Bt(r), r.day += (t.weeks || 0) * 7, r.day += t.days || 0, r.day += n, yo(r), r.calendar.balanceDate && r.calendar.balanceDate(r), r.year < 1 && (r.year = 1, r.month = 1, r.day = 1);
1668
1665
  let o = r.calendar.getYearsInEra(r);
1669
1666
  if (r.year > o) {
1670
1667
  var a, s;
@@ -1686,7 +1683,7 @@ function Me(e) {
1686
1683
  for (; e.month > (t = e.calendar.getMonthsInYear(e)); )
1687
1684
  e.month -= t, Ce(e, 1);
1688
1685
  }
1689
- function go(e) {
1686
+ function yo(e) {
1690
1687
  for (; e.day < 1; )
1691
1688
  e.month--, Me(e), e.day += e.calendar.getDaysInMonth(e);
1692
1689
  for (; e.day > e.calendar.getDaysInMonth(e); )
@@ -2045,7 +2042,7 @@ function Ke(e) {
2045
2042
  const Ut = -543;
2046
2043
  class Ro extends I {
2047
2044
  fromJulianDay(t) {
2048
- let r = super.fromJulianDay(t), n = Z(r.era, r.year);
2045
+ let r = super.fromJulianDay(t), n = X(r.era, r.year);
2049
2046
  return new D(this, n - Ut, r.month, r.day);
2050
2047
  }
2051
2048
  toJulianDay(t) {
@@ -2073,7 +2070,7 @@ const ie = 1911;
2073
2070
  function Yt(e) {
2074
2071
  return e.era === "minguo" ? e.year + ie : 1 - e.year + ie;
2075
2072
  }
2076
- function Ze(e) {
2073
+ function Xe(e) {
2077
2074
  let t = e - ie;
2078
2075
  return t > 0 ? [
2079
2076
  "minguo",
@@ -2085,11 +2082,11 @@ function Ze(e) {
2085
2082
  }
2086
2083
  class Ao extends I {
2087
2084
  fromJulianDay(t) {
2088
- let r = super.fromJulianDay(t), n = Z(r.era, r.year), [o, a] = Ze(n);
2085
+ let r = super.fromJulianDay(t), n = X(r.era, r.year), [o, a] = Xe(n);
2089
2086
  return new D(this, o, a, r.month, r.day);
2090
2087
  }
2091
2088
  toJulianDay(t) {
2092
- return super.toJulianDay(Xe(t));
2089
+ return super.toJulianDay(Ze(t));
2093
2090
  }
2094
2091
  getEras() {
2095
2092
  return [
@@ -2098,14 +2095,14 @@ class Ao extends I {
2098
2095
  ];
2099
2096
  }
2100
2097
  balanceDate(t) {
2101
- let [r, n] = Ze(Yt(t));
2098
+ let [r, n] = Xe(Yt(t));
2102
2099
  t.era = r, t.year = n;
2103
2100
  }
2104
2101
  isInverseEra(t) {
2105
2102
  return t.era === "before_minguo";
2106
2103
  }
2107
2104
  getDaysInMonth(t) {
2108
- return super.getDaysInMonth(Xe(t));
2105
+ return super.getDaysInMonth(Ze(t));
2109
2106
  }
2110
2107
  getYearsInEra(t) {
2111
2108
  return t.era === "before_minguo" ? 9999 : 9999 - ie;
@@ -2114,7 +2111,7 @@ class Ao extends I {
2114
2111
  super(...t), this.identifier = "roc";
2115
2112
  }
2116
2113
  }
2117
- function Xe(e) {
2114
+ function Ze(e) {
2118
2115
  let [t, r] = pe(Yt(e));
2119
2116
  return new D(t, r, e.month, e.day);
2120
2117
  }
@@ -2510,7 +2507,7 @@ function Ht(e) {
2510
2507
  }
2511
2508
  }
2512
2509
  function zo({ themeName: e = "calendar", tokens: t, state: r, date: n }) {
2513
- const o = k(null), { cellProps: a, buttonProps: s, isSelected: i, isOutsideVisibleRange: c, isDisabled: u, formattedDate: d, isInvalid: b } = Ar({ date: n }, r, o), f = r?.highlightedRange ? _e(n, r?.highlightedRange.start) : i, h = r?.highlightedRange ? _e(n, r?.highlightedRange.end) : i, { locale: $ } = fr(), g = Tt(n, $), v = i && (f || g === 0 || n.day === 1), x = i && (h || g === 6 || n.day === n.calendar.getDaysInMonth(n)), { focusProps: T, isFocusVisible: P } = mt(), C = m(`${e}.cellContainer`, { ...t, isFocusVisible: P }), L = m(`${e}.cell`, {
2510
+ const o = k(null), { cellProps: a, buttonProps: s, isSelected: i, isOutsideVisibleRange: c, isDisabled: u, formattedDate: d, isInvalid: b } = Ar({ date: n }, r, o), f = r?.highlightedRange ? _e(n, r?.highlightedRange.start) : i, h = r?.highlightedRange ? _e(n, r?.highlightedRange.end) : i, { locale: $ } = fr(), y = Tt(n, $), v = i && (f || y === 0 || n.day === 1), x = i && (h || y === 6 || n.day === n.calendar.getDaysInMonth(n)), { focusProps: T, isFocusVisible: P } = mt(), C = m(`${e}.cellContainer`, { ...t, isFocusVisible: P }), L = m(`${e}.cell`, {
2514
2511
  ...t,
2515
2512
  isSelected: i,
2516
2513
  isInvalid: b,
@@ -2529,7 +2526,7 @@ function zo({ themeName: e = "calendar", tokens: t, state: r, date: n }) {
2529
2526
  }
2530
2527
  function Ko({ themeName: e = "calendar", customTheme: t, tokens: r, state: n, ...o }) {
2531
2528
  const { locale: a } = Ae(), { gridProps: s, headerProps: i, weekDays: c } = Br({ ...o }, n), u = mo(n.visibleRange.start, a), d = m(`${e}.calendarTable`, r), b = m(`${e}.dayLabel`, r);
2532
- return /* @__PURE__ */ y("table", { ...s, cellPadding: "0", className: d, children: [
2529
+ return /* @__PURE__ */ g("table", { ...s, cellPadding: "0", className: d, children: [
2533
2530
  /* @__PURE__ */ l("thead", { ...i, children: /* @__PURE__ */ l("tr", { children: c.map((f) => /* @__PURE__ */ l("th", { className: b, children: f }, `${f}`)) }) }),
2534
2531
  /* @__PURE__ */ l("tbody", { children: [...new Array(u).keys()].map((f) => /* @__PURE__ */ l("tr", { children: n.getDatesInWeek(f).map((h, $) => h ? /* @__PURE__ */ l(zo, { state: n, date: h }, h?.day) : /* @__PURE__ */ l("td", {}, $)) }, f)) })
2535
2532
  ] });
@@ -2540,10 +2537,10 @@ function jo({ buttons: e, tokens: t, customTheme: r, themeName: n = "calendar",
2540
2537
  locale: a,
2541
2538
  createCalendar: Ht
2542
2539
  }), i = k(null), { calendarProps: c, prevButtonProps: u, nextButtonProps: d, title: b } = Er({ ...o }, s), f = m(`${n}.container`, t), h = m(`${n}.header`, t), $ = m(`${n}.navigationButtonsContainer`, t);
2543
- return /* @__PURE__ */ y("div", { ...c, ref: i, className: f, children: [
2544
- /* @__PURE__ */ y("div", { className: h, children: [
2540
+ return /* @__PURE__ */ g("div", { ...c, ref: i, className: f, children: [
2541
+ /* @__PURE__ */ g("div", { className: h, children: [
2545
2542
  /* @__PURE__ */ l(E, { as: "p", tokens: { size: "h6" }, children: b }),
2546
- /* @__PURE__ */ y("div", { className: $, children: [
2543
+ /* @__PURE__ */ g("div", { className: $, children: [
2547
2544
  /* @__PURE__ */ l(
2548
2545
  K,
2549
2546
  {
@@ -2571,11 +2568,11 @@ function jo({ buttons: e, tokens: t, customTheme: r, themeName: n = "calendar",
2571
2568
  /* @__PURE__ */ l(Ko, { state: s })
2572
2569
  ] });
2573
2570
  }
2574
- function Zo({ title: e, children: t, ...r }) {
2571
+ function Xo({ title: e, children: t, ...r }) {
2575
2572
  const n = k(null), { dialogProps: o } = Se(r, n);
2576
2573
  return /* @__PURE__ */ l("div", { ...o, ref: n, children: t });
2577
2574
  }
2578
- function Xo({ themeName: e = "datePicker", tokens: t, ...r }) {
2575
+ function Zo({ themeName: e = "datePicker", tokens: t, ...r }) {
2579
2576
  const n = Gt.useRef(null), { state: o, children: a } = { ...r }, { popoverProps: s, underlayProps: i } = br(
2580
2577
  {
2581
2578
  ...r,
@@ -2583,9 +2580,9 @@ function Xo({ themeName: e = "datePicker", tokens: t, ...r }) {
2583
2580
  },
2584
2581
  o
2585
2582
  ), c = m(`${e}.calendarUnderlay`, t), u = m(`${e}.calendarPopover`, t);
2586
- return /* @__PURE__ */ y(yr, { children: [
2583
+ return /* @__PURE__ */ g(gr, { children: [
2587
2584
  /* @__PURE__ */ l("div", { ...i, className: c }),
2588
- /* @__PURE__ */ y("div", { ...s, ref: n, className: u, children: [
2585
+ /* @__PURE__ */ g("div", { ...s, ref: n, className: u, children: [
2589
2586
  /* @__PURE__ */ l(Je, { onDismiss: o.close }),
2590
2587
  a,
2591
2588
  /* @__PURE__ */ l(Je, { onDismiss: o.close })
@@ -2594,7 +2591,7 @@ function Xo({ themeName: e = "datePicker", tokens: t, ...r }) {
2594
2591
  }
2595
2592
  function ea({ segment: e, state: t }) {
2596
2593
  const r = k(null), { segmentProps: n } = Pr(e, t, r), o = m("datePicker.dateSegment");
2597
- return /* @__PURE__ */ l(j, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ y("div", { ...n, ref: r, className: o, children: [
2594
+ return /* @__PURE__ */ l(j, { focusRingClass: "has-focus-ring", children: /* @__PURE__ */ g("div", { ...n, ref: r, className: o, children: [
2598
2595
  /* @__PURE__ */ l(
2599
2596
  "span",
2600
2597
  {
@@ -2632,11 +2629,11 @@ function Ja({
2632
2629
  buttonLabel: s,
2633
2630
  ...i
2634
2631
  }) {
2635
- const c = Rr({ ...i }), u = k(null), { groupProps: d, fieldProps: b, labelProps: f, descriptionProps: h, buttonProps: $, dialogProps: g, calendarProps: v } = Sr({ ...i }, c, u), { label: x } = { ...i }, T = m(`${n}.container`, t), P = m(`${n}.dateField`, t), C = m(`${n}.label`, t);
2636
- return /* @__PURE__ */ y("div", { className: T, children: [
2632
+ const c = Rr({ ...i }), u = k(null), { groupProps: d, fieldProps: b, labelProps: f, descriptionProps: h, buttonProps: $, dialogProps: y, calendarProps: v } = Sr({ ...i }, c, u), { label: x } = { ...i }, T = m(`${n}.container`, t), P = m(`${n}.dateField`, t), C = m(`${n}.label`, t);
2633
+ return /* @__PURE__ */ g("div", { className: T, children: [
2637
2634
  x && /* @__PURE__ */ l("span", { ...f, children: x }),
2638
2635
  a && /* @__PURE__ */ l("div", { ...h, children: a }),
2639
- /* @__PURE__ */ l("div", { ...d, ref: u, children: /* @__PURE__ */ y(
2636
+ /* @__PURE__ */ l("div", { ...d, ref: u, children: /* @__PURE__ */ g(
2640
2637
  K,
2641
2638
  {
2642
2639
  themeName: `${n}.button`,
@@ -2646,7 +2643,7 @@ function Ja({
2646
2643
  handlePress: $.onPress,
2647
2644
  children: [
2648
2645
  s && /* @__PURE__ */ l("p", { className: C, children: s }),
2649
- /* @__PURE__ */ y("div", { className: P, children: [
2646
+ /* @__PURE__ */ g("div", { className: P, children: [
2650
2647
  /* @__PURE__ */ l(it, { ...b }),
2651
2648
  c.validationState === "invalid" && "❌"
2652
2649
  ] }),
@@ -2654,8 +2651,8 @@ function Ja({
2654
2651
  ]
2655
2652
  }
2656
2653
  ) }),
2657
- c.isOpen && /* @__PURE__ */ l(Xo, { triggerRef: u, state: c, placement: e, children: /* @__PURE__ */ y(Zo, { ...g, children: [
2658
- /* @__PURE__ */ y("div", { children: [
2654
+ c.isOpen && /* @__PURE__ */ l(Zo, { triggerRef: u, state: c, placement: e, children: /* @__PURE__ */ g(Xo, { ...y, children: [
2655
+ /* @__PURE__ */ g("div", { children: [
2659
2656
  /* @__PURE__ */ l(it, { ...b }),
2660
2657
  c.validationState === "invalid" && "❌"
2661
2658
  ] }),
@@ -2689,7 +2686,7 @@ const Ue = (e, t, r = "sharing_tool") => `?utm_source=${e}&utm_medium=${t}&utm_c
2689
2686
  };
2690
2687
  export {
2691
2688
  Pa as Accordion,
2692
- Xn as ArrowRight,
2689
+ Zn as ArrowRight,
2693
2690
  Ba as Box,
2694
2691
  Kn as BoxWithForwardRef,
2695
2692
  K as Button,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@okam/stack-ui",
3
3
  "main": "./index.js",
4
- "version": "1.9.0",
4
+ "version": "1.9.2",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
7
7
  ".": {
@@ -44,7 +44,8 @@
44
44
  "react-i18next": "12.1.5",
45
45
  "react-spring": "9.6.1",
46
46
  "react-stately": "^3.24.0",
47
- "tailwind-variants": "^0.1.8"
47
+ "tailwind-variants": "^0.1.8",
48
+ "usehooks-ts": "^2.9.1"
48
49
  },
49
50
  "type": "module"
50
51
  }